const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./jspdf.plugin.autotable-BNSPgntu.js","./jspdf.es.min-DCw0FjSx.js"])))=>i.map(i=>d[i]);
function bue(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const xS=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Jl},get Circle(){return Pbt},get Ellipse(){return Obt},get Image(){return zbt},get Line(){return jbt},get Marker(){return Lbt},get Path(){return T6},get Polygon(){return Wbt},get Polyline(){return Xbt},get Rect(){return $bt},get Text(){return eSt}},Symbol.toStringTag,{value:"Module"}));(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var Ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Un(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var nQ={exports:{}},hg={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var aQ,KH;function IS(){if(KH)return aQ;KH=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var A={};return"abcdefghijklmnopqrst".split("").forEach(function(c){A[c]=c}),Object.keys(Object.assign({},A)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return aQ=a()?Object.assign:function(i,o){for(var s,l=n(i),A,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var u in s)t.call(s,u)&&(l[u]=s[u]);if(e){A=e(s);for(var d=0;d<A.length;d++)r.call(s,A[d])&&(l[A[d]]=s[A[d]])}}return l},aQ}var iQ={exports:{}},bn={};/** @license React v17.0.2
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var VH;function h2e(){if(VH)return bn;VH=1;var e=IS(),t=60103,r=60106;bn.Fragment=60107,bn.StrictMode=60108,bn.Profiler=60114;var n=60109,a=60110,i=60112;bn.Suspense=60113;var o=60115,s=60116;if(typeof Symbol=="function"&&Symbol.for){var l=Symbol.for;t=l("react.element"),r=l("react.portal"),bn.Fragment=l("react.fragment"),bn.StrictMode=l("react.strict_mode"),bn.Profiler=l("react.profiler"),n=l("react.provider"),a=l("react.context"),i=l("react.forward_ref"),bn.Suspense=l("react.suspense"),o=l("react.memo"),s=l("react.lazy")}var A=typeof Symbol=="function"&&Symbol.iterator;function c(P){return P===null||typeof P!="object"?null:(P=A&&P[A]||P["@@iterator"],typeof P=="function"?P:null)}function u(P){for(var z="https://reactjs.org/docs/error-decoder.html?invariant="+P,j=1;j<arguments.length;j++)z+="&args[]="+encodeURIComponent(arguments[j]);return"Minified React error #"+P+"; visit "+z+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f={};function h(P,z,j){this.props=P,this.context=z,this.refs=f,this.updater=j||d}h.prototype.isReactComponent={},h.prototype.setState=function(P,z){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error(u(85));this.updater.enqueueSetState(this,P,z,"setState")},h.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function g(){}g.prototype=h.prototype;function p(P,z,j){this.props=P,this.context=z,this.refs=f,this.updater=j||d}var E=p.prototype=new g;E.constructor=p,e(E,h.prototype),E.isPureReactComponent=!0;var y={current:null},C=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function B(P,z,j){var V,L={},K=null,J=null;if(z!=null)for(V in z.ref!==void 0&&(J=z.ref),z.key!==void 0&&(K=""+z.key),z)C.call(z,V)&&!w.hasOwnProperty(V)&&(L[V]=z[V]);var Y=arguments.length-2;if(Y===1)L.children=j;else if(1<Y){for(var W=Array(Y),q=0;q<Y;q++)W[q]=arguments[q+2];L.children=W}if(P&&P.defaultProps)for(V in Y=P.defaultProps,Y)L[V]===void 0&&(L[V]=Y[V]);return{$$typeof:t,type:P,key:K,ref:J,props:L,_owner:y.current}}function M(P,z){return{$$typeof:t,type:P.type,key:z,ref:P.ref,props:P.props,_owner:P._owner}}function I(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function S(P){var z={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(j){return z[j]})}var R=/\/+/g;function b(P,z){return typeof P=="object"&&P!==null&&P.key!=null?S(""+P.key):z.toString(36)}function Q(P,z,j,V,L){var K=typeof P;(K==="undefined"||K==="boolean")&&(P=null);var J=!1;if(P===null)J=!0;else switch(K){case"string":case"number":J=!0;break;case"object":switch(P.$$typeof){case t:case r:J=!0}}if(J)return J=P,L=L(J),P=V===""?"."+b(J,0):V,Array.isArray(L)?(j="",P!=null&&(j=P.replace(R,"$&/")+"/"),Q(L,z,j,"",function(q){return q})):L!=null&&(I(L)&&(L=M(L,j+(!L.key||J&&J.key===L.key?"":(""+L.key).replace(R,"$&/")+"/")+P)),z.push(L)),1;if(J=0,V=V===""?".":V+":",Array.isArray(P))for(var Y=0;Y<P.length;Y++){K=P[Y];var W=V+b(K,Y);J+=Q(K,z,j,W,L)}else if(W=c(P),typeof W=="function")for(P=W.call(P),Y=0;!(K=P.next()).done;)K=K.value,W=V+b(K,Y++),J+=Q(K,z,j,W,L);else if(K==="object")throw z=""+P,Error(u(31,z==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":z));return J}function D(P,z,j){if(P==null)return P;var V=[],L=0;return Q(P,V,"","",function(K){return z.call(j,K,L++)}),V}function F(P){if(P._status===-1){var z=P._result;z=z(),P._status=0,P._result=z,z.then(function(j){P._status===0&&(j=j.default,P._status=1,P._result=j)},function(j){P._status===0&&(P._status=2,P._result=j)})}if(P._status===1)return P._result;throw P._result}var N={current:null};function k(){var P=N.current;if(P===null)throw Error(u(321));return P}var O={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:y,IsSomeRendererActing:{current:!1},assign:e};return bn.Children={map:D,forEach:function(P,z,j){D(P,function(){z.apply(this,arguments)},j)},count:function(P){var z=0;return D(P,function(){z++}),z},toArray:function(P){return D(P,function(z){return z})||[]},only:function(P){if(!I(P))throw Error(u(143));return P}},bn.Component=h,bn.PureComponent=p,bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,bn.cloneElement=function(P,z,j){if(P==null)throw Error(u(267,P));var V=e({},P.props),L=P.key,K=P.ref,J=P._owner;if(z!=null){if(z.ref!==void 0&&(K=z.ref,J=y.current),z.key!==void 0&&(L=""+z.key),P.type&&P.type.defaultProps)var Y=P.type.defaultProps;for(W in z)C.call(z,W)&&!w.hasOwnProperty(W)&&(V[W]=z[W]===void 0&&Y!==void 0?Y[W]:z[W])}var W=arguments.length-2;if(W===1)V.children=j;else if(1<W){Y=Array(W);for(var q=0;q<W;q++)Y[q]=arguments[q+2];V.children=Y}return{$$typeof:t,type:P.type,key:L,ref:K,props:V,_owner:J}},bn.createContext=function(P,z){return z===void 0&&(z=null),P={$$typeof:a,_calculateChangedBits:z,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider={$$typeof:n,_context:P},P.Consumer=P},bn.createElement=B,bn.createFactory=function(P){var z=B.bind(null,P);return z.type=P,z},bn.createRef=function(){return{current:null}},bn.forwardRef=function(P){return{$$typeof:i,render:P}},bn.isValidElement=I,bn.lazy=function(P){return{$$typeof:s,_payload:{_status:-1,_result:P},_init:F}},bn.memo=function(P,z){return{$$typeof:o,type:P,compare:z===void 0?null:z}},bn.useCallback=function(P,z){return k().useCallback(P,z)},bn.useContext=function(P,z){return k().useContext(P,z)},bn.useDebugValue=function(){},bn.useEffect=function(P,z){return k().useEffect(P,z)},bn.useImperativeHandle=function(P,z,j){return k().useImperativeHandle(P,z,j)},bn.useLayoutEffect=function(P,z){return k().useLayoutEffect(P,z)},bn.useMemo=function(P,z){return k().useMemo(P,z)},bn.useReducer=function(P,z,j){return k().useReducer(P,z,j)},bn.useRef=function(P){return k().useRef(P)},bn.useState=function(P){return k().useState(P)},bn.version="17.0.2",bn}var JH;function cr(){return JH||(JH=1,iQ.exports=h2e()),iQ.exports}/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var WH;function g2e(){if(WH)return hg;WH=1,IS();var e=cr(),t=60103;if(hg.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;t=r("react.element"),hg.Fragment=r("react.fragment")}var n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,A){var c,u={},d=null,f=null;A!==void 0&&(d=""+A),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(f=l.ref);for(c in l)a.call(l,c)&&!i.hasOwnProperty(c)&&(u[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)u[c]===void 0&&(u[c]=l[c]);return{$$typeof:t,type:s,key:d,ref:f,props:u,_owner:n.current}}return hg.jsx=o,hg.jsxs=o,hg}var XH;function p2e(){return XH||(XH=1,nQ.exports=g2e()),nQ.exports}var v=p2e(),oQ={exports:{}},Uo={},sQ={exports:{}},lQ={};/** @license React v0.20.2
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qH;function v2e(){return qH||(qH=1,function(e){var t,r,n,a;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,A=null,c=function(){if(l!==null)try{var L=e.unstable_now();l(!0,L),l=null}catch(K){throw setTimeout(c,0),K}};t=function(L){l!==null?setTimeout(t,0,L):(l=L,setTimeout(c,0))},r=function(L,K){A=setTimeout(L,K)},n=function(){clearTimeout(A)},e.unstable_shouldYield=function(){return!1},a=e.unstable_forceFrameRate=function(){}}else{var u=window.setTimeout,d=window.clearTimeout;if(typeof console<"u"){var f=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof f!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var h=!1,g=null,p=-1,E=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},a=function(){},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<L?Math.floor(1e3/L):5};var C=new MessageChannel,w=C.port2;C.port1.onmessage=function(){if(g!==null){var L=e.unstable_now();y=L+E;try{g(!0,L)?w.postMessage(null):(h=!1,g=null)}catch(K){throw w.postMessage(null),K}}else h=!1},t=function(L){g=L,h||(h=!0,w.postMessage(null))},r=function(L,K){p=u(function(){L(e.unstable_now())},K)},n=function(){d(p),p=-1}}function B(L,K){var J=L.length;L.push(K);e:for(;;){var Y=J-1>>>1,W=L[Y];if(W!==void 0&&0<S(W,K))L[Y]=K,L[J]=W,J=Y;else break e}}function M(L){return L=L[0],L===void 0?null:L}function I(L){var K=L[0];if(K!==void 0){var J=L.pop();if(J!==K){L[0]=J;e:for(var Y=0,W=L.length;Y<W;){var q=2*(Y+1)-1,ee=L[q],ae=q+1,ne=L[ae];if(ee!==void 0&&0>S(ee,J))ne!==void 0&&0>S(ne,ee)?(L[Y]=ne,L[ae]=J,Y=ae):(L[Y]=ee,L[q]=J,Y=q);else if(ne!==void 0&&0>S(ne,J))L[Y]=ne,L[ae]=J,Y=ae;else break e}}return K}return null}function S(L,K){var J=L.sortIndex-K.sortIndex;return J!==0?J:L.id-K.id}var R=[],b=[],Q=1,D=null,F=3,N=!1,k=!1,O=!1;function P(L){for(var K=M(b);K!==null;){if(K.callback===null)I(b);else if(K.startTime<=L)I(b),K.sortIndex=K.expirationTime,B(R,K);else break;K=M(b)}}function z(L){if(O=!1,P(L),!k)if(M(R)!==null)k=!0,t(j);else{var K=M(b);K!==null&&r(z,K.startTime-L)}}function j(L,K){k=!1,O&&(O=!1,n()),N=!0;var J=F;try{for(P(K),D=M(R);D!==null&&(!(D.expirationTime>K)||L&&!e.unstable_shouldYield());){var Y=D.callback;if(typeof Y=="function"){D.callback=null,F=D.priorityLevel;var W=Y(D.expirationTime<=K);K=e.unstable_now(),typeof W=="function"?D.callback=W:D===M(R)&&I(R),P(K)}else I(R);D=M(R)}if(D!==null)var q=!0;else{var ee=M(b);ee!==null&&r(z,ee.startTime-K),q=!1}return q}finally{D=null,F=J,N=!1}}var V=a;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(L){L.callback=null},e.unstable_continueExecution=function(){k||N||(k=!0,t(j))},e.unstable_getCurrentPriorityLevel=function(){return F},e.unstable_getFirstCallbackNode=function(){return M(R)},e.unstable_next=function(L){switch(F){case 1:case 2:case 3:var K=3;break;default:K=F}var J=F;F=K;try{return L()}finally{F=J}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=V,e.unstable_runWithPriority=function(L,K){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var J=F;F=L;try{return K()}finally{F=J}},e.unstable_scheduleCallback=function(L,K,J){var Y=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?Y+J:Y):J=Y,L){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=J+W,L={id:Q++,callback:K,priorityLevel:L,startTime:J,expirationTime:W,sortIndex:-1},J>Y?(L.sortIndex=J,B(b,L),M(R)===null&&L===M(b)&&(O?n():O=!0,r(z,J-Y))):(L.sortIndex=W,B(R,L),k||N||(k=!0,t(j))),L},e.unstable_wrapCallback=function(L){var K=F;return function(){var J=F;F=K;try{return L.apply(this,arguments)}finally{F=J}}}}(lQ)),lQ}var ZH;function m2e(){return ZH||(ZH=1,sQ.exports=v2e()),sQ.exports}/** @license React v17.0.2
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $H;function E2e(){if($H)return Uo;$H=1;var e=cr(),t=IS(),r=m2e();function n(x){for(var T="https://reactjs.org/docs/error-decoder.html?invariant="+x,_=1;_<arguments.length;_++)T+="&args[]="+encodeURIComponent(arguments[_]);return"Minified React error #"+x+"; visit "+T+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!e)throw Error(n(227));var a=new Set,i={};function o(x,T){s(x,T),s(x+"Capture",T)}function s(x,T){for(i[x]=T,x=0;x<T.length;x++)a.add(T[x])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),A=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c=Object.prototype.hasOwnProperty,u={},d={};function f(x){return c.call(d,x)?!0:c.call(u,x)?!1:A.test(x)?d[x]=!0:(u[x]=!0,!1)}function h(x,T,_,H){if(_!==null&&_.type===0)return!1;switch(typeof T){case"function":case"symbol":return!0;case"boolean":return H?!1:_!==null?!_.acceptsBooleans:(x=x.toLowerCase().slice(0,5),x!=="data-"&&x!=="aria-");default:return!1}}function g(x,T,_,H){if(T===null||typeof T>"u"||h(x,T,_,H))return!0;if(H)return!1;if(_!==null)switch(_.type){case 3:return!T;case 4:return T===!1;case 5:return isNaN(T);case 6:return isNaN(T)||1>T}return!1}function p(x,T,_,H,Z,Ae,me){this.acceptsBooleans=T===2||T===3||T===4,this.attributeName=H,this.attributeNamespace=Z,this.mustUseProperty=_,this.propertyName=x,this.type=T,this.sanitizeURL=Ae,this.removeEmptyString=me}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(x){E[x]=new p(x,0,!1,x,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(x){var T=x[0];E[T]=new p(T,1,!1,x[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(x){E[x]=new p(x,2,!1,x.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(x){E[x]=new p(x,2,!1,x,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(x){E[x]=new p(x,3,!1,x.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(x){E[x]=new p(x,3,!0,x,null,!1,!1)}),["capture","download"].forEach(function(x){E[x]=new p(x,4,!1,x,null,!1,!1)}),["cols","rows","size","span"].forEach(function(x){E[x]=new p(x,6,!1,x,null,!1,!1)}),["rowSpan","start"].forEach(function(x){E[x]=new p(x,5,!1,x.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function C(x){return x[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(x){var T=x.replace(y,C);E[T]=new p(T,1,!1,x,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(x){var T=x.replace(y,C);E[T]=new p(T,1,!1,x,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(x){var T=x.replace(y,C);E[T]=new p(T,1,!1,x,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(x){E[x]=new p(x,1,!1,x.toLowerCase(),null,!1,!1)}),E.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(x){E[x]=new p(x,1,!1,x.toLowerCase(),null,!0,!0)});function w(x,T,_,H){var Z=E.hasOwnProperty(T)?E[T]:null,Ae=Z!==null?Z.type===0:H?!1:!(!(2<T.length)||T[0]!=="o"&&T[0]!=="O"||T[1]!=="n"&&T[1]!=="N");Ae||(g(T,_,Z,H)&&(_=null),H||Z===null?f(T)&&(_===null?x.removeAttribute(T):x.setAttribute(T,""+_)):Z.mustUseProperty?x[Z.propertyName]=_===null?Z.type===3?!1:"":_:(T=Z.attributeName,H=Z.attributeNamespace,_===null?x.removeAttribute(T):(Z=Z.type,_=Z===3||Z===4&&_===!0?"":""+_,H?x.setAttributeNS(H,T,_):x.setAttribute(T,_))))}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=60103,I=60106,S=60107,R=60108,b=60114,Q=60109,D=60110,F=60112,N=60113,k=60120,O=60115,P=60116,z=60121,j=60128,V=60129,L=60130,K=60131;if(typeof Symbol=="function"&&Symbol.for){var J=Symbol.for;M=J("react.element"),I=J("react.portal"),S=J("react.fragment"),R=J("react.strict_mode"),b=J("react.profiler"),Q=J("react.provider"),D=J("react.context"),F=J("react.forward_ref"),N=J("react.suspense"),k=J("react.suspense_list"),O=J("react.memo"),P=J("react.lazy"),z=J("react.block"),J("react.scope"),j=J("react.opaque.id"),V=J("react.debug_trace_mode"),L=J("react.offscreen"),K=J("react.legacy_hidden")}var Y=typeof Symbol=="function"&&Symbol.iterator;function W(x){return x===null||typeof x!="object"?null:(x=Y&&x[Y]||x["@@iterator"],typeof x=="function"?x:null)}var q;function ee(x){if(q===void 0)try{throw Error()}catch(_){var T=_.stack.trim().match(/\n( *(at )?)/);q=T&&T[1]||""}return`
`+q+x}var ae=!1;function ne(x,T){if(!x||ae)return"";ae=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(T)if(T=function(){throw Error()},Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(ot){var H=ot}Reflect.construct(x,[],T)}else{try{T.call()}catch(ot){H=ot}x.call(T.prototype)}else{try{throw Error()}catch(ot){H=ot}x()}}catch(ot){if(ot&&H&&typeof ot.stack=="string"){for(var Z=ot.stack.split(`
`),Ae=H.stack.split(`
`),me=Z.length-1,ze=Ae.length-1;1<=me&&0<=ze&&Z[me]!==Ae[ze];)ze--;for(;1<=me&&0<=ze;me--,ze--)if(Z[me]!==Ae[ze]){if(me!==1||ze!==1)do if(me--,ze--,0>ze||Z[me]!==Ae[ze])return`
`+Z[me].replace(" at new "," at ");while(1<=me&&0<=ze);break}}}finally{ae=!1,Error.prepareStackTrace=_}return(x=x?x.displayName||x.name:"")?ee(x):""}function ce(x){switch(x.tag){case 5:return ee(x.type);case 16:return ee("Lazy");case 13:return ee("Suspense");case 19:return ee("SuspenseList");case 0:case 2:case 15:return x=ne(x.type,!1),x;case 11:return x=ne(x.type.render,!1),x;case 22:return x=ne(x.type._render,!1),x;case 1:return x=ne(x.type,!0),x;default:return""}}function ue(x){if(x==null)return null;if(typeof x=="function")return x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case S:return"Fragment";case I:return"Portal";case b:return"Profiler";case R:return"StrictMode";case N:return"Suspense";case k:return"SuspenseList"}if(typeof x=="object")switch(x.$$typeof){case D:return(x.displayName||"Context")+".Consumer";case Q:return(x._context.displayName||"Context")+".Provider";case F:var T=x.render;return T=T.displayName||T.name||"",x.displayName||(T!==""?"ForwardRef("+T+")":"ForwardRef");case O:return ue(x.type);case z:return ue(x._render);case P:T=x._payload,x=x._init;try{return ue(x(T))}catch{}}return null}function ge(x){switch(typeof x){case"boolean":case"number":case"object":case"string":case"undefined":return x;default:return""}}function Se(x){var T=x.type;return(x=x.nodeName)&&x.toLowerCase()==="input"&&(T==="checkbox"||T==="radio")}function ye(x){var T=Se(x)?"checked":"value",_=Object.getOwnPropertyDescriptor(x.constructor.prototype,T),H=""+x[T];if(!x.hasOwnProperty(T)&&typeof _<"u"&&typeof _.get=="function"&&typeof _.set=="function"){var Z=_.get,Ae=_.set;return Object.defineProperty(x,T,{configurable:!0,get:function(){return Z.call(this)},set:function(me){H=""+me,Ae.call(this,me)}}),Object.defineProperty(x,T,{enumerable:_.enumerable}),{getValue:function(){return H},setValue:function(me){H=""+me},stopTracking:function(){x._valueTracker=null,delete x[T]}}}}function pe(x){x._valueTracker||(x._valueTracker=ye(x))}function Qe(x){if(!x)return!1;var T=x._valueTracker;if(!T)return!0;var _=T.getValue(),H="";return x&&(H=Se(x)?x.checked?"true":"false":x.value),x=H,x!==_?(T.setValue(x),!0):!1}function Ue(x){if(x=x||(typeof document<"u"?document:void 0),typeof x>"u")return null;try{return x.activeElement||x.body}catch{return x.body}}function tt(x,T){var _=T.checked;return t({},T,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:_??x._wrapperState.initialChecked})}function it(x,T){var _=T.defaultValue==null?"":T.defaultValue,H=T.checked!=null?T.checked:T.defaultChecked;_=ge(T.value!=null?T.value:_),x._wrapperState={initialChecked:H,initialValue:_,controlled:T.type==="checkbox"||T.type==="radio"?T.checked!=null:T.value!=null}}function we(x,T){T=T.checked,T!=null&&w(x,"checked",T,!1)}function ve(x,T){we(x,T);var _=ge(T.value),H=T.type;if(_!=null)H==="number"?(_===0&&x.value===""||x.value!=_)&&(x.value=""+_):x.value!==""+_&&(x.value=""+_);else if(H==="submit"||H==="reset"){x.removeAttribute("value");return}T.hasOwnProperty("value")?Be(x,T.type,_):T.hasOwnProperty("defaultValue")&&Be(x,T.type,ge(T.defaultValue)),T.checked==null&&T.defaultChecked!=null&&(x.defaultChecked=!!T.defaultChecked)}function Te(x,T,_){if(T.hasOwnProperty("value")||T.hasOwnProperty("defaultValue")){var H=T.type;if(!(H!=="submit"&&H!=="reset"||T.value!==void 0&&T.value!==null))return;T=""+x._wrapperState.initialValue,_||T===x.value||(x.value=T),x.defaultValue=T}_=x.name,_!==""&&(x.name=""),x.defaultChecked=!!x._wrapperState.initialChecked,_!==""&&(x.name=_)}function Be(x,T,_){(T!=="number"||Ue(x.ownerDocument)!==x)&&(_==null?x.defaultValue=""+x._wrapperState.initialValue:x.defaultValue!==""+_&&(x.defaultValue=""+_))}function Ge(x){var T="";return e.Children.forEach(x,function(_){_!=null&&(T+=_)}),T}function ht(x,T){return x=t({children:void 0},T),(T=Ge(T.children))&&(x.children=T),x}function We(x,T,_,H){if(x=x.options,T){T={};for(var Z=0;Z<_.length;Z++)T["$"+_[Z]]=!0;for(_=0;_<x.length;_++)Z=T.hasOwnProperty("$"+x[_].value),x[_].selected!==Z&&(x[_].selected=Z),Z&&H&&(x[_].defaultSelected=!0)}else{for(_=""+ge(_),T=null,Z=0;Z<x.length;Z++){if(x[Z].value===_){x[Z].selected=!0,H&&(x[Z].defaultSelected=!0);return}T!==null||x[Z].disabled||(T=x[Z])}T!==null&&(T.selected=!0)}}function Ke(x,T){if(T.dangerouslySetInnerHTML!=null)throw Error(n(91));return t({},T,{value:void 0,defaultValue:void 0,children:""+x._wrapperState.initialValue})}function Xe(x,T){var _=T.value;if(_==null){if(_=T.children,T=T.defaultValue,_!=null){if(T!=null)throw Error(n(92));if(Array.isArray(_)){if(!(1>=_.length))throw Error(n(93));_=_[0]}T=_}T==null&&(T=""),_=T}x._wrapperState={initialValue:ge(_)}}function $e(x,T){var _=ge(T.value),H=ge(T.defaultValue);_!=null&&(_=""+_,_!==x.value&&(x.value=_),T.defaultValue==null&&x.defaultValue!==_&&(x.defaultValue=_)),H!=null&&(x.defaultValue=""+H)}function pt(x){var T=x.textContent;T===x._wrapperState.initialValue&&T!==""&&T!==null&&(x.value=T)}var de={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Fe(x){switch(x){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function je(x,T){return x==null||x==="http://www.w3.org/1999/xhtml"?Fe(T):x==="http://www.w3.org/2000/svg"&&T==="foreignObject"?"http://www.w3.org/1999/xhtml":x}var et,xe=function(x){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(T,_,H,Z){MSApp.execUnsafeLocalFunction(function(){return x(T,_,H,Z)})}:x}(function(x,T){if(x.namespaceURI!==de.svg||"innerHTML"in x)x.innerHTML=T;else{for(et=et||document.createElement("div"),et.innerHTML="<svg>"+T.valueOf().toString()+"</svg>",T=et.firstChild;x.firstChild;)x.removeChild(x.firstChild);for(;T.firstChild;)x.appendChild(T.firstChild)}});function Ne(x,T){if(T){var _=x.firstChild;if(_&&_===x.lastChild&&_.nodeType===3){_.nodeValue=T;return}}x.textContent=T}var le={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},At=["Webkit","ms","Moz","O"];Object.keys(le).forEach(function(x){At.forEach(function(T){T=T+x.charAt(0).toUpperCase()+x.substring(1),le[T]=le[x]})});function Bt(x,T,_){return T==null||typeof T=="boolean"||T===""?"":_||typeof T!="number"||T===0||le.hasOwnProperty(x)&&le[x]?(""+T).trim():T+"px"}function G(x,T){x=x.style;for(var _ in T)if(T.hasOwnProperty(_)){var H=_.indexOf("--")===0,Z=Bt(_,T[_],H);_==="float"&&(_="cssFloat"),H?x.setProperty(_,Z):x[_]=Z}}var Ee=t({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ie(x,T){if(T){if(Ee[x]&&(T.children!=null||T.dangerouslySetInnerHTML!=null))throw Error(n(137,x));if(T.dangerouslySetInnerHTML!=null){if(T.children!=null)throw Error(n(60));if(!(typeof T.dangerouslySetInnerHTML=="object"&&"__html"in T.dangerouslySetInnerHTML))throw Error(n(61))}if(T.style!=null&&typeof T.style!="object")throw Error(n(62))}}function ie(x,T){if(x.indexOf("-")===-1)return typeof T.is=="string";switch(x){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function re(x){return x=x.target||x.srcElement||window,x.correspondingUseElement&&(x=x.correspondingUseElement),x.nodeType===3?x.parentNode:x}var he=null,Pe=null,be=null;function Ve(x){if(x=Em(x)){if(typeof he!="function")throw Error(n(280));var T=x.stateNode;T&&(T=M1(T),he(x.stateNode,x.type,T))}}function lt(x){Pe?be?be.push(x):be=[x]:Pe=x}function Ze(){if(Pe){var x=Pe,T=be;if(be=Pe=null,Ve(x),T)for(x=0;x<T.length;x++)Ve(T[x])}}function Le(x,T){return x(T)}function rt(x,T,_,H,Z){return x(T,_,H,Z)}function Qt(){}var Dt=Le,ur=!1,br=!1;function Er(){(Pe!==null||be!==null)&&(Qt(),Ze())}function hr(x,T,_){if(br)return x(T,_);br=!0;try{return Dt(x,T,_)}finally{br=!1,Er()}}function Wt(x,T){var _=x.stateNode;if(_===null)return null;var H=M1(_);if(H===null)return null;_=H[T];e:switch(T){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(H=!H.disabled)||(x=x.type,H=!(x==="button"||x==="input"||x==="select"||x==="textarea")),x=!H;break e;default:x=!1}if(x)return null;if(_&&typeof _!="function")throw Error(n(231,T,typeof _));return _}var $t=!1;if(l)try{var tr={};Object.defineProperty(tr,"passive",{get:function(){$t=!0}}),window.addEventListener("test",tr,tr),window.removeEventListener("test",tr,tr)}catch{$t=!1}function ir(x,T,_,H,Z,Ae,me,ze,ot){var Rt=Array.prototype.slice.call(arguments,3);try{T.apply(_,Rt)}catch(yr){this.onError(yr)}}var ar=!1,rr=null,Yt=!1,Vt=null,Ut={onError:function(x){ar=!0,rr=x}};function Mt(x,T,_,H,Z,Ae,me,ze,ot){ar=!1,rr=null,ir.apply(Ut,arguments)}function xt(x,T,_,H,Z,Ae,me,ze,ot){if(Mt.apply(this,arguments),ar){if(ar){var Rt=rr;ar=!1,rr=null}else throw Error(n(198));Yt||(Yt=!0,Vt=Rt)}}function Ft(x){var T=x,_=x;if(x.alternate)for(;T.return;)T=T.return;else{x=T;do T=x,(T.flags&1026)!==0&&(_=T.return),x=T.return;while(x)}return T.tag===3?_:null}function qt(x){if(x.tag===13){var T=x.memoizedState;if(T===null&&(x=x.alternate,x!==null&&(T=x.memoizedState)),T!==null)return T.dehydrated}return null}function gr(x){if(Ft(x)!==x)throw Error(n(188))}function Hr(x){var T=x.alternate;if(!T){if(T=Ft(x),T===null)throw Error(n(188));return T!==x?null:x}for(var _=x,H=T;;){var Z=_.return;if(Z===null)break;var Ae=Z.alternate;if(Ae===null){if(H=Z.return,H!==null){_=H;continue}break}if(Z.child===Ae.child){for(Ae=Z.child;Ae;){if(Ae===_)return gr(Z),x;if(Ae===H)return gr(Z),T;Ae=Ae.sibling}throw Error(n(188))}if(_.return!==H.return)_=Z,H=Ae;else{for(var me=!1,ze=Z.child;ze;){if(ze===_){me=!0,_=Z,H=Ae;break}if(ze===H){me=!0,H=Z,_=Ae;break}ze=ze.sibling}if(!me){for(ze=Ae.child;ze;){if(ze===_){me=!0,_=Ae,H=Z;break}if(ze===H){me=!0,H=Ae,_=Z;break}ze=ze.sibling}if(!me)throw Error(n(189))}}if(_.alternate!==H)throw Error(n(190))}if(_.tag!==3)throw Error(n(188));return _.stateNode.current===_?x:T}function zr(x){if(x=Hr(x),!x)return null;for(var T=x;;){if(T.tag===5||T.tag===6)return T;if(T.child)T.child.return=T,T=T.child;else{if(T===x)break;for(;!T.sibling;){if(!T.return||T.return===x)return null;T=T.return}T.sibling.return=T.return,T=T.sibling}}return null}function an(x,T){for(var _=x.alternate;T!==null;){if(T===x||T===_)return!0;T=T.return}return!1}var qe,ke,ut,gt,bt=!1,dt=[],se=null,Ce=null,fe=null,Me=new Map,Re=new Map,Oe=[],st="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ct(x,T,_,H,Z){return{blockedOn:x,domEventName:T,eventSystemFlags:_|16,nativeEvent:Z,targetContainers:[H]}}function St(x,T){switch(x){case"focusin":case"focusout":se=null;break;case"dragenter":case"dragleave":Ce=null;break;case"mouseover":case"mouseout":fe=null;break;case"pointerover":case"pointerout":Me.delete(T.pointerId);break;case"gotpointercapture":case"lostpointercapture":Re.delete(T.pointerId)}}function It(x,T,_,H,Z,Ae){return x===null||x.nativeEvent!==Ae?(x=Ct(T,_,H,Z,Ae),T!==null&&(T=Em(T),T!==null&&ke(T)),x):(x.eventSystemFlags|=H,T=x.targetContainers,Z!==null&&T.indexOf(Z)===-1&&T.push(Z),x)}function kt(x,T,_,H,Z){switch(T){case"focusin":return se=It(se,x,T,_,H,Z),!0;case"dragenter":return Ce=It(Ce,x,T,_,H,Z),!0;case"mouseover":return fe=It(fe,x,T,_,H,Z),!0;case"pointerover":var Ae=Z.pointerId;return Me.set(Ae,It(Me.get(Ae)||null,x,T,_,H,Z)),!0;case"gotpointercapture":return Ae=Z.pointerId,Re.set(Ae,It(Re.get(Ae)||null,x,T,_,H,Z)),!0}return!1}function nr(x){var T=Sd(x.target);if(T!==null){var _=Ft(T);if(_!==null){if(T=_.tag,T===13){if(T=qt(_),T!==null){x.blockedOn=T,gt(x.lanePriority,function(){r.unstable_runWithPriority(x.priority,function(){ut(_)})});return}}else if(T===3&&_.stateNode.hydrate){x.blockedOn=_.tag===3?_.stateNode.containerInfo:null;return}}}x.blockedOn=null}function Qr(x){if(x.blockedOn!==null)return!1;for(var T=x.targetContainers;0<T.length;){var _=Lh(x.domEventName,x.eventSystemFlags,T[0],x.nativeEvent);if(_!==null)return T=Em(_),T!==null&&ke(T),x.blockedOn=_,!1;T.shift()}return!0}function kr(x,T,_){Qr(x)&&_.delete(T)}function or(){for(bt=!1;0<dt.length;){var x=dt[0];if(x.blockedOn!==null){x=Em(x.blockedOn),x!==null&&qe(x);break}for(var T=x.targetContainers;0<T.length;){var _=Lh(x.domEventName,x.eventSystemFlags,T[0],x.nativeEvent);if(_!==null){x.blockedOn=_;break}T.shift()}x.blockedOn===null&&dt.shift()}se!==null&&Qr(se)&&(se=null),Ce!==null&&Qr(Ce)&&(Ce=null),fe!==null&&Qr(fe)&&(fe=null),Me.forEach(kr),Re.forEach(kr)}function vr(x,T){x.blockedOn===T&&(x.blockedOn=null,bt||(bt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,or)))}function Zt(x){function T(Z){return vr(Z,x)}if(0<dt.length){vr(dt[0],x);for(var _=1;_<dt.length;_++){var H=dt[_];H.blockedOn===x&&(H.blockedOn=null)}}for(se!==null&&vr(se,x),Ce!==null&&vr(Ce,x),fe!==null&&vr(fe,x),Me.forEach(T),Re.forEach(T),_=0;_<Oe.length;_++)H=Oe[_],H.blockedOn===x&&(H.blockedOn=null);for(;0<Oe.length&&(_=Oe[0],_.blockedOn===null);)nr(_),_.blockedOn===null&&Oe.shift()}function gn(x,T){var _={};return _[x.toLowerCase()]=T.toLowerCase(),_["Webkit"+x]="webkit"+T,_["Moz"+x]="moz"+T,_}var pn={animationend:gn("Animation","AnimationEnd"),animationiteration:gn("Animation","AnimationIteration"),animationstart:gn("Animation","AnimationStart"),transitionend:gn("Transition","TransitionEnd")},Yr={},Di={};l&&(Di=document.createElement("div").style,"AnimationEvent"in window||(delete pn.animationend.animation,delete pn.animationiteration.animation,delete pn.animationstart.animation),"TransitionEvent"in window||delete pn.transitionend.transition);function qn(x){if(Yr[x])return Yr[x];if(!pn[x])return x;var T=pn[x],_;for(_ in T)if(T.hasOwnProperty(_)&&_ in Di)return Yr[x]=T[_];return x}var Je=qn("animationend"),Et=qn("animationiteration"),vt=qn("animationstart"),Ot=qn("transitionend"),Br=new Map,dr=new Map,yn=["abort","abort",Je,"animationEnd",Et,"animationIteration",vt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ot,"transitionEnd","waiting","waiting"];function kn(x,T){for(var _=0;_<x.length;_+=2){var H=x[_],Z=x[_+1];Z="on"+(Z[0].toUpperCase()+Z.slice(1)),dr.set(H,T),Br.set(H,Z),o(Z,[H])}}var Aa=r.unstable_now;Aa();var Wr=8;function Ea(x){if((1&x)!==0)return Wr=15,1;if((2&x)!==0)return Wr=14,2;if((4&x)!==0)return Wr=13,4;var T=24&x;return T!==0?(Wr=12,T):(x&32)!==0?(Wr=11,32):(T=192&x,T!==0?(Wr=10,T):(x&256)!==0?(Wr=9,256):(T=3584&x,T!==0?(Wr=8,T):(x&4096)!==0?(Wr=7,4096):(T=4186112&x,T!==0?(Wr=6,T):(T=62914560&x,T!==0?(Wr=5,T):x&67108864?(Wr=4,67108864):(x&134217728)!==0?(Wr=3,134217728):(T=805306368&x,T!==0?(Wr=2,T):(1073741824&x)!==0?(Wr=1,1073741824):(Wr=8,x))))))}function Fi(x){switch(x){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Ja(x){switch(x){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(n(358,x))}}function ba(x,T){var _=x.pendingLanes;if(_===0)return Wr=0;var H=0,Z=0,Ae=x.expiredLanes,me=x.suspendedLanes,ze=x.pingedLanes;if(Ae!==0)H=Ae,Z=Wr=15;else if(Ae=_&134217727,Ae!==0){var ot=Ae&~me;ot!==0?(H=Ea(ot),Z=Wr):(ze&=Ae,ze!==0&&(H=Ea(ze),Z=Wr))}else Ae=_&~me,Ae!==0?(H=Ea(Ae),Z=Wr):ze!==0&&(H=Ea(ze),Z=Wr);if(H===0)return 0;if(H=31-_i(H),H=_&((0>H?0:1<<H)<<1)-1,T!==0&&T!==H&&(T&me)===0){if(Ea(T),Z<=Wr)return T;Wr=Z}if(T=x.entangledLanes,T!==0)for(x=x.entanglements,T&=H;0<T;)_=31-_i(T),Z=1<<_,H|=x[_],T&=~Z;return H}function gi(x){return x=x.pendingLanes&-1073741825,x!==0?x:x&1073741824?1073741824:0}function Ji(x,T){switch(x){case 15:return 1;case 14:return 2;case 12:return x=Wa(24&~T),x===0?Ji(10,T):x;case 10:return x=Wa(192&~T),x===0?Ji(8,T):x;case 8:return x=Wa(3584&~T),x===0&&(x=Wa(4186112&~T),x===0&&(x=512)),x;case 2:return T=Wa(805306368&~T),T===0&&(T=268435456),T}throw Error(n(358,x))}function Wa(x){return x&-x}function uo(x){for(var T=[],_=0;31>_;_++)T.push(x);return T}function KA(x,T,_){x.pendingLanes|=T;var H=T-1;x.suspendedLanes&=H,x.pingedLanes&=H,x=x.eventTimes,T=31-_i(T),x[T]=_}var _i=Math.clz32?Math.clz32:g1,Gc=Math.log,h1=Math.LN2;function g1(x){return x===0?32:31-(Gc(x)/h1|0)|0}var p1=r.unstable_UserBlockingPriority,U2=r.unstable_runWithPriority,Md=!0;function H2(x,T,_,H){ur||Qt();var Z=Yh,Ae=ur;ur=!0;try{rt(Z,x,T,_,H)}finally{(ur=Ae)||Er()}}function v1(x,T,_,H){U2(p1,Yh.bind(null,x,T,_,H))}function Yh(x,T,_,H){if(Md){var Z;if((Z=(T&4)===0)&&0<dt.length&&-1<st.indexOf(x))x=Ct(null,x,T,_,H),dt.push(x);else{var Ae=Lh(x,T,_,H);if(Ae===null)Z&&St(x,H);else{if(Z){if(-1<st.indexOf(x)){x=Ct(Ae,x,T,_,H),dt.push(x);return}if(kt(Ae,x,T,_,H))return;St(x,H)}C7(x,T,H,null,_)}}}}function Lh(x,T,_,H){var Z=re(H);if(Z=Sd(Z),Z!==null){var Ae=Ft(Z);if(Ae===null)Z=null;else{var me=Ae.tag;if(me===13){if(Z=qt(Ae),Z!==null)return Z;Z=null}else if(me===3){if(Ae.stateNode.hydrate)return Ae.tag===3?Ae.stateNode.containerInfo:null;Z=null}else Ae!==Z&&(Z=null)}}return C7(x,T,H,Z,_),null}var Wl=null,lm=null,Uh=null;function m1(){if(Uh)return Uh;var x,T=lm,_=T.length,H,Z="value"in Wl?Wl.value:Wl.textContent,Ae=Z.length;for(x=0;x<_&&T[x]===Z[x];x++);var me=_-x;for(H=1;H<=me&&T[_-H]===Z[Ae-H];H++);return Uh=Z.slice(x,1<H?1-H:void 0)}function Hh(x){var T=x.keyCode;return"charCode"in x?(x=x.charCode,x===0&&T===13&&(x=13)):x=T,x===10&&(x=13),32<=x||x===13?x:0}function Gh(){return!0}function Kh(){return!1}function Sa(x){function T(_,H,Z,Ae,me){this._reactName=_,this._targetInst=Z,this.type=H,this.nativeEvent=Ae,this.target=me,this.currentTarget=null;for(var ze in x)x.hasOwnProperty(ze)&&(_=x[ze],this[ze]=_?_(Ae):Ae[ze]);return this.isDefaultPrevented=(Ae.defaultPrevented!=null?Ae.defaultPrevented:Ae.returnValue===!1)?Gh:Kh,this.isPropagationStopped=Kh,this}return t(T.prototype,{preventDefault:function(){this.defaultPrevented=!0;var _=this.nativeEvent;_&&(_.preventDefault?_.preventDefault():typeof _.returnValue!="unknown"&&(_.returnValue=!1),this.isDefaultPrevented=Gh)},stopPropagation:function(){var _=this.nativeEvent;_&&(_.stopPropagation?_.stopPropagation():typeof _.cancelBubble!="unknown"&&(_.cancelBubble=!0),this.isPropagationStopped=Gh)},persist:function(){},isPersistent:Gh}),T}var VA={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(x){return x.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Am=Sa(VA),xd=t({},VA,{view:0,detail:0}),G2=Sa(xd),cm,Vh,Kc,Id=t({},xd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pi,button:0,buttons:0,relatedTarget:function(x){return x.relatedTarget===void 0?x.fromElement===x.srcElement?x.toElement:x.fromElement:x.relatedTarget},movementX:function(x){return"movementX"in x?x.movementX:(x!==Kc&&(Kc&&x.type==="mousemove"?(cm=x.screenX-Kc.screenX,Vh=x.screenY-Kc.screenY):Vh=cm=0,Kc=x),cm)},movementY:function(x){return"movementY"in x?x.movementY:Vh}}),Jh=Sa(Id),um=t({},Id,{dataTransfer:0}),K2=Sa(um),V2=t({},xd,{relatedTarget:0}),Gr=Sa(V2),Ar=t({},VA,{animationName:0,elapsedTime:0,pseudoElement:0}),Dr=Sa(Ar),hn=t({},VA,{clipboardData:function(x){return"clipboardData"in x?x.clipboardData:window.clipboardData}}),ya=Sa(hn),JA=t({},VA,{data:0}),hs=Sa(JA),Yo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gs={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Zs={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bd(x){var T=this.nativeEvent;return T.getModifierState?T.getModifierState(x):(x=Zs[x])?!!T[x]:!1}function pi(){return bd}var oRe=t({},xd,{key:function(x){if(x.key){var T=Yo[x.key]||x.key;if(T!=="Unidentified")return T}return x.type==="keypress"?(x=Hh(x),x===13?"Enter":String.fromCharCode(x)):x.type==="keydown"||x.type==="keyup"?gs[x.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pi,charCode:function(x){return x.type==="keypress"?Hh(x):0},keyCode:function(x){return x.type==="keydown"||x.type==="keyup"?x.keyCode:0},which:function(x){return x.type==="keypress"?Hh(x):x.type==="keydown"||x.type==="keyup"?x.keyCode:0}}),sRe=Sa(oRe),lRe=t({},Id,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),q6=Sa(lRe),ARe=t({},xd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pi}),cRe=Sa(ARe),uRe=t({},VA,{propertyName:0,elapsedTime:0,pseudoElement:0}),dRe=Sa(uRe),fRe=t({},Id,{deltaX:function(x){return"deltaX"in x?x.deltaX:"wheelDeltaX"in x?-x.wheelDeltaX:0},deltaY:function(x){return"deltaY"in x?x.deltaY:"wheelDeltaY"in x?-x.wheelDeltaY:"wheelDelta"in x?-x.wheelDelta:0},deltaZ:0,deltaMode:0}),hRe=Sa(fRe),gRe=[9,13,27,32],J2=l&&"CompositionEvent"in window,dm=null;l&&"documentMode"in document&&(dm=document.documentMode);var pRe=l&&"TextEvent"in window&&!dm,Z6=l&&(!J2||dm&&8<dm&&11>=dm),$6=" ",e7=!1;function t7(x,T){switch(x){case"keyup":return gRe.indexOf(T.keyCode)!==-1;case"keydown":return T.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function r7(x){return x=x.detail,typeof x=="object"&&"data"in x?x.data:null}var Wh=!1;function vRe(x,T){switch(x){case"compositionend":return r7(T);case"keypress":return T.which!==32?null:(e7=!0,$6);case"textInput":return x=T.data,x===$6&&e7?null:x;default:return null}}function mRe(x,T){if(Wh)return x==="compositionend"||!J2&&t7(x,T)?(x=m1(),Uh=lm=Wl=null,Wh=!1,x):null;switch(x){case"paste":return null;case"keypress":if(!(T.ctrlKey||T.altKey||T.metaKey)||T.ctrlKey&&T.altKey){if(T.char&&1<T.char.length)return T.char;if(T.which)return String.fromCharCode(T.which)}return null;case"compositionend":return Z6&&T.locale!=="ko"?null:T.data;default:return null}}var ERe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function n7(x){var T=x&&x.nodeName&&x.nodeName.toLowerCase();return T==="input"?!!ERe[x.type]:T==="textarea"}function a7(x,T,_,H){lt(H),T=y1(T,"onChange"),0<T.length&&(_=new Am("onChange","change",null,_,H),x.push({event:_,listeners:T}))}var fm=null,hm=null;function yRe(x){p7(x,0)}function E1(x){var T=eg(x);if(Qe(T))return x}function CRe(x,T){if(x==="change")return T}var i7=!1;if(l){var W2;if(l){var X2="oninput"in document;if(!X2){var o7=document.createElement("div");o7.setAttribute("oninput","return;"),X2=typeof o7.oninput=="function"}W2=X2}else W2=!1;i7=W2&&(!document.documentMode||9<document.documentMode)}function s7(){fm&&(fm.detachEvent("onpropertychange",l7),hm=fm=null)}function l7(x){if(x.propertyName==="value"&&E1(hm)){var T=[];if(a7(T,hm,x,re(x)),x=yRe,ur)x(T);else{ur=!0;try{Le(x,T)}finally{ur=!1,Er()}}}}function wRe(x,T,_){x==="focusin"?(s7(),fm=T,hm=_,fm.attachEvent("onpropertychange",l7)):x==="focusout"&&s7()}function BRe(x){if(x==="selectionchange"||x==="keyup"||x==="keydown")return E1(hm)}function MRe(x,T){if(x==="click")return E1(T)}function xRe(x,T){if(x==="input"||x==="change")return E1(T)}function IRe(x,T){return x===T&&(x!==0||1/x===1/T)||x!==x&&T!==T}var ps=typeof Object.is=="function"?Object.is:IRe,bRe=Object.prototype.hasOwnProperty;function gm(x,T){if(ps(x,T))return!0;if(typeof x!="object"||x===null||typeof T!="object"||T===null)return!1;var _=Object.keys(x),H=Object.keys(T);if(_.length!==H.length)return!1;for(H=0;H<_.length;H++)if(!bRe.call(T,_[H])||!ps(x[_[H]],T[_[H]]))return!1;return!0}function A7(x){for(;x&&x.firstChild;)x=x.firstChild;return x}function c7(x,T){var _=A7(x);x=0;for(var H;_;){if(_.nodeType===3){if(H=x+_.textContent.length,x<=T&&H>=T)return{node:_,offset:T-x};x=H}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=A7(_)}}function u7(x,T){return x&&T?x===T?!0:x&&x.nodeType===3?!1:T&&T.nodeType===3?u7(x,T.parentNode):"contains"in x?x.contains(T):x.compareDocumentPosition?!!(x.compareDocumentPosition(T)&16):!1:!1}function d7(){for(var x=window,T=Ue();T instanceof x.HTMLIFrameElement;){try{var _=typeof T.contentWindow.location.href=="string"}catch{_=!1}if(_)x=T.contentWindow;else break;T=Ue(x.document)}return T}function q2(x){var T=x&&x.nodeName&&x.nodeName.toLowerCase();return T&&(T==="input"&&(x.type==="text"||x.type==="search"||x.type==="tel"||x.type==="url"||x.type==="password")||T==="textarea"||x.contentEditable==="true")}var SRe=l&&"documentMode"in document&&11>=document.documentMode,Xh=null,Z2=null,pm=null,$2=!1;function f7(x,T,_){var H=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;$2||Xh==null||Xh!==Ue(H)||(H=Xh,"selectionStart"in H&&q2(H)?H={start:H.selectionStart,end:H.selectionEnd}:(H=(H.ownerDocument&&H.ownerDocument.defaultView||window).getSelection(),H={anchorNode:H.anchorNode,anchorOffset:H.anchorOffset,focusNode:H.focusNode,focusOffset:H.focusOffset}),pm&&gm(pm,H)||(pm=H,H=y1(Z2,"onSelect"),0<H.length&&(T=new Am("onSelect","select",null,T,_),x.push({event:T,listeners:H}),T.target=Xh)))}kn("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),kn("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),kn(yn,2);for(var h7="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),eT=0;eT<h7.length;eT++)dr.set(h7[eT],0);s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vm="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),RRe=new Set("cancel close invalid load scroll toggle".split(" ").concat(vm));function g7(x,T,_){var H=x.type||"unknown-event";x.currentTarget=_,xt(H,T,void 0,x),x.currentTarget=null}function p7(x,T){T=(T&4)!==0;for(var _=0;_<x.length;_++){var H=x[_],Z=H.event;H=H.listeners;e:{var Ae=void 0;if(T)for(var me=H.length-1;0<=me;me--){var ze=H[me],ot=ze.instance,Rt=ze.currentTarget;if(ze=ze.listener,ot!==Ae&&Z.isPropagationStopped())break e;g7(Z,ze,Rt),Ae=ot}else for(me=0;me<H.length;me++){if(ze=H[me],ot=ze.instance,Rt=ze.currentTarget,ze=ze.listener,ot!==Ae&&Z.isPropagationStopped())break e;g7(Z,ze,Rt),Ae=ot}}}if(Yt)throw x=Vt,Yt=!1,Vt=null,x}function ea(x,T){var _=b7(T),H=x+"__bubble";_.has(H)||(y7(T,x,2,!1),_.add(H))}var v7="_reactListening"+Math.random().toString(36).slice(2);function m7(x){x[v7]||(x[v7]=!0,a.forEach(function(T){RRe.has(T)||E7(T,!1,x,null),E7(T,!0,x,null)}))}function E7(x,T,_,H){var Z=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,Ae=_;x==="selectionchange"&&_.nodeType!==9&&(Ae=_.ownerDocument);var me=b7(Ae),ze=x+"__"+(T?"capture":"bubble");me.has(ze)||(T&&(Z|=4),y7(Ae,x,Z,T),me.add(ze))}function y7(x,T,_,H){var Z=dr.get(T);switch(Z===void 0?2:Z){case 0:Z=H2;break;case 1:Z=v1;break;default:Z=Yh}_=Z.bind(null,T,_,x),Z=void 0,!$t||T!=="touchstart"&&T!=="touchmove"&&T!=="wheel"||(Z=!0),H?Z!==void 0?x.addEventListener(T,_,{capture:!0,passive:Z}):x.addEventListener(T,_,!0):Z!==void 0?x.addEventListener(T,_,{passive:Z}):x.addEventListener(T,_,!1)}function C7(x,T,_,H,Z){var Ae=H;if((T&1)===0&&(T&2)===0&&H!==null)e:for(;;){if(H===null)return;var me=H.tag;if(me===3||me===4){var ze=H.stateNode.containerInfo;if(ze===Z||ze.nodeType===8&&ze.parentNode===Z)break;if(me===4)for(me=H.return;me!==null;){var ot=me.tag;if((ot===3||ot===4)&&(ot=me.stateNode.containerInfo,ot===Z||ot.nodeType===8&&ot.parentNode===Z))return;me=me.return}for(;ze!==null;){if(me=Sd(ze),me===null)return;if(ot=me.tag,ot===5||ot===6){H=Ae=me;continue e}ze=ze.parentNode}}H=H.return}hr(function(){var Rt=Ae,yr=re(_),Xr=[];e:{var Jt=Br.get(x);if(Jt!==void 0){var _r=Am,Vr=x;switch(x){case"keypress":if(Hh(_)===0)break e;case"keydown":case"keyup":_r=sRe;break;case"focusin":Vr="focus",_r=Gr;break;case"focusout":Vr="blur",_r=Gr;break;case"beforeblur":case"afterblur":_r=Gr;break;case"click":if(_.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_r=Jh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_r=K2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_r=cRe;break;case Je:case Et:case vt:_r=Dr;break;case Ot:_r=dRe;break;case"scroll":_r=G2;break;case"wheel":_r=hRe;break;case"copy":case"cut":case"paste":_r=ya;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_r=q6}var Lr=(T&4)!==0,wt=!Lr&&x==="scroll",ct=Lr?Jt!==null?Jt+"Capture":null:Jt;Lr=[];for(var yt=Rt,zt;yt!==null;){zt=yt;var Lt=zt.stateNode;if(zt.tag===5&&Lt!==null&&(zt=Lt,ct!==null&&(Lt=Wt(yt,ct),Lt!=null&&Lr.push(mm(yt,Lt,zt)))),wt)break;yt=yt.return}0<Lr.length&&(Jt=new _r(Jt,Vr,null,_,yr),Xr.push({event:Jt,listeners:Lr}))}}if((T&7)===0){e:{if(Jt=x==="mouseover"||x==="pointerover",_r=x==="mouseout"||x==="pointerout",Jt&&(T&16)===0&&(Vr=_.relatedTarget||_.fromElement)&&(Sd(Vr)||Vr[$h]))break e;if((_r||Jt)&&(Jt=yr.window===yr?yr:(Jt=yr.ownerDocument)?Jt.defaultView||Jt.parentWindow:window,_r?(Vr=_.relatedTarget||_.toElement,_r=Rt,Vr=Vr?Sd(Vr):null,Vr!==null&&(wt=Ft(Vr),Vr!==wt||Vr.tag!==5&&Vr.tag!==6)&&(Vr=null)):(_r=null,Vr=Rt),_r!==Vr)){if(Lr=Jh,Lt="onMouseLeave",ct="onMouseEnter",yt="mouse",(x==="pointerout"||x==="pointerover")&&(Lr=q6,Lt="onPointerLeave",ct="onPointerEnter",yt="pointer"),wt=_r==null?Jt:eg(_r),zt=Vr==null?Jt:eg(Vr),Jt=new Lr(Lt,yt+"leave",_r,_,yr),Jt.target=wt,Jt.relatedTarget=zt,Lt=null,Sd(yr)===Rt&&(Lr=new Lr(ct,yt+"enter",Vr,_,yr),Lr.target=zt,Lr.relatedTarget=wt,Lt=Lr),wt=Lt,_r&&Vr)t:{for(Lr=_r,ct=Vr,yt=0,zt=Lr;zt;zt=qh(zt))yt++;for(zt=0,Lt=ct;Lt;Lt=qh(Lt))zt++;for(;0<yt-zt;)Lr=qh(Lr),yt--;for(;0<zt-yt;)ct=qh(ct),zt--;for(;yt--;){if(Lr===ct||ct!==null&&Lr===ct.alternate)break t;Lr=qh(Lr),ct=qh(ct)}Lr=null}else Lr=null;_r!==null&&w7(Xr,Jt,_r,Lr,!1),Vr!==null&&wt!==null&&w7(Xr,wt,Vr,Lr,!0)}}e:{if(Jt=Rt?eg(Rt):window,_r=Jt.nodeName&&Jt.nodeName.toLowerCase(),_r==="select"||_r==="input"&&Jt.type==="file")var tn=CRe;else if(n7(Jt))if(i7)tn=xRe;else{tn=BRe;var Sr=wRe}else(_r=Jt.nodeName)&&_r.toLowerCase()==="input"&&(Jt.type==="checkbox"||Jt.type==="radio")&&(tn=MRe);if(tn&&(tn=tn(x,Rt))){a7(Xr,tn,_,yr);break e}Sr&&Sr(x,Jt,Rt),x==="focusout"&&(Sr=Jt._wrapperState)&&Sr.controlled&&Jt.type==="number"&&Be(Jt,"number",Jt.value)}switch(Sr=Rt?eg(Rt):window,x){case"focusin":(n7(Sr)||Sr.contentEditable==="true")&&(Xh=Sr,Z2=Rt,pm=null);break;case"focusout":pm=Z2=Xh=null;break;case"mousedown":$2=!0;break;case"contextmenu":case"mouseup":case"dragend":$2=!1,f7(Xr,_,yr);break;case"selectionchange":if(SRe)break;case"keydown":case"keyup":f7(Xr,_,yr)}var rn;if(J2)e:{switch(x){case"compositionstart":var vn="onCompositionStart";break e;case"compositionend":vn="onCompositionEnd";break e;case"compositionupdate":vn="onCompositionUpdate";break e}vn=void 0}else Wh?t7(x,_)&&(vn="onCompositionEnd"):x==="keydown"&&_.keyCode===229&&(vn="onCompositionStart");vn&&(Z6&&_.locale!=="ko"&&(Wh||vn!=="onCompositionStart"?vn==="onCompositionEnd"&&Wh&&(rn=m1()):(Wl=yr,lm="value"in Wl?Wl.value:Wl.textContent,Wh=!0)),Sr=y1(Rt,vn),0<Sr.length&&(vn=new hs(vn,x,null,_,yr),Xr.push({event:vn,listeners:Sr}),rn?vn.data=rn:(rn=r7(_),rn!==null&&(vn.data=rn)))),(rn=pRe?vRe(x,_):mRe(x,_))&&(Rt=y1(Rt,"onBeforeInput"),0<Rt.length&&(yr=new hs("onBeforeInput","beforeinput",null,_,yr),Xr.push({event:yr,listeners:Rt}),yr.data=rn))}p7(Xr,T)})}function mm(x,T,_){return{instance:x,listener:T,currentTarget:_}}function y1(x,T){for(var _=T+"Capture",H=[];x!==null;){var Z=x,Ae=Z.stateNode;Z.tag===5&&Ae!==null&&(Z=Ae,Ae=Wt(x,_),Ae!=null&&H.unshift(mm(x,Ae,Z)),Ae=Wt(x,T),Ae!=null&&H.push(mm(x,Ae,Z))),x=x.return}return H}function qh(x){if(x===null)return null;do x=x.return;while(x&&x.tag!==5);return x||null}function w7(x,T,_,H,Z){for(var Ae=T._reactName,me=[];_!==null&&_!==H;){var ze=_,ot=ze.alternate,Rt=ze.stateNode;if(ot!==null&&ot===H)break;ze.tag===5&&Rt!==null&&(ze=Rt,Z?(ot=Wt(_,Ae),ot!=null&&me.unshift(mm(_,ot,ze))):Z||(ot=Wt(_,Ae),ot!=null&&me.push(mm(_,ot,ze)))),_=_.return}me.length!==0&&x.push({event:T,listeners:me})}function C1(){}var tT=null,rT=null;function B7(x,T){switch(x){case"button":case"input":case"select":case"textarea":return!!T.autoFocus}return!1}function nT(x,T){return x==="textarea"||x==="option"||x==="noscript"||typeof T.children=="string"||typeof T.children=="number"||typeof T.dangerouslySetInnerHTML=="object"&&T.dangerouslySetInnerHTML!==null&&T.dangerouslySetInnerHTML.__html!=null}var M7=typeof setTimeout=="function"?setTimeout:void 0,TRe=typeof clearTimeout=="function"?clearTimeout:void 0;function aT(x){x.nodeType===1?x.textContent="":x.nodeType===9&&(x=x.body,x!=null&&(x.textContent=""))}function Zh(x){for(;x!=null;x=x.nextSibling){var T=x.nodeType;if(T===1||T===3)break}return x}function x7(x){x=x.previousSibling;for(var T=0;x;){if(x.nodeType===8){var _=x.data;if(_==="$"||_==="$!"||_==="$?"){if(T===0)return x;T--}else _==="/$"&&T++}x=x.previousSibling}return null}var iT=0;function QRe(x){return{$$typeof:j,toString:x,valueOf:x}}var w1=Math.random().toString(36).slice(2),Vc="__reactFiber$"+w1,B1="__reactProps$"+w1,$h="__reactContainer$"+w1,I7="__reactEvents$"+w1;function Sd(x){var T=x[Vc];if(T)return T;for(var _=x.parentNode;_;){if(T=_[$h]||_[Vc]){if(_=T.alternate,T.child!==null||_!==null&&_.child!==null)for(x=x7(x);x!==null;){if(_=x[Vc])return _;x=x7(x)}return T}x=_,_=x.parentNode}return null}function Em(x){return x=x[Vc]||x[$h],!x||x.tag!==5&&x.tag!==6&&x.tag!==13&&x.tag!==3?null:x}function eg(x){if(x.tag===5||x.tag===6)return x.stateNode;throw Error(n(33))}function M1(x){return x[B1]||null}function b7(x){var T=x[I7];return T===void 0&&(T=x[I7]=new Set),T}var oT=[],tg=-1;function Jc(x){return{current:x}}function ta(x){0>tg||(x.current=oT[tg],oT[tg]=null,tg--)}function Ra(x,T){tg++,oT[tg]=x.current,x.current=T}var Wc={},Ni=Jc(Wc),fo=Jc(!1),Rd=Wc;function rg(x,T){var _=x.type.contextTypes;if(!_)return Wc;var H=x.stateNode;if(H&&H.__reactInternalMemoizedUnmaskedChildContext===T)return H.__reactInternalMemoizedMaskedChildContext;var Z={},Ae;for(Ae in _)Z[Ae]=T[Ae];return H&&(x=x.stateNode,x.__reactInternalMemoizedUnmaskedChildContext=T,x.__reactInternalMemoizedMaskedChildContext=Z),Z}function ho(x){return x=x.childContextTypes,x!=null}function x1(){ta(fo),ta(Ni)}function S7(x,T,_){if(Ni.current!==Wc)throw Error(n(168));Ra(Ni,T),Ra(fo,_)}function R7(x,T,_){var H=x.stateNode;if(x=T.childContextTypes,typeof H.getChildContext!="function")return _;H=H.getChildContext();for(var Z in H)if(!(Z in x))throw Error(n(108,ue(T)||"Unknown",Z));return t({},_,H)}function I1(x){return x=(x=x.stateNode)&&x.__reactInternalMemoizedMergedChildContext||Wc,Rd=Ni.current,Ra(Ni,x),Ra(fo,fo.current),!0}function T7(x,T,_){var H=x.stateNode;if(!H)throw Error(n(169));_?(x=R7(x,T,Rd),H.__reactInternalMemoizedMergedChildContext=x,ta(fo),ta(Ni),Ra(Ni,x)):ta(fo),Ra(fo,_)}var sT=null,Td=null,DRe=r.unstable_runWithPriority,lT=r.unstable_scheduleCallback,AT=r.unstable_cancelCallback,FRe=r.unstable_shouldYield,Q7=r.unstable_requestPaint,cT=r.unstable_now,_Re=r.unstable_getCurrentPriorityLevel,b1=r.unstable_ImmediatePriority,D7=r.unstable_UserBlockingPriority,F7=r.unstable_NormalPriority,_7=r.unstable_LowPriority,N7=r.unstable_IdlePriority,uT={},NRe=Q7!==void 0?Q7:function(){},WA=null,S1=null,dT=!1,k7=cT(),ki=1e4>k7?cT:function(){return cT()-k7};function ng(){switch(_Re()){case b1:return 99;case D7:return 98;case F7:return 97;case _7:return 96;case N7:return 95;default:throw Error(n(332))}}function P7(x){switch(x){case 99:return b1;case 98:return D7;case 97:return F7;case 96:return _7;case 95:return N7;default:throw Error(n(332))}}function Qd(x,T){return x=P7(x),DRe(x,T)}function ym(x,T,_){return x=P7(x),lT(x,T,_)}function Xl(){if(S1!==null){var x=S1;S1=null,AT(x)}O7()}function O7(){if(!dT&&WA!==null){dT=!0;var x=0;try{var T=WA;Qd(99,function(){for(;x<T.length;x++){var _=T[x];do _=_(!0);while(_!==null)}}),WA=null}catch(_){throw WA!==null&&(WA=WA.slice(x+1)),lT(b1,Xl),_}finally{dT=!1}}}var kRe=B.ReactCurrentBatchConfig;function $s(x,T){if(x&&x.defaultProps){T=t({},T),x=x.defaultProps;for(var _ in x)T[_]===void 0&&(T[_]=x[_]);return T}return T}var R1=Jc(null),T1=null,ag=null,Q1=null;function fT(){Q1=ag=T1=null}function hT(x){var T=R1.current;ta(R1),x.type._context._currentValue=T}function z7(x,T){for(;x!==null;){var _=x.alternate;if((x.childLanes&T)===T){if(_===null||(_.childLanes&T)===T)break;_.childLanes|=T}else x.childLanes|=T,_!==null&&(_.childLanes|=T);x=x.return}}function ig(x,T){T1=x,Q1=ag=null,x=x.dependencies,x!==null&&x.firstContext!==null&&((x.lanes&T)!==0&&(el=!0),x.firstContext=null)}function vs(x,T){if(Q1!==x&&T!==!1&&T!==0)if((typeof T!="number"||T===1073741823)&&(Q1=x,T=1073741823),T={context:x,observedBits:T,next:null},ag===null){if(T1===null)throw Error(n(308));ag=T,T1.dependencies={lanes:0,firstContext:T,responders:null}}else ag=ag.next=T;return x._currentValue}var Xc=!1;function gT(x){x.updateQueue={baseState:x.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function j7(x,T){x=x.updateQueue,T.updateQueue===x&&(T.updateQueue={baseState:x.baseState,firstBaseUpdate:x.firstBaseUpdate,lastBaseUpdate:x.lastBaseUpdate,shared:x.shared,effects:x.effects})}function qc(x,T){return{eventTime:x,lane:T,tag:0,payload:null,callback:null,next:null}}function Zc(x,T){if(x=x.updateQueue,x!==null){x=x.shared;var _=x.pending;_===null?T.next=T:(T.next=_.next,_.next=T),x.pending=T}}function Y7(x,T){var _=x.updateQueue,H=x.alternate;if(H!==null&&(H=H.updateQueue,_===H)){var Z=null,Ae=null;if(_=_.firstBaseUpdate,_!==null){do{var me={eventTime:_.eventTime,lane:_.lane,tag:_.tag,payload:_.payload,callback:_.callback,next:null};Ae===null?Z=Ae=me:Ae=Ae.next=me,_=_.next}while(_!==null);Ae===null?Z=Ae=T:Ae=Ae.next=T}else Z=Ae=T;_={baseState:H.baseState,firstBaseUpdate:Z,lastBaseUpdate:Ae,shared:H.shared,effects:H.effects},x.updateQueue=_;return}x=_.lastBaseUpdate,x===null?_.firstBaseUpdate=T:x.next=T,_.lastBaseUpdate=T}function Cm(x,T,_,H){var Z=x.updateQueue;Xc=!1;var Ae=Z.firstBaseUpdate,me=Z.lastBaseUpdate,ze=Z.shared.pending;if(ze!==null){Z.shared.pending=null;var ot=ze,Rt=ot.next;ot.next=null,me===null?Ae=Rt:me.next=Rt,me=ot;var yr=x.alternate;if(yr!==null){yr=yr.updateQueue;var Xr=yr.lastBaseUpdate;Xr!==me&&(Xr===null?yr.firstBaseUpdate=Rt:Xr.next=Rt,yr.lastBaseUpdate=ot)}}if(Ae!==null){Xr=Z.baseState,me=0,yr=Rt=ot=null;do{ze=Ae.lane;var Jt=Ae.eventTime;if((H&ze)===ze){yr!==null&&(yr=yr.next={eventTime:Jt,lane:0,tag:Ae.tag,payload:Ae.payload,callback:Ae.callback,next:null});e:{var _r=x,Vr=Ae;switch(ze=T,Jt=_,Vr.tag){case 1:if(_r=Vr.payload,typeof _r=="function"){Xr=_r.call(Jt,Xr,ze);break e}Xr=_r;break e;case 3:_r.flags=_r.flags&-4097|64;case 0:if(_r=Vr.payload,ze=typeof _r=="function"?_r.call(Jt,Xr,ze):_r,ze==null)break e;Xr=t({},Xr,ze);break e;case 2:Xc=!0}}Ae.callback!==null&&(x.flags|=32,ze=Z.effects,ze===null?Z.effects=[Ae]:ze.push(Ae))}else Jt={eventTime:Jt,lane:ze,tag:Ae.tag,payload:Ae.payload,callback:Ae.callback,next:null},yr===null?(Rt=yr=Jt,ot=Xr):yr=yr.next=Jt,me|=ze;if(Ae=Ae.next,Ae===null){if(ze=Z.shared.pending,ze===null)break;Ae=ze.next,ze.next=null,Z.lastBaseUpdate=ze,Z.shared.pending=null}}while(!0);yr===null&&(ot=Xr),Z.baseState=ot,Z.firstBaseUpdate=Rt,Z.lastBaseUpdate=yr,Fm|=me,x.lanes=me,x.memoizedState=Xr}}function L7(x,T,_){if(x=T.effects,T.effects=null,x!==null)for(T=0;T<x.length;T++){var H=x[T],Z=H.callback;if(Z!==null){if(H.callback=null,H=_,typeof Z!="function")throw Error(n(191,Z));Z.call(H)}}}var U7=new e.Component().refs;function D1(x,T,_,H){T=x.memoizedState,_=_(H,T),_=_==null?T:t({},T,_),x.memoizedState=_,x.lanes===0&&(x.updateQueue.baseState=_)}var F1={isMounted:function(x){return(x=x._reactInternals)?Ft(x)===x:!1},enqueueSetState:function(x,T,_){x=x._reactInternals;var H=Lo(),Z=tu(x),Ae=qc(H,Z);Ae.payload=T,_!=null&&(Ae.callback=_),Zc(x,Ae),ru(x,Z,H)},enqueueReplaceState:function(x,T,_){x=x._reactInternals;var H=Lo(),Z=tu(x),Ae=qc(H,Z);Ae.tag=1,Ae.payload=T,_!=null&&(Ae.callback=_),Zc(x,Ae),ru(x,Z,H)},enqueueForceUpdate:function(x,T){x=x._reactInternals;var _=Lo(),H=tu(x),Z=qc(_,H);Z.tag=2,T!=null&&(Z.callback=T),Zc(x,Z),ru(x,H,_)}};function H7(x,T,_,H,Z,Ae,me){return x=x.stateNode,typeof x.shouldComponentUpdate=="function"?x.shouldComponentUpdate(H,Ae,me):T.prototype&&T.prototype.isPureReactComponent?!gm(_,H)||!gm(Z,Ae):!0}function G7(x,T,_){var H=!1,Z=Wc,Ae=T.contextType;return typeof Ae=="object"&&Ae!==null?Ae=vs(Ae):(Z=ho(T)?Rd:Ni.current,H=T.contextTypes,Ae=(H=H!=null)?rg(x,Z):Wc),T=new T(_,Ae),x.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,T.updater=F1,x.stateNode=T,T._reactInternals=x,H&&(x=x.stateNode,x.__reactInternalMemoizedUnmaskedChildContext=Z,x.__reactInternalMemoizedMaskedChildContext=Ae),T}function K7(x,T,_,H){x=T.state,typeof T.componentWillReceiveProps=="function"&&T.componentWillReceiveProps(_,H),typeof T.UNSAFE_componentWillReceiveProps=="function"&&T.UNSAFE_componentWillReceiveProps(_,H),T.state!==x&&F1.enqueueReplaceState(T,T.state,null)}function pT(x,T,_,H){var Z=x.stateNode;Z.props=_,Z.state=x.memoizedState,Z.refs=U7,gT(x);var Ae=T.contextType;typeof Ae=="object"&&Ae!==null?Z.context=vs(Ae):(Ae=ho(T)?Rd:Ni.current,Z.context=rg(x,Ae)),Cm(x,_,Z,H),Z.state=x.memoizedState,Ae=T.getDerivedStateFromProps,typeof Ae=="function"&&(D1(x,T,Ae,_),Z.state=x.memoizedState),typeof T.getDerivedStateFromProps=="function"||typeof Z.getSnapshotBeforeUpdate=="function"||typeof Z.UNSAFE_componentWillMount!="function"&&typeof Z.componentWillMount!="function"||(T=Z.state,typeof Z.componentWillMount=="function"&&Z.componentWillMount(),typeof Z.UNSAFE_componentWillMount=="function"&&Z.UNSAFE_componentWillMount(),T!==Z.state&&F1.enqueueReplaceState(Z,Z.state,null),Cm(x,_,Z,H),Z.state=x.memoizedState),typeof Z.componentDidMount=="function"&&(x.flags|=4)}var _1=Array.isArray;function wm(x,T,_){if(x=_.ref,x!==null&&typeof x!="function"&&typeof x!="object"){if(_._owner){if(_=_._owner,_){if(_.tag!==1)throw Error(n(309));var H=_.stateNode}if(!H)throw Error(n(147,x));var Z=""+x;return T!==null&&T.ref!==null&&typeof T.ref=="function"&&T.ref._stringRef===Z?T.ref:(T=function(Ae){var me=H.refs;me===U7&&(me=H.refs={}),Ae===null?delete me[Z]:me[Z]=Ae},T._stringRef=Z,T)}if(typeof x!="string")throw Error(n(284));if(!_._owner)throw Error(n(290,x))}return x}function N1(x,T){if(x.type!=="textarea")throw Error(n(31,Object.prototype.toString.call(T)==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":T))}function V7(x){function T(wt,ct){if(x){var yt=wt.lastEffect;yt!==null?(yt.nextEffect=ct,wt.lastEffect=ct):wt.firstEffect=wt.lastEffect=ct,ct.nextEffect=null,ct.flags=8}}function _(wt,ct){if(!x)return null;for(;ct!==null;)T(wt,ct),ct=ct.sibling;return null}function H(wt,ct){for(wt=new Map;ct!==null;)ct.key!==null?wt.set(ct.key,ct):wt.set(ct.index,ct),ct=ct.sibling;return wt}function Z(wt,ct){return wt=iu(wt,ct),wt.index=0,wt.sibling=null,wt}function Ae(wt,ct,yt){return wt.index=yt,x?(yt=wt.alternate,yt!==null?(yt=yt.index,yt<ct?(wt.flags=2,ct):yt):(wt.flags=2,ct)):ct}function me(wt){return x&&wt.alternate===null&&(wt.flags=2),wt}function ze(wt,ct,yt,zt){return ct===null||ct.tag!==6?(ct=ZT(yt,wt.mode,zt),ct.return=wt,ct):(ct=Z(ct,yt),ct.return=wt,ct)}function ot(wt,ct,yt,zt){return ct!==null&&ct.elementType===yt.type?(zt=Z(ct,yt.props),zt.ref=wm(wt,ct,yt),zt.return=wt,zt):(zt=$1(yt.type,yt.key,yt.props,null,wt.mode,zt),zt.ref=wm(wt,ct,yt),zt.return=wt,zt)}function Rt(wt,ct,yt,zt){return ct===null||ct.tag!==4||ct.stateNode.containerInfo!==yt.containerInfo||ct.stateNode.implementation!==yt.implementation?(ct=$T(yt,wt.mode,zt),ct.return=wt,ct):(ct=Z(ct,yt.children||[]),ct.return=wt,ct)}function yr(wt,ct,yt,zt,Lt){return ct===null||ct.tag!==7?(ct=fg(yt,wt.mode,zt,Lt),ct.return=wt,ct):(ct=Z(ct,yt),ct.return=wt,ct)}function Xr(wt,ct,yt){if(typeof ct=="string"||typeof ct=="number")return ct=ZT(""+ct,wt.mode,yt),ct.return=wt,ct;if(typeof ct=="object"&&ct!==null){switch(ct.$$typeof){case M:return yt=$1(ct.type,ct.key,ct.props,null,wt.mode,yt),yt.ref=wm(wt,null,ct),yt.return=wt,yt;case I:return ct=$T(ct,wt.mode,yt),ct.return=wt,ct}if(_1(ct)||W(ct))return ct=fg(ct,wt.mode,yt,null),ct.return=wt,ct;N1(wt,ct)}return null}function Jt(wt,ct,yt,zt){var Lt=ct!==null?ct.key:null;if(typeof yt=="string"||typeof yt=="number")return Lt!==null?null:ze(wt,ct,""+yt,zt);if(typeof yt=="object"&&yt!==null){switch(yt.$$typeof){case M:return yt.key===Lt?yt.type===S?yr(wt,ct,yt.props.children,zt,Lt):ot(wt,ct,yt,zt):null;case I:return yt.key===Lt?Rt(wt,ct,yt,zt):null}if(_1(yt)||W(yt))return Lt!==null?null:yr(wt,ct,yt,zt,null);N1(wt,yt)}return null}function _r(wt,ct,yt,zt,Lt){if(typeof zt=="string"||typeof zt=="number")return wt=wt.get(yt)||null,ze(ct,wt,""+zt,Lt);if(typeof zt=="object"&&zt!==null){switch(zt.$$typeof){case M:return wt=wt.get(zt.key===null?yt:zt.key)||null,zt.type===S?yr(ct,wt,zt.props.children,Lt,zt.key):ot(ct,wt,zt,Lt);case I:return wt=wt.get(zt.key===null?yt:zt.key)||null,Rt(ct,wt,zt,Lt)}if(_1(zt)||W(zt))return wt=wt.get(yt)||null,yr(ct,wt,zt,Lt,null);N1(ct,zt)}return null}function Vr(wt,ct,yt,zt){for(var Lt=null,tn=null,Sr=ct,rn=ct=0,vn=null;Sr!==null&&rn<yt.length;rn++){Sr.index>rn?(vn=Sr,Sr=null):vn=Sr.sibling;var An=Jt(wt,Sr,yt[rn],zt);if(An===null){Sr===null&&(Sr=vn);break}x&&Sr&&An.alternate===null&&T(wt,Sr),ct=Ae(An,ct,rn),tn===null?Lt=An:tn.sibling=An,tn=An,Sr=vn}if(rn===yt.length)return _(wt,Sr),Lt;if(Sr===null){for(;rn<yt.length;rn++)Sr=Xr(wt,yt[rn],zt),Sr!==null&&(ct=Ae(Sr,ct,rn),tn===null?Lt=Sr:tn.sibling=Sr,tn=Sr);return Lt}for(Sr=H(wt,Sr);rn<yt.length;rn++)vn=_r(Sr,wt,rn,yt[rn],zt),vn!==null&&(x&&vn.alternate!==null&&Sr.delete(vn.key===null?rn:vn.key),ct=Ae(vn,ct,rn),tn===null?Lt=vn:tn.sibling=vn,tn=vn);return x&&Sr.forEach(function(ou){return T(wt,ou)}),Lt}function Lr(wt,ct,yt,zt){var Lt=W(yt);if(typeof Lt!="function")throw Error(n(150));if(yt=Lt.call(yt),yt==null)throw Error(n(151));for(var tn=Lt=null,Sr=ct,rn=ct=0,vn=null,An=yt.next();Sr!==null&&!An.done;rn++,An=yt.next()){Sr.index>rn?(vn=Sr,Sr=null):vn=Sr.sibling;var ou=Jt(wt,Sr,An.value,zt);if(ou===null){Sr===null&&(Sr=vn);break}x&&Sr&&ou.alternate===null&&T(wt,Sr),ct=Ae(ou,ct,rn),tn===null?Lt=ou:tn.sibling=ou,tn=ou,Sr=vn}if(An.done)return _(wt,Sr),Lt;if(Sr===null){for(;!An.done;rn++,An=yt.next())An=Xr(wt,An.value,zt),An!==null&&(ct=Ae(An,ct,rn),tn===null?Lt=An:tn.sibling=An,tn=An);return Lt}for(Sr=H(wt,Sr);!An.done;rn++,An=yt.next())An=_r(Sr,wt,rn,An.value,zt),An!==null&&(x&&An.alternate!==null&&Sr.delete(An.key===null?rn:An.key),ct=Ae(An,ct,rn),tn===null?Lt=An:tn.sibling=An,tn=An);return x&&Sr.forEach(function(f2e){return T(wt,f2e)}),Lt}return function(wt,ct,yt,zt){var Lt=typeof yt=="object"&&yt!==null&&yt.type===S&&yt.key===null;Lt&&(yt=yt.props.children);var tn=typeof yt=="object"&&yt!==null;if(tn)switch(yt.$$typeof){case M:e:{for(tn=yt.key,Lt=ct;Lt!==null;){if(Lt.key===tn){switch(Lt.tag){case 7:if(yt.type===S){_(wt,Lt.sibling),ct=Z(Lt,yt.props.children),ct.return=wt,wt=ct;break e}break;default:if(Lt.elementType===yt.type){_(wt,Lt.sibling),ct=Z(Lt,yt.props),ct.ref=wm(wt,Lt,yt),ct.return=wt,wt=ct;break e}}_(wt,Lt);break}else T(wt,Lt);Lt=Lt.sibling}yt.type===S?(ct=fg(yt.props.children,wt.mode,zt,yt.key),ct.return=wt,wt=ct):(zt=$1(yt.type,yt.key,yt.props,null,wt.mode,zt),zt.ref=wm(wt,ct,yt),zt.return=wt,wt=zt)}return me(wt);case I:e:{for(Lt=yt.key;ct!==null;){if(ct.key===Lt)if(ct.tag===4&&ct.stateNode.containerInfo===yt.containerInfo&&ct.stateNode.implementation===yt.implementation){_(wt,ct.sibling),ct=Z(ct,yt.children||[]),ct.return=wt,wt=ct;break e}else{_(wt,ct);break}else T(wt,ct);ct=ct.sibling}ct=$T(yt,wt.mode,zt),ct.return=wt,wt=ct}return me(wt)}if(typeof yt=="string"||typeof yt=="number")return yt=""+yt,ct!==null&&ct.tag===6?(_(wt,ct.sibling),ct=Z(ct,yt),ct.return=wt,wt=ct):(_(wt,ct),ct=ZT(yt,wt.mode,zt),ct.return=wt,wt=ct),me(wt);if(_1(yt))return Vr(wt,ct,yt,zt);if(W(yt))return Lr(wt,ct,yt,zt);if(tn&&N1(wt,yt),typeof yt>"u"&&!Lt)switch(wt.tag){case 1:case 22:case 0:case 11:case 15:throw Error(n(152,ue(wt.type)||"Component"))}return _(wt,ct)}}var k1=V7(!0),J7=V7(!1),Bm={},ql=Jc(Bm),Mm=Jc(Bm),xm=Jc(Bm);function Dd(x){if(x===Bm)throw Error(n(174));return x}function vT(x,T){switch(Ra(xm,T),Ra(Mm,x),Ra(ql,Bm),x=T.nodeType,x){case 9:case 11:T=(T=T.documentElement)?T.namespaceURI:je(null,"");break;default:x=x===8?T.parentNode:T,T=x.namespaceURI||null,x=x.tagName,T=je(T,x)}ta(ql),Ra(ql,T)}function og(){ta(ql),ta(Mm),ta(xm)}function W7(x){Dd(xm.current);var T=Dd(ql.current),_=je(T,x.type);T!==_&&(Ra(Mm,x),Ra(ql,_))}function mT(x){Mm.current===x&&(ta(ql),ta(Mm))}var Ta=Jc(0);function P1(x){for(var T=x;T!==null;){if(T.tag===13){var _=T.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||_.data==="$?"||_.data==="$!"))return T}else if(T.tag===19&&T.memoizedProps.revealOrder!==void 0){if((T.flags&64)!==0)return T}else if(T.child!==null){T.child.return=T,T=T.child;continue}if(T===x)break;for(;T.sibling===null;){if(T.return===null||T.return===x)return null;T=T.return}T.sibling.return=T.return,T=T.sibling}return null}var XA=null,$c=null,Zl=!1;function X7(x,T){var _=ys(5,null,null,0);_.elementType="DELETED",_.type="DELETED",_.stateNode=T,_.return=x,_.flags=8,x.lastEffect!==null?(x.lastEffect.nextEffect=_,x.lastEffect=_):x.firstEffect=x.lastEffect=_}function q7(x,T){switch(x.tag){case 5:var _=x.type;return T=T.nodeType!==1||_.toLowerCase()!==T.nodeName.toLowerCase()?null:T,T!==null?(x.stateNode=T,!0):!1;case 6:return T=x.pendingProps===""||T.nodeType!==3?null:T,T!==null?(x.stateNode=T,!0):!1;case 13:return!1;default:return!1}}function ET(x){if(Zl){var T=$c;if(T){var _=T;if(!q7(x,T)){if(T=Zh(_.nextSibling),!T||!q7(x,T)){x.flags=x.flags&-1025|2,Zl=!1,XA=x;return}X7(XA,_)}XA=x,$c=Zh(T.firstChild)}else x.flags=x.flags&-1025|2,Zl=!1,XA=x}}function Z7(x){for(x=x.return;x!==null&&x.tag!==5&&x.tag!==3&&x.tag!==13;)x=x.return;XA=x}function O1(x){if(x!==XA)return!1;if(!Zl)return Z7(x),Zl=!0,!1;var T=x.type;if(x.tag!==5||T!=="head"&&T!=="body"&&!nT(T,x.memoizedProps))for(T=$c;T;)X7(x,T),T=Zh(T.nextSibling);if(Z7(x),x.tag===13){if(x=x.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(n(317));e:{for(x=x.nextSibling,T=0;x;){if(x.nodeType===8){var _=x.data;if(_==="/$"){if(T===0){$c=Zh(x.nextSibling);break e}T--}else _!=="$"&&_!=="$!"&&_!=="$?"||T++}x=x.nextSibling}$c=null}}else $c=XA?Zh(x.stateNode.nextSibling):null;return!0}function yT(){$c=XA=null,Zl=!1}var sg=[];function CT(){for(var x=0;x<sg.length;x++)sg[x]._workInProgressVersionPrimary=null;sg.length=0}var Im=B.ReactCurrentDispatcher,ms=B.ReactCurrentBatchConfig,bm=0,Oa=null,Pi=null,vi=null,z1=!1,Sm=!1;function go(){throw Error(n(321))}function wT(x,T){if(T===null)return!1;for(var _=0;_<T.length&&_<x.length;_++)if(!ps(x[_],T[_]))return!1;return!0}function BT(x,T,_,H,Z,Ae){if(bm=Ae,Oa=T,T.memoizedState=null,T.updateQueue=null,T.lanes=0,Im.current=x===null||x.memoizedState===null?ORe:zRe,x=_(H,Z),Sm){Ae=0;do{if(Sm=!1,!(25>Ae))throw Error(n(301));Ae+=1,vi=Pi=null,T.updateQueue=null,Im.current=jRe,x=_(H,Z)}while(Sm)}if(Im.current=U1,T=Pi!==null&&Pi.next!==null,bm=0,vi=Pi=Oa=null,z1=!1,T)throw Error(n(300));return x}function Fd(){var x={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vi===null?Oa.memoizedState=vi=x:vi=vi.next=x,vi}function _d(){if(Pi===null){var x=Oa.alternate;x=x!==null?x.memoizedState:null}else x=Pi.next;var T=vi===null?Oa.memoizedState:vi.next;if(T!==null)vi=T,Pi=x;else{if(x===null)throw Error(n(310));Pi=x,x={memoizedState:Pi.memoizedState,baseState:Pi.baseState,baseQueue:Pi.baseQueue,queue:Pi.queue,next:null},vi===null?Oa.memoizedState=vi=x:vi=vi.next=x}return vi}function $l(x,T){return typeof T=="function"?T(x):T}function Rm(x){var T=_d(),_=T.queue;if(_===null)throw Error(n(311));_.lastRenderedReducer=x;var H=Pi,Z=H.baseQueue,Ae=_.pending;if(Ae!==null){if(Z!==null){var me=Z.next;Z.next=Ae.next,Ae.next=me}H.baseQueue=Z=Ae,_.pending=null}if(Z!==null){Z=Z.next,H=H.baseState;var ze=me=Ae=null,ot=Z;do{var Rt=ot.lane;if((bm&Rt)===Rt)ze!==null&&(ze=ze.next={lane:0,action:ot.action,eagerReducer:ot.eagerReducer,eagerState:ot.eagerState,next:null}),H=ot.eagerReducer===x?ot.eagerState:x(H,ot.action);else{var yr={lane:Rt,action:ot.action,eagerReducer:ot.eagerReducer,eagerState:ot.eagerState,next:null};ze===null?(me=ze=yr,Ae=H):ze=ze.next=yr,Oa.lanes|=Rt,Fm|=Rt}ot=ot.next}while(ot!==null&&ot!==Z);ze===null?Ae=H:ze.next=me,ps(H,T.memoizedState)||(el=!0),T.memoizedState=H,T.baseState=Ae,T.baseQueue=ze,_.lastRenderedState=H}return[T.memoizedState,_.dispatch]}function Tm(x){var T=_d(),_=T.queue;if(_===null)throw Error(n(311));_.lastRenderedReducer=x;var H=_.dispatch,Z=_.pending,Ae=T.memoizedState;if(Z!==null){_.pending=null;var me=Z=Z.next;do Ae=x(Ae,me.action),me=me.next;while(me!==Z);ps(Ae,T.memoizedState)||(el=!0),T.memoizedState=Ae,T.baseQueue===null&&(T.baseState=Ae),_.lastRenderedState=Ae}return[Ae,H]}function $7(x,T,_){var H=T._getVersion;H=H(T._source);var Z=T._workInProgressVersionPrimary;if(Z!==null?x=Z===H:(x=x.mutableReadLanes,(x=(bm&x)===x)&&(T._workInProgressVersionPrimary=H,sg.push(T))),x)return _(T._source);throw sg.push(T),Error(n(350))}function eH(x,T,_,H){var Z=Wi;if(Z===null)throw Error(n(349));var Ae=T._getVersion,me=Ae(T._source),ze=Im.current,ot=ze.useState(function(){return $7(Z,T,_)}),Rt=ot[1],yr=ot[0];ot=vi;var Xr=x.memoizedState,Jt=Xr.refs,_r=Jt.getSnapshot,Vr=Xr.source;Xr=Xr.subscribe;var Lr=Oa;return x.memoizedState={refs:Jt,source:T,subscribe:H},ze.useEffect(function(){Jt.getSnapshot=_,Jt.setSnapshot=Rt;var wt=Ae(T._source);if(!ps(me,wt)){wt=_(T._source),ps(yr,wt)||(Rt(wt),wt=tu(Lr),Z.mutableReadLanes|=wt&Z.pendingLanes),wt=Z.mutableReadLanes,Z.entangledLanes|=wt;for(var ct=Z.entanglements,yt=wt;0<yt;){var zt=31-_i(yt),Lt=1<<zt;ct[zt]|=wt,yt&=~Lt}}},[_,T,H]),ze.useEffect(function(){return H(T._source,function(){var wt=Jt.getSnapshot,ct=Jt.setSnapshot;try{ct(wt(T._source));var yt=tu(Lr);Z.mutableReadLanes|=yt&Z.pendingLanes}catch(zt){ct(function(){throw zt})}})},[T,H]),ps(_r,_)&&ps(Vr,T)&&ps(Xr,H)||(x={pending:null,dispatch:null,lastRenderedReducer:$l,lastRenderedState:yr},x.dispatch=Rt=bT.bind(null,Oa,x),ot.queue=x,ot.baseQueue=null,yr=$7(Z,T,_),ot.memoizedState=ot.baseState=yr),yr}function tH(x,T,_){var H=_d();return eH(H,x,T,_)}function Qm(x){var T=Fd();return typeof x=="function"&&(x=x()),T.memoizedState=T.baseState=x,x=T.queue={pending:null,dispatch:null,lastRenderedReducer:$l,lastRenderedState:x},x=x.dispatch=bT.bind(null,Oa,x),[T.memoizedState,x]}function j1(x,T,_,H){return x={tag:x,create:T,destroy:_,deps:H,next:null},T=Oa.updateQueue,T===null?(T={lastEffect:null},Oa.updateQueue=T,T.lastEffect=x.next=x):(_=T.lastEffect,_===null?T.lastEffect=x.next=x:(H=_.next,_.next=x,x.next=H,T.lastEffect=x)),x}function rH(x){var T=Fd();return x={current:x},T.memoizedState=x}function Y1(){return _d().memoizedState}function MT(x,T,_,H){var Z=Fd();Oa.flags|=x,Z.memoizedState=j1(1|T,_,void 0,H===void 0?null:H)}function xT(x,T,_,H){var Z=_d();H=H===void 0?null:H;var Ae=void 0;if(Pi!==null){var me=Pi.memoizedState;if(Ae=me.destroy,H!==null&&wT(H,me.deps)){j1(T,_,Ae,H);return}}Oa.flags|=x,Z.memoizedState=j1(1|T,_,Ae,H)}function nH(x,T){return MT(516,4,x,T)}function L1(x,T){return xT(516,4,x,T)}function aH(x,T){return xT(4,2,x,T)}function iH(x,T){if(typeof T=="function")return x=x(),T(x),function(){T(null)};if(T!=null)return x=x(),T.current=x,function(){T.current=null}}function oH(x,T,_){return _=_!=null?_.concat([x]):null,xT(4,2,iH.bind(null,T,x),_)}function IT(){}function sH(x,T){var _=_d();T=T===void 0?null:T;var H=_.memoizedState;return H!==null&&T!==null&&wT(T,H[1])?H[0]:(_.memoizedState=[x,T],x)}function lH(x,T){var _=_d();T=T===void 0?null:T;var H=_.memoizedState;return H!==null&&T!==null&&wT(T,H[1])?H[0]:(x=x(),_.memoizedState=[x,T],x)}function PRe(x,T){var _=ng();Qd(98>_?98:_,function(){x(!0)}),Qd(97<_?97:_,function(){var H=ms.transition;ms.transition=1;try{x(!1),T()}finally{ms.transition=H}})}function bT(x,T,_){var H=Lo(),Z=tu(x),Ae={lane:Z,action:_,eagerReducer:null,eagerState:null,next:null},me=T.pending;if(me===null?Ae.next=Ae:(Ae.next=me.next,me.next=Ae),T.pending=Ae,me=x.alternate,x===Oa||me!==null&&me===Oa)Sm=z1=!0;else{if(x.lanes===0&&(me===null||me.lanes===0)&&(me=T.lastRenderedReducer,me!==null))try{var ze=T.lastRenderedState,ot=me(ze,_);if(Ae.eagerReducer=me,Ae.eagerState=ot,ps(ot,ze))return}catch{}finally{}ru(x,Z,H)}}var U1={readContext:vs,useCallback:go,useContext:go,useEffect:go,useImperativeHandle:go,useLayoutEffect:go,useMemo:go,useReducer:go,useRef:go,useState:go,useDebugValue:go,useDeferredValue:go,useTransition:go,useMutableSource:go,useOpaqueIdentifier:go,unstable_isNewReconciler:!1},ORe={readContext:vs,useCallback:function(x,T){return Fd().memoizedState=[x,T===void 0?null:T],x},useContext:vs,useEffect:nH,useImperativeHandle:function(x,T,_){return _=_!=null?_.concat([x]):null,MT(4,2,iH.bind(null,T,x),_)},useLayoutEffect:function(x,T){return MT(4,2,x,T)},useMemo:function(x,T){var _=Fd();return T=T===void 0?null:T,x=x(),_.memoizedState=[x,T],x},useReducer:function(x,T,_){var H=Fd();return T=_!==void 0?_(T):T,H.memoizedState=H.baseState=T,x=H.queue={pending:null,dispatch:null,lastRenderedReducer:x,lastRenderedState:T},x=x.dispatch=bT.bind(null,Oa,x),[H.memoizedState,x]},useRef:rH,useState:Qm,useDebugValue:IT,useDeferredValue:function(x){var T=Qm(x),_=T[0],H=T[1];return nH(function(){var Z=ms.transition;ms.transition=1;try{H(x)}finally{ms.transition=Z}},[x]),_},useTransition:function(){var x=Qm(!1),T=x[0];return x=PRe.bind(null,x[1]),rH(x),[x,T]},useMutableSource:function(x,T,_){var H=Fd();return H.memoizedState={refs:{getSnapshot:T,setSnapshot:null},source:x,subscribe:_},eH(H,x,T,_)},useOpaqueIdentifier:function(){if(Zl){var x=!1,T=QRe(function(){throw x||(x=!0,_("r:"+(iT++).toString(36))),Error(n(355))}),_=Qm(T)[1];return(Oa.mode&2)===0&&(Oa.flags|=516,j1(5,function(){_("r:"+(iT++).toString(36))},void 0,null)),T}return T="r:"+(iT++).toString(36),Qm(T),T},unstable_isNewReconciler:!1},zRe={readContext:vs,useCallback:sH,useContext:vs,useEffect:L1,useImperativeHandle:oH,useLayoutEffect:aH,useMemo:lH,useReducer:Rm,useRef:Y1,useState:function(){return Rm($l)},useDebugValue:IT,useDeferredValue:function(x){var T=Rm($l),_=T[0],H=T[1];return L1(function(){var Z=ms.transition;ms.transition=1;try{H(x)}finally{ms.transition=Z}},[x]),_},useTransition:function(){var x=Rm($l)[0];return[Y1().current,x]},useMutableSource:tH,useOpaqueIdentifier:function(){return Rm($l)[0]},unstable_isNewReconciler:!1},jRe={readContext:vs,useCallback:sH,useContext:vs,useEffect:L1,useImperativeHandle:oH,useLayoutEffect:aH,useMemo:lH,useReducer:Tm,useRef:Y1,useState:function(){return Tm($l)},useDebugValue:IT,useDeferredValue:function(x){var T=Tm($l),_=T[0],H=T[1];return L1(function(){var Z=ms.transition;ms.transition=1;try{H(x)}finally{ms.transition=Z}},[x]),_},useTransition:function(){var x=Tm($l)[0];return[Y1().current,x]},useMutableSource:tH,useOpaqueIdentifier:function(){return Tm($l)[0]},unstable_isNewReconciler:!1},YRe=B.ReactCurrentOwner,el=!1;function po(x,T,_,H){T.child=x===null?J7(T,null,_,H):k1(T,x.child,_,H)}function AH(x,T,_,H,Z){_=_.render;var Ae=T.ref;return ig(T,Z),H=BT(x,T,_,H,Ae,Z),x!==null&&!el?(T.updateQueue=x.updateQueue,T.flags&=-517,x.lanes&=~Z,qA(x,T,Z)):(T.flags|=1,po(x,T,H,Z),T.child)}function cH(x,T,_,H,Z,Ae){if(x===null){var me=_.type;return typeof me=="function"&&!XT(me)&&me.defaultProps===void 0&&_.compare===null&&_.defaultProps===void 0?(T.tag=15,T.type=me,uH(x,T,me,H,Z,Ae)):(x=$1(_.type,null,H,T,T.mode,Ae),x.ref=T.ref,x.return=T,T.child=x)}return me=x.child,(Z&Ae)===0&&(Z=me.memoizedProps,_=_.compare,_=_!==null?_:gm,_(Z,H)&&x.ref===T.ref)?qA(x,T,Ae):(T.flags|=1,x=iu(me,H),x.ref=T.ref,x.return=T,T.child=x)}function uH(x,T,_,H,Z,Ae){if(x!==null&&gm(x.memoizedProps,H)&&x.ref===T.ref)if(el=!1,(Ae&Z)!==0)(x.flags&16384)!==0&&(el=!0);else return T.lanes=x.lanes,qA(x,T,Ae);return RT(x,T,_,H,Ae)}function ST(x,T,_){var H=T.pendingProps,Z=H.children,Ae=x!==null?x.memoizedState:null;if(H.mode==="hidden"||H.mode==="unstable-defer-without-hiding")if((T.mode&4)===0)T.memoizedState={baseLanes:0},Z1(T,_);else if((_&1073741824)!==0)T.memoizedState={baseLanes:0},Z1(T,Ae!==null?Ae.baseLanes:_);else return x=Ae!==null?Ae.baseLanes|_:_,T.lanes=T.childLanes=1073741824,T.memoizedState={baseLanes:x},Z1(T,x),null;else Ae!==null?(H=Ae.baseLanes|_,T.memoizedState=null):H=_,Z1(T,H);return po(x,T,Z,_),T.child}function dH(x,T){var _=T.ref;(x===null&&_!==null||x!==null&&x.ref!==_)&&(T.flags|=128)}function RT(x,T,_,H,Z){var Ae=ho(_)?Rd:Ni.current;return Ae=rg(T,Ae),ig(T,Z),_=BT(x,T,_,H,Ae,Z),x!==null&&!el?(T.updateQueue=x.updateQueue,T.flags&=-517,x.lanes&=~Z,qA(x,T,Z)):(T.flags|=1,po(x,T,_,Z),T.child)}function fH(x,T,_,H,Z){if(ho(_)){var Ae=!0;I1(T)}else Ae=!1;if(ig(T,Z),T.stateNode===null)x!==null&&(x.alternate=null,T.alternate=null,T.flags|=2),G7(T,_,H),pT(T,_,H,Z),H=!0;else if(x===null){var me=T.stateNode,ze=T.memoizedProps;me.props=ze;var ot=me.context,Rt=_.contextType;typeof Rt=="object"&&Rt!==null?Rt=vs(Rt):(Rt=ho(_)?Rd:Ni.current,Rt=rg(T,Rt));var yr=_.getDerivedStateFromProps,Xr=typeof yr=="function"||typeof me.getSnapshotBeforeUpdate=="function";Xr||typeof me.UNSAFE_componentWillReceiveProps!="function"&&typeof me.componentWillReceiveProps!="function"||(ze!==H||ot!==Rt)&&K7(T,me,H,Rt),Xc=!1;var Jt=T.memoizedState;me.state=Jt,Cm(T,H,me,Z),ot=T.memoizedState,ze!==H||Jt!==ot||fo.current||Xc?(typeof yr=="function"&&(D1(T,_,yr,H),ot=T.memoizedState),(ze=Xc||H7(T,_,ze,H,Jt,ot,Rt))?(Xr||typeof me.UNSAFE_componentWillMount!="function"&&typeof me.componentWillMount!="function"||(typeof me.componentWillMount=="function"&&me.componentWillMount(),typeof me.UNSAFE_componentWillMount=="function"&&me.UNSAFE_componentWillMount()),typeof me.componentDidMount=="function"&&(T.flags|=4)):(typeof me.componentDidMount=="function"&&(T.flags|=4),T.memoizedProps=H,T.memoizedState=ot),me.props=H,me.state=ot,me.context=Rt,H=ze):(typeof me.componentDidMount=="function"&&(T.flags|=4),H=!1)}else{me=T.stateNode,j7(x,T),ze=T.memoizedProps,Rt=T.type===T.elementType?ze:$s(T.type,ze),me.props=Rt,Xr=T.pendingProps,Jt=me.context,ot=_.contextType,typeof ot=="object"&&ot!==null?ot=vs(ot):(ot=ho(_)?Rd:Ni.current,ot=rg(T,ot));var _r=_.getDerivedStateFromProps;(yr=typeof _r=="function"||typeof me.getSnapshotBeforeUpdate=="function")||typeof me.UNSAFE_componentWillReceiveProps!="function"&&typeof me.componentWillReceiveProps!="function"||(ze!==Xr||Jt!==ot)&&K7(T,me,H,ot),Xc=!1,Jt=T.memoizedState,me.state=Jt,Cm(T,H,me,Z);var Vr=T.memoizedState;ze!==Xr||Jt!==Vr||fo.current||Xc?(typeof _r=="function"&&(D1(T,_,_r,H),Vr=T.memoizedState),(Rt=Xc||H7(T,_,Rt,H,Jt,Vr,ot))?(yr||typeof me.UNSAFE_componentWillUpdate!="function"&&typeof me.componentWillUpdate!="function"||(typeof me.componentWillUpdate=="function"&&me.componentWillUpdate(H,Vr,ot),typeof me.UNSAFE_componentWillUpdate=="function"&&me.UNSAFE_componentWillUpdate(H,Vr,ot)),typeof me.componentDidUpdate=="function"&&(T.flags|=4),typeof me.getSnapshotBeforeUpdate=="function"&&(T.flags|=256)):(typeof me.componentDidUpdate!="function"||ze===x.memoizedProps&&Jt===x.memoizedState||(T.flags|=4),typeof me.getSnapshotBeforeUpdate!="function"||ze===x.memoizedProps&&Jt===x.memoizedState||(T.flags|=256),T.memoizedProps=H,T.memoizedState=Vr),me.props=H,me.state=Vr,me.context=ot,H=Rt):(typeof me.componentDidUpdate!="function"||ze===x.memoizedProps&&Jt===x.memoizedState||(T.flags|=4),typeof me.getSnapshotBeforeUpdate!="function"||ze===x.memoizedProps&&Jt===x.memoizedState||(T.flags|=256),H=!1)}return TT(x,T,_,H,Ae,Z)}function TT(x,T,_,H,Z,Ae){dH(x,T);var me=(T.flags&64)!==0;if(!H&&!me)return Z&&T7(T,_,!1),qA(x,T,Ae);H=T.stateNode,YRe.current=T;var ze=me&&typeof _.getDerivedStateFromError!="function"?null:H.render();return T.flags|=1,x!==null&&me?(T.child=k1(T,x.child,null,Ae),T.child=k1(T,null,ze,Ae)):po(x,T,ze,Ae),T.memoizedState=H.state,Z&&T7(T,_,!0),T.child}function hH(x){var T=x.stateNode;T.pendingContext?S7(x,T.pendingContext,T.pendingContext!==T.context):T.context&&S7(x,T.context,!1),vT(x,T.containerInfo)}var H1={dehydrated:null,retryLane:0};function gH(x,T,_){var H=T.pendingProps,Z=Ta.current,Ae=!1,me;return(me=(T.flags&64)!==0)||(me=x!==null&&x.memoizedState===null?!1:(Z&2)!==0),me?(Ae=!0,T.flags&=-65):x!==null&&x.memoizedState===null||H.fallback===void 0||H.unstable_avoidThisFallback===!0||(Z|=1),Ra(Ta,Z&1),x===null?(H.fallback!==void 0&&ET(T),x=H.children,Z=H.fallback,Ae?(x=pH(T,x,Z,_),T.child.memoizedState={baseLanes:_},T.memoizedState=H1,x):typeof H.unstable_expectedLoadTime=="number"?(x=pH(T,x,Z,_),T.child.memoizedState={baseLanes:_},T.memoizedState=H1,T.lanes=33554432,x):(_=qT({mode:"visible",children:x},T.mode,_,null),_.return=T,T.child=_)):x.memoizedState!==null?Ae?(H=mH(x,T,H.children,H.fallback,_),Ae=T.child,Z=x.child.memoizedState,Ae.memoizedState=Z===null?{baseLanes:_}:{baseLanes:Z.baseLanes|_},Ae.childLanes=x.childLanes&~_,T.memoizedState=H1,H):(_=vH(x,T,H.children,_),T.memoizedState=null,_):Ae?(H=mH(x,T,H.children,H.fallback,_),Ae=T.child,Z=x.child.memoizedState,Ae.memoizedState=Z===null?{baseLanes:_}:{baseLanes:Z.baseLanes|_},Ae.childLanes=x.childLanes&~_,T.memoizedState=H1,H):(_=vH(x,T,H.children,_),T.memoizedState=null,_)}function pH(x,T,_,H){var Z=x.mode,Ae=x.child;return T={mode:"hidden",children:T},(Z&2)===0&&Ae!==null?(Ae.childLanes=0,Ae.pendingProps=T):Ae=qT(T,Z,0,null),_=fg(_,Z,H,null),Ae.return=x,_.return=x,Ae.sibling=_,x.child=Ae,_}function vH(x,T,_,H){var Z=x.child;return x=Z.sibling,_=iu(Z,{mode:"visible",children:_}),(T.mode&2)===0&&(_.lanes=H),_.return=T,_.sibling=null,x!==null&&(x.nextEffect=null,x.flags=8,T.firstEffect=T.lastEffect=x),T.child=_}function mH(x,T,_,H,Z){var Ae=T.mode,me=x.child;x=me.sibling;var ze={mode:"hidden",children:_};return(Ae&2)===0&&T.child!==me?(_=T.child,_.childLanes=0,_.pendingProps=ze,me=_.lastEffect,me!==null?(T.firstEffect=_.firstEffect,T.lastEffect=me,me.nextEffect=null):T.firstEffect=T.lastEffect=null):_=iu(me,ze),x!==null?H=iu(x,H):(H=fg(H,Ae,Z,null),H.flags|=2),H.return=T,_.return=T,_.sibling=H,T.child=_,H}function EH(x,T){x.lanes|=T;var _=x.alternate;_!==null&&(_.lanes|=T),z7(x.return,T)}function QT(x,T,_,H,Z,Ae){var me=x.memoizedState;me===null?x.memoizedState={isBackwards:T,rendering:null,renderingStartTime:0,last:H,tail:_,tailMode:Z,lastEffect:Ae}:(me.isBackwards=T,me.rendering=null,me.renderingStartTime=0,me.last=H,me.tail=_,me.tailMode=Z,me.lastEffect=Ae)}function yH(x,T,_){var H=T.pendingProps,Z=H.revealOrder,Ae=H.tail;if(po(x,T,H.children,_),H=Ta.current,(H&2)!==0)H=H&1|2,T.flags|=64;else{if(x!==null&&(x.flags&64)!==0)e:for(x=T.child;x!==null;){if(x.tag===13)x.memoizedState!==null&&EH(x,_);else if(x.tag===19)EH(x,_);else if(x.child!==null){x.child.return=x,x=x.child;continue}if(x===T)break e;for(;x.sibling===null;){if(x.return===null||x.return===T)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}H&=1}if(Ra(Ta,H),(T.mode&2)===0)T.memoizedState=null;else switch(Z){case"forwards":for(_=T.child,Z=null;_!==null;)x=_.alternate,x!==null&&P1(x)===null&&(Z=_),_=_.sibling;_=Z,_===null?(Z=T.child,T.child=null):(Z=_.sibling,_.sibling=null),QT(T,!1,Z,_,Ae,T.lastEffect);break;case"backwards":for(_=null,Z=T.child,T.child=null;Z!==null;){if(x=Z.alternate,x!==null&&P1(x)===null){T.child=Z;break}x=Z.sibling,Z.sibling=_,_=Z,Z=x}QT(T,!0,_,null,Ae,T.lastEffect);break;case"together":QT(T,!1,null,null,void 0,T.lastEffect);break;default:T.memoizedState=null}return T.child}function qA(x,T,_){if(x!==null&&(T.dependencies=x.dependencies),Fm|=T.lanes,(_&T.childLanes)!==0){if(x!==null&&T.child!==x.child)throw Error(n(153));if(T.child!==null){for(x=T.child,_=iu(x,x.pendingProps),T.child=_,_.return=T;x.sibling!==null;)x=x.sibling,_=_.sibling=iu(x,x.pendingProps),_.return=T;_.sibling=null}return T.child}return null}var CH,DT,wH,BH;CH=function(x,T){for(var _=T.child;_!==null;){if(_.tag===5||_.tag===6)x.appendChild(_.stateNode);else if(_.tag!==4&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===T)break;for(;_.sibling===null;){if(_.return===null||_.return===T)return;_=_.return}_.sibling.return=_.return,_=_.sibling}},DT=function(){},wH=function(x,T,_,H){var Z=x.memoizedProps;if(Z!==H){x=T.stateNode,Dd(ql.current);var Ae=null;switch(_){case"input":Z=tt(x,Z),H=tt(x,H),Ae=[];break;case"option":Z=ht(x,Z),H=ht(x,H),Ae=[];break;case"select":Z=t({},Z,{value:void 0}),H=t({},H,{value:void 0}),Ae=[];break;case"textarea":Z=Ke(x,Z),H=Ke(x,H),Ae=[];break;default:typeof Z.onClick!="function"&&typeof H.onClick=="function"&&(x.onclick=C1)}Ie(_,H);var me;_=null;for(Rt in Z)if(!H.hasOwnProperty(Rt)&&Z.hasOwnProperty(Rt)&&Z[Rt]!=null)if(Rt==="style"){var ze=Z[Rt];for(me in ze)ze.hasOwnProperty(me)&&(_||(_={}),_[me]="")}else Rt!=="dangerouslySetInnerHTML"&&Rt!=="children"&&Rt!=="suppressContentEditableWarning"&&Rt!=="suppressHydrationWarning"&&Rt!=="autoFocus"&&(i.hasOwnProperty(Rt)?Ae||(Ae=[]):(Ae=Ae||[]).push(Rt,null));for(Rt in H){var ot=H[Rt];if(ze=Z!=null?Z[Rt]:void 0,H.hasOwnProperty(Rt)&&ot!==ze&&(ot!=null||ze!=null))if(Rt==="style")if(ze){for(me in ze)!ze.hasOwnProperty(me)||ot&&ot.hasOwnProperty(me)||(_||(_={}),_[me]="");for(me in ot)ot.hasOwnProperty(me)&&ze[me]!==ot[me]&&(_||(_={}),_[me]=ot[me])}else _||(Ae||(Ae=[]),Ae.push(Rt,_)),_=ot;else Rt==="dangerouslySetInnerHTML"?(ot=ot?ot.__html:void 0,ze=ze?ze.__html:void 0,ot!=null&&ze!==ot&&(Ae=Ae||[]).push(Rt,ot)):Rt==="children"?typeof ot!="string"&&typeof ot!="number"||(Ae=Ae||[]).push(Rt,""+ot):Rt!=="suppressContentEditableWarning"&&Rt!=="suppressHydrationWarning"&&(i.hasOwnProperty(Rt)?(ot!=null&&Rt==="onScroll"&&ea("scroll",x),Ae||ze===ot||(Ae=[])):typeof ot=="object"&&ot!==null&&ot.$$typeof===j?ot.toString():(Ae=Ae||[]).push(Rt,ot))}_&&(Ae=Ae||[]).push("style",_);var Rt=Ae;(T.updateQueue=Rt)&&(T.flags|=4)}},BH=function(x,T,_,H){_!==H&&(T.flags|=4)};function Dm(x,T){if(!Zl)switch(x.tailMode){case"hidden":T=x.tail;for(var _=null;T!==null;)T.alternate!==null&&(_=T),T=T.sibling;_===null?x.tail=null:_.sibling=null;break;case"collapsed":_=x.tail;for(var H=null;_!==null;)_.alternate!==null&&(H=_),_=_.sibling;H===null?T||x.tail===null?x.tail=null:x.tail.sibling=null:H.sibling=null}}function LRe(x,T,_){var H=T.pendingProps;switch(T.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ho(T.type)&&x1(),null;case 3:return og(),ta(fo),ta(Ni),CT(),H=T.stateNode,H.pendingContext&&(H.context=H.pendingContext,H.pendingContext=null),(x===null||x.child===null)&&(O1(T)?T.flags|=4:H.hydrate||(T.flags|=256)),DT(T),null;case 5:mT(T);var Z=Dd(xm.current);if(_=T.type,x!==null&&T.stateNode!=null)wH(x,T,_,H,Z),x.ref!==T.ref&&(T.flags|=128);else{if(!H){if(T.stateNode===null)throw Error(n(166));return null}if(x=Dd(ql.current),O1(T)){H=T.stateNode,_=T.type;var Ae=T.memoizedProps;switch(H[Vc]=T,H[B1]=Ae,_){case"dialog":ea("cancel",H),ea("close",H);break;case"iframe":case"object":case"embed":ea("load",H);break;case"video":case"audio":for(x=0;x<vm.length;x++)ea(vm[x],H);break;case"source":ea("error",H);break;case"img":case"image":case"link":ea("error",H),ea("load",H);break;case"details":ea("toggle",H);break;case"input":it(H,Ae),ea("invalid",H);break;case"select":H._wrapperState={wasMultiple:!!Ae.multiple},ea("invalid",H);break;case"textarea":Xe(H,Ae),ea("invalid",H)}Ie(_,Ae),x=null;for(var me in Ae)Ae.hasOwnProperty(me)&&(Z=Ae[me],me==="children"?typeof Z=="string"?H.textContent!==Z&&(x=["children",Z]):typeof Z=="number"&&H.textContent!==""+Z&&(x=["children",""+Z]):i.hasOwnProperty(me)&&Z!=null&&me==="onScroll"&&ea("scroll",H));switch(_){case"input":pe(H),Te(H,Ae,!0);break;case"textarea":pe(H),pt(H);break;case"select":case"option":break;default:typeof Ae.onClick=="function"&&(H.onclick=C1)}H=x,T.updateQueue=H,H!==null&&(T.flags|=4)}else{switch(me=Z.nodeType===9?Z:Z.ownerDocument,x===de.html&&(x=Fe(_)),x===de.html?_==="script"?(x=me.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild)):typeof H.is=="string"?x=me.createElement(_,{is:H.is}):(x=me.createElement(_),_==="select"&&(me=x,H.multiple?me.multiple=!0:H.size&&(me.size=H.size))):x=me.createElementNS(x,_),x[Vc]=T,x[B1]=H,CH(x,T,!1,!1),T.stateNode=x,me=ie(_,H),_){case"dialog":ea("cancel",x),ea("close",x),Z=H;break;case"iframe":case"object":case"embed":ea("load",x),Z=H;break;case"video":case"audio":for(Z=0;Z<vm.length;Z++)ea(vm[Z],x);Z=H;break;case"source":ea("error",x),Z=H;break;case"img":case"image":case"link":ea("error",x),ea("load",x),Z=H;break;case"details":ea("toggle",x),Z=H;break;case"input":it(x,H),Z=tt(x,H),ea("invalid",x);break;case"option":Z=ht(x,H);break;case"select":x._wrapperState={wasMultiple:!!H.multiple},Z=t({},H,{value:void 0}),ea("invalid",x);break;case"textarea":Xe(x,H),Z=Ke(x,H),ea("invalid",x);break;default:Z=H}Ie(_,Z);var ze=Z;for(Ae in ze)if(ze.hasOwnProperty(Ae)){var ot=ze[Ae];Ae==="style"?G(x,ot):Ae==="dangerouslySetInnerHTML"?(ot=ot?ot.__html:void 0,ot!=null&&xe(x,ot)):Ae==="children"?typeof ot=="string"?(_!=="textarea"||ot!=="")&&Ne(x,ot):typeof ot=="number"&&Ne(x,""+ot):Ae!=="suppressContentEditableWarning"&&Ae!=="suppressHydrationWarning"&&Ae!=="autoFocus"&&(i.hasOwnProperty(Ae)?ot!=null&&Ae==="onScroll"&&ea("scroll",x):ot!=null&&w(x,Ae,ot,me))}switch(_){case"input":pe(x),Te(x,H,!1);break;case"textarea":pe(x),pt(x);break;case"option":H.value!=null&&x.setAttribute("value",""+ge(H.value));break;case"select":x.multiple=!!H.multiple,Ae=H.value,Ae!=null?We(x,!!H.multiple,Ae,!1):H.defaultValue!=null&&We(x,!!H.multiple,H.defaultValue,!0);break;default:typeof Z.onClick=="function"&&(x.onclick=C1)}B7(_,H)&&(T.flags|=4)}T.ref!==null&&(T.flags|=128)}return null;case 6:if(x&&T.stateNode!=null)BH(x,T,x.memoizedProps,H);else{if(typeof H!="string"&&T.stateNode===null)throw Error(n(166));_=Dd(xm.current),Dd(ql.current),O1(T)?(H=T.stateNode,_=T.memoizedProps,H[Vc]=T,H.nodeValue!==_&&(T.flags|=4)):(H=(_.nodeType===9?_:_.ownerDocument).createTextNode(H),H[Vc]=T,T.stateNode=H)}return null;case 13:return ta(Ta),H=T.memoizedState,(T.flags&64)!==0?(T.lanes=_,T):(H=H!==null,_=!1,x===null?T.memoizedProps.fallback!==void 0&&O1(T):_=x.memoizedState!==null,H&&!_&&(T.mode&2)!==0&&(x===null&&T.memoizedProps.unstable_avoidThisFallback!==!0||(Ta.current&1)!==0?mi===0&&(mi=3):((mi===0||mi===3)&&(mi=4),Wi===null||(Fm&134217727)===0&&(Ag&134217727)===0||ug(Wi,Oi))),(H||_)&&(T.flags|=4),null);case 4:return og(),DT(T),x===null&&m7(T.stateNode.containerInfo),null;case 10:return hT(T),null;case 17:return ho(T.type)&&x1(),null;case 19:if(ta(Ta),H=T.memoizedState,H===null)return null;if(Ae=(T.flags&64)!==0,me=H.rendering,me===null)if(Ae)Dm(H,!1);else{if(mi!==0||x!==null&&(x.flags&64)!==0)for(x=T.child;x!==null;){if(me=P1(x),me!==null){for(T.flags|=64,Dm(H,!1),Ae=me.updateQueue,Ae!==null&&(T.updateQueue=Ae,T.flags|=4),H.lastEffect===null&&(T.firstEffect=null),T.lastEffect=H.lastEffect,H=_,_=T.child;_!==null;)Ae=_,x=H,Ae.flags&=2,Ae.nextEffect=null,Ae.firstEffect=null,Ae.lastEffect=null,me=Ae.alternate,me===null?(Ae.childLanes=0,Ae.lanes=x,Ae.child=null,Ae.memoizedProps=null,Ae.memoizedState=null,Ae.updateQueue=null,Ae.dependencies=null,Ae.stateNode=null):(Ae.childLanes=me.childLanes,Ae.lanes=me.lanes,Ae.child=me.child,Ae.memoizedProps=me.memoizedProps,Ae.memoizedState=me.memoizedState,Ae.updateQueue=me.updateQueue,Ae.type=me.type,x=me.dependencies,Ae.dependencies=x===null?null:{lanes:x.lanes,firstContext:x.firstContext}),_=_.sibling;return Ra(Ta,Ta.current&1|2),T.child}x=x.sibling}H.tail!==null&&ki()>UT&&(T.flags|=64,Ae=!0,Dm(H,!1),T.lanes=33554432)}else{if(!Ae)if(x=P1(me),x!==null){if(T.flags|=64,Ae=!0,_=x.updateQueue,_!==null&&(T.updateQueue=_,T.flags|=4),Dm(H,!0),H.tail===null&&H.tailMode==="hidden"&&!me.alternate&&!Zl)return T=T.lastEffect=H.lastEffect,T!==null&&(T.nextEffect=null),null}else 2*ki()-H.renderingStartTime>UT&&_!==1073741824&&(T.flags|=64,Ae=!0,Dm(H,!1),T.lanes=33554432);H.isBackwards?(me.sibling=T.child,T.child=me):(_=H.last,_!==null?_.sibling=me:T.child=me,H.last=me)}return H.tail!==null?(_=H.tail,H.rendering=_,H.tail=_.sibling,H.lastEffect=T.lastEffect,H.renderingStartTime=ki(),_.sibling=null,T=Ta.current,Ra(Ta,Ae?T&1|2:T&1),_):null;case 23:case 24:return WT(),x!==null&&x.memoizedState!==null!=(T.memoizedState!==null)&&H.mode!=="unstable-defer-without-hiding"&&(T.flags|=4),null}throw Error(n(156,T.tag))}function URe(x){switch(x.tag){case 1:ho(x.type)&&x1();var T=x.flags;return T&4096?(x.flags=T&-4097|64,x):null;case 3:if(og(),ta(fo),ta(Ni),CT(),T=x.flags,(T&64)!==0)throw Error(n(285));return x.flags=T&-4097|64,x;case 5:return mT(x),null;case 13:return ta(Ta),T=x.flags,T&4096?(x.flags=T&-4097|64,x):null;case 19:return ta(Ta),null;case 4:return og(),null;case 10:return hT(x),null;case 23:case 24:return WT(),null;default:return null}}function FT(x,T){try{var _="",H=T;do _+=ce(H),H=H.return;while(H);var Z=_}catch(Ae){Z=`
Error generating stack: `+Ae.message+`
`+Ae.stack}return{value:x,source:T,stack:Z}}function _T(x,T){try{console.error(T.value)}catch(_){setTimeout(function(){throw _})}}var HRe=typeof WeakMap=="function"?WeakMap:Map;function MH(x,T,_){_=qc(-1,_),_.tag=3,_.payload={element:null};var H=T.value;return _.callback=function(){V1||(V1=!0,HT=H),_T(x,T)},_}function xH(x,T,_){_=qc(-1,_),_.tag=3;var H=x.type.getDerivedStateFromError;if(typeof H=="function"){var Z=T.value;_.payload=function(){return _T(x,T),H(Z)}}var Ae=x.stateNode;return Ae!==null&&typeof Ae.componentDidCatch=="function"&&(_.callback=function(){typeof H!="function"&&(eA===null?eA=new Set([this]):eA.add(this),_T(x,T));var me=T.stack;this.componentDidCatch(T.value,{componentStack:me!==null?me:""})}),_}var GRe=typeof WeakSet=="function"?WeakSet:Set;function IH(x){var T=x.ref;if(T!==null)if(typeof T=="function")try{T(null)}catch(_){au(x,_)}else T.current=null}function KRe(x,T){switch(T.tag){case 0:case 11:case 15:case 22:return;case 1:if(T.flags&256&&x!==null){var _=x.memoizedProps,H=x.memoizedState;x=T.stateNode,T=x.getSnapshotBeforeUpdate(T.elementType===T.type?_:$s(T.type,_),H),x.__reactInternalSnapshotBeforeUpdate=T}return;case 3:T.flags&256&&aT(T.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(n(163))}function VRe(x,T,_){switch(_.tag){case 0:case 11:case 15:case 22:if(T=_.updateQueue,T=T!==null?T.lastEffect:null,T!==null){x=T=T.next;do{if((x.tag&3)===3){var H=x.create;x.destroy=H()}x=x.next}while(x!==T)}if(T=_.updateQueue,T=T!==null?T.lastEffect:null,T!==null){x=T=T.next;do{var Z=x;H=Z.next,Z=Z.tag,(Z&4)!==0&&(Z&1)!==0&&(YH(_,x),t2e(_,x)),x=H}while(x!==T)}return;case 1:x=_.stateNode,_.flags&4&&(T===null?x.componentDidMount():(H=_.elementType===_.type?T.memoizedProps:$s(_.type,T.memoizedProps),x.componentDidUpdate(H,T.memoizedState,x.__reactInternalSnapshotBeforeUpdate))),T=_.updateQueue,T!==null&&L7(_,T,x);return;case 3:if(T=_.updateQueue,T!==null){if(x=null,_.child!==null)switch(_.child.tag){case 5:x=_.child.stateNode;break;case 1:x=_.child.stateNode}L7(_,T,x)}return;case 5:x=_.stateNode,T===null&&_.flags&4&&B7(_.type,_.memoizedProps)&&x.focus();return;case 6:return;case 4:return;case 12:return;case 13:_.memoizedState===null&&(_=_.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&Zt(_))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(n(163))}function bH(x,T){for(var _=x;;){if(_.tag===5){var H=_.stateNode;if(T)H=H.style,typeof H.setProperty=="function"?H.setProperty("display","none","important"):H.display="none";else{H=_.stateNode;var Z=_.memoizedProps.style;Z=Z!=null&&Z.hasOwnProperty("display")?Z.display:null,H.style.display=Bt("display",Z)}}else if(_.tag===6)_.stateNode.nodeValue=T?"":_.memoizedProps;else if((_.tag!==23&&_.tag!==24||_.memoizedState===null||_===x)&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===x)break;for(;_.sibling===null;){if(_.return===null||_.return===x)return;_=_.return}_.sibling.return=_.return,_=_.sibling}}function SH(x,T){if(Td&&typeof Td.onCommitFiberUnmount=="function")try{Td.onCommitFiberUnmount(sT,T)}catch{}switch(T.tag){case 0:case 11:case 14:case 15:case 22:if(x=T.updateQueue,x!==null&&(x=x.lastEffect,x!==null)){var _=x=x.next;do{var H=_,Z=H.destroy;if(H=H.tag,Z!==void 0)if((H&4)!==0)YH(T,_);else{H=T;try{Z()}catch(Ae){au(H,Ae)}}_=_.next}while(_!==x)}break;case 1:if(IH(T),x=T.stateNode,typeof x.componentWillUnmount=="function")try{x.props=T.memoizedProps,x.state=T.memoizedState,x.componentWillUnmount()}catch(Ae){au(T,Ae)}break;case 5:IH(T);break;case 4:DH(x,T)}}function RH(x){x.alternate=null,x.child=null,x.dependencies=null,x.firstEffect=null,x.lastEffect=null,x.memoizedProps=null,x.memoizedState=null,x.pendingProps=null,x.return=null,x.updateQueue=null}function TH(x){return x.tag===5||x.tag===3||x.tag===4}function QH(x){e:{for(var T=x.return;T!==null;){if(TH(T))break e;T=T.return}throw Error(n(160))}var _=T;switch(T=_.stateNode,_.tag){case 5:var H=!1;break;case 3:T=T.containerInfo,H=!0;break;case 4:T=T.containerInfo,H=!0;break;default:throw Error(n(161))}_.flags&16&&(Ne(T,""),_.flags&=-17);e:t:for(_=x;;){for(;_.sibling===null;){if(_.return===null||TH(_.return)){_=null;break e}_=_.return}for(_.sibling.return=_.return,_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.flags&2||_.child===null||_.tag===4)continue t;_.child.return=_,_=_.child}if(!(_.flags&2)){_=_.stateNode;break e}}H?NT(x,_,T):kT(x,_,T)}function NT(x,T,_){var H=x.tag,Z=H===5||H===6;if(Z)x=Z?x.stateNode:x.stateNode.instance,T?_.nodeType===8?_.parentNode.insertBefore(x,T):_.insertBefore(x,T):(_.nodeType===8?(T=_.parentNode,T.insertBefore(x,_)):(T=_,T.appendChild(x)),_=_._reactRootContainer,_!=null||T.onclick!==null||(T.onclick=C1));else if(H!==4&&(x=x.child,x!==null))for(NT(x,T,_),x=x.sibling;x!==null;)NT(x,T,_),x=x.sibling}function kT(x,T,_){var H=x.tag,Z=H===5||H===6;if(Z)x=Z?x.stateNode:x.stateNode.instance,T?_.insertBefore(x,T):_.appendChild(x);else if(H!==4&&(x=x.child,x!==null))for(kT(x,T,_),x=x.sibling;x!==null;)kT(x,T,_),x=x.sibling}function DH(x,T){for(var _=T,H=!1,Z,Ae;;){if(!H){H=_.return;e:for(;;){if(H===null)throw Error(n(160));switch(Z=H.stateNode,H.tag){case 5:Ae=!1;break e;case 3:Z=Z.containerInfo,Ae=!0;break e;case 4:Z=Z.containerInfo,Ae=!0;break e}H=H.return}H=!0}if(_.tag===5||_.tag===6){e:for(var me=x,ze=_,ot=ze;;)if(SH(me,ot),ot.child!==null&&ot.tag!==4)ot.child.return=ot,ot=ot.child;else{if(ot===ze)break e;for(;ot.sibling===null;){if(ot.return===null||ot.return===ze)break e;ot=ot.return}ot.sibling.return=ot.return,ot=ot.sibling}Ae?(me=Z,ze=_.stateNode,me.nodeType===8?me.parentNode.removeChild(ze):me.removeChild(ze)):Z.removeChild(_.stateNode)}else if(_.tag===4){if(_.child!==null){Z=_.stateNode.containerInfo,Ae=!0,_.child.return=_,_=_.child;continue}}else if(SH(x,_),_.child!==null){_.child.return=_,_=_.child;continue}if(_===T)break;for(;_.sibling===null;){if(_.return===null||_.return===T)return;_=_.return,_.tag===4&&(H=!1)}_.sibling.return=_.return,_=_.sibling}}function PT(x,T){switch(T.tag){case 0:case 11:case 14:case 15:case 22:var _=T.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var H=_=_.next;do(H.tag&3)===3&&(x=H.destroy,H.destroy=void 0,x!==void 0&&x()),H=H.next;while(H!==_)}return;case 1:return;case 5:if(_=T.stateNode,_!=null){H=T.memoizedProps;var Z=x!==null?x.memoizedProps:H;x=T.type;var Ae=T.updateQueue;if(T.updateQueue=null,Ae!==null){for(_[B1]=H,x==="input"&&H.type==="radio"&&H.name!=null&&we(_,H),ie(x,Z),T=ie(x,H),Z=0;Z<Ae.length;Z+=2){var me=Ae[Z],ze=Ae[Z+1];me==="style"?G(_,ze):me==="dangerouslySetInnerHTML"?xe(_,ze):me==="children"?Ne(_,ze):w(_,me,ze,T)}switch(x){case"input":ve(_,H);break;case"textarea":$e(_,H);break;case"select":x=_._wrapperState.wasMultiple,_._wrapperState.wasMultiple=!!H.multiple,Ae=H.value,Ae!=null?We(_,!!H.multiple,Ae,!1):x!==!!H.multiple&&(H.defaultValue!=null?We(_,!!H.multiple,H.defaultValue,!0):We(_,!!H.multiple,H.multiple?[]:"",!1))}}}return;case 6:if(T.stateNode===null)throw Error(n(162));T.stateNode.nodeValue=T.memoizedProps;return;case 3:_=T.stateNode,_.hydrate&&(_.hydrate=!1,Zt(_.containerInfo));return;case 12:return;case 13:T.memoizedState!==null&&(LT=ki(),bH(T.child,!0)),FH(T);return;case 19:FH(T);return;case 17:return;case 23:case 24:bH(T,T.memoizedState!==null);return}throw Error(n(163))}function FH(x){var T=x.updateQueue;if(T!==null){x.updateQueue=null;var _=x.stateNode;_===null&&(_=x.stateNode=new GRe),T.forEach(function(H){var Z=a2e.bind(null,x,H);_.has(H)||(_.add(H),H.then(Z,Z))})}}function JRe(x,T){return x!==null&&(x=x.memoizedState,x===null||x.dehydrated!==null)?(T=T.memoizedState,T!==null&&T.dehydrated===null):!1}var WRe=Math.ceil,G1=B.ReactCurrentDispatcher,OT=B.ReactCurrentOwner,Kr=0,Wi=null,Xa=null,Oi=0,Nd=0,zT=Jc(0),mi=0,K1=null,lg=0,Fm=0,Ag=0,jT=0,YT=null,LT=0,UT=1/0;function cg(){UT=ki()+500}var xr=null,V1=!1,HT=null,eA=null,eu=!1,_m=null,Nm=90,GT=[],KT=[],ZA=null,km=0,VT=null,J1=-1,$A=0,W1=0,Pm=null,X1=!1;function Lo(){return(Kr&48)!==0?ki():J1!==-1?J1:J1=ki()}function tu(x){if(x=x.mode,(x&2)===0)return 1;if((x&4)===0)return ng()===99?1:2;if($A===0&&($A=lg),kRe.transition!==0){W1!==0&&(W1=YT!==null?YT.pendingLanes:0),x=$A;var T=4186112&~W1;return T&=-T,T===0&&(x=4186112&~x,T=x&-x,T===0&&(T=8192)),T}return x=ng(),(Kr&4)!==0&&x===98?x=Ji(12,$A):(x=Fi(x),x=Ji(x,$A)),x}function ru(x,T,_){if(50<km)throw km=0,VT=null,Error(n(185));if(x=q1(x,T),x===null)return null;KA(x,T,_),x===Wi&&(Ag|=T,mi===4&&ug(x,Oi));var H=ng();T===1?(Kr&8)!==0&&(Kr&48)===0?JT(x):(Es(x,_),Kr===0&&(cg(),Xl())):((Kr&4)===0||H!==98&&H!==99||(ZA===null?ZA=new Set([x]):ZA.add(x)),Es(x,_)),YT=x}function q1(x,T){x.lanes|=T;var _=x.alternate;for(_!==null&&(_.lanes|=T),_=x,x=x.return;x!==null;)x.childLanes|=T,_=x.alternate,_!==null&&(_.childLanes|=T),_=x,x=x.return;return _.tag===3?_.stateNode:null}function Es(x,T){for(var _=x.callbackNode,H=x.suspendedLanes,Z=x.pingedLanes,Ae=x.expirationTimes,me=x.pendingLanes;0<me;){var ze=31-_i(me),ot=1<<ze,Rt=Ae[ze];if(Rt===-1){if((ot&H)===0||(ot&Z)!==0){Rt=T,Ea(ot);var yr=Wr;Ae[ze]=10<=yr?Rt+250:6<=yr?Rt+5e3:-1}}else Rt<=T&&(x.expiredLanes|=ot);me&=~ot}if(H=ba(x,x===Wi?Oi:0),T=Wr,H===0)_!==null&&(_!==uT&&AT(_),x.callbackNode=null,x.callbackPriority=0);else{if(_!==null){if(x.callbackPriority===T)return;_!==uT&&AT(_)}T===15?(_=JT.bind(null,x),WA===null?(WA=[_],S1=lT(b1,O7)):WA.push(_),_=uT):T===14?_=ym(99,JT.bind(null,x)):(_=Ja(T),_=ym(_,_H.bind(null,x))),x.callbackPriority=T,x.callbackNode=_}}function _H(x){if(J1=-1,W1=$A=0,(Kr&48)!==0)throw Error(n(327));var T=x.callbackNode;if(nu()&&x.callbackNode!==T)return null;var _=ba(x,x===Wi?Oi:0);if(_===0)return null;var H=_,Z=Kr;Kr|=16;var Ae=OH();(Wi!==x||Oi!==H)&&(cg(),dg(x,H));do try{ZRe();break}catch(ze){PH(x,ze)}while(!0);if(fT(),G1.current=Ae,Kr=Z,Xa!==null?H=0:(Wi=null,Oi=0,H=mi),(lg&Ag)!==0)dg(x,0);else if(H!==0){if(H===2&&(Kr|=64,x.hydrate&&(x.hydrate=!1,aT(x.containerInfo)),_=gi(x),_!==0&&(H=Om(x,_))),H===1)throw T=K1,dg(x,0),ug(x,_),Es(x,ki()),T;switch(x.finishedWork=x.current.alternate,x.finishedLanes=_,H){case 0:case 1:throw Error(n(345));case 2:kd(x);break;case 3:if(ug(x,_),(_&62914560)===_&&(H=LT+500-ki(),10<H)){if(ba(x,0)!==0)break;if(Z=x.suspendedLanes,(Z&_)!==_){Lo(),x.pingedLanes|=x.suspendedLanes&Z;break}x.timeoutHandle=M7(kd.bind(null,x),H);break}kd(x);break;case 4:if(ug(x,_),(_&4186112)===_)break;for(H=x.eventTimes,Z=-1;0<_;){var me=31-_i(_);Ae=1<<me,me=H[me],me>Z&&(Z=me),_&=~Ae}if(_=Z,_=ki()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*WRe(_/1960))-_,10<_){x.timeoutHandle=M7(kd.bind(null,x),_);break}kd(x);break;case 5:kd(x);break;default:throw Error(n(329))}}return Es(x,ki()),x.callbackNode===T?_H.bind(null,x):null}function ug(x,T){for(T&=~jT,T&=~Ag,x.suspendedLanes|=T,x.pingedLanes&=~T,x=x.expirationTimes;0<T;){var _=31-_i(T),H=1<<_;x[_]=-1,T&=~H}}function JT(x){if((Kr&48)!==0)throw Error(n(327));if(nu(),x===Wi&&(x.expiredLanes&Oi)!==0){var T=Oi,_=Om(x,T);(lg&Ag)!==0&&(T=ba(x,T),_=Om(x,T))}else T=ba(x,0),_=Om(x,T);if(x.tag!==0&&_===2&&(Kr|=64,x.hydrate&&(x.hydrate=!1,aT(x.containerInfo)),T=gi(x),T!==0&&(_=Om(x,T))),_===1)throw _=K1,dg(x,0),ug(x,T),Es(x,ki()),_;return x.finishedWork=x.current.alternate,x.finishedLanes=T,kd(x),Es(x,ki()),null}function XRe(){if(ZA!==null){var x=ZA;ZA=null,x.forEach(function(T){T.expiredLanes|=24&T.pendingLanes,Es(T,ki())})}Xl()}function NH(x,T){var _=Kr;Kr|=1;try{return x(T)}finally{Kr=_,Kr===0&&(cg(),Xl())}}function kH(x,T){var _=Kr;Kr&=-2,Kr|=8;try{return x(T)}finally{Kr=_,Kr===0&&(cg(),Xl())}}function Z1(x,T){Ra(zT,Nd),Nd|=T,lg|=T}function WT(){Nd=zT.current,ta(zT)}function dg(x,T){x.finishedWork=null,x.finishedLanes=0;var _=x.timeoutHandle;if(_!==-1&&(x.timeoutHandle=-1,TRe(_)),Xa!==null)for(_=Xa.return;_!==null;){var H=_;switch(H.tag){case 1:H=H.type.childContextTypes,H!=null&&x1();break;case 3:og(),ta(fo),ta(Ni),CT();break;case 5:mT(H);break;case 4:og();break;case 13:ta(Ta);break;case 19:ta(Ta);break;case 10:hT(H);break;case 23:case 24:WT()}_=_.return}Wi=x,Xa=iu(x.current,null),Oi=Nd=lg=T,mi=0,K1=null,jT=Ag=Fm=0}function PH(x,T){do{var _=Xa;try{if(fT(),Im.current=U1,z1){for(var H=Oa.memoizedState;H!==null;){var Z=H.queue;Z!==null&&(Z.pending=null),H=H.next}z1=!1}if(bm=0,vi=Pi=Oa=null,Sm=!1,OT.current=null,_===null||_.return===null){mi=1,K1=T,Xa=null;break}e:{var Ae=x,me=_.return,ze=_,ot=T;if(T=Oi,ze.flags|=2048,ze.firstEffect=ze.lastEffect=null,ot!==null&&typeof ot=="object"&&typeof ot.then=="function"){var Rt=ot;if((ze.mode&2)===0){var yr=ze.alternate;yr?(ze.updateQueue=yr.updateQueue,ze.memoizedState=yr.memoizedState,ze.lanes=yr.lanes):(ze.updateQueue=null,ze.memoizedState=null)}var Xr=(Ta.current&1)!==0,Jt=me;do{var _r;if(_r=Jt.tag===13){var Vr=Jt.memoizedState;if(Vr!==null)_r=Vr.dehydrated!==null;else{var Lr=Jt.memoizedProps;_r=Lr.fallback===void 0?!1:Lr.unstable_avoidThisFallback!==!0?!0:!Xr}}if(_r){var wt=Jt.updateQueue;if(wt===null){var ct=new Set;ct.add(Rt),Jt.updateQueue=ct}else wt.add(Rt);if((Jt.mode&2)===0){if(Jt.flags|=64,ze.flags|=16384,ze.flags&=-2981,ze.tag===1)if(ze.alternate===null)ze.tag=17;else{var yt=qc(-1,1);yt.tag=2,Zc(ze,yt)}ze.lanes|=1;break e}ot=void 0,ze=T;var zt=Ae.pingCache;if(zt===null?(zt=Ae.pingCache=new HRe,ot=new Set,zt.set(Rt,ot)):(ot=zt.get(Rt),ot===void 0&&(ot=new Set,zt.set(Rt,ot))),!ot.has(ze)){ot.add(ze);var Lt=n2e.bind(null,Ae,Rt,ze);Rt.then(Lt,Lt)}Jt.flags|=4096,Jt.lanes=T;break e}Jt=Jt.return}while(Jt!==null);ot=Error((ue(ze.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.

Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}mi!==5&&(mi=2),ot=FT(ot,ze),Jt=me;do{switch(Jt.tag){case 3:Ae=ot,Jt.flags|=4096,T&=-T,Jt.lanes|=T;var tn=MH(Jt,Ae,T);Y7(Jt,tn);break e;case 1:Ae=ot;var Sr=Jt.type,rn=Jt.stateNode;if((Jt.flags&64)===0&&(typeof Sr.getDerivedStateFromError=="function"||rn!==null&&typeof rn.componentDidCatch=="function"&&(eA===null||!eA.has(rn)))){Jt.flags|=4096,T&=-T,Jt.lanes|=T;var vn=xH(Jt,Ae,T);Y7(Jt,vn);break e}}Jt=Jt.return}while(Jt!==null)}jH(_)}catch(An){T=An,Xa===_&&_!==null&&(Xa=_=_.return);continue}break}while(!0)}function OH(){var x=G1.current;return G1.current=U1,x===null?U1:x}function Om(x,T){var _=Kr;Kr|=16;var H=OH();Wi===x&&Oi===T||dg(x,T);do try{qRe();break}catch(Z){PH(x,Z)}while(!0);if(fT(),Kr=_,G1.current=H,Xa!==null)throw Error(n(261));return Wi=null,Oi=0,mi}function qRe(){for(;Xa!==null;)zH(Xa)}function ZRe(){for(;Xa!==null&&!FRe();)zH(Xa)}function zH(x){var T=UH(x.alternate,x,Nd);x.memoizedProps=x.pendingProps,T===null?jH(x):Xa=T,OT.current=null}function jH(x){var T=x;do{var _=T.alternate;if(x=T.return,(T.flags&2048)===0){if(_=LRe(_,T,Nd),_!==null){Xa=_;return}if(_=T,_.tag!==24&&_.tag!==23||_.memoizedState===null||(Nd&1073741824)!==0||(_.mode&4)===0){for(var H=0,Z=_.child;Z!==null;)H|=Z.lanes|Z.childLanes,Z=Z.sibling;_.childLanes=H}x!==null&&(x.flags&2048)===0&&(x.firstEffect===null&&(x.firstEffect=T.firstEffect),T.lastEffect!==null&&(x.lastEffect!==null&&(x.lastEffect.nextEffect=T.firstEffect),x.lastEffect=T.lastEffect),1<T.flags&&(x.lastEffect!==null?x.lastEffect.nextEffect=T:x.firstEffect=T,x.lastEffect=T))}else{if(_=URe(T),_!==null){_.flags&=2047,Xa=_;return}x!==null&&(x.firstEffect=x.lastEffect=null,x.flags|=2048)}if(T=T.sibling,T!==null){Xa=T;return}Xa=T=x}while(T!==null);mi===0&&(mi=5)}function kd(x){var T=ng();return Qd(99,$Re.bind(null,x,T)),null}function $Re(x,T){do nu();while(_m!==null);if((Kr&48)!==0)throw Error(n(327));var _=x.finishedWork;if(_===null)return null;if(x.finishedWork=null,x.finishedLanes=0,_===x.current)throw Error(n(177));x.callbackNode=null;var H=_.lanes|_.childLanes,Z=H,Ae=x.pendingLanes&~Z;x.pendingLanes=Z,x.suspendedLanes=0,x.pingedLanes=0,x.expiredLanes&=Z,x.mutableReadLanes&=Z,x.entangledLanes&=Z,Z=x.entanglements;for(var me=x.eventTimes,ze=x.expirationTimes;0<Ae;){var ot=31-_i(Ae),Rt=1<<ot;Z[ot]=0,me[ot]=-1,ze[ot]=-1,Ae&=~Rt}if(ZA!==null&&(H&24)===0&&ZA.has(x)&&ZA.delete(x),x===Wi&&(Xa=Wi=null,Oi=0),1<_.flags?_.lastEffect!==null?(_.lastEffect.nextEffect=_,H=_.firstEffect):H=_:H=_.firstEffect,H!==null){if(Z=Kr,Kr|=32,OT.current=null,tT=Md,me=d7(),q2(me)){if("selectionStart"in me)ze={start:me.selectionStart,end:me.selectionEnd};else e:if(ze=(ze=me.ownerDocument)&&ze.defaultView||window,(Rt=ze.getSelection&&ze.getSelection())&&Rt.rangeCount!==0){ze=Rt.anchorNode,Ae=Rt.anchorOffset,ot=Rt.focusNode,Rt=Rt.focusOffset;try{ze.nodeType,ot.nodeType}catch{ze=null;break e}var yr=0,Xr=-1,Jt=-1,_r=0,Vr=0,Lr=me,wt=null;t:for(;;){for(var ct;Lr!==ze||Ae!==0&&Lr.nodeType!==3||(Xr=yr+Ae),Lr!==ot||Rt!==0&&Lr.nodeType!==3||(Jt=yr+Rt),Lr.nodeType===3&&(yr+=Lr.nodeValue.length),(ct=Lr.firstChild)!==null;)wt=Lr,Lr=ct;for(;;){if(Lr===me)break t;if(wt===ze&&++_r===Ae&&(Xr=yr),wt===ot&&++Vr===Rt&&(Jt=yr),(ct=Lr.nextSibling)!==null)break;Lr=wt,wt=Lr.parentNode}Lr=ct}ze=Xr===-1||Jt===-1?null:{start:Xr,end:Jt}}else ze=null;ze=ze||{start:0,end:0}}else ze=null;rT={focusedElem:me,selectionRange:ze},Md=!1,Pm=null,X1=!1,xr=H;do try{e2e()}catch(An){if(xr===null)throw Error(n(330));au(xr,An),xr=xr.nextEffect}while(xr!==null);Pm=null,xr=H;do try{for(me=x;xr!==null;){var yt=xr.flags;if(yt&16&&Ne(xr.stateNode,""),yt&128){var zt=xr.alternate;if(zt!==null){var Lt=zt.ref;Lt!==null&&(typeof Lt=="function"?Lt(null):Lt.current=null)}}switch(yt&1038){case 2:QH(xr),xr.flags&=-3;break;case 6:QH(xr),xr.flags&=-3,PT(xr.alternate,xr);break;case 1024:xr.flags&=-1025;break;case 1028:xr.flags&=-1025,PT(xr.alternate,xr);break;case 4:PT(xr.alternate,xr);break;case 8:ze=xr,DH(me,ze);var tn=ze.alternate;RH(ze),tn!==null&&RH(tn)}xr=xr.nextEffect}}catch(An){if(xr===null)throw Error(n(330));au(xr,An),xr=xr.nextEffect}while(xr!==null);if(Lt=rT,zt=d7(),yt=Lt.focusedElem,me=Lt.selectionRange,zt!==yt&&yt&&yt.ownerDocument&&u7(yt.ownerDocument.documentElement,yt)){for(me!==null&&q2(yt)&&(zt=me.start,Lt=me.end,Lt===void 0&&(Lt=zt),"selectionStart"in yt?(yt.selectionStart=zt,yt.selectionEnd=Math.min(Lt,yt.value.length)):(Lt=(zt=yt.ownerDocument||document)&&zt.defaultView||window,Lt.getSelection&&(Lt=Lt.getSelection(),ze=yt.textContent.length,tn=Math.min(me.start,ze),me=me.end===void 0?tn:Math.min(me.end,ze),!Lt.extend&&tn>me&&(ze=me,me=tn,tn=ze),ze=c7(yt,tn),Ae=c7(yt,me),ze&&Ae&&(Lt.rangeCount!==1||Lt.anchorNode!==ze.node||Lt.anchorOffset!==ze.offset||Lt.focusNode!==Ae.node||Lt.focusOffset!==Ae.offset)&&(zt=zt.createRange(),zt.setStart(ze.node,ze.offset),Lt.removeAllRanges(),tn>me?(Lt.addRange(zt),Lt.extend(Ae.node,Ae.offset)):(zt.setEnd(Ae.node,Ae.offset),Lt.addRange(zt)))))),zt=[],Lt=yt;Lt=Lt.parentNode;)Lt.nodeType===1&&zt.push({element:Lt,left:Lt.scrollLeft,top:Lt.scrollTop});for(typeof yt.focus=="function"&&yt.focus(),yt=0;yt<zt.length;yt++)Lt=zt[yt],Lt.element.scrollLeft=Lt.left,Lt.element.scrollTop=Lt.top}Md=!!tT,rT=tT=null,x.current=_,xr=H;do try{for(yt=x;xr!==null;){var Sr=xr.flags;if(Sr&36&&VRe(yt,xr.alternate,xr),Sr&128){zt=void 0;var rn=xr.ref;if(rn!==null){var vn=xr.stateNode;switch(xr.tag){case 5:zt=vn;break;default:zt=vn}typeof rn=="function"?rn(zt):rn.current=zt}}xr=xr.nextEffect}}catch(An){if(xr===null)throw Error(n(330));au(xr,An),xr=xr.nextEffect}while(xr!==null);xr=null,NRe(),Kr=Z}else x.current=_;if(eu)eu=!1,_m=x,Nm=T;else for(xr=H;xr!==null;)T=xr.nextEffect,xr.nextEffect=null,xr.flags&8&&(Sr=xr,Sr.sibling=null,Sr.stateNode=null),xr=T;if(H=x.pendingLanes,H===0&&(eA=null),H===1?x===VT?km++:(km=0,VT=x):km=0,_=_.stateNode,Td&&typeof Td.onCommitFiberRoot=="function")try{Td.onCommitFiberRoot(sT,_,void 0,(_.current.flags&64)===64)}catch{}if(Es(x,ki()),V1)throw V1=!1,x=HT,HT=null,x;return(Kr&8)!==0||Xl(),null}function e2e(){for(;xr!==null;){var x=xr.alternate;X1||Pm===null||((xr.flags&8)!==0?an(xr,Pm)&&(X1=!0):xr.tag===13&&JRe(x,xr)&&an(xr,Pm)&&(X1=!0));var T=xr.flags;(T&256)!==0&&KRe(x,xr),(T&512)===0||eu||(eu=!0,ym(97,function(){return nu(),null})),xr=xr.nextEffect}}function nu(){if(Nm!==90){var x=97<Nm?97:Nm;return Nm=90,Qd(x,r2e)}return!1}function t2e(x,T){GT.push(T,x),eu||(eu=!0,ym(97,function(){return nu(),null}))}function YH(x,T){KT.push(T,x),eu||(eu=!0,ym(97,function(){return nu(),null}))}function r2e(){if(_m===null)return!1;var x=_m;if(_m=null,(Kr&48)!==0)throw Error(n(331));var T=Kr;Kr|=32;var _=KT;KT=[];for(var H=0;H<_.length;H+=2){var Z=_[H],Ae=_[H+1],me=Z.destroy;if(Z.destroy=void 0,typeof me=="function")try{me()}catch(ot){if(Ae===null)throw Error(n(330));au(Ae,ot)}}for(_=GT,GT=[],H=0;H<_.length;H+=2){Z=_[H],Ae=_[H+1];try{var ze=Z.create;Z.destroy=ze()}catch(ot){if(Ae===null)throw Error(n(330));au(Ae,ot)}}for(ze=x.current.firstEffect;ze!==null;)x=ze.nextEffect,ze.nextEffect=null,ze.flags&8&&(ze.sibling=null,ze.stateNode=null),ze=x;return Kr=T,Xl(),!0}function LH(x,T,_){T=FT(_,T),T=MH(x,T,1),Zc(x,T),T=Lo(),x=q1(x,1),x!==null&&(KA(x,1,T),Es(x,T))}function au(x,T){if(x.tag===3)LH(x,x,T);else for(var _=x.return;_!==null;){if(_.tag===3){LH(_,x,T);break}else if(_.tag===1){var H=_.stateNode;if(typeof _.type.getDerivedStateFromError=="function"||typeof H.componentDidCatch=="function"&&(eA===null||!eA.has(H))){x=FT(T,x);var Z=xH(_,x,1);if(Zc(_,Z),Z=Lo(),_=q1(_,1),_!==null)KA(_,1,Z),Es(_,Z);else if(typeof H.componentDidCatch=="function"&&(eA===null||!eA.has(H)))try{H.componentDidCatch(T,x)}catch{}break}}_=_.return}}function n2e(x,T,_){var H=x.pingCache;H!==null&&H.delete(T),T=Lo(),x.pingedLanes|=x.suspendedLanes&_,Wi===x&&(Oi&_)===_&&(mi===4||mi===3&&(Oi&62914560)===Oi&&500>ki()-LT?dg(x,0):jT|=_),Es(x,T)}function a2e(x,T){var _=x.stateNode;_!==null&&_.delete(T),T=0,T===0&&(T=x.mode,(T&2)===0?T=1:(T&4)===0?T=ng()===99?1:2:($A===0&&($A=lg),T=Wa(62914560&~$A),T===0&&(T=4194304))),_=Lo(),x=q1(x,T),x!==null&&(KA(x,T,_),Es(x,_))}var UH;UH=function(x,T,_){var H=T.lanes;if(x!==null)if(x.memoizedProps!==T.pendingProps||fo.current)el=!0;else if((_&H)!==0)el=(x.flags&16384)!==0;else{switch(el=!1,T.tag){case 3:hH(T),yT();break;case 5:W7(T);break;case 1:ho(T.type)&&I1(T);break;case 4:vT(T,T.stateNode.containerInfo);break;case 10:H=T.memoizedProps.value;var Z=T.type._context;Ra(R1,Z._currentValue),Z._currentValue=H;break;case 13:if(T.memoizedState!==null)return(_&T.child.childLanes)!==0?gH(x,T,_):(Ra(Ta,Ta.current&1),T=qA(x,T,_),T!==null?T.sibling:null);Ra(Ta,Ta.current&1);break;case 19:if(H=(_&T.childLanes)!==0,(x.flags&64)!==0){if(H)return yH(x,T,_);T.flags|=64}if(Z=T.memoizedState,Z!==null&&(Z.rendering=null,Z.tail=null,Z.lastEffect=null),Ra(Ta,Ta.current),H)break;return null;case 23:case 24:return T.lanes=0,ST(x,T,_)}return qA(x,T,_)}else el=!1;switch(T.lanes=0,T.tag){case 2:if(H=T.type,x!==null&&(x.alternate=null,T.alternate=null,T.flags|=2),x=T.pendingProps,Z=rg(T,Ni.current),ig(T,_),Z=BT(null,T,H,x,Z,_),T.flags|=1,typeof Z=="object"&&Z!==null&&typeof Z.render=="function"&&Z.$$typeof===void 0){if(T.tag=1,T.memoizedState=null,T.updateQueue=null,ho(H)){var Ae=!0;I1(T)}else Ae=!1;T.memoizedState=Z.state!==null&&Z.state!==void 0?Z.state:null,gT(T);var me=H.getDerivedStateFromProps;typeof me=="function"&&D1(T,H,me,x),Z.updater=F1,T.stateNode=Z,Z._reactInternals=T,pT(T,H,x,_),T=TT(null,T,H,!0,Ae,_)}else T.tag=0,po(null,T,Z,_),T=T.child;return T;case 16:Z=T.elementType;e:{switch(x!==null&&(x.alternate=null,T.alternate=null,T.flags|=2),x=T.pendingProps,Ae=Z._init,Z=Ae(Z._payload),T.type=Z,Ae=T.tag=o2e(Z),x=$s(Z,x),Ae){case 0:T=RT(null,T,Z,x,_);break e;case 1:T=fH(null,T,Z,x,_);break e;case 11:T=AH(null,T,Z,x,_);break e;case 14:T=cH(null,T,Z,$s(Z.type,x),H,_);break e}throw Error(n(306,Z,""))}return T;case 0:return H=T.type,Z=T.pendingProps,Z=T.elementType===H?Z:$s(H,Z),RT(x,T,H,Z,_);case 1:return H=T.type,Z=T.pendingProps,Z=T.elementType===H?Z:$s(H,Z),fH(x,T,H,Z,_);case 3:if(hH(T),H=T.updateQueue,x===null||H===null)throw Error(n(282));if(H=T.pendingProps,Z=T.memoizedState,Z=Z!==null?Z.element:null,j7(x,T),Cm(T,H,null,_),H=T.memoizedState.element,H===Z)yT(),T=qA(x,T,_);else{if(Z=T.stateNode,(Ae=Z.hydrate)&&($c=Zh(T.stateNode.containerInfo.firstChild),XA=T,Ae=Zl=!0),Ae){if(x=Z.mutableSourceEagerHydrationData,x!=null)for(Z=0;Z<x.length;Z+=2)Ae=x[Z],Ae._workInProgressVersionPrimary=x[Z+1],sg.push(Ae);for(_=J7(T,null,H,_),T.child=_;_;)_.flags=_.flags&-3|1024,_=_.sibling}else po(x,T,H,_),yT();T=T.child}return T;case 5:return W7(T),x===null&&ET(T),H=T.type,Z=T.pendingProps,Ae=x!==null?x.memoizedProps:null,me=Z.children,nT(H,Z)?me=null:Ae!==null&&nT(H,Ae)&&(T.flags|=16),dH(x,T),po(x,T,me,_),T.child;case 6:return x===null&&ET(T),null;case 13:return gH(x,T,_);case 4:return vT(T,T.stateNode.containerInfo),H=T.pendingProps,x===null?T.child=k1(T,null,H,_):po(x,T,H,_),T.child;case 11:return H=T.type,Z=T.pendingProps,Z=T.elementType===H?Z:$s(H,Z),AH(x,T,H,Z,_);case 7:return po(x,T,T.pendingProps,_),T.child;case 8:return po(x,T,T.pendingProps.children,_),T.child;case 12:return po(x,T,T.pendingProps.children,_),T.child;case 10:e:{H=T.type._context,Z=T.pendingProps,me=T.memoizedProps,Ae=Z.value;var ze=T.type._context;if(Ra(R1,ze._currentValue),ze._currentValue=Ae,me!==null)if(ze=me.value,Ae=ps(ze,Ae)?0:(typeof H._calculateChangedBits=="function"?H._calculateChangedBits(ze,Ae):1073741823)|0,Ae===0){if(me.children===Z.children&&!fo.current){T=qA(x,T,_);break e}}else for(ze=T.child,ze!==null&&(ze.return=T);ze!==null;){var ot=ze.dependencies;if(ot!==null){me=ze.child;for(var Rt=ot.firstContext;Rt!==null;){if(Rt.context===H&&(Rt.observedBits&Ae)!==0){ze.tag===1&&(Rt=qc(-1,_&-_),Rt.tag=2,Zc(ze,Rt)),ze.lanes|=_,Rt=ze.alternate,Rt!==null&&(Rt.lanes|=_),z7(ze.return,_),ot.lanes|=_;break}Rt=Rt.next}}else me=ze.tag===10&&ze.type===T.type?null:ze.child;if(me!==null)me.return=ze;else for(me=ze;me!==null;){if(me===T){me=null;break}if(ze=me.sibling,ze!==null){ze.return=me.return,me=ze;break}me=me.return}ze=me}po(x,T,Z.children,_),T=T.child}return T;case 9:return Z=T.type,Ae=T.pendingProps,H=Ae.children,ig(T,_),Z=vs(Z,Ae.unstable_observedBits),H=H(Z),T.flags|=1,po(x,T,H,_),T.child;case 14:return Z=T.type,Ae=$s(Z,T.pendingProps),Ae=$s(Z.type,Ae),cH(x,T,Z,Ae,H,_);case 15:return uH(x,T,T.type,T.pendingProps,H,_);case 17:return H=T.type,Z=T.pendingProps,Z=T.elementType===H?Z:$s(H,Z),x!==null&&(x.alternate=null,T.alternate=null,T.flags|=2),T.tag=1,ho(H)?(x=!0,I1(T)):x=!1,ig(T,_),G7(T,H,Z),pT(T,H,Z,_),TT(null,T,H,!0,x,_);case 19:return yH(x,T,_);case 23:return ST(x,T,_);case 24:return ST(x,T,_)}throw Error(n(156,T.tag))};function i2e(x,T,_,H){this.tag=x,this.key=_,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=H,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ys(x,T,_,H){return new i2e(x,T,_,H)}function XT(x){return x=x.prototype,!(!x||!x.isReactComponent)}function o2e(x){if(typeof x=="function")return XT(x)?1:0;if(x!=null){if(x=x.$$typeof,x===F)return 11;if(x===O)return 14}return 2}function iu(x,T){var _=x.alternate;return _===null?(_=ys(x.tag,T,x.key,x.mode),_.elementType=x.elementType,_.type=x.type,_.stateNode=x.stateNode,_.alternate=x,x.alternate=_):(_.pendingProps=T,_.type=x.type,_.flags=0,_.nextEffect=null,_.firstEffect=null,_.lastEffect=null),_.childLanes=x.childLanes,_.lanes=x.lanes,_.child=x.child,_.memoizedProps=x.memoizedProps,_.memoizedState=x.memoizedState,_.updateQueue=x.updateQueue,T=x.dependencies,_.dependencies=T===null?null:{lanes:T.lanes,firstContext:T.firstContext},_.sibling=x.sibling,_.index=x.index,_.ref=x.ref,_}function $1(x,T,_,H,Z,Ae){var me=2;if(H=x,typeof x=="function")XT(x)&&(me=1);else if(typeof x=="string")me=5;else e:switch(x){case S:return fg(_.children,Z,Ae,T);case V:me=8,Z|=16;break;case R:me=8,Z|=1;break;case b:return x=ys(12,_,T,Z|8),x.elementType=b,x.type=b,x.lanes=Ae,x;case N:return x=ys(13,_,T,Z),x.type=N,x.elementType=N,x.lanes=Ae,x;case k:return x=ys(19,_,T,Z),x.elementType=k,x.lanes=Ae,x;case L:return qT(_,Z,Ae,T);case K:return x=ys(24,_,T,Z),x.elementType=K,x.lanes=Ae,x;default:if(typeof x=="object"&&x!==null)switch(x.$$typeof){case Q:me=10;break e;case D:me=9;break e;case F:me=11;break e;case O:me=14;break e;case P:me=16,H=null;break e;case z:me=22;break e}throw Error(n(130,x==null?x:typeof x,""))}return T=ys(me,_,T,Z),T.elementType=x,T.type=H,T.lanes=Ae,T}function fg(x,T,_,H){return x=ys(7,x,H,T),x.lanes=_,x}function qT(x,T,_,H){return x=ys(23,x,H,T),x.elementType=L,x.lanes=_,x}function ZT(x,T,_){return x=ys(6,x,null,T),x.lanes=_,x}function $T(x,T,_){return T=ys(4,x.children!==null?x.children:[],x.key,T),T.lanes=_,T.stateNode={containerInfo:x.containerInfo,pendingChildren:null,implementation:x.implementation},T}function s2e(x,T,_){this.tag=T,this.containerInfo=x,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=_,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=uo(0),this.expirationTimes=uo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uo(0),this.mutableSourceEagerHydrationData=null}function l2e(x,T,_){var H=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:H==null?null:""+H,children:x,containerInfo:T,implementation:_}}function ew(x,T,_,H){var Z=T.current,Ae=Lo(),me=tu(Z);e:if(_){_=_._reactInternals;t:{if(Ft(_)!==_||_.tag!==1)throw Error(n(170));var ze=_;do{switch(ze.tag){case 3:ze=ze.stateNode.context;break t;case 1:if(ho(ze.type)){ze=ze.stateNode.__reactInternalMemoizedMergedChildContext;break t}}ze=ze.return}while(ze!==null);throw Error(n(171))}if(_.tag===1){var ot=_.type;if(ho(ot)){_=R7(_,ot,ze);break e}}_=ze}else _=Wc;return T.context===null?T.context=_:T.pendingContext=_,T=qc(Ae,me),T.payload={element:x},H=H===void 0?null:H,H!==null&&(T.callback=H),Zc(Z,T),ru(Z,me,Ae),me}function eQ(x){if(x=x.current,!x.child)return null;switch(x.child.tag){case 5:return x.child.stateNode;default:return x.child.stateNode}}function HH(x,T){if(x=x.memoizedState,x!==null&&x.dehydrated!==null){var _=x.retryLane;x.retryLane=_!==0&&_<T?_:T}}function tQ(x,T){HH(x,T),(x=x.alternate)&&HH(x,T)}function A2e(){return null}function rQ(x,T,_){var H=_!=null&&_.hydrationOptions!=null&&_.hydrationOptions.mutableSources||null;if(_=new s2e(x,T,_!=null&&_.hydrate===!0),T=ys(3,null,null,T===2?7:T===1?3:0),_.current=T,T.stateNode=_,gT(T),x[$h]=_.current,m7(x.nodeType===8?x.parentNode:x),H)for(x=0;x<H.length;x++){T=H[x];var Z=T._getVersion;Z=Z(T._source),_.mutableSourceEagerHydrationData==null?_.mutableSourceEagerHydrationData=[T,Z]:_.mutableSourceEagerHydrationData.push(T,Z)}this._internalRoot=_}rQ.prototype.render=function(x){ew(x,this._internalRoot,null,null)},rQ.prototype.unmount=function(){var x=this._internalRoot,T=x.containerInfo;ew(null,x,null,function(){T[$h]=null})};function zm(x){return!(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11&&(x.nodeType!==8||x.nodeValue!==" react-mount-point-unstable "))}function c2e(x,T){if(T||(T=x?x.nodeType===9?x.documentElement:x.firstChild:null,T=!(!T||T.nodeType!==1||!T.hasAttribute("data-reactroot"))),!T)for(var _;_=x.lastChild;)x.removeChild(_);return new rQ(x,0,T?{hydrate:!0}:void 0)}function tw(x,T,_,H,Z){var Ae=_._reactRootContainer;if(Ae){var me=Ae._internalRoot;if(typeof Z=="function"){var ze=Z;Z=function(){var Rt=eQ(me);ze.call(Rt)}}ew(T,me,x,Z)}else{if(Ae=_._reactRootContainer=c2e(_,H),me=Ae._internalRoot,typeof Z=="function"){var ot=Z;Z=function(){var Rt=eQ(me);ot.call(Rt)}}kH(function(){ew(T,me,x,Z)})}return eQ(me)}qe=function(x){if(x.tag===13){var T=Lo();ru(x,4,T),tQ(x,4)}},ke=function(x){if(x.tag===13){var T=Lo();ru(x,67108864,T),tQ(x,67108864)}},ut=function(x){if(x.tag===13){var T=Lo(),_=tu(x);ru(x,_,T),tQ(x,_)}},gt=function(x,T){return T()},he=function(x,T,_){switch(T){case"input":if(ve(x,_),T=_.name,_.type==="radio"&&T!=null){for(_=x;_.parentNode;)_=_.parentNode;for(_=_.querySelectorAll("input[name="+JSON.stringify(""+T)+'][type="radio"]'),T=0;T<_.length;T++){var H=_[T];if(H!==x&&H.form===x.form){var Z=M1(H);if(!Z)throw Error(n(90));Qe(H),ve(H,Z)}}}break;case"textarea":$e(x,_);break;case"select":T=_.value,T!=null&&We(x,!!_.multiple,T,!1)}},Le=NH,rt=function(x,T,_,H,Z){var Ae=Kr;Kr|=4;try{return Qd(98,x.bind(null,T,_,H,Z))}finally{Kr=Ae,Kr===0&&(cg(),Xl())}},Qt=function(){(Kr&49)===0&&(XRe(),nu())},Dt=function(x,T){var _=Kr;Kr|=2;try{return x(T)}finally{Kr=_,Kr===0&&(cg(),Xl())}};function GH(x,T){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zm(T))throw Error(n(200));return l2e(x,T,null,_)}var u2e={Events:[Em,eg,M1,lt,Ze,nu,{current:!1}]},jm={findFiberByHostInstance:Sd,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},d2e={bundleType:jm.bundleType,version:jm.version,rendererPackageName:jm.rendererPackageName,rendererConfig:jm.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:B.ReactCurrentDispatcher,findHostInstanceByFiber:function(x){return x=zr(x),x===null?null:x.stateNode},findFiberByHostInstance:jm.findFiberByHostInstance||A2e,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rw=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rw.isDisabled&&rw.supportsFiber)try{sT=rw.inject(d2e),Td=rw}catch{}}return Uo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u2e,Uo.createPortal=GH,Uo.findDOMNode=function(x){if(x==null)return null;if(x.nodeType===1)return x;var T=x._reactInternals;if(T===void 0)throw typeof x.render=="function"?Error(n(188)):Error(n(268,Object.keys(x)));return x=zr(T),x=x===null?null:x.stateNode,x},Uo.flushSync=function(x,T){var _=Kr;if((_&48)!==0)return x(T);Kr|=1;try{if(x)return Qd(99,x.bind(null,T))}finally{Kr=_,Xl()}},Uo.hydrate=function(x,T,_){if(!zm(T))throw Error(n(200));return tw(null,x,T,!0,_)},Uo.render=function(x,T,_){if(!zm(T))throw Error(n(200));return tw(null,x,T,!1,_)},Uo.unmountComponentAtNode=function(x){if(!zm(x))throw Error(n(40));return x._reactRootContainer?(kH(function(){tw(null,null,x,!1,function(){x._reactRootContainer=null,x[$h]=null})}),!0):!1},Uo.unstable_batchedUpdates=NH,Uo.unstable_createPortal=function(x,T){return GH(x,T,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Uo.unstable_renderSubtreeIntoContainer=function(x,T,_,H){if(!zm(_))throw Error(n(200));if(x==null||x._reactInternals===void 0)throw Error(n(38));return tw(x,T,_,!1,H)},Uo.version="17.0.2",Uo}var eG;function j3(){if(eG)return oQ.exports;eG=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),oQ.exports=E2e(),oQ.exports}var ei=j3();const bo=Nr(ei),y2e=bue({__proto__:null,default:bo},[ei]);var m=cr();const te=Nr(m),C2e=bue({__proto__:null,default:te},[m]),Sue="CONTENT_SET_VIEW",Rue="CONTENT_SET_COMPONENT",Tue="CONTENT_SET_PAGE",Que=(e,t=!1,r)=>({type:Sue,viewName:e,viewlink:t,pathname:r}),w2e=(e,t)=>({type:Rue,name:e,moduleId:t}),Ay=e=>({type:Tue,name:e});var Y3=m.createContext({});function Xt(e){"@babel/helpers - typeof";return Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(e)}function B2e(e,t){if(Xt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Due(e){var t=B2e(e,"string");return Xt(t)=="symbol"?t:t+""}function X(e,t,r){return(t=Due(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tG(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tG(Object(r),!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tG(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fue(e){if(Array.isArray(e))return e}function M2e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,A=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){A=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(A)throw a}}return s}}function wO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function L3(e,t){if(e){if(typeof e=="string")return wO(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wO(e,t):void 0}}function _ue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function De(e,t){return Fue(e)||M2e(e,t)||L3(e,t)||_ue()}function na(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Tr(e,t){if(e==null)return{};var r,n,a=na(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var AQ={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var rG;function ni(){return rG||(rG=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=a(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=a(o,s));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(AQ)),AQ.exports}var x2e=ni();const He=Nr(x2e);function Ii(e,t){I2e(e)&&(e="100%");var r=b2e(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function nw(e){return Math.min(1,Math.max(0,e))}function I2e(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function b2e(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Nue(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bf(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Cl(e){return e.length===1?"0"+e:String(e)}function kue(e,t,r){return{r:Ii(e,255)*255,g:Ii(t,255)*255,b:Ii(r,255)*255}}function BO(e,t,r){e=Ii(e,255),t=Ii(t,255),r=Ii(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=0,s=(n+a)/2;if(n===a)o=0,i=0;else{var l=n-a;switch(o=s>.5?l/(2-n-a):l/(n+a),n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,l:s}}function cQ(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Pue(e,t,r){var n,a,i;if(e=Ii(e,360),t=Ii(t,100),r=Ii(r,100),t===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=cQ(s,o,e+1/3),a=cQ(s,o,e),i=cQ(s,o,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function zI(e,t,r){e=Ii(e,255),t=Ii(t,255),r=Ii(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=n,s=n-a,l=n===0?0:s/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:o}}function Oue(e,t,r){e=Ii(e,360)*6,t=Ii(t,100),r=Ii(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,A=[r,o,i,i,s,r][l],c=[s,r,r,o,i,i][l],u=[i,i,s,r,r,o][l];return{r:A*255,g:c*255,b:u*255}}function jI(e,t,r,n){var a=[Cl(Math.round(e).toString(16)),Cl(Math.round(t).toString(16)),Cl(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function zue(e,t,r,n,a){var i=[Cl(Math.round(e).toString(16)),Cl(Math.round(t).toString(16)),Cl(Math.round(r).toString(16)),Cl(U3(n))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function MO(e,t,r,n){var a=[Cl(U3(n)),Cl(Math.round(e).toString(16)),Cl(Math.round(t).toString(16)),Cl(Math.round(r).toString(16))];return a.join("")}function U3(e){return Math.round(parseFloat(e)*255).toString(16)}function xO(e){return wo(e)/255}function wo(e){return parseInt(e,16)}function jue(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var YI={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function mf(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=Yue(e)),typeof e=="object"&&(dA(e.r)&&dA(e.g)&&dA(e.b)?(t=kue(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):dA(e.h)&&dA(e.s)&&dA(e.v)?(n=Bf(e.s),a=Bf(e.v),t=Oue(e.h,n,a),o=!0,s="hsv"):dA(e.h)&&dA(e.s)&&dA(e.l)&&(n=Bf(e.s),i=Bf(e.l),t=Pue(e.h,n,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Nue(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var S2e="[-\\+]?\\d+%?",R2e="[-\\+]?\\d*\\.\\d+%?",ku="(?:".concat(R2e,")|(?:").concat(S2e,")"),uQ="[\\s|\\(]+(".concat(ku,")[,|\\s]+(").concat(ku,")[,|\\s]+(").concat(ku,")\\s*\\)?"),dQ="[\\s|\\(]+(".concat(ku,")[,|\\s]+(").concat(ku,")[,|\\s]+(").concat(ku,")[,|\\s]+(").concat(ku,")\\s*\\)?"),ul={CSS_UNIT:new RegExp(ku),rgb:new RegExp("rgb"+uQ),rgba:new RegExp("rgba"+dQ),hsl:new RegExp("hsl"+uQ),hsla:new RegExp("hsla"+dQ),hsv:new RegExp("hsv"+uQ),hsva:new RegExp("hsva"+dQ),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Yue(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(YI[e])e=YI[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=ul.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=ul.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ul.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=ul.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ul.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=ul.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ul.hex8.exec(e),r?{r:wo(r[1]),g:wo(r[2]),b:wo(r[3]),a:xO(r[4]),format:t?"name":"hex8"}:(r=ul.hex6.exec(e),r?{r:wo(r[1]),g:wo(r[2]),b:wo(r[3]),format:t?"name":"hex"}:(r=ul.hex4.exec(e),r?{r:wo(r[1]+r[1]),g:wo(r[2]+r[2]),b:wo(r[3]+r[3]),a:xO(r[4]+r[4]),format:t?"name":"hex8"}:(r=ul.hex3.exec(e),r?{r:wo(r[1]+r[1]),g:wo(r[2]+r[2]),b:wo(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function dA(e){return!!ul.CSS_UNIT.exec(String(e))}var Ro=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=jue(t)),this.originalInput=t;var a=mf(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,i=t.r/255,o=t.g/255,s=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Nue(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=zI(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=zI(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=BO(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=BO(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),jI(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),zue(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Ii(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Ii(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+jI(this.r,this.g,this.b,!1),r=0,n=Object.entries(YI);r<n.length;r++){var a=n[r],i=a[0],o=a[1];if(t===o)return i}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,i=!r&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=nw(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=nw(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=nw(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=nw(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:a,v:i})),i=(i+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(n+o*i)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function nG(e,t){return e===void 0&&(e=""),t===void 0&&(t={}),new Ro(e,t)}function H3(e,t){var r=new Ro(e),n=new Ro(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)}function Lue(e,t,r){var n,a;r===void 0&&(r={level:"AA",size:"small"});var i=H3(e,t);switch(((n=r.level)!==null&&n!==void 0?n:"AA")+((a=r.size)!==null&&a!==void 0?a:"small")){case"AAsmall":case"AAAlarge":return i>=4.5;case"AAlarge":return i>=3;case"AAAsmall":return i>=7;default:return!1}}function Uue(e,t,r){r===void 0&&(r={includeFallbackColors:!1,level:"AA",size:"small"});for(var n=null,a=0,i=r.includeFallbackColors,o=r.level,s=r.size,l=0,A=t;l<A.length;l++){var c=A[l],u=H3(e,c);u>a&&(a=u,n=new Ro(c))}return Lue(e,n,{level:o,size:s})||!i?n:(r.includeFallbackColors=!1,Uue(e,["#fff","#000"],r))}function T2e(e,t){var r=new Ro(e),n="#"+MO(r.r,r.g,r.b,r.a),a=n,i=r.gradientType?"GradientType = 1, ":"";if(t){var o=new Ro(t);a="#"+MO(o.r,o.g,o.b,o.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(i,"startColorstr=").concat(n,",endColorstr=").concat(a,")")}function Q2e(e,t){var r={r:Bf(e.r),g:Bf(e.g),b:Bf(e.b)};return e.a!==void 0&&(r.a=Number(e.a)),new Ro(r,t)}function D2e(){return new Ro({r:Math.random(),g:Math.random(),b:Math.random()})}function Hue(e){if(e===void 0&&(e={}),e.count!==void 0&&e.count!==null){var t=e.count,r=[];for(e.count=void 0;t>r.length;)e.count=null,e.seed&&(e.seed+=1),r.push(Hue(e));return e.count=t,r}var n=F2e(e.hue,e.seed),a=_2e(n,e),i=N2e(n,a,e),o={h:n,s:a,v:i};return e.alpha!==void 0&&(o.a=e.alpha),new Ro(o)}function F2e(e,t){var r=P2e(e),n=LI(r,t);return n<0&&(n=360+n),n}function _2e(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return LI([0,100],t.seed);var r=Gue(e).saturationRange,n=r[0],a=r[1];switch(t.luminosity){case"bright":n=55;break;case"dark":n=a-10;break;case"light":a=55;break}return LI([n,a],t.seed)}function N2e(e,t,r){var n=k2e(e,t),a=100;switch(r.luminosity){case"dark":a=n+20;break;case"light":n=(a+n)/2;break;case"random":n=0,a=100;break}return LI([n,a],r.seed)}function k2e(e,t){for(var r=Gue(e).lowerBounds,n=0;n<r.length-1;n++){var a=r[n][0],i=r[n][1],o=r[n+1][0],s=r[n+1][1];if(t>=a&&t<=o){var l=(s-i)/(o-a),A=i-l*a;return l*t+A}}return 0}function P2e(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var r=G3.find(function(o){return o.name===e});if(r){var n=Kue(r);if(n.hueRange)return n.hueRange}var a=new Ro(e);if(a.isValid){var i=a.toHsv().h;return[i,i]}}return[0,360]}function Gue(e){e>=334&&e<=360&&(e-=360);for(var t=0,r=G3;t<r.length;t++){var n=r[t],a=Kue(n);if(a.hueRange&&e>=a.hueRange[0]&&e<=a.hueRange[1])return a}throw Error("Color not found")}function LI(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var r=e[1]||1,n=e[0]||0;t=(t*9301+49297)%233280;var a=t/233280;return Math.floor(n+a*(r-n))}function Kue(e){var t=e.lowerBounds[0][0],r=e.lowerBounds[e.lowerBounds.length-1][0],n=e.lowerBounds[e.lowerBounds.length-1][1],a=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,r],brightnessRange:[n,a]}}var G3=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];const O2e=Object.freeze(Object.defineProperty({__proto__:null,TinyColor:Ro,bounds:G3,convertDecimalToHex:U3,convertHexToDecimal:xO,default:nG,fromRatio:Q2e,hslToRgb:Pue,hsvToRgb:Oue,inputToRGB:mf,isReadable:Lue,isValidCSSUnit:dA,legacyRandom:D2e,mostReadable:Uue,names:YI,numberInputToObject:jue,parseIntFromHex:wo,random:Hue,readability:H3,rgbToHex:jI,rgbToHsl:BO,rgbToHsv:zI,rgbToRgb:kue,rgbaToArgbHex:MO,rgbaToHex:zue,stringInputToObject:Yue,tinycolor:nG,toMsFilter:T2e},Symbol.toStringTag,{value:"Module"}));var aw=2,aG=.16,z2e=.05,j2e=.05,Y2e=.15,Vue=5,Jue=4,L2e=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function iG(e){var t=e.r,r=e.g,n=e.b,a=zI(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function iw(e){var t=e.r,r=e.g,n=e.b;return"#".concat(jI(t,r,n,!1))}function U2e(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function oG(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-aw*t:Math.round(e.h)+aw*t:n=r?Math.round(e.h)+aw*t:Math.round(e.h)-aw*t,n<0?n+=360:n>=360&&(n-=360),n}function sG(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-aG*t:t===Jue?n=e.s+aG:n=e.s+z2e*t,n>1&&(n=1),r&&t===Vue&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function lG(e,t,r){var n;return r?n=e.v+j2e*t:n=e.v-Y2e*t,n>1&&(n=1),Number(n.toFixed(2))}function Jp(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=mf(e),a=Vue;a>0;a-=1){var i=iG(n),o=iw(mf({h:oG(i,a,!0),s:sG(i,a,!0),v:lG(i,a,!0)}));r.push(o)}r.push(iw(n));for(var s=1;s<=Jue;s+=1){var l=iG(n),A=iw(mf({h:oG(l,s),s:sG(l,s),v:lG(l,s)}));r.push(A)}return t.theme==="dark"?L2e.map(function(c){var u=c.index,d=c.opacity,f=iw(U2e(mf(t.backgroundColor||"#141414"),mf(r[u]),d*100));return f}):r}var _f={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},bi={},$x={};Object.keys(_f).forEach(function(e){bi[e]=Jp(_f[e]),bi[e].primary=bi[e][5],$x[e]=Jp(_f[e],{theme:"dark",backgroundColor:"#141414"}),$x[e].primary=$x[e][5]});var H2e=bi.red,G2e=bi.volcano,K2e=bi.gold,V2e=bi.orange,J2e=bi.yellow,W2e=bi.lime,X2e=bi.green,q2e=bi.cyan,Z2e=bi.blue,$2e=bi.geekblue,eTe=bi.purple,tTe=bi.magenta,rTe=bi.grey;const nTe=Object.freeze(Object.defineProperty({__proto__:null,blue:Z2e,cyan:q2e,geekblue:$2e,generate:Jp,gold:K2e,green:X2e,grey:rTe,lime:W2e,magenta:tTe,orange:V2e,presetDarkPalettes:$x,presetPalettes:bi,presetPrimaryColors:_f,purple:eTe,red:H2e,volcano:G2e,yellow:J2e},Symbol.toStringTag,{value:"Module"}));var IO={},aTe=function(t){};function iTe(e,t){}function oTe(e,t){}function sTe(){IO={}}function Wue(e,t,r){!t&&!IO[r]&&(e(!1,r),IO[r]=!0)}function Sn(e,t){Wue(iTe,e,t)}function Xue(e,t){Wue(oTe,e,t)}Sn.preMessage=aTe;Sn.resetWarned=sTe;Sn.noteOnce=Xue;function Gi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Nf(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var AG="data-rc-order",cG="data-rc-priority",lTe="rc-util-key",bO=new Map;function que(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):lTe}function bS(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ATe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function K3(e){return Array.from((bO.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Zue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Gi())return null;var r=t.csp,n=t.prepend,a=t.priority,i=a===void 0?0:a,o=ATe(n),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(AG,o),s&&i&&l.setAttribute(cG,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var A=bS(t),c=A.firstChild;if(n){if(s){var u=(t.styles||K3(A)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(AG)))return!1;var f=Number(d.getAttribute(cG)||0);return i>=f});if(u.length)return A.insertBefore(l,u[u.length-1].nextSibling),l}A.insertBefore(l,c)}else A.appendChild(l);return l}function $ue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=bS(t);return(t.styles||K3(r)).find(function(n){return n.getAttribute(que(t))===e})}function SO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=$ue(e,t);if(r){var n=bS(t);n.removeChild(r)}}function cTe(e,t){var r=bO.get(e);if(!r||!Nf(document,r)){var n=Zue("",t),a=n.parentNode;bO.set(e,a),e.removeChild(n)}}function Zy(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=bS(r),a=K3(n),i=$($({},r),{},{styles:a});cTe(n,i);var o=$ue(t,i);if(o){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var A;o.nonce=(A=i.csp)===null||A===void 0?void 0:A.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=Zue(e,i);return c.setAttribute(que(i),t),c}var fQ,uG;function ede(){if(uG)return fQ;uG=1;var e=typeof Ai=="object"&&Ai&&Ai.Object===Object&&Ai;return fQ=e,fQ}var hQ,dG;function Nl(){if(dG)return hQ;dG=1;var e=ede(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return hQ=r,hQ}var gQ,fG;function xv(){if(fG)return gQ;fG=1;var e=Nl(),t=e.Symbol;return gQ=t,gQ}var pQ,hG;function V3(){if(hG)return pQ;hG=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=Array(a);++n<a;)i[n]=r(t[n],n,t);return i}return pQ=e,pQ}var vQ,gG;function Vi(){if(gG)return vQ;gG=1;var e=Array.isArray;return vQ=e,vQ}var mQ,pG;function uTe(){if(pG)return mQ;pG=1;var e=xv(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(o){var s=r.call(o,a),l=o[a];try{o[a]=void 0;var A=!0}catch{}var c=n.call(o);return A&&(s?o[a]=l:delete o[a]),c}return mQ=i,mQ}var EQ,vG;function dTe(){if(vG)return EQ;vG=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return EQ=r,EQ}var yQ,mG;function fh(){if(mG)return yQ;mG=1;var e=xv(),t=uTe(),r=dTe(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?a:n:i&&i in Object(s)?t(s):r(s)}return yQ=o,yQ}var CQ,EG;function QA(){if(EG)return CQ;EG=1;function e(t){return t!=null&&typeof t=="object"}return CQ=e,CQ}var wQ,yG;function $y(){if(yG)return wQ;yG=1;var e=fh(),t=QA(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return wQ=n,wQ}var BQ,CG;function fTe(){if(CG)return BQ;CG=1;var e=xv(),t=V3(),r=Vi(),n=$y(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return i?i.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return BQ=o,BQ}var MQ,wG;function eC(){if(wG)return MQ;wG=1;var e=fTe();function t(r){return r==null?"":e(r)}return MQ=t,MQ}var xQ,BG;function hTe(){if(BG)return xQ;BG=1;function e(t,r,n){var a=-1,i=t.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(i);++a<i;)o[a]=t[a+r];return o}return xQ=e,xQ}var IQ,MG;function gTe(){if(MG)return IQ;MG=1;var e=hTe();function t(r,n,a){var i=r.length;return a=a===void 0?i:a,!n&&a>=i?r:e(r,n,a)}return IQ=t,IQ}var bQ,xG;function tde(){if(xG)return bQ;xG=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+a+i+"]");function l(A){return s.test(A)}return bQ=l,bQ}var SQ,IG;function pTe(){if(IG)return SQ;IG=1;function e(t){return t.split("")}return SQ=e,SQ}var RQ,bG;function vTe(){if(bG)return RQ;bG=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",o="["+e+"]",s="["+a+"]",l="\\ud83c[\\udffb-\\udfff]",A="(?:"+s+"|"+l+")",c="[^"+e+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",f="\\u200d",h=A+"?",g="["+i+"]?",p="(?:"+f+"(?:"+[c,u,d].join("|")+")"+g+h+")*",E=g+h+p,y="(?:"+[c+s+"?",s,u,d,o].join("|")+")",C=RegExp(l+"(?="+l+")|"+y+E,"g");function w(B){return B.match(C)||[]}return RQ=w,RQ}var TQ,SG;function mTe(){if(SG)return TQ;SG=1;var e=pTe(),t=tde(),r=vTe();function n(a){return t(a)?r(a):e(a)}return TQ=n,TQ}var QQ,RG;function ETe(){if(RG)return QQ;RG=1;var e=gTe(),t=tde(),r=mTe(),n=eC();function a(i){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),A=s?e(s,1).join(""):o.slice(1);return l[i]()+A}}return QQ=a,QQ}var DQ,TG;function yTe(){if(TG)return DQ;TG=1;var e=ETe(),t=e("toUpperCase");return DQ=t,DQ}var FQ,QG;function CTe(){if(QG)return FQ;QG=1;var e=eC(),t=yTe();function r(n){return t(e(n).toLowerCase())}return FQ=r,FQ}var _Q,DG;function wTe(){if(DG)return _Q;DG=1;function e(t,r,n,a){var i=-1,o=t==null?0:t.length;for(a&&o&&(n=t[++i]);++i<o;)n=r(n,t[i],i,t);return n}return _Q=e,_Q}var NQ,FG;function BTe(){if(FG)return NQ;FG=1;function e(t){return function(r){return t==null?void 0:t[r]}}return NQ=e,NQ}var kQ,_G;function MTe(){if(_G)return kQ;_G=1;var e=BTe(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},r=e(t);return kQ=r,kQ}var PQ,NG;function xTe(){if(NG)return PQ;NG=1;var e=MTe(),t=eC(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=n+a+i,s="["+o+"]",l=RegExp(s,"g");function A(c){return c=t(c),c&&c.replace(r,e).replace(l,"")}return PQ=A,PQ}var OQ,kG;function ITe(){if(kG)return OQ;kG=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return OQ=t,OQ}var zQ,PG;function bTe(){if(PG)return zQ;PG=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(r){return e.test(r)}return zQ=t,zQ}var jQ,OG;function STe(){if(OG)return jQ;OG=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",s="\\xac\\xb1\\xd7\\xf7",l="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",A="\\u2000-\\u206f",c=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",u="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\ufe0e\\ufe0f",f=s+l+A+c,h="['’]",g="["+f+"]",p="["+a+"]",E="\\d+",y="["+i+"]",C="["+o+"]",w="[^"+e+f+E+i+o+u+"]",B="\\ud83c[\\udffb-\\udfff]",M="(?:"+p+"|"+B+")",I="[^"+e+"]",S="(?:\\ud83c[\\udde6-\\uddff]){2}",R="[\\ud800-\\udbff][\\udc00-\\udfff]",b="["+u+"]",Q="\\u200d",D="(?:"+C+"|"+w+")",F="(?:"+b+"|"+w+")",N="(?:"+h+"(?:d|ll|m|re|s|t|ve))?",k="(?:"+h+"(?:D|LL|M|RE|S|T|VE))?",O=M+"?",P="["+d+"]?",z="(?:"+Q+"(?:"+[I,S,R].join("|")+")"+P+O+")*",j="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",L=P+O+z,K="(?:"+[y,S,R].join("|")+")"+L,J=RegExp([b+"?"+C+"+"+N+"(?="+[g,b,"$"].join("|")+")",F+"+"+k+"(?="+[g,b+D,"$"].join("|")+")",b+"?"+D+"+"+N,b+"+"+k,V,j,E,K].join("|"),"g");function Y(W){return W.match(J)||[]}return jQ=Y,jQ}var YQ,zG;function RTe(){if(zG)return YQ;zG=1;var e=ITe(),t=bTe(),r=eC(),n=STe();function a(i,o,s){return i=r(i),o=s?void 0:o,o===void 0?t(i)?n(i):e(i):i.match(o)||[]}return YQ=a,YQ}var LQ,jG;function rde(){if(jG)return LQ;jG=1;var e=wTe(),t=xTe(),r=RTe(),n="['’]",a=RegExp(n,"g");function i(o){return function(s){return e(r(t(s).replace(a,"")),o,"")}}return LQ=i,LQ}var UQ,YG;function nde(){if(YG)return UQ;YG=1;var e=CTe(),t=rde(),r=t(function(n,a,i){return a=a.toLowerCase(),n+(i?e(a):a)});return UQ=r,UQ}var TTe=nde();const QTe=Nr(TTe);function DTe(e,t){Sn(e,"[@ant-design/icons] ".concat(t))}function LG(e){return Xt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Xt(e.icon)==="object"||typeof e.icon=="function")}function UG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[QTe(r)]=n}return t},{})}function RO(e,t,r){return r?te.createElement(e.tag,$($({key:t},UG(e.attrs)),r),(e.children||[]).map(function(n,a){return RO(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):te.createElement(e.tag,$({key:t},UG(e.attrs)),(e.children||[]).map(function(n,a){return RO(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function ade(e){return Jp(e)[0]}function ide(e){return e?Array.isArray(e)?e:[e]:[]}var FTe=`
.anticon {
  display: inline-flex;
  alignItems: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,_Te=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:FTe,r=m.useContext(Y3),n=r.csp;m.useEffect(function(){Zy(t,"@ant-design-icons",{prepend:!0,csp:n})},[])},NTe=["icon","className","onClick","style","primaryColor","secondaryColor"],O0={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function kTe(e){var t=e.primaryColor,r=e.secondaryColor;O0.primaryColor=t,O0.secondaryColor=r||ade(t),O0.calculated=!!r}function PTe(){return $({},O0)}var Iv=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,o=t.primaryColor,s=t.secondaryColor,l=Tr(t,NTe),A=O0;if(o&&(A={primaryColor:o,secondaryColor:s||ade(o)}),_Te(),DTe(LG(r),"icon should be icon definiton, but got ".concat(r)),!LG(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=$($({},c),{},{icon:c.icon(A.primaryColor,A.secondaryColor)})),RO(c.icon,"svg-".concat(c.name),$({className:n,onClick:a,style:i,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};Iv.displayName="IconReact";Iv.getTwoToneColors=PTe;Iv.setTwoToneColors=kTe;function ode(e){var t=ide(e),r=De(t,2),n=r[0],a=r[1];return Iv.setTwoToneColors({primaryColor:n,secondaryColor:a})}function OTe(){var e=Iv.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var zTe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ode("#1890ff");var jt=m.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,A=Tr(e,zTe),c=m.useContext(Y3),u=c.prefixCls,d=u===void 0?"anticon":u,f=c.rootClassName,h=He(f,d,X(X({},"".concat(d,"-").concat(n.name),!!n.name),"".concat(d,"-spin"),!!a||n.name==="loading"),r),g=o;g===void 0&&s&&(g=-1);var p=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,E=ide(l),y=De(E,2),C=y[0],w=y[1];return m.createElement("span",$($({role:"img","aria-label":n.name},A),{},{ref:t,tabIndex:g,onClick:s,className:h}),m.createElement(Iv,{icon:n,primaryColor:C,secondaryColor:w,style:p}))});jt.displayName="AntdIcon";jt.getTwoToneColor=OTe;jt.setTwoToneColor=ode;var jTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},YTe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:jTe}))},LTe=m.forwardRef(YTe),UTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},HTe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:UTe}))},GTe=m.forwardRef(HTe),KTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},VTe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:KTe}))},UI=m.forwardRef(VTe),JTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},WTe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:JTe}))},sde=m.forwardRef(WTe),XTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},qTe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:XTe}))},ZTe=m.forwardRef(qTe),$Te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"},eQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:$Te}))},lde=m.forwardRef(eQe),tQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM668 345.9L621.5 312 572 347.4V124h96v221.9z"}}]},name:"book",theme:"filled"},rQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:tQe}))},nQe=m.forwardRef(rQe),aQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},iQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:aQe}))},eI=m.forwardRef(iQe),oQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},sQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:oQe}))},Ade=m.forwardRef(sQe),lQe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},AQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:lQe}))},cQe=m.forwardRef(AQe),uQe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},dQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:uQe}))},fQe=m.forwardRef(dQe),hQe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},gQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:hQe}))},pQe=m.forwardRef(gQe),vQe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},mQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:vQe}))},EQe=m.forwardRef(mQe),yQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},CQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:yQe}))},tC=m.forwardRef(CQe),wQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},BQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:wQe}))},SS=m.forwardRef(BQe),MQe={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z",fill:r}},{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z",fill:t}}]}},name:"check-circle",theme:"twotone"},xQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:MQe}))},cy=m.forwardRef(xQe),IQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},bQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:IQe}))},Gs=m.forwardRef(bQe),SQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},RQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:SQe}))},J3=m.forwardRef(RQe),TQe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},QQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:TQe}))},kl=m.forwardRef(QQe),DQe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},FQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:DQe}))},RS=m.forwardRef(FQe),_Qe={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm171.8 527.1c1.2 1.5 1.9 3.3 1.9 5.2 0 4.5-3.6 8-8 8l-66-.3-99.3-118.4-99.3 118.5-66.1.3c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2L471 512.3l-130.1-155a8.32 8.32 0 01-1.9-5.2c0-4.5 3.6-8 8-8l66.1.3 99.3 118.4 99.4-118.5 66-.3c4.4 0 8 3.6 8 8 0 1.9-.6 3.8-1.8 5.2l-130.1 155 129.9 154.9z",fill:r}},{tag:"path",attrs:{d:"M685.8 352c0-4.4-3.6-8-8-8l-66 .3-99.4 118.5-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155-130.1 154.9a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3 99.3-118.5L611.7 680l66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.9 512.2l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z",fill:t}}]}},name:"close-circle",theme:"twotone"},NQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:_Qe}))},HI=m.forwardRef(NQe),kQe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},PQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:kQe}))},ci=m.forwardRef(PQe),OQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},zQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:OQe}))},jQe=m.forwardRef(zQe),YQe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z"}}]},name:"coffee",theme:"outlined"},LQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:YQe}))},UQe=m.forwardRef(LQe),HQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"}}]},name:"column-width",theme:"outlined"},GQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:HQe}))},KQe=m.forwardRef(GQe),VQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"}},{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}},{tag:"path",attrs:{d:"M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"}}]},name:"console-sql",theme:"outlined"},JQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:VQe}))},bv=m.forwardRef(JQe),WQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8s0 .1.1.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8 0 0 0 .1-.1.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7zM620 539v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8v.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8v.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7z"}}]},name:"control",theme:"outlined"},XQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:WQe}))},HG=m.forwardRef(XQe),qQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},ZQe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:qQe}))},hh=m.forwardRef(ZQe),$Qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},eDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:$Qe}))},Ba=m.forwardRef(eDe),tDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},rDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:tDe}))},GG=m.forwardRef(rDe),nDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},aDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:nDe}))},iDe=m.forwardRef(aDe),oDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},sDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:oDe}))},lDe=m.forwardRef(sDe),ADe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},cDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:ADe}))},rC=m.forwardRef(cDe),uDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},dDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:uDe}))},TS=m.forwardRef(dDe),fDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},hDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:fDe}))},QS=m.forwardRef(hDe),gDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},pDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:gDe}))},W3=m.forwardRef(pDe),vDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},mDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:vDe}))},EDe=m.forwardRef(mDe),yDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"},CDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:yDe}))},wDe=m.forwardRef(CDe),BDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},MDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:BDe}))},nC=m.forwardRef(MDe),xDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},IDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:xDe}))},Sv=m.forwardRef(IDe),bDe={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-32 156c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:r}},{tag:"path",attrs:{d:"M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8zm-24 112a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}}]}},name:"exclamation-circle",theme:"twotone"},SDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:bDe}))},RDe=m.forwardRef(SDe),TDe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},QDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:TDe}))},GI=m.forwardRef(QDe),DDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},FDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:DDe}))},X3=m.forwardRef(FDe),_De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},NDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:_De}))},q3=m.forwardRef(NDe),kDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"},PDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:kDe}))},cde=m.forwardRef(PDe),ODe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z"}}]},name:"file-excel",theme:"outlined"},zDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:ODe}))},ude=m.forwardRef(zDe),jDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},YDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:jDe}))},Z3=m.forwardRef(YDe),LDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"},UDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:LDe}))},KG=m.forwardRef(UDe),HDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},GDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:HDe}))},KDe=m.forwardRef(GDe),VDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"},JDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:VDe}))},WDe=m.forwardRef(JDe),XDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32z"}}]},name:"folder",theme:"filled"},qDe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:XDe}))},ZDe=m.forwardRef(qDe),$De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},eFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:$De}))},tFe=m.forwardRef(eFe),rFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},nFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:rFe}))},aFe=m.forwardRef(nFe),iFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M312.1 591.5c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L517 485.3l-86.1-86.2a8.03 8.03 0 00-11.3 0L275.3 543.4a8.03 8.03 0 000 11.3l36.8 36.8z"}},{tag:"path",attrs:{d:"M904 160H548V96c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H120c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h356.4v32L311.6 884.1a7.92 7.92 0 00-2.3 11l30.3 47.2v.1c2.4 3.7 7.4 4.7 11.1 2.3L512 838.9l161.3 105.8c3.7 2.4 8.7 1.4 11.1-2.3v-.1l30.3-47.2a8 8 0 00-2.3-11L548 776.3V744h356c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 512H160V232h704v440z"}}]},name:"fund-projection-screen",theme:"outlined"},oFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:iFe}))},sFe=m.forwardRef(oFe),lFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},AFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:lFe}))},cFe=m.forwardRef(AFe),uFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},dFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:uFe}))},fFe=m.forwardRef(dFe),hFe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},gFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:hFe}))},Rv=m.forwardRef(gFe),pFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},vFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:pFe}))},$3=m.forwardRef(vFe),mFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},EFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:mFe}))},DS=m.forwardRef(EFe),yFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},CFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:yFe}))},TO=m.forwardRef(CFe),wFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M365.3 518.5l246 178c5.3 3.8 12.7 0 12.7-6.5v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a8.05 8.05 0 000 13z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"left-square",theme:"outlined"},BFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:wFe}))},FS=m.forwardRef(BFe),MFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"},xFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:MFe}))},QO=m.forwardRef(xFe),IFe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},bFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:IFe}))},Xu=m.forwardRef(bFe),SFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},RFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:SFe}))},eY=m.forwardRef(RFe),TFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},QFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:TFe}))},DFe=m.forwardRef(QFe),FFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},_Fe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:FFe}))},VG=m.forwardRef(_Fe),NFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},kFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:NFe}))},PFe=m.forwardRef(kFe),OFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482.2 508.4L331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4a4.5 4.5 0 000-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4a4.52 4.52 0 000 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"}}]},name:"merge-cells",theme:"outlined"},zFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:OFe}))},jFe=m.forwardRef(zFe),YFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},LFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:YFe}))},UFe=m.forwardRef(LFe),HFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},GFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:HFe}))},_S=m.forwardRef(GFe),KFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},VFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:KFe}))},JFe=m.forwardRef(VFe),WFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},XFe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:WFe}))},qFe=m.forwardRef(XFe),ZFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z"}}]},name:"pie-chart",theme:"outlined"},$Fe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:ZFe}))},dde=m.forwardRef($Fe),e_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},t_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:e_e}))},r_e=m.forwardRef(t_e),n_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM641.7 520.8L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 010 17.6z"}}]},name:"play-square",theme:"filled"},a_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:n_e}))},i_e=m.forwardRef(a_e),o_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},s_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:o_e}))},NS=m.forwardRef(s_e),l_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},A_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:l_e}))},fde=m.forwardRef(A_e),c_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},u_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:c_e}))},gh=m.forwardRef(u_e),d_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},f_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:d_e}))},hde=m.forwardRef(f_e),h_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2-27.2 31.7-65.6 54.4-108.1 64-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 00-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9 58.4-13.2 111.4-44.7 149.3-88.7 19.1-22.3 34-47.1 44.3-74 10.7-27.9 16.1-57.2 16.1-87 0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z"}}]},name:"question",theme:"outlined"},g_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:h_e}))},gde=m.forwardRef(g_e),p_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},v_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:p_e}))},bp=m.forwardRef(v_e),m_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0011.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 00-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 00-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z"}}]},name:"retweet",theme:"outlined"},E_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:m_e}))},pde=m.forwardRef(E_e),y_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},C_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:y_e}))},uy=m.forwardRef(C_e),w_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"right-square",theme:"outlined"},B_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:w_e}))},tY=m.forwardRef(B_e),M_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z"}}]},name:"rise",theme:"outlined"},x_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:M_e}))},vde=m.forwardRef(x_e),I_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},b_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:I_e}))},DO=m.forwardRef(b_e),S_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},R_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:S_e}))},DA=m.forwardRef(R_e),T_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},Q_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:T_e}))},rY=m.forwardRef(Q_e),D_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"},F_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:D_e}))},__e=m.forwardRef(F_e),N_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"},k_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:N_e}))},mde=m.forwardRef(k_e),P_e={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:r}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:t}}]}},name:"star",theme:"twotone"},O_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:P_e}))},z_e=m.forwardRef(O_e),j_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Y_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:j_e}))},L_e=m.forwardRef(Y_e),U_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},H_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:U_e}))},Wf=m.forwardRef(H_e),G_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},K_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:G_e}))},V_e=m.forwardRef(K_e),J_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885 780H165c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM400 325.7h73.9V664c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V325.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 171a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13z"}}]},name:"to-top",theme:"outlined"},W_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:J_e}))},X_e=m.forwardRef(W_e),q_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"},Z_e=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:q_e}))},$_e=m.forwardRef(Z_e),eNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},tNe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:eNe}))},Tv=m.forwardRef(tNe),rNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},nNe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:rNe}))},La=m.forwardRef(nNe),aNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"},iNe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:aNe}))},Ede=m.forwardRef(iNe),oNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"unordered-list",theme:"outlined"},sNe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:oNe}))},dy=m.forwardRef(sNe),lNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},ANe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:lNe}))},cNe=m.forwardRef(ANe),uNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},dNe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:uNe}))},aC=m.forwardRef(dNe),fNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},hNe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:fNe}))},gNe=m.forwardRef(hNe),pNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},vNe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:pNe}))},mNe=m.forwardRef(vNe),ENe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},yNe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:ENe}))},yde=m.forwardRef(yNe),CNe={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z",fill:t}},{tag:"path",attrs:{d:"M172.2 828.1h679.6L512 239.9 172.2 828.1zM560 720a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm-16-304v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8z",fill:r}},{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z",fill:t}}]}},name:"warning",theme:"twotone"},wNe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:CNe}))},BNe=m.forwardRef(wNe),MNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},xNe=function(t,r){return m.createElement(jt,$($({},t),{},{ref:r,icon:MNe}))},FO=m.forwardRef(xNe);const INe="SET_MENU",Cde="UI_SET_DOWNLOAD",wde="SHOW_FILTERS_DRAWER",Bde="SET_SELECTED_TAB",Mde="SHOW_SHORTCUTS",xde="SET_GENERATE_PDF",Ide="SET_SHOW_OVERLAY",bde="SET_BUG_TRACKER",Sde="SET_SHOW_MENUS",Rde="SET_MENU_MODE",Tde="SET_SIDER_IS_COLLAPSED",Qde="SET_DEV_MODE",Dde="SET_PRIMARY_COLOR",Fde="SET_GRAPH_DISPLAY_PREFERENCE",_de=(e=null)=>({type:Rde,mode:e}),Sp=(e=null)=>({type:Tde,collapsed:e}),bNe=e=>({type:Cde,download:e}),Xf=(e,t=!1)=>({type:wde,visible:e,editor:t}),JG=e=>({type:Bde,tab:e}),WG=e=>({type:Mde,visible:e}),XG=e=>({type:xde,status:e}),kS=e=>({type:Ide,status:e}),SNe=e=>({type:bde,value:e}),RNe=e=>({type:Sde,status:e}),TNe=e=>({type:Qde,devMode:e}),Nde=e=>({type:Dde,primaryColor:e}),QNe=e=>({type:Fde,graphDisplayPreference:e}),kde="SET_SETTINGS",Pde="SET_LOADING",Ode="SET_USER_DISPLAY_SETTINGS",DNe=e=>({type:kde,settings:e}),qG=e=>({type:Pde,loading:e}),zde=e=>({type:Ode,userSettings:e});var HQ,ZG;function FNe(){if(ZG)return HQ;ZG=1;var e=Array.prototype,t=e.reverse;function r(n){return n==null?n:t.call(n)}return HQ=r,HQ}var _Ne=FNe();const NNe=Nr(_Ne);var GQ={},$G;function cd(){return $G||($G=1,function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(i,o){return Object.prototype.hasOwnProperty.call(i,o)}e.assign=function(i){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var l in s)r(s,l)&&(i[l]=s[l])}}return i},e.shrinkBuf=function(i,o){return i.length===o?i:i.subarray?i.subarray(0,o):(i.length=o,i)};var n={arraySet:function(i,o,s,l,A){if(o.subarray&&i.subarray){i.set(o.subarray(s,s+l),A);return}for(var c=0;c<l;c++)i[A+c]=o[s+c]},flattenChunks:function(i){var o,s,l,A,c,u;for(l=0,o=0,s=i.length;o<s;o++)l+=i[o].length;for(u=new Uint8Array(l),A=0,o=0,s=i.length;o<s;o++)c=i[o],u.set(c,A),A+=c.length;return u}},a={arraySet:function(i,o,s,l,A){for(var c=0;c<l;c++)i[A+c]=o[s+c]},flattenChunks:function(i){return[].concat.apply([],i)}};e.setTyped=function(i){i?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,n)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)}(GQ)),GQ}var gg={},tl={},Pd={},eK;function kNe(){if(eK)return Pd;eK=1;var e=cd(),t=4,r=0,n=1,a=2;function i(de){for(var Fe=de.length;--Fe>=0;)de[Fe]=0}var o=0,s=1,l=2,A=3,c=258,u=29,d=256,f=d+1+u,h=30,g=19,p=2*f+1,E=15,y=16,C=7,w=256,B=16,M=17,I=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],R=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=512,F=new Array((f+2)*2);i(F);var N=new Array(h*2);i(N);var k=new Array(D);i(k);var O=new Array(c-A+1);i(O);var P=new Array(u);i(P);var z=new Array(h);i(z);function j(de,Fe,je,et,xe){this.static_tree=de,this.extra_bits=Fe,this.extra_base=je,this.elems=et,this.max_length=xe,this.has_stree=de&&de.length}var V,L,K;function J(de,Fe){this.dyn_tree=de,this.max_code=0,this.stat_desc=Fe}function Y(de){return de<256?k[de]:k[256+(de>>>7)]}function W(de,Fe){de.pending_buf[de.pending++]=Fe&255,de.pending_buf[de.pending++]=Fe>>>8&255}function q(de,Fe,je){de.bi_valid>y-je?(de.bi_buf|=Fe<<de.bi_valid&65535,W(de,de.bi_buf),de.bi_buf=Fe>>y-de.bi_valid,de.bi_valid+=je-y):(de.bi_buf|=Fe<<de.bi_valid&65535,de.bi_valid+=je)}function ee(de,Fe,je){q(de,je[Fe*2],je[Fe*2+1])}function ae(de,Fe){var je=0;do je|=de&1,de>>>=1,je<<=1;while(--Fe>0);return je>>>1}function ne(de){de.bi_valid===16?(W(de,de.bi_buf),de.bi_buf=0,de.bi_valid=0):de.bi_valid>=8&&(de.pending_buf[de.pending++]=de.bi_buf&255,de.bi_buf>>=8,de.bi_valid-=8)}function ce(de,Fe){var je=Fe.dyn_tree,et=Fe.max_code,xe=Fe.stat_desc.static_tree,Ne=Fe.stat_desc.has_stree,le=Fe.stat_desc.extra_bits,At=Fe.stat_desc.extra_base,Bt=Fe.stat_desc.max_length,G,Ee,Ie,ie,re,he,Pe=0;for(ie=0;ie<=E;ie++)de.bl_count[ie]=0;for(je[de.heap[de.heap_max]*2+1]=0,G=de.heap_max+1;G<p;G++)Ee=de.heap[G],ie=je[je[Ee*2+1]*2+1]+1,ie>Bt&&(ie=Bt,Pe++),je[Ee*2+1]=ie,!(Ee>et)&&(de.bl_count[ie]++,re=0,Ee>=At&&(re=le[Ee-At]),he=je[Ee*2],de.opt_len+=he*(ie+re),Ne&&(de.static_len+=he*(xe[Ee*2+1]+re)));if(Pe!==0){do{for(ie=Bt-1;de.bl_count[ie]===0;)ie--;de.bl_count[ie]--,de.bl_count[ie+1]+=2,de.bl_count[Bt]--,Pe-=2}while(Pe>0);for(ie=Bt;ie!==0;ie--)for(Ee=de.bl_count[ie];Ee!==0;)Ie=de.heap[--G],!(Ie>et)&&(je[Ie*2+1]!==ie&&(de.opt_len+=(ie-je[Ie*2+1])*je[Ie*2],je[Ie*2+1]=ie),Ee--)}}function ue(de,Fe,je){var et=new Array(E+1),xe=0,Ne,le;for(Ne=1;Ne<=E;Ne++)et[Ne]=xe=xe+je[Ne-1]<<1;for(le=0;le<=Fe;le++){var At=de[le*2+1];At!==0&&(de[le*2]=ae(et[At]++,At))}}function ge(){var de,Fe,je,et,xe,Ne=new Array(E+1);for(je=0,et=0;et<u-1;et++)for(P[et]=je,de=0;de<1<<S[et];de++)O[je++]=et;for(O[je-1]=et,xe=0,et=0;et<16;et++)for(z[et]=xe,de=0;de<1<<R[et];de++)k[xe++]=et;for(xe>>=7;et<h;et++)for(z[et]=xe<<7,de=0;de<1<<R[et]-7;de++)k[256+xe++]=et;for(Fe=0;Fe<=E;Fe++)Ne[Fe]=0;for(de=0;de<=143;)F[de*2+1]=8,de++,Ne[8]++;for(;de<=255;)F[de*2+1]=9,de++,Ne[9]++;for(;de<=279;)F[de*2+1]=7,de++,Ne[7]++;for(;de<=287;)F[de*2+1]=8,de++,Ne[8]++;for(ue(F,f+1,Ne),de=0;de<h;de++)N[de*2+1]=5,N[de*2]=ae(de,5);V=new j(F,S,d+1,f,E),L=new j(N,R,0,h,E),K=new j(new Array(0),b,0,g,C)}function Se(de){var Fe;for(Fe=0;Fe<f;Fe++)de.dyn_ltree[Fe*2]=0;for(Fe=0;Fe<h;Fe++)de.dyn_dtree[Fe*2]=0;for(Fe=0;Fe<g;Fe++)de.bl_tree[Fe*2]=0;de.dyn_ltree[w*2]=1,de.opt_len=de.static_len=0,de.last_lit=de.matches=0}function ye(de){de.bi_valid>8?W(de,de.bi_buf):de.bi_valid>0&&(de.pending_buf[de.pending++]=de.bi_buf),de.bi_buf=0,de.bi_valid=0}function pe(de,Fe,je,et){ye(de),W(de,je),W(de,~je),e.arraySet(de.pending_buf,de.window,Fe,je,de.pending),de.pending+=je}function Qe(de,Fe,je,et){var xe=Fe*2,Ne=je*2;return de[xe]<de[Ne]||de[xe]===de[Ne]&&et[Fe]<=et[je]}function Ue(de,Fe,je){for(var et=de.heap[je],xe=je<<1;xe<=de.heap_len&&(xe<de.heap_len&&Qe(Fe,de.heap[xe+1],de.heap[xe],de.depth)&&xe++,!Qe(Fe,et,de.heap[xe],de.depth));)de.heap[je]=de.heap[xe],je=xe,xe<<=1;de.heap[je]=et}function tt(de,Fe,je){var et,xe,Ne=0,le,At;if(de.last_lit!==0)do et=de.pending_buf[de.d_buf+Ne*2]<<8|de.pending_buf[de.d_buf+Ne*2+1],xe=de.pending_buf[de.l_buf+Ne],Ne++,et===0?ee(de,xe,Fe):(le=O[xe],ee(de,le+d+1,Fe),At=S[le],At!==0&&(xe-=P[le],q(de,xe,At)),et--,le=Y(et),ee(de,le,je),At=R[le],At!==0&&(et-=z[le],q(de,et,At)));while(Ne<de.last_lit);ee(de,w,Fe)}function it(de,Fe){var je=Fe.dyn_tree,et=Fe.stat_desc.static_tree,xe=Fe.stat_desc.has_stree,Ne=Fe.stat_desc.elems,le,At,Bt=-1,G;for(de.heap_len=0,de.heap_max=p,le=0;le<Ne;le++)je[le*2]!==0?(de.heap[++de.heap_len]=Bt=le,de.depth[le]=0):je[le*2+1]=0;for(;de.heap_len<2;)G=de.heap[++de.heap_len]=Bt<2?++Bt:0,je[G*2]=1,de.depth[G]=0,de.opt_len--,xe&&(de.static_len-=et[G*2+1]);for(Fe.max_code=Bt,le=de.heap_len>>1;le>=1;le--)Ue(de,je,le);G=Ne;do le=de.heap[1],de.heap[1]=de.heap[de.heap_len--],Ue(de,je,1),At=de.heap[1],de.heap[--de.heap_max]=le,de.heap[--de.heap_max]=At,je[G*2]=je[le*2]+je[At*2],de.depth[G]=(de.depth[le]>=de.depth[At]?de.depth[le]:de.depth[At])+1,je[le*2+1]=je[At*2+1]=G,de.heap[1]=G++,Ue(de,je,1);while(de.heap_len>=2);de.heap[--de.heap_max]=de.heap[1],ce(de,Fe),ue(je,Bt,de.bl_count)}function we(de,Fe,je){var et,xe=-1,Ne,le=Fe[0*2+1],At=0,Bt=7,G=4;for(le===0&&(Bt=138,G=3),Fe[(je+1)*2+1]=65535,et=0;et<=je;et++)Ne=le,le=Fe[(et+1)*2+1],!(++At<Bt&&Ne===le)&&(At<G?de.bl_tree[Ne*2]+=At:Ne!==0?(Ne!==xe&&de.bl_tree[Ne*2]++,de.bl_tree[B*2]++):At<=10?de.bl_tree[M*2]++:de.bl_tree[I*2]++,At=0,xe=Ne,le===0?(Bt=138,G=3):Ne===le?(Bt=6,G=3):(Bt=7,G=4))}function ve(de,Fe,je){var et,xe=-1,Ne,le=Fe[0*2+1],At=0,Bt=7,G=4;for(le===0&&(Bt=138,G=3),et=0;et<=je;et++)if(Ne=le,le=Fe[(et+1)*2+1],!(++At<Bt&&Ne===le)){if(At<G)do ee(de,Ne,de.bl_tree);while(--At!==0);else Ne!==0?(Ne!==xe&&(ee(de,Ne,de.bl_tree),At--),ee(de,B,de.bl_tree),q(de,At-3,2)):At<=10?(ee(de,M,de.bl_tree),q(de,At-3,3)):(ee(de,I,de.bl_tree),q(de,At-11,7));At=0,xe=Ne,le===0?(Bt=138,G=3):Ne===le?(Bt=6,G=3):(Bt=7,G=4)}}function Te(de){var Fe;for(we(de,de.dyn_ltree,de.l_desc.max_code),we(de,de.dyn_dtree,de.d_desc.max_code),it(de,de.bl_desc),Fe=g-1;Fe>=3&&de.bl_tree[Q[Fe]*2+1]===0;Fe--);return de.opt_len+=3*(Fe+1)+5+5+4,Fe}function Be(de,Fe,je,et){var xe;for(q(de,Fe-257,5),q(de,je-1,5),q(de,et-4,4),xe=0;xe<et;xe++)q(de,de.bl_tree[Q[xe]*2+1],3);ve(de,de.dyn_ltree,Fe-1),ve(de,de.dyn_dtree,je-1)}function Ge(de){var Fe=4093624447,je;for(je=0;je<=31;je++,Fe>>>=1)if(Fe&1&&de.dyn_ltree[je*2]!==0)return r;if(de.dyn_ltree[9*2]!==0||de.dyn_ltree[10*2]!==0||de.dyn_ltree[13*2]!==0)return n;for(je=32;je<d;je++)if(de.dyn_ltree[je*2]!==0)return n;return r}var ht=!1;function We(de){ht||(ge(),ht=!0),de.l_desc=new J(de.dyn_ltree,V),de.d_desc=new J(de.dyn_dtree,L),de.bl_desc=new J(de.bl_tree,K),de.bi_buf=0,de.bi_valid=0,Se(de)}function Ke(de,Fe,je,et){q(de,(o<<1)+(et?1:0),3),pe(de,Fe,je)}function Xe(de){q(de,s<<1,3),ee(de,w,F),ne(de)}function $e(de,Fe,je,et){var xe,Ne,le=0;de.level>0?(de.strm.data_type===a&&(de.strm.data_type=Ge(de)),it(de,de.l_desc),it(de,de.d_desc),le=Te(de),xe=de.opt_len+3+7>>>3,Ne=de.static_len+3+7>>>3,Ne<=xe&&(xe=Ne)):xe=Ne=je+5,je+4<=xe&&Fe!==-1?Ke(de,Fe,je,et):de.strategy===t||Ne===xe?(q(de,(s<<1)+(et?1:0),3),tt(de,F,N)):(q(de,(l<<1)+(et?1:0),3),Be(de,de.l_desc.max_code+1,de.d_desc.max_code+1,le+1),tt(de,de.dyn_ltree,de.dyn_dtree)),Se(de),et&&ye(de)}function pt(de,Fe,je){return de.pending_buf[de.d_buf+de.last_lit*2]=Fe>>>8&255,de.pending_buf[de.d_buf+de.last_lit*2+1]=Fe&255,de.pending_buf[de.l_buf+de.last_lit]=je&255,de.last_lit++,Fe===0?de.dyn_ltree[je*2]++:(de.matches++,Fe--,de.dyn_ltree[(O[je]+d+1)*2]++,de.dyn_dtree[Y(Fe)*2]++),de.last_lit===de.lit_bufsize-1}return Pd._tr_init=We,Pd._tr_stored_block=Ke,Pd._tr_flush_block=$e,Pd._tr_tally=pt,Pd._tr_align=Xe,Pd}var KQ,tK;function jde(){if(tK)return KQ;tK=1;function e(t,r,n,a){for(var i=t&65535|0,o=t>>>16&65535|0,s=0;n!==0;){s=n>2e3?2e3:n,n-=s;do i=i+r[a++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0}return KQ=e,KQ}var VQ,rK;function Yde(){if(rK)return VQ;rK=1;function e(){for(var n,a=[],i=0;i<256;i++){n=i;for(var o=0;o<8;o++)n=n&1?3988292384^n>>>1:n>>>1;a[i]=n}return a}var t=e();function r(n,a,i,o){var s=t,l=o+i;n^=-1;for(var A=o;A<l;A++)n=n>>>8^s[(n^a[A])&255];return n^-1}return VQ=r,VQ}var JQ,nK;function nY(){return nK||(nK=1,JQ={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),JQ}var aK;function PNe(){if(aK)return tl;aK=1;var e=cd(),t=kNe(),r=jde(),n=Yde(),a=nY(),i=0,o=1,s=3,l=4,A=5,c=0,u=1,d=-2,f=-3,h=-5,g=-1,p=1,E=2,y=3,C=4,w=0,B=2,M=8,I=9,S=15,R=8,b=29,Q=256,D=Q+1+b,F=30,N=19,k=2*D+1,O=15,P=3,z=258,j=z+P+1,V=32,L=42,K=69,J=73,Y=91,W=103,q=113,ee=666,ae=1,ne=2,ce=3,ue=4,ge=3;function Se(G,Ee){return G.msg=a[Ee],Ee}function ye(G){return(G<<1)-(G>4?9:0)}function pe(G){for(var Ee=G.length;--Ee>=0;)G[Ee]=0}function Qe(G){var Ee=G.state,Ie=Ee.pending;Ie>G.avail_out&&(Ie=G.avail_out),Ie!==0&&(e.arraySet(G.output,Ee.pending_buf,Ee.pending_out,Ie,G.next_out),G.next_out+=Ie,Ee.pending_out+=Ie,G.total_out+=Ie,G.avail_out-=Ie,Ee.pending-=Ie,Ee.pending===0&&(Ee.pending_out=0))}function Ue(G,Ee){t._tr_flush_block(G,G.block_start>=0?G.block_start:-1,G.strstart-G.block_start,Ee),G.block_start=G.strstart,Qe(G.strm)}function tt(G,Ee){G.pending_buf[G.pending++]=Ee}function it(G,Ee){G.pending_buf[G.pending++]=Ee>>>8&255,G.pending_buf[G.pending++]=Ee&255}function we(G,Ee,Ie,ie){var re=G.avail_in;return re>ie&&(re=ie),re===0?0:(G.avail_in-=re,e.arraySet(Ee,G.input,G.next_in,re,Ie),G.state.wrap===1?G.adler=r(G.adler,Ee,re,Ie):G.state.wrap===2&&(G.adler=n(G.adler,Ee,re,Ie)),G.next_in+=re,G.total_in+=re,re)}function ve(G,Ee){var Ie=G.max_chain_length,ie=G.strstart,re,he,Pe=G.prev_length,be=G.nice_match,Ve=G.strstart>G.w_size-j?G.strstart-(G.w_size-j):0,lt=G.window,Ze=G.w_mask,Le=G.prev,rt=G.strstart+z,Qt=lt[ie+Pe-1],Dt=lt[ie+Pe];G.prev_length>=G.good_match&&(Ie>>=2),be>G.lookahead&&(be=G.lookahead);do if(re=Ee,!(lt[re+Pe]!==Dt||lt[re+Pe-1]!==Qt||lt[re]!==lt[ie]||lt[++re]!==lt[ie+1])){ie+=2,re++;do;while(lt[++ie]===lt[++re]&&lt[++ie]===lt[++re]&&lt[++ie]===lt[++re]&&lt[++ie]===lt[++re]&&lt[++ie]===lt[++re]&&lt[++ie]===lt[++re]&&lt[++ie]===lt[++re]&&lt[++ie]===lt[++re]&&ie<rt);if(he=z-(rt-ie),ie=rt-z,he>Pe){if(G.match_start=Ee,Pe=he,he>=be)break;Qt=lt[ie+Pe-1],Dt=lt[ie+Pe]}}while((Ee=Le[Ee&Ze])>Ve&&--Ie!==0);return Pe<=G.lookahead?Pe:G.lookahead}function Te(G){var Ee=G.w_size,Ie,ie,re,he,Pe;do{if(he=G.window_size-G.lookahead-G.strstart,G.strstart>=Ee+(Ee-j)){e.arraySet(G.window,G.window,Ee,Ee,0),G.match_start-=Ee,G.strstart-=Ee,G.block_start-=Ee,ie=G.hash_size,Ie=ie;do re=G.head[--Ie],G.head[Ie]=re>=Ee?re-Ee:0;while(--ie);ie=Ee,Ie=ie;do re=G.prev[--Ie],G.prev[Ie]=re>=Ee?re-Ee:0;while(--ie);he+=Ee}if(G.strm.avail_in===0)break;if(ie=we(G.strm,G.window,G.strstart+G.lookahead,he),G.lookahead+=ie,G.lookahead+G.insert>=P)for(Pe=G.strstart-G.insert,G.ins_h=G.window[Pe],G.ins_h=(G.ins_h<<G.hash_shift^G.window[Pe+1])&G.hash_mask;G.insert&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[Pe+P-1])&G.hash_mask,G.prev[Pe&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=Pe,Pe++,G.insert--,!(G.lookahead+G.insert<P)););}while(G.lookahead<j&&G.strm.avail_in!==0)}function Be(G,Ee){var Ie=65535;for(Ie>G.pending_buf_size-5&&(Ie=G.pending_buf_size-5);;){if(G.lookahead<=1){if(Te(G),G.lookahead===0&&Ee===i)return ae;if(G.lookahead===0)break}G.strstart+=G.lookahead,G.lookahead=0;var ie=G.block_start+Ie;if((G.strstart===0||G.strstart>=ie)&&(G.lookahead=G.strstart-ie,G.strstart=ie,Ue(G,!1),G.strm.avail_out===0)||G.strstart-G.block_start>=G.w_size-j&&(Ue(G,!1),G.strm.avail_out===0))return ae}return G.insert=0,Ee===l?(Ue(G,!0),G.strm.avail_out===0?ce:ue):(G.strstart>G.block_start&&(Ue(G,!1),G.strm.avail_out===0),ae)}function Ge(G,Ee){for(var Ie,ie;;){if(G.lookahead<j){if(Te(G),G.lookahead<j&&Ee===i)return ae;if(G.lookahead===0)break}if(Ie=0,G.lookahead>=P&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+P-1])&G.hash_mask,Ie=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),Ie!==0&&G.strstart-Ie<=G.w_size-j&&(G.match_length=ve(G,Ie)),G.match_length>=P)if(ie=t._tr_tally(G,G.strstart-G.match_start,G.match_length-P),G.lookahead-=G.match_length,G.match_length<=G.max_lazy_match&&G.lookahead>=P){G.match_length--;do G.strstart++,G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+P-1])&G.hash_mask,Ie=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart;while(--G.match_length!==0);G.strstart++}else G.strstart+=G.match_length,G.match_length=0,G.ins_h=G.window[G.strstart],G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+1])&G.hash_mask;else ie=t._tr_tally(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++;if(ie&&(Ue(G,!1),G.strm.avail_out===0))return ae}return G.insert=G.strstart<P-1?G.strstart:P-1,Ee===l?(Ue(G,!0),G.strm.avail_out===0?ce:ue):G.last_lit&&(Ue(G,!1),G.strm.avail_out===0)?ae:ne}function ht(G,Ee){for(var Ie,ie,re;;){if(G.lookahead<j){if(Te(G),G.lookahead<j&&Ee===i)return ae;if(G.lookahead===0)break}if(Ie=0,G.lookahead>=P&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+P-1])&G.hash_mask,Ie=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),G.prev_length=G.match_length,G.prev_match=G.match_start,G.match_length=P-1,Ie!==0&&G.prev_length<G.max_lazy_match&&G.strstart-Ie<=G.w_size-j&&(G.match_length=ve(G,Ie),G.match_length<=5&&(G.strategy===p||G.match_length===P&&G.strstart-G.match_start>4096)&&(G.match_length=P-1)),G.prev_length>=P&&G.match_length<=G.prev_length){re=G.strstart+G.lookahead-P,ie=t._tr_tally(G,G.strstart-1-G.prev_match,G.prev_length-P),G.lookahead-=G.prev_length-1,G.prev_length-=2;do++G.strstart<=re&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+P-1])&G.hash_mask,Ie=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);while(--G.prev_length!==0);if(G.match_available=0,G.match_length=P-1,G.strstart++,ie&&(Ue(G,!1),G.strm.avail_out===0))return ae}else if(G.match_available){if(ie=t._tr_tally(G,0,G.window[G.strstart-1]),ie&&Ue(G,!1),G.strstart++,G.lookahead--,G.strm.avail_out===0)return ae}else G.match_available=1,G.strstart++,G.lookahead--}return G.match_available&&(ie=t._tr_tally(G,0,G.window[G.strstart-1]),G.match_available=0),G.insert=G.strstart<P-1?G.strstart:P-1,Ee===l?(Ue(G,!0),G.strm.avail_out===0?ce:ue):G.last_lit&&(Ue(G,!1),G.strm.avail_out===0)?ae:ne}function We(G,Ee){for(var Ie,ie,re,he,Pe=G.window;;){if(G.lookahead<=z){if(Te(G),G.lookahead<=z&&Ee===i)return ae;if(G.lookahead===0)break}if(G.match_length=0,G.lookahead>=P&&G.strstart>0&&(re=G.strstart-1,ie=Pe[re],ie===Pe[++re]&&ie===Pe[++re]&&ie===Pe[++re])){he=G.strstart+z;do;while(ie===Pe[++re]&&ie===Pe[++re]&&ie===Pe[++re]&&ie===Pe[++re]&&ie===Pe[++re]&&ie===Pe[++re]&&ie===Pe[++re]&&ie===Pe[++re]&&re<he);G.match_length=z-(he-re),G.match_length>G.lookahead&&(G.match_length=G.lookahead)}if(G.match_length>=P?(Ie=t._tr_tally(G,1,G.match_length-P),G.lookahead-=G.match_length,G.strstart+=G.match_length,G.match_length=0):(Ie=t._tr_tally(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++),Ie&&(Ue(G,!1),G.strm.avail_out===0))return ae}return G.insert=0,Ee===l?(Ue(G,!0),G.strm.avail_out===0?ce:ue):G.last_lit&&(Ue(G,!1),G.strm.avail_out===0)?ae:ne}function Ke(G,Ee){for(var Ie;;){if(G.lookahead===0&&(Te(G),G.lookahead===0)){if(Ee===i)return ae;break}if(G.match_length=0,Ie=t._tr_tally(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++,Ie&&(Ue(G,!1),G.strm.avail_out===0))return ae}return G.insert=0,Ee===l?(Ue(G,!0),G.strm.avail_out===0?ce:ue):G.last_lit&&(Ue(G,!1),G.strm.avail_out===0)?ae:ne}function Xe(G,Ee,Ie,ie,re){this.good_length=G,this.max_lazy=Ee,this.nice_length=Ie,this.max_chain=ie,this.func=re}var $e;$e=[new Xe(0,0,0,0,Be),new Xe(4,4,8,4,Ge),new Xe(4,5,16,8,Ge),new Xe(4,6,32,32,Ge),new Xe(4,4,16,16,ht),new Xe(8,16,32,32,ht),new Xe(8,16,128,128,ht),new Xe(8,32,128,256,ht),new Xe(32,128,258,1024,ht),new Xe(32,258,258,4096,ht)];function pt(G){G.window_size=2*G.w_size,pe(G.head),G.max_lazy_match=$e[G.level].max_lazy,G.good_match=$e[G.level].good_length,G.nice_match=$e[G.level].nice_length,G.max_chain_length=$e[G.level].max_chain,G.strstart=0,G.block_start=0,G.lookahead=0,G.insert=0,G.match_length=G.prev_length=P-1,G.match_available=0,G.ins_h=0}function de(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=M,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(k*2),this.dyn_dtree=new e.Buf16((2*F+1)*2),this.bl_tree=new e.Buf16((2*N+1)*2),pe(this.dyn_ltree),pe(this.dyn_dtree),pe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(O+1),this.heap=new e.Buf16(2*D+1),pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*D+1),pe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Fe(G){var Ee;return!G||!G.state?Se(G,d):(G.total_in=G.total_out=0,G.data_type=B,Ee=G.state,Ee.pending=0,Ee.pending_out=0,Ee.wrap<0&&(Ee.wrap=-Ee.wrap),Ee.status=Ee.wrap?L:q,G.adler=Ee.wrap===2?0:1,Ee.last_flush=i,t._tr_init(Ee),c)}function je(G){var Ee=Fe(G);return Ee===c&&pt(G.state),Ee}function et(G,Ee){return!G||!G.state||G.state.wrap!==2?d:(G.state.gzhead=Ee,c)}function xe(G,Ee,Ie,ie,re,he){if(!G)return d;var Pe=1;if(Ee===g&&(Ee=6),ie<0?(Pe=0,ie=-ie):ie>15&&(Pe=2,ie-=16),re<1||re>I||Ie!==M||ie<8||ie>15||Ee<0||Ee>9||he<0||he>C)return Se(G,d);ie===8&&(ie=9);var be=new de;return G.state=be,be.strm=G,be.wrap=Pe,be.gzhead=null,be.w_bits=ie,be.w_size=1<<be.w_bits,be.w_mask=be.w_size-1,be.hash_bits=re+7,be.hash_size=1<<be.hash_bits,be.hash_mask=be.hash_size-1,be.hash_shift=~~((be.hash_bits+P-1)/P),be.window=new e.Buf8(be.w_size*2),be.head=new e.Buf16(be.hash_size),be.prev=new e.Buf16(be.w_size),be.lit_bufsize=1<<re+6,be.pending_buf_size=be.lit_bufsize*4,be.pending_buf=new e.Buf8(be.pending_buf_size),be.d_buf=1*be.lit_bufsize,be.l_buf=3*be.lit_bufsize,be.level=Ee,be.strategy=he,be.method=Ie,je(G)}function Ne(G,Ee){return xe(G,Ee,M,S,R,w)}function le(G,Ee){var Ie,ie,re,he;if(!G||!G.state||Ee>A||Ee<0)return G?Se(G,d):d;if(ie=G.state,!G.output||!G.input&&G.avail_in!==0||ie.status===ee&&Ee!==l)return Se(G,G.avail_out===0?h:d);if(ie.strm=G,Ie=ie.last_flush,ie.last_flush=Ee,ie.status===L)if(ie.wrap===2)G.adler=0,tt(ie,31),tt(ie,139),tt(ie,8),ie.gzhead?(tt(ie,(ie.gzhead.text?1:0)+(ie.gzhead.hcrc?2:0)+(ie.gzhead.extra?4:0)+(ie.gzhead.name?8:0)+(ie.gzhead.comment?16:0)),tt(ie,ie.gzhead.time&255),tt(ie,ie.gzhead.time>>8&255),tt(ie,ie.gzhead.time>>16&255),tt(ie,ie.gzhead.time>>24&255),tt(ie,ie.level===9?2:ie.strategy>=E||ie.level<2?4:0),tt(ie,ie.gzhead.os&255),ie.gzhead.extra&&ie.gzhead.extra.length&&(tt(ie,ie.gzhead.extra.length&255),tt(ie,ie.gzhead.extra.length>>8&255)),ie.gzhead.hcrc&&(G.adler=n(G.adler,ie.pending_buf,ie.pending,0)),ie.gzindex=0,ie.status=K):(tt(ie,0),tt(ie,0),tt(ie,0),tt(ie,0),tt(ie,0),tt(ie,ie.level===9?2:ie.strategy>=E||ie.level<2?4:0),tt(ie,ge),ie.status=q);else{var Pe=M+(ie.w_bits-8<<4)<<8,be=-1;ie.strategy>=E||ie.level<2?be=0:ie.level<6?be=1:ie.level===6?be=2:be=3,Pe|=be<<6,ie.strstart!==0&&(Pe|=V),Pe+=31-Pe%31,ie.status=q,it(ie,Pe),ie.strstart!==0&&(it(ie,G.adler>>>16),it(ie,G.adler&65535)),G.adler=1}if(ie.status===K)if(ie.gzhead.extra){for(re=ie.pending;ie.gzindex<(ie.gzhead.extra.length&65535)&&!(ie.pending===ie.pending_buf_size&&(ie.gzhead.hcrc&&ie.pending>re&&(G.adler=n(G.adler,ie.pending_buf,ie.pending-re,re)),Qe(G),re=ie.pending,ie.pending===ie.pending_buf_size));)tt(ie,ie.gzhead.extra[ie.gzindex]&255),ie.gzindex++;ie.gzhead.hcrc&&ie.pending>re&&(G.adler=n(G.adler,ie.pending_buf,ie.pending-re,re)),ie.gzindex===ie.gzhead.extra.length&&(ie.gzindex=0,ie.status=J)}else ie.status=J;if(ie.status===J)if(ie.gzhead.name){re=ie.pending;do{if(ie.pending===ie.pending_buf_size&&(ie.gzhead.hcrc&&ie.pending>re&&(G.adler=n(G.adler,ie.pending_buf,ie.pending-re,re)),Qe(G),re=ie.pending,ie.pending===ie.pending_buf_size)){he=1;break}ie.gzindex<ie.gzhead.name.length?he=ie.gzhead.name.charCodeAt(ie.gzindex++)&255:he=0,tt(ie,he)}while(he!==0);ie.gzhead.hcrc&&ie.pending>re&&(G.adler=n(G.adler,ie.pending_buf,ie.pending-re,re)),he===0&&(ie.gzindex=0,ie.status=Y)}else ie.status=Y;if(ie.status===Y)if(ie.gzhead.comment){re=ie.pending;do{if(ie.pending===ie.pending_buf_size&&(ie.gzhead.hcrc&&ie.pending>re&&(G.adler=n(G.adler,ie.pending_buf,ie.pending-re,re)),Qe(G),re=ie.pending,ie.pending===ie.pending_buf_size)){he=1;break}ie.gzindex<ie.gzhead.comment.length?he=ie.gzhead.comment.charCodeAt(ie.gzindex++)&255:he=0,tt(ie,he)}while(he!==0);ie.gzhead.hcrc&&ie.pending>re&&(G.adler=n(G.adler,ie.pending_buf,ie.pending-re,re)),he===0&&(ie.status=W)}else ie.status=W;if(ie.status===W&&(ie.gzhead.hcrc?(ie.pending+2>ie.pending_buf_size&&Qe(G),ie.pending+2<=ie.pending_buf_size&&(tt(ie,G.adler&255),tt(ie,G.adler>>8&255),G.adler=0,ie.status=q)):ie.status=q),ie.pending!==0){if(Qe(G),G.avail_out===0)return ie.last_flush=-1,c}else if(G.avail_in===0&&ye(Ee)<=ye(Ie)&&Ee!==l)return Se(G,h);if(ie.status===ee&&G.avail_in!==0)return Se(G,h);if(G.avail_in!==0||ie.lookahead!==0||Ee!==i&&ie.status!==ee){var Ve=ie.strategy===E?Ke(ie,Ee):ie.strategy===y?We(ie,Ee):$e[ie.level].func(ie,Ee);if((Ve===ce||Ve===ue)&&(ie.status=ee),Ve===ae||Ve===ce)return G.avail_out===0&&(ie.last_flush=-1),c;if(Ve===ne&&(Ee===o?t._tr_align(ie):Ee!==A&&(t._tr_stored_block(ie,0,0,!1),Ee===s&&(pe(ie.head),ie.lookahead===0&&(ie.strstart=0,ie.block_start=0,ie.insert=0))),Qe(G),G.avail_out===0))return ie.last_flush=-1,c}return Ee!==l?c:ie.wrap<=0?u:(ie.wrap===2?(tt(ie,G.adler&255),tt(ie,G.adler>>8&255),tt(ie,G.adler>>16&255),tt(ie,G.adler>>24&255),tt(ie,G.total_in&255),tt(ie,G.total_in>>8&255),tt(ie,G.total_in>>16&255),tt(ie,G.total_in>>24&255)):(it(ie,G.adler>>>16),it(ie,G.adler&65535)),Qe(G),ie.wrap>0&&(ie.wrap=-ie.wrap),ie.pending!==0?c:u)}function At(G){var Ee;return!G||!G.state?d:(Ee=G.state.status,Ee!==L&&Ee!==K&&Ee!==J&&Ee!==Y&&Ee!==W&&Ee!==q&&Ee!==ee?Se(G,d):(G.state=null,Ee===q?Se(G,f):c))}function Bt(G,Ee){var Ie=Ee.length,ie,re,he,Pe,be,Ve,lt,Ze;if(!G||!G.state||(ie=G.state,Pe=ie.wrap,Pe===2||Pe===1&&ie.status!==L||ie.lookahead))return d;for(Pe===1&&(G.adler=r(G.adler,Ee,Ie,0)),ie.wrap=0,Ie>=ie.w_size&&(Pe===0&&(pe(ie.head),ie.strstart=0,ie.block_start=0,ie.insert=0),Ze=new e.Buf8(ie.w_size),e.arraySet(Ze,Ee,Ie-ie.w_size,ie.w_size,0),Ee=Ze,Ie=ie.w_size),be=G.avail_in,Ve=G.next_in,lt=G.input,G.avail_in=Ie,G.next_in=0,G.input=Ee,Te(ie);ie.lookahead>=P;){re=ie.strstart,he=ie.lookahead-(P-1);do ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[re+P-1])&ie.hash_mask,ie.prev[re&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=re,re++;while(--he);ie.strstart=re,ie.lookahead=P-1,Te(ie)}return ie.strstart+=ie.lookahead,ie.block_start=ie.strstart,ie.insert=ie.lookahead,ie.lookahead=0,ie.match_length=ie.prev_length=P-1,ie.match_available=0,G.next_in=Ve,G.input=lt,G.avail_in=be,ie.wrap=Pe,c}return tl.deflateInit=Ne,tl.deflateInit2=xe,tl.deflateReset=je,tl.deflateResetKeep=Fe,tl.deflateSetHeader=et,tl.deflate=le,tl.deflateEnd=At,tl.deflateSetDictionary=Bt,tl.deflateInfo="pako deflate (from Nodeca project)",tl}var Od={},iK;function Lde(){if(iK)return Od;iK=1;var e=cd(),t=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{t=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var n=new e.Buf8(256),a=0;a<256;a++)n[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;n[254]=n[254]=1,Od.string2buf=function(o){var s,l,A,c,u,d=o.length,f=0;for(c=0;c<d;c++)l=o.charCodeAt(c),(l&64512)===55296&&c+1<d&&(A=o.charCodeAt(c+1),(A&64512)===56320&&(l=65536+(l-55296<<10)+(A-56320),c++)),f+=l<128?1:l<2048?2:l<65536?3:4;for(s=new e.Buf8(f),u=0,c=0;u<f;c++)l=o.charCodeAt(c),(l&64512)===55296&&c+1<d&&(A=o.charCodeAt(c+1),(A&64512)===56320&&(l=65536+(l-55296<<10)+(A-56320),c++)),l<128?s[u++]=l:l<2048?(s[u++]=192|l>>>6,s[u++]=128|l&63):l<65536?(s[u++]=224|l>>>12,s[u++]=128|l>>>6&63,s[u++]=128|l&63):(s[u++]=240|l>>>18,s[u++]=128|l>>>12&63,s[u++]=128|l>>>6&63,s[u++]=128|l&63);return s};function i(o,s){if(s<65534&&(o.subarray&&r||!o.subarray&&t))return String.fromCharCode.apply(null,e.shrinkBuf(o,s));for(var l="",A=0;A<s;A++)l+=String.fromCharCode(o[A]);return l}return Od.buf2binstring=function(o){return i(o,o.length)},Od.binstring2buf=function(o){for(var s=new e.Buf8(o.length),l=0,A=s.length;l<A;l++)s[l]=o.charCodeAt(l);return s},Od.buf2string=function(o,s){var l,A,c,u,d=s||o.length,f=new Array(d*2);for(A=0,l=0;l<d;){if(c=o[l++],c<128){f[A++]=c;continue}if(u=n[c],u>4){f[A++]=65533,l+=u-1;continue}for(c&=u===2?31:u===3?15:7;u>1&&l<d;)c=c<<6|o[l++]&63,u--;if(u>1){f[A++]=65533;continue}c<65536?f[A++]=c:(c-=65536,f[A++]=55296|c>>10&1023,f[A++]=56320|c&1023)}return i(f,A)},Od.utf8border=function(o,s){var l;for(s=s||o.length,s>o.length&&(s=o.length),l=s-1;l>=0&&(o[l]&192)===128;)l--;return l<0||l===0?s:l+n[o[l]]>s?l:s},Od}var WQ,oK;function Ude(){if(oK)return WQ;oK=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return WQ=e,WQ}var sK;function ONe(){if(sK)return gg;sK=1;var e=PNe(),t=cd(),r=Lde(),n=nY(),a=Ude(),i=Object.prototype.toString,o=0,s=4,l=0,A=1,c=2,u=-1,d=0,f=8;function h(y){if(!(this instanceof h))return new h(y);this.options=t.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},y||{});var C=this.options;C.raw&&C.windowBits>0?C.windowBits=-C.windowBits:C.gzip&&C.windowBits>0&&C.windowBits<16&&(C.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var w=e.deflateInit2(this.strm,C.level,C.method,C.windowBits,C.memLevel,C.strategy);if(w!==l)throw new Error(n[w]);if(C.header&&e.deflateSetHeader(this.strm,C.header),C.dictionary){var B;if(typeof C.dictionary=="string"?B=r.string2buf(C.dictionary):i.call(C.dictionary)==="[object ArrayBuffer]"?B=new Uint8Array(C.dictionary):B=C.dictionary,w=e.deflateSetDictionary(this.strm,B),w!==l)throw new Error(n[w]);this._dict_set=!0}}h.prototype.push=function(y,C){var w=this.strm,B=this.options.chunkSize,M,I;if(this.ended)return!1;I=C===~~C?C:C===!0?s:o,typeof y=="string"?w.input=r.string2buf(y):i.call(y)==="[object ArrayBuffer]"?w.input=new Uint8Array(y):w.input=y,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new t.Buf8(B),w.next_out=0,w.avail_out=B),M=e.deflate(w,I),M!==A&&M!==l)return this.onEnd(M),this.ended=!0,!1;(w.avail_out===0||w.avail_in===0&&(I===s||I===c))&&(this.options.to==="string"?this.onData(r.buf2binstring(t.shrinkBuf(w.output,w.next_out))):this.onData(t.shrinkBuf(w.output,w.next_out)))}while((w.avail_in>0||w.avail_out===0)&&M!==A);return I===s?(M=e.deflateEnd(this.strm),this.onEnd(M),this.ended=!0,M===l):(I===c&&(this.onEnd(l),w.avail_out=0),!0)},h.prototype.onData=function(y){this.chunks.push(y)},h.prototype.onEnd=function(y){y===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function g(y,C){var w=new h(C);if(w.push(y,!0),w.err)throw w.msg||n[w.err];return w.result}function p(y,C){return C=C||{},C.raw=!0,g(y,C)}function E(y,C){return C=C||{},C.gzip=!0,g(y,C)}return gg.Deflate=h,gg.deflate=g,gg.deflateRaw=p,gg.gzip=E,gg}var pg={},Cs={},XQ,lK;function zNe(){if(lK)return XQ;lK=1;var e=30,t=12;return XQ=function(n,a){var i,o,s,l,A,c,u,d,f,h,g,p,E,y,C,w,B,M,I,S,R,b,Q,D,F;i=n.state,o=n.next_in,D=n.input,s=o+(n.avail_in-5),l=n.next_out,F=n.output,A=l-(a-n.avail_out),c=l+(n.avail_out-257),u=i.dmax,d=i.wsize,f=i.whave,h=i.wnext,g=i.window,p=i.hold,E=i.bits,y=i.lencode,C=i.distcode,w=(1<<i.lenbits)-1,B=(1<<i.distbits)-1;e:do{E<15&&(p+=D[o++]<<E,E+=8,p+=D[o++]<<E,E+=8),M=y[p&w];t:for(;;){if(I=M>>>24,p>>>=I,E-=I,I=M>>>16&255,I===0)F[l++]=M&65535;else if(I&16){S=M&65535,I&=15,I&&(E<I&&(p+=D[o++]<<E,E+=8),S+=p&(1<<I)-1,p>>>=I,E-=I),E<15&&(p+=D[o++]<<E,E+=8,p+=D[o++]<<E,E+=8),M=C[p&B];r:for(;;){if(I=M>>>24,p>>>=I,E-=I,I=M>>>16&255,I&16){if(R=M&65535,I&=15,E<I&&(p+=D[o++]<<E,E+=8,E<I&&(p+=D[o++]<<E,E+=8)),R+=p&(1<<I)-1,R>u){n.msg="invalid distance too far back",i.mode=e;break e}if(p>>>=I,E-=I,I=l-A,R>I){if(I=R-I,I>f&&i.sane){n.msg="invalid distance too far back",i.mode=e;break e}if(b=0,Q=g,h===0){if(b+=d-I,I<S){S-=I;do F[l++]=g[b++];while(--I);b=l-R,Q=F}}else if(h<I){if(b+=d+h-I,I-=h,I<S){S-=I;do F[l++]=g[b++];while(--I);if(b=0,h<S){I=h,S-=I;do F[l++]=g[b++];while(--I);b=l-R,Q=F}}}else if(b+=h-I,I<S){S-=I;do F[l++]=g[b++];while(--I);b=l-R,Q=F}for(;S>2;)F[l++]=Q[b++],F[l++]=Q[b++],F[l++]=Q[b++],S-=3;S&&(F[l++]=Q[b++],S>1&&(F[l++]=Q[b++]))}else{b=l-R;do F[l++]=F[b++],F[l++]=F[b++],F[l++]=F[b++],S-=3;while(S>2);S&&(F[l++]=F[b++],S>1&&(F[l++]=F[b++]))}}else if((I&64)===0){M=C[(M&65535)+(p&(1<<I)-1)];continue r}else{n.msg="invalid distance code",i.mode=e;break e}break}}else if((I&64)===0){M=y[(M&65535)+(p&(1<<I)-1)];continue t}else if(I&32){i.mode=t;break e}else{n.msg="invalid literal/length code",i.mode=e;break e}break}}while(o<s&&l<c);S=E>>3,o-=S,E-=S<<3,p&=(1<<E)-1,n.next_in=o,n.next_out=l,n.avail_in=o<s?5+(s-o):5-(o-s),n.avail_out=l<c?257+(c-l):257-(l-c),i.hold=p,i.bits=E},XQ}var qQ,AK;function jNe(){if(AK)return qQ;AK=1;var e=cd(),t=15,r=852,n=592,a=0,i=1,o=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],A=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return qQ=function(d,f,h,g,p,E,y,C){var w=C.bits,B=0,M=0,I=0,S=0,R=0,b=0,Q=0,D=0,F=0,N=0,k,O,P,z,j,V=null,L=0,K,J=new e.Buf16(t+1),Y=new e.Buf16(t+1),W=null,q=0,ee,ae,ne;for(B=0;B<=t;B++)J[B]=0;for(M=0;M<g;M++)J[f[h+M]]++;for(R=w,S=t;S>=1&&J[S]===0;S--);if(R>S&&(R=S),S===0)return p[E++]=1<<24|64<<16|0,p[E++]=1<<24|64<<16|0,C.bits=1,0;for(I=1;I<S&&J[I]===0;I++);for(R<I&&(R=I),D=1,B=1;B<=t;B++)if(D<<=1,D-=J[B],D<0)return-1;if(D>0&&(d===a||S!==1))return-1;for(Y[1]=0,B=1;B<t;B++)Y[B+1]=Y[B]+J[B];for(M=0;M<g;M++)f[h+M]!==0&&(y[Y[f[h+M]]++]=M);if(d===a?(V=W=y,K=19):d===i?(V=s,L-=257,W=l,q-=257,K=256):(V=A,W=c,K=-1),N=0,M=0,B=I,j=E,b=R,Q=0,P=-1,F=1<<R,z=F-1,d===i&&F>r||d===o&&F>n)return 1;for(;;){ee=B-Q,y[M]<K?(ae=0,ne=y[M]):y[M]>K?(ae=W[q+y[M]],ne=V[L+y[M]]):(ae=96,ne=0),k=1<<B-Q,O=1<<b,I=O;do O-=k,p[j+(N>>Q)+O]=ee<<24|ae<<16|ne|0;while(O!==0);for(k=1<<B-1;N&k;)k>>=1;if(k!==0?(N&=k-1,N+=k):N=0,M++,--J[B]===0){if(B===S)break;B=f[h+y[M]]}if(B>R&&(N&z)!==P){for(Q===0&&(Q=R),j+=I,b=B-Q,D=1<<b;b+Q<S&&(D-=J[b+Q],!(D<=0));)b++,D<<=1;if(F+=1<<b,d===i&&F>r||d===o&&F>n)return 1;P=N&z,p[P]=R<<24|b<<16|j-E|0}}return N!==0&&(p[j+N]=B-Q<<24|64<<16|0),C.bits=R,0},qQ}var cK;function YNe(){if(cK)return Cs;cK=1;var e=cd(),t=jde(),r=Yde(),n=zNe(),a=jNe(),i=0,o=1,s=2,l=4,A=5,c=6,u=0,d=1,f=2,h=-2,g=-3,p=-4,E=-5,y=8,C=1,w=2,B=3,M=4,I=5,S=6,R=7,b=8,Q=9,D=10,F=11,N=12,k=13,O=14,P=15,z=16,j=17,V=18,L=19,K=20,J=21,Y=22,W=23,q=24,ee=25,ae=26,ne=27,ce=28,ue=29,ge=30,Se=31,ye=32,pe=852,Qe=592,Ue=15,tt=Ue;function it(xe){return(xe>>>24&255)+(xe>>>8&65280)+((xe&65280)<<8)+((xe&255)<<24)}function we(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ve(xe){var Ne;return!xe||!xe.state?h:(Ne=xe.state,xe.total_in=xe.total_out=Ne.total=0,xe.msg="",Ne.wrap&&(xe.adler=Ne.wrap&1),Ne.mode=C,Ne.last=0,Ne.havedict=0,Ne.dmax=32768,Ne.head=null,Ne.hold=0,Ne.bits=0,Ne.lencode=Ne.lendyn=new e.Buf32(pe),Ne.distcode=Ne.distdyn=new e.Buf32(Qe),Ne.sane=1,Ne.back=-1,u)}function Te(xe){var Ne;return!xe||!xe.state?h:(Ne=xe.state,Ne.wsize=0,Ne.whave=0,Ne.wnext=0,ve(xe))}function Be(xe,Ne){var le,At;return!xe||!xe.state||(At=xe.state,Ne<0?(le=0,Ne=-Ne):(le=(Ne>>4)+1,Ne<48&&(Ne&=15)),Ne&&(Ne<8||Ne>15))?h:(At.window!==null&&At.wbits!==Ne&&(At.window=null),At.wrap=le,At.wbits=Ne,Te(xe))}function Ge(xe,Ne){var le,At;return xe?(At=new we,xe.state=At,At.window=null,le=Be(xe,Ne),le!==u&&(xe.state=null),le):h}function ht(xe){return Ge(xe,tt)}var We=!0,Ke,Xe;function $e(xe){if(We){var Ne;for(Ke=new e.Buf32(512),Xe=new e.Buf32(32),Ne=0;Ne<144;)xe.lens[Ne++]=8;for(;Ne<256;)xe.lens[Ne++]=9;for(;Ne<280;)xe.lens[Ne++]=7;for(;Ne<288;)xe.lens[Ne++]=8;for(a(o,xe.lens,0,288,Ke,0,xe.work,{bits:9}),Ne=0;Ne<32;)xe.lens[Ne++]=5;a(s,xe.lens,0,32,Xe,0,xe.work,{bits:5}),We=!1}xe.lencode=Ke,xe.lenbits=9,xe.distcode=Xe,xe.distbits=5}function pt(xe,Ne,le,At){var Bt,G=xe.state;return G.window===null&&(G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new e.Buf8(G.wsize)),At>=G.wsize?(e.arraySet(G.window,Ne,le-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):(Bt=G.wsize-G.wnext,Bt>At&&(Bt=At),e.arraySet(G.window,Ne,le-At,Bt,G.wnext),At-=Bt,At?(e.arraySet(G.window,Ne,le-At,At,0),G.wnext=At,G.whave=G.wsize):(G.wnext+=Bt,G.wnext===G.wsize&&(G.wnext=0),G.whave<G.wsize&&(G.whave+=Bt))),0}function de(xe,Ne){var le,At,Bt,G,Ee,Ie,ie,re,he,Pe,be,Ve,lt,Ze,Le=0,rt,Qt,Dt,ur,br,Er,hr,Wt,$t=new e.Buf8(4),tr,ir,ar=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!xe||!xe.state||!xe.output||!xe.input&&xe.avail_in!==0)return h;le=xe.state,le.mode===N&&(le.mode=k),Ee=xe.next_out,Bt=xe.output,ie=xe.avail_out,G=xe.next_in,At=xe.input,Ie=xe.avail_in,re=le.hold,he=le.bits,Pe=Ie,be=ie,Wt=u;e:for(;;)switch(le.mode){case C:if(le.wrap===0){le.mode=k;break}for(;he<16;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}if(le.wrap&2&&re===35615){le.check=0,$t[0]=re&255,$t[1]=re>>>8&255,le.check=r(le.check,$t,2,0),re=0,he=0,le.mode=w;break}if(le.flags=0,le.head&&(le.head.done=!1),!(le.wrap&1)||(((re&255)<<8)+(re>>8))%31){xe.msg="incorrect header check",le.mode=ge;break}if((re&15)!==y){xe.msg="unknown compression method",le.mode=ge;break}if(re>>>=4,he-=4,hr=(re&15)+8,le.wbits===0)le.wbits=hr;else if(hr>le.wbits){xe.msg="invalid window size",le.mode=ge;break}le.dmax=1<<hr,xe.adler=le.check=1,le.mode=re&512?D:N,re=0,he=0;break;case w:for(;he<16;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}if(le.flags=re,(le.flags&255)!==y){xe.msg="unknown compression method",le.mode=ge;break}if(le.flags&57344){xe.msg="unknown header flags set",le.mode=ge;break}le.head&&(le.head.text=re>>8&1),le.flags&512&&($t[0]=re&255,$t[1]=re>>>8&255,le.check=r(le.check,$t,2,0)),re=0,he=0,le.mode=B;case B:for(;he<32;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}le.head&&(le.head.time=re),le.flags&512&&($t[0]=re&255,$t[1]=re>>>8&255,$t[2]=re>>>16&255,$t[3]=re>>>24&255,le.check=r(le.check,$t,4,0)),re=0,he=0,le.mode=M;case M:for(;he<16;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}le.head&&(le.head.xflags=re&255,le.head.os=re>>8),le.flags&512&&($t[0]=re&255,$t[1]=re>>>8&255,le.check=r(le.check,$t,2,0)),re=0,he=0,le.mode=I;case I:if(le.flags&1024){for(;he<16;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}le.length=re,le.head&&(le.head.extra_len=re),le.flags&512&&($t[0]=re&255,$t[1]=re>>>8&255,le.check=r(le.check,$t,2,0)),re=0,he=0}else le.head&&(le.head.extra=null);le.mode=S;case S:if(le.flags&1024&&(Ve=le.length,Ve>Ie&&(Ve=Ie),Ve&&(le.head&&(hr=le.head.extra_len-le.length,le.head.extra||(le.head.extra=new Array(le.head.extra_len)),e.arraySet(le.head.extra,At,G,Ve,hr)),le.flags&512&&(le.check=r(le.check,At,Ve,G)),Ie-=Ve,G+=Ve,le.length-=Ve),le.length))break e;le.length=0,le.mode=R;case R:if(le.flags&2048){if(Ie===0)break e;Ve=0;do hr=At[G+Ve++],le.head&&hr&&le.length<65536&&(le.head.name+=String.fromCharCode(hr));while(hr&&Ve<Ie);if(le.flags&512&&(le.check=r(le.check,At,Ve,G)),Ie-=Ve,G+=Ve,hr)break e}else le.head&&(le.head.name=null);le.length=0,le.mode=b;case b:if(le.flags&4096){if(Ie===0)break e;Ve=0;do hr=At[G+Ve++],le.head&&hr&&le.length<65536&&(le.head.comment+=String.fromCharCode(hr));while(hr&&Ve<Ie);if(le.flags&512&&(le.check=r(le.check,At,Ve,G)),Ie-=Ve,G+=Ve,hr)break e}else le.head&&(le.head.comment=null);le.mode=Q;case Q:if(le.flags&512){for(;he<16;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}if(re!==(le.check&65535)){xe.msg="header crc mismatch",le.mode=ge;break}re=0,he=0}le.head&&(le.head.hcrc=le.flags>>9&1,le.head.done=!0),xe.adler=le.check=0,le.mode=N;break;case D:for(;he<32;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}xe.adler=le.check=it(re),re=0,he=0,le.mode=F;case F:if(le.havedict===0)return xe.next_out=Ee,xe.avail_out=ie,xe.next_in=G,xe.avail_in=Ie,le.hold=re,le.bits=he,f;xe.adler=le.check=1,le.mode=N;case N:if(Ne===A||Ne===c)break e;case k:if(le.last){re>>>=he&7,he-=he&7,le.mode=ne;break}for(;he<3;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}switch(le.last=re&1,re>>>=1,he-=1,re&3){case 0:le.mode=O;break;case 1:if($e(le),le.mode=K,Ne===c){re>>>=2,he-=2;break e}break;case 2:le.mode=j;break;case 3:xe.msg="invalid block type",le.mode=ge}re>>>=2,he-=2;break;case O:for(re>>>=he&7,he-=he&7;he<32;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}if((re&65535)!==(re>>>16^65535)){xe.msg="invalid stored block lengths",le.mode=ge;break}if(le.length=re&65535,re=0,he=0,le.mode=P,Ne===c)break e;case P:le.mode=z;case z:if(Ve=le.length,Ve){if(Ve>Ie&&(Ve=Ie),Ve>ie&&(Ve=ie),Ve===0)break e;e.arraySet(Bt,At,G,Ve,Ee),Ie-=Ve,G+=Ve,ie-=Ve,Ee+=Ve,le.length-=Ve;break}le.mode=N;break;case j:for(;he<14;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}if(le.nlen=(re&31)+257,re>>>=5,he-=5,le.ndist=(re&31)+1,re>>>=5,he-=5,le.ncode=(re&15)+4,re>>>=4,he-=4,le.nlen>286||le.ndist>30){xe.msg="too many length or distance symbols",le.mode=ge;break}le.have=0,le.mode=V;case V:for(;le.have<le.ncode;){for(;he<3;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}le.lens[ar[le.have++]]=re&7,re>>>=3,he-=3}for(;le.have<19;)le.lens[ar[le.have++]]=0;if(le.lencode=le.lendyn,le.lenbits=7,tr={bits:le.lenbits},Wt=a(i,le.lens,0,19,le.lencode,0,le.work,tr),le.lenbits=tr.bits,Wt){xe.msg="invalid code lengths set",le.mode=ge;break}le.have=0,le.mode=L;case L:for(;le.have<le.nlen+le.ndist;){for(;Le=le.lencode[re&(1<<le.lenbits)-1],rt=Le>>>24,Qt=Le>>>16&255,Dt=Le&65535,!(rt<=he);){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}if(Dt<16)re>>>=rt,he-=rt,le.lens[le.have++]=Dt;else{if(Dt===16){for(ir=rt+2;he<ir;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}if(re>>>=rt,he-=rt,le.have===0){xe.msg="invalid bit length repeat",le.mode=ge;break}hr=le.lens[le.have-1],Ve=3+(re&3),re>>>=2,he-=2}else if(Dt===17){for(ir=rt+3;he<ir;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}re>>>=rt,he-=rt,hr=0,Ve=3+(re&7),re>>>=3,he-=3}else{for(ir=rt+7;he<ir;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}re>>>=rt,he-=rt,hr=0,Ve=11+(re&127),re>>>=7,he-=7}if(le.have+Ve>le.nlen+le.ndist){xe.msg="invalid bit length repeat",le.mode=ge;break}for(;Ve--;)le.lens[le.have++]=hr}}if(le.mode===ge)break;if(le.lens[256]===0){xe.msg="invalid code -- missing end-of-block",le.mode=ge;break}if(le.lenbits=9,tr={bits:le.lenbits},Wt=a(o,le.lens,0,le.nlen,le.lencode,0,le.work,tr),le.lenbits=tr.bits,Wt){xe.msg="invalid literal/lengths set",le.mode=ge;break}if(le.distbits=6,le.distcode=le.distdyn,tr={bits:le.distbits},Wt=a(s,le.lens,le.nlen,le.ndist,le.distcode,0,le.work,tr),le.distbits=tr.bits,Wt){xe.msg="invalid distances set",le.mode=ge;break}if(le.mode=K,Ne===c)break e;case K:le.mode=J;case J:if(Ie>=6&&ie>=258){xe.next_out=Ee,xe.avail_out=ie,xe.next_in=G,xe.avail_in=Ie,le.hold=re,le.bits=he,n(xe,be),Ee=xe.next_out,Bt=xe.output,ie=xe.avail_out,G=xe.next_in,At=xe.input,Ie=xe.avail_in,re=le.hold,he=le.bits,le.mode===N&&(le.back=-1);break}for(le.back=0;Le=le.lencode[re&(1<<le.lenbits)-1],rt=Le>>>24,Qt=Le>>>16&255,Dt=Le&65535,!(rt<=he);){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}if(Qt&&(Qt&240)===0){for(ur=rt,br=Qt,Er=Dt;Le=le.lencode[Er+((re&(1<<ur+br)-1)>>ur)],rt=Le>>>24,Qt=Le>>>16&255,Dt=Le&65535,!(ur+rt<=he);){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}re>>>=ur,he-=ur,le.back+=ur}if(re>>>=rt,he-=rt,le.back+=rt,le.length=Dt,Qt===0){le.mode=ae;break}if(Qt&32){le.back=-1,le.mode=N;break}if(Qt&64){xe.msg="invalid literal/length code",le.mode=ge;break}le.extra=Qt&15,le.mode=Y;case Y:if(le.extra){for(ir=le.extra;he<ir;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}le.length+=re&(1<<le.extra)-1,re>>>=le.extra,he-=le.extra,le.back+=le.extra}le.was=le.length,le.mode=W;case W:for(;Le=le.distcode[re&(1<<le.distbits)-1],rt=Le>>>24,Qt=Le>>>16&255,Dt=Le&65535,!(rt<=he);){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}if((Qt&240)===0){for(ur=rt,br=Qt,Er=Dt;Le=le.distcode[Er+((re&(1<<ur+br)-1)>>ur)],rt=Le>>>24,Qt=Le>>>16&255,Dt=Le&65535,!(ur+rt<=he);){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}re>>>=ur,he-=ur,le.back+=ur}if(re>>>=rt,he-=rt,le.back+=rt,Qt&64){xe.msg="invalid distance code",le.mode=ge;break}le.offset=Dt,le.extra=Qt&15,le.mode=q;case q:if(le.extra){for(ir=le.extra;he<ir;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}le.offset+=re&(1<<le.extra)-1,re>>>=le.extra,he-=le.extra,le.back+=le.extra}if(le.offset>le.dmax){xe.msg="invalid distance too far back",le.mode=ge;break}le.mode=ee;case ee:if(ie===0)break e;if(Ve=be-ie,le.offset>Ve){if(Ve=le.offset-Ve,Ve>le.whave&&le.sane){xe.msg="invalid distance too far back",le.mode=ge;break}Ve>le.wnext?(Ve-=le.wnext,lt=le.wsize-Ve):lt=le.wnext-Ve,Ve>le.length&&(Ve=le.length),Ze=le.window}else Ze=Bt,lt=Ee-le.offset,Ve=le.length;Ve>ie&&(Ve=ie),ie-=Ve,le.length-=Ve;do Bt[Ee++]=Ze[lt++];while(--Ve);le.length===0&&(le.mode=J);break;case ae:if(ie===0)break e;Bt[Ee++]=le.length,ie--,le.mode=J;break;case ne:if(le.wrap){for(;he<32;){if(Ie===0)break e;Ie--,re|=At[G++]<<he,he+=8}if(be-=ie,xe.total_out+=be,le.total+=be,be&&(xe.adler=le.check=le.flags?r(le.check,Bt,be,Ee-be):t(le.check,Bt,be,Ee-be)),be=ie,(le.flags?re:it(re))!==le.check){xe.msg="incorrect data check",le.mode=ge;break}re=0,he=0}le.mode=ce;case ce:if(le.wrap&&le.flags){for(;he<32;){if(Ie===0)break e;Ie--,re+=At[G++]<<he,he+=8}if(re!==(le.total&4294967295)){xe.msg="incorrect length check",le.mode=ge;break}re=0,he=0}le.mode=ue;case ue:Wt=d;break e;case ge:Wt=g;break e;case Se:return p;case ye:default:return h}return xe.next_out=Ee,xe.avail_out=ie,xe.next_in=G,xe.avail_in=Ie,le.hold=re,le.bits=he,(le.wsize||be!==xe.avail_out&&le.mode<ge&&(le.mode<ne||Ne!==l))&&pt(xe,xe.output,xe.next_out,be-xe.avail_out),Pe-=xe.avail_in,be-=xe.avail_out,xe.total_in+=Pe,xe.total_out+=be,le.total+=be,le.wrap&&be&&(xe.adler=le.check=le.flags?r(le.check,Bt,be,xe.next_out-be):t(le.check,Bt,be,xe.next_out-be)),xe.data_type=le.bits+(le.last?64:0)+(le.mode===N?128:0)+(le.mode===K||le.mode===P?256:0),(Pe===0&&be===0||Ne===l)&&Wt===u&&(Wt=E),Wt}function Fe(xe){if(!xe||!xe.state)return h;var Ne=xe.state;return Ne.window&&(Ne.window=null),xe.state=null,u}function je(xe,Ne){var le;return!xe||!xe.state||(le=xe.state,(le.wrap&2)===0)?h:(le.head=Ne,Ne.done=!1,u)}function et(xe,Ne){var le=Ne.length,At,Bt,G;return!xe||!xe.state||(At=xe.state,At.wrap!==0&&At.mode!==F)?h:At.mode===F&&(Bt=1,Bt=t(Bt,Ne,le,0),Bt!==At.check)?g:(G=pt(xe,Ne,le,le),G?(At.mode=Se,p):(At.havedict=1,u))}return Cs.inflateReset=Te,Cs.inflateReset2=Be,Cs.inflateResetKeep=ve,Cs.inflateInit=ht,Cs.inflateInit2=Ge,Cs.inflate=de,Cs.inflateEnd=Fe,Cs.inflateGetHeader=je,Cs.inflateSetDictionary=et,Cs.inflateInfo="pako inflate (from Nodeca project)",Cs}var ZQ,uK;function Hde(){return uK||(uK=1,ZQ={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),ZQ}var $Q,dK;function LNe(){if(dK)return $Q;dK=1;function e(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}return $Q=e,$Q}var fK;function UNe(){if(fK)return pg;fK=1;var e=YNe(),t=cd(),r=Lde(),n=Hde(),a=nY(),i=Ude(),o=LNe(),s=Object.prototype.toString;function l(u){if(!(this instanceof l))return new l(u);this.options=t.assign({chunkSize:16384,windowBits:0,to:""},u||{});var d=this.options;d.raw&&d.windowBits>=0&&d.windowBits<16&&(d.windowBits=-d.windowBits,d.windowBits===0&&(d.windowBits=-15)),d.windowBits>=0&&d.windowBits<16&&!(u&&u.windowBits)&&(d.windowBits+=32),d.windowBits>15&&d.windowBits<48&&(d.windowBits&15)===0&&(d.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var f=e.inflateInit2(this.strm,d.windowBits);if(f!==n.Z_OK)throw new Error(a[f]);if(this.header=new o,e.inflateGetHeader(this.strm,this.header),d.dictionary&&(typeof d.dictionary=="string"?d.dictionary=r.string2buf(d.dictionary):s.call(d.dictionary)==="[object ArrayBuffer]"&&(d.dictionary=new Uint8Array(d.dictionary)),d.raw&&(f=e.inflateSetDictionary(this.strm,d.dictionary),f!==n.Z_OK)))throw new Error(a[f])}l.prototype.push=function(u,d){var f=this.strm,h=this.options.chunkSize,g=this.options.dictionary,p,E,y,C,w,B=!1;if(this.ended)return!1;E=d===~~d?d:d===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof u=="string"?f.input=r.binstring2buf(u):s.call(u)==="[object ArrayBuffer]"?f.input=new Uint8Array(u):f.input=u,f.next_in=0,f.avail_in=f.input.length;do{if(f.avail_out===0&&(f.output=new t.Buf8(h),f.next_out=0,f.avail_out=h),p=e.inflate(f,n.Z_NO_FLUSH),p===n.Z_NEED_DICT&&g&&(p=e.inflateSetDictionary(this.strm,g)),p===n.Z_BUF_ERROR&&B===!0&&(p=n.Z_OK,B=!1),p!==n.Z_STREAM_END&&p!==n.Z_OK)return this.onEnd(p),this.ended=!0,!1;f.next_out&&(f.avail_out===0||p===n.Z_STREAM_END||f.avail_in===0&&(E===n.Z_FINISH||E===n.Z_SYNC_FLUSH))&&(this.options.to==="string"?(y=r.utf8border(f.output,f.next_out),C=f.next_out-y,w=r.buf2string(f.output,y),f.next_out=C,f.avail_out=h-C,C&&t.arraySet(f.output,f.output,y,C,0),this.onData(w)):this.onData(t.shrinkBuf(f.output,f.next_out))),f.avail_in===0&&f.avail_out===0&&(B=!0)}while((f.avail_in>0||f.avail_out===0)&&p!==n.Z_STREAM_END);return p===n.Z_STREAM_END&&(E=n.Z_FINISH),E===n.Z_FINISH?(p=e.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===n.Z_OK):(E===n.Z_SYNC_FLUSH&&(this.onEnd(n.Z_OK),f.avail_out=0),!0)},l.prototype.onData=function(u){this.chunks.push(u)},l.prototype.onEnd=function(u){u===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg};function A(u,d){var f=new l(d);if(f.push(u,!0),f.err)throw f.msg||a[f.err];return f.result}function c(u,d){return d=d||{},d.raw=!0,A(u,d)}return pg.Inflate=l,pg.inflate=A,pg.inflateRaw=c,pg.ungzip=A,pg}var eD,hK;function HNe(){if(hK)return eD;hK=1;var e=cd().assign,t=ONe(),r=UNe(),n=Hde(),a={};return e(a,t,r,n),eD=a,eD}var GNe=HNe();const Do=Nr(GNe),KNe=e=>{var t=e.replace(/^.*<CTICONTENT>(.*)<\/CTICONTENT>.*$/gs,"$1");t.substring(0,3)==="_t_"&&(t=t.substring(10)),t.substring(0,3)==="_c_"&&(t=VNe(t.substring(3)));var r=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm;return t.replace(/\n<\?xml version="1\.0" encoding="ISO-8859-1"\?>/gm,"").replace(r,"")};function VNe(e){var t=new Uint8Array(atob(e).split("").map(n=>n.charCodeAt(0)));try{var r=Do.inflate(t)}catch(n){console.log(n)}return new TextDecoder("iso-8859-1").decode(new Uint8Array(r))}var Gde={};Gde.latin_map={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",ǲ:"D",ǅ:"D",Đ:"D",Ƌ:"D",Ǳ:"DZ",Ǆ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ":"ET",Ḟ:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",Ḡ:"G",Ǥ:"G",Ḫ:"H",Ȟ:"H",Ḩ:"H",Ĥ:"H","Ⱨ":"H",Ḧ:"H",Ḣ:"H",Ḥ:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",Ḯ:"I",İ:"I",Ị:"I",Ȉ:"I",Ì:"I",Ỉ:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",Ḭ:"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS",Ĵ:"J","Ɉ":"J",Ḱ:"K",Ǩ:"K",Ķ:"K","Ⱪ":"K","Ꝃ":"K",Ḳ:"K",Ƙ:"K",Ḵ:"K","Ꝁ":"K","Ꝅ":"K",Ĺ:"L","Ƚ":"L",Ľ:"L",Ļ:"L",Ḽ:"L",Ḷ:"L",Ḹ:"L","Ⱡ":"L","Ꝉ":"L",Ḻ:"L",Ŀ:"L","Ɫ":"L",ǈ:"L",Ł:"L",Ǉ:"LJ",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ń:"N",Ň:"N",Ņ:"N",Ṋ:"N",Ṅ:"N",Ṇ:"N",Ǹ:"N",Ɲ:"N",Ṉ:"N","Ƞ":"N",ǋ:"N",Ñ:"N",Ǌ:"NJ",Ó:"O",Ŏ:"O",Ǒ:"O",Ô:"O",Ố:"O",Ộ:"O",Ồ:"O",Ổ:"O",Ỗ:"O",Ö:"O",Ȫ:"O",Ȯ:"O",Ȱ:"O",Ọ:"O",Ő:"O",Ȍ:"O",Ò:"O",Ỏ:"O",Ơ:"O",Ớ:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O","Ꝋ":"O","Ꝍ":"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI","Ꝏ":"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P","Ꝓ":"P",Ƥ:"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T","Ⱦ":"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T","Ɐ":"A","Ꞁ":"L",Ɯ:"M","Ʌ":"V","Ꜩ":"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U","Ꝟ":"V",Ṿ:"V",Ʋ:"V",Ṽ:"V","Ꝡ":"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W","Ⱳ":"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y","Ỿ":"Y",Ȳ:"Y","Ɏ":"Y",Ỹ:"Y",Ź:"Z",Ž:"Z",Ẑ:"Z","Ⱬ":"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",Ĳ:"IJ",Œ:"OE","ᴀ":"A","ᴁ":"AE",ʙ:"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R","ᴊ":"J","ᴋ":"K",ʟ:"L","ᴌ":"L","ᴍ":"M",ɴ:"N","ᴏ":"O",ɶ:"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P",ʀ:"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W",ʏ:"Y","ᴢ":"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a","ᶏ":"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a","ⱥ":"a",ã:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b","ᵬ":"b","ᶀ":"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c","ȼ":"c",ď:"d",ḑ:"d",ḓ:"d","ȡ":"d",ḋ:"d",ḍ:"d",ɗ:"d","ᶑ":"d",ḏ:"d","ᵭ":"d","ᶁ":"d",đ:"d",ɖ:"d",ƌ:"d",ı:"i","ȷ":"j",ɟ:"j",ʄ:"j",ǳ:"dz",ǆ:"dz",é:"e",ĕ:"e",ě:"e",ȩ:"e",ḝ:"e",ê:"e",ế:"e",ệ:"e",ề:"e",ể:"e",ễ:"e",ḙ:"e",ë:"e",ė:"e",ẹ:"e",ȅ:"e",è:"e",ẻ:"e",ȇ:"e",ē:"e",ḗ:"e",ḕ:"e","ⱸ":"e",ę:"e","ᶒ":"e","ɇ":"e",ẽ:"e",ḛ:"e","ꝫ":"et",ḟ:"f",ƒ:"f","ᵮ":"f","ᶂ":"f",ǵ:"g",ğ:"g",ǧ:"g",ģ:"g",ĝ:"g",ġ:"g",ɠ:"g",ḡ:"g","ᶃ":"g",ǥ:"g",ḫ:"h",ȟ:"h",ḩ:"h",ĥ:"h","ⱨ":"h",ḧ:"h",ḣ:"h",ḥ:"h",ɦ:"h",ẖ:"h",ħ:"h",ƕ:"hv",í:"i",ĭ:"i",ǐ:"i",î:"i",ï:"i",ḯ:"i",ị:"i",ȉ:"i",ì:"i",ỉ:"i",ȋ:"i",ī:"i",į:"i","ᶖ":"i",ɨ:"i",ĩ:"i",ḭ:"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is",ǰ:"j",ĵ:"j",ʝ:"j","ɉ":"j",ḱ:"k",ǩ:"k",ķ:"k","ⱪ":"k","ꝃ":"k",ḳ:"k",ƙ:"k",ḵ:"k","ᶄ":"k","ꝁ":"k","ꝅ":"k",ĺ:"l",ƚ:"l",ɬ:"l",ľ:"l",ļ:"l",ḽ:"l","ȴ":"l",ḷ:"l",ḹ:"l","ⱡ":"l","ꝉ":"l",ḻ:"l",ŀ:"l",ɫ:"l","ᶅ":"l",ɭ:"l",ł:"l",ǉ:"lj",ſ:"s","ẜ":"s",ẛ:"s","ẝ":"s",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m","ᵯ":"m","ᶆ":"m",ń:"n",ň:"n",ņ:"n",ṋ:"n","ȵ":"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n","ᵰ":"n","ᶇ":"n",ɳ:"n",ñ:"n",ǌ:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o","ꝋ":"o","ꝍ":"o","ⱺ":"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi","ꝏ":"oo",ɛ:"e","ᶓ":"e",ɔ:"o","ᶗ":"o",ȣ:"ou",ṕ:"p",ṗ:"p","ꝓ":"p",ƥ:"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q",ʠ:"q","ɋ":"q","ꝗ":"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r","ᵳ":"r",ȓ:"r",ṟ:"r",ɼ:"r","ᵲ":"r","ᶉ":"r","ɍ":"r",ɽ:"r","ↄ":"c","ꜿ":"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s","ᵴ":"s","ᶊ":"s","ȿ":"s",ɡ:"g","ᴑ":"o","ᴓ":"o","ᴝ":"u",ť:"t",ţ:"t",ṱ:"t",ț:"t","ȶ":"t",ẗ:"t","ⱦ":"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t","ᵵ":"t",ƫ:"t",ʈ:"t",ŧ:"t","ᵺ":"th",ɐ:"a","ᴂ":"ae",ǝ:"e","ᵷ":"g",ɥ:"h","ʮ":"h","ʯ":"h","ᴉ":"i",ʞ:"k","ꞁ":"l",ɯ:"m",ɰ:"m","ᴔ":"oe",ɹ:"r",ɻ:"r",ɺ:"r","ⱹ":"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y","ꜩ":"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",ﬀ:"ff",ﬃ:"ffi",ﬄ:"ffl",ﬁ:"fi",ﬂ:"fl",ĳ:"ij",œ:"oe",ﬆ:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x"};String.prototype.latinise=function(){return this.replace(/[^A-Za-z0-9\[\] ]/g,function(e){return Gde.latin_map[e]||e})};const Kde={"0x":"#","0X":"#","Ã©":"é","Ã":"É","Ã¨":"è",Ãª:"ê",ÃÐ:"é","Ã¢":"â","Ã§":"ç",ÃŽ:"ô","Ã´":"ô","Ã»":"û",Ãš:"è","Ã ":"à",Â:"","â‚¬":"€","â¬":"€","â":"Σ","âˆ‘":"Σ"},ud=(e,t=!0)=>{const n=new TextDecoder("iso-8859-15").decode(e);return t?Jde(n):n};function ma(){let e=window.location.pathname;return e.substring(0,e.indexOf("jis"))}function Vde(e,t){const r=new RegExp(Object.keys(t).join("|"),"gm");return e.replace(r,function(n){return t[n]})}function lr(e){let t={};const r=e==null?void 0:e.attributes;if(r)for(let n=0;n<r.length;n++){let a=r[n];[void 0,""].includes(a)||(t[a.name]=a.value)}return t}function ft(e,t){const r=[];if((e==null?void 0:e.childNodes)!==void 0)for(var n in e.childNodes)e.childNodes[n].nodeName===t&&r.push(e.childNodes[n]);return r}function mn(e){let t=[];return e!=null&&e.length&&e.forEach((r,n)=>{let a=lr(r);a.key=n,t.push(a)}),t}function Jde(e){if(window.DOMParser){let t=new window.DOMParser,r=KNe(e.substring(e.indexOf("<CTICONTENT>")));const n=Vde(r,Kde);return t.parseFromString(n,"text/xml")}}function Su(e){for(const t in e)if(e.hasOwnProperty(t))return!1;return!0}function vc(e,t=!1){let r={"ACTI_globals.XML":"globals_activite","PMSI_globals.XML":"globals_pmsi","PMSISSR_globals.XML":"globals_pmsissr","PMSIHAD_globals.XML":"globals_pmsihad","PMSIPSY_globals.XML":"globals_pmsipsy","RH_globals.XML":"globals_rh","ECO_globals.XML":"globals_eco","COMPTA_globals.XML":"globals_compta","DPI_globals.XML":"globals_dpi","QUAL_globals.XML":"globals_qual"};if(t===!0)for(let n in r)return r[n]===e?n:`${e.split("_")[1].toUpperCase()}_GLOBALS.XML`;else return r[e]?r[e]:`globals_${e.split("_")[0].toLowerCase()}`;return null}function aY(e,t=[]){return Object.values(e).forEach(r=>{r.group&&r.group.forEach(n=>{n.field&&n.field.forEach(a=>{t.push({...a,options:a.options?[...a.options]:null})}),n.group&&n.group.forEach(a=>{a.field.forEach(i=>{t.push({...i,options:i.options?[...i.options]:null})})})})}),t}function Ic(e,t,r){e=e.map(a=>(a.children&&(a.children=Ic(a.children,t,r)),a));let n;return e.every(a=>{var i;return((i=a[t])==null?void 0:i.text)&&!isNaN(a[t].text)})?n=e.sort((a,i)=>Number(a[t].text)-Number(i[t].text)):n=e.sort((a,i)=>{var o,s;return a[t]===void 0||i[t]===void 0?!0:typeof((o=a[t])==null?void 0:o.text)=="string"&&typeof((s=i[t])==null?void 0:s.text)=="string"?a[t].text.toLowerCase().localeCompare(i[t].text.toLowerCase(),void 0,{numeric:!0,sensitivity:"base"}):!isNaN(a[t])&&!isNaN(i[t])?a[t]-i[t]:typeof a[t]=="string"&&typeof i[t]=="string"?a[t].localeCompare(i[t],void 0,{numeric:!0,sensitivity:"base"}):!0}),r==="desc"?NNe(n):n}function gK(e,t="_"){if(e!==void 0){let r=[],n=e.split(t),a="";return n.forEach(i=>{a===""?a+=i:a+="_"+i,r.push(a)}),r}else return[]}const KI={ACTI:"activite",COMPTA:"compta",DPI:"dpi",ECO:"eco",EIS:"eis",PMSI:"pmsi",PMSIHAD:"pmsihad",PMSIPSY:"pmsipsy",PMSISSR:"pmsissr",QUAL:"qualite",RH:"rh"};function JNe(e){let t=[];return e.forEach(r=>{if(r.oid!=="0"){let n={XMLType:"SECTION"};for(let a in r)a!=="elements"&&(n[a]=r[a]);n.children=WNe(r.elements),t.push(n)}}),t}function WNe(e){let t=[],r=e.map(n=>n.oid);return r=[...new Set(r)],r.forEach(n=>{let a={XMLType:"ELEMENT"};a.oid=n,t.push(a)}),t}var tI={exports:{}},XNe=tI.exports,pK;function qNe(){return pK||(pK=1,function(e,t){(function(r,n){e.exports=n()})(XNe,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",A="day",c="week",u="month",d="quarter",f="year",h="date",g="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var k=["th","st","nd","rd"],O=N%100;return"["+N+(k[(O-20)%10]||k[O]||k[0])+"]"}},C=function(N,k,O){var P=String(N);return!P||P.length>=k?N:""+Array(k+1-P.length).join(O)+N},w={s:C,z:function(N){var k=-N.utcOffset(),O=Math.abs(k),P=Math.floor(O/60),z=O%60;return(k<=0?"+":"-")+C(P,2,"0")+":"+C(z,2,"0")},m:function N(k,O){if(k.date()<O.date())return-N(O,k);var P=12*(O.year()-k.year())+(O.month()-k.month()),z=k.clone().add(P,u),j=O-z<0,V=k.clone().add(P+(j?-1:1),u);return+(-(P+(O-z)/(j?z-V:V-z))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:u,y:f,w:c,d:A,D:h,h:l,m:s,s:o,ms:i,Q:d}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},B="en",M={};M[B]=y;var I="$isDayjsObject",S=function(N){return N instanceof D||!(!N||!N[I])},R=function N(k,O,P){var z;if(!k)return B;if(typeof k=="string"){var j=k.toLowerCase();M[j]&&(z=j),O&&(M[j]=O,z=j);var V=k.split("-");if(!z&&V.length>1)return N(V[0])}else{var L=k.name;M[L]=k,z=L}return!P&&z&&(B=z),z||!P&&B},b=function(N,k){if(S(N))return N.clone();var O=typeof k=="object"?k:{};return O.date=N,O.args=arguments,new D(O)},Q=w;Q.l=R,Q.i=S,Q.w=function(N,k){return b(N,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var D=function(){function N(O){this.$L=R(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[I]=!0}var k=N.prototype;return k.parse=function(O){this.$d=function(P){var z=P.date,j=P.utc;if(z===null)return new Date(NaN);if(Q.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var V=z.match(p);if(V){var L=V[2]-1||0,K=(V[7]||"0").substring(0,3);return j?new Date(Date.UTC(V[1],L,V[3]||1,V[4]||0,V[5]||0,V[6]||0,K)):new Date(V[1],L,V[3]||1,V[4]||0,V[5]||0,V[6]||0,K)}}return new Date(z)}(O),this.init()},k.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},k.$utils=function(){return Q},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(O,P){var z=b(O);return this.startOf(P)<=z&&z<=this.endOf(P)},k.isAfter=function(O,P){return b(O)<this.startOf(P)},k.isBefore=function(O,P){return this.endOf(P)<b(O)},k.$g=function(O,P,z){return Q.u(O)?this[P]:this.set(z,O)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(O,P){var z=this,j=!!Q.u(P)||P,V=Q.p(O),L=function(ne,ce){var ue=Q.w(z.$u?Date.UTC(z.$y,ce,ne):new Date(z.$y,ce,ne),z);return j?ue:ue.endOf(A)},K=function(ne,ce){return Q.w(z.toDate()[ne].apply(z.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(ce)),z)},J=this.$W,Y=this.$M,W=this.$D,q="set"+(this.$u?"UTC":"");switch(V){case f:return j?L(1,0):L(31,11);case u:return j?L(1,Y):L(0,Y+1);case c:var ee=this.$locale().weekStart||0,ae=(J<ee?J+7:J)-ee;return L(j?W-ae:W+(6-ae),Y);case A:case h:return K(q+"Hours",0);case l:return K(q+"Minutes",1);case s:return K(q+"Seconds",2);case o:return K(q+"Milliseconds",3);default:return this.clone()}},k.endOf=function(O){return this.startOf(O,!1)},k.$set=function(O,P){var z,j=Q.p(O),V="set"+(this.$u?"UTC":""),L=(z={},z[A]=V+"Date",z[h]=V+"Date",z[u]=V+"Month",z[f]=V+"FullYear",z[l]=V+"Hours",z[s]=V+"Minutes",z[o]=V+"Seconds",z[i]=V+"Milliseconds",z)[j],K=j===A?this.$D+(P-this.$W):P;if(j===u||j===f){var J=this.clone().set(h,1);J.$d[L](K),J.init(),this.$d=J.set(h,Math.min(this.$D,J.daysInMonth())).$d}else L&&this.$d[L](K);return this.init(),this},k.set=function(O,P){return this.clone().$set(O,P)},k.get=function(O){return this[Q.p(O)]()},k.add=function(O,P){var z,j=this;O=Number(O);var V=Q.p(P),L=function(Y){var W=b(j);return Q.w(W.date(W.date()+Math.round(Y*O)),j)};if(V===u)return this.set(u,this.$M+O);if(V===f)return this.set(f,this.$y+O);if(V===A)return L(1);if(V===c)return L(7);var K=(z={},z[s]=n,z[l]=a,z[o]=r,z)[V]||1,J=this.$d.getTime()+O*K;return Q.w(J,this)},k.subtract=function(O,P){return this.add(-1*O,P)},k.format=function(O){var P=this,z=this.$locale();if(!this.isValid())return z.invalidDate||g;var j=O||"YYYY-MM-DDTHH:mm:ssZ",V=Q.z(this),L=this.$H,K=this.$m,J=this.$M,Y=z.weekdays,W=z.months,q=z.meridiem,ee=function(ce,ue,ge,Se){return ce&&(ce[ue]||ce(P,j))||ge[ue].slice(0,Se)},ae=function(ce){return Q.s(L%12||12,ce,"0")},ne=q||function(ce,ue,ge){var Se=ce<12?"AM":"PM";return ge?Se.toLowerCase():Se};return j.replace(E,function(ce,ue){return ue||function(ge){switch(ge){case"YY":return String(P.$y).slice(-2);case"YYYY":return Q.s(P.$y,4,"0");case"M":return J+1;case"MM":return Q.s(J+1,2,"0");case"MMM":return ee(z.monthsShort,J,W,3);case"MMMM":return ee(W,J);case"D":return P.$D;case"DD":return Q.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return ee(z.weekdaysMin,P.$W,Y,2);case"ddd":return ee(z.weekdaysShort,P.$W,Y,3);case"dddd":return Y[P.$W];case"H":return String(L);case"HH":return Q.s(L,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return ne(L,K,!0);case"A":return ne(L,K,!1);case"m":return String(K);case"mm":return Q.s(K,2,"0");case"s":return String(P.$s);case"ss":return Q.s(P.$s,2,"0");case"SSS":return Q.s(P.$ms,3,"0");case"Z":return V}return null}(ce)||V.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(O,P,z){var j,V=this,L=Q.p(P),K=b(O),J=(K.utcOffset()-this.utcOffset())*n,Y=this-K,W=function(){return Q.m(V,K)};switch(L){case f:j=W()/12;break;case u:j=W();break;case d:j=W()/3;break;case c:j=(Y-J)/6048e5;break;case A:j=(Y-J)/864e5;break;case l:j=Y/a;break;case s:j=Y/n;break;case o:j=Y/r;break;default:j=Y}return z?j:Q.a(j)},k.daysInMonth=function(){return this.endOf(u).$D},k.$locale=function(){return M[this.$L]},k.locale=function(O,P){if(!O)return this.$L;var z=this.clone(),j=R(O,P,!0);return j&&(z.$L=j),z},k.clone=function(){return Q.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},N}(),F=D.prototype;return b.prototype=F,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",A],["$M",u],["$y",f],["$D",h]].forEach(function(N){F[N[1]]=function(k){return this.$g(k,N[0],N[1])}}),b.extend=function(N,k){return N.$i||(N(k,D,b),N.$i=!0),b},b.locale=R,b.isDayjs=S,b.unix=function(N){return b(1e3*N)},b.en=M[B],b.Ls=M,b.p={},b})}(tI)),tI.exports}var ZNe=qNe();const Nn=Nr(ZNe);Nn.locale("fr");function $Ne(e,t,r){if(!e||!t||r===""||r==="Non autorisé")return r;const n=e.replace("AAAA","YYYY").replace("JJ","DD");return Nn(r,n).format(t)}var rI={exports:{}},eke=rI.exports,vK;function tke(){return vK||(vK=1,function(e,t){(function(r,n){e.exports=n()})(eke,function(){var r,n,a=1e3,i=6e4,o=36e5,s=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A=31536e6,c=2628e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,d={years:A,months:c,days:s,hours:o,minutes:i,seconds:a,milliseconds:1,weeks:6048e5},f=function(M){return M instanceof w},h=function(M,I,S){return new w(M,S,I.$l)},g=function(M){return n.p(M)+"s"},p=function(M){return M<0},E=function(M){return p(M)?Math.ceil(M):Math.floor(M)},y=function(M){return Math.abs(M)},C=function(M,I){return M?p(M)?{negative:!0,format:""+y(M)+I}:{negative:!1,format:""+M+I}:{negative:!1,format:""}},w=function(){function M(S,R,b){var Q=this;if(this.$d={},this.$l=b,S===void 0&&(this.$ms=0,this.parseFromMilliseconds()),R)return h(S*d[g(R)],this);if(typeof S=="number")return this.$ms=S,this.parseFromMilliseconds(),this;if(typeof S=="object")return Object.keys(S).forEach(function(N){Q.$d[g(N)]=S[N]}),this.calMilliseconds(),this;if(typeof S=="string"){var D=S.match(u);if(D){var F=D.slice(2).map(function(N){return N!=null?Number(N):0});return this.$d.years=F[0],this.$d.months=F[1],this.$d.weeks=F[2],this.$d.days=F[3],this.$d.hours=F[4],this.$d.minutes=F[5],this.$d.seconds=F[6],this.calMilliseconds(),this}}return this}var I=M.prototype;return I.calMilliseconds=function(){var S=this;this.$ms=Object.keys(this.$d).reduce(function(R,b){return R+(S.$d[b]||0)*d[b]},0)},I.parseFromMilliseconds=function(){var S=this.$ms;this.$d.years=E(S/A),S%=A,this.$d.months=E(S/c),S%=c,this.$d.days=E(S/s),S%=s,this.$d.hours=E(S/o),S%=o,this.$d.minutes=E(S/i),S%=i,this.$d.seconds=E(S/a),S%=a,this.$d.milliseconds=S},I.toISOString=function(){var S=C(this.$d.years,"Y"),R=C(this.$d.months,"M"),b=+this.$d.days||0;this.$d.weeks&&(b+=7*this.$d.weeks);var Q=C(b,"D"),D=C(this.$d.hours,"H"),F=C(this.$d.minutes,"M"),N=this.$d.seconds||0;this.$d.milliseconds&&(N+=this.$d.milliseconds/1e3,N=Math.round(1e3*N)/1e3);var k=C(N,"S"),O=S.negative||R.negative||Q.negative||D.negative||F.negative||k.negative,P=D.format||F.format||k.format?"T":"",z=(O?"-":"")+"P"+S.format+R.format+Q.format+P+D.format+F.format+k.format;return z==="P"||z==="-P"?"P0D":z},I.toJSON=function(){return this.toISOString()},I.format=function(S){var R=S||"YYYY-MM-DDTHH:mm:ss",b={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return R.replace(l,function(Q,D){return D||String(b[Q])})},I.as=function(S){return this.$ms/d[g(S)]},I.get=function(S){var R=this.$ms,b=g(S);return b==="milliseconds"?R%=1e3:R=b==="weeks"?E(R/d[b]):this.$d[b],R||0},I.add=function(S,R,b){var Q;return Q=R?S*d[g(R)]:f(S)?S.$ms:h(S,this).$ms,h(this.$ms+Q*(b?-1:1),this)},I.subtract=function(S,R){return this.add(S,R,!0)},I.locale=function(S){var R=this.clone();return R.$l=S,R},I.clone=function(){return h(this.$ms,this)},I.humanize=function(S){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!S)},I.valueOf=function(){return this.asMilliseconds()},I.milliseconds=function(){return this.get("milliseconds")},I.asMilliseconds=function(){return this.as("milliseconds")},I.seconds=function(){return this.get("seconds")},I.asSeconds=function(){return this.as("seconds")},I.minutes=function(){return this.get("minutes")},I.asMinutes=function(){return this.as("minutes")},I.hours=function(){return this.get("hours")},I.asHours=function(){return this.as("hours")},I.days=function(){return this.get("days")},I.asDays=function(){return this.as("days")},I.weeks=function(){return this.get("weeks")},I.asWeeks=function(){return this.as("weeks")},I.months=function(){return this.get("months")},I.asMonths=function(){return this.as("months")},I.years=function(){return this.get("years")},I.asYears=function(){return this.as("years")},M}(),B=function(M,I,S){return M.add(I.years()*S,"y").add(I.months()*S,"M").add(I.days()*S,"d").add(I.hours()*S,"h").add(I.minutes()*S,"m").add(I.seconds()*S,"s").add(I.milliseconds()*S,"ms")};return function(M,I,S){r=S,n=S().$utils(),S.duration=function(Q,D){var F=S.locale();return h(Q,{$l:F},D)},S.isDuration=f;var R=I.prototype.add,b=I.prototype.subtract;I.prototype.add=function(Q,D){return f(Q)?B(this,Q,1):R.bind(this)(Q,D)},I.prototype.subtract=function(Q,D){return f(Q)?B(this,Q,-1):b.bind(this)(Q,D)}}})}(rI)),rI.exports}var rke=tke();const nke=Nr(rke);Nn.locale("fr");Nn.extend(nke);function ake(e,t){const n=Nn.duration(t,"seconds").$d;let a="";const i=[{format:"Y",duration:n.years,label:"a",key:1},{format:"M",duration:n.months,label:"m",key:2},{format:"D",duration:n.days,label:"j",key:3},{format:"H",duration:n.hours,label:"h",key:4},{format:"m",duration:n.minutes,label:"mn",key:5},{format:"s",duration:n.seconds,label:"s",key:6}],s=RegExp(/\(([^)]+)\)/).exec(e),A=i.filter(c=>c.format===s[1])[0].key;return A&&i.forEach(c=>{c.key<=A&&c.duration!==0&&(a+=`${c.duration}${c.label} `)}),["",NaN,null,void 0].includes(a)?"-":a}function ike(e="#",t){if(t===void 0||Number(t)===0||t==="Infinity"||t==="infinity"||t==="NaN"||t===null)return"-";let r=Number(t),n={digits:0,style:""},a=0,i=e.match(/(,)(0*)/gm);i&&(i=i[0].substring(1),a=i.length),e.includes("(k)")&&(r=r/1e3);let s=e.includes("+"),l=null;return s&&r>0&&(l="+"),e=e.replace(/^0+/gm,""),n.style=e.replace(/\+?(\(.*\)\d*)?#(,\d*)?/gm,"").replace(/E/gm,"€").replace("(k)",""),n.digits=a,`${l??""}${r.toFixed(n.digits).replace(".",",")} ${n.style}`.trim()}function mK(e){let t=0,r=e.match(/(,)(0*)/gm);return r&&(r=r[0].substring(1),t=r.length),t}function Ym(e,t){let r=0;switch(t){case"Minute":r=e/60;break;case"Hour":r=e/Math.pow(60,2);break;case"Day":r=e/Math.pow(60,2)/24;break;case"Month":r=e/Math.pow(60,2)/24/30;break;case"Year":r=e/Math.pow(60,2)/24/30/12;break;default:r=e}return r}function oke(e,t){const r=[{format:"Y",duration:Ym(t,"Year"),label:"a",key:1},{format:"M",duration:Ym(t,"Month"),label:"m",key:2},{format:"D",duration:Ym(t,"Day"),label:"j",key:3},{format:"H",duration:Ym(t,"Hour"),label:"h",key:4},{format:"m",duration:Ym(t,"Minute"),label:"mn",key:5}];let n="";const i=RegExp(/\(([^)]+)\)/).exec(e),s=r.filter(l=>l.format===i[1])[0].key;return s&&r.forEach(l=>{l.key===s&&l.duration!==0&&(n=`${Math.round(l.duration*100)/100}${l.label} `)}),["0a","0m","0j","0h","0mn","",NaN,null,void 0].includes(n.trim())&&(n="-"),n}const ske=(e,t)=>{const r=Math.ceil(e),n=Math.floor(t);return Math.floor(Math.random()*(n-r+1)+r)},lke=e=>{const[t,r]=e.toString().split(","),n=t.replace(/\B(?=(\d{3})+(?!\d))/g," ");return r?`${n},${r}`:n};function VI({type:e,format:t,inputFormat:r,outputFormat:n,data:a,viewTitle:i=""}={}){let o="";switch(i.toLowerCase().includes("essentiel")&&e==="Number"&&(e=Ake(t)),e){case"Number":o=ike(t,a);break;case"Date":o=$Ne(r,n,a);break;case"Interval":o=ake(t,Number(a));break;case"Tps_deci":o=oke(t,Number(a));break;default:o=a}return e==="Date"?o.trim():lke(o)}function Ake(e=""){return e.toLowerCase().includes("interval")?"Interval":e.toLowerCase().includes("deci")?"Tps_deci":e.toLowerCase().includes("date")?"Date":"Number"}var tD={exports:{}},rD,EK;function cke(){if(EK)return rD;EK=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return rD=e,rD}var nD,yK;function uke(){if(yK)return nD;yK=1;var e=cke();function t(){}function r(){}return r.resetWarningCache=t,nD=function(){function n(o,s,l,A,c,u){if(u!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},nD}var CK;function Ks(){return CK||(CK=1,tD.exports=uke()()),tD.exports}var dke=Ks();const U=Nr(dke);var xA=te.createContext(null);function fke(e){e()}var Wde=fke,hke=function(t){return Wde=t},gke=function(){return Wde};function pke(){var e=gke(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var a=t;a;)a.callback(),a=a.next})},get:function(){for(var a=[],i=t;i;)a.push(i),i=i.next;return a},subscribe:function(a){var i=!0,o=r={callback:a,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var wK={notify:function(){},get:function(){return[]}};function iY(e,t){var r,n=wK;function a(u){return l(),n.subscribe(u)}function i(){n.notify()}function o(){c.onStateChange&&c.onStateChange()}function s(){return!!r}function l(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=pke())}function A(){r&&(r(),r=void 0,n.clear(),n=wK)}var c={addNestedSub:a,notifyNestedSubs:i,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:A,getListeners:function(){return n}};return c}var JI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect;function vke(e){var t=e.store,r=e.context,n=e.children,a=m.useMemo(function(){var s=iY(t);return{store:t,subscription:s}},[t]),i=m.useMemo(function(){return t.getState()},[t]);JI(function(){var s=a.subscription;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),i!==t.getState()&&s.notifyNestedSubs(),function(){s.tryUnsubscribe(),s.onStateChange=null}},[a,i]);var o=r||xA;return te.createElement(o.Provider,{value:a},n)}function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oe.apply(null,arguments)}var aD={exports:{}},Pn={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var BK;function mke(){if(BK)return Pn;BK=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,A=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function C(B){if(typeof B=="object"&&B!==null){var M=B.$$typeof;switch(M){case t:switch(B=B.type,B){case l:case A:case n:case i:case a:case u:return B;default:switch(B=B&&B.$$typeof,B){case s:case c:case h:case f:case o:return B;default:return M}}case r:return M}}}function w(B){return C(B)===A}return Pn.AsyncMode=l,Pn.ConcurrentMode=A,Pn.ContextConsumer=s,Pn.ContextProvider=o,Pn.Element=t,Pn.ForwardRef=c,Pn.Fragment=n,Pn.Lazy=h,Pn.Memo=f,Pn.Portal=r,Pn.Profiler=i,Pn.StrictMode=a,Pn.Suspense=u,Pn.isAsyncMode=function(B){return w(B)||C(B)===l},Pn.isConcurrentMode=w,Pn.isContextConsumer=function(B){return C(B)===s},Pn.isContextProvider=function(B){return C(B)===o},Pn.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===t},Pn.isForwardRef=function(B){return C(B)===c},Pn.isFragment=function(B){return C(B)===n},Pn.isLazy=function(B){return C(B)===h},Pn.isMemo=function(B){return C(B)===f},Pn.isPortal=function(B){return C(B)===r},Pn.isProfiler=function(B){return C(B)===i},Pn.isStrictMode=function(B){return C(B)===a},Pn.isSuspense=function(B){return C(B)===u},Pn.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===n||B===A||B===i||B===a||B===u||B===d||typeof B=="object"&&B!==null&&(B.$$typeof===h||B.$$typeof===f||B.$$typeof===o||B.$$typeof===s||B.$$typeof===c||B.$$typeof===p||B.$$typeof===E||B.$$typeof===y||B.$$typeof===g)},Pn.typeOf=C,Pn}var MK;function Xde(){return MK||(MK=1,aD.exports=mke()),aD.exports}var iD,xK;function Eke(){if(xK)return iD;xK=1;var e=Xde(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=a;function o(h){return e.isMemo(h)?a:i[h.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,A=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;function f(h,g,p){if(typeof g!="string"){if(d){var E=u(g);E&&E!==d&&f(h,E,p)}var y=l(g);A&&(y=y.concat(A(g)));for(var C=o(h),w=o(g),B=0;B<y.length;++B){var M=y[B];if(!r[M]&&!(p&&p[M])&&!(w&&w[M])&&!(C&&C[M])){var I=c(g,M);try{s(h,M,I)}catch{}}}}return h}return iD=f,iD}var yke=Eke();const IK=Nr(yke);var oD={exports:{}},Yn={};/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var bK;function Cke(){if(bK)return Yn;bK=1;var e=60103,t=60106,r=60107,n=60108,a=60114,i=60109,o=60110,s=60112,l=60113,A=60120,c=60115,u=60116,d=60121,f=60122,h=60117,g=60129,p=60131;if(typeof Symbol=="function"&&Symbol.for){var E=Symbol.for;e=E("react.element"),t=E("react.portal"),r=E("react.fragment"),n=E("react.strict_mode"),a=E("react.profiler"),i=E("react.provider"),o=E("react.context"),s=E("react.forward_ref"),l=E("react.suspense"),A=E("react.suspense_list"),c=E("react.memo"),u=E("react.lazy"),d=E("react.block"),f=E("react.server.block"),h=E("react.fundamental"),g=E("react.debug_trace_mode"),p=E("react.legacy_hidden")}function y(F){if(typeof F=="object"&&F!==null){var N=F.$$typeof;switch(N){case e:switch(F=F.type,F){case r:case a:case n:case l:case A:return F;default:switch(F=F&&F.$$typeof,F){case o:case s:case u:case c:case i:return F;default:return N}}case t:return N}}}var C=i,w=e,B=s,M=r,I=u,S=c,R=t,b=a,Q=n,D=l;return Yn.ContextConsumer=o,Yn.ContextProvider=C,Yn.Element=w,Yn.ForwardRef=B,Yn.Fragment=M,Yn.Lazy=I,Yn.Memo=S,Yn.Portal=R,Yn.Profiler=b,Yn.StrictMode=Q,Yn.Suspense=D,Yn.isAsyncMode=function(){return!1},Yn.isConcurrentMode=function(){return!1},Yn.isContextConsumer=function(F){return y(F)===o},Yn.isContextProvider=function(F){return y(F)===i},Yn.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===e},Yn.isForwardRef=function(F){return y(F)===s},Yn.isFragment=function(F){return y(F)===r},Yn.isLazy=function(F){return y(F)===u},Yn.isMemo=function(F){return y(F)===c},Yn.isPortal=function(F){return y(F)===t},Yn.isProfiler=function(F){return y(F)===a},Yn.isStrictMode=function(F){return y(F)===n},Yn.isSuspense=function(F){return y(F)===l},Yn.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===r||F===a||F===g||F===n||F===l||F===A||F===p||typeof F=="object"&&F!==null&&(F.$$typeof===u||F.$$typeof===c||F.$$typeof===i||F.$$typeof===o||F.$$typeof===s||F.$$typeof===h||F.$$typeof===d||F[0]===f)},Yn.typeOf=y,Yn}var SK;function wke(){return SK||(SK=1,oD.exports=Cke()),oD.exports}var Bke=wke(),Mke=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],xke=["reactReduxForwardedRef"],Ike=[],bke=[null,null];function Ske(e,t){var r=e[1];return[t.payload,r+1]}function RK(e,t,r){JI(function(){return e.apply(void 0,t)},r)}function Rke(e,t,r,n,a,i,o){e.current=n,t.current=a,r.current=!1,i.current&&(i.current=null,o())}function Tke(e,t,r,n,a,i,o,s,l,A){if(e){var c=!1,u=null,d=function(){if(!c){var g=t.getState(),p,E;try{p=n(g,a.current)}catch(y){E=y,u=y}E||(u=null),p===i.current?o.current||l():(i.current=p,s.current=p,o.current=!0,A({type:"STORE_UPDATED",payload:{error:E}}))}};r.onStateChange=d,r.trySubscribe(),d();var f=function(){if(c=!0,r.tryUnsubscribe(),r.onStateChange=null,u)throw u};return f}}var Qke=function(){return[null,0]};function Dke(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,a=n===void 0?function(C){return"ConnectAdvanced("+C+")"}:n,i=r.methodName,o=i===void 0?"connectAdvanced":i,s=r.renderCountProp,l=s===void 0?void 0:s,A=r.shouldHandleStateChanges,c=A===void 0?!0:A,u=r.storeKey,d=u===void 0?"store":u;r.withRef;var f=r.forwardRef,h=f===void 0?!1:f,g=r.context,p=g===void 0?xA:g,E=na(r,Mke),y=p;return function(w){var B=w.displayName||w.name||"Component",M=a(B),I=oe({},E,{getDisplayName:a,methodName:o,renderCountProp:l,shouldHandleStateChanges:c,storeKey:d,displayName:M,wrappedComponentName:B,WrappedComponent:w}),S=E.pure;function R(N){return e(N.dispatch,I)}var b=S?m.useMemo:function(N){return N()};function Q(N){var k=m.useMemo(function(){var it=N.reactReduxForwardedRef,we=na(N,xke);return[N.context,it,we]},[N]),O=k[0],P=k[1],z=k[2],j=m.useMemo(function(){return O&&O.Consumer&&Bke.isContextConsumer(te.createElement(O.Consumer,null))?O:y},[O,y]),V=m.useContext(j),L=!!N.store&&!!N.store.getState&&!!N.store.dispatch;V&&V.store;var K=L?N.store:V.store,J=m.useMemo(function(){return R(K)},[K]),Y=m.useMemo(function(){if(!c)return bke;var it=iY(K,L?null:V.subscription),we=it.notifyNestedSubs.bind(it);return[it,we]},[K,L,V]),W=Y[0],q=Y[1],ee=m.useMemo(function(){return L?V:oe({},V,{subscription:W})},[L,V,W]),ae=m.useReducer(Ske,Ike,Qke),ne=ae[0],ce=ne[0],ue=ae[1];if(ce&&ce.error)throw ce.error;var ge=m.useRef(),Se=m.useRef(z),ye=m.useRef(),pe=m.useRef(!1),Qe=b(function(){return ye.current&&z===Se.current?ye.current:J(K.getState(),z)},[K,ce,z]);RK(Rke,[Se,ge,pe,z,Qe,ye,q]),RK(Tke,[c,K,W,J,Se,ge,pe,ye,q,ue],[K,W,J]);var Ue=m.useMemo(function(){return te.createElement(w,oe({},Qe,{ref:P}))},[P,w,Qe]),tt=m.useMemo(function(){return c?te.createElement(j.Provider,{value:ee},Ue):Ue},[j,Ue,ee]);return tt}var D=S?te.memo(Q):Q;if(D.WrappedComponent=w,D.displayName=Q.displayName=M,h){var F=te.forwardRef(function(k,O){return te.createElement(D,oe({},k,{reactReduxForwardedRef:O}))});return F.displayName=M,F.WrappedComponent=w,IK(F,w)}return IK(D,w)}}function TK(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function sD(e,t){if(TK(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a<r.length;a++)if(!Object.prototype.hasOwnProperty.call(t,r[a])||!TK(e[r[a]],t[r[a]]))return!1;return!0}function Fke(e,t){var r={},n=function(o){var s=e[o];typeof s=="function"&&(r[o]=function(){return t(s.apply(void 0,arguments))})};for(var a in e)n(a);return r}function oY(e){return function(r,n){var a=e(r,n);function i(){return a}return i.dependsOnOwnProps=!1,i}}function QK(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function qde(e,t){return function(n,a){a.displayName;var i=function(s,l){return i.dependsOnOwnProps?i.mapToProps(s,l):i.mapToProps(s)};return i.dependsOnOwnProps=!0,i.mapToProps=function(s,l){i.mapToProps=e,i.dependsOnOwnProps=QK(e);var A=i(s,l);return typeof A=="function"&&(i.mapToProps=A,i.dependsOnOwnProps=QK(A),A=i(s,l)),A},i}}function _ke(e){return typeof e=="function"?qde(e):void 0}function Nke(e){return e?void 0:oY(function(t){return{dispatch:t}})}function kke(e){return e&&typeof e=="object"?oY(function(t){return Fke(e,t)}):void 0}const Pke=[_ke,Nke,kke];function Oke(e){return typeof e=="function"?qde(e):void 0}function zke(e){return e?void 0:oY(function(){return{}})}const jke=[Oke,zke];function Yke(e,t,r){return oe({},r,e,t)}function Lke(e){return function(r,n){n.displayName;var a=n.pure,i=n.areMergedPropsEqual,o=!1,s;return function(A,c,u){var d=e(A,c,u);return o?(!a||!i(d,s))&&(s=d):(o=!0,s=d),s}}}function Uke(e){return typeof e=="function"?Lke(e):void 0}function Hke(e){return e?void 0:function(){return Yke}}const Gke=[Uke,Hke];var Kke=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Vke(e,t,r,n){return function(i,o){return r(e(i,o),t(n,o),o)}}function Jke(e,t,r,n,a){var i=a.areStatesEqual,o=a.areOwnPropsEqual,s=a.areStatePropsEqual,l=!1,A,c,u,d,f;function h(C,w){return A=C,c=w,u=e(A,c),d=t(n,c),f=r(u,d,c),l=!0,f}function g(){return u=e(A,c),t.dependsOnOwnProps&&(d=t(n,c)),f=r(u,d,c),f}function p(){return e.dependsOnOwnProps&&(u=e(A,c)),t.dependsOnOwnProps&&(d=t(n,c)),f=r(u,d,c),f}function E(){var C=e(A,c),w=!s(C,u);return u=C,w&&(f=r(u,d,c)),f}function y(C,w){var B=!o(w,c),M=!i(C,A,w,c);return A=C,c=w,B&&M?g():B?p():M?E():f}return function(w,B){return l?y(w,B):h(w,B)}}function Wke(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,a=t.initMergeProps,i=na(t,Kke),o=r(e,i),s=n(e,i),l=a(e,i),A=i.pure?Jke:Vke;return A(o,s,l,e,i)}var Xke=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function lD(e,t,r){for(var n=t.length-1;n>=0;n--){var a=t[n](e);if(a)return a}return function(i,o){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+o.wrappedComponentName+".")}}function qke(e,t){return e===t}function Zke(e){var t={},r=t.connectHOC,n=r===void 0?Dke:r,a=t.mapStateToPropsFactories,i=a===void 0?jke:a,o=t.mapDispatchToPropsFactories,s=o===void 0?Pke:o,l=t.mergePropsFactories,A=l===void 0?Gke:l,c=t.selectorFactory,u=c===void 0?Wke:c;return function(f,h,g,p){p===void 0&&(p={});var E=p,y=E.pure,C=y===void 0?!0:y,w=E.areStatesEqual,B=w===void 0?qke:w,M=E.areOwnPropsEqual,I=M===void 0?sD:M,S=E.areStatePropsEqual,R=S===void 0?sD:S,b=E.areMergedPropsEqual,Q=b===void 0?sD:b,D=na(E,Xke),F=lD(f,i,"mapStateToProps"),N=lD(h,s,"mapDispatchToProps"),k=lD(g,A,"mergeProps");return n(u,oe({methodName:"connect",getDisplayName:function(P){return"Connect("+P+")"},shouldHandleStateChanges:!!f,initMapStateToProps:F,initMapDispatchToProps:N,initMergeProps:k,pure:C,areStatesEqual:B,areOwnPropsEqual:I,areStatePropsEqual:R,areMergedPropsEqual:Q},D))}}const $ke=Zke();function Zde(){var e=m.useContext(xA);return e}function $de(e){e===void 0&&(e=xA);var t=e===xA?Zde:function(){return m.useContext(e)};return function(){var n=t(),a=n.store;return a}}var e4e=$de();function t4e(e){e===void 0&&(e=xA);var t=e===xA?e4e:$de(e);return function(){var n=t();return n.dispatch}}var Pr=t4e(),r4e=function(t,r){return t===r};function n4e(e,t,r,n){var a=m.useReducer(function(h){return h+1},0),i=a[1],o=m.useMemo(function(){return iY(r,n)},[r,n]),s=m.useRef(),l=m.useRef(),A=m.useRef(),c=m.useRef(),u=r.getState(),d;try{if(e!==l.current||u!==A.current||s.current){var f=e(u);c.current===void 0||!t(f,c.current)?d=f:d=c.current}else d=c.current}catch(h){throw s.current&&(h.message+=`
The error may be correlated with this previous error:
`+s.current.stack+`

`),h}return JI(function(){l.current=e,A.current=u,c.current=d,s.current=void 0}),JI(function(){function h(){try{var g=r.getState();if(g===A.current)return;var p=l.current(g);if(t(p,c.current))return;c.current=p,A.current=g}catch(E){s.current=E}i()}return o.onStateChange=h,o.trySubscribe(),h(),function(){return o.tryUnsubscribe()}},[r,o]),d}function a4e(e){e===void 0&&(e=xA);var t=e===xA?Zde:function(){return m.useContext(e)};return function(n,a){a===void 0&&(a=r4e);var i=t(),o=i.store,s=i.subscription,l=n4e(n,a,o,s);return m.useDebugValue(l),l}}var Ye=a4e();hke(ei.unstable_batchedUpdates);function WI(e,t){return WI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},WI(e,t)}function _a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,WI(e,t)}function ow(e){return e.charAt(0)==="/"}function AD(e,t){for(var r=t,n=r+1,a=e.length;n<a;r+=1,n+=1)e[r]=e[n];e.pop()}function i4e(e,t){t===void 0&&(t="");var r=e&&e.split("/")||[],n=t&&t.split("/")||[],a=e&&ow(e),i=t&&ow(t),o=a||i;if(e&&ow(e)?n=r:r.length&&(n.pop(),n=n.concat(r)),!n.length)return"/";var s;if(n.length){var l=n[n.length-1];s=l==="."||l===".."||l===""}else s=!1;for(var A=0,c=n.length;c>=0;c--){var u=n[c];u==="."?AD(n,c):u===".."?(AD(n,c),A++):A&&(AD(n,c),A--)}if(!o)for(;A--;A)n.unshift("..");o&&n[0]!==""&&(!n[0]||!ow(n[0]))&&n.unshift("");var d=n.join("/");return s&&d.substr(-1)!=="/"&&(d+="/"),d}function DK(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function nI(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(a,i){return nI(a,t[i])});if(typeof e=="object"||typeof t=="object"){var r=DK(e),n=DK(t);return r!==e||n!==t?nI(r,n):Object.keys(Object.assign({},e,t)).every(function(a){return nI(e[a],t[a])})}return!1}var o4e="Invariant failed";function dd(e,t){throw new Error(o4e)}function z0(e){return e.charAt(0)==="/"?e:"/"+e}function FK(e){return e.charAt(0)==="/"?e.substr(1):e}function s4e(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function efe(e,t){return s4e(e,t)?e.substr(t.length):e}function tfe(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function l4e(e){var t=e||"/",r="",n="",a=t.indexOf("#");a!==-1&&(n=t.substr(a),t=t.substr(0,a));var i=t.indexOf("?");return i!==-1&&(r=t.substr(i),t=t.substr(0,i)),{pathname:t,search:r==="?"?"":r,hash:n==="#"?"":n}}function Mo(e){var t=e.pathname,r=e.search,n=e.hash,a=t||"/";return r&&r!=="?"&&(a+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(a+=n.charAt(0)==="#"?n:"#"+n),a}function oo(e,t,r,n){var a;typeof e=="string"?(a=l4e(e),a.state=t):(a=oe({},e),a.pathname===void 0&&(a.pathname=""),a.search?a.search.charAt(0)!=="?"&&(a.search="?"+a.search):a.search="",a.hash?a.hash.charAt(0)!=="#"&&(a.hash="#"+a.hash):a.hash="",t!==void 0&&a.state===void 0&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return r&&(a.key=r),n?a.pathname?a.pathname.charAt(0)!=="/"&&(a.pathname=i4e(a.pathname,n.pathname)):a.pathname=n.pathname:a.pathname||(a.pathname="/"),a}function A4e(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&nI(e.state,t.state)}function sY(){var e=null;function t(o){return e=o,function(){e===o&&(e=null)}}function r(o,s,l,A){if(e!=null){var c=typeof e=="function"?e(o,s):e;typeof c=="string"?typeof l=="function"?l(c,A):A(!0):A(c!==!1)}else A(!0)}var n=[];function a(o){var s=!0;function l(){s&&o.apply(void 0,arguments)}return n.push(l),function(){s=!1,n=n.filter(function(A){return A!==l})}}function i(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n.forEach(function(A){return A.apply(void 0,s)})}return{setPrompt:t,confirmTransitionTo:r,appendListener:a,notifyListeners:i}}var rfe=!!(typeof window<"u"&&window.document&&window.document.createElement);function nfe(e,t){t(window.confirm(e))}function c4e(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function u4e(){return window.navigator.userAgent.indexOf("Trident")===-1}function d4e(){return window.navigator.userAgent.indexOf("Firefox")===-1}function f4e(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var _K="popstate",NK="hashchange";function kK(){try{return window.history.state||{}}catch{return{}}}function afe(e){e===void 0&&(e={}),rfe||dd();var t=window.history,r=c4e(),n=!u4e(),a=e,i=a.forceRefresh,o=i===void 0?!1:i,s=a.getUserConfirmation,l=s===void 0?nfe:s,A=a.keyLength,c=A===void 0?6:A,u=e.basename?tfe(z0(e.basename)):"";function d(j){var V=j||{},L=V.key,K=V.state,J=window.location,Y=J.pathname,W=J.search,q=J.hash,ee=Y+W+q;return u&&(ee=efe(ee,u)),oo(ee,K,L)}function f(){return Math.random().toString(36).substr(2,c)}var h=sY();function g(j){oe(z,j),z.length=t.length,h.notifyListeners(z.location,z.action)}function p(j){f4e(j)||C(d(j.state))}function E(){C(d(kK()))}var y=!1;function C(j){if(y)y=!1,g();else{var V="POP";h.confirmTransitionTo(j,V,l,function(L){L?g({action:V,location:j}):w(j)})}}function w(j){var V=z.location,L=M.indexOf(V.key);L===-1&&(L=0);var K=M.indexOf(j.key);K===-1&&(K=0);var J=L-K;J&&(y=!0,b(J))}var B=d(kK()),M=[B.key];function I(j){return u+Mo(j)}function S(j,V){var L="PUSH",K=oo(j,V,f(),z.location);h.confirmTransitionTo(K,L,l,function(J){if(J){var Y=I(K),W=K.key,q=K.state;if(r)if(t.pushState({key:W,state:q},null,Y),o)window.location.href=Y;else{var ee=M.indexOf(z.location.key),ae=M.slice(0,ee+1);ae.push(K.key),M=ae,g({action:L,location:K})}else window.location.href=Y}})}function R(j,V){var L="REPLACE",K=oo(j,V,f(),z.location);h.confirmTransitionTo(K,L,l,function(J){if(J){var Y=I(K),W=K.key,q=K.state;if(r)if(t.replaceState({key:W,state:q},null,Y),o)window.location.replace(Y);else{var ee=M.indexOf(z.location.key);ee!==-1&&(M[ee]=K.key),g({action:L,location:K})}else window.location.replace(Y)}})}function b(j){t.go(j)}function Q(){b(-1)}function D(){b(1)}var F=0;function N(j){F+=j,F===1&&j===1?(window.addEventListener(_K,p),n&&window.addEventListener(NK,E)):F===0&&(window.removeEventListener(_K,p),n&&window.removeEventListener(NK,E))}var k=!1;function O(j){j===void 0&&(j=!1);var V=h.setPrompt(j);return k||(N(1),k=!0),function(){return k&&(k=!1,N(-1)),V()}}function P(j){var V=h.appendListener(j);return N(1),function(){N(-1),V()}}var z={length:t.length,action:"POP",location:B,createHref:I,push:S,replace:R,go:b,goBack:Q,goForward:D,block:O,listen:P};return z}var PK="hashchange",h4e={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+FK(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:FK,decodePath:z0},slash:{encodePath:z0,decodePath:z0}};function ife(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function Lm(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function g4e(e){window.location.hash=e}function cD(e){window.location.replace(ife(window.location.href)+"#"+e)}function p4e(e){e===void 0&&(e={}),rfe||dd();var t=window.history;d4e();var r=e,n=r.getUserConfirmation,a=n===void 0?nfe:n,i=r.hashType,o=i===void 0?"slash":i,s=e.basename?tfe(z0(e.basename)):"",l=h4e[o],A=l.encodePath,c=l.decodePath;function u(){var V=c(Lm());return s&&(V=efe(V,s)),oo(V)}var d=sY();function f(V){oe(j,V),j.length=t.length,d.notifyListeners(j.location,j.action)}var h=!1,g=null;function p(V,L){return V.pathname===L.pathname&&V.search===L.search&&V.hash===L.hash}function E(){var V=Lm(),L=A(V);if(V!==L)cD(L);else{var K=u(),J=j.location;if(!h&&p(J,K)||g===Mo(K))return;g=null,y(K)}}function y(V){if(h)h=!1,f();else{var L="POP";d.confirmTransitionTo(V,L,a,function(K){K?f({action:L,location:V}):C(V)})}}function C(V){var L=j.location,K=I.lastIndexOf(Mo(L));K===-1&&(K=0);var J=I.lastIndexOf(Mo(V));J===-1&&(J=0);var Y=K-J;Y&&(h=!0,Q(Y))}var w=Lm(),B=A(w);w!==B&&cD(B);var M=u(),I=[Mo(M)];function S(V){var L=document.querySelector("base"),K="";return L&&L.getAttribute("href")&&(K=ife(window.location.href)),K+"#"+A(s+Mo(V))}function R(V,L){var K="PUSH",J=oo(V,void 0,void 0,j.location);d.confirmTransitionTo(J,K,a,function(Y){if(Y){var W=Mo(J),q=A(s+W),ee=Lm()!==q;if(ee){g=W,g4e(q);var ae=I.lastIndexOf(Mo(j.location)),ne=I.slice(0,ae+1);ne.push(W),I=ne,f({action:K,location:J})}else f()}})}function b(V,L){var K="REPLACE",J=oo(V,void 0,void 0,j.location);d.confirmTransitionTo(J,K,a,function(Y){if(Y){var W=Mo(J),q=A(s+W),ee=Lm()!==q;ee&&(g=W,cD(q));var ae=I.indexOf(Mo(j.location));ae!==-1&&(I[ae]=W),f({action:K,location:J})}})}function Q(V){t.go(V)}function D(){Q(-1)}function F(){Q(1)}var N=0;function k(V){N+=V,N===1&&V===1?window.addEventListener(PK,E):N===0&&window.removeEventListener(PK,E)}var O=!1;function P(V){V===void 0&&(V=!1);var L=d.setPrompt(V);return O||(k(1),O=!0),function(){return O&&(O=!1,k(-1)),L()}}function z(V){var L=d.appendListener(V);return k(1),function(){k(-1),L()}}var j={length:t.length,action:"POP",location:M,createHref:S,push:R,replace:b,go:Q,goBack:D,goForward:F,block:P,listen:z};return j}function OK(e,t,r){return Math.min(Math.max(e,t),r)}function v4e(e){e===void 0&&(e={});var t=e,r=t.getUserConfirmation,n=t.initialEntries,a=n===void 0?["/"]:n,i=t.initialIndex,o=i===void 0?0:i,s=t.keyLength,l=s===void 0?6:s,A=sY();function c(S){oe(I,S),I.length=I.entries.length,A.notifyListeners(I.location,I.action)}function u(){return Math.random().toString(36).substr(2,l)}var d=OK(o,0,a.length-1),f=a.map(function(S){return typeof S=="string"?oo(S,void 0,u()):oo(S,void 0,S.key||u())}),h=Mo;function g(S,R){var b="PUSH",Q=oo(S,R,u(),I.location);A.confirmTransitionTo(Q,b,r,function(D){if(D){var F=I.index,N=F+1,k=I.entries.slice(0);k.length>N?k.splice(N,k.length-N,Q):k.push(Q),c({action:b,location:Q,index:N,entries:k})}})}function p(S,R){var b="REPLACE",Q=oo(S,R,u(),I.location);A.confirmTransitionTo(Q,b,r,function(D){D&&(I.entries[I.index]=Q,c({action:b,location:Q}))})}function E(S){var R=OK(I.index+S,0,I.entries.length-1),b="POP",Q=I.entries[R];A.confirmTransitionTo(Q,b,r,function(D){D?c({action:b,location:Q,index:R}):c()})}function y(){E(-1)}function C(){E(1)}function w(S){var R=I.index+S;return R>=0&&R<I.entries.length}function B(S){return S===void 0&&(S=!1),A.setPrompt(S)}function M(S){return A.appendListener(S)}var I={length:f.length,action:"POP",location:f[d],index:d,entries:f,createHref:h,push:g,replace:p,go:E,goBack:y,goForward:C,canGo:w,block:B,listen:M};return I}var zd={exports:{}},uD,zK;function m4e(){return zK||(zK=1,uD=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"}),uD}var jK;function E4e(){if(jK)return zd.exports;jK=1;var e=m4e();zd.exports=p,zd.exports.parse=r,zd.exports.compile=a,zd.exports.tokensToFunction=s,zd.exports.tokensToRegExp=g;var t=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function r(E,y){for(var C=[],w=0,B=0,M="",I=y&&y.delimiter||"/",S;(S=t.exec(E))!=null;){var R=S[0],b=S[1],Q=S.index;if(M+=E.slice(B,Q),B=Q+R.length,b){M+=b[1];continue}var D=E[B],F=S[2],N=S[3],k=S[4],O=S[5],P=S[6],z=S[7];M&&(C.push(M),M="");var j=F!=null&&D!=null&&D!==F,V=P==="+"||P==="*",L=P==="?"||P==="*",K=F||I,J=k||O,Y=F||(typeof C[C.length-1]=="string"?C[C.length-1]:"");C.push({name:N||w++,prefix:F||"",delimiter:K,optional:L,repeat:V,partial:j,asterisk:!!z,pattern:J?A(J):z?".*":n(K,Y)})}return B<E.length&&(M+=E.substr(B)),M&&C.push(M),C}function n(E,y){return!y||y.indexOf(E)>-1?"[^"+l(E)+"]+?":l(y)+"|(?:(?!"+l(y)+")[^"+l(E)+"])+?"}function a(E,y){return s(r(E,y),y)}function i(E){return encodeURI(E).replace(/[\/?#]/g,function(y){return"%"+y.charCodeAt(0).toString(16).toUpperCase()})}function o(E){return encodeURI(E).replace(/[?#]/g,function(y){return"%"+y.charCodeAt(0).toString(16).toUpperCase()})}function s(E,y){for(var C=new Array(E.length),w=0;w<E.length;w++)typeof E[w]=="object"&&(C[w]=new RegExp("^(?:"+E[w].pattern+")$",u(y)));return function(B,M){for(var I="",S=B||{},R=M||{},b=R.pretty?i:encodeURIComponent,Q=0;Q<E.length;Q++){var D=E[Q];if(typeof D=="string"){I+=D;continue}var F=S[D.name],N;if(F==null)if(D.optional){D.partial&&(I+=D.prefix);continue}else throw new TypeError('Expected "'+D.name+'" to be defined');if(e(F)){if(!D.repeat)throw new TypeError('Expected "'+D.name+'" to not repeat, but received `'+JSON.stringify(F)+"`");if(F.length===0){if(D.optional)continue;throw new TypeError('Expected "'+D.name+'" to not be empty')}for(var k=0;k<F.length;k++){if(N=b(F[k]),!C[Q].test(N))throw new TypeError('Expected all "'+D.name+'" to match "'+D.pattern+'", but received `'+JSON.stringify(N)+"`");I+=(k===0?D.prefix:D.delimiter)+N}continue}if(N=D.asterisk?o(F):b(F),!C[Q].test(N))throw new TypeError('Expected "'+D.name+'" to match "'+D.pattern+'", but received "'+N+'"');I+=D.prefix+N}return I}}function l(E){return E.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function A(E){return E.replace(/([=!:$\/()])/g,"\\$1")}function c(E,y){return E.keys=y,E}function u(E){return E&&E.sensitive?"":"i"}function d(E,y){var C=E.source.match(/\((?!\?)/g);if(C)for(var w=0;w<C.length;w++)y.push({name:w,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(E,y)}function f(E,y,C){for(var w=[],B=0;B<E.length;B++)w.push(p(E[B],y,C).source);var M=new RegExp("(?:"+w.join("|")+")",u(C));return c(M,y)}function h(E,y,C){return g(r(E,C),y,C)}function g(E,y,C){e(y)||(C=y||C,y=[]),C=C||{};for(var w=C.strict,B=C.end!==!1,M="",I=0;I<E.length;I++){var S=E[I];if(typeof S=="string")M+=l(S);else{var R=l(S.prefix),b="(?:"+S.pattern+")";y.push(S),S.repeat&&(b+="(?:"+R+b+")*"),S.optional?S.partial?b=R+"("+b+")?":b="(?:"+R+"("+b+"))?":b=R+"("+b+")",M+=b}}var Q=l(C.delimiter||"/"),D=M.slice(-Q.length)===Q;return w||(M=(D?M.slice(0,-Q.length):M)+"(?:"+Q+"(?=$))?"),B?M+="$":M+=w&&D?"":"(?="+Q+"|$)",c(new RegExp("^"+M,u(C)),y)}function p(E,y,C){return e(y)||(C=y||C,y=[]),C=C||{},E instanceof RegExp?d(E,y):e(E)?f(E,y,C):h(E,y,C)}return zd.exports}var y4e=E4e();const ofe=Nr(y4e);Xde();var dD=1073741823,YK=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function C4e(){var e="__global_unique_id__";return YK[e]=(YK[e]||0)+1}function w4e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function B4e(e){var t=[];return{on:function(n){t.push(n)},off:function(n){t=t.filter(function(a){return a!==n})},get:function(){return e},set:function(n,a){e=n,t.forEach(function(i){return i(e,a)})}}}function M4e(e){return Array.isArray(e)?e[0]:e}function x4e(e,t){var r,n,a="__create-react-context-"+C4e()+"__",i=function(s){_a(l,s);function l(){for(var c,u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return c=s.call.apply(s,[this].concat(d))||this,c.emitter=B4e(c.props.value),c}var A=l.prototype;return A.getChildContext=function(){var u;return u={},u[a]=this.emitter,u},A.componentWillReceiveProps=function(u){if(this.props.value!==u.value){var d=this.props.value,f=u.value,h;w4e(d,f)?h=0:(h=typeof t=="function"?t(d,f):dD,h|=0,h!==0&&this.emitter.set(u.value,h))}},A.render=function(){return this.props.children},l}(te.Component);i.childContextTypes=(r={},r[a]=U.object.isRequired,r);var o=function(s){_a(l,s);function l(){for(var c,u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return c=s.call.apply(s,[this].concat(d))||this,c.observedBits=void 0,c.state={value:c.getValue()},c.onUpdate=function(h,g){var p=c.observedBits|0;(p&g)!==0&&c.setState({value:c.getValue()})},c}var A=l.prototype;return A.componentWillReceiveProps=function(u){var d=u.observedBits;this.observedBits=d??dD},A.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var u=this.props.observedBits;this.observedBits=u??dD},A.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},A.getValue=function(){return this.context[a]?this.context[a].get():e},A.render=function(){return M4e(this.props.children)(this.state.value)},l}(te.Component);return o.contextTypes=(n={},n[a]=U.object,n),{Provider:i,Consumer:o}}var I4e=te.createContext||x4e,sfe=function(t){var r=I4e();return r.displayName=t,r},lfe=sfe("Router-History"),qu=sfe("Router"),iC=function(e){_a(t,e),t.computeRootMatch=function(a){return{path:"/",url:"/",params:{},isExact:a==="/"}};function t(n){var a;return a=e.call(this,n)||this,a.state={location:n.history.location},a._isMounted=!1,a._pendingLocation=null,n.staticContext||(a.unlisten=n.history.listen(function(i){a._pendingLocation=i})),a}var r=t.prototype;return r.componentDidMount=function(){var a=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(i){a._isMounted&&a.setState({location:i})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return te.createElement(qu.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},te.createElement(lfe.Provider,{children:this.props.children||null,value:this.props.history}))},t}(te.Component);te.Component;var b4e=function(e){_a(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},r.componentDidUpdate=function(a){this.props.onUpdate&&this.props.onUpdate.call(this,this,a)},r.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},r.render=function(){return null},t}(te.Component),fD={},S4e=1e4,LK=0;function R4e(e){if(fD[e])return fD[e];var t=ofe.compile(e);return LK<S4e&&(fD[e]=t,LK++),t}function UK(e,t){return e===void 0&&(e="/"),t===void 0&&(t={}),e==="/"?e:R4e(e)(t,{pretty:!0})}function Rp(e){var t=e.computedMatch,r=e.to,n=e.push,a=n===void 0?!1:n;return te.createElement(qu.Consumer,null,function(i){i||dd();var o=i.history,s=i.staticContext,l=a?o.push:o.replace,A=oo(t?typeof r=="string"?UK(r,t.params):oe({},r,{pathname:UK(r.pathname,t.params)}):r);return s?(l(A),null):te.createElement(b4e,{onMount:function(){l(A)},onUpdate:function(u,d){var f=oo(d.to);A4e(f,oe({},A,{key:f.key}))||l(A)},to:r})})}var HK={},T4e=1e4,GK=0;function Q4e(e,t){var r=""+t.end+t.strict+t.sensitive,n=HK[r]||(HK[r]={});if(n[e])return n[e];var a=[],i=ofe(e,a,t),o={regexp:i,keys:a};return GK<T4e&&(n[e]=o,GK++),o}function PS(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var r=t,n=r.path,a=r.exact,i=a===void 0?!1:a,o=r.strict,s=o===void 0?!1:o,l=r.sensitive,A=l===void 0?!1:l,c=[].concat(n);return c.reduce(function(u,d){if(!d&&d!=="")return null;if(u)return u;var f=Q4e(d,{end:i,strict:s,sensitive:A}),h=f.regexp,g=f.keys,p=h.exec(e);if(!p)return null;var E=p[0],y=p.slice(1),C=e===E;return i&&!C?null:{path:d,url:d==="/"&&E===""?"/":E,isExact:C,params:g.reduce(function(w,B,M){return w[B.name]=y[M],w},{})}},null)}function D4e(e){return te.Children.count(e)===0}var vp=function(e){_a(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var a=this;return te.createElement(qu.Consumer,null,function(i){i||dd();var o=a.props.location||i.location,s=a.props.computedMatch?a.props.computedMatch:a.props.path?PS(o.pathname,a.props):i.match,l=oe({},i,{location:o,match:s}),A=a.props,c=A.children,u=A.component,d=A.render;return Array.isArray(c)&&D4e(c)&&(c=null),te.createElement(qu.Provider,{value:l},l.match?c?typeof c=="function"?c(l):c:u?te.createElement(u,l):d?d(l):null:typeof c=="function"?c(l):null)})},t}(te.Component);function lY(e){return e.charAt(0)==="/"?e:"/"+e}function F4e(e,t){return e?oe({},t,{pathname:lY(e)+t.pathname}):t}function _4e(e,t){if(!e)return t;var r=lY(e);return t.pathname.indexOf(r)!==0?t:oe({},t,{pathname:t.pathname.substr(r.length)})}function KK(e){return typeof e=="string"?e:Mo(e)}function hD(e){return function(){dd()}}function VK(){}te.Component;var Afe=function(e){_a(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var a=this;return te.createElement(qu.Consumer,null,function(i){i||dd();var o=a.props.location||i.location,s,l;return te.Children.forEach(a.props.children,function(A){if(l==null&&te.isValidElement(A)){s=A;var c=A.props.path||A.props.from;l=c?PS(o.pathname,oe({},A.props,{path:c})):i.match}}),l?te.cloneElement(s,{location:o,computedMatch:l}):null})},t}(te.Component),cfe=te.useContext;function _c(){return cfe(lfe)}function N4e(){return cfe(qu).location}var h0={exports:{}};h0.exports;var JK;function k4e(){return JK||(JK=1,function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,i=2,o=9007199254740991,s="[object Arguments]",l="[object Array]",A="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",h="[object Map]",g="[object Number]",p="[object Object]",E="[object Promise]",y="[object RegExp]",C="[object Set]",w="[object String]",B="[object Symbol]",M="[object WeakMap]",I="[object ArrayBuffer]",S="[object DataView]",R="[object Float32Array]",b="[object Float64Array]",Q="[object Int8Array]",D="[object Int16Array]",F="[object Int32Array]",N="[object Uint8Array]",k="[object Uint8ClampedArray]",O="[object Uint16Array]",P="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,j=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,L={};L[R]=L[b]=L[Q]=L[D]=L[F]=L[N]=L[k]=L[O]=L[P]=!0,L[s]=L[l]=L[I]=L[A]=L[S]=L[c]=L[u]=L[d]=L[h]=L[g]=L[p]=L[y]=L[C]=L[w]=L[M]=!1;var K=typeof Ai=="object"&&Ai&&Ai.Object===Object&&Ai,J=typeof self=="object"&&self&&self.Object===Object&&self,Y=K||J||Function("return this")(),W=t&&!t.nodeType&&t,q=W&&!0&&e&&!e.nodeType&&e,ee=q&&q.exports===W,ae=ee&&K.process,ne=function(){try{return ae&&ae.binding("util")}catch{}}(),ce=ne&&ne.isTypedArray;function ue(Je,Et){for(var vt=-1,Ot=Je?Je.length:0;++vt<Ot;)if(Et(Je[vt],vt,Je))return!0;return!1}function ge(Je,Et){for(var vt=-1,Ot=Array(Je);++vt<Je;)Ot[vt]=Et(vt);return Ot}function Se(Je){return function(Et){return Je(Et)}}function ye(Je,Et){return Je==null?void 0:Je[Et]}function pe(Je){var Et=!1;if(Je!=null&&typeof Je.toString!="function")try{Et=!!(Je+"")}catch{}return Et}function Qe(Je){var Et=-1,vt=Array(Je.size);return Je.forEach(function(Ot,Br){vt[++Et]=[Br,Ot]}),vt}function Ue(Je,Et){return function(vt){return Je(Et(vt))}}function tt(Je){var Et=-1,vt=Array(Je.size);return Je.forEach(function(Ot){vt[++Et]=Ot}),vt}var it=Array.prototype,we=Function.prototype,ve=Object.prototype,Te=Y["__core-js_shared__"],Be=function(){var Je=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return Je?"Symbol(src)_1."+Je:""}(),Ge=we.toString,ht=ve.hasOwnProperty,We=ve.toString,Ke=RegExp("^"+Ge.call(ht).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xe=Y.Symbol,$e=Y.Uint8Array,pt=ve.propertyIsEnumerable,de=it.splice,Fe=Ue(Object.keys,Object),je=Me(Y,"DataView"),et=Me(Y,"Map"),xe=Me(Y,"Promise"),Ne=Me(Y,"Set"),le=Me(Y,"WeakMap"),At=Me(Object,"create"),Bt=It(je),G=It(et),Ee=It(xe),Ie=It(Ne),ie=It(le),re=Xe?Xe.prototype:void 0,he=re?re.valueOf:void 0;function Pe(Je){var Et=-1,vt=Je?Je.length:0;for(this.clear();++Et<vt;){var Ot=Je[Et];this.set(Ot[0],Ot[1])}}function be(){this.__data__=At?At(null):{}}function Ve(Je){return this.has(Je)&&delete this.__data__[Je]}function lt(Je){var Et=this.__data__;if(At){var vt=Et[Je];return vt===n?void 0:vt}return ht.call(Et,Je)?Et[Je]:void 0}function Ze(Je){var Et=this.__data__;return At?Et[Je]!==void 0:ht.call(Et,Je)}function Le(Je,Et){var vt=this.__data__;return vt[Je]=At&&Et===void 0?n:Et,this}Pe.prototype.clear=be,Pe.prototype.delete=Ve,Pe.prototype.get=lt,Pe.prototype.has=Ze,Pe.prototype.set=Le;function rt(Je){var Et=-1,vt=Je?Je.length:0;for(this.clear();++Et<vt;){var Ot=Je[Et];this.set(Ot[0],Ot[1])}}function Qt(){this.__data__=[]}function Dt(Je){var Et=this.__data__,vt=zr(Et,Je);if(vt<0)return!1;var Ot=Et.length-1;return vt==Ot?Et.pop():de.call(Et,vt,1),!0}function ur(Je){var Et=this.__data__,vt=zr(Et,Je);return vt<0?void 0:Et[vt][1]}function br(Je){return zr(this.__data__,Je)>-1}function Er(Je,Et){var vt=this.__data__,Ot=zr(vt,Je);return Ot<0?vt.push([Je,Et]):vt[Ot][1]=Et,this}rt.prototype.clear=Qt,rt.prototype.delete=Dt,rt.prototype.get=ur,rt.prototype.has=br,rt.prototype.set=Er;function hr(Je){var Et=-1,vt=Je?Je.length:0;for(this.clear();++Et<vt;){var Ot=Je[Et];this.set(Ot[0],Ot[1])}}function Wt(){this.__data__={hash:new Pe,map:new(et||rt),string:new Pe}}function $t(Je){return fe(this,Je).delete(Je)}function tr(Je){return fe(this,Je).get(Je)}function ir(Je){return fe(this,Je).has(Je)}function ar(Je,Et){return fe(this,Je).set(Je,Et),this}hr.prototype.clear=Wt,hr.prototype.delete=$t,hr.prototype.get=tr,hr.prototype.has=ir,hr.prototype.set=ar;function rr(Je){var Et=-1,vt=Je?Je.length:0;for(this.__data__=new hr;++Et<vt;)this.add(Je[Et])}function Yt(Je){return this.__data__.set(Je,n),this}function Vt(Je){return this.__data__.has(Je)}rr.prototype.add=rr.prototype.push=Yt,rr.prototype.has=Vt;function Ut(Je){this.__data__=new rt(Je)}function Mt(){this.__data__=new rt}function xt(Je){return this.__data__.delete(Je)}function Ft(Je){return this.__data__.get(Je)}function qt(Je){return this.__data__.has(Je)}function gr(Je,Et){var vt=this.__data__;if(vt instanceof rt){var Ot=vt.__data__;if(!et||Ot.length<r-1)return Ot.push([Je,Et]),this;vt=this.__data__=new hr(Ot)}return vt.set(Je,Et),this}Ut.prototype.clear=Mt,Ut.prototype.delete=xt,Ut.prototype.get=Ft,Ut.prototype.has=qt,Ut.prototype.set=gr;function Hr(Je,Et){var vt=Qr(Je)||nr(Je)?ge(Je.length,String):[],Ot=vt.length,Br=!!Ot;for(var dr in Je)ht.call(Je,dr)&&!(Br&&(dr=="length"||Oe(dr,Ot)))&&vt.push(dr);return vt}function zr(Je,Et){for(var vt=Je.length;vt--;)if(kt(Je[vt][0],Et))return vt;return-1}function an(Je){return We.call(Je)}function qe(Je,Et,vt,Ot,Br){return Je===Et?!0:Je==null||Et==null||!pn(Je)&&!Yr(Et)?Je!==Je&&Et!==Et:ke(Je,Et,qe,vt,Ot,Br)}function ke(Je,Et,vt,Ot,Br,dr){var yn=Qr(Je),kn=Qr(Et),Aa=l,Wr=l;yn||(Aa=Re(Je),Aa=Aa==s?p:Aa),kn||(Wr=Re(Et),Wr=Wr==s?p:Wr);var Ea=Aa==p&&!pe(Je),Fi=Wr==p&&!pe(Et),Ja=Aa==Wr;if(Ja&&!Ea)return dr||(dr=new Ut),yn||Di(Je)?dt(Je,Et,vt,Ot,Br,dr):se(Je,Et,Aa,vt,Ot,Br,dr);if(!(Br&i)){var ba=Ea&&ht.call(Je,"__wrapped__"),gi=Fi&&ht.call(Et,"__wrapped__");if(ba||gi){var Ji=ba?Je.value():Je,Wa=gi?Et.value():Et;return dr||(dr=new Ut),vt(Ji,Wa,Ot,Br,dr)}}return Ja?(dr||(dr=new Ut),Ce(Je,Et,vt,Ot,Br,dr)):!1}function ut(Je){if(!pn(Je)||Ct(Je))return!1;var Et=Zt(Je)||pe(Je)?Ke:j;return Et.test(It(Je))}function gt(Je){return Yr(Je)&&gn(Je.length)&&!!L[We.call(Je)]}function bt(Je){if(!St(Je))return Fe(Je);var Et=[];for(var vt in Object(Je))ht.call(Je,vt)&&vt!="constructor"&&Et.push(vt);return Et}function dt(Je,Et,vt,Ot,Br,dr){var yn=Br&i,kn=Je.length,Aa=Et.length;if(kn!=Aa&&!(yn&&Aa>kn))return!1;var Wr=dr.get(Je);if(Wr&&dr.get(Et))return Wr==Et;var Ea=-1,Fi=!0,Ja=Br&a?new rr:void 0;for(dr.set(Je,Et),dr.set(Et,Je);++Ea<kn;){var ba=Je[Ea],gi=Et[Ea];if(Ot)var Ji=yn?Ot(gi,ba,Ea,Et,Je,dr):Ot(ba,gi,Ea,Je,Et,dr);if(Ji!==void 0){if(Ji)continue;Fi=!1;break}if(Ja){if(!ue(Et,function(Wa,uo){if(!Ja.has(uo)&&(ba===Wa||vt(ba,Wa,Ot,Br,dr)))return Ja.add(uo)})){Fi=!1;break}}else if(!(ba===gi||vt(ba,gi,Ot,Br,dr))){Fi=!1;break}}return dr.delete(Je),dr.delete(Et),Fi}function se(Je,Et,vt,Ot,Br,dr,yn){switch(vt){case S:if(Je.byteLength!=Et.byteLength||Je.byteOffset!=Et.byteOffset)return!1;Je=Je.buffer,Et=Et.buffer;case I:return!(Je.byteLength!=Et.byteLength||!Ot(new $e(Je),new $e(Et)));case A:case c:case g:return kt(+Je,+Et);case u:return Je.name==Et.name&&Je.message==Et.message;case y:case w:return Je==Et+"";case h:var kn=Qe;case C:var Aa=dr&i;if(kn||(kn=tt),Je.size!=Et.size&&!Aa)return!1;var Wr=yn.get(Je);if(Wr)return Wr==Et;dr|=a,yn.set(Je,Et);var Ea=dt(kn(Je),kn(Et),Ot,Br,dr,yn);return yn.delete(Je),Ea;case B:if(he)return he.call(Je)==he.call(Et)}return!1}function Ce(Je,Et,vt,Ot,Br,dr){var yn=Br&i,kn=qn(Je),Aa=kn.length,Wr=qn(Et),Ea=Wr.length;if(Aa!=Ea&&!yn)return!1;for(var Fi=Aa;Fi--;){var Ja=kn[Fi];if(!(yn?Ja in Et:ht.call(Et,Ja)))return!1}var ba=dr.get(Je);if(ba&&dr.get(Et))return ba==Et;var gi=!0;dr.set(Je,Et),dr.set(Et,Je);for(var Ji=yn;++Fi<Aa;){Ja=kn[Fi];var Wa=Je[Ja],uo=Et[Ja];if(Ot)var KA=yn?Ot(uo,Wa,Ja,Et,Je,dr):Ot(Wa,uo,Ja,Je,Et,dr);if(!(KA===void 0?Wa===uo||vt(Wa,uo,Ot,Br,dr):KA)){gi=!1;break}Ji||(Ji=Ja=="constructor")}if(gi&&!Ji){var _i=Je.constructor,Gc=Et.constructor;_i!=Gc&&"constructor"in Je&&"constructor"in Et&&!(typeof _i=="function"&&_i instanceof _i&&typeof Gc=="function"&&Gc instanceof Gc)&&(gi=!1)}return dr.delete(Je),dr.delete(Et),gi}function fe(Je,Et){var vt=Je.__data__;return st(Et)?vt[typeof Et=="string"?"string":"hash"]:vt.map}function Me(Je,Et){var vt=ye(Je,Et);return ut(vt)?vt:void 0}var Re=an;(je&&Re(new je(new ArrayBuffer(1)))!=S||et&&Re(new et)!=h||xe&&Re(xe.resolve())!=E||Ne&&Re(new Ne)!=C||le&&Re(new le)!=M)&&(Re=function(Je){var Et=We.call(Je),vt=Et==p?Je.constructor:void 0,Ot=vt?It(vt):void 0;if(Ot)switch(Ot){case Bt:return S;case G:return h;case Ee:return E;case Ie:return C;case ie:return M}return Et});function Oe(Je,Et){return Et=Et??o,!!Et&&(typeof Je=="number"||V.test(Je))&&Je>-1&&Je%1==0&&Je<Et}function st(Je){var Et=typeof Je;return Et=="string"||Et=="number"||Et=="symbol"||Et=="boolean"?Je!=="__proto__":Je===null}function Ct(Je){return!!Be&&Be in Je}function St(Je){var Et=Je&&Je.constructor,vt=typeof Et=="function"&&Et.prototype||ve;return Je===vt}function It(Je){if(Je!=null){try{return Ge.call(Je)}catch{}try{return Je+""}catch{}}return""}function kt(Je,Et){return Je===Et||Je!==Je&&Et!==Et}function nr(Je){return or(Je)&&ht.call(Je,"callee")&&(!pt.call(Je,"callee")||We.call(Je)==s)}var Qr=Array.isArray;function kr(Je){return Je!=null&&gn(Je.length)&&!Zt(Je)}function or(Je){return Yr(Je)&&kr(Je)}function vr(Je,Et,vt){vt=typeof vt=="function"?vt:void 0;var Ot=vt?vt(Je,Et):void 0;return Ot===void 0?qe(Je,Et,vt):!!Ot}function Zt(Je){var Et=pn(Je)?We.call(Je):"";return Et==d||Et==f}function gn(Je){return typeof Je=="number"&&Je>-1&&Je%1==0&&Je<=o}function pn(Je){var Et=typeof Je;return!!Je&&(Et=="object"||Et=="function")}function Yr(Je){return!!Je&&typeof Je=="object"}var Di=ce?Se(ce):gt;function qn(Je){return kr(Je)?Hr(Je):bt(Je)}e.exports=vr}(h0,h0.exports)),h0.exports}var P4e=k4e();const O4e=Nr(P4e);var ufe="@@router/LOCATION_CHANGE",z4e=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return{type:ufe,payload:{location:t,action:r,isFirstRendering:n}}},dfe="@@router/CALL_HISTORY_METHOD",ffe=function(t){return function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return{type:dfe,payload:{method:t,args:n}}}},j4e=ffe("push"),AY=ffe("replace");function aI(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?aI=function(r){return typeof r}:aI=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},aI(e)}var Y4e=function(t){var r=t.getIn,n=t.toJS,a=function(d){return d!=null&&aI(d)==="object"&&r(d,["location"])&&r(d,["action"])},i=function(d){var f=n(r(d,["router"]));if(!a(f))throw'Could not find router reducer in state tree, it must be mounted under "router"';return f},o=function(d){return n(r(i(d),["location"]))},s=function(d){return n(r(i(d),["action"]))},l=function(d){return n(r(i(d),["location","search"]))},A=function(d){return n(r(i(d),["location","hash"]))},c=function(d){var f=null,h=null;return function(g){var p=o(g)||{},E=p.pathname;if(E===f)return h;f=E;var y=PS(E,d);return(!y||!h||y.url!==h.url||y.isExact!==h.isExact)&&(h=y),h}};return{getLocation:o,getAction:s,getRouter:i,getSearch:l,getHash:A,createMatchSelector:c}};function iI(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iI=function(r){return typeof r}:iI=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},iI(e)}function _O(){return _O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_O.apply(this,arguments)}function L4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U4e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function H4e(e,t,r){return t&&U4e(e.prototype,t),e}function G4e(e){return function(){var t=XI(e),r;if(J4e()){var n=XI(this).constructor;r=Reflect.construct(t,arguments,n)}else r=t.apply(this,arguments);return K4e(this,r)}}function K4e(e,t){return t&&(iI(t)==="object"||typeof t=="function")?t:V4e(e)}function V4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J4e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function XI(e){return XI=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},XI(e)}function W4e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&NO(e,t)}function NO(e,t){return NO=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},NO(e,t)}var X4e=function(t){var r=Y4e(t),n=r.getLocation,a=function(s){W4e(A,s);var l=G4e(A);function A(c){var u;L4e(this,A),u=l.call(this,c);var d=c.store,f=c.history,h=c.onLocationChanged,g=c.stateCompareFunction;u.inTimeTravelling=!1,u.unsubscribe=d.subscribe(function(){var E=!c.noTimeTravelDebugging,y=n(d.getState()),C=y.pathname,w=y.search,B=y.hash,M=y.state,I=f.location,S=I.pathname,R=I.search,b=I.hash,Q=I.state;E&&c.history.action==="PUSH"&&(S!==C||R!==w||b!==B||!O4e(M,Q,g))&&(u.inTimeTravelling=!0,f.push({pathname:C,search:w,hash:B,state:M}))});var p=function(y,C){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;u.inTimeTravelling?u.inTimeTravelling=!1:h(y,C,w)};return u.unlisten=f.listen(p),c.noInitialPop||p(f.location,f.action,!0),u}return H4e(A,[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var u=this.props,d=u.omitRouter,f=u.history,h=u.children;return d?te.createElement(te.Fragment,null,h):te.createElement(iC,{history:f},h)}}]),A}(m.PureComponent);a.propTypes={store:U.shape({getState:U.func.isRequired,subscribe:U.func.isRequired}).isRequired,history:U.shape({action:U.string.isRequired,listen:U.func.isRequired,location:U.object.isRequired,push:U.func.isRequired}).isRequired,basename:U.string,children:U.oneOfType([U.func,U.node]),onLocationChanged:U.func.isRequired,noInitialPop:U.bool,noTimeTravelDebugging:U.bool,stateCompareFunction:U.func,omitRouter:U.bool};var i=function(l){return{onLocationChanged:function(c,u,d){return l(z4e(c,u,d))}}},o=function(l){var A=l.context||xA;if(A==null)throw"Please upgrade to react-redux v6";return te.createElement(A.Consumer,null,function(c){var u=c.store;return te.createElement(a,_O({store:u},l))})};return o.propTypes={context:U.object},$ke(null,i)(o)};function q4e(e,t){return tPe(e)||ePe(e,t)||$4e(e,t)||Z4e()}function Z4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $4e(e,t){if(e){if(typeof e=="string")return WK(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return WK(e,t)}}function WK(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ePe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){a=!0,i=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function tPe(e){if(Array.isArray(e))return e}function XK(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function gD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XK(Object(r),!0).forEach(function(n){hfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XK(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hfe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qK=function(t){if(t&&t.query)return t;var r=t&&t.search;if(typeof r!="string"||r.length===0)return gD({},t,{query:{}});var n=r.substring(1),a=n.split("&"),i=a.reduce(function(o,s){var l=s.split("="),A=q4e(l,2),c=A[0],u=A[1];return gD({},o,hfe({},c,u))},{});return gD({},t,{query:i})},rPe=function(t){var r=t.fromJS,n=t.merge,a=function(o){var s=r({location:qK(o.location),action:o.action});return function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=A.type,u=A.payload;if(c===ufe){var d=u.location,f=u.action,h=u.isFirstRendering;return h?l:n(l,{location:r(qK(d)),action:f})}return l}};return a},nPe=function(t,r){if(!t)return t;var n=r.length;if(n){for(var a=t,i=0;i<n&&a;++i)a=a[r[i]];return a}};function ZK(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function aPe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZK(Object(r),!0).forEach(function(n){iPe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZK(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iPe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gfe={fromJS:function(t){return t},getIn:nPe,merge:function(t,r){return aPe({},t,{},r)},toJS:function(t){return t}};function oPe(e){return cPe(e)||APe(e)||lPe(e)||sPe()}function sPe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lPe(e,t){if(e){if(typeof e=="string")return kO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kO(e,t)}}function APe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function cPe(e){if(Array.isArray(e))return kO(e)}function kO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var uPe=function(t){return function(r){return function(n){return function(a){if(a.type!==dfe)return n(a);var i=a.payload,o=i.method,s=i.args;t[o].apply(t,oPe(s))}}}},dPe=X4e(gfe),fPe=rPe(gfe);function hPe(e){var t,r=e.Symbol;return typeof r=="function"?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}var Xg;typeof self<"u"?Xg=self:typeof window<"u"?Xg=window:typeof global<"u"?Xg=global:typeof module<"u"?Xg=module:Xg=Function("return this")();var $K=hPe(Xg),pD=function(){return Math.random().toString(36).substring(7).split("").join(".")},j0={INIT:"@@redux/INIT"+pD(),REPLACE:"@@redux/REPLACE"+pD(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pD()}};function gPe(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function pfe(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error("Expected the enhancer to be a function.");return r(pfe)(e,t)}if(typeof e!="function")throw new Error("Expected the reducer to be a function.");var a=e,i=t,o=[],s=o,l=!1;function A(){s===o&&(s=o.slice())}function c(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function u(g){if(typeof g!="function")throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var p=!0;return A(),s.push(g),function(){if(p){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");p=!1,A();var y=s.indexOf(g);s.splice(y,1),o=null}}}function d(g){if(!gPe(g))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof g.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,i=a(i,g)}finally{l=!1}for(var p=o=s,E=0;E<p.length;E++){var y=p[E];y()}return g}function f(g){if(typeof g!="function")throw new Error("Expected the nextReducer to be a function.");a=g,d({type:j0.REPLACE})}function h(){var g,p=u;return g={subscribe:function(y){if(typeof y!="object"||y===null)throw new TypeError("Expected the observer to be an object.");function C(){y.next&&y.next(c())}C();var w=p(C);return{unsubscribe:w}}},g[$K]=function(){return this},g}return d({type:j0.INIT}),n={dispatch:d,subscribe:u,getState:c,replaceReducer:f},n[$K]=h,n}function pPe(e,t){var r=t&&t.type,n=r&&'action "'+String(r)+'"'||"an action";return"Given "+n+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function vPe(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:j0.INIT});if(typeof n>"u")throw new Error('Reducer "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:j0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+j0.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function cY(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),o;try{vPe(r)}catch(s){o=s}return function(l,A){if(l===void 0&&(l={}),o)throw o;for(var c=!1,u={},d=0;d<i.length;d++){var f=i[d],h=r[f],g=l[f],p=h(g,A);if(typeof p>"u"){var E=pPe(f,A);throw new Error(E)}u[f]=p,c=c||p!==g}return c=c||i.length!==Object.keys(l).length,c?u:l}}function mPe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e9(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r}function EPe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e9(r,!0).forEach(function(n){mPe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e9(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vfe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function yPe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map(function(l){return l(o)});return i=vfe.apply(void 0,s)(a.dispatch),EPe({},a,{dispatch:i})}}}function mfe(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(o){return function(s){return typeof s=="function"?s(a,i,e):o(s)}}};return t}var Efe=mfe();Efe.withExtraArgument=mfe;function sw(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vD={exports:{}};/*!
    localForage -- Offline Storage, Improved
    Version 1.10.0
    https://localforage.github.io/localForage
    (c) 2013-2017 Mozilla, Apache License 2.0
*/var t9;function CPe(){return t9||(t9=1,function(e,t){(function(r){e.exports=r()})(function(){return function r(n,a,i){function o(A,c){if(!a[A]){if(!n[A]){var u=typeof sw=="function"&&sw;if(!c&&u)return u(A,!0);if(s)return s(A,!0);var d=new Error("Cannot find module '"+A+"'");throw d.code="MODULE_NOT_FOUND",d}var f=a[A]={exports:{}};n[A][0].call(f.exports,function(h){var g=n[A][1][h];return o(g||h)},f,f.exports,r,n,a,i)}return a[A].exports}for(var s=typeof sw=="function"&&sw,l=0;l<i.length;l++)o(i[l]);return o}({1:[function(r,n,a){(function(i){var o=i.MutationObserver||i.WebKitMutationObserver,s;if(o){var l=0,A=new o(h),c=i.document.createTextNode("");A.observe(c,{characterData:!0}),s=function(){c.data=l=++l%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var u=new i.MessageChannel;u.port1.onmessage=h,s=function(){u.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?s=function(){var p=i.document.createElement("script");p.onreadystatechange=function(){h(),p.onreadystatechange=null,p.parentNode.removeChild(p),p=null},i.document.documentElement.appendChild(p)}:s=function(){setTimeout(h,0)};var d,f=[];function h(){d=!0;for(var p,E,y=f.length;y;){for(E=f,f=[],p=-1;++p<y;)E[p]();y=f.length}d=!1}n.exports=g;function g(p){f.push(p)===1&&!d&&s()}}).call(this,typeof Ai<"u"?Ai:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(r,n,a){var i=r(1);function o(){}var s={},l=["REJECTED"],A=["FULFILLED"],c=["PENDING"];n.exports=u;function u(B){if(typeof B!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,B!==o&&g(this,B)}u.prototype.catch=function(B){return this.then(null,B)},u.prototype.then=function(B,M){if(typeof B!="function"&&this.state===A||typeof M!="function"&&this.state===l)return this;var I=new this.constructor(o);if(this.state!==c){var S=this.state===A?B:M;f(I,S,this.outcome)}else this.queue.push(new d(I,B,M));return I};function d(B,M,I){this.promise=B,typeof M=="function"&&(this.onFulfilled=M,this.callFulfilled=this.otherCallFulfilled),typeof I=="function"&&(this.onRejected=I,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(B){s.resolve(this.promise,B)},d.prototype.otherCallFulfilled=function(B){f(this.promise,this.onFulfilled,B)},d.prototype.callRejected=function(B){s.reject(this.promise,B)},d.prototype.otherCallRejected=function(B){f(this.promise,this.onRejected,B)};function f(B,M,I){i(function(){var S;try{S=M(I)}catch(R){return s.reject(B,R)}S===B?s.reject(B,new TypeError("Cannot resolve promise with itself")):s.resolve(B,S)})}s.resolve=function(B,M){var I=p(h,M);if(I.status==="error")return s.reject(B,I.value);var S=I.value;if(S)g(B,S);else{B.state=A,B.outcome=M;for(var R=-1,b=B.queue.length;++R<b;)B.queue[R].callFulfilled(M)}return B},s.reject=function(B,M){B.state=l,B.outcome=M;for(var I=-1,S=B.queue.length;++I<S;)B.queue[I].callRejected(M);return B};function h(B){var M=B&&B.then;if(B&&(typeof B=="object"||typeof B=="function")&&typeof M=="function")return function(){M.apply(B,arguments)}}function g(B,M){var I=!1;function S(D){I||(I=!0,s.reject(B,D))}function R(D){I||(I=!0,s.resolve(B,D))}function b(){M(R,S)}var Q=p(b);Q.status==="error"&&S(Q.value)}function p(B,M){var I={};try{I.value=B(M),I.status="success"}catch(S){I.status="error",I.value=S}return I}u.resolve=E;function E(B){return B instanceof this?B:s.resolve(new this(o),B)}u.reject=y;function y(B){var M=new this(o);return s.reject(M,B)}u.all=C;function C(B){var M=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var I=B.length,S=!1;if(!I)return this.resolve([]);for(var R=new Array(I),b=0,Q=-1,D=new this(o);++Q<I;)F(B[Q],Q);return D;function F(N,k){M.resolve(N).then(O,function(P){S||(S=!0,s.reject(D,P))});function O(P){R[k]=P,++b===I&&!S&&(S=!0,s.resolve(D,R))}}}u.race=w;function w(B){var M=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var I=B.length,S=!1;if(!I)return this.resolve([]);for(var R=-1,b=new this(o);++R<I;)Q(B[R]);return b;function Q(D){M.resolve(D).then(function(F){S||(S=!0,s.resolve(b,F))},function(F){S||(S=!0,s.reject(b,F))})}}},{1:1}],3:[function(r,n,a){(function(i){typeof i.Promise!="function"&&(i.Promise=r(2))}).call(this,typeof Ai<"u"?Ai:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(r,n,a){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se};function o(se,Ce){if(!(se instanceof Ce))throw new TypeError("Cannot call a class as a function")}function s(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=s();function A(){try{if(!l||!l.open)return!1;var se=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),Ce=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!se||Ce)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function c(se,Ce){se=se||[],Ce=Ce||{};try{return new Blob(se,Ce)}catch(Oe){if(Oe.name!=="TypeError")throw Oe;for(var fe=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,Me=new fe,Re=0;Re<se.length;Re+=1)Me.append(se[Re]);return Me.getBlob(Ce.type)}}typeof Promise>"u"&&r(3);var u=Promise;function d(se,Ce){Ce&&se.then(function(fe){Ce(null,fe)},function(fe){Ce(fe)})}function f(se,Ce,fe){typeof Ce=="function"&&se.then(Ce),typeof fe=="function"&&se.catch(fe)}function h(se){return typeof se!="string"&&(console.warn(se+" used as a key, but it is not a string."),se=String(se)),se}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var p="local-forage-detect-blob-support",E=void 0,y={},C=Object.prototype.toString,w="readonly",B="readwrite";function M(se){for(var Ce=se.length,fe=new ArrayBuffer(Ce),Me=new Uint8Array(fe),Re=0;Re<Ce;Re++)Me[Re]=se.charCodeAt(Re);return fe}function I(se){return new u(function(Ce){var fe=se.transaction(p,B),Me=c([""]);fe.objectStore(p).put(Me,"key"),fe.onabort=function(Re){Re.preventDefault(),Re.stopPropagation(),Ce(!1)},fe.oncomplete=function(){var Re=navigator.userAgent.match(/Chrome\/(\d+)/),Oe=navigator.userAgent.match(/Edge\//);Ce(Oe||!Re||parseInt(Re[1],10)>=43)}}).catch(function(){return!1})}function S(se){return typeof E=="boolean"?u.resolve(E):I(se).then(function(Ce){return E=Ce,E})}function R(se){var Ce=y[se.name],fe={};fe.promise=new u(function(Me,Re){fe.resolve=Me,fe.reject=Re}),Ce.deferredOperations.push(fe),Ce.dbReady?Ce.dbReady=Ce.dbReady.then(function(){return fe.promise}):Ce.dbReady=fe.promise}function b(se){var Ce=y[se.name],fe=Ce.deferredOperations.pop();if(fe)return fe.resolve(),fe.promise}function Q(se,Ce){var fe=y[se.name],Me=fe.deferredOperations.pop();if(Me)return Me.reject(Ce),Me.promise}function D(se,Ce){return new u(function(fe,Me){if(y[se.name]=y[se.name]||K(),se.db)if(Ce)R(se),se.db.close();else return fe(se.db);var Re=[se.name];Ce&&Re.push(se.version);var Oe=l.open.apply(l,Re);Ce&&(Oe.onupgradeneeded=function(st){var Ct=Oe.result;try{Ct.createObjectStore(se.storeName),st.oldVersion<=1&&Ct.createObjectStore(p)}catch(St){if(St.name==="ConstraintError")console.warn('The database "'+se.name+'" has been upgraded from version '+st.oldVersion+" to version "+st.newVersion+', but the storage "'+se.storeName+'" already exists.');else throw St}}),Oe.onerror=function(st){st.preventDefault(),Me(Oe.error)},Oe.onsuccess=function(){var st=Oe.result;st.onversionchange=function(Ct){Ct.target.close()},fe(st),b(se)}})}function F(se){return D(se,!1)}function N(se){return D(se,!0)}function k(se,Ce){if(!se.db)return!0;var fe=!se.db.objectStoreNames.contains(se.storeName),Me=se.version<se.db.version,Re=se.version>se.db.version;if(Me&&(se.version!==Ce&&console.warn('The database "'+se.name+`" can't be downgraded from version `+se.db.version+" to version "+se.version+"."),se.version=se.db.version),Re||fe){if(fe){var Oe=se.db.version+1;Oe>se.version&&(se.version=Oe)}return!0}return!1}function O(se){return new u(function(Ce,fe){var Me=new FileReader;Me.onerror=fe,Me.onloadend=function(Re){var Oe=btoa(Re.target.result||"");Ce({__local_forage_encoded_blob:!0,data:Oe,type:se.type})},Me.readAsBinaryString(se)})}function P(se){var Ce=M(atob(se.data));return c([Ce],{type:se.type})}function z(se){return se&&se.__local_forage_encoded_blob}function j(se){var Ce=this,fe=Ce._initReady().then(function(){var Me=y[Ce._dbInfo.name];if(Me&&Me.dbReady)return Me.dbReady});return f(fe,se,se),fe}function V(se){R(se);for(var Ce=y[se.name],fe=Ce.forages,Me=0;Me<fe.length;Me++){var Re=fe[Me];Re._dbInfo.db&&(Re._dbInfo.db.close(),Re._dbInfo.db=null)}return se.db=null,F(se).then(function(Oe){return se.db=Oe,k(se)?N(se):Oe}).then(function(Oe){se.db=Ce.db=Oe;for(var st=0;st<fe.length;st++)fe[st]._dbInfo.db=Oe}).catch(function(Oe){throw Q(se,Oe),Oe})}function L(se,Ce,fe,Me){Me===void 0&&(Me=1);try{var Re=se.db.transaction(se.storeName,Ce);fe(null,Re)}catch(Oe){if(Me>0&&(!se.db||Oe.name==="InvalidStateError"||Oe.name==="NotFoundError"))return u.resolve().then(function(){if(!se.db||Oe.name==="NotFoundError"&&!se.db.objectStoreNames.contains(se.storeName)&&se.version<=se.db.version)return se.db&&(se.version=se.db.version+1),N(se)}).then(function(){return V(se).then(function(){L(se,Ce,fe,Me-1)})}).catch(fe);fe(Oe)}}function K(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function J(se){var Ce=this,fe={db:null};if(se)for(var Me in se)fe[Me]=se[Me];var Re=y[fe.name];Re||(Re=K(),y[fe.name]=Re),Re.forages.push(Ce),Ce._initReady||(Ce._initReady=Ce.ready,Ce.ready=j);var Oe=[];function st(){return u.resolve()}for(var Ct=0;Ct<Re.forages.length;Ct++){var St=Re.forages[Ct];St!==Ce&&Oe.push(St._initReady().catch(st))}var It=Re.forages.slice(0);return u.all(Oe).then(function(){return fe.db=Re.db,F(fe)}).then(function(kt){return fe.db=kt,k(fe,Ce._defaultConfig.version)?N(fe):kt}).then(function(kt){fe.db=Re.db=kt,Ce._dbInfo=fe;for(var nr=0;nr<It.length;nr++){var Qr=It[nr];Qr!==Ce&&(Qr._dbInfo.db=fe.db,Qr._dbInfo.version=fe.version)}})}function Y(se,Ce){var fe=this;se=h(se);var Me=new u(function(Re,Oe){fe.ready().then(function(){L(fe._dbInfo,w,function(st,Ct){if(st)return Oe(st);try{var St=Ct.objectStore(fe._dbInfo.storeName),It=St.get(se);It.onsuccess=function(){var kt=It.result;kt===void 0&&(kt=null),z(kt)&&(kt=P(kt)),Re(kt)},It.onerror=function(){Oe(It.error)}}catch(kt){Oe(kt)}})}).catch(Oe)});return d(Me,Ce),Me}function W(se,Ce){var fe=this,Me=new u(function(Re,Oe){fe.ready().then(function(){L(fe._dbInfo,w,function(st,Ct){if(st)return Oe(st);try{var St=Ct.objectStore(fe._dbInfo.storeName),It=St.openCursor(),kt=1;It.onsuccess=function(){var nr=It.result;if(nr){var Qr=nr.value;z(Qr)&&(Qr=P(Qr));var kr=se(Qr,nr.key,kt++);kr!==void 0?Re(kr):nr.continue()}else Re()},It.onerror=function(){Oe(It.error)}}catch(nr){Oe(nr)}})}).catch(Oe)});return d(Me,Ce),Me}function q(se,Ce,fe){var Me=this;se=h(se);var Re=new u(function(Oe,st){var Ct;Me.ready().then(function(){return Ct=Me._dbInfo,C.call(Ce)==="[object Blob]"?S(Ct.db).then(function(St){return St?Ce:O(Ce)}):Ce}).then(function(St){L(Me._dbInfo,B,function(It,kt){if(It)return st(It);try{var nr=kt.objectStore(Me._dbInfo.storeName);St===null&&(St=void 0);var Qr=nr.put(St,se);kt.oncomplete=function(){St===void 0&&(St=null),Oe(St)},kt.onabort=kt.onerror=function(){var kr=Qr.error?Qr.error:Qr.transaction.error;st(kr)}}catch(kr){st(kr)}})}).catch(st)});return d(Re,fe),Re}function ee(se,Ce){var fe=this;se=h(se);var Me=new u(function(Re,Oe){fe.ready().then(function(){L(fe._dbInfo,B,function(st,Ct){if(st)return Oe(st);try{var St=Ct.objectStore(fe._dbInfo.storeName),It=St.delete(se);Ct.oncomplete=function(){Re()},Ct.onerror=function(){Oe(It.error)},Ct.onabort=function(){var kt=It.error?It.error:It.transaction.error;Oe(kt)}}catch(kt){Oe(kt)}})}).catch(Oe)});return d(Me,Ce),Me}function ae(se){var Ce=this,fe=new u(function(Me,Re){Ce.ready().then(function(){L(Ce._dbInfo,B,function(Oe,st){if(Oe)return Re(Oe);try{var Ct=st.objectStore(Ce._dbInfo.storeName),St=Ct.clear();st.oncomplete=function(){Me()},st.onabort=st.onerror=function(){var It=St.error?St.error:St.transaction.error;Re(It)}}catch(It){Re(It)}})}).catch(Re)});return d(fe,se),fe}function ne(se){var Ce=this,fe=new u(function(Me,Re){Ce.ready().then(function(){L(Ce._dbInfo,w,function(Oe,st){if(Oe)return Re(Oe);try{var Ct=st.objectStore(Ce._dbInfo.storeName),St=Ct.count();St.onsuccess=function(){Me(St.result)},St.onerror=function(){Re(St.error)}}catch(It){Re(It)}})}).catch(Re)});return d(fe,se),fe}function ce(se,Ce){var fe=this,Me=new u(function(Re,Oe){if(se<0){Re(null);return}fe.ready().then(function(){L(fe._dbInfo,w,function(st,Ct){if(st)return Oe(st);try{var St=Ct.objectStore(fe._dbInfo.storeName),It=!1,kt=St.openKeyCursor();kt.onsuccess=function(){var nr=kt.result;if(!nr){Re(null);return}se===0||It?Re(nr.key):(It=!0,nr.advance(se))},kt.onerror=function(){Oe(kt.error)}}catch(nr){Oe(nr)}})}).catch(Oe)});return d(Me,Ce),Me}function ue(se){var Ce=this,fe=new u(function(Me,Re){Ce.ready().then(function(){L(Ce._dbInfo,w,function(Oe,st){if(Oe)return Re(Oe);try{var Ct=st.objectStore(Ce._dbInfo.storeName),St=Ct.openKeyCursor(),It=[];St.onsuccess=function(){var kt=St.result;if(!kt){Me(It);return}It.push(kt.key),kt.continue()},St.onerror=function(){Re(St.error)}}catch(kt){Re(kt)}})}).catch(Re)});return d(fe,se),fe}function ge(se,Ce){Ce=g.apply(this,arguments);var fe=this.config();se=typeof se!="function"&&se||{},se.name||(se.name=se.name||fe.name,se.storeName=se.storeName||fe.storeName);var Me=this,Re;if(!se.name)Re=u.reject("Invalid arguments");else{var Oe=se.name===fe.name&&Me._dbInfo.db,st=Oe?u.resolve(Me._dbInfo.db):F(se).then(function(Ct){var St=y[se.name],It=St.forages;St.db=Ct;for(var kt=0;kt<It.length;kt++)It[kt]._dbInfo.db=Ct;return Ct});se.storeName?Re=st.then(function(Ct){if(Ct.objectStoreNames.contains(se.storeName)){var St=Ct.version+1;R(se);var It=y[se.name],kt=It.forages;Ct.close();for(var nr=0;nr<kt.length;nr++){var Qr=kt[nr];Qr._dbInfo.db=null,Qr._dbInfo.version=St}var kr=new u(function(or,vr){var Zt=l.open(se.name,St);Zt.onerror=function(gn){var pn=Zt.result;pn.close(),vr(gn)},Zt.onupgradeneeded=function(){var gn=Zt.result;gn.deleteObjectStore(se.storeName)},Zt.onsuccess=function(){var gn=Zt.result;gn.close(),or(gn)}});return kr.then(function(or){It.db=or;for(var vr=0;vr<kt.length;vr++){var Zt=kt[vr];Zt._dbInfo.db=or,b(Zt._dbInfo)}}).catch(function(or){throw(Q(se,or)||u.resolve()).catch(function(){}),or})}}):Re=st.then(function(Ct){R(se);var St=y[se.name],It=St.forages;Ct.close();for(var kt=0;kt<It.length;kt++){var nr=It[kt];nr._dbInfo.db=null}var Qr=new u(function(kr,or){var vr=l.deleteDatabase(se.name);vr.onerror=function(){var Zt=vr.result;Zt&&Zt.close(),or(vr.error)},vr.onblocked=function(){console.warn('dropInstance blocked for database "'+se.name+'" until all open connections are closed')},vr.onsuccess=function(){var Zt=vr.result;Zt&&Zt.close(),kr(Zt)}});return Qr.then(function(kr){St.db=kr;for(var or=0;or<It.length;or++){var vr=It[or];b(vr._dbInfo)}}).catch(function(kr){throw(Q(se,kr)||u.resolve()).catch(function(){}),kr})})}return d(Re,Ce),Re}var Se={_driver:"asyncStorage",_initStorage:J,_support:A(),iterate:W,getItem:Y,setItem:q,removeItem:ee,clear:ae,length:ne,key:ce,keys:ue,dropInstance:ge};function ye(){return typeof openDatabase=="function"}var pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qe="~~local_forage_type~",Ue=/^~~local_forage_type~([^~]+)~/,tt="__lfsc__:",it=tt.length,we="arbf",ve="blob",Te="si08",Be="ui08",Ge="uic8",ht="si16",We="si32",Ke="ur16",Xe="ui32",$e="fl32",pt="fl64",de=it+we.length,Fe=Object.prototype.toString;function je(se){var Ce=se.length*.75,fe=se.length,Me,Re=0,Oe,st,Ct,St;se[se.length-1]==="="&&(Ce--,se[se.length-2]==="="&&Ce--);var It=new ArrayBuffer(Ce),kt=new Uint8Array(It);for(Me=0;Me<fe;Me+=4)Oe=pe.indexOf(se[Me]),st=pe.indexOf(se[Me+1]),Ct=pe.indexOf(se[Me+2]),St=pe.indexOf(se[Me+3]),kt[Re++]=Oe<<2|st>>4,kt[Re++]=(st&15)<<4|Ct>>2,kt[Re++]=(Ct&3)<<6|St&63;return It}function et(se){var Ce=new Uint8Array(se),fe="",Me;for(Me=0;Me<Ce.length;Me+=3)fe+=pe[Ce[Me]>>2],fe+=pe[(Ce[Me]&3)<<4|Ce[Me+1]>>4],fe+=pe[(Ce[Me+1]&15)<<2|Ce[Me+2]>>6],fe+=pe[Ce[Me+2]&63];return Ce.length%3===2?fe=fe.substring(0,fe.length-1)+"=":Ce.length%3===1&&(fe=fe.substring(0,fe.length-2)+"=="),fe}function xe(se,Ce){var fe="";if(se&&(fe=Fe.call(se)),se&&(fe==="[object ArrayBuffer]"||se.buffer&&Fe.call(se.buffer)==="[object ArrayBuffer]")){var Me,Re=tt;se instanceof ArrayBuffer?(Me=se,Re+=we):(Me=se.buffer,fe==="[object Int8Array]"?Re+=Te:fe==="[object Uint8Array]"?Re+=Be:fe==="[object Uint8ClampedArray]"?Re+=Ge:fe==="[object Int16Array]"?Re+=ht:fe==="[object Uint16Array]"?Re+=Ke:fe==="[object Int32Array]"?Re+=We:fe==="[object Uint32Array]"?Re+=Xe:fe==="[object Float32Array]"?Re+=$e:fe==="[object Float64Array]"?Re+=pt:Ce(new Error("Failed to get type for BinaryArray"))),Ce(Re+et(Me))}else if(fe==="[object Blob]"){var Oe=new FileReader;Oe.onload=function(){var st=Qe+se.type+"~"+et(this.result);Ce(tt+ve+st)},Oe.readAsArrayBuffer(se)}else try{Ce(JSON.stringify(se))}catch(st){console.error("Couldn't convert value into a JSON string: ",se),Ce(null,st)}}function Ne(se){if(se.substring(0,it)!==tt)return JSON.parse(se);var Ce=se.substring(de),fe=se.substring(it,de),Me;if(fe===ve&&Ue.test(Ce)){var Re=Ce.match(Ue);Me=Re[1],Ce=Ce.substring(Re[0].length)}var Oe=je(Ce);switch(fe){case we:return Oe;case ve:return c([Oe],{type:Me});case Te:return new Int8Array(Oe);case Be:return new Uint8Array(Oe);case Ge:return new Uint8ClampedArray(Oe);case ht:return new Int16Array(Oe);case Ke:return new Uint16Array(Oe);case We:return new Int32Array(Oe);case Xe:return new Uint32Array(Oe);case $e:return new Float32Array(Oe);case pt:return new Float64Array(Oe);default:throw new Error("Unkown type: "+fe)}}var le={serialize:xe,deserialize:Ne,stringToBuffer:je,bufferToString:et};function At(se,Ce,fe,Me){se.executeSql("CREATE TABLE IF NOT EXISTS "+Ce.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],fe,Me)}function Bt(se){var Ce=this,fe={db:null};if(se)for(var Me in se)fe[Me]=typeof se[Me]!="string"?se[Me].toString():se[Me];var Re=new u(function(Oe,st){try{fe.db=openDatabase(fe.name,String(fe.version),fe.description,fe.size)}catch(Ct){return st(Ct)}fe.db.transaction(function(Ct){At(Ct,fe,function(){Ce._dbInfo=fe,Oe()},function(St,It){st(It)})},st)});return fe.serializer=le,Re}function G(se,Ce,fe,Me,Re,Oe){se.executeSql(fe,Me,Re,function(st,Ct){Ct.code===Ct.SYNTAX_ERR?st.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Ce.storeName],function(St,It){It.rows.length?Oe(St,Ct):At(St,Ce,function(){St.executeSql(fe,Me,Re,Oe)},Oe)},Oe):Oe(st,Ct)},Oe)}function Ee(se,Ce){var fe=this;se=h(se);var Me=new u(function(Re,Oe){fe.ready().then(function(){var st=fe._dbInfo;st.db.transaction(function(Ct){G(Ct,st,"SELECT * FROM "+st.storeName+" WHERE key = ? LIMIT 1",[se],function(St,It){var kt=It.rows.length?It.rows.item(0).value:null;kt&&(kt=st.serializer.deserialize(kt)),Re(kt)},function(St,It){Oe(It)})})}).catch(Oe)});return d(Me,Ce),Me}function Ie(se,Ce){var fe=this,Me=new u(function(Re,Oe){fe.ready().then(function(){var st=fe._dbInfo;st.db.transaction(function(Ct){G(Ct,st,"SELECT * FROM "+st.storeName,[],function(St,It){for(var kt=It.rows,nr=kt.length,Qr=0;Qr<nr;Qr++){var kr=kt.item(Qr),or=kr.value;if(or&&(or=st.serializer.deserialize(or)),or=se(or,kr.key,Qr+1),or!==void 0){Re(or);return}}Re()},function(St,It){Oe(It)})})}).catch(Oe)});return d(Me,Ce),Me}function ie(se,Ce,fe,Me){var Re=this;se=h(se);var Oe=new u(function(st,Ct){Re.ready().then(function(){Ce===void 0&&(Ce=null);var St=Ce,It=Re._dbInfo;It.serializer.serialize(Ce,function(kt,nr){nr?Ct(nr):It.db.transaction(function(Qr){G(Qr,It,"INSERT OR REPLACE INTO "+It.storeName+" (key, value) VALUES (?, ?)",[se,kt],function(){st(St)},function(kr,or){Ct(or)})},function(Qr){if(Qr.code===Qr.QUOTA_ERR){if(Me>0){st(ie.apply(Re,[se,St,fe,Me-1]));return}Ct(Qr)}})})}).catch(Ct)});return d(Oe,fe),Oe}function re(se,Ce,fe){return ie.apply(this,[se,Ce,fe,1])}function he(se,Ce){var fe=this;se=h(se);var Me=new u(function(Re,Oe){fe.ready().then(function(){var st=fe._dbInfo;st.db.transaction(function(Ct){G(Ct,st,"DELETE FROM "+st.storeName+" WHERE key = ?",[se],function(){Re()},function(St,It){Oe(It)})})}).catch(Oe)});return d(Me,Ce),Me}function Pe(se){var Ce=this,fe=new u(function(Me,Re){Ce.ready().then(function(){var Oe=Ce._dbInfo;Oe.db.transaction(function(st){G(st,Oe,"DELETE FROM "+Oe.storeName,[],function(){Me()},function(Ct,St){Re(St)})})}).catch(Re)});return d(fe,se),fe}function be(se){var Ce=this,fe=new u(function(Me,Re){Ce.ready().then(function(){var Oe=Ce._dbInfo;Oe.db.transaction(function(st){G(st,Oe,"SELECT COUNT(key) as c FROM "+Oe.storeName,[],function(Ct,St){var It=St.rows.item(0).c;Me(It)},function(Ct,St){Re(St)})})}).catch(Re)});return d(fe,se),fe}function Ve(se,Ce){var fe=this,Me=new u(function(Re,Oe){fe.ready().then(function(){var st=fe._dbInfo;st.db.transaction(function(Ct){G(Ct,st,"SELECT key FROM "+st.storeName+" WHERE id = ? LIMIT 1",[se+1],function(St,It){var kt=It.rows.length?It.rows.item(0).key:null;Re(kt)},function(St,It){Oe(It)})})}).catch(Oe)});return d(Me,Ce),Me}function lt(se){var Ce=this,fe=new u(function(Me,Re){Ce.ready().then(function(){var Oe=Ce._dbInfo;Oe.db.transaction(function(st){G(st,Oe,"SELECT key FROM "+Oe.storeName,[],function(Ct,St){for(var It=[],kt=0;kt<St.rows.length;kt++)It.push(St.rows.item(kt).key);Me(It)},function(Ct,St){Re(St)})})}).catch(Re)});return d(fe,se),fe}function Ze(se){return new u(function(Ce,fe){se.transaction(function(Me){Me.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(Re,Oe){for(var st=[],Ct=0;Ct<Oe.rows.length;Ct++)st.push(Oe.rows.item(Ct).name);Ce({db:se,storeNames:st})},function(Re,Oe){fe(Oe)})},function(Me){fe(Me)})})}function Le(se,Ce){Ce=g.apply(this,arguments);var fe=this.config();se=typeof se!="function"&&se||{},se.name||(se.name=se.name||fe.name,se.storeName=se.storeName||fe.storeName);var Me=this,Re;return se.name?Re=new u(function(Oe){var st;se.name===fe.name?st=Me._dbInfo.db:st=openDatabase(se.name,"","",0),se.storeName?Oe({db:st,storeNames:[se.storeName]}):Oe(Ze(st))}).then(function(Oe){return new u(function(st,Ct){Oe.db.transaction(function(St){function It(kr){return new u(function(or,vr){St.executeSql("DROP TABLE IF EXISTS "+kr,[],function(){or()},function(Zt,gn){vr(gn)})})}for(var kt=[],nr=0,Qr=Oe.storeNames.length;nr<Qr;nr++)kt.push(It(Oe.storeNames[nr]));u.all(kt).then(function(){st()}).catch(function(kr){Ct(kr)})},function(St){Ct(St)})})}):Re=u.reject("Invalid arguments"),d(Re,Ce),Re}var rt={_driver:"webSQLStorage",_initStorage:Bt,_support:ye(),iterate:Ie,getItem:Ee,setItem:re,removeItem:he,clear:Pe,length:be,key:Ve,keys:lt,dropInstance:Le};function Qt(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Dt(se,Ce){var fe=se.name+"/";return se.storeName!==Ce.storeName&&(fe+=se.storeName+"/"),fe}function ur(){var se="_localforage_support_test";try{return localStorage.setItem(se,!0),localStorage.removeItem(se),!1}catch{return!0}}function br(){return!ur()||localStorage.length>0}function Er(se){var Ce=this,fe={};if(se)for(var Me in se)fe[Me]=se[Me];return fe.keyPrefix=Dt(se,Ce._defaultConfig),br()?(Ce._dbInfo=fe,fe.serializer=le,u.resolve()):u.reject()}function hr(se){var Ce=this,fe=Ce.ready().then(function(){for(var Me=Ce._dbInfo.keyPrefix,Re=localStorage.length-1;Re>=0;Re--){var Oe=localStorage.key(Re);Oe.indexOf(Me)===0&&localStorage.removeItem(Oe)}});return d(fe,se),fe}function Wt(se,Ce){var fe=this;se=h(se);var Me=fe.ready().then(function(){var Re=fe._dbInfo,Oe=localStorage.getItem(Re.keyPrefix+se);return Oe&&(Oe=Re.serializer.deserialize(Oe)),Oe});return d(Me,Ce),Me}function $t(se,Ce){var fe=this,Me=fe.ready().then(function(){for(var Re=fe._dbInfo,Oe=Re.keyPrefix,st=Oe.length,Ct=localStorage.length,St=1,It=0;It<Ct;It++){var kt=localStorage.key(It);if(kt.indexOf(Oe)===0){var nr=localStorage.getItem(kt);if(nr&&(nr=Re.serializer.deserialize(nr)),nr=se(nr,kt.substring(st),St++),nr!==void 0)return nr}}});return d(Me,Ce),Me}function tr(se,Ce){var fe=this,Me=fe.ready().then(function(){var Re=fe._dbInfo,Oe;try{Oe=localStorage.key(se)}catch{Oe=null}return Oe&&(Oe=Oe.substring(Re.keyPrefix.length)),Oe});return d(Me,Ce),Me}function ir(se){var Ce=this,fe=Ce.ready().then(function(){for(var Me=Ce._dbInfo,Re=localStorage.length,Oe=[],st=0;st<Re;st++){var Ct=localStorage.key(st);Ct.indexOf(Me.keyPrefix)===0&&Oe.push(Ct.substring(Me.keyPrefix.length))}return Oe});return d(fe,se),fe}function ar(se){var Ce=this,fe=Ce.keys().then(function(Me){return Me.length});return d(fe,se),fe}function rr(se,Ce){var fe=this;se=h(se);var Me=fe.ready().then(function(){var Re=fe._dbInfo;localStorage.removeItem(Re.keyPrefix+se)});return d(Me,Ce),Me}function Yt(se,Ce,fe){var Me=this;se=h(se);var Re=Me.ready().then(function(){Ce===void 0&&(Ce=null);var Oe=Ce;return new u(function(st,Ct){var St=Me._dbInfo;St.serializer.serialize(Ce,function(It,kt){if(kt)Ct(kt);else try{localStorage.setItem(St.keyPrefix+se,It),st(Oe)}catch(nr){(nr.name==="QuotaExceededError"||nr.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Ct(nr),Ct(nr)}})})});return d(Re,fe),Re}function Vt(se,Ce){if(Ce=g.apply(this,arguments),se=typeof se!="function"&&se||{},!se.name){var fe=this.config();se.name=se.name||fe.name,se.storeName=se.storeName||fe.storeName}var Me=this,Re;return se.name?Re=new u(function(Oe){se.storeName?Oe(Dt(se,Me._defaultConfig)):Oe(se.name+"/")}).then(function(Oe){for(var st=localStorage.length-1;st>=0;st--){var Ct=localStorage.key(st);Ct.indexOf(Oe)===0&&localStorage.removeItem(Ct)}}):Re=u.reject("Invalid arguments"),d(Re,Ce),Re}var Ut={_driver:"localStorageWrapper",_initStorage:Er,_support:Qt(),iterate:$t,getItem:Wt,setItem:Yt,removeItem:rr,clear:hr,length:ar,key:tr,keys:ir,dropInstance:Vt},Mt=function(Ce,fe){return Ce===fe||typeof Ce=="number"&&typeof fe=="number"&&isNaN(Ce)&&isNaN(fe)},xt=function(Ce,fe){for(var Me=Ce.length,Re=0;Re<Me;){if(Mt(Ce[Re],fe))return!0;Re++}return!1},Ft=Array.isArray||function(se){return Object.prototype.toString.call(se)==="[object Array]"},qt={},gr={},Hr={INDEXEDDB:Se,WEBSQL:rt,LOCALSTORAGE:Ut},zr=[Hr.INDEXEDDB._driver,Hr.WEBSQL._driver,Hr.LOCALSTORAGE._driver],an=["dropInstance"],qe=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(an),ke={description:"",driver:zr.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ut(se,Ce){se[Ce]=function(){var fe=arguments;return se.ready().then(function(){return se[Ce].apply(se,fe)})}}function gt(){for(var se=1;se<arguments.length;se++){var Ce=arguments[se];if(Ce)for(var fe in Ce)Ce.hasOwnProperty(fe)&&(Ft(Ce[fe])?arguments[0][fe]=Ce[fe].slice():arguments[0][fe]=Ce[fe])}return arguments[0]}var bt=function(){function se(Ce){o(this,se);for(var fe in Hr)if(Hr.hasOwnProperty(fe)){var Me=Hr[fe],Re=Me._driver;this[fe]=Re,qt[Re]||this.defineDriver(Me)}this._defaultConfig=gt({},ke),this._config=gt({},this._defaultConfig,Ce),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return se.prototype.config=function(fe){if((typeof fe>"u"?"undefined":i(fe))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var Me in fe){if(Me==="storeName"&&(fe[Me]=fe[Me].replace(/\W/g,"_")),Me==="version"&&typeof fe[Me]!="number")return new Error("Database version must be a number.");this._config[Me]=fe[Me]}return"driver"in fe&&fe.driver?this.setDriver(this._config.driver):!0}else return typeof fe=="string"?this._config[fe]:this._config},se.prototype.defineDriver=function(fe,Me,Re){var Oe=new u(function(st,Ct){try{var St=fe._driver,It=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!fe._driver){Ct(It);return}for(var kt=qe.concat("_initStorage"),nr=0,Qr=kt.length;nr<Qr;nr++){var kr=kt[nr],or=!xt(an,kr);if((or||fe[kr])&&typeof fe[kr]!="function"){Ct(It);return}}var vr=function(){for(var pn=function(Et){return function(){var vt=new Error("Method "+Et+" is not implemented by the current driver"),Ot=u.reject(vt);return d(Ot,arguments[arguments.length-1]),Ot}},Yr=0,Di=an.length;Yr<Di;Yr++){var qn=an[Yr];fe[qn]||(fe[qn]=pn(qn))}};vr();var Zt=function(pn){qt[St]&&console.info("Redefining LocalForage driver: "+St),qt[St]=fe,gr[St]=pn,st()};"_support"in fe?fe._support&&typeof fe._support=="function"?fe._support().then(Zt,Ct):Zt(!!fe._support):Zt(!0)}catch(gn){Ct(gn)}});return f(Oe,Me,Re),Oe},se.prototype.driver=function(){return this._driver||null},se.prototype.getDriver=function(fe,Me,Re){var Oe=qt[fe]?u.resolve(qt[fe]):u.reject(new Error("Driver not found."));return f(Oe,Me,Re),Oe},se.prototype.getSerializer=function(fe){var Me=u.resolve(le);return f(Me,fe),Me},se.prototype.ready=function(fe){var Me=this,Re=Me._driverSet.then(function(){return Me._ready===null&&(Me._ready=Me._initDriver()),Me._ready});return f(Re,fe,fe),Re},se.prototype.setDriver=function(fe,Me,Re){var Oe=this;Ft(fe)||(fe=[fe]);var st=this._getSupportedDrivers(fe);function Ct(){Oe._config.driver=Oe.driver()}function St(nr){return Oe._extend(nr),Ct(),Oe._ready=Oe._initStorage(Oe._config),Oe._ready}function It(nr){return function(){var Qr=0;function kr(){for(;Qr<nr.length;){var or=nr[Qr];return Qr++,Oe._dbInfo=null,Oe._ready=null,Oe.getDriver(or).then(St).catch(kr)}Ct();var vr=new Error("No available storage method found.");return Oe._driverSet=u.reject(vr),Oe._driverSet}return kr()}}var kt=this._driverSet!==null?this._driverSet.catch(function(){return u.resolve()}):u.resolve();return this._driverSet=kt.then(function(){var nr=st[0];return Oe._dbInfo=null,Oe._ready=null,Oe.getDriver(nr).then(function(Qr){Oe._driver=Qr._driver,Ct(),Oe._wrapLibraryMethodsWithReady(),Oe._initDriver=It(st)})}).catch(function(){Ct();var nr=new Error("No available storage method found.");return Oe._driverSet=u.reject(nr),Oe._driverSet}),f(this._driverSet,Me,Re),this._driverSet},se.prototype.supports=function(fe){return!!gr[fe]},se.prototype._extend=function(fe){gt(this,fe)},se.prototype._getSupportedDrivers=function(fe){for(var Me=[],Re=0,Oe=fe.length;Re<Oe;Re++){var st=fe[Re];this.supports(st)&&Me.push(st)}return Me},se.prototype._wrapLibraryMethodsWithReady=function(){for(var fe=0,Me=qe.length;fe<Me;fe++)ut(this,qe[fe])},se.prototype.createInstance=function(fe){return new se(fe)},se}(),dt=new bt;n.exports=dt},{3:3}]},{},[4])(4)})}(vD)),vD.exports}var wPe=CPe();const uY=Nr(wPe),Na=uY.createInstance({name:ma().replace(/\//g,"")}),r9=uY.createInstance({name:"cti_ccn"}),BPe=e=>new Promise(async t=>{await uY.removeItem(e),t()}),MPe=()=>{const e=["ccn","sider","menuMode"];Na.iterate((t,r)=>{e.includes(r)||Na.removeItem(r)}).catch(function(t){console.log(t)})},jr={lightBlue:"#98C1D9",moutarde:"#FCBF49",lightOrange:"#FFB488",green:"#73BA9B",red:"#FD5A5D",lightGreen:"#CCD5AE",primaryColor:"#FF8801",blue:"#3D5A80",lightBrown:"#E4D2B3",yellow:"#FDD85D",lightGrey:"#B4B8C5",lightPurple:"#EABFCB",primaryBlue:"#012B43",terraCota:"#EB5E28",pink:"#FF9B9B",darkBrown:"#7F5539",bluePastel:"#E9EBF8",brown:"#D4A373",grey:"#929292",purple:"#C08497",inactiveGrey:"#b1b1b1"},qI="MENU_DRAWER",mp="MENU_CLASSIC",xPe={filters:{visible:!1,editor:!1},selections:{},download:0,sider:{isVisible:bPe()},primaryColor:"#FF8801",tab:null,shortcuts:!1,serverMessage:!1,theme:"light",generatePDF:!1,pdfSize:{width:550,height:560},showOverlay:!1,bugTracker:0,showMenus:!0,menuMode:mp,siderIsCollapsed:!1,devMode:!1,graphDisplayPreference:"always",graphColors:{columnChart:[jr.lightBlue,jr.moutarde,jr.lightOrange,jr.green,jr.red,jr.lightGreen,jr.primaryColor,jr.blue,jr.lightBrown,jr.yellow,jr.lightGrey,jr.lightPurple,jr.primaryBlue,jr.terraCota,jr.pink,jr.darkBrown,jr.bluePastel,jr.brown,jr.grey,jr.purple],pieChart:[jr.yellow,jr.lightBlue,jr.lightOrange,jr.lightGreen,jr.brown,jr.red,jr.blue,jr.pink,jr.primaryColor,jr.grey,jr.lightBrown,jr.purple],lineChart:[jr.lightBlue,jr.lightOrange,jr.lightGreen,jr.pink,jr.yellow],sexChart:[jr.lightBlue,jr.pink]}},IPe=(e=xPe,t)=>{switch(t.type){case INe:return Object.assign({},e,{menu:t.data});case Rde:return Na.setItem("menuMode",t.mode!==null?t.mode:e.menuMode===mp?qI:mp),Object.assign({},e,{menuMode:t.mode!==null?t.mode:e.menuMode===mp?qI:mp});case Tde:return Na.setItem("sider",t.collapsed!==null?t.collapsed:!e.siderIsCollapsed),Object.assign({},e,{siderIsCollapsed:t.collapsed!==null?t.collapsed:!e.siderIsCollapsed});case wde:return Object.assign({},e,{filters:{visible:t.visible,editor:t.editor?t.editor:!1}});case Cde:return Object.assign({},e,{download:t.download});case Bde:return Object.assign({},e,{tab:t.tab});case Mde:return Object.assign({},e,{showShortcuts:t.visible});case xde:return Object.assign({},e,{generatePDF:t.status});case Ide:return Object.assign({},e,{showOverlay:t.status});case bde:return Object.assign({},e,{bugTracker:t.value?t.value:e.bugTracker+1});case Sde:return Object.assign({},e,{showMenus:t.status});case Qde:return Object.assign({},e,{devMode:t.devMode});case Dde:return Object.assign({},e,{primaryColor:t.primaryColor});case Fde:return Object.assign({},e,{graphDisplayPreference:t.graphDisplayPreference});default:return e}};function bPe(){let e=localStorage.getItem("ui-sider-show");return e===null?!0:e==="true"}const yfe="SET_CLASSES",Cfe="SET_LOADING",wfe="SET_SELECTED_CLASSE",SPe="SET_SELECTED_SECTION",Bfe="REMOVE_CLASSE",Mfe="RESET_CLASSE",Wp=e=>({type:Cfe,loading:e}),RPe=(e,t,r)=>({type:yfe,schema:e,tables:t,refTables:r}),TPe=e=>({type:wfe,classe:e}),QPe=(e,t)=>({type:Bfe,tableId:e,classeId:t}),DPe=()=>({type:Mfe}),FPe={data:{schema:[],tables:{},refTables:{},selectedClasse:{},selectedSection:{},sectionTransfer:{oidsKeys:[],targetKeys:[],sections:[]}},loading:!1},_Pe=(e=FPe,t)=>{switch(t.type){case Cfe:return{...e,loading:t.loading};case yfe:return{...e,data:{...e.data,schema:t.schema,tables:t.tables,refTables:t.refTables}};case wfe:return{...e,data:{...e.data,selectedClasse:t.classe}};case SPe:return{...e,data:{...e.data,selectedSection:t.section}};case Bfe:let r=[...e.data.tables],n=r.find(a=>a.table_id===t.tableId);return n&&(n.classes=n.classes.filter(a=>a.oid!=="action.classeId")),{...e,data:{...e.data,tables:r}};case Mfe:return{...e,data:{...e.data,selectedClasse:{}}};default:return e}},xfe="SET_DIVERS",Ife="SET_LOADING",NPe=e=>({type:xfe,data:e}),Xp=e=>({type:Ife,loading:e}),kPe={data:{divers:[]},loading:!1},PPe=(e=kPe,t)=>{switch(t.type){case Ife:return{...e,loading:t.loading};case xfe:return{...e,data:{...e.data,divers:t.data}};default:return e}},bfe="EXPERT_SET_LOADING",Sfe="EXPERT_SET_DATA",Rfe="EXPERT_SET_ALERTS",Zu=e=>({type:bfe,loading:e}),OPe=e=>({type:Sfe,data:e}),zPe=e=>({type:Rfe,alerts:e}),jPe={loading:!1,data:{controls:[],rules:[],indicators:[],conditions:[],levels:[]},alerts:{entities:[],page:1,total:0}},YPe=(e=jPe,t)=>{switch(t.type){case bfe:return{...e,loading:t.loading};case Sfe:return{...e,data:{...e.data,controls:t.data.controls,rules:t.data.rules,indicators:t.data.indicators,conditions:t.data.conditions,levels:t.data.levels,items:t.data.items}};case Rfe:return{...e,alerts:t.alerts};default:return e}},Tfe="SET_HIDDEN_COLUMNS",Qfe="SET_FAVORITES_DATA",Dfe="SET_LOADING",Ffe="SET_SELECT",_fe="SET_COLUMN_FILTERED",Nfe="SET_RESET",LPe=e=>({type:Tfe,columns:e}),UPe=(e,t)=>({type:Qfe,myFavorites:e,allViews:t}),n9=e=>({type:Dfe,loading:e}),HPe=e=>({type:Ffe,selected:e}),GPe=(e,t)=>({type:_fe,tabName:e,columnsFiltered:t}),KPe=()=>({type:Nfe}),VPe={hiddenColumns:[],dataOnglet:[],data:{myFavorites:{},allViews:{}},loading:!1,selected:!1},JPe=(e=VPe,t)=>{switch(t.type){case Tfe:return{...e,hiddenColumns:t.columns};case Dfe:return{...e,loading:t.loading};case Ffe:return{...e,selected:t.selected};case Nfe:return{...e,dataOnglet:[]};case Qfe:return{...e,data:{myFavorites:t.myFavorites,allViews:t.allViews}};case _fe:const r=e.dataOnglet.findIndex(n=>n.tabName===t.tabName);return r!==-1?(e.dataOnglet[r]={tabName:t.tabName,columnsFiltered:t.columnsFiltered},{...e,dataOnglet:[...e.dataOnglet]}):{...e,dataOnglet:[...e.dataOnglet,{tabName:t.tabName,columnsFiltered:t.columnsFiltered}]};default:return e}},kfe="SET_INDICATORS",Pfe="SET_LOADING",Ofe="REMOVE_INDICATOR",zfe="SET_SEARCH_INDICATOR_VALUE",WPe=(e,t,r,n)=>({type:kfe,indicators:e,tables:t,themes:n,themesSearch:r}),XPe=e=>({type:Ofe,indicator:e}),a9=e=>({type:Pfe,loading:e}),qPe=e=>({type:zfe,searchIndicatorFilterValue:e}),ZPe={data:{indicators:[],tables:[],themesSearch:[],themes:[],loading:!1},searchIndicatorFilterValue:""},$Pe=(e=ZPe,t)=>{switch(t.type){case kfe:return{...e,data:{indicators:t.indicators,tables:t.tables,themes:t.themes,themesSearch:t.themesSearch}};case Pfe:return{...e,loading:t.loading};case Ofe:let r=[...e.data.indicators];return r=r.filter(n=>n.oid!==t.indicator),{...e,data:{...e.data,indicators:r}};case zfe:return{...e,searchIndicatorFilterValue:t.searchIndicatorFilterValue};default:return e}},jfe="LISTES_MANAGER_INIT_LISTES",Yfe="SET_LOADING",Lfe="LISTES_MANAGER_SET_LISTES",Ufe="LISTES_MANAGER_SET_LISTE_TO_EDIT",Hfe="LISTES_MANAGER_INIT_LISTE_TO_EDIT",e8e=()=>({type:jfe}),t8e=e=>({type:Lfe,data:e}),r8e=()=>({type:Hfe}),n8e=(e,t,r,n=null)=>({type:Ufe,table_id:e,liste_id:t,liste:r,treeSelectedKey:n}),i9=e=>({type:Yfe,loading:e}),o9={listeEditor:{table_id:null,liste_id:null,liste:null},data:{schema:{},tables:{},refTables:{}},loading:!1,treeSelectedKey:null},a8e=(e=o9,t)=>{switch(t.type){case jfe:return{...e,data:{schema:{},tables:{},refTables:{}}};case Lfe:return{...e,data:{...e.data,schema:t.data.schema,tables:t.data.tables,refTables:t.data.refTables}};case Hfe:return{...e,listeEditor:o9.listeEditor};case Ufe:return{...e,listeEditor:{table_id:t.table_id,liste_id:t.liste_id,liste:t.liste},treeSelectedKey:t.treeSelectedKey};case Yfe:return{...e,loading:t.loading};default:return e}},Gfe="LOGS_SET_LOADING",Kfe="LOGS_SET_DATA",ZI=e=>({type:Gfe,loading:e}),i8e=e=>({type:Kfe,data:e}),o8e={loading:!1,data:{logs:[]}},s8e=(e=o8e,t)=>{switch(t.type){case Gfe:return{...e,loading:t.loading};case Kfe:return{...e,data:{...e.data,logs:t.data}};default:return e}},l8e="SET_LOGS_LOADING",Vfe="SET_EXPLOIT",A8e=e=>({type:Vfe,exploit:e}),c8e={data:{logs:[],exploit:[],timestamp:""},loading:!1},u8e=(e=c8e,t)=>{switch(t.type){case l8e:return{...e,loading:t.loading};case Vfe:return{...e,data:{...e.data,exploit:t.exploit.envs,timestamp:t.exploit.timestamp}};default:return e}},Jfe="SET_LOADING",Wfe="SET_IMPORTS",Xfe="REMOVE_IMPORT",qp=e=>({type:Jfe,loading:e}),d8e=e=>({type:Wfe,imports:e}),f8e=e=>({type:Xfe,id:e}),h8e={data:{imports:[]},loading:!1},g8e=(e=h8e,t)=>{switch(t.type){case Jfe:return{...e,loading:t.loading};case Wfe:return{...e,data:{...e.data,imports:t.imports}};case Xfe:let r=e.data.imports.filter(n=>n.oid!==t.id);return{...e,data:{...e.data,imports:r}};default:return e}},qfe="SET_REPORTS",Zfe="SET_LOADING",$fe="SET_SELECTED_REPORT",ehe="SET_COMBO_GROUPS",the="SET_LAST_VIEWS",rhe="REMOVE_REPORT",nhe="SET_COMPUTING_ESSENTIELS",ahe="SET_REPORTS_INDICATORS",ihe="SET_SELECTED_REPORT_MODIFIED",ohe="SET_SEARCH_VALUE",$I=e=>({type:Zfe,loading:e}),p8e=(e,t,r,n,a,i,o)=>({type:qfe,reports:e,refReports:t,comboGroup:r,comboReport:n,comboCondition:a,conditions:i,types:o}),v8e=e=>({type:$fe,report:e}),m8e=e=>({type:ihe,modified:e}),E8e=e=>({type:ehe,comboGroup:e}),y8e=e=>({type:rhe,report:e}),eb=e=>({type:nhe,computing:e}),C8e=e=>({type:the,views:e}),w8e=(e,t,r)=>({type:ahe,tables:e,themes:t,indicators:r}),B8e=e=>({type:ohe,searchValue:e}),M8e={data:{reports:[],types:[],refReports:[],comboGroup:[],comboReport:[],comboCondition:[],selectedReport:{},updatedSections:[],flatConditions:[],indicators:{tables:[],themes:[],indicators:[],lastViews:[]}},loading:!1,computingEssentiels:!1,reportModified:!1,searchFilterValue:""},x8e=(e=M8e,t)=>{switch(t.type){case Zfe:return{...e,loading:t.loading};case nhe:return{...e,computingEssentiels:t.computing};case qfe:return{...e,data:{...e.data,reports:t.reports,types:t.types,refReports:t.refReports,comboGroup:t.comboGroup,comboReport:t.comboReport,comboCondition:t.comboCondition,flatConditions:t.conditions}};case $fe:return{...e,data:{...e.data,selectedReport:t.report,updatedSections:t.report.sections}};case ihe:return{...e,reportModified:t.modified};case ehe:return{...e,data:{...e.data,comboGroup:t.comboGroup}};case the:return{...e,data:{...e.data,lastViews:t.views}};case rhe:let r=[...e.data.reports];return r=r.filter(n=>n.oid!==t.report),{...e,data:{...e.data,reports:r}};case ahe:return{...e,data:{...e.data,indicators:{tables:t.tables,themes:t.themes,indicators:t.indicators}}};case ohe:return{...e,data:{...e.data,searchFilterValue:t.searchValue}};default:return e}},she="SET_SIMULATIONS_LOADING",lhe="SET_SIMULATIONS",I8e=(e,t)=>({type:lhe,simulations:e,message:t}),Hu=e=>({type:she,loading:e}),b8e={data:{simulations:[],message:{}},loading:!1},S8e=(e=b8e,t)=>{switch(t.type){case she:return{...e,loading:t.loading};case lhe:return{...e,data:{...e.data,simulations:t.simulations,message:t.message}};default:return e}},Ahe="SET_JOBS",che="SET_LOADING",uhe=(e,t,r)=>({type:Ahe,jobs:e,execs:t,lastJobs:r}),tb=e=>({type:che,loading:e}),R8e={data:{jobs:null,execs:null,lastJobs:null},loading:!1},T8e=(e=R8e,t)=>{switch(t.type){case che:return{...e,loading:t.loading};case Ahe:return{...e,data:{...e.data,jobs:t.jobs,execs:t.execs,lastJobs:t.lastJobs}};default:return e}},dhe="SET_LOADING",fhe="SET_RECORDS",hhe="SET_RECORDS_ONLY",ghe="SET_CHOICES",phe="ADD_COMBO",vhe="ADD_DATA_EDITOR",Zp=e=>({type:dhe,loading:e}),Q8e=(e,t,r,n,a,i)=>({type:fhe,records:e,combos:t,lists:r,divers:n,addRecord:a,refRecords:i}),D8e=e=>({type:hhe,records:e}),F8e=e=>({type:ghe,choices:e}),_8e=(e,t)=>({type:phe,key:e,combo:t}),oI=e=>({type:vhe,dataEditor:e}),N8e={data:{records:[],refRecords:[],combos:{},lists:[],divers:[],choices:[],addRecord:{},dataEditor:[]},loading:!1},k8e=(e=N8e,t)=>{switch(t.type){case dhe:return{...e,loading:t.loading};case fhe:return{...e,data:{...e.data,records:t.records,refRecords:t.refRecords,combos:{...e.data.combos,...t.combos},divers:t.divers,lists:t.lists,addRecord:t.addRecord}};case hhe:return{...e,data:{...e.data,records:t.records}};case ghe:return{...e,data:{...e.data,choices:t.choices}};case phe:return{...e,data:{...e.data,combos:{...e.data.combos,[t.key]:t.combo}}};case vhe:return{...e,data:{...e.data,dataEditor:t.dataEditor}};default:return e}},mhe="SET_USERS",Ehe="SET_MODULES",yhe="SET_LOADING",P8e=e=>({type:mhe,users:e}),s9=e=>({type:yhe,loading:e}),O8e=(e,t,r,n)=>({type:Ehe,modules:e,securityLevels:t,envs:r,ctiusrdir:n}),z8e={data:{users:[],modules:[],securityLevels:[],envs:[],ctiusrdir:{}},loading:!1},j8e=(e=z8e,t)=>{switch(t.type){case yhe:return{...e,loading:t.loading};case mhe:return{...e,data:{...e.data,users:t.users}};case Ehe:return{...e,data:{...e.data,modules:t.modules,securityLevels:t.securityLevels,envs:t.envs,ctiusrdir:t.ctiusrdir}};default:return e}},Che="SET_LOADING",whe="SET_IMPORTS",Y8e="REMOVE_IMPORT",rb=e=>({type:Che,loading:e}),L8e=e=>({type:whe,imports:e}),U8e={data:{imports:[]},loading:!1},H8e=(e=U8e,t)=>{switch(t.type){case Che:return{...e,loading:t.loading};case whe:return{...e,data:{...e.data,imports:t.imports}};case Y8e:let r=e.data.imports.filter(n=>n.oid!==t.id);return{...e,data:{...e.data,imports:r}};default:return e}},G8e=cY({listesManager:a8e,synchronize:T8e,simulations:S8e,indicators:$Pe,favorites:JPe,classes:_Pe,reports:x8e,ovalide:g8e,expert:YPe,tables:k8e,divers:PPe,users:j8e,logs:u8e,valo:H8e,log:s8e}),K8e={isLoading:!1,type:null,name:null,pathname:null,viewlink:!1,error:null},V8e=(e=K8e,t)=>{switch(t.type){case Sue:return Object.assign({},e,{...e,type:"view",name:t.viewName,viewlink:t.viewlink,pathname:t.pathname});case Rue:return Object.assign({},e,{...e,type:"component",name:t.name,moduleId:t.moduleId});case Tue:return Object.assign({},e,{isLoading:!1,name:t.name,type:"page"});default:return e}},Bhe="SET_DYNAMIC_SELECTS",$p=e=>({type:Bhe,selects:e});var mD,l9;function J8e(){return l9||(l9=1,mD=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r}),mD}var W8e=J8e();const qa=Nr(W8e),X8e=[],q8e=(e=X8e,t)=>{switch(t.type){case Bhe:return qa(e,t.selects)?e:[...t.selects];default:return e}},Z8e="SET_LOADING",$8e="SET_DATA",Mhe="SET_SELECTED_CONDITION",eOe="SET_RELOADING",xhe=e=>({type:Mhe,condition:e}),tOe={data:{tabs:{},categories:{},data:[],charts:[],series:[],conditions:[],poles:[],finess:[],dates:[]},module:"",selectedCondition:[],selectedPoles:[],selectedFiness:[],loading:!1,reloading:!1,editable:!1,date:Nn().subtract(1,"months"),dashboardModified:!1},rOe=(e=tOe,t)=>{switch(t.type){case Z8e:return{...e,loading:t.loading};case eOe:return{...e,reloading:t.loading};case $8e:return{...e,module:t.module,data:{...e.data,tabs:t.tabs,categories:t.categories,data:t.data,charts:t.charts,series:t.series,conditions:t.conditions,poles:t.poles,finess:t.finess,dates:t.dates}};case Mhe:let r=[...e.selectedCondition];return Array.isArray(t.condition)?r=t.condition:r.push(t.condition.toString()),{...e,selectedCondition:r};default:return e}},Ihe="SET_GLOBAL_VARIABLES",Gu=e=>({type:Ihe,variables:e}),nOe={},aOe=(e=nOe,t)=>{switch(t.type){case Ihe:return t.variables;default:return e}},bhe="GLOBALS_SET_LOADING",She="GLOBALS_SET_MODULE",ED=e=>({type:bhe,loading:e}),PO=(e,t)=>({type:She,module:e,data:t}),iOe={module:null,data:{},isLoading:!1,error:void 0},oOe=(e=iOe,t)=>{switch(t.type){case bhe:return Object.assign({},e,{isLoading:t.loading});case She:return{...e,module:t.module,data:t.data};default:return e}},Rhe="HISTORY_SET_ENTRY",The="HISTORY_SET_MODULE",Qhe="HISTORY_SET_EXPAND",Dhe="HISTORY_SET_COLUMNS",Fhe="HISTORY_SET_SORT",sOe=(e,t)=>({type:Rhe,viewUrl:e,hArgs:t}),lOe=(e,t)=>({type:The,module:e,item:t}),yD=(e,t)=>({type:Qhe,view:e,keys:t}),A9=(e,t)=>({type:Dhe,view:e,columns:t}),_he=e=>({type:Fhe,sort:e}),AOe={views:{},modules:{},expand:{},columns:{},sort:{}},cOe=(e=AOe,t)=>{switch(t.type){case Rhe:return{...e,views:{...e.views,[t.viewUrl]:t.hArgs}};case The:return{...e,modules:{...e.modules,[t.module]:t.item}};case Qhe:return{...e,expand:{...e.expand,[t.view]:t.keys}};case Dhe:return{...e,columns:{...e.columns,[t.view]:t.columns}};case Fhe:return{...e,sort:t.sort};default:return e}},Nhe="SET_LICENCES",khe="ADD_LICENCE_ERROR",Phe="SET_LOADING",Ohe=e=>({type:Nhe,data:e}),zhe=e=>({type:khe,error:e}),fy=e=>({type:Phe,loading:e}),uOe={data:null,error:!1,addError:null,loading:!1},dOe=(e=uOe,t)=>{switch(t.type){case Nhe:return Object.assign({},e,{data:t.data});case khe:return Object.assign({},e,{...e,addError:t.error});case Phe:return{...e,loading:t.loading};default:return e}},jhe="MENU_SET_MENU",Yhe="MENU_SET_ERROR",Lhe="MENU_SET_SELECTED_MODULE",Uhe="SET_MODULE_ENTRIES",Hhe="SET_MENU_ITEM",Ghe="MENU_SET_LOADING",Khe=e=>({type:jhe,menu:e}),dY=e=>({type:Lhe,selectedModuleKey:e}),fOe=e=>({type:Uhe,moduleEntries:e}),hOe=e=>({type:Yhe,menu:e}),nb=e=>({type:Hhe,item:e}),c9=e=>({type:Ghe,loading:e}),gOe={selectedModuleKey:"myfavorites",selectedKey:void 0,previouslySelectedModuleKeys:null,modules:{},moduleEntries:void 0,siderIsVisible:!0,error:null,item:null,loading:!1},pOe=(e=gOe,t)=>{switch(t.type){case jhe:return{...e,modules:t.menu};case Lhe:return{...e,selectedModuleKey:t.selectedModuleKey};case Uhe:return qa(t.moduleEntries,e.moduleEntries)?e:{...e,moduleEntries:t.moduleEntries};case Yhe:return{...e,error:t.error};case Hhe:return{...e,item:t.item};case Ghe:return{...e,loading:t.loading};default:return e}},Vhe="SET_NOTIFICATIONS",vOe=e=>({type:Vhe,notifications:e}),mOe={selectedModule:"",data:{}},EOe=(e=mOe,t)=>{switch(t.type){case Vhe:return{...e,data:t.notifications};default:return e}},yOe={data:{session:null,environment:null,map:null,chart:null,version:null},loading:!1,user:{homePageDefaultModule:"accueil",showGraphs:"always",spreadsheetEditor:"EXCEL",spreadsheetSeparator:";",pmsiDefaultModule:null,expandedRows:"ouvert"}},COe=(e=yOe,t)=>{switch(t.type){case kde:return{...e,data:{...e.data,...t.settings}};case Pde:return{...e,loading:t.loading};case Ode:return{...e,user:{...e.user,...t.userSettings}};default:return e}},Jhe="VIEW_SET_ROW",Whe="VIEW_SET_CELL",g0=e=>({type:Jhe,row:e}),Ru=(e,t)=>({type:Whe,row:e,column:t}),wOe={cell:{row:null,column:null},row:null},BOe=(e=wOe,t)=>{switch(t.type){case Jhe:return Object.assign({},e,{...e,row:t.row});case Whe:return Object.assign({},e,{...e,cell:{row:t.row,column:t.column}});default:return e}},Xhe="DESC_SET_REF",qhe="RUN_SET_REF",Zhe="VIEW_SET_IS_LOADING",MOe="SHOW_FILTERS_DRAWER",$he="SET_ERRORS",ege="SET_GETTING_RUN",tge="SET_RENDERING",xOe=e=>({type:MOe,visible:e}),rge=e=>({type:Xhe,descRef:e}),nge=e=>({type:qhe,runRef:e}),ph=e=>({type:Zhe,isLoading:e}),ev=(e=[])=>({type:$he,errors:e}),OO=e=>({type:ege,gettingRun:e}),age=e=>({type:tge,rendering:e}),IOe={isLoading:!1,descRef:null,runRef:null,errors:[],gettingRun:!1,rendering:!1,globalVariables:{}},bOe=(e=IOe,t)=>{switch(t.type){case Xhe:return Object.assign({},e,{...e,descRef:t.descRef});case qhe:return Object.assign({},e,{...e,runRef:t.runRef});case Zhe:return Object.assign({},e,{...e,isLoading:t.isLoading});case $he:return{...e,errors:t.errors};case ege:return{...e,gettingRun:t.gettingRun};case tge:return t.rendering===e.rendering?e:{...e,rendering:t.rendering};default:return e}},SOe=cY({history:cOe,ui:IPe,menu:pOe,content:V8e,view:bOe,settings:COe,globals:oOe,licences:dOe,viewlinks:BOe,dynamicSelects:q8e,components:G8e,eis:rOe,notifications:EOe,globalVariables:aOe}),ROe=e=>cY({router:fPe(e),cti:SOe});let zO=null,CD="jis";var u9=window.location.pathname;if(u9.indexOf(CD)===-1)zO="/";else{var TOe=u9.split(CD);zO=TOe[0]+CD}const jO=afe({basename:zO});function QOe(e){let t;return t=vfe,pfe(ROe(jO),e,t(yPe(uPe(jO),Efe)))}const so=QOe();let d9=[{name:"fontSize",value:"11"},{name:"rowHeight",value:"20",condition:"ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 1 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"backgroundColor",value:"#FFD393",condition:"ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 1 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"backgroundColor",value:"#FFD393",condition:"ROW.LVL == '1' && VIEW.QTAB != '1'"},{name:"backgroundColor",value:"#FFD393",condition:"ROW.LVL == '2' && VIEW.QTAB == '1'"},{name:"fontWeight",value:"bold",condition:"ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 1 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"borderSides",value:"top bottom",condition:"ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 1 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"borderStyle",value:"solid",condition:"ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 1 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"borderThickness",value:"2",condition:"ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 1 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"fontWeight",value:"bold",condition:"ROW.LVL == '2' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"color",value:"#084b96",condition:"ROW.LVL == '2' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"rowHeight",value:"20",condition:"Number(ROW.TABD) >= 0 && ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB == 'TAB'"},{name:"backgroundColor",value:"#FFD393",condition:"Number(ROW.TABD) >= 0 && ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB == 'TAB'"},{name:"fontWeight",value:"bold",condition:"Number(ROW.TABD) >= 0 && ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB == 'TAB'"},{name:"borderSides",value:"top bottom",condition:"Number(ROW.TABD) >= 0 && ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB == 'TAB'"},{name:"borderStyle",value:"solid",condition:"Number(ROW.TABD) >= 0 && ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB == 'TAB'"},{name:"borderThickness",value:"2",condition:"Number(ROW.TABD) >= 0 && ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB == 'TAB'"},{name:"paddingLeft",value:"15",condition:"(VIEW.GROUPBY_MAXLVL == '2' || VIEW.GROUPBY_MAXLVL == '3') && ROW.LVL == '2' && VIEW.GROUPBY_TAB != 'TAB' "},{name:"paddingLeft",value:"30",condition:"(VIEW.GROUPBY_MAXLVL == '3') && ROW.LVL == '3' && VIEW.GROUPBY_TAB != 'TAB' "},{name:"paddingLeft",value:"15",condition:"(VIEW.GROUPBY_MAXLVL == '3') && ROW.LVL == '2' && VIEW.GROUPBY_TAB == 'TAB' "}];var wD,f9;function DOe(){if(f9)return wD;f9=1;function e(t,r,n,a){for(var i=-1,o=t==null?0:t.length;++i<o;){var s=t[i];r(a,s,n(s),t)}return a}return wD=e,wD}var BD,h9;function FOe(){if(h9)return BD;h9=1;function e(t){return function(r,n,a){for(var i=-1,o=Object(r),s=a(r),l=s.length;l--;){var A=s[t?l:++i];if(n(o[A],A,o)===!1)break}return r}}return BD=e,BD}var MD,g9;function ige(){if(g9)return MD;g9=1;var e=FOe(),t=e();return MD=t,MD}var xD,p9;function _Oe(){if(p9)return xD;p9=1;function e(t,r){for(var n=-1,a=Array(t);++n<t;)a[n]=r(n);return a}return xD=e,xD}var ID,v9;function NOe(){if(v9)return ID;v9=1;var e=fh(),t=QA(),r="[object Arguments]";function n(a){return t(a)&&e(a)==r}return ID=n,ID}var bD,m9;function oC(){if(m9)return bD;m9=1;var e=NOe(),t=QA(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(o){return t(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return bD=i,bD}var p0={exports:{}},SD,E9;function kOe(){if(E9)return SD;E9=1;function e(){return!1}return SD=e,SD}p0.exports;var y9;function sC(){return y9||(y9=1,function(e,t){var r=Nl(),n=kOe(),a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,A=l||n;e.exports=A}(p0,p0.exports)),p0.exports}var RD,C9;function OS(){if(C9)return RD;C9=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,a){var i=typeof n;return a=a??e,!!a&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<a}return RD=r,RD}var TD,w9;function fY(){if(w9)return TD;w9=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return TD=t,TD}var QD,B9;function POe(){if(B9)return QD;B9=1;var e=fh(),t=fY(),r=QA(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",A="[object Map]",c="[object Number]",u="[object Object]",d="[object RegExp]",f="[object Set]",h="[object String]",g="[object WeakMap]",p="[object ArrayBuffer]",E="[object DataView]",y="[object Float32Array]",C="[object Float64Array]",w="[object Int8Array]",B="[object Int16Array]",M="[object Int32Array]",I="[object Uint8Array]",S="[object Uint8ClampedArray]",R="[object Uint16Array]",b="[object Uint32Array]",Q={};Q[y]=Q[C]=Q[w]=Q[B]=Q[M]=Q[I]=Q[S]=Q[R]=Q[b]=!0,Q[n]=Q[a]=Q[p]=Q[i]=Q[E]=Q[o]=Q[s]=Q[l]=Q[A]=Q[c]=Q[u]=Q[d]=Q[f]=Q[h]=Q[g]=!1;function D(F){return r(F)&&t(F.length)&&!!Q[e(F)]}return QD=D,QD}var DD,M9;function zS(){if(M9)return DD;M9=1;function e(t){return function(r){return t(r)}}return DD=e,DD}var v0={exports:{}};v0.exports;var x9;function hY(){return x9||(x9=1,function(e,t){var r=ede(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(v0,v0.exports)),v0.exports}var FD,I9;function jS(){if(I9)return FD;I9=1;var e=POe(),t=zS(),r=hY(),n=r&&r.isTypedArray,a=n?t(n):e;return FD=a,FD}var _D,b9;function oge(){if(b9)return _D;b9=1;var e=_Oe(),t=oC(),r=Vi(),n=sC(),a=OS(),i=jS(),o=Object.prototype,s=o.hasOwnProperty;function l(A,c){var u=r(A),d=!u&&t(A),f=!u&&!d&&n(A),h=!u&&!d&&!f&&i(A),g=u||d||f||h,p=g?e(A.length,String):[],E=p.length;for(var y in A)(c||s.call(A,y))&&!(g&&(y=="length"||f&&(y=="offset"||y=="parent")||h&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||a(y,E)))&&p.push(y);return p}return _D=l,_D}var ND,S9;function YS(){if(S9)return ND;S9=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return ND=t,ND}var kD,R9;function sge(){if(R9)return kD;R9=1;function e(t,r){return function(n){return t(r(n))}}return kD=e,kD}var PD,T9;function OOe(){if(T9)return PD;T9=1;var e=sge(),t=e(Object.keys,Object);return PD=t,PD}var OD,Q9;function lge(){if(Q9)return OD;Q9=1;var e=YS(),t=OOe(),r=Object.prototype,n=r.hasOwnProperty;function a(i){if(!e(i))return t(i);var o=[];for(var s in Object(i))n.call(i,s)&&s!="constructor"&&o.push(s);return o}return OD=a,OD}var zD,D9;function ls(){if(D9)return zD;D9=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return zD=e,zD}var jD,F9;function gY(){if(F9)return jD;F9=1;var e=fh(),t=ls(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==n||l==a||l==r||l==i}return jD=o,jD}var YD,_9;function fd(){if(_9)return YD;_9=1;var e=gY(),t=fY();function r(n){return n!=null&&t(n.length)&&!e(n)}return YD=r,YD}var LD,N9;function Qv(){if(N9)return LD;N9=1;var e=oge(),t=lge(),r=fd();function n(a){return r(a)?e(a):t(a)}return LD=n,LD}var UD,k9;function Age(){if(k9)return UD;k9=1;var e=ige(),t=Qv();function r(n,a){return n&&e(n,a,t)}return UD=r,UD}var HD,P9;function zOe(){if(P9)return HD;P9=1;var e=fd();function t(r,n){return function(a,i){if(a==null)return a;if(!e(a))return r(a,i);for(var o=a.length,s=n?o:-1,l=Object(a);(n?s--:++s<o)&&i(l[s],s,l)!==!1;);return a}}return HD=t,HD}var GD,O9;function cge(){if(O9)return GD;O9=1;var e=Age(),t=zOe(),r=t(e);return GD=r,GD}var KD,z9;function jOe(){if(z9)return KD;z9=1;var e=cge();function t(r,n,a,i){return e(r,function(o,s,l){n(i,o,a(o),l)}),i}return KD=t,KD}var VD,j9;function YOe(){if(j9)return VD;j9=1;function e(){this.__data__=[],this.size=0}return VD=e,VD}var JD,Y9;function lC(){if(Y9)return JD;Y9=1;function e(t,r){return t===r||t!==t&&r!==r}return JD=e,JD}var WD,L9;function LS(){if(L9)return WD;L9=1;var e=lC();function t(r,n){for(var a=r.length;a--;)if(e(r[a][0],n))return a;return-1}return WD=t,WD}var XD,U9;function LOe(){if(U9)return XD;U9=1;var e=LS(),t=Array.prototype,r=t.splice;function n(a){var i=this.__data__,o=e(i,a);if(o<0)return!1;var s=i.length-1;return o==s?i.pop():r.call(i,o,1),--this.size,!0}return XD=n,XD}var qD,H9;function UOe(){if(H9)return qD;H9=1;var e=LS();function t(r){var n=this.__data__,a=e(n,r);return a<0?void 0:n[a][1]}return qD=t,qD}var ZD,G9;function HOe(){if(G9)return ZD;G9=1;var e=LS();function t(r){return e(this.__data__,r)>-1}return ZD=t,ZD}var $D,K9;function GOe(){if(K9)return $D;K9=1;var e=LS();function t(r,n){var a=this.__data__,i=e(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return $D=t,$D}var eF,V9;function US(){if(V9)return eF;V9=1;var e=YOe(),t=LOe(),r=UOe(),n=HOe(),a=GOe();function i(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var A=o[s];this.set(A[0],A[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,eF=i,eF}var tF,J9;function KOe(){if(J9)return tF;J9=1;var e=US();function t(){this.__data__=new e,this.size=0}return tF=t,tF}var rF,W9;function VOe(){if(W9)return rF;W9=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return rF=e,rF}var nF,X9;function JOe(){if(X9)return nF;X9=1;function e(t){return this.__data__.get(t)}return nF=e,nF}var aF,q9;function WOe(){if(q9)return aF;q9=1;function e(t){return this.__data__.has(t)}return aF=e,aF}var iF,Z9;function XOe(){if(Z9)return iF;Z9=1;var e=Nl(),t=e["__core-js_shared__"];return iF=t,iF}var oF,$9;function qOe(){if($9)return oF;$9=1;var e=XOe(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return oF=r,oF}var sF,eV;function uge(){if(eV)return sF;eV=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return sF=r,sF}var lF,tV;function ZOe(){if(tV)return lF;tV=1;var e=gY(),t=qOe(),r=ls(),n=uge(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,A=s.hasOwnProperty,c=RegExp("^"+l.call(A).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function u(d){if(!r(d)||t(d))return!1;var f=e(d)?c:i;return f.test(n(d))}return lF=u,lF}var AF,rV;function $Oe(){if(rV)return AF;rV=1;function e(t,r){return t==null?void 0:t[r]}return AF=e,AF}var cF,nV;function vh(){if(nV)return cF;nV=1;var e=ZOe(),t=$Oe();function r(n,a){var i=t(n,a);return e(i)?i:void 0}return cF=r,cF}var uF,aV;function pY(){if(aV)return uF;aV=1;var e=vh(),t=Nl(),r=e(t,"Map");return uF=r,uF}var dF,iV;function HS(){if(iV)return dF;iV=1;var e=vh(),t=e(Object,"create");return dF=t,dF}var fF,oV;function eze(){if(oV)return fF;oV=1;var e=HS();function t(){this.__data__=e?e(null):{},this.size=0}return fF=t,fF}var hF,sV;function tze(){if(sV)return hF;sV=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return hF=e,hF}var gF,lV;function rze(){if(lV)return gF;lV=1;var e=HS(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(i){var o=this.__data__;if(e){var s=o[i];return s===t?void 0:s}return n.call(o,i)?o[i]:void 0}return gF=a,gF}var pF,AV;function nze(){if(AV)return pF;AV=1;var e=HS(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:r.call(i,a)}return pF=n,pF}var vF,cV;function aze(){if(cV)return vF;cV=1;var e=HS(),t="__lodash_hash_undefined__";function r(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?t:a,this}return vF=r,vF}var mF,uV;function ize(){if(uV)return mF;uV=1;var e=eze(),t=tze(),r=rze(),n=nze(),a=aze();function i(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var A=o[s];this.set(A[0],A[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,mF=i,mF}var EF,dV;function oze(){if(dV)return EF;dV=1;var e=ize(),t=US(),r=pY();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return EF=n,EF}var yF,fV;function sze(){if(fV)return yF;fV=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return yF=e,yF}var CF,hV;function GS(){if(hV)return CF;hV=1;var e=sze();function t(r,n){var a=r.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return CF=t,CF}var wF,gV;function lze(){if(gV)return wF;gV=1;var e=GS();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return wF=t,wF}var BF,pV;function Aze(){if(pV)return BF;pV=1;var e=GS();function t(r){return e(this,r).get(r)}return BF=t,BF}var MF,vV;function cze(){if(vV)return MF;vV=1;var e=GS();function t(r){return e(this,r).has(r)}return MF=t,MF}var xF,mV;function uze(){if(mV)return xF;mV=1;var e=GS();function t(r,n){var a=e(this,r),i=a.size;return a.set(r,n),this.size+=a.size==i?0:1,this}return xF=t,xF}var IF,EV;function vY(){if(EV)return IF;EV=1;var e=oze(),t=lze(),r=Aze(),n=cze(),a=uze();function i(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var A=o[s];this.set(A[0],A[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,IF=i,IF}var bF,yV;function dze(){if(yV)return bF;yV=1;var e=US(),t=pY(),r=vY(),n=200;function a(i,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([i,o]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(i,o),this.size=s.size,this}return bF=a,bF}var SF,CV;function KS(){if(CV)return SF;CV=1;var e=US(),t=KOe(),r=VOe(),n=JOe(),a=WOe(),i=dze();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,SF=o,SF}var RF,wV;function fze(){if(wV)return RF;wV=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return RF=t,RF}var TF,BV;function hze(){if(BV)return TF;BV=1;function e(t){return this.__data__.has(t)}return TF=e,TF}var QF,MV;function gze(){if(MV)return QF;MV=1;var e=vY(),t=fze(),r=hze();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new e;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,QF=n,QF}var DF,xV;function pze(){if(xV)return DF;xV=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(r(t[n],n,t))return!0;return!1}return DF=e,DF}var FF,IV;function vze(){if(IV)return FF;IV=1;function e(t,r){return t.has(r)}return FF=e,FF}var _F,bV;function dge(){if(bV)return _F;bV=1;var e=gze(),t=pze(),r=vze(),n=1,a=2;function i(o,s,l,A,c,u){var d=l&n,f=o.length,h=s.length;if(f!=h&&!(d&&h>f))return!1;var g=u.get(o),p=u.get(s);if(g&&p)return g==s&&p==o;var E=-1,y=!0,C=l&a?new e:void 0;for(u.set(o,s),u.set(s,o);++E<f;){var w=o[E],B=s[E];if(A)var M=d?A(B,w,E,s,o,u):A(w,B,E,o,s,u);if(M!==void 0){if(M)continue;y=!1;break}if(C){if(!t(s,function(I,S){if(!r(C,S)&&(w===I||c(w,I,l,A,u)))return C.push(S)})){y=!1;break}}else if(!(w===B||c(w,B,l,A,u))){y=!1;break}}return u.delete(o),u.delete(s),y}return _F=i,_F}var NF,SV;function fge(){if(SV)return NF;SV=1;var e=Nl(),t=e.Uint8Array;return NF=t,NF}var kF,RV;function mze(){if(RV)return kF;RV=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a,i){n[++r]=[i,a]}),n}return kF=e,kF}var PF,TV;function Eze(){if(TV)return PF;TV=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a){n[++r]=a}),n}return PF=e,PF}var OF,QV;function yze(){if(QV)return OF;QV=1;var e=xv(),t=fge(),r=lC(),n=dge(),a=mze(),i=Eze(),o=1,s=2,l="[object Boolean]",A="[object Date]",c="[object Error]",u="[object Map]",d="[object Number]",f="[object RegExp]",h="[object Set]",g="[object String]",p="[object Symbol]",E="[object ArrayBuffer]",y="[object DataView]",C=e?e.prototype:void 0,w=C?C.valueOf:void 0;function B(M,I,S,R,b,Q,D){switch(S){case y:if(M.byteLength!=I.byteLength||M.byteOffset!=I.byteOffset)return!1;M=M.buffer,I=I.buffer;case E:return!(M.byteLength!=I.byteLength||!Q(new t(M),new t(I)));case l:case A:case d:return r(+M,+I);case c:return M.name==I.name&&M.message==I.message;case f:case g:return M==I+"";case u:var F=a;case h:var N=R&o;if(F||(F=i),M.size!=I.size&&!N)return!1;var k=D.get(M);if(k)return k==I;R|=s,D.set(M,I);var O=n(F(M),F(I),R,b,Q,D);return D.delete(M),O;case p:if(w)return w.call(M)==w.call(I)}return!1}return OF=B,OF}var zF,DV;function mY(){if(DV)return zF;DV=1;function e(t,r){for(var n=-1,a=r.length,i=t.length;++n<a;)t[i+n]=r[n];return t}return zF=e,zF}var jF,FV;function hge(){if(FV)return jF;FV=1;var e=mY(),t=Vi();function r(n,a,i){var o=a(n);return t(n)?o:e(o,i(n))}return jF=r,jF}var YF,_V;function Cze(){if(_V)return YF;_V=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=0,o=[];++n<a;){var s=t[n];r(s,n,t)&&(o[i++]=s)}return o}return YF=e,YF}var LF,NV;function gge(){if(NV)return LF;NV=1;function e(){return[]}return LF=e,LF}var UF,kV;function EY(){if(kV)return UF;kV=1;var e=Cze(),t=gge(),r=Object.prototype,n=r.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),e(a(o),function(s){return n.call(o,s)}))}:t;return UF=i,UF}var HF,PV;function pge(){if(PV)return HF;PV=1;var e=hge(),t=EY(),r=Qv();function n(a){return e(a,r,t)}return HF=n,HF}var GF,OV;function wze(){if(OV)return GF;OV=1;var e=pge(),t=1,r=Object.prototype,n=r.hasOwnProperty;function a(i,o,s,l,A,c){var u=s&t,d=e(i),f=d.length,h=e(o),g=h.length;if(f!=g&&!u)return!1;for(var p=f;p--;){var E=d[p];if(!(u?E in o:n.call(o,E)))return!1}var y=c.get(i),C=c.get(o);if(y&&C)return y==o&&C==i;var w=!0;c.set(i,o),c.set(o,i);for(var B=u;++p<f;){E=d[p];var M=i[E],I=o[E];if(l)var S=u?l(I,M,E,o,i,c):l(M,I,E,i,o,c);if(!(S===void 0?M===I||A(M,I,s,l,c):S)){w=!1;break}B||(B=E=="constructor")}if(w&&!B){var R=i.constructor,b=o.constructor;R!=b&&"constructor"in i&&"constructor"in o&&!(typeof R=="function"&&R instanceof R&&typeof b=="function"&&b instanceof b)&&(w=!1)}return c.delete(i),c.delete(o),w}return GF=a,GF}var KF,zV;function Bze(){if(zV)return KF;zV=1;var e=vh(),t=Nl(),r=e(t,"DataView");return KF=r,KF}var VF,jV;function Mze(){if(jV)return VF;jV=1;var e=vh(),t=Nl(),r=e(t,"Promise");return VF=r,VF}var JF,YV;function xze(){if(YV)return JF;YV=1;var e=vh(),t=Nl(),r=e(t,"Set");return JF=r,JF}var WF,LV;function Ize(){if(LV)return WF;LV=1;var e=vh(),t=Nl(),r=e(t,"WeakMap");return WF=r,WF}var XF,UV;function AC(){if(UV)return XF;UV=1;var e=Bze(),t=pY(),r=Mze(),n=xze(),a=Ize(),i=fh(),o=uge(),s="[object Map]",l="[object Object]",A="[object Promise]",c="[object Set]",u="[object WeakMap]",d="[object DataView]",f=o(e),h=o(t),g=o(r),p=o(n),E=o(a),y=i;return(e&&y(new e(new ArrayBuffer(1)))!=d||t&&y(new t)!=s||r&&y(r.resolve())!=A||n&&y(new n)!=c||a&&y(new a)!=u)&&(y=function(C){var w=i(C),B=w==l?C.constructor:void 0,M=B?o(B):"";if(M)switch(M){case f:return d;case h:return s;case g:return A;case p:return c;case E:return u}return w}),XF=y,XF}var qF,HV;function bze(){if(HV)return qF;HV=1;var e=KS(),t=dge(),r=yze(),n=wze(),a=AC(),i=Vi(),o=sC(),s=jS(),l=1,A="[object Arguments]",c="[object Array]",u="[object Object]",d=Object.prototype,f=d.hasOwnProperty;function h(g,p,E,y,C,w){var B=i(g),M=i(p),I=B?c:a(g),S=M?c:a(p);I=I==A?u:I,S=S==A?u:S;var R=I==u,b=S==u,Q=I==S;if(Q&&o(g)){if(!o(p))return!1;B=!0,R=!1}if(Q&&!R)return w||(w=new e),B||s(g)?t(g,p,E,y,C,w):r(g,p,I,E,y,C,w);if(!(E&l)){var D=R&&f.call(g,"__wrapped__"),F=b&&f.call(p,"__wrapped__");if(D||F){var N=D?g.value():g,k=F?p.value():p;return w||(w=new e),C(N,k,E,y,w)}}return Q?(w||(w=new e),n(g,p,E,y,C,w)):!1}return qF=h,qF}var ZF,GV;function yY(){if(GV)return ZF;GV=1;var e=bze(),t=QA();function r(n,a,i,o,s){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,i,o,r,s)}return ZF=r,ZF}var $F,KV;function Sze(){if(KV)return $F;KV=1;var e=KS(),t=yY(),r=1,n=2;function a(i,o,s,l){var A=s.length,c=A,u=!l;if(i==null)return!c;for(i=Object(i);A--;){var d=s[A];if(u&&d[2]?d[1]!==i[d[0]]:!(d[0]in i))return!1}for(;++A<c;){d=s[A];var f=d[0],h=i[f],g=d[1];if(u&&d[2]){if(h===void 0&&!(f in i))return!1}else{var p=new e;if(l)var E=l(h,g,f,i,o,p);if(!(E===void 0?t(g,h,r|n,l,p):E))return!1}}return!0}return $F=a,$F}var e_,VV;function vge(){if(VV)return e_;VV=1;var e=ls();function t(r){return r===r&&!e(r)}return e_=t,e_}var t_,JV;function Rze(){if(JV)return t_;JV=1;var e=vge(),t=Qv();function r(n){for(var a=t(n),i=a.length;i--;){var o=a[i],s=n[o];a[i]=[o,s,e(s)]}return a}return t_=r,t_}var r_,WV;function mge(){if(WV)return r_;WV=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return r_=e,r_}var n_,XV;function Tze(){if(XV)return n_;XV=1;var e=Sze(),t=Rze(),r=mge();function n(a){var i=t(a);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(o){return o===a||e(o,a,i)}}return n_=n,n_}var a_,qV;function CY(){if(qV)return a_;qV=1;var e=Vi(),t=$y(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(e(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||t(i)?!0:n.test(i)||!r.test(i)||o!=null&&i in Object(o)}return a_=a,a_}var i_,ZV;function Qze(){if(ZV)return i_;ZV=1;var e=vY(),t="Expected a function";function r(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var i=function(){var o=arguments,s=a?a.apply(this,o):o[0],l=i.cache;if(l.has(s))return l.get(s);var A=n.apply(this,o);return i.cache=l.set(s,A)||l,A};return i.cache=new(r.Cache||e),i}return r.Cache=e,i_=r,i_}var o_,$V;function Dze(){if($V)return o_;$V=1;var e=Qze(),t=500;function r(n){var a=e(n,function(o){return i.size===t&&i.clear(),o}),i=a.cache;return a}return o_=r,o_}var s_,eJ;function Fze(){if(eJ)return s_;eJ=1;var e=Dze(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(t,function(o,s,l,A){i.push(l?A.replace(r,"$1"):s||o)}),i});return s_=n,s_}var l_,tJ;function wY(){if(tJ)return l_;tJ=1;var e=Vi(),t=CY(),r=Fze(),n=eC();function a(i,o){return e(i)?i:t(i,o)?[i]:r(n(i))}return l_=a,l_}var A_,rJ;function cC(){if(rJ)return A_;rJ=1;var e=$y();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return A_=t,A_}var c_,nJ;function BY(){if(nJ)return c_;nJ=1;var e=wY(),t=cC();function r(n,a){a=e(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[t(a[i++])];return i&&i==o?n:void 0}return c_=r,c_}var u_,aJ;function Ege(){if(aJ)return u_;aJ=1;var e=BY();function t(r,n,a){var i=r==null?void 0:e(r,n);return i===void 0?a:i}return u_=t,u_}var d_,iJ;function _ze(){if(iJ)return d_;iJ=1;function e(t,r){return t!=null&&r in Object(t)}return d_=e,d_}var f_,oJ;function Nze(){if(oJ)return f_;oJ=1;var e=wY(),t=oC(),r=Vi(),n=OS(),a=fY(),i=cC();function o(s,l,A){l=e(l,s);for(var c=-1,u=l.length,d=!1;++c<u;){var f=i(l[c]);if(!(d=s!=null&&A(s,f)))break;s=s[f]}return d||++c!=u?d:(u=s==null?0:s.length,!!u&&a(u)&&n(f,u)&&(r(s)||t(s)))}return f_=o,f_}var h_,sJ;function kze(){if(sJ)return h_;sJ=1;var e=_ze(),t=Nze();function r(n,a){return n!=null&&t(n,a,e)}return h_=r,h_}var g_,lJ;function Pze(){if(lJ)return g_;lJ=1;var e=yY(),t=Ege(),r=kze(),n=CY(),a=vge(),i=mge(),o=cC(),s=1,l=2;function A(c,u){return n(c)&&a(u)?i(o(c),u):function(d){var f=t(d,c);return f===void 0&&f===u?r(d,c):e(u,f,s|l)}}return g_=A,g_}var p_,AJ;function uC(){if(AJ)return p_;AJ=1;function e(t){return t}return p_=e,p_}var v_,cJ;function Oze(){if(cJ)return v_;cJ=1;function e(t){return function(r){return r==null?void 0:r[t]}}return v_=e,v_}var m_,uJ;function zze(){if(uJ)return m_;uJ=1;var e=BY();function t(r){return function(n){return e(n,r)}}return m_=t,m_}var E_,dJ;function jze(){if(dJ)return E_;dJ=1;var e=Oze(),t=zze(),r=CY(),n=cC();function a(i){return r(i)?e(n(i)):t(i)}return E_=a,E_}var y_,fJ;function dC(){if(fJ)return y_;fJ=1;var e=Tze(),t=Pze(),r=uC(),n=Vi(),a=jze();function i(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):a(o)}return y_=i,y_}var C_,hJ;function yge(){if(hJ)return C_;hJ=1;var e=DOe(),t=jOe(),r=dC(),n=Vi();function a(i,o){return function(s,l){var A=n(s)?e:t,c=o?o():{};return A(s,i,r(l,2),c)}}return C_=a,C_}var w_,gJ;function Yze(){if(gJ)return w_;gJ=1;var e=yge(),t=e(function(r,n,a){r[a?0:1].push(n)},function(){return[[],[]]});return w_=t,w_}var Lze=Yze();const Uze=Nr(Lze);var lw,Hze=new Uint8Array(16);function Gze(){if(!lw&&(lw=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!lw))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lw(Hze)}const Kze=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Vze(e){return typeof e=="string"&&Kze.test(e)}var wi=[];for(var B_=0;B_<256;++B_)wi.push((B_+256).toString(16).substr(1));function Jze(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(wi[e[t+0]]+wi[e[t+1]]+wi[e[t+2]]+wi[e[t+3]]+"-"+wi[e[t+4]]+wi[e[t+5]]+"-"+wi[e[t+6]]+wi[e[t+7]]+"-"+wi[e[t+8]]+wi[e[t+9]]+"-"+wi[e[t+10]]+wi[e[t+11]]+wi[e[t+12]]+wi[e[t+13]]+wi[e[t+14]]+wi[e[t+15]]).toLowerCase();if(!Vze(r))throw TypeError("Stringified UUID is invalid");return r}function Wze(e,t,r){e=e||{};var n=e.random||(e.rng||Gze)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Jze(n)}function Cge(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xze}=Object.prototype,{getPrototypeOf:MY}=Object,VS=(e=>t=>{const r=Xze.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Pl=e=>(e=e.toLowerCase(),t=>VS(t)===e),JS=e=>t=>typeof t===e,{isArray:Dv}=Array,hy=JS("undefined");function qze(e){return e!==null&&!hy(e)&&e.constructor!==null&&!hy(e.constructor)&&rs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wge=Pl("ArrayBuffer");function Zze(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wge(e.buffer),t}const $ze=JS("string"),rs=JS("function"),Bge=JS("number"),WS=e=>e!==null&&typeof e=="object",eje=e=>e===!0||e===!1,sI=e=>{if(VS(e)!=="object")return!1;const t=MY(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tje=Pl("Date"),rje=Pl("File"),nje=Pl("Blob"),aje=Pl("FileList"),ije=e=>WS(e)&&rs(e.pipe),oje=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||rs(e.append)&&((t=VS(e))==="formdata"||t==="object"&&rs(e.toString)&&e.toString()==="[object FormData]"))},sje=Pl("URLSearchParams"),[lje,Aje,cje,uje]=["ReadableStream","Request","Response","Headers"].map(Pl),dje=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fC(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Dv(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(n=0;n<o;n++)s=i[n],t.call(null,e[s],s,e)}}function Mge(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Mf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xge=e=>!hy(e)&&e!==Mf;function YO(){const{caseless:e}=xge(this)&&this||{},t={},r=(n,a)=>{const i=e&&Mge(t,a)||a;sI(t[i])&&sI(n)?t[i]=YO(t[i],n):sI(n)?t[i]=YO({},n):Dv(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&fC(arguments[n],r);return t}const fje=(e,t,r,{allOwnKeys:n}={})=>(fC(t,(a,i)=>{r&&rs(a)?e[i]=Cge(a,r):e[i]=a},{allOwnKeys:n}),e),hje=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gje=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},pje=(e,t,r,n)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&MY(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},vje=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},mje=e=>{if(!e)return null;if(Dv(e))return e;let t=e.length;if(!Bge(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Eje=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&MY(Uint8Array)),yje=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},Cje=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},wje=Pl("HTMLFormElement"),Bje=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),pJ=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Mje=Pl("RegExp"),Ige=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};fC(r,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(n[i]=o||a)}),Object.defineProperties(e,n)},xje=e=>{Ige(e,(t,r)=>{if(rs(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(rs(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Ije=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return Dv(e)?n(e):n(String(e).split(t)),r},bje=()=>{},Sje=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,M_="abcdefghijklmnopqrstuvwxyz",vJ="0123456789",bge={DIGIT:vJ,ALPHA:M_,ALPHA_DIGIT:M_+M_.toUpperCase()+vJ},Rje=(e=16,t=bge.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Tje(e){return!!(e&&rs(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Qje=e=>{const t=new Array(10),r=(n,a)=>{if(WS(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=Dv(n)?[]:{};return fC(n,(o,s)=>{const l=r(o,a+1);!hy(l)&&(i[s]=l)}),t[a]=void 0,i}}return n};return r(e,0)},Dje=Pl("AsyncFunction"),Fje=e=>e&&(WS(e)||rs(e))&&rs(e.then)&&rs(e.catch),Sge=((e,t)=>e?setImmediate:t?((r,n)=>(Mf.addEventListener("message",({source:a,data:i})=>{a===Mf&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Mf.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",rs(Mf.postMessage)),_je=typeof queueMicrotask<"u"?queueMicrotask.bind(Mf):typeof process<"u"&&process.nextTick||Sge,_t={isArray:Dv,isArrayBuffer:wge,isBuffer:qze,isFormData:oje,isArrayBufferView:Zze,isString:$ze,isNumber:Bge,isBoolean:eje,isObject:WS,isPlainObject:sI,isReadableStream:lje,isRequest:Aje,isResponse:cje,isHeaders:uje,isUndefined:hy,isDate:tje,isFile:rje,isBlob:nje,isRegExp:Mje,isFunction:rs,isStream:ije,isURLSearchParams:sje,isTypedArray:Eje,isFileList:aje,forEach:fC,merge:YO,extend:fje,trim:dje,stripBOM:hje,inherits:gje,toFlatObject:pje,kindOf:VS,kindOfTest:Pl,endsWith:vje,toArray:mje,forEachEntry:yje,matchAll:Cje,isHTMLForm:wje,hasOwnProperty:pJ,hasOwnProp:pJ,reduceDescriptors:Ige,freezeMethods:xje,toObjectSet:Ije,toCamelCase:Bje,noop:bje,toFiniteNumber:Sje,findKey:Mge,global:Mf,isContextDefined:xge,ALPHABET:bge,generateString:Rje,isSpecCompliantForm:Tje,toJSONObject:Qje,isAsyncFn:Dje,isThenable:Fje,setImmediate:Sge,asap:_je};function un(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}_t.inherits(un,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_t.toJSONObject(this.config),code:this.code,status:this.status}}});const Rge=un.prototype,Tge={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Tge[e]={value:e}});Object.defineProperties(un,Tge);Object.defineProperty(Rge,"isAxiosError",{value:!0});un.from=(e,t,r,n,a,i)=>{const o=Object.create(Rge);return _t.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),un.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const Nje=null;function LO(e){return _t.isPlainObject(e)||_t.isArray(e)}function Qge(e){return _t.endsWith(e,"[]")?e.slice(0,-2):e}function mJ(e,t,r){return e?e.concat(t).map(function(a,i){return a=Qge(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function kje(e){return _t.isArray(e)&&!e.some(LO)}const Pje=_t.toFlatObject(_t,{},null,function(t){return/^is[A-Z]/.test(t)});function XS(e,t,r){if(!_t.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=_t.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!_t.isUndefined(p[g])});const n=r.metaTokens,a=r.visitor||c,i=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&_t.isSpecCompliantForm(t);if(!_t.isFunction(a))throw new TypeError("visitor must be a function");function A(h){if(h===null)return"";if(_t.isDate(h))return h.toISOString();if(!l&&_t.isBlob(h))throw new un("Blob is not supported. Use a Buffer instead.");return _t.isArrayBuffer(h)||_t.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,g,p){let E=h;if(h&&!p&&typeof h=="object"){if(_t.endsWith(g,"{}"))g=n?g:g.slice(0,-2),h=JSON.stringify(h);else if(_t.isArray(h)&&kje(h)||(_t.isFileList(h)||_t.endsWith(g,"[]"))&&(E=_t.toArray(h)))return g=Qge(g),E.forEach(function(C,w){!(_t.isUndefined(C)||C===null)&&t.append(o===!0?mJ([g],w,i):o===null?g:g+"[]",A(C))}),!1}return LO(h)?!0:(t.append(mJ(p,g,i),A(h)),!1)}const u=[],d=Object.assign(Pje,{defaultVisitor:c,convertValue:A,isVisitable:LO});function f(h,g){if(!_t.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(h),_t.forEach(h,function(E,y){(!(_t.isUndefined(E)||E===null)&&a.call(t,E,_t.isString(y)?y.trim():y,g,d))===!0&&f(E,g?g.concat(y):[y])}),u.pop()}}if(!_t.isObject(e))throw new TypeError("data must be an object");return f(e),t}function EJ(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function xY(e,t){this._pairs=[],e&&XS(e,this,t)}const Dge=xY.prototype;Dge.append=function(t,r){this._pairs.push([t,r])};Dge.toString=function(t){const r=t?function(n){return t.call(this,n,EJ)}:EJ;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function Oje(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fge(e,t,r){if(!t)return e;const n=r&&r.encode||Oje;_t.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(t,r):i=_t.isURLSearchParams(t)?t.toString():new xY(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class yJ{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_t.forEach(this.handlers,function(n){n!==null&&t(n)})}}const _ge={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zje=typeof URLSearchParams<"u"?URLSearchParams:xY,jje=typeof FormData<"u"?FormData:null,Yje=typeof Blob<"u"?Blob:null,Lje={isBrowser:!0,classes:{URLSearchParams:zje,FormData:jje,Blob:Yje},protocols:["http","https","file","blob","url","data"]},IY=typeof window<"u"&&typeof document<"u",UO=typeof navigator=="object"&&navigator||void 0,Uje=IY&&(!UO||["ReactNative","NativeScript","NS"].indexOf(UO.product)<0),Hje=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gje=IY&&window.location.href||"http://localhost",Kje=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:IY,hasStandardBrowserEnv:Uje,hasStandardBrowserWebWorkerEnv:Hje,navigator:UO,origin:Gje},Symbol.toStringTag,{value:"Module"})),Ui={...Kje,...Lje};function Vje(e,t){return XS(e,new Ui.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Ui.isNode&&_t.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Jje(e){return _t.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wje(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function Nge(e){function t(r,n,a,i){let o=r[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=i>=r.length;return o=!o&&_t.isArray(a)?a.length:o,l?(_t.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!_t.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&_t.isArray(a[o])&&(a[o]=Wje(a[o])),!s)}if(_t.isFormData(e)&&_t.isFunction(e.entries)){const r={};return _t.forEachEntry(e,(n,a)=>{t(Jje(n),a,r,0)}),r}return null}function Xje(e,t,r){if(_t.isString(e))try{return(t||JSON.parse)(e),_t.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const hC={transitional:_ge,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=_t.isObject(t);if(i&&_t.isHTMLForm(t)&&(t=new FormData(t)),_t.isFormData(t))return a?JSON.stringify(Nge(t)):t;if(_t.isArrayBuffer(t)||_t.isBuffer(t)||_t.isStream(t)||_t.isFile(t)||_t.isBlob(t)||_t.isReadableStream(t))return t;if(_t.isArrayBufferView(t))return t.buffer;if(_t.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Vje(t,this.formSerializer).toString();if((s=_t.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return XS(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),Xje(t)):t}],transformResponse:[function(t){const r=this.transitional||hC.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(_t.isResponse(t)||_t.isReadableStream(t))return t;if(t&&_t.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?un.from(s,un.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ui.classes.FormData,Blob:Ui.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_t.forEach(["delete","get","head","post","put","patch"],e=>{hC.headers[e]={}});const qje=_t.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Zje=e=>{const t={};let r,n,a;return e&&e.split(`
`).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&qje[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},CJ=Symbol("internals");function Um(e){return e&&String(e).trim().toLowerCase()}function lI(e){return e===!1||e==null?e:_t.isArray(e)?e.map(lI):String(e)}function $je(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const e3e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function x_(e,t,r,n,a){if(_t.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!_t.isString(t)){if(_t.isString(n))return t.indexOf(n)!==-1;if(_t.isRegExp(n))return n.test(t)}}function t3e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function r3e(e,t){const r=_t.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}let To=class{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(s,l,A){const c=Um(l);if(!c)throw new Error("header name must be a non-empty string");const u=_t.findKey(a,c);(!u||a[u]===void 0||A===!0||A===void 0&&a[u]!==!1)&&(a[u||l]=lI(s))}const o=(s,l)=>_t.forEach(s,(A,c)=>i(A,c,l));if(_t.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(_t.isString(t)&&(t=t.trim())&&!e3e(t))o(Zje(t),r);else if(_t.isHeaders(t))for(const[s,l]of t.entries())i(l,s,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Um(t),t){const n=_t.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return $je(a);if(_t.isFunction(r))return r.call(this,a,n);if(_t.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Um(t),t){const n=_t.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||x_(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=Um(o),o){const s=_t.findKey(n,o);s&&(!r||x_(n,n[s],s,r))&&(delete n[s],a=!0)}}return _t.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||x_(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return _t.forEach(this,(a,i)=>{const o=_t.findKey(n,i);if(o){r[o]=lI(a),delete r[i];return}const s=t?t3e(i):String(i).trim();s!==i&&delete r[i],r[s]=lI(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return _t.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&_t.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[CJ]=this[CJ]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Um(o);n[s]||(r3e(a,o),n[s]=!0)}return _t.isArray(t)?t.forEach(i):i(t),this}};To.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_t.reduceDescriptors(To.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});_t.freezeMethods(To);function I_(e,t){const r=this||hC,n=t||r,a=To.from(n.headers);let i=n.data;return _t.forEach(e,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function kge(e){return!!(e&&e.__CANCEL__)}function Fv(e,t,r){un.call(this,e??"canceled",un.ERR_CANCELED,t,r),this.name="CanceledError"}_t.inherits(Fv,un,{__CANCEL__:!0});function Pge(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new un("Request failed with status code "+r.status,[un.ERR_BAD_REQUEST,un.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function n3e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function a3e(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const A=Date.now(),c=n[i];o||(o=A),r[a]=l,n[a]=A;let u=i,d=0;for(;u!==a;)d+=r[u++],u=u%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),A-o<t)return;const f=c&&A-c;return f?Math.round(d*1e3/f):void 0}}function i3e(e,t){let r=0,n=1e3/t,a,i;const o=(A,c=Date.now())=>{r=c,a=null,i&&(clearTimeout(i),i=null),e.apply(null,A)};return[(...A)=>{const c=Date.now(),u=c-r;u>=n?o(A,c):(a=A,i||(i=setTimeout(()=>{i=null,o(a)},n-u)))},()=>a&&o(a)]}const ab=(e,t,r=3)=>{let n=0;const a=a3e(50,250);return i3e(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-n,A=a(l),c=o<=s;n=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:A||void 0,estimated:A&&s&&c?(s-o)/A:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(u)},r)},wJ=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},BJ=e=>(...t)=>_t.asap(()=>e(...t)),o3e=Ui.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ui.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ui.origin),Ui.navigator&&/(msie|trident)/i.test(Ui.navigator.userAgent)):()=>!0,s3e=Ui.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const o=[e+"="+encodeURIComponent(t)];_t.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),_t.isString(n)&&o.push("path="+n),_t.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function l3e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function A3e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Oge(e,t){return e&&!l3e(t)?A3e(e,t):t}const MJ=e=>e instanceof To?{...e}:e;function qf(e,t){t=t||{};const r={};function n(A,c,u,d){return _t.isPlainObject(A)&&_t.isPlainObject(c)?_t.merge.call({caseless:d},A,c):_t.isPlainObject(c)?_t.merge({},c):_t.isArray(c)?c.slice():c}function a(A,c,u,d){if(_t.isUndefined(c)){if(!_t.isUndefined(A))return n(void 0,A,u,d)}else return n(A,c,u,d)}function i(A,c){if(!_t.isUndefined(c))return n(void 0,c)}function o(A,c){if(_t.isUndefined(c)){if(!_t.isUndefined(A))return n(void 0,A)}else return n(void 0,c)}function s(A,c,u){if(u in t)return n(A,c);if(u in e)return n(void 0,A)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(A,c,u)=>a(MJ(A),MJ(c),u,!0)};return _t.forEach(Object.keys(Object.assign({},e,t)),function(c){const u=l[c]||a,d=u(e[c],t[c],c);_t.isUndefined(d)&&u!==s||(r[c]=d)}),r}const zge=e=>{const t=qf({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;t.headers=o=To.from(o),t.url=Fge(Oge(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(_t.isFormData(r)){if(Ui.hasStandardBrowserEnv||Ui.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[A,...c]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];o.setContentType([A||"multipart/form-data",...c].join("; "))}}if(Ui.hasStandardBrowserEnv&&(n&&_t.isFunction(n)&&(n=n(t)),n||n!==!1&&o3e(t.url))){const A=a&&i&&s3e.read(i);A&&o.set(a,A)}return t},c3e=typeof XMLHttpRequest<"u",u3e=c3e&&function(e){return new Promise(function(r,n){const a=zge(e);let i=a.data;const o=To.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:A}=a,c,u,d,f,h;function g(){f&&f(),h&&h(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(a.method.toUpperCase(),a.url,!0),p.timeout=a.timeout;function E(){if(!p)return;const C=To.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),B={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:C,config:e,request:p};Pge(function(I){r(I),g()},function(I){n(I),g()},B),p=null}"onloadend"in p?p.onloadend=E:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(E)},p.onabort=function(){p&&(n(new un("Request aborted",un.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new un("Network Error",un.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const B=a.transitional||_ge;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),n(new un(w,B.clarifyTimeoutError?un.ETIMEDOUT:un.ECONNABORTED,e,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&_t.forEach(o.toJSON(),function(w,B){p.setRequestHeader(B,w)}),_t.isUndefined(a.withCredentials)||(p.withCredentials=!!a.withCredentials),s&&s!=="json"&&(p.responseType=a.responseType),A&&([d,h]=ab(A,!0),p.addEventListener("progress",d)),l&&p.upload&&([u,f]=ab(l),p.upload.addEventListener("progress",u),p.upload.addEventListener("loadend",f)),(a.cancelToken||a.signal)&&(c=C=>{p&&(n(!C||C.type?new Fv(null,e,p):C),p.abort(),p=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const y=n3e(a.url);if(y&&Ui.protocols.indexOf(y)===-1){n(new un("Unsupported protocol "+y+":",un.ERR_BAD_REQUEST,e));return}p.send(i||null)})},d3e=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const i=function(A){if(!a){a=!0,s();const c=A instanceof Error?A:this.reason;n.abort(c instanceof un?c:new Fv(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,i(new un(`timeout ${t} of ms exceeded`,un.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(A=>{A.unsubscribe?A.unsubscribe(i):A.removeEventListener("abort",i)}),e=null)};e.forEach(A=>A.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>_t.asap(s),l}},f3e=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},h3e=async function*(e,t){for await(const r of g3e(e))yield*f3e(r,t)},g3e=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},xJ=(e,t,r,n)=>{const a=h3e(e,t);let i=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:A,value:c}=await a.next();if(A){s(),l.close();return}let u=c.byteLength;if(r){let d=i+=u;r(d)}l.enqueue(new Uint8Array(c))}catch(A){throw s(A),A}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},qS=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",jge=qS&&typeof ReadableStream=="function",p3e=qS&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Yge=(e,...t)=>{try{return!!e(...t)}catch{return!1}},v3e=jge&&Yge(()=>{let e=!1;const t=new Request(Ui.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),IJ=64*1024,HO=jge&&Yge(()=>_t.isReadableStream(new Response("").body)),ib={stream:HO&&(e=>e.body)};qS&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ib[t]&&(ib[t]=_t.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new un(`Response type '${t}' is not supported`,un.ERR_NOT_SUPPORT,n)})})})(new Response);const m3e=async e=>{if(e==null)return 0;if(_t.isBlob(e))return e.size;if(_t.isSpecCompliantForm(e))return(await new Request(Ui.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(_t.isArrayBufferView(e)||_t.isArrayBuffer(e))return e.byteLength;if(_t.isURLSearchParams(e)&&(e=e+""),_t.isString(e))return(await p3e(e)).byteLength},E3e=async(e,t)=>{const r=_t.toFiniteNumber(e.getContentLength());return r??m3e(t)},y3e=qS&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:A,headers:c,withCredentials:u="same-origin",fetchOptions:d}=zge(e);A=A?(A+"").toLowerCase():"text";let f=d3e([a,i&&i.toAbortSignal()],o),h;const g=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let p;try{if(l&&v3e&&r!=="get"&&r!=="head"&&(p=await E3e(c,n))!==0){let B=new Request(t,{method:"POST",body:n,duplex:"half"}),M;if(_t.isFormData(n)&&(M=B.headers.get("content-type"))&&c.setContentType(M),B.body){const[I,S]=wJ(p,ab(BJ(l)));n=xJ(B.body,IJ,I,S)}}_t.isString(u)||(u=u?"include":"omit");const E="credentials"in Request.prototype;h=new Request(t,{...d,signal:f,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:E?u:void 0});let y=await fetch(h);const C=HO&&(A==="stream"||A==="response");if(HO&&(s||C&&g)){const B={};["status","statusText","headers"].forEach(R=>{B[R]=y[R]});const M=_t.toFiniteNumber(y.headers.get("content-length")),[I,S]=s&&wJ(M,ab(BJ(s),!0))||[];y=new Response(xJ(y.body,IJ,I,()=>{S&&S(),g&&g()}),B)}A=A||"text";let w=await ib[_t.findKey(ib,A)||"text"](y,e);return!C&&g&&g(),await new Promise((B,M)=>{Pge(B,M,{data:w,headers:To.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:h})})}catch(E){throw g&&g(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new un("Network Error",un.ERR_NETWORK,e,h),{cause:E.cause||E}):un.from(E,E&&E.code,e,h)}}),GO={http:Nje,xhr:u3e,fetch:y3e};_t.forEach(GO,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const bJ=e=>`- ${e}`,C3e=e=>_t.isFunction(e)||e===null||e===!1,Lge={getAdapter:e=>{e=_t.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i<t;i++){r=e[i];let o;if(n=r,!C3e(r)&&(n=GO[(o=String(r)).toLowerCase()],n===void 0))throw new un(`Unknown adapter '${o}'`);if(n)break;a[o||"#"+i]=n}if(!n){const i=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
`+i.map(bJ).join(`
`):" "+bJ(i[0]):"as no adapter specified";throw new un("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:GO};function b_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fv(null,e)}function SJ(e){return b_(e),e.headers=To.from(e.headers),e.data=I_.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lge.getAdapter(e.adapter||hC.adapter)(e).then(function(n){return b_(e),n.data=I_.call(e,e.transformResponse,n),n.headers=To.from(n.headers),n},function(n){return kge(n)||(b_(e),n&&n.response&&(n.response.data=I_.call(e,e.transformResponse,n.response),n.response.headers=To.from(n.response.headers))),Promise.reject(n)})}const Uge="1.7.9",ZS={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ZS[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const RJ={};ZS.transitional=function(t,r,n){function a(i,o){return"[Axios v"+Uge+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(t===!1)throw new un(a(o," has been removed"+(r?" in "+r:"")),un.ERR_DEPRECATED);return r&&!RJ[o]&&(RJ[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};ZS.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function w3e(e,t,r){if(typeof e!="object")throw new un("options must be an object",un.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new un("option "+i+" must be "+l,un.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new un("Unknown option "+i,un.ERR_BAD_OPTION)}}const AI={assertOptions:w3e,validators:ZS},tA=AI.validators;let kf=class{constructor(t){this.defaults=t,this.interceptors={request:new yJ,response:new yJ}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=qf(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&AI.assertOptions(n,{silentJSONParsing:tA.transitional(tA.boolean),forcedJSONParsing:tA.transitional(tA.boolean),clarifyTimeoutError:tA.transitional(tA.boolean)},!1),a!=null&&(_t.isFunction(a)?r.paramsSerializer={serialize:a}:AI.assertOptions(a,{encode:tA.function,serialize:tA.function},!0)),AI.assertOptions(r,{baseUrl:tA.spelling("baseURL"),withXsrfToken:tA.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&_t.merge(i.common,i[r.method]);i&&_t.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),r.headers=To.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const A=[];this.interceptors.response.forEach(function(g){A.push(g.fulfilled,g.rejected)});let c,u=0,d;if(!l){const h=[SJ.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,A),d=h.length,c=Promise.resolve(r);u<d;)c=c.then(h[u++],h[u++]);return c}d=s.length;let f=r;for(u=0;u<d;){const h=s[u++],g=s[u++];try{f=h(f)}catch(p){g.call(this,p);break}}try{c=SJ.call(this,f)}catch(h){return Promise.reject(h)}for(u=0,d=A.length;u<d;)c=c.then(A[u++],A[u++]);return c}getUri(t){t=qf(this.defaults,t);const r=Oge(t.baseURL,t.url);return Fge(r,t.params,t.paramsSerializer)}};_t.forEach(["delete","get","head","options"],function(t){kf.prototype[t]=function(r,n){return this.request(qf(n||{},{method:t,url:r,data:(n||{}).data}))}});_t.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,s){return this.request(qf(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}kf.prototype[t]=r(),kf.prototype[t+"Form"]=r(!0)});let B3e=class Hge{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new Fv(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Hge(function(a){t=a}),cancel:t}}};function M3e(e){return function(r){return e.apply(null,r)}}function x3e(e){return _t.isObject(e)&&e.isAxiosError===!0}const KO={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(KO).forEach(([e,t])=>{KO[t]=e});function Gge(e){const t=new kf(e),r=Cge(kf.prototype.request,t);return _t.extend(r,kf.prototype,t,{allOwnKeys:!0}),_t.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return Gge(qf(e,a))},r}const aa=Gge(hC);aa.Axios=kf;aa.CanceledError=Fv;aa.CancelToken=B3e;aa.isCancel=kge;aa.VERSION=Uge;aa.toFormData=XS;aa.AxiosError=un;aa.Cancel=aa.CanceledError;aa.all=function(t){return Promise.all(t)};aa.spread=M3e;aa.isAxiosError=x3e;aa.mergeConfig=qf;aa.AxiosHeaders=To;aa.formToJSON=e=>Nge(_t.isHTMLForm(e)?new FormData(e):e);aa.getAdapter=Lge.getAdapter;aa.HttpStatusCode=KO;aa.default=aa;const{Axios:$2t,AxiosError:eTt,CanceledError:tTt,isCancel:rTt,CancelToken:nTt,VERSION:aTt,all:iTt,Cancel:oTt,isAxiosError:sTt,spread:lTt,toFormData:ATt,AxiosHeaders:cTt,HttpStatusCode:uTt,formToJSON:dTt,getAdapter:fTt,mergeConfig:hTt}=aa,I3e=async()=>{let e=await r9.getItem("ccn");if(!e){let r=(new Date().getTime()-new Date(2007,8,1).getTime()).toString();e=`PC${r.substr(r.length-6,6)}`,r9.setItem("ccn",e)}return e},ai=aa.create({withCredentials:!0});ai.interceptors.request.use(async e=>{if(e.method==="post"&&e.headers["Content-Type"]==="multipart/form-data"){const t=await I3e();e.data.append("CTI_SESSION_INDEX","0"),e.data.append("CTI_CLIENTNAME",t)}return e.metadata={startTime:new Date},e.data&&e.data instanceof FormData&&([...e.data.entries()].length||delete e.data),e});ai.interceptors.response.use(function(e){e.config.metadata.endTime=new Date;const t=e.config.metadata.endTime-e.config.metadata.startTime;return e.duration=t,t>3e4&&Fa(8510,`${e.config.url} - ${t} ms`),e},function(e){return e.config.metadata.endTime=new Date,e.duration=e.config.metadata.endTime-e.config.metadata.startTime,Promise.reject(e)});var S_,TJ;function b3e(){if(TJ)return S_;TJ=1;function e(re){return re instanceof Map?re.clear=re.delete=re.set=function(){throw new Error("map is read-only")}:re instanceof Set&&(re.add=re.clear=re.delete=function(){throw new Error("set is read-only")}),Object.freeze(re),Object.getOwnPropertyNames(re).forEach(he=>{const Pe=re[he],be=typeof Pe;(be==="object"||be==="function")&&!Object.isFrozen(Pe)&&e(Pe)}),re}class t{constructor(he){he.data===void 0&&(he.data={}),this.data=he.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(re){return re.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function n(re,...he){const Pe=Object.create(null);for(const be in re)Pe[be]=re[be];return he.forEach(function(be){for(const Ve in be)Pe[Ve]=be[Ve]}),Pe}const a="</span>",i=re=>!!re.scope,o=(re,{prefix:he})=>{if(re.startsWith("language:"))return re.replace("language:","language-");if(re.includes(".")){const Pe=re.split(".");return[`${he}${Pe.shift()}`,...Pe.map((be,Ve)=>`${be}${"_".repeat(Ve+1)}`)].join(" ")}return`${he}${re}`};class s{constructor(he,Pe){this.buffer="",this.classPrefix=Pe.classPrefix,he.walk(this)}addText(he){this.buffer+=r(he)}openNode(he){if(!i(he))return;const Pe=o(he.scope,{prefix:this.classPrefix});this.span(Pe)}closeNode(he){i(he)&&(this.buffer+=a)}value(){return this.buffer}span(he){this.buffer+=`<span class="${he}">`}}const l=(re={})=>{const he={children:[]};return Object.assign(he,re),he};class A{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(he){this.top.children.push(he)}openNode(he){const Pe=l({scope:he});this.add(Pe),this.stack.push(Pe)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(he){return this.constructor._walk(he,this.rootNode)}static _walk(he,Pe){return typeof Pe=="string"?he.addText(Pe):Pe.children&&(he.openNode(Pe),Pe.children.forEach(be=>this._walk(he,be)),he.closeNode(Pe)),he}static _collapse(he){typeof he!="string"&&he.children&&(he.children.every(Pe=>typeof Pe=="string")?he.children=[he.children.join("")]:he.children.forEach(Pe=>{A._collapse(Pe)}))}}class c extends A{constructor(he){super(),this.options=he}addText(he){he!==""&&this.add(he)}startScope(he){this.openNode(he)}endScope(){this.closeNode()}__addSublanguage(he,Pe){const be=he.root;Pe&&(be.scope=`language:${Pe}`),this.add(be)}toHTML(){return new s(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(re){return re?typeof re=="string"?re:re.source:null}function d(re){return g("(?=",re,")")}function f(re){return g("(?:",re,")*")}function h(re){return g("(?:",re,")?")}function g(...re){return re.map(Pe=>u(Pe)).join("")}function p(re){const he=re[re.length-1];return typeof he=="object"&&he.constructor===Object?(re.splice(re.length-1,1),he):{}}function E(...re){return"("+(p(re).capture?"":"?:")+re.map(be=>u(be)).join("|")+")"}function y(re){return new RegExp(re.toString()+"|").exec("").length-1}function C(re,he){const Pe=re&&re.exec(he);return Pe&&Pe.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function B(re,{joinWith:he}){let Pe=0;return re.map(be=>{Pe+=1;const Ve=Pe;let lt=u(be),Ze="";for(;lt.length>0;){const Le=w.exec(lt);if(!Le){Ze+=lt;break}Ze+=lt.substring(0,Le.index),lt=lt.substring(Le.index+Le[0].length),Le[0][0]==="\\"&&Le[1]?Ze+="\\"+String(Number(Le[1])+Ve):(Ze+=Le[0],Le[0]==="("&&Pe++)}return Ze}).map(be=>`(${be})`).join(he)}const M=/\b\B/,I="[a-zA-Z]\\w*",S="[a-zA-Z_]\\w*",R="\\b\\d+(\\.\\d+)?",b="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Q="\\b(0b[01]+)",D="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",F=(re={})=>{const he=/^#![ ]*\//;return re.binary&&(re.begin=g(he,/.*\b/,re.binary,/\b.*/)),n({scope:"meta",begin:he,end:/$/,relevance:0,"on:begin":(Pe,be)=>{Pe.index!==0&&be.ignoreMatch()}},re)},N={begin:"\\\\[\\s\\S]",relevance:0},k={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[N]},O={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[N]},P={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},z=function(re,he,Pe={}){const be=n({scope:"comment",begin:re,end:he,contains:[]},Pe);be.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ve=E("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return be.contains.push({begin:g(/[ ]+/,"(",Ve,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),be},j=z("//","$"),V=z("/\\*","\\*/"),L=z("#","$"),K={scope:"number",begin:R,relevance:0},J={scope:"number",begin:b,relevance:0},Y={scope:"number",begin:Q,relevance:0},W={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[N,{begin:/\[/,end:/\]/,relevance:0,contains:[N]}]},q={scope:"title",begin:I,relevance:0},ee={scope:"title",begin:S,relevance:0},ae={begin:"\\.\\s*"+S,relevance:0};var ce=Object.freeze({__proto__:null,APOS_STRING_MODE:k,BACKSLASH_ESCAPE:N,BINARY_NUMBER_MODE:Y,BINARY_NUMBER_RE:Q,COMMENT:z,C_BLOCK_COMMENT_MODE:V,C_LINE_COMMENT_MODE:j,C_NUMBER_MODE:J,C_NUMBER_RE:b,END_SAME_AS_BEGIN:function(re){return Object.assign(re,{"on:begin":(he,Pe)=>{Pe.data._beginMatch=he[1]},"on:end":(he,Pe)=>{Pe.data._beginMatch!==he[1]&&Pe.ignoreMatch()}})},HASH_COMMENT_MODE:L,IDENT_RE:I,MATCH_NOTHING_RE:M,METHOD_GUARD:ae,NUMBER_MODE:K,NUMBER_RE:R,PHRASAL_WORDS_MODE:P,QUOTE_STRING_MODE:O,REGEXP_MODE:W,RE_STARTERS_RE:D,SHEBANG:F,TITLE_MODE:q,UNDERSCORE_IDENT_RE:S,UNDERSCORE_TITLE_MODE:ee});function ue(re,he){re.input[re.index-1]==="."&&he.ignoreMatch()}function ge(re,he){re.className!==void 0&&(re.scope=re.className,delete re.className)}function Se(re,he){he&&re.beginKeywords&&(re.begin="\\b("+re.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",re.__beforeBegin=ue,re.keywords=re.keywords||re.beginKeywords,delete re.beginKeywords,re.relevance===void 0&&(re.relevance=0))}function ye(re,he){Array.isArray(re.illegal)&&(re.illegal=E(...re.illegal))}function pe(re,he){if(re.match){if(re.begin||re.end)throw new Error("begin & end are not supported with match");re.begin=re.match,delete re.match}}function Qe(re,he){re.relevance===void 0&&(re.relevance=1)}const Ue=(re,he)=>{if(!re.beforeMatch)return;if(re.starts)throw new Error("beforeMatch cannot be used with starts");const Pe=Object.assign({},re);Object.keys(re).forEach(be=>{delete re[be]}),re.keywords=Pe.keywords,re.begin=g(Pe.beforeMatch,d(Pe.begin)),re.starts={relevance:0,contains:[Object.assign(Pe,{endsParent:!0})]},re.relevance=0,delete Pe.beforeMatch},tt=["of","and","for","in","not","or","if","then","parent","list","value"],it="keyword";function we(re,he,Pe=it){const be=Object.create(null);return typeof re=="string"?Ve(Pe,re.split(" ")):Array.isArray(re)?Ve(Pe,re):Object.keys(re).forEach(function(lt){Object.assign(be,we(re[lt],he,lt))}),be;function Ve(lt,Ze){he&&(Ze=Ze.map(Le=>Le.toLowerCase())),Ze.forEach(function(Le){const rt=Le.split("|");be[rt[0]]=[lt,ve(rt[0],rt[1])]})}}function ve(re,he){return he?Number(he):Te(re)?0:1}function Te(re){return tt.includes(re.toLowerCase())}const Be={},Ge=re=>{console.error(re)},ht=(re,...he)=>{console.log(`WARN: ${re}`,...he)},We=(re,he)=>{Be[`${re}/${he}`]||(console.log(`Deprecated as of ${re}. ${he}`),Be[`${re}/${he}`]=!0)},Ke=new Error;function Xe(re,he,{key:Pe}){let be=0;const Ve=re[Pe],lt={},Ze={};for(let Le=1;Le<=he.length;Le++)Ze[Le+be]=Ve[Le],lt[Le+be]=!0,be+=y(he[Le-1]);re[Pe]=Ze,re[Pe]._emit=lt,re[Pe]._multi=!0}function $e(re){if(Array.isArray(re.begin)){if(re.skip||re.excludeBegin||re.returnBegin)throw Ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ke;if(typeof re.beginScope!="object"||re.beginScope===null)throw Ge("beginScope must be object"),Ke;Xe(re,re.begin,{key:"beginScope"}),re.begin=B(re.begin,{joinWith:""})}}function pt(re){if(Array.isArray(re.end)){if(re.skip||re.excludeEnd||re.returnEnd)throw Ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ke;if(typeof re.endScope!="object"||re.endScope===null)throw Ge("endScope must be object"),Ke;Xe(re,re.end,{key:"endScope"}),re.end=B(re.end,{joinWith:""})}}function de(re){re.scope&&typeof re.scope=="object"&&re.scope!==null&&(re.beginScope=re.scope,delete re.scope)}function Fe(re){de(re),typeof re.beginScope=="string"&&(re.beginScope={_wrap:re.beginScope}),typeof re.endScope=="string"&&(re.endScope={_wrap:re.endScope}),$e(re),pt(re)}function je(re){function he(Ze,Le){return new RegExp(u(Ze),"m"+(re.case_insensitive?"i":"")+(re.unicodeRegex?"u":"")+(Le?"g":""))}class Pe{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Le,rt){rt.position=this.position++,this.matchIndexes[this.matchAt]=rt,this.regexes.push([rt,Le]),this.matchAt+=y(Le)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Le=this.regexes.map(rt=>rt[1]);this.matcherRe=he(B(Le,{joinWith:"|"}),!0),this.lastIndex=0}exec(Le){this.matcherRe.lastIndex=this.lastIndex;const rt=this.matcherRe.exec(Le);if(!rt)return null;const Qt=rt.findIndex((ur,br)=>br>0&&ur!==void 0),Dt=this.matchIndexes[Qt];return rt.splice(0,Qt),Object.assign(rt,Dt)}}class be{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Le){if(this.multiRegexes[Le])return this.multiRegexes[Le];const rt=new Pe;return this.rules.slice(Le).forEach(([Qt,Dt])=>rt.addRule(Qt,Dt)),rt.compile(),this.multiRegexes[Le]=rt,rt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Le,rt){this.rules.push([Le,rt]),rt.type==="begin"&&this.count++}exec(Le){const rt=this.getMatcher(this.regexIndex);rt.lastIndex=this.lastIndex;let Qt=rt.exec(Le);if(this.resumingScanAtSamePosition()&&!(Qt&&Qt.index===this.lastIndex)){const Dt=this.getMatcher(0);Dt.lastIndex=this.lastIndex+1,Qt=Dt.exec(Le)}return Qt&&(this.regexIndex+=Qt.position+1,this.regexIndex===this.count&&this.considerAll()),Qt}}function Ve(Ze){const Le=new be;return Ze.contains.forEach(rt=>Le.addRule(rt.begin,{rule:rt,type:"begin"})),Ze.terminatorEnd&&Le.addRule(Ze.terminatorEnd,{type:"end"}),Ze.illegal&&Le.addRule(Ze.illegal,{type:"illegal"}),Le}function lt(Ze,Le){const rt=Ze;if(Ze.isCompiled)return rt;[ge,pe,Fe,Ue].forEach(Dt=>Dt(Ze,Le)),re.compilerExtensions.forEach(Dt=>Dt(Ze,Le)),Ze.__beforeBegin=null,[Se,ye,Qe].forEach(Dt=>Dt(Ze,Le)),Ze.isCompiled=!0;let Qt=null;return typeof Ze.keywords=="object"&&Ze.keywords.$pattern&&(Ze.keywords=Object.assign({},Ze.keywords),Qt=Ze.keywords.$pattern,delete Ze.keywords.$pattern),Qt=Qt||/\w+/,Ze.keywords&&(Ze.keywords=we(Ze.keywords,re.case_insensitive)),rt.keywordPatternRe=he(Qt,!0),Le&&(Ze.begin||(Ze.begin=/\B|\b/),rt.beginRe=he(rt.begin),!Ze.end&&!Ze.endsWithParent&&(Ze.end=/\B|\b/),Ze.end&&(rt.endRe=he(rt.end)),rt.terminatorEnd=u(rt.end)||"",Ze.endsWithParent&&Le.terminatorEnd&&(rt.terminatorEnd+=(Ze.end?"|":"")+Le.terminatorEnd)),Ze.illegal&&(rt.illegalRe=he(Ze.illegal)),Ze.contains||(Ze.contains=[]),Ze.contains=[].concat(...Ze.contains.map(function(Dt){return xe(Dt==="self"?Ze:Dt)})),Ze.contains.forEach(function(Dt){lt(Dt,rt)}),Ze.starts&&lt(Ze.starts,Le),rt.matcher=Ve(rt),rt}if(re.compilerExtensions||(re.compilerExtensions=[]),re.contains&&re.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return re.classNameAliases=n(re.classNameAliases||{}),lt(re)}function et(re){return re?re.endsWithParent||et(re.starts):!1}function xe(re){return re.variants&&!re.cachedVariants&&(re.cachedVariants=re.variants.map(function(he){return n(re,{variants:null},he)})),re.cachedVariants?re.cachedVariants:et(re)?n(re,{starts:re.starts?n(re.starts):null}):Object.isFrozen(re)?n(re):re}var Ne="11.11.1";class le extends Error{constructor(he,Pe){super(he),this.name="HTMLInjectionError",this.html=Pe}}const At=r,Bt=n,G=Symbol("nomatch"),Ee=7,Ie=function(re){const he=Object.create(null),Pe=Object.create(null),be=[];let Ve=!0;const lt="Could not find the language '{}', did you forget to load/include a language module?",Ze={disableAutodetect:!0,name:"Plain text",contains:[]};let Le={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:c};function rt(qe){return Le.noHighlightRe.test(qe)}function Qt(qe){let ke=qe.className+" ";ke+=qe.parentNode?qe.parentNode.className:"";const ut=Le.languageDetectRe.exec(ke);if(ut){const gt=Mt(ut[1]);return gt||(ht(lt.replace("{}",ut[1])),ht("Falling back to no-highlight mode for this block.",qe)),gt?ut[1]:"no-highlight"}return ke.split(/\s+/).find(gt=>rt(gt)||Mt(gt))}function Dt(qe,ke,ut){let gt="",bt="";typeof ke=="object"?(gt=qe,ut=ke.ignoreIllegals,bt=ke.language):(We("10.7.0","highlight(lang, code, ...args) has been deprecated."),We("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),bt=qe,gt=ke),ut===void 0&&(ut=!0);const dt={code:gt,language:bt};zr("before:highlight",dt);const se=dt.result?dt.result:ur(dt.language,dt.code,ut);return se.code=dt.code,zr("after:highlight",se),se}function ur(qe,ke,ut,gt){const bt=Object.create(null);function dt(vt,Ot){return vt.keywords[Ot]}function se(){if(!Zt.keywords){pn.addText(Yr);return}let vt=0;Zt.keywordPatternRe.lastIndex=0;let Ot=Zt.keywordPatternRe.exec(Yr),Br="";for(;Ot;){Br+=Yr.substring(vt,Ot.index);const dr=kr.case_insensitive?Ot[0].toLowerCase():Ot[0],yn=dt(Zt,dr);if(yn){const[kn,Aa]=yn;if(pn.addText(Br),Br="",bt[dr]=(bt[dr]||0)+1,bt[dr]<=Ee&&(Di+=Aa),kn.startsWith("_"))Br+=Ot[0];else{const Wr=kr.classNameAliases[kn]||kn;Me(Ot[0],Wr)}}else Br+=Ot[0];vt=Zt.keywordPatternRe.lastIndex,Ot=Zt.keywordPatternRe.exec(Yr)}Br+=Yr.substring(vt),pn.addText(Br)}function Ce(){if(Yr==="")return;let vt=null;if(typeof Zt.subLanguage=="string"){if(!he[Zt.subLanguage]){pn.addText(Yr);return}vt=ur(Zt.subLanguage,Yr,!0,gn[Zt.subLanguage]),gn[Zt.subLanguage]=vt._top}else vt=Er(Yr,Zt.subLanguage.length?Zt.subLanguage:null);Zt.relevance>0&&(Di+=vt.relevance),pn.__addSublanguage(vt._emitter,vt.language)}function fe(){Zt.subLanguage!=null?Ce():se(),Yr=""}function Me(vt,Ot){vt!==""&&(pn.startScope(Ot),pn.addText(vt),pn.endScope())}function Re(vt,Ot){let Br=1;const dr=Ot.length-1;for(;Br<=dr;){if(!vt._emit[Br]){Br++;continue}const yn=kr.classNameAliases[vt[Br]]||vt[Br],kn=Ot[Br];yn?Me(kn,yn):(Yr=kn,se(),Yr=""),Br++}}function Oe(vt,Ot){return vt.scope&&typeof vt.scope=="string"&&pn.openNode(kr.classNameAliases[vt.scope]||vt.scope),vt.beginScope&&(vt.beginScope._wrap?(Me(Yr,kr.classNameAliases[vt.beginScope._wrap]||vt.beginScope._wrap),Yr=""):vt.beginScope._multi&&(Re(vt.beginScope,Ot),Yr="")),Zt=Object.create(vt,{parent:{value:Zt}}),Zt}function st(vt,Ot,Br){let dr=C(vt.endRe,Br);if(dr){if(vt["on:end"]){const yn=new t(vt);vt["on:end"](Ot,yn),yn.isMatchIgnored&&(dr=!1)}if(dr){for(;vt.endsParent&&vt.parent;)vt=vt.parent;return vt}}if(vt.endsWithParent)return st(vt.parent,Ot,Br)}function Ct(vt){return Zt.matcher.regexIndex===0?(Yr+=vt[0],1):(Et=!0,0)}function St(vt){const Ot=vt[0],Br=vt.rule,dr=new t(Br),yn=[Br.__beforeBegin,Br["on:begin"]];for(const kn of yn)if(kn&&(kn(vt,dr),dr.isMatchIgnored))return Ct(Ot);return Br.skip?Yr+=Ot:(Br.excludeBegin&&(Yr+=Ot),fe(),!Br.returnBegin&&!Br.excludeBegin&&(Yr=Ot)),Oe(Br,vt),Br.returnBegin?0:Ot.length}function It(vt){const Ot=vt[0],Br=ke.substring(vt.index),dr=st(Zt,vt,Br);if(!dr)return G;const yn=Zt;Zt.endScope&&Zt.endScope._wrap?(fe(),Me(Ot,Zt.endScope._wrap)):Zt.endScope&&Zt.endScope._multi?(fe(),Re(Zt.endScope,vt)):yn.skip?Yr+=Ot:(yn.returnEnd||yn.excludeEnd||(Yr+=Ot),fe(),yn.excludeEnd&&(Yr=Ot));do Zt.scope&&pn.closeNode(),!Zt.skip&&!Zt.subLanguage&&(Di+=Zt.relevance),Zt=Zt.parent;while(Zt!==dr.parent);return dr.starts&&Oe(dr.starts,vt),yn.returnEnd?0:Ot.length}function kt(){const vt=[];for(let Ot=Zt;Ot!==kr;Ot=Ot.parent)Ot.scope&&vt.unshift(Ot.scope);vt.forEach(Ot=>pn.openNode(Ot))}let nr={};function Qr(vt,Ot){const Br=Ot&&Ot[0];if(Yr+=vt,Br==null)return fe(),0;if(nr.type==="begin"&&Ot.type==="end"&&nr.index===Ot.index&&Br===""){if(Yr+=ke.slice(Ot.index,Ot.index+1),!Ve){const dr=new Error(`0 width match regex (${qe})`);throw dr.languageName=qe,dr.badRule=nr.rule,dr}return 1}if(nr=Ot,Ot.type==="begin")return St(Ot);if(Ot.type==="illegal"&&!ut){const dr=new Error('Illegal lexeme "'+Br+'" for mode "'+(Zt.scope||"<unnamed>")+'"');throw dr.mode=Zt,dr}else if(Ot.type==="end"){const dr=It(Ot);if(dr!==G)return dr}if(Ot.type==="illegal"&&Br==="")return Yr+=`
`,1;if(Je>1e5&&Je>Ot.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Yr+=Br,Br.length}const kr=Mt(qe);if(!kr)throw Ge(lt.replace("{}",qe)),new Error('Unknown language: "'+qe+'"');const or=je(kr);let vr="",Zt=gt||or;const gn={},pn=new Le.__emitter(Le);kt();let Yr="",Di=0,qn=0,Je=0,Et=!1;try{if(kr.__emitTokens)kr.__emitTokens(ke,pn);else{for(Zt.matcher.considerAll();;){Je++,Et?Et=!1:Zt.matcher.considerAll(),Zt.matcher.lastIndex=qn;const vt=Zt.matcher.exec(ke);if(!vt)break;const Ot=ke.substring(qn,vt.index),Br=Qr(Ot,vt);qn=vt.index+Br}Qr(ke.substring(qn))}return pn.finalize(),vr=pn.toHTML(),{language:qe,value:vr,relevance:Di,illegal:!1,_emitter:pn,_top:Zt}}catch(vt){if(vt.message&&vt.message.includes("Illegal"))return{language:qe,value:At(ke),illegal:!0,relevance:0,_illegalBy:{message:vt.message,index:qn,context:ke.slice(qn-100,qn+100),mode:vt.mode,resultSoFar:vr},_emitter:pn};if(Ve)return{language:qe,value:At(ke),illegal:!1,relevance:0,errorRaised:vt,_emitter:pn,_top:Zt};throw vt}}function br(qe){const ke={value:At(qe),illegal:!1,relevance:0,_top:Ze,_emitter:new Le.__emitter(Le)};return ke._emitter.addText(qe),ke}function Er(qe,ke){ke=ke||Le.languages||Object.keys(he);const ut=br(qe),gt=ke.filter(Mt).filter(Ft).map(fe=>ur(fe,qe,!1));gt.unshift(ut);const bt=gt.sort((fe,Me)=>{if(fe.relevance!==Me.relevance)return Me.relevance-fe.relevance;if(fe.language&&Me.language){if(Mt(fe.language).supersetOf===Me.language)return 1;if(Mt(Me.language).supersetOf===fe.language)return-1}return 0}),[dt,se]=bt,Ce=dt;return Ce.secondBest=se,Ce}function hr(qe,ke,ut){const gt=ke&&Pe[ke]||ut;qe.classList.add("hljs"),qe.classList.add(`language-${gt}`)}function Wt(qe){let ke=null;const ut=Qt(qe);if(rt(ut))return;if(zr("before:highlightElement",{el:qe,language:ut}),qe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",qe);return}if(qe.children.length>0&&(Le.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(qe)),Le.throwUnescapedHTML))throw new le("One of your code blocks includes unescaped HTML.",qe.innerHTML);ke=qe;const gt=ke.textContent,bt=ut?Dt(gt,{language:ut,ignoreIllegals:!0}):Er(gt);qe.innerHTML=bt.value,qe.dataset.highlighted="yes",hr(qe,ut,bt.language),qe.result={language:bt.language,re:bt.relevance,relevance:bt.relevance},bt.secondBest&&(qe.secondBest={language:bt.secondBest.language,relevance:bt.secondBest.relevance}),zr("after:highlightElement",{el:qe,result:bt,text:gt})}function $t(qe){Le=Bt(Le,qe)}const tr=()=>{rr(),We("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function ir(){rr(),We("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let ar=!1;function rr(){function qe(){rr()}if(document.readyState==="loading"){ar||window.addEventListener("DOMContentLoaded",qe,!1),ar=!0;return}document.querySelectorAll(Le.cssSelector).forEach(Wt)}function Yt(qe,ke){let ut=null;try{ut=ke(re)}catch(gt){if(Ge("Language definition for '{}' could not be registered.".replace("{}",qe)),Ve)Ge(gt);else throw gt;ut=Ze}ut.name||(ut.name=qe),he[qe]=ut,ut.rawDefinition=ke.bind(null,re),ut.aliases&&xt(ut.aliases,{languageName:qe})}function Vt(qe){delete he[qe];for(const ke of Object.keys(Pe))Pe[ke]===qe&&delete Pe[ke]}function Ut(){return Object.keys(he)}function Mt(qe){return qe=(qe||"").toLowerCase(),he[qe]||he[Pe[qe]]}function xt(qe,{languageName:ke}){typeof qe=="string"&&(qe=[qe]),qe.forEach(ut=>{Pe[ut.toLowerCase()]=ke})}function Ft(qe){const ke=Mt(qe);return ke&&!ke.disableAutodetect}function qt(qe){qe["before:highlightBlock"]&&!qe["before:highlightElement"]&&(qe["before:highlightElement"]=ke=>{qe["before:highlightBlock"](Object.assign({block:ke.el},ke))}),qe["after:highlightBlock"]&&!qe["after:highlightElement"]&&(qe["after:highlightElement"]=ke=>{qe["after:highlightBlock"](Object.assign({block:ke.el},ke))})}function gr(qe){qt(qe),be.push(qe)}function Hr(qe){const ke=be.indexOf(qe);ke!==-1&&be.splice(ke,1)}function zr(qe,ke){const ut=qe;be.forEach(function(gt){gt[ut]&&gt[ut](ke)})}function an(qe){return We("10.7.0","highlightBlock will be removed entirely in v12.0"),We("10.7.0","Please use highlightElement now."),Wt(qe)}Object.assign(re,{highlight:Dt,highlightAuto:Er,highlightAll:rr,highlightElement:Wt,highlightBlock:an,configure:$t,initHighlighting:tr,initHighlightingOnLoad:ir,registerLanguage:Yt,unregisterLanguage:Vt,listLanguages:Ut,getLanguage:Mt,registerAliases:xt,autoDetection:Ft,inherit:Bt,addPlugin:gr,removePlugin:Hr}),re.debugMode=function(){Ve=!1},re.safeMode=function(){Ve=!0},re.versionString=Ne,re.regex={concat:g,lookahead:d,either:E,optional:h,anyNumberOfTimes:f};for(const qe in ce)typeof ce[qe]=="object"&&e(ce[qe]);return Object.assign(re,ce),re},ie=Ie({});return ie.newInstance=()=>Ie({}),S_=ie,ie.HighlightJS=ie,ie.default=ie,S_}var S3e=b3e();const VO=Nr(S3e);function R3e(e){const t=e.regex,r=e.COMMENT("--","$"),n={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},a={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],A=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],c=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],u=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],d=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],f=c,h=[...A,...l].filter(B=>!c.includes(B)),g={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},p={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={match:t.concat(/\b/,t.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function y(B){return t.concat(/\b/,t.either(...B.map(M=>M.replace(/\s+/,"\\s+"))),/\b/)}const C={scope:"keyword",match:y(d),relevance:0};function w(B,{exceptions:M,when:I}={}){const S=I;return M=M||[],B.map(R=>R.match(/\|\d+$/)||M.includes(R)?R:S(R)?`${R}|0`:R)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:w(h,{when:B=>B.length<3}),literal:i,type:s,built_in:u},contains:[{scope:"type",match:y(o)},C,E,g,n,a,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,p]}}function sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QJ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Due(n.key),n)}}function ln(e,t,r){return t&&QJ(e.prototype,t),r&&QJ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function at(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vs(e,t){if(t&&(Xt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return at(e)}function FA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FA=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ma(e)}function xn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WI(e,t)}var T3e=Symbol.for("react.element"),Q3e=Symbol.for("react.transitional.element"),D3e=Symbol.for("react.fragment");function Kge(e){return e&&Xt(e)==="object"&&(e.$$typeof===T3e||e.$$typeof===Q3e)&&e.type===D3e}function ui(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return te.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(ui(n)):Kge(n)&&n.props?r=r.concat(ui(n.props.children,t)):r.push(n))}),r}function DJ(e){return e instanceof HTMLElement||e instanceof SVGElement}function F3e(e){return e&&Xt(e)==="object"&&DJ(e.nativeElement)?e.nativeElement:DJ(e)?e:null}function Y0(e){var t=F3e(e);if(t)return t;if(e instanceof te.Component){var r;return(r=bo.findDOMNode)===null||r===void 0?void 0:r.call(bo,e)}return null}var R_={exports:{}},On={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var FJ;function _3e(){if(FJ)return On;FJ=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(p){if(typeof p=="object"&&p!==null){var E=p.$$typeof;switch(E){case e:switch(p=p.type,p){case r:case a:case n:case A:case c:return p;default:switch(p=p&&p.$$typeof,p){case s:case o:case l:case d:case u:case i:return p;default:return E}}case t:return E}}}return On.ContextConsumer=o,On.ContextProvider=i,On.Element=e,On.ForwardRef=l,On.Fragment=r,On.Lazy=d,On.Memo=u,On.Portal=t,On.Profiler=a,On.StrictMode=n,On.Suspense=A,On.SuspenseList=c,On.isAsyncMode=function(){return!1},On.isConcurrentMode=function(){return!1},On.isContextConsumer=function(p){return g(p)===o},On.isContextProvider=function(p){return g(p)===i},On.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},On.isForwardRef=function(p){return g(p)===l},On.isFragment=function(p){return g(p)===r},On.isLazy=function(p){return g(p)===d},On.isMemo=function(p){return g(p)===u},On.isPortal=function(p){return g(p)===t},On.isProfiler=function(p){return g(p)===a},On.isStrictMode=function(p){return g(p)===n},On.isSuspense=function(p){return g(p)===A},On.isSuspenseList=function(p){return g(p)===c},On.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===a||p===n||p===A||p===c||p===f||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===u||p.$$typeof===i||p.$$typeof===o||p.$$typeof===l||p.$$typeof===h||p.getModuleId!==void 0)},On.typeOf=g,On}var _J;function Vge(){return _J||(_J=1,R_.exports=_3e()),R_.exports}var T_=Vge();function mh(e,t,r){var n=m.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var N3e=Number(m.version.split(".")[0]),ob=function(t,r){typeof t=="function"?t(r):Xt(t)==="object"&&t&&"current"in t&&(t.current=r)},As=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.filter(Boolean);return a.length<=1?a[0]:function(i){r.forEach(function(o){ob(o,i)})}},gC=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return mh(function(){return As.apply(void 0,r)},r,function(a,i){return a.length!==i.length||a.every(function(o,s){return o!==i[s]})})},Eh=function(t){var r,n;if(!t)return!1;if(Jge(t)&&N3e>=19)return!0;var a=T_.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==T_.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==T_.ForwardRef)};function Jge(e){return m.isValidElement(e)&&!Kge(e)}var Wge=function(t){if(t&&Jge(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},JO=m.createContext(null);function k3e(e){var t=e.children,r=e.onBatchResize,n=m.useRef(0),a=m.useRef([]),i=m.useContext(JO),o=m.useCallback(function(s,l,A){n.current+=1;var c=n.current;a.current.push({size:s,element:l,data:A}),Promise.resolve().then(function(){c===n.current&&(r==null||r(a.current),a.current=[])}),i==null||i(s,l,A)},[r,i]);return m.createElement(JO.Provider,{value:o},t)}var Xge=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,i){return a[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a<i.length;a++){var o=i[a];r.call(n,o[1],o[0])}},t}()}(),WO=typeof window<"u"&&typeof document<"u"&&window.document===document,sb=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),P3e=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(sb):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),O3e=2;function z3e(e,t){var r=!1,n=!1,a=0;function i(){r&&(r=!1,e()),n&&s()}function o(){P3e(i)}function s(){var l=Date.now();if(r){if(l-a<O3e)return;n=!0}else r=!0,n=!1,setTimeout(o,t);a=l}return s}var j3e=20,Y3e=["top","right","bottom","left","width","height","size","weight"],L3e=typeof MutationObserver<"u",U3e=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=z3e(this.refresh.bind(this),j3e)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!WO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),L3e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!WO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=Y3e.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),qge=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},tv=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||sb},Zge=$S(0,0,0,0);function lb(e){return parseFloat(e)||0}function NJ(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var i=e["border-"+a+"-width"];return n+lb(i)},0)}function H3e(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var i=a[n],o=e["padding-"+i];r[i]=lb(o)}return r}function G3e(e){var t=e.getBBox();return $S(0,0,t.width,t.height)}function K3e(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Zge;var n=tv(e).getComputedStyle(e),a=H3e(n),i=a.left+a.right,o=a.top+a.bottom,s=lb(n.width),l=lb(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=NJ(n,"left","right")+i),Math.round(l+o)!==r&&(l-=NJ(n,"top","bottom")+o)),!J3e(e)){var A=Math.round(s+i)-t,c=Math.round(l+o)-r;Math.abs(A)!==1&&(s-=A),Math.abs(c)!==1&&(l-=c)}return $S(a.left,a.top,s,l)}var V3e=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof tv(e).SVGGraphicsElement}:function(e){return e instanceof tv(e).SVGElement&&typeof e.getBBox=="function"}}();function J3e(e){return e===tv(e).document.documentElement}function W3e(e){return WO?V3e(e)?G3e(e):K3e(e):Zge}function X3e(e){var t=e.x,r=e.y,n=e.width,a=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(i.prototype);return qge(o,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),o}function $S(e,t,r,n){return{x:e,y:t,width:r,height:n}}var q3e=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$S(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=W3e(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Z3e=function(){function e(t,r){var n=X3e(r);qge(this,{target:t,contentRect:n})}return e}(),$3e=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Xge,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof tv(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new q3e(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof tv(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Z3e(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),$ge=typeof WeakMap<"u"?new WeakMap:new Xge,epe=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=U3e.getInstance(),n=new $3e(t,r,this);$ge.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){epe.prototype[e]=function(){var t;return(t=$ge.get(this))[e].apply(t,arguments)}});var bY=function(){return typeof sb.ResizeObserver<"u"?sb.ResizeObserver:epe}(),Pu=new Map;function eYe(e){e.forEach(function(t){var r,n=t.target;(r=Pu.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var tpe=new bY(eYe);function tYe(e,t){Pu.has(e)||(Pu.set(e,new Set),tpe.observe(e)),Pu.get(e).add(t)}function rYe(e,t){Pu.has(e)&&(Pu.get(e).delete(t),Pu.get(e).size||(tpe.unobserve(e),Pu.delete(e)))}function sa(e){var t=FA();return function(){var r,n=Ma(e);if(t){var a=Ma(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Vs(this,r)}}var nYe=function(e){xn(r,e);var t=sa(r);function r(){return sn(this,r),t.apply(this,arguments)}return ln(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component);function aYe(e,t){var r=e.children,n=e.disabled,a=m.useRef(null),i=m.useRef(null),o=m.useContext(JO),s=typeof r=="function",l=s?r(a):r,A=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=!s&&m.isValidElement(l)&&Eh(l),u=c?Wge(l):null,d=gC(u,a),f=function(){var E;return Y0(a.current)||(a.current&&Xt(a.current)==="object"?Y0((E=a.current)===null||E===void 0?void 0:E.nativeElement):null)||Y0(i.current)};m.useImperativeHandle(t,function(){return f()});var h=m.useRef(e);h.current=e;var g=m.useCallback(function(p){var E=h.current,y=E.onResize,C=E.data,w=p.getBoundingClientRect(),B=w.width,M=w.height,I=p.offsetWidth,S=p.offsetHeight,R=Math.floor(B),b=Math.floor(M);if(A.current.width!==R||A.current.height!==b||A.current.offsetWidth!==I||A.current.offsetHeight!==S){var Q={width:R,height:b,offsetWidth:I,offsetHeight:S};A.current=Q;var D=I===Math.round(B)?B:I,F=S===Math.round(M)?M:S,N=$($({},Q),{},{offsetWidth:D,offsetHeight:F});o==null||o(N,p,C),y&&Promise.resolve().then(function(){y(N,p)})}},[]);return m.useEffect(function(){var p=f();return p&&!n&&tYe(p,g),function(){return rYe(p,g)}},[a.current,n]),m.createElement(nYe,{ref:i},c?m.cloneElement(l,{ref:d}):l)}var iYe=m.forwardRef(aYe),oYe="rc-observer-key";function sYe(e,t){var r=e.children,n=typeof r=="function"?[r]:ui(r);return n.map(function(a,i){var o=(a==null?void 0:a.key)||"".concat(oYe,"-").concat(i);return m.createElement(iYe,oe({},e,{key:o,ref:i===0?t:void 0}),a)})}var ks=m.forwardRef(sYe);ks.Collection=k3e;function Ia(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function lYe(e){if(Array.isArray(e))return wO(e)}function rpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AYe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nt(e){return lYe(e)||rpe(e)||L3(e)||AYe()}function SY(e){return Fue(e)||rpe(e)||L3(e)||_ue()}function wl(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function npe(e,t,r,n){if(!t.length)return r;var a=SY(t),i=a[0],o=a.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=Nt(e):s=$({},e),n&&r===void 0&&o.length===1?delete s[i][o[0]]:s[i]=npe(s[i],o,r,n),s}function gl(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!wl(e,t.slice(0,-1))?e:npe(e,t,r,n)}function cYe(e){return Xt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function kJ(e){return Array.isArray(e)?[]:{}}var uYe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ep(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=kJ(t[0]);return t.forEach(function(a){function i(o,s){var l=new Set(s),A=wl(a,o),c=Array.isArray(A);if(c||cYe(A)){if(!l.has(A)){l.add(A);var u=wl(n,o);c?n=gl(n,o,[]):(!u||Xt(u)!=="object")&&(n=gl(n,o,kJ(A))),uYe(A).forEach(function(d){i([].concat(Nt(o),[d]),l)})}}else n=gl(n,o,A)}i([])}),n}const ape=m.createContext(void 0),ipe={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var dYe={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},ope={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ab={lang:oe({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},dYe),timePickerLocale:oe({},ope)},Ho="${label} is not a valid ${type}",Ps={locale:"en",Pagination:ipe,DatePicker:Ab,TimePicker:ope,Calendar:Ab,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ho,method:Ho,array:Ho,object:Ho,number:Ho,date:Ho,boolean:Ho,integer:Ho,float:Ho,regexp:Ho,email:Ho,url:Ho,hex:Ho},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},cI=oe({},Ps.Modal);function PJ(e){e?cI=oe(oe({},cI),e):cI=oe({},Ps.Modal)}function spe(){return cI}var RY=m.createContext(void 0),fYe="internalMark",hYe=function(t){var r=t.locale,n=r===void 0?{}:r,a=t.children;t._ANT_MARK__,m.useEffect(function(){return PJ(n&&n.Modal),function(){PJ()}},[n]);var i=m.useMemo(function(){return oe(oe({},n),{exist:!0})},[n]);return m.createElement(RY.Provider,{value:i},a)},_A=function(t){var r=t.componentName,n=r===void 0?"global":r,a=t.defaultLocale,i=t.children,o=m.useContext(RY),s=m.useMemo(function(){var A,c=a||Ps[n],u=(A=o==null?void 0:o[n])!==null&&A!==void 0?A:{};return oe(oe({},c instanceof Function?c():c),u||{})},[n,a,o]),l=m.useMemo(function(){var A=o&&o.locale;return o&&o.exist&&!A?Ps.locale:A},[o]);return i(s,l,o)},lpe=function(t,r){var n=m.useContext(RY),a=m.useMemo(function(){var i,o=Ps[t],s=(i=n==null?void 0:n[t])!==null&&i!==void 0?i:{};return oe(oe({},typeof o=="function"?o():o),s||{})},[t,r,n]);return[a]};function Ape(e,t){this.v=e,this.k=t}function ji(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}ji=function(o,s,l,A){if(s)a?a(o,s,{value:l,enumerable:!A,configurable:!A,writable:!A}):o[s]=l;else{var c=function(d,f){ji(o,d,function(h){return this._invoke(d,f,h)})};c("next",0),c("throw",1),c("return",2)}},ji(e,t,r,n)}function TY(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function i(f,h,g,p){var E=h&&h.prototype instanceof s?h:s,y=Object.create(E.prototype);return ji(y,"_invoke",function(C,w,B){var M,I,S,R=0,b=B||[],Q=!1,D={p:0,n:0,v:e,a:F,f:F.bind(e,4),d:function(k,O){return M=k,I=0,S=e,D.n=O,o}};function F(N,k){for(I=N,S=k,t=0;!Q&&R&&!O&&t<b.length;t++){var O,P=b[t],z=D.p,j=P[2];N>3?(O=j===k)&&(S=P[(I=P[4])?5:(I=3,3)],P[4]=P[5]=e):P[0]<=z&&((O=N<2&&z<P[1])?(I=0,D.v=k,D.n=P[1]):z<j&&(O=N<3||P[0]>k||k>j)&&(P[4]=N,P[5]=k,D.n=j,I=0))}if(O||N>1)return o;throw Q=!0,k}return function(N,k,O){if(R>1)throw TypeError("Generator is already running");for(Q&&k===1&&F(k,O),I=k,S=O;(t=I<2?e:S)||!Q;){M||(I?I<3?(I>1&&(D.n=-1),F(I,S)):D.n=S:D.v=S);try{if(R=2,M){if(I||(N="next"),t=M[N]){if(!(t=t.call(M,S)))throw TypeError("iterator result is not an object");if(!t.done)return t;S=t.value,I<2&&(I=0)}else I===1&&(t=M.return)&&t.call(M),I<2&&(S=TypeError("The iterator does not provide a '"+N+"' method"),I=1);M=e}else if((t=(Q=D.n<0)?S:C.call(w,D))!==o)break}catch(P){M=e,I=1,S=P}finally{R=1}}return{value:t,done:Q}}}(f,g,p),!0),y}var o={};function s(){}function l(){}function A(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(ji(t={},n,function(){return this}),t),u=A.prototype=s.prototype=Object.create(c);function d(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,A):(f.__proto__=A,ji(f,a,"GeneratorFunction")),f.prototype=Object.create(u),f}return l.prototype=A,ji(u,"constructor",A),ji(A,"constructor",l),l.displayName="GeneratorFunction",ji(A,a,"GeneratorFunction"),ji(u),ji(u,a,"Generator"),ji(u,n,function(){return this}),ji(u,"toString",function(){return"[object Generator]"}),(TY=function(){return{w:i,m:d}})()}function cb(e,t){function r(a,i,o,s){try{var l=e[a](i),A=l.value;return A instanceof Ape?t.resolve(A.v).then(function(c){r("next",c,o,s)},function(c){r("throw",c,o,s)}):t.resolve(A).then(function(c){l.value=c,o(l)},function(c){return r("throw",c,o,s)})}catch(c){s(c)}}var n;this.next||(ji(cb.prototype),ji(cb.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ji(this,"_invoke",function(a,i,o){function s(){return new t(function(l,A){r(a,o,l,A)})}return n=n?n.then(s,s):s()},!0)}function cpe(e,t,r,n,a){return new cb(TY().w(e,t,r,n),a||Promise)}function gYe(e,t,r,n,a){var i=cpe(e,t,r,n,a);return i.next().then(function(o){return o.done?o.value:i.next()})}function pYe(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function a(){for(;r.length;)if((n=r.pop())in t)return a.value=n,a.done=!1,a;return a.done=!0,a}}function OJ(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(Xt(e)+" is not iterable")}function di(){var e=TY(),t=e.m(di),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(o){var s=typeof o=="function"&&o.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function i(o){var s,l;return function(A){s||(s={stop:function(){return l(A.a,2)},catch:function(){return A.v},abrupt:function(u,d){return l(A.a,a[u],d)},delegateYield:function(u,d,f){return s.resultName=d,l(A.d,OJ(u),f)},finish:function(u){return l(A.f,u)}},l=function(u,d,f){A.p=s.prev,A.n=s.next;try{return u(d,f)}finally{s.next=A.n}}),s.resultName&&(s[s.resultName]=A.v,s.resultName=void 0),s.sent=A.v,s.next=A.n;try{return o.call(this,s)}finally{A.p=s.prev,A.n=s.next}}}return(di=function(){return{wrap:function(l,A,c,u){return e.w(i(l),A,c,u&&u.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,A){return new Ape(l,A)},AsyncIterator:cb,async:function(l,A,c,u,d){return(n(A)?cpe:gYe)(i(l),A,c,u,d)},keys:pYe,values:OJ}})()}function zJ(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(A){return void r(A)}s.done?t(l):Promise.resolve(l).then(n,a)}function hd(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(l){zJ(i,n,a,o,s,"next",l)}function s(l){zJ(i,n,a,o,s,"throw",l)}o(void 0)})}}var pC=$({},y2e),vYe=pC.version,Q_=pC.render,mYe=pC.unmountComponentAtNode,eR;try{var EYe=Number((vYe||"").split(".")[0]);EYe>=18&&(eR=pC.createRoot)}catch{}function jJ(e){var t=pC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Xt(t)==="object"&&(t.usingClientEntryPoint=e)}var ub="__rc_react_root__";function yYe(e,t){jJ(!0);var r=t[ub]||eR(t);jJ(!1),r.render(e),t[ub]=r}function CYe(e,t){Q_==null||Q_(e,t)}function upe(e,t){if(eR){yYe(e,t);return}CYe(e,t)}function wYe(e){return XO.apply(this,arguments)}function XO(){return XO=hd(di().mark(function e(t){return di().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[ub])===null||a===void 0||a.unmount(),delete t[ub]}));case 1:case"end":return n.stop()}},e)})),XO.apply(this,arguments)}function BYe(e){mYe(e)}function dpe(e){return qO.apply(this,arguments)}function qO(){return qO=hd(di().mark(function e(t){return di().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(eR===void 0){n.next=2;break}return n.abrupt("return",wYe(t));case 2:BYe(t);case 3:case"end":return n.stop()}},e)})),qO.apply(this,arguments)}var MYe=["children"],fpe=m.createContext({});function xYe(e){var t=e.children,r=Tr(e,MYe);return m.createElement(fpe.Provider,{value:r},t)}var IYe=function(e){xn(r,e);var t=sa(r);function r(){return sn(this,r),t.apply(this,arguments)}return ln(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component);function Os(e){var t=m.useRef();t.current=e;var r=m.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}var YJ=Gi()?m.useLayoutEffect:m.useEffect,Wn=function(t,r){var n=m.useRef(!0);YJ(function(){return t(n.current)},r),YJ(function(){return n.current=!1,function(){n.current=!0}},[])},Tp=function(t,r){Wn(function(n){if(!n)return t()},r)};function $u(e){var t=m.useRef(!1),r=m.useState(e),n=De(r,2),a=n[0],i=n[1];m.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(s,l){l&&t.current||i(s)}return[a,o]}function D_(e){return e!==void 0}function Qn(e,t){var r=t||{},n=r.defaultValue,a=r.value,i=r.onChange,o=r.postState,s=$u(function(){return D_(a)?a:D_(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=De(s,2),A=l[0],c=l[1],u=a!==void 0?a:A,d=o?o(u):u,f=Os(i),h=$u([u]),g=De(h,2),p=g[0],E=g[1];Tp(function(){var C=p[0];A!==C&&f(A,C)},[p]),Tp(function(){D_(a)||c(a)},[a]);var y=Os(function(C,w){c(C,w),E([u],w)});return[d,y]}function bYe(e){var t=m.useReducer(function(s){return s+1},0),r=De(t,2),n=r[1],a=m.useRef(e),i=Os(function(){return a.current}),o=Os(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[i,o]}var Bu="none",Aw="appear",cw="enter",uw="leave",LJ="none",pl="prepare",yp="start",Cp="active",QY="end",hpe="prepared";function UJ(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function SYe(e,t){var r={animationend:UJ("Animation","AnimationEnd"),transitionend:UJ("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var RYe=SYe(Gi(),typeof window<"u"?window:{}),gpe={};if(Gi()){var TYe=document.createElement("div");gpe=TYe.style}var dw={};function ppe(e){if(dw[e])return dw[e];var t=RYe[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var i=r[a];if(Object.prototype.hasOwnProperty.call(t,i)&&i in gpe)return dw[e]=t[i],dw[e]}return""}var vpe=ppe("animationend"),mpe=ppe("transitionend"),Epe=!!(vpe&&mpe),HJ=vpe||"animationend",GJ=mpe||"transitionend";function KJ(e,t){if(!e)return null;if(Xt(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const QYe=function(e){var t=m.useRef();function r(a){a&&(a.removeEventListener(GJ,e),a.removeEventListener(HJ,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(GJ,e),a.addEventListener(HJ,e),t.current=a)}return m.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var ype=Gi()?m.useLayoutEffect:m.useEffect,Cpe=function(t){return+setTimeout(t,16)},wpe=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Cpe=function(t){return window.requestAnimationFrame(t)},wpe=function(t){return window.cancelAnimationFrame(t)});var VJ=0,DY=new Map;function Bpe(e){DY.delete(e)}var fn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;VJ+=1;var n=VJ;function a(i){if(i===0)Bpe(n),t();else{var o=Cpe(function(){a(i-1)});DY.set(n,o)}}return a(r),n};fn.cancel=function(e){var t=DY.get(e);return Bpe(e),wpe(t)};const DYe=function(){var e=m.useRef(null);function t(){fn.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=fn(function(){a<=1?n({isCanceled:function(){return i!==e.current}}):r(n,a-1)});e.current=i}return m.useEffect(function(){return function(){t()}},[]),[r,t]};var FYe=[pl,yp,Cp,QY],_Ye=[pl,hpe],Mpe=!1,NYe=!0;function xpe(e){return e===Cp||e===QY}const kYe=function(e,t,r){var n=$u(LJ),a=De(n,2),i=a[0],o=a[1],s=DYe(),l=De(s,2),A=l[0],c=l[1];function u(){o(pl,!0)}var d=t?_Ye:FYe;return ype(function(){if(i!==LJ&&i!==QY){var f=d.indexOf(i),h=d[f+1],g=r(i);g===Mpe?o(h,!0):h&&A(function(p){function E(){p.isCanceled()||o(h,!0)}g===!0?E():Promise.resolve(g).then(E)})}},[e,i]),m.useEffect(function(){return function(){c()}},[]),[u,i]};function PYe(e,t,r,n){var a=n.motionEnter,i=a===void 0?!0:a,o=n.motionAppear,s=o===void 0?!0:o,l=n.motionLeave,A=l===void 0?!0:l,c=n.motionDeadline,u=n.motionLeaveImmediately,d=n.onAppearPrepare,f=n.onEnterPrepare,h=n.onLeavePrepare,g=n.onAppearStart,p=n.onEnterStart,E=n.onLeaveStart,y=n.onAppearActive,C=n.onEnterActive,w=n.onLeaveActive,B=n.onAppearEnd,M=n.onEnterEnd,I=n.onLeaveEnd,S=n.onVisibleChanged,R=$u(),b=De(R,2),Q=b[0],D=b[1],F=bYe(Bu),N=De(F,2),k=N[0],O=N[1],P=$u(null),z=De(P,2),j=z[0],V=z[1],L=k(),K=m.useRef(!1),J=m.useRef(null);function Y(){return r()}var W=m.useRef(!1);function q(){O(Bu),V(null,!0)}var ee=Os(function(ve){var Te=k();if(Te!==Bu){var Be=Y();if(!(ve&&!ve.deadline&&ve.target!==Be)){var Ge=W.current,ht;Te===Aw&&Ge?ht=B==null?void 0:B(Be,ve):Te===cw&&Ge?ht=M==null?void 0:M(Be,ve):Te===uw&&Ge&&(ht=I==null?void 0:I(Be,ve)),Ge&&ht!==!1&&q()}}}),ae=QYe(ee),ne=De(ae,1),ce=ne[0],ue=function(Te){switch(Te){case Aw:return X(X(X({},pl,d),yp,g),Cp,y);case cw:return X(X(X({},pl,f),yp,p),Cp,C);case uw:return X(X(X({},pl,h),yp,E),Cp,w);default:return{}}},ge=m.useMemo(function(){return ue(L)},[L]),Se=kYe(L,!e,function(ve){if(ve===pl){var Te=ge[pl];return Te?Te(Y()):Mpe}if(Qe in ge){var Be;V(((Be=ge[Qe])===null||Be===void 0?void 0:Be.call(ge,Y(),null))||null)}return Qe===Cp&&L!==Bu&&(ce(Y()),c>0&&(clearTimeout(J.current),J.current=setTimeout(function(){ee({deadline:!0})},c))),Qe===hpe&&q(),NYe}),ye=De(Se,2),pe=ye[0],Qe=ye[1],Ue=xpe(Qe);W.current=Ue;var tt=m.useRef(null);ype(function(){if(!(K.current&&tt.current===t)){D(t);var ve=K.current;K.current=!0;var Te;!ve&&t&&s&&(Te=Aw),ve&&t&&i&&(Te=cw),(ve&&!t&&A||!ve&&u&&!t&&A)&&(Te=uw);var Be=ue(Te);Te&&(e||Be[pl])?(O(Te),pe()):O(Bu),tt.current=t}},[t]),m.useEffect(function(){(L===Aw&&!s||L===cw&&!i||L===uw&&!A)&&O(Bu)},[s,i,A]),m.useEffect(function(){return function(){K.current=!1,clearTimeout(J.current)}},[]);var it=m.useRef(!1);m.useEffect(function(){Q&&(it.current=!0),Q!==void 0&&L===Bu&&((it.current||Q)&&(S==null||S(Q)),it.current=!0)},[Q,L]);var we=j;return ge[pl]&&Qe===yp&&(we=$({transition:"none"},we)),[L,Qe,we,Q??t]}function OYe(e){var t=e;Xt(e)==="object"&&(t=e.transitionSupport);function r(a,i){return!!(a.motionName&&t&&i!==!1)}var n=m.forwardRef(function(a,i){var o=a.visible,s=o===void 0?!0:o,l=a.removeOnLeave,A=l===void 0?!0:l,c=a.forceRender,u=a.children,d=a.motionName,f=a.leavedClassName,h=a.eventProps,g=m.useContext(fpe),p=g.motion,E=r(a,p),y=m.useRef(),C=m.useRef();function w(){try{return y.current instanceof HTMLElement?y.current:Y0(C.current)}catch{return null}}var B=PYe(E,s,w,a),M=De(B,4),I=M[0],S=M[1],R=M[2],b=M[3],Q=m.useRef(b);b&&(Q.current=!0);var D=m.useCallback(function(z){y.current=z,ob(i,z)},[i]),F,N=$($({},h),{},{visible:s});if(!u)F=null;else if(I===Bu)b?F=u($({},N),D):!A&&Q.current&&f?F=u($($({},N),{},{className:f}),D):c||!A&&!f?F=u($($({},N),{},{style:{display:"none"}}),D):F=null;else{var k;S===pl?k="prepare":xpe(S)?k="active":S===yp&&(k="start");var O=KJ(d,"".concat(I,"-").concat(k));F=u($($({},N),{},{className:He(KJ(d,I),X(X({},O,O&&k),d,typeof d=="string")),style:R}),D)}if(m.isValidElement(F)&&Eh(F)){var P=Wge(F);P||(F=m.cloneElement(F,{ref:D}))}return m.createElement(IYe,{ref:C},F)});return n.displayName="CSSMotion",n}const Ri=OYe(Epe);var ZO="add",$O="keep",ez="remove",F_="removed";function zYe(e){var t;return e&&Xt(e)==="object"&&"key"in e?t=e:t={key:e},$($({},t),{},{key:String(t.key)})}function tz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(zYe)}function jYe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,i=tz(e),o=tz(t);i.forEach(function(A){for(var c=!1,u=n;u<a;u+=1){var d=o[u];if(d.key===A.key){n<u&&(r=r.concat(o.slice(n,u).map(function(f){return $($({},f),{},{status:ZO})})),n=u),r.push($($({},d),{},{status:$O})),n+=1,c=!0;break}}c||r.push($($({},A),{},{status:ez}))}),n<a&&(r=r.concat(o.slice(n).map(function(A){return $($({},A),{},{status:ZO})})));var s={};r.forEach(function(A){var c=A.key;s[c]=(s[c]||0)+1});var l=Object.keys(s).filter(function(A){return s[A]>1});return l.forEach(function(A){r=r.filter(function(c){var u=c.key,d=c.status;return u!==A||d!==ez}),r.forEach(function(c){c.key===A&&(c.status=$O)})}),r}var YYe=["component","children","onVisibleChanged","onAllRemoved"],LYe=["status"],UYe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function HYe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ri,r=function(n){xn(i,n);var a=sa(i);function i(){var o;sn(this,i);for(var s=arguments.length,l=new Array(s),A=0;A<s;A++)l[A]=arguments[A];return o=a.call.apply(a,[this].concat(l)),X(at(o),"state",{keyEntities:[]}),X(at(o),"removeKey",function(c){o.setState(function(u){var d=u.keyEntities.map(function(f){return f.key!==c?f:$($({},f),{},{status:F_})});return{keyEntities:d}},function(){var u=o.state.keyEntities,d=u.filter(function(f){var h=f.status;return h!==F_}).length;d===0&&o.props.onAllRemoved&&o.props.onAllRemoved()})}),o}return ln(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,A=this.props,c=A.component,u=A.children,d=A.onVisibleChanged;A.onAllRemoved;var f=Tr(A,YYe),h=c||m.Fragment,g={};return UYe.forEach(function(p){g[p]=f[p],delete f[p]}),delete f.keys,m.createElement(h,f,l.map(function(p,E){var y=p.status,C=Tr(p,LYe),w=y===ZO||y===$O;return m.createElement(t,oe({},g,{key:C.key,visible:w,eventProps:C,onVisibleChanged:function(M){d==null||d(M,{key:C.key}),M||s.removeKey(C.key)}}),function(B,M){return u($($({},B),{},{index:E}),M)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var A=s.keys,c=l.keyEntities,u=tz(A),d=jYe(c,u);return{keyEntities:d.filter(function(f){var h=c.find(function(g){var p=g.key;return f.key===p});return!(h&&h.status===F_&&f.status===ez)})}}}]),i}(m.Component);return X(r,"defaultProps",{component:"div"}),r}const FY=HYe(Epe),GYe=Object.freeze(Object.defineProperty({__proto__:null,CSSMotionList:FY,Provider:xYe,default:Ri},Symbol.toStringTag,{value:"Module"}));var _Y=function(e){xn(r,e);var t=sa(r);function r(){var n;sn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.closeTimer=null,n.close=function(s){s&&s.stopPropagation(),n.clearCloseTimer();var l=n.props,A=l.onClose,c=l.noticeKey;A&&A(c)},n.startCloseTimer=function(){n.props.duration&&(n.closeTimer=window.setTimeout(function(){n.close()},n.props.duration*1e3))},n.clearCloseTimer=function(){n.closeTimer&&(clearTimeout(n.closeTimer),n.closeTimer=null)},n}return ln(r,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(a){(this.props.duration!==a.duration||this.props.updateMark!==a.updateMark||this.props.visible!==a.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var a=this,i=this.props,o=i.prefixCls,s=i.className,l=i.closable,A=i.closeIcon,c=i.style,u=i.onClick,d=i.children,f=i.holder,h="".concat(o,"-notice"),g=Object.keys(this.props).reduce(function(E,y){return(y.substr(0,5)==="data-"||y.substr(0,5)==="aria-"||y==="role")&&(E[y]=a.props[y]),E},{}),p=m.createElement("div",oe({className:He(h,s,X({},"".concat(h,"-closable"),l)),style:c,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:u},g),m.createElement("div",{className:"".concat(h,"-content")},d),l?m.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(h,"-close")},A||m.createElement("span",{className:"".concat(h,"-close-x")})):null);return f?bo.createPortal(p,f):p}}]),r}(m.Component);_Y.defaultProps={onClose:function(){},duration:1.5};function NY(e){var t=m.useRef({}),r=m.useState([]),n=De(r,2),a=n[0],i=n[1];function o(s){var l=!0;e.add(s,function(A,c){var u=c.key;if(A&&(!t.current[u]||l)){var d=m.createElement(_Y,oe({},c,{holder:A}));t.current[u]=d,i(function(f){var h=f.findIndex(function(p){return p.key===c.key});if(h===-1)return[].concat(Nt(f),[d]);var g=Nt(f);return g[h]=d,g})}l=!1})}return[o,m.createElement(m.Fragment,null,a)]}var KYe=["getContainer"],JJ=0,VYe=Date.now();function WJ(){var e=JJ;return JJ+=1,"rcNotification_".concat(VYe,"_").concat(e)}var Zf=function(e){xn(r,e);var t=sa(r);function r(){var n;sn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.state={notices:[]},n.hookRefs=new Map,n.add=function(s,l){var A,c=(A=s.key)!==null&&A!==void 0?A:WJ(),u=$($({},s),{},{key:c}),d=n.props.maxCount;n.setState(function(f){var h=f.notices,g=h.map(function(E){return E.notice.key}).indexOf(c),p=h.concat();return g!==-1?p.splice(g,1,{notice:u,holderCallback:l}):(d&&h.length>=d&&(u.key=p[0].notice.key,u.updateMark=WJ(),u.userPassKey=c,p.shift()),p.push({notice:u,holderCallback:l})),{notices:p}})},n.remove=function(s){n.setState(function(l){var A=l.notices;return{notices:A.filter(function(c){var u=c.notice,d=u.key,f=u.userPassKey,h=f??d;return h!==s})}})},n.noticePropsMap={},n}return ln(r,[{key:"getTransitionName",value:function(){var a=this.props,i=a.prefixCls,o=a.animation,s=this.props.transitionName;return!s&&o&&(s="".concat(i,"-").concat(o)),s}},{key:"render",value:function(){var a=this,i=this.state.notices,o=this.props,s=o.prefixCls,l=o.className,A=o.closeIcon,c=o.style,u=[];return i.forEach(function(d,f){var h=d.notice,g=d.holderCallback,p=f===i.length-1?h.updateMark:void 0,E=h.key,y=h.userPassKey,C=$($($({prefixCls:s,closeIcon:A},h),h.props),{},{key:E,noticeKey:y||E,updateMark:p,onClose:function(B){var M;a.remove(B),(M=h.onClose)===null||M===void 0||M.call(h)},onClick:h.onClick,children:h.content});u.push(E),a.noticePropsMap[E]={props:C,holderCallback:g}}),m.createElement("div",{className:He(s,l),style:c},m.createElement(FY,{keys:u,motionName:this.getTransitionName(),onVisibleChanged:function(f,h){var g=h.key;f||delete a.noticePropsMap[g]}},function(d){var f=d.key,h=d.className,g=d.style,p=d.visible,E=a.noticePropsMap[f],y=E.props,C=E.holderCallback;return C?m.createElement("div",{key:f,className:He(h,"".concat(s,"-hook-holder")),style:$({},g),ref:function(B){typeof f>"u"||(B?(a.hookRefs.set(f,B),C(B,y)):a.hookRefs.delete(f))}}):m.createElement(_Y,oe({},y,{className:He(h,y==null?void 0:y.className),style:$($({},g),y==null?void 0:y.style),visible:p}))}))}}]),r}(m.Component);Zf.newInstance=void 0;Zf.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}};Zf.newInstance=function(t,r){var n=t||{},a=n.getContainer,i=Tr(n,KYe),o=document.createElement("div");if(a){var s=a();s.appendChild(o)}else document.body.appendChild(o);var l=!1;function A(c){l||(l=!0,r({notice:function(d){c.add(d)},removeNotice:function(d){c.remove(d)},component:c,destroy:function(){dpe(o),o.parentNode&&o.parentNode.removeChild(o)},useNotification:function(){return NY(c)}}))}upe(m.createElement(Zf,oe({},i,{ref:A})),o)};const JYe=Object.freeze(Object.defineProperty({__proto__:null,default:Zf},Symbol.toStringTag,{value:"Module"}));function WYe(e,t){var r=function(){var a,i,o=null,s={add:function(g,p){o==null||o.component.add(g,p)}},l=NY(s),A=De(l,2),c=A[0],u=A[1];function d(h){var g=h.prefixCls,p=a("message",g),E=a(),y=h.key||Fpe(),C=new Promise(function(B){var M=function(){return typeof h.onClose=="function"&&h.onClose(),B(!0)};e(oe(oe({},h),{prefixCls:p,rootPrefixCls:E,getPopupContainer:i}),function(I){var S=I.prefixCls,R=I.instance;o=R,c(t(oe(oe({},h),{key:y,onClose:M}),S))})}),w=function(){o&&o.removeNotice(y)};return w.then=function(B,M){return C.then(B,M)},w.promise=C,w}var f=m.useRef({});return f.current.open=d,kpe.forEach(function(h){return Ope(f.current,h)}),[f.current,m.createElement(gd,{key:"holder"},function(h){return a=h.getPrefixCls,i=h.getPopupContainer,u})]};return r}var no,Ipe=3,bpe,XYe=1,Spe="",rz="move-up",Rpe=!1,Tpe,Qpe,Dpe=!1;function Fpe(){return XYe++}function qYe(e){e.top!==void 0&&(bpe=e.top,no=null),e.duration!==void 0&&(Ipe=e.duration),e.prefixCls!==void 0&&(Spe=e.prefixCls),e.getContainer!==void 0&&(Tpe=e.getContainer,no=null),e.transitionName!==void 0&&(rz=e.transitionName,no=null,Rpe=!0),e.maxCount!==void 0&&(Qpe=e.maxCount,no=null),e.rtl!==void 0&&(Dpe=e.rtl)}function _pe(e,t){var r=e.prefixCls,n=e.getPopupContainer,a=kY(),i=a.getPrefixCls,o=a.getRootPrefixCls,s=a.getIconPrefixCls,l=i("message",r||Spe),A=o(e.rootPrefixCls,l),c=s();if(no){t({prefixCls:l,rootPrefixCls:A,iconPrefixCls:c,instance:no});return}var u={prefixCls:l,transitionName:Rpe?rz:"".concat(A,"-").concat(rz),style:{top:bpe},getContainer:Tpe||n,maxCount:Qpe};Zf.newInstance(u,function(d){if(no){t({prefixCls:l,rootPrefixCls:A,iconPrefixCls:c,instance:no});return}no=d,t({prefixCls:l,rootPrefixCls:A,iconPrefixCls:c,instance:d})})}var Npe={info:$3,success:tC,error:kl,warning:nC,loading:Xu},kpe=Object.keys(Npe);function Ppe(e,t,r){var n=e.duration!==void 0?e.duration:Ipe,a=Npe[e.type],i=He("".concat(t,"-custom-content"),X(X({},"".concat(t,"-").concat(e.type),e.type),"".concat(t,"-rtl"),Dpe===!0));return{key:e.key,duration:n,style:e.style||{},className:e.className,content:m.createElement(yh,{iconPrefixCls:r},m.createElement("div",{className:i},e.icon||a&&m.createElement(a,null),m.createElement("span",null,e.content))),onClose:e.onClose,onClick:e.onClick}}function ZYe(e){var t=e.key||Fpe(),r=new Promise(function(a){var i=function(){return typeof e.onClose=="function"&&e.onClose(),a(!0)};_pe(e,function(o){var s=o.prefixCls,l=o.iconPrefixCls,A=o.instance;A.notice(Ppe(oe(oe({},e),{key:t,onClose:i}),s,l))})}),n=function(){var i;no&&(no.removeNotice(t),(i=e.onClose)===null||i===void 0||i.call(e))};return n.then=function(a,i){return r.then(a,i)},n.promise=r,n}function $Ye(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}var to={open:ZYe,config:qYe,destroy:function(t){if(no)if(t){var r=no,n=r.removeNotice;n(t)}else{var a=no,i=a.destroy;i(),no=null}}};function Ope(e,t){e[t]=function(r,n,a){return $Ye(r)?e.open(oe(oe({},r),{type:t})):(typeof n=="function"&&(a=n,n=void 0),e.open({content:r,duration:n,type:t,onClose:a}))}}kpe.forEach(function(e){return Ope(to,e)});to.warn=to.warning;to.useMessage=WYe(_pe,Ppe);function e5e(e,t){var r=function(){var a,i=null,o={add:function(h,g){i==null||i.component.add(h,g)}},s=NY(o),l=De(s,2),A=l[0],c=l[1];function u(f){var h=f.prefixCls,g=a("notification",h);e(oe(oe({},f),{prefixCls:g}),function(p){var E=p.prefixCls,y=p.instance;i=y,A(t(f,E))})}var d=m.useRef({});return d.current.open=u,["success","info","warning","error"].forEach(function(f){d.current[f]=function(h){return d.current.open(oe(oe({},h),{type:f}))}}),[d.current,m.createElement(gd,{key:"holder"},function(f){return a=f.getPrefixCls,c})]};return r}var Ef={},zpe=4.5,jpe=24,Ype=24,Lpe="",nz="topRight",Upe,Hpe,Gpe=!1,Kpe;function t5e(e){var t=e.duration,r=e.placement,n=e.bottom,a=e.top,i=e.getContainer,o=e.closeIcon,s=e.prefixCls;s!==void 0&&(Lpe=s),t!==void 0&&(zpe=t),r!==void 0?nz=r:e.rtl&&(nz="topLeft"),n!==void 0&&(Ype=n),a!==void 0&&(jpe=a),i!==void 0&&(Upe=i),o!==void 0&&(Hpe=o),e.rtl!==void 0&&(Gpe=e.rtl),e.maxCount!==void 0&&(Kpe=e.maxCount)}function r5e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jpe,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ype,n;switch(e){case"top":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":n={left:0,top:t,bottom:"auto"};break;case"topRight":n={right:0,top:t,bottom:"auto"};break;case"bottom":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:r};break;case"bottomLeft":n={left:0,top:"auto",bottom:r};break;default:n={right:0,top:"auto",bottom:r};break}return n}function Vpe(e,t){var r=e.placement,n=r===void 0?nz:r,a=e.top,i=e.bottom,o=e.getContainer,s=o===void 0?Upe:o,l=e.prefixCls,A=kY(),c=A.getPrefixCls,u=A.getIconPrefixCls,d=c("notification",l||Lpe),f=u(),h="".concat(d,"-").concat(n),g=Ef[h];if(g){Promise.resolve(g).then(function(E){t({prefixCls:"".concat(d,"-notice"),iconPrefixCls:f,instance:E})});return}var p=He("".concat(d,"-").concat(n),X({},"".concat(d,"-rtl"),Gpe===!0));Ef[h]=new Promise(function(E){Zf.newInstance({prefixCls:d,className:p,style:r5e(n,a,i),getContainer:s,maxCount:Kpe},function(y){E(y),t({prefixCls:"".concat(d,"-notice"),iconPrefixCls:f,instance:y})})})}var n5e={success:SS,info:DS,error:RS,warning:Sv};function Jpe(e,t,r){var n=e.duration,a=e.icon,i=e.type,o=e.description,s=e.message,l=e.btn,A=e.onClose,c=e.onClick,u=e.key,d=e.style,f=e.className,h=e.closeIcon,g=h===void 0?Hpe:h,p=e.props,E=n===void 0?zpe:n,y=null;a?y=m.createElement("span",{className:"".concat(t,"-icon")},e.icon):i&&(y=m.createElement(n5e[i]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(i)}));var C=typeof g>"u"?m.createElement("span",{className:"".concat(t,"-close-x")},m.createElement(ci,{className:"".concat(t,"-close-icon")})):g,w=!o&&y?m.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:m.createElement(yh,{iconPrefixCls:r},m.createElement("div",{className:y?"".concat(t,"-with-icon"):"",role:"alert"},y,m.createElement("div",{className:"".concat(t,"-message")},w,s),m.createElement("div",{className:"".concat(t,"-description")},o),l?m.createElement("span",{className:"".concat(t,"-btn")},l):null)),duration:E,closable:!0,closeIcon:C,onClose:A,onClick:c,key:u,style:d||{},className:He(f,X({},"".concat(t,"-").concat(i),!!i)),props:p}}function a5e(e){Vpe(e,function(t){var r=t.prefixCls,n=t.iconPrefixCls,a=t.instance;a.notice(Jpe(e,r,n))})}var as={open:a5e,close:function(t){Object.keys(Ef).forEach(function(r){return Promise.resolve(Ef[r]).then(function(n){n.removeNotice(t)})})},config:t5e,destroy:function(){Object.keys(Ef).forEach(function(t){Promise.resolve(Ef[t]).then(function(r){r.destroy()}),delete Ef[t]})}};["success","info","warning","error"].forEach(function(e){as[e]=function(t){return as.open(oe(oe({},t),{type:e}))}});as.warn=as.warning;as.useNotification=e5e(Vpe,Jpe);var i5e=function(t,r){return r||(t?"ant-".concat(t):"ant")},Mr=m.createContext({getPrefixCls:i5e}),gd=Mr.Consumer,o5e="-ant-".concat(Date.now(),"-").concat(Math.random());function s5e(e,t){var r={},n=function(c,u){var d=c.clone();return d=(u==null?void 0:u(d))||d,d.toRgbString()},a=function(c,u){var d=new Ro(c),f=Jp(d.toRgbString());r["".concat(u,"-color")]=n(d),r["".concat(u,"-color-disabled")]=f[1],r["".concat(u,"-color-hover")]=f[4],r["".concat(u,"-color-active")]=f[6],r["".concat(u,"-color-outline")]=d.clone().setAlpha(.2).toRgbString(),r["".concat(u,"-color-deprecated-bg")]=f[0],r["".concat(u,"-color-deprecated-border")]=f[2]};if(t.primaryColor){a(t.primaryColor,"primary");var i=new Ro(t.primaryColor),o=Jp(i.toRgbString());o.forEach(function(A,c){r["primary-".concat(c+1)]=A}),r["primary-color-deprecated-l-35"]=n(i,function(A){return A.lighten(35)}),r["primary-color-deprecated-l-20"]=n(i,function(A){return A.lighten(20)}),r["primary-color-deprecated-t-20"]=n(i,function(A){return A.tint(20)}),r["primary-color-deprecated-t-50"]=n(i,function(A){return A.tint(50)}),r["primary-color-deprecated-f-12"]=n(i,function(A){return A.setAlpha(A.getAlpha()*.12)});var s=new Ro(o[0]);r["primary-color-active-deprecated-f-30"]=n(s,function(A){return A.setAlpha(A.getAlpha()*.3)}),r["primary-color-active-deprecated-d-02"]=n(s,function(A){return A.darken(2)})}t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info");var l=Object.keys(r).map(function(A){return"--".concat(e,"-").concat(A,": ").concat(r[A],";")});return`
  :root {
    `.concat(l.join(`
`),`
  }
  `).trim()}function l5e(e,t){var r=s5e(e,t);Gi()&&Zy(r,"".concat(o5e,"-dynamic-theme"))}var Fo=m.createContext(!1),Wpe=function(t){var r=t.children,n=t.disabled,a=m.useContext(Fo);return m.createElement(Fo.Provider,{value:n??a},r)},Ti=m.createContext(void 0),Xpe=function(t){var r=t.children,n=t.size;return m.createElement(Ti.Consumer,null,function(a){return m.createElement(Ti.Provider,{value:n||a},r)})},A5e=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"],c5e="ant",u5e="anticon",db,qpe;function uI(){return db||c5e}function d5e(){return qpe||u5e}var f5e=function(t){var r=t.prefixCls,n=t.iconPrefixCls,a=t.theme;r!==void 0&&(db=r),n!==void 0&&(qpe=n),a&&l5e(uI(),a)},kY=function(){return{getPrefixCls:function(r,n){return n||(r?"".concat(uI(),"-").concat(r):uI())},getIconPrefixCls:d5e,getRootPrefixCls:function(r,n){return r||db||(n&&n.includes("-")?n.replace(/^(.*)-[^-]*$/,"$1"):uI())}}},h5e=function(t){var r=t.children,n=t.csp,a=t.autoInsertSpaceInButton,i=t.form,o=t.locale,s=t.componentSize,l=t.direction,A=t.space,c=t.virtual,u=t.dropdownMatchSelectWidth,d=t.legacyLocale,f=t.parentContext,h=t.iconPrefixCls,g=t.componentDisabled,p=m.useCallback(function(M,I){var S=t.prefixCls;if(I)return I;var R=S||f.getPrefixCls("");return M?"".concat(R,"-").concat(M):R},[f.getPrefixCls,t.prefixCls]),E=oe(oe({},f),{csp:n,autoInsertSpaceInButton:a,locale:o||d,direction:l,space:A,virtual:c,dropdownMatchSelectWidth:u,getPrefixCls:p});A5e.forEach(function(M){var I=t[M];I&&(E[M]=I)});var y=mh(function(){return E},E,function(M,I){var S=Object.keys(M),R=Object.keys(I);return S.length!==R.length||S.some(function(b){return M[b]!==I[b]})}),C=m.useMemo(function(){return{prefixCls:h,csp:n}},[h,n]),w=r,B=m.useMemo(function(){var M,I,S,R;return Ep(((M=Ps.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||{},((S=(I=y.locale)===null||I===void 0?void 0:I.Form)===null||S===void 0?void 0:S.defaultValidateMessages)||{},((R=y.form)===null||R===void 0?void 0:R.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[y,i==null?void 0:i.validateMessages]);return Object.keys(B).length>0&&(w=m.createElement(ape.Provider,{value:B},r)),o&&(w=m.createElement(hYe,{locale:o,_ANT_MARK__:fYe},w)),(h||n)&&(w=m.createElement(Y3.Provider,{value:C},w)),s&&(w=m.createElement(Xpe,{size:s},w)),g!==void 0&&(w=m.createElement(Wpe,{disabled:g},w)),m.createElement(Mr.Provider,{value:y},w)},yh=function(t){return m.useEffect(function(){t.direction&&(to.config({rtl:t.direction==="rtl"}),as.config({rtl:t.direction==="rtl"}))},[t.direction]),m.createElement(_A,null,function(r,n,a){return m.createElement(gd,null,function(i){return m.createElement(h5e,oe({parentContext:i,legacyLocale:a},t))})})};yh.ConfigContext=Mr;yh.SizeContext=Ti;yh.config=f5e;function mc(e,t,r,n){var a=bo.unstable_batchedUpdates?function(o){bo.unstable_batchedUpdates(r,o)}:r;return e!=null&&e.addEventListener&&e.addEventListener(t,a,n),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,n)}}}function Zpe(e){return Object.keys(e).reduce(function(t,r){return(r.startsWith("data-")||r.startsWith("aria-")||r==="role")&&!r.startsWith("data-__")&&(t[r]=e[r]),t},{})}var is=m.isValidElement;function $pe(e){return e&&is(e)&&e.type===m.Fragment}function eve(e,t,r){return is(e)?m.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function ia(e,t){return eve(e,e,t)}function g5e(e,t,r){return t=Ma(t),Vs(e,FA()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}var p5e=function(e){xn(t,e);function t(){var r;return sn(this,t),r=g5e(this,t,arguments),r.state={error:void 0,info:{componentStack:""}},r}return ln(t,[{key:"componentDidCatch",value:function(n,a){this.setState({error:n,info:a})}},{key:"render",value:function(){var n=this.props,a=n.message,i=n.description,o=n.children,s=this.state,l=s.error,A=s.info,c=A&&A.componentStack?A.componentStack:null,u=typeof a>"u"?(l||"").toString():a,d=typeof i>"u"?c:i;return l?m.createElement(tR,{type:"error",message:u,description:m.createElement("pre",null,d)}):o}}]),t}(m.Component),v5e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},m5e={success:tC,info:$3,error:kl,warning:nC},E5e={success:SS,info:DS,error:RS,warning:Sv},y5e=function(t){var r=t.description,n=t.icon,a=t.prefixCls,i=t.type,o=(r?E5e:m5e)[i]||null;return n?eve(n,m.createElement("span",{className:"".concat(a,"-icon")},n),function(){return{className:He("".concat(a,"-icon"),X({},n.props.className,n.props.className))}}):m.createElement(o,{className:"".concat(a,"-icon")})},C5e=function(t){var r=t.isClosable,n=t.closeText,a=t.prefixCls,i=t.closeIcon,o=t.handleClose;return r?m.createElement("button",{type:"button",onClick:o,className:"".concat(a,"-close-icon"),tabIndex:0},n?m.createElement("span",{className:"".concat(a,"-close-text")},n):i):null},tR=function(t){var r=t.description,n=t.prefixCls,a=t.message,i=t.banner,o=t.className,s=o===void 0?"":o,l=t.style,A=t.onMouseEnter,c=t.onMouseLeave,u=t.onClick,d=t.afterClose,f=t.showIcon,h=t.closable,g=t.closeText,p=t.closeIcon,E=p===void 0?m.createElement(ci,null):p,y=t.action,C=v5e(t,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),w=m.useState(!1),B=De(w,2),M=B[0],I=B[1],S=m.useRef(),R=m.useContext(Mr),b=R.getPrefixCls,Q=R.direction,D=b("alert",n),F=function(L){var K;I(!0),(K=C.onClose)===null||K===void 0||K.call(C,L)},N=function(){var L=C.type;return L!==void 0?L:i?"warning":"info"},k=g?!0:h,O=N(),P=i&&f===void 0?!0:f,z=He(D,"".concat(D,"-").concat(O),X(X(X(X({},"".concat(D,"-with-description"),!!r),"".concat(D,"-no-icon"),!P),"".concat(D,"-banner"),!!i),"".concat(D,"-rtl"),Q==="rtl"),s),j=Zpe(C);return m.createElement(Ri,{visible:!M,motionName:"".concat(D,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(L){return{maxHeight:L.offsetHeight}},onLeaveEnd:d},function(V){var L=V.className,K=V.style;return m.createElement("div",oe({ref:S,"data-show":!M,className:He(z,L),style:oe(oe({},l),K),onMouseEnter:A,onMouseLeave:c,onClick:u,role:"alert"},j),P?m.createElement(y5e,{description:r,icon:C.icon,prefixCls:D,type:O}):null,m.createElement("div",{className:"".concat(D,"-content")},a?m.createElement("div",{className:"".concat(D,"-message")},a):null,r?m.createElement("div",{className:"".concat(D,"-description")},r):null),y?m.createElement("div",{className:"".concat(D,"-action")},y):null,m.createElement(C5e,{isClosable:!!k,closeText:g,prefixCls:D,closeIcon:E,handleClose:F}))})};tR.ErrorBoundary=p5e;function az(e){return e!=null&&e===e.window}function w5e(e,t){var r,n;if(typeof window>"u")return 0;var a="scrollTop",i=0;return az(e)?i=e.pageYOffset:e instanceof Document?i=e.documentElement[a]:(e instanceof HTMLElement||e)&&(i=e[a]),e&&!az(e)&&typeof i!="number"&&(i=(n=((r=e.ownerDocument)!==null&&r!==void 0?r:e).documentElement)===null||n===void 0?void 0:n[a]),i}function B5e(e,t,r,n){var a=r-t;return e/=n/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function M5e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.getContainer,n=r===void 0?function(){return window}:r,a=t.callback,i=t.duration,o=i===void 0?450:i,s=n(),l=w5e(s),A=Date.now(),c=function u(){var d=Date.now(),f=d-A,h=B5e(f>o?o:f,l,e,o);az(s)?s.scrollTo(window.pageXOffset,h):s instanceof Document||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=h:s.scrollTop=h,f<o?fn(u):typeof a=="function"&&a()};fn(c)}const rR=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Pt={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},tve=m.createContext(null);function rve(){return m.useContext(tve)}function x5e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=m.useState(!1),r=De(t,2),n=r[0],a=r[1],i=m.useRef(null),o=function(){window.clearTimeout(i.current)};m.useEffect(function(){return o},[]);var s=function(A,c){o(),i.current=window.setTimeout(function(){a(A),c&&c()},e)};return[n,s,o]}function nve(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=m.useRef(null),r=m.useRef(null);m.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}function I5e(e,t,r,n){var a=m.useRef(null);a.current={open:t,triggerOpen:r,customizedTrigger:n},m.useEffect(function(){function i(o){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),a.current.open&&e().filter(function(A){return A}).every(function(A){return!A.contains(l)&&A!==l})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var b5e=`accept acceptCharset accessKey action allowFullScreen allowTransparency
    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
    charSet checked classID className colSpan cols content contentEditable contextMenu
    controls coords crossOrigin data dateTime default defer dir disabled download draggable
    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
    mediaGroup method min minLength multiple muted name noValidate nonce open
    optimum pattern placeholder poster preload radioGroup readOnly rel required
    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
    summary tabIndex target title type useMap value width wmode wrap`,S5e=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,R5e="".concat(b5e," ").concat(S5e).split(/[\s\n]+/),T5e="aria-",Q5e="data-";function XJ(e,t){return e.indexOf(t)===0}function Qc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=$({},t);var n={};return Object.keys(e).forEach(function(a){(r.aria&&(a==="role"||XJ(a,T5e))||r.data&&XJ(a,Q5e)||r.attr&&R5e.includes(a))&&(n[a]=e[a])}),n}var D5e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],vg=void 0;function F5e(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,i=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,A=e.itemKey,c=e.className,u=e.style,d=e.children,f=e.display,h=e.order,g=e.component,p=g===void 0?"div":g,E=Tr(e,D5e),y=o&&!f;function C(S){l(A,S)}m.useEffect(function(){return function(){C(null)}},[]);var w=i&&a!==vg?i(a,{index:h}):d,B;n||(B={opacity:y?0:1,height:y?0:vg,overflowY:y?"hidden":vg,order:o?h:vg,pointerEvents:y?"none":vg,position:y?"absolute":vg});var M={};y&&(M["aria-hidden"]=!0);var I=m.createElement(p,oe({className:He(!n&&r,c),style:$($({},B),u)},M,E,{ref:t}),w);return o&&(I=m.createElement(ks,{onResize:function(R){var b=R.offsetWidth;C(b)},disabled:s},I)),I}var L0=m.forwardRef(F5e);L0.displayName="Item";function _5e(e){if(typeof MessageChannel>"u")fn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function N5e(){var e=m.useRef(null),t=function(n){e.current||(e.current=[],_5e(function(){ei.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function Hm(e,t){var r=m.useState(t),n=De(r,2),a=n[0],i=n[1],o=Os(function(s){e(function(){i(s)})});return[a,o]}var fb=te.createContext(null),k5e=["component"],P5e=["className"],O5e=["className"],z5e=function(t,r){var n=m.useContext(fb);if(!n){var a=t.component,i=a===void 0?"div":a,o=Tr(t,k5e);return m.createElement(i,oe({},o,{ref:r}))}var s=n.className,l=Tr(n,P5e),A=t.className,c=Tr(t,O5e);return m.createElement(fb.Provider,{value:null},m.createElement(L0,oe({ref:r,className:He(s,A)},l,c)))},ave=m.forwardRef(z5e);ave.displayName="RawItem";var j5e=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ive="responsive",ove="invalidate";function Y5e(e){return"+ ".concat(e.length," ...")}function L5e(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,i=a===void 0?[]:a,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,A=e.itemWidth,c=A===void 0?10:A,u=e.ssr,d=e.style,f=e.className,h=e.maxCount,g=e.renderRest,p=e.renderRawRest,E=e.suffix,y=e.component,C=y===void 0?"div":y,w=e.itemComponent,B=e.onVisibleChange,M=Tr(e,j5e),I=u==="full",S=N5e(),R=Hm(S,null),b=De(R,2),Q=b[0],D=b[1],F=Q||0,N=Hm(S,new Map),k=De(N,2),O=k[0],P=k[1],z=Hm(S,0),j=De(z,2),V=j[0],L=j[1],K=Hm(S,0),J=De(K,2),Y=J[0],W=J[1],q=Hm(S,0),ee=De(q,2),ae=ee[0],ne=ee[1],ce=m.useState(null),ue=De(ce,2),ge=ue[0],Se=ue[1],ye=m.useState(null),pe=De(ye,2),Qe=pe[0],Ue=pe[1],tt=m.useMemo(function(){return Qe===null&&I?Number.MAX_SAFE_INTEGER:Qe||0},[Qe,Q]),it=m.useState(!1),we=De(it,2),ve=we[0],Te=we[1],Be="".concat(n,"-item"),Ge=Math.max(V,Y),ht=h===ive,We=i.length&&ht,Ke=h===ove,Xe=We||typeof h=="number"&&i.length>h,$e=m.useMemo(function(){var be=i;return We?Q===null&&I?be=i:be=i.slice(0,Math.min(i.length,F/c)):typeof h=="number"&&(be=i.slice(0,h)),be},[i,c,Q,h,We]),pt=m.useMemo(function(){return We?i.slice(tt+1):i.slice($e.length)},[i,$e,We,tt]),de=m.useCallback(function(be,Ve){var lt;return typeof l=="function"?l(be):(lt=l&&(be==null?void 0:be[l]))!==null&&lt!==void 0?lt:Ve},[l]),Fe=m.useCallback(o||function(be){return be},[o]);function je(be,Ve,lt){Qe===be&&(Ve===void 0||Ve===ge)||(Ue(be),lt||(Te(be<i.length-1),B==null||B(be)),Ve!==void 0&&Se(Ve))}function et(be,Ve){D(Ve.clientWidth)}function xe(be,Ve){P(function(lt){var Ze=new Map(lt);return Ve===null?Ze.delete(be):Ze.set(be,Ve),Ze})}function Ne(be,Ve){W(Ve),L(Y)}function le(be,Ve){ne(Ve)}function At(be){return O.get(de($e[be],be))}Wn(function(){if(F&&typeof Ge=="number"&&$e){var be=ae,Ve=$e.length,lt=Ve-1;if(!Ve){je(0,null);return}for(var Ze=0;Ze<Ve;Ze+=1){var Le=At(Ze);if(I&&(Le=Le||0),Le===void 0){je(Ze-1,void 0,!0);break}if(be+=Le,lt===0&&be<=F||Ze===lt-1&&be+At(lt)<=F){je(lt,null);break}else if(be+Ge>F){je(Ze-1,be-Le-ae+Y);break}}E&&At(0)+ae>F&&Se(null)}},[F,O,Y,ae,de,$e]);var Bt=ve&&!!pt.length,G={};ge!==null&&We&&(G={position:"absolute",left:ge,top:0});var Ee={prefixCls:Be,responsive:We,component:w,invalidate:Ke},Ie=s?function(be,Ve){var lt=de(be,Ve);return m.createElement(fb.Provider,{key:lt,value:$($({},Ee),{},{order:Ve,item:be,itemKey:lt,registerSize:xe,display:Ve<=tt})},s(be,Ve))}:function(be,Ve){var lt=de(be,Ve);return m.createElement(L0,oe({},Ee,{order:Ve,key:lt,item:be,renderItem:Fe,itemKey:lt,registerSize:xe,display:Ve<=tt}))},ie={order:Bt?tt:Number.MAX_SAFE_INTEGER,className:"".concat(Be,"-rest"),registerSize:Ne,display:Bt},re=g||Y5e,he=p?m.createElement(fb.Provider,{value:$($({},Ee),ie)},p(pt)):m.createElement(L0,oe({},Ee,ie),typeof re=="function"?re(pt):re),Pe=m.createElement(C,oe({className:He(!Ke&&n,f),style:d,ref:t},M),$e.map(Ie),Xe?he:null,E&&m.createElement(L0,oe({},Ee,{responsive:ht,responsiveDisabled:!We,order:tt,className:"".concat(Be,"-suffix"),registerSize:le,display:!0,style:G}),E));return ht?m.createElement(ks,{onResize:et,disabled:!We},Pe):Pe}var yA=m.forwardRef(L5e);yA.displayName="Overflow";yA.Item=ave;yA.RESPONSIVE=ive;yA.INVALIDATE=ove;var hb=function(t){var r=t.className,n=t.customizeIcon,a=t.customizeIconProps,i=t.onMouseDown,o=t.onClick,s=t.children,l;return typeof n=="function"?l=n(a):l=n,m.createElement("span",{className:r,onMouseDown:function(c){c.preventDefault(),i&&i(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:o,"aria-hidden":!0},l!==void 0?l:m.createElement("span",{className:He(r.split(/\s+/).map(function(A){return"".concat(A,"-icon")}))},s))},U5e=function(t,r){var n,a,i=t.prefixCls,o=t.id,s=t.inputElement,l=t.disabled,A=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,h=t.value,g=t.maxLength,p=t.onKeyDown,E=t.onMouseDown,y=t.onChange,C=t.onPaste,w=t.onCompositionStart,B=t.onCompositionEnd,M=t.open,I=t.attrs,S=s||m.createElement("input",null),R=S,b=R.ref,Q=R.props,D=Q.onKeyDown,F=Q.onChange,N=Q.onMouseDown,k=Q.onCompositionStart,O=Q.onCompositionEnd,P=Q.style;return"maxLength"in S.props,S=m.cloneElement(S,$($($({type:"search"},Q),{},{id:o,ref:As(r,b),disabled:l,tabIndex:A,autoComplete:u||"off",autoFocus:c,className:He("".concat(i,"-selection-search-input"),(n=S)===null||n===void 0||(a=n.props)===null||a===void 0?void 0:a.className),role:"combobox","aria-expanded":M,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f},I),{},{value:d?h:"",maxLength:g,readOnly:!d,unselectable:d?null:"on",style:$($({},P),{},{opacity:d?null:0}),onKeyDown:function(j){p(j),D&&D(j)},onMouseDown:function(j){E(j),N&&N(j)},onChange:function(j){y(j),F&&F(j)},onCompositionStart:function(j){w(j),k&&k(j)},onCompositionEnd:function(j){B(j),O&&O(j)},onPaste:C})),S},PY=m.forwardRef(U5e);PY.displayName="Input";function sve(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var H5e=typeof window<"u"&&window.document&&window.document.documentElement,G5e=H5e;function K5e(e){return e!=null}function qJ(e){return["string","number"].includes(Xt(e))}function lve(e){var t=void 0;return e&&(qJ(e.title)?t=e.title.toString():qJ(e.label)&&(t=e.label.toString())),t}function V5e(e,t){G5e?m.useLayoutEffect(e,t):m.useEffect(e,t)}function J5e(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var ZJ=function(t){t.preventDefault(),t.stopPropagation()},W5e=function(t){var r=t.id,n=t.prefixCls,a=t.values,i=t.open,o=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,A=t.placeholder,c=t.disabled,u=t.mode,d=t.showSearch,f=t.autoFocus,h=t.autoComplete,g=t.activeDescendantId,p=t.tabIndex,E=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,w=t.maxTagPlaceholder,B=w===void 0?function(Se){return"+ ".concat(Se.length," ...")}:w,M=t.tagRender,I=t.onToggleOpen,S=t.onRemove,R=t.onInputChange,b=t.onInputPaste,Q=t.onInputKeyDown,D=t.onInputMouseDown,F=t.onInputCompositionStart,N=t.onInputCompositionEnd,k=m.useRef(null),O=m.useState(0),P=De(O,2),z=P[0],j=P[1],V=m.useState(!1),L=De(V,2),K=L[0],J=L[1],Y="".concat(n,"-selection"),W=i||u==="multiple"&&s===!1||u==="tags"?o:"",q=u==="tags"||u==="multiple"&&s===!1||d&&(i||K);V5e(function(){j(k.current.scrollWidth)},[W]);function ee(Se,ye,pe,Qe,Ue){return m.createElement("span",{className:He("".concat(Y,"-item"),X({},"".concat(Y,"-item-disabled"),pe)),title:lve(Se)},m.createElement("span",{className:"".concat(Y,"-item-content")},ye),Qe&&m.createElement(hb,{className:"".concat(Y,"-item-remove"),onMouseDown:ZJ,onClick:Ue,customizeIcon:E},"×"))}function ae(Se,ye,pe,Qe,Ue){var tt=function(we){ZJ(we),I(!i)};return m.createElement("span",{onMouseDown:tt},M({label:ye,value:Se,disabled:pe,closable:Qe,onClose:Ue}))}function ne(Se){var ye=Se.disabled,pe=Se.label,Qe=Se.value,Ue=!c&&!ye,tt=pe;if(typeof C=="number"&&(typeof pe=="string"||typeof pe=="number")){var it=String(tt);it.length>C&&(tt="".concat(it.slice(0,C),"..."))}var we=function(Te){Te&&Te.stopPropagation(),S(Se)};return typeof M=="function"?ae(Qe,tt,ye,Ue,we):ee(Se,tt,ye,Ue,we)}function ce(Se){var ye=typeof B=="function"?B(Se):B;return ee({title:ye},ye,!1)}var ue=m.createElement("div",{className:"".concat(Y,"-search"),style:{width:z},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},m.createElement(PY,{ref:l,open:i,prefixCls:n,id:r,inputElement:null,disabled:c,autoFocus:f,autoComplete:h,editable:q,activeDescendantId:g,value:W,onKeyDown:Q,onMouseDown:D,onChange:R,onPaste:b,onCompositionStart:F,onCompositionEnd:N,tabIndex:p,attrs:Qc(t,!0)}),m.createElement("span",{ref:k,className:"".concat(Y,"-search-mirror"),"aria-hidden":!0},W," ")),ge=m.createElement(yA,{prefixCls:"".concat(Y,"-overflow"),data:a,renderItem:ne,renderRest:ce,suffix:ue,itemKey:J5e,maxCount:y});return m.createElement(m.Fragment,null,ge,!a.length&&!W&&m.createElement("span",{className:"".concat(Y,"-placeholder")},A))},X5e=function(t){var r=t.inputElement,n=t.prefixCls,a=t.id,i=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,A=t.activeDescendantId,c=t.mode,u=t.open,d=t.values,f=t.placeholder,h=t.tabIndex,g=t.showSearch,p=t.searchValue,E=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,w=t.onInputMouseDown,B=t.onInputChange,M=t.onInputPaste,I=t.onInputCompositionStart,S=t.onInputCompositionEnd,R=m.useState(!1),b=De(R,2),Q=b[0],D=b[1],F=c==="combobox",N=F||g,k=d[0],O=p||"";F&&E&&!Q&&(O=E),m.useEffect(function(){F&&D(!1)},[F,E]);var P=c!=="combobox"&&!u&&!g?!1:!!O,z=lve(k),j=function(){if(k)return null;var L=P?{visibility:"hidden"}:void 0;return m.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:L},f)};return m.createElement(m.Fragment,null,m.createElement("span",{className:"".concat(n,"-selection-search")},m.createElement(PY,{ref:i,prefixCls:n,id:a,open:u,inputElement:r,disabled:o,autoFocus:s,autoComplete:l,editable:N,activeDescendantId:A,value:O,onKeyDown:C,onMouseDown:w,onChange:function(L){D(!0),B(L)},onPaste:M,onCompositionStart:I,onCompositionEnd:S,tabIndex:h,attrs:Qc(t,!0),maxLength:F?y:void 0})),!F&&k?m.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:P?{visibility:"hidden"}:void 0},k.label):null,j())};function q5e(e){return![Pt.ESC,Pt.SHIFT,Pt.BACKSPACE,Pt.TAB,Pt.WIN_KEY,Pt.ALT,Pt.META,Pt.WIN_KEY_RIGHT,Pt.CTRL,Pt.SEMICOLON,Pt.EQUALS,Pt.CAPS_LOCK,Pt.CONTEXT_MENU,Pt.F1,Pt.F2,Pt.F3,Pt.F4,Pt.F5,Pt.F6,Pt.F7,Pt.F8,Pt.F9,Pt.F10,Pt.F11,Pt.F12].includes(e)}var Z5e=function(t,r){var n=m.useRef(null),a=m.useRef(!1),i=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,A=t.tokenWithEnter,c=t.autoClearSearchValue,u=t.onSearch,d=t.onSearchSubmit,f=t.onToggleOpen,h=t.onInputKeyDown,g=t.domRef;m.useImperativeHandle(r,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var p=nve(0),E=De(p,2),y=E[0],C=E[1],w=function(P){var z=P.which;(z===Pt.UP||z===Pt.DOWN)&&P.preventDefault(),h&&h(P),z===Pt.ENTER&&s==="tags"&&!a.current&&!o&&(d==null||d(P.target.value)),q5e(z)&&f(!0)},B=function(){C(!0)},M=m.useRef(null),I=function(P){u(P,!0,a.current)!==!1&&f(!0)},S=function(){a.current=!0},R=function(P){a.current=!1,s!=="combobox"&&I(P.target.value)},b=function(P){var z=P.target.value;if(A&&M.current&&/[\r\n]/.test(M.current)){var j=M.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");z=z.replace(j,M.current)}M.current=null,I(z)},Q=function(P){var z=P.clipboardData,j=z.getData("text");M.current=j},D=function(P){var z=P.target;if(z!==n.current){var j=document.body.style.msTouchAction!==void 0;j?setTimeout(function(){n.current.focus()}):n.current.focus()}},F=function(P){var z=y();P.target!==n.current&&!z&&s!=="combobox"&&P.preventDefault(),(s!=="combobox"&&(!l||!z)||!o)&&(o&&c!==!1&&u("",!0,!1),f())},N={inputRef:n,onInputKeyDown:w,onInputMouseDown:B,onInputChange:b,onInputPaste:Q,onInputCompositionStart:S,onInputCompositionEnd:R},k=s==="multiple"||s==="tags"?m.createElement(W5e,oe({},t,N)):m.createElement(X5e,oe({},t,N));return m.createElement("div",{ref:g,className:"".concat(i,"-selector"),onClick:D,onMouseDown:F},k)},Ave=m.forwardRef(Z5e);Ave.displayName="Selector";var $5e=m.forwardRef(function(e,t){var r=e.didUpdate,n=e.getContainer,a=e.children,i=m.useRef(),o=m.useRef();m.useImperativeHandle(t,function(){return{}});var s=m.useRef(!1);return!s.current&&Gi()&&(o.current=n(),i.current=o.current.parentNode,s.current=!0),m.useEffect(function(){r==null||r(e)}),m.useEffect(function(){return o.current.parentNode===null&&i.current!==null&&i.current.appendChild(o.current),function(){var l;(l=o.current)===null||l===void 0||(l=l.parentNode)===null||l===void 0||l.removeChild(o.current)}},[]),o.current?bo.createPortal(a,o.current):null});function eLe(e,t,r){return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function tLe(e,t,r){var n=e[t]||{};return $($({},n),r)}function rLe(e,t,r,n){for(var a=r.points,i=Object.keys(e),o=0;o<i.length;o+=1){var s=i[o];if(eLe(e[s].points,a,n))return"".concat(t,"-placement-").concat(s)}return""}function cve(e){var t=e.prefixCls,r=e.motion,n=e.animation,a=e.transitionName;return r||(n?{motionName:"".concat(t,"-").concat(n)}:a?{motionName:a}:null)}function nLe(e){var t=e.prefixCls,r=e.visible,n=e.zIndex,a=e.mask,i=e.maskMotion,o=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var l={};return(i||s||o)&&(l=$({motionAppear:!0},cve({motion:i,prefixCls:t,transitionName:s,animation:o}))),m.createElement(Ri,oe({},l,{visible:r,removeOnLeave:!0}),function(A){var c=A.className;return m.createElement("div",{style:{zIndex:n},className:He("".concat(t,"-mask"),c)})})}function $J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function eW(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$J(Object(r),!0).forEach(function(n){aLe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$J(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iz(e){"@babel/helpers - typeof";return iz=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iz(e)}function aLe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Gm,iLe={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function gb(){if(Gm!==void 0)return Gm;Gm="";var e=document.createElement("p").style,t="Transform";for(var r in iLe)r+t in e&&(Gm=r);return Gm}function uve(){return gb()?"".concat(gb(),"TransitionProperty"):"transitionProperty"}function nR(){return gb()?"".concat(gb(),"Transform"):"transform"}function tW(e,t){var r=uve();r&&(e.style[r]=t,r!=="transitionProperty"&&(e.style.transitionProperty=t))}function __(e,t){var r=nR();r&&(e.style[r]=t,r!=="transform"&&(e.style.transform=t))}function oLe(e){return e.style.transitionProperty||e.style[uve()]}function sLe(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("transform")||t.getPropertyValue(nR());if(r&&r!=="none"){var n=r.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(n[12]||n[4],0),y:parseFloat(n[13]||n[5],0)}}return{x:0,y:0}}var lLe=/matrix\((.*)\)/,ALe=/matrix3d\((.*)\)/;function cLe(e,t){var r=window.getComputedStyle(e,null),n=r.getPropertyValue("transform")||r.getPropertyValue(nR());if(n&&n!=="none"){var a,i=n.match(lLe);if(i)i=i[1],a=i.split(",").map(function(s){return parseFloat(s,10)}),a[4]=t.x,a[5]=t.y,__(e,"matrix(".concat(a.join(","),")"));else{var o=n.match(ALe)[1];a=o.split(",").map(function(s){return parseFloat(s,10)}),a[12]=t.x,a[13]=t.y,__(e,"matrix3d(".concat(a.join(","),")"))}}else __(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}var uLe=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,vC;function rW(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function Qp(e,t,r){var n=r;if(iz(t)==="object"){for(var a in t)t.hasOwnProperty(a)&&Qp(e,a,t[a]);return}if(typeof n<"u"){typeof n=="number"&&(n="".concat(n,"px")),e.style[t]=n;return}return vC(e,t)}function dLe(e){var t,r,n,a=e.ownerDocument,i=a.body,o=a&&a.documentElement;return t=e.getBoundingClientRect(),r=Math.floor(t.left),n=Math.floor(t.top),r-=o.clientLeft||i.clientLeft||0,n-=o.clientTop||i.clientTop||0,{left:r,top:n}}function dve(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var a=e.document;r=a.documentElement[n],typeof r!="number"&&(r=a.body[n])}return r}function fve(e){return dve(e)}function hve(e){return dve(e,!0)}function gy(e){var t=dLe(e),r=e.ownerDocument,n=r.defaultView||r.parentWindow;return t.left+=fve(n),t.top+=hve(n),t}function OY(e){return e!=null&&e==e.window}function gve(e){return OY(e)?e.document:e.nodeType===9?e:e.ownerDocument}function fLe(e,t,r){var n=r,a="",i=gve(e);return n=n||i.defaultView.getComputedStyle(e,null),n&&(a=n.getPropertyValue(t)||n[t]),a}var hLe=new RegExp("^(".concat(uLe,")(?!px)[a-z%]+$"),"i"),gLe=/^(top|right|bottom|left)$/,N_="currentStyle",k_="runtimeStyle",jd="left",pLe="px";function vLe(e,t){var r=e[N_]&&e[N_][t];if(hLe.test(r)&&!gLe.test(t)){var n=e.style,a=n[jd],i=e[k_][jd];e[k_][jd]=e[N_][jd],n[jd]=t==="fontSize"?"1em":r||0,r=n.pixelLeft+pLe,n[jd]=a,e[k_][jd]=i}return r===""?"auto":r}typeof window<"u"&&(vC=window.getComputedStyle?fLe:vLe);function fw(e,t){return e==="left"?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function nW(e){if(e==="left")return"right";if(e==="right")return"left";if(e==="top")return"bottom";if(e==="bottom")return"top"}function aW(e,t,r){Qp(e,"position")==="static"&&(e.style.position="relative");var n=-999,a=-999,i=fw("left",r),o=fw("top",r),s=nW(i),l=nW(o);i!=="left"&&(n=999),o!=="top"&&(a=999);var A="",c=gy(e);("left"in t||"top"in t)&&(A=oLe(e)||"",tW(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(n,"px")),"top"in t&&(e.style[l]="",e.style[o]="".concat(a,"px")),rW(e);var u=gy(e),d={};for(var f in t)if(t.hasOwnProperty(f)){var h=fw(f,r),g=f==="left"?n:a,p=c[f]-u[f];h===f?d[h]=g+p:d[h]=g-p}Qp(e,d),rW(e),("left"in t||"top"in t)&&tW(e,A);var E={};for(var y in t)if(t.hasOwnProperty(y)){var C=fw(y,r),w=t[y]-c[y];y===C?E[C]=d[C]+w:E[C]=d[C]-w}Qp(e,E)}function mLe(e,t){var r=gy(e),n=sLe(e),a={x:n.x,y:n.y};"left"in t&&(a.x=n.x+t.left-r.left),"top"in t&&(a.y=n.y+t.top-r.top),cLe(e,a)}function ELe(e,t,r){if(r.ignoreShake){var n=gy(e),a=n.left.toFixed(0),i=n.top.toFixed(0),o=t.left.toFixed(0),s=t.top.toFixed(0);if(a===o&&i===s)return}r.useCssRight||r.useCssBottom?aW(e,t,r):r.useCssTransform&&nR()in document.body.style?mLe(e,t):aW(e,t,r)}function zY(e,t){for(var r=0;r<e.length;r++)t(e[r])}function pve(e){return vC(e,"boxSizing")==="border-box"}var yLe=["margin","border","padding"],oz=-1,CLe=2,sz=1,wLe=0;function BLe(e,t,r){var n={},a=e.style,i;for(i in t)t.hasOwnProperty(i)&&(n[i]=a[i],a[i]=t[i]);r.call(e);for(i in t)t.hasOwnProperty(i)&&(a[i]=n[i])}function m0(e,t,r){var n=0,a,i,o;for(i=0;i<t.length;i++)if(a=t[i],a)for(o=0;o<r.length;o++){var s=void 0;a==="border"?s="".concat(a).concat(r[o],"Width"):s=a+r[o],n+=parseFloat(vC(e,s))||0}return n}var vA={getParent:function(t){var r=t;do r.nodeType===11&&r.host?r=r.host:r=r.parentNode;while(r&&r.nodeType!==1&&r.nodeType!==9);return r}};zY(["Width","Height"],function(e){vA["doc".concat(e)]=function(t){var r=t.document;return Math.max(r.documentElement["scroll".concat(e)],r.body["scroll".concat(e)],vA["viewport".concat(e)](r))},vA["viewport".concat(e)]=function(t){var r="client".concat(e),n=t.document,a=n.body,i=n.documentElement,o=i[r];return n.compatMode==="CSS1Compat"&&o||a&&a[r]||o}});function iW(e,t,r){var n=r;if(OY(e))return t==="width"?vA.viewportWidth(e):vA.viewportHeight(e);if(e.nodeType===9)return t==="width"?vA.docWidth(e):vA.docHeight(e);var a=t==="width"?["Left","Right"]:["Top","Bottom"],i=Math.floor(t==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height),o=pve(e),s=0;(i==null||i<=0)&&(i=void 0,s=vC(e,t),(s==null||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),n===void 0&&(n=o?sz:oz);var l=i!==void 0||o,A=i||s;return n===oz?l?A-m0(e,["border","padding"],a):s:l?n===sz?A:A+(n===CLe?-m0(e,["border"],a):m0(e,["margin"],a)):s+m0(e,yLe.slice(n),a)}var MLe={position:"absolute",visibility:"hidden",display:"block"};function oW(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,a=t[0];return a.offsetWidth!==0?n=iW.apply(void 0,t):BLe(a,MLe,function(){n=iW.apply(void 0,t)}),n}zY(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);vA["outer".concat(t)]=function(n,a){return n&&oW(n,e,a?wLe:sz)};var r=e==="width"?["Left","Right"]:["Top","Bottom"];vA[e]=function(n,a){var i=a;if(i!==void 0){if(n){var o=pve(n);return o&&(i+=m0(n,["padding","border"],r)),Qp(n,e,i)}return}return n&&oW(n,e,oz)}});function vve(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}var nn={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var r=t.ownerDocument||t;return r.defaultView||r.parentWindow},getDocument:gve,offset:function(t,r,n){if(typeof r<"u")ELe(t,r,n||{});else return gy(t)},isWindow:OY,each:zY,css:Qp,clone:function(t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);var a=t.overflow;if(a)for(r in t)t.hasOwnProperty(r)&&(n.overflow[r]=t.overflow[r]);return n},mix:vve,getWindowScrollLeft:function(t){return fve(t)},getWindowScrollTop:function(t){return hve(t)},merge:function(){for(var t={},r=0;r<arguments.length;r++)nn.mix(t,r<0||arguments.length<=r?void 0:arguments[r]);return t},viewportWidth:0,viewportHeight:0};vve(nn,vA);var P_=nn.getParent;function lz(e){if(nn.isWindow(e)||e.nodeType===9)return null;var t=nn.getDocument(e),r=t.body,n,a=nn.css(e,"position"),i=a==="fixed"||a==="absolute";if(!i)return e.nodeName.toLowerCase()==="html"?null:P_(e);for(n=P_(e);n&&n!==r&&n.nodeType!==9;n=P_(n))if(a=nn.css(n,"position"),a!=="static")return n;return null}var sW=nn.getParent;function xLe(e){if(nn.isWindow(e)||e.nodeType===9)return!1;var t=nn.getDocument(e),r=t.body,n=null;for(n=sW(e);n&&n!==r&&n!==t;n=sW(n)){var a=nn.css(n,"position");if(a==="fixed")return!0}return!1}function jY(e,t){for(var r={left:0,right:1/0,top:0,bottom:1/0},n=lz(e),a=nn.getDocument(e),i=a.defaultView||a.parentWindow,o=a.body,s=a.documentElement;n;){if((navigator.userAgent.indexOf("MSIE")===-1||n.clientWidth!==0)&&n!==o&&n!==s&&nn.css(n,"overflow")!=="visible"){var l=nn.offset(n);l.left+=n.clientLeft,l.top+=n.clientTop,r.top=Math.max(r.top,l.top),r.right=Math.min(r.right,l.left+n.clientWidth),r.bottom=Math.min(r.bottom,l.top+n.clientHeight),r.left=Math.max(r.left,l.left)}else if(n===o||n===s)break;n=lz(n)}var A=null;if(!nn.isWindow(e)&&e.nodeType!==9){A=e.style.position;var c=nn.css(e,"position");c==="absolute"&&(e.style.position="fixed")}var u=nn.getWindowScrollLeft(i),d=nn.getWindowScrollTop(i),f=nn.viewportWidth(i),h=nn.viewportHeight(i),g=s.scrollWidth,p=s.scrollHeight,E=window.getComputedStyle(o);if(E.overflowX==="hidden"&&(g=i.innerWidth),E.overflowY==="hidden"&&(p=i.innerHeight),e.style&&(e.style.position=A),t||xLe(e))r.left=Math.max(r.left,u),r.top=Math.max(r.top,d),r.right=Math.min(r.right,u+f),r.bottom=Math.min(r.bottom,d+h);else{var y=Math.max(g,u+f);r.right=Math.min(r.right,y);var C=Math.max(p,d+h);r.bottom=Math.min(r.bottom,C)}return r.top>=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null}function ILe(e,t,r,n){var a=nn.clone(e),i={width:t.width,height:t.height};return n.adjustX&&a.left<r.left&&(a.left=r.left),n.resizeWidth&&a.left>=r.left&&a.left+i.width>r.right&&(i.width-=a.left+i.width-r.right),n.adjustX&&a.left+i.width>r.right&&(a.left=Math.max(r.right-i.width,r.left)),n.adjustY&&a.top<r.top&&(a.top=r.top),n.resizeHeight&&a.top>=r.top&&a.top+i.height>r.bottom&&(i.height-=a.top+i.height-r.bottom),n.adjustY&&a.top+i.height>r.bottom&&(a.top=Math.max(r.bottom-i.height,r.top)),nn.mix(a,i)}function YY(e){var t,r,n;if(!nn.isWindow(e)&&e.nodeType!==9)t=nn.offset(e),r=nn.outerWidth(e),n=nn.outerHeight(e);else{var a=nn.getWindow(e);t={left:nn.getWindowScrollLeft(a),top:nn.getWindowScrollTop(a)},r=nn.viewportWidth(a),n=nn.viewportHeight(a)}return t.width=r,t.height=n,t}function lW(e,t){var r=t.charAt(0),n=t.charAt(1),a=e.width,i=e.height,o=e.left,s=e.top;return r==="c"?s+=i/2:r==="b"&&(s+=i),n==="c"?o+=a/2:n==="r"&&(o+=a),{left:o,top:s}}function hw(e,t,r,n,a){var i=lW(t,r[1]),o=lW(e,r[0]),s=[o.left-i.left,o.top-i.top];return{left:Math.round(e.left-s[0]+n[0]-a[0]),top:Math.round(e.top-s[1]+n[1]-a[1])}}function AW(e,t,r){return e.left<r.left||e.left+t.width>r.right}function cW(e,t,r){return e.top<r.top||e.top+t.height>r.bottom}function bLe(e,t,r){return e.left>r.right||e.left+t.width<r.left}function SLe(e,t,r){return e.top>r.bottom||e.top+t.height<r.top}function gw(e,t,r){var n=[];return nn.each(e,function(a){n.push(a.replace(t,function(i){return r[i]}))}),n}function pw(e,t){return e[t]=-e[t],e}function uW(e,t){var r;return/%$/.test(e)?r=parseInt(e.substring(0,e.length-1),10)/100*t:r=parseInt(e,10),r||0}function dW(e,t){e[0]=uW(e[0],t.width),e[1]=uW(e[1],t.height)}function mve(e,t,r,n){var a=r.points,i=r.offset||[0,0],o=r.targetOffset||[0,0],s=r.overflow,l=r.source||e;i=[].concat(i),o=[].concat(o),s=s||{};var A={},c=0,u=!!(s&&s.alwaysByViewport),d=jY(l,u),f=YY(l);dW(i,f),dW(o,t);var h=hw(f,t,a,i,o),g=nn.merge(f,h);if(d&&(s.adjustX||s.adjustY)&&n){if(s.adjustX&&AW(h,f,d)){var p=gw(a,/[lr]/gi,{l:"r",r:"l"}),E=pw(i,0),y=pw(o,0),C=hw(f,t,p,E,y);bLe(C,f,d)||(c=1,a=p,i=E,o=y)}if(s.adjustY&&cW(h,f,d)){var w=gw(a,/[tb]/gi,{t:"b",b:"t"}),B=pw(i,1),M=pw(o,1),I=hw(f,t,w,B,M);SLe(I,f,d)||(c=1,a=w,i=B,o=M)}c&&(h=hw(f,t,a,i,o),nn.mix(g,h));var S=AW(h,f,d),R=cW(h,f,d);if(S||R){var b=a;S&&(b=gw(a,/[lr]/gi,{l:"r",r:"l"})),R&&(b=gw(a,/[tb]/gi,{t:"b",b:"t"})),a=b,i=r.offset||[0,0],o=r.targetOffset||[0,0]}A.adjustX=s.adjustX&&S,A.adjustY=s.adjustY&&R,(A.adjustX||A.adjustY)&&(g=ILe(h,f,d,A))}return g.width!==f.width&&nn.css(l,"width",nn.width(l)+g.width-f.width),g.height!==f.height&&nn.css(l,"height",nn.height(l)+g.height-f.height),nn.offset(l,{left:g.left,top:g.top},{useCssRight:r.useCssRight,useCssBottom:r.useCssBottom,useCssTransform:r.useCssTransform,ignoreShake:r.ignoreShake}),{points:a,offset:i,targetOffset:o,overflow:A}}function RLe(e,t){var r=jY(e,t),n=YY(e);return!r||n.left+n.width<=r.left||n.top+n.height<=r.top||n.left>=r.right||n.top>=r.bottom}function LY(e,t,r){var n=r.target||t,a=YY(n),i=!RLe(n,r.overflow&&r.overflow.alwaysByViewport);return mve(e,a,r,i)}LY.__getOffsetParent=lz;LY.__getVisibleRectForElement=jY;function TLe(e,t,r){var n,a,i=nn.getDocument(e),o=i.defaultView||i.parentWindow,s=nn.getWindowScrollLeft(o),l=nn.getWindowScrollTop(o),A=nn.viewportWidth(o),c=nn.viewportHeight(o);"pageX"in t?n=t.pageX:n=s+t.clientX,"pageY"in t?a=t.pageY:a=l+t.clientY;var u={left:n,top:a,width:0,height:0},d=n>=0&&n<=s+A&&a>=0&&a<=l+c,f=[r.points[0],"cc"];return mve(e,u,eW(eW({},r),{},{points:f}),d)}function rv(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(i,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(Sn(!l,"Warning: There may be circular references"),l)return!1;if(i===o)return!0;if(r&&s>1)return!1;n.add(i);var A=s+1;if(Array.isArray(i)){if(!Array.isArray(o)||i.length!==o.length)return!1;for(var c=0;c<i.length;c++)if(!a(i[c],o[c],A))return!1;return!0}if(i&&o&&Xt(i)==="object"&&Xt(o)==="object"){var u=Object.keys(i);return u.length!==Object.keys(o).length?!1:u.every(function(d){return a(i[d],o[d],A)})}return!1}return a(e,t)}const aR=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),i=a.width,o=a.height;if(i||o)return!0}}return!1},QLe=function(e,t){var r=te.useRef(!1),n=te.useRef(null);function a(){window.clearTimeout(n.current)}function i(o){if(a(),!r.current||o===!0){if(e(o)===!1)return;r.current=!0,n.current=window.setTimeout(function(){r.current=!1},t)}else n.current=window.setTimeout(function(){r.current=!1,i()},t)}return[i,function(){r.current=!1,a()}]};function DLe(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function FLe(e,t){e!==document.activeElement&&Nf(t,e)&&typeof e.focus=="function"&&e.focus()}function fW(e,t){var r=null,n=null;function a(o){var s=De(o,1),l=s[0].target;if(document.documentElement.contains(l)){var A=l.getBoundingClientRect(),c=A.width,u=A.height,d=Math.floor(c),f=Math.floor(u);(r!==d||n!==f)&&Promise.resolve().then(function(){t({width:d,height:f})}),r=d,n=f}}var i=new bY(a);return e&&i.observe(e),function(){i.disconnect()}}function hW(e){return typeof e!="function"?null:e()}function gW(e){return Xt(e)!=="object"||!e?null:e}var _Le=function(t,r){var n=t.children,a=t.disabled,i=t.target,o=t.align,s=t.onAlign,l=t.monitorWindowResize,A=t.monitorBufferTime,c=A===void 0?0:A,u=te.useRef({}),d=te.useRef(),f=te.Children.only(n),h=te.useRef({});h.current.disabled=a,h.current.target=i,h.current.align=o,h.current.onAlign=s;var g=QLe(function(){var Q=h.current,D=Q.disabled,F=Q.target,N=Q.align,k=Q.onAlign,O=d.current;if(!D&&F&&O){var P,z=hW(F),j=gW(F);u.current.element=z,u.current.point=j,u.current.align=N;var V=document,L=V.activeElement;return z&&aR(z)?P=LY(O,z,N):j&&(P=TLe(O,j,N)),FLe(L,O),k&&P&&k(O,P),!0}return!1},c),p=De(g,2),E=p[0],y=p[1],C=te.useState(),w=De(C,2),B=w[0],M=w[1],I=te.useState(),S=De(I,2),R=S[0],b=S[1];return Wn(function(){M(hW(i)),b(gW(i))}),te.useEffect(function(){(u.current.element!==B||!DLe(u.current.point,R)||!rv(u.current.align,o))&&E()}),te.useEffect(function(){var Q=fW(d.current,E);return Q},[d.current]),te.useEffect(function(){var Q=fW(B,E);return Q},[B]),te.useEffect(function(){a?y():E()},[a]),te.useEffect(function(){if(l){var Q=mc(window,"resize",E);return Q.remove}},[l]),te.useEffect(function(){return function(){y()}},[]),te.useImperativeHandle(r,function(){return{forceAlign:function(){return E(!0)}}}),te.isValidElement(f)&&(f=te.cloneElement(f,{ref:As(f.ref,d)})),f},Eve=te.forwardRef(_Le);Eve.displayName="Align";var pW=["measure","alignPre","align",null,"motion"];const NLe=function(e,t){var r=$u(null),n=De(r,2),a=n[0],i=n[1],o=m.useRef();function s(c){i(c,!0)}function l(){fn.cancel(o.current)}function A(c){l(),o.current=fn(function(){s(function(u){switch(a){case"align":return"motion";case"motion":return"stable"}return u}),c==null||c()})}return m.useEffect(function(){s("measure")},[e]),m.useEffect(function(){switch(a){case"measure":t();break}a&&(o.current=fn(hd(di().mark(function c(){var u,d;return di().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:u=pW.indexOf(a),d=pW[u+1],d&&u!==-1&&s(d);case 3:case"end":return h.stop()}},c)}))))},[a]),m.useEffect(function(){return function(){l()}},[]),[a,A]},kLe=function(e){var t=m.useState({width:0,height:0}),r=De(t,2),n=r[0],a=r[1];function i(s){var l=s.offsetWidth,A=s.offsetHeight,c=s.getBoundingClientRect(),u=c.width,d=c.height;Math.abs(l-u)<1&&Math.abs(A-d)<1&&(l=u,A=d),a({width:l,height:A})}var o=m.useMemo(function(){var s={};if(e){var l=n.width,A=n.height;e.indexOf("height")!==-1&&A?s.height=A:e.indexOf("minHeight")!==-1&&A&&(s.minHeight=A),e.indexOf("width")!==-1&&l?s.width=l:e.indexOf("minWidth")!==-1&&l&&(s.minWidth=l)}return s},[e,n]);return[o,i]};var yve=m.forwardRef(function(e,t){var r=e.visible,n=e.prefixCls,a=e.className,i=e.style,o=e.children,s=e.zIndex,l=e.stretch,A=e.destroyPopupOnHide,c=e.forceRender,u=e.align,d=e.point,f=e.getRootDomNode,h=e.getClassNameFromAlign,g=e.onAlign,p=e.onMouseEnter,E=e.onMouseLeave,y=e.onMouseDown,C=e.onTouchStart,w=e.onClick,B=m.useRef(),M=m.useRef(),I=m.useState(),S=De(I,2),R=S[0],b=S[1],Q=kLe(l),D=De(Q,2),F=D[0],N=D[1];function k(){l&&N(f())}var O=NLe(r,k),P=De(O,2),z=P[0],j=P[1],V=m.useState(0),L=De(V,2),K=L[0],J=L[1],Y=m.useRef();Wn(function(){z==="alignPre"&&J(0)},[z]);function W(){return d||f}function q(){var Se;(Se=B.current)===null||Se===void 0||Se.forceAlign()}function ee(Se,ye){var pe=h(ye);R!==pe&&b(pe),J(function(Qe){return Qe+1}),z==="align"&&(g==null||g(Se,ye))}Wn(function(){z==="align"&&(K<3?q():j(function(){var Se;(Se=Y.current)===null||Se===void 0||Se.call(Y)}))},[K]);var ae=$({},cve(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Se){var ye=ae[Se];ae[Se]=function(pe,Qe){return j(),ye==null?void 0:ye(pe,Qe)}});function ne(){return new Promise(function(Se){Y.current=Se})}m.useEffect(function(){!ae.motionName&&z==="motion"&&j()},[ae.motionName,z]),m.useImperativeHandle(t,function(){return{forceAlign:q,getElement:function(){return M.current}}});var ce=$($({},F),{},{zIndex:s,opacity:z==="motion"||z==="stable"||!r?void 0:0,pointerEvents:!r&&z!=="stable"?"none":void 0},i),ue=!0;u!=null&&u.points&&(z==="align"||z==="stable")&&(ue=!1);var ge=o;return m.Children.count(o)>1&&(ge=m.createElement("div",{className:"".concat(n,"-content")},o)),m.createElement(Ri,oe({visible:r,ref:M,leavedClassName:"".concat(n,"-hidden")},ae,{onAppearPrepare:ne,onEnterPrepare:ne,removeOnLeave:A,forceRender:c}),function(Se,ye){var pe=Se.className,Qe=Se.style,Ue=He(n,a,R,pe);return m.createElement(Eve,{target:W(),key:"popup",ref:B,monitorWindowResize:!0,disabled:ue,align:u,onAlign:ee},m.createElement("div",{ref:ye,className:Ue,onMouseEnter:p,onMouseLeave:E,onMouseDownCapture:y,onTouchStartCapture:C,onClick:w,style:$($({},Qe),ce)},ge))})});yve.displayName="PopupInner";var Cve=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.visible,a=e.zIndex,i=e.children,o=e.mobile;o=o===void 0?{}:o;var s=o.popupClassName,l=o.popupStyle,A=o.popupMotion,c=A===void 0?{}:A,u=o.popupRender,d=e.onClick,f=m.useRef();m.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return f.current}}});var h=$({zIndex:a},l),g=i;return m.Children.count(i)>1&&(g=m.createElement("div",{className:"".concat(r,"-content")},i)),u&&(g=u(g)),m.createElement(Ri,oe({visible:n,ref:f,removeOnLeave:!0},c),function(p,E){var y=p.className,C=p.style,w=He(r,s,y);return m.createElement("div",{ref:E,className:w,onClick:d,style:$($({},C),h)},g)})});Cve.displayName="MobilePopupInner";var PLe=["visible","mobile"],wve=m.forwardRef(function(e,t){var r=e.visible,n=e.mobile,a=Tr(e,PLe),i=m.useState(r),o=De(i,2),s=o[0],l=o[1],A=m.useState(!1),c=De(A,2),u=c[0],d=c[1],f=$($({},a),{},{visible:s});m.useEffect(function(){l(r),r&&n&&d(rR())},[r,n]);var h=u?m.createElement(Cve,oe({},f,{mobile:n,ref:t})):m.createElement(yve,oe({},f,{ref:t}));return m.createElement("div",null,m.createElement(nLe,f),h)});wve.displayName="Popup";var vW=m.createContext(null);function O_(){}function OLe(){return""}function zLe(e){return e?e.ownerDocument:window.document}var jLe=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function YLe(e){var t=function(r){xn(a,r);var n=sa(a);function a(i){var o;sn(this,a),o=n.call(this,i),X(at(o),"popupRef",m.createRef()),X(at(o),"triggerRef",m.createRef()),X(at(o),"portalContainer",void 0),X(at(o),"attachId",void 0),X(at(o),"clickOutsideHandler",void 0),X(at(o),"touchOutsideHandler",void 0),X(at(o),"contextMenuOutsideHandler1",void 0),X(at(o),"contextMenuOutsideHandler2",void 0),X(at(o),"mouseDownTimeout",void 0),X(at(o),"focusTime",void 0),X(at(o),"preClickTime",void 0),X(at(o),"preTouchTime",void 0),X(at(o),"delayTimer",void 0),X(at(o),"hasPopupMouseDown",void 0),X(at(o),"onMouseEnter",function(l){var A=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",l),o.delaySetPopupVisible(!0,A,A?null:l)}),X(at(o),"onMouseMove",function(l){o.fireEvents("onMouseMove",l),o.setPoint(l)}),X(at(o),"onMouseLeave",function(l){o.fireEvents("onMouseLeave",l),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)}),X(at(o),"onPopupMouseEnter",function(){o.clearDelayTimer()}),X(at(o),"onPopupMouseLeave",function(l){var A;l.relatedTarget&&!l.relatedTarget.setTimeout&&Nf((A=o.popupRef.current)===null||A===void 0?void 0:A.getElement(),l.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)}),X(at(o),"onFocus",function(l){o.fireEvents("onFocus",l),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))}),X(at(o),"onMouseDown",function(l){o.fireEvents("onMouseDown",l),o.preClickTime=Date.now()}),X(at(o),"onTouchStart",function(l){o.fireEvents("onTouchStart",l),o.preTouchTime=Date.now()}),X(at(o),"onBlur",function(l){o.fireEvents("onBlur",l),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)}),X(at(o),"onContextMenu",function(l){l.preventDefault(),o.fireEvents("onContextMenu",l),o.setPopupVisible(!0,l)}),X(at(o),"onContextMenuClose",function(){o.isContextMenuToShow()&&o.close()}),X(at(o),"onClick",function(l){if(o.fireEvents("onClick",l),o.focusTime){var A;if(o.preClickTime&&o.preTouchTime?A=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?A=o.preClickTime:o.preTouchTime&&(A=o.preTouchTime),Math.abs(A-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var c=!o.state.popupVisible;(o.isClickToHide()&&!c||c&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,l)}),X(at(o),"onPopupMouseDown",function(){if(o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout(function(){o.hasPopupMouseDown=!1},0),o.context){var l;(l=o.context).onPopupMouseDown.apply(l,arguments)}}),X(at(o),"onDocumentClick",function(l){if(!(o.props.mask&&!o.props.maskClosable)){var A=l.target,c=o.getRootDomNode(),u=o.getPopupDomNode();(!Nf(c,A)||o.isContextMenuOnly())&&!Nf(u,A)&&!o.hasPopupMouseDown&&o.close()}}),X(at(o),"getRootDomNode",function(){var l=o.props.getTriggerDOMNode;if(l)return l(o.triggerRef.current);try{var A=Y0(o.triggerRef.current);if(A)return A}catch{}return bo.findDOMNode(at(o))}),X(at(o),"getPopupClassNameFromAlign",function(l){var A=[],c=o.props,u=c.popupPlacement,d=c.builtinPlacements,f=c.prefixCls,h=c.alignPoint,g=c.getPopupClassNameFromAlign;return u&&d&&A.push(rLe(d,f,l,h)),g&&A.push(g(l)),A.join(" ")}),X(at(o),"getComponent",function(){var l=o.props,A=l.prefixCls,c=l.destroyPopupOnHide,u=l.popupClassName,d=l.onPopupAlign,f=l.popupMotion,h=l.popupAnimation,g=l.popupTransitionName,p=l.popupStyle,E=l.mask,y=l.maskAnimation,C=l.maskTransitionName,w=l.maskMotion,B=l.zIndex,M=l.popup,I=l.stretch,S=l.alignPoint,R=l.mobile,b=l.forceRender,Q=l.onPopupClick,D=o.state,F=D.popupVisible,N=D.point,k=o.getPopupAlign(),O={};return o.isMouseEnterToShow()&&(O.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(O.onMouseLeave=o.onPopupMouseLeave),O.onMouseDown=o.onPopupMouseDown,O.onTouchStart=o.onPopupMouseDown,m.createElement(wve,oe({prefixCls:A,destroyPopupOnHide:c,visible:F,point:S&&N,className:u,align:k,onAlign:d,animation:h,getClassNameFromAlign:o.getPopupClassNameFromAlign},O,{stretch:I,getRootDomNode:o.getRootDomNode,style:p,mask:E,zIndex:B,transitionName:g,maskAnimation:y,maskTransitionName:C,maskMotion:w,ref:o.popupRef,motion:f,mobile:R,forceRender:b,onClick:Q}),typeof M=="function"?M():M)}),X(at(o),"attachParent",function(l){fn.cancel(o.attachId);var A=o.props,c=A.getPopupContainer,u=A.getDocument,d=o.getRootDomNode(),f;c?(d||c.length===0)&&(f=c(d)):f=u(o.getRootDomNode()).body,f?f.appendChild(l):o.attachId=fn(function(){o.attachParent(l)})}),X(at(o),"getContainer",function(){if(!o.portalContainer){var l=o.props.getDocument,A=l(o.getRootDomNode()).createElement("div");A.style.position="absolute",A.style.top="0",A.style.left="0",A.style.width="100%",o.portalContainer=A}return o.attachParent(o.portalContainer),o.portalContainer}),X(at(o),"setPoint",function(l){var A=o.props.alignPoint;!A||!l||o.setState({point:{pageX:l.pageX,pageY:l.pageY}})}),X(at(o),"handlePortalUpdate",function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)}),X(at(o),"triggerContextValue",{onPopupMouseDown:o.onPopupMouseDown});var s;return"popupVisible"in i?s=!!i.popupVisible:s=!!i.defaultPopupVisible,o.state={prevPopupVisible:s,popupVisible:s},jLe.forEach(function(l){o["fire".concat(l)]=function(A){o.fireEvents(l,A)}}),o}return ln(a,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var o=this.props,s=this.state;if(s.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=o.getDocument(this.getRootDomNode()),this.clickOutsideHandler=mc(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||o.getDocument(this.getRootDomNode()),this.touchOutsideHandler=mc(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||o.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=mc(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=mc(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),fn.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var o;return((o=this.popupRef.current)===null||o===void 0?void 0:o.getElement())||null}},{key:"getPopupAlign",value:function(){var o=this.props,s=o.popupPlacement,l=o.popupAlign,A=o.builtinPlacements;return s&&A?tLe(A,s,l):l}},{key:"setPopupVisible",value:function(o,s){var l=this.props.alignPoint,A=this.state.popupVisible;this.clearDelayTimer(),A!==o&&("popupVisible"in this.props||this.setState({popupVisible:o,prevPopupVisible:A}),this.props.onPopupVisibleChange(o)),l&&s&&o&&this.setPoint(s)}},{key:"delaySetPopupVisible",value:function(o,s,l){var A=this,c=s*1e3;if(this.clearDelayTimer(),c){var u=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){A.setPopupVisible(o,u),A.clearDelayTimer()},c)}else this.setPopupVisible(o,l)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(o){var s=this.props.children.props,l=this.props;return s[o]&&l[o]?this["fire".concat(o)]:s[o]||l[o]}},{key:"isClickToShow",value:function(){var o=this.props,s=o.action,l=o.showAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var o=this.props.action;return o==="contextMenu"||o.length===1&&o[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var o=this.props,s=o.action,l=o.showAction;return s.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var o=this.props,s=o.action,l=o.hideAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var o=this.props,s=o.action,l=o.showAction;return s.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var o=this.props,s=o.action,l=o.hideAction;return s.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var o=this.props,s=o.action,l=o.showAction;return s.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var o=this.props,s=o.action,l=o.hideAction;return s.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var o;(o=this.popupRef.current)===null||o===void 0||o.forceAlign()}}},{key:"fireEvents",value:function(o,s){var l=this.props.children.props[o];l&&l(s);var A=this.props[o];A&&A(s)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var o=this.state.popupVisible,s=this.props,l=s.children,A=s.forceRender,c=s.alignPoint,u=s.className,d=s.autoDestroy,f=m.Children.only(l),h={key:"trigger"};this.isContextMenuToShow()?h.onContextMenu=this.onContextMenu:h.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(h.onClick=this.onClick,h.onMouseDown=this.onMouseDown,h.onTouchStart=this.onTouchStart):(h.onClick=this.createTwoChains("onClick"),h.onMouseDown=this.createTwoChains("onMouseDown"),h.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(h.onMouseEnter=this.onMouseEnter,c&&(h.onMouseMove=this.onMouseMove)):h.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?h.onMouseLeave=this.onMouseLeave:h.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(h.onFocus=this.onFocus,h.onBlur=this.onBlur):(h.onFocus=this.createTwoChains("onFocus"),h.onBlur=this.createTwoChains("onBlur"));var g=He(f&&f.props&&f.props.className,u);g&&(h.className=g);var p=$({},h);Eh(f)&&(p.ref=As(this.triggerRef,f.ref));var E=m.cloneElement(f,p),y;return(o||this.popupRef.current||A)&&(y=m.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!o&&d&&(y=null),m.createElement(vW.Provider,{value:this.triggerContextValue},E,y)}}],[{key:"getDerivedStateFromProps",value:function(o,s){var l=o.popupVisible,A={};return l!==void 0&&s.popupVisible!==l&&(A.popupVisible=l,A.prevPopupVisible=s.popupVisible),A}}]),a}(m.Component);return X(t,"contextType",vW),X(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:OLe,getDocument:zLe,onPopupVisibleChange:O_,afterPopupVisibleChange:O_,onPopupAlign:O_,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const mC=YLe($5e);var LLe=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ULe=function(t){var r=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1}}}},HLe=function(t,r){var n=t.prefixCls;t.disabled;var a=t.visible,i=t.children,o=t.popupElement,s=t.containerWidth,l=t.animation,A=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,f=d===void 0?"ltr":d,h=t.placement,g=t.dropdownMatchSelectWidth,p=t.dropdownRender,E=t.dropdownAlign,y=t.getPopupContainer,C=t.empty,w=t.getTriggerDOMNode,B=t.onPopupVisibleChange,M=t.onPopupMouseEnter,I=Tr(t,LLe),S="".concat(n,"-dropdown"),R=o;p&&(R=p(o));var b=m.useMemo(function(){return ULe(g)},[g]),Q=l?"".concat(S,"-").concat(l):A,D=m.useRef(null);m.useImperativeHandle(r,function(){return{getPopupElement:function(){return D.current}}});var F=$({minWidth:s},c);return typeof g=="number"?F.width=g:g&&(F.width=s),m.createElement(mC,oe({},I,{showAction:B?["click"]:[],hideAction:B?["click"]:[],popupPlacement:h||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:b,prefixCls:S,popupTransitionName:Q,popup:m.createElement("div",{ref:D,onMouseEnter:M},R),popupAlign:E,popupVisible:a,getPopupContainer:y,popupClassName:He(u,X({},"".concat(S,"-empty"),C)),popupStyle:F,getTriggerDOMNode:w,onPopupVisibleChange:B}),i)},Bve=m.forwardRef(HLe);Bve.displayName="SelectTrigger";function mW(e,t){var r=e.key,n;return"value"in e&&(n=e.value),r??(n!==void 0?n:"rc-index-key-".concat(t))}function Mve(e,t){var r=e||{},n=r.label,a=r.value,i=r.options;return{label:n||(t?"children":"label"),value:a||"value",options:i||"options"}}function GLe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,a=[],i=Mve(r,!1),o=i.label,s=i.value,l=i.options;function A(c,u){c.forEach(function(d){var f=d[o];if(u||!(l in d)){var h=d[s];a.push({key:mW(d,a.length),groupOption:u,data:d,label:f,value:h})}else{var g=f;g===void 0&&n&&(g=d.label),a.push({key:mW(d,a.length),group:!0,data:d,label:g}),A(d[l],!0)}})}return A(e,!1),a}function Az(e){var t=$({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Sn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function KLe(e,t){if(!t||!t.length)return null;var r=!1;function n(i,o){var s=SY(o),l=s[0],A=s.slice(1);if(!l)return[i];var c=i.split(l);return r=r||c.length>1,c.reduce(function(u,d){return[].concat(Nt(u),Nt(n(d,A)))},[]).filter(function(u){return u})}var a=n(e,t);return r?a:null}var VLe=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],JLe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function cz(e){return e==="tags"||e==="multiple"}var xve=m.forwardRef(function(e,t){var r,n,a=e.id,i=e.prefixCls,o=e.className,s=e.showSearch,l=e.tagRender,A=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,f=e.emptyOptions,h=e.notFoundContent,g=h===void 0?"Not Found":h,p=e.onClear,E=e.mode,y=e.disabled,C=e.loading,w=e.getInputElement,B=e.getRawInputElement,M=e.open,I=e.defaultOpen,S=e.onDropdownVisibleChange,R=e.activeValue,b=e.onActiveValueChange,Q=e.activeDescendantId,D=e.searchValue,F=e.autoClearSearchValue,N=e.onSearch,k=e.onSearchSplit,O=e.tokenSeparators,P=e.allowClear,z=e.showArrow,j=e.inputIcon,V=e.clearIcon,L=e.OptionList,K=e.animation,J=e.transitionName,Y=e.dropdownStyle,W=e.dropdownClassName,q=e.dropdownMatchSelectWidth,ee=e.dropdownRender,ae=e.dropdownAlign,ne=e.placement,ce=e.getPopupContainer,ue=e.showAction,ge=ue===void 0?[]:ue,Se=e.onFocus,ye=e.onBlur,pe=e.onKeyUp,Qe=e.onKeyDown,Ue=e.onMouseDown,tt=Tr(e,VLe),it=cz(E),we=(s!==void 0?s:it)||E==="combobox",ve=$({},tt);JLe.forEach(function(dt){delete ve[dt]}),c==null||c.forEach(function(dt){delete ve[dt]});var Te=m.useState(!1),Be=De(Te,2),Ge=Be[0],ht=Be[1];m.useEffect(function(){ht(rR())},[]);var We=m.useRef(null),Ke=m.useRef(null),Xe=m.useRef(null),$e=m.useRef(null),pt=m.useRef(null),de=x5e(),Fe=De(de,3),je=Fe[0],et=Fe[1],xe=Fe[2];m.useImperativeHandle(t,function(){var dt,se;return{focus:(dt=$e.current)===null||dt===void 0?void 0:dt.focus,blur:(se=$e.current)===null||se===void 0?void 0:se.blur,scrollTo:function(fe){var Me;return(Me=pt.current)===null||Me===void 0?void 0:Me.scrollTo(fe)}}});var Ne=m.useMemo(function(){var dt;if(E!=="combobox")return D;var se=(dt=u[0])===null||dt===void 0?void 0:dt.value;return typeof se=="string"||typeof se=="number"?String(se):""},[D,E,u]),le=E==="combobox"&&typeof w=="function"&&w()||null,At=typeof B=="function"&&B(),Bt=gC(Ke,At==null||(r=At.props)===null||r===void 0?void 0:r.ref),G=Qn(void 0,{defaultValue:I,value:M}),Ee=De(G,2),Ie=Ee[0],ie=Ee[1],re=Ie,he=!g&&f;(y||he&&re&&E==="combobox")&&(re=!1);var Pe=he?!1:re,be=m.useCallback(function(dt){var se=dt!==void 0?dt:!re;y||(ie(se),re!==se&&(S==null||S(se)))},[y,re,ie,S]),Ve=m.useMemo(function(){return(O||[]).some(function(dt){return[`
`,`\r
`].includes(dt)})},[O]),lt=function(se,Ce,fe){var Me=!0,Re=se;b==null||b(null);var Oe=fe?null:KLe(se,O);return E!=="combobox"&&Oe&&(Re="",k==null||k(Oe),be(!1),Me=!1),N&&Ne!==Re&&N(Re,{source:Ce?"typing":"effect"}),Me},Ze=function(se){!se||!se.trim()||N(se,{source:"submit"})};m.useEffect(function(){!re&&!it&&E!=="combobox"&&lt("",!1,!1)},[re]),m.useEffect(function(){Ie&&y&&ie(!1),y&&et(!1)},[y]);var Le=nve(),rt=De(Le,2),Qt=rt[0],Dt=rt[1],ur=function(se){var Ce=Qt(),fe=se.which;if(fe===Pt.ENTER&&(E!=="combobox"&&se.preventDefault(),re||be(!0)),Dt(!!Ne),fe===Pt.BACKSPACE&&!Ce&&it&&!Ne&&u.length){for(var Me=Nt(u),Re=null,Oe=Me.length-1;Oe>=0;Oe-=1){var st=Me[Oe];if(!st.disabled){Me.splice(Oe,1),Re=st;break}}Re&&d(Me,{type:"remove",values:[Re]})}for(var Ct=arguments.length,St=new Array(Ct>1?Ct-1:0),It=1;It<Ct;It++)St[It-1]=arguments[It];if(re&&pt.current){var kt;(kt=pt.current).onKeyDown.apply(kt,[se].concat(St))}Qe==null||Qe.apply(void 0,[se].concat(St))},br=function(se){for(var Ce=arguments.length,fe=new Array(Ce>1?Ce-1:0),Me=1;Me<Ce;Me++)fe[Me-1]=arguments[Me];if(re&&pt.current){var Re;(Re=pt.current).onKeyUp.apply(Re,[se].concat(fe))}pe==null||pe.apply(void 0,[se].concat(fe))},Er=function(se){var Ce=u.filter(function(fe){return fe!==se});d(Ce,{type:"remove",values:[se]})},hr=m.useRef(!1),Wt=function(){et(!0),y||(Se&&!hr.current&&Se.apply(void 0,arguments),ge.includes("focus")&&be(!0)),hr.current=!0},$t=function(){et(!1,function(){hr.current=!1,be(!1)}),!y&&(Ne&&(E==="tags"?N(Ne,{source:"submit"}):E==="multiple"&&N("",{source:"blur"})),ye&&ye.apply(void 0,arguments))},tr=[];m.useEffect(function(){return function(){tr.forEach(function(dt){return clearTimeout(dt)}),tr.splice(0,tr.length)}},[]);var ir=function(se){var Ce,fe=se.target,Me=(Ce=Xe.current)===null||Ce===void 0?void 0:Ce.getPopupElement();if(Me&&Me.contains(fe)){var Re=setTimeout(function(){var St=tr.indexOf(Re);if(St!==-1&&tr.splice(St,1),xe(),!Ge&&!Me.contains(document.activeElement)){var It;(It=$e.current)===null||It===void 0||It.focus()}});tr.push(Re)}for(var Oe=arguments.length,st=new Array(Oe>1?Oe-1:0),Ct=1;Ct<Oe;Ct++)st[Ct-1]=arguments[Ct];Ue==null||Ue.apply(void 0,[se].concat(st))},ar=m.useState(null),rr=De(ar,2),Yt=rr[0],Vt=rr[1],Ut=m.useState({}),Mt=De(Ut,2),xt=Mt[1];function Ft(){xt({})}Wn(function(){if(Pe){var dt,se=Math.ceil((dt=We.current)===null||dt===void 0?void 0:dt.offsetWidth);Yt!==se&&!Number.isNaN(se)&&Vt(se)}},[Pe]);var qt;At&&(qt=function(se){be(se)}),I5e(function(){var dt;return[We.current,(dt=Xe.current)===null||dt===void 0?void 0:dt.getPopupElement()]},Pe,be,!!At);var gr=m.useMemo(function(){return $($({},e),{},{notFoundContent:g,open:re,triggerOpen:Pe,id:a,showSearch:we,multiple:it,toggleOpen:be})},[e,g,Pe,re,a,we,it,be]),Hr=z!==void 0?z:C||!it&&E!=="combobox",zr;Hr&&(zr=m.createElement(hb,{className:He("".concat(i,"-arrow"),X({},"".concat(i,"-arrow-loading"),C)),customizeIcon:j,customizeIconProps:{loading:C,searchValue:Ne,open:re,focused:je,showSearch:we}}));var an,qe=function(){var se;p==null||p(),(se=$e.current)===null||se===void 0||se.focus(),d([],{type:"clear",values:u}),lt("",!1,!1)};!y&&P&&(u.length||Ne)&&!(E==="combobox"&&Ne==="")&&(an=m.createElement(hb,{className:"".concat(i,"-clear"),onMouseDown:qe,customizeIcon:V},"×"));var ke=m.createElement(L,{ref:pt}),ut=He(i,o,(n={},X(n,"".concat(i,"-focused"),je),X(n,"".concat(i,"-multiple"),it),X(n,"".concat(i,"-single"),!it),X(n,"".concat(i,"-allow-clear"),P),X(n,"".concat(i,"-show-arrow"),Hr),X(n,"".concat(i,"-disabled"),y),X(n,"".concat(i,"-loading"),C),X(n,"".concat(i,"-open"),re),X(n,"".concat(i,"-customize-input"),le),X(n,"".concat(i,"-show-search"),we),n)),gt=m.createElement(Bve,{ref:Xe,disabled:y,prefixCls:i,visible:Pe,popupElement:ke,containerWidth:Yt,animation:K,transitionName:J,dropdownStyle:Y,dropdownClassName:W,direction:A,dropdownMatchSelectWidth:q,dropdownRender:ee,dropdownAlign:ae,placement:ne,getPopupContainer:ce,empty:f,getTriggerDOMNode:function(){return Ke.current},onPopupVisibleChange:qt,onPopupMouseEnter:Ft},At?m.cloneElement(At,{ref:Bt}):m.createElement(Ave,oe({},e,{domRef:Ke,prefixCls:i,inputElement:le,ref:$e,id:a,showSearch:we,autoClearSearchValue:F,mode:E,activeDescendantId:Q,tagRender:l,values:u,open:re,onToggleOpen:be,activeValue:R,searchValue:Ne,onSearch:lt,onSearchSubmit:Ze,onRemove:Er,tokenWithEnter:Ve}))),bt;return At?bt=gt:bt=m.createElement("div",oe({className:ut},ve,{ref:We,onMouseDown:ir,onKeyDown:ur,onKeyUp:br,onFocus:Wt,onBlur:$t}),je&&!re&&m.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(u.map(function(dt){var se=dt.label,Ce=dt.value;return["number","string"].includes(Xt(se))?se:Ce}).join(", "))),gt,zr,an),m.createElement(tve.Provider,{value:gr},bt)});const WLe=function(e,t){var r=m.useRef({values:new Map,options:new Map}),n=m.useMemo(function(){var i=r.current,o=i.values,s=i.options,l=e.map(function(u){if(u.label===void 0){var d;return $($({},u),{},{label:(d=o.get(u.value))===null||d===void 0?void 0:d.label})}return u}),A=new Map,c=new Map;return l.forEach(function(u){A.set(u.value,u),c.set(u.value,t.get(u.value)||s.get(u.value))}),r.current.values=A,r.current.options=c,l},[e,t]),a=m.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[n,a]};function z_(e,t){return sve(e).join("").toUpperCase().includes(t)}const XLe=function(e,t,r,n,a){return m.useMemo(function(){if(!r||n===!1)return e;var i=t.options,o=t.label,s=t.value,l=[],A=typeof n=="function",c=r.toUpperCase(),u=A?n:function(f,h){return a?z_(h[a],c):h[i]?z_(h[o!=="children"?o:"label"],c):z_(h[s],c)},d=A?function(f){return Az(f)}:function(f){return f};return e.forEach(function(f){if(f[i]){var h=u(r,d(f));if(h)l.push(f);else{var g=f[i].filter(function(p){return u(r,d(p))});g.length&&l.push($($({},f),{},X({},i,g)))}return}u(r,d(f))&&l.push(f)}),l},[e,n,a,r,t])};var EW=0,qLe=Gi();function ZLe(){var e;return qLe?(e=EW,EW+=1):e="TEST_OR_SSR",e}function Ive(e){var t=m.useState(),r=De(t,2),n=r[0],a=r[1];return m.useEffect(function(){a("rc_select_".concat(ZLe()))},[]),e||n}var $Le=["children","value"],eUe=["children"];function tUe(e){var t=e,r=t.key,n=t.props,a=n.children,i=n.value,o=Tr(n,$Le);return $({key:r,value:i!==void 0?i:r,children:a},o)}function bve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ui(e).map(function(r,n){if(!m.isValidElement(r)||!r.type)return null;var a=r,i=a.type.isSelectOptGroup,o=a.key,s=a.props,l=s.children,A=Tr(s,eUe);return t||!i?tUe(r):$($({key:"__RC_SELECT_GRP__".concat(o===null?n:o,"__"),label:o},A),{},{options:bve(l)})}).filter(function(r){return r})}function rUe(e,t,r,n,a){return m.useMemo(function(){var i=e,o=!e;o&&(i=bve(t));var s=new Map,l=new Map,A=function(d,f,h){h&&typeof h=="string"&&d.set(f[h],f)};function c(u){for(var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=0;f<u.length;f+=1){var h=u[f];!h[r.options]||d?(s.set(h[r.value],h),A(l,h,r.label),A(l,h,n),A(l,h,a)):c(h[r.options],!0)}}return c(i),{options:i,valueOptions:s,labelOptions:l}},[e,t,r,n,a])}function yW(e){var t=m.useRef();t.current=e;var r=m.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}var UY=function(){return null};UY.isSelectOptGroup=!0;var HY=function(){return null};HY.isSelectOption=!0;var Sve=m.forwardRef(function(e,t){var r=e.height,n=e.offsetY,a=e.offsetX,i=e.children,o=e.prefixCls,s=e.onInnerResize,l=e.innerProps,A=e.rtl,c=e.extra,u={},d={display:"flex",flexDirection:"column"};return n!==void 0&&(u={height:r,position:"relative",overflow:"hidden"},d=$($({},d),{},X(X(X(X(X({transform:"translateY(".concat(n,"px)")},A?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:u},m.createElement(ks,{onResize:function(h){var g=h.offsetHeight;g&&s&&s()}},m.createElement("div",oe({style:d,className:He(X({},"".concat(o,"-holder-inner"),o)),ref:t},l),i,c)))});Sve.displayName="Filler";function nUe(e){var t=e.children,r=e.setRef,n=m.useCallback(function(a){r(a)},[]);return m.cloneElement(t,{ref:n})}function aUe(e,t,r,n,a,i,o,s){var l=s.getKey;return e.slice(t,r+1).map(function(A,c){var u=t+c,d=o(A,u,{style:{width:n},offsetX:a}),f=l(A);return m.createElement(nUe,{key:f,setRef:function(g){return i(A,g)}},d)})}function iUe(e,t,r){var n=e.length,a=t.length,i,o;if(n===0&&a===0)return null;n<a?(i=e,o=t):(i=t,o=e);var s={__EMPTY_ITEM__:!0};function l(h){return h!==void 0?r(h):s}for(var A=null,c=Math.abs(n-a)!==1,u=0;u<o.length;u+=1){var d=l(i[u]),f=l(o[u]);if(d!==f){A=u,c=c||d!==l(o[u+1]);break}}return A===null?null:{index:A,multiple:c}}function oUe(e,t,r){var n=m.useState(e),a=De(n,2),i=a[0],o=a[1],s=m.useState(null),l=De(s,2),A=l[0],c=l[1];return m.useEffect(function(){var u=iUe(i||[],e||[],t);(u==null?void 0:u.index)!==void 0&&c(e[u.index]),o(e)},[e]),[A]}var CW=(typeof navigator>"u"?"undefined":Xt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Rve=function(e,t,r,n){var a=m.useRef(!1),i=m.useRef(null);function o(){clearTimeout(i.current),a.current=!0,i.current=setTimeout(function(){a.current=!1},50)}var s=m.useRef({top:e,bottom:t,left:r,right:n});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=n,function(l,A){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=l?A<0&&s.current.left||A>0&&s.current.right:A<0&&s.current.top||A>0&&s.current.bottom;return c&&u?(clearTimeout(i.current),a.current=!1):(!u||a.current)&&o(),!a.current&&u}};function sUe(e,t,r,n,a,i,o){var s=m.useRef(0),l=m.useRef(null),A=m.useRef(null),c=m.useRef(!1),u=Rve(t,r,n,a);function d(y,C){if(fn.cancel(l.current),!u(!1,C)){var w=y;if(!w._virtualHandled)w._virtualHandled=!0;else return;s.current+=C,A.current=C,CW||w.preventDefault(),l.current=fn(function(){var B=c.current?10:1;o(s.current*B,!1),s.current=0})}}function f(y,C){o(C,!0),CW||y.preventDefault()}var h=m.useRef(null),g=m.useRef(null);function p(y){if(e){fn.cancel(g.current),g.current=fn(function(){h.current=null},2);var C=y.deltaX,w=y.deltaY,B=y.shiftKey,M=C,I=w;(h.current==="sx"||!h.current&&B&&w&&!C)&&(M=w,I=0,h.current="sx");var S=Math.abs(M),R=Math.abs(I);h.current===null&&(h.current=i&&S>R?"x":"y"),h.current==="y"?d(y,I):f(y,M)}}function E(y){e&&(c.current=y.detail===A.current)}return[p,E]}function lUe(e,t,r,n){var a=m.useMemo(function(){return[new Map,[]]},[e,r.id,n]),i=De(a,2),o=i[0],s=i[1],l=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,d=o.get(c),f=o.get(u);if(d===void 0||f===void 0)for(var h=e.length,g=s.length;g<h;g+=1){var p,E=e[g],y=t(E);o.set(y,g);var C=(p=r.get(y))!==null&&p!==void 0?p:n;if(s[g]=(s[g-1]||0)+C,y===c&&(d=g),y===u&&(f=g),d!==void 0&&f!==void 0)break}return{top:s[d-1]||0,bottom:s[f]}};return l}var AUe=function(){function e(){sn(this,e),X(this,"maps",void 0),X(this,"id",0),X(this,"diffRecords",new Map),this.maps=Object.create(null)}return ln(e,[{key:"set",value:function(r,n){this.diffRecords.set(r,this.maps[r]),this.maps[r]=n,this.id+=1}},{key:"get",value:function(r){return this.maps[r]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function wW(e){var t=parseFloat(e);return isNaN(t)?0:t}function cUe(e,t,r){var n=m.useState(0),a=De(n,2),i=a[0],o=a[1],s=m.useRef(new Map),l=m.useRef(new AUe),A=m.useRef(0);function c(){A.current+=1}function u(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;c();var h=function(){var E=!1;s.current.forEach(function(y,C){if(y&&y.offsetParent){var w=y.offsetHeight,B=getComputedStyle(y),M=B.marginTop,I=B.marginBottom,S=wW(M),R=wW(I),b=w+S+R;l.current.get(C)!==b&&(l.current.set(C,b),E=!0)}}),E&&o(function(y){return y+1})};if(f)h();else{A.current+=1;var g=A.current;Promise.resolve().then(function(){g===A.current&&h()})}}function d(f,h){var g=e(f);s.current.get(g),h?(s.current.set(g,h),u()):s.current.delete(g)}return m.useEffect(function(){return c},[]),[d,u,l.current,i]}var BW=14/15;function uUe(e,t,r){var n=m.useRef(!1),a=m.useRef(0),i=m.useRef(0),o=m.useRef(null),s=m.useRef(null),l,A=function(f){if(n.current){var h=Math.ceil(f.touches[0].pageX),g=Math.ceil(f.touches[0].pageY),p=a.current-h,E=i.current-g,y=Math.abs(p)>Math.abs(E);y?a.current=h:i.current=g;var C=r(y,y?p:E,!1,f);C&&f.preventDefault(),clearInterval(s.current),C&&(s.current=setInterval(function(){y?p*=BW:E*=BW;var w=Math.floor(y?p:E);(!r(y,w,!0)||Math.abs(w)<=.1)&&clearInterval(s.current)},16))}},c=function(){n.current=!1,l()},u=function(f){l(),f.touches.length===1&&!n.current&&(n.current=!0,a.current=Math.ceil(f.touches[0].pageX),i.current=Math.ceil(f.touches[0].pageY),o.current=f.target,o.current.addEventListener("touchmove",A,{passive:!1}),o.current.addEventListener("touchend",c,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",A),o.current.removeEventListener("touchend",c))},Wn(function(){return e&&t.current.addEventListener("touchstart",u,{passive:!0}),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),l(),clearInterval(s.current)}},[e])}function MW(e){return Math.floor(Math.pow(e,.5))}function uz(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function dUe(e,t,r){m.useEffect(function(){var n=t.current;if(e&&n){var a=!1,i,o,s=function(){fn.cancel(i)},l=function d(){s(),i=fn(function(){r(o),d()})},A=function(f){if(!(f.target.draggable||f.button!==0)){var h=f;h._virtualHandled||(h._virtualHandled=!0,a=!0)}},c=function(){a=!1,s()},u=function(f){if(a){var h=uz(f,!1),g=n.getBoundingClientRect(),p=g.top,E=g.bottom;if(h<=p){var y=p-h;o=-MW(y),l()}else if(h>=E){var C=h-E;o=MW(C),l()}else s()}};return n.addEventListener("mousedown",A),n.ownerDocument.addEventListener("mouseup",c),n.ownerDocument.addEventListener("mousemove",u),function(){n.removeEventListener("mousedown",A),n.ownerDocument.removeEventListener("mouseup",c),n.ownerDocument.removeEventListener("mousemove",u),s()}}},[e])}var fUe=10;function hUe(e,t,r,n,a,i,o,s){var l=m.useRef(),A=m.useState(null),c=De(A,2),u=c[0],d=c[1];return Wn(function(){if(u&&u.times<fUe){if(!e.current){d(function(j){return $({},j)});return}i();var f=u.targetAlign,h=u.originAlign,g=u.index,p=u.offset,E=e.current.clientHeight,y=!1,C=f,w=null;if(E){for(var B=f||h,M=0,I=0,S=0,R=Math.min(t.length-1,g),b=0;b<=R;b+=1){var Q=a(t[b]);I=M;var D=r.get(Q);S=I+(D===void 0?n:D),M=S}for(var F=B==="top"?p:E-p,N=R;N>=0;N-=1){var k=a(t[N]),O=r.get(k);if(O===void 0){y=!0;break}if(F-=O,F<=0)break}switch(B){case"top":w=I-p;break;case"bottom":w=S-E+p;break;default:{var P=e.current.scrollTop,z=P+E;I<P?C="top":S>z&&(C="bottom")}}w!==null&&o(w),w!==u.lastTop&&(y=!0)}y&&d($($({},u),{},{times:u.times+1,targetAlign:C,lastTop:w}))}},[u,e.current]),function(f){if(f==null){s();return}if(fn.cancel(l.current),typeof f=="number")o(f);else if(f&&Xt(f)==="object"){var h,g=f.align;"index"in f?h=f.index:h=t.findIndex(function(y){return a(y)===f.key});var p=f.offset,E=p===void 0?0:p;d({times:0,index:h,offset:E,originAlign:g})}}}var xW=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.rtl,a=e.scrollOffset,i=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,A=e.horizontal,c=e.spinSize,u=e.containerSize,d=e.style,f=e.thumbStyle,h=e.showScrollBar,g=m.useState(!1),p=De(g,2),E=p[0],y=p[1],C=m.useState(null),w=De(C,2),B=w[0],M=w[1],I=m.useState(null),S=De(I,2),R=S[0],b=S[1],Q=!n,D=m.useRef(),F=m.useRef(),N=m.useState(h),k=De(N,2),O=k[0],P=k[1],z=m.useRef(),j=function(){h===!0||h===!1||(clearTimeout(z.current),P(!0),z.current=setTimeout(function(){P(!1)},3e3))},V=i-u||0,L=u-c||0,K=m.useMemo(function(){if(a===0||V===0)return 0;var ue=a/V;return ue*L},[a,V,L]),J=function(ge){ge.stopPropagation(),ge.preventDefault()},Y=m.useRef({top:K,dragging:E,pageY:B,startTop:R});Y.current={top:K,dragging:E,pageY:B,startTop:R};var W=function(ge){y(!0),M(uz(ge,A)),b(Y.current.top),o(),ge.stopPropagation(),ge.preventDefault()};m.useEffect(function(){var ue=function(pe){pe.preventDefault()},ge=D.current,Se=F.current;return ge.addEventListener("touchstart",ue,{passive:!1}),Se.addEventListener("touchstart",W,{passive:!1}),function(){ge.removeEventListener("touchstart",ue),Se.removeEventListener("touchstart",W)}},[]);var q=m.useRef();q.current=V;var ee=m.useRef();ee.current=L,m.useEffect(function(){if(E){var ue,ge=function(pe){var Qe=Y.current,Ue=Qe.dragging,tt=Qe.pageY,it=Qe.startTop;fn.cancel(ue);var we=D.current.getBoundingClientRect(),ve=u/(A?we.width:we.height);if(Ue){var Te=(uz(pe,A)-tt)*ve,Be=it;!Q&&A?Be-=Te:Be+=Te;var Ge=q.current,ht=ee.current,We=ht?Be/ht:0,Ke=Math.ceil(We*Ge);Ke=Math.max(Ke,0),Ke=Math.min(Ke,Ge),ue=fn(function(){l(Ke,A)})}},Se=function(){y(!1),s()};return window.addEventListener("mousemove",ge,{passive:!0}),window.addEventListener("touchmove",ge,{passive:!0}),window.addEventListener("mouseup",Se,{passive:!0}),window.addEventListener("touchend",Se,{passive:!0}),function(){window.removeEventListener("mousemove",ge),window.removeEventListener("touchmove",ge),window.removeEventListener("mouseup",Se),window.removeEventListener("touchend",Se),fn.cancel(ue)}}},[E]),m.useEffect(function(){return j(),function(){clearTimeout(z.current)}},[a]),m.useImperativeHandle(t,function(){return{delayHidden:j}});var ae="".concat(r,"-scrollbar"),ne={position:"absolute",visibility:O?null:"hidden"},ce={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return A?(Object.assign(ne,{height:8,left:0,right:0,bottom:0}),Object.assign(ce,X({height:"100%",width:c},Q?"left":"right",K))):(Object.assign(ne,X({width:8,top:0,bottom:0},Q?"right":"left",0)),Object.assign(ce,{width:"100%",height:c,top:K})),m.createElement("div",{ref:D,className:He(ae,X(X(X({},"".concat(ae,"-horizontal"),A),"".concat(ae,"-vertical"),!A),"".concat(ae,"-visible"),O)),style:$($({},ne),d),onMouseDown:J,onMouseMove:j},m.createElement("div",{ref:F,className:He("".concat(ae,"-thumb"),X({},"".concat(ae,"-thumb-moving"),E)),style:$($({},ce),f),onMouseDown:W}))}),gUe=20;function IW(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,gUe),Math.floor(r)}var pUe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],vUe=[],mUe={overflowY:"auto",overflowAnchor:"none"};function EUe(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,a=e.className,i=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,A=e.style,c=e.data,u=e.children,d=e.itemKey,f=e.virtual,h=e.direction,g=e.scrollWidth,p=e.component,E=p===void 0?"div":p,y=e.onScroll,C=e.onVirtualScroll,w=e.onVisibleChange,B=e.innerProps,M=e.extraRender,I=e.styles,S=e.showScrollBar,R=S===void 0?"optional":S,b=Tr(e,pUe),Q=m.useCallback(function(Mt){return typeof d=="function"?d(Mt):Mt==null?void 0:Mt[d]},[d]),D=cUe(Q),F=De(D,4),N=F[0],k=F[1],O=F[2],P=F[3],z=!!(f!==!1&&i&&o),j=m.useMemo(function(){return Object.values(O.maps).reduce(function(Mt,xt){return Mt+xt},0)},[O.id,O.maps]),V=z&&c&&(Math.max(o*c.length,j)>i||!!g),L=h==="rtl",K=He(n,X({},"".concat(n,"-rtl"),L),a),J=c||vUe,Y=m.useRef(),W=m.useRef(),q=m.useRef(),ee=m.useState(0),ae=De(ee,2),ne=ae[0],ce=ae[1],ue=m.useState(0),ge=De(ue,2),Se=ge[0],ye=ge[1],pe=m.useState(!1),Qe=De(pe,2),Ue=Qe[0],tt=Qe[1],it=function(){tt(!0)},we=function(){tt(!1)},ve={getKey:Q};function Te(Mt){ce(function(xt){var Ft;typeof Mt=="function"?Ft=Mt(xt):Ft=Mt;var qt=re(Ft);return Y.current.scrollTop=qt,qt})}var Be=m.useRef({start:0,end:J.length}),Ge=m.useRef(),ht=oUe(J,Q),We=De(ht,1),Ke=We[0];Ge.current=Ke;var Xe=m.useMemo(function(){if(!z)return{scrollHeight:void 0,start:0,end:J.length-1,offset:void 0};if(!V){var Mt;return{scrollHeight:((Mt=W.current)===null||Mt===void 0?void 0:Mt.offsetHeight)||0,start:0,end:J.length-1,offset:void 0}}for(var xt=0,Ft,qt,gr,Hr=J.length,zr=0;zr<Hr;zr+=1){var an=J[zr],qe=Q(an),ke=O.get(qe),ut=xt+(ke===void 0?o:ke);ut>=ne&&Ft===void 0&&(Ft=zr,qt=xt),ut>ne+i&&gr===void 0&&(gr=zr),xt=ut}return Ft===void 0&&(Ft=0,qt=0,gr=Math.ceil(i/o)),gr===void 0&&(gr=J.length-1),gr=Math.min(gr+1,J.length-1),{scrollHeight:xt,start:Ft,end:gr,offset:qt}},[V,z,ne,J,P,i]),$e=Xe.scrollHeight,pt=Xe.start,de=Xe.end,Fe=Xe.offset;Be.current.start=pt,Be.current.end=de,m.useLayoutEffect(function(){var Mt=O.getRecord();if(Mt.size===1){var xt=Array.from(Mt.keys())[0],Ft=Mt.get(xt),qt=J[pt];if(qt&&Ft===void 0){var gr=Q(qt);if(gr===xt){var Hr=O.get(xt),zr=Hr-o;Te(function(an){return an+zr})}}}O.resetRecord()},[$e]);var je=m.useState({width:0,height:i}),et=De(je,2),xe=et[0],Ne=et[1],le=function(xt){Ne({width:xt.offsetWidth,height:xt.offsetHeight})},At=m.useRef(),Bt=m.useRef(),G=m.useMemo(function(){return IW(xe.width,g)},[xe.width,g]),Ee=m.useMemo(function(){return IW(xe.height,$e)},[xe.height,$e]),Ie=$e-i,ie=m.useRef(Ie);ie.current=Ie;function re(Mt){var xt=Mt;return Number.isNaN(ie.current)||(xt=Math.min(xt,ie.current)),xt=Math.max(xt,0),xt}var he=ne<=0,Pe=ne>=Ie,be=Se<=0,Ve=Se>=g,lt=Rve(he,Pe,be,Ve),Ze=function(){return{x:L?-Se:Se,y:ne}},Le=m.useRef(Ze()),rt=Os(function(Mt){if(C){var xt=$($({},Ze()),Mt);(Le.current.x!==xt.x||Le.current.y!==xt.y)&&(C(xt),Le.current=xt)}});function Qt(Mt,xt){var Ft=Mt;xt?(ei.flushSync(function(){ye(Ft)}),rt()):Te(Ft)}function Dt(Mt){var xt=Mt.currentTarget.scrollTop;xt!==ne&&Te(xt),y==null||y(Mt),rt()}var ur=function(xt){var Ft=xt,qt=g?g-xe.width:0;return Ft=Math.max(Ft,0),Ft=Math.min(Ft,qt),Ft},br=Os(function(Mt,xt){xt?(ei.flushSync(function(){ye(function(Ft){var qt=Ft+(L?-Mt:Mt);return ur(qt)})}),rt()):Te(function(Ft){var qt=Ft+Mt;return qt})}),Er=sUe(z,he,Pe,be,Ve,!!g,br),hr=De(Er,2),Wt=hr[0],$t=hr[1];uUe(z,Y,function(Mt,xt,Ft,qt){var gr=qt;return lt(Mt,xt,Ft)?!1:!gr||!gr._virtualHandled?(gr&&(gr._virtualHandled=!0),Wt({preventDefault:function(){},deltaX:Mt?xt:0,deltaY:Mt?0:xt}),!0):!1}),dUe(V,Y,function(Mt){Te(function(xt){return xt+Mt})}),Wn(function(){function Mt(Ft){var qt=he&&Ft.detail<0,gr=Pe&&Ft.detail>0;z&&!qt&&!gr&&Ft.preventDefault()}var xt=Y.current;return xt.addEventListener("wheel",Wt,{passive:!1}),xt.addEventListener("DOMMouseScroll",$t,{passive:!0}),xt.addEventListener("MozMousePixelScroll",Mt,{passive:!1}),function(){xt.removeEventListener("wheel",Wt),xt.removeEventListener("DOMMouseScroll",$t),xt.removeEventListener("MozMousePixelScroll",Mt)}},[z,he,Pe]),Wn(function(){if(g){var Mt=ur(Se);ye(Mt),rt({x:Mt})}},[xe.width,g]);var tr=function(){var xt,Ft;(xt=At.current)===null||xt===void 0||xt.delayHidden(),(Ft=Bt.current)===null||Ft===void 0||Ft.delayHidden()},ir=hUe(Y,J,O,o,Q,function(){return k(!0)},Te,tr);m.useImperativeHandle(t,function(){return{nativeElement:q.current,getScrollInfo:Ze,scrollTo:function(xt){function Ft(qt){return qt&&Xt(qt)==="object"&&("left"in qt||"top"in qt)}Ft(xt)?(xt.left!==void 0&&ye(ur(xt.left)),ir(xt.top)):ir(xt)}}}),Wn(function(){if(w){var Mt=J.slice(pt,de+1);w(Mt,J)}},[pt,de,J]);var ar=lUe(J,Q,O,o),rr=M==null?void 0:M({start:pt,end:de,virtual:V,offsetX:Se,offsetY:Fe,rtl:L,getSize:ar}),Yt=aUe(J,pt,de,g,Se,N,u,ve),Vt=null;i&&(Vt=$(X({},l?"height":"maxHeight",i),mUe),z&&(Vt.overflowY="hidden",g&&(Vt.overflowX="hidden"),Ue&&(Vt.pointerEvents="none")));var Ut={};return L&&(Ut.dir="rtl"),m.createElement("div",oe({ref:q,style:$($({},A),{},{position:"relative"}),className:K},Ut,b),m.createElement(ks,{onResize:le},m.createElement(E,{className:"".concat(n,"-holder"),style:Vt,ref:Y,onScroll:Dt,onMouseEnter:tr},m.createElement(Sve,{prefixCls:n,height:$e,offsetX:Se,offsetY:Fe,scrollWidth:g,onInnerResize:k,ref:W,innerProps:B,rtl:L,extra:rr},Yt))),V&&$e>i&&m.createElement(xW,{ref:At,prefixCls:n,scrollOffset:ne,scrollRange:$e,rtl:L,onScroll:Qt,onStartMove:it,onStopMove:we,spinSize:Ee,containerSize:xe.height,style:I==null?void 0:I.verticalScrollBar,thumbStyle:I==null?void 0:I.verticalScrollBarThumb,showScrollBar:R}),V&&g>xe.width&&m.createElement(xW,{ref:Bt,prefixCls:n,scrollOffset:Se,scrollRange:g,rtl:L,onScroll:Qt,onStartMove:it,onStopMove:we,spinSize:G,containerSize:xe.width,horizontal:!0,style:I==null?void 0:I.horizontalScrollBar,thumbStyle:I==null?void 0:I.horizontalScrollBarThumb,showScrollBar:R}))}var GY=m.forwardRef(EUe);GY.displayName="List";function yUe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Tve=m.createContext(null),CUe=["disabled","title","children","style","className"];function bW(e){return typeof e=="string"||typeof e=="number"}var wUe=function(t,r){var n=rve(),a=n.prefixCls,i=n.id,o=n.open,s=n.multiple,l=n.mode,A=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,f=m.useContext(Tve),h=f.flattenOptions,g=f.onActiveValue,p=f.defaultActiveFirstOption,E=f.onSelect,y=f.menuItemSelectedIcon,C=f.rawValues,w=f.fieldNames,B=f.virtual,M=f.listHeight,I=f.listItemHeight,S="".concat(a,"-item"),R=mh(function(){return h},[o,h],function(Y,W){return W[0]&&Y[1]!==W[1]}),b=m.useRef(null),Q=function(W){W.preventDefault()},D=function(W){b.current&&b.current.scrollTo(typeof W=="number"?{index:W}:W)},F=function(W){for(var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ee=R.length,ae=0;ae<ee;ae+=1){var ne=(W+ae*q+ee)%ee,ce=R[ne],ue=ce.group,ge=ce.data;if(!ue&&!ge.disabled)return ne}return-1},N=m.useState(function(){return F(0)}),k=De(N,2),O=k[0],P=k[1],z=function(W){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;P(W);var ee={source:q?"keyboard":"mouse"},ae=R[W];if(!ae){g(null,-1,ee);return}g(ae.value,W,ee)};m.useEffect(function(){z(p!==!1?F(0):-1)},[R.length,A]);var j=m.useCallback(function(Y){return C.has(Y)&&l!=="combobox"},[l,Nt(C).toString(),C.size]);m.useEffect(function(){var Y=setTimeout(function(){if(!s&&o&&C.size===1){var q=Array.from(C)[0],ee=R.findIndex(function(ae){var ne=ae.data;return ne.value===q});ee!==-1&&(z(ee),D(ee))}});if(o){var W;(W=b.current)===null||W===void 0||W.scrollTo(void 0)}return function(){return clearTimeout(Y)}},[o,A]);var V=function(W){W!==void 0&&E(W,{selected:!C.has(W)}),s||c(!1)};if(m.useImperativeHandle(r,function(){return{onKeyDown:function(W){var q=W.which,ee=W.ctrlKey;switch(q){case Pt.N:case Pt.P:case Pt.UP:case Pt.DOWN:{var ae=0;if(q===Pt.UP?ae=-1:q===Pt.DOWN?ae=1:yUe()&&ee&&(q===Pt.N?ae=1:q===Pt.P&&(ae=-1)),ae!==0){var ne=F(O+ae,ae);D(ne),z(ne,!0)}break}case Pt.ENTER:{var ce=R[O];ce&&!ce.data.disabled?V(ce.value):V(void 0),o&&W.preventDefault();break}case Pt.ESC:c(!1),o&&W.stopPropagation()}},onKeyUp:function(){},scrollTo:function(W){D(W)}}}),R.length===0)return m.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(S,"-empty"),onMouseDown:Q},u);var L=Object.keys(w).map(function(Y){return w[Y]}),K=function(W){return W.label},J=function(W){var q=R[W];if(!q)return null;var ee=q.data||{},ae=ee.value,ne=q.group,ce=Qc(ee,!0),ue=K(q);return q?m.createElement("div",oe({"aria-label":typeof ue=="string"&&!ne?ue:null},ce,{key:W,role:ne?"presentation":"option",id:"".concat(i,"_list_").concat(W),"aria-selected":j(ae)}),ae):null};return m.createElement(m.Fragment,null,m.createElement("div",{role:"listbox",id:"".concat(i,"_list"),style:{height:0,width:0,overflow:"hidden"}},J(O-1),J(O),J(O+1)),m.createElement(GY,{itemKey:"key",ref:b,data:R,height:M,itemHeight:I,fullHeight:!1,onMouseDown:Q,onScroll:d,virtual:B},function(Y,W){var q,ee=Y.group,ae=Y.groupOption,ne=Y.data,ce=Y.label,ue=Y.value,ge=ne.key;if(ee){var Se,ye=(Se=ne.title)!==null&&Se!==void 0?Se:bW(ce)?ce.toString():void 0;return m.createElement("div",{className:He(S,"".concat(S,"-group")),title:ye},ce!==void 0?ce:ge)}var pe=ne.disabled,Qe=ne.title;ne.children;var Ue=ne.style,tt=ne.className,it=Tr(ne,CUe),we=Ia(it,L),ve=j(ue),Te="".concat(S,"-option"),Be=He(S,Te,tt,(q={},X(q,"".concat(Te,"-grouped"),ae),X(q,"".concat(Te,"-active"),O===W&&!pe),X(q,"".concat(Te,"-disabled"),pe),X(q,"".concat(Te,"-selected"),ve),q)),Ge=K(Y),ht=!y||typeof y=="function"||ve,We=typeof Ge=="number"?Ge:Ge||ue,Ke=bW(We)?We.toString():void 0;return Qe!==void 0&&(Ke=Qe),m.createElement("div",oe({},Qc(we),{"aria-selected":ve,className:Be,title:Ke,onMouseMove:function(){O===W||pe||z(W)},onClick:function(){pe||V(ue)},style:Ue}),m.createElement("div",{className:"".concat(Te,"-content")},We),m.isValidElement(y)||ve,ht&&m.createElement(hb,{className:"".concat(S,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:ve}},ve?"✓":null))}))},Qve=m.forwardRef(wUe);Qve.displayName="OptionList";var BUe=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],MUe=["inputValue"];function xUe(e){return!e||Xt(e)!=="object"}var IUe=m.forwardRef(function(e,t){var r=e.id,n=e.mode,a=e.prefixCls,i=a===void 0?"rc-select":a,o=e.backfill,s=e.fieldNames,l=e.inputValue,A=e.searchValue,c=e.onSearch,u=e.autoClearSearchValue,d=u===void 0?!0:u,f=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,p=g===void 0?!0:g,E=e.filterOption,y=e.filterSort,C=e.optionFilterProp,w=e.optionLabelProp,B=e.options,M=e.children,I=e.defaultActiveFirstOption,S=e.menuItemSelectedIcon,R=e.virtual,b=e.listHeight,Q=b===void 0?200:b,D=e.listItemHeight,F=D===void 0?20:D,N=e.value,k=e.defaultValue,O=e.labelInValue,P=e.onChange,z=Tr(e,BUe),j=Ive(r),V=cz(n),L=!!(!B&&M),K=m.useMemo(function(){return E===void 0&&n==="combobox"?!1:E},[E,n]),J=m.useMemo(function(){return Mve(s,L)},[JSON.stringify(s),L]),Y=Qn("",{value:A!==void 0?A:l,postState:function(Ve){return Ve||""}}),W=De(Y,2),q=W[0],ee=W[1],ae=rUe(B,M,J,C,w),ne=ae.valueOptions,ce=ae.labelOptions,ue=ae.options,ge=m.useCallback(function(be){var Ve=sve(be);return Ve.map(function(lt){var Ze,Le,rt,Qt,Dt;if(xUe(lt))Ze=lt;else{var ur;rt=lt.key,Le=lt.label,Ze=(ur=lt.value)!==null&&ur!==void 0?ur:rt}var br=ne.get(Ze);if(br){var Er;Le===void 0&&(Le=br==null?void 0:br[w||J.label]),rt===void 0&&(rt=(Er=br==null?void 0:br.key)!==null&&Er!==void 0?Er:Ze),Qt=br==null?void 0:br.disabled,Dt=br==null?void 0:br.title}return{label:Le,value:Ze,key:rt,disabled:Qt,title:Dt}})},[J,w,ne]),Se=Qn(k,{value:N}),ye=De(Se,2),pe=ye[0],Qe=ye[1],Ue=m.useMemo(function(){var be,Ve=ge(pe);return n==="combobox"&&!((be=Ve[0])!==null&&be!==void 0&&be.value)?[]:Ve},[pe,ge,n]),tt=WLe(Ue,ne),it=De(tt,2),we=it[0],ve=it[1],Te=m.useMemo(function(){if(!n&&we.length===1){var be=we[0];if(be.value===null&&(be.label===null||be.label===void 0))return[]}return we.map(function(Ve){var lt;return $($({},Ve),{},{label:(lt=Ve.label)!==null&&lt!==void 0?lt:Ve.value})})},[n,we]),Be=m.useMemo(function(){return new Set(we.map(function(be){return be.value}))},[we]);m.useEffect(function(){if(n==="combobox"){var be,Ve=(be=we[0])===null||be===void 0?void 0:be.value;ee(K5e(Ve)?String(Ve):"")}},[we]);var Ge=yW(function(be,Ve){var lt,Ze=Ve??be;return lt={},X(lt,J.value,be),X(lt,J.label,Ze),lt}),ht=m.useMemo(function(){if(n!=="tags")return ue;var be=Nt(ue),Ve=function(Ze){return ne.has(Ze)};return Nt(we).sort(function(lt,Ze){return lt.value<Ze.value?-1:1}).forEach(function(lt){var Ze=lt.value;Ve(Ze)||be.push(Ge(Ze,lt.label))}),be},[Ge,ue,ne,we,n]),We=XLe(ht,J,q,K,C),Ke=m.useMemo(function(){return n!=="tags"||!q||We.some(function(be){return be[C||"value"]===q})?We:[Ge(q)].concat(Nt(We))},[Ge,C,n,We,q]),Xe=m.useMemo(function(){return y?Nt(Ke).sort(function(be,Ve){return y(be,Ve)}):Ke},[Ke,y]),$e=m.useMemo(function(){return GLe(Xe,{fieldNames:J,childrenAsData:L})},[Xe,J,L]),pt=function(Ve){var lt=ge(Ve);if(Qe(lt),P&&(lt.length!==we.length||lt.some(function(rt,Qt){var Dt;return((Dt=we[Qt])===null||Dt===void 0?void 0:Dt.value)!==(rt==null?void 0:rt.value)}))){var Ze=O?lt:lt.map(function(rt){return rt.value}),Le=lt.map(function(rt){return Az(ve(rt.value))});P(V?Ze:Ze[0],V?Le:Le[0])}},de=m.useState(null),Fe=De(de,2),je=Fe[0],et=Fe[1],xe=m.useState(0),Ne=De(xe,2),le=Ne[0],At=Ne[1],Bt=I!==void 0?I:n!=="combobox",G=m.useCallback(function(be,Ve){var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ze=lt.source,Le=Ze===void 0?"keyboard":Ze;At(Ve),o&&n==="combobox"&&be!==null&&Le==="keyboard"&&et(String(be))},[o,n]),Ee=function(Ve,lt,Ze){var Le=function(){var tr,ir=ve(Ve);return[O?{label:ir==null?void 0:ir[J.label],value:Ve,key:(tr=ir==null?void 0:ir.key)!==null&&tr!==void 0?tr:Ve}:Ve,Az(ir)]};if(lt&&f){var rt=Le(),Qt=De(rt,2),Dt=Qt[0],ur=Qt[1];f(Dt,ur)}else if(!lt&&h&&Ze!=="clear"){var br=Le(),Er=De(br,2),hr=Er[0],Wt=Er[1];h(hr,Wt)}},Ie=yW(function(be,Ve){var lt,Ze=V?Ve.selected:!0;Ze?lt=V?[].concat(Nt(we),[be]):[be]:lt=we.filter(function(Le){return Le.value!==be}),pt(lt),Ee(be,Ze),n==="combobox"?et(""):(!cz||d)&&(ee(""),et(""))}),ie=function(Ve,lt){pt(Ve);var Ze=lt.type,Le=lt.values;(Ze==="remove"||Ze==="clear")&&Le.forEach(function(rt){Ee(rt.value,!1,Ze)})},re=function(Ve,lt){if(ee(Ve),et(null),lt.source==="submit"){var Ze=(Ve||"").trim();if(Ze){var Le=Array.from(new Set([].concat(Nt(Be),[Ze])));pt(Le),Ee(Ze,!0),ee("")}return}lt.source!=="blur"&&(n==="combobox"&&pt(Ve),c==null||c(Ve))},he=function(Ve){var lt=Ve;n!=="tags"&&(lt=Ve.map(function(Le){var rt=ce.get(Le);return rt==null?void 0:rt.value}).filter(function(Le){return Le!==void 0}));var Ze=Array.from(new Set([].concat(Nt(Be),Nt(lt))));pt(Ze),Ze.forEach(function(Le){Ee(Le,!0)})},Pe=m.useMemo(function(){var be=R!==!1&&p!==!1;return $($({},ae),{},{flattenOptions:$e,onActiveValue:G,defaultActiveFirstOption:Bt,onSelect:Ie,menuItemSelectedIcon:S,rawValues:Be,fieldNames:J,virtual:be,listHeight:Q,listItemHeight:F,childrenAsData:L})},[ae,$e,G,Bt,Ie,S,Be,J,R,p,Q,F,L]);return m.createElement(Tve.Provider,{value:Pe},m.createElement(xve,oe({},z,{id:j,prefixCls:i,ref:t,omitDomProps:MUe,mode:n,displayValues:Te,onDisplayValuesChange:ie,searchValue:q,onSearch:re,autoClearSearchValue:d,onSearchSplit:he,dropdownMatchSelectWidth:p,OptionList:Qve,emptyOptions:!$e.length,activeValue:je,activeDescendantId:"".concat(j,"_list_").concat(le)})))}),KY=IUe;KY.Option=HY;KY.OptGroup=UY;var bUe=function(){var t=m.useContext(Mr),r=t.getPrefixCls,n=r("empty-img-default");return m.createElement("svg",{className:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(24 31.67)"},m.createElement("ellipse",{className:"".concat(n,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m.createElement("path",{className:"".concat(n,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),m.createElement("path",{className:"".concat(n,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),m.createElement("path",{className:"".concat(n,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),m.createElement("path",{className:"".concat(n,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),m.createElement("path",{className:"".concat(n,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),m.createElement("g",{className:"".concat(n,"-g"),transform:"translate(149.65 15.383)"},m.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},SUe=function(){var t=m.useContext(Mr),r=t.getPrefixCls,n=r("empty-img-simple");return m.createElement("svg",{className:n,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m.createElement("ellipse",{className:"".concat(n,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),m.createElement("g",{className:"".concat(n,"-g"),fillRule:"nonzero"},m.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),m.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(n,"-path")}))))},RUe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Dve=m.createElement(bUe,null),Fve=m.createElement(SUe,null),ml=function(t){var r=t.className,n=t.prefixCls,a=t.image,i=a===void 0?Dve:a,o=t.description,s=t.children,l=t.imageStyle,A=RUe(t,["className","prefixCls","image","description","children","imageStyle"]),c=m.useContext(Mr),u=c.getPrefixCls,d=c.direction;return m.createElement(_A,{componentName:"Empty"},function(f){var h=u("empty",n),g=typeof o<"u"?o:f.description,p=typeof g=="string"?g:"empty",E=null;return typeof i=="string"?E=m.createElement("img",{alt:p,src:i}):E=i,m.createElement("div",oe({className:He(h,X(X({},"".concat(h,"-normal"),i===Fve),"".concat(h,"-rtl"),d==="rtl"),r)},A),m.createElement("div",{className:"".concat(h,"-image"),style:l},E),g&&m.createElement("div",{className:"".concat(h,"-description")},g),s&&m.createElement("div",{className:"".concat(h,"-footer")},s))})};ml.PRESENTED_IMAGE_DEFAULT=Dve;ml.PRESENTED_IMAGE_SIMPLE=Fve;var iR=function(t){return m.createElement(gd,null,function(r){var n=r.getPrefixCls,a=n("empty");switch(t){case"Table":case"List":return m.createElement(ml,{image:ml.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return m.createElement(ml,{image:ml.PRESENTED_IMAGE_SIMPLE,className:"".concat(a,"-small")});default:return m.createElement(ml,null)}})},xf="RC_FORM_INTERNAL_HOOKS",Ln=function(){Sn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ed=m.createContext({getFieldValue:Ln,getFieldsValue:Ln,getFieldError:Ln,getFieldWarning:Ln,getFieldsError:Ln,isFieldsTouched:Ln,isFieldTouched:Ln,isFieldValidating:Ln,isFieldsValidating:Ln,resetFields:Ln,setFields:Ln,setFieldValue:Ln,setFieldsValue:Ln,validateFields:Ln,submit:Ln,getInternalHooks:function(){return Ln(),{dispatch:Ln,initEntityValue:Ln,registerField:Ln,useSubscribe:Ln,setInitialValues:Ln,destroyForm:Ln,setCallbacks:Ln,registerWatch:Ln,getFields:Ln,setValidateMessages:Ln,setPreserve:Ln,getInitialValue:Ln}}}),nv=m.createContext(null);function dz(e){return e==null?[]:Array.isArray(e)?e:[e]}function TUe(e){return e&&!!e._init}function If(){return If=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},If.apply(this,arguments)}function QUe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,py(e,t)}function fz(e){return fz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fz(e)}function py(e,t){return py=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},py(e,t)}function DUe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dI(e,t,r){return DUe()?dI=Reflect.construct.bind():dI=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),A=new l;return o&&py(A,o.prototype),A},dI.apply(null,arguments)}function FUe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function hz(e){var t=typeof Map=="function"?new Map:void 0;return hz=function(n){if(n===null||!FUe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return dI(n,arguments,fz(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),py(a,n)},hz(e)}var _Ue=/%[sdj%]/g,NUe=function(){};function gz(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function es(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(_Ue,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function kUe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ti(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||kUe(t)&&typeof e=="string"&&!e)}function PUe(e,t,r){var n=[],a=0,i=e.length;function o(s){n.push.apply(n,s||[]),a++,a===i&&r(n)}e.forEach(function(s){t(s,o)})}function SW(e,t,r){var n=0,a=e.length;function i(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s<a?t(e[s],i):r([])}i([])}function OUe(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var RW=function(e){QUe(t,e);function t(r,n){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=r,a.fields=n,a}return t}(hz(Error));function zUe(e,t,r,n,a){if(t.first){var i=new Promise(function(d,f){var h=function(E){return n(E),E.length?f(new RW(E,gz(E))):d(a)},g=OUe(e);SW(g,r,h)});return i.catch(function(d){return d}),i}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,A=0,c=[],u=new Promise(function(d,f){var h=function(p){if(c.push.apply(c,p),A++,A===l)return n(c),c.length?f(new RW(c,gz(c))):d(a)};s.length||(n(c),d(a)),s.forEach(function(g){var p=e[g];o.indexOf(g)!==-1?SW(p,r,h):PUe(p,r,h)})});return u.catch(function(d){return d}),u}function jUe(e){return!!(e&&e.message!==void 0)}function YUe(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function TW(e,t){return function(r){var n;return e.fullFields?n=YUe(t,e.fullFields):n=t[r.field||e.fullField],jUe(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function QW(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=If({},e[r],n):e[r]=n}}return e}var _ve=function(t,r,n,a,i,o){t.required&&(!n.hasOwnProperty(t.field)||ti(r,o||t.type))&&a.push(es(i.messages.required,t.fullField))},LUe=function(t,r,n,a,i){(/^\s+$/.test(r)||r==="")&&a.push(es(i.messages.whitespace,t.fullField))},vw,UUe=function(){if(vw)return vw;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=(`
(?:
(?:`+n+":){7}(?:"+n+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:`+n+":){6}(?:"+r+"|:"+n+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:`+n+":){5}(?::"+r+"|(?::"+n+`){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:`+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+`){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:`+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+`){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:`+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+r+"$)|(?:^"+a+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+a+"$"),l=function(w){return w&&w.exact?i:new RegExp("(?:"+t(w)+r+t(w)+")|(?:"+t(w)+a+t(w)+")","g")};l.v4=function(C){return C&&C.exact?o:new RegExp(""+t(C)+r+t(C),"g")},l.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+a+t(C),"g")};var A="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",u=l.v4().source,d=l.v6().source,f="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",E='(?:[/?#][^\\s"]*)?',y="(?:"+A+"|www\\.)"+c+"(?:localhost|"+u+"|"+d+"|"+f+h+g+")"+p+E;return vw=new RegExp("(?:^"+y+"$)","i"),vw},DW={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},E0={integer:function(t){return E0.number(t)&&parseInt(t,10)===t},float:function(t){return E0.number(t)&&!E0.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!E0.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(DW.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(UUe())},hex:function(t){return typeof t=="string"&&!!t.match(DW.hex)}},HUe=function(t,r,n,a,i){if(t.required&&r===void 0){_ve(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?E0[s](r)||a.push(es(i.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&a.push(es(i.messages.types[s],t.fullField,t.type))},GUe=function(t,r,n,a,i){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",A=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,u=null,d=typeof r=="number",f=typeof r=="string",h=Array.isArray(r);if(d?u="number":f?u="string":h&&(u="array"),!u)return!1;h&&(c=r.length),f&&(c=r.replace(A,"_").length),o?c!==t.len&&a.push(es(i.messages[u].len,t.fullField,t.len)):s&&!l&&c<t.min?a.push(es(i.messages[u].min,t.fullField,t.min)):l&&!s&&c>t.max?a.push(es(i.messages[u].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&a.push(es(i.messages[u].range,t.fullField,t.min,t.max))},mg="enum",KUe=function(t,r,n,a,i){t[mg]=Array.isArray(t[mg])?t[mg]:[],t[mg].indexOf(r)===-1&&a.push(es(i.messages[mg],t.fullField,t[mg].join(", ")))},VUe=function(t,r,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(es(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||a.push(es(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Bn={required:_ve,whitespace:LUe,type:HUe,range:GUe,enum:KUe,pattern:VUe},JUe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ti(r,"string")&&!t.required)return n();Bn.required(t,r,a,o,i,"string"),ti(r,"string")||(Bn.type(t,r,a,o,i),Bn.range(t,r,a,o,i),Bn.pattern(t,r,a,o,i),t.whitespace===!0&&Bn.whitespace(t,r,a,o,i))}n(o)},WUe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ti(r)&&!t.required)return n();Bn.required(t,r,a,o,i),r!==void 0&&Bn.type(t,r,a,o,i)}n(o)},XUe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),ti(r)&&!t.required)return n();Bn.required(t,r,a,o,i),r!==void 0&&(Bn.type(t,r,a,o,i),Bn.range(t,r,a,o,i))}n(o)},qUe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ti(r)&&!t.required)return n();Bn.required(t,r,a,o,i),r!==void 0&&Bn.type(t,r,a,o,i)}n(o)},ZUe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ti(r)&&!t.required)return n();Bn.required(t,r,a,o,i),ti(r)||Bn.type(t,r,a,o,i)}n(o)},$Ue=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ti(r)&&!t.required)return n();Bn.required(t,r,a,o,i),r!==void 0&&(Bn.type(t,r,a,o,i),Bn.range(t,r,a,o,i))}n(o)},e6e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ti(r)&&!t.required)return n();Bn.required(t,r,a,o,i),r!==void 0&&(Bn.type(t,r,a,o,i),Bn.range(t,r,a,o,i))}n(o)},t6e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Bn.required(t,r,a,o,i,"array"),r!=null&&(Bn.type(t,r,a,o,i),Bn.range(t,r,a,o,i))}n(o)},r6e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ti(r)&&!t.required)return n();Bn.required(t,r,a,o,i),r!==void 0&&Bn.type(t,r,a,o,i)}n(o)},n6e="enum",a6e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ti(r)&&!t.required)return n();Bn.required(t,r,a,o,i),r!==void 0&&Bn[n6e](t,r,a,o,i)}n(o)},i6e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ti(r,"string")&&!t.required)return n();Bn.required(t,r,a,o,i),ti(r,"string")||Bn.pattern(t,r,a,o,i)}n(o)},o6e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ti(r,"date")&&!t.required)return n();if(Bn.required(t,r,a,o,i),!ti(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Bn.type(t,l,a,o,i),l&&Bn.range(t,l.getTime(),a,o,i)}}n(o)},s6e=function(t,r,n,a,i){var o=[],s=Array.isArray(r)?"array":typeof r;Bn.required(t,r,a,o,i,s),n(o)},j_=function(t,r,n,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ti(r,o)&&!t.required)return n();Bn.required(t,r,a,s,i,o),ti(r,o)||Bn.type(t,r,a,s,i)}n(s)},l6e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ti(r)&&!t.required)return n();Bn.required(t,r,a,o,i)}n(o)},U0={string:JUe,method:WUe,number:XUe,boolean:qUe,regexp:ZUe,integer:$Ue,float:e6e,array:t6e,object:r6e,enum:a6e,pattern:i6e,date:o6e,url:j_,hex:j_,email:j_,required:s6e,any:l6e};function pz(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var vz=pz(),EC=function(){function e(r){this.rules=null,this._messages=vz,this.define(r)}var t=e.prototype;return t.define=function(n){var a=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=QW(pz(),n)),this._messages},t.validate=function(n,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=n,l=a,A=i;if(typeof l=="function"&&(A=l,l={}),!this.rules||Object.keys(this.rules).length===0)return A&&A(null,s),Promise.resolve(s);function c(g){var p=[],E={};function y(w){if(Array.isArray(w)){var B;p=(B=p).concat.apply(B,w)}else p.push(w)}for(var C=0;C<g.length;C++)y(g[C]);p.length?(E=gz(p),A(p,E)):A(null,s)}if(l.messages){var u=this.messages();u===vz&&(u=pz()),QW(u,l.messages),l.messages=u}else l.messages=this.messages();var d={},f=l.keys||Object.keys(this.rules);f.forEach(function(g){var p=o.rules[g],E=s[g];p.forEach(function(y){var C=y;typeof C.transform=="function"&&(s===n&&(s=If({},s)),E=s[g]=C.transform(E)),typeof C=="function"?C={validator:C}:C=If({},C),C.validator=o.getValidationMethod(C),C.validator&&(C.field=g,C.fullField=C.fullField||g,C.type=o.getType(C),d[g]=d[g]||[],d[g].push({rule:C,value:E,source:s,field:g}))})});var h={};return zUe(d,l,function(g,p){var E=g.rule,y=(E.type==="object"||E.type==="array")&&(typeof E.fields=="object"||typeof E.defaultField=="object");y=y&&(E.required||!E.required&&g.value),E.field=g.field;function C(M,I){return If({},I,{fullField:E.fullField+"."+M,fullFields:E.fullFields?[].concat(E.fullFields,[M]):[M]})}function w(M){M===void 0&&(M=[]);var I=Array.isArray(M)?M:[M];!l.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&E.message!==void 0&&(I=[].concat(E.message));var S=I.map(TW(E,s));if(l.first&&S.length)return h[E.field]=1,p(S);if(!y)p(S);else{if(E.required&&!g.value)return E.message!==void 0?S=[].concat(E.message).map(TW(E,s)):l.error&&(S=[l.error(E,es(l.messages.required,E.field))]),p(S);var R={};E.defaultField&&Object.keys(g.value).map(function(D){R[D]=E.defaultField}),R=If({},R,g.rule.fields);var b={};Object.keys(R).forEach(function(D){var F=R[D],N=Array.isArray(F)?F:[F];b[D]=N.map(C.bind(null,D))});var Q=new e(b);Q.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),Q.validate(g.value,g.rule.options||l,function(D){var F=[];S&&S.length&&F.push.apply(F,S),D&&D.length&&F.push.apply(F,D),p(F.length?F:null)})}}var B;if(E.asyncValidator)B=E.asyncValidator(E,g.value,w,g.source,l);else if(E.validator){try{B=E.validator(E,g.value,w,g.source,l)}catch(M){console.error==null||console.error(M),l.suppressValidatorError||setTimeout(function(){throw M},0),w(M.message)}B===!0?w():B===!1?w(typeof E.message=="function"?E.message(E.fullField||E.field):E.message||(E.fullField||E.field)+" fails"):B instanceof Array?w(B):B instanceof Error&&w(B.message)}B&&B.then&&B.then(function(){return w()},function(M){return w(M)})},function(g){c(g)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!U0.hasOwnProperty(n.type))throw new Error(es("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var a=Object.keys(n),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?U0.required:U0[this.getType(n)]||void 0},e}();EC.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");U0[t]=r};EC.warning=NUe;EC.messages=vz;EC.validators=U0;var Go="'${name}' is not a valid ${type}",Nve={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Go,method:Go,array:Go,object:Go,number:Go,date:Go,boolean:Go,integer:Go,float:Go,regexp:Go,email:Go,url:Go,hex:Go},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},FW=EC;function A6e(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var _W="CODE_LOGIC_ERROR";function mz(e,t,r,n,a){return Ez.apply(this,arguments)}function Ez(){return Ez=hd(di().mark(function e(t,r,n,a,i){var o,s,l,A,c,u,d,f,h;return di().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return o=$({},n),delete o.ruleIndex,FW.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(E){return console.error(E),Promise.reject(_W)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),A=new FW(X({},t,[o])),c=Ep(Nve,a.validateMessages),A.messages(c),u=[],p.prev=10,p.next=13,Promise.resolve(A.validate(X({},t,r),$({},a)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(u=p.t0.errors.map(function(E,y){var C=E.message,w=C===_W?c.default:C;return m.isValidElement(w)?m.cloneElement(w,{key:"error_".concat(y)}):w}));case 18:if(!(!u.length&&l)){p.next=23;break}return p.next=21,Promise.all(r.map(function(E,y){return mz("".concat(t,".").concat(y),E,l,a,i)}));case 21:return d=p.sent,p.abrupt("return",d.reduce(function(E,y){return[].concat(Nt(E),Nt(y))},[]));case 23:return f=$($({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),h=u.map(function(E){return typeof E=="string"?A6e(E,f):E}),p.abrupt("return",h);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),Ez.apply(this,arguments)}function c6e(e,t,r,n,a,i){var o=e.join("."),s=r.map(function(c,u){var d=c.validator,f=$($({},c),{},{ruleIndex:u});return d&&(f.validator=function(h,g,p){var E=!1,y=function(){for(var B=arguments.length,M=new Array(B),I=0;I<B;I++)M[I]=arguments[I];Promise.resolve().then(function(){Sn(!E,"Your validator function has already return a promise. `callback` will be ignored."),E||p.apply(void 0,M)})},C=d(h,g,y);E=C&&typeof C.then=="function"&&typeof C.catch=="function",Sn(E,"`callback` is deprecated. Please return a promise instead."),E&&C.then(function(){p()}).catch(function(w){p(w||" ")})}),f}).sort(function(c,u){var d=c.warningOnly,f=c.ruleIndex,h=u.warningOnly,g=u.ruleIndex;return!!d==!!h?f-g:d?1:-1}),l;if(a===!0)l=new Promise(function(){var c=hd(di().mark(function u(d,f){var h,g,p;return di().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<s.length)){y.next=12;break}return g=s[h],y.next=5,mz(o,t,g,n,i);case 5:if(p=y.sent,!p.length){y.next=9;break}return f([{errors:p,rule:g}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:d([]);case 13:case"end":return y.stop()}},u)}));return function(u,d){return c.apply(this,arguments)}}());else{var A=s.map(function(c){return mz(o,t,c,n,i).then(function(u){return{errors:u,rule:c}})});l=(a?d6e(A):u6e(A)).then(function(c){return Promise.reject(c)})}return l.catch(function(c){return c}),l}function u6e(e){return yz.apply(this,arguments)}function yz(){return yz=hd(di().mark(function e(t){return di().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var i,o=(i=[]).concat.apply(i,Nt(a));return o}));case 1:case"end":return n.stop()}},e)})),yz.apply(this,arguments)}function d6e(e){return Cz.apply(this,arguments)}function Cz(){return Cz=hd(di().mark(function e(t){var r;return di().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(i){t.forEach(function(o){o.then(function(s){s.errors.length&&i([s]),r+=1,r===t.length&&i([])})})}));case 2:case"end":return a.stop()}},e)})),Cz.apply(this,arguments)}function za(e){return dz(e)}function NW(e,t){var r={};return t.forEach(function(n){var a=wl(e,n);r=gl(r,n,a)}),r}function Dp(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return kve(t,n,r)})}function kve(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function f6e(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Xt(e)!=="object"||Xt(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return Nt(a).every(function(i){var o=e[i],s=t[i];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function h6e(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Xt(t.target)==="object"&&e in t.target?t.target[e]:t}function kW(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],i=t-r;return i>0?[].concat(Nt(e.slice(0,r)),[a],Nt(e.slice(r,t)),Nt(e.slice(t+1,n))):i<0?[].concat(Nt(e.slice(0,t)),Nt(e.slice(t+1,r+1)),[a],Nt(e.slice(r+1,n))):e}var g6e=["name"],ws=[];function PW(e,t,r,n,a,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==a}var VY=function(e){xn(r,e);var t=sa(r);function r(n){var a;if(sn(this,r),a=t.call(this,n),X(at(a),"state",{resetCount:0}),X(at(a),"cancelRegisterFunc",null),X(at(a),"mounted",!1),X(at(a),"touched",!1),X(at(a),"dirty",!1),X(at(a),"validatePromise",void 0),X(at(a),"prevValidating",void 0),X(at(a),"errors",ws),X(at(a),"warnings",ws),X(at(a),"cancelRegister",function(){var l=a.props,A=l.preserve,c=l.isListField,u=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(c,A,za(u)),a.cancelRegisterFunc=null}),X(at(a),"getNamePath",function(){var l=a.props,A=l.name,c=l.fieldContext,u=c.prefixName,d=u===void 0?[]:u;return A!==void 0?[].concat(Nt(d),Nt(A)):[]}),X(at(a),"getRules",function(){var l=a.props,A=l.rules,c=A===void 0?[]:A,u=l.fieldContext;return c.map(function(d){return typeof d=="function"?d(u):d})}),X(at(a),"refresh",function(){a.mounted&&a.setState(function(l){var A=l.resetCount;return{resetCount:A+1}})}),X(at(a),"metaCache",null),X(at(a),"triggerMetaEvent",function(l){var A=a.props.onMetaChange;if(A){var c=$($({},a.getMeta()),{},{destroy:l});rv(a.metaCache,c)||A(c),a.metaCache=c}else a.metaCache=null}),X(at(a),"onStoreChange",function(l,A,c){var u=a.props,d=u.shouldUpdate,f=u.dependencies,h=f===void 0?[]:f,g=u.onReset,p=c.store,E=a.getNamePath(),y=a.getValue(l),C=a.getValue(p),w=A&&Dp(A,E);switch(c.type==="valueUpdate"&&c.source==="external"&&y!==C&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=ws,a.warnings=ws,a.triggerMetaEvent()),c.type){case"reset":if(!A||w){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=ws,a.warnings=ws,a.triggerMetaEvent(),g==null||g(),a.refresh();return}break;case"remove":{if(d){a.reRender();return}break}case"setField":{var B=c.data;if(w){"touched"in B&&(a.touched=B.touched),"validating"in B&&!("originRCField"in B)&&(a.validatePromise=B.validating?Promise.resolve([]):null),"errors"in B&&(a.errors=B.errors||ws),"warnings"in B&&(a.warnings=B.warnings||ws),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in B&&Dp(A,E,!0)){a.reRender();return}if(d&&!E.length&&PW(d,l,p,y,C,c)){a.reRender();return}break}case"dependenciesUpdate":{var M=h.map(za);if(M.some(function(I){return Dp(c.relatedFields,I)})){a.reRender();return}break}default:if(w||(!h.length||E.length||d)&&PW(d,l,p,y,C,c)){a.reRender();return}break}d===!0&&a.reRender()}),X(at(a),"validateRules",function(l){var A=a.getNamePath(),c=a.getValue(),u=l||{},d=u.triggerName,f=u.validateOnly,h=f===void 0?!1:f,g=Promise.resolve().then(hd(di().mark(function p(){var E,y,C,w,B,M,I;return di().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(a.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(E=a.props,y=E.validateFirst,C=y===void 0?!1:y,w=E.messageVariables,B=E.validateDebounce,M=a.getRules(),d&&(M=M.filter(function(b){return b}).filter(function(b){var Q=b.validateTrigger;if(!Q)return!0;var D=dz(Q);return D.includes(d)})),!(B&&d)){R.next=10;break}return R.next=8,new Promise(function(b){setTimeout(b,B)});case 8:if(a.validatePromise===g){R.next=10;break}return R.abrupt("return",[]);case 10:return I=c6e(A,c,M,l,C,w),I.catch(function(b){return b}).then(function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ws;if(a.validatePromise===g){var Q;a.validatePromise=null;var D=[],F=[];(Q=b.forEach)===null||Q===void 0||Q.call(b,function(N){var k=N.rule.warningOnly,O=N.errors,P=O===void 0?ws:O;k?F.push.apply(F,Nt(P)):D.push.apply(D,Nt(P))}),a.errors=D,a.warnings=F,a.triggerMetaEvent(),a.reRender()}}),R.abrupt("return",I);case 13:case"end":return R.stop()}},p)})));return h||(a.validatePromise=g,a.dirty=!0,a.errors=ws,a.warnings=ws,a.triggerMetaEvent(),a.reRender()),g}),X(at(a),"isFieldValidating",function(){return!!a.validatePromise}),X(at(a),"isFieldTouched",function(){return a.touched}),X(at(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,A=l.getInternalHooks(xf),c=A.getInitialValue;return c(a.getNamePath())!==void 0}),X(at(a),"getErrors",function(){return a.errors}),X(at(a),"getWarnings",function(){return a.warnings}),X(at(a),"isListField",function(){return a.props.isListField}),X(at(a),"isList",function(){return a.props.isList}),X(at(a),"isPreserve",function(){return a.props.preserve}),X(at(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),X(at(a),"getOnlyChild",function(l){if(typeof l=="function"){var A=a.getMeta();return $($({},a.getOnlyChild(l(a.getControlled(),A,a.props.fieldContext))),{},{isFunction:!0})}var c=ui(l);return c.length!==1||!m.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),X(at(a),"getValue",function(l){var A=a.props.fieldContext.getFieldsValue,c=a.getNamePath();return wl(l||A(!0),c)}),X(at(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=a.props,c=A.trigger,u=A.validateTrigger,d=A.getValueFromEvent,f=A.normalize,h=A.valuePropName,g=A.getValueProps,p=A.fieldContext,E=u!==void 0?u:p.validateTrigger,y=a.getNamePath(),C=p.getInternalHooks,w=p.getFieldsValue,B=C(xf),M=B.dispatch,I=a.getValue(),S=g||function(D){return X({},h,D)},R=l[c],b=$($({},l),S(I));b[c]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var D,F=arguments.length,N=new Array(F),k=0;k<F;k++)N[k]=arguments[k];d?D=d.apply(void 0,N):D=h6e.apply(void 0,[h].concat(N)),f&&(D=f(D,I,w(!0))),M({type:"updateValue",namePath:y,value:D}),R&&R.apply(void 0,N)};var Q=dz(E||[]);return Q.forEach(function(D){var F=b[D];b[D]=function(){F&&F.apply(void 0,arguments);var N=a.props.rules;N&&N.length&&M({type:"validateField",namePath:y,triggerName:D})}}),b}),n.fieldContext){var i=n.fieldContext.getInternalHooks,o=i(xf),s=o.initEntityValue;s(at(a))}return a}return ln(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.shouldUpdate,o=a.fieldContext;if(this.mounted=!0,o){var s=o.getInternalHooks,l=s(xf),A=l.registerField;this.cancelRegisterFunc=A(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,i=this.props.children,o=this.getOnlyChild(i),s=o.child,l=o.isFunction,A;return l?A=s:m.isValidElement(s)?A=m.cloneElement(s,this.getControlled(s.props)):(Sn(!s,"`children` of Field is not validate ReactElement."),A=s),m.createElement(m.Fragment,{key:a},A)}}]),r}(m.Component);X(VY,"contextType",ed);X(VY,"defaultProps",{trigger:"onChange",valuePropName:"value"});function oR(e){var t=e.name,r=Tr(e,g6e),n=m.useContext(ed),a=m.useContext(nv),i=t!==void 0?za(t):void 0,o="keep";return r.isListField||(o="_".concat((i||[]).join("_"))),m.createElement(VY,oe({key:o,name:i,isListField:!!a},r,{fieldContext:n}))}function JY(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,i=e.validateTrigger,o=e.isListField,s=m.useContext(ed),l=m.useContext(nv),A=m.useRef({keys:[],id:0}),c=A.current,u=m.useMemo(function(){var g=za(s.prefixName)||[];return[].concat(Nt(g),Nt(za(t)))},[s.prefixName,t]),d=m.useMemo(function(){return $($({},s),{},{prefixName:u})},[s,u]),f=m.useMemo(function(){return{getKey:function(p){var E=u.length,y=p[E];return[c.keys[y],p.slice(E+1)]}}},[u]);if(typeof n!="function")return Sn(!1,"Form.List only accepts function as children."),null;var h=function(p,E,y){var C=y.source;return C==="internal"?!1:p!==E};return m.createElement(nv.Provider,{value:f},m.createElement(ed.Provider,{value:d},m.createElement(oR,{name:[],shouldUpdate:h,rules:a,validateTrigger:i,initialValue:r,isList:!0,isListField:o??!!l},function(g,p){var E=g.value,y=E===void 0?[]:E,C=g.onChange,w=s.getFieldValue,B=function(){var R=w(u||[]);return R||[]},M={add:function(R,b){var Q=B();b>=0&&b<=Q.length?(c.keys=[].concat(Nt(c.keys.slice(0,b)),[c.id],Nt(c.keys.slice(b))),C([].concat(Nt(Q.slice(0,b)),[R],Nt(Q.slice(b))))):(c.keys=[].concat(Nt(c.keys),[c.id]),C([].concat(Nt(Q),[R]))),c.id+=1},remove:function(R){var b=B(),Q=new Set(Array.isArray(R)?R:[R]);Q.size<=0||(c.keys=c.keys.filter(function(D,F){return!Q.has(F)}),C(b.filter(function(D,F){return!Q.has(F)})))},move:function(R,b){if(R!==b){var Q=B();R<0||R>=Q.length||b<0||b>=Q.length||(c.keys=kW(c.keys,R,b),C(kW(Q,R,b)))}}},I=y||[];return Array.isArray(I)||(I=[]),n(I.map(function(S,R){var b=c.keys[R];return b===void 0&&(c.keys[R]=c.id,b=c.keys[R],c.id+=1),{name:R,key:b,isListField:!0}}),M,p)})))}function p6e(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,i){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),a(n))})})}):Promise.resolve([])}var Pve="__@field_split__";function Y_(e){return e.map(function(t){return"".concat(Xt(t),":").concat(t)}).join(Pve)}var Eg=function(){function e(){sn(this,e),X(this,"kvs",new Map)}return ln(e,[{key:"set",value:function(r,n){this.kvs.set(Y_(r),n)}},{key:"get",value:function(r){return this.kvs.get(Y_(r))}},{key:"update",value:function(r,n){var a=this.get(r),i=n(a);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Y_(r))}},{key:"map",value:function(r){return Nt(this.kvs.entries()).map(function(n){var a=De(n,2),i=a[0],o=a[1],s=i.split(Pve);return r({key:s.map(function(l){var A=l.match(/^([^:]*):(.*)$/),c=De(A,3),u=c[1],d=c[2];return u==="number"?Number(d):d}),value:o})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,i=n.value;return r[a.join(".")]=i,null}),r}}]),e}(),v6e=["name"],m6e=ln(function e(t){var r=this;sn(this,e),X(this,"formHooked",!1),X(this,"forceRootUpdate",void 0),X(this,"subscribable",!0),X(this,"store",{}),X(this,"fieldEntities",[]),X(this,"initialValues",{}),X(this,"callbacks",{}),X(this,"validateMessages",null),X(this,"preserve",null),X(this,"lastValidatePromise",null),X(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),X(this,"getInternalHooks",function(n){return n===xf?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Sn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),X(this,"useSubscribe",function(n){r.subscribable=n}),X(this,"prevWithoutPreserves",null),X(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var i,o=Ep(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;o=gl(o,l,wl(n,l))}),r.prevWithoutPreserves=null,r.updateStore(o)}}),X(this,"destroyForm",function(){var n=new Eg;r.getFieldEntities(!0).forEach(function(a){r.isMergedPreserve(a.isPreserve())||n.set(a.getNamePath(),!0)}),r.prevWithoutPreserves=n}),X(this,"getInitialValue",function(n){var a=wl(r.initialValues,n);return n.length?Ep(a):a}),X(this,"setCallbacks",function(n){r.callbacks=n}),X(this,"setValidateMessages",function(n){r.validateMessages=n}),X(this,"setPreserve",function(n){r.preserve=n}),X(this,"watchList",[]),X(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),X(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(o){o(a,i,n)})}}),X(this,"timeoutId",null),X(this,"warningUnhooked",function(){}),X(this,"updateStore",function(n){r.store=n}),X(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),X(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Eg;return r.getFieldEntities(n).forEach(function(i){var o=i.getNamePath();a.set(o,i)}),a}),X(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(i){var o=za(i);return a.get(o)||{INVALIDATE_NAME_PATH:za(i)}})}),X(this,"getFieldsValue",function(n,a){r.warningUnhooked();var i,o,s;if(n===!0||Array.isArray(n)?(i=n,o=a):n&&Xt(n)==="object"&&(s=n.strict,o=n.filter),i===!0&&!o)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),A=[];return l.forEach(function(c){var u,d,f="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(s){var h,g;if((h=(g=c).isList)!==null&&h!==void 0&&h.call(g))return}else if(!i&&(u=(d=c).isListField)!==null&&u!==void 0&&u.call(d))return;if(!o)A.push(f);else{var p="getMeta"in c?c.getMeta():null;o(p)&&A.push(f)}}),NW(r.store,A.map(za))}),X(this,"getFieldValue",function(n){r.warningUnhooked();var a=za(n);return wl(r.store,a)}),X(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(i,o){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:za(n[o]),errors:[],warnings:[]}})}),X(this,"getFieldError",function(n){r.warningUnhooked();var a=za(n),i=r.getFieldsError([a])[0];return i.errors}),X(this,"getFieldWarning",function(n){r.warningUnhooked();var a=za(n),i=r.getFieldsError([a])[0];return i.warnings}),X(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var o=a[0],s=a[1],l,A=!1;a.length===0?l=null:a.length===1?Array.isArray(o)?(l=o.map(za),A=!1):(l=null,A=o):(l=o.map(za),A=s);var c=r.getFieldEntities(!0),u=function(p){return p.isFieldTouched()};if(!l)return A?c.every(u):c.some(u);var d=new Eg;l.forEach(function(g){d.set(g,[])}),c.forEach(function(g){var p=g.getNamePath();l.forEach(function(E){E.every(function(y,C){return p[C]===y})&&d.update(E,function(y){return[].concat(Nt(y),[g])})})});var f=function(p){return p.some(u)},h=d.map(function(g){var p=g.value;return p});return A?h.every(f):h.some(f)}),X(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),X(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(o){return o.isFieldValidating()});var i=n.map(za);return a.some(function(o){var s=o.getNamePath();return Dp(i,s)&&o.isFieldValidating()})}),X(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),X(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new Eg,i=r.getFieldEntities(!0);i.forEach(function(l){var A=l.props.initialValue,c=l.getNamePath();if(A!==void 0){var u=a.get(c)||new Set;u.add({entity:l,value:A}),a.set(c,u)}});var o=function(A){A.forEach(function(c){var u=c.props.initialValue;if(u!==void 0){var d=c.getNamePath(),f=r.getInitialValue(d);if(f!==void 0)Sn(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var h=a.get(d);if(h&&h.size>1)Sn(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var g=r.getFieldValue(d);(!n.skipExist||g===void 0)&&r.updateStore(gl(r.store,d,Nt(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var A=a.get(l);if(A){var c;(c=s).push.apply(c,Nt(Nt(A).map(function(u){return u.entity})))}})):s=i,o(s)}),X(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(Ep(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(za);i.forEach(function(o){var s=r.getInitialValue(o);r.updateStore(gl(r.store,o,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(a,i,{type:"reset"}),r.notifyWatch(i)}),X(this,"setFields",function(n){r.warningUnhooked();var a=r.store,i=[];n.forEach(function(o){var s=o.name,l=Tr(o,v6e),A=za(s);i.push(A),"value"in l&&r.updateStore(gl(r.store,A,l.value)),r.notifyObservers(a,[A],{type:"setField",data:o})}),r.notifyWatch(i)}),X(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(i){var o=i.getNamePath(),s=i.getMeta(),l=$($({},s),{},{name:o,value:r.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),X(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var i=n.getNamePath(),o=wl(r.store,i);o===void 0&&r.updateStore(gl(r.store,i,a))}}),X(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),X(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(u){return u!==n}),!r.isMergedPreserve(s)&&(!o||l.length>1)){var A=o?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==A&&r.fieldEntities.every(function(u){return!kve(u.getNamePath(),a)})){var c=r.store;r.updateStore(gl(c,a,A,!0)),r.notifyObservers(c,[a],{type:"remove"}),r.triggerDependenciesUpdate(c,a)}}r.notifyWatch([a])}}),X(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,i=n.value;r.updateValue(a,i);break}case"validateField":{var o=n.namePath,s=n.triggerName;r.validateFields([o],{triggerName:s});break}}}),X(this,"notifyObservers",function(n,a,i){if(r.subscribable){var o=$($({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,o)})}else r.forceRootUpdate()}),X(this,"triggerDependenciesUpdate",function(n,a){var i=r.getDependencyChildrenFields(a);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[a].concat(Nt(i))}),i}),X(this,"updateValue",function(n,a){var i=za(n),o=r.store;r.updateStore(gl(r.store,i,a)),r.notifyObservers(o,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(o,i),l=r.callbacks.onValuesChange;if(l){var A=NW(r.store,[i]);l(A,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(Nt(s)))}),X(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var i=Ep(r.store,n);r.updateStore(i)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),X(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),X(this,"getDependencyChildrenFields",function(n){var a=new Set,i=[],o=new Eg;r.getFieldEntities().forEach(function(l){var A=l.props.dependencies;(A||[]).forEach(function(c){var u=za(c);o.update(u,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(A){var c=o.get(A)||new Set;c.forEach(function(u){if(!a.has(u)){a.add(u);var d=u.getNamePath();u.isFieldDirty()&&d.length&&(i.push(d),l(d))}})};return s(n),i}),X(this,"triggerOnFieldsChange",function(n,a){var i=r.callbacks.onFieldsChange;if(i){var o=r.getFields();if(a){var s=new Eg;a.forEach(function(A){var c=A.name,u=A.errors;s.set(c,u)}),o.forEach(function(A){A.errors=s.get(A.name)||A.errors})}var l=o.filter(function(A){var c=A.name;return Dp(n,c)});l.length&&i(l,o)}}),X(this,"validateFields",function(n,a){var i;r.warningUnhooked();var o,s;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,s=a):s=n;var l=!!o,A=l?o.map(za):[],c=[],u=String(Date.now()),d=new Set,f=(i=s)===null||i===void 0?void 0:i.recursive;r.getFieldEntities(!0).forEach(function(E){if(l||A.push(E.getNamePath()),!(!E.props.rules||!E.props.rules.length)){var y=E.getNamePath();if(d.add(y.join(u)),!l||Dp(A,y,f)){var C=E.validateRules($({validateMessages:$($({},Nve),r.validateMessages)},s));c.push(C.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(w){var B,M=[],I=[];return(B=w.forEach)===null||B===void 0||B.call(w,function(S){var R=S.rule.warningOnly,b=S.errors;R?I.push.apply(I,Nt(b)):M.push.apply(M,Nt(b))}),M.length?Promise.reject({name:y,errors:M,warnings:I}):{name:y,errors:M,warnings:I}}))}}});var h=p6e(c);r.lastValidatePromise=h,h.catch(function(E){return E}).then(function(E){var y=E.map(function(C){var w=C.name;return w});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,E)});var g=h.then(function(){return r.lastValidatePromise===h?Promise.resolve(r.getFieldsValue(A)):Promise.reject([])}).catch(function(E){var y=E.filter(function(C){return C&&C.errors.length});return Promise.reject({values:r.getFieldsValue(A),errorFields:y,outOfDate:r.lastValidatePromise!==h})});g.catch(function(E){return E});var p=A.filter(function(E){return d.has(E.join(u))});return r.triggerOnFieldsChange(p),g}),X(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(i){console.error(i)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function sR(e){var t=m.useRef(),r=m.useState({}),n=De(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){a({})},o=new m6e(i);t.current=o.getForm()}return[t.current]}var wz=m.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),WY=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,i=t.children,o=m.useContext(wz),s=m.useRef({});return m.createElement(wz.Provider,{value:$($({},o),{},{validateMessages:$($({},o.validateMessages),r),triggerFormChange:function(A,c){n&&n(A,{changedFields:c,forms:s.current}),o.triggerFormChange(A,c)},triggerFormFinish:function(A,c){a&&a(A,{values:c,forms:s.current}),o.triggerFormFinish(A,c)},registerForm:function(A,c){A&&(s.current=$($({},s.current),{},X({},A,c))),o.registerForm(A,c)},unregisterForm:function(A){var c=$({},s.current);delete c[A],s.current=c,o.unregisterForm(A)}})},i)},E6e=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],y6e=function(t,r){var n=t.name,a=t.initialValues,i=t.fields,o=t.form,s=t.preserve,l=t.children,A=t.component,c=A===void 0?"form":A,u=t.validateMessages,d=t.validateTrigger,f=d===void 0?"onChange":d,h=t.onValuesChange,g=t.onFieldsChange,p=t.onFinish,E=t.onFinishFailed,y=Tr(t,E6e),C=m.useContext(wz),w=sR(o),B=De(w,1),M=B[0],I=M.getInternalHooks(xf),S=I.useSubscribe,R=I.setInitialValues,b=I.setCallbacks,Q=I.setValidateMessages,D=I.setPreserve,F=I.destroyForm;m.useImperativeHandle(r,function(){return M}),m.useEffect(function(){return C.registerForm(n,M),function(){C.unregisterForm(n)}},[C,M,n]),Q($($({},C.validateMessages),u)),b({onValuesChange:h,onFieldsChange:function(K){if(C.triggerFormChange(n,K),g){for(var J=arguments.length,Y=new Array(J>1?J-1:0),W=1;W<J;W++)Y[W-1]=arguments[W];g.apply(void 0,[K].concat(Y))}},onFinish:function(K){C.triggerFormFinish(n,K),p&&p(K)},onFinishFailed:E}),D(s);var N=m.useRef(null);R(a,!N.current),N.current||(N.current=!0),m.useEffect(function(){return F},[]);var k,O=typeof l=="function";if(O){var P=M.getFieldsValue(!0);k=l(P,M)}else k=l;S(!O);var z=m.useRef();m.useEffect(function(){f6e(z.current||[],i||[])||M.setFields(i||[]),z.current=i},[i,M]);var j=m.useMemo(function(){return $($({},M),{},{validateTrigger:f})},[M,f]),V=m.createElement(nv.Provider,{value:null},m.createElement(ed.Provider,{value:j},k));return c===!1?V:m.createElement(c,oe({},y,{onSubmit:function(K){K.preventDefault(),K.stopPropagation(),M.submit()},onReset:function(K){var J;K.preventDefault(),M.resetFields(),(J=y.onReset)===null||J===void 0||J.call(y,K)}}),V)};function OW(e){try{return JSON.stringify(e)}catch{return Math.random()}}function XY(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=n===void 0?[]:n,i=t[1],o=i===void 0?{}:i,s=TUe(o)?{form:o}:o,l=s.form,A=m.useState(),c=De(A,2),u=c[0],d=c[1],f=m.useMemo(function(){return OW(u)},[u]),h=m.useRef(f);h.current=f;var g=m.useContext(ed),p=l||g,E=p&&p._init,y=za(a),C=m.useRef(y);return C.current=y,m.useEffect(function(){if(E){var w=p.getFieldsValue,B=p.getInternalHooks,M=B(xf),I=M.registerWatch,S=I(function(b,Q){var D=wl(s.preserve?Q:b,C.current),F=OW(D);h.current!==F&&(h.current=F,d(D))}),R=wl(s.preserve?w(!0):w(),C.current);return u!==R&&d(R),S}},[E]),u}var C6e=m.forwardRef(y6e),Ch=C6e;Ch.FormProvider=WY;Ch.Field=oR;Ch.List=JY;Ch.useForm=sR;Ch.useWatch=XY;const w6e=Object.freeze(Object.defineProperty({__proto__:null,Field:oR,FieldContext:ed,FormProvider:WY,List:JY,ListContext:nv,default:Ch,useForm:sR,useWatch:XY},Symbol.toStringTag,{value:"Module"}));var td=m.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),Ove=m.createContext(null),zve=function(t){var r=Ia(t,["prefixCls"]);return m.createElement(WY,oe({},r))},qY=m.createContext({prefixCls:""}),Qi=m.createContext({}),av=function(t){var r=t.children,n=t.status,a=t.override,i=m.useContext(Qi),o=m.useMemo(function(){var s=oe({},i);return a&&delete s.isFormItemInput,n&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[n,a,i]);return m.createElement(Qi.Provider,{value:o},r)},fi=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r},B6e=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r},L_=function(){return{height:0,opacity:0}},zW=function(t){var r=t.scrollHeight;return{height:r,opacity:1}},M6e=function(t){return{height:t?t.offsetHeight:0}},U_=function(t,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},vy={motionName:"ant-motion-collapse",onAppearStart:L_,onEnterStart:L_,onAppearActive:zW,onEnterActive:zW,onLeaveStart:M6e,onLeaveActive:L_,onAppearEnd:U_,onEnterEnd:U_,onLeaveEnd:U_,motionDeadline:500};fi("bottomLeft","bottomRight","topLeft","topRight");var jve=function(t){return t!==void 0&&(t==="topLeft"||t==="topRight")?"slide-down":"slide-up"},zs=function(t,r,n){return n!==void 0?n:"".concat(t,"-").concat(r)};fi("warning","error","");function Qo(e,t,r){return He(X(X(X(X(X({},"".concat(e,"-status-success"),t==="success"),"".concat(e,"-status-warning"),t==="warning"),"".concat(e,"-status-error"),t==="error"),"".concat(e,"-status-validating"),t==="validating"),"".concat(e,"-has-feedback"),r))}var Nc=function(t,r){return r||t};function Yve(e){var t=e.suffixIcon,r=e.clearIcon,n=e.menuItemSelectedIcon,a=e.removeIcon,i=e.loading,o=e.multiple,s=e.hasFeedback,l=e.prefixCls,A=e.showArrow,c=e.feedbackIcon,u=r??m.createElement(kl,null),d=function(y){return m.createElement(m.Fragment,null,A!==!1&&y,s&&c)},f=null;if(t!==void 0)f=d(t);else if(i)f=d(m.createElement(Xu,{spin:!0}));else{var h="".concat(l,"-suffix");f=function(y){var C=y.open,w=y.showSearch;return d(C&&w?m.createElement(DA,{className:h}):m.createElement(rC,{className:h}))}}var g=null;n!==void 0?g=n:o?g=m.createElement(Gs,null):g=null;var p=null;return a!==void 0?p=a:p=m.createElement(ci,null),{clearIcon:u,suffixIcon:f,itemIcon:g,removeIcon:p}}var Lve=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},lR=m.createContext(null),kc=function(t,r){var n=m.useContext(lR),a=m.useMemo(function(){if(!n)return"";var i=n.compactDirection,o=n.isFirstItem,s=n.isLastItem,l=i==="vertical"?"-vertical-":"-";return He(X(X(X(X({},"".concat(t,"-compact").concat(l,"item"),!0),"".concat(t,"-compact").concat(l,"first-item"),o),"".concat(t,"-compact").concat(l,"last-item"),s),"".concat(t,"-compact").concat(l,"item-rtl"),r==="rtl"))},[t,r,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:a}},$f=function(t){var r=t.children;return m.createElement(lR.Provider,{value:null},r)},x6e=function(t){var r=t.children,n=Lve(t,["children"]);return m.createElement(lR.Provider,{value:n},r)},I6e=function(t){var r=m.useContext(Mr),n=r.getPrefixCls,a=r.direction,i=t.size,o=i===void 0?"middle":i,s=t.direction,l=t.block,A=t.prefixCls,c=t.className,u=t.children,d=Lve(t,["size","direction","block","prefixCls","className","children"]),f=n("space-compact",A),h=He(f,X(X(X({},"".concat(f,"-rtl"),a==="rtl"),"".concat(f,"-block"),l),"".concat(f,"-vertical"),s==="vertical"),c),g=m.useContext(lR),p=ui(u),E=m.useMemo(function(){return p.map(function(y,C){var w=y&&y.key||"".concat(f,"-item-").concat(C);return m.createElement(x6e,{key:w,compactSize:o,compactDirection:s,isFirstItem:C===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:C===p.length-1&&(!g||(g==null?void 0:g.isLastItem))},y)})},[o,p,g]);return p.length===0?null:m.createElement("div",oe({className:h},d),E)},b6e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Uve="SECRET_COMBOBOX_MODE_DO_NOT_USE",S6e=function(t,r){var n=t.prefixCls,a=t.bordered,i=a===void 0?!0:a,o=t.className,s=t.getPopupContainer,l=t.dropdownClassName,A=t.popupClassName,c=t.listHeight,u=c===void 0?256:c,d=t.placement,f=t.listItemHeight,h=f===void 0?32:f,g=t.size,p=t.disabled,E=t.notFoundContent,y=t.status,C=t.showArrow,w=b6e(t,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),B=m.useContext(Mr),M=B.getPopupContainer,I=B.getPrefixCls,S=B.renderEmpty,R=B.direction,b=B.virtual,Q=B.dropdownMatchSelectWidth,D=m.useContext(Ti),F=I("select",n),N=I(),k=kc(F,R),O=k.compactSize,P=k.compactItemClassnames,z=m.useMemo(function(){var we=w.mode;if(we!=="combobox")return we===Uve?"combobox":we},[w.mode]),j=z==="multiple"||z==="tags",V=C!==void 0?C:w.loading||!(j||z==="combobox"),L=m.useContext(Qi),K=L.status,J=L.hasFeedback,Y=L.isFormItemInput,W=L.feedbackIcon,q=Nc(K,y),ee;E!==void 0?ee=E:z==="combobox"?ee=null:ee=(S||iR)("Select");var ae=Yve(oe(oe({},w),{multiple:j,hasFeedback:J,feedbackIcon:W,showArrow:V,prefixCls:F})),ne=ae.suffixIcon,ce=ae.itemIcon,ue=ae.removeIcon,ge=ae.clearIcon,Se=Ia(w,["suffixIcon","itemIcon"]),ye=He(A||l,X({},"".concat(F,"-dropdown-").concat(R),R==="rtl")),pe=O||g||D,Qe=m.useContext(Fo),Ue=p??Qe,tt=He(X(X(X(X(X({},"".concat(F,"-lg"),pe==="large"),"".concat(F,"-sm"),pe==="small"),"".concat(F,"-rtl"),R==="rtl"),"".concat(F,"-borderless"),!i),"".concat(F,"-in-form-item"),Y),Qo(F,q,J),P,o),it=function(){return d!==void 0?d:R==="rtl"?"bottomRight":"bottomLeft"};return m.createElement(KY,oe({ref:r,virtual:b,dropdownMatchSelectWidth:Q},Se,{transitionName:zs(N,jve(d),w.transitionName),listHeight:u,listItemHeight:h,mode:z,prefixCls:F,placement:it(),direction:R,inputIcon:ne,menuItemSelectedIcon:ce,removeIcon:ue,clearIcon:ge,notFoundContent:ee,className:tt,getPopupContainer:s||M,dropdownClassName:ye,showArrow:J||C,disabled:Ue}))},Ir=m.forwardRef(S6e);Ir.SECRET_COMBOBOX_MODE_DO_NOT_USE=Uve;Ir.Option=HY;Ir.OptGroup=UY;function Hve(){var e=m.useReducer(function(n){return n+1},0),t=De(e,2),r=t[1];return r}var pb=["xxl","xl","lg","md","sm","xs"],mw={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},Yd=new Map,H_=-1,Ew={},vb={matchHandlers:{},dispatch:function(t){return Ew=t,Yd.forEach(function(r){return r(Ew)}),Yd.size>=1},subscribe:function(t){return Yd.size||this.register(),H_+=1,Yd.set(H_,t),t(Ew),H_},unsubscribe:function(t){Yd.delete(t),Yd.size||this.unregister()},unregister:function(){var t=this;Object.keys(mw).forEach(function(r){var n=mw[r],a=t.matchHandlers[n];a==null||a.mql.removeListener(a==null?void 0:a.listener)}),Yd.clear()},register:function(){var t=this;Object.keys(mw).forEach(function(r){var n=mw[r],a=function(s){var l=s.matches;t.dispatch(oe(oe({},Ew),X({},r,l)))},i=window.matchMedia(n);i.addListener(a),t.matchHandlers[n]={mql:i,listener:a},a(i)})}};function ZY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=m.useRef({}),r=Hve();return m.useEffect(function(){var n=vb.subscribe(function(a){t.current=a,e&&r()});return function(){return vb.unsubscribe(n)}},[]),t.current}var Bz=function(t){return t?typeof t=="function"?t():t:null},Bs={adjustX:1,adjustY:1},Ms=[0,0],Gve={left:{points:["cr","cl"],overflow:Bs,offset:[-4,0],targetOffset:Ms},right:{points:["cl","cr"],overflow:Bs,offset:[4,0],targetOffset:Ms},top:{points:["bc","tc"],overflow:Bs,offset:[0,-4],targetOffset:Ms},bottom:{points:["tc","bc"],overflow:Bs,offset:[0,4],targetOffset:Ms},topLeft:{points:["bl","tl"],overflow:Bs,offset:[0,-4],targetOffset:Ms},leftTop:{points:["tr","tl"],overflow:Bs,offset:[-4,0],targetOffset:Ms},topRight:{points:["br","tr"],overflow:Bs,offset:[0,-4],targetOffset:Ms},rightTop:{points:["tl","tr"],overflow:Bs,offset:[4,0],targetOffset:Ms},bottomRight:{points:["tr","br"],overflow:Bs,offset:[0,4],targetOffset:Ms},rightBottom:{points:["bl","br"],overflow:Bs,offset:[4,0],targetOffset:Ms},bottomLeft:{points:["tl","bl"],overflow:Bs,offset:[0,4],targetOffset:Ms},leftBottom:{points:["br","bl"],overflow:Bs,offset:[-4,0],targetOffset:Ms}};function R6e(e){var t=e.showArrow,r=e.arrowContent,n=e.children,a=e.prefixCls,i=e.id,o=e.overlayInnerStyle,s=e.className,l=e.style;return m.createElement("div",{className:He("".concat(a,"-content"),s),style:l},t!==!1&&m.createElement("div",{className:"".concat(a,"-arrow"),key:"arrow"},r),m.createElement("div",{className:"".concat(a,"-inner"),id:i,role:"tooltip",style:o},typeof n=="function"?n():n))}var T6e=function(t,r){var n=t.overlayClassName,a=t.trigger,i=a===void 0?["hover"]:a,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,A=l===void 0?.1:l,c=t.overlayStyle,u=t.prefixCls,d=u===void 0?"rc-tooltip":u,f=t.children,h=t.onVisibleChange,g=t.afterVisibleChange,p=t.transitionName,E=t.animation,y=t.motion,C=t.placement,w=C===void 0?"right":C,B=t.align,M=B===void 0?{}:B,I=t.destroyTooltipOnHide,S=I===void 0?!1:I,R=t.defaultVisible,b=t.getTooltipContainer,Q=t.overlayInnerStyle,D=t.arrowContent,F=t.overlay,N=t.id,k=t.showArrow,O=Tr(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),P=m.useRef(null);m.useImperativeHandle(r,function(){return P.current});var z=$({},O);"visible"in t&&(z.popupVisible=t.visible);var j=function(){return m.createElement(R6e,{showArrow:k,arrowContent:D,key:"content",prefixCls:d,id:N,overlayInnerStyle:Q},F)},V=!1,L=!1;if(typeof S=="boolean")V=S;else if(S&&Xt(S)==="object"){var K=S.keepParent;V=K===!0,L=K===!1}return m.createElement(mC,oe({popupClassName:n,prefixCls:d,popup:j,action:i,builtinPlacements:Gve,popupPlacement:w,ref:P,popupAlign:M,getPopupContainer:b,onPopupVisibleChange:h,afterPopupVisibleChange:g,popupTransitionName:p,popupAnimation:E,popupMotion:y,defaultPopupVisible:R,destroyPopupOnHide:V,autoDestroy:L,mouseLeaveDelay:A,popupStyle:c,mouseEnterDelay:s},z),f)};const Q6e=m.forwardRef(T6e);var D6e=fi("success","processing","error","default","warning"),$Y=fi("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"),F6e={adjustX:1,adjustY:1},jW={adjustX:0,adjustY:0},_6e=[0,0];function YW(e){return typeof e=="boolean"?e?F6e:jW:oe(oe({},jW),e)}function Kve(e){var t=e.arrowWidth,r=t===void 0?4:t,n=e.horizontalArrowShift,a=n===void 0?16:n,i=e.verticalArrowShift,o=i===void 0?8:i,s=e.autoAdjustOverflow,l=e.arrowPointAtCenter,A={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+r),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+r)]},topRight:{points:["br","tc"],offset:[a+r,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+r)]},bottomRight:{points:["tr","bc"],offset:[a+r,4]},rightBottom:{points:["bl","cr"],offset:[4,o+r]},bottomLeft:{points:["tl","bc"],offset:[-(a+r),4]},leftBottom:{points:["br","cl"],offset:[-4,o+r]}};return Object.keys(A).forEach(function(c){A[c]=l?oe(oe({},A[c]),{overflow:YW(s),targetOffset:_6e}):oe(oe({},Gve[c]),{overflow:YW(s)}),A[c].ignoreShake=!0}),A}var N6e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},k6e=function(t,r){var n={},a=oe({},t);return r.forEach(function(i){t&&i in t&&(n[i]=t[i],delete a[i])}),{picked:n,omitted:a}},LW=new RegExp("^(".concat($Y.join("|"),")(-inverse)?$"));function P6e(e,t){var r=e.type;if((r.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||r.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||r.__ANT_RADIO===!0&&e.props.disabled){var n=k6e(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),a=n.picked,i=n.omitted,o=oe(oe({display:"inline-block"},a),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),s=oe(oe({},i),{pointerEvents:"none"}),l=ia(e,{style:s,className:null});return m.createElement("span",{style:o,className:He(e.props.className,"".concat(t,"-disabled-compatible-wrapper"))},l)}return e}var Zn=m.forwardRef(function(e,t){var r=m.useContext(Mr),n=r.getPopupContainer,a=r.getPrefixCls,i=r.direction,o=Qn(!1,{value:e.open!==void 0?e.open:e.visible,defaultValue:e.defaultOpen!==void 0?e.defaultOpen:e.defaultVisible}),s=De(o,2),l=s[0],A=s[1],c=function(){var Y=e.title,W=e.overlay;return!Y&&!W&&Y!==0},u=function(Y){var W,q;A(c()?!1:Y),c()||((W=e.onOpenChange)===null||W===void 0||W.call(e,Y),(q=e.onVisibleChange)===null||q===void 0||q.call(e,Y))},d=function(){var Y=e.builtinPlacements,W=e.arrowPointAtCenter,q=W===void 0?!1:W,ee=e.autoAdjustOverflow,ae=ee===void 0?!0:ee;return Y||Kve({arrowPointAtCenter:q,autoAdjustOverflow:ae})},f=function(Y,W){var q=d(),ee=Object.keys(q).find(function(ce){var ue,ge;return q[ce].points[0]===((ue=W.points)===null||ue===void 0?void 0:ue[0])&&q[ce].points[1]===((ge=W.points)===null||ge===void 0?void 0:ge[1])});if(ee){var ae=Y.getBoundingClientRect(),ne={top:"50%",left:"50%"};/top|Bottom/.test(ee)?ne.top="".concat(ae.height-W.offset[1],"px"):/Top|bottom/.test(ee)&&(ne.top="".concat(-W.offset[1],"px")),/left|Right/.test(ee)?ne.left="".concat(ae.width-W.offset[0],"px"):/right|Left/.test(ee)&&(ne.left="".concat(-W.offset[0],"px")),Y.style.transformOrigin="".concat(ne.left," ").concat(ne.top)}},h=function(){var Y=e.title,W=e.overlay;return Y===0?Y:W||Y||""},g=e.getPopupContainer,p=e.placement,E=p===void 0?"top":p,y=e.mouseEnterDelay,C=y===void 0?.1:y,w=e.mouseLeaveDelay,B=w===void 0?.1:w,M=N6e(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay"]),I=e.prefixCls,S=e.openClassName,R=e.getTooltipContainer,b=e.overlayClassName,Q=e.color,D=e.overlayInnerStyle,F=e.children,N=a("tooltip",I),k=a(),O=l;!("open"in e)&&!("visible"in e)&&c()&&(O=!1);var P=P6e(is(F)&&!$pe(F)?F:m.createElement("span",null,F),N),z=P.props,j=!z.className||typeof z.className=="string"?He(z.className,X({},S||"".concat(N,"-open"),!0)):z.className,V=He(b,X(X({},"".concat(N,"-rtl"),i==="rtl"),"".concat(N,"-").concat(Q),Q&&LW.test(Q))),L=D,K={};return Q&&!LW.test(Q)&&(L=oe(oe({},D),{background:Q}),K={"--antd-arrow-background-color":Q}),m.createElement(Q6e,oe({},M,{placement:E,mouseEnterDelay:C,mouseLeaveDelay:B,prefixCls:N,overlayClassName:V,getTooltipContainer:g||R||n,ref:t,builtinPlacements:d(),overlay:h(),visible:O,onVisibleChange:u,onPopupAlign:f,overlayInnerStyle:L,arrowContent:m.createElement("span",{className:"".concat(N,"-arrow-content"),style:K}),motion:{motionName:zs(k,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),O?ia(P,{className:j}):P)}),O6e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},z6e=function(t){var r=t.title,n=t.content,a=t.prefixCls;return m.createElement(m.Fragment,null,r&&m.createElement("div",{className:"".concat(a,"-title")},Bz(r)),m.createElement("div",{className:"".concat(a,"-inner-content")},Bz(n)))},AR=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,a=e.content,i=e._overlay,o=e.placement,s=o===void 0?"top":o,l=e.trigger,A=l===void 0?"hover":l,c=e.mouseEnterDelay,u=c===void 0?.1:c,d=e.mouseLeaveDelay,f=d===void 0?.1:d,h=e.overlayStyle,g=h===void 0?{}:h,p=O6e(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),E=m.useContext(Mr),y=E.getPrefixCls,C=y("popover",r),w=y(),B=m.useMemo(function(){return i||(!n&&!a?null:m.createElement(z6e,{prefixCls:C,title:n,content:a}))},[i,n,a,C]);return m.createElement(Zn,oe({placement:s,trigger:A,mouseEnterDelay:u,mouseLeaveDelay:f,overlayStyle:g},p,{prefixCls:C,ref:t,overlay:B,transitionName:zs(w,"zoom-big",p.transitionName)}))});function y0(e){return $Y.includes(e)}var j6e=function(t){var r=t.className,n=t.prefixCls,a=t.style,i=t.color,o=t.children,s=t.text,l=t.placement,A=l===void 0?"end":l,c=m.useContext(Mr),u=c.getPrefixCls,d=c.direction,f=u("ribbon",n),h=y0(i),g=He(f,"".concat(f,"-placement-").concat(A),X(X({},"".concat(f,"-rtl"),d==="rtl"),"".concat(f,"-color-").concat(i),h),r),p={},E={};return i&&!h&&(p.background=i,E.color=i),m.createElement("div",{className:"".concat(f,"-wrapper")},o,m.createElement("div",{className:g,style:oe(oe({},p),a)},m.createElement("span",{className:"".concat(f,"-text")},s),m.createElement("div",{className:"".concat(f,"-corner"),style:E})))};function UW(e){var t=e.prefixCls,r=e.value,n=e.current,a=e.offset,i=a===void 0?0:a,o;return i&&(o={position:"absolute",top:"".concat(i,"00%"),left:0}),m.createElement("span",{style:o,className:He("".concat(t,"-only-unit"),{current:n})},r)}function Y6e(e,t,r){for(var n=e,a=0;(n+10)%10!==t;)n+=r,a+=r;return a}function L6e(e){var t=e.prefixCls,r=e.count,n=e.value,a=Number(n),i=Math.abs(r),o=m.useState(a),s=De(o,2),l=s[0],A=s[1],c=m.useState(i),u=De(c,2),d=u[0],f=u[1],h=function(){A(a),f(i)};m.useEffect(function(){var M=setTimeout(function(){h()},1e3);return function(){clearTimeout(M)}},[a]);var g,p;if(l===a||Number.isNaN(a)||Number.isNaN(l))g=[m.createElement(UW,oe({},e,{key:a,current:!0}))],p={transition:"none"};else{g=[];for(var E=a+10,y=[],C=a;C<=E;C+=1)y.push(C);var w=y.findIndex(function(M){return M%10===l});g=y.map(function(M,I){var S=M%10;return m.createElement(UW,oe({},e,{key:M,value:S,offset:I-w,current:I===w}))});var B=d<i?1:-1;p={transform:"translateY(".concat(-Y6e(l,a,B),"00%)")}}return m.createElement("span",{className:"".concat(t,"-only"),style:p,onTransitionEnd:h},g)}var U6e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},H6e=function(t){var r=t.prefixCls,n=t.count,a=t.className,i=t.motionClassName,o=t.style,s=t.title,l=t.show,A=t.component,c=A===void 0?"sup":A,u=t.children,d=U6e(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),f=m.useContext(Mr),h=f.getPrefixCls,g=h("scroll-number",r),p=oe(oe({},d),{"data-show":l,style:o,className:He(g,a,i),title:s}),E=n;if(n&&Number(n)%1===0){var y=String(n).split("");E=y.map(function(C,w){return m.createElement(L6e,{prefixCls:g,count:Number(n),value:C,key:y.length-w})})}return o&&o.borderColor&&(p.style=oe(oe({},o),{boxShadow:"0 0 0 1px ".concat(o.borderColor," inset")})),u?ia(u,function(C){return{className:He("".concat(g,"-custom-component"),C==null?void 0:C.className,i)}}):m.createElement(c,p,E)},G6e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Pf=function(t){var r=t.prefixCls,n=t.scrollNumberPrefixCls,a=t.children,i=t.status,o=t.text,s=t.color,l=t.count,A=l===void 0?null:l,c=t.overflowCount,u=c===void 0?99:c,d=t.dot,f=d===void 0?!1:d,h=t.size,g=h===void 0?"default":h,p=t.title,E=t.offset,y=t.style,C=t.className,w=t.showZero,B=w===void 0?!1:w,M=G6e(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),I=m.useContext(Mr),S=I.getPrefixCls,R=I.direction,b=S("badge",r),Q=A>u?"".concat(u,"+"):A,D=Q==="0"||Q===0,F=A===null||D&&!B,N=(i!=null||s!=null)&&F,k=f&&!D,O=k?"":Q,P=m.useMemo(function(){var ue=O==null||O==="";return(ue||D&&!B)&&!k},[O,D,B,k]),z=m.useRef(A);P||(z.current=A);var j=z.current,V=m.useRef(O);P||(V.current=O);var L=V.current,K=m.useRef(k);P||(K.current=k);var J=m.useMemo(function(){if(!E)return oe({},y);var ue={marginTop:E[1]};return R==="rtl"?ue.left=parseInt(E[0],10):ue.right=-parseInt(E[0],10),oe(oe({},ue),y)},[R,E,y]),Y=p??(typeof j=="string"||typeof j=="number"?j:void 0),W=P||!o?null:m.createElement("span",{className:"".concat(b,"-status-text")},o),q=!j||Xt(j)!=="object"?void 0:ia(j,function(ue){return{style:oe(oe({},J),ue.style)}}),ee=He(X(X(X({},"".concat(b,"-status-dot"),N),"".concat(b,"-status-").concat(i),!!i),"".concat(b,"-status-").concat(s),y0(s))),ae={};s&&!y0(s)&&(ae.background=s);var ne=He(b,X(X(X({},"".concat(b,"-status"),N),"".concat(b,"-not-a-wrapper"),!a),"".concat(b,"-rtl"),R==="rtl"),C);if(!a&&N){var ce=J.color;return m.createElement("span",oe({},M,{className:ne,style:J}),m.createElement("span",{className:ee,style:ae}),o&&m.createElement("span",{style:{color:ce},className:"".concat(b,"-status-text")},o))}return m.createElement("span",oe({},M,{className:ne}),a,m.createElement(Ri,{visible:!P,motionName:"".concat(b,"-zoom"),motionAppear:!1,motionDeadline:1e3},function(ue){var ge=ue.className,Se=S("scroll-number",n),ye=K.current,pe=He(X(X(X(X(X(X({},"".concat(b,"-dot"),ye),"".concat(b,"-count"),!ye),"".concat(b,"-count-sm"),g==="small"),"".concat(b,"-multiple-words"),!ye&&L&&L.toString().length>1),"".concat(b,"-status-").concat(i),!!i),"".concat(b,"-status-").concat(s),y0(s))),Qe=oe({},J);return s&&!y0(s)&&(Qe=Qe||{},Qe.background=s),m.createElement(H6e,{prefixCls:Se,show:!P,motionClassName:ge,className:pe,count:L,title:Y,style:Qe,key:"scrollNumber"},q)}),W)};Pf.Ribbon=j6e;var Vve=m.createContext(null);function e5(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Jve(e){var t=m.useContext(Vve);return e5(t,e)}var K6e=["children","locked"],Rl=m.createContext(null);function V6e(e,t){var r=$({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function my(e){var t=e.children,r=e.locked,n=Tr(e,K6e),a=m.useContext(Rl),i=mh(function(){return V6e(a,n)},[a,n],function(o,s){return!r&&(o[0]!==s[0]||!rv(o[1],s[1],!0))});return m.createElement(Rl.Provider,{value:i},t)}var J6e=[],Wve=m.createContext(null);function cR(){return m.useContext(Wve)}var Xve=m.createContext(J6e);function _v(e){var t=m.useContext(Xve);return m.useMemo(function(){return e!==void 0?[].concat(Nt(t),[e]):t},[t,e])}var qve=m.createContext(null),t5=m.createContext({});function HW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(aR(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),i=Number(a),o=null;return a&&!Number.isNaN(i)?o=i:n&&o===null&&(o=0),n&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function Zve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Nt(e.querySelectorAll("*")).filter(function(n){return HW(n,t)});return HW(e,t)&&r.unshift(e),r}var Mz=Pt.LEFT,xz=Pt.RIGHT,Iz=Pt.UP,fI=Pt.DOWN,hI=Pt.ENTER,$ve=Pt.ESC,Km=Pt.HOME,Vm=Pt.END,GW=[Iz,fI,Mz,xz];function W6e(e,t,r,n){var a,i,o,s,l="prev",A="next",c="children",u="parent";if(e==="inline"&&n===hI)return{inlineTrigger:!0};var d=(a={},X(a,Iz,l),X(a,fI,A),a),f=(i={},X(i,Mz,r?A:l),X(i,xz,r?l:A),X(i,fI,c),X(i,hI,c),i),h=(o={},X(o,Iz,l),X(o,fI,A),X(o,hI,c),X(o,$ve,u),X(o,Mz,r?c:u),X(o,xz,r?u:c),o),g={inline:d,horizontal:f,vertical:h,inlineSub:d,horizontalSub:h,verticalSub:h},p=(s=g["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(p){case l:return{offset:-1,sibling:!0};case A:return{offset:1,sibling:!0};case u:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function X6e(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function q6e(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function eme(e,t){var r=Zve(e,!0);return r.filter(function(n){return t.has(n)})}function KW(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=eme(e,t),i=a.length,o=a.findIndex(function(s){return r===s});return n<0?o===-1?o=i-1:o-=1:n>0&&(o+=1),o=(o+i)%i,a[o]}function Z6e(e,t,r,n,a,i,o,s,l,A){var c=m.useRef(),u=m.useRef();u.current=t;var d=function(){fn.cancel(c.current)};return m.useEffect(function(){return function(){d()}},[]),function(f){var h=f.which;if([].concat(GW,[hI,$ve,Km,Vm]).includes(h)){var g,p,E,y=function(){g=new Set,p=new Map,E=new Map;var k=i();return k.forEach(function(O){var P=document.querySelector("[data-menu-id='".concat(e5(n,O),"']"));P&&(g.add(P),E.set(P,O),p.set(O,P))}),g};y();var C=p.get(t),w=q6e(C,g),B=E.get(w),M=W6e(e,o(B,!0).length===1,r,h);if(!M&&h!==Km&&h!==Vm)return;(GW.includes(h)||[Km,Vm].includes(h))&&f.preventDefault();var I=function(k){if(k){var O=k,P=k.querySelector("a");P!=null&&P.getAttribute("href")&&(O=P);var z=E.get(k);s(z),d(),c.current=fn(function(){u.current===z&&O.focus()})}};if([Km,Vm].includes(h)||M.sibling||!w){var S;!w||e==="inline"?S=a.current:S=X6e(w);var R,b=eme(S,g);h===Km?R=b[0]:h===Vm?R=b[b.length-1]:R=KW(S,g,w,M.offset),I(R)}else if(M.inlineTrigger)l(B);else if(M.offset>0)l(B,!0),d(),c.current=fn(function(){y();var N=w.getAttribute("aria-controls"),k=document.getElementById(N),O=KW(k,g);I(O)},5);else if(M.offset<0){var Q=o(B,!0),D=Q[Q.length-2],F=p.get(D);l(D,!1),I(F)}}A==null||A(f)}}function $6e(e){Promise.resolve().then(e)}var r5="__RC_UTIL_PATH_SPLIT__",VW=function(t){return t.join(r5)},e7e=function(t){return t.split(r5)},bz="rc-menu-more";function t7e(){var e=m.useState({}),t=De(e,2),r=t[1],n=m.useRef(new Map),a=m.useRef(new Map),i=m.useState([]),o=De(i,2),s=o[0],l=o[1],A=m.useRef(0),c=m.useRef(!1),u=function(){c.current||r({})},d=m.useCallback(function(C,w){var B=VW(w);a.current.set(B,C),n.current.set(C,B),A.current+=1;var M=A.current;$6e(function(){M===A.current&&u()})},[]),f=m.useCallback(function(C,w){var B=VW(w);a.current.delete(B),n.current.delete(C)},[]),h=m.useCallback(function(C){l(C)},[]),g=m.useCallback(function(C,w){var B=n.current.get(C)||"",M=e7e(B);return w&&s.includes(M[0])&&M.unshift(bz),M},[s]),p=m.useCallback(function(C,w){return C.some(function(B){var M=g(B,!0);return M.includes(w)})},[g]),E=function(){var w=Nt(n.current.keys());return s.length&&w.push(bz),w},y=m.useCallback(function(C){var w="".concat(n.current.get(C)).concat(r5),B=new Set;return Nt(a.current.keys()).forEach(function(M){M.startsWith(w)&&B.add(a.current.get(M))}),B},[]);return m.useEffect(function(){return function(){c.current=!0}},[]),{registerPath:d,unregisterPath:f,refreshOverflowKeys:h,isSubPathKey:p,getKeyPath:g,getKeys:E,getSubPathKeys:y}}function qg(e){var t=m.useRef(e);t.current=e;var r=m.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return e?r:void 0}var r7e=Math.random().toFixed(5).toString().slice(2),JW=0;function n7e(e){var t=Qn(e,{value:e}),r=De(t,2),n=r[0],a=r[1];return m.useEffect(function(){JW+=1;var i="".concat(r7e,"-").concat(JW);a("rc-menu-uuid-".concat(i))},[]),n}function tme(e,t,r,n){var a=m.useContext(Rl),i=a.activeKey,o=a.onActive,s=a.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(A){r==null||r({key:e,domEvent:A}),o(e)},l.onMouseLeave=function(A){n==null||n({key:e,domEvent:A}),s(e)}),l}function rme(e){var t=m.useContext(Rl),r=t.mode,n=t.rtl,a=t.inlineIndent;if(r!=="inline")return null;var i=e;return n?{paddingRight:i*a}:{paddingLeft:i*a}}function nme(e){var t=e.icon,r=e.props,n=e.children,a;return typeof t=="function"?a=m.createElement(t,$({},r)):a=t,a||n||null}var a7e=["item"];function mb(e){var t=e.item,r=Tr(e,a7e);return Object.defineProperty(r,"item",{get:function(){return Sn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var i7e=["title","attribute","elementRef"],o7e=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],s7e=["active"],l7e=function(e){xn(r,e);var t=sa(r);function r(){return sn(this,r),t.apply(this,arguments)}return ln(r,[{key:"render",value:function(){var a=this.props,i=a.title,o=a.attribute,s=a.elementRef,l=Tr(a,i7e),A=Ia(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Sn(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m.createElement(yA.Item,oe({},o,{title:typeof i=="string"?i:void 0},A,{ref:s}))}}]),r}(m.Component),A7e=m.forwardRef(function(e,t){var r,n=e.style,a=e.className,i=e.eventKey;e.warnKey;var o=e.disabled,s=e.itemIcon,l=e.children,A=e.role,c=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,f=e.onKeyDown,h=e.onFocus,g=Tr(e,o7e),p=Jve(i),E=m.useContext(Rl),y=E.prefixCls,C=E.onItemClick,w=E.disabled,B=E.overflowDisabled,M=E.itemIcon,I=E.selectedKeys,S=E.onActive,R=m.useContext(t5),b=R._internalRenderMenuItem,Q="".concat(y,"-item"),D=m.useRef(),F=m.useRef(),N=w||o,k=gC(t,F),O=_v(i),P=function(ce){return{key:i,keyPath:Nt(O).reverse(),item:D.current,domEvent:ce}},z=s||M,j=tme(i,N,c,u),V=j.active,L=Tr(j,s7e),K=I.includes(i),J=rme(O.length),Y=function(ce){if(!N){var ue=P(ce);d==null||d(mb(ue)),C(ue)}},W=function(ce){if(f==null||f(ce),ce.which===Pt.ENTER){var ue=P(ce);d==null||d(mb(ue)),C(ue)}},q=function(ce){S(i),h==null||h(ce)},ee={};e.role==="option"&&(ee["aria-selected"]=K);var ae=m.createElement(l7e,oe({ref:D,elementRef:k,role:A===null?"none":A||"menuitem",tabIndex:o?null:-1,"data-menu-id":B&&p?null:p},g,L,ee,{component:"li","aria-disabled":o,style:$($({},J),n),className:He(Q,(r={},X(r,"".concat(Q,"-active"),V),X(r,"".concat(Q,"-selected"),K),X(r,"".concat(Q,"-disabled"),N),r),a),onClick:Y,onKeyDown:W,onFocus:q}),l,m.createElement(nme,{props:$($({},e),{},{isSelected:K}),icon:z}));return b&&(ae=b(ae,e,{selected:K})),ae});function c7e(e,t){var r=e.eventKey,n=cR(),a=_v(r);return m.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:m.createElement(A7e,oe({},e,{ref:t}))}const yC=m.forwardRef(c7e);var u7e=["className","children"],d7e=function(t,r){var n=t.className,a=t.children,i=Tr(t,u7e),o=m.useContext(Rl),s=o.prefixCls,l=o.mode,A=o.rtl;return m.createElement("ul",oe({className:He(s,A&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:r}),a)},n5=m.forwardRef(d7e);n5.displayName="SubMenuList";var f7e=["label","children","key","type"];function a5(e,t){return ui(e).map(function(r,n){if(m.isValidElement(r)){var a,i,o=r.key,s=(a=(i=r.props)===null||i===void 0?void 0:i.eventKey)!==null&&a!==void 0?a:o,l=s==null;l&&(s="tmp_key-".concat([].concat(Nt(t),[n]).join("-")));var A={key:s,eventKey:s};return m.cloneElement(r,A)}return r})}function Sz(e){return(e||[]).map(function(t,r){if(t&&Xt(t)==="object"){var n=t,a=n.label,i=n.children,o=n.key,s=n.type,l=Tr(n,f7e),A=o??"tmp-".concat(r);return i||s==="group"?s==="group"?m.createElement(dR,oe({key:A},l,{title:a}),Sz(i)):m.createElement(uR,oe({key:A},l,{title:a}),Sz(i)):s==="divider"?m.createElement(i5,oe({key:A},l)):m.createElement(yC,oe({key:A},l),a)}return null}).filter(function(t){return t})}function h7e(e,t,r){var n=e;return t&&(n=Sz(t)),a5(n,r)}var Ou={adjustX:1,adjustY:1},g7e={topLeft:{points:["bl","tl"],overflow:Ou,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ou,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ou,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ou,offset:[4,0]}},p7e={topLeft:{points:["bl","tl"],overflow:Ou,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ou,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ou,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ou,offset:[4,0]}};function ame(e,t,r){if(t)return t;if(r)return r[e]||r.other}var v7e={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function m7e(e){var t=e.prefixCls,r=e.visible,n=e.children,a=e.popup,i=e.popupClassName,o=e.popupOffset,s=e.disabled,l=e.mode,A=e.onVisibleChange,c=m.useContext(Rl),u=c.getPopupContainer,d=c.rtl,f=c.subMenuOpenDelay,h=c.subMenuCloseDelay,g=c.builtinPlacements,p=c.triggerSubMenuAction,E=c.forceSubMenuRender,y=c.rootClassName,C=c.motion,w=c.defaultMotions,B=m.useState(!1),M=De(B,2),I=M[0],S=M[1],R=$(d?$({},p7e):$({},g7e),g),b=v7e[l],Q=ame(l,C,w),D=m.useRef(Q);l!=="inline"&&(D.current=Q);var F=$($({},D.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),N=m.useRef();return m.useEffect(function(){return N.current=fn(function(){S(r)}),function(){fn.cancel(N.current)}},[r]),m.createElement(mC,{prefixCls:t,popupClassName:He("".concat(t,"-popup"),X({},"".concat(t,"-rtl"),d),i,y),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:u,builtinPlacements:R,popupPlacement:b,popupVisible:I,popup:a,popupAlign:o&&{offset:o},action:s?[]:[p],mouseEnterDelay:f,mouseLeaveDelay:h,onPopupVisibleChange:A,forceRender:E,popupMotion:F},n)}function E7e(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,i="inline",o=m.useContext(Rl),s=o.prefixCls,l=o.forceSubMenuRender,A=o.motion,c=o.defaultMotions,u=o.mode,d=m.useRef(!1);d.current=u===i;var f=m.useState(!d.current),h=De(f,2),g=h[0],p=h[1],E=d.current?r:!1;m.useEffect(function(){d.current&&p(!1)},[u]);var y=$({},ame(i,A,c));n.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(w){return!d.current&&!w&&p(!0),C==null?void 0:C(w)},g?null:m.createElement(my,{mode:i,locked:!d.current},m.createElement(Ri,oe({visible:E},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var B=w.className,M=w.style;return m.createElement(n5,{id:t,className:B,style:M},a)}))}var y7e=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],C7e=["active"],w7e=function(t){var r,n=t.style,a=t.className,i=t.title,o=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,A=t.children,c=t.itemIcon,u=t.expandIcon,d=t.popupClassName,f=t.popupOffset,h=t.onClick,g=t.onMouseEnter,p=t.onMouseLeave,E=t.onTitleClick,y=t.onTitleMouseEnter,C=t.onTitleMouseLeave,w=Tr(t,y7e),B=Jve(o),M=m.useContext(Rl),I=M.prefixCls,S=M.mode,R=M.openKeys,b=M.disabled,Q=M.overflowDisabled,D=M.activeKey,F=M.selectedKeys,N=M.itemIcon,k=M.expandIcon,O=M.onItemClick,P=M.onOpenChange,z=M.onActive,j=m.useContext(t5),V=j._internalRenderSubMenuItem,L=m.useContext(qve),K=L.isSubPathKey,J=_v(),Y="".concat(I,"-submenu"),W=b||s,q=m.useRef(),ee=m.useRef(),ae=c||N,ne=u||k,ce=R.includes(o),ue=!Q&&ce,ge=K(F,o),Se=tme(o,W,y,C),ye=Se.active,pe=Tr(Se,C7e),Qe=m.useState(!1),Ue=De(Qe,2),tt=Ue[0],it=Ue[1],we=function(xe){W||it(xe)},ve=function(xe){we(!0),g==null||g({key:o,domEvent:xe})},Te=function(xe){we(!1),p==null||p({key:o,domEvent:xe})},Be=m.useMemo(function(){return ye||(S!=="inline"?tt||K([D],o):!1)},[S,ye,D,tt,o,K]),Ge=rme(J.length),ht=function(xe){W||(E==null||E({key:o,domEvent:xe}),S==="inline"&&P(o,!ce))},We=qg(function(et){h==null||h(mb(et)),O(et)}),Ke=function(xe){S!=="inline"&&P(o,xe)},Xe=function(){z(o)},$e=B&&"".concat(B,"-popup"),pt=m.createElement("div",oe({role:"menuitem",style:Ge,className:"".concat(Y,"-title"),tabIndex:W?null:-1,ref:q,title:typeof i=="string"?i:null,"data-menu-id":Q&&B?null:B,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":$e,"aria-disabled":W,onClick:ht,onFocus:Xe},pe),i,m.createElement(nme,{icon:S!=="horizontal"?ne:null,props:$($({},t),{},{isOpen:ue,isSubMenu:!0})},m.createElement("i",{className:"".concat(Y,"-arrow")}))),de=m.useRef(S);if(S!=="inline"&&J.length>1?de.current="vertical":de.current=S,!Q){var Fe=de.current;pt=m.createElement(m7e,{mode:Fe,prefixCls:Y,visible:!l&&ue&&S!=="inline",popupClassName:d,popupOffset:f,popup:m.createElement(my,{mode:Fe==="horizontal"?"vertical":Fe},m.createElement(n5,{id:$e,ref:ee},A)),disabled:W,onVisibleChange:Ke},pt)}var je=m.createElement(yA.Item,oe({role:"none"},w,{component:"li",style:n,className:He(Y,"".concat(Y,"-").concat(S),a,(r={},X(r,"".concat(Y,"-open"),ue),X(r,"".concat(Y,"-active"),Be),X(r,"".concat(Y,"-selected"),ge),X(r,"".concat(Y,"-disabled"),W),r)),onMouseEnter:ve,onMouseLeave:Te}),pt,!Q&&m.createElement(E7e,{id:$e,open:ue,keyPath:J},A));return V&&(je=V(je,t,{selected:ge,active:Be,open:ue,disabled:W})),m.createElement(my,{onItemClick:We,mode:S==="horizontal"?"vertical":S,itemIcon:ae,expandIcon:ne},je)};function uR(e){var t=e.eventKey,r=e.children,n=_v(t),a=a5(r,n),i=cR();m.useEffect(function(){if(i)return i.registerPath(t,n),function(){i.unregisterPath(t,n)}},[n]);var o;return i?o=a:o=m.createElement(w7e,e,a),m.createElement(Xve.Provider,{value:n},o)}var B7e=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],yg=[],M7e=m.forwardRef(function(e,t){var r,n,a=e,i=a.prefixCls,o=i===void 0?"rc-menu":i,s=a.rootClassName,l=a.style,A=a.className,c=a.tabIndex,u=c===void 0?0:c,d=a.items,f=a.children,h=a.direction,g=a.id,p=a.mode,E=p===void 0?"vertical":p,y=a.inlineCollapsed,C=a.disabled,w=a.disabledOverflow,B=a.subMenuOpenDelay,M=B===void 0?.1:B,I=a.subMenuCloseDelay,S=I===void 0?.1:I,R=a.forceSubMenuRender,b=a.defaultOpenKeys,Q=a.openKeys,D=a.activeKey,F=a.defaultActiveFirst,N=a.selectable,k=N===void 0?!0:N,O=a.multiple,P=O===void 0?!1:O,z=a.defaultSelectedKeys,j=a.selectedKeys,V=a.onSelect,L=a.onDeselect,K=a.inlineIndent,J=K===void 0?24:K,Y=a.motion,W=a.defaultMotions,q=a.triggerSubMenuAction,ee=q===void 0?"hover":q,ae=a.builtinPlacements,ne=a.itemIcon,ce=a.expandIcon,ue=a.overflowedIndicator,ge=ue===void 0?"...":ue,Se=a.overflowedIndicatorPopupClassName,ye=a.getPopupContainer,pe=a.onClick,Qe=a.onOpenChange,Ue=a.onKeyDown;a.openAnimation,a.openTransitionName;var tt=a._internalRenderMenuItem,it=a._internalRenderSubMenuItem,we=Tr(a,B7e),ve=m.useMemo(function(){return h7e(f,d,yg)},[f,d]),Te=m.useState(!1),Be=De(Te,2),Ge=Be[0],ht=Be[1],We=m.useRef(),Ke=n7e(g),Xe=h==="rtl",$e=Qn(b,{value:Q,postState:function(Oe){return Oe||yg}}),pt=De($e,2),de=pt[0],Fe=pt[1],je=function(Oe){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ct(){Fe(Oe),Qe==null||Qe(Oe)}st?ei.flushSync(Ct):Ct()},et=m.useState(de),xe=De(et,2),Ne=xe[0],le=xe[1],At=m.useRef(!1),Bt=m.useMemo(function(){return(E==="inline"||E==="vertical")&&y?["vertical",y]:[E,!1]},[E,y]),G=De(Bt,2),Ee=G[0],Ie=G[1],ie=Ee==="inline",re=m.useState(Ee),he=De(re,2),Pe=he[0],be=he[1],Ve=m.useState(Ie),lt=De(Ve,2),Ze=lt[0],Le=lt[1];m.useEffect(function(){be(Ee),Le(Ie),At.current&&(ie?Fe(Ne):je(yg))},[Ee,Ie]);var rt=m.useState(0),Qt=De(rt,2),Dt=Qt[0],ur=Qt[1],br=Dt>=ve.length-1||Pe!=="horizontal"||w;m.useEffect(function(){ie&&le(de)},[de]),m.useEffect(function(){return At.current=!0,function(){At.current=!1}},[]);var Er=t7e(),hr=Er.registerPath,Wt=Er.unregisterPath,$t=Er.refreshOverflowKeys,tr=Er.isSubPathKey,ir=Er.getKeyPath,ar=Er.getKeys,rr=Er.getSubPathKeys,Yt=m.useMemo(function(){return{registerPath:hr,unregisterPath:Wt}},[hr,Wt]),Vt=m.useMemo(function(){return{isSubPathKey:tr}},[tr]);m.useEffect(function(){$t(br?yg:ve.slice(Dt+1).map(function(Re){return Re.key}))},[Dt,br]);var Ut=Qn(D||F&&((r=ve[0])===null||r===void 0?void 0:r.key),{value:D}),Mt=De(Ut,2),xt=Mt[0],Ft=Mt[1],qt=qg(function(Re){Ft(Re)}),gr=qg(function(){Ft(void 0)});m.useImperativeHandle(t,function(){return{list:We.current,focus:function(Oe){var st,Ct=xt??((st=ve.find(function(nr){return!nr.props.disabled}))===null||st===void 0?void 0:st.key);if(Ct){var St,It,kt;(St=We.current)===null||St===void 0||(It=St.querySelector("li[data-menu-id='".concat(e5(Ke,Ct),"']")))===null||It===void 0||(kt=It.focus)===null||kt===void 0||kt.call(It,Oe)}}}});var Hr=Qn(z||[],{value:j,postState:function(Oe){return Array.isArray(Oe)?Oe:Oe==null?yg:[Oe]}}),zr=De(Hr,2),an=zr[0],qe=zr[1],ke=function(Oe){if(k){var st=Oe.key,Ct=an.includes(st),St;P?Ct?St=an.filter(function(kt){return kt!==st}):St=[].concat(Nt(an),[st]):St=[st],qe(St);var It=$($({},Oe),{},{selectedKeys:St});Ct?L==null||L(It):V==null||V(It)}!P&&de.length&&Pe!=="inline"&&je(yg)},ut=qg(function(Re){pe==null||pe(mb(Re)),ke(Re)}),gt=qg(function(Re,Oe){var st=de.filter(function(St){return St!==Re});if(Oe)st.push(Re);else if(Pe!=="inline"){var Ct=rr(Re);st=st.filter(function(St){return!Ct.has(St)})}rv(de,st,!0)||je(st,!0)}),bt=qg(ye),dt=function(Oe,st){var Ct=st??!de.includes(Oe);gt(Oe,Ct)},se=Z6e(Pe,xt,Xe,Ke,We,ar,ir,Ft,dt,Ue);m.useEffect(function(){ht(!0)},[]);var Ce=m.useMemo(function(){return{_internalRenderMenuItem:tt,_internalRenderSubMenuItem:it}},[tt,it]),fe=Pe!=="horizontal"||w?ve:ve.map(function(Re,Oe){return m.createElement(my,{key:Re.key,overflowDisabled:Oe>Dt},Re)}),Me=m.createElement(yA,oe({id:g,ref:We,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:yC,className:He(o,"".concat(o,"-root"),"".concat(o,"-").concat(Pe),A,(n={},X(n,"".concat(o,"-inline-collapsed"),Ze),X(n,"".concat(o,"-rtl"),Xe),n),s),dir:h,style:l,role:"menu",tabIndex:u,data:fe,renderRawItem:function(Oe){return Oe},renderRawRest:function(Oe){var st=Oe.length,Ct=st?ve.slice(-st):null;return m.createElement(uR,{eventKey:bz,title:ge,disabled:br,internalPopupClose:st===0,popupClassName:Se},Ct)},maxCount:Pe!=="horizontal"||w?yA.INVALIDATE:yA.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Oe){ur(Oe)},onKeyDown:se},we));return m.createElement(t5.Provider,{value:Ce},m.createElement(Vve.Provider,{value:Ke},m.createElement(my,{prefixCls:o,rootClassName:s,mode:Pe,openKeys:de,rtl:Xe,disabled:C,motion:Ge?Y:null,defaultMotions:Ge?W:null,activeKey:xt,onActive:qt,onInactive:gr,selectedKeys:an,inlineIndent:J,subMenuOpenDelay:M,subMenuCloseDelay:S,forceSubMenuRender:R,builtinPlacements:ae,triggerSubMenuAction:ee,getPopupContainer:bt,itemIcon:ne,expandIcon:ce,onItemClick:ut,onOpenChange:gt},m.createElement(qve.Provider,{value:Vt},Me),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement(Wve.Provider,{value:Yt},ve)))))}),x7e=["className","title","eventKey","children"],I7e=["children"],b7e=function(t){var r=t.className,n=t.title;t.eventKey;var a=t.children,i=Tr(t,x7e),o=m.useContext(Rl),s=o.prefixCls,l="".concat(s,"-item-group");return m.createElement("li",oe({role:"presentation"},i,{onClick:function(c){return c.stopPropagation()},className:He(l,r)}),m.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),m.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))};function dR(e){var t=e.children,r=Tr(e,I7e),n=_v(r.eventKey),a=a5(t,n),i=cR();return i?a:m.createElement(b7e,Ia(r,["warnKey"]),a)}function i5(e){var t=e.className,r=e.style,n=m.useContext(Rl),a=n.prefixCls,i=cR();return i?null:m.createElement("li",{className:He("".concat(a,"-item-divider"),t),style:r})}var Nv=M7e;Nv.Item=yC;Nv.SubMenu=uR;Nv.ItemGroup=dR;Nv.Divider=i5;var ime=m.createContext({}),S7e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ome=function(t){var r=t.prefixCls,n=t.className,a=t.dashed,i=S7e(t,["prefixCls","className","dashed"]),o=m.useContext(Mr),s=o.getPrefixCls,l=s("menu",r),A=He(X({},"".concat(l,"-item-divider-dashed"),!!a),n);return m.createElement(i5,oe({className:A},i))},Eb=m.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});function R7e(e,t,r){return t=Ma(t),Vs(e,FA()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}var T7e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},o5=function(e){xn(t,e);function t(){var r;return sn(this,t),r=R7e(this,t,arguments),r.renderItem=function(n){var a=n.siderCollapsed,i,o=r.context,s=o.prefixCls,l=o.firstLevel,A=o.inlineCollapsed,c=o.direction,u=o.disableMenuItemTitleTooltip,d=r.props,f=d.className,h=d.children,g=r.props,p=g.title,E=g.icon,y=g.danger,C=T7e(g,["title","icon","danger"]),w=p;typeof p>"u"?w=l?h:"":p===!1&&(w="");var B={title:w};!a&&!A&&(B.title=null,B.open=!1);var M=ui(h).length,I=m.createElement(yC,oe({},C,{className:He(X(X({},"".concat(s,"-item-danger"),y),"".concat(s,"-item-only-child"),(E?M+1:M)===1),f),title:typeof p=="string"?p:void 0}),ia(E,{className:He(is(E)?(i=E.props)===null||i===void 0?void 0:i.className:"","".concat(s,"-item-icon"))}),r.renderItemChildren(A));return u||(I=m.createElement(Zn,oe({},B,{placement:c==="rtl"?"left":"right",overlayClassName:"".concat(s,"-inline-collapsed-tooltip")}),I)),I},r}return ln(t,[{key:"renderItemChildren",value:function(n){var a=this.context,i=a.prefixCls,o=a.firstLevel,s=this.props,l=s.icon,A=s.children,c=m.createElement("span",{className:"".concat(i,"-title-content")},A);return(!l||is(A)&&A.type==="span")&&A&&n&&o&&typeof A=="string"?m.createElement("div",{className:"".concat(i,"-inline-collapsed-noicon")},A.charAt(0)):c}},{key:"render",value:function(){return m.createElement(ime.Consumer,null,this.renderItem)}}]),t}(m.Component);o5.contextType=Eb;function sme(e){var t,r=e.popupClassName,n=e.icon,a=e.title,i=e.theme,o=m.useContext(Eb),s=o.prefixCls,l=o.inlineCollapsed,A=o.antdMenuTheme,c=_v(),u;if(!n)u=l&&!c.length&&a&&typeof a=="string"?m.createElement("div",{className:"".concat(s,"-inline-collapsed-noicon")},a.charAt(0)):m.createElement("span",{className:"".concat(s,"-title-content")},a);else{var d=is(a)&&a.type==="span";u=m.createElement(m.Fragment,null,ia(n,{className:He(is(n)?(t=n.props)===null||t===void 0?void 0:t.className:"","".concat(s,"-item-icon"))}),d?a:m.createElement("span",{className:"".concat(s,"-title-content")},a))}var f=m.useMemo(function(){return oe(oe({},o),{firstLevel:!1})},[o]);return m.createElement(Eb.Provider,{value:f},m.createElement(uR,oe({},Ia(e,["icon"]),{title:u,popupClassName:He(s,"".concat(s,"-").concat(i||A),r)})))}var Q7e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Rz(e){return(e||[]).map(function(t,r){if(t&&Xt(t)==="object"){var n=t,a=n.label,i=n.children,o=n.key,s=n.type,l=Q7e(n,["label","children","key","type"]),A=o??"tmp-".concat(r);return i||s==="group"?s==="group"?m.createElement(dR,oe({key:A},l,{title:a}),Rz(i)):m.createElement(sme,oe({key:A},l,{title:a}),Rz(i)):s==="divider"?m.createElement(ome,oe({key:A},l)):m.createElement(o5,oe({key:A},l),a)}return null}).filter(function(t){return t})}function D7e(e){return m.useMemo(function(){return e&&Rz(e)},[e])}var F7e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},yb=m.createContext(null),lme=function(t){var r=t.children,n=F7e(t,["children"]),a=m.useContext(yb),i=m.useMemo(function(){return oe(oe({},a),n)},[a,n.prefixCls,n.mode,n.selectable]);return m.createElement(yb.Provider,{value:i},r)};function _7e(e,t,r){return t=Ma(t),Vs(e,FA()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}var N7e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},k7e=m.forwardRef(function(e,t){var r,n=m.useContext(yb)||{},a=m.useContext(Mr),i=a.getPrefixCls,o=a.getPopupContainer,s=a.direction,l=i(),A=e.prefixCls,c=e.className,u=e.theme,d=u===void 0?"light":u,f=e.expandIcon,h=e._internalDisableMenuItemTitleTooltip,g=e.inlineCollapsed,p=e.siderCollapsed,E=e.items,y=e.children,C=e.mode,w=e.selectable,B=e.onClick,M=N7e(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","mode","selectable","onClick"]),I=Ia(M,["collapsedWidth"]),S=D7e(E)||y;(r=n.validator)===null||r===void 0||r.call(n,{mode:C});var R=Os(function(){var z;B==null||B.apply(void 0,arguments),(z=n==null?void 0:n.onClick)===null||z===void 0||z.call(n)}),b=n.mode||C,Q=w??n.selectable,D=m.useMemo(function(){return p!==void 0?p:g},[g,p]),F={horizontal:{motionName:"".concat(l,"-slide-up")},inline:vy,other:{motionName:"".concat(l,"-zoom-big")}},N=i("menu",A||n.prefixCls),k=He("".concat(N,"-").concat(d),c),O;typeof f=="function"?O=f:O=ia(f||n.expandIcon,{className:"".concat(N,"-submenu-expand-icon")});var P=m.useMemo(function(){return{prefixCls:N,inlineCollapsed:D||!1,antdMenuTheme:d,direction:s,firstLevel:!0,disableMenuItemTitleTooltip:h}},[N,D,d,s,h]);return m.createElement(yb.Provider,{value:null},m.createElement(Eb.Provider,{value:P},m.createElement(Nv,oe({getPopupContainer:o,overflowedIndicator:m.createElement(W3,null),overflowedIndicatorPopupClassName:"".concat(N,"-").concat(d),mode:b,selectable:Q,onClick:R},I,{inlineCollapsed:D,className:k,prefixCls:N,direction:s,defaultMotions:F,expandIcon:O,ref:t}),S)))}),IA=function(e){xn(t,e);function t(){var r;return sn(this,t),r=_7e(this,t,arguments),r.focus=function(n){var a;(a=r.menu)===null||a===void 0||a.focus(n)},r}return ln(t,[{key:"render",value:function(){var n=this;return m.createElement(ime.Consumer,null,function(a){return m.createElement(k7e,oe({ref:function(o){n.menu=o}},n.props,a))})}}]),t}(m.Component);IA.Divider=ome;IA.Item=o5;IA.SubMenu=sme;IA.ItemGroup=dR;var Cg={adjustX:1,adjustY:1},wg=[0,0],P7e={topLeft:{points:["bl","tl"],overflow:Cg,offset:[0,-4],targetOffset:wg},topCenter:{points:["bc","tc"],overflow:Cg,offset:[0,-4],targetOffset:wg},topRight:{points:["br","tr"],overflow:Cg,offset:[0,-4],targetOffset:wg},bottomLeft:{points:["tl","bl"],overflow:Cg,offset:[0,4],targetOffset:wg},bottomCenter:{points:["tc","bc"],overflow:Cg,offset:[0,4],targetOffset:wg},bottomRight:{points:["tr","br"],overflow:Cg,offset:[0,4],targetOffset:wg}},O7e=Pt.ESC,z7e=Pt.TAB;function j7e(e){var t=e.visible,r=e.setTriggerVisible,n=e.triggerRef,a=e.onVisibleChange,i=e.autoFocus,o=m.useRef(!1),s=function(){if(t&&n.current){var u,d,f,h;(u=n.current)===null||u===void 0||(d=u.triggerRef)===null||d===void 0||(f=d.current)===null||f===void 0||(h=f.focus)===null||h===void 0||h.call(f),r(!1),typeof a=="function"&&a(!1)}},l=function(){var u,d,f,h,g=Zve((u=n.current)===null||u===void 0||(d=u.popupRef)===null||d===void 0||(f=d.current)===null||f===void 0||(h=f.getElement)===null||h===void 0?void 0:h.call(f)),p=g[0];return p!=null&&p.focus?(p.focus(),o.current=!0,!0):!1},A=function(u){switch(u.keyCode){case O7e:s();break;case z7e:{var d=!1;o.current||(d=l()),d?u.preventDefault():s();break}}};m.useEffect(function(){return t?(window.addEventListener("keydown",A),i&&fn(l,3),function(){window.removeEventListener("keydown",A),o.current=!1}):function(){o.current=!1}},[t])}var Y7e=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function L7e(e,t){var r=e.arrow,n=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,o=e.transitionName,s=e.animation,l=e.align,A=e.placement,c=A===void 0?"bottomLeft":A,u=e.placements,d=u===void 0?P7e:u,f=e.getPopupContainer,h=e.showAction,g=e.hideAction,p=e.overlayClassName,E=e.overlayStyle,y=e.visible,C=e.trigger,w=C===void 0?["hover"]:C,B=e.autoFocus,M=Tr(e,Y7e),I=m.useState(),S=De(I,2),R=S[0],b=S[1],Q="visible"in e?y:R,D=m.useRef(null);m.useImperativeHandle(t,function(){return D.current}),j7e({visible:Q,setTriggerVisible:b,triggerRef:D,onVisibleChange:e.onVisibleChange,autoFocus:B});var F=function(){var J=e.overlay,Y;return typeof J=="function"?Y=J():Y=J,Y},N=function(J){var Y=e.onOverlayClick;b(!1),Y&&Y(J)},k=function(J){var Y=e.onVisibleChange;b(J),typeof Y=="function"&&Y(J)},O=function(){var J=F();return m.createElement(m.Fragment,null,n&&m.createElement("div",{className:"".concat(i,"-arrow")}),J)},P=function(){var J=e.overlay;return typeof J=="function"?O:O()},z=function(){var J=e.minOverlayWidthMatchTrigger,Y=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!Y},j=function(){var J=e.openClassName;return J!==void 0?J:"".concat(i,"-open")},V=function(){var J=e.children,Y=J.props?J.props:{},W=He(Y.className,j());return Q&&J?m.cloneElement(J,{className:W}):J},L=g;return!L&&w.indexOf("contextMenu")!==-1&&(L=["click"]),m.createElement(mC,$($({builtinPlacements:d},M),{},{prefixCls:i,ref:D,popupClassName:He(p,X({},"".concat(i,"-show-arrow"),n)),popupStyle:E,action:w,showAction:h,hideAction:L||[],popupPlacement:c,popupAlign:l,popupTransitionName:o,popupAnimation:s,popupVisible:Q,stretch:z()?"minWidth":"",popup:P(),onPopupVisibleChange:k,onPopupClick:N,getPopupContainer:f}),V())}const Ame=m.forwardRef(L7e);var U7e=0,Fp={};function Cb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=U7e++,n=t;function a(){n-=1,n<=0?(e(),delete Fp[r]):Fp[r]=fn(a)}return Fp[r]=fn(a),r}Cb.cancel=function(t){t!==void 0&&(fn.cancel(Fp[t]),delete Fp[t])};Cb.ids=Fp;function H7e(e,t,r){return t=Ma(t),Vs(e,FA()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}var G_;function WW(e){return!e||e.offsetParent===null||e.hidden}function G7e(e){return e instanceof Document?e.body:Array.from(e.childNodes).find(function(t){return(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE})}function K7e(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}var fR=function(e){xn(t,e);function t(){var r;return sn(this,t),r=H7e(this,t,arguments),r.containerRef=m.createRef(),r.animationStart=!1,r.destroyed=!1,r.onClick=function(n,a){var i,o,s=r.props,l=s.insertExtraNode,A=s.disabled;if(!(A||!n||WW(n)||n.className.includes("-leave"))){r.extraNode=document.createElement("div");var c=at(r),u=c.extraNode,d=r.context.getPrefixCls;u.className="".concat(d(""),"-click-animating-node");var f=r.getAttributeName();if(n.setAttribute(f,"true"),a&&a!=="#fff"&&a!=="#ffffff"&&a!=="rgb(255, 255, 255)"&&a!=="rgba(255, 255, 255, 1)"&&K7e(a)&&!/rgba\((?:\d*, ){3}0\)/.test(a)&&a!=="transparent"){u.style.borderColor=a;var h=((i=n.getRootNode)===null||i===void 0?void 0:i.call(n))||n.ownerDocument,g=(o=G7e(h))!==null&&o!==void 0?o:h;G_=Zy(`
      [`.concat(d(""),"-click-animating-without-extra-node='true']::after, .").concat(d(""),`-click-animating-node {
        --antd-wave-shadow-color: `).concat(a,`;
      }`),"antd-wave",{csp:r.csp,attachTo:g})}l&&n.appendChild(u),["transition","animation"].forEach(function(p){n.addEventListener("".concat(p,"start"),r.onTransitionStart),n.addEventListener("".concat(p,"end"),r.onTransitionEnd)})}},r.onTransitionStart=function(n){if(!r.destroyed){var a=r.containerRef.current;!n||n.target!==a||r.animationStart||r.resetEffect(a)}},r.onTransitionEnd=function(n){!n||n.animationName!=="fadeEffect"||r.resetEffect(n.target)},r.bindAnimationEvent=function(n){if(!(!n||!n.getAttribute||n.getAttribute("disabled")||n.className.includes("disabled"))){var a=function(o){if(!(o.target.tagName==="INPUT"||WW(o.target))){r.resetEffect(n);var s=getComputedStyle(n).getPropertyValue("border-top-color")||getComputedStyle(n).getPropertyValue("border-color")||getComputedStyle(n).getPropertyValue("background-color");r.clickWaveTimeoutId=window.setTimeout(function(){return r.onClick(n,s)},0),Cb.cancel(r.animationStartId),r.animationStart=!0,r.animationStartId=Cb(function(){r.animationStart=!1},10)}};return n.addEventListener("click",a,!0),{cancel:function(){n.removeEventListener("click",a,!0)}}}},r.renderWave=function(n){var a=n.csp,i=r.props.children;if(r.csp=a,!m.isValidElement(i))return i;var o=r.containerRef;return Eh(i)&&(o=As(i.ref,r.containerRef)),ia(i,{ref:o})},r}return ln(t,[{key:"componentDidMount",value:function(){this.destroyed=!1;var n=this.containerRef.current;!n||n.nodeType!==1||(this.instance=this.bindAnimationEvent(n))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var n=this.context.getPrefixCls,a=this.props.insertExtraNode;return a?"".concat(n(""),"-click-animating"):"".concat(n(""),"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(n){var a=this;if(!(!n||n===this.extraNode||!(n instanceof Element))){var i=this.props.insertExtraNode,o=this.getAttributeName();n.setAttribute(o,"false"),G_&&(G_.innerHTML=""),i&&this.extraNode&&n.contains(this.extraNode)&&n.removeChild(this.extraNode),["transition","animation"].forEach(function(s){n.removeEventListener("".concat(s,"start"),a.onTransitionStart),n.removeEventListener("".concat(s,"end"),a.onTransitionEnd)})}}},{key:"render",value:function(){return m.createElement(gd,null,this.renderWave)}}]),t}(m.Component);fR.contextType=Mr;var V7e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},cme=m.createContext(void 0),J7e=function(t){var r=m.useContext(Mr),n=r.getPrefixCls,a=r.direction,i=t.prefixCls,o=t.size,s=t.className,l=V7e(t,["prefixCls","size","className"]),A=n("btn-group",i),c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}var u=He(A,X(X({},"".concat(A,"-").concat(c),c),"".concat(A,"-rtl"),a==="rtl"),s);return m.createElement(cme.Provider,{value:o},m.createElement("div",oe({},l,{className:u})))},K_=function(){return{width:0,opacity:0,transform:"scale(0)"}},V_=function(t){return{width:t.scrollWidth,opacity:1,transform:"scale(1)"}},W7e=function(t){var r=t.prefixCls,n=t.loading,a=t.existIcon,i=!!n;return a?te.createElement("span",{className:"".concat(r,"-loading-icon")},te.createElement(Xu,null)):te.createElement(Ri,{visible:i,motionName:"".concat(r,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:K_,onAppearActive:V_,onEnterStart:K_,onEnterActive:V_,onLeaveStart:V_,onLeaveActive:K_},function(o,s){var l=o.className,A=o.style;return te.createElement("span",{className:"".concat(r,"-loading-icon"),style:A,ref:s},te.createElement(Xu,{className:l}))})},X7e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},XW=/^[\u4e00-\u9fa5]{2}$/,Tz=XW.test.bind(XW);function q7e(e){return typeof e=="string"}function J_(e){return e==="text"||e==="link"}function Z7e(e,t){if(e!=null){var r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&q7e(e.type)&&Tz(e.props.children)?ia(e,{children:e.props.children.split("").join(r)}):typeof e=="string"?Tz(e)?m.createElement("span",null,e.split("").join(r)):m.createElement("span",null,e):$pe(e)?m.createElement("span",null,e):e}}function $7e(e,t){var r=!1,n=[];return m.Children.forEach(e,function(a){var i=Xt(a),o=i==="string"||i==="number";if(r&&o){var s=n.length-1,l=n[s];n[s]="".concat(l).concat(a)}else n.push(a);r=o}),m.Children.map(n,function(a){return Z7e(a,t)})}fi("default","primary","ghost","dashed","link","text");fi("default","circle","round");fi("submit","button","reset");function s5(e){return e==="danger"?{danger:!0}:{type:e}}var eHe=function(t,r){var n,a=t.loading,i=a===void 0?!1:a,o=t.prefixCls,s=t.type,l=s===void 0?"default":s,A=t.danger,c=t.shape,u=c===void 0?"default":c,d=t.size,f=t.disabled,h=t.className,g=t.children,p=t.icon,E=t.ghost,y=E===void 0?!1:E,C=t.block,w=C===void 0?!1:C,B=t.htmlType,M=B===void 0?"button":B,I=X7e(t,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),S=m.useContext(Ti),R=m.useContext(Fo),b=f??R,Q=m.useContext(cme),D=m.useState(!!i),F=De(D,2),N=F[0],k=F[1],O=m.useState(!1),P=De(O,2),z=P[0],j=P[1],V=m.useContext(Mr),L=V.getPrefixCls,K=V.autoInsertSpaceInButton,J=V.direction,Y=r||m.createRef(),W=function(){return m.Children.count(g)===1&&!p&&!J_(l)},q=function(){if(!(!Y||!Y.current||K===!1)){var Ge=Y.current.textContent;W()&&Tz(Ge)?z||j(!0):z&&j(!1)}},ee=typeof i=="boolean"?i:(i==null?void 0:i.delay)||!0;m.useEffect(function(){var Be=null;return typeof ee=="number"?Be=window.setTimeout(function(){Be=null,k(ee)},ee):k(ee),function(){Be&&(window.clearTimeout(Be),Be=null)}},[ee]),m.useEffect(q,[Y]);var ae=function(Ge){var ht=t.onClick;if(N||b){Ge.preventDefault();return}ht==null||ht(Ge)},ne=L("btn",o),ce=K!==!1,ue=kc(ne,J),ge=ue.compactSize,Se=ue.compactItemClassnames,ye={large:"lg",small:"sm",middle:void 0},pe=ge||Q||d||S,Qe=pe&&ye[pe]||"",Ue=N?"loading":p,tt=Ia(I,["navigate"]),it=He(ne,(n={},X(X(X(X(X(X(X(X(X(X(n,"".concat(ne,"-").concat(u),u!=="default"&&u),"".concat(ne,"-").concat(l),l),"".concat(ne,"-").concat(Qe),Qe),"".concat(ne,"-icon-only"),!g&&g!==0&&!!Ue),"".concat(ne,"-background-ghost"),y&&!J_(l)),"".concat(ne,"-loading"),N),"".concat(ne,"-two-chinese-chars"),z&&ce&&!N),"".concat(ne,"-block"),w),"".concat(ne,"-dangerous"),!!A),"".concat(ne,"-rtl"),J==="rtl"),X(n,"".concat(ne,"-disabled"),tt.href!==void 0&&b)),Se,h),we=p&&!N?p:m.createElement(W7e,{existIcon:!!p,prefixCls:ne,loading:!!N}),ve=g||g===0?$7e(g,W()&&ce):null;if(tt.href!==void 0)return m.createElement("a",oe({},tt,{className:it,onClick:ae,ref:Y}),we,ve);var Te=m.createElement("button",oe({},I,{type:M,className:it,onClick:ae,disabled:b,ref:Y}),we,ve);return J_(l)?Te:m.createElement(fR,{disabled:!!N},Te)},nt=m.forwardRef(eHe);nt.Group=J7e;nt.__ANT_BUTTON=!0;var ume=function(t){if(Gi()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},tHe=function(t,r){if(!ume(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function Qz(e,t){return!Array.isArray(e)&&t!==void 0?tHe(e,t):ume(e)}var dme=function(){return Gi()&&window.document.documentElement},yw,rHe=function(){if(!dme())return!1;if(yw!==void 0)return yw;var t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),yw=t.scrollHeight===1,document.body.removeChild(t),yw};const fme=function(){var e=m.useState(!1),t=De(e,2),r=t[0],n=t[1];return m.useEffect(function(){n(rHe())},[]),r};function nHe(e){var t=e.className,r=e.direction,n=e.index,a=e.marginDirection,i=e.children,o=e.split,s=e.wrap,l=m.useContext(hme),A=l.horizontalSize,c=l.verticalSize,u=l.latestIndex,d=l.supportFlexGap,f={};return d||(r==="vertical"?n<u&&(f={marginBottom:A/(o?2:1)}):f=oe(oe({},n<u&&X({},a,A/(o?2:1))),s&&{paddingBottom:c})),i==null?null:m.createElement(m.Fragment,null,m.createElement("div",{className:t,style:f},i),n<u&&o&&m.createElement("span",{className:"".concat(t,"-split"),style:f},o))}var aHe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},hme=m.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),iHe={small:8,middle:16,large:24};function oHe(e){return typeof e=="string"?iHe[e]:e||0}var sHe=function(t){var r=m.useContext(Mr),n=r.getPrefixCls,a=r.space,i=r.direction,o=t.size,s=o===void 0?(a==null?void 0:a.size)||"small":o,l=t.align,A=t.className,c=t.children,u=t.direction,d=u===void 0?"horizontal":u,f=t.prefixCls,h=t.split,g=t.style,p=t.wrap,E=p===void 0?!1:p,y=aHe(t,["size","align","className","children","direction","prefixCls","split","style","wrap"]),C=fme(),w=m.useMemo(function(){return(Array.isArray(s)?s:[s,s]).map(function(z){return oHe(z)})},[s]),B=De(w,2),M=B[0],I=B[1],S=ui(c,{keepEmpty:!0}),R=l===void 0&&d==="horizontal"?"center":l,b=n("space",f),Q=He(b,"".concat(b,"-").concat(d),X(X({},"".concat(b,"-rtl"),i==="rtl"),"".concat(b,"-align-").concat(R),R),A),D="".concat(b,"-item"),F=i==="rtl"?"marginLeft":"marginRight",N=0,k=S.map(function(z,j){z!=null&&(N=j);var V=z&&z.key||"".concat(D,"-").concat(j);return m.createElement(nHe,{className:D,key:V,direction:d,index:j,marginDirection:F,split:h,wrap:E},z)}),O=m.useMemo(function(){return{horizontalSize:M,verticalSize:I,latestIndex:N,supportFlexGap:C}},[M,I,N,C]);if(S.length===0)return null;var P={};return E&&(P.flexWrap="wrap",C||(P.marginBottom=-I)),C&&(P.columnGap=M,P.rowGap=I),m.createElement("div",oe({className:Q,style:oe(oe({},P),g)},y),m.createElement(hme.Provider,{value:O},k))},gme=sHe;gme.Compact=I6e;var lHe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},pme=function(t){var r=m.useContext(Mr),n=r.getPopupContainer,a=r.getPrefixCls,i=r.direction,o=t.prefixCls,s=t.type,l=s===void 0?"default":s,A=t.danger,c=t.disabled,u=t.loading,d=t.onClick,f=t.htmlType,h=t.children,g=t.className,p=t.menu,E=t.arrow,y=t.autoFocus,C=t.overlay,w=t.trigger,B=t.align,M=t.visible,I=t.open,S=t.onVisibleChange,R=t.onOpenChange,b=t.placement,Q=t.getPopupContainer,D=t.href,F=t.icon,N=F===void 0?m.createElement(W3,null):F,k=t.title,O=t.buttonsRender,P=O===void 0?function(Qe){return Qe}:O,z=t.mouseEnterDelay,j=t.mouseLeaveDelay,V=t.overlayClassName,L=t.overlayStyle,K=t.destroyPopupOnHide,J=lHe(t,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","visible","open","onVisibleChange","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide"]),Y=a("dropdown-button",o),W={menu:p,arrow:E,autoFocus:y,align:B,disabled:c,trigger:c?[]:w,onOpenChange:R||S,getPopupContainer:Q||n,mouseEnterDelay:z,mouseLeaveDelay:j,overlayClassName:V,overlayStyle:L,destroyPopupOnHide:K},q=kc(Y,i),ee=q.compactSize,ae=q.compactItemClassnames,ne=He(Y,ae,g);"overlay"in t&&(W.overlay=C),"open"in t?W.open=I:"visible"in t&&(W.open=M),"placement"in t?W.placement=b:W.placement=i==="rtl"?"bottomLeft":"bottomRight";var ce=m.createElement(nt,{type:l,danger:A,disabled:c,loading:u,onClick:d,htmlType:f,href:D,title:k},h),ue=m.createElement(nt,{type:l,danger:A,icon:N}),ge=P([ce,ue]),Se=De(ge,2),ye=Se[0],pe=Se[1];return m.createElement(gme.Compact,oe({className:ne,size:ee,block:!0},J),ye,m.createElement(pd,oe({},W),pe))};pme.__ANT_BUTTON=!0;fi("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight","top","bottom");var pd=function(t){var r=m.useContext(Mr),n=r.getPopupContainer,a=r.getPrefixCls,i=r.direction,o=function(){var q=a(),ee=t.placement,ae=ee===void 0?"":ee,ne=t.transitionName;return ne!==void 0?ne:ae.includes("top")?"".concat(q,"-slide-down"):"".concat(q,"-slide-up")},s=function(){var q=t.placement;if(!q)return i==="rtl"?"bottomRight":"bottomLeft";if(q.includes("Center")){var ee=q.slice(0,q.indexOf("Center"));return ee}return q},l=t.menu,A=t.arrow,c=t.prefixCls,u=t.children,d=t.trigger,f=t.disabled,h=t.dropdownRender,g=t.getPopupContainer,p=t.overlayClassName,E=t.visible,y=t.open,C=t.onVisibleChange,w=t.onOpenChange,B=t.mouseEnterDelay,M=B===void 0?.15:B,I=t.mouseLeaveDelay,S=I===void 0?.1:I,R=t.autoAdjustOverflow,b=R===void 0?!0:R,Q=a("dropdown",c),D=m.Children.only(u),F=ia(D,{className:He("".concat(Q,"-trigger"),X({},"".concat(Q,"-rtl"),i==="rtl"),D.props.className),disabled:f}),N=f?[]:d,k;N&&N.includes("contextMenu")&&(k=!0);var O=Qn(!1,{value:y!==void 0?y:E}),P=De(O,2),z=P[0],j=P[1],V=Os(function(W){C==null||C(W),w==null||w(W),j(W)}),L=He(p,X({},"".concat(Q,"-rtl"),i==="rtl")),K=Kve({arrowPointAtCenter:Xt(A)==="object"&&A.pointAtCenter,autoAdjustOverflow:b}),J=m.useCallback(function(){j(!1)},[]),Y=function(){var q=t.overlay,ee;return l!=null&&l.items?ee=m.createElement(IA,oe({},l)):typeof q=="function"?ee=q():ee=q,h&&(ee=h(ee)),ee=m.Children.only(typeof ee=="string"?m.createElement("span",null,ee):ee),m.createElement(lme,{prefixCls:"".concat(Q,"-menu"),expandIcon:m.createElement("span",{className:"".concat(Q,"-menu-submenu-arrow")},m.createElement(uy,{className:"".concat(Q,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:J,validator:function(ne){ne.mode}},m.createElement($f,null,ee))};return m.createElement(Ame,oe({alignPoint:k},t,{mouseEnterDelay:M,mouseLeaveDelay:S,visible:z,builtinPlacements:K,arrow:!!A,overlayClassName:L,prefixCls:Q,getPopupContainer:g||n,transitionName:o(),trigger:N,overlay:Y,placement:s(),onVisibleChange:V}),F)};pd.Button=pme;//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var vme;function fr(){return vme.apply(null,arguments)}function AHe(e){vme=e}function Tl(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Of(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Dn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l5(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Dn(e,t))return!1;return!0}function Bo(e){return e===void 0}function Dc(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function CC(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function mme(e,t){var r=[],n,a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function zu(e,t){for(var r in t)Dn(t,r)&&(e[r]=t[r]);return Dn(t,"toString")&&(e.toString=t.toString),Dn(t,"valueOf")&&(e.valueOf=t.valueOf),e}function NA(e,t,r,n){return Yme(e,t,r,n,!0).utc()}function cHe(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function dn(e){return e._pf==null&&(e._pf=cHe()),e._pf}var Dz;Array.prototype.some?Dz=Array.prototype.some:Dz=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function A5(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=dn(e),r=Dz.call(t.parsedDateParts,function(a){return a!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function hR(e){var t=NA(NaN);return e!=null?zu(dn(t),e):dn(t).userInvalidated=!0,t}var qW=fr.momentProperties=[],W_=!1;function c5(e,t){var r,n,a,i=qW.length;if(Bo(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Bo(t._i)||(e._i=t._i),Bo(t._f)||(e._f=t._f),Bo(t._l)||(e._l=t._l),Bo(t._strict)||(e._strict=t._strict),Bo(t._tzm)||(e._tzm=t._tzm),Bo(t._isUTC)||(e._isUTC=t._isUTC),Bo(t._offset)||(e._offset=t._offset),Bo(t._pf)||(e._pf=dn(t)),Bo(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)n=qW[r],a=t[n],Bo(a)||(e[n]=a);return e}function wC(e){c5(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),W_===!1&&(W_=!0,fr.updateOffset(this),W_=!1)}function Ql(e){return e instanceof wC||e!=null&&e._isAMomentObject!=null}function Eme(e){fr.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Js(e,t){var r=!0;return zu(function(){if(fr.deprecationHandler!=null&&fr.deprecationHandler(null,e),r){var n=[],a,i,o,s=arguments.length;for(i=0;i<s;i++){if(a="",typeof arguments[i]=="object"){a+=`
[`+i+"] ";for(o in arguments[0])Dn(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}Eme(e+`
Arguments: `+Array.prototype.slice.call(n).join("")+`
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var ZW={};function yme(e,t){fr.deprecationHandler!=null&&fr.deprecationHandler(e,t),ZW[e]||(Eme(t),ZW[e]=!0)}fr.suppressDeprecationWarnings=!1;fr.deprecationHandler=null;function kA(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function uHe(e){var t,r;for(r in e)Dn(e,r)&&(t=e[r],kA(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Fz(e,t){var r=zu({},e),n;for(n in t)Dn(t,n)&&(Of(e[n])&&Of(t[n])?(r[n]={},zu(r[n],e[n]),zu(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)Dn(e,n)&&!Dn(t,n)&&Of(e[n])&&(r[n]=zu({},r[n]));return r}function u5(e){e!=null&&this.set(e)}var _z;Object.keys?_z=Object.keys:_z=function(e){var t,r=[];for(t in e)Dn(e,t)&&r.push(t);return r};var dHe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function fHe(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return kA(n)?n.call(t,r):n}function bA(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var d5=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Cw=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,X_={},_p={};function Or(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(_p[e]=a),t&&(_p[t[0]]=function(){return bA(a.apply(this,arguments),t[1],t[2])}),r&&(_p[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function hHe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function gHe(e){var t=e.match(d5),r,n;for(r=0,n=t.length;r<n;r++)_p[t[r]]?t[r]=_p[t[r]]:t[r]=hHe(t[r]);return function(a){var i="",o;for(o=0;o<n;o++)i+=kA(t[o])?t[o].call(a,e):t[o];return i}}function gI(e,t){return e.isValid()?(t=Cme(t,e.localeData()),X_[t]=X_[t]||gHe(t),X_[t](e)):e.localeData().invalidDate()}function Cme(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for(Cw.lastIndex=0;r>=0&&Cw.test(e);)e=e.replace(Cw,n),Cw.lastIndex=0,r-=1;return e}var pHe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function vHe(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(d5).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var mHe="Invalid date";function EHe(){return this._invalidDate}var yHe="%d",CHe=/\d{1,2}/;function wHe(e){return this._ordinal.replace("%d",e)}var BHe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function MHe(e,t,r,n){var a=this._relativeTime[r];return kA(a)?a(e,t,r,n):a.replace(/%d/i,e)}function xHe(e,t){var r=this._relativeTime[e>0?"future":"past"];return kA(r)?r(t):r.replace(/%s/i,t)}var $W={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ws(e){return typeof e=="string"?$W[e]||$W[e.toLowerCase()]:void 0}function f5(e){var t={},r,n;for(n in e)Dn(e,n)&&(r=Ws(n),r&&(t[r]=e[n]));return t}var IHe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function bHe(e){var t=[],r;for(r in e)Dn(e,r)&&t.push({unit:r,priority:IHe[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var wme=/\d/,cs=/\d\d/,Bme=/\d{3}/,h5=/\d{4}/,gR=/[+-]?\d{6}/,la=/\d\d?/,Mme=/\d\d\d\d?/,xme=/\d\d\d\d\d\d?/,pR=/\d{1,3}/,g5=/\d{1,4}/,vR=/[+-]?\d{1,6}/,kv=/\d+/,mR=/[+-]?\d+/,SHe=/Z|[+-]\d\d:?\d\d/gi,ER=/Z|[+-]\d\d(?::?\d\d)?/gi,RHe=/[+-]?\d+(\.\d{1,3})?/,BC=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Pv=/^[1-9]\d?/,p5=/^([1-9]\d|\d)/,wb;wb={};function wr(e,t,r){wb[e]=kA(t)?t:function(n,a){return n&&r?r:t}}function THe(e,t){return Dn(wb,e)?wb[e](t._strict,t._locale):new RegExp(QHe(e))}function QHe(e){return bc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function bc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ds(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Mn(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Ds(t)),r}var Nz={};function Hn(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),Dc(t)&&(n=function(i,o){o[t]=Mn(i)}),a=e.length,r=0;r<a;r++)Nz[e[r]]=n}function MC(e,t){Hn(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function DHe(e,t,r){t!=null&&Dn(Nz,e)&&Nz[e](t,r._a,r,e)}function yR(e){return e%4===0&&e%100!==0||e%400===0}var Hi=0,Ec=1,pA=2,$a=3,Bl=4,yc=5,bf=6,FHe=7,_He=8;Or("Y",0,0,function(){var e=this.year();return e<=9999?bA(e,4):"+"+e});Or(0,["YY",2],0,function(){return this.year()%100});Or(0,["YYYY",4],0,"year");Or(0,["YYYYY",5],0,"year");Or(0,["YYYYYY",6,!0],0,"year");wr("Y",mR);wr("YY",la,cs);wr("YYYY",g5,h5);wr("YYYYY",vR,gR);wr("YYYYYY",vR,gR);Hn(["YYYYY","YYYYYY"],Hi);Hn("YYYY",function(e,t){t[Hi]=e.length===2?fr.parseTwoDigitYear(e):Mn(e)});Hn("YY",function(e,t){t[Hi]=fr.parseTwoDigitYear(e)});Hn("Y",function(e,t){t[Hi]=parseInt(e,10)});function H0(e){return yR(e)?366:365}fr.parseTwoDigitYear=function(e){return Mn(e)+(Mn(e)>68?1900:2e3)};var Ime=Ov("FullYear",!0);function NHe(){return yR(this.year())}function Ov(e,t){return function(r){return r!=null?(bme(this,e,r),fr.updateOffset(this,t),this):Ey(this,e)}}function Ey(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function bme(e,t,r){var n,a,i,o,s;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,o=e.month(),s=e.date(),s=s===29&&o===1&&!yR(i)?28:s,a?n.setUTCFullYear(i,o,s):n.setFullYear(i,o,s)}}function kHe(e){return e=Ws(e),kA(this[e])?this[e]():this}function PHe(e,t){if(typeof e=="object"){e=f5(e);var r=bHe(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=Ws(e),kA(this[e]))return this[e](t);return this}function OHe(e,t){return(e%t+t)%t}var ja;Array.prototype.indexOf?ja=Array.prototype.indexOf:ja=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function v5(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=OHe(t,12);return e+=(t-r)/12,r===1?yR(e)?29:28:31-r%7%2}Or("M",["MM",2],"Mo",function(){return this.month()+1});Or("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Or("MMMM",0,0,function(e){return this.localeData().months(this,e)});wr("M",la,Pv);wr("MM",la,cs);wr("MMM",function(e,t){return t.monthsShortRegex(e)});wr("MMMM",function(e,t){return t.monthsRegex(e)});Hn(["M","MM"],function(e,t){t[Ec]=Mn(e)-1});Hn(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[Ec]=a:dn(r).invalidMonth=e});var zHe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Sme="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Rme=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,jHe=BC,YHe=BC;function LHe(e,t){return e?Tl(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Rme).test(t)?"format":"standalone"][e.month()]:Tl(this._months)?this._months:this._months.standalone}function UHe(e,t){return e?Tl(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Rme.test(t)?"format":"standalone"][e.month()]:Tl(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function HHe(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=NA([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=ja.call(this._shortMonthsParse,o),a!==-1?a:null):(a=ja.call(this._longMonthsParse,o),a!==-1?a:null):t==="MMM"?(a=ja.call(this._shortMonthsParse,o),a!==-1?a:(a=ja.call(this._longMonthsParse,o),a!==-1?a:null)):(a=ja.call(this._longMonthsParse,o),a!==-1?a:(a=ja.call(this._shortMonthsParse,o),a!==-1?a:null))}function GHe(e,t,r){var n,a,i;if(this._monthsParseExact)return HHe.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=NA([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function Tme(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Mn(t);else if(t=e.localeData().monthsParse(t),!Dc(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,v5(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function Qme(e){return e!=null?(Tme(this,e),fr.updateOffset(this,!0),this):Ey(this,"Month")}function KHe(){return v5(this.year(),this.month())}function VHe(e){return this._monthsParseExact?(Dn(this,"_monthsRegex")||Dme.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Dn(this,"_monthsShortRegex")||(this._monthsShortRegex=jHe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function JHe(e){return this._monthsParseExact?(Dn(this,"_monthsRegex")||Dme.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Dn(this,"_monthsRegex")||(this._monthsRegex=YHe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Dme(){function e(l,A){return A.length-l.length}var t=[],r=[],n=[],a,i,o,s;for(a=0;a<12;a++)i=NA([2e3,a]),o=bc(this.monthsShort(i,"")),s=bc(this.months(i,"")),t.push(o),r.push(s),n.push(s),n.push(o);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function WHe(e,t,r,n,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,a,i,o),s}function yy(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Bb(e,t,r){var n=7+t-r,a=(7+yy(e,0,n).getUTCDay()-t)%7;return-a+n-1}function Fme(e,t,r,n,a){var i=(7+r-n)%7,o=Bb(e,n,a),s=1+7*(t-1)+i+o,l,A;return s<=0?(l=e-1,A=H0(l)+s):s>H0(e)?(l=e+1,A=s-H0(e)):(l=e,A=s),{year:l,dayOfYear:A}}function Cy(e,t,r){var n=Bb(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+Sc(o,t,r)):a>Sc(e.year(),t,r)?(i=a-Sc(e.year(),t,r),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function Sc(e,t,r){var n=Bb(e,t,r),a=Bb(e+1,t,r);return(H0(e)-n+a)/7}Or("w",["ww",2],"wo","week");Or("W",["WW",2],"Wo","isoWeek");wr("w",la,Pv);wr("ww",la,cs);wr("W",la,Pv);wr("WW",la,cs);MC(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=Mn(e)});function XHe(e){return Cy(e,this._week.dow,this._week.doy).week}var qHe={dow:0,doy:6};function ZHe(){return this._week.dow}function $He(){return this._week.doy}function eGe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function tGe(e){var t=Cy(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Or("d",0,"do","day");Or("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Or("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Or("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Or("e",0,0,"weekday");Or("E",0,0,"isoWeekday");wr("d",la);wr("e",la);wr("E",la);wr("dd",function(e,t){return t.weekdaysMinRegex(e)});wr("ddd",function(e,t){return t.weekdaysShortRegex(e)});wr("dddd",function(e,t){return t.weekdaysRegex(e)});MC(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:dn(r).invalidWeekday=e});MC(["d","e","E"],function(e,t,r,n){t[n]=Mn(e)});function rGe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function nGe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function m5(e,t){return e.slice(t,7).concat(e.slice(0,t))}var aGe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_me="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),iGe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),oGe=BC,sGe=BC,lGe=BC;function AGe(e,t){var r=Tl(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?m5(r,this._week.dow):e?r[e.day()]:r}function cGe(e){return e===!0?m5(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function uGe(e){return e===!0?m5(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function dGe(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=NA([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=ja.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=ja.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=ja.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=ja.call(this._weekdaysParse,o),a!==-1||(a=ja.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=ja.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=ja.call(this._shortWeekdaysParse,o),a!==-1||(a=ja.call(this._weekdaysParse,o),a!==-1)?a:(a=ja.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=ja.call(this._minWeekdaysParse,o),a!==-1||(a=ja.call(this._weekdaysParse,o),a!==-1)?a:(a=ja.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function fGe(e,t,r){var n,a,i;if(this._weekdaysParseExact)return dGe.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=NA([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function hGe(e){if(!this.isValid())return e!=null?this:NaN;var t=Ey(this,"Day");return e!=null?(e=rGe(e,this.localeData()),this.add(e-t,"d")):t}function gGe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function pGe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=nGe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function vGe(e){return this._weekdaysParseExact?(Dn(this,"_weekdaysRegex")||E5.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Dn(this,"_weekdaysRegex")||(this._weekdaysRegex=oGe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function mGe(e){return this._weekdaysParseExact?(Dn(this,"_weekdaysRegex")||E5.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Dn(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=sGe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function EGe(e){return this._weekdaysParseExact?(Dn(this,"_weekdaysRegex")||E5.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Dn(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=lGe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function E5(){function e(c,u){return u.length-c.length}var t=[],r=[],n=[],a=[],i,o,s,l,A;for(i=0;i<7;i++)o=NA([2e3,1]).day(i),s=bc(this.weekdaysMin(o,"")),l=bc(this.weekdaysShort(o,"")),A=bc(this.weekdays(o,"")),t.push(s),r.push(l),n.push(A),a.push(s),a.push(l),a.push(A);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function y5(){return this.hours()%12||12}function yGe(){return this.hours()||24}Or("H",["HH",2],0,"hour");Or("h",["hh",2],0,y5);Or("k",["kk",2],0,yGe);Or("hmm",0,0,function(){return""+y5.apply(this)+bA(this.minutes(),2)});Or("hmmss",0,0,function(){return""+y5.apply(this)+bA(this.minutes(),2)+bA(this.seconds(),2)});Or("Hmm",0,0,function(){return""+this.hours()+bA(this.minutes(),2)});Or("Hmmss",0,0,function(){return""+this.hours()+bA(this.minutes(),2)+bA(this.seconds(),2)});function Nme(e,t){Or(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Nme("a",!0);Nme("A",!1);function kme(e,t){return t._meridiemParse}wr("a",kme);wr("A",kme);wr("H",la,p5);wr("h",la,Pv);wr("k",la,Pv);wr("HH",la,cs);wr("hh",la,cs);wr("kk",la,cs);wr("hmm",Mme);wr("hmmss",xme);wr("Hmm",Mme);wr("Hmmss",xme);Hn(["H","HH"],$a);Hn(["k","kk"],function(e,t,r){var n=Mn(e);t[$a]=n===24?0:n});Hn(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Hn(["h","hh"],function(e,t,r){t[$a]=Mn(e),dn(r).bigHour=!0});Hn("hmm",function(e,t,r){var n=e.length-2;t[$a]=Mn(e.substr(0,n)),t[Bl]=Mn(e.substr(n)),dn(r).bigHour=!0});Hn("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[$a]=Mn(e.substr(0,n)),t[Bl]=Mn(e.substr(n,2)),t[yc]=Mn(e.substr(a)),dn(r).bigHour=!0});Hn("Hmm",function(e,t,r){var n=e.length-2;t[$a]=Mn(e.substr(0,n)),t[Bl]=Mn(e.substr(n))});Hn("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[$a]=Mn(e.substr(0,n)),t[Bl]=Mn(e.substr(n,2)),t[yc]=Mn(e.substr(a))});function CGe(e){return(e+"").toLowerCase().charAt(0)==="p"}var wGe=/[ap]\.?m?\.?/i,BGe=Ov("Hours",!0);function MGe(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Pme={calendar:dHe,longDateFormat:pHe,invalidDate:mHe,ordinal:yHe,dayOfMonthOrdinalParse:CHe,relativeTime:BHe,months:zHe,monthsShort:Sme,week:qHe,weekdays:aGe,weekdaysMin:iGe,weekdaysShort:_me,meridiemParse:wGe},da={},Jm={},wy;function xGe(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function eX(e){return e&&e.toLowerCase().replace("_","-")}function IGe(e){for(var t=0,r,n,a,i;t<e.length;){for(i=eX(e[t]).split("-"),r=i.length,n=eX(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=CR(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&xGe(i,n)>=r-1)break;r--}t++}return wy}function bGe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function CR(e){var t=null,r;if(da[e]===void 0&&typeof module<"u"&&module&&module.exports&&bGe(e))try{t=wy._abbr,r=require,r("./locale/"+e),Ku(t)}catch{da[e]=null}return da[e]}function Ku(e,t){var r;return e&&(Bo(t)?r=Pc(e):r=C5(e,t),r?wy=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),wy._abbr}function C5(e,t){if(t!==null){var r,n=Pme;if(t.abbr=e,da[e]!=null)yme("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=da[e]._config;else if(t.parentLocale!=null)if(da[t.parentLocale]!=null)n=da[t.parentLocale]._config;else if(r=CR(t.parentLocale),r!=null)n=r._config;else return Jm[t.parentLocale]||(Jm[t.parentLocale]=[]),Jm[t.parentLocale].push({name:e,config:t}),null;return da[e]=new u5(Fz(n,t)),Jm[e]&&Jm[e].forEach(function(a){C5(a.name,a.config)}),Ku(e),da[e]}else return delete da[e],null}function SGe(e,t){if(t!=null){var r,n,a=Pme;da[e]!=null&&da[e].parentLocale!=null?da[e].set(Fz(da[e]._config,t)):(n=CR(e),n!=null&&(a=n._config),t=Fz(a,t),n==null&&(t.abbr=e),r=new u5(t),r.parentLocale=da[e],da[e]=r),Ku(e)}else da[e]!=null&&(da[e].parentLocale!=null?(da[e]=da[e].parentLocale,e===Ku()&&Ku(e)):da[e]!=null&&delete da[e]);return da[e]}function Pc(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return wy;if(!Tl(e)){if(t=CR(e),t)return t;e=[e]}return IGe(e)}function RGe(){return _z(da)}function w5(e){var t,r=e._a;return r&&dn(e).overflow===-2&&(t=r[Ec]<0||r[Ec]>11?Ec:r[pA]<1||r[pA]>v5(r[Hi],r[Ec])?pA:r[$a]<0||r[$a]>24||r[$a]===24&&(r[Bl]!==0||r[yc]!==0||r[bf]!==0)?$a:r[Bl]<0||r[Bl]>59?Bl:r[yc]<0||r[yc]>59?yc:r[bf]<0||r[bf]>999?bf:-1,dn(e)._overflowDayOfYear&&(t<Hi||t>pA)&&(t=pA),dn(e)._overflowWeeks&&t===-1&&(t=FHe),dn(e)._overflowWeekday&&t===-1&&(t=_He),dn(e).overflow=t),e}var TGe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,QGe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,DGe=/Z|[+-]\d\d(?::?\d\d)?/,ww=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],q_=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],FGe=/^\/?Date\((-?\d+)/i,_Ge=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,NGe={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ome(e){var t,r,n=e._i,a=TGe.exec(n)||QGe.exec(n),i,o,s,l,A=ww.length,c=q_.length;if(a){for(dn(e).iso=!0,t=0,r=A;t<r;t++)if(ww[t][1].exec(a[1])){o=ww[t][0],i=ww[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(a[3]){for(t=0,r=c;t<r;t++)if(q_[t][1].exec(a[3])){s=(a[2]||" ")+q_[t][0];break}if(s==null){e._isValid=!1;return}}if(!i&&s!=null){e._isValid=!1;return}if(a[4])if(DGe.exec(a[4]))l="Z";else{e._isValid=!1;return}e._f=o+(s||"")+(l||""),M5(e)}else e._isValid=!1}function kGe(e,t,r,n,a,i){var o=[PGe(e),Sme.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function PGe(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function OGe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function zGe(e,t,r){if(e){var n=_me.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return dn(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function jGe(e,t,r){if(e)return NGe[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function zme(e){var t=_Ge.exec(OGe(e._i)),r;if(t){if(r=kGe(t[4],t[3],t[2],t[5],t[6],t[7]),!zGe(t[1],r,e))return;e._a=r,e._tzm=jGe(t[8],t[9],t[10]),e._d=yy.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),dn(e).rfc2822=!0}else e._isValid=!1}function YGe(e){var t=FGe.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Ome(e),e._isValid===!1)delete e._isValid;else return;if(zme(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:fr.createFromInputFallback(e)}fr.createFromInputFallback=Js("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Zg(e,t,r){return e??t??r}function LGe(e){var t=new Date(fr.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function B5(e){var t,r,n=[],a,i,o;if(!e._d){for(a=LGe(e),e._w&&e._a[pA]==null&&e._a[Ec]==null&&UGe(e),e._dayOfYear!=null&&(o=Zg(e._a[Hi],a[Hi]),(e._dayOfYear>H0(o)||e._dayOfYear===0)&&(dn(e)._overflowDayOfYear=!0),r=yy(o,0,e._dayOfYear),e._a[Ec]=r.getUTCMonth(),e._a[pA]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[$a]===24&&e._a[Bl]===0&&e._a[yc]===0&&e._a[bf]===0&&(e._nextDay=!0,e._a[$a]=0),e._d=(e._useUTC?yy:WHe).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$a]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(dn(e).weekdayMismatch=!0)}}function UGe(e){var t,r,n,a,i,o,s,l,A;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,r=Zg(t.GG,e._a[Hi],Cy(oa(),1,4).year),n=Zg(t.W,1),a=Zg(t.E,1),(a<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,A=Cy(oa(),i,o),r=Zg(t.gg,e._a[Hi],A.year),n=Zg(t.w,A.week),t.d!=null?(a=t.d,(a<0||a>6)&&(l=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),n<1||n>Sc(r,i,o)?dn(e)._overflowWeeks=!0:l!=null?dn(e)._overflowWeekday=!0:(s=Fme(r,n,a,i,o),e._a[Hi]=s.year,e._dayOfYear=s.dayOfYear)}fr.ISO_8601=function(){};fr.RFC_2822=function(){};function M5(e){if(e._f===fr.ISO_8601){Ome(e);return}if(e._f===fr.RFC_2822){zme(e);return}e._a=[],dn(e).empty=!0;var t=""+e._i,r,n,a,i,o,s=t.length,l=0,A,c;for(a=Cme(e._f,e._locale).match(d5)||[],c=a.length,r=0;r<c;r++)i=a[r],n=(t.match(THe(i,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&dn(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),l+=n.length),_p[i]?(n?dn(e).empty=!1:dn(e).unusedTokens.push(i),DHe(i,n,e)):e._strict&&!n&&dn(e).unusedTokens.push(i);dn(e).charsLeftOver=s-l,t.length>0&&dn(e).unusedInput.push(t),e._a[$a]<=12&&dn(e).bigHour===!0&&e._a[$a]>0&&(dn(e).bigHour=void 0),dn(e).parsedDateParts=e._a.slice(0),dn(e).meridiem=e._meridiem,e._a[$a]=HGe(e._locale,e._a[$a],e._meridiem),A=dn(e).era,A!==null&&(e._a[Hi]=e._locale.erasConvertYear(A,e._a[Hi])),B5(e),w5(e)}function HGe(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function GGe(e){var t,r,n,a,i,o,s=!1,l=e._f.length;if(l===0){dn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<l;a++)i=0,o=!1,t=c5({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],M5(t),A5(t)&&(o=!0),i+=dn(t).charsLeftOver,i+=dn(t).unusedTokens.length*10,dn(t).score=i,s?i<n&&(n=i,r=t):(n==null||i<n||o)&&(n=i,r=t,o&&(s=!0));zu(e,r||t)}function KGe(e){if(!e._d){var t=f5(e._i),r=t.day===void 0?t.date:t.day;e._a=mme([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),B5(e)}}function VGe(e){var t=new wC(w5(jme(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function jme(e){var t=e._i,r=e._f;return e._locale=e._locale||Pc(e._l),t===null||r===void 0&&t===""?hR({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Ql(t)?new wC(w5(t)):(CC(t)?e._d=t:Tl(r)?GGe(e):r?M5(e):JGe(e),A5(e)||(e._d=null),e))}function JGe(e){var t=e._i;Bo(t)?e._d=new Date(fr.now()):CC(t)?e._d=new Date(t.valueOf()):typeof t=="string"?YGe(e):Tl(t)?(e._a=mme(t.slice(0),function(r){return parseInt(r,10)}),B5(e)):Of(t)?KGe(e):Dc(t)?e._d=new Date(t):fr.createFromInputFallback(e)}function Yme(e,t,r,n,a){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Of(e)&&l5(e)||Tl(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=n,VGe(i)}function oa(e,t,r,n){return Yme(e,t,r,n,!1)}var WGe=Js("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=oa.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:hR()}),XGe=Js("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=oa.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:hR()});function Lme(e,t){var r,n;if(t.length===1&&Tl(t[0])&&(t=t[0]),!t.length)return oa();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function qGe(){var e=[].slice.call(arguments,0);return Lme("isBefore",e)}function ZGe(){var e=[].slice.call(arguments,0);return Lme("isAfter",e)}var $Ge=function(){return Date.now?Date.now():+new Date},Wm=["year","quarter","month","week","day","hour","minute","second","millisecond"];function eKe(e){var t,r=!1,n,a=Wm.length;for(t in e)if(Dn(e,t)&&!(ja.call(Wm,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[Wm[n]]){if(r)return!1;parseFloat(e[Wm[n]])!==Mn(e[Wm[n]])&&(r=!0)}return!0}function tKe(){return this._isValid}function rKe(){return Ol(NaN)}function wR(e){var t=f5(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,A=t.second||0,c=t.millisecond||0;this._isValid=eKe(t),this._milliseconds=+c+A*1e3+l*6e4+s*1e3*60*60,this._days=+o+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=Pc(),this._bubble()}function pI(e){return e instanceof wR}function kz(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function nKe(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,o;for(o=0;o<n;o++)Mn(e[o])!==Mn(t[o])&&i++;return i+a}function Ume(e,t){Or(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+bA(~~(r/60),2)+t+bA(~~r%60,2)})}Ume("Z",":");Ume("ZZ","");wr("Z",ER);wr("ZZ",ER);Hn(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=x5(ER,e)});var aKe=/([\+\-]|\d\d)/gi;function x5(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(aKe)||["-",0,0],i=+(a[1]*60)+Mn(a[2]),i===0?0:a[0]==="+"?i:-i)}function I5(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(Ql(e)||CC(e)?e.valueOf():oa(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),fr.updateOffset(r,!1),r):oa(e).local()}function Pz(e){return-Math.round(e._d.getTimezoneOffset())}fr.updateOffset=function(){};function iKe(e,t,r){var n=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=x5(ER,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=Pz(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?Kme(this,Ol(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,fr.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:Pz(this)}function oKe(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function sKe(e){return this.utcOffset(0,e)}function lKe(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Pz(this),"m")),this}function AKe(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=x5(SHe,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function cKe(e){return this.isValid()?(e=e?oa(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function uKe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function dKe(){if(!Bo(this._isDSTShifted))return this._isDSTShifted;var e={},t;return c5(e,this),e=jme(e),e._a?(t=e._isUTC?NA(e._a):oa(e._a),this._isDSTShifted=this.isValid()&&nKe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function fKe(){return this.isValid()?!this._isUTC:!1}function hKe(){return this.isValid()?this._isUTC:!1}function Hme(){return this.isValid()?this._isUTC&&this._offset===0:!1}var gKe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,pKe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ol(e,t){var r=e,n=null,a,i,o;return pI(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Dc(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=gKe.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:Mn(n[pA])*a,h:Mn(n[$a])*a,m:Mn(n[Bl])*a,s:Mn(n[yc])*a,ms:Mn(kz(n[bf]*1e3))*a}):(n=pKe.exec(e))?(a=n[1]==="-"?-1:1,r={y:Ld(n[2],a),M:Ld(n[3],a),w:Ld(n[4],a),d:Ld(n[5],a),h:Ld(n[6],a),m:Ld(n[7],a),s:Ld(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=vKe(oa(r.from),oa(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new wR(r),pI(e)&&Dn(e,"_locale")&&(i._locale=e._locale),pI(e)&&Dn(e,"_isValid")&&(i._isValid=e._isValid),i}Ol.fn=wR.prototype;Ol.invalid=rKe;function Ld(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function tX(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function vKe(e,t){var r;return e.isValid()&&t.isValid()?(t=I5(t,e),e.isBefore(t)?r=tX(e,t):(r=tX(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Gme(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(yme(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=Ol(r,n),Kme(this,a,e),this}}function Kme(e,t,r,n){var a=t._milliseconds,i=kz(t._days),o=kz(t._months);e.isValid()&&(n=n??!0,o&&Tme(e,Ey(e,"Month")+o*r),i&&bme(e,"Date",Ey(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&fr.updateOffset(e,i||o))}var mKe=Gme(1,"add"),EKe=Gme(-1,"subtract");function Vme(e){return typeof e=="string"||e instanceof String}function yKe(e){return Ql(e)||CC(e)||Vme(e)||Dc(e)||wKe(e)||CKe(e)||e===null||e===void 0}function CKe(e){var t=Of(e)&&!l5(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=n.length;for(a=0;a<o;a+=1)i=n[a],r=r||Dn(e,i);return t&&r}function wKe(e){var t=Tl(e),r=!1;return t&&(r=e.filter(function(n){return!Dc(n)&&Vme(e)}).length===0),t&&r}function BKe(e){var t=Of(e)&&!l5(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||Dn(e,i);return t&&r}function MKe(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function xKe(e,t){arguments.length===1&&(arguments[0]?yKe(arguments[0])?(e=arguments[0],t=void 0):BKe(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||oa(),n=I5(r,this).startOf("day"),a=fr.calendarFormat(this,n)||"sameElse",i=t&&(kA(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,oa(r)))}function IKe(){return new wC(this)}function bKe(e,t){var r=Ql(e)?e:oa(e);return this.isValid()&&r.isValid()?(t=Ws(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function SKe(e,t){var r=Ql(e)?e:oa(e);return this.isValid()&&r.isValid()?(t=Ws(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function RKe(e,t,r,n){var a=Ql(e)?e:oa(e),i=Ql(t)?t:oa(t);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function TKe(e,t){var r=Ql(e)?e:oa(e),n;return this.isValid()&&r.isValid()?(t=Ws(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function QKe(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function DKe(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function FKe(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=I5(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=Ws(t),t){case"year":i=vI(this,n)/12;break;case"month":i=vI(this,n);break;case"quarter":i=vI(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:Ds(i)}function vI(e,t){if(e.date()<t.date())return-vI(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;return t-n<0?(a=e.clone().add(r-1,"months"),i=(t-n)/(n-a)):(a=e.clone().add(r+1,"months"),i=(t-n)/(a-n)),-(r+i)||0}fr.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";fr.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function _Ke(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function NKe(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?gI(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):kA(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",gI(r,"Z")):gI(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function kKe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function PKe(e){e||(e=this.isUtc()?fr.defaultFormatUtc:fr.defaultFormat);var t=gI(this,e);return this.localeData().postformat(t)}function OKe(e,t){return this.isValid()&&(Ql(e)&&e.isValid()||oa(e).isValid())?Ol({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function zKe(e){return this.from(oa(),e)}function jKe(e,t){return this.isValid()&&(Ql(e)&&e.isValid()||oa(e).isValid())?Ol({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function YKe(e){return this.to(oa(),e)}function Jme(e){var t;return e===void 0?this._locale._abbr:(t=Pc(e),t!=null&&(this._locale=t),this)}var Wme=Js("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Xme(){return this._locale}var Mb=1e3,Np=60*Mb,xb=60*Np,qme=(365*400+97)*24*xb;function kp(e,t){return(e%t+t)%t}function Zme(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-qme:new Date(e,t,r).valueOf()}function $me(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-qme:Date.UTC(e,t,r)}function LKe(e){var t,r;if(e=Ws(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?$me:Zme,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=kp(t+(this._isUTC?0:this.utcOffset()*Np),xb);break;case"minute":t=this._d.valueOf(),t-=kp(t,Np);break;case"second":t=this._d.valueOf(),t-=kp(t,Mb);break}return this._d.setTime(t),fr.updateOffset(this,!0),this}function UKe(e){var t,r;if(e=Ws(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?$me:Zme,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=xb-kp(t+(this._isUTC?0:this.utcOffset()*Np),xb)-1;break;case"minute":t=this._d.valueOf(),t+=Np-kp(t,Np)-1;break;case"second":t=this._d.valueOf(),t+=Mb-kp(t,Mb)-1;break}return this._d.setTime(t),fr.updateOffset(this,!0),this}function HKe(){return this._d.valueOf()-(this._offset||0)*6e4}function GKe(){return Math.floor(this.valueOf()/1e3)}function KKe(){return new Date(this.valueOf())}function VKe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function JKe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function WKe(){return this.isValid()?this.toISOString():null}function XKe(){return A5(this)}function qKe(){return zu({},dn(this))}function ZKe(){return dn(this).overflow}function $Ke(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Or("N",0,0,"eraAbbr");Or("NN",0,0,"eraAbbr");Or("NNN",0,0,"eraAbbr");Or("NNNN",0,0,"eraName");Or("NNNNN",0,0,"eraNarrow");Or("y",["y",1],"yo","eraYear");Or("y",["yy",2],0,"eraYear");Or("y",["yyy",3],0,"eraYear");Or("y",["yyyy",4],0,"eraYear");wr("N",b5);wr("NN",b5);wr("NNN",b5);wr("NNNN",c9e);wr("NNNNN",u9e);Hn(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?dn(r).era=a:dn(r).invalidEra=e});wr("y",kv);wr("yy",kv);wr("yyy",kv);wr("yyyy",kv);wr("yo",d9e);Hn(["y","yy","yyy","yyyy"],Hi);Hn(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Hi]=r._locale.eraYearOrdinalParse(e,a):t[Hi]=parseInt(e,10)});function e9e(e,t){var r,n,a,i=this._eras||Pc("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=fr(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=fr(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function t9e(e,t,r){var n,a,i=this.eras(),o,s,l;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(o=i[n].name.toUpperCase(),s=i[n].abbr.toUpperCase(),l=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return i[n];break;case"NNNN":if(o===e)return i[n];break;case"NNNNN":if(l===e)return i[n];break}else if([o,s,l].indexOf(e)>=0)return i[n]}function r9e(e,t){var r=e.since<=e.until?1:-1;return t===void 0?fr(e.since).year():fr(e.since).year()+(t-e.offset)*r}function n9e(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function a9e(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function i9e(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function o9e(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-fr(a[e].since).year())*r+a[e].offset;return this.year()}function s9e(e){return Dn(this,"_erasNameRegex")||S5.call(this),e?this._erasNameRegex:this._erasRegex}function l9e(e){return Dn(this,"_erasAbbrRegex")||S5.call(this),e?this._erasAbbrRegex:this._erasRegex}function A9e(e){return Dn(this,"_erasNarrowRegex")||S5.call(this),e?this._erasNarrowRegex:this._erasRegex}function b5(e,t){return t.erasAbbrRegex(e)}function c9e(e,t){return t.erasNameRegex(e)}function u9e(e,t){return t.erasNarrowRegex(e)}function d9e(e,t){return t._eraYearOrdinalRegex||kv}function S5(){var e=[],t=[],r=[],n=[],a,i,o,s,l,A=this.eras();for(a=0,i=A.length;a<i;++a)o=bc(A[a].name),s=bc(A[a].abbr),l=bc(A[a].narrow),t.push(o),e.push(s),r.push(l),n.push(o),n.push(s),n.push(l);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Or(0,["gg",2],0,function(){return this.weekYear()%100});Or(0,["GG",2],0,function(){return this.isoWeekYear()%100});function BR(e,t){Or(0,[e,e.length],0,t)}BR("gggg","weekYear");BR("ggggg","weekYear");BR("GGGG","isoWeekYear");BR("GGGGG","isoWeekYear");wr("G",mR);wr("g",mR);wr("GG",la,cs);wr("gg",la,cs);wr("GGGG",g5,h5);wr("gggg",g5,h5);wr("GGGGG",vR,gR);wr("ggggg",vR,gR);MC(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=Mn(e)});MC(["gg","GG"],function(e,t,r,n){t[n]=fr.parseTwoDigitYear(e)});function f9e(e){return eEe.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function h9e(e){return eEe.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function g9e(){return Sc(this.year(),1,4)}function p9e(){return Sc(this.isoWeekYear(),1,4)}function v9e(){var e=this.localeData()._week;return Sc(this.year(),e.dow,e.doy)}function m9e(){var e=this.localeData()._week;return Sc(this.weekYear(),e.dow,e.doy)}function eEe(e,t,r,n,a){var i;return e==null?Cy(this,n,a).year:(i=Sc(e,n,a),t>i&&(t=i),E9e.call(this,e,t,r,n,a))}function E9e(e,t,r,n,a){var i=Fme(e,t,r,n,a),o=yy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Or("Q",0,"Qo","quarter");wr("Q",wme);Hn("Q",function(e,t){t[Ec]=(Mn(e)-1)*3});function y9e(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Or("D",["DD",2],"Do","date");wr("D",la,Pv);wr("DD",la,cs);wr("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Hn(["D","DD"],pA);Hn("Do",function(e,t){t[pA]=Mn(e.match(la)[0])});var tEe=Ov("Date",!0);Or("DDD",["DDDD",3],"DDDo","dayOfYear");wr("DDD",pR);wr("DDDD",Bme);Hn(["DDD","DDDD"],function(e,t,r){r._dayOfYear=Mn(e)});function C9e(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Or("m",["mm",2],0,"minute");wr("m",la,p5);wr("mm",la,cs);Hn(["m","mm"],Bl);var w9e=Ov("Minutes",!1);Or("s",["ss",2],0,"second");wr("s",la,p5);wr("ss",la,cs);Hn(["s","ss"],yc);var B9e=Ov("Seconds",!1);Or("S",0,0,function(){return~~(this.millisecond()/100)});Or(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Or(0,["SSS",3],0,"millisecond");Or(0,["SSSS",4],0,function(){return this.millisecond()*10});Or(0,["SSSSS",5],0,function(){return this.millisecond()*100});Or(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Or(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Or(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Or(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});wr("S",pR,wme);wr("SS",pR,cs);wr("SSS",pR,Bme);var ju,rEe;for(ju="SSSS";ju.length<=9;ju+="S")wr(ju,kv);function M9e(e,t){t[bf]=Mn(("0."+e)*1e3)}for(ju="S";ju.length<=9;ju+="S")Hn(ju,M9e);rEe=Ov("Milliseconds",!1);Or("z",0,0,"zoneAbbr");Or("zz",0,0,"zoneName");function x9e(){return this._isUTC?"UTC":""}function I9e(){return this._isUTC?"Coordinated Universal Time":""}var er=wC.prototype;er.add=mKe;er.calendar=xKe;er.clone=IKe;er.diff=FKe;er.endOf=UKe;er.format=PKe;er.from=OKe;er.fromNow=zKe;er.to=jKe;er.toNow=YKe;er.get=kHe;er.invalidAt=ZKe;er.isAfter=bKe;er.isBefore=SKe;er.isBetween=RKe;er.isSame=TKe;er.isSameOrAfter=QKe;er.isSameOrBefore=DKe;er.isValid=XKe;er.lang=Wme;er.locale=Jme;er.localeData=Xme;er.max=XGe;er.min=WGe;er.parsingFlags=qKe;er.set=PHe;er.startOf=LKe;er.subtract=EKe;er.toArray=VKe;er.toObject=JKe;er.toDate=KKe;er.toISOString=NKe;er.inspect=kKe;typeof Symbol<"u"&&Symbol.for!=null&&(er[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});er.toJSON=WKe;er.toString=_Ke;er.unix=GKe;er.valueOf=HKe;er.creationData=$Ke;er.eraName=n9e;er.eraNarrow=a9e;er.eraAbbr=i9e;er.eraYear=o9e;er.year=Ime;er.isLeapYear=NHe;er.weekYear=f9e;er.isoWeekYear=h9e;er.quarter=er.quarters=y9e;er.month=Qme;er.daysInMonth=KHe;er.week=er.weeks=eGe;er.isoWeek=er.isoWeeks=tGe;er.weeksInYear=v9e;er.weeksInWeekYear=m9e;er.isoWeeksInYear=g9e;er.isoWeeksInISOWeekYear=p9e;er.date=tEe;er.day=er.days=hGe;er.weekday=gGe;er.isoWeekday=pGe;er.dayOfYear=C9e;er.hour=er.hours=BGe;er.minute=er.minutes=w9e;er.second=er.seconds=B9e;er.millisecond=er.milliseconds=rEe;er.utcOffset=iKe;er.utc=sKe;er.local=lKe;er.parseZone=AKe;er.hasAlignedHourOffset=cKe;er.isDST=uKe;er.isLocal=fKe;er.isUtcOffset=hKe;er.isUtc=Hme;er.isUTC=Hme;er.zoneAbbr=x9e;er.zoneName=I9e;er.dates=Js("dates accessor is deprecated. Use date instead.",tEe);er.months=Js("months accessor is deprecated. Use month instead",Qme);er.years=Js("years accessor is deprecated. Use year instead",Ime);er.zone=Js("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",oKe);er.isDSTShifted=Js("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",dKe);function b9e(e){return oa(e*1e3)}function S9e(){return oa.apply(null,arguments).parseZone()}function nEe(e){return e}var _n=u5.prototype;_n.calendar=fHe;_n.longDateFormat=vHe;_n.invalidDate=EHe;_n.ordinal=wHe;_n.preparse=nEe;_n.postformat=nEe;_n.relativeTime=MHe;_n.pastFuture=xHe;_n.set=uHe;_n.eras=e9e;_n.erasParse=t9e;_n.erasConvertYear=r9e;_n.erasAbbrRegex=l9e;_n.erasNameRegex=s9e;_n.erasNarrowRegex=A9e;_n.months=LHe;_n.monthsShort=UHe;_n.monthsParse=GHe;_n.monthsRegex=JHe;_n.monthsShortRegex=VHe;_n.week=XHe;_n.firstDayOfYear=$He;_n.firstDayOfWeek=ZHe;_n.weekdays=AGe;_n.weekdaysMin=uGe;_n.weekdaysShort=cGe;_n.weekdaysParse=fGe;_n.weekdaysRegex=vGe;_n.weekdaysShortRegex=mGe;_n.weekdaysMinRegex=EGe;_n.isPM=CGe;_n.meridiem=MGe;function Ib(e,t,r,n){var a=Pc(),i=NA().set(n,t);return a[r](i,e)}function aEe(e,t,r){if(Dc(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ib(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=Ib(e,n,r,"month");return a}function R5(e,t,r,n){typeof e=="boolean"?(Dc(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Dc(t)&&(r=t,t=void 0),t=t||"");var a=Pc(),i=e?a._week.dow:0,o,s=[];if(r!=null)return Ib(t,(r+i)%7,n,"day");for(o=0;o<7;o++)s[o]=Ib(t,(o+i)%7,n,"day");return s}function R9e(e,t){return aEe(e,t,"months")}function T9e(e,t){return aEe(e,t,"monthsShort")}function Q9e(e,t,r){return R5(e,t,r,"weekdays")}function D9e(e,t,r){return R5(e,t,r,"weekdaysShort")}function F9e(e,t,r){return R5(e,t,r,"weekdaysMin")}Ku("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=Mn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});fr.lang=Js("moment.lang is deprecated. Use moment.locale instead.",Ku);fr.langData=Js("moment.langData is deprecated. Use moment.localeData instead.",Pc);var ec=Math.abs;function _9e(){var e=this._data;return this._milliseconds=ec(this._milliseconds),this._days=ec(this._days),this._months=ec(this._months),e.milliseconds=ec(e.milliseconds),e.seconds=ec(e.seconds),e.minutes=ec(e.minutes),e.hours=ec(e.hours),e.months=ec(e.months),e.years=ec(e.years),this}function iEe(e,t,r,n){var a=Ol(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function N9e(e,t){return iEe(this,e,t,1)}function k9e(e,t){return iEe(this,e,t,-1)}function rX(e){return e<0?Math.floor(e):Math.ceil(e)}function P9e(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,o,s,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=rX(Oz(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=Ds(e/1e3),n.seconds=a%60,i=Ds(a/60),n.minutes=i%60,o=Ds(i/60),n.hours=o%24,t+=Ds(o/24),l=Ds(oEe(t)),r+=l,t-=rX(Oz(l)),s=Ds(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function oEe(e){return e*4800/146097}function Oz(e){return e*146097/4800}function O9e(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=Ws(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+oEe(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Oz(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function Oc(e){return function(){return this.as(e)}}var sEe=Oc("ms"),z9e=Oc("s"),j9e=Oc("m"),Y9e=Oc("h"),L9e=Oc("d"),U9e=Oc("w"),H9e=Oc("M"),G9e=Oc("Q"),K9e=Oc("y"),V9e=sEe;function J9e(){return Ol(this)}function W9e(e){return e=Ws(e),this.isValid()?this[e+"s"]():NaN}function wh(e){return function(){return this.isValid()?this._data[e]:NaN}}var X9e=wh("milliseconds"),q9e=wh("seconds"),Z9e=wh("minutes"),$9e=wh("hours"),eVe=wh("days"),tVe=wh("months"),rVe=wh("years");function nVe(){return Ds(this.days()/7)}var fc=Math.round,wp={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function aVe(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function iVe(e,t,r,n){var a=Ol(e).abs(),i=fc(a.as("s")),o=fc(a.as("m")),s=fc(a.as("h")),l=fc(a.as("d")),A=fc(a.as("M")),c=fc(a.as("w")),u=fc(a.as("y")),d=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||o<=1&&["m"]||o<r.m&&["mm",o]||s<=1&&["h"]||s<r.h&&["hh",s]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(d=d||c<=1&&["w"]||c<r.w&&["ww",c]),d=d||A<=1&&["M"]||A<r.M&&["MM",A]||u<=1&&["y"]||["yy",u],d[2]=t,d[3]=+e>0,d[4]=n,aVe.apply(null,d)}function oVe(e){return e===void 0?fc:typeof e=="function"?(fc=e,!0):!1}function sVe(e,t){return wp[e]===void 0?!1:t===void 0?wp[e]:(wp[e]=t,e==="s"&&(wp.ss=t-1),!0)}function lVe(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=wp,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},wp,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=iVe(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var Z_=Math.abs;function Bg(e){return(e>0)-(e<0)||+e}function MR(){if(!this.isValid())return this.localeData().invalidDate();var e=Z_(this._milliseconds)/1e3,t=Z_(this._days),r=Z_(this._months),n,a,i,o,s=this.asSeconds(),l,A,c,u;return s?(n=Ds(e/60),a=Ds(n/60),e%=60,n%=60,i=Ds(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",A=Bg(this._months)!==Bg(s)?"-":"",c=Bg(this._days)!==Bg(s)?"-":"",u=Bg(this._milliseconds)!==Bg(s)?"-":"",l+"P"+(i?A+i+"Y":"")+(r?A+r+"M":"")+(t?c+t+"D":"")+(a||n||e?"T":"")+(a?u+a+"H":"")+(n?u+n+"M":"")+(e?u+o+"S":"")):"P0D"}var Rn=wR.prototype;Rn.isValid=tKe;Rn.abs=_9e;Rn.add=N9e;Rn.subtract=k9e;Rn.as=O9e;Rn.asMilliseconds=sEe;Rn.asSeconds=z9e;Rn.asMinutes=j9e;Rn.asHours=Y9e;Rn.asDays=L9e;Rn.asWeeks=U9e;Rn.asMonths=H9e;Rn.asQuarters=G9e;Rn.asYears=K9e;Rn.valueOf=V9e;Rn._bubble=P9e;Rn.clone=J9e;Rn.get=W9e;Rn.milliseconds=X9e;Rn.seconds=q9e;Rn.minutes=Z9e;Rn.hours=$9e;Rn.days=eVe;Rn.weeks=nVe;Rn.months=tVe;Rn.years=rVe;Rn.humanize=lVe;Rn.toISOString=MR;Rn.toString=MR;Rn.toJSON=MR;Rn.locale=Jme;Rn.localeData=Xme;Rn.toIsoString=Js("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",MR);Rn.lang=Wme;Or("X",0,0,"unix");Or("x",0,0,"valueOf");wr("x",mR);wr("X",RHe);Hn("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Hn("x",function(e,t,r){r._d=new Date(Mn(e))});//! moment.js
fr.version="2.30.1";AHe(oa);fr.fn=er;fr.min=qGe;fr.max=ZGe;fr.now=$Ge;fr.utc=NA;fr.unix=b9e;fr.months=R9e;fr.isDate=CC;fr.locale=Ku;fr.invalid=hR;fr.duration=Ol;fr.isMoment=Ql;fr.weekdays=Q9e;fr.parseZone=S9e;fr.localeData=Pc;fr.isDuration=pI;fr.monthsShort=T9e;fr.weekdaysMin=F9e;fr.defineLocale=C5;fr.updateLocale=SGe;fr.locales=RGe;fr.weekdaysShort=D9e;fr.normalizeUnits=Ws;fr.relativeTimeRounding=oVe;fr.relativeTimeThreshold=sVe;fr.calendarFormat=MKe;fr.prototype=er;fr.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var AVe={getNow:function(){return fr()},getFixedDate:function(t){return fr(t,"YYYY-MM-DD")},getEndDate:function(t){var r=t.clone();return r.endOf("month")},getWeekDay:function(t){var r=t.clone().locale("en_US");return r.weekday()+r.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},addYear:function(t,r){var n=t.clone();return n.add(r,"year")},addMonth:function(t,r){var n=t.clone();return n.add(r,"month")},addDate:function(t,r){var n=t.clone();return n.add(r,"day")},setYear:function(t,r){var n=t.clone();return n.year(r)},setMonth:function(t,r){var n=t.clone();return n.month(r)},setDate:function(t,r){var n=t.clone();return n.date(r)},setHour:function(t,r){var n=t.clone();return n.hour(r)},setMinute:function(t,r){var n=t.clone();return n.minute(r)},setSecond:function(t,r){var n=t.clone();return n.second(r)},isAfter:function(t,r){return t.isAfter(r)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){var r=fr().locale(t);return r.localeData().firstDayOfWeek()},getWeekFirstDate:function(t,r){var n=r.clone(),a=n.locale(t);return a.weekday(0)},getWeek:function(t,r){var n=r.clone(),a=n.locale(t);return a.week()},getShortWeekDays:function(t){var r=fr().locale(t);return r.localeData().weekdaysMin()},getShortMonths:function(t){var r=fr().locale(t);return r.localeData().monthsShort()},format:function(t,r,n){var a=r.clone(),i=a.locale(t);return i.format(n)},parse:function(t,r,n){for(var a=[],i=0;i<n.length;i+=1){var o=n[i],s=r;if(o.includes("wo")||o.includes("Wo")){o=o.replace(/wo/g,"w").replace(/Wo/g,"W");var l=o.match(/[-YyMmDdHhSsWwGg]+/g),A=s.match(/[-\d]+/g);l&&A?(o=l.join(""),s=A.join("")):a.push(o.replace(/o/g,""))}var c=fr(s,o,t,!0);if(c.isValid())return c}for(var u=0;u<a.length;u+=1){var d=fr(r,a[u],t,!1);if(d.isValid())return Xue(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),d}return null}}},$_,nX;function cVe(){if(nX)return $_;nX=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return $_=t,$_}var eN,aX;function uVe(){if(aX)return eN;aX=1;var e=cVe(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return eN=r,eN}var tN,iX;function lEe(){if(iX)return tN;iX=1;var e=uVe(),t=ls(),r=$y(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(A){if(typeof A=="number")return A;if(r(A))return n;if(t(A)){var c=typeof A.valueOf=="function"?A.valueOf():A;A=t(c)?c+"":c}if(typeof A!="string")return A===0?A:+A;A=e(A);var u=i.test(A);return u||o.test(A)?s(A.slice(2),u?2:8):a.test(A)?n:+A}return tN=l,tN}var rN,oX;function dVe(){if(oX)return rN;oX=1;var e=lEe(),t=1/0,r=17976931348623157e292;function n(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var i=a<0?-1:1;return i*r}return a===a?a:0}return rN=n,rN}var nN,sX;function fVe(){if(sX)return nN;sX=1;var e=dVe();function t(r){var n=e(r),a=n%1;return n===n?a?n-a:n:0}return nN=t,nN}var os=m.createContext({}),Bw={visibility:"hidden"};function zv(e){var t=e.prefixCls,r=e.prevIcon,n=r===void 0?"‹":r,a=e.nextIcon,i=a===void 0?"›":a,o=e.superPrevIcon,s=o===void 0?"«":o,l=e.superNextIcon,A=l===void 0?"»":l,c=e.onSuperPrev,u=e.onSuperNext,d=e.onPrev,f=e.onNext,h=e.children,g=m.useContext(os),p=g.hideNextBtn,E=g.hidePrevBtn;return m.createElement("div",{className:t},c&&m.createElement("button",{type:"button",onClick:c,tabIndex:-1,className:"".concat(t,"-super-prev-btn"),style:E?Bw:{}},s),d&&m.createElement("button",{type:"button",onClick:d,tabIndex:-1,className:"".concat(t,"-prev-btn"),style:E?Bw:{}},n),m.createElement("div",{className:"".concat(t,"-view")},h),f&&m.createElement("button",{type:"button",onClick:f,tabIndex:-1,className:"".concat(t,"-next-btn"),style:p?Bw:{}},i),u&&m.createElement("button",{type:"button",onClick:u,tabIndex:-1,className:"".concat(t,"-super-next-btn"),style:p?Bw:{}},A))}function hVe(e){var t=e.prefixCls,r=e.generateConfig,n=e.viewDate,a=e.onPrevDecades,i=e.onNextDecades,o=m.useContext(os),s=o.hideHeader;if(s)return null;var l="".concat(t,"-header"),A=r.getYear(n),c=Math.floor(A/Cc)*Cc,u=c+Cc-1;return m.createElement(zv,oe({},e,{prefixCls:l,onSuperPrev:a,onSuperNext:i}),c,"-",u)}function AEe(e,t,r,n,a){var i=e.setHour(t,r);return i=e.setMinute(i,n),i=e.setSecond(i,a),i}function cEe(e,t,r){if(!r)return t;var n=t;return n=e.setHour(n,e.getHour(r)),n=e.setMinute(n,e.getMinute(r)),n=e.setSecond(n,e.getSecond(r)),n}function gVe(e,t,r,n,a,i){var o=Math.floor(e/n)*n;if(o<e)return[o,60-a,60-i];var s=Math.floor(t/a)*a;if(s<t)return[o,s,60-i];var l=Math.floor(r/i)*i;return[o,s,l]}function pVe(e,t){var r=e.getYear(t),n=e.getMonth(t)+1,a=e.getEndDate(e.getFixedDate("".concat(r,"-").concat(n,"-01"))),i=e.getDate(a),o=n<10?"0".concat(n):"".concat(n);return"".concat(r,"-").concat(o,"-").concat(i)}function xC(e){for(var t=e.prefixCls,r=e.disabledDate,n=e.onSelect,a=e.picker,i=e.rowNum,o=e.colNum,s=e.prefixColumn,l=e.rowClassName,A=e.baseDate,c=e.getCellClassName,u=e.getCellText,d=e.getCellNode,f=e.getCellDate,h=e.generateConfig,g=e.titleCell,p=e.headerCells,E=m.useContext(os),y=E.onDateMouseEnter,C=E.onDateMouseLeave,w=E.mode,B="".concat(t,"-cell"),M=[],I=0;I<i;I+=1){for(var S=[],R=void 0,b=function(){var F,N=I*o+Q,k=f(A,N),O=Lz({cellDate:k,mode:w,disabledDate:r,generateConfig:h});Q===0&&(R=k,s&&S.push(s(R)));var P=g&&g(k);S.push(m.createElement("td",{key:Q,title:P,className:He(B,$((F={},X(F,"".concat(B,"-disabled"),O),X(F,"".concat(B,"-start"),u(k)===1||a==="year"&&Number(P)%10===0),X(F,"".concat(B,"-end"),P===pVe(h,k)||a==="year"&&Number(P)%10===9),F),c(k))),onClick:function(){O||n(k)},onMouseEnter:function(){!O&&y&&y(k)},onMouseLeave:function(){!O&&C&&C(k)}},d?d(k):m.createElement("div",{className:"".concat(B,"-inner")},u(k))))},Q=0;Q<o;Q+=1)b();M.push(m.createElement("tr",{key:I,className:l&&l(R)},S))}return m.createElement("div",{className:"".concat(t,"-body")},m.createElement("table",{className:"".concat(t,"-content")},p&&m.createElement("thead",null,m.createElement("tr",null,p)),m.createElement("tbody",null,M)))}var zz=3,lX=4;function vVe(e){var t=El-1,r=e.prefixCls,n=e.viewDate,a=e.generateConfig,i="".concat(r,"-cell"),o=a.getYear(n),s=Math.floor(o/El)*El,l=Math.floor(o/Cc)*Cc,A=l+Cc-1,c=a.setYear(n,l-Math.ceil((zz*lX*El-Cc)/2)),u=function(f){var h,g=a.getYear(f),p=g+t;return h={},X(h,"".concat(i,"-in-view"),l<=g&&p<=A),X(h,"".concat(i,"-selected"),g===s),h};return m.createElement(xC,oe({},e,{rowNum:lX,colNum:zz,baseDate:c,getCellText:function(f){var h=a.getYear(f);return"".concat(h,"-").concat(h+t)},getCellClassName:u,getCellDate:function(f,h){return a.addYear(f,h*El)}}))}var Mw=new Map;function mVe(e,t){var r;function n(){aR(e)?t():r=fn(function(){n()})}return n(),function(){fn.cancel(r)}}function jz(e,t,r){if(Mw.get(e)&&cancelAnimationFrame(Mw.get(e)),r<=0){Mw.set(e,requestAnimationFrame(function(){e.scrollTop=t}));return}var n=t-e.scrollTop,a=n/r*10;Mw.set(e,requestAnimationFrame(function(){e.scrollTop+=a,e.scrollTop!==t&&jz(e,t,r-10)}))}function jv(e,t){var r=t.onLeftRight,n=t.onCtrlLeftRight,a=t.onUpDown,i=t.onPageUpDown,o=t.onEnter,s=e.which,l=e.ctrlKey,A=e.metaKey;switch(s){case Pt.LEFT:if(l||A){if(n)return n(-1),!0}else if(r)return r(-1),!0;break;case Pt.RIGHT:if(l||A){if(n)return n(1),!0}else if(r)return r(1),!0;break;case Pt.UP:if(a)return a(-1),!0;break;case Pt.DOWN:if(a)return a(1),!0;break;case Pt.PAGE_UP:if(i)return i(-1),!0;break;case Pt.PAGE_DOWN:if(i)return i(1),!0;break;case Pt.ENTER:if(o)return o(),!0;break}return!1}function uEe(e,t,r,n){var a=e;if(!a)switch(t){case"time":a=n?"hh:mm:ss a":"HH:mm:ss";break;case"week":a="gggg-wo";break;case"month":a="YYYY-MM";break;case"quarter":a="YYYY-[Q]Q";break;case"year":a="YYYY";break;default:a=r?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return a}function dEe(e,t,r){var n=e==="time"?8:10,a=typeof t=="function"?t(r.getNow()).length:t.length;return Math.max(n,a)+2}var Xm=null,xw=new Set;function EVe(e){return!Xm&&typeof window<"u"&&window.addEventListener&&(Xm=function(r){Nt(xw).forEach(function(n){n(r)})},window.addEventListener("mousedown",Xm)),xw.add(e),function(){xw.delete(e),xw.size===0&&(window.removeEventListener("mousedown",Xm),Xm=null)}}function yVe(e){var t=e.target;if(e.composed&&t.shadowRoot){var r;return((r=e.composedPath)===null||r===void 0?void 0:r.call(e)[0])||t}return t}var CVe=function(t){return t==="month"||t==="date"?"year":t},wVe=function(t){return t==="date"?"month":t},BVe=function(t){return t==="month"||t==="date"?"quarter":t},MVe=function(t){return t==="date"?"week":t},xVe={year:CVe,month:wVe,quarter:BVe,week:MVe,time:null,date:null};function fEe(e,t){return e.some(function(r){return r&&r.contains(t)})}var El=10,Cc=El*10;function IVe(e){var t=e.prefixCls,r=e.onViewDateChange,n=e.generateConfig,a=e.viewDate,i=e.operationRef,o=e.onSelect,s=e.onPanelChange,l="".concat(t,"-decade-panel");i.current={onKeyDown:function(d){return jv(d,{onLeftRight:function(h){o(n.addYear(a,h*El),"key")},onCtrlLeftRight:function(h){o(n.addYear(a,h*Cc),"key")},onUpDown:function(h){o(n.addYear(a,h*El*zz),"key")},onEnter:function(){s("year",a)}})}};var A=function(d){var f=n.addYear(a,d*Cc);r(f),s(null,f)},c=function(d){o(d,"mouse"),s("year",d)};return m.createElement("div",{className:l},m.createElement(hVe,oe({},e,{prefixCls:t,onPrevDecades:function(){A(-1)},onNextDecades:function(){A(1)}})),m.createElement(vVe,oe({},e,{prefixCls:t,onSelect:c})))}var G0=7;function Bh(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function bVe(e,t,r){var n=Bh(t,r);if(typeof n=="boolean")return n;var a=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(r)/10);return a===i}function IC(e,t,r){var n=Bh(t,r);return typeof n=="boolean"?n:e.getYear(t)===e.getYear(r)}function Yz(e,t){var r=Math.floor(e.getMonth(t)/3);return r+1}function hEe(e,t,r){var n=Bh(t,r);return typeof n=="boolean"?n:IC(e,t,r)&&Yz(e,t)===Yz(e,r)}function T5(e,t,r){var n=Bh(t,r);return typeof n=="boolean"?n:IC(e,t,r)&&e.getMonth(t)===e.getMonth(r)}function wc(e,t,r){var n=Bh(t,r);return typeof n=="boolean"?n:e.getYear(t)===e.getYear(r)&&e.getMonth(t)===e.getMonth(r)&&e.getDate(t)===e.getDate(r)}function SVe(e,t,r){var n=Bh(t,r);return typeof n=="boolean"?n:e.getHour(t)===e.getHour(r)&&e.getMinute(t)===e.getMinute(r)&&e.getSecond(t)===e.getSecond(r)}function gEe(e,t,r,n){var a=Bh(r,n);return typeof a=="boolean"?a:IC(e,r,n)&&e.locale.getWeek(t,r)===e.locale.getWeek(t,n)}function iv(e,t,r){return wc(e,t,r)&&SVe(e,t,r)}function Iw(e,t,r,n){return!t||!r||!n?!1:!wc(e,t,n)&&!wc(e,r,n)&&e.isAfter(n,t)&&e.isAfter(r,n)}function RVe(e,t,r){var n=t.locale.getWeekFirstDay(e),a=t.setDate(r,1),i=t.getWeekDay(a),o=t.addDate(a,n-i);return t.getMonth(o)===t.getMonth(r)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function K0(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return r.addYear(e,n*10);case"quarter":case"month":return r.addYear(e,n);default:return r.addMonth(e,n)}}function xi(e,t){var r=t.generateConfig,n=t.locale,a=t.format;return typeof a=="function"?a(e):r.locale.format(n.locale,e,a)}function pEe(e,t){var r=t.generateConfig,n=t.locale,a=t.formatList;return!e||typeof a[0]=="function"?null:r.locale.parse(n.locale,e,a)}function Lz(e){var t=e.cellDate,r=e.mode,n=e.disabledDate,a=e.generateConfig;if(!n)return!1;var i=function(h,g,p){for(var E=g;E<=p;){var y=void 0;switch(h){case"date":{if(y=a.setDate(t,E),!n(y))return!1;break}case"month":{if(y=a.setMonth(t,E),!Lz({cellDate:y,mode:"month",generateConfig:a,disabledDate:n}))return!1;break}case"year":{if(y=a.setYear(t,E),!Lz({cellDate:y,mode:"year",generateConfig:a,disabledDate:n}))return!1;break}}E+=1}return!0};switch(r){case"date":case"week":return n(t);case"month":{var o=1,s=a.getDate(a.getEndDate(t));return i("date",o,s)}case"quarter":{var l=Math.floor(a.getMonth(t)/3)*3,A=l+2;return i("month",l,A)}case"year":return i("month",0,11);case"decade":{var c=a.getYear(t),u=Math.floor(c/El)*El,d=u+El-1;return i("year",u,d)}}}function TVe(e){var t=m.useContext(os),r=t.hideHeader;if(r)return null;var n=e.prefixCls,a=e.generateConfig,i=e.locale,o=e.value,s=e.format,l="".concat(n,"-header");return m.createElement(zv,{prefixCls:l},o?xi(o,{locale:i,format:s,generateConfig:a}):" ")}function QVe(e){var t=e.value,r=e.generateConfig,n=e.disabledMinutes,a=e.disabledSeconds,i=e.minutes,o=e.seconds,s=e.use12Hours,l=function(c,u,d,f){var h=t||r.getNow(),g=Math.max(0,u),p=Math.max(0,d),E=Math.max(0,f),y=n&&n(g);if(y!=null&&y.includes(p)){var C=i.find(function(M){return!y.includes(M.value)});if(C)p=C.value;else return null}var w=a&&a(g,p);if(w!=null&&w.includes(E)){var B=o.find(function(M){return!w.includes(M.value)});if(B)E=B.value;else return null}return h=AEe(r,h,!s||!c?g:g+12,p,E),h};return l}function vEe(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",n=String(e);n.length<t;)n="".concat(r).concat(e);return n}var DVe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r};function mEe(e){return e==null?[]:Array.isArray(e)?e:[e]}function EEe(e){var t={};return Object.keys(e).forEach(function(r){(r.substr(0,5)==="data-"||r.substr(0,5)==="aria-"||r==="role"||r==="name")&&r.substr(0,7)!=="data-__"&&(t[r]=e[r])}),t}function wn(e,t){return e?e[t]:null}function Rs(e,t,r){var n=[wn(e,0),wn(e,1)];return n[r]=typeof t=="function"?t(n[r]):t,!n[0]&&!n[1]?null:n}function bw(e){var t=e.prefixCls,r=e.units,n=e.onSelect,a=e.value,i=e.active,o=e.hideDisabledOptions,s="".concat(t,"-cell"),l=m.useContext(os),A=l.open,c=m.useRef(null),u=m.useRef(new Map),d=m.useRef();return m.useLayoutEffect(function(){var f=u.current.get(a);f&&A!==!1&&jz(c.current,f.offsetTop,120)},[a]),m.useLayoutEffect(function(){if(A){var f=u.current.get(a);f&&(d.current=mVe(f,function(){jz(c.current,f.offsetTop,0)}))}return function(){var h;(h=d.current)===null||h===void 0||h.call(d)}},[A]),m.createElement("ul",{className:He("".concat(t,"-column"),X({},"".concat(t,"-column-active"),i)),ref:c,style:{position:"relative"}},r.map(function(f){var h;return o&&f.disabled?null:m.createElement("li",{key:f.value,ref:function(p){u.current.set(f.value,p)},className:He(s,(h={},X(h,"".concat(s,"-disabled"),f.disabled),X(h,"".concat(s,"-selected"),a===f.value),h)),onClick:function(){f.disabled||n(f.value)}},m.createElement("div",{className:"".concat(s,"-inner")},f.label))}))}function FVe(e,t){if(e.length!==t.length)return!0;for(var r=0;r<e.length;r+=1)if(e[r].disabled!==t[r].disabled)return!0;return!1}function aN(e,t,r,n){for(var a=[],i=r>=1?r|0:1,o=e;o<=t;o+=i)a.push({label:vEe(o,2),value:o,disabled:(n||[]).includes(o)});return a}function _Ve(e){var t=e.generateConfig,r=e.prefixCls,n=e.operationRef,a=e.activeColumnIndex,i=e.value,o=e.showHour,s=e.showMinute,l=e.showSecond,A=e.use12Hours,c=e.hourStep,u=c===void 0?1:c,d=e.minuteStep,f=d===void 0?1:d,h=e.secondStep,g=h===void 0?1:h,p=e.disabledHours,E=e.disabledMinutes,y=e.disabledSeconds,C=e.disabledTime,w=e.hideDisabledOptions,B=e.onSelect,M=[],I="".concat(r,"-content"),S="".concat(r,"-time-panel"),R,b=i?t.getHour(i):-1,Q=b,D=i?t.getMinute(i):-1,F=i?t.getSecond(i):-1,N=t.getNow(),k=m.useMemo(function(){if(C){var ge=C(N);return[ge.disabledHours,ge.disabledMinutes,ge.disabledSeconds]}return[p,E,y]},[p,E,y,C,N]),O=De(k,3),P=O[0],z=O[1],j=O[2],V=aN(0,23,u,P&&P()),L=mh(function(){return V},V,FVe);A&&(R=Q>=12,Q%=12);var K=m.useMemo(function(){if(!A)return[!1,!1];var ge=[!0,!0];return L.forEach(function(Se){var ye=Se.disabled,pe=Se.value;ye||(pe>=12?ge[1]=!1:ge[0]=!1)}),ge},[A,L]),J=De(K,2),Y=J[0],W=J[1],q=m.useMemo(function(){return A?L.filter(R?function(ge){return ge.value>=12}:function(ge){return ge.value<12}).map(function(ge){var Se=ge.value%12,ye=Se===0?"12":vEe(Se,2);return $($({},ge),{},{label:ye,value:Se})}):L},[A,R,L]),ee=aN(0,59,f,z&&z(b)),ae=aN(0,59,g,j&&j(b,D)),ne=QVe({value:i,generateConfig:t,disabledMinutes:z,disabledSeconds:j,minutes:ee,seconds:ae,use12Hours:A});n.current={onUpDown:function(Se){var ye=M[a];if(ye)for(var pe=ye.units.findIndex(function(it){return it.value===ye.value}),Qe=ye.units.length,Ue=1;Ue<Qe;Ue+=1){var tt=ye.units[(pe+Se*Ue+Qe)%Qe];if(tt.disabled!==!0){ye.onSelect(tt.value);break}}}};function ce(ge,Se,ye,pe,Qe){ge!==!1&&M.push({node:m.cloneElement(Se,{prefixCls:S,value:ye,active:a===M.length,onSelect:Qe,units:pe,hideDisabledOptions:w}),onSelect:Qe,value:ye,units:pe})}ce(o,m.createElement(bw,{key:"hour"}),Q,q,function(ge){B(ne(R,ge,D,F),"mouse")}),ce(s,m.createElement(bw,{key:"minute"}),D,ee,function(ge){B(ne(R,Q,ge,F),"mouse")}),ce(l,m.createElement(bw,{key:"second"}),F,ae,function(ge){B(ne(R,Q,D,ge),"mouse")});var ue=-1;return typeof R=="boolean"&&(ue=R?1:0),ce(A===!0,m.createElement(bw,{key:"12hours"}),ue,[{label:"AM",value:0,disabled:Y},{label:"PM",value:1,disabled:W}],function(ge){B(ne(!!ge,Q,D,F),"mouse")}),m.createElement("div",{className:I},M.map(function(ge){var Se=ge.node;return Se}))}var NVe=function(t){return t.filter(function(r){return r!==!1}).length};function yEe(e){var t=e.generateConfig,r=e.format,n=r===void 0?"HH:mm:ss":r,a=e.prefixCls,i=e.active,o=e.operationRef,s=e.showHour,l=e.showMinute,A=e.showSecond,c=e.use12Hours,u=c===void 0?!1:c,d=e.onSelect,f=e.value,h="".concat(a,"-time-panel"),g=m.useRef(),p=m.useState(-1),E=De(p,2),y=E[0],C=E[1],w=NVe([s,l,A,u]);return o.current={onKeyDown:function(M){return jv(M,{onLeftRight:function(S){C((y+S+w)%w)},onUpDown:function(S){y===-1?C(0):g.current&&g.current.onUpDown(S)},onEnter:function(){d(f||t.getNow(),"key"),C(-1)}})},onBlur:function(){C(-1)}},m.createElement("div",{className:He(h,X({},"".concat(h,"-active"),i))},m.createElement(TVe,oe({},e,{format:n,prefixCls:a})),m.createElement(_Ve,oe({},e,{prefixCls:a,activeColumnIndex:y,operationRef:g})))}var Yv=m.createContext({});function xR(e){var t=e.cellPrefixCls,r=e.generateConfig,n=e.rangedValue,a=e.hoverRangedValue,i=e.isInView,o=e.isSameCell,s=e.offsetCell,l=e.today,A=e.value;function c(u){var d,f=s(u,-1),h=s(u,1),g=wn(n,0),p=wn(n,1),E=wn(a,0),y=wn(a,1),C=Iw(r,E,y,u);function w(b){return o(g,b)}function B(b){return o(p,b)}var M=o(E,u),I=o(y,u),S=(C||I)&&(!i(f)||B(f)),R=(C||M)&&(!i(h)||w(h));return d={},X(d,"".concat(t,"-in-view"),i(u)),X(d,"".concat(t,"-in-range"),Iw(r,g,p,u)),X(d,"".concat(t,"-range-start"),w(u)),X(d,"".concat(t,"-range-end"),B(u)),X(d,"".concat(t,"-range-start-single"),w(u)&&!p),X(d,"".concat(t,"-range-end-single"),B(u)&&!g),X(d,"".concat(t,"-range-start-near-hover"),w(u)&&(o(f,E)||Iw(r,E,y,f))),X(d,"".concat(t,"-range-end-near-hover"),B(u)&&(o(h,y)||Iw(r,E,y,h))),X(d,"".concat(t,"-range-hover"),C),X(d,"".concat(t,"-range-hover-start"),M),X(d,"".concat(t,"-range-hover-end"),I),X(d,"".concat(t,"-range-hover-edge-start"),S),X(d,"".concat(t,"-range-hover-edge-end"),R),X(d,"".concat(t,"-range-hover-edge-start-near-range"),S&&o(f,p)),X(d,"".concat(t,"-range-hover-edge-end-near-range"),R&&o(h,g)),X(d,"".concat(t,"-today"),o(l,u)),X(d,"".concat(t,"-selected"),o(A,u)),d}return c}function kVe(e){var t=e.prefixCls,r=e.generateConfig,n=e.prefixColumn,a=e.locale,i=e.rowCount,o=e.viewDate,s=e.value,l=e.dateRender,A=m.useContext(Yv),c=A.rangedValue,u=A.hoverRangedValue,d=RVe(a.locale,r,o),f="".concat(t,"-cell"),h=r.locale.getWeekFirstDay(a.locale),g=r.getNow(),p=[],E=a.shortWeekDays||(r.locale.getShortWeekDays?r.locale.getShortWeekDays(a.locale):[]);n&&p.push(m.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var y=0;y<G0;y+=1)p.push(m.createElement("th",{key:y},E[(y+h)%G0]));var C=xR({cellPrefixCls:f,today:g,value:s,generateConfig:r,rangedValue:n?null:c,hoverRangedValue:n?null:u,isSameCell:function(M,I){return wc(r,M,I)},isInView:function(M){return T5(r,M,o)},offsetCell:function(M,I){return r.addDate(M,I)}}),w=l?function(B){return l(B,g)}:void 0;return m.createElement(xC,oe({},e,{rowNum:i,colNum:G0,baseDate:d,getCellNode:w,getCellText:r.getDate,getCellClassName:C,getCellDate:r.addDate,titleCell:function(M){return xi(M,{locale:a,format:"YYYY-MM-DD",generateConfig:r})},headerCells:p}))}function PVe(e){var t=e.prefixCls,r=e.generateConfig,n=e.locale,a=e.viewDate,i=e.onNextMonth,o=e.onPrevMonth,s=e.onNextYear,l=e.onPrevYear,A=e.onYearClick,c=e.onMonthClick,u=m.useContext(os),d=u.hideHeader;if(d)return null;var f="".concat(t,"-header"),h=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),g=r.getMonth(a),p=m.createElement("button",{type:"button",key:"year",onClick:A,tabIndex:-1,className:"".concat(t,"-year-btn")},xi(a,{locale:n,format:n.yearFormat,generateConfig:r})),E=m.createElement("button",{type:"button",key:"month",onClick:c,tabIndex:-1,className:"".concat(t,"-month-btn")},n.monthFormat?xi(a,{locale:n,format:n.monthFormat,generateConfig:r}):h[g]),y=n.monthBeforeYear?[E,p]:[p,E];return m.createElement(zv,oe({},e,{prefixCls:f,onSuperPrev:l,onPrev:o,onNext:i,onSuperNext:s}),y)}var OVe=6;function Q5(e){var t=e.prefixCls,r=e.panelName,n=r===void 0?"date":r,a=e.keyboardConfig,i=e.active,o=e.operationRef,s=e.generateConfig,l=e.value,A=e.viewDate,c=e.onViewDateChange,u=e.onPanelChange,d=e.onSelect,f="".concat(t,"-").concat(n,"-panel");o.current={onKeyDown:function(E){return jv(E,$({onLeftRight:function(C){d(s.addDate(l||A,C),"key")},onCtrlLeftRight:function(C){d(s.addYear(l||A,C),"key")},onUpDown:function(C){d(s.addDate(l||A,C*G0),"key")},onPageUpDown:function(C){d(s.addMonth(l||A,C),"key")}},a))}};var h=function(E){var y=s.addYear(A,E);c(y),u(null,y)},g=function(E){var y=s.addMonth(A,E);c(y),u(null,y)};return m.createElement("div",{className:He(f,X({},"".concat(f,"-active"),i))},m.createElement(PVe,oe({},e,{prefixCls:t,value:l,viewDate:A,onPrevYear:function(){h(-1)},onNextYear:function(){h(1)},onPrevMonth:function(){g(-1)},onNextMonth:function(){g(1)},onMonthClick:function(){u("month",A)},onYearClick:function(){u("year",A)}})),m.createElement(kVe,oe({},e,{onSelect:function(E){return d(E,"mouse")},prefixCls:t,value:l,viewDate:A,rowCount:OVe})))}var AX=DVe("date","time");function zVe(e){var t=e.prefixCls,r=e.operationRef,n=e.generateConfig,a=e.value,i=e.defaultValue,o=e.disabledTime,s=e.showTime,l=e.onSelect,A="".concat(t,"-datetime-panel"),c=m.useState(null),u=De(c,2),d=u[0],f=u[1],h=m.useRef({}),g=m.useRef({}),p=Xt(s)==="object"?$({},s):{};function E(B){var M=AX.indexOf(d)+B,I=AX[M]||null;return I}var y=function(M){g.current.onBlur&&g.current.onBlur(M),f(null)};r.current={onKeyDown:function(M){if(M.which===Pt.TAB){var I=E(M.shiftKey?-1:1);return f(I),I&&M.preventDefault(),!0}if(d){var S=d==="date"?h:g;return S.current&&S.current.onKeyDown&&S.current.onKeyDown(M),!0}return[Pt.LEFT,Pt.RIGHT,Pt.UP,Pt.DOWN].includes(M.which)?(f("date"),!0):!1},onBlur:y,onClose:y};var C=function(M,I){var S=M;I==="date"&&!a&&p.defaultValue?(S=n.setHour(S,n.getHour(p.defaultValue)),S=n.setMinute(S,n.getMinute(p.defaultValue)),S=n.setSecond(S,n.getSecond(p.defaultValue))):I==="time"&&!a&&i&&(S=n.setYear(S,n.getYear(i)),S=n.setMonth(S,n.getMonth(i)),S=n.setDate(S,n.getDate(i))),l&&l(S,"mouse")},w=o?o(a||null):{};return m.createElement("div",{className:He(A,X({},"".concat(A,"-active"),d))},m.createElement(Q5,oe({},e,{operationRef:h,active:d==="date",onSelect:function(M){C(cEe(n,M,!a&&Xt(s)==="object"?s.defaultValue:null),"date")}})),m.createElement(yEe,oe({},e,{format:void 0},p,w,{disabledTime:null,defaultValue:void 0,operationRef:g,active:d==="time",onSelect:function(M){C(M,"time")}})))}function jVe(e){var t=e.prefixCls,r=e.generateConfig,n=e.locale,a=e.value,i="".concat(t,"-cell"),o=function(c){return m.createElement("td",{key:"week",className:He(i,"".concat(i,"-week"))},r.locale.getWeek(n.locale,c))},s="".concat(t,"-week-panel-row"),l=function(c){return He(s,X({},"".concat(s,"-selected"),gEe(r,n.locale,a,c)))};return m.createElement(Q5,oe({},e,{panelName:"week",prefixColumn:o,rowClassName:l,keyboardConfig:{onLeftRight:null}}))}function YVe(e){var t=e.prefixCls,r=e.generateConfig,n=e.locale,a=e.viewDate,i=e.onNextYear,o=e.onPrevYear,s=e.onYearClick,l=m.useContext(os),A=l.hideHeader;if(A)return null;var c="".concat(t,"-header");return m.createElement(zv,oe({},e,{prefixCls:c,onSuperPrev:o,onSuperNext:i}),m.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-year-btn")},xi(a,{locale:n,format:n.yearFormat,generateConfig:r})))}var D5=3,LVe=4;function UVe(e){var t=e.prefixCls,r=e.locale,n=e.value,a=e.viewDate,i=e.generateConfig,o=e.monthCellRender,s=m.useContext(Yv),l=s.rangedValue,A=s.hoverRangedValue,c="".concat(t,"-cell"),u=xR({cellPrefixCls:c,value:n,generateConfig:i,rangedValue:l,hoverRangedValue:A,isSameCell:function(p,E){return T5(i,p,E)},isInView:function(){return!0},offsetCell:function(p,E){return i.addMonth(p,E)}}),d=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),f=i.setMonth(a,0),h=o?function(g){return o(g,r)}:void 0;return m.createElement(xC,oe({},e,{rowNum:LVe,colNum:D5,baseDate:f,getCellNode:h,getCellText:function(p){return r.monthFormat?xi(p,{locale:r,format:r.monthFormat,generateConfig:i}):d[i.getMonth(p)]},getCellClassName:u,getCellDate:i.addMonth,titleCell:function(p){return xi(p,{locale:r,format:"YYYY-MM",generateConfig:i})}}))}function HVe(e){var t=e.prefixCls,r=e.operationRef,n=e.onViewDateChange,a=e.generateConfig,i=e.value,o=e.viewDate,s=e.onPanelChange,l=e.onSelect,A="".concat(t,"-month-panel");r.current={onKeyDown:function(d){return jv(d,{onLeftRight:function(h){l(a.addMonth(i||o,h),"key")},onCtrlLeftRight:function(h){l(a.addYear(i||o,h),"key")},onUpDown:function(h){l(a.addMonth(i||o,h*D5),"key")},onEnter:function(){s("date",i||o)}})}};var c=function(d){var f=a.addYear(o,d);n(f),s(null,f)};return m.createElement("div",{className:A},m.createElement(YVe,oe({},e,{prefixCls:t,onPrevYear:function(){c(-1)},onNextYear:function(){c(1)},onYearClick:function(){s("year",o)}})),m.createElement(UVe,oe({},e,{prefixCls:t,onSelect:function(d){l(d,"mouse"),s("date",d)}})))}function GVe(e){var t=e.prefixCls,r=e.generateConfig,n=e.locale,a=e.viewDate,i=e.onNextYear,o=e.onPrevYear,s=e.onYearClick,l=m.useContext(os),A=l.hideHeader;if(A)return null;var c="".concat(t,"-header");return m.createElement(zv,oe({},e,{prefixCls:c,onSuperPrev:o,onSuperNext:i}),m.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-year-btn")},xi(a,{locale:n,format:n.yearFormat,generateConfig:r})))}var KVe=4,VVe=1;function JVe(e){var t=e.prefixCls,r=e.locale,n=e.value,a=e.viewDate,i=e.generateConfig,o=m.useContext(Yv),s=o.rangedValue,l=o.hoverRangedValue,A="".concat(t,"-cell"),c=xR({cellPrefixCls:A,value:n,generateConfig:i,rangedValue:s,hoverRangedValue:l,isSameCell:function(f,h){return hEe(i,f,h)},isInView:function(){return!0},offsetCell:function(f,h){return i.addMonth(f,h*3)}}),u=i.setDate(i.setMonth(a,0),1);return m.createElement(xC,oe({},e,{rowNum:VVe,colNum:KVe,baseDate:u,getCellText:function(f){return xi(f,{locale:r,format:r.quarterFormat||"[Q]Q",generateConfig:i})},getCellClassName:c,getCellDate:function(f,h){return i.addMonth(f,h*3)},titleCell:function(f){return xi(f,{locale:r,format:"YYYY-[Q]Q",generateConfig:i})}}))}function WVe(e){var t=e.prefixCls,r=e.operationRef,n=e.onViewDateChange,a=e.generateConfig,i=e.value,o=e.viewDate,s=e.onPanelChange,l=e.onSelect,A="".concat(t,"-quarter-panel");r.current={onKeyDown:function(d){return jv(d,{onLeftRight:function(h){l(a.addMonth(i||o,h*3),"key")},onCtrlLeftRight:function(h){l(a.addYear(i||o,h),"key")},onUpDown:function(h){l(a.addYear(i||o,h),"key")}})}};var c=function(d){var f=a.addYear(o,d);n(f),s(null,f)};return m.createElement("div",{className:A},m.createElement(GVe,oe({},e,{prefixCls:t,onPrevYear:function(){c(-1)},onNextYear:function(){c(1)},onYearClick:function(){s("year",o)}})),m.createElement(JVe,oe({},e,{prefixCls:t,onSelect:function(d){l(d,"mouse")}})))}function XVe(e){var t=e.prefixCls,r=e.generateConfig,n=e.viewDate,a=e.onPrevDecade,i=e.onNextDecade,o=e.onDecadeClick,s=m.useContext(os),l=s.hideHeader;if(l)return null;var A="".concat(t,"-header"),c=r.getYear(n),u=Math.floor(c/Yu)*Yu,d=u+Yu-1;return m.createElement(zv,oe({},e,{prefixCls:A,onSuperPrev:a,onSuperNext:i}),m.createElement("button",{type:"button",onClick:o,className:"".concat(t,"-decade-btn")},u,"-",d))}var Uz=3,cX=4;function qVe(e){var t=e.prefixCls,r=e.value,n=e.viewDate,a=e.locale,i=e.generateConfig,o=m.useContext(Yv),s=o.rangedValue,l=o.hoverRangedValue,A="".concat(t,"-cell"),c=i.getYear(n),u=Math.floor(c/Yu)*Yu,d=u+Yu-1,f=i.setYear(n,u-Math.ceil((Uz*cX-Yu)/2)),h=function(E){var y=i.getYear(E);return u<=y&&y<=d},g=xR({cellPrefixCls:A,value:r,generateConfig:i,rangedValue:s,hoverRangedValue:l,isSameCell:function(E,y){return IC(i,E,y)},isInView:h,offsetCell:function(E,y){return i.addYear(E,y)}});return m.createElement(xC,oe({},e,{rowNum:cX,colNum:Uz,baseDate:f,getCellText:i.getYear,getCellClassName:g,getCellDate:i.addYear,titleCell:function(E){return xi(E,{locale:a,format:"YYYY",generateConfig:i})}}))}var Yu=10;function ZVe(e){var t=e.prefixCls,r=e.operationRef,n=e.onViewDateChange,a=e.generateConfig,i=e.value,o=e.viewDate,s=e.sourceMode,l=e.onSelect,A=e.onPanelChange,c="".concat(t,"-year-panel");r.current={onKeyDown:function(f){return jv(f,{onLeftRight:function(g){l(a.addYear(i||o,g),"key")},onCtrlLeftRight:function(g){l(a.addYear(i||o,g*Yu),"key")},onUpDown:function(g){l(a.addYear(i||o,g*Uz),"key")},onEnter:function(){A(s==="date"?"date":"month",i||o)}})}};var u=function(f){var h=a.addYear(o,f*10);n(h),A(null,h)};return m.createElement("div",{className:c},m.createElement(XVe,oe({},e,{prefixCls:t,onPrevDecade:function(){u(-1)},onNextDecade:function(){u(1)},onDecadeClick:function(){A("decade",o)}})),m.createElement(qVe,oe({},e,{prefixCls:t,onSelect:function(f){A(s==="date"?"date":"month",f),l(f,"mouse")}})))}function CEe(e,t,r){return r?m.createElement("div",{className:"".concat(e,"-footer-extra")},r(t)):null}function wEe(e){var t=e.prefixCls,r=e.rangeList,n=r===void 0?[]:r,a=e.components,i=a===void 0?{}:a,o=e.needConfirmButton,s=e.onNow,l=e.onOk,A=e.okDisabled,c=e.showNow,u=e.locale,d,f;if(n.length){var h=i.rangeItem||"span";d=m.createElement(m.Fragment,null,n.map(function(p){var E=p.label,y=p.onClick,C=p.onMouseEnter,w=p.onMouseLeave;return m.createElement("li",{key:E,className:"".concat(t,"-preset")},m.createElement(h,{onClick:y,onMouseEnter:C,onMouseLeave:w},E))}))}if(o){var g=i.button||"button";s&&!d&&c!==!1&&(d=m.createElement("li",{className:"".concat(t,"-now")},m.createElement("a",{className:"".concat(t,"-now-btn"),onClick:s},u.now))),f=o&&m.createElement("li",{className:"".concat(t,"-ok")},m.createElement(g,{disabled:A,onClick:l},u.ok))}return!d&&!f?null:m.createElement("ul",{className:"".concat(t,"-ranges")},d,f)}var $Ve=["date","month"];function BEe(e){var t,r=e.prefixCls,n=r===void 0?"rc-picker":r,a=e.className,i=e.style,o=e.locale,s=e.generateConfig,l=e.value,A=e.defaultValue,c=e.pickerValue,u=e.defaultPickerValue,d=e.disabledDate,f=e.mode,h=e.picker,g=h===void 0?"date":h,p=e.tabIndex,E=p===void 0?0:p,y=e.showNow,C=e.showTime,w=e.showToday,B=e.renderExtraFooter,M=e.hideHeader,I=e.onSelect,S=e.onChange,R=e.onPanelChange,b=e.onMouseDown,Q=e.onPickerValueChange,D=e.onOk,F=e.components,N=e.direction,k=e.hourStep,O=k===void 0?1:k,P=e.minuteStep,z=P===void 0?1:P,j=e.secondStep,V=j===void 0?1:j,L=g==="date"&&!!C||g==="time",K=24%O===0,J=60%z===0,Y=60%V===0,W=m.useContext(os),q=W.operationRef,ee=W.panelRef,ae=W.onSelect,ne=W.hideRanges,ce=W.defaultOpenValue,ue=m.useContext(Yv),ge=ue.inRange,Se=ue.panelPosition,ye=ue.rangedValue,pe=ue.hoverRangedValue,Qe=m.useRef({}),Ue=m.useRef(!0),tt=Qn(null,{value:l,defaultValue:A,postState:function(Le){return!Le&&ce&&g==="time"?ce:Le}}),it=De(tt,2),we=it[0],ve=it[1],Te=Qn(null,{value:c,defaultValue:u||we,postState:function(Le){var rt=s.getNow();if(!Le)return rt;if(!we&&C){var Qt=Xt(C)==="object"?C.defaultValue:A;return cEe(s,Array.isArray(Le)?Le[0]:Le,Qt||rt)}return Array.isArray(Le)?Le[0]:Le}}),Be=De(Te,2),Ge=Be[0],ht=Be[1],We=function(Le){ht(Le),Q&&Q(Le)},Ke=function(Le){var rt=xVe[g];return rt?rt(Le):Le},Xe=Qn(function(){return g==="time"?"time":Ke("date")},{value:f}),$e=De(Xe,2),pt=$e[0],de=$e[1];m.useEffect(function(){de(g)},[g]);var Fe=m.useState(function(){return pt}),je=De(Fe,2),et=je[0],xe=je[1],Ne=function(Le,rt){var Qt=Ke(Le||pt);xe(pt),de(Qt),R&&(pt!==Qt||iv(s,Ge,Ge))&&R(rt,Qt)},le=function(Le,rt){var Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(pt===g||Qt)&&(ve(Le),I&&I(Le),ae&&ae(Le,rt),S&&!iv(s,Le,we)&&!(d!=null&&d(Le))&&S(Le))},At=function(Le){if($Ve.includes(pt)){var rt,Qt,Dt=pt==="date";switch(Le===Pt.PAGE_UP||Le===Pt.PAGE_DOWN?Qt=Dt?s.addMonth:s.addYear:Qt=Dt?s.addDate:s.addMonth,Le){case Pt.LEFT:case Pt.PAGE_UP:rt=Qt(Ge,-1);break;case Pt.RIGHT:case Pt.PAGE_DOWN:rt=Qt(Ge,1);break;case Pt.UP:case Pt.DOWN:rt=Qt(Ge,Number("".concat(Le===Pt.UP?"-":"").concat(Dt?G0:D5)));break}if(rt)return!(d!=null&&d(rt))}return!0},Bt=function(Le){if(Qe.current&&Qe.current.onKeyDown){var rt=!0,Qt=Le.which;if([Pt.LEFT,Pt.RIGHT,Pt.UP,Pt.DOWN,Pt.PAGE_UP,Pt.PAGE_DOWN,Pt.ENTER].includes(Qt)&&(Le.preventDefault(),Qt!==Pt.ENTER&&E===0&&(rt=At(Qt))),rt)return Qe.current.onKeyDown(Le)}return Sn(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},G=function(Le){Qe.current&&Qe.current.onBlur&&Qe.current.onBlur(Le)};q&&Se!=="right"&&(q.current={onKeyDown:Bt,onClose:function(){Qe.current&&Qe.current.onClose&&Qe.current.onClose()}}),m.useEffect(function(){l&&!Ue.current&&ht(l)},[l]),m.useEffect(function(){Ue.current=!1},[]);var Ee,Ie=$($({},e),{},{operationRef:Qe,prefixCls:n,viewDate:Ge,value:we,onViewDateChange:We,sourceMode:et,onPanelChange:Ne,disabledDate:d});switch(delete Ie.onChange,delete Ie.onSelect,pt){case"decade":Ee=m.createElement(IVe,oe({},Ie,{onSelect:function(Le,rt){We(Le),le(Le,rt)}}));break;case"year":Ee=m.createElement(ZVe,oe({},Ie,{onSelect:function(Le,rt){We(Le),le(Le,rt)}}));break;case"month":Ee=m.createElement(HVe,oe({},Ie,{onSelect:function(Le,rt){We(Le),le(Le,rt)}}));break;case"quarter":Ee=m.createElement(WVe,oe({},Ie,{onSelect:function(Le,rt){We(Le),le(Le,rt)}}));break;case"week":Ee=m.createElement(jVe,oe({},Ie,{onSelect:function(Le,rt){We(Le),le(Le,rt)}}));break;case"time":delete Ie.showTime,Ee=m.createElement(yEe,oe({},Ie,Xt(C)==="object"?C:null,{onSelect:function(Le,rt){We(Le),le(Le,rt)}}));break;default:C?Ee=m.createElement(zVe,oe({},Ie,{onSelect:function(Le,rt){We(Le),le(Le,rt)}})):Ee=m.createElement(Q5,oe({},Ie,{onSelect:function(Le,rt){We(Le),le(Le,rt)}}))}var ie,re,he=function(){var Le=s.getNow(),rt=gVe(s.getHour(Le),s.getMinute(Le),s.getSecond(Le),K?O:1,J?z:1,Y?V:1),Qt=AEe(s,Le,rt[0],rt[1],rt[2]);le(Qt,"submit")};ne||(ie=CEe(n,pt,B),re=wEe({prefixCls:n,components:F,needConfirmButton:L,okDisabled:!we||d&&d(we),locale:o,showNow:y,onNow:L&&he,onOk:function(){we&&(le(we,"submit",!0),D&&D(we))}}));var Pe;if(w&&pt==="date"&&g==="date"&&!C){var be=s.getNow(),Ve="".concat(n,"-today-btn"),lt=d&&d(be);Pe=m.createElement("a",{className:He(Ve,lt&&"".concat(Ve,"-disabled")),"aria-disabled":lt,onClick:function(){lt||le(be,"mouse",!0)}},o.today)}return m.createElement(os.Provider,{value:$($({},W),{},{mode:pt,hideHeader:"hideHeader"in e?M:W.hideHeader,hidePrevBtn:ge&&Se==="right",hideNextBtn:ge&&Se==="left"})},m.createElement("div",{tabIndex:E,className:He("".concat(n,"-panel"),a,(t={},X(t,"".concat(n,"-panel-has-range"),ye&&ye[0]&&ye[1]),X(t,"".concat(n,"-panel-has-range-hover"),pe&&pe[0]&&pe[1]),X(t,"".concat(n,"-panel-rtl"),N==="rtl"),t)),style:i,onKeyDown:Bt,onBlur:G,onMouseDown:b,ref:ee},Ee,ie||re||Pe?m.createElement("div",{className:"".concat(n,"-footer")},ie,re,Pe):null))}var eJe={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function MEe(e){var t,r=e.prefixCls,n=e.popupElement,a=e.popupStyle,i=e.visible,o=e.dropdownClassName,s=e.dropdownAlign,l=e.transitionName,A=e.getPopupContainer,c=e.children,u=e.range,d=e.popupPlacement,f=e.direction,h="".concat(r,"-dropdown"),g=function(){return d!==void 0?d:f==="rtl"?"bottomRight":"bottomLeft"};return m.createElement(mC,{showAction:[],hideAction:[],popupPlacement:g(),builtinPlacements:eJe,prefixCls:h,popupTransitionName:l,popup:n,popupAlign:s,popupVisible:i,popupClassName:He(o,(t={},X(t,"".concat(h,"-range"),u),X(t,"".concat(h,"-rtl"),f==="rtl"),t)),popupStyle:a,getPopupContainer:A},c)}function Hz(e){var t=e.open,r=e.value,n=e.isClickOutside,a=e.triggerOpen,i=e.forwardKeyDown,o=e.onKeyDown,s=e.blurToCancel,l=e.onSubmit,A=e.onCancel,c=e.onFocus,u=e.onBlur,d=e.currentFocusedKey,f=e.key,h=f===void 0?"start":f,g=m.useState(!1),p=De(g,2),E=p[0],y=p[1],C=m.useState(!1),w=De(C,2),B=w[0],M=w[1],I=m.useRef(),S=m.useRef(!1),R=m.useRef(!1),b=m.useRef(!1),Q={onMouseDown:function(){y(!0),a(!0)},onKeyDown:function(F){var N=function(){b.current=!0};if(o(F,N),!b.current){switch(F.which){case Pt.ENTER:{t?l()!==!1&&y(!0):a(!0),F.preventDefault();return}case Pt.TAB:{E&&t&&!F.shiftKey?(y(!1),F.preventDefault()):!E&&t&&!i(F)&&F.shiftKey&&(y(!0),F.preventDefault());return}case Pt.ESC:{y(!0),A();return}}!t&&![Pt.SHIFT].includes(F.which)?a(!0):E||i(F)}},onFocus:function(F){y(!0),M(!0),d&&(d.current=h),clearTimeout(I.current),c&&c(F)},onBlur:function(F){if(S.current||!n(document.activeElement)){S.current=!1;return}s?setTimeout(function(){for(var N=document,k=N.activeElement;k&&k.shadowRoot;)k=k.shadowRoot.activeElement;n(k)&&A()},0):t&&(a(!1),R.current&&l()),M(!1),d?(d.current="",I.current=setTimeout(function(){d.current||u==null||u(F)},100)):u==null||u(F)}};return m.useEffect(function(){R.current=!1},[t]),m.useEffect(function(){R.current=!0},[r]),m.useEffect(function(){return EVe(function(D){var F=yVe(D),N=n(F);t?N?(!B||N)&&a(!1):(S.current=!0,requestAnimationFrame(function(){S.current=!1})):B&&!N&&(S.current=!0)})}),m.useEffect(function(){return function(){return clearTimeout(I.current)}},[]),[Q,{focused:B,typing:E}]}function Gz(e){var t=e.valueTexts,r=e.onTextChange,n=m.useState(""),a=De(n,2),i=a[0],o=a[1],s=m.useRef([]);s.current=t;function l(c){o(c),r(c)}function A(){o(s.current[0])}return m.useEffect(function(){t.every(function(c){return c!==i})&&A()},[t.join("||")]),[i,l,A]}function bb(e,t){var r=t.formatList,n=t.generateConfig,a=t.locale;return mh(function(){if(!e)return[[""],""];for(var i="",o=[],s=0;s<r.length;s+=1){var l=r[s],A=xi(e,{generateConfig:n,locale:a,format:l});o.push(A),s===0&&(i=A)}return[o,i]},[e,r,a],function(i,o){return!iv(n,i[0],o[0])||!rv(i[1],o[1],!0)||!rv(i[2],o[2],!0)})}function Kz(e,t){var r=t.formatList,n=t.generateConfig,a=t.locale,i=m.useState(null),o=De(i,2),s=o[0],l=o[1],A=m.useRef(null);function c(p){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(A.current),E){l(p);return}A.current=requestAnimationFrame(function(){l(p)})}var u=bb(s,{formatList:r,generateConfig:n,locale:a}),d=De(u,2),f=d[1];function h(p){c(p)}function g(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;c(null,p)}return m.useEffect(function(){g(!0)},[e]),m.useEffect(function(){return function(){return cancelAnimationFrame(A.current)}},[]),[f,h,g]}function tJe(e){var t,r=e.prefixCls,n=r===void 0?"rc-picker":r,a=e.id,i=e.tabIndex,o=e.style,s=e.className,l=e.dropdownClassName,A=e.dropdownAlign,c=e.popupStyle,u=e.transitionName,d=e.generateConfig,f=e.locale,h=e.inputReadOnly,g=e.allowClear,p=e.autoFocus,E=e.showTime,y=e.picker,C=y===void 0?"date":y,w=e.format,B=e.use12Hours,M=e.value,I=e.defaultValue,S=e.open,R=e.defaultOpen,b=e.defaultOpenValue,Q=e.suffixIcon,D=e.clearIcon,F=e.disabled,N=e.disabledDate,k=e.placeholder,O=e.getPopupContainer,P=e.pickerRef,z=e.panelRender,j=e.onChange,V=e.onOpenChange,L=e.onFocus,K=e.onBlur,J=e.onMouseDown,Y=e.onMouseUp,W=e.onMouseEnter,q=e.onMouseLeave,ee=e.onContextMenu,ae=e.onClick,ne=e.onKeyDown,ce=e.onSelect,ue=e.direction,ge=e.autoComplete,Se=ge===void 0?"off":ge,ye=e.inputRender,pe=m.useRef(null),Qe=C==="date"&&!!E||C==="time",Ue=mEe(uEe(w,C,E,B)),tt=m.useRef(null),it=m.useRef(null),we=m.useRef(null),ve=Qn(null,{value:M,defaultValue:I}),Te=De(ve,2),Be=Te[0],Ge=Te[1],ht=m.useState(Be),We=De(ht,2),Ke=We[0],Xe=We[1],$e=m.useRef(null),pt=Qn(!1,{value:S,defaultValue:R,postState:function(Mt){return F?!1:Mt},onChange:function(Mt){V&&V(Mt),!Mt&&$e.current&&$e.current.onClose&&$e.current.onClose()}}),de=De(pt,2),Fe=de[0],je=de[1],et=bb(Ke,{formatList:Ue,generateConfig:d,locale:f}),xe=De(et,2),Ne=xe[0],le=xe[1],At=Gz({valueTexts:Ne,onTextChange:function(Mt){var xt=pEe(Mt,{locale:f,formatList:Ue,generateConfig:d});xt&&(!N||!N(xt))&&Xe(xt)}}),Bt=De(At,3),G=Bt[0],Ee=Bt[1],Ie=Bt[2],ie=function(Mt){Xe(Mt),Ge(Mt),j&&!iv(d,Be,Mt)&&j(Mt,Mt?xi(Mt,{generateConfig:d,locale:f,format:Ue[0]}):"")},re=function(Mt){F&&Mt||je(Mt)},he=function(Mt){return Fe&&$e.current&&$e.current.onKeyDown?$e.current.onKeyDown(Mt):(Sn(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Pe=function(){for(var Mt=arguments.length,xt=new Array(Mt),Ft=0;Ft<Mt;Ft++)xt[Ft]=arguments[Ft];ae==null||ae.apply(void 0,xt),pe.current&&(pe.current.focus(),re(!0))},be=Hz({blurToCancel:Qe,open:Fe,value:G,triggerOpen:re,forwardKeyDown:he,isClickOutside:function(Mt){return!fEe([tt.current,it.current,we.current],Mt)},onSubmit:function(){return!Ke||N&&N(Ke)?!1:(ie(Ke),re(!1),Ie(),!0)},onCancel:function(){re(!1),Xe(Be),Ie()},onKeyDown:function(Mt,xt){ne==null||ne(Mt,xt)},onFocus:L,onBlur:K}),Ve=De(be,2),lt=Ve[0],Ze=Ve[1],Le=Ze.focused,rt=Ze.typing;m.useEffect(function(){Fe||(Xe(Be),!Ne.length||Ne[0]===""?Ee(""):le!==G&&Ie())},[Fe,Ne]),m.useEffect(function(){Fe||Ie()},[C]),m.useEffect(function(){Xe(Be)},[Be]),P&&(P.current={focus:function(){pe.current&&pe.current.focus()},blur:function(){pe.current&&pe.current.blur()}});var Qt=Kz(G,{formatList:Ue,generateConfig:d,locale:f}),Dt=De(Qt,3),ur=Dt[0],br=Dt[1],Er=Dt[2],hr=$($({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Wt=m.createElement(BEe,oe({},hr,{generateConfig:d,className:He(X({},"".concat(n,"-panel-focused"),!rt)),value:Ke,locale:f,tabIndex:-1,onSelect:function(Mt){ce==null||ce(Mt),Xe(Mt)},direction:ue,onPanelChange:function(Mt,xt){var Ft=e.onPanelChange;Er(!0),Ft==null||Ft(Mt,xt)}}));z&&(Wt=z(Wt));var $t=m.createElement("div",{className:"".concat(n,"-panel-container"),onMouseDown:function(Mt){Mt.preventDefault()}},Wt),tr;Q&&(tr=m.createElement("span",{className:"".concat(n,"-suffix")},Q));var ir;g&&Be&&!F&&(ir=m.createElement("span",{onMouseDown:function(Mt){Mt.preventDefault(),Mt.stopPropagation()},onMouseUp:function(Mt){Mt.preventDefault(),Mt.stopPropagation(),ie(null),re(!1)},className:"".concat(n,"-clear"),role:"button"},D||m.createElement("span",{className:"".concat(n,"-clear-btn")})));var ar=$($($({id:a,tabIndex:i,disabled:F,readOnly:h||typeof Ue[0]=="function"||!rt,value:ur||G,onChange:function(Mt){Ee(Mt.target.value)},autoFocus:p,placeholder:k,ref:pe,title:G},lt),{},{size:dEe(C,Ue[0],d)},EEe(e)),{},{autoComplete:Se}),rr=ye?ye(ar):m.createElement("input",ar),Yt=function(Mt,xt){(xt==="submit"||xt!=="key"&&!Qe)&&(ie(Mt),re(!1))},Vt=ue==="rtl"?"bottomRight":"bottomLeft";return m.createElement(os.Provider,{value:{operationRef:$e,hideHeader:C==="time",panelRef:tt,onSelect:Yt,open:Fe,defaultOpenValue:b,onDateMouseEnter:br,onDateMouseLeave:Er}},m.createElement(MEe,{visible:Fe,popupElement:$t,popupStyle:c,prefixCls:n,dropdownClassName:l,dropdownAlign:A,getPopupContainer:O,transitionName:u,popupPlacement:Vt,direction:ue},m.createElement("div",{ref:we,className:He(n,s,(t={},X(t,"".concat(n,"-disabled"),F),X(t,"".concat(n,"-focused"),Le),X(t,"".concat(n,"-rtl"),ue==="rtl"),t)),style:o,onMouseDown:J,onMouseUp:Y,onMouseEnter:W,onMouseLeave:q,onContextMenu:ee,onClick:Pe},m.createElement("div",{className:He("".concat(n,"-input"),X({},"".concat(n,"-input-placeholder"),!!ur)),ref:it},rr,tr,ir))))}var rJe=function(e){xn(r,e);var t=sa(r);function r(){var n;sn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.pickerRef=m.createRef(),n.focus=function(){n.pickerRef.current&&n.pickerRef.current.focus()},n.blur=function(){n.pickerRef.current&&n.pickerRef.current.blur()},n}return ln(r,[{key:"render",value:function(){return m.createElement(tJe,oe({},this.props,{pickerRef:this.pickerRef}))}}]),r}(m.Component);function nJe(e,t,r){var n=e.picker,a=e.locale,i=e.selectedValue,o=e.disabledDate,s=e.disabled,l=e.generateConfig,A=wn(i,0),c=wn(i,1);function u(p){return l.locale.getWeekFirstDate(a.locale,p)}function d(p){var E=l.getYear(p),y=l.getMonth(p);return E*100+y}function f(p){var E=l.getYear(p),y=Yz(l,p);return E*10+y}var h=m.useCallback(function(p){if(o&&o(p))return!0;if(s[1]&&c)return!wc(l,p,c)&&l.isAfter(p,c);if(t&&c)switch(n){case"quarter":return f(p)>f(c);case"month":return d(p)>d(c);case"week":return u(p)>u(c);default:return!wc(l,p,c)&&l.isAfter(p,c)}return!1},[o,s[1],c,t]),g=m.useCallback(function(p){if(o&&o(p))return!0;if(s[0]&&A)return!wc(l,p,c)&&l.isAfter(A,p);if(r&&A)switch(n){case"quarter":return f(p)<f(A);case"month":return d(p)<d(A);case"week":return u(p)<u(A);default:return!wc(l,p,A)&&l.isAfter(A,p)}return!1},[o,s[0],A,r]);return[h,g]}function aJe(e,t,r,n){var a=K0(e,r,n,1);function i(o){return o(e,t)?"same":o(a,t)?"closing":"far"}switch(r){case"year":return i(function(o,s){return bVe(n,o,s)});case"quarter":case"month":return i(function(o,s){return IC(n,o,s)});default:return i(function(o,s){return T5(n,o,s)})}}function iJe(e,t,r,n){var a=wn(e,0),i=wn(e,1);if(t===0)return a;if(a&&i){var o=aJe(a,i,r,n);switch(o){case"same":return a;case"closing":return a;default:return K0(i,r,n,-1)}}return a}function oJe(e){var t=e.values,r=e.picker,n=e.defaultDates,a=e.generateConfig,i=m.useState(function(){return[wn(n,0),wn(n,1)]}),o=De(i,2),s=o[0],l=o[1],A=m.useState(null),c=De(A,2),u=c[0],d=c[1],f=wn(t,0),h=wn(t,1);function g(E){return s[E]?s[E]:wn(u,E)||iJe(t,E,r,a)||f||h||a.getNow()}function p(E,y){if(E){var C=Rs(u,E,y);l(Rs(s,null,y)||[null,null]);var w=(y+1)%2;wn(t,w)||(C=Rs(C,E,w)),d(C)}else(f||h)&&d(null)}return[g,p]}function uX(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function dX(e,t,r,n){return!!(e||n&&n[t]||r[(t+1)%2])}function sJe(e){var t,r,n,a=e.prefixCls,i=a===void 0?"rc-picker":a,o=e.id,s=e.style,l=e.className,A=e.popupStyle,c=e.dropdownClassName,u=e.transitionName,d=e.dropdownAlign,f=e.getPopupContainer,h=e.generateConfig,g=e.locale,p=e.placeholder,E=e.autoFocus,y=e.disabled,C=e.format,w=e.picker,B=w===void 0?"date":w,M=e.showTime,I=e.use12Hours,S=e.separator,R=S===void 0?"~":S,b=e.value,Q=e.defaultValue,D=e.defaultPickerValue,F=e.open,N=e.defaultOpen,k=e.disabledDate,O=e.disabledTime,P=e.dateRender,z=e.panelRender,j=e.ranges,V=e.allowEmpty,L=e.allowClear,K=e.suffixIcon,J=e.clearIcon,Y=e.pickerRef,W=e.inputReadOnly,q=e.mode,ee=e.renderExtraFooter,ae=e.onChange,ne=e.onOpenChange,ce=e.onPanelChange,ue=e.onCalendarChange,ge=e.onFocus,Se=e.onBlur,ye=e.onMouseDown,pe=e.onMouseUp,Qe=e.onMouseEnter,Ue=e.onMouseLeave,tt=e.onClick,it=e.onOk,we=e.onKeyDown,ve=e.components,Te=e.order,Be=e.direction,Ge=e.activePickerIndex,ht=e.autoComplete,We=ht===void 0?"off":ht,Ke=B==="date"&&!!M||B==="time",Xe=m.useRef({}),$e=m.useRef(null),pt=m.useRef(null),de=m.useRef(null),Fe=m.useRef(null),je=m.useRef(null),et=m.useRef(null),xe=m.useRef(null),Ne=m.useRef(null),le=mEe(uEe(C,B,M,I)),At=Qn(0,{value:Ge}),Bt=De(At,2),G=Bt[0],Ee=Bt[1],Ie=m.useRef(null),ie=m.useMemo(function(){return Array.isArray(y)?y:[y||!1,y||!1]},[y]),re=Qn(null,{value:b,defaultValue:Q,postState:function(Ar){return B==="time"&&!Te?Ar:uX(Ar,h)}}),he=De(re,2),Pe=he[0],be=he[1],Ve=oJe({values:Pe,picker:B,defaultDates:D,generateConfig:h}),lt=De(Ve,2),Ze=lt[0],Le=lt[1],rt=Qn(Pe,{postState:function(Ar){var Dr=Ar;if(ie[0]&&ie[1])return Dr;for(var hn=0;hn<2;hn+=1)ie[hn]&&!Dr&&!wn(Dr,hn)&&!wn(V,hn)&&(Dr=Rs(Dr,h.getNow(),hn));return Dr}}),Qt=De(rt,2),Dt=Qt[0],ur=Qt[1],br=Qn([B,B],{value:q}),Er=De(br,2),hr=Er[0],Wt=Er[1];m.useEffect(function(){Wt([B,B])},[B]);var $t=function(Ar,Dr){Wt(Ar),ce&&ce(Dr,Ar)},tr=nJe({picker:B,selectedValue:Dt,locale:g,disabled:ie,disabledDate:k,generateConfig:h},Xe.current[1],Xe.current[0]),ir=De(tr,2),ar=ir[0],rr=ir[1],Yt=Qn(!1,{value:F,defaultValue:N,postState:function(Ar){return ie[G]?!1:Ar},onChange:function(Ar){ne&&ne(Ar),!Ar&&Ie.current&&Ie.current.onClose&&Ie.current.onClose()}}),Vt=De(Yt,2),Ut=Vt[0],Mt=Vt[1],xt=Ut&&G===0,Ft=Ut&&G===1,qt=m.useState(0),gr=De(qt,2),Hr=gr[0],zr=gr[1];m.useEffect(function(){!Ut&&$e.current&&zr($e.current.offsetWidth)},[Ut]);var an=m.useRef();function qe(Gr,Ar){if(Gr)clearTimeout(an.current),Xe.current[Ar]=!0,Ee(Ar),Mt(Gr),Ut||Le(null,Ar);else if(G===Ar){Mt(Gr);var Dr=Xe.current;an.current=setTimeout(function(){Dr===Xe.current&&(Xe.current={})})}}function ke(Gr){qe(!0,Gr),setTimeout(function(){var Ar=[et,xe][Gr];Ar.current&&Ar.current.focus()},0)}function ut(Gr,Ar){var Dr=Gr,hn=wn(Dr,0),ya=wn(Dr,1);hn&&ya&&h.isAfter(hn,ya)&&(B==="week"&&!gEe(h,g.locale,hn,ya)||B==="quarter"&&!hEe(h,hn,ya)||B!=="week"&&B!=="quarter"&&B!=="time"&&!wc(h,hn,ya)?(Ar===0?(Dr=[hn,null],ya=null):(hn=null,Dr=[null,ya]),Xe.current=X({},Ar,!0)):(B!=="time"||Te!==!1)&&(Dr=uX(Dr,h))),ur(Dr);var JA=Dr&&Dr[0]?xi(Dr[0],{generateConfig:h,locale:g,format:le[0]}):"",hs=Dr&&Dr[1]?xi(Dr[1],{generateConfig:h,locale:g,format:le[0]}):"";if(ue){var Yo={range:Ar===0?"start":"end"};ue(Dr,[JA,hs],Yo)}var gs=dX(hn,0,ie,V),Zs=dX(ya,1,ie,V),bd=Dr===null||gs&&Zs;bd&&(be(Dr),ae&&(!iv(h,wn(Pe,0),hn)||!iv(h,wn(Pe,1),ya))&&ae(Dr,[JA,hs]));var pi=null;Ar===0&&!ie[1]?pi=1:Ar===1&&!ie[0]&&(pi=0),pi!==null&&pi!==G&&(!Xe.current[pi]||!wn(Dr,pi))&&wn(Dr,Ar)?ke(pi):qe(!1,Ar)}var gt=function(Ar){return Ut&&Ie.current&&Ie.current.onKeyDown?Ie.current.onKeyDown(Ar):(Sn(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},bt={formatList:le,generateConfig:h,locale:g},dt=bb(wn(Dt,0),bt),se=De(dt,2),Ce=se[0],fe=se[1],Me=bb(wn(Dt,1),bt),Re=De(Me,2),Oe=Re[0],st=Re[1],Ct=function(Ar,Dr){var hn=pEe(Ar,{locale:g,formatList:le,generateConfig:h}),ya=Dr===0?ar:rr;hn&&!ya(hn)&&(ur(Rs(Dt,hn,Dr)),Le(hn,Dr))},St=Gz({valueTexts:Ce,onTextChange:function(Ar){return Ct(Ar,0)}}),It=De(St,3),kt=It[0],nr=It[1],Qr=It[2],kr=Gz({valueTexts:Oe,onTextChange:function(Ar){return Ct(Ar,1)}}),or=De(kr,3),vr=or[0],Zt=or[1],gn=or[2],pn=m.useState(null),Yr=De(pn,2),Di=Yr[0],qn=Yr[1],Je=m.useState(null),Et=De(Je,2),vt=Et[0],Ot=Et[1],Br=Kz(kt,{formatList:le,generateConfig:h,locale:g}),dr=De(Br,3),yn=dr[0],kn=dr[1],Aa=dr[2],Wr=Kz(vr,{formatList:le,generateConfig:h,locale:g}),Ea=De(Wr,3),Fi=Ea[0],Ja=Ea[1],ba=Ea[2],gi=function(Ar){Ot(Rs(Dt,Ar,G)),G===0?kn(Ar):Ja(Ar)},Ji=function(){Ot(Rs(Dt,null,G)),G===0?Aa():ba()},Wa=function(Ar,Dr){return{blurToCancel:Ke,forwardKeyDown:gt,onBlur:Se,isClickOutside:function(ya){return!fEe([pt.current,de.current,Fe.current,$e.current],ya)},onFocus:function(ya){Ee(Ar),ge&&ge(ya)},triggerOpen:function(ya){qe(ya,Ar)},onSubmit:function(){if(!Dt||k&&k(Dt[Ar]))return!1;ut(Dt,Ar),Dr()},onCancel:function(){qe(!1,Ar),ur(Pe),Dr()}}},uo=m.useRef(""),KA=Hz($($({},Wa(0,Qr)),{},{open:xt,value:kt,currentFocusedKey:uo,key:"start",onKeyDown:function(Ar,Dr){we==null||we(Ar,Dr)}})),_i=De(KA,2),Gc=_i[0],h1=_i[1],g1=h1.focused,p1=h1.typing,U2=Hz($($({},Wa(1,gn)),{},{open:Ft,value:vr,currentFocusedKey:uo,key:"end",onKeyDown:function(Ar,Dr){we==null||we(Ar,Dr)}})),Md=De(U2,2),H2=Md[0],v1=Md[1],Yh=v1.focused,Lh=v1.typing,Wl=function(Ar){tt&&tt(Ar),!Ut&&!et.current.contains(Ar.target)&&!xe.current.contains(Ar.target)&&(ie[0]?ie[1]||ke(1):ke(0))},lm=function(Ar){ye&&ye(Ar),Ut&&(g1||Yh)&&!et.current.contains(Ar.target)&&!xe.current.contains(Ar.target)&&Ar.preventDefault()},Uh=Pe&&Pe[0]?xi(Pe[0],{locale:g,format:"YYYYMMDDHHmmss",generateConfig:h}):"",m1=Pe&&Pe[1]?xi(Pe[1],{locale:g,format:"YYYYMMDDHHmmss",generateConfig:h}):"";m.useEffect(function(){Ut||(ur(Pe),!Ce.length||Ce[0]===""?nr(""):fe!==kt&&Qr(),!Oe.length||Oe[0]===""?Zt(""):st!==vr&&gn())},[Ut,Ce,Oe]),m.useEffect(function(){ur(Pe)},[Uh,m1]),Y&&(Y.current={focus:function(){et.current&&et.current.focus()},blur:function(){et.current&&et.current.blur(),xe.current&&xe.current.blur()}});var Hh=Object.keys(j||{}),Gh=Hh.map(function(Gr){var Ar=j[Gr],Dr=typeof Ar=="function"?Ar():Ar;return{label:Gr,onClick:function(){ut(Dr,null),qe(!1,G)},onMouseEnter:function(){qn(Dr)},onMouseLeave:function(){qn(null)}}});function Kh(){var Gr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dr=null;Ut&&vt&&vt[0]&&vt[1]&&h.isAfter(vt[1],vt[0])&&(Dr=vt);var hn=M;if(M&&Xt(M)==="object"&&M.defaultValue){var ya=M.defaultValue;hn=$($({},M),{},{defaultValue:wn(ya,G)||void 0})}var JA=null;return P&&(JA=function(Yo,gs){return P(Yo,gs,{range:G?"end":"start"})}),m.createElement(Yv.Provider,{value:{inRange:!0,panelPosition:Gr,rangedValue:Di||Dt,hoverRangedValue:Dr}},m.createElement(BEe,oe({},e,Ar,{dateRender:JA,showTime:hn,mode:hr[G],generateConfig:h,style:void 0,direction:Be,disabledDate:G===0?ar:rr,disabledTime:function(Yo){return O?O(Yo,G===0?"start":"end"):!1},className:He(X({},"".concat(i,"-panel-focused"),G===0?!p1:!Lh)),value:wn(Dt,G),locale:g,tabIndex:-1,onPanelChange:function(Yo,gs){G===0&&Aa(!0),G===1&&ba(!0),$t(Rs(hr,gs,G),Rs(Dt,Yo,G));var Zs=Yo;Gr==="right"&&hr[G]===gs&&(Zs=K0(Zs,gs,h,-1)),Le(Zs,G)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:G===0?wn(Dt,1):wn(Dt,0)})))}var Sa=0,VA=0;if(G&&de.current&&je.current&&pt.current){Sa=de.current.offsetWidth+je.current.offsetWidth;var Am=Ne.current.offsetLeft>Sa?Ne.current.offsetLeft-Sa:Ne.current.offsetLeft;pt.current.offsetWidth&&Ne.current.offsetWidth&&Sa>pt.current.offsetWidth-Ne.current.offsetWidth-(Be==="rtl"?0:Am)&&(VA=Sa)}var xd=Be==="rtl"?{right:Sa}:{left:Sa};function G2(){var Gr,Ar=CEe(i,hr[G],ee),Dr=wEe({prefixCls:i,components:ve,needConfirmButton:Ke,okDisabled:!wn(Dt,G)||k&&k(Dt[G]),locale:g,rangeList:Gh,onOk:function(){wn(Dt,G)&&(ut(Dt,G),it&&it(Dt))}});if(B!=="time"&&!M){var hn=Ze(G),ya=K0(hn,B,h),JA=hr[G],hs=JA===B,Yo=Kh(hs?"left":!1,{pickerValue:hn,onPickerValueChange:function(pi){Le(pi,G)}}),gs=Kh("right",{pickerValue:ya,onPickerValueChange:function(pi){Le(K0(pi,B,h,-1),G)}});Be==="rtl"?Gr=m.createElement(m.Fragment,null,gs,hs&&Yo):Gr=m.createElement(m.Fragment,null,Yo,hs&&gs)}else Gr=Kh();var Zs=m.createElement(m.Fragment,null,m.createElement("div",{className:"".concat(i,"-panels")},Gr),(Ar||Dr)&&m.createElement("div",{className:"".concat(i,"-footer")},Ar,Dr));return z&&(Zs=z(Zs)),m.createElement("div",{className:"".concat(i,"-panel-container"),style:{marginLeft:VA},ref:pt,onMouseDown:function(pi){pi.preventDefault()}},Zs)}var cm=m.createElement("div",{className:He("".concat(i,"-range-wrapper"),"".concat(i,"-").concat(B,"-range-wrapper")),style:{minWidth:Hr}},m.createElement("div",{ref:Ne,className:"".concat(i,"-range-arrow"),style:xd}),G2()),Vh;K&&(Vh=m.createElement("span",{className:"".concat(i,"-suffix")},K));var Kc;L&&(wn(Pe,0)&&!ie[0]||wn(Pe,1)&&!ie[1])&&(Kc=m.createElement("span",{onMouseDown:function(Ar){Ar.preventDefault(),Ar.stopPropagation()},onMouseUp:function(Ar){Ar.preventDefault(),Ar.stopPropagation();var Dr=Pe;ie[0]||(Dr=Rs(Dr,null,0)),ie[1]||(Dr=Rs(Dr,null,1)),ut(Dr,null),qe(!1,G)},className:"".concat(i,"-clear")},J||m.createElement("span",{className:"".concat(i,"-clear-btn")})));var Id={size:dEe(B,le[0],h)},Jh=0,um=0;de.current&&Fe.current&&je.current&&(G===0?um=de.current.offsetWidth:(Jh=Sa,um=Fe.current.offsetWidth));var K2=Be==="rtl"?{right:Jh}:{left:Jh},V2=function(Ar,Dr){var hn=Rs(Dt,Ar,G);Dr==="submit"||Dr!=="key"&&!Ke?(ut(hn,G),G===0?Aa():ba()):ur(hn)};return m.createElement(os.Provider,{value:{operationRef:Ie,hideHeader:B==="time",onDateMouseEnter:gi,onDateMouseLeave:Ji,hideRanges:!0,onSelect:V2,open:Ut}},m.createElement(MEe,{visible:Ut,popupElement:cm,popupStyle:A,prefixCls:i,dropdownClassName:c,dropdownAlign:d,getPopupContainer:f,transitionName:u,range:!0,direction:Be},m.createElement("div",oe({ref:$e,className:He(i,"".concat(i,"-range"),l,(t={},X(t,"".concat(i,"-disabled"),ie[0]&&ie[1]),X(t,"".concat(i,"-focused"),G===0?g1:Yh),X(t,"".concat(i,"-rtl"),Be==="rtl"),t)),style:s,onClick:Wl,onMouseEnter:Qe,onMouseLeave:Ue,onMouseDown:lm,onMouseUp:pe},EEe(e)),m.createElement("div",{className:He("".concat(i,"-input"),(r={},X(r,"".concat(i,"-input-active"),G===0),X(r,"".concat(i,"-input-placeholder"),!!yn),r)),ref:de},m.createElement("input",oe({id:o,disabled:ie[0],readOnly:W||typeof le[0]=="function"||!p1,value:yn||kt,onChange:function(Ar){nr(Ar.target.value)},autoFocus:E,placeholder:wn(p,0)||"",ref:et},Gc,Id,{autoComplete:We}))),m.createElement("div",{className:"".concat(i,"-range-separator"),ref:je},R),m.createElement("div",{className:He("".concat(i,"-input"),(n={},X(n,"".concat(i,"-input-active"),G===1),X(n,"".concat(i,"-input-placeholder"),!!Fi),n)),ref:Fe},m.createElement("input",oe({disabled:ie[1],readOnly:W||typeof le[0]=="function"||!Lh,value:Fi||vr,onChange:function(Ar){Zt(Ar.target.value)},placeholder:wn(p,1)||"",ref:xe},H2,Id,{autoComplete:We}))),m.createElement("div",{className:"".concat(i,"-active-bar"),style:$($({},K2),{},{width:um,position:"absolute"})}),Vh,Kc)))}var lJe=function(e){xn(r,e);var t=sa(r);function r(){var n;sn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.pickerRef=m.createRef(),n.focus=function(){n.pickerRef.current&&n.pickerRef.current.focus()},n.blur=function(){n.pickerRef.current&&n.pickerRef.current.blur()},n}return ln(r,[{key:"render",value:function(){return m.createElement(sJe,oe({},this.props,{pickerRef:this.pickerRef}))}}]),r}(m.Component),xEe=m.createContext(null),AJe=xEe.Provider,IEe=m.createContext(null),cJe=IEe.Provider,uJe=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],Sb=m.forwardRef(function(e,t){var r,n=e.prefixCls,a=n===void 0?"rc-checkbox":n,i=e.className,o=e.style,s=e.checked,l=e.disabled,A=e.defaultChecked,c=A===void 0?!1:A,u=e.type,d=u===void 0?"checkbox":u,f=e.onChange,h=Tr(e,uJe),g=m.useRef(null),p=Qn(c,{value:s}),E=De(p,2),y=E[0],C=E[1];m.useImperativeHandle(t,function(){return{focus:function(){var I;(I=g.current)===null||I===void 0||I.focus()},blur:function(){var I;(I=g.current)===null||I===void 0||I.blur()},input:g.current}});var w=He(a,i,(r={},X(r,"".concat(a,"-checked"),y),X(r,"".concat(a,"-disabled"),l),r)),B=function(I){l||("checked"in e||C(I.target.checked),f==null||f({target:$($({},e),{},{type:d,checked:I.target.checked}),stopPropagation:function(){I.stopPropagation()},preventDefault:function(){I.preventDefault()},nativeEvent:I.nativeEvent}))};return m.createElement("span",{className:w,style:o},m.createElement("input",oe({},h,{className:"".concat(a,"-input"),ref:g,onChange:B,disabled:l,checked:!!y,type:d})),m.createElement("span",{className:"".concat(a,"-inner")}))});const dJe=Object.freeze(Object.defineProperty({__proto__:null,Checkbox:Sb,default:Sb},Symbol.toStringTag,{value:"Module"}));var fJe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},hJe=function(t,r){var n,a,i=m.useContext(xEe),o=m.useContext(IEe),s=m.useContext(Mr),l=s.getPrefixCls,A=s.direction,c=m.useRef(),u=As(r,c),d=m.useContext(Qi),f=d.isFormItemInput,h=function(b){var Q,D;(Q=t.onChange)===null||Q===void 0||Q.call(t,b),(D=i==null?void 0:i.onChange)===null||D===void 0||D.call(i,b)},g=t.prefixCls,p=t.className,E=t.children,y=t.style,C=fJe(t,["prefixCls","className","children","style"]),w=l("radio",g),B=((i==null?void 0:i.optionType)||o)==="button"?"".concat(w,"-button"):w,M=oe({},C),I=m.useContext(Fo);i&&(M.name=i.name,M.onChange=h,M.checked=t.value===i.value,M.disabled=(n=M.disabled)!==null&&n!==void 0?n:i.disabled),M.disabled=(a=M.disabled)!==null&&a!==void 0?a:I;var S=He("".concat(B,"-wrapper"),X(X(X(X({},"".concat(B,"-wrapper-checked"),M.checked),"".concat(B,"-wrapper-disabled"),M.disabled),"".concat(B,"-wrapper-rtl"),A==="rtl"),"".concat(B,"-wrapper-in-form-item"),f),p);return m.createElement("label",{className:S,style:y,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave},m.createElement(Sb,oe({},M,{type:"radio",prefixCls:B,ref:u})),E!==void 0?m.createElement("span",null,E):null)},Rb=m.forwardRef(hJe),gJe=m.forwardRef(function(e,t){var r=m.useContext(Mr),n=r.getPrefixCls,a=r.direction,i=m.useContext(Ti),o=Qn(e.defaultValue,{value:e.value}),s=De(o,2),l=s[0],A=s[1],c=function(O){var P=l,z=O.target.value;"value"in e||A(z);var j=e.onChange;j&&z!==P&&j(O)},u=e.prefixCls,d=e.className,f=d===void 0?"":d,h=e.options,g=e.buttonStyle,p=g===void 0?"outline":g,E=e.disabled,y=e.children,C=e.size,w=e.style,B=e.id,M=e.onMouseEnter,I=e.onMouseLeave,S=e.onFocus,R=e.onBlur,b=n("radio",u),Q="".concat(b,"-group"),D=y;h&&h.length>0&&(D=h.map(function(k){return typeof k=="string"||typeof k=="number"?m.createElement(Rb,{key:k.toString(),prefixCls:b,disabled:E,value:k,checked:l===k},k):m.createElement(Rb,{key:"radio-group-value-options-".concat(k.value),prefixCls:b,disabled:k.disabled||E,value:k.value,checked:l===k.value,style:k.style},k.label)}));var F=C||i,N=He(Q,"".concat(Q,"-").concat(p),X(X({},"".concat(Q,"-").concat(F),F),"".concat(Q,"-rtl"),a==="rtl"),f);return m.createElement("div",oe({},Zpe(e),{className:N,style:w,onMouseEnter:M,onMouseLeave:I,onFocus:S,onBlur:R,id:B,ref:t}),m.createElement(AJe,{value:{onChange:c,value:l,disabled:e.disabled,name:e.name,optionType:e.optionType}},D))});const pJe=m.memo(gJe);var vJe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},mJe=function(t,r){var n=m.useContext(Mr),a=n.getPrefixCls,i=t.prefixCls,o=vJe(t,["prefixCls"]),s=a("radio",i);return m.createElement(cJe,{value:"button"},m.createElement(Rb,oe({prefixCls:s},o,{type:"radio",ref:r})))};const EJe=m.forwardRef(mJe);var Vu=Rb;Vu.Button=EJe;Vu.Group=pJe;Vu.__ANT_RADIO=!0;const IR=m.createContext(null);var bEe=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,i=e.id,o=e.active,s=e.tabKey,l=e.children;return m.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!o,style:a,className:He(r,o&&"".concat(r,"-active"),n),ref:t},l)}),yJe=["key","forceRender","style","className"];function CJe(e){var t=e.id,r=e.activeKey,n=e.animated,a=e.tabPosition,i=e.destroyInactiveTabPane,o=m.useContext(IR),s=o.prefixCls,l=o.tabs,A=n.tabPane,c="".concat(s,"-tabpane");return m.createElement("div",{className:He("".concat(s,"-content-holder"))},m.createElement("div",{className:He("".concat(s,"-content"),"".concat(s,"-content-").concat(a),X({},"".concat(s,"-content-animated"),A))},l.map(function(u){var d=u.key,f=u.forceRender,h=u.style,g=u.className,p=Tr(u,yJe),E=d===r;return m.createElement(Ri,oe({key:d,visible:E,forceRender:f,removeOnLeave:!!i,leavedClassName:"".concat(c,"-hidden")},n.tabPaneMotion),function(y,C){var w=y.style,B=y.className;return m.createElement(bEe,oe({},p,{prefixCls:c,id:t,tabKey:d,animated:A,active:E,style:$($({},h),w),className:He(g,B),ref:C}))})})))}var fX={width:0,height:0,left:0,top:0};function wJe(e,t,r){return m.useMemo(function(){for(var n,a=new Map,i=t.get((n=e[0])===null||n===void 0?void 0:n.key)||fX,o=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,A=t.get(l);if(!A){var c;A=t.get((c=e[s-1])===null||c===void 0?void 0:c.key)||fX}var u=a.get(l)||$({},A);u.right=o-u.left-u.width,a.set(l,u)}return a},[e.map(function(n){return n.key}).join("_"),t,r])}function hX(e,t){var r=m.useRef(e),n=m.useState({}),a=De(n,2),i=a[1];function o(s){var l=typeof s=="function"?s(r.current):s;l!==r.current&&t(l,r.current),r.current=l,i({})}return[r.current,o]}var BJe=.1,gX=.01,mI=20,pX=Math.pow(.995,mI);function MJe(e,t){var r=m.useState(),n=De(r,2),a=n[0],i=n[1],o=m.useState(0),s=De(o,2),l=s[0],A=s[1],c=m.useState(0),u=De(c,2),d=u[0],f=u[1],h=m.useState(),g=De(h,2),p=g[0],E=g[1],y=m.useRef();function C(R){var b=R.touches[0],Q=b.screenX,D=b.screenY;i({x:Q,y:D}),window.clearInterval(y.current)}function w(R){if(a){R.preventDefault();var b=R.touches[0],Q=b.screenX,D=b.screenY;i({x:Q,y:D});var F=Q-a.x,N=D-a.y;t(F,N);var k=Date.now();A(k),f(k-l),E({x:F,y:N})}}function B(){if(a&&(i(null),E(null),p)){var R=p.x/d,b=p.y/d,Q=Math.abs(R),D=Math.abs(b);if(Math.max(Q,D)<BJe)return;var F=R,N=b;y.current=window.setInterval(function(){if(Math.abs(F)<gX&&Math.abs(N)<gX){window.clearInterval(y.current);return}F*=pX,N*=pX,t(F*mI,N*mI)},mI)}}var M=m.useRef();function I(R){var b=R.deltaX,Q=R.deltaY,D=0,F=Math.abs(b),N=Math.abs(Q);F===N?D=M.current==="x"?b:Q:F>N?(D=b,M.current="x"):(D=Q,M.current="y"),t(-D,-D)&&R.preventDefault()}var S=m.useRef(null);S.current={onTouchStart:C,onTouchMove:w,onTouchEnd:B,onWheel:I},m.useEffect(function(){function R(F){S.current.onTouchStart(F)}function b(F){S.current.onTouchMove(F)}function Q(F){S.current.onTouchEnd(F)}function D(F){S.current.onWheel(F)}return document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",Q,{passive:!1}),e.current.addEventListener("touchstart",R,{passive:!1}),e.current.addEventListener("wheel",D),function(){document.removeEventListener("touchmove",b),document.removeEventListener("touchend",Q)}},[])}function SEe(e){var t=m.useState(0),r=De(t,2),n=r[0],a=r[1],i=m.useRef(0),o=m.useRef();return o.current=e,Tp(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[n]),function(){i.current===n&&(i.current+=1,a(i.current))}}function xJe(e){var t=m.useRef([]),r=m.useState({}),n=De(r,2),a=n[1],i=m.useRef(typeof e=="function"?e():e),o=SEe(function(){var l=i.current;t.current.forEach(function(A){l=A(l)}),t.current=[],i.current=l,a({})});function s(l){t.current.push(l),o()}return[i.current,s]}var vX={width:0,height:0,left:0,top:0,right:0};function IJe(e,t,r,n,a,i,o){var s=o.tabs,l=o.tabPosition,A=o.rtl,c,u,d;return["top","bottom"].includes(l)?(c="width",u=A?"right":"left",d=Math.abs(r)):(c="height",u="top",d=-r),m.useMemo(function(){if(!s.length)return[0,0];for(var f=s.length,h=f,g=0;g<f;g+=1){var p=e.get(s[g].key)||vX;if(p[u]+p[c]>d+t){h=g-1;break}}for(var E=0,y=f-1;y>=0;y-=1){var C=e.get(s[y].key)||vX;if(C[u]<d){E=y+1;break}}return[E,h]},[e,t,n,a,i,d,l,s.map(function(f){return f.key}).join("_"),A])}function mX(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var bJe="TABS_DQ";function REe(e){return String(e).replace(/"/g,bJe)}function SJe(e,t){var r=e.prefixCls,n=e.editable,a=e.locale,i=e.style;return!n||n.showAdd===!1?null:m.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:i,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}const TEe=m.forwardRef(SJe);var EX=m.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var i,o={};return Xt(a)==="object"&&!m.isValidElement(a)?o=a:o.right=a,r==="right"&&(i=o.right),r==="left"&&(i=o.left),i?m.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},i):null});function RJe(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,i=e.locale,o=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,A=e.moreTransitionName,c=e.style,u=e.className,d=e.editable,f=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,p=e.onTabClick,E=e.getPopupContainer,y=e.popupClassName,C=m.useState(!1),w=De(C,2),B=w[0],M=w[1],I=m.useState(null),S=De(I,2),R=S[0],b=S[1],Q="".concat(n,"-more-popup"),D="".concat(r,"-dropdown"),F=R!==null?"".concat(Q,"-").concat(R):null,N=i==null?void 0:i.dropdownAriaLabel;function k(K,J){K.preventDefault(),K.stopPropagation(),d.onEdit("remove",{key:J,event:K})}var O=m.createElement(Nv,{onClick:function(J){var Y=J.key,W=J.domEvent;p(Y,W),M(!1)},prefixCls:"".concat(D,"-menu"),id:Q,tabIndex:-1,role:"listbox","aria-activedescendant":F,selectedKeys:[R],"aria-label":N!==void 0?N:"expanded dropdown"},a.map(function(K){var J=d&&K.closable!==!1&&!K.disabled;return m.createElement(yC,{key:K.key,id:"".concat(Q,"-").concat(K.key),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(K.key),disabled:K.disabled},m.createElement("span",null,K.label),J&&m.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(W){W.stopPropagation(),k(W,K.key)}},K.closeIcon||d.removeIcon||"×"))}));function P(K){for(var J=a.filter(function(ae){return!ae.disabled}),Y=J.findIndex(function(ae){return ae.key===R})||0,W=J.length,q=0;q<W;q+=1){Y=(Y+K+W)%W;var ee=J[Y];if(!ee.disabled){b(ee.key);return}}}function z(K){var J=K.which;if(!B){[Pt.DOWN,Pt.SPACE,Pt.ENTER].includes(J)&&(M(!0),K.preventDefault());return}switch(J){case Pt.UP:P(-1),K.preventDefault();break;case Pt.DOWN:P(1),K.preventDefault();break;case Pt.ESC:M(!1);break;case Pt.SPACE:case Pt.ENTER:R!==null&&p(R,K);break}}m.useEffect(function(){var K=document.getElementById(F);K&&K.scrollIntoView&&K.scrollIntoView(!1)},[R]),m.useEffect(function(){B||b(null)},[B]);var j=X({},h?"marginRight":"marginLeft",f);a.length||(j.visibility="hidden",j.order=1);var V=He(X({},"".concat(D,"-rtl"),h)),L=o?null:m.createElement(Ame,{prefixCls:D,overlay:O,trigger:["hover"],visible:a.length?B:!1,transitionName:A,onVisibleChange:M,overlayClassName:He(V,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:E},m.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:j,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Q,id:"".concat(n,"-more"),"aria-expanded":B,onKeyDown:z},l));return m.createElement("div",{className:He("".concat(r,"-nav-operations"),u),style:c,ref:t},L,m.createElement(TEe,{prefixCls:r,locale:i,editable:d}))}const TJe=m.memo(m.forwardRef(RJe),function(e,t){return t.tabMoving});function QJe(e){var t,r=e.prefixCls,n=e.id,a=e.active,i=e.tab,o=i.key,s=i.label,l=i.disabled,A=i.closeIcon,c=e.closable,u=e.renderWrapper,d=e.removeAriaLabel,f=e.editable,h=e.onClick,g=e.onFocus,p=e.style,E="".concat(r,"-tab"),y=f&&c!==!1&&!l;function C(M){l||h(M)}function w(M){M.preventDefault(),M.stopPropagation(),f.onEdit("remove",{key:o,event:M})}var B=m.createElement("div",{key:o,"data-node-key":REe(o),className:He(E,(t={},X(t,"".concat(E,"-with-remove"),y),X(t,"".concat(E,"-active"),a),X(t,"".concat(E,"-disabled"),l),t)),style:p,onClick:C},m.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(o),className:"".concat(E,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(o),"aria-disabled":l,tabIndex:l?null:0,onClick:function(I){I.stopPropagation(),C(I)},onKeyDown:function(I){[Pt.SPACE,Pt.ENTER].includes(I.which)&&(I.preventDefault(),C(I))},onFocus:g},s),y&&m.createElement("button",{type:"button","aria-label":d||"remove",tabIndex:0,className:"".concat(E,"-remove"),onClick:function(I){I.stopPropagation(),w(I)}},A||f.removeIcon||"×"));return u?u(B):B}var Mg=function(t){var r=t.current||{},n=r.offsetWidth,a=n===void 0?0:n,i=r.offsetHeight,o=i===void 0?0:i;return[a,o]},Sw=function(t,r){return t[r?0:1]};function DJe(e,t){var r,n=m.useContext(IR),a=n.prefixCls,i=n.tabs,o=e.className,s=e.style,l=e.id,A=e.animated,c=e.activeKey,u=e.rtl,d=e.extra,f=e.editable,h=e.locale,g=e.tabPosition,p=e.tabBarGutter,E=e.children,y=e.onTabClick,C=e.onTabScroll,w=m.useRef(),B=m.useRef(),M=m.useRef(),I=m.useRef(),S=m.useRef(),R=m.useRef(),b=m.useRef(),Q=g==="top"||g==="bottom",D=hX(0,function(ar,rr){Q&&C&&C({direction:ar>rr?"left":"right"})}),F=De(D,2),N=F[0],k=F[1],O=hX(0,function(ar,rr){!Q&&C&&C({direction:ar>rr?"top":"bottom"})}),P=De(O,2),z=P[0],j=P[1],V=m.useState([0,0]),L=De(V,2),K=L[0],J=L[1],Y=m.useState([0,0]),W=De(Y,2),q=W[0],ee=W[1],ae=m.useState([0,0]),ne=De(ae,2),ce=ne[0],ue=ne[1],ge=m.useState([0,0]),Se=De(ge,2),ye=Se[0],pe=Se[1],Qe=xJe(new Map),Ue=De(Qe,2),tt=Ue[0],it=Ue[1],we=wJe(i,tt,q[0]),ve=Sw(K,Q),Te=Sw(q,Q),Be=Sw(ce,Q),Ge=Sw(ye,Q),ht=ve<Te+Be,We=ht?ve-Ge:ve-Be,Ke="".concat(a,"-nav-operations-hidden"),Xe=0,$e=0;Q&&u?(Xe=0,$e=Math.max(0,Te-We)):(Xe=Math.min(0,We-Te),$e=0);function pt(ar){return ar<Xe?Xe:ar>$e?$e:ar}var de=m.useRef(),Fe=m.useState(),je=De(Fe,2),et=je[0],xe=je[1];function Ne(){xe(Date.now())}function le(){window.clearTimeout(de.current)}MJe(I,function(ar,rr){function Yt(Vt,Ut){Vt(function(Mt){var xt=pt(Mt+Ut);return xt})}return ht?(Q?Yt(k,ar):Yt(j,rr),le(),Ne(),!0):!1}),m.useEffect(function(){return le(),et&&(de.current=window.setTimeout(function(){xe(0)},100)),le},[et]);var At=IJe(we,We,Q?N:z,Te,Be,Ge,$($({},e),{},{tabs:i})),Bt=De(At,2),G=Bt[0],Ee=Bt[1],Ie=Os(function(){var ar=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,rr=we.get(ar)||{width:0,height:0,left:0,right:0,top:0};if(Q){var Yt=N;u?rr.right<N?Yt=rr.right:rr.right+rr.width>N+We&&(Yt=rr.right+rr.width-We):rr.left<-N?Yt=-rr.left:rr.left+rr.width>-N+We&&(Yt=-(rr.left+rr.width-We)),j(0),k(pt(Yt))}else{var Vt=z;rr.top<-z?Vt=-rr.top:rr.top+rr.height>-z+We&&(Vt=-(rr.top+rr.height-We)),k(0),j(pt(Vt))}}),ie={};g==="top"||g==="bottom"?ie[u?"marginRight":"marginLeft"]=p:ie.marginTop=p;var re=i.map(function(ar,rr){var Yt=ar.key;return m.createElement(QJe,{id:l,prefixCls:a,key:Yt,tab:ar,style:rr===0?void 0:ie,closable:ar.closable,editable:f,active:Yt===c,renderWrapper:E,removeAriaLabel:h==null?void 0:h.removeAriaLabel,onClick:function(Ut){y(Yt,Ut)},onFocus:function(){Ie(Yt),Ne(),I.current&&(u||(I.current.scrollLeft=0),I.current.scrollTop=0)}})}),he=function(){return it(function(){var rr=new Map;return i.forEach(function(Yt){var Vt,Ut=Yt.key,Mt=(Vt=S.current)===null||Vt===void 0?void 0:Vt.querySelector('[data-node-key="'.concat(REe(Ut),'"]'));Mt&&rr.set(Ut,{width:Mt.offsetWidth,height:Mt.offsetHeight,left:Mt.offsetLeft,top:Mt.offsetTop})}),rr})};m.useEffect(function(){he()},[i.map(function(ar){return ar.key}).join("_")]);var Pe=SEe(function(){var ar=Mg(w),rr=Mg(B),Yt=Mg(M);J([ar[0]-rr[0]-Yt[0],ar[1]-rr[1]-Yt[1]]);var Vt=Mg(b);ue(Vt);var Ut=Mg(R);pe(Ut);var Mt=Mg(S);ee([Mt[0]-Vt[0],Mt[1]-Vt[1]]),he()}),be=i.slice(0,G),Ve=i.slice(Ee+1),lt=[].concat(Nt(be),Nt(Ve)),Ze=m.useState(),Le=De(Ze,2),rt=Le[0],Qt=Le[1],Dt=we.get(c),ur=m.useRef();function br(){fn.cancel(ur.current)}m.useEffect(function(){var ar={};return Dt&&(Q?(u?ar.right=Dt.right:ar.left=Dt.left,ar.width=Dt.width):(ar.top=Dt.top,ar.height=Dt.height)),br(),ur.current=fn(function(){Qt(ar)}),br},[Dt,Q,u]),m.useEffect(function(){Ie()},[c,Xe,$e,mX(Dt),mX(we),Q]),m.useEffect(function(){Pe()},[u]);var Er=!!lt.length,hr="".concat(a,"-nav-wrap"),Wt,$t,tr,ir;return Q?u?($t=N>0,Wt=N!==$e):(Wt=N<0,$t=N!==Xe):(tr=z<0,ir=z!==Xe),m.createElement(ks,{onResize:Pe},m.createElement("div",{ref:gC(t,w),role:"tablist",className:He("".concat(a,"-nav"),o),style:s,onKeyDown:function(){Ne()}},m.createElement(EX,{ref:B,position:"left",extra:d,prefixCls:a}),m.createElement("div",{className:He(hr,(r={},X(r,"".concat(hr,"-ping-left"),Wt),X(r,"".concat(hr,"-ping-right"),$t),X(r,"".concat(hr,"-ping-top"),tr),X(r,"".concat(hr,"-ping-bottom"),ir),r)),ref:I},m.createElement(ks,{onResize:Pe},m.createElement("div",{ref:S,className:"".concat(a,"-nav-list"),style:{transform:"translate(".concat(N,"px, ").concat(z,"px)"),transition:et?"none":void 0}},re,m.createElement(TEe,{ref:b,prefixCls:a,locale:h,editable:f,style:$($({},re.length===0?void 0:ie),{},{visibility:Er?"hidden":null})}),m.createElement("div",{className:He("".concat(a,"-ink-bar"),X({},"".concat(a,"-ink-bar-animated"),A.inkBar)),style:rt})))),m.createElement(TJe,oe({},e,{removeAriaLabel:h==null?void 0:h.removeAriaLabel,ref:R,prefixCls:a,tabs:lt,className:!Er&&Ke,tabMoving:!!et})),m.createElement(EX,{ref:M,position:"right",extra:d,prefixCls:a})))}const yX=m.forwardRef(DJe);var FJe=["renderTabBar"],_Je=["label","key"];function NJe(e){var t=e.renderTabBar,r=Tr(e,FJe),n=m.useContext(IR),a=n.tabs;if(t){var i=$($({},r),{},{panes:a.map(function(o){var s=o.label,l=o.key,A=Tr(o,_Je);return m.createElement(bEe,oe({tab:s,key:l,tabKey:l},A))})});return t(i,yX)}return m.createElement(yX,r)}function kJe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=$({inkBar:!0},Xt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var PJe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],CX=0;function OJe(e,t){var r,n=e.id,a=e.prefixCls,i=a===void 0?"rc-tabs":a,o=e.className,s=e.items,l=e.direction,A=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,f=e.tabPosition,h=f===void 0?"top":f,g=e.tabBarGutter,p=e.tabBarStyle,E=e.tabBarExtraContent,y=e.locale,C=e.moreIcon,w=e.moreTransitionName,B=e.destroyInactiveTabPane,M=e.renderTabBar,I=e.onChange,S=e.onTabClick,R=e.onTabScroll,b=e.getPopupContainer,Q=e.popupClassName,D=Tr(e,PJe),F=m.useMemo(function(){return(s||[]).filter(function(Qe){return Qe&&Xt(Qe)==="object"&&"key"in Qe})},[s]),N=l==="rtl",k=kJe(d),O=m.useState(!1),P=De(O,2),z=P[0],j=P[1];m.useEffect(function(){j(rR())},[]);var V=Qn(function(){var Qe;return(Qe=F[0])===null||Qe===void 0?void 0:Qe.key},{value:A,defaultValue:c}),L=De(V,2),K=L[0],J=L[1],Y=m.useState(function(){return F.findIndex(function(Qe){return Qe.key===K})}),W=De(Y,2),q=W[0],ee=W[1];m.useEffect(function(){var Qe=F.findIndex(function(tt){return tt.key===K});if(Qe===-1){var Ue;Qe=Math.max(0,Math.min(q,F.length-1)),J((Ue=F[Qe])===null||Ue===void 0?void 0:Ue.key)}ee(Qe)},[F.map(function(Qe){return Qe.key}).join("_"),K,q]);var ae=Qn(null,{value:n}),ne=De(ae,2),ce=ne[0],ue=ne[1];m.useEffect(function(){n||(ue("rc-tabs-".concat(CX)),CX+=1)},[]);function ge(Qe,Ue){S==null||S(Qe,Ue);var tt=Qe!==K;J(Qe),tt&&(I==null||I(Qe))}var Se={id:ce,activeKey:K,animated:k,tabPosition:h,rtl:N,mobile:z},ye,pe=$($({},Se),{},{editable:u,locale:y,moreIcon:C,moreTransitionName:w,tabBarGutter:g,onTabClick:ge,onTabScroll:R,extra:E,style:p,panes:null,getPopupContainer:b,popupClassName:Q});return m.createElement(IR.Provider,{value:{tabs:F,prefixCls:i}},m.createElement("div",oe({ref:t,id:n,className:He(i,"".concat(i,"-").concat(h),(r={},X(r,"".concat(i,"-mobile"),z),X(r,"".concat(i,"-editable"),u),X(r,"".concat(i,"-rtl"),N),r),o)},D),ye,m.createElement(NJe,oe({},pe,{renderTabBar:M})),m.createElement(CJe,oe({destroyInactiveTabPane:B},Se,{animated:k}))))}var zJe=m.forwardRef(OJe),jJe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function YJe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=oe({inkBar:!0},Xt(t)==="object"?t:{}),r.tabPane&&(r.tabPaneMotion=oe(oe({},jJe),{motionName:zs(e,"switch")})),r}var LJe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function UJe(e){return e.filter(function(t){return t})}function HJe(e,t){if(e)return e;var r=ui(t).map(function(n){if(m.isValidElement(n)){var a=n.key,i=n.props,o=i||{},s=o.tab,l=LJe(o,["tab"]),A=oe(oe({key:String(a)},l),{label:s});return A}return null});return UJe(r)}var GJe=function(){return null},KJe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function xa(e){var t=e.type,r=e.className,n=e.size,a=e.onEdit,i=e.hideAdd,o=e.centered,s=e.addIcon,l=e.children,A=e.items,c=e.animated,u=KJe(e,["type","className","size","onEdit","hideAdd","centered","addIcon","children","items","animated"]),d=u.prefixCls,f=u.moreIcon,h=f===void 0?m.createElement(W3,null):f,g=m.useContext(Mr),p=g.getPrefixCls,E=g.direction,y=g.getPopupContainer,C=p("tabs",d),w;t==="editable-card"&&(w={onEdit:function(R,b){var Q=b.key,D=b.event;a==null||a(R==="add"?D:Q,R)},removeIcon:m.createElement(ci,null),addIcon:s||m.createElement(fde,null),showAdd:i!==!0});var B=p(),M=HJe(A,l),I=YJe(C,c);return m.createElement(Ti.Consumer,null,function(S){var R=n!==void 0?n:S;return m.createElement(zJe,oe({direction:E,getPopupContainer:y,moreTransitionName:"".concat(B,"-slide-up")},u,{items:M,className:He(X(X(X(X({},"".concat(C,"-").concat(R),R),"".concat(C,"-card"),["card","editable-card"].includes(t)),"".concat(C,"-editable-card"),t==="editable-card"),"".concat(C,"-centered"),o),r),editable:w,moreIcon:h,prefixCls:C,animated:I}))})}xa.TabPane=GJe;var VJe={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function JJe(e,t,r){var n=r||{},a=n.noTrailing,i=a===void 0?!1:a,o=n.noLeading,s=o===void 0?!1:o,l=n.debounceMode,A=l===void 0?void 0:l,c,u=!1,d=0;function f(){c&&clearTimeout(c)}function h(p){var E=p||{},y=E.upcomingOnly,C=y===void 0?!1:y;f(),u=!C}function g(){for(var p=arguments.length,E=new Array(p),y=0;y<p;y++)E[y]=arguments[y];var C=this,w=Date.now()-d;if(u)return;function B(){d=Date.now(),t.apply(C,E)}function M(){c=void 0}!s&&A&&!c&&B(),f(),A===void 0&&w>e?s?(d=Date.now(),i||(c=setTimeout(A?M:B,e))):B():i!==!0&&(c=setTimeout(A?M:B,A===void 0?e-w:e))}return g.cancel=h,g}function WJe(e,t,r){var n={},a=n.atBegin,i=a===void 0?!1:a;return JJe(e,t,{debounceMode:i!==!1})}function Vz(e,t,r){return Math.max(t,Math.min(e,r))}var Pp=function(t){var r=["onTouchStart","onTouchMove","onWheel"];r.includes(t._reactName)||t.preventDefault()},Tb=function(t){for(var r=[],n=QEe(t),a=DEe(t),i=n;i<a;i++)t.lazyLoadedList.indexOf(i)<0&&r.push(i);return r},QEe=function(t){return t.currentSlide-XJe(t)},DEe=function(t){return t.currentSlide+qJe(t)},XJe=function(t){return t.centerMode?Math.floor(t.slidesToShow/2)+(parseInt(t.centerPadding)>0?1:0):0},qJe=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},Jz=function(t){return t&&t.offsetWidth||0},F5=function(t){return t&&t.offsetHeight||0},FEe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,a,i,o;return n=t.startX-t.curX,a=t.startY-t.curY,i=Math.atan2(a,n),o=Math.round(i*180/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":r===!0?o>=35&&o<=135?"up":"down":"vertical"},bR=function(t){var r=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(r=!1),r},iN=function(t,r){var n={};return r.forEach(function(a){return n[a]=t[a]}),n},ZJe=function(t){var r=te.Children.count(t.children),n=t.listRef,a=Math.ceil(Jz(n)),i=t.trackRef&&t.trackRef.node,o=Math.ceil(Jz(i)),s;if(t.vertical)s=a;else{var l=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(l*=a/100),s=Math.ceil((a-l)/t.slidesToShow)}var A=n&&F5(n.querySelector('[data-index="0"]')),c=A*t.slidesToShow,u=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(u=r-1-t.initialSlide);var d=t.lazyLoadedList||[],f=Tb($($({},t),{},{currentSlide:u,lazyLoadedList:d}));d=d.concat(f);var h={slideCount:r,slideWidth:s,listWidth:a,trackWidth:o,currentSlide:u,slideHeight:A,listHeight:c,lazyLoadedList:d};return t.autoplaying===null&&t.autoplay&&(h.autoplaying="playing"),h},$Je=function(t){var r=t.waitForAnimate,n=t.animating,a=t.fade,i=t.infinite,o=t.index,s=t.slideCount,l=t.lazyLoad,A=t.currentSlide,c=t.centerMode,u=t.slidesToScroll,d=t.slidesToShow,f=t.useCSS,h=t.lazyLoadedList;if(r&&n)return{};var g=o,p,E,y,C={},w={},B=i?o:Vz(o,0,s-1);if(a){if(!i&&(o<0||o>=s))return{};o<0?g=o+s:o>=s&&(g=o-s),l&&h.indexOf(g)<0&&(h=h.concat(g)),C={animating:!0,currentSlide:g,lazyLoadedList:h,targetSlide:g},w={animating:!1,targetSlide:g}}else p=g,g<0?(p=g+s,i?s%u!==0&&(p=s-s%u):p=0):!bR(t)&&g>A?g=p=A:c&&g>=s?(g=i?s:s-1,p=i?0:s-1):g>=s&&(p=g-s,i?s%u!==0&&(p=0):p=s-d),!i&&g+d>=s&&(p=s-d),E=My($($({},t),{},{slideIndex:g})),y=My($($({},t),{},{slideIndex:p})),i||(E===y&&(g=p),E=y),l&&(h=h.concat(Tb($($({},t),{},{currentSlide:g})))),f?(C={animating:!0,currentSlide:p,trackStyle:_Ee($($({},t),{},{left:E})),lazyLoadedList:h,targetSlide:B},w={animating:!1,currentSlide:p,trackStyle:By($($({},t),{},{left:y})),swipeLeft:null,targetSlide:B}):C={currentSlide:p,trackStyle:By($($({},t),{},{left:y})),lazyLoadedList:h,targetSlide:B};return{state:C,nextState:w}},eWe=function(t,r){var n,a,i,o,s,l=t.slidesToScroll,A=t.slidesToShow,c=t.slideCount,u=t.currentSlide,d=t.targetSlide,f=t.lazyLoad,h=t.infinite;if(o=c%l!==0,n=o?0:(c-u)%l,r.message==="previous")i=n===0?l:A-n,s=u-i,f&&!h&&(a=u-i,s=a===-1?c-1:a),h||(s=d-l);else if(r.message==="next")i=n===0?l:n,s=u+i,f&&!h&&(s=(u+l)%c+n),h||(s=d+l);else if(r.message==="dots")s=r.index*r.slidesToScroll;else if(r.message==="children"){if(s=r.index,h){var g=sWe($($({},t),{},{targetSlide:s}));s>r.currentSlide&&g==="left"?s=s-c:s<r.currentSlide&&g==="right"&&(s=s+c)}}else r.message==="index"&&(s=Number(r.index));return s},tWe=function(t,r,n){return t.target.tagName.match("TEXTAREA|INPUT|SELECT")||!r?"":t.keyCode===37?n?"next":"previous":t.keyCode===39?n?"previous":"next":""},rWe=function(t,r,n){return t.target.tagName==="IMG"&&Pp(t),!r||!n&&t.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:t.touches?t.touches[0].pageX:t.clientX,startY:t.touches?t.touches[0].pageY:t.clientY,curX:t.touches?t.touches[0].pageX:t.clientX,curY:t.touches?t.touches[0].pageY:t.clientY}}},nWe=function(t,r){var n=r.scrolling,a=r.animating,i=r.vertical,o=r.swipeToSlide,s=r.verticalSwiping,l=r.rtl,A=r.currentSlide,c=r.edgeFriction,u=r.edgeDragged,d=r.onEdge,f=r.swiped,h=r.swiping,g=r.slideCount,p=r.slidesToScroll,E=r.infinite,y=r.touchObject,C=r.swipeEvent,w=r.listHeight,B=r.listWidth;if(!n){if(a)return Pp(t);i&&o&&s&&Pp(t);var M,I={},S=My(r);y.curX=t.touches?t.touches[0].pageX:t.clientX,y.curY=t.touches?t.touches[0].pageY:t.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));var R=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!s&&!h&&R>10)return{scrolling:!0};s&&(y.swipeLength=R);var b=(l?-1:1)*(y.curX>y.startX?1:-1);s&&(b=y.curY>y.startY?1:-1);var Q=Math.ceil(g/p),D=FEe(r.touchObject,s),F=y.swipeLength;return E||(A===0&&(D==="right"||D==="down")||A+1>=Q&&(D==="left"||D==="up")||!bR(r)&&(D==="left"||D==="up"))&&(F=y.swipeLength*c,u===!1&&d&&(d(D),I.edgeDragged=!0)),!f&&C&&(C(D),I.swiped=!0),i?M=S+F*(w/B)*b:l?M=S-F*b:M=S+F*b,s&&(M=S+F*b),I=$($({},I),{},{touchObject:y,swipeLeft:M,trackStyle:By($($({},r),{},{left:M}))}),Math.abs(y.curX-y.startX)<Math.abs(y.curY-y.startY)*.8||y.swipeLength>10&&(I.swiping=!0,Pp(t)),I}},aWe=function(t,r){var n=r.dragging,a=r.swipe,i=r.touchObject,o=r.listWidth,s=r.touchThreshold,l=r.verticalSwiping,A=r.listHeight,c=r.swipeToSlide,u=r.scrolling,d=r.onSwipe,f=r.targetSlide,h=r.currentSlide,g=r.infinite;if(!n)return a&&Pp(t),{};var p=l?A/s:o/s,E=FEe(i,l),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!i.swipeLength)return y;if(i.swipeLength>p){Pp(t),d&&d(E);var C,w,B=g?h:f;switch(E){case"left":case"up":w=B+BX(r),C=c?wX(r,w):w,y.currentDirection=0;break;case"right":case"down":w=B-BX(r),C=c?wX(r,w):w,y.currentDirection=1;break;default:C=B}y.triggerSlideHandler=C}else{var M=My(r);y.trackStyle=_Ee($($({},r),{},{left:M}))}return y},iWe=function(t){for(var r=t.infinite?t.slideCount*2:t.slideCount,n=t.infinite?t.slidesToShow*-1:0,a=t.infinite?t.slidesToShow*-1:0,i=[];n<r;)i.push(n),n=a+t.slidesToScroll,a+=Math.min(t.slidesToScroll,t.slidesToShow);return i},wX=function(t,r){var n=iWe(t),a=0;if(r>n[n.length-1])r=n[n.length-1];else for(var i in n){if(r<n[i]){r=a;break}a=n[i]}return r},BX=function(t){var r=t.centerMode?t.slideWidth*Math.floor(t.slidesToShow/2):0;if(t.swipeToSlide){var n,a=t.listRef,i=a.querySelectorAll&&a.querySelectorAll(".slick-slide")||[];if(Array.from(i).every(function(l){if(t.vertical){if(l.offsetTop+F5(l)/2>t.swipeLeft*-1)return n=l,!1}else if(l.offsetLeft-r+Jz(l)/2>t.swipeLeft*-1)return n=l,!1;return!0}),!n)return 0;var o=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,s=Math.abs(n.dataset.index-o)||1;return s}else return t.slidesToScroll},_5=function(t,r){return r.reduce(function(n,a){return n&&t.hasOwnProperty(a)},!0)?null:console.error("Keys Missing:",t)},By=function(t){_5(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r,n,a=t.slideCount+2*t.slidesToShow;t.vertical?n=a*t.slideHeight:r=oWe(t)*t.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var o=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",s=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";i=$($({},i),{},{WebkitTransform:o,transform:s,msTransform:l})}else t.vertical?i.top=t.left:i.left=t.left;return t.fade&&(i={opacity:1}),r&&(i.width=r),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?i.marginTop=t.left+"px":i.marginLeft=t.left+"px"),i},_Ee=function(t){_5(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var r=By(t);return t.useTransform?(r.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,r.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?r.transition="top "+t.speed+"ms "+t.cssEase:r.transition="left "+t.speed+"ms "+t.cssEase,r},My=function(t){if(t.unslick)return 0;_5(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var r=t.slideIndex,n=t.trackRef,a=t.infinite,i=t.centerMode,o=t.slideCount,s=t.slidesToShow,l=t.slidesToScroll,A=t.slideWidth,c=t.listWidth,u=t.variableWidth,d=t.slideHeight,f=t.fade,h=t.vertical,g=0,p,E,y=0;if(f||t.slideCount===1)return 0;var C=0;if(a?(C=-Bc(t),o%l!==0&&r+l>o&&(C=-(r>o?s-(r-o):o%l)),i&&(C+=parseInt(s/2))):(o%l!==0&&r+l>o&&(C=s-o%l),i&&(C=parseInt(s/2))),g=C*A,y=C*d,h?p=r*d*-1+y:p=r*A*-1+g,u===!0){var w,B=n&&n.node;if(w=r+Bc(t),E=B&&B.childNodes[w],p=E?E.offsetLeft*-1:0,i===!0){w=a?r+Bc(t):r,E=B&&B.children[w],p=0;for(var M=0;M<w;M++)p-=B&&B.children[M]&&B.children[M].offsetWidth;p-=parseInt(t.centerPadding),p+=E&&(c-E.offsetWidth)/2}}return p},Bc=function(t){return t.unslick||!t.infinite?0:t.variableWidth?t.slideCount:t.slidesToShow+(t.centerMode?1:0)},EI=function(t){return t.unslick||!t.infinite?0:t.slideCount},oWe=function(t){return t.slideCount===1?1:Bc(t)+t.slideCount+EI(t)},sWe=function(t){return t.targetSlide>t.currentSlide?t.targetSlide>t.currentSlide+lWe(t)?"left":"right":t.targetSlide<t.currentSlide-AWe(t)?"right":"left"},lWe=function(t){var r=t.slidesToShow,n=t.centerMode,a=t.rtl,i=t.centerPadding;if(n){var o=(r-1)/2+1;return parseInt(i)>0&&(o+=1),a&&r%2===0&&(o+=1),o}return a?0:r-1},AWe=function(t){var r=t.slidesToShow,n=t.centerMode,a=t.rtl,i=t.centerPadding;if(n){var o=(r-1)/2+1;return parseInt(i)>0&&(o+=1),!a&&r%2===0&&(o+=1),o}return a?r-1:0},MX=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},oN=function(t){var r,n,a,i,o;t.rtl?o=t.slideCount-1-t.index:o=t.index,a=o<0||o>=t.slideCount,t.centerMode?(i=Math.floor(t.slidesToShow/2),n=(o-t.currentSlide)%t.slideCount===0,o>t.currentSlide-i-1&&o<=t.currentSlide+i&&(r=!0)):r=t.currentSlide<=o&&o<t.currentSlide+t.slidesToShow;var s;t.targetSlide<0?s=t.targetSlide+t.slideCount:t.targetSlide>=t.slideCount?s=t.targetSlide-t.slideCount:s=t.targetSlide;var l=o===s;return{"slick-slide":!0,"slick-active":r,"slick-center":n,"slick-cloned":a,"slick-current":l}},cWe=function(t){var r={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(r.width=t.slideWidth),t.fade&&(r.position="relative",t.vertical&&t.slideHeight?r.top=-t.index*parseInt(t.slideHeight):r.left=-t.index*parseInt(t.slideWidth),r.opacity=t.currentSlide===t.index?1:0,t.useCSS&&(r.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),r},sN=function(t,r){return t.key+"-"+r},uWe=function(t){var r,n=[],a=[],i=[],o=te.Children.count(t.children),s=QEe(t),l=DEe(t);return te.Children.forEach(t.children,function(A,c){var u,d={message:"children",index:c,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(c)>=0?u=A:u=te.createElement("div",null);var f=cWe($($({},t),{},{index:c})),h=u.props.className||"",g=oN($($({},t),{},{index:c}));if(n.push(te.cloneElement(u,{key:"original"+sN(u,c),"data-index":c,className:He(g,h),tabIndex:"-1","aria-hidden":!g["slick-active"],style:$($({outline:"none"},u.props.style||{}),f),onClick:function(y){u.props&&u.props.onClick&&u.props.onClick(y),t.focusOnSelect&&t.focusOnSelect(d)}})),t.infinite&&t.fade===!1){var p=o-c;p<=Bc(t)&&o!==t.slidesToShow&&(r=-p,r>=s&&(u=A),g=oN($($({},t),{},{index:r})),a.push(te.cloneElement(u,{key:"precloned"+sN(u,r),"data-index":r,tabIndex:"-1",className:He(g,h),"aria-hidden":!g["slick-active"],style:$($({},u.props.style||{}),f),onClick:function(y){u.props&&u.props.onClick&&u.props.onClick(y),t.focusOnSelect&&t.focusOnSelect(d)}}))),o!==t.slidesToShow&&(r=o+c,r<l&&(u=A),g=oN($($({},t),{},{index:r})),i.push(te.cloneElement(u,{key:"postcloned"+sN(u,r),"data-index":r,tabIndex:"-1",className:He(g,h),"aria-hidden":!g["slick-active"],style:$($({},u.props.style||{}),f),onClick:function(y){u.props&&u.props.onClick&&u.props.onClick(y),t.focusOnSelect&&t.focusOnSelect(d)}})))}}),t.rtl?a.concat(n,i).reverse():a.concat(n,i)},dWe=function(e){xn(r,e);var t=sa(r);function r(){var n;sn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),X(at(n),"node",null),X(at(n),"handleRef",function(s){n.node=s}),n}return ln(r,[{key:"render",value:function(){var a=uWe(this.props),i=this.props,o=i.onMouseEnter,s=i.onMouseOver,l=i.onMouseLeave,A={onMouseEnter:o,onMouseOver:s,onMouseLeave:l};return te.createElement("div",oe({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},A),a)}}]),r}(te.PureComponent),fWe=function(t){var r;return t.infinite?r=Math.ceil(t.slideCount/t.slidesToScroll):r=Math.ceil((t.slideCount-t.slidesToShow)/t.slidesToScroll)+1,r},hWe=function(e){xn(r,e);var t=sa(r);function r(){return sn(this,r),t.apply(this,arguments)}return ln(r,[{key:"clickHandler",value:function(a,i){i.preventDefault(),this.props.clickHandler(a)}},{key:"render",value:function(){for(var a=this.props,i=a.onMouseEnter,o=a.onMouseOver,s=a.onMouseLeave,l=a.infinite,A=a.slidesToScroll,c=a.slidesToShow,u=a.slideCount,d=a.currentSlide,f=fWe({slideCount:u,slidesToScroll:A,slidesToShow:c,infinite:l}),h={onMouseEnter:i,onMouseOver:o,onMouseLeave:s},g=[],p=0;p<f;p++){var E=(p+1)*A-1,y=l?E:Vz(E,0,u-1),C=y-(A-1),w=l?C:Vz(C,0,u-1),B=He({"slick-active":l?d>=w&&d<=y:d===w}),M={message:"dots",index:p,slidesToScroll:A,currentSlide:d},I=this.clickHandler.bind(this,M);g=g.concat(te.createElement("li",{key:p,className:B},te.cloneElement(this.props.customPaging(p),{onClick:I})))}return te.cloneElement(this.props.appendDots(g),$({className:this.props.dotsClass},h))}}]),r}(te.PureComponent),gWe=function(e){xn(r,e);var t=sa(r);function r(){return sn(this,r),t.apply(this,arguments)}return ln(r,[{key:"clickHandler",value:function(a,i){i&&i.preventDefault(),this.props.clickHandler(a,i)}},{key:"render",value:function(){var a={"slick-arrow":!0,"slick-prev":!0},i=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(a["slick-disabled"]=!0,i=null);var o={key:"0","data-role":"none",className:He(a),style:{display:"block"},onClick:i},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},l;return this.props.prevArrow?l=te.cloneElement(this.props.prevArrow,$($({},o),s)):l=te.createElement("button",oe({key:"0",type:"button"},o)," ","Previous"),l}}]),r}(te.PureComponent),pWe=function(e){xn(r,e);var t=sa(r);function r(){return sn(this,r),t.apply(this,arguments)}return ln(r,[{key:"clickHandler",value:function(a,i){i&&i.preventDefault(),this.props.clickHandler(a,i)}},{key:"render",value:function(){var a={"slick-arrow":!0,"slick-next":!0},i=this.clickHandler.bind(this,{message:"next"});bR(this.props)||(a["slick-disabled"]=!0,i=null);var o={key:"1","data-role":"none",className:He(a),style:{display:"block"},onClick:i},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},l;return this.props.nextArrow?l=te.cloneElement(this.props.nextArrow,$($({},o),s)):l=te.createElement("button",oe({key:"1",type:"button"},o)," ","Next"),l}}]),r}(te.PureComponent),vWe=["animating"],mWe=function(e){xn(r,e);var t=sa(r);function r(n){var a;sn(this,r),a=t.call(this,n),X(at(a),"listRefHandler",function(o){return a.list=o}),X(at(a),"trackRefHandler",function(o){return a.track=o}),X(at(a),"adaptHeight",function(){if(a.props.adaptiveHeight&&a.list){var o=a.list.querySelector('[data-index="'.concat(a.state.currentSlide,'"]'));a.list.style.height=F5(o)+"px"}}),X(at(a),"componentDidMount",function(){if(a.props.onInit&&a.props.onInit(),a.props.lazyLoad){var o=Tb($($({},a.props),a.state));o.length>0&&(a.setState(function(l){return{lazyLoadedList:l.lazyLoadedList.concat(o)}}),a.props.onLazyLoad&&a.props.onLazyLoad(o))}var s=$({listRef:a.list,trackRef:a.track},a.props);a.updateState(s,!0,function(){a.adaptHeight(),a.props.autoplay&&a.autoPlay("playing")}),a.props.lazyLoad==="progressive"&&(a.lazyLoadTimer=setInterval(a.progressiveLazyLoad,1e3)),a.ro=new bY(function(){a.state.animating?(a.onWindowResized(!1),a.callbackTimers.push(setTimeout(function(){return a.onWindowResized()},a.props.speed))):a.onWindowResized()}),a.ro.observe(a.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(l){l.onfocus=a.props.pauseOnFocus?a.onSlideFocus:null,l.onblur=a.props.pauseOnFocus?a.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",a.onWindowResized):window.attachEvent("onresize",a.onWindowResized)}),X(at(a),"componentWillUnmount",function(){a.animationEndCallback&&clearTimeout(a.animationEndCallback),a.lazyLoadTimer&&clearInterval(a.lazyLoadTimer),a.callbackTimers.length&&(a.callbackTimers.forEach(function(o){return clearTimeout(o)}),a.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",a.onWindowResized):window.detachEvent("onresize",a.onWindowResized),a.autoplayTimer&&clearInterval(a.autoplayTimer),a.ro.disconnect()}),X(at(a),"componentDidUpdate",function(o){if(a.checkImagesLoad(),a.props.onReInit&&a.props.onReInit(),a.props.lazyLoad){var s=Tb($($({},a.props),a.state));s.length>0&&(a.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(s)}}),a.props.onLazyLoad&&a.props.onLazyLoad(s))}a.adaptHeight();var l=$($({listRef:a.list,trackRef:a.track},a.props),a.state),A=a.didPropsChange(o);A&&a.updateState(l,A,function(){a.state.currentSlide>=te.Children.count(a.props.children)&&a.changeSlide({message:"index",index:te.Children.count(a.props.children)-a.props.slidesToShow,currentSlide:a.state.currentSlide}),(o.autoplay!==a.props.autoplay||o.autoplaySpeed!==a.props.autoplaySpeed)&&(!o.autoplay&&a.props.autoplay?a.autoPlay("playing"):a.props.autoplay?a.autoPlay("update"):a.pause("paused"))})}),X(at(a),"onWindowResized",function(o){a.debouncedResize&&a.debouncedResize.cancel(),a.debouncedResize=WJe(50,function(){return a.resizeWindow(o)}),a.debouncedResize()}),X(at(a),"resizeWindow",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=!!(a.track&&a.track.node);if(s){var l=$($({listRef:a.list,trackRef:a.track},a.props),a.state);a.updateState(l,o,function(){a.props.autoplay?a.autoPlay("update"):a.pause("paused")}),a.setState({animating:!1}),clearTimeout(a.animationEndCallback),delete a.animationEndCallback}}),X(at(a),"updateState",function(o,s,l){var A=ZJe(o);o=$($($({},o),A),{},{slideIndex:A.currentSlide});var c=My(o);o=$($({},o),{},{left:c});var u=By(o);(s||te.Children.count(a.props.children)!==te.Children.count(o.children))&&(A.trackStyle=u),a.setState(A,l)}),X(at(a),"ssrInit",function(){if(a.props.variableWidth){var o=0,s=0,l=[],A=Bc($($($({},a.props),a.state),{},{slideCount:a.props.children.length})),c=EI($($($({},a.props),a.state),{},{slideCount:a.props.children.length}));a.props.children.forEach(function(I){l.push(I.props.style.width),o+=I.props.style.width});for(var u=0;u<A;u++)s+=l[l.length-1-u],o+=l[l.length-1-u];for(var d=0;d<c;d++)o+=l[d];for(var f=0;f<a.state.currentSlide;f++)s+=l[f];var h={width:o+"px",left:-s+"px"};if(a.props.centerMode){var g="".concat(l[a.state.currentSlide],"px");h.left="calc(".concat(h.left," + (100% - ").concat(g,") / 2 ) ")}return{trackStyle:h}}var p=te.Children.count(a.props.children),E=$($($({},a.props),a.state),{},{slideCount:p}),y=Bc(E)+EI(E)+p,C=100/a.props.slidesToShow*y,w=100/y,B=-w*(Bc(E)+a.state.currentSlide)*C/100;a.props.centerMode&&(B+=(100-w*C/100)/2);var M={width:C+"%",left:B+"%"};return{slideWidth:w+"%",trackStyle:M}}),X(at(a),"checkImagesLoad",function(){var o=a.list&&a.list.querySelectorAll&&a.list.querySelectorAll(".slick-slide img")||[],s=o.length,l=0;Array.prototype.forEach.call(o,function(A){var c=function(){return++l&&l>=s&&a.onWindowResized()};if(!A.onclick)A.onclick=function(){return A.parentNode.focus()};else{var u=A.onclick;A.onclick=function(d){u(d),A.parentNode.focus()}}A.onload||(a.props.lazyLoad?A.onload=function(){a.adaptHeight(),a.callbackTimers.push(setTimeout(a.onWindowResized,a.props.speed))}:(A.onload=c,A.onerror=function(){c(),a.props.onLazyLoadError&&a.props.onLazyLoadError()}))})}),X(at(a),"progressiveLazyLoad",function(){for(var o=[],s=$($({},a.props),a.state),l=a.state.currentSlide;l<a.state.slideCount+EI(s);l++)if(a.state.lazyLoadedList.indexOf(l)<0){o.push(l);break}for(var A=a.state.currentSlide-1;A>=-Bc(s);A--)if(a.state.lazyLoadedList.indexOf(A)<0){o.push(A);break}o.length>0?(a.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(o)}}),a.props.onLazyLoad&&a.props.onLazyLoad(o)):a.lazyLoadTimer&&(clearInterval(a.lazyLoadTimer),delete a.lazyLoadTimer)}),X(at(a),"slideHandler",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=a.props,A=l.asNavFor,c=l.beforeChange,u=l.onLazyLoad,d=l.speed,f=l.afterChange,h=a.state.currentSlide,g=$Je($($($({index:o},a.props),a.state),{},{trackRef:a.track,useCSS:a.props.useCSS&&!s})),p=g.state,E=g.nextState;if(p){c&&c(h,p.currentSlide);var y=p.lazyLoadedList.filter(function(C){return a.state.lazyLoadedList.indexOf(C)<0});u&&y.length>0&&u(y),!a.props.waitForAnimate&&a.animationEndCallback&&(clearTimeout(a.animationEndCallback),f&&f(h),delete a.animationEndCallback),a.setState(p,function(){A&&a.asNavForIndex!==o&&(a.asNavForIndex=o,A.innerSlider.slideHandler(o)),E&&(a.animationEndCallback=setTimeout(function(){var C=E.animating,w=Tr(E,vWe);a.setState(w,function(){a.callbackTimers.push(setTimeout(function(){return a.setState({animating:C})},10)),f&&f(p.currentSlide),delete a.animationEndCallback})},d))})}}),X(at(a),"changeSlide",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=$($({},a.props),a.state),A=eWe(l,o);if(!(A!==0&&!A)&&(s===!0?a.slideHandler(A,s):a.slideHandler(A),a.props.autoplay&&a.autoPlay("update"),a.props.focusOnSelect)){var c=a.list.querySelectorAll(".slick-current");c[0]&&c[0].focus()}}),X(at(a),"clickHandler",function(o){a.clickable===!1&&(o.stopPropagation(),o.preventDefault()),a.clickable=!0}),X(at(a),"keyHandler",function(o){var s=tWe(o,a.props.accessibility,a.props.rtl);s!==""&&a.changeSlide({message:s})}),X(at(a),"selectHandler",function(o){a.changeSlide(o)}),X(at(a),"disableBodyScroll",function(){var o=function(l){l=l||window.event,l.preventDefault&&l.preventDefault(),l.returnValue=!1};window.ontouchmove=o}),X(at(a),"enableBodyScroll",function(){window.ontouchmove=null}),X(at(a),"swipeStart",function(o){a.props.verticalSwiping&&a.disableBodyScroll();var s=rWe(o,a.props.swipe,a.props.draggable);s!==""&&a.setState(s)}),X(at(a),"swipeMove",function(o){var s=nWe(o,$($($({},a.props),a.state),{},{trackRef:a.track,listRef:a.list,slideIndex:a.state.currentSlide}));s&&(s.swiping&&(a.clickable=!1),a.setState(s))}),X(at(a),"swipeEnd",function(o){var s=aWe(o,$($($({},a.props),a.state),{},{trackRef:a.track,listRef:a.list,slideIndex:a.state.currentSlide}));if(s){var l=s.triggerSlideHandler;delete s.triggerSlideHandler,a.setState(s),l!==void 0&&(a.slideHandler(l),a.props.verticalSwiping&&a.enableBodyScroll())}}),X(at(a),"touchEnd",function(o){a.swipeEnd(o),a.clickable=!0}),X(at(a),"slickPrev",function(){a.callbackTimers.push(setTimeout(function(){return a.changeSlide({message:"previous"})},0))}),X(at(a),"slickNext",function(){a.callbackTimers.push(setTimeout(function(){return a.changeSlide({message:"next"})},0))}),X(at(a),"slickGoTo",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o=Number(o),isNaN(o))return"";a.callbackTimers.push(setTimeout(function(){return a.changeSlide({message:"index",index:o,currentSlide:a.state.currentSlide},s)},0))}),X(at(a),"play",function(){var o;if(a.props.rtl)o=a.state.currentSlide-a.props.slidesToScroll;else if(bR($($({},a.props),a.state)))o=a.state.currentSlide+a.props.slidesToScroll;else return!1;a.slideHandler(o)}),X(at(a),"autoPlay",function(o){a.autoplayTimer&&clearInterval(a.autoplayTimer);var s=a.state.autoplaying;if(o==="update"){if(s==="hovered"||s==="focused"||s==="paused")return}else if(o==="leave"){if(s==="paused"||s==="focused")return}else if(o==="blur"&&(s==="paused"||s==="hovered"))return;a.autoplayTimer=setInterval(a.play,a.props.autoplaySpeed+50),a.setState({autoplaying:"playing"})}),X(at(a),"pause",function(o){a.autoplayTimer&&(clearInterval(a.autoplayTimer),a.autoplayTimer=null);var s=a.state.autoplaying;o==="paused"?a.setState({autoplaying:"paused"}):o==="focused"?(s==="hovered"||s==="playing")&&a.setState({autoplaying:"focused"}):s==="playing"&&a.setState({autoplaying:"hovered"})}),X(at(a),"onDotsOver",function(){return a.props.autoplay&&a.pause("hovered")}),X(at(a),"onDotsLeave",function(){return a.props.autoplay&&a.state.autoplaying==="hovered"&&a.autoPlay("leave")}),X(at(a),"onTrackOver",function(){return a.props.autoplay&&a.pause("hovered")}),X(at(a),"onTrackLeave",function(){return a.props.autoplay&&a.state.autoplaying==="hovered"&&a.autoPlay("leave")}),X(at(a),"onSlideFocus",function(){return a.props.autoplay&&a.pause("focused")}),X(at(a),"onSlideBlur",function(){return a.props.autoplay&&a.state.autoplaying==="focused"&&a.autoPlay("blur")}),X(at(a),"render",function(){var o=He("slick-slider",a.props.className,{"slick-vertical":a.props.vertical,"slick-initialized":!0}),s=$($({},a.props),a.state),l=iN(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),A=a.props.pauseOnHover;l=$($({},l),{},{onMouseEnter:A?a.onTrackOver:null,onMouseLeave:A?a.onTrackLeave:null,onMouseOver:A?a.onTrackOver:null,focusOnSelect:a.props.focusOnSelect&&a.clickable?a.selectHandler:null});var c;if(a.props.dots===!0&&a.state.slideCount>=a.props.slidesToShow){var u=iN(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),d=a.props.pauseOnDotsHover;u=$($({},u),{},{clickHandler:a.changeSlide,onMouseEnter:d?a.onDotsLeave:null,onMouseOver:d?a.onDotsOver:null,onMouseLeave:d?a.onDotsLeave:null}),c=te.createElement(hWe,u)}var f,h,g=iN(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);g.clickHandler=a.changeSlide,a.props.arrows&&(f=te.createElement(gWe,g),h=te.createElement(pWe,g));var p=null;a.props.vertical&&(p={height:a.state.listHeight});var E=null;a.props.vertical===!1?a.props.centerMode===!0&&(E={padding:"0px "+a.props.centerPadding}):a.props.centerMode===!0&&(E={padding:a.props.centerPadding+" 0px"});var y=$($({},p),E),C=a.props.touchMove,w={className:"slick-list",style:y,onClick:a.clickHandler,onMouseDown:C?a.swipeStart:null,onMouseMove:a.state.dragging&&C?a.swipeMove:null,onMouseUp:C?a.swipeEnd:null,onMouseLeave:a.state.dragging&&C?a.swipeEnd:null,onTouchStart:C?a.swipeStart:null,onTouchMove:a.state.dragging&&C?a.swipeMove:null,onTouchEnd:C?a.touchEnd:null,onTouchCancel:a.state.dragging&&C?a.swipeEnd:null,onKeyDown:a.props.accessibility?a.keyHandler:null},B={className:o,dir:"ltr",style:a.props.style};return a.props.unslick&&(w={className:"slick-list"},B={className:o,style:a.props.style}),te.createElement("div",B,a.props.unslick?"":f,te.createElement("div",oe({ref:a.listRefHandler},w),te.createElement(dWe,oe({ref:a.trackRefHandler},l),a.props.children)),a.props.unslick?"":h,a.props.unslick?"":c)}),a.list=null,a.track=null,a.state=$($({},VJe),{},{currentSlide:a.props.initialSlide,slideCount:te.Children.count(a.props.children)}),a.callbackTimers=[],a.clickable=!0,a.debouncedResize=null;var i=a.ssrInit();return a.state=$($({},a.state),i),a}return ln(r,[{key:"didPropsChange",value:function(a){for(var i=!1,o=0,s=Object.keys(this.props);o<s.length;o++){var l=s[o];if(!a.hasOwnProperty(l)){i=!0;break}if(!(Xt(a[l])==="object"||typeof a[l]=="function")&&a[l]!==this.props[l]){i=!0;break}}return i||te.Children.count(this.props.children)!==te.Children.count(a.children)}}]),r}(te.Component),lN,xX;function EWe(){if(xX)return lN;xX=1;var e=function(t){return t.replace(/[A-Z]/g,function(r){return"-"+r.toLowerCase()}).toLowerCase()};return lN=e,lN}var AN,IX;function yWe(){if(IX)return AN;IX=1;var e=EWe(),t=function(a){var i=/[height|width]$/;return i.test(a)},r=function(a){var i="",o=Object.keys(a);return o.forEach(function(s,l){var A=a[s];s=e(s),t(s)&&typeof A=="number"&&(A=A+"px"),A===!0?i+=s:A===!1?i+="not "+s:i+="("+s+": "+A+")",l<o.length-1&&(i+=" and ")}),i},n=function(a){var i="";return typeof a=="string"?a:a instanceof Array?(a.forEach(function(o,s){i+=r(o),s<a.length-1&&(i+=", ")}),i):r(a)};return AN=n,AN}var CWe=yWe();const cN=Nr(CWe);var bX={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(t){return te.createElement("ul",{style:{display:"block"}},t)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(t){return te.createElement("button",null,t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},wWe=function(e){xn(r,e);var t=sa(r);function r(n){var a;return sn(this,r),a=t.call(this,n),X(at(a),"innerSliderRefHandler",function(i){return a.innerSlider=i}),X(at(a),"slickPrev",function(){return a.innerSlider.slickPrev()}),X(at(a),"slickNext",function(){return a.innerSlider.slickNext()}),X(at(a),"slickGoTo",function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return a.innerSlider.slickGoTo(i,o)}),X(at(a),"slickPause",function(){return a.innerSlider.pause("paused")}),X(at(a),"slickPlay",function(){return a.innerSlider.autoPlay("play")}),a.state={breakpoint:null},a._responsiveMediaHandlers=[],a}return ln(r,[{key:"media",value:function(a,i){var o=window.matchMedia(a),s=function(A){var c=A.matches;c&&i()};o.addListener(s),s(o),this._responsiveMediaHandlers.push({mql:o,query:a,listener:s})}},{key:"componentDidMount",value:function(){var a=this;if(this.props.responsive){var i=this.props.responsive.map(function(s){return s.breakpoint});i.sort(function(s,l){return s-l}),i.forEach(function(s,l){var A;l===0?A=cN({minWidth:0,maxWidth:s}):A=cN({minWidth:i[l-1]+1,maxWidth:s}),MX()&&a.media(A,function(){a.setState({breakpoint:s})})});var o=cN({minWidth:i.slice(-1)[0]});MX()&&this.media(o,function(){a.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(a){a.mql.removeListener(a.listener)})}},{key:"render",value:function(){var a=this,i,o;this.state.breakpoint?(o=this.props.responsive.filter(function(p){return p.breakpoint===a.state.breakpoint}),i=o[0].settings==="unslick"?"unslick":$($($({},bX),this.props),o[0].settings)):i=$($({},bX),this.props),i.centerMode&&(i.slidesToScroll>1,i.slidesToScroll=1),i.fade&&(i.slidesToShow>1,i.slidesToScroll>1,i.slidesToShow=1,i.slidesToScroll=1);var s=te.Children.toArray(this.props.children);s=s.filter(function(p){return typeof p=="string"?!!p.trim():!!p}),i.variableWidth&&(i.rows>1||i.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),i.variableWidth=!1);for(var l=[],A=null,c=0;c<s.length;c+=i.rows*i.slidesPerRow){for(var u=[],d=c;d<c+i.rows*i.slidesPerRow;d+=i.slidesPerRow){for(var f=[],h=d;h<d+i.slidesPerRow&&(i.variableWidth&&s[h].props.style&&(A=s[h].props.style.width),!(h>=s.length));h+=1)f.push(te.cloneElement(s[h],{key:100*c+10*d+h,tabIndex:-1,style:{width:"".concat(100/i.slidesPerRow,"%"),display:"inline-block"}}));u.push(te.createElement("div",{key:10*c+d},f))}i.variableWidth?l.push(te.createElement("div",{key:c,style:{width:A}},u)):l.push(te.createElement("div",{key:c},u))}if(i==="unslick"){var g="regular slider "+(this.props.className||"");return te.createElement("div",{className:g},s)}else l.length<=i.slidesToShow&&(i.unslick=!0);return te.createElement(mWe,oe({style:this.props.style,ref:this.innerSliderRefHandler},i),l)}}]),r}(te.Component),BWe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},MWe=m.forwardRef(function(e,t){var r=e.dots,n=r===void 0?!0:r,a=e.arrows,i=a===void 0?!1:a,o=e.draggable,s=o===void 0?!1:o,l=e.dotPosition,A=l===void 0?"bottom":l,c=e.vertical,u=c===void 0?A==="left"||A==="right":c,d=BWe(e,["dots","arrows","draggable","dotPosition","vertical"]),f=m.useContext(Mr),h=f.getPrefixCls,g=f.direction,p=m.useRef(),E=function(b){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;p.current.slickGoTo(b,Q)};m.useImperativeHandle(t,function(){return{goTo:E,autoPlay:p.current.innerSlider.autoPlay,innerSlider:p.current.innerSlider,prev:p.current.slickPrev,next:p.current.slickNext}},[p.current]);var y=m.useRef(m.Children.count(d.children));m.useEffect(function(){y.current!==m.Children.count(d.children)&&(E(d.initialSlide||0,!1),y.current=m.Children.count(d.children))},[d.children]);var C=oe({vertical:u},d);C.effect==="fade"&&(C.fade=!0);var w=h("carousel",C.prefixCls),B="slick-dots",M=!!n,I=He(B,"".concat(B,"-").concat(A),typeof n=="boolean"?!1:n==null?void 0:n.className),S=He(w,X(X({},"".concat(w,"-rtl"),g==="rtl"),"".concat(w,"-vertical"),A==="left"||A==="right"));return m.createElement("div",{className:S},m.createElement(wWe,oe({ref:p},C,{dots:M,dotsClass:I,arrows:i,draggable:s})))});function $o(e,t){return e[t]}function NEe(e,t){var r=new Set;return e.forEach(function(n){t.has(n)||r.add(n)}),r}function xWe(e){var t=e||{},r=t.disabled,n=t.disableCheckbox,a=t.checkable;return!!(r||n)||a===!1}function IWe(e,t,r,n){for(var a=new Set(e),i=new Set,o=0;o<=r;o+=1){var s=t.get(o)||new Set;s.forEach(function(u){var d=u.key,f=u.node,h=u.children,g=h===void 0?[]:h;a.has(d)&&!n(f)&&g.filter(function(p){return!n(p.node)}).forEach(function(p){a.add(p.key)})})}for(var l=new Set,A=r;A>=0;A-=1){var c=t.get(A)||new Set;c.forEach(function(u){var d=u.parent,f=u.node;if(!(n(f)||!u.parent||l.has(u.parent.key))){if(n(u.parent.node)){l.add(d.key);return}var h=!0,g=!1;(d.children||[]).filter(function(p){return!n(p.node)}).forEach(function(p){var E=p.key,y=a.has(E);h&&!y&&(h=!1),!g&&(y||i.has(E))&&(g=!0)}),h&&a.add(d.key),g&&i.add(d.key),l.add(d.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(NEe(i,a))}}function bWe(e,t,r,n,a){for(var i=new Set(e),o=new Set(t),s=0;s<=n;s+=1){var l=r.get(s)||new Set;l.forEach(function(d){var f=d.key,h=d.node,g=d.children,p=g===void 0?[]:g;!i.has(f)&&!o.has(f)&&!a(h)&&p.filter(function(E){return!a(E.node)}).forEach(function(E){i.delete(E.key)})})}o=new Set;for(var A=new Set,c=n;c>=0;c-=1){var u=r.get(c)||new Set;u.forEach(function(d){var f=d.parent,h=d.node;if(!(a(h)||!d.parent||A.has(d.parent.key))){if(a(d.parent.node)){A.add(f.key);return}var g=!0,p=!1;(f.children||[]).filter(function(E){return!a(E.node)}).forEach(function(E){var y=E.key,C=i.has(y);g&&!C&&(g=!1),!p&&(C||o.has(y))&&(p=!0)}),g||i.delete(f.key),p&&o.add(f.key),A.add(f.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(NEe(o,i))}}function Rc(e,t,r,n){var a=[],i;n?i=n:i=xWe;var o=new Set(e.filter(function(c){var u=!!$o(r,c);return u||a.push(c),u})),s=new Map,l=0;Object.keys(r).forEach(function(c){var u=r[c],d=u.level,f=s.get(d);f||(f=new Set,s.set(d,f)),f.add(u),l=Math.max(l,d)}),Sn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(c){return"'".concat(c,"'")}).join(", ")));var A;return t===!0?A=IWe(o,s,l,i):A=bWe(o,t.halfCheckedKeys,s,l,i),A}var SWe=["children"];function kEe(e,t){return"".concat(e,"-").concat(t)}function RWe(e){return e&&e.type&&e.type.isTreeNode}function bC(e,t){return e??t}function Qb(e){var t=e||{},r=t.title,n=t._title,a=t.key,i=t.children,o=r||"title";return{title:o,_title:n||[o],key:a||"key",children:i||"children"}}function PEe(e){function t(r){var n=ui(r);return n.map(function(a){if(!RWe(a))return Sn(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var i=a.key,o=a.props,s=o.children,l=Tr(o,SWe),A=$({key:i},l),c=t(s);return c.length&&(A.children=c),A}).filter(function(a){return a})}return t(e)}function uN(e,t,r){var n=Qb(r),a=n._title,i=n.key,o=n.children,s=new Set(t===!0?[]:t),l=[];function A(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(d,f){for(var h=kEe(u?u.pos:"0",f),g=bC(d[i],h),p,E=0;E<a.length;E+=1){var y=a[E];if(d[y]!==void 0){p=d[y];break}}var C=$($({},Ia(d,[].concat(Nt(a),[i,o]))),{},{title:p,key:g,parent:u,pos:h,children:null,data:d,isStart:[].concat(Nt(u?u.isStart:[]),[f===0]),isEnd:[].concat(Nt(u?u.isEnd:[]),[f===c.length-1])});return l.push(C),t===!0||s.has(g)?C.children=A(d[o]||[],C):C.children=[],C})}return A(e),l}function TWe(e,t,r){var n={};Xt(r)==="object"?n=r:n={externalGetKey:r},n=n||{};var a=n,i=a.childrenPropName,o=a.externalGetKey,s=a.fieldNames,l=Qb(s),A=l.key,c=l.children,u=i||c,d;o?typeof o=="string"?d=function(g){return g[o]}:typeof o=="function"&&(d=function(g){return o(g)}):d=function(g,p){return bC(g[A],p)};function f(h,g,p,E){var y=h?h[u]:e,C=h?kEe(p.pos,g):"0",w=h?[].concat(Nt(E),[h]):[];if(h){var B=d(h,C),M={node:h,index:g,pos:C,key:B,parentPos:p.node?p.pos:null,level:p.level+1,nodes:w};t(M)}y&&y.forEach(function(I,S){f(I,S,{node:h,pos:C,level:p?p.level+1:-1},w)})}f(null)}function SR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.initWrapper,n=t.processEntity,a=t.onProcessFinished,i=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,A=i||l,c={},u={},d={posEntities:c,keyEntities:u};return r&&(d=r(d)||d),TWe(e,function(f){var h=f.node,g=f.index,p=f.pos,E=f.key,y=f.parentPos,C=f.level,w=f.nodes,B={node:h,nodes:w,index:g,key:E,pos:p,level:C},M=bC(E,p);c[p]=B,u[M]=B,B.parent=c[y],B.parent&&(B.parent.children=B.parent.children||[],B.parent.children.push(B)),n&&n(B,d)},{externalGetKey:A,childrenPropName:o,fieldNames:s}),a&&a(d),d}function V0(e,t){var r=t.expandedKeys,n=t.selectedKeys,a=t.loadedKeys,i=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,A=t.dropPosition,c=t.keyEntities,u=$o(c,e),d={eventKey:e,expanded:r.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(u?u.pos:""),dragOver:l===e&&A===0,dragOverGapTop:l===e&&A===-1,dragOverGapBottom:l===e&&A===1};return d}function Ga(e){var t=e.data,r=e.expanded,n=e.selected,a=e.checked,i=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,A=e.dragOverGapTop,c=e.dragOverGapBottom,u=e.pos,d=e.active,f=e.eventKey,h=$($({},t),{},{expanded:r,selected:n,checked:a,loaded:i,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:A,dragOverGapBottom:c,pos:u,active:d,key:f});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Sn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var QWe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},OEe=m.createContext(null),DWe=function(t,r){var n=t.defaultValue,a=t.children,i=t.options,o=i===void 0?[]:i,s=t.prefixCls,l=t.className,A=t.style,c=t.onChange,u=QWe(t,["defaultValue","children","options","prefixCls","className","style","onChange"]),d=m.useContext(Mr),f=d.getPrefixCls,h=d.direction,g=m.useState(u.value||n||[]),p=De(g,2),E=p[0],y=p[1],C=m.useState([]),w=De(C,2),B=w[0],M=w[1];m.useEffect(function(){"value"in u&&y(u.value||[])},[u.value]);var I=function(){return o.map(function(P){return typeof P=="string"||typeof P=="number"?{label:P,value:P}:P})},S=function(P){M(function(z){return z.filter(function(j){return j!==P})})},R=function(P){M(function(z){return[].concat(Nt(z),[P])})},b=function(P){var z=E.indexOf(P.value),j=Nt(E);z===-1?j.push(P.value):j.splice(z,1),"value"in u||y(j);var V=I();c==null||c(j.filter(function(L){return B.includes(L)}).sort(function(L,K){var J=V.findIndex(function(W){return W.value===L}),Y=V.findIndex(function(W){return W.value===K});return J-Y}))},Q=f("checkbox",s),D="".concat(Q,"-group"),F=Ia(u,["value","disabled"]);o&&o.length>0&&(a=I().map(function(O){return m.createElement(zEe,{prefixCls:Q,key:O.value.toString(),disabled:"disabled"in O?O.disabled:u.disabled,value:O.value,checked:E.includes(O.value),onChange:O.onChange,className:"".concat(D,"-item"),style:O.style},O.label)}));var N={toggleOption:b,value:E,disabled:u.disabled,name:u.name,registerValue:R,cancelValue:S},k=He(D,X({},"".concat(D,"-rtl"),h==="rtl"),l);return m.createElement("div",oe({className:k,style:A},F,{ref:r}),m.createElement(OEe.Provider,{value:N},a))},FWe=m.forwardRef(DWe);const _We=m.memo(FWe);var NWe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},kWe=function(t,r){var n,a=t.prefixCls,i=t.className,o=t.children,s=t.indeterminate,l=s===void 0?!1:s,A=t.style,c=t.onMouseEnter,u=t.onMouseLeave,d=t.skipGroup,f=d===void 0?!1:d,h=t.disabled,g=NWe(t,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),p=m.useContext(Mr),E=p.getPrefixCls,y=p.direction,C=m.useContext(OEe),w=m.useContext(Qi),B=w.isFormItemInput,M=m.useContext(Fo),I=(n=(C==null?void 0:C.disabled)||h)!==null&&n!==void 0?n:M,S=m.useRef(g.value);m.useEffect(function(){C==null||C.registerValue(g.value)},[]),m.useEffect(function(){if(!f)return g.value!==S.current&&(C==null||C.cancelValue(S.current),C==null||C.registerValue(g.value),S.current=g.value),function(){return C==null?void 0:C.cancelValue(g.value)}},[g.value]);var R=E("checkbox",a),b=oe({},g);C&&!f&&(b.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),C.toggleOption&&C.toggleOption({label:o,value:g.value})},b.name=C.name,b.checked=C.value.includes(g.value));var Q=He(X(X(X(X(X({},"".concat(R,"-wrapper"),!0),"".concat(R,"-rtl"),y==="rtl"),"".concat(R,"-wrapper-checked"),b.checked),"".concat(R,"-wrapper-disabled"),I),"".concat(R,"-wrapper-in-form-item"),B),i),D=He(X({},"".concat(R,"-indeterminate"),l)),F=l?"mixed":void 0;return m.createElement("label",{className:Q,style:A,onMouseEnter:c,onMouseLeave:u},m.createElement(Sb,oe({"aria-checked":F},b,{prefixCls:R,className:D,disabled:I,ref:r})),o!==void 0&&m.createElement("span",null,o))},zEe=m.forwardRef(kWe),Rr=zEe;Rr.Group=_We;Rr.__ANT_CHECKBOX=!0;var jEe=m.createContext({}),PWe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function OWe(e){return typeof e=="number"?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}var zWe=["xs","sm","md","lg","xl","xxl"],zn=m.forwardRef(function(e,t){var r=m.useContext(Mr),n=r.getPrefixCls,a=r.direction,i=m.useContext(jEe),o=i.gutter,s=i.wrap,l=i.supportFlexGap,A=e.prefixCls,c=e.span,u=e.order,d=e.offset,f=e.push,h=e.pull,g=e.className,p=e.children,E=e.flex,y=e.style,C=PWe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=n("col",A),B={};zWe.forEach(function(b){var Q={},D=e[b];typeof D=="number"?Q.span=D:Xt(D)==="object"&&(Q=D||{}),delete C[b],B=oe(oe({},B),X(X(X(X(X(X({},"".concat(w,"-").concat(b,"-").concat(Q.span),Q.span!==void 0),"".concat(w,"-").concat(b,"-order-").concat(Q.order),Q.order||Q.order===0),"".concat(w,"-").concat(b,"-offset-").concat(Q.offset),Q.offset||Q.offset===0),"".concat(w,"-").concat(b,"-push-").concat(Q.push),Q.push||Q.push===0),"".concat(w,"-").concat(b,"-pull-").concat(Q.pull),Q.pull||Q.pull===0),"".concat(w,"-rtl"),a==="rtl"))});var M=He(w,X(X(X(X(X({},"".concat(w,"-").concat(c),c!==void 0),"".concat(w,"-order-").concat(u),u),"".concat(w,"-offset-").concat(d),d),"".concat(w,"-push-").concat(f),f),"".concat(w,"-pull-").concat(h),h),g,B),I={};if(o&&o[0]>0){var S=o[0]/2;I.paddingLeft=S,I.paddingRight=S}if(o&&o[1]>0&&!l){var R=o[1]/2;I.paddingTop=R,I.paddingBottom=R}return E&&(I.flex=OWe(E),s===!1&&!I.minWidth&&(I.minWidth=0)),m.createElement("div",oe({},C,{style:oe(oe({},I),y),className:M,ref:t}),p)}),jWe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};fi("top","middle","bottom","stretch");fi("start","end","center","space-around","space-between","space-evenly");function SX(e,t){var r=m.useState(typeof e=="string"?e:""),n=De(r,2),a=n[0],i=n[1],o=function(){if(typeof e=="string"&&i(e),Xt(e)==="object")for(var l=0;l<pb.length;l++){var A=pb[l];if(t[A]){var c=e[A];if(c!==void 0){i(c);return}}}};return m.useEffect(function(){o()},[JSON.stringify(e),t]),a}var Mi=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.justify,a=e.align,i=e.className,o=e.style,s=e.children,l=e.gutter,A=l===void 0?0:l,c=e.wrap,u=jWe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),d=m.useContext(Mr),f=d.getPrefixCls,h=d.direction,g=m.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),p=De(g,2),E=p[0],y=p[1],C=m.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),w=De(C,2),B=w[0],M=w[1],I=SX(a,B),S=SX(n,B),R=fme(),b=m.useRef(A);m.useEffect(function(){var J=vb.subscribe(function(Y){M(Y);var W=b.current||0;(!Array.isArray(W)&&Xt(W)==="object"||Array.isArray(W)&&(Xt(W[0])==="object"||Xt(W[1])==="object"))&&y(Y)});return function(){return vb.unsubscribe(J)}},[]);var Q=function(){var Y=[void 0,void 0],W=Array.isArray(A)?A:[A,void 0];return W.forEach(function(q,ee){if(Xt(q)==="object")for(var ae=0;ae<pb.length;ae++){var ne=pb[ae];if(E[ne]&&q[ne]!==void 0){Y[ee]=q[ne];break}}else Y[ee]=q}),Y},D=f("row",r),F=Q(),N=He(D,X(X(X(X({},"".concat(D,"-no-wrap"),c===!1),"".concat(D,"-").concat(S),S),"".concat(D,"-").concat(I),I),"".concat(D,"-rtl"),h==="rtl"),i),k={},O=F[0]!=null&&F[0]>0?F[0]/-2:void 0,P=F[1]!=null&&F[1]>0?F[1]/-2:void 0;if(O&&(k.marginLeft=O,k.marginRight=O),R){var z=De(F,2);k.rowGap=z[1]}else P&&(k.marginTop=P,k.marginBottom=P);var j=De(F,2),V=j[0],L=j[1],K=m.useMemo(function(){return{gutter:[V,L],wrap:c,supportFlexGap:R}},[V,L,c,R]);return m.createElement(jEe.Provider,{value:K},m.createElement("div",oe({},u,{className:N,style:oe(oe({},k),o),ref:t}),s))}),dN,RX;function YWe(){return RX||(RX=1,dN=function(t,r,n,a){var i=n?n.call(a,t,r):void 0;if(i!==void 0)return!!i;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var o=Object.keys(t),s=Object.keys(r);if(o.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),A=0;A<o.length;A++){var c=o[A];if(!l(c))return!1;var u=t[c],d=r[c];if(i=n?n.call(a,u,d,c):void 0,i===!1||i===void 0&&u!==d)return!1}return!0}),dN}var LWe=YWe();const ov=Nr(LWe);var YEe=m.forwardRef(function(e,t){var r,n=e.prefixCls,a=e.forceRender,i=e.className,o=e.style,s=e.children,l=e.isActive,A=e.role,c=m.useState(l||a),u=De(c,2),d=u[0],f=u[1];return m.useEffect(function(){(a||l)&&f(!0)},[a,l]),d?m.createElement("div",{ref:t,className:He("".concat(n,"-content"),(r={},X(r,"".concat(n,"-content-active"),l),X(r,"".concat(n,"-content-inactive"),!l),r),i),style:o,role:A},m.createElement("div",{className:"".concat(n,"-content-box")},s)):null});YEe.displayName="PanelContent";var UWe=["className","id","style","prefixCls","headerClass","children","isActive","destroyInactivePanel","accordion","forceRender","openMotion","extra","collapsible"],LEe=function(e){xn(r,e);var t=sa(r);function r(){var n;sn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.onItemClick=function(){var s=n.props,l=s.onItemClick,A=s.panelKey;typeof l=="function"&&l(A)},n.handleKeyPress=function(s){(s.key==="Enter"||s.keyCode===13||s.which===13)&&n.onItemClick()},n.renderIcon=function(){var s=n.props,l=s.showArrow,A=s.expandIcon,c=s.prefixCls,u=s.collapsible;if(!l)return null;var d=typeof A=="function"?A(n.props):m.createElement("i",{className:"arrow"});return d&&m.createElement("div",{className:"".concat(c,"-expand-icon"),onClick:u==="header"||u==="icon"?n.onItemClick:null},d)},n.renderTitle=function(){var s=n.props,l=s.header,A=s.prefixCls,c=s.collapsible;return m.createElement("span",{className:"".concat(A,"-header-text"),onClick:c==="header"?n.onItemClick:null},l)},n}return ln(r,[{key:"shouldComponentUpdate",value:function(a){return!ov(this.props,a)}},{key:"render",value:function(){var a,i,o=this.props,s=o.className,l=o.id,A=o.style,c=o.prefixCls,u=o.headerClass,d=o.children,f=o.isActive,h=o.destroyInactivePanel,g=o.accordion,p=o.forceRender,E=o.openMotion,y=o.extra,C=o.collapsible,w=Tr(o,UWe),B=C==="disabled",M=C==="header",I=C==="icon",S=He((a={},X(a,"".concat(c,"-item"),!0),X(a,"".concat(c,"-item-active"),f),X(a,"".concat(c,"-item-disabled"),B),a),s),R=He("".concat(c,"-header"),(i={},X(i,u,u),X(i,"".concat(c,"-header-collapsible-only"),M),X(i,"".concat(c,"-icon-collapsible-only"),I),i)),b={className:R,"aria-expanded":f,"aria-disabled":B,onKeyPress:this.handleKeyPress};!M&&!I&&(b.onClick=this.onItemClick,b.role=g?"tab":"button",b.tabIndex=B?-1:0);var Q=y!=null&&typeof y!="boolean";return delete w.header,delete w.panelKey,delete w.onItemClick,delete w.showArrow,delete w.expandIcon,m.createElement("div",oe({},w,{className:S,style:A,id:l}),m.createElement("div",b,this.renderIcon(),this.renderTitle(),Q&&m.createElement("div",{className:"".concat(c,"-extra")},y)),m.createElement(Ri,oe({visible:f,leavedClassName:"".concat(c,"-content-hidden")},E,{forceRender:p,removeOnLeave:h}),function(D,F){var N=D.className,k=D.style;return m.createElement(YEe,{ref:F,prefixCls:c,className:N,style:k,isActive:f,forceRender:p,role:g?"tabpanel":null},d)}))}}]),r}(m.Component);LEe.defaultProps={showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1};function TX(e){var t=e;if(!Array.isArray(t)){var r=Xt(t);t=r==="number"||r==="string"?[t]:[]}return t.map(function(n){return String(n)})}var SC=function(e){xn(r,e);var t=sa(r);function r(n){var a;sn(this,r),a=t.call(this,n),a.onClickItem=function(l){var A=a.state.activeKey;if(a.props.accordion)A=A[0]===l?[]:[l];else{A=Nt(A);var c=A.indexOf(l),u=c>-1;u?A.splice(c,1):A.push(l)}a.setActiveKey(A)},a.getNewChild=function(l,A){if(!l)return null;var c=a.state.activeKey,u=a.props,d=u.prefixCls,f=u.openMotion,h=u.accordion,g=u.destroyInactivePanel,p=u.expandIcon,E=u.collapsible,y=l.key||String(A),C=l.props,w=C.header,B=C.headerClass,M=C.destroyInactivePanel,I=C.collapsible,S=!1;h?S=c[0]===y:S=c.indexOf(y)>-1;var R=I??E,b={key:y,panelKey:y,header:w,headerClass:B,isActive:S,prefixCls:d,destroyInactivePanel:M??g,openMotion:f,accordion:h,children:l.props.children,onItemClick:R==="disabled"?null:a.onClickItem,expandIcon:p,collapsible:R};return typeof l.type=="string"?l:(Object.keys(b).forEach(function(Q){typeof b[Q]>"u"&&delete b[Q]}),m.cloneElement(l,b))},a.getItems=function(){var l=a.props.children;return ui(l).map(a.getNewChild)},a.setActiveKey=function(l){"activeKey"in a.props||a.setState({activeKey:l}),a.props.onChange(a.props.accordion?l[0]:l)};var i=n.activeKey,o=n.defaultActiveKey,s=o;return"activeKey"in n&&(s=i),a.state={activeKey:TX(s)},a}return ln(r,[{key:"shouldComponentUpdate",value:function(a,i){return!ov(this.props,a)||!ov(this.state,i)}},{key:"render",value:function(){var a,i=this.props,o=i.prefixCls,s=i.className,l=i.style,A=i.accordion,c=He((a={},X(a,o,!0),X(a,s,!!s),a));return m.createElement("div",{className:c,style:l,role:A?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(a){var i={};return"activeKey"in a&&(i.activeKey=TX(a.activeKey)),i}}]),r}(m.Component);SC.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1};SC.Panel=LEe;SC.Panel;var HWe=function(t){var r=m.useContext(Mr),n=r.getPrefixCls,a=t.prefixCls,i=t.className,o=i===void 0?"":i,s=t.showArrow,l=s===void 0?!0:s,A=n("collapse",a),c=He(X({},"".concat(A,"-no-arrow"),!l),o);return m.createElement(SC.Panel,oe({},t,{prefixCls:A,className:c}))},sv=function(t){var r=m.useContext(Mr),n=r.getPrefixCls,a=r.direction,i=t.prefixCls,o=t.className,s=o===void 0?"":o,l=t.bordered,A=l===void 0?!0:l,c=t.ghost,u=t.expandIconPosition,d=u===void 0?"start":u,f=n("collapse",i),h=m.useMemo(function(){return d==="left"?"start":d==="right"?"end":d},[d]),g=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=t.expandIcon,M=B?B(w):m.createElement(uy,{rotate:w.isActive?90:void 0});return ia(M,function(){return{className:He(M.props.className,"".concat(f,"-arrow"))}})},p=He("".concat(f,"-icon-position-").concat(h),X(X(X({},"".concat(f,"-borderless"),!A),"".concat(f,"-rtl"),a==="rtl"),"".concat(f,"-ghost"),!!c),s),E=oe(oe({},vy),{motionAppear:!1,leavedClassName:"".concat(f,"-content-hidden")}),y=function(){var w=t.children;return ui(w).map(function(B,M){var I;if(!((I=B.props)===null||I===void 0)&&I.disabled){var S=B.key||String(M),R=B.props,b=R.disabled,Q=R.collapsible,D=oe(oe({},Ia(B.props,["disabled"])),{key:S,collapsible:Q??(b?"disabled":void 0)});return ia(B,D)}return B})};return m.createElement(SC,oe({openMotion:E},t,{expandIcon:g,prefixCls:f,className:p}),y())};sv.Panel=HWe;function GWe(e){return m.createElement(nt,oe({size:"small",type:"primary"},e))}var KWe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},VWe=function(t){var r=t.prefixCls,n=t.className,a=t.checked,i=t.onChange,o=t.onClick,s=KWe(t,["prefixCls","className","checked","onChange","onClick"]),l=m.useContext(Mr),A=l.getPrefixCls,c=function(h){i==null||i(!a),o==null||o(h)},u=A("tag",r),d=He(u,X(X({},"".concat(u,"-checkable"),!0),"".concat(u,"-checkable-checked"),a),n);return m.createElement("span",oe({},s,{className:d,onClick:c}))},JWe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},WWe=new RegExp("^(".concat($Y.join("|"),")(-inverse)?$")),XWe=new RegExp("^(".concat(D6e.join("|"),")$")),qWe=function(t,r){var n=t.prefixCls,a=t.className,i=t.style,o=t.children,s=t.icon,l=t.color,A=t.onClose,c=t.closeIcon,u=t.closable,d=u===void 0?!1:u,f=JWe(t,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),h=m.useContext(Mr),g=h.getPrefixCls,p=h.direction,E=m.useState(!0),y=De(E,2),C=y[0],w=y[1];m.useEffect(function(){"visible"in f&&w(f.visible)},[f.visible]);var B=function(){return l?WWe.test(l)||XWe.test(l):!1},M=oe({backgroundColor:l&&!B()?l:void 0},i),I=B(),S=g("tag",n),R=He(S,X(X(X(X({},"".concat(S,"-").concat(l),I),"".concat(S,"-has-color"),l&&!I),"".concat(S,"-hidden"),!C),"".concat(S,"-rtl"),p==="rtl"),a),b=function(z){z.stopPropagation(),A==null||A(z),!z.defaultPrevented&&("visible"in f||w(!1))},Q=function(){return d?c?m.createElement("span",{className:"".concat(S,"-close-icon"),onClick:b},c):m.createElement(ci,{className:"".concat(S,"-close-icon"),onClick:b}):null},D="onClick"in f||o&&o.type==="a",F=Ia(f,["visible"]),N=s||null,k=N?m.createElement(m.Fragment,null,N,m.createElement("span",null,o)):o,O=m.createElement("span",oe({},F,{ref:r,className:R,style:M}),k,Q());return D?m.createElement(fR,null,O):O},RC=m.forwardRef(qWe);RC.CheckableTag=VWe;function ZWe(e){return m.createElement(RC,oe({color:"blue"},e))}function $We(e,t,r){return r!==void 0?r:e==="year"&&t.lang.yearPlaceholder?t.lang.yearPlaceholder:e==="quarter"&&t.lang.quarterPlaceholder?t.lang.quarterPlaceholder:e==="month"&&t.lang.monthPlaceholder?t.lang.monthPlaceholder:e==="week"&&t.lang.weekPlaceholder?t.lang.weekPlaceholder:e==="time"&&t.timePickerLocale.placeholder?t.timePickerLocale.placeholder:t.lang.placeholder}function eXe(e,t,r){return r!==void 0?r:e==="year"&&t.lang.yearPlaceholder?t.lang.rangeYearPlaceholder:e==="quarter"&&t.lang.quarterPlaceholder?t.lang.rangeQuarterPlaceholder:e==="month"&&t.lang.monthPlaceholder?t.lang.rangeMonthPlaceholder:e==="week"&&t.lang.weekPlaceholder?t.lang.rangeWeekPlaceholder:e==="time"&&t.timePickerLocale.placeholder?t.timePickerLocale.rangePlaceholder:t.lang.rangePlaceholder}function UEe(e,t){var r={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:r};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:r};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:r};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:r};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:r}}}var tXe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function rXe(e){var t=m.forwardRef(function(r,n){var a=r.prefixCls,i=r.getPopupContainer,o=r.className,s=r.placement,l=r.size,A=r.disabled,c=r.bordered,u=c===void 0?!0:c,d=r.placeholder,f=r.popupClassName,h=r.dropdownClassName,g=r.status,p=tXe(r,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status"]),E=m.useRef(null),y=m.useContext(Mr),C=y.getPrefixCls,w=y.direction,B=y.getPopupContainer,M=C("picker",a),I=kc(M,w),S=I.compactSize,R=I.compactItemClassnames,b=r.format,Q=r.showTime,D=r.picker,F=C(),N={};N=oe(oe(oe({},N),Q?Db(oe({format:b,picker:D},Q)):{}),D==="time"?Db(oe(oe({format:b},r),{picker:D})):{});var k=m.useContext(Ti),O=S||l||k,P=m.useContext(Fo),z=A??P,j=m.useContext(Qi),V=j.hasFeedback,L=j.status,K=j.feedbackIcon,J=m.createElement(m.Fragment,null,D==="time"?m.createElement(J3,null):m.createElement(Ade,null),V&&K);return m.useImperativeHandle(n,function(){return{focus:function(){var W;return(W=E.current)===null||W===void 0?void 0:W.focus()},blur:function(){var W;return(W=E.current)===null||W===void 0?void 0:W.blur()}}}),m.createElement(_A,{componentName:"DatePicker",defaultLocale:Ab},function(Y){var W=oe(oe({},Y),r.locale);return m.createElement(lJe,oe({separator:m.createElement("span",{"aria-label":"to",className:"".concat(M,"-separator")},m.createElement(L_e,null)),disabled:z,ref:E,dropdownAlign:UEe(w,s),placeholder:eXe(D,W,d),suffixIcon:J,clearIcon:m.createElement(kl,null),prevIcon:m.createElement("span",{className:"".concat(M,"-prev-icon")}),nextIcon:m.createElement("span",{className:"".concat(M,"-next-icon")}),superPrevIcon:m.createElement("span",{className:"".concat(M,"-super-prev-icon")}),superNextIcon:m.createElement("span",{className:"".concat(M,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(F,"-slide-up")},p,N,{className:He(X(X({},"".concat(M,"-").concat(O),O),"".concat(M,"-borderless"),!u),Qo(M,Nc(L,g),V),R,o),locale:W.lang,prefixCls:M,getPopupContainer:i||B,generateConfig:e,components:HEe,direction:w,dropdownClassName:f||h}))})});return t}var nXe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function aXe(e){function t(l,A){var c=m.forwardRef(function(u,d){var f=u.prefixCls,h=u.getPopupContainer,g=u.className,p=u.size,E=u.bordered,y=E===void 0?!0:E,C=u.placement,w=u.placeholder,B=u.popupClassName,M=u.dropdownClassName,I=u.disabled,S=u.status,R=nXe(u,["prefixCls","getPopupContainer","className","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status"]),b=m.useContext(Mr),Q=b.getPrefixCls,D=b.direction,F=b.getPopupContainer,N=Q("picker",f),k=kc(N,D),O=k.compactSize,P=k.compactItemClassnames,z=m.useRef(null),j=u.format,V=u.showTime;m.useImperativeHandle(d,function(){return{focus:function(){var pe;return(pe=z.current)===null||pe===void 0?void 0:pe.focus()},blur:function(){var pe;return(pe=z.current)===null||pe===void 0?void 0:pe.blur()}}});var L={showToday:!0},K={};l&&(K.picker=l);var J=l||u.picker;K=oe(oe(oe({},K),V?Db(oe({format:j,picker:J},V)):{}),J==="time"?Db(oe(oe({format:j},u),{picker:J})):{});var Y=Q(),W=m.useContext(Ti),q=O||p||W,ee=m.useContext(Fo),ae=I??ee,ne=m.useContext(Qi),ce=ne.hasFeedback,ue=ne.status,ge=ne.feedbackIcon,Se=m.createElement(m.Fragment,null,J==="time"?m.createElement(J3,null):m.createElement(Ade,null),ce&&ge);return m.createElement(_A,{componentName:"DatePicker",defaultLocale:Ab},function(ye){var pe=oe(oe({},ye),u.locale);return m.createElement(rJe,oe({ref:z,placeholder:$We(J,pe,w),suffixIcon:Se,dropdownAlign:UEe(D,C),clearIcon:m.createElement(kl,null),prevIcon:m.createElement("span",{className:"".concat(N,"-prev-icon")}),nextIcon:m.createElement("span",{className:"".concat(N,"-next-icon")}),superPrevIcon:m.createElement("span",{className:"".concat(N,"-super-prev-icon")}),superNextIcon:m.createElement("span",{className:"".concat(N,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(Y,"-slide-up")},L,R,K,{locale:pe.lang,className:He(X(X({},"".concat(N,"-").concat(q),q),"".concat(N,"-borderless"),!y),Qo(N,Nc(ue,S),ce),P,g),prefixCls:N,getPopupContainer:h||F,generateConfig:e,components:HEe,direction:D,disabled:ae,dropdownClassName:B||M}))})});return A&&(c.displayName=A),c}var r=t(),n=t("week","WeekPicker"),a=t("month","MonthPicker"),i=t("year","YearPicker"),o=t("time","TimePicker"),s=t("quarter","QuarterPicker");return{DatePicker:r,WeekPicker:n,MonthPicker:a,YearPicker:i,TimePicker:o,QuarterPicker:s}}var HEe={button:GWe,rangeItem:ZWe};function iXe(e){return e?Array.isArray(e)?e:[e]:[]}function Db(e){var t=e.format,r=e.picker,n=e.showHour,a=e.showMinute,i=e.showSecond,o=e.use12Hours,s=iXe(t)[0],l=oe({},e);return s&&typeof s=="string"&&(!s.includes("s")&&i===void 0&&(l.showSecond=!1),!s.includes("m")&&a===void 0&&(l.showMinute=!1),!s.includes("H")&&!s.includes("h")&&n===void 0&&(l.showHour=!1),(s.includes("a")||s.includes("A"))&&o===void 0&&(l.use12Hours=!0)),r==="time"?l:(typeof s=="function"&&delete l.format,{showTime:l})}fi("bottomLeft","bottomRight","topLeft","topRight");function oXe(e){var t=aXe(e),r=t.DatePicker,n=t.WeekPicker,a=t.MonthPicker,i=t.YearPicker,o=t.TimePicker,s=t.QuarterPicker,l=rXe(e),A=r;return A.WeekPicker=n,A.MonthPicker=a,A.YearPicker=i,A.RangePicker=l,A.TimePicker=o,A.QuarterPicker=s,A}var lv=oXe(AVe),sXe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Ml=function(t){var r=m.useContext(Mr),n=r.getPrefixCls,a=r.direction,i=t.prefixCls,o=t.type,s=o===void 0?"horizontal":o,l=t.orientation,A=l===void 0?"center":l,c=t.orientationMargin,u=t.className,d=t.children,f=t.dashed,h=t.plain,g=sXe(t,["prefixCls","type","orientation","orientationMargin","className","children","dashed","plain"]),p=n("divider",i),E=A.length>0?"-".concat(A):A,y=!!d,C=A==="left"&&c!=null,w=A==="right"&&c!=null,B=He(p,"".concat(p,"-").concat(s),X(X(X(X(X(X(X({},"".concat(p,"-with-text"),y),"".concat(p,"-with-text").concat(E),y),"".concat(p,"-dashed"),!!f),"".concat(p,"-plain"),!!h),"".concat(p,"-rtl"),a==="rtl"),"".concat(p,"-no-default-orientation-margin-left"),C),"".concat(p,"-no-default-orientation-margin-right"),w),u),M=oe(oe({},C&&{marginLeft:c}),w&&{marginRight:c});return m.createElement("div",oe({className:B},g,{role:"separator"}),d&&s!=="vertical"&&m.createElement("span",{className:"".concat(p,"-inner-text"),style:M},d))},GEe=m.createContext(null),QX=[];function lXe(e,t){var r=m.useState(function(){if(!Gi())return null;var h=document.createElement("div");return h}),n=De(r,1),a=n[0],i=m.useRef(!1),o=m.useContext(GEe),s=m.useState(QX),l=De(s,2),A=l[0],c=l[1],u=o||(i.current?void 0:function(h){c(function(g){var p=[h].concat(Nt(g));return p})});function d(){a.parentElement||document.body.appendChild(a),i.current=!0}function f(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),i.current=!1}return Wn(function(){return e?o?o(d):d():f(),f},[e]),Wn(function(){A.length&&(A.forEach(function(h){return h()}),c(QX))},[A]),[a,u]}var fN;function KEe(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,i;if(e){var o=getComputedStyle(e);n.scrollbarColor=o.scrollbarColor,n.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),A=parseInt(s.height,10);try{var c=l?"width: ".concat(s.width,";"):"",u=A?"height: ".concat(s.height,";"):"";Zy(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(c,`
`).concat(u,`
}`),t)}catch(h){console.error(h),a=l,i=A}}document.body.appendChild(r);var d=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,f=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),SO(t),{width:d,height:f}}function DX(e){return typeof document>"u"?0:(fN===void 0&&(fN=KEe()),fN.width)}function Wz(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:KEe(e)}function AXe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var cXe="rc-util-locker-".concat(Date.now()),FX=0;function uXe(e){var t=!!e,r=m.useState(function(){return FX+=1,"".concat(cXe,"_").concat(FX)}),n=De(r,1),a=n[0];Wn(function(){if(t){var i=Wz(document.body).width,o=AXe();Zy(`
html body {
  overflow-y: hidden;
  `.concat(o?"width: calc(100% - ".concat(i,"px);"):"",`
}`),a)}else SO(a);return function(){SO(a)}},[t,a])}var dXe=!1;function fXe(e){return dXe}var _X=function(t){return t===!1?!1:!Gi()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},VEe=m.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer;e.debug;var i=e.autoDestroy,o=i===void 0?!0:i,s=e.children,l=m.useState(r),A=De(l,2),c=A[0],u=A[1],d=c||r;m.useEffect(function(){(o||r)&&u(r)},[r,o]);var f=m.useState(function(){return _X(a)}),h=De(f,2),g=h[0],p=h[1];m.useEffect(function(){var Q=_X(a);p(Q??null)});var E=lXe(d&&!g),y=De(E,2),C=y[0],w=y[1],B=g??C;uXe(n&&r&&Gi()&&(B===C||B===document.body));var M=null;if(s&&Eh(s)&&t){var I=s;M=I.ref}var S=gC(M,t);if(!d||!Gi()||g===void 0)return null;var R=B===!1||fXe(),b=s;return t&&(b=m.cloneElement(s,{ref:S})),m.createElement(GEe.Provider,{value:w},R?b:ei.createPortal(b,B))}),NX=m.createContext(null),hXe=function(t){var r=t.prefixCls,n=t.className,a=t.style,i=t.children,o=t.containerRef,s=t.id,l=t.onMouseEnter,A=t.onMouseOver,c=t.onMouseLeave,u=t.onClick,d=t.onKeyDown,f=t.onKeyUp,h={onMouseEnter:l,onMouseOver:A,onMouseLeave:c,onClick:u,onKeyDown:d,onKeyUp:f};return m.createElement(m.Fragment,null,m.createElement("div",oe({id:s,className:He("".concat(r,"-content"),n),style:$({},a),"aria-modal":"true",role:"dialog",ref:o},h),i))};function kX(e){return typeof e=="string"&&String(Number(e))===e?(Sn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var PX={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function gXe(e,t){var r,n,a,i,o=e.prefixCls,s=e.open,l=e.placement,A=e.inline,c=e.push,u=e.forceRender,d=e.autoFocus,f=e.keyboard,h=e.rootClassName,g=e.rootStyle,p=e.zIndex,E=e.className,y=e.id,C=e.style,w=e.motion,B=e.width,M=e.height,I=e.children,S=e.contentWrapperStyle,R=e.mask,b=e.maskClosable,Q=e.maskMotion,D=e.maskClassName,F=e.maskStyle,N=e.afterOpenChange,k=e.onClose,O=e.onMouseEnter,P=e.onMouseOver,z=e.onMouseLeave,j=e.onClick,V=e.onKeyDown,L=e.onKeyUp,K=m.useRef(),J=m.useRef(),Y=m.useRef();m.useImperativeHandle(t,function(){return K.current});var W=function(ve){var Te=ve.keyCode,Be=ve.shiftKey;switch(Te){case Pt.TAB:{if(Te===Pt.TAB){if(!Be&&document.activeElement===Y.current){var Ge;(Ge=J.current)===null||Ge===void 0||Ge.focus({preventScroll:!0})}else if(Be&&document.activeElement===J.current){var ht;(ht=Y.current)===null||ht===void 0||ht.focus({preventScroll:!0})}}break}case Pt.ESC:{k&&f&&(ve.stopPropagation(),k(ve));break}}};m.useEffect(function(){if(s&&d){var we;(we=K.current)===null||we===void 0||we.focus({preventScroll:!0})}},[s]);var q=m.useState(!1),ee=De(q,2),ae=ee[0],ne=ee[1],ce=m.useContext(NX),ue;c===!1?ue={distance:0}:c===!0?ue={}:ue=c||{};var ge=(r=(n=(a=ue)===null||a===void 0?void 0:a.distance)!==null&&n!==void 0?n:ce==null?void 0:ce.pushDistance)!==null&&r!==void 0?r:180,Se=m.useMemo(function(){return{pushDistance:ge,push:function(){ne(!0)},pull:function(){ne(!1)}}},[ge]);m.useEffect(function(){if(s){var we;ce==null||(we=ce.push)===null||we===void 0||we.call(ce)}else{var ve;ce==null||(ve=ce.pull)===null||ve===void 0||ve.call(ce)}},[s]),m.useEffect(function(){return function(){var we;ce==null||(we=ce.pull)===null||we===void 0||we.call(ce)}},[]);var ye=R&&m.createElement(Ri,oe({key:"mask"},Q,{visible:s}),function(we,ve){var Te=we.className,Be=we.style;return m.createElement("div",{className:He("".concat(o,"-mask"),Te,D),style:$($({},Be),F),onClick:b&&s?k:void 0,ref:ve})}),pe=typeof w=="function"?w(l):w,Qe={};if(ae&&ge)switch(l){case"top":Qe.transform="translateY(".concat(ge,"px)");break;case"bottom":Qe.transform="translateY(".concat(-ge,"px)");break;case"left":Qe.transform="translateX(".concat(ge,"px)");break;default:Qe.transform="translateX(".concat(-ge,"px)");break}l==="left"||l==="right"?Qe.width=kX(B):Qe.height=kX(M);var Ue={onMouseEnter:O,onMouseOver:P,onMouseLeave:z,onClick:j,onKeyDown:V,onKeyUp:L},tt=m.createElement(Ri,oe({key:"panel"},pe,{visible:s,forceRender:u,onVisibleChanged:function(ve){N==null||N(ve)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(we,ve){var Te=we.className,Be=we.style;return m.createElement("div",oe({className:He("".concat(o,"-content-wrapper"),Te),style:$($($({},Qe),Be),S)},Qc(e,{data:!0})),m.createElement(hXe,oe({id:y,containerRef:ve,prefixCls:o,className:E,style:C},Ue),I))}),it=$({},g);return p&&(it.zIndex=p),m.createElement(NX.Provider,{value:Se},m.createElement("div",{className:He(o,"".concat(o,"-").concat(l),h,(i={},X(i,"".concat(o,"-open"),s),X(i,"".concat(o,"-inline"),A),i)),style:it,tabIndex:-1,ref:K,onKeyDown:W},ye,m.createElement("div",{tabIndex:0,ref:J,style:PX,"aria-hidden":"true","data-sentinel":"start"}),tt,m.createElement("div",{tabIndex:0,ref:Y,style:PX,"aria-hidden":"true","data-sentinel":"end"})))}var pXe=m.forwardRef(gXe),vXe=function(t){var r=t.open,n=r===void 0?!1:r,a=t.prefixCls,i=a===void 0?"rc-drawer":a,o=t.placement,s=o===void 0?"right":o,l=t.autoFocus,A=l===void 0?!0:l,c=t.keyboard,u=c===void 0?!0:c,d=t.width,f=d===void 0?378:d,h=t.mask,g=h===void 0?!0:h,p=t.maskClosable,E=p===void 0?!0:p,y=t.getContainer,C=t.forceRender,w=t.afterOpenChange,B=t.destroyOnClose,M=t.onMouseEnter,I=t.onMouseOver,S=t.onMouseLeave,R=t.onClick,b=t.onKeyDown,Q=t.onKeyUp,D=m.useState(!1),F=De(D,2),N=F[0],k=F[1],O=m.useState(!1),P=De(O,2),z=P[0],j=P[1];Wn(function(){j(!0)},[]);var V=z?n:!1,L=m.useRef(),K=m.useRef();Wn(function(){V&&(K.current=document.activeElement)},[V]);var J=function(ee){var ae;if(k(ee),w==null||w(ee),!ee&&K.current&&!(!((ae=L.current)===null||ae===void 0)&&ae.contains(K.current))){var ne;(ne=K.current)===null||ne===void 0||ne.focus({preventScroll:!0})}};if(!C&&!N&&!V&&B)return null;var Y={onMouseEnter:M,onMouseOver:I,onMouseLeave:S,onClick:R,onKeyDown:b,onKeyUp:Q},W=$($({},t),{},{open:V,prefixCls:i,placement:s,autoFocus:A,keyboard:u,width:f,mask:g,maskClosable:E,inline:y===!1,afterOpenChange:J,ref:L},Y);return m.createElement(VEe,{open:V||C||N,autoDestroy:!1,getContainer:y,autoLock:g&&(V||N)},m.createElement(pXe,W))},mXe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};fi("default","large");var EXe={distance:180};function JEe(e){var t=e.width,r=e.height,n=e.size,a=n===void 0?"default":n,i=e.closable,o=i===void 0?!0:i,s=e.mask,l=s===void 0?!0:s,A=e.push,c=A===void 0?EXe:A,u=e.closeIcon,d=u===void 0?m.createElement(ci,null):u,f=e.bodyStyle,h=e.drawerStyle,g=e.className,p=e.visible,E=e.open,y=e.children,C=e.style,w=e.title,B=e.headerStyle,M=e.onClose,I=e.footer,S=e.footerStyle,R=e.prefixCls,b=e.getContainer,Q=e.extra,D=e.afterVisibleChange,F=e.afterOpenChange,N=mXe(e,["width","height","size","closable","mask","push","closeIcon","bodyStyle","drawerStyle","className","visible","open","children","style","title","headerStyle","onClose","footer","footerStyle","prefixCls","getContainer","extra","afterVisibleChange","afterOpenChange"]),k=m.useContext(Mr),O=k.getPopupContainer,P=k.getPrefixCls,z=k.direction,j=P("drawer",R),V=b===void 0&&O?function(){return O(document.body)}:b,L=o&&m.createElement("button",{type:"button",onClick:M,"aria-label":"Close",className:"".concat(j,"-close")},d);[["visible","open"],["afterVisibleChange","afterOpenChange"]].forEach(function(ne){var ce=De(ne,2);ce[0],ce[1]});function K(){return!w&&!o?null:m.createElement("div",{className:He("".concat(j,"-header"),X({},"".concat(j,"-header-close-only"),o&&!w&&!Q)),style:B},m.createElement("div",{className:"".concat(j,"-header-title")},L,w&&m.createElement("div",{className:"".concat(j,"-title")},w)),Q&&m.createElement("div",{className:"".concat(j,"-extra")},Q))}function J(){if(!I)return null;var ne="".concat(j,"-footer");return m.createElement("div",{className:ne,style:S},I)}var Y=He(X({"no-mask":!l},"".concat(j,"-rtl"),z==="rtl"),g),W=m.useMemo(function(){return t??(a==="large"?736:378)},[t,a]),q=m.useMemo(function(){return r??(a==="large"?736:378)},[r,a]),ee={motionName:zs(j,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},ae=function(ce){return{motionName:zs(j,"panel-motion-".concat(ce)),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}};return m.createElement($f,null,m.createElement(av,{status:!0,override:!0},m.createElement(vXe,oe({prefixCls:j,onClose:M},N,{open:E??p,mask:l,push:c,width:W,height:q,rootClassName:Y,getContainer:V,afterOpenChange:function(ce){F==null||F(ce),D==null||D(ce)},maskMotion:ee,motion:ae,rootStyle:C}),m.createElement("div",{className:"".concat(j,"-wrapper-body"),style:oe({},h)},K(),m.createElement("div",{className:"".concat(j,"-body"),style:f},y),J()))))}function Fb(e){var t=m.useState(e),r=De(t,2),n=r[0],a=r[1];return m.useEffect(function(){var i=setTimeout(function(){a(e)},e.length?0:10);return function(){clearTimeout(i)}},[e]),n}var OX=[];function hN(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:"".concat(r,"-").concat(n),error:e,errorStatus:t}}function WEe(e){var t=e.help,r=e.helpStatus,n=e.errors,a=n===void 0?OX:n,i=e.warnings,o=i===void 0?OX:i,s=e.className,l=e.fieldId,A=e.onVisibleChanged,c=m.useContext(qY),u=c.prefixCls,d=m.useContext(Mr),f=d.getPrefixCls,h="".concat(u,"-item-explain"),g=f(),p=Fb(a),E=Fb(o),y=m.useMemo(function(){return t!=null?[hN(t,r,"help")]:[].concat(Nt(p.map(function(w,B){return hN(w,"error","error",B)})),Nt(E.map(function(w,B){return hN(w,"warning","warning",B)})))},[t,r,p,E]),C={};return l&&(C.id="".concat(l,"_help")),m.createElement(Ri,{motionDeadline:vy.motionDeadline,motionName:"".concat(g,"-show-help"),visible:!!y.length,onVisibleChanged:A},function(w){var B=w.className,M=w.style;return m.createElement("div",oe({},C,{className:He(h,B,s),style:M,role:"alert"}),m.createElement(FY,oe({keys:y},vy,{motionName:"".concat(g,"-show-help-item"),component:!1}),function(I){var S=I.key,R=I.error,b=I.errorStatus,Q=I.className,D=I.style;return m.createElement("div",{key:S,className:He(Q,X({},"".concat(h,"-").concat(b),b)),style:D},R)}))})}function zX(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function jX(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function gN(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return jX(r.overflowY,t)||jX(r.overflowX,t)||function(n){var a=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!a&&(a.clientHeight<n.scrollHeight||a.clientWidth<n.scrollWidth)}(e)}return!1}function Rw(e,t,r,n,a,i,o,s){return i<e&&o>t||i>e&&o<t?0:i<=e&&s<=r||o>=t&&s>=r?i-e-n:o>t&&s<r||i<e&&s>r?o-t+a:0}var YX=function(e,t){var r=window,n=t.scrollMode,a=t.block,i=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,l=typeof o=="function"?o:function(ye){return ye!==o};if(!zX(e))throw new TypeError("Invalid target");for(var A,c,u=document.scrollingElement||document.documentElement,d=[],f=e;zX(f)&&l(f);){if((f=(c=(A=f).parentElement)==null?A.getRootNode().host||null:c)===u){d.push(f);break}f!=null&&f===document.body&&gN(f)&&!gN(document.documentElement)||f!=null&&gN(f,s)&&d.push(f)}for(var h=r.visualViewport?r.visualViewport.width:innerWidth,g=r.visualViewport?r.visualViewport.height:innerHeight,p=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),C=y.height,w=y.width,B=y.top,M=y.right,I=y.bottom,S=y.left,R=a==="start"||a==="nearest"?B:a==="end"?I:B+C/2,b=i==="center"?S+w/2:i==="end"?M:S,Q=[],D=0;D<d.length;D++){var F=d[D],N=F.getBoundingClientRect(),k=N.height,O=N.width,P=N.top,z=N.right,j=N.bottom,V=N.left;if(n==="if-needed"&&B>=0&&S>=0&&I<=g&&M<=h&&B>=P&&I<=j&&S>=V&&M<=z)return Q;var L=getComputedStyle(F),K=parseInt(L.borderLeftWidth,10),J=parseInt(L.borderTopWidth,10),Y=parseInt(L.borderRightWidth,10),W=parseInt(L.borderBottomWidth,10),q=0,ee=0,ae="offsetWidth"in F?F.offsetWidth-F.clientWidth-K-Y:0,ne="offsetHeight"in F?F.offsetHeight-F.clientHeight-J-W:0,ce="offsetWidth"in F?F.offsetWidth===0?0:O/F.offsetWidth:0,ue="offsetHeight"in F?F.offsetHeight===0?0:k/F.offsetHeight:0;if(u===F)q=a==="start"?R:a==="end"?R-g:a==="nearest"?Rw(E,E+g,g,J,W,E+R,E+R+C,C):R-g/2,ee=i==="start"?b:i==="center"?b-h/2:i==="end"?b-h:Rw(p,p+h,h,K,Y,p+b,p+b+w,w),q=Math.max(0,q+E),ee=Math.max(0,ee+p);else{q=a==="start"?R-P-J:a==="end"?R-j+W+ne:a==="nearest"?Rw(P,j,k,J,W+ne,R,R+C,C):R-(P+k/2)+ne/2,ee=i==="start"?b-V-K:i==="center"?b-(V+O/2)+ae/2:i==="end"?b-z+Y+ae:Rw(V,z,O,K,Y+ae,b,b+w,w);var ge=F.scrollLeft,Se=F.scrollTop;R+=Se-(q=Math.max(0,Math.min(Se+q/ue,F.scrollHeight-k/ue+ne))),b+=ge-(ee=Math.max(0,Math.min(ge+ee/ce,F.scrollWidth-O/ce+ae)))}Q.push({el:F,top:q,left:ee})}return Q};function XEe(e){return e===Object(e)&&Object.keys(e).length!==0}function yXe(e,t){t===void 0&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(n){var a=n.el,i=n.top,o=n.left;a.scroll&&r?a.scroll({top:i,left:o,behavior:t}):(a.scrollTop=i,a.scrollLeft=o)})}function CXe(e){return e===!1?{block:"end",inline:"nearest"}:XEe(e)?e:{block:"start",inline:"nearest"}}function wXe(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if(XEe(t)&&typeof t.behavior=="function")return t.behavior(r?YX(e,t):[]);if(r){var n=CXe(t);return yXe(YX(e,n),n.behavior)}}var BXe=["parentNode"],MXe="form_item";function J0(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function qEe(e,t){if(e.length){var r=e.join("_");if(t)return"".concat(t,"_").concat(r);var n=BXe.includes(r);return n?"".concat(MXe,"_").concat(r):r}}function LX(e){var t=J0(e);return t.join("_")}function ZEe(e){var t=sR(),r=De(t,1),n=r[0],a=m.useRef({}),i=m.useMemo(function(){return e??oe(oe({},n),{__INTERNAL__:{itemRef:function(s){return function(l){var A=LX(s);l?a.current[A]=l:delete a.current[A]}}},scrollToField:function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=J0(s),c=qEe(A,i.__INTERNAL__.name),u=c?document.getElementById(c):null;u&&wXe(u,oe({scrollMode:"if-needed",block:"nearest"},l))},getFieldInstance:function(s){var l=LX(s);return a.current[l]}})},[e,n]);return[i]}var xXe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},IXe=function(t,r){var n=m.useContext(Ti),a=m.useContext(Fo),i=m.useContext(Mr),o=i.getPrefixCls,s=i.direction,l=i.form,A=t.prefixCls,c=t.className,u=c===void 0?"":c,d=t.size,f=d===void 0?n:d,h=t.disabled,g=h===void 0?a:h,p=t.form,E=t.colon,y=t.labelAlign,C=t.labelWrap,w=t.labelCol,B=t.wrapperCol,M=t.hideRequiredMark,I=t.layout,S=I===void 0?"horizontal":I,R=t.scrollToFirstError,b=t.requiredMark,Q=t.onFinishFailed,D=t.name,F=xXe(t,["prefixCls","className","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name"]),N=m.useContext(ape),k=m.useMemo(function(){return b!==void 0?b:l&&l.requiredMark!==void 0?l.requiredMark:!M},[M,b,l]),O=E??(l==null?void 0:l.colon),P=o("form",A),z=He(P,X(X(X(X({},"".concat(P,"-").concat(S),!0),"".concat(P,"-hide-required-mark"),k===!1),"".concat(P,"-rtl"),s==="rtl"),"".concat(P,"-").concat(f),f),u),j=ZEe(p),V=De(j,1),L=V[0],K=L.__INTERNAL__;K.name=D;var J=m.useMemo(function(){return{name:D,labelAlign:y,labelCol:w,labelWrap:C,wrapperCol:B,vertical:S==="vertical",colon:O,requiredMark:k,itemRef:K.itemRef,form:L}},[D,y,w,B,S,O,k,L]);m.useImperativeHandle(r,function(){return L});var Y=function(q){Q==null||Q(q);var ee={block:"nearest"};R&&q.errorFields.length&&(Xt(R)==="object"&&(ee=R),L.scrollToField(q.errorFields[0].name,ee))};return m.createElement(Wpe,{disabled:g},m.createElement(Xpe,{size:f},m.createElement(zve,oe({},{validateMessages:N}),m.createElement(td.Provider,{value:J},m.createElement(Ch,oe({id:D},F,{name:D,onFinishFailed:Y,form:L,className:z}))))))},bXe=m.forwardRef(IXe),SXe=function(){var t=m.useContext(Qi),r=t.status;return{status:r}};function RXe(e){var t=m.useState(e),r=De(t,2),n=r[0],a=r[1],i=m.useRef(null),o=m.useRef([]),s=m.useRef(!1);m.useEffect(function(){return s.current=!1,function(){s.current=!0,fn.cancel(i.current),i.current=null}},[]);function l(A){s.current||(i.current===null&&(o.current=[],i.current=fn(function(){i.current=null,a(function(c){var u=c;return o.current.forEach(function(d){u=d(u)}),u})})),o.current.push(A))}return[n,l]}function TXe(){var e=m.useContext(td),t=e.itemRef,r=m.useRef({});function n(a,i){var o=i&&Xt(i)==="object"&&i.ref,s=a.join("_");return(r.current.name!==s||r.current.originRef!==o)&&(r.current.name=s,r.current.originRef=o,r.current.ref=As(t(a),o)),r.current.ref}return n}var QXe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function DXe(e){return e?Xt(e)==="object"&&!m.isValidElement(e)?e:{title:e}:null}var FXe=function(t){var r=t.prefixCls,n=t.label,a=t.htmlFor,i=t.labelCol,o=t.labelAlign,s=t.colon,l=t.required,A=t.requiredMark,c=t.tooltip,u=lpe("Form"),d=De(u,1),f=d[0];return n?m.createElement(td.Consumer,{key:"label"},function(h){var g=h.vertical,p=h.labelAlign,E=h.labelCol,y=h.labelWrap,C=h.colon,w,B=i||E||{},M=o||p,I="".concat(r,"-item-label"),S=He(I,M==="left"&&"".concat(I,"-left"),B.className,X({},"".concat(I,"-wrap"),!!y)),R=n,b=s===!0||C!==!1&&s!==!1,Q=b&&!g;Q&&typeof n=="string"&&n.trim()!==""&&(R=n.replace(/[:|：]\s*$/,""));var D=DXe(c);if(D){var F=D.icon,N=F===void 0?m.createElement(hde,null):F,k=QXe(D,["icon"]),O=m.createElement(Zn,oe({},k),m.cloneElement(N,{className:"".concat(r,"-item-tooltip"),title:"",onClick:function(j){j.preventDefault()},tabIndex:null}));R=m.createElement(m.Fragment,null,R,O)}A==="optional"&&!l&&(R=m.createElement(m.Fragment,null,R,m.createElement("span",{className:"".concat(r,"-item-optional"),title:""},(f==null?void 0:f.optional)||((w=Ps.Form)===null||w===void 0?void 0:w.optional))));var P=He(X(X(X({},"".concat(r,"-item-required"),l),"".concat(r,"-item-required-mark-optional"),A==="optional"),"".concat(r,"-item-no-colon"),!b));return m.createElement(zn,oe({},B,{className:S}),m.createElement("label",{htmlFor:a,className:P,title:typeof n=="string"?n:""},R))}):null},_Xe=function(t){var r=t.prefixCls,n=t.status,a=t.wrapperCol,i=t.children,o=t.errors,s=t.warnings,l=t._internalItemRender,A=t.extra,c=t.help,u=t.fieldId,d=t.marginBottom,f=t.onErrorVisibleChanged,h="".concat(r,"-item"),g=m.useContext(td),p=a||g.wrapperCol||{},E=He("".concat(h,"-control"),p.className),y=m.useMemo(function(){return oe({},g)},[g]);delete y.labelCol,delete y.wrapperCol;var C=m.createElement("div",{className:"".concat(h,"-control-input")},m.createElement("div",{className:"".concat(h,"-control-input-content")},i)),w=m.useMemo(function(){return{prefixCls:r,status:n}},[r,n]),B=d!==null||o.length||s.length?m.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},m.createElement(qY.Provider,{value:w},m.createElement(WEe,{fieldId:u,errors:o,warnings:s,help:c,helpStatus:n,className:"".concat(h,"-explain-connected"),onVisibleChanged:f})),!!d&&m.createElement("div",{style:{width:0,height:d}})):null,M={};u&&(M.id="".concat(u,"_extra"));var I=A?m.createElement("div",oe({},M,{className:"".concat(h,"-extra")}),A):null,S=l&&l.mark==="pro_table_render"&&l.render?l.render(t,{input:C,errorList:B,extra:I}):m.createElement(m.Fragment,null,C,B,I);return m.createElement(td.Provider,{value:y},m.createElement(zn,oe({},p,{className:E}),S))},NXe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},kXe={success:tC,warning:nC,error:kl,validating:Xu};function PXe(e){var t=e.prefixCls,r=e.className,n=e.style,a=e.help,i=e.errors,o=e.warnings,s=e.validateStatus,l=e.meta,A=e.hasFeedback,c=e.hidden,u=e.children,d=e.fieldId,f=e.isRequired,h=e.onSubItemMetaChange,g=NXe(e,["prefixCls","className","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","isRequired","onSubItemMetaChange"]),p="".concat(t,"-item"),E=m.useContext(td),y=E.requiredMark,C=m.useRef(null),w=Fb(i),B=Fb(o),M=a!=null,I=!!(M||i.length||o.length),S=m.useState(null),R=De(S,2),b=R[0],Q=R[1];Wn(function(){if(I&&C.current){var O=getComputedStyle(C.current);Q(parseInt(O.marginBottom,10))}},[I]);var D=function(P){P||Q(null)},F="";s!==void 0?F=s:l.validating?F="validating":w.length?F="error":B.length?F="warning":l.touched&&(F="success");var N=m.useMemo(function(){var O;if(A){var P=F&&kXe[F];O=P?m.createElement("span",{className:He("".concat(p,"-feedback-icon"),"".concat(p,"-feedback-icon-").concat(F))},m.createElement(P,null)):null}return{status:F,hasFeedback:A,feedbackIcon:O,isFormItemInput:!0}},[F,A]),k=X(X(X(X(X(X(X(X(X({},p,!0),"".concat(p,"-with-help"),M||w.length||B.length),"".concat(r),!!r),"".concat(p,"-has-feedback"),F&&A),"".concat(p,"-has-success"),F==="success"),"".concat(p,"-has-warning"),F==="warning"),"".concat(p,"-has-error"),F==="error"),"".concat(p,"-is-validating"),F==="validating"),"".concat(p,"-hidden"),c);return m.createElement("div",{className:He(k),style:n,ref:C},m.createElement(Mi,oe({className:"".concat(p,"-row")},Ia(g,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","required","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol"])),m.createElement(FXe,oe({htmlFor:d,required:f,requiredMark:y},e,{prefixCls:t})),m.createElement(_Xe,oe({},e,l,{errors:w,warnings:B,prefixCls:t,status:F,help:a,marginBottom:b,onErrorVisibleChanged:D}),m.createElement(Ove.Provider,{value:h},m.createElement(Qi.Provider,{value:N},u)))),!!b&&m.createElement("div",{className:"".concat(p,"-margin-offset"),style:{marginBottom:-b}}))}var OXe="__SPLIT__";fi("success","warning","error","validating","");var zXe=m.memo(function(e){var t=e.children;return t},function(e,t){return e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(function(r,n){return r===t.childProps[n]})});function jXe(e){return e!=null}function UX(){return{errors:[],warnings:[],touched:!1,validating:!1,validated:!1,name:[]}}function YXe(e){var t=e.name,r=e.noStyle,n=e.dependencies,a=e.prefixCls,i=e.shouldUpdate,o=e.rules,s=e.children,l=e.required,A=e.label,c=e.messageVariables,u=e.trigger,d=u===void 0?"onChange":u,f=e.validateTrigger,h=e.hidden,g=m.useContext(Mr),p=g.getPrefixCls,E=m.useContext(td),y=E.name,C=typeof s=="function",w=m.useContext(Ove),B=m.useContext(ed),M=B.validateTrigger,I=f!==void 0?f:M,S=jXe(t),R=p("form",a),b=m.useContext(nv),Q=m.useRef(),D=RXe({}),F=De(D,2),N=F[0],k=F[1],O=$u(function(){return UX()}),P=De(O,2),z=P[0],j=P[1],V=function(ce){var ue=b==null?void 0:b.getKey(ce.name);if(j(ce.destroy?UX():ce,!0),r&&w){var ge=ce.name;if(ce.destroy)ge=Q.current||ge;else if(ue!==void 0){var Se=De(ue,2),ye=Se[0],pe=Se[1];ge=[ye].concat(Nt(pe)),Q.current=ge}w(ce,ge)}},L=function(ce,ue){k(function(ge){var Se=oe({},ge),ye=[].concat(Nt(ce.name.slice(0,-1)),Nt(ue)),pe=ye.join(OXe);return ce.destroy?delete Se[pe]:Se[pe]=ce,Se})},K=m.useMemo(function(){var ne=Nt(z.errors),ce=Nt(z.warnings);return Object.values(N).forEach(function(ue){ne.push.apply(ne,Nt(ue.errors||[])),ce.push.apply(ce,Nt(ue.warnings||[]))}),[ne,ce]},[N,z.errors,z.warnings]),J=De(K,2),Y=J[0],W=J[1],q=TXe();function ee(ne,ce,ue){return r&&!h?ne:m.createElement(PXe,oe({key:"row"},e,{prefixCls:R,fieldId:ce,isRequired:ue,errors:Y,warnings:W,meta:z,onSubItemMetaChange:L}),ne)}if(!S&&!C&&!n)return ee(s);var ae={};return typeof A=="string"?ae.label=A:t&&(ae.label=String(t)),c&&(ae=oe(oe({},ae),c)),m.createElement(oR,oe({},e,{messageVariables:ae,trigger:d,validateTrigger:I,onMetaChange:V}),function(ne,ce,ue){var ge=J0(t).length&&ce?ce.name:[],Se=qEe(ge,y),ye=l!==void 0?l:!!(o&&o.some(function(ve){if(ve&&Xt(ve)==="object"&&ve.required&&!ve.warningOnly)return!0;if(typeof ve=="function"){var Te=ve(ue);return Te&&Te.required&&!Te.warningOnly}return!1})),pe=oe({},ne),Qe=null;if(Array.isArray(s)&&S)Qe=s;else if(!(C&&(!(i||n)||S))){if(!(n&&!C&&!S))if(is(s)){var Ue=oe(oe({},s.props),pe);if(Ue.id||(Ue.id=Se),e.help||Y.length>0||W.length>0||e.extra){var tt=[];(e.help||Y.length>0)&&tt.push("".concat(Se,"_help")),e.extra&&tt.push("".concat(Se,"_extra")),Ue["aria-describedby"]=tt.join(" ")}Y.length>0&&(Ue["aria-invalid"]="true"),ye&&(Ue["aria-required"]="true"),Eh(s)&&(Ue.ref=q(ge,s));var it=new Set([].concat(Nt(J0(d)),Nt(J0(I))));it.forEach(function(ve){Ue[ve]=function(){for(var Te,Be,Ge,ht,We,Ke=arguments.length,Xe=new Array(Ke),$e=0;$e<Ke;$e++)Xe[$e]=arguments[$e];(Ge=pe[ve])===null||Ge===void 0||(Te=Ge).call.apply(Te,[pe].concat(Xe)),(We=(ht=s.props)[ve])===null||We===void 0||(Be=We).call.apply(Be,[ht].concat(Xe))}});var we=[Ue["aria-required"],Ue["aria-invalid"],Ue["aria-describedby"]];Qe=m.createElement(zXe,{value:pe[e.valuePropName||"value"],update:s,childProps:we},ia(s,Ue))}else C&&(i||n)&&!S?Qe=s(ue):Qe=s}return ee(Qe,Se,ye)})}var $Ee=YXe;$Ee.useStatus=SXe;var LXe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},UXe=function(t){var r=t.prefixCls,n=t.children,a=LXe(t,["prefixCls","children"]),i=m.useContext(Mr),o=i.getPrefixCls,s=o("form",r),l=m.useMemo(function(){return{prefixCls:s,status:"error"}},[s]);return m.createElement(JY,oe({},a),function(A,c,u){return m.createElement(qY.Provider,{value:l},n(A.map(function(d){return oe(oe({},d),{fieldKey:d.key})}),c,{errors:u.errors,warnings:u.warnings}))})};function HXe(){var e=m.useContext(td),t=e.form;return t}var _e=bXe;_e.Item=$Ee;_e.List=UXe;_e.ErrorList=WEe;_e.useForm=ZEe;_e.useFormInstance=HXe;_e.useWatch=XY;_e.Provider=zve;_e.create=function(){};function HX(e){var t=e.getBoundingClientRect(),r=document.documentElement;return{left:t.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}function GXe(){var e=$({},C2e);return e.useId}var GX=0,KX=GXe();const KXe=KX?function(t){var r=KX();return t||r}:function(t){var r=m.useState("ssr-id"),n=De(r,2),a=n[0],i=n[1];return m.useEffect(function(){var o=GX;GX+=1,i("rc_unique_".concat(o))},[]),t||a};function VXe(e){var t=e.prefixCls,r=e.style,n=e.visible,a=e.maskProps,i=e.motionName;return m.createElement(Ri,{key:"mask",visible:n,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(o,s){var l=o.className,A=o.style;return m.createElement("div",oe({ref:s,style:$($({},A),r),className:He("".concat(t,"-mask"),l)},a))})}function VX(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function JX(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var a=e.document;r=a.documentElement[n],typeof r!="number"&&(r=a.body[n])}return r}function JXe(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,a=n.defaultView||n.parentWindow;return r.left+=JX(a),r.top+=JX(a,!0),r}const WXe=m.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r});var WX={width:0,height:0,overflow:"hidden",outline:"none"},e0e=te.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,i=e.title,o=e.ariaId,s=e.footer,l=e.closable,A=e.closeIcon,c=e.onClose,u=e.children,d=e.bodyStyle,f=e.bodyProps,h=e.modalRender,g=e.onMouseDown,p=e.onMouseUp,E=e.holderRef,y=e.visible,C=e.forceRender,w=e.width,B=e.height,M=m.useRef(),I=m.useRef();te.useImperativeHandle(t,function(){return{focus:function(){var N;(N=M.current)===null||N===void 0||N.focus({preventScroll:!0})},changeActive:function(N){var k=document,O=k.activeElement;N&&O===I.current?M.current.focus({preventScroll:!0}):!N&&O===M.current&&I.current.focus({preventScroll:!0})}}});var S={};w!==void 0&&(S.width=w),B!==void 0&&(S.height=B);var R;s&&(R=te.createElement("div",{className:"".concat(r,"-footer")},s));var b;i&&(b=te.createElement("div",{className:"".concat(r,"-header")},te.createElement("div",{className:"".concat(r,"-title"),id:o},i)));var Q;l&&(Q=te.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:"".concat(r,"-close")},A||te.createElement("span",{className:"".concat(r,"-close-x")})));var D=te.createElement("div",{className:"".concat(r,"-content")},Q,b,te.createElement("div",oe({className:"".concat(r,"-body"),style:d},f),u),R);return te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?o:null,"aria-modal":"true",ref:E,style:$($({},a),S),className:He(r,n),onMouseDown:g,onMouseUp:p},te.createElement("div",{tabIndex:0,ref:M,style:WX}),te.createElement(WXe,{shouldUpdate:y||C},h?h(D):D),te.createElement("div",{tabIndex:0,ref:I,style:WX}))}),t0e=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,a=e.style,i=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,A=e.motionName,c=e.ariaId,u=e.onVisibleChanged,d=e.mousePosition,f=m.useRef(),h=m.useState(),g=De(h,2),p=g[0],E=g[1],y={};p&&(y.transformOrigin=p);function C(){var w=JXe(f.current);E(d?"".concat(d.x-w.left,"px ").concat(d.y-w.top,"px"):"")}return m.createElement(Ri,{visible:o,onVisibleChanged:u,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:A,removeOnLeave:l,ref:f},function(w,B){var M=w.className,I=w.style;return m.createElement(e0e,oe({},e,{ref:t,title:n,ariaId:c,prefixCls:r,holderRef:B,style:$($($({},I),a),y),className:He(i,M)}))})});t0e.displayName="Content";function XXe(e){var t=e.prefixCls,r=t===void 0?"rc-dialog":t,n=e.zIndex,a=e.visible,i=a===void 0?!1:a,o=e.keyboard,s=o===void 0?!0:o,l=e.focusTriggerAfterClose,A=l===void 0?!0:l,c=e.wrapStyle,u=e.wrapClassName,d=e.wrapProps,f=e.onClose,h=e.afterClose,g=e.transitionName,p=e.animation,E=e.closable,y=E===void 0?!0:E,C=e.mask,w=C===void 0?!0:C,B=e.maskTransitionName,M=e.maskAnimation,I=e.maskClosable,S=I===void 0?!0:I,R=e.maskStyle,b=e.maskProps,Q=e.rootClassName,D=m.useRef(),F=m.useRef(),N=m.useRef(),k=m.useState(i),O=De(k,2),P=O[0],z=O[1],j=KXe();function V(){Nf(F.current,document.activeElement)||(D.current=document.activeElement)}function L(){if(!Nf(F.current,document.activeElement)){var ce;(ce=N.current)===null||ce===void 0||ce.focus()}}function K(ce){if(ce)L();else{if(z(!1),w&&D.current&&A){try{D.current.focus({preventScroll:!0})}catch{}D.current=null}P&&(h==null||h())}}function J(ce){f==null||f(ce)}var Y=m.useRef(!1),W=m.useRef(),q=function(){clearTimeout(W.current),Y.current=!0},ee=function(){W.current=setTimeout(function(){Y.current=!1})},ae=null;S&&(ae=function(ue){Y.current?Y.current=!1:F.current===ue.target&&J(ue)});function ne(ce){if(s&&ce.keyCode===Pt.ESC){ce.stopPropagation(),J(ce);return}i&&ce.keyCode===Pt.TAB&&N.current.changeActive(!ce.shiftKey)}return m.useEffect(function(){i&&(z(!0),V())},[i]),m.useEffect(function(){return function(){clearTimeout(W.current)}},[]),m.createElement("div",oe({className:He("".concat(r,"-root"),Q)},Qc(e,{data:!0})),m.createElement(VXe,{prefixCls:r,visible:w&&i,motionName:VX(r,B,M),style:$({zIndex:n},R),maskProps:b}),m.createElement("div",oe({tabIndex:-1,onKeyDown:ne,className:He("".concat(r,"-wrap"),u),ref:F,onClick:ae,style:$($({zIndex:n},c),{},{display:P?null:"none"})},d),m.createElement(t0e,oe({},e,{onMouseDown:q,onMouseUp:ee,ref:N,closable:y,ariaId:j,prefixCls:r,visible:i&&P,onClose:J,onVisibleChanged:K,motionName:VX(r,g,p)}))))}var N5=function(t){var r=t.visible,n=t.getContainer,a=t.forceRender,i=t.destroyOnClose,o=i===void 0?!1:i,s=t.afterClose,l=m.useState(r),A=De(l,2),c=A[0],u=A[1];return m.useEffect(function(){r&&u(!0)},[r]),!a&&o&&!c?null:m.createElement(VEe,{open:r||a||c,autoDestroy:!1,getContainer:n,autoLock:r||c},m.createElement(XXe,oe({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),u(!1)}})))};N5.displayName="Dialog";const qXe=Object.freeze(Object.defineProperty({__proto__:null,Panel:e0e,default:N5},Symbol.toStringTag,{value:"Module"}));var ZXe=function(t){var r=m.useContext(Mr),n=r.getPrefixCls,a=r.direction,i=t.prefixCls,o=t.className,s=o===void 0?"":o,l=n("input-group",i),A=He(l,X(X(X(X({},"".concat(l,"-lg"),t.size==="large"),"".concat(l,"-sm"),t.size==="small"),"".concat(l,"-compact"),t.compact),"".concat(l,"-rtl"),a==="rtl"),s),c=m.useContext(Qi),u=m.useMemo(function(){return oe(oe({},c),{isFormItemInput:!1})},[c]);return m.createElement("span",{className:A,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},m.createElement(Qi.Provider,{value:u},t.children))};function yI(e){return!!(e.addonBefore||e.addonAfter)}function r0e(e){return!!(e.prefix||e.suffix||e.allowClear)}function XX(e,t,r,n){if(r){var a=t;if(t.type==="click"){var i=e.cloneNode(!0);a=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",r(a);return}r(a)}}function $Xe(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}function qX(e){return typeof e>"u"||e===null?"":String(e)}var n0e=function(t){var r=t.inputElement,n=t.prefixCls,a=t.prefix,i=t.suffix,o=t.addonBefore,s=t.addonAfter,l=t.className,A=t.style,c=t.affixWrapperClassName,u=t.groupClassName,d=t.wrapperClassName,f=t.disabled,h=t.readOnly,g=t.focused,p=t.triggerFocus,E=t.allowClear,y=t.value,C=t.handleReset,w=t.hidden,B=m.useRef(null),M=function(z){var j;(j=B.current)!==null&&j!==void 0&&j.contains(z.target)&&(p==null||p())},I=function(){var z;if(!E)return null;var j=!f&&!h&&y,V="".concat(n,"-clear-icon"),L=Xt(E)==="object"&&E!==null&&E!==void 0&&E.clearIcon?E.clearIcon:"✖";return te.createElement("span",{onClick:C,onMouseDown:function(J){return J.preventDefault()},className:He(V,(z={},X(z,"".concat(V,"-hidden"),!j),X(z,"".concat(V,"-has-suffix"),!!i),z)),role:"button",tabIndex:-1},L)},S=m.cloneElement(r,{value:y,hidden:w});if(r0e(t)){var R,b="".concat(n,"-affix-wrapper"),Q=He(b,(R={},X(R,"".concat(b,"-disabled"),f),X(R,"".concat(b,"-focused"),g),X(R,"".concat(b,"-readonly"),h),X(R,"".concat(b,"-input-with-clear-btn"),i&&E&&y),R),!yI(t)&&l,c),D=(i||E)&&te.createElement("span",{className:"".concat(n,"-suffix")},I(),i);S=te.createElement("span",{className:Q,style:A,hidden:!yI(t)&&w,onClick:M,ref:B},a&&te.createElement("span",{className:"".concat(n,"-prefix")},a),m.cloneElement(r,{style:null,value:y,hidden:null}),D)}if(yI(t)){var F="".concat(n,"-group"),N="".concat(F,"-addon"),k=He("".concat(n,"-wrapper"),F,d),O=He("".concat(n,"-group-wrapper"),l,u);return te.createElement("span",{className:O,style:A,hidden:w},te.createElement("span",{className:k},o&&te.createElement("span",{className:N},o),m.cloneElement(S,{style:null,hidden:null}),s&&te.createElement("span",{className:N},s)))}return S},eqe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName"],a0e=m.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,i=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,A=l===void 0?"rc-input":l,c=e.disabled,u=e.htmlSize,d=e.className,f=e.maxLength,h=e.suffix,g=e.showCount,p=e.type,E=p===void 0?"text":p,y=e.inputClassName,C=Tr(e,eqe),w=Qn(e.defaultValue,{value:e.value}),B=De(w,2),M=B[0],I=B[1],S=m.useState(!1),R=De(S,2),b=R[0],Q=R[1],D=m.useRef(null),F=function(K){D.current&&$Xe(D.current,K)};m.useImperativeHandle(t,function(){return{focus:F,blur:function(){var K;(K=D.current)===null||K===void 0||K.blur()},setSelectionRange:function(K,J,Y){var W;(W=D.current)===null||W===void 0||W.setSelectionRange(K,J,Y)},select:function(){var K;(K=D.current)===null||K===void 0||K.select()},input:D.current}}),m.useEffect(function(){Q(function(L){return L&&c?!1:L})},[c]);var N=function(K){e.value===void 0&&I(K.target.value),D.current&&XX(D.current,K,n)},k=function(K){o&&K.key==="Enter"&&o(K),s==null||s(K)},O=function(K){Q(!0),a==null||a(K)},P=function(K){Q(!1),i==null||i(K)},z=function(K){I(""),F(),D.current&&XX(D.current,K,n)},j=function(){var K=Ia(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName","htmlSize"]);return te.createElement("input",oe({autoComplete:r},K,{onChange:N,onFocus:O,onBlur:P,onKeyDown:k,className:He(A,X({},"".concat(A,"-disabled"),c),y,!yI(e)&&!r0e(e)&&d),ref:D,size:u,type:E}))},V=function(){var K=Number(f)>0;if(h||g){var J=qX(M),Y=Nt(J).length,W=Xt(g)==="object"?g.formatter({value:J,count:Y,maxLength:f}):"".concat(Y).concat(K?" / ".concat(f):"");return te.createElement(te.Fragment,null,!!g&&te.createElement("span",{className:He("".concat(A,"-show-count-suffix"),X({},"".concat(A,"-show-count-has-suffix"),!!h))},W),h)}return null};return te.createElement(n0e,oe({},C,{prefixCls:A,className:d,inputElement:j(),handleReset:z,value:qX(M),focused:b,triggerFocus:F,suffix:V(),disabled:c}))});const tqe=Object.freeze(Object.defineProperty({__proto__:null,BaseInput:n0e,default:a0e},Symbol.toStringTag,{value:"Module"}));function i0e(e,t){var r=m.useRef([]),n=function(){r.current.push(setTimeout(function(){var i,o,s,l;!((i=e.current)===null||i===void 0)&&i.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((s=e.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return m.useEffect(function(){return t&&n(),function(){return r.current.forEach(function(a){a&&clearTimeout(a)})}},[]),n}function rqe(e){return!!(e.prefix||e.suffix||e.allowClear)}var nqe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function aqe(e){return typeof e>"u"||e===null?"":String(e)}function pN(e,t,r,n){if(r){var a=t;if(t.type==="click"){var i=e.cloneNode(!0);a=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",r(a);return}if(n!==void 0){a=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=n,r(a);return}r(a)}}function iqe(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a);break}}}}var k5=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.bordered,a=n===void 0?!0:n,i=e.status,o=e.size,s=e.disabled,l=e.onBlur,A=e.onFocus,c=e.suffix,u=e.allowClear,d=e.addonAfter,f=e.addonBefore,h=e.className,g=e.onChange,p=nqe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","onChange"]),E=te.useContext(Mr),y=E.getPrefixCls,C=E.direction,w=E.input,B=y("input",r),M=m.useRef(null),I=kc(B,C),S=I.compactSize,R=I.compactItemClassnames,b=te.useContext(Ti),Q=S||o||b,D=te.useContext(Fo),F=s??D,N=m.useContext(Qi),k=N.status,O=N.hasFeedback,P=N.feedbackIcon,z=Nc(k,i),j=rqe(e)||!!O,V=m.useRef(j);m.useEffect(function(){j&&V.current,V.current=j},[j]);var L=i0e(M,!0),K=function(ae){L(),l==null||l(ae)},J=function(ae){L(),A==null||A(ae)},Y=function(ae){L(),g==null||g(ae)},W=(O||c)&&te.createElement(te.Fragment,null,c,O&&P),q;return Xt(u)==="object"&&(u!=null&&u.clearIcon)?q=u:u&&(q={clearIcon:te.createElement(kl,null)}),te.createElement(a0e,oe({ref:As(t,M),prefixCls:B,autoComplete:w==null?void 0:w.autoComplete},p,{disabled:F||void 0,onBlur:K,onFocus:J,suffix:W,allowClear:q,className:He(h,R),onChange:Y,addonAfter:d&&te.createElement($f,null,te.createElement(av,{override:!0,status:!0},d)),addonBefore:f&&te.createElement($f,null,te.createElement(av,{override:!0,status:!0},f)),inputClassName:He(X(X(X(X({},"".concat(B,"-sm"),Q==="small"),"".concat(B,"-lg"),Q==="large"),"".concat(B,"-rtl"),C==="rtl"),"".concat(B,"-borderless"),!a),!j&&Qo(B,z)),affixWrapperClassName:He(X(X(X(X({},"".concat(B,"-affix-wrapper-sm"),Q==="small"),"".concat(B,"-affix-wrapper-lg"),Q==="large"),"".concat(B,"-affix-wrapper-rtl"),C==="rtl"),"".concat(B,"-affix-wrapper-borderless"),!a),Qo("".concat(B,"-affix-wrapper"),z,O)),wrapperClassName:He(X({},"".concat(B,"-group-rtl"),C==="rtl")),groupClassName:He(X(X(X({},"".concat(B,"-group-wrapper-sm"),Q==="small"),"".concat(B,"-group-wrapper-lg"),Q==="large"),"".concat(B,"-group-wrapper-rtl"),C==="rtl"),Qo("".concat(B,"-group-wrapper"),z,O))}))}),oqe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},sqe=function(t){return t?m.createElement(q3,null):m.createElement(X3,null)},lqe={click:"onClick",hover:"onMouseOver"},Aqe=m.forwardRef(function(e,t){var r=e.visibilityToggle,n=r===void 0?!0:r,a=Xt(n)==="object"&&n.visible!==void 0,i=m.useState(function(){return a?n.visible:!1}),o=De(i,2),s=o[0],l=o[1],A=m.useRef(null);m.useEffect(function(){a&&l(n.visible)},[a,n]);var c=i0e(A),u=function(){var g=e.disabled;g||(s&&c(),l(function(p){var E,y=!p;return Xt(n)==="object"&&((E=n.onVisibleChange)===null||E===void 0||E.call(n,y)),y}))},d=function(g){var p=e.action,E=p===void 0?"click":p,y=e.iconRender,C=y===void 0?sqe:y,w=lqe[E]||"",B=C(s),M=X(X(X(X(X({},w,u),"className","".concat(g,"-icon")),"key","passwordIcon"),"onMouseDown",function(S){S.preventDefault()}),"onMouseUp",function(S){S.preventDefault()});return m.cloneElement(m.isValidElement(B)?B:m.createElement("span",null,B),M)},f=function(g){var p=g.getPrefixCls,E=e.className,y=e.prefixCls,C=e.inputPrefixCls,w=e.size,B=oqe(e,["className","prefixCls","inputPrefixCls","size"]),M=p("input",C),I=p("input-password",y),S=n&&d(I),R=He(I,E,X({},"".concat(I,"-").concat(w),!!w)),b=oe(oe({},Ia(B,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:R,prefixCls:M,suffix:S});return w&&(b.size=w),m.createElement(k5,oe({ref:As(t,A)},b))};return m.createElement(gd,null,f)}),cqe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},uqe=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.inputPrefixCls,a=e.className,i=e.size,o=e.suffix,s=e.enterButton,l=s===void 0?!1:s,A=e.addonAfter,c=e.loading,u=e.disabled,d=e.onSearch,f=e.onChange,h=e.onCompositionStart,g=e.onCompositionEnd,p=cqe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),E=m.useContext(Mr),y=E.getPrefixCls,C=E.direction,w=m.useContext(Ti),B=m.useRef(!1),M=y("input-search",r),I=y("input",n),S=kc(M,C),R=S.compactSize,b=R||i||w,Q=m.useRef(null),D=function(W){W&&W.target&&W.type==="click"&&d&&d(W.target.value,W),f&&f(W)},F=function(W){var q;document.activeElement===((q=Q.current)===null||q===void 0?void 0:q.input)&&W.preventDefault()},N=function(W){var q,ee;d&&d((ee=(q=Q.current)===null||q===void 0?void 0:q.input)===null||ee===void 0?void 0:ee.value,W)},k=function(W){B.current||c||N(W)},O=typeof l=="boolean"?m.createElement(DA,null):null,P="".concat(M,"-button"),z,j=l||{},V=j.type&&j.type.__ANT_BUTTON===!0;V||j.type==="button"?z=ia(j,oe({onMouseDown:F,onClick:function(W){var q,ee;(ee=(q=j==null?void 0:j.props)===null||q===void 0?void 0:q.onClick)===null||ee===void 0||ee.call(q,W),N(W)},key:"enterButton"},V?{className:P,size:b}:{})):z=m.createElement(nt,{className:P,type:l?"primary":void 0,size:b,disabled:u,key:"enterButton",onMouseDown:F,onClick:N,loading:c,icon:O},l),A&&(z=[z,ia(A,{key:"addonAfter"})]);var L=He(M,X(X(X({},"".concat(M,"-rtl"),C==="rtl"),"".concat(M,"-").concat(b),!!b),"".concat(M,"-with-button"),!!l),a),K=function(W){B.current=!0,h==null||h(W)},J=function(W){B.current=!1,g==null||g(W)};return m.createElement(k5,oe({ref:As(Q,t),onPressEnter:k},p,{size:b,onCompositionStart:K,onCompositionEnd:J,prefixCls:I,addonAfter:z,suffix:o,onChange:D,className:L,disabled:u}))}),dqe=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,fqe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],vN={},xs;function hqe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&vN[r])return vN[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),o=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=fqe.map(function(A){return"".concat(A,":").concat(n.getPropertyValue(A))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:o,boxSizing:a};return t&&r&&(vN[r]=l),l}function gqe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;xs||(xs=document.createElement("textarea"),xs.setAttribute("tab-index","-1"),xs.setAttribute("aria-hidden","true"),document.body.appendChild(xs)),e.getAttribute("wrap")?xs.setAttribute("wrap",e.getAttribute("wrap")):xs.removeAttribute("wrap");var a=hqe(e,t),i=a.paddingSize,o=a.borderSize,s=a.boxSizing,l=a.sizingStyle;xs.setAttribute("style","".concat(l,";").concat(dqe)),xs.value=e.value||e.placeholder||"";var A=void 0,c=void 0,u,d=xs.scrollHeight;if(s==="border-box"?d+=o:s==="content-box"&&(d-=i),r!==null||n!==null){xs.value=" ";var f=xs.scrollHeight-i;r!==null&&(A=f*r,s==="border-box"&&(A=A+i+o),d=Math.max(A,d)),n!==null&&(c=f*n,s==="border-box"&&(c=c+i+o),u=d>c?"":"hidden",d=Math.min(c,d))}var h={height:d,overflowY:u,resize:"none"};return A&&(h.minHeight=A),c&&(h.maxHeight=c),h}var pqe=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],mN=0,EN=1,yN=2,o0e=m.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-textarea":r;e.onPressEnter;var a=e.defaultValue,i=e.value,o=e.autoSize,s=e.onResize,l=e.className,A=e.style,c=e.disabled,u=e.onChange;e.onInternalAutoSize;var d=Tr(e,pqe),f=Qn(a,{value:i,postState:function(Y){return Y??""}}),h=De(f,2),g=h[0],p=h[1],E=function(Y){p(Y.target.value),u==null||u(Y)},y=m.useRef();m.useImperativeHandle(t,function(){return{textArea:y.current}});var C=m.useMemo(function(){return o&&Xt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),w=De(C,2),B=w[0],M=w[1],I=!!o,S=function(){try{if(document.activeElement===y.current){var Y=y.current,W=Y.selectionStart,q=Y.selectionEnd,ee=Y.scrollTop;y.current.setSelectionRange(W,q),y.current.scrollTop=ee}}catch{}},R=m.useState(yN),b=De(R,2),Q=b[0],D=b[1],F=m.useState(),N=De(F,2),k=N[0],O=N[1],P=function(){D(mN)};Wn(function(){I&&P()},[i,B,M,I]),Wn(function(){if(Q===mN)D(EN);else if(Q===EN){var J=gqe(y.current,!1,B,M);D(yN),O(J)}else S()},[Q]);var z=m.useRef(),j=function(){fn.cancel(z.current)},V=function(Y){Q===yN&&(s==null||s(Y),o&&(j(),z.current=fn(function(){P()})))};m.useEffect(function(){return j},[]);var L=I?k:null,K=$($({},A),L);return(Q===mN||Q===EN)&&(K.overflowY="hidden",K.overflowX="hidden"),m.createElement(ks,{onResize:V,disabled:!(o||s)},m.createElement("textarea",oe({},d,{ref:y,style:K,className:He(n,l,X({},"".concat(n,"-disabled"),c)),disabled:c,value:g,onChange:E})))}),s0e=function(e){xn(r,e);var t=sa(r);function r(n){var a;sn(this,r),a=t.call(this,n),a.resizableTextArea=void 0,a.focus=function(){a.resizableTextArea.textArea.focus()},a.saveTextArea=function(o){a.resizableTextArea=o},a.handleChange=function(o){var s=a.props.onChange;a.setValue(o.target.value),s&&s(o)},a.handleKeyDown=function(o){var s=a.props,l=s.onPressEnter,A=s.onKeyDown;o.keyCode===13&&l&&l(o),A&&A(o)};var i=typeof n.value>"u"||n.value===null?n.defaultValue:n.value;return a.state={value:i},a}return ln(r,[{key:"setValue",value:function(a,i){"value"in this.props||this.setState({value:a},i)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return m.createElement(o0e,oe({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(a){return"value"in a?{value:a.value}:null}}]),r}(m.Component);const vqe=Object.freeze(Object.defineProperty({__proto__:null,ResizableTextArea:o0e,default:s0e},Symbol.toStringTag,{value:"Module"}));function mqe(e,t,r){return t=Ma(t),Vs(e,FA()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}var Eqe=fi("text","input");function yqe(e){return!!(e.addonBefore||e.addonAfter)}var Cqe=function(e){xn(t,e);function t(){return sn(this,t),mqe(this,t,arguments)}return ln(t,[{key:"renderClearIcon",value:function(n){var a=this.props,i=a.value,o=a.disabled,s=a.readOnly,l=a.handleReset,A=a.suffix,c=!o&&!s&&i,u="".concat(n,"-clear-icon");return m.createElement(kl,{onClick:l,onMouseDown:function(f){return f.preventDefault()},className:He(X(X({},"".concat(u,"-hidden"),!c),"".concat(u,"-has-suffix"),!!A),u),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(n,a,i){var o=this.props,s=o.value,l=o.allowClear,A=o.className,c=o.focused,u=o.style,d=o.direction,f=o.bordered,h=o.hidden,g=o.status,p=i.status,E=i.hasFeedback;if(!l)return ia(a,{value:s});var y=He("".concat(n,"-affix-wrapper"),"".concat(n,"-affix-wrapper-textarea-with-clear-btn"),Qo("".concat(n,"-affix-wrapper"),Nc(p,g),E),X(X(X(X({},"".concat(n,"-affix-wrapper-focused"),c),"".concat(n,"-affix-wrapper-rtl"),d==="rtl"),"".concat(n,"-affix-wrapper-borderless"),!f),"".concat(A),!yqe(this.props)&&A));return m.createElement("span",{className:y,style:u,hidden:h},ia(a,{style:null,value:s}),this.renderClearIcon(n))}},{key:"render",value:function(){var n=this;return m.createElement(Qi.Consumer,null,function(a){var i=n.props,o=i.prefixCls,s=i.inputType,l=i.element;if(s===Eqe[0])return n.renderTextAreaWithClearIcon(o,l,a)})}}]),t}(m.Component),wqe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function l0e(e,t){return Nt(e||"").slice(0,t).join("")}function ZX(e,t,r,n){var a=r;return e?a=l0e(r,n):Nt(t||"").length<r.length&&Nt(r||"").length>n&&(a=t),a}var A0e=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.bordered,a=n===void 0?!0:n,i=e.showCount,o=i===void 0?!1:i,s=e.maxLength,l=e.className,A=e.style,c=e.size,u=e.disabled,d=e.onCompositionStart,f=e.onCompositionEnd,h=e.onChange,g=e.onFocus,p=e.onBlur,E=e.status,y=wqe(e,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","onFocus","onBlur","status"]),C=m.useContext(Mr),w=C.getPrefixCls,B=C.direction,M=m.useContext(Ti),I=m.useContext(Fo),S=u??I,R=m.useContext(Qi),b=R.status,Q=R.hasFeedback,D=R.isFormItemInput,F=R.feedbackIcon,N=Nc(b,E),k=m.useRef(null),O=m.useRef(null),P=m.useState(!1),z=De(P,2),j=z[0],V=z[1],L=m.useState(!1),K=De(L,2),J=K[0],Y=K[1],W=m.useRef(),q=m.useRef(0),ee=Qn(y.defaultValue,{value:y.value}),ae=De(ee,2),ne=ae[0],ce=ae[1],ue=y.hidden,ge=function(Ke,Xe){y.value===void 0&&ce(Ke)},Se=Number(s)>0,ye=function(Ke){V(!0),W.current=ne,q.current=Ke.currentTarget.selectionStart,d==null||d(Ke)},pe=function(Ke){var Xe;V(!1);var $e=Ke.currentTarget.value;if(Se){var pt=q.current>=s+1||q.current===((Xe=W.current)===null||Xe===void 0?void 0:Xe.length);$e=ZX(pt,W.current,$e,s)}$e!==ne&&(ge($e),pN(Ke.currentTarget,Ke,h,$e)),f==null||f(Ke)},Qe=function(Ke){var Xe=Ke.target.value;if(!j&&Se){var $e=Ke.target.selectionStart>=s+1||Ke.target.selectionStart===Xe.length||!Ke.target.selectionStart;Xe=ZX($e,ne,Xe,s)}ge(Xe),pN(Ke.currentTarget,Ke,h,Xe)},Ue=function(Ke){Y(!1),p==null||p(Ke)},tt=function(Ke){Y(!0),g==null||g(Ke)};m.useEffect(function(){Y(function(We){return!S&&We})},[S]);var it=function(Ke){var Xe,$e,pt;ge(""),(Xe=k.current)===null||Xe===void 0||Xe.focus(),pN((pt=($e=k.current)===null||$e===void 0?void 0:$e.resizableTextArea)===null||pt===void 0?void 0:pt.textArea,Ke,h)},we=w("input",r);m.useImperativeHandle(t,function(){var We;return{resizableTextArea:(We=k.current)===null||We===void 0?void 0:We.resizableTextArea,focus:function(Xe){var $e,pt;iqe((pt=($e=k.current)===null||$e===void 0?void 0:$e.resizableTextArea)===null||pt===void 0?void 0:pt.textArea,Xe)},blur:function(){var Xe;return(Xe=k.current)===null||Xe===void 0?void 0:Xe.blur()}}});var ve=m.createElement(s0e,oe({},Ia(y,["allowClear"]),{disabled:S,className:He(X(X(X(X({},"".concat(we,"-borderless"),!a),l,l&&!o),"".concat(we,"-sm"),M==="small"||c==="small"),"".concat(we,"-lg"),M==="large"||c==="large"),Qo(we,N)),style:o?{resize:A==null?void 0:A.resize}:A,prefixCls:we,onCompositionStart:ye,onChange:Qe,onBlur:Ue,onFocus:tt,onCompositionEnd:pe,ref:k})),Te=aqe(ne);!j&&Se&&(y.value===null||y.value===void 0)&&(Te=l0e(Te,s));var Be=m.createElement(Cqe,oe({disabled:S,focused:J},y,{prefixCls:we,direction:B,inputType:"text",value:Te,element:ve,handleReset:it,ref:O,bordered:a,status:E,style:o?void 0:A}));if(o||Q){var Ge=Nt(Te).length,ht="";return Xt(o)==="object"?ht=o.formatter({value:Te,count:Ge,maxLength:s}):ht="".concat(Ge).concat(Se?" / ".concat(s):""),m.createElement("div",{hidden:ue,className:He("".concat(we,"-textarea"),X(X(X({},"".concat(we,"-textarea-rtl"),B==="rtl"),"".concat(we,"-textarea-show-count"),o),"".concat(we,"-textarea-in-form-item"),D),Qo("".concat(we,"-textarea"),N,Q),l),style:A,"data-count":ht},Be,Q&&m.createElement("span",{className:"".concat(we,"-textarea-suffix")},F))}return Be}),mt=k5;mt.Group=ZXe;mt.Search=uqe;mt.TextArea=A0e;mt.Password=Aqe;function Xz(){return typeof BigInt=="function"}function zf(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",a=n.split("."),i=a[0]||"0",o=a[1]||"0";i==="0"&&o==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:i,decimalStr:o,fullStr:"".concat(s).concat(n)}}function P5(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function xy(e){var t=String(e);if(P5(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&O5(t)?t.length-t.indexOf(".")-1:0}function RR(e){var t=String(e);if(P5(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Xz()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Xz()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(xy(t))}return zf(t).fullStr}function O5(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}function $X(e){var t=typeof e=="number"?RR(e):zf(e).fullStr,r=t.includes(".");return r?zf(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Bqe=function(){function e(t){if(sn(this,e),this.origin="",this.number=void 0,this.empty=void 0,!t&&t!==0||!String(t).trim()){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return ln(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var a=this.number+n;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(xy(this.number),xy(n));return new e(a.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(r){return this.toNumber()===(r==null?void 0:r.toNumber())}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":RR(this.number):this.origin}}]),e}(),Mqe=function(){function e(t){if(sn(this,e),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!t&&t!==0||!String(t).trim()){this.empty=!0;return}if(this.origin=String(t),t==="-"){this.nan=!0;return}var r=t;if(P5(r)&&(r=Number(r)),r=typeof r=="string"?r:RR(r),O5(r)){var n=zf(r);this.negative=n.negative;var a=n.trimStr.split(".");this.integer=BigInt(a[0]);var i=a[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return ln(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(r){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(r,"0"));return BigInt(n)}},{key:"negate",value:function(){var r=new e(this.toString());return r.negative=!r.negative,r}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=new e(r);if(n.isInvalidate())return this;var a=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(a),o=n.alignDecimal(a),s=(i+o).toString(),l=zf(s),A=l.negativeStr,c=l.trimStr,u="".concat(A).concat(c.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(r){return this.toString()===(r==null?void 0:r.toString())}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":zf("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function hl(e){return Xz()?new Mqe(e):new Bqe(e)}function CI(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=zf(e),i=a.negativeStr,o=a.integerStr,s=a.decimalStr,l="".concat(t).concat(s),A="".concat(i).concat(o);if(r>=0){var c=Number(s[r]);if(c>=5&&!n){var u=hl(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-c));return CI(u.toString(),t,r,n)}return r===0?A:"".concat(A).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?A:"".concat(A).concat(l)}var xqe=200,Iqe=600;function bqe(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,a=e.upDisabled,i=e.downDisabled,o=e.onStep,s=m.useRef(),l=m.useRef();l.current=o;var A=function(p,E){p.preventDefault(),l.current(E);function y(){l.current(E),s.current=setTimeout(y,xqe)}s.current=setTimeout(y,Iqe)},c=function(){clearTimeout(s.current)};if(m.useEffect(function(){return c},[]),rR())return null;var u="".concat(t,"-handler"),d=He(u,"".concat(u,"-up"),X({},"".concat(u,"-up-disabled"),a)),f=He(u,"".concat(u,"-down"),X({},"".concat(u,"-down-disabled"),i)),h={unselectable:"on",role:"button",onMouseUp:c,onMouseLeave:c};return m.createElement("div",{className:"".concat(u,"-wrap")},m.createElement("span",oe({},h,{onMouseDown:function(p){A(p,!0)},"aria-label":"Increase Value","aria-disabled":a,className:d}),r||m.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),m.createElement("span",oe({},h,{onMouseDown:function(p){A(p,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:f}),n||m.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Sqe(e,t){var r=m.useRef(null);function n(){try{var i=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,i),A=s.substring(o);r.current={start:i,end:o,value:s,beforeTxt:l,afterTxt:A}}catch{}}function a(){if(e&&r.current&&t)try{var i=e.value,o=r.current,s=o.beforeTxt,l=o.afterTxt,A=o.start,c=i.length;if(i.endsWith(l))c=i.length-r.current.afterTxt.length;else if(i.startsWith(s))c=s.length;else{var u=s[A-1],d=i.indexOf(u,A-1);d!==-1&&(c=d+1)}e.setSelectionRange(c,c)}catch(f){Sn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(f.message))}}return[n,a]}const Rqe=function(){var e=m.useRef(0),t=function(){fn.cancel(e.current)};return m.useEffect(function(){return t},[]),function(r){t(),e.current=fn(function(){r()})}};var Tqe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],eq=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},tq=function(t){var r=hl(t);return r.isInvalidate()?null:r},c0e=m.forwardRef(function(e,t){var r,n=e.prefixCls,a=n===void 0?"rc-input-number":n,i=e.className,o=e.style,s=e.min,l=e.max,A=e.step,c=A===void 0?1:A,u=e.defaultValue,d=e.value,f=e.disabled,h=e.readOnly,g=e.upHandler,p=e.downHandler,E=e.keyboard,y=e.controls,C=y===void 0?!0:y,w=e.stringMode,B=e.parser,M=e.formatter,I=e.precision,S=e.decimalSeparator,R=e.onChange,b=e.onInput,Q=e.onPressEnter,D=e.onStep,F=Tr(e,Tqe),N="".concat(a,"-input"),k=m.useRef(null),O=m.useState(!1),P=De(O,2),z=P[0],j=P[1],V=m.useRef(!1),L=m.useRef(!1),K=m.useRef(!1),J=m.useState(function(){return hl(d??u)}),Y=De(J,2),W=Y[0],q=Y[1];function ee(Bt){d===void 0&&q(Bt)}var ae=m.useCallback(function(Bt,G){if(!G)return I>=0?I:Math.max(xy(Bt),xy(c))},[I,c]),ne=m.useCallback(function(Bt){var G=String(Bt);if(B)return B(G);var Ee=G;return S&&(Ee=Ee.replace(S,".")),Ee.replace(/[^\w.-]+/g,"")},[B,S]),ce=m.useRef(""),ue=m.useCallback(function(Bt,G){if(M)return M(Bt,{userTyping:G,input:String(ce.current)});var Ee=typeof Bt=="number"?RR(Bt):Bt;if(!G){var Ie=ae(Ee,G);if(O5(Ee)&&(S||Ie>=0)){var ie=S||".";Ee=CI(Ee,ie,Ie)}}return Ee},[M,ae,S]),ge=m.useState(function(){var Bt=u??d;return W.isInvalidate()&&["string","number"].includes(Xt(Bt))?Number.isNaN(Bt)?"":Bt:ue(W.toString(),!1)}),Se=De(ge,2),ye=Se[0],pe=Se[1];ce.current=ye;function Qe(Bt,G){pe(ue(Bt.isInvalidate()?Bt.toString(!1):Bt.toString(!G),G))}var Ue=m.useMemo(function(){return tq(l)},[l,I]),tt=m.useMemo(function(){return tq(s)},[s,I]),it=m.useMemo(function(){return!Ue||!W||W.isInvalidate()?!1:Ue.lessEquals(W)},[Ue,W]),we=m.useMemo(function(){return!tt||!W||W.isInvalidate()?!1:W.lessEquals(tt)},[tt,W]),ve=Sqe(k.current,z),Te=De(ve,2),Be=Te[0],Ge=Te[1],ht=function(G){return Ue&&!G.lessEquals(Ue)?Ue:tt&&!tt.lessEquals(G)?tt:null},We=function(G){return!ht(G)},Ke=function(G,Ee){var Ie=G,ie=We(Ie)||Ie.isEmpty();if(!Ie.isEmpty()&&!Ee&&(Ie=ht(Ie)||Ie,ie=!0),!h&&!f&&ie){var re=Ie.toString(),he=ae(re,Ee);return he>=0&&(Ie=hl(CI(re,".",he)),We(Ie)||(Ie=hl(CI(re,".",he,!0)))),Ie.equals(W)||(ee(Ie),R==null||R(Ie.isEmpty()?null:eq(w,Ie)),d===void 0&&Qe(Ie,Ee)),Ie}return W},Xe=Rqe(),$e=function Bt(G){if(Be(),pe(G),!L.current){var Ee=ne(G),Ie=hl(Ee);Ie.isNaN()||Ke(Ie,!0)}b==null||b(G),Xe(function(){var ie=G;B||(ie=G.replace(/。/g,".")),ie!==G&&Bt(ie)})},pt=function(){L.current=!0},de=function(){L.current=!1,$e(k.current.value)},Fe=function(G){$e(G.target.value)},je=function(G){var Ee;if(!(G&&it||!G&&we)){V.current=!1;var Ie=hl(K.current?$X(c):c);G||(Ie=Ie.negate());var ie=(W||hl(0)).add(Ie.toString()),re=Ke(ie,!1);D==null||D(eq(w,re),{offset:K.current?$X(c):c,type:G?"up":"down"}),(Ee=k.current)===null||Ee===void 0||Ee.focus()}},et=function(G){var Ee=hl(ne(ye)),Ie=Ee;Ee.isNaN()?Ie=W:Ie=Ke(Ee,G),d!==void 0?Qe(W,!1):Ie.isNaN()||Qe(Ie,!1)},xe=function(){V.current=!0},Ne=function(G){var Ee=G.which,Ie=G.shiftKey;V.current=!0,Ie?K.current=!0:K.current=!1,Ee===Pt.ENTER&&(L.current||(V.current=!1),et(!1),Q==null||Q(G)),E!==!1&&!L.current&&[Pt.UP,Pt.DOWN].includes(Ee)&&(je(Pt.UP===Ee),G.preventDefault())},le=function(){V.current=!1,K.current=!1},At=function(){et(!1),j(!1),V.current=!1};return Tp(function(){W.isInvalidate()||Qe(W,!1)},[I]),Tp(function(){var Bt=hl(d);q(Bt);var G=hl(ne(ye));(!Bt.equals(G)||!V.current||M)&&Qe(Bt,V.current)},[d]),Tp(function(){M&&Ge()},[ye]),m.createElement("div",{className:He(a,i,(r={},X(r,"".concat(a,"-focused"),z),X(r,"".concat(a,"-disabled"),f),X(r,"".concat(a,"-readonly"),h),X(r,"".concat(a,"-not-a-number"),W.isNaN()),X(r,"".concat(a,"-out-of-range"),!W.isInvalidate()&&!We(W)),r)),style:o,onFocus:function(){j(!0)},onBlur:At,onKeyDown:Ne,onKeyUp:le,onCompositionStart:pt,onCompositionEnd:de,onBeforeInput:xe},C&&m.createElement(bqe,{prefixCls:a,upNode:g,downNode:p,upDisabled:it,downDisabled:we,onStep:je}),m.createElement("div",{className:"".concat(N,"-wrap")},m.createElement("input",oe({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":W.isInvalidate()?null:W.toString(),step:c},F,{ref:As(k,t),className:N,value:ye,onChange:Fe,disabled:f,readOnly:h}))))});c0e.displayName="InputNumber";var Qqe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},u0e=m.forwardRef(function(e,t){var r=m.useContext(Mr),n=r.getPrefixCls,a=r.direction,i=m.useContext(Ti),o=m.useState(!1),s=De(o,2),l=s[0],A=s[1],c=m.useRef(null);m.useImperativeHandle(t,function(){return c.current});var u=e.className,d=e.size,f=e.disabled,h=e.prefixCls,g=e.addonBefore,p=e.addonAfter,E=e.prefix,y=e.bordered,C=y===void 0?!0:y,w=e.readOnly,B=e.status,M=e.controls,I=Qqe(e,["className","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),S=n("input-number",h),R=kc(S,a),b=R.compactSize,Q=R.compactItemClassnames,D=m.createElement(cNe,{className:"".concat(S,"-handler-up-inner")}),F=m.createElement(rC,{className:"".concat(S,"-handler-down-inner")}),N=typeof M=="boolean"?M:void 0;Xt(M)==="object"&&(D=typeof M.upIcon>"u"?D:m.createElement("span",{className:"".concat(S,"-handler-up-inner")},M.upIcon),F=typeof M.downIcon>"u"?F:m.createElement("span",{className:"".concat(S,"-handler-down-inner")},M.downIcon));var k=m.useContext(Qi),O=k.hasFeedback,P=k.status,z=k.isFormItemInput,j=k.feedbackIcon,V=Nc(P,B),L=b||d||i,K=m.useContext(Fo),J=f??K,Y=He(X(X(X(X(X({},"".concat(S,"-lg"),L==="large"),"".concat(S,"-sm"),L==="small"),"".concat(S,"-rtl"),a==="rtl"),"".concat(S,"-borderless"),!C),"".concat(S,"-in-form-item"),z),Qo(S,V),Q,u),W=m.createElement(c0e,oe({ref:c,disabled:J,className:Y,upHandler:D,downHandler:F,prefixCls:S,readOnly:w,controls:N},I));if(E!=null||O){var q=He("".concat(S,"-affix-wrapper"),Qo("".concat(S,"-affix-wrapper"),V,O),X(X(X(X(X(X(X(X({},"".concat(S,"-affix-wrapper-focused"),l),"".concat(S,"-affix-wrapper-disabled"),e.disabled),"".concat(S,"-affix-wrapper-sm"),i==="small"),"".concat(S,"-affix-wrapper-lg"),i==="large"),"".concat(S,"-affix-wrapper-rtl"),a==="rtl"),"".concat(S,"-affix-wrapper-readonly"),w),"".concat(S,"-affix-wrapper-borderless"),!C),"".concat(u),!(g||p)&&u));W=m.createElement("div",{className:q,style:e.style,onMouseUp:function(){return c.current.focus()}},E&&m.createElement("span",{className:"".concat(S,"-prefix")},E),ia(W,{style:null,value:e.value,onFocus:function(ye){var pe;A(!0),(pe=e.onFocus)===null||pe===void 0||pe.call(e,ye)},onBlur:function(ye){var pe;A(!1),(pe=e.onBlur)===null||pe===void 0||pe.call(e,ye)}}),O&&m.createElement("span",{className:"".concat(S,"-suffix")},j))}if(g!=null||p!=null){var ee="".concat(S,"-group"),ae="".concat(ee,"-addon"),ne=g?m.createElement("div",{className:ae},g):null,ce=p?m.createElement("div",{className:ae},p):null,ue=He("".concat(S,"-wrapper"),ee,X({},"".concat(ee,"-rtl"),a==="rtl")),ge=He("".concat(S,"-group-wrapper"),X(X(X({},"".concat(S,"-group-wrapper-sm"),i==="small"),"".concat(S,"-group-wrapper-lg"),i==="large"),"".concat(S,"-group-wrapper-rtl"),a==="rtl"),Qo("".concat(S,"-group-wrapper"),V,O),u);W=m.createElement("div",{className:ge,style:e.style},m.createElement("div",{className:ue},ne&&m.createElement($f,null,m.createElement(av,{status:!0,override:!0},ne)),ia(W,{style:null,disabled:J}),ce&&m.createElement($f,null,m.createElement(av,{status:!0,override:!0},ce))))}return W}),qm=function(t){var r,n="".concat(t.rootPrefixCls,"-item"),a=He(n,"".concat(n,"-").concat(t.page),(r={},X(r,"".concat(n,"-active"),t.active),X(r,"".concat(n,"-disabled"),!t.page),X(r,t.className,!!t.className),r)),i=function(){t.onClick(t.page)},o=function(l){t.onKeyPress(l,t.onClick,t.page)};return te.createElement("li",{title:t.showTitle?t.page:null,className:a,onClick:i,onKeyPress:o,tabIndex:"0"},t.itemRender(t.page,"page",te.createElement("a",{rel:"nofollow"},t.page)))};const cf={ENTER:13,ARROW_UP:38,ARROW_DOWN:40};var d0e=function(e){xn(r,e);var t=sa(r);function r(){var n;sn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.state={goInputText:""},n.buildOptionText=function(s){return"".concat(s," ").concat(n.props.locale.items_per_page)},n.changeSize=function(s){n.props.changeSize(Number(s))},n.handleChange=function(s){n.setState({goInputText:s.target.value})},n.handleBlur=function(s){var l=n.props,A=l.goButton,c=l.quickGo,u=l.rootPrefixCls,d=n.state.goInputText;A||d===""||(n.setState({goInputText:""}),!(s.relatedTarget&&(s.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||s.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&c(n.getValidValue()))},n.go=function(s){var l=n.state.goInputText;l!==""&&(s.keyCode===cf.ENTER||s.type==="click")&&(n.setState({goInputText:""}),n.props.quickGo(n.getValidValue()))},n}return ln(r,[{key:"getValidValue",value:function(){var a=this.state.goInputText;return!a||isNaN(a)?void 0:Number(a)}},{key:"getPageSizeOptions",value:function(){var a=this.props,i=a.pageSize,o=a.pageSizeOptions;return o.some(function(s){return s.toString()===i.toString()})?o:o.concat([i.toString()]).sort(function(s,l){var A=isNaN(Number(s))?0:Number(s),c=isNaN(Number(l))?0:Number(l);return A-c})}},{key:"render",value:function(){var a=this,i=this.props,o=i.pageSize,s=i.locale,l=i.rootPrefixCls,A=i.changeSize,c=i.quickGo,u=i.goButton,d=i.selectComponentClass,f=i.buildOptionText,h=i.selectPrefixCls,g=i.disabled,p=this.state.goInputText,E="".concat(l,"-options"),y=d,C=null,w=null,B=null;if(!A&&!c)return null;var M=this.getPageSizeOptions();if(A&&y){var I=M.map(function(S,R){return te.createElement(y.Option,{key:R,value:S.toString()},(f||a.buildOptionText)(S))});C=te.createElement(y,{disabled:g,prefixCls:h,showSearch:!1,className:"".concat(E,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(o||M[0]).toString(),onChange:this.changeSize,getPopupContainer:function(R){return R.parentNode},"aria-label":s.page_size,defaultOpen:!1},I)}return c&&(u&&(B=typeof u=="boolean"?te.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:g,className:"".concat(E,"-quick-jumper-button")},s.jump_to_confirm):te.createElement("span",{onClick:this.go,onKeyUp:this.go},u)),w=te.createElement("div",{className:"".concat(E,"-quick-jumper")},s.jump_to,te.createElement("input",{disabled:g,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,B)),te.createElement("li",{className:"".concat(E)},C,w)}}]),r}(te.Component);d0e.defaultProps={pageSizeOptions:["10","20","50","100"]};const Dqe={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};function qz(){}function rq(e){var t=Number(e);return typeof t=="number"&&!isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Fqe(e,t,r){return r}function su(e,t,r){var n=typeof e>"u"?t.pageSize:e;return Math.floor((r.total-1)/n)+1}var f0e=function(e){xn(r,e);var t=sa(r);function r(n){var a;sn(this,r),a=t.call(this,n),a.getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(su(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(A,c){var u=a.props.prefixCls,d=A||te.createElement("button",{type:"button","aria-label":c,className:"".concat(u,"-item-link")});return typeof A=="function"&&(d=te.createElement(A,$({},a.props))),d},a.savePaginationNode=function(A){a.paginationNode=A},a.isValid=function(A){var c=a.props.total;return rq(A)&&A!==a.state.current&&rq(c)&&c>0},a.shouldDisplayQuickJumper=function(){var A=a.props,c=A.showQuickJumper,u=A.total,d=a.state.pageSize;return u<=d?!1:c},a.handleKeyDown=function(A){(A.keyCode===cf.ARROW_UP||A.keyCode===cf.ARROW_DOWN)&&A.preventDefault()},a.handleKeyUp=function(A){var c=a.getValidValue(A),u=a.state.currentInputValue;c!==u&&a.setState({currentInputValue:c}),A.keyCode===cf.ENTER?a.handleChange(c):A.keyCode===cf.ARROW_UP?a.handleChange(c-1):A.keyCode===cf.ARROW_DOWN&&a.handleChange(c+1)},a.handleBlur=function(A){var c=a.getValidValue(A);a.handleChange(c)},a.changePageSize=function(A){var c=a.state.current,u=su(A,a.state,a.props);c=c>u?u:c,u===0&&(c=a.state.current),typeof A=="number"&&("pageSize"in a.props||a.setState({pageSize:A}),"current"in a.props||a.setState({current:c,currentInputValue:c})),a.props.onShowSizeChange(c,A),"onChange"in a.props&&a.props.onChange&&a.props.onChange(c,A)},a.handleChange=function(A){var c=a.props,u=c.disabled,d=c.onChange,f=a.state,h=f.pageSize,g=f.current,p=f.currentInputValue;if(a.isValid(A)&&!u){var E=su(void 0,a.state,a.props),y=A;return A>E?y=E:A<1&&(y=1),"current"in a.props||a.setState({current:y}),y!==p&&a.setState({currentInputValue:y}),d(y,h),y}return g},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current<su(void 0,a.state,a.props)},a.runIfEnter=function(A,c){if(A.key==="Enter"||A.charCode===13){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];c.apply(void 0,d)}},a.runIfEnterPrev=function(A){a.runIfEnter(A,a.prev)},a.runIfEnterNext=function(A){a.runIfEnter(A,a.next)},a.runIfEnterJumpPrev=function(A){a.runIfEnter(A,a.jumpPrev)},a.runIfEnterJumpNext=function(A){a.runIfEnter(A,a.jumpNext)},a.handleGoTO=function(A){(A.keyCode===cf.ENTER||A.type==="click")&&a.handleChange(a.state.currentInputValue)};var i=n.onChange!==qz,o="current"in n;o&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var s=n.defaultCurrent;"current"in n&&(s=n.current);var l=n.defaultPageSize;return"pageSize"in n&&(l=n.pageSize),s=Math.min(s,su(l,void 0,n)),a.state={current:s,currentInputValue:s,pageSize:l},a}return ln(r,[{key:"componentDidUpdate",value:function(a,i){var o=this.props.prefixCls;if(i.current!==this.state.current&&this.paginationNode){var s=this.paginationNode.querySelector(".".concat(o,"-item-").concat(i.current));s&&document.activeElement===s&&s.blur()}}},{key:"getValidValue",value:function(a){var i=a.target.value,o=su(void 0,this.state,this.props),s=this.state.currentInputValue,l;return i===""?l=i:isNaN(Number(i))?l=s:i>=o?l=o:l=Number(i),l}},{key:"getShowSizeChanger",value:function(){var a=this.props,i=a.showSizeChanger,o=a.total,s=a.totalBoundaryShowSizeChanger;return typeof i<"u"?i:o>s}},{key:"renderPrev",value:function(a){var i=this.props,o=i.prevIcon,s=i.itemRender,l=s(a,"prev",this.getItemIcon(o,"prev page")),A=!this.hasPrev();return m.isValidElement(l)?m.cloneElement(l,{disabled:A}):l}},{key:"renderNext",value:function(a){var i=this.props,o=i.nextIcon,s=i.itemRender,l=s(a,"next",this.getItemIcon(o,"next page")),A=!this.hasNext();return m.isValidElement(l)?m.cloneElement(l,{disabled:A}):l}},{key:"render",value:function(){var a=this,i=this.props,o=i.prefixCls,s=i.className,l=i.style,A=i.disabled,c=i.hideOnSinglePage,u=i.total,d=i.locale,f=i.showQuickJumper,h=i.showLessItems,g=i.showTitle,p=i.showTotal,E=i.simple,y=i.itemRender,C=i.showPrevNextJumpers,w=i.jumpPrevIcon,B=i.jumpNextIcon,M=i.selectComponentClass,I=i.selectPrefixCls,S=i.pageSizeOptions,R=this.state,b=R.current,Q=R.pageSize,D=R.currentInputValue;if(c===!0&&u<=Q)return null;var F=su(void 0,this.state,this.props),N=[],k=null,O=null,P=null,z=null,j=null,V=f&&f.goButton,L=h?1:2,K=b-1>0?b-1:0,J=b+1<F?b+1:F,Y=Object.keys(this.props).reduce(function(Ue,tt){return(tt.substr(0,5)==="data-"||tt.substr(0,5)==="aria-"||tt==="role")&&(Ue[tt]=a.props[tt]),Ue},{}),W=p&&te.createElement("li",{className:"".concat(o,"-total-text")},p(u,[u===0?0:(b-1)*Q+1,b*Q>u?u:b*Q]));if(E)return V&&(typeof V=="boolean"?j=te.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):j=te.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},V),j=te.createElement("li",{title:g?"".concat(d.jump_to).concat(b,"/").concat(F):null,className:"".concat(o,"-simple-pager")},j)),te.createElement("ul",oe({className:He(o,"".concat(o,"-simple"),X({},"".concat(o,"-disabled"),A),s),style:l,ref:this.savePaginationNode},Y),W,te.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:He("".concat(o,"-prev"),X({},"".concat(o,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(K)),te.createElement("li",{title:g?"".concat(b,"/").concat(F):null,className:"".concat(o,"-simple-pager")},te.createElement("input",{type:"text",value:D,disabled:A,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),te.createElement("span",{className:"".concat(o,"-slash")},"/"),F),te.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:He("".concat(o,"-next"),X({},"".concat(o,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(J)),j);if(F<=3+L*2){var q={locale:d,rootPrefixCls:o,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:y};F||N.push(te.createElement(qm,oe({},q,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var ee=1;ee<=F;ee+=1){var ae=b===ee;N.push(te.createElement(qm,oe({},q,{key:ee,page:ee,active:ae})))}}else{var ne=h?d.prev_3:d.prev_5,ce=h?d.next_3:d.next_5;C&&(k=te.createElement("li",{title:g?ne:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:He("".concat(o,"-jump-prev"),X({},"".concat(o,"-jump-prev-custom-icon"),!!w))},y(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(w,"prev page"))),O=te.createElement("li",{title:g?ce:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:He("".concat(o,"-jump-next"),X({},"".concat(o,"-jump-next-custom-icon"),!!B))},y(this.getJumpNextPage(),"jump-next",this.getItemIcon(B,"next page")))),z=te.createElement(qm,{locale:d,last:!0,rootPrefixCls:o,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:F,page:F,active:!1,showTitle:g,itemRender:y}),P=te.createElement(qm,{locale:d,rootPrefixCls:o,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:y});var ue=Math.max(1,b-L),ge=Math.min(b+L,F);b-1<=L&&(ge=1+L*2),F-b<=L&&(ue=F-L*2);for(var Se=ue;Se<=ge;Se+=1){var ye=b===Se;N.push(te.createElement(qm,{locale:d,rootPrefixCls:o,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Se,page:Se,active:ye,showTitle:g,itemRender:y}))}b-1>=L*2&&b!==3&&(N[0]=m.cloneElement(N[0],{className:"".concat(o,"-item-after-jump-prev")}),N.unshift(k)),F-b>=L*2&&b!==F-2&&(N[N.length-1]=m.cloneElement(N[N.length-1],{className:"".concat(o,"-item-before-jump-next")}),N.push(O)),ue!==1&&N.unshift(P),ge!==F&&N.push(z)}var pe=!this.hasPrev()||!F,Qe=!this.hasNext()||!F;return te.createElement("ul",oe({className:He(o,s,X({},"".concat(o,"-disabled"),A)),style:l,ref:this.savePaginationNode},Y),W,te.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:pe?null:0,onKeyPress:this.runIfEnterPrev,className:He("".concat(o,"-prev"),X({},"".concat(o,"-disabled"),pe)),"aria-disabled":pe},this.renderPrev(K)),N,te.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:Qe?null:0,onKeyPress:this.runIfEnterNext,className:He("".concat(o,"-next"),X({},"".concat(o,"-disabled"),Qe)),"aria-disabled":Qe},this.renderNext(J)),te.createElement(d0e,{disabled:A,locale:d,rootPrefixCls:o,selectComponentClass:M,selectPrefixCls:I,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:b,pageSize:Q,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:V}))}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o={};if("current"in a&&(o.current=a.current,a.current!==i.current&&(o.currentInputValue=o.current)),"pageSize"in a&&a.pageSize!==i.pageSize){var s=i.current,l=su(a.pageSize,i,a);s=s>l?l:s,"current"in a||(o.current=s,o.currentInputValue=s),o.pageSize=a.pageSize}return o}}]),r}(te.Component);f0e.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:qz,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:qz,locale:Dqe,style:{},itemRender:Fqe,totalBoundaryShowSizeChanger:50};var h0e=function(t){return m.createElement(Ir,oe({},t,{size:"small"}))},g0e=function(t){return m.createElement(Ir,oe({},t,{size:"middle"}))};h0e.Option=Ir.Option;g0e.Option=Ir.Option;var _qe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},z5=function(t){var r=t.prefixCls,n=t.selectPrefixCls,a=t.className,i=t.size,o=t.locale,s=t.selectComponentClass,l=t.responsive,A=t.showSizeChanger,c=_qe(t,["prefixCls","selectPrefixCls","className","size","locale","selectComponentClass","responsive","showSizeChanger"]),u=ZY(l),d=u.xs,f=m.useContext(Mr),h=f.getPrefixCls,g=f.direction,p=f.pagination,E=p===void 0?{}:p,y=h("pagination",r),C=A??E.showSizeChanger,w=function(){var M=m.createElement("span",{className:"".concat(y,"-item-ellipsis")},"•••"),I=m.createElement("button",{className:"".concat(y,"-item-link"),type:"button",tabIndex:-1},m.createElement(TO,null)),S=m.createElement("button",{className:"".concat(y,"-item-link"),type:"button",tabIndex:-1},m.createElement(uy,null)),R=m.createElement("a",{className:"".concat(y,"-item-link")},m.createElement("div",{className:"".concat(y,"-item-container")},m.createElement(iDe,{className:"".concat(y,"-item-link-icon")}),M)),b=m.createElement("a",{className:"".concat(y,"-item-link")},m.createElement("div",{className:"".concat(y,"-item-container")},m.createElement(lDe,{className:"".concat(y,"-item-link-icon")}),M));if(g==="rtl"){var Q=[S,I];I=Q[0],S=Q[1];var D=[b,R];R=D[0],b=D[1]}return{prevIcon:I,nextIcon:S,jumpPrevIcon:R,jumpNextIcon:b}};return m.createElement(_A,{componentName:"Pagination",defaultLocale:ipe},function(B){var M=oe(oe({},B),o),I=i==="small"||!!(d&&!i&&l),S=h("select",n),R=He(X(X({},"".concat(y,"-mini"),I),"".concat(y,"-rtl"),g==="rtl"),a);return m.createElement(f0e,oe({},w(),c,{prefixCls:y,selectPrefixCls:S,className:R,selectComponentClass:s||(I?h0e:g0e),locale:M,showSizeChanger:C}))})},CN,nq;function Nqe(){if(nq)return CN;nq=1;var e=Nl(),t=function(){return e.Date.now()};return CN=t,CN}var wN,aq;function kqe(){if(aq)return wN;aq=1;var e=ls(),t=Nqe(),r=lEe(),n="Expected a function",a=Math.max,i=Math.min;function o(s,l,A){var c,u,d,f,h,g,p=0,E=!1,y=!1,C=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(A)&&(E=!!A.leading,y="maxWait"in A,d=y?a(r(A.maxWait)||0,l):d,C="trailing"in A?!!A.trailing:C);function w(F){var N=c,k=u;return c=u=void 0,p=F,f=s.apply(k,N),f}function B(F){return p=F,h=setTimeout(S,l),E?w(F):f}function M(F){var N=F-g,k=F-p,O=l-N;return y?i(O,d-k):O}function I(F){var N=F-g,k=F-p;return g===void 0||N>=l||N<0||y&&k>=d}function S(){var F=t();if(I(F))return R(F);h=setTimeout(S,M(F))}function R(F){return h=void 0,C&&c?w(F):(c=u=void 0,f)}function b(){h!==void 0&&clearTimeout(h),p=0,c=g=u=h=void 0}function Q(){return h===void 0?f:R(t())}function D(){var F=t(),N=I(F);if(c=arguments,u=this,g=F,N){if(h===void 0)return B(g);if(y)return clearTimeout(h),h=setTimeout(S,l),w(g)}return h===void 0&&(h=setTimeout(S,l)),f}return D.cancel=b,D.flush=Q,D}return wN=o,wN}var Pqe=kqe();const j5=Nr(Pqe);var Oqe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};fi("small","default","large");var wI=null;function zqe(e,t){var r=t.indicator,n="".concat(e,"-dot");return r===null?null:is(r)?ia(r,{className:He(r.props.className,n)}):is(wI)?ia(wI,{className:He(wI.props.className,n)}):m.createElement("span",{className:He(n,"".concat(e,"-dot-spin"))},m.createElement("i",{className:"".concat(e,"-dot-item")}),m.createElement("i",{className:"".concat(e,"-dot-item")}),m.createElement("i",{className:"".concat(e,"-dot-item")}),m.createElement("i",{className:"".concat(e,"-dot-item")}))}function jqe(e,t){return!!e&&!!t&&!isNaN(Number(t))}var Yqe=function(t){var r=t.spinPrefixCls,n=t.spinning,a=n===void 0?!0:n,i=t.delay,o=t.className,s=t.size,l=s===void 0?"default":s,A=t.tip,c=t.wrapperClassName,u=t.style,d=t.children,f=Oqe(t,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),h=m.useState(function(){return a&&!jqe(a,i)}),g=De(h,2),p=g[0],E=g[1];m.useEffect(function(){var w=j5(function(){E(a)},i);return w(),function(){var B;(B=w==null?void 0:w.cancel)===null||B===void 0||B.call(w)}},[i,a]);var y=function(){return typeof d<"u"},C=function(B){var M=B.direction,I=He(r,X(X(X(X(X({},"".concat(r,"-sm"),l==="small"),"".concat(r,"-lg"),l==="large"),"".concat(r,"-spinning"),p),"".concat(r,"-show-text"),!!A),"".concat(r,"-rtl"),M==="rtl"),o),S=Ia(f,["indicator","prefixCls"]),R=m.createElement("div",oe({},S,{style:u,className:I,"aria-live":"polite","aria-busy":p}),zqe(r,t),A?m.createElement("div",{className:"".concat(r,"-text")},A):null);if(y()){var b=He("".concat(r,"-container"),X({},"".concat(r,"-blur"),p));return m.createElement("div",oe({},S,{className:He("".concat(r,"-nested-loading"),c)}),p&&m.createElement("div",{key:"loading"},R),m.createElement("div",{className:b,key:"container"},d))}return R};return m.createElement(gd,null,C)},TR=function(t){var r=t.prefixCls,n=m.useContext(Mr),a=n.getPrefixCls,i=a("spin",r),o=oe(oe({},t),{spinPrefixCls:i});return m.createElement(Yqe,oe({},o))};TR.setDefaultIndicator=function(e){wI=e};function iq(e){return!!(e&&e.then)}var Zz=function(t){var r=m.useRef(!1),n=m.useRef(null),a=$u(!1),i=De(a,2),o=i[0],s=i[1],l=t.close,A=function(){l==null||l.apply(void 0,arguments)};m.useEffect(function(){var p=null;return t.autoFocus&&(p=setTimeout(function(){var E;(E=n.current)===null||E===void 0||E.focus()})),function(){p&&clearTimeout(p)}},[]);var c=function(E){iq(E)&&(s(!0),E.then(function(){s(!1,!0),A.apply(void 0,arguments),r.current=!1},function(y){return s(!1,!0),r.current=!1,Promise.reject(y)}))},u=function(E){var y=t.actionFn;if(!r.current){if(r.current=!0,!y){A();return}var C;if(t.emitEvent){if(C=y(E),t.quitOnNullishReturnValue&&!iq(C)){r.current=!1,A(E);return}}else if(y.length)C=y(l),r.current=!1;else if(C=y(),!C){A();return}c(C)}},d=t.type,f=t.children,h=t.prefixCls,g=t.buttonProps;return m.createElement(nt,oe({},s5(d),{onClick:u,loading:o,prefixCls:h},g,{ref:n}),f)},Lqe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},$z,Uqe=function(t){$z={x:t.pageX,y:t.pageY},setTimeout(function(){$z=null},100)};dme()&&document.documentElement.addEventListener("click",Uqe,!0);var p0e=function(t){var r,n=m.useContext(Mr),a=n.getPopupContainer,i=n.getPrefixCls,o=n.direction,s=function(F){var N=t.onCancel;N==null||N(F)},l=function(F){var N=t.onOk;N==null||N(F)},A=t.prefixCls,c=t.footer,u=t.visible,d=t.open,f=d===void 0?!1:d,h=t.wrapClassName,g=t.centered,p=t.getContainer,E=t.closeIcon,y=t.focusTriggerAfterClose,C=y===void 0?!0:y,w=t.width,B=w===void 0?520:w,M=Lqe(t,["prefixCls","footer","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","width"]),I=i("modal",A),S=i(),R=m.createElement(_A,{componentName:"Modal",defaultLocale:spe()},function(D){var F=t.okText,N=t.okType,k=N===void 0?"primary":N,O=t.cancelText,P=t.confirmLoading,z=P===void 0?!1:P;return m.createElement(m.Fragment,null,m.createElement(nt,oe({onClick:s},t.cancelButtonProps),O||D.cancelText),m.createElement(nt,oe({},s5(k),{loading:z,onClick:l},t.okButtonProps),F??D.okText))}),b=m.createElement("span",{className:"".concat(I,"-close-x")},E||m.createElement(ci,{className:"".concat(I,"-close-icon")})),Q=He(h,X(X({},"".concat(I,"-centered"),!!g),"".concat(I,"-wrap-rtl"),o==="rtl"));return m.createElement($f,null,m.createElement(av,{status:!0,override:!0},m.createElement(N5,oe({width:B},M,{getContainer:p===void 0?a:p,prefixCls:I,wrapClassName:Q,footer:c===void 0?R:c,visible:f||u,mousePosition:(r=M.mousePosition)!==null&&r!==void 0?r:$z,onClose:s,closeIcon:b,focusTriggerAfterClose:C,transitionName:zs(S,"zoom",t.transitionName),maskTransitionName:zs(S,"fade",t.maskTransitionName)}))))},v0e=function(t){var r=t.icon,n=t.onCancel,a=t.onOk,i=t.close,o=t.zIndex,s=t.afterClose,l=t.visible,A=t.open,c=t.keyboard,u=t.centered,d=t.getContainer,f=t.maskStyle,h=t.okText,g=t.okButtonProps,p=t.cancelText,E=t.cancelButtonProps,y=t.direction,C=t.prefixCls,w=t.wrapClassName,B=t.rootPrefixCls,M=t.iconPrefixCls,I=t.bodyStyle,S=t.closable,R=S===void 0?!1:S,b=t.closeIcon,Q=t.modalRender,D=t.focusTriggerAfterClose,F=t.okType||"primary",N="".concat(C,"-confirm"),k="okCancel"in t?t.okCancel:!0,O=t.width||416,P=t.style||{},z=t.mask===void 0?!0:t.mask,j=t.maskClosable===void 0?!1:t.maskClosable,V=t.autoFocusButton===null?!1:t.autoFocusButton||"ok",L=He(N,"".concat(N,"-").concat(t.type),X({},"".concat(N,"-rtl"),y==="rtl"),t.className),K=k&&m.createElement(Zz,{actionFn:n,close:i,autoFocus:V==="cancel",buttonProps:E,prefixCls:"".concat(B,"-btn")},p);return m.createElement(yh,{prefixCls:B,iconPrefixCls:M,direction:y},m.createElement(p0e,{prefixCls:C,className:L,wrapClassName:He(X({},"".concat(N,"-centered"),!!t.centered),w),onCancel:function(){return i==null?void 0:i({triggerCancel:!0})},open:A||l,title:"",footer:"",transitionName:zs(B,"zoom",t.transitionName),maskTransitionName:zs(B,"fade",t.maskTransitionName),mask:z,maskClosable:j,maskStyle:f,style:P,bodyStyle:I,width:O,zIndex:o,afterClose:s,keyboard:c,centered:u,getContainer:d,closable:R,closeIcon:b,modalRender:Q,focusTriggerAfterClose:D},m.createElement("div",{className:"".concat(N,"-body-wrapper")},m.createElement("div",{className:"".concat(N,"-body")},r,t.title===void 0?null:m.createElement("span",{className:"".concat(N,"-title")},t.title),m.createElement("div",{className:"".concat(N,"-content")},t.content)),m.createElement("div",{className:"".concat(N,"-btns")},K,m.createElement(Zz,{type:F,actionFn:a,close:i,autoFocus:V==="ok",buttonProps:g,prefixCls:"".concat(B,"-btn")},h)))))},Bp=[],Hqe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},m0e="";function Gqe(){return m0e}function TC(e){var t=document.createDocumentFragment(),r=oe(oe({},e),{close:o,open:!0}),n;function a(){for(var l=arguments.length,A=new Array(l),c=0;c<l;c++)A[c]=arguments[c];var u=A.some(function(h){return h&&h.triggerCancel});e.onCancel&&u&&e.onCancel.apply(e,[function(){}].concat(Nt(A.slice(1))));for(var d=0;d<Bp.length;d++){var f=Bp[d];if(f===o){Bp.splice(d,1);break}}dpe(t)}function i(l){var A=l.okText,c=l.cancelText,u=l.prefixCls,d=Hqe(l,["okText","cancelText","prefixCls"]);clearTimeout(n),n=setTimeout(function(){var f=spe(),h=kY(),g=h.getPrefixCls,p=h.getIconPrefixCls,E=g(void 0,Gqe()),y=u||"".concat(E,"-modal"),C=p();upe(m.createElement(v0e,oe({},d,{prefixCls:y,rootPrefixCls:E,iconPrefixCls:C,okText:A||(d.okCancel?f.okText:f.justOkText),cancelText:c||f.cancelText})),t)})}function o(){for(var l=this,A=arguments.length,c=new Array(A),u=0;u<A;u++)c[u]=arguments[u];r=oe(oe({},r),{open:!1,afterClose:function(){typeof e.afterClose=="function"&&e.afterClose(),a.apply(l,c)}}),r.visible&&delete r.visible,i(r)}function s(l){typeof l=="function"?r=l(r):r=oe(oe({},r),l),i(r)}return i(r),Bp.push(o),{destroy:o,update:s}}function E0e(e){return oe(oe({icon:m.createElement(Sv,null),okCancel:!1},e),{type:"warning"})}function y0e(e){return oe(oe({icon:m.createElement(DS,null),okCancel:!1},e),{type:"info"})}function C0e(e){return oe(oe({icon:m.createElement(SS,null),okCancel:!1},e),{type:"success"})}function w0e(e){return oe(oe({icon:m.createElement(RS,null),okCancel:!1},e),{type:"error"})}function B0e(e){return oe(oe({icon:m.createElement(Sv,null),okCancel:!0},e),{type:"confirm"})}function Kqe(e){var t=e.rootPrefixCls;m0e=t}function Vqe(){var e=m.useState([]),t=De(e,2),r=t[0],n=t[1],a=m.useCallback(function(i){return n(function(o){return[].concat(Nt(o),[i])}),function(){n(function(o){return o.filter(function(s){return s!==i})})}},[]);return[r,a]}var Jqe=function(t,r){var n=t.afterClose,a=t.config,i=m.useState(!0),o=De(i,2),s=o[0],l=o[1],A=m.useState(a),c=De(A,2),u=c[0],d=c[1],f=m.useContext(Mr),h=f.direction,g=f.getPrefixCls,p=g("modal"),E=g(),y=function(){l(!1);for(var w=arguments.length,B=new Array(w),M=0;M<w;M++)B[M]=arguments[M];var I=B.some(function(S){return S&&S.triggerCancel});u.onCancel&&I&&u.onCancel.apply(u,[function(){}].concat(Nt(B.slice(1))))};return m.useImperativeHandle(r,function(){return{destroy:y,update:function(w){d(function(B){return oe(oe({},B),w)})}}}),m.createElement(_A,{componentName:"Modal",defaultLocale:Ps.Modal},function(C){return m.createElement(v0e,oe({prefixCls:p,rootPrefixCls:E},u,{close:y,open:s,afterClose:n,okText:u.okText||(u.okCancel?C.okText:C.justOkText),direction:h,cancelText:u.cancelText||C.cancelText}))})};const Wqe=m.forwardRef(Jqe);var oq=0,Xqe=m.memo(m.forwardRef(function(e,t){var r=Vqe(),n=De(r,2),a=n[0],i=n[1];return m.useImperativeHandle(t,function(){return{patchElement:i}},[]),m.createElement(m.Fragment,null,a)}));function qqe(){var e=m.useRef(null),t=m.useState([]),r=De(t,2),n=r[0],a=r[1];m.useEffect(function(){if(n.length){var s=Nt(n);s.forEach(function(l){l()}),a([])}},[n]);var i=m.useCallback(function(s){return function(A){var c;oq+=1;var u=m.createRef(),d,f=m.createElement(Wqe,{key:"modal-".concat(oq),config:s(A),ref:u,afterClose:function(){d==null||d()}});return d=(c=e.current)===null||c===void 0?void 0:c.patchElement(f),{destroy:function(){function g(){var p;(p=u.current)===null||p===void 0||p.destroy()}u.current?g():a(function(p){return[].concat(Nt(p),[g])})},update:function(g){function p(){var E;(E=u.current)===null||E===void 0||E.update(g)}u.current?p():a(function(E){return[].concat(Nt(E),[p])})}}}},[]),o=m.useMemo(function(){return{info:i(y0e),success:i(C0e),error:i(w0e),warning:i(E0e),confirm:i(B0e)}},[]);return[o,m.createElement(Xqe,{ref:e})]}function M0e(e){return TC(E0e(e))}var va=p0e;va.useModal=qqe;va.info=function(t){return TC(y0e(t))};va.success=function(t){return TC(C0e(t))};va.error=function(t){return TC(w0e(t))};va.warning=M0e;va.warn=M0e;va.confirm=function(t){return TC(B0e(t))};va.destroyAll=function(){for(;Bp.length;){var t=Bp.pop();t&&t()}};va.config=Kqe;var Zqe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},$qe={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},ej=m.forwardRef(function(e,t){var r=function(c){var u=c.keyCode;u===Pt.ENTER&&c.preventDefault()},n=function(c){var u=c.keyCode,d=e.onClick;u===Pt.ENTER&&d&&d()},a=e.style,i=e.noStyle,o=e.disabled,s=Zqe(e,["style","noStyle","disabled"]),l={};return i||(l=oe({},$qe)),o&&(l.pointerEvents="none"),l=oe(oe({},l),a),m.createElement("div",oe({role:"button",tabIndex:0,ref:t},s,{onKeyDown:r,onKeyUp:n,style:l}))}),eZe=function(t){var r=t.prefixCls,n=t.okButtonProps,a=t.cancelButtonProps,i=t.title,o=t.cancelText,s=t.okText,l=t.okType,A=t.icon,c=t.showCancel,u=c===void 0?!0:c,d=t.close,f=t.onConfirm,h=t.onCancel,g=m.useContext(Mr),p=g.getPrefixCls;return m.createElement(_A,{componentName:"Popconfirm",defaultLocale:Ps.Popconfirm},function(E){return m.createElement("div",{className:"".concat(r,"-inner-content")},m.createElement("div",{className:"".concat(r,"-message")},A&&m.createElement("span",{className:"".concat(r,"-message-icon")},A),m.createElement("div",{className:"".concat(r,"-message-title")},Bz(i))),m.createElement("div",{className:"".concat(r,"-buttons")},u&&m.createElement(nt,oe({onClick:h,size:"small"},a),o??E.cancelText),m.createElement(Zz,{buttonProps:oe(oe({size:"small"},s5(l)),n),actionFn:f,close:d,prefixCls:p("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??E.okText)))})},sq=void 0,tZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ga=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.placement,a=n===void 0?"top":n,i=e.trigger,o=i===void 0?"click":i,s=e.okType,l=s===void 0?"primary":s,A=e.icon,c=A===void 0?m.createElement(nC,null):A,u=e.children,d=e.overlayClassName,f=e.onOpenChange,h=e.onVisibleChange,g=tZe(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),p=m.useContext(Mr),E=p.getPrefixCls,y=Qn(!1,{value:e.open!==void 0?e.open:e.visible,defaultValue:e.defaultOpen!==void 0?e.defaultOpen:e.defaultVisible}),C=De(y,2),w=C[0],B=C[1],M=function(O,P){B(O,!0),h==null||h(O,P),f==null||f(O,P)},I=function(O){M(!1,O)},S=function(O){var P;return(P=e.onConfirm)===null||P===void 0?void 0:P.call(sq,O)},R=function(O){var P;M(!1,O),(P=e.onCancel)===null||P===void 0||P.call(sq,O)},b=function(O){O.keyCode===Pt.ESC&&w&&M(!1,O)},Q=function(O){var P=e.disabled,z=P===void 0?!1:P;z||M(O)},D=E("popover",r),F=E("popconfirm",r),N=He(F,d);return m.createElement(AR,oe({},g,{trigger:o,prefixCls:D,placement:a,onOpenChange:Q,open:w,ref:t,overlayClassName:N,_overlay:m.createElement(eZe,oe({okType:l,icon:c},e,{prefixCls:D,close:I,onConfirm:S,onCancel:R}))}),ia(u,{onKeyDown:function(O){var P,z;m.isValidElement(u)&&((z=u==null?void 0:(P=u.props).onKeyDown)===null||z===void 0||z.call(P,O)),b(O)}}))}),rZe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},nZe=function(){var t=m.useRef([]),r=m.useRef(null);return m.useEffect(function(){var n=Date.now(),a=!1;t.current.forEach(function(i){if(i){a=!0;var o=i.style;o.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(o.transitionDuration="0s, 0s")}}),a&&(r.current=Date.now())}),t.current},lq=0,aZe=Gi();function iZe(){var e;return aZe?(e=lq,lq+=1):e="TEST_OR_SSR",e}const oZe=function(e){var t=m.useState(),r=De(t,2),n=r[0],a=r[1];return m.useEffect(function(){a("rc_progress_".concat(iZe()))},[]),e||n};var sZe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Aq(e){return+e.replace("%","")}function cq(e){var t=e??[];return Array.isArray(t)?t:[t]}var Zm=100,BN=function(t,r,n,a,i,o,s,l,A,c){var u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,d=n/100*360*((360-o)/360),f=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-a)/100*r;return A==="round"&&a!==100&&(h+=c/2,h>=r&&(h=r-.01)),{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+u,transform:"rotate(".concat(i+d+f,"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},lZe=function(t){var r=$($({},rZe),t),n=r.id,a=r.prefixCls,i=r.steps,o=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,A=l===void 0?0:l,c=r.gapPosition,u=r.trailColor,d=r.strokeLinecap,f=r.style,h=r.className,g=r.strokeColor,p=r.percent,E=Tr(r,sZe),y=oZe(n),C="".concat(y,"-gradient"),w=Zm/2-o/2,B=Math.PI*2*w,M=A>0?90+A/2:-90,I=B*((360-A)/360),S=Xt(i)==="object"?i:{count:i,space:2},R=S.count,b=S.space,Q=BN(B,I,0,100,M,A,c,u,d,o),D=cq(p),F=cq(g),N=F.find(function(z){return z&&Xt(z)==="object"}),k=nZe(),O=function(){var j=0;return D.map(function(V,L){var K=F[L]||F[F.length-1],J=K&&Xt(K)==="object"?"url(#".concat(C,")"):void 0,Y=BN(B,I,j,V,M,A,c,K,d,o);return j+=V,m.createElement("circle",{key:L,className:"".concat(a,"-circle-path"),r:w,cx:0,cy:0,stroke:J,strokeLinecap:d,strokeWidth:o,opacity:V===0?0:1,style:Y,ref:function(q){k[L]=q}})}).reverse()},P=function(){var j=Math.round(R*(D[0]/100)),V=100/R,L=0;return new Array(R).fill(null).map(function(K,J){var Y=J<=j-1?F[0]:u,W=Y&&Xt(Y)==="object"?"url(#".concat(C,")"):void 0,q=BN(B,I,L,V,M,A,c,Y,"butt",o,b);return L+=(I-q.strokeDashoffset+b)*100/I,m.createElement("circle",{key:J,className:"".concat(a,"-circle-path"),r:w,cx:0,cy:0,stroke:W,strokeWidth:o,opacity:1,style:q,ref:function(ae){k[J]=ae}})})};return m.createElement("svg",oe({className:He("".concat(a,"-circle"),h),viewBox:"".concat(-Zm/2," ").concat(-Zm/2," ").concat(Zm," ").concat(Zm),style:f,id:n,role:"presentation"},E),N&&m.createElement("defs",null,m.createElement("linearGradient",{id:C,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(N).sort(function(z,j){return Aq(z)-Aq(j)}).map(function(z,j){return m.createElement("stop",{key:j,offset:z,stopColor:N[z]})}))),!R&&m.createElement("circle",{className:"".concat(a,"-circle-trail"),r:w,cx:0,cy:0,stroke:u,strokeLinecap:d,strokeWidth:s||o,style:Q}),R?P():O())};function jf(e){return!e||e<0?0:e>100?100:e}function _b(e){var t=e.success,r=e.successPercent,n=r;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}function AZe(e){var t=e.percent,r=e.success,n=e.successPercent,a=jf(_b({success:r,successPercent:n}));return[a,jf(jf(t)-a)]}function cZe(e){var t=e.success,r=t===void 0?{}:t,n=e.strokeColor,a=r.strokeColor;return[a||_f.green,n||null]}var uZe=function(t){var r=t.prefixCls,n=t.width,a=t.strokeWidth,i=t.trailColor,o=i===void 0?null:i,s=t.strokeLinecap,l=s===void 0?"round":s,A=t.gapPosition,c=t.gapDegree,u=t.type,d=t.children,f=t.success,h=n||120,g={width:h,height:h,fontSize:h*.15+6},p=a||6,E=A||u==="dashboard"&&"bottom"||void 0,y=function(){if(c||c===0)return c;if(u==="dashboard")return 75},C=Object.prototype.toString.call(t.strokeColor)==="[object Object]",w=cZe({success:f,strokeColor:t.strokeColor}),B=He("".concat(r,"-inner"),X({},"".concat(r,"-circle-gradient"),C));return m.createElement("div",{className:B,style:g},m.createElement(lZe,{percent:AZe(t),strokeWidth:p,trailWidth:p,strokeColor:w,strokeLinecap:l,trailColor:o,prefixCls:r,gapDegree:y(),gapPosition:E}),d)},dZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},fZe=function(t){var r=[];return Object.keys(t).forEach(function(n){var a=parseFloat(n.replace(/%/g,""));isNaN(a)||r.push({key:a,value:t[n]})}),r=r.sort(function(n,a){return n.key-a.key}),r.map(function(n){var a=n.key,i=n.value;return"".concat(i," ").concat(a,"%")}).join(", ")},hZe=function(t,r){var n=t.from,a=n===void 0?_f.blue:n,i=t.to,o=i===void 0?_f.blue:i,s=t.direction,l=s===void 0?r==="rtl"?"to left":"to right":s,A=dZe(t,["from","to","direction"]);if(Object.keys(A).length!==0){var c=fZe(A);return{backgroundImage:"linear-gradient(".concat(l,", ").concat(c,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(a,", ").concat(o,")")}},gZe=function(t){var r=t.prefixCls,n=t.direction,a=t.percent,i=t.strokeWidth,o=t.size,s=t.strokeColor,l=t.strokeLinecap,A=l===void 0?"round":l,c=t.children,u=t.trailColor,d=u===void 0?null:u,f=t.success,h=s&&typeof s!="string"?hZe(s,n):{background:s},g=A==="square"||A==="butt"?0:void 0,p={backgroundColor:d||void 0,borderRadius:g},E=oe({width:"".concat(jf(a),"%"),height:i||(o==="small"?6:8),borderRadius:g},h),y=_b(t),C={width:"".concat(jf(y),"%"),height:i||(o==="small"?6:8),borderRadius:g,backgroundColor:f==null?void 0:f.strokeColor},w=y!==void 0?m.createElement("div",{className:"".concat(r,"-success-bg"),style:C}):null;return m.createElement(m.Fragment,null,m.createElement("div",{className:"".concat(r,"-outer")},m.createElement("div",{className:"".concat(r,"-inner"),style:p},m.createElement("div",{className:"".concat(r,"-bg"),style:E}),w)),c)},pZe=function(t){for(var r=t.size,n=t.steps,a=t.percent,i=a===void 0?0:a,o=t.strokeWidth,s=o===void 0?8:o,l=t.strokeColor,A=t.trailColor,c=A===void 0?null:A,u=t.prefixCls,d=t.children,f=Math.round(n*(i/100)),h=r==="small"?2:14,g=new Array(n),p=0;p<n;p++){var E=Array.isArray(l)?l[p]:l;g[p]=m.createElement("div",{key:p,className:He("".concat(u,"-steps-item"),X({},"".concat(u,"-steps-item-active"),p<=f-1)),style:{backgroundColor:p<=f-1?E:c,width:h,height:s}})}return m.createElement("div",{className:"".concat(u,"-steps-outer")},g,d)},vZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};fi("line","circle","dashboard");var mZe=fi("normal","exception","active","success"),EZe=function(t){var r=t.prefixCls,n=t.className,a=t.steps,i=t.strokeColor,o=t.percent,s=o===void 0?0:o,l=t.size,A=l===void 0?"default":l,c=t.showInfo,u=c===void 0?!0:c,d=t.type,f=d===void 0?"line":d,h=vZe(t,["prefixCls","className","steps","strokeColor","percent","size","showInfo","type"]);function g(){var D=_b(t);return parseInt(D!==void 0?D.toString():s.toString(),10)}function p(){var D=t.status;return!mZe.includes(D)&&g()>=100?"success":D||"normal"}function E(D,F){var N=t.format,k=_b(t);if(!u)return null;var O,P=N||function(j){return"".concat(j,"%")},z=f==="line";return N||F!=="exception"&&F!=="success"?O=P(jf(s),jf(k)):F==="exception"?O=z?m.createElement(kl,null):m.createElement(ci,null):F==="success"&&(O=z?m.createElement(tC,null):m.createElement(Gs,null)),m.createElement("span",{className:"".concat(D,"-text"),title:typeof O=="string"?O:void 0},O)}var y=m.useContext(Mr),C=y.getPrefixCls,w=y.direction,B=C("progress",r),M=p(),I=E(B,M),S=Array.isArray(i)?i[0]:i,R=typeof i=="string"||Array.isArray(i)?i:void 0,b;f==="line"?b=a?m.createElement(pZe,oe({},t,{strokeColor:R,prefixCls:B,steps:a}),I):m.createElement(gZe,oe({},t,{strokeColor:S,prefixCls:B,direction:w}),I):(f==="circle"||f==="dashboard")&&(b=m.createElement(uZe,oe({},t,{strokeColor:S,prefixCls:B,progressStatus:M}),I));var Q=He(B,X(X(X(X(X({},"".concat(B,"-").concat(f==="dashboard"&&"circle"||a&&"steps"||f),!0),"".concat(B,"-status-").concat(M),!0),"".concat(B,"-show-info"),u),"".concat(B,"-").concat(A),A),"".concat(B,"-rtl"),w==="rtl"),n);return m.createElement("div",oe({},Ia(h,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"]),{className:Q,role:"progressbar"}),b)},yZe=function(){return m.createElement("svg",{width:"252",height:"294"},m.createElement("defs",null,m.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(0 .012)"},m.createElement("mask",{fill:"#fff"}),m.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),m.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),m.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),m.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),m.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),m.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),m.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),m.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"}),m.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),m.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),m.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),m.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),m.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),m.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),m.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),m.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),m.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),m.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),m.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),m.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),m.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),m.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),m.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),m.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),m.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),m.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),m.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),m.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),m.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),m.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),m.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),m.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),m.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),m.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),m.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),m.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),m.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),m.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),m.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"})))},CZe=function(){return m.createElement("svg",{width:"254",height:"294"},m.createElement("defs",null,m.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),m.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(0 .067)"},m.createElement("mask",{fill:"#fff"}),m.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),m.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),m.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),m.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),m.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),m.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),m.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),m.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),m.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),m.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),m.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),m.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),m.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),m.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),m.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),m.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),m.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),m.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),m.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),m.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),m.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),m.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),m.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),m.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),m.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),m.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),m.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),m.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),m.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),m.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),m.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),m.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),m.createElement("mask",{fill:"#fff"}),m.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),m.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),m.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),m.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),m.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),m.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),m.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),m.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),m.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),m.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),m.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"})))},wZe=function(){return m.createElement("svg",{width:"251",height:"294"},m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),m.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),m.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),m.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),m.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),m.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),m.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),m.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),m.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),m.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),m.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),m.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),m.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),m.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),m.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),m.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),m.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),m.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),m.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),m.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),m.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),m.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),m.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),m.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),m.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),m.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),m.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),m.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),m.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),m.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),m.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),m.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),m.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),m.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),m.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),m.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})))},BZe={success:tC,error:kl,info:nC,warning:yde},QC={404:yZe,500:CZe,403:wZe},MZe=Object.keys(QC),xZe=function(t){var r=t.prefixCls,n=t.icon,a=t.status,i=He("".concat(r,"-icon"));if(MZe.includes("".concat(a))){var o=QC[a];return m.createElement("div",{className:"".concat(i," ").concat(r,"-image")},m.createElement(o,null))}var s=m.createElement(BZe[a]);return n===null||n===!1?null:m.createElement("div",{className:i},n||s)},IZe=function(t){var r=t.prefixCls,n=t.extra;return n?m.createElement("div",{className:"".concat(r,"-extra")},n):null},vd=function(t){var r=t.prefixCls,n=t.className,a=t.subTitle,i=t.title,o=t.style,s=t.children,l=t.status,A=l===void 0?"info":l,c=t.icon,u=t.extra,d=m.useContext(Mr),f=d.getPrefixCls,h=d.direction,g=f("result",r),p=He(g,"".concat(g,"-").concat(A),n,X({},"".concat(g,"-rtl"),h==="rtl"));return m.createElement("div",{className:p,style:o},m.createElement(xZe,{prefixCls:g,status:A,icon:c}),m.createElement("div",{className:"".concat(g,"-title")},i),a&&m.createElement("div",{className:"".concat(g,"-subtitle")},a),m.createElement(IZe,{prefixCls:g,extra:u}),s&&m.createElement("div",{className:"".concat(g,"-content")},s))};vd.PRESENTED_IMAGE_403=QC[403];vd.PRESENTED_IMAGE_404=QC[404];vd.PRESENTED_IMAGE_500=QC[500];var bZe=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function uq(e){return typeof e=="string"}var x0e=function(e){xn(r,e);var t=sa(r);function r(){var n;sn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),X(at(n),"onClick",function(){var s=n.props,l=s.onClick,A=s.onStepClick,c=s.stepIndex;l&&l.apply(void 0,arguments),A(c)}),n}return ln(r,[{key:"renderIconNode",value:function(){var a,i=this.props,o=i.prefixCls,s=i.progressDot,l=i.stepIcon,A=i.stepNumber,c=i.status,u=i.title,d=i.description,f=i.icon,h=i.iconPrefix,g=i.icons,p,E=He("".concat(o,"-icon"),"".concat(h,"icon"),(a={},X(a,"".concat(h,"icon-").concat(f),f&&uq(f)),X(a,"".concat(h,"icon-check"),!f&&c==="finish"&&(g&&!g.finish||!g)),X(a,"".concat(h,"icon-cross"),!f&&c==="error"&&(g&&!g.error||!g)),a)),y=m.createElement("span",{className:"".concat(o,"-icon-dot")});return s?typeof s=="function"?p=m.createElement("span",{className:"".concat(o,"-icon")},s(y,{index:A-1,status:c,title:u,description:d})):p=m.createElement("span",{className:"".concat(o,"-icon")},y):f&&!uq(f)?p=m.createElement("span",{className:"".concat(o,"-icon")},f):g&&g.finish&&c==="finish"?p=m.createElement("span",{className:"".concat(o,"-icon")},g.finish):g&&g.error&&c==="error"?p=m.createElement("span",{className:"".concat(o,"-icon")},g.error):f||c==="finish"||c==="error"?p=m.createElement("span",{className:E}):p=m.createElement("span",{className:"".concat(o,"-icon")},A),l&&(p=l({index:A-1,status:c,title:u,description:d,node:p})),p}},{key:"render",value:function(){var a,i=this.props,o=i.className,s=i.prefixCls,l=i.style,A=i.active,c=i.status,u=c===void 0?"wait":c;i.iconPrefix;var d=i.icon;i.wrapperStyle,i.stepNumber;var f=i.disabled,h=i.description,g=i.title,p=i.subTitle;i.progressDot,i.stepIcon;var E=i.tailContent;i.icons,i.stepIndex;var y=i.onStepClick,C=i.onClick,w=Tr(i,bZe),B=He("".concat(s,"-item"),"".concat(s,"-item-").concat(u),o,(a={},X(a,"".concat(s,"-item-custom"),d),X(a,"".concat(s,"-item-active"),A),X(a,"".concat(s,"-item-disabled"),f===!0),a)),M=$({},l),I={};return y&&!f&&(I.role="button",I.tabIndex=0,I.onClick=this.onClick),m.createElement("div",oe({},w,{className:B,style:M}),m.createElement("div",oe({onClick:C},I,{className:"".concat(s,"-item-container")}),m.createElement("div",{className:"".concat(s,"-item-tail")},E),m.createElement("div",{className:"".concat(s,"-item-icon")},this.renderIconNode()),m.createElement("div",{className:"".concat(s,"-item-content")},m.createElement("div",{className:"".concat(s,"-item-title")},g,p&&m.createElement("div",{title:typeof p=="string"?p:void 0,className:"".concat(s,"-item-subtitle")},p)),h&&m.createElement("div",{className:"".concat(s,"-item-description")},h))))}}]),r}(m.Component),SZe=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","items"],QR=function(e){xn(r,e);var t=sa(r);function r(){var n;sn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),X(at(n),"onStepClick",function(s){var l=n.props,A=l.onChange,c=l.current;A&&c!==s&&A(s)}),n}return ln(r,[{key:"render",value:function(){var a,i=this,o=this.props,s=o.prefixCls,l=o.style,A=l===void 0?{}:l,c=o.className;o.children;var u=o.direction,d=o.type,f=o.labelPlacement,h=o.iconPrefix,g=o.status,p=o.size,E=o.current,y=o.progressDot,C=o.stepIcon,w=o.initial,B=o.icons,M=o.onChange,I=o.items,S=I===void 0?[]:I,R=Tr(o,SZe),b=d==="navigation",Q=y?"vertical":f,D=He(s,"".concat(s,"-").concat(u),c,(a={},X(a,"".concat(s,"-").concat(p),p),X(a,"".concat(s,"-label-").concat(Q),u==="horizontal"),X(a,"".concat(s,"-dot"),!!y),X(a,"".concat(s,"-navigation"),b),a));return te.createElement("div",oe({className:D,style:A},R),S.filter(function(F){return F}).map(function(F,N){var k=$({},F),O=w+N;return g==="error"&&N===E-1&&(k.className="".concat(s,"-next-error")),k.status||(O===E?k.status=g:O<E?k.status="finish":k.status="wait"),te.createElement(x0e,oe({},k,{active:O===E,stepNumber:O+1,stepIndex:O,key:O,prefixCls:s,iconPrefix:h,wrapperStyle:A,progressDot:y,stepIcon:C,icons:B,onStepClick:M&&i.onStepClick}))}))}}]),r}(te.Component);X(QR,"Step",x0e);X(QR,"defaultProps",{type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1});function RZe(e){return e.filter(function(t){return t})}function TZe(e,t){if(e)return e;var r=ui(t).map(function(n){if(m.isValidElement(n)){var a=n.props,i=oe({},a);return i}return null});return RZe(r)}var QZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},I0e=function(t){var r=t.percent,n=t.size,a=t.className,i=t.direction,o=t.items,s=t.responsive,l=s===void 0?!0:s,A=t.current,c=A===void 0?0:A,u=t.children,d=QZe(t,["percent","size","className","direction","items","responsive","current","children"]),f=ZY(l),h=f.xs,g=m.useContext(Mr),p=g.getPrefixCls,E=g.direction,y=m.useCallback(function(){return l&&h?"vertical":i},[h,i]),C=p("steps",t.prefixCls),w=p("",t.iconPrefix),B=TZe(o,u),M=He(X(X({},"".concat(C,"-rtl"),E==="rtl"),"".concat(C,"-with-progress"),r!==void 0),a),I={finish:m.createElement(Gs,{className:"".concat(C,"-finish-icon")}),error:m.createElement(ci,{className:"".concat(C,"-error-icon")})},S=function(b){var Q=b.node,D=b.status;if(D==="process"&&r!==void 0){var F=n==="small"?32:40;return m.createElement("div",{className:"".concat(C,"-progress-icon")},m.createElement(EZe,{type:"circle",percent:r,width:F,strokeWidth:4,format:function(){return null}}),Q)}return Q};return m.createElement(QR,oe({icons:I},d,{current:c,size:n,items:B,direction:y(),stepIcon:S,prefixCls:C,iconPrefix:w,className:M}))};I0e.Step=QR.Step;var b0e=m.forwardRef(function(e,t){var r,n=e.prefixCls,a=n===void 0?"rc-switch":n,i=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,A=e.loadingIcon,c=e.checkedChildren,u=e.unCheckedChildren,d=e.onClick,f=e.onChange,h=e.onKeyDown,g=Tr(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),p=Qn(!1,{value:o,defaultValue:s}),E=De(p,2),y=E[0],C=E[1];function w(S,R){var b=y;return l||(b=S,C(b),f==null||f(b,R)),b}function B(S){S.which===Pt.LEFT?w(!1,S):S.which===Pt.RIGHT&&w(!0,S),h==null||h(S)}function M(S){var R=w(!y,S);d==null||d(R,S)}var I=He(a,i,(r={},X(r,"".concat(a,"-checked"),y),X(r,"".concat(a,"-disabled"),l),r));return m.createElement("button",Object.assign({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:I,ref:t,onKeyDown:B,onClick:M}),A,m.createElement("span",{className:"".concat(a,"-inner")},y?c:u))});b0e.displayName="Switch";var DZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Va=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.size,a=e.disabled,i=e.loading,o=e.className,s=o===void 0?"":o,l=DZe(e,["prefixCls","size","disabled","loading","className"]),A=m.useContext(Mr),c=A.getPrefixCls,u=A.direction,d=m.useContext(Ti),f=m.useContext(Fo),h=(a??f)||i,g=c("switch",r),p=m.createElement("div",{className:"".concat(g,"-handle")},i&&m.createElement(Xu,{className:"".concat(g,"-loading-icon")})),E=He(X(X(X({},"".concat(g,"-small"),(n||d)==="small"),"".concat(g,"-loading"),i),"".concat(g,"-rtl"),u==="rtl"),s);return m.createElement(fR,{insertExtraNode:!0},m.createElement(b0e,oe({},l,{prefixCls:g,className:E,disabled:h,ref:t,loadingIcon:p})))});Va.__ANT_SWITCH=!0;function FZe(e){return null}function _Ze(e){return null}var NZe="RC_TABLE_KEY";function S0e(e){return e==null?[]:Array.isArray(e)?e:[e]}function R0e(e,t){if(!t&&typeof t!="number")return e;for(var r=S0e(t),n=e,a=0;a<r.length;a+=1){if(!n)return null;var i=r[a];n=n[i]}return n}function DR(e){var t=[],r={};return e.forEach(function(n){for(var a=n||{},i=a.key,o=a.dataIndex,s=i||S0e(o).join("-")||NZe;r[s];)s="".concat(s,"_next");r[s]=!0,t.push(s)}),t}function tj(e){return e!=null}var T0e=m.createContext(!1);function kZe(){var e=m.createContext(null),t=function(n){var a=n.value,i=n.children,o=m.useRef(a);o.current=a;var s=m.useState(function(){return{getValue:function(){return o.current},listeners:new Set}}),l=De(s,1),A=l[0];return Wn(function(){A.listeners.forEach(function(c){c(a)})},[a]),m.createElement(e.Provider,{value:A},i)};return{Context:e,Provider:t}}function PZe(e,t){var r=Os(t),n=m.useContext(e==null?void 0:e.Context),a=n||{},i=a.listeners,o=a.getValue,s=m.useState(function(){return r(n?o():null)}),l=De(s,2),A=l[0],c=l[1];return Wn(function(){if(!n)return;function u(d){c(function(f){var h=r(d);return ov(f,h)?f:h})}return i.add(u),function(){i.delete(u)}},[n]),A}var Q0e=kZe(),FR=m.createContext(null),D0e=m.createContext({renderWithProps:!1}),OZe=["colSpan","rowSpan","style","className"];function zZe(e,t,r,n){var a=e+t-1;return e<=n&&a>=r}function jZe(e){return e&&Xt(e)==="object"&&!Array.isArray(e)&&!m.isValidElement(e)}function YZe(e){return typeof e=="string"?!0:Eh(e)}var LZe=function(t){var r=t.ellipsis,n=t.rowType,a=t.children,i,o=r===!0?{showTitle:!0}:r;return o&&(o.showTitle||n==="header")&&(typeof a=="string"||typeof a=="number"?i=a.toString():m.isValidElement(a)&&typeof a.props.children=="string"&&(i=a.props.children)),i};function UZe(e,t){var r,n,a,i=e.prefixCls,o=e.className,s=e.record,l=e.index,A=e.renderIndex,c=e.dataIndex,u=e.render,d=e.children,f=e.component,h=f===void 0?"td":f,g=e.colSpan,p=e.rowSpan,E=e.fixLeft,y=e.fixRight,C=e.firstFixLeft,w=e.lastFixLeft,B=e.firstFixRight,M=e.lastFixRight,I=e.appendNode,S=e.additionalProps,R=S===void 0?{}:S,b=e.ellipsis,Q=e.align,D=e.rowType,F=e.isSticky,N=e.hovering,k=e.onHover,O="".concat(i,"-cell"),P=m.useContext(D0e),z=m.useContext(T0e),j=m.useContext(FR),V=j.allColumnsFixedLeft,L=m.useMemo(function(){if(tj(d))return[d];var Te=R0e(s,c),Be=Te,Ge=void 0;if(u){var ht=u(Te,s,A);jZe(ht)?(Be=ht.children,Ge=ht.props,P.renderWithProps=!0):Be=ht}return[Be,Ge]},[P.renderWithProps?Math.random():0,d,c,P,s,u,A]),K=De(L,2),J=K[0],Y=K[1],W=J;Xt(W)==="object"&&!Array.isArray(W)&&!m.isValidElement(W)&&(W=null),b&&(w||B)&&(W=m.createElement("span",{className:"".concat(O,"-content")},W));var q=Y||{},ee=q.colSpan,ae=q.rowSpan,ne=q.style,ce=q.className,ue=Tr(q,OZe),ge=(r=ee!==void 0?ee:g)!==null&&r!==void 0?r:1,Se=(n=ae!==void 0?ae:p)!==null&&n!==void 0?n:1;if(ge===0||Se===0)return null;var ye={},pe=typeof E=="number"&&z,Qe=typeof y=="number"&&z;pe&&(ye.position="sticky",ye.left=E),Qe&&(ye.position="sticky",ye.right=y);var Ue={};Q&&(Ue.textAlign=Q);var tt=function(Be){var Ge;s&&k(l,l+Se-1),R==null||(Ge=R.onMouseEnter)===null||Ge===void 0||Ge.call(R,Be)},it=function(Be){var Ge;s&&k(-1,-1),R==null||(Ge=R.onMouseLeave)===null||Ge===void 0||Ge.call(R,Be)},we=LZe({rowType:D,ellipsis:b,children:J}),ve=$($($({title:we},ue),R),{},{colSpan:ge!==1?ge:null,rowSpan:Se!==1?Se:null,className:He(O,o,(a={},X(a,"".concat(O,"-fix-left"),pe&&z),X(a,"".concat(O,"-fix-left-first"),C&&z),X(a,"".concat(O,"-fix-left-last"),w&&z),X(a,"".concat(O,"-fix-left-all"),w&&V&&z),X(a,"".concat(O,"-fix-right"),Qe&&z),X(a,"".concat(O,"-fix-right-first"),B&&z),X(a,"".concat(O,"-fix-right-last"),M&&z),X(a,"".concat(O,"-ellipsis"),b),X(a,"".concat(O,"-with-append"),I),X(a,"".concat(O,"-fix-sticky"),(pe||Qe)&&F&&z),X(a,"".concat(O,"-row-hover"),!Y&&N),a),R.className,ce),style:$($($($({},R.style),Ue),ye),ne),onMouseEnter:tt,onMouseLeave:it,ref:YZe(h)?t:null});return m.createElement(h,ve,I,W)}var F0e=m.forwardRef(UZe);F0e.displayName="Cell";var HZe=["expanded","className","hovering"],GZe=m.memo(F0e,function(e,t){return t.shouldCellUpdate?HZe.every(function(r){return e[r]===t[r]})&&!t.shouldCellUpdate(t.record,e.record):ov(e,t)}),DC=m.forwardRef(function(e,t){var r=e.index,n=e.additionalProps,a=n===void 0?{}:n,i=e.colSpan,o=e.rowSpan,s=a.colSpan,l=a.rowSpan,A=i??s,c=o??l,u=PZe(Q0e,function(h){var g=zZe(r,c||1,h==null?void 0:h.startRow,h==null?void 0:h.endRow);return{onHover:h==null?void 0:h.onHover,hovering:g}}),d=u.onHover,f=u.hovering;return m.createElement(GZe,oe({},e,{colSpan:A,rowSpan:c,hovering:f,ref:t,onHover:d}))});DC.displayName="WrappedCell";var PA=m.createContext(null);function Y5(e,t,r,n,a){var i=r[e]||{},o=r[t]||{},s,l;i.fixed==="left"?s=n.left[e]:o.fixed==="right"&&(l=n.right[t]);var A=!1,c=!1,u=!1,d=!1,f=r[t+1],h=r[e-1];if(a==="rtl"){if(s!==void 0){var g=h&&h.fixed==="left";d=!g}else if(l!==void 0){var p=f&&f.fixed==="right";u=!p}}else if(s!==void 0){var E=f&&f.fixed==="left";A=!E}else if(l!==void 0){var y=h&&h.fixed==="right";c=!y}return{fixLeft:s,fixRight:l,lastFixLeft:A,firstFixRight:c,lastFixRight:u,firstFixLeft:d,isSticky:n.isSticky}}function _0e(e){var t=e.cells,r=e.stickyOffsets,n=e.flattenColumns,a=e.rowComponent,i=e.cellComponent,o=e.onHeaderRow,s=e.index,l=m.useContext(PA),A=l.prefixCls,c=l.direction,u;o&&(u=o(t.map(function(f){return f.column}),s));var d=DR(t.map(function(f){return f.column}));return m.createElement(a,u,t.map(function(f,h){var g=f.column,p=Y5(f.colStart,f.colEnd,n,r,c),E;return g&&g.onHeaderCell&&(E=f.column.onHeaderCell(g)),m.createElement(DC,oe({},f,{ellipsis:g.ellipsis,align:g.align,component:i,prefixCls:A,key:d[h]},p,{additionalProps:E,rowType:"header"}))}))}_0e.displayName="HeaderRow";function KZe(e){var t=[];function r(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var A=s,c=o.filter(Boolean).map(function(u){var d={key:u.key,className:u.className||"",children:u.title,column:u,colStart:A},f=1,h=u.children;return h&&h.length>0&&(f=r(h,A,l+1).reduce(function(g,p){return g+p},0),d.hasSubColumns=!0),"colSpan"in u&&(f=u.colSpan),"rowSpan"in u&&(d.rowSpan=u.rowSpan),d.colSpan=f,d.colEnd=d.colStart+f-1,t[l].push(d),A+=f,f});return c}r(e,0);for(var n=t.length,a=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=n-s)})},i=0;i<n;i+=1)a(i);return t}function dq(e){var t=e.stickyOffsets,r=e.columns,n=e.flattenColumns,a=e.onHeaderRow,i=m.useContext(PA),o=i.prefixCls,s=i.getComponent,l=m.useMemo(function(){return KZe(r)},[r]),A=s(["header","wrapper"],"thead"),c=s(["header","row"],"tr"),u=s(["header","cell"],"th");return m.createElement(A,{className:"".concat(o,"-thead")},l.map(function(d,f){var h=m.createElement(_0e,{key:f,flattenColumns:n,cells:d,stickyOffsets:t,rowComponent:c,cellComponent:u,onHeaderRow:a,index:f});return h}))}var N0e=m.createContext(null);function k0e(e){var t=e.prefixCls,r=e.children,n=e.component,a=e.cellComponent,i=e.className,o=e.expanded,s=e.colSpan,l=e.isEmpty,A=m.useContext(PA),c=A.scrollbarSize,u=m.useContext(N0e),d=u.fixHeader,f=u.fixColumn,h=u.componentWidth,g=u.horizonScroll;return m.useMemo(function(){var p=r;return(l?g:f)&&(p=m.createElement("div",{style:{width:h-(d?c:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},h!==0&&p)),m.createElement(n,{className:i,style:{display:o?null:"none"}},m.createElement(DC,{component:a,prefixCls:t,colSpan:s},p))},[r,n,i,o,s,l,c,h,f,d,g])}var P0e=m.createContext(null);function O0e(e){var t=e.className,r=e.style,n=e.record,a=e.index,i=e.renderIndex,o=e.rowKey,s=e.rowExpandable,l=e.expandedKeys,A=e.onRow,c=e.indent,u=c===void 0?0:c,d=e.rowComponent,f=e.cellComponent,h=e.childrenColumnName,g=m.useContext(PA),p=g.prefixCls,E=g.fixedInfoList,y=m.useContext(FR),C=y.flattenColumns,w=y.expandableType,B=y.expandRowByClick,M=y.onTriggerExpand,I=y.rowClassName,S=y.expandedRowClassName,R=y.indentSize,b=y.expandIcon,Q=y.expandedRowRender,D=y.expandIconColumnIndex,F=m.useState(!1),N=De(F,2),k=N[0],O=N[1],P=l&&l.has(e.recordKey);m.useEffect(function(){P&&O(!0)},[P]);var z=w==="row"&&(!s||s(n)),j=w==="nest",V=h&&n&&n[h],L=z||j,K=m.useRef(M);K.current=M;var J=function(){K.current.apply(K,arguments)},Y=A==null?void 0:A(n,a),W=function(Se){var ye;B&&L&&J(n,Se);for(var pe=arguments.length,Qe=new Array(pe>1?pe-1:0),Ue=1;Ue<pe;Ue++)Qe[Ue-1]=arguments[Ue];Y==null||(ye=Y.onClick)===null||ye===void 0||ye.call.apply(ye,[Y,Se].concat(Qe))},q;typeof I=="string"?q=I:typeof I=="function"&&(q=I(n,a,u));var ee=DR(C),ae=m.createElement(d,oe({},Y,{"data-row-key":o,className:He(t,"".concat(p,"-row"),"".concat(p,"-row-level-").concat(u),q,Y&&Y.className),style:$($({},r),Y?Y.style:null),onClick:W}),C.map(function(ge,Se){var ye=ge.render,pe=ge.dataIndex,Qe=ge.className,Ue=ee[Se],tt=E[Se],it;Se===(D||0)&&j&&(it=m.createElement(m.Fragment,null,m.createElement("span",{style:{paddingLeft:"".concat(R*u,"px")},className:"".concat(p,"-row-indent indent-level-").concat(u)}),b({prefixCls:p,expanded:P,expandable:V,record:n,onExpand:J})));var we;return ge.onCell&&(we=ge.onCell(n,a)),m.createElement(DC,oe({className:Qe,ellipsis:ge.ellipsis,align:ge.align,component:f,prefixCls:p,key:Ue,record:n,index:a,renderIndex:i,dataIndex:pe,render:ye,shouldCellUpdate:ge.shouldCellUpdate,expanded:it&&P},tt,{appendNode:it,additionalProps:we}))})),ne;if(z&&(k||P)){var ce=Q(n,a,u+1,P),ue=S&&S(n,a,u);ne=m.createElement(k0e,{expanded:P,className:He("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(u+1),ue),prefixCls:p,component:d,cellComponent:f,colSpan:C.length,isEmpty:!1},ce)}return m.createElement(m.Fragment,null,ae,ne)}O0e.displayName="BodyRow";function z0e(e,t,r,n,a,i){var o=[];o.push({record:e,indent:t,index:i});var s=a(e),l=n==null?void 0:n.has(s);if(e&&Array.isArray(e[r])&&l)for(var A=0;A<e[r].length;A+=1){var c=z0e(e[r][A],t+1,r,n,a,A);o.push.apply(o,Nt(c))}return o}function VZe(e,t,r,n){var a=m.useMemo(function(){if(r!=null&&r.size){for(var i=[],o=0;o<(e==null?void 0:e.length);o+=1){var s=e[o];i.push.apply(i,Nt(z0e(s,0,t,r,n,o)))}return i}return e==null?void 0:e.map(function(l,A){return{record:l,indent:0,index:A}})},[e,t,r,n]);return a}function JZe(e){var t=e.columnKey,r=e.onColumnResize,n=m.useRef();return m.useEffect(function(){n.current&&r(t,n.current.offsetWidth)},[]),m.createElement(ks,{data:t},m.createElement("td",{ref:n,style:{padding:0,border:0,height:0}},m.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function WZe(e){var t=e.prefixCls,r=e.columnsKey,n=e.onColumnResize;return m.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},m.createElement(ks.Collection,{onBatchResize:function(i){i.forEach(function(o){var s=o.data,l=o.size;n(s,l.offsetWidth)})}},r.map(function(a){return m.createElement(JZe,{key:a,columnKey:a,onColumnResize:n})})))}function XZe(e){var t=e.data,r=e.getRowKey,n=e.measureColumnWidth,a=e.expandedKeys,i=e.onRow,o=e.rowExpandable,s=e.emptyNode,l=e.childrenColumnName,A=m.useContext(P0e),c=A.onColumnResize,u=m.useContext(PA),d=u.prefixCls,f=u.getComponent,h=m.useContext(FR),g=h.flattenColumns,p=VZe(t,l,a,r),E=m.useRef({renderWithProps:!1}),y=m.useState(-1),C=De(y,2),w=C[0],B=C[1],M=m.useState(-1),I=De(M,2),S=I[0],R=I[1],b=m.useCallback(function(D,F){B(D),R(F)},[]),Q=m.useMemo(function(){var D=f(["body","wrapper"],"tbody"),F=f(["body","row"],"tr"),N=f(["body","cell"],"td"),k;t.length?k=p.map(function(P,z){var j=P.record,V=P.indent,L=P.index,K=r(j,z);return m.createElement(O0e,{key:K,rowKey:K,record:j,recordKey:K,index:z,renderIndex:L,rowComponent:F,cellComponent:N,expandedKeys:a,onRow:i,getRowKey:r,rowExpandable:o,childrenColumnName:l,indent:V})}):k=m.createElement(k0e,{expanded:!0,className:"".concat(d,"-placeholder"),prefixCls:d,component:F,cellComponent:N,colSpan:g.length,isEmpty:!0},s);var O=DR(g);return m.createElement(D,{className:"".concat(d,"-tbody")},n&&m.createElement(WZe,{prefixCls:d,columnsKey:O,onColumnResize:c}),k)},[t,d,i,n,a,r,f,s,g,l,c,o,p]);return m.createElement(D0e.Provider,{value:E.current},m.createElement(Q0e.Provider,{value:{startRow:w,endRow:S,onHover:b}},Q))}var j0e=m.memo(XZe);j0e.displayName="Body";var qZe=["expandable"],W0="RC_TABLE_INTERNAL_COL_DEFINE";function ZZe(e){var t=e.expandable,r=Tr(e,qZe),n;return"expandable"in e?n=$($({},r),t):n=r,n.showExpandColumn===!1&&(n.expandIconColumnIndex=-1),n}var uf={},$Ze=["children"],e$e=["fixed"];function L5(e){return ui(e).filter(function(t){return m.isValidElement(t)}).map(function(t){var r=t.key,n=t.props,a=n.children,i=Tr(n,$Ze),o=$({key:r},i);return a&&(o.children=L5(a)),o})}function rj(e){return e.reduce(function(t,r){var n=r.fixed,a=n===!0?"left":n,i=r.children;return i&&i.length>0?[].concat(Nt(t),Nt(rj(i).map(function(o){return $({fixed:a},o)}))):[].concat(Nt(t),[$($({},r),{},{fixed:a})])},[])}function t$e(e){return e.map(function(t){var r=t.fixed,n=Tr(t,e$e),a=r;return r==="left"?a="right":r==="right"&&(a="left"),$({fixed:a},n)})}function r$e(e,t){var r=e.prefixCls,n=e.columns,a=e.children,i=e.expandable,o=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,A=e.onTriggerExpand,c=e.expandIcon,u=e.rowExpandable,d=e.expandIconColumnIndex,f=e.direction,h=e.expandRowByClick,g=e.columnWidth,p=e.fixed,E=m.useMemo(function(){return n||L5(a)},[n,a]),y=m.useMemo(function(){if(i){var B,M=E.slice();if(!M.includes(uf)){var I=d||0;I>=0&&M.splice(I,0,uf)}var S=M.indexOf(uf);M=M.filter(function(D,F){return D!==uf||F===S});var R=E[S],b;(p==="left"||p)&&!d?b="left":(p==="right"||p)&&d===E.length?b="right":b=R?R.fixed:null;var Q=(B={},X(B,W0,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),X(B,"title",s),X(B,"fixed",b),X(B,"className","".concat(r,"-row-expand-icon-cell")),X(B,"width",g),X(B,"render",function(F,N,k){var O=l(N,k),P=o.has(O),z=u?u(N):!0,j=c({prefixCls:r,expanded:P,expandable:z,record:N,onExpand:A});return h?m.createElement("span",{onClick:function(L){return L.stopPropagation()}},j):j}),B);return M.map(function(D){return D===uf?Q:D})}return E.filter(function(D){return D!==uf})},[i,E,l,o,c,f]),C=m.useMemo(function(){var B=y;return t&&(B=t(B)),B.length||(B=[{render:function(){return null}}]),B},[t,y,f]),w=m.useMemo(function(){return f==="rtl"?t$e(rj(C)):rj(C)},[C,f]);return[C,w]}function Y0e(e){var t=m.useRef(e),r=m.useState({}),n=De(r,2),a=n[1],i=m.useRef(null),o=m.useRef([]);function s(l){o.current.push(l);var A=Promise.resolve();i.current=A,A.then(function(){if(i.current===A){var c=o.current,u=t.current;o.current=[],c.forEach(function(d){t.current=d(t.current)}),i.current=null,u!==t.current&&a({})}})}return m.useEffect(function(){return function(){i.current=null}},[]),[t.current,s]}function n$e(e){var t=m.useRef(null),r=m.useRef();function n(){window.clearTimeout(r.current)}function a(o){t.current=o,n(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)}function i(){return t.current}return m.useEffect(function(){return n},[]),[a,i]}function a$e(e,t,r){var n=m.useMemo(function(){for(var a=[],i=[],o=0,s=0,l=0;l<t;l+=1)if(r==="rtl"){i[l]=s,s+=e[l]||0;var A=t-l-1;a[A]=o,o+=e[A]||0}else{a[l]=o,o+=e[l]||0;var c=t-l-1;i[c]=s,s+=e[c]||0}return{left:a,right:i}},[e,t,r]);return n}var i$e=["columnType"];function L0e(e){for(var t=e.colWidths,r=e.columns,n=e.columCount,a=[],i=n||r.length,o=!1,s=i-1;s>=0;s-=1){var l=t[s],A=r&&r[s],c=A&&A[W0];if(l||c||o){var u=c||{};u.columnType;var d=Tr(u,i$e);a.unshift(m.createElement("col",oe({key:s,style:{width:l}},d))),o=!0}}return m.createElement("colgroup",null,a)}function fq(e){var t=e.className,r=e.children;return m.createElement("div",{className:t},r)}var U0e=m.createContext({});function o$e(e){var t=e.className,r=e.index,n=e.children,a=e.colSpan,i=a===void 0?1:a,o=e.rowSpan,s=e.align,l=m.useContext(PA),A=l.prefixCls,c=l.direction,u=m.useContext(U0e),d=u.scrollColumnIndex,f=u.stickyOffsets,h=u.flattenColumns,g=r+i-1,p=g+1===d?i+1:i,E=Y5(r,r+p-1,h,f,c);return m.createElement(DC,oe({className:t,index:r,component:"td",prefixCls:A,record:null,dataIndex:null,align:s,colSpan:p,rowSpan:o,render:function(){return n}},E))}var s$e=["children"];function l$e(e){var t=e.children,r=Tr(e,s$e);return m.createElement("tr",r,t)}function _R(e){var t=e.children;return t}_R.Row=l$e;_R.Cell=o$e;function Tw(e){var t=e.children,r=e.stickyOffsets,n=e.flattenColumns,a=m.useContext(PA),i=a.prefixCls,o=n.length-1,s=n[o],l=m.useMemo(function(){return{stickyOffsets:r,flattenColumns:n,scrollColumnIndex:s!=null&&s.scrollbar?o:null}},[s,n,o,r]);return m.createElement(U0e.Provider,{value:l},m.createElement("tfoot",{className:"".concat(i,"-summary")},t))}var H0e=_R;function A$e(e){var t,r=e.prefixCls,n=e.record,a=e.onExpand,i=e.expanded,o=e.expandable,s="".concat(r,"-row-expand-icon");if(!o)return m.createElement("span",{className:He(s,"".concat(r,"-row-spaced"))});var l=function(c){a(n,c),c.stopPropagation()};return m.createElement("span",{className:He(s,(t={},X(t,"".concat(r,"-row-expanded"),i),X(t,"".concat(r,"-row-collapsed"),!i),t)),onClick:l})}function c$e(e,t,r){var n=[];function a(i){(i||[]).forEach(function(o,s){n.push(t(o,s)),a(o[r])})}return a(e),n}var u$e=function(t,r){var n,a,i=t.scrollBodyRef,o=t.onScroll,s=t.offsetScroll,l=t.container,A=m.useContext(PA),c=A.prefixCls,u=((n=i.current)===null||n===void 0?void 0:n.scrollWidth)||0,d=((a=i.current)===null||a===void 0?void 0:a.clientWidth)||0,f=u&&d*(d/u),h=m.useRef(),g=Y0e({scrollLeft:0,isHiddenScrollBar:!1}),p=De(g,2),E=p[0],y=p[1],C=m.useRef({delta:0,x:0}),w=m.useState(!1),B=De(w,2),M=B[0],I=B[1],S=function(){I(!1)},R=function(N){N.persist(),C.current.delta=N.pageX-E.scrollLeft,C.current.x=0,I(!0),N.preventDefault()},b=function(N){var k,O=N||((k=window)===null||k===void 0?void 0:k.event),P=O.buttons;if(!M||P===0){M&&I(!1);return}var z=C.current.x+N.pageX-C.current.x-C.current.delta;z<=0&&(z=0),z+f>=d&&(z=d-f),o({scrollLeft:z/d*(u+2)}),C.current.x=N.pageX},Q=function(){if(i.current){var N=HX(i.current).top,k=N+i.current.offsetHeight,O=l===window?document.documentElement.scrollTop+window.innerHeight:HX(l).top+l.clientHeight;k-DX()<=O||N>=O-s?y(function(P){return $($({},P),{},{isHiddenScrollBar:!0})}):y(function(P){return $($({},P),{},{isHiddenScrollBar:!1})})}},D=function(N){y(function(k){return $($({},k),{},{scrollLeft:N/u*d||0})})};return m.useImperativeHandle(r,function(){return{setScrollLeft:D}}),m.useEffect(function(){var F=mc(document.body,"mouseup",S,!1),N=mc(document.body,"mousemove",b,!1);return Q(),function(){F.remove(),N.remove()}},[f,M]),m.useEffect(function(){var F=mc(l,"scroll",Q,!1),N=mc(window,"resize",Q,!1);return function(){F.remove(),N.remove()}},[l]),m.useEffect(function(){E.isHiddenScrollBar||y(function(F){var N=i.current;return N?$($({},F),{},{scrollLeft:N.scrollLeft/N.scrollWidth*N.clientWidth}):F})},[E.isHiddenScrollBar]),u<=d||!f||E.isHiddenScrollBar?null:m.createElement("div",{style:{height:DX(),width:d,bottom:s},className:"".concat(c,"-sticky-scroll")},m.createElement("div",{onMouseDown:R,ref:h,className:He("".concat(c,"-sticky-scroll-bar"),X({},"".concat(c,"-sticky-scroll-bar-active"),M)),style:{width:"".concat(f,"px"),transform:"translate3d(".concat(E.scrollLeft,"px, 0, 0)")}}))};const d$e=m.forwardRef(u$e);var hq=Gi()?window:null;function f$e(e,t){var r=Xt(e)==="object"?e:{},n=r.offsetHeader,a=n===void 0?0:n,i=r.offsetSummary,o=i===void 0?0:i,s=r.offsetScroll,l=s===void 0?0:s,A=r.getContainer,c=A===void 0?function(){return hq}:A,u=c()||hq;return m.useMemo(function(){var d=!!e;return{isSticky:d,stickyClassName:d?"".concat(t,"-sticky-holder"):"",offsetHeader:a,offsetSummary:o,offsetScroll:l,container:u}},[l,a,o,t,u])}var h$e=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function g$e(e,t){return m.useMemo(function(){for(var r=[],n=0;n<t;n+=1){var a=e[n];if(a!==void 0)r[n]=a;else return null}return r},[e.join("_"),t])}var nj=m.forwardRef(function(e,t){var r=e.className,n=e.noData,a=e.columns,i=e.flattenColumns,o=e.colWidths,s=e.columCount,l=e.stickyOffsets,A=e.direction,c=e.fixHeader,u=e.stickyTopOffset,d=e.stickyBottomOffset,f=e.stickyClassName,h=e.onScroll,g=e.maxContentScroll,p=e.children,E=Tr(e,h$e),y=m.useContext(PA),C=y.prefixCls,w=y.scrollbarSize,B=y.isSticky,M=B&&!c?0:w,I=m.useRef(null),S=m.useCallback(function(O){ob(t,O),ob(I,O)},[]);m.useEffect(function(){var O;function P(z){var j=z.currentTarget,V=z.deltaX;V&&(h({currentTarget:j,scrollLeft:j.scrollLeft+V}),z.preventDefault())}return(O=I.current)===null||O===void 0||O.addEventListener("wheel",P),function(){var z;(z=I.current)===null||z===void 0||z.removeEventListener("wheel",P)}},[]);var R=m.useMemo(function(){return i.every(function(O){return O.width>=0})},[i]),b=i[i.length-1],Q={fixed:b?b.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},D=m.useMemo(function(){return M?[].concat(Nt(a),[Q]):a},[M,a]),F=m.useMemo(function(){return M?[].concat(Nt(i),[Q]):i},[M,i]),N=m.useMemo(function(){var O=l.right,P=l.left;return $($({},l),{},{left:A==="rtl"?[].concat(Nt(P.map(function(z){return z+M})),[0]):P,right:A==="rtl"?O:[].concat(Nt(O.map(function(z){return z+M})),[0]),isSticky:B})},[M,l,B]),k=g$e(o,s);return m.createElement("div",{style:$({overflow:"hidden"},B?{top:u,bottom:d}:{}),ref:S,className:He(r,X({},f,!!f))},m.createElement("table",{style:{tableLayout:"fixed",visibility:n||k?null:"hidden"}},(!n||!g||R)&&m.createElement(L0e,{colWidths:k?[].concat(Nt(k),[M]):[],columCount:s+1,columns:F}),p($($({},E),{},{stickyOffsets:N,columns:D,flattenColumns:F}))))});nj.displayName="FixedHolder";var p$e=[],v$e={},BI="rc-table-internal-hook",m$e=m.memo(function(e){var t=e.children;return t},function(e,t){return ov(e.props,t.props)?e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight:!1});function Mh(e){var t,r=e.prefixCls,n=e.className,a=e.rowClassName,i=e.style,o=e.data,s=e.rowKey,l=e.scroll,A=e.tableLayout,c=e.direction,u=e.title,d=e.footer,f=e.summary,h=e.id,g=e.showHeader,p=e.components,E=e.emptyText,y=e.onRow,C=e.onHeaderRow,w=e.internalHooks,B=e.transformColumns,M=e.internalRefs,I=e.sticky,S=o||p$e,R=!!S.length,b=m.useCallback(function(or,vr){return R0e(p||{},or)||vr},[p]),Q=m.useMemo(function(){return typeof s=="function"?s:function(or){var vr=or&&or[s];return vr}},[s]),D=ZZe(e),F=D.expandIcon,N=D.expandedRowKeys,k=D.defaultExpandedRowKeys,O=D.defaultExpandAllRows,P=D.expandedRowRender,z=D.columnTitle,j=D.onExpand,V=D.onExpandedRowsChange,L=D.expandRowByClick,K=D.rowExpandable,J=D.expandIconColumnIndex,Y=D.expandedRowClassName,W=D.childrenColumnName,q=D.indentSize,ee=F||A$e,ae=W||"children",ne=m.useMemo(function(){return P?"row":e.expandable&&w===BI&&e.expandable.__PARENT_RENDER_ICON__||S.some(function(or){return or&&Xt(or)==="object"&&or[ae]})?"nest":!1},[!!P,S]),ce=m.useState(function(){return k||(O?c$e(S,Q,ae):[])}),ue=De(ce,2),ge=ue[0],Se=ue[1],ye=m.useMemo(function(){return new Set(N||ge||[])},[N,ge]),pe=m.useCallback(function(or){var vr=Q(or,S.indexOf(or)),Zt,gn=ye.has(vr);gn?(ye.delete(vr),Zt=Nt(ye)):Zt=[].concat(Nt(ye),[vr]),Se(Zt),j&&j(!gn,or),V&&V(Zt)},[Q,ye,S,j,V]),Qe=m.useState(0),Ue=De(Qe,2),tt=Ue[0],it=Ue[1],we=r$e($($($({},e),D),{},{expandable:!!P,columnTitle:z,expandedKeys:ye,getRowKey:Q,onTriggerExpand:pe,expandIcon:ee,expandIconColumnIndex:J,direction:c}),w===BI?B:null),ve=De(we,2),Te=ve[0],Be=ve[1],Ge=m.useMemo(function(){return{columns:Te,flattenColumns:Be}},[Te,Be]),ht=m.useRef(),We=m.useRef(),Ke=m.useRef(),Xe=m.useRef(),$e=m.useRef(),pt=m.useState(!1),de=De(pt,2),Fe=de[0],je=de[1],et=m.useState(!1),xe=De(et,2),Ne=xe[0],le=xe[1],At=Y0e(new Map),Bt=De(At,2),G=Bt[0],Ee=Bt[1],Ie=DR(Be),ie=Ie.map(function(or){return G.get(or)}),re=m.useMemo(function(){return ie},[ie.join("_")]),he=a$e(re,Be.length,c),Pe=l&&tj(l.y),be=l&&tj(l.x)||!!D.fixed,Ve=be&&Be.some(function(or){var vr=or.fixed;return vr}),lt=m.useRef(),Ze=f$e(I,r),Le=Ze.isSticky,rt=Ze.offsetHeader,Qt=Ze.offsetSummary,Dt=Ze.offsetScroll,ur=Ze.stickyClassName,br=Ze.container,Er=f==null?void 0:f(S),hr=(Pe||Le)&&m.isValidElement(Er)&&Er.type===_R&&Er.props.fixed,Wt,$t,tr;Pe&&($t={overflowY:"scroll",maxHeight:l.y}),be&&(Wt={overflowX:"auto"},Pe||($t={overflowY:"hidden"}),tr={width:(l==null?void 0:l.x)===!0?"auto":l==null?void 0:l.x,minWidth:"100%"});var ir=m.useCallback(function(or,vr){aR(ht.current)&&Ee(function(Zt){if(Zt.get(or)!==vr){var gn=new Map(Zt);return gn.set(or,vr),gn}return Zt})},[]),ar=n$e(),rr=De(ar,2),Yt=rr[0],Vt=rr[1];function Ut(or,vr){vr&&(typeof vr=="function"?vr(or):vr.scrollLeft!==or&&(vr.scrollLeft=or))}var Mt=function(vr){var Zt=vr.currentTarget,gn=vr.scrollLeft,pn=c==="rtl",Yr=typeof gn=="number"?gn:Zt.scrollLeft,Di=Zt||v$e;if(!Vt()||Vt()===Di){var qn;Yt(Di),Ut(Yr,We.current),Ut(Yr,Ke.current),Ut(Yr,$e.current),Ut(Yr,(qn=lt.current)===null||qn===void 0?void 0:qn.setScrollLeft)}if(Zt){var Je=Zt.scrollWidth,Et=Zt.clientWidth;if(Je===Et){je(!1),le(!1);return}pn?(je(-Yr<Je-Et),le(-Yr>0)):(je(Yr>0),le(Yr<Je-Et))}},xt=function(){be&&Ke.current?Mt({currentTarget:Ke.current}):(je(!1),le(!1))},Ft=function(vr){var Zt=vr.width;Zt!==tt&&(xt(),it(ht.current?ht.current.offsetWidth:Zt))},qt=m.useRef(!1);m.useEffect(function(){qt.current&&xt()},[be,o,Te.length]),m.useEffect(function(){qt.current=!0},[]);var gr=m.useState(0),Hr=De(gr,2),zr=Hr[0],an=Hr[1],qe=m.useState(!0),ke=De(qe,2),ut=ke[0],gt=ke[1];m.useEffect(function(){Ke.current instanceof Element?an(Wz(Ke.current).width):an(Wz(Xe.current).width),gt(Qz("position","sticky"))},[]),m.useEffect(function(){w===BI&&M&&(M.body.current=Ke.current)});var bt=b(["table"],"table"),dt=m.useMemo(function(){return A||(Ve?(l==null?void 0:l.x)==="max-content"?"auto":"fixed":Pe||Le||Be.some(function(or){var vr=or.ellipsis;return vr})?"fixed":"auto")},[Pe,Ve,Be,A,Le]),se,Ce={colWidths:re,columCount:Be.length,stickyOffsets:he,onHeaderRow:C,fixHeader:Pe,scroll:l},fe=m.useMemo(function(){return R?null:typeof E=="function"?E():E},[R,E]),Me=m.createElement(j0e,{data:S,measureColumnWidth:Pe||be||Le,expandedKeys:ye,rowExpandable:K,getRowKey:Q,onRow:y,emptyNode:fe,childrenColumnName:ae}),Re=m.createElement(L0e,{colWidths:Be.map(function(or){var vr=or.width;return vr}),columns:Be}),Oe=b(["body"]);if(Pe||Le){var st;typeof Oe=="function"?(st=Oe(S,{scrollbarSize:zr,ref:Ke,onScroll:Mt}),Ce.colWidths=Be.map(function(or,vr){var Zt=or.width,gn=vr===Te.length-1?Zt-zr:Zt;return typeof gn=="number"&&!Number.isNaN(gn)?gn:(Sn(!1,"When use `components.body` with render props. Each column should have a fixed `width` value."),0)})):st=m.createElement("div",{style:$($({},Wt),$t),onScroll:Mt,ref:Ke,className:He("".concat(r,"-body"))},m.createElement(bt,{style:$($({},tr),{},{tableLayout:dt})},Re,Me,!hr&&Er&&m.createElement(Tw,{stickyOffsets:he,flattenColumns:Be},Er)));var Ct=$($($({noData:!S.length,maxContentScroll:be&&l.x==="max-content"},Ce),Ge),{},{direction:c,stickyClassName:ur,onScroll:Mt});se=m.createElement(m.Fragment,null,g!==!1&&m.createElement(nj,oe({},Ct,{stickyTopOffset:rt,className:"".concat(r,"-header"),ref:We}),function(or){return m.createElement(m.Fragment,null,m.createElement(dq,or),hr==="top"&&m.createElement(Tw,or,Er))}),st,hr&&hr!=="top"&&m.createElement(nj,oe({},Ct,{stickyBottomOffset:Qt,className:"".concat(r,"-summary"),ref:$e}),function(or){return m.createElement(Tw,or,Er)}),Le&&m.createElement(d$e,{ref:lt,offsetScroll:Dt,scrollBodyRef:Ke,onScroll:Mt,container:br}))}else se=m.createElement("div",{style:$($({},Wt),$t),className:He("".concat(r,"-content")),onScroll:Mt,ref:Ke},m.createElement(bt,{style:$($({},tr),{},{tableLayout:dt})},Re,g!==!1&&m.createElement(dq,oe({},Ce,Ge)),Me,Er&&m.createElement(Tw,{stickyOffsets:he,flattenColumns:Be},Er)));var St=Qc(e,{aria:!0,data:!0}),It=m.createElement("div",oe({className:He(r,n,(t={},X(t,"".concat(r,"-rtl"),c==="rtl"),X(t,"".concat(r,"-ping-left"),Fe),X(t,"".concat(r,"-ping-right"),Ne),X(t,"".concat(r,"-layout-fixed"),A==="fixed"),X(t,"".concat(r,"-fixed-header"),Pe),X(t,"".concat(r,"-fixed-column"),Ve),X(t,"".concat(r,"-scroll-horizontal"),be),X(t,"".concat(r,"-has-fix-left"),Be[0]&&Be[0].fixed),X(t,"".concat(r,"-has-fix-right"),Be[Be.length-1]&&Be[Be.length-1].fixed==="right"),t)),style:i,id:h,ref:ht},St),m.createElement(m$e,{pingLeft:Fe,pingRight:Ne,props:$($({},e),{},{stickyOffsets:he,mergedExpandedKeys:ye})},u&&m.createElement(fq,{className:"".concat(r,"-title")},u(S)),m.createElement("div",{ref:Xe,className:"".concat(r,"-container")},se),d&&m.createElement(fq,{className:"".concat(r,"-footer")},d(S))));be&&(It=m.createElement(ks,{onResize:Ft},It));var kt=m.useMemo(function(){return{prefixCls:r,getComponent:b,scrollbarSize:zr,direction:c,fixedInfoList:Be.map(function(or,vr){return Y5(vr,vr,Be,he,c)}),isSticky:Le}},[r,b,zr,c,Be,he,Le]),nr=m.useMemo(function(){return $($({},Ge),{},{tableLayout:dt,rowClassName:a,expandedRowClassName:Y,expandIcon:ee,expandableType:ne,expandRowByClick:L,expandedRowRender:P,onTriggerExpand:pe,expandIconColumnIndex:J,indentSize:q,allColumnsFixedLeft:Ge.flattenColumns.every(function(or){return or.fixed==="left"})})},[Ge,dt,a,Y,ee,ne,L,P,pe,J,q]),Qr=m.useMemo(function(){return{componentWidth:tt,fixHeader:Pe,fixColumn:Ve,horizonScroll:be}},[tt,Pe,Ve,be]),kr=m.useMemo(function(){return{onColumnResize:ir}},[ir]);return m.createElement(T0e.Provider,{value:ut},m.createElement(PA.Provider,{value:kt},m.createElement(FR.Provider,{value:nr},m.createElement(N0e.Provider,{value:Qr},m.createElement(P0e.Provider,{value:kr},It)))))}Mh.EXPAND_COLUMN=uf;Mh.Column=_Ze;Mh.ColumnGroup=FZe;Mh.Summary=H0e;Mh.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};function E$e(e){return null}function y$e(e){return null}function C$e(e){return function(r){var n=r.prefixCls,a=r.onExpand,i=r.record,o=r.expanded,s=r.expandable,l="".concat(n,"-row-expand-icon");return m.createElement("button",{type:"button",onClick:function(c){a(i,c),c.stopPropagation()},className:He(l,X(X(X({},"".concat(l,"-spaced"),!s),"".concat(l,"-expanded"),s&&o),"".concat(l,"-collapsed"),s&&!o)),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function Av(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function NR(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function kR(e,t){return typeof e=="function"?e(t):e}function w$e(e,t){var r=kR(e,t);return Object.prototype.toString.call(r)==="[object Object]"?"":r}var MN,gq;function B$e(){if(gq)return MN;gq=1;var e=yY();function t(r,n){return e(r,n)}return MN=t,MN}var M$e=B$e();const pq=Nr(M$e);var U5=m.createContext(null);function x$e(e){var t=e.dropPosition,r=e.dropLevelOffset,n=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-r*n;break;case 1:a.bottom=0,a.left=-r*n;break;case 0:a.bottom=0,a.left=n;break}return m.createElement("div",{style:a})}function G0e(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var I$e=function(t){for(var r=t.prefixCls,n=t.level,a=t.isStart,i=t.isEnd,o="".concat(r,"-indent-unit"),s=[],l=0;l<n;l+=1){var A;s.push(m.createElement("span",{key:l,className:He(o,(A={},X(A,"".concat(o,"-start"),a[l]),X(A,"".concat(o,"-end"),i[l]),A))}))}return m.createElement("span",{"aria-hidden":"true",className:"".concat(r,"-indent")},s)};const b$e=m.memo(I$e);var S$e=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],vq="open",mq="close",R$e="---",T$e=function(e){xn(r,e);var t=sa(r);function r(){var n;sn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.state={dragNodeHighlight:!1},n.selectHandle=void 0,n.cacheIndent=void 0,n.onSelectorClick=function(s){var l=n.props.context.onNodeClick;l(s,Ga(n.props)),n.isSelectable()?n.onSelect(s):n.onCheck(s)},n.onSelectorDoubleClick=function(s){var l=n.props.context.onNodeDoubleClick;l(s,Ga(n.props))},n.onSelect=function(s){if(!n.isDisabled()){var l=n.props.context.onNodeSelect;l(s,Ga(n.props))}},n.onCheck=function(s){if(!n.isDisabled()){var l=n.props,A=l.disableCheckbox,c=l.checked,u=n.props.context.onNodeCheck;if(!(!n.isCheckable()||A)){var d=!c;u(s,Ga(n.props),d)}}},n.onMouseEnter=function(s){var l=n.props.context.onNodeMouseEnter;l(s,Ga(n.props))},n.onMouseLeave=function(s){var l=n.props.context.onNodeMouseLeave;l(s,Ga(n.props))},n.onContextMenu=function(s){var l=n.props.context.onNodeContextMenu;l(s,Ga(n.props))},n.onDragStart=function(s){var l=n.props.context.onNodeDragStart;s.stopPropagation(),n.setState({dragNodeHighlight:!0}),l(s,at(n));try{s.dataTransfer.setData("text/plain","")}catch{}},n.onDragEnter=function(s){var l=n.props.context.onNodeDragEnter;s.preventDefault(),s.stopPropagation(),l(s,at(n))},n.onDragOver=function(s){var l=n.props.context.onNodeDragOver;s.preventDefault(),s.stopPropagation(),l(s,at(n))},n.onDragLeave=function(s){var l=n.props.context.onNodeDragLeave;s.stopPropagation(),l(s,at(n))},n.onDragEnd=function(s){var l=n.props.context.onNodeDragEnd;s.stopPropagation(),n.setState({dragNodeHighlight:!1}),l(s,at(n))},n.onDrop=function(s){var l=n.props.context.onNodeDrop;s.preventDefault(),s.stopPropagation(),n.setState({dragNodeHighlight:!1}),l(s,at(n))},n.onExpand=function(s){var l=n.props,A=l.loading,c=l.context.onNodeExpand;A||c(s,Ga(n.props))},n.setSelectHandle=function(s){n.selectHandle=s},n.getNodeState=function(){var s=n.props.expanded;return n.isLeaf()?null:s?vq:mq},n.hasChildren=function(){var s=n.props.eventKey,l=n.props.context.keyEntities,A=$o(l,s)||{},c=A.children;return!!(c||[]).length},n.isLeaf=function(){var s=n.props,l=s.isLeaf,A=s.loaded,c=n.props.context.loadData,u=n.hasChildren();return l===!1?!1:l||!c&&!u||c&&A&&!u},n.isDisabled=function(){var s=n.props.disabled,l=n.props.context.disabled;return!!(l||s)},n.isCheckable=function(){var s=n.props.checkable,l=n.props.context.checkable;return!l||s===!1?!1:l},n.syncLoadData=function(s){var l=s.expanded,A=s.loading,c=s.loaded,u=n.props.context,d=u.loadData,f=u.onNodeLoad;A||d&&l&&!n.isLeaf()&&!n.hasChildren()&&!c&&f(Ga(n.props))},n.isDraggable=function(){var s=n.props,l=s.data,A=s.context.draggable;return!!(A&&(!A.nodeDraggable||A.nodeDraggable(l)))},n.renderDragHandler=function(){var s=n.props.context,l=s.draggable,A=s.prefixCls;return l!=null&&l.icon?m.createElement("span",{className:"".concat(A,"-draggable-icon")},l.icon):null},n.renderSwitcherIconDom=function(s){var l=n.props.switcherIcon,A=n.props.context.switcherIcon,c=l||A;return typeof c=="function"?c($($({},n.props),{},{isLeaf:s})):c},n.renderSwitcher=function(){var s=n.props.expanded,l=n.props.context.prefixCls;if(n.isLeaf()){var A=n.renderSwitcherIconDom(!0);return A!==!1?m.createElement("span",{className:He("".concat(l,"-switcher"),"".concat(l,"-switcher-noop"))},A):null}var c=He("".concat(l,"-switcher"),"".concat(l,"-switcher_").concat(s?vq:mq)),u=n.renderSwitcherIconDom(!1);return u!==!1?m.createElement("span",{onClick:n.onExpand,className:c},u):null},n.renderCheckbox=function(){var s=n.props,l=s.checked,A=s.halfChecked,c=s.disableCheckbox,u=n.props.context.prefixCls,d=n.isDisabled(),f=n.isCheckable();if(!f)return null;var h=typeof f!="boolean"?f:null;return m.createElement("span",{className:He("".concat(u,"-checkbox"),l&&"".concat(u,"-checkbox-checked"),!l&&A&&"".concat(u,"-checkbox-indeterminate"),(d||c)&&"".concat(u,"-checkbox-disabled")),onClick:n.onCheck},h)},n.renderIcon=function(){var s=n.props.loading,l=n.props.context.prefixCls;return m.createElement("span",{className:He("".concat(l,"-iconEle"),"".concat(l,"-icon__").concat(n.getNodeState()||"docu"),s&&"".concat(l,"-icon_loading"))})},n.renderSelector=function(){var s=n.state.dragNodeHighlight,l=n.props,A=l.title,c=A===void 0?R$e:A,u=l.selected,d=l.icon,f=l.loading,h=l.data,g=n.props.context,p=g.prefixCls,E=g.showIcon,y=g.icon,C=g.loadData,w=g.titleRender,B=n.isDisabled(),M="".concat(p,"-node-content-wrapper"),I;if(E){var S=d||y;I=S?m.createElement("span",{className:He("".concat(p,"-iconEle"),"".concat(p,"-icon__customize"))},typeof S=="function"?S(n.props):S):n.renderIcon()}else C&&f&&(I=n.renderIcon());var R;typeof c=="function"?R=c(h):w?R=w(h):R=c;var b=m.createElement("span",{className:"".concat(p,"-title")},R);return m.createElement("span",{ref:n.setSelectHandle,title:typeof c=="string"?c:"",className:He("".concat(M),"".concat(M,"-").concat(n.getNodeState()||"normal"),!B&&(u||s)&&"".concat(p,"-node-selected")),onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,onContextMenu:n.onContextMenu,onClick:n.onSelectorClick,onDoubleClick:n.onSelectorDoubleClick},I,b,n.renderDropIndicator())},n.renderDropIndicator=function(){var s=n.props,l=s.disabled,A=s.eventKey,c=n.props.context,u=c.draggable,d=c.dropLevelOffset,f=c.dropPosition,h=c.prefixCls,g=c.indent,p=c.dropIndicatorRender,E=c.dragOverNodeKey,y=c.direction,C=!!u,w=!l&&C&&E===A,B=g??n.cacheIndent;return n.cacheIndent=g,w?p({dropPosition:f,dropLevelOffset:d,indent:B,prefixCls:h,direction:y}):null},n}return ln(r,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var a=this.props.selectable,i=this.props.context.selectable;return typeof a=="boolean"?a:i}},{key:"render",value:function(){var a,i=this.props,o=i.eventKey,s=i.className,l=i.style,A=i.dragOver,c=i.dragOverGapTop,u=i.dragOverGapBottom,d=i.isLeaf,f=i.isStart,h=i.isEnd,g=i.expanded,p=i.selected,E=i.checked,y=i.halfChecked,C=i.loading,w=i.domRef,B=i.active;i.data;var M=i.onMouseMove,I=i.selectable,S=Tr(i,S$e),R=this.props.context,b=R.prefixCls,Q=R.filterTreeNode,D=R.keyEntities,F=R.dropContainerKey,N=R.dropTargetKey,k=R.draggingNodeKey,O=this.isDisabled(),P=Qc(S,{aria:!0,data:!0}),z=$o(D,o)||{},j=z.level,V=h[h.length-1],L=this.isDraggable(),K=!O&&L,J=k===o,Y=I!==void 0?{"aria-selected":!!I}:void 0;return m.createElement("div",oe({ref:w,className:He(s,"".concat(b,"-treenode"),(a={},X(a,"".concat(b,"-treenode-disabled"),O),X(a,"".concat(b,"-treenode-switcher-").concat(g?"open":"close"),!d),X(a,"".concat(b,"-treenode-checkbox-checked"),E),X(a,"".concat(b,"-treenode-checkbox-indeterminate"),y),X(a,"".concat(b,"-treenode-selected"),p),X(a,"".concat(b,"-treenode-loading"),C),X(a,"".concat(b,"-treenode-active"),B),X(a,"".concat(b,"-treenode-leaf-last"),V),X(a,"".concat(b,"-treenode-draggable"),L),X(a,"dragging",J),X(a,"drop-target",N===o),X(a,"drop-container",F===o),X(a,"drag-over",!O&&A),X(a,"drag-over-gap-top",!O&&c),X(a,"drag-over-gap-bottom",!O&&u),X(a,"filter-node",Q&&Q(Ga(this.props))),a)),style:l,draggable:K,"aria-grabbed":J,onDragStart:K?this.onDragStart:void 0,onDragEnter:L?this.onDragEnter:void 0,onDragOver:L?this.onDragOver:void 0,onDragLeave:L?this.onDragLeave:void 0,onDrop:L?this.onDrop:void 0,onDragEnd:L?this.onDragEnd:void 0,onMouseMove:M},Y,P),m.createElement(b$e,{prefixCls:b,level:j,isStart:f,isEnd:h}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),r}(m.Component),cv=function(t){return m.createElement(U5.Consumer,null,function(r){return m.createElement(T$e,oe({},t,{context:r}))})};cv.displayName="TreeNode";cv.isTreeNode=1;function Q$e(e,t){var r=m.useState(!1),n=De(r,2),a=n[0],i=n[1];m.useLayoutEffect(function(){if(a)return e(),function(){t()}},[a]),m.useLayoutEffect(function(){return i(!0),function(){i(!1)}},[])}var D$e=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],K0e=function(t,r){var n=t.className,a=t.style,i=t.motion,o=t.motionNodes,s=t.motionType,l=t.onMotionStart,A=t.onMotionEnd,c=t.active,u=t.treeNodeRequiredProps,d=Tr(t,D$e),f=m.useState(!0),h=De(f,2),g=h[0],p=h[1],E=m.useContext(U5),y=E.prefixCls,C=o&&s!=="hide";Wn(function(){o&&C!==g&&p(C)},[o]);var w=function(){o&&l()},B=m.useRef(!1),M=function(){o&&!B.current&&(B.current=!0,A())};Q$e(w,M);var I=function(R){C===R&&M()};return o?m.createElement(Ri,oe({ref:r,visible:g},i,{motionAppear:s==="show",onVisibleChanged:I}),function(S,R){var b=S.className,Q=S.style;return m.createElement("div",{ref:R,className:He("".concat(y,"-treenode-motion"),b),style:Q},o.map(function(D){var F=oe({},(G0e(D.data),D.data)),N=D.title,k=D.key,O=D.isStart,P=D.isEnd;delete F.children;var z=V0(k,u);return m.createElement(cv,oe({},F,z,{title:N,active:c,data:D.data,key:k,isStart:O,isEnd:P}))}))}):m.createElement(cv,oe({domRef:r,className:n,style:a},d,{active:c}))};K0e.displayName="MotionTreeNode";var F$e=m.forwardRef(K0e);function _$e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e.length,n=t.length;if(Math.abs(r-n)!==1)return{add:!1,key:null};function a(i,o){var s=new Map;i.forEach(function(A){s.set(A,!0)});var l=o.filter(function(A){return!s.has(A)});return l.length===1?l[0]:null}return r<n?{add:!0,key:a(e,t)}:{add:!1,key:a(t,e)}}function Eq(e,t,r){var n=e.findIndex(function(s){return s.key===r}),a=e[n+1],i=t.findIndex(function(s){return s.key===r});if(a){var o=t.findIndex(function(s){return s.key===a.key});return t.slice(i+1,o)}return t.slice(i+1)}var N$e=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],yq={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},k$e=function(){},eh="RC_TREE_MOTION_".concat(Math.random()),aj={key:eh},V0e={key:eh,level:0,index:0,pos:"0",node:aj,nodes:[aj]},Cq={parent:null,children:[],pos:V0e.pos,data:aj,title:null,key:eh,isStart:[],isEnd:[]};function wq(e,t,r,n){return t===!1||!r?e:e.slice(0,Math.ceil(r/n)+1)}function Bq(e){var t=e.key,r=e.pos;return bC(t,r)}function P$e(e){for(var t=String(e.data.key),r=e;r.parent;)r=r.parent,t="".concat(r.data.key," > ").concat(t);return t}var J0e=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.data;e.selectable,e.checkable;var a=e.expandedKeys,i=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,A=e.halfCheckedKeys,c=e.keyEntities,u=e.disabled,d=e.dragging,f=e.dragOverNodeKey,h=e.dropPosition,g=e.motion,p=e.height,E=e.itemHeight,y=e.virtual,C=e.focusable,w=e.activeItem,B=e.focused,M=e.tabIndex,I=e.onKeyDown,S=e.onFocus,R=e.onBlur,b=e.onActiveChange,Q=e.onListChangeStart,D=e.onListChangeEnd,F=Tr(e,N$e),N=m.useRef(null),k=m.useRef(null);m.useImperativeHandle(t,function(){return{scrollTo:function(ve){N.current.scrollTo(ve)},getIndentWidth:function(){return k.current.offsetWidth}}});var O=m.useState(a),P=De(O,2),z=P[0],j=P[1],V=m.useState(n),L=De(V,2),K=L[0],J=L[1],Y=m.useState(n),W=De(Y,2),q=W[0],ee=W[1],ae=m.useState([]),ne=De(ae,2),ce=ne[0],ue=ne[1],ge=m.useState(null),Se=De(ge,2),ye=Se[0],pe=Se[1],Qe=m.useRef(n);Qe.current=n;function Ue(){var we=Qe.current;J(we),ee(we),ue([]),pe(null),D()}Wn(function(){j(a);var we=_$e(z,a);if(we.key!==null)if(we.add){var ve=K.findIndex(function(Ke){var Xe=Ke.key;return Xe===we.key}),Te=wq(Eq(K,n,we.key),y,p,E),Be=K.slice();Be.splice(ve+1,0,Cq),ee(Be),ue(Te),pe("show")}else{var Ge=n.findIndex(function(Ke){var Xe=Ke.key;return Xe===we.key}),ht=wq(Eq(n,K,we.key),y,p,E),We=n.slice();We.splice(Ge+1,0,Cq),ee(We),ue(ht),pe("hide")}else K!==n&&(J(n),ee(n))},[a,n]),m.useEffect(function(){d||Ue()},[d]);var tt=g?q:n,it={expandedKeys:a,selectedKeys:i,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:A,dragOverNodeKey:f,dropPosition:h,keyEntities:c};return m.createElement(m.Fragment,null,B&&w&&m.createElement("span",{style:yq,"aria-live":"assertive"},P$e(w)),m.createElement("div",null,m.createElement("input",{style:yq,disabled:C===!1||u,tabIndex:C!==!1?M:null,onKeyDown:I,onFocus:S,onBlur:R,value:"",onChange:k$e,"aria-label":"for screen reader"})),m.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},m.createElement("div",{className:"".concat(r,"-indent")},m.createElement("div",{ref:k,className:"".concat(r,"-indent-unit")}))),m.createElement(GY,oe({},F,{data:tt,itemKey:Bq,height:p,fullHeight:!1,virtual:y,itemHeight:E,prefixCls:"".concat(r,"-list"),ref:N,onVisibleChange:function(ve,Te){var Be=new Set(ve),Ge=Te.filter(function(ht){return!Be.has(ht)});Ge.some(function(ht){return Bq(ht)===eh})&&Ue()}}),function(we){var ve=we.pos,Te=oe({},(G0e(we.data),we.data)),Be=we.title,Ge=we.key,ht=we.isStart,We=we.isEnd,Ke=bC(Ge,ve);delete Te.key,delete Te.children;var Xe=V0(Ke,it);return m.createElement(F$e,oe({},Te,Xe,{title:Be,active:!!w&&Ge===w.key,pos:ve,data:we.data,isStart:ht,isEnd:We,motion:g,motionNodes:Ge===eh?ce:null,motionType:ye,onMotionStart:Q,onMotionEnd:Ue,treeNodeRequiredProps:it,onMouseMove:function(){b(null)}}))}))});J0e.displayName="NodeList";function fA(e,t){if(!e)return[];var r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r}function dc(e,t){var r=(e||[]).slice();return r.indexOf(t)===-1&&r.push(t),r}function H5(e){return e.split("-")}function O$e(e,t){var r=[],n=$o(t,e);function a(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(o){var s=o.key,l=o.children;r.push(s),a(l)})}return a(n.children),r}function z$e(e){if(e.parent){var t=H5(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function j$e(e){var t=H5(e.pos);return Number(t[t.length-1])===0}function Mq(e,t,r,n,a,i,o,s,l,A){var c,u=e.clientX,d=e.clientY,f=e.target.getBoundingClientRect(),h=f.top,g=f.height,p=(A==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-u),E=(p-12)/n,y=$o(s,r.props.eventKey);if(d<h+g/2){var C=o.findIndex(function(k){return k.key===y.key}),w=C<=0?0:C-1,B=o[w].key;y=$o(s,B)}var M=y.key,I=y,S=y.key,R=0,b=0;if(!l.includes(M))for(var Q=0;Q<E&&z$e(y);Q+=1)y=y.parent,b+=1;var D=t.props.data,F=y.node,N=!0;return j$e(y)&&y.level===0&&d<h+g/2&&i({dragNode:D,dropNode:F,dropPosition:-1})&&y.key===r.props.eventKey?R=-1:(I.children||[]).length&&l.includes(S)?i({dragNode:D,dropNode:F,dropPosition:0})?R=0:N=!1:b===0?E>-1.5?i({dragNode:D,dropNode:F,dropPosition:1})?R=1:N=!1:i({dragNode:D,dropNode:F,dropPosition:0})?R=0:i({dragNode:D,dropNode:F,dropPosition:1})?R=1:N=!1:i({dragNode:D,dropNode:F,dropPosition:1})?R=1:N=!1,{dropPosition:R,dropLevelOffset:b,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:S,dropContainerKey:R===0?null:((c=y.parent)===null||c===void 0?void 0:c.key)||null,dropAllowed:N}}function xq(e,t){if(e){var r=t.multiple;return r?e.slice():e.length?[e[0]]:e}}function xN(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Xt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Sn(!1,"`checkedKeys` is not an array or an object"),null;return t}function ij(e,t){var r=new Set;function n(a){if(!r.has(a)){var i=$o(t,a);if(i){r.add(a);var o=i.parent,s=i.node;s.disabled||o&&n(o.key)}}}return(e||[]).forEach(function(a){n(a)}),Nt(r)}var Y$e=10,PR=function(e){xn(r,e);var t=sa(r);function r(){var n;sn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.destroyed=!1,n.delayedDragEnterLogic=void 0,n.loadingRetryTimes={},n.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Qb()},n.dragStartMousePosition=null,n.dragNode=void 0,n.currentMouseOverDroppableNodeKey=null,n.listRef=m.createRef(),n.onNodeDragStart=function(s,l){var A=n.state,c=A.expandedKeys,u=A.keyEntities,d=n.props.onDragStart,f=l.props.eventKey;n.dragNode=l,n.dragStartMousePosition={x:s.clientX,y:s.clientY};var h=fA(c,f);n.setState({draggingNodeKey:f,dragChildrenKeys:O$e(f,u),indent:n.listRef.current.getIndentWidth()}),n.setExpandedKeys(h),window.addEventListener("dragend",n.onWindowDragEnd),d==null||d({event:s,node:Ga(l.props)})},n.onNodeDragEnter=function(s,l){var A=n.state,c=A.expandedKeys,u=A.keyEntities,d=A.dragChildrenKeys,f=A.flattenNodes,h=A.indent,g=n.props,p=g.onDragEnter,E=g.onExpand,y=g.allowDrop,C=g.direction,w=l.props,B=w.pos,M=w.eventKey,I=at(n),S=I.dragNode;if(n.currentMouseOverDroppableNodeKey!==M&&(n.currentMouseOverDroppableNodeKey=M),!S){n.resetDragState();return}var R=Mq(s,S,l,h,n.dragStartMousePosition,y,f,u,c,C),b=R.dropPosition,Q=R.dropLevelOffset,D=R.dropTargetKey,F=R.dropContainerKey,N=R.dropTargetPos,k=R.dropAllowed,O=R.dragOverNodeKey;if(d.indexOf(D)!==-1||!k){n.resetDragState();return}if(n.delayedDragEnterLogic||(n.delayedDragEnterLogic={}),Object.keys(n.delayedDragEnterLogic).forEach(function(P){clearTimeout(n.delayedDragEnterLogic[P])}),S.props.eventKey!==l.props.eventKey&&(s.persist(),n.delayedDragEnterLogic[B]=window.setTimeout(function(){if(n.state.draggingNodeKey!==null){var P=Nt(c),z=$o(u,l.props.eventKey);z&&(z.children||[]).length&&(P=dc(c,l.props.eventKey)),"expandedKeys"in n.props||n.setExpandedKeys(P),E==null||E(P,{node:Ga(l.props),expanded:!0,nativeEvent:s.nativeEvent})}},800)),S.props.eventKey===D&&Q===0){n.resetDragState();return}n.setState({dragOverNodeKey:O,dropPosition:b,dropLevelOffset:Q,dropTargetKey:D,dropContainerKey:F,dropTargetPos:N,dropAllowed:k}),p==null||p({event:s,node:Ga(l.props),expandedKeys:c})},n.onNodeDragOver=function(s,l){var A=n.state,c=A.dragChildrenKeys,u=A.flattenNodes,d=A.keyEntities,f=A.expandedKeys,h=A.indent,g=n.props,p=g.onDragOver,E=g.allowDrop,y=g.direction,C=at(n),w=C.dragNode;if(w){var B=Mq(s,w,l,h,n.dragStartMousePosition,E,u,d,f,y),M=B.dropPosition,I=B.dropLevelOffset,S=B.dropTargetKey,R=B.dropContainerKey,b=B.dropAllowed,Q=B.dropTargetPos,D=B.dragOverNodeKey;c.indexOf(S)!==-1||!b||(w.props.eventKey===S&&I===0?n.state.dropPosition===null&&n.state.dropLevelOffset===null&&n.state.dropTargetKey===null&&n.state.dropContainerKey===null&&n.state.dropTargetPos===null&&n.state.dropAllowed===!1&&n.state.dragOverNodeKey===null||n.resetDragState():M===n.state.dropPosition&&I===n.state.dropLevelOffset&&S===n.state.dropTargetKey&&R===n.state.dropContainerKey&&Q===n.state.dropTargetPos&&b===n.state.dropAllowed&&D===n.state.dragOverNodeKey||n.setState({dropPosition:M,dropLevelOffset:I,dropTargetKey:S,dropContainerKey:R,dropTargetPos:Q,dropAllowed:b,dragOverNodeKey:D}),p==null||p({event:s,node:Ga(l.props)}))}},n.onNodeDragLeave=function(s,l){n.currentMouseOverDroppableNodeKey===l.props.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(n.resetDragState(),n.currentMouseOverDroppableNodeKey=null);var A=n.props.onDragLeave;A==null||A({event:s,node:Ga(l.props)})},n.onWindowDragEnd=function(s){n.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",n.onWindowDragEnd)},n.onNodeDragEnd=function(s,l){var A=n.props.onDragEnd;n.setState({dragOverNodeKey:null}),n.cleanDragState(),A==null||A({event:s,node:Ga(l.props)}),n.dragNode=null,window.removeEventListener("dragend",n.onWindowDragEnd)},n.onNodeDrop=function(s,l){var A,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=n.state,d=u.dragChildrenKeys,f=u.dropPosition,h=u.dropTargetKey,g=u.dropTargetPos,p=u.dropAllowed;if(p){var E=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),h!==null){var y=$($({},V0(h,n.getTreeNodeRequiredProps())),{},{active:((A=n.getActiveItem())===null||A===void 0?void 0:A.key)===h,data:$o(n.state.keyEntities,h).node}),C=d.indexOf(h)!==-1;Sn(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=H5(g),B={event:s,node:Ga(y),dragNode:n.dragNode?Ga(n.dragNode.props):null,dragNodesKeys:[n.dragNode.props.eventKey].concat(d),dropToGap:f!==0,dropPosition:f+Number(w[w.length-1])};c||E==null||E(B),n.dragNode=null}}},n.cleanDragState=function(){var s=n.state.draggingNodeKey;s!==null&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null},n.triggerExpandActionExpand=function(s,l){var A=n.state,c=A.expandedKeys,u=A.flattenNodes,d=l.expanded,f=l.key,h=l.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var g=u.filter(function(E){return E.key===f})[0],p=Ga($($({},V0(f,n.getTreeNodeRequiredProps())),{},{data:g.data}));n.setExpandedKeys(d?fA(c,f):dc(c,f)),n.onNodeExpand(s,p)}},n.onNodeClick=function(s,l){var A=n.props,c=A.onClick,u=A.expandAction;u==="click"&&n.triggerExpandActionExpand(s,l),c==null||c(s,l)},n.onNodeDoubleClick=function(s,l){var A=n.props,c=A.onDoubleClick,u=A.expandAction;u==="doubleClick"&&n.triggerExpandActionExpand(s,l),c==null||c(s,l)},n.onNodeSelect=function(s,l){var A=n.state.selectedKeys,c=n.state,u=c.keyEntities,d=c.fieldNames,f=n.props,h=f.onSelect,g=f.multiple,p=l.selected,E=l[d.key],y=!p;y?g?A=dc(A,E):A=[E]:A=fA(A,E);var C=A.map(function(w){var B=$o(u,w);return B?B.node:null}).filter(function(w){return w});n.setUncontrolledState({selectedKeys:A}),h==null||h(A,{event:"select",selected:y,node:l,selectedNodes:C,nativeEvent:s.nativeEvent})},n.onNodeCheck=function(s,l,A){var c=n.state,u=c.keyEntities,d=c.checkedKeys,f=c.halfCheckedKeys,h=n.props,g=h.checkStrictly,p=h.onCheck,E=l.key,y,C={event:"check",node:l,checked:A,nativeEvent:s.nativeEvent};if(g){var w=A?dc(d,E):fA(d,E),B=fA(f,E);y={checked:w,halfChecked:B},C.checkedNodes=w.map(function(Q){return $o(u,Q)}).filter(function(Q){return Q}).map(function(Q){return Q.node}),n.setUncontrolledState({checkedKeys:w})}else{var M=Rc([].concat(Nt(d),[E]),!0,u),I=M.checkedKeys,S=M.halfCheckedKeys;if(!A){var R=new Set(I);R.delete(E);var b=Rc(Array.from(R),{halfCheckedKeys:S},u);I=b.checkedKeys,S=b.halfCheckedKeys}y=I,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=S,I.forEach(function(Q){var D=$o(u,Q);if(D){var F=D.node,N=D.pos;C.checkedNodes.push(F),C.checkedNodesPositions.push({node:F,pos:N})}}),n.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:S})}p==null||p(y,C)},n.onNodeLoad=function(s){var l=s.key,A=new Promise(function(c,u){n.setState(function(d){var f=d.loadedKeys,h=f===void 0?[]:f,g=d.loadingKeys,p=g===void 0?[]:g,E=n.props,y=E.loadData,C=E.onLoad;if(!y||h.indexOf(l)!==-1||p.indexOf(l)!==-1)return null;var w=y(s);return w.then(function(){var B=n.state.loadedKeys,M=dc(B,l);C==null||C(M,{event:"load",node:s}),n.setUncontrolledState({loadedKeys:M}),n.setState(function(I){return{loadingKeys:fA(I.loadingKeys,l)}}),c()}).catch(function(B){if(n.setState(function(I){return{loadingKeys:fA(I.loadingKeys,l)}}),n.loadingRetryTimes[l]=(n.loadingRetryTimes[l]||0)+1,n.loadingRetryTimes[l]>=Y$e){var M=n.state.loadedKeys;Sn(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:dc(M,l)}),c()}u(B)}),{loadingKeys:dc(p,l)}})});return A.catch(function(){}),A},n.onNodeMouseEnter=function(s,l){var A=n.props.onMouseEnter;A==null||A({event:s,node:l})},n.onNodeMouseLeave=function(s,l){var A=n.props.onMouseLeave;A==null||A({event:s,node:l})},n.onNodeContextMenu=function(s,l){var A=n.props.onRightClick;A&&(s.preventDefault(),A({event:s,node:l}))},n.onFocus=function(){var s=n.props.onFocus;n.setState({focused:!0});for(var l=arguments.length,A=new Array(l),c=0;c<l;c++)A[c]=arguments[c];s==null||s.apply(void 0,A)},n.onBlur=function(){var s=n.props.onBlur;n.setState({focused:!1}),n.onActiveChange(null);for(var l=arguments.length,A=new Array(l),c=0;c<l;c++)A[c]=arguments[c];s==null||s.apply(void 0,A)},n.getTreeNodeRequiredProps=function(){var s=n.state,l=s.expandedKeys,A=s.selectedKeys,c=s.loadedKeys,u=s.loadingKeys,d=s.checkedKeys,f=s.halfCheckedKeys,h=s.dragOverNodeKey,g=s.dropPosition,p=s.keyEntities;return{expandedKeys:l||[],selectedKeys:A||[],loadedKeys:c||[],loadingKeys:u||[],checkedKeys:d||[],halfCheckedKeys:f||[],dragOverNodeKey:h,dropPosition:g,keyEntities:p}},n.setExpandedKeys=function(s){var l=n.state,A=l.treeData,c=l.fieldNames,u=uN(A,s,c);n.setUncontrolledState({expandedKeys:s,flattenNodes:u},!0)},n.onNodeExpand=function(s,l){var A=n.state.expandedKeys,c=n.state,u=c.listChanging,d=c.fieldNames,f=n.props,h=f.onExpand,g=f.loadData,p=l.expanded,E=l[d.key];if(!u){var y=A.indexOf(E),C=!p;if(Sn(p&&y!==-1||!p&&y===-1,"Expand state not sync with index check"),C?A=dc(A,E):A=fA(A,E),n.setExpandedKeys(A),h==null||h(A,{node:l,expanded:C,nativeEvent:s.nativeEvent}),C&&g){var w=n.onNodeLoad(l);w&&w.then(function(){var B=uN(n.state.treeData,A,d);n.setUncontrolledState({flattenNodes:B})}).catch(function(){var B=n.state.expandedKeys,M=fA(B,E);n.setExpandedKeys(M)})}}},n.onListChangeStart=function(){n.setUncontrolledState({listChanging:!0})},n.onListChangeEnd=function(){setTimeout(function(){n.setUncontrolledState({listChanging:!1})})},n.onActiveChange=function(s){var l=n.state.activeKey,A=n.props.onActiveChange;l!==s&&(n.setState({activeKey:s}),s!==null&&n.scrollTo({key:s}),A==null||A(s))},n.getActiveItem=function(){var s=n.state,l=s.activeKey,A=s.flattenNodes;return l===null?null:A.find(function(c){var u=c.key;return u===l})||null},n.offsetActiveKey=function(s){var l=n.state,A=l.flattenNodes,c=l.activeKey,u=A.findIndex(function(h){var g=h.key;return g===c});u===-1&&s<0&&(u=A.length),u=(u+s+A.length)%A.length;var d=A[u];if(d){var f=d.key;n.onActiveChange(f)}else n.onActiveChange(null)},n.onKeyDown=function(s){var l=n.state,A=l.activeKey,c=l.expandedKeys,u=l.checkedKeys,d=l.fieldNames,f=n.props,h=f.onKeyDown,g=f.checkable,p=f.selectable;switch(s.which){case Pt.UP:{n.offsetActiveKey(-1),s.preventDefault();break}case Pt.DOWN:{n.offsetActiveKey(1),s.preventDefault();break}}var E=n.getActiveItem();if(E&&E.data){var y=n.getTreeNodeRequiredProps(),C=E.data.isLeaf===!1||!!(E.data[d.children]||[]).length,w=Ga($($({},V0(A,y)),{},{data:E.data,active:!0}));switch(s.which){case Pt.LEFT:{C&&c.includes(A)?n.onNodeExpand({},w):E.parent&&n.onActiveChange(E.parent.key),s.preventDefault();break}case Pt.RIGHT:{C&&!c.includes(A)?n.onNodeExpand({},w):E.children&&E.children.length&&n.onActiveChange(E.children[0].key),s.preventDefault();break}case Pt.ENTER:case Pt.SPACE:{g&&!w.disabled&&w.checkable!==!1&&!w.disableCheckbox?n.onNodeCheck({},w,!u.includes(A)):!g&&p&&!w.disabled&&w.selectable!==!1&&n.onNodeSelect({},w);break}}}h==null||h(s)},n.setUncontrolledState=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!n.destroyed){var c=!1,u=!0,d={};Object.keys(s).forEach(function(f){if(f in n.props){u=!1;return}c=!0,d[f]=s[f]}),c&&(!l||u)&&n.setState($($({},d),A))}},n.scrollTo=function(s){n.listRef.current.scrollTo(s)},n}return ln(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props.activeKey;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a,i=this.state,o=i.focused,s=i.flattenNodes,l=i.keyEntities,A=i.draggingNodeKey,c=i.activeKey,u=i.dropLevelOffset,d=i.dropContainerKey,f=i.dropTargetKey,h=i.dropPosition,g=i.dragOverNodeKey,p=i.indent,E=this.props,y=E.prefixCls,C=E.className,w=E.style,B=E.showLine,M=E.focusable,I=E.tabIndex,S=I===void 0?0:I,R=E.selectable,b=E.showIcon,Q=E.icon,D=E.switcherIcon,F=E.draggable,N=E.checkable,k=E.checkStrictly,O=E.disabled,P=E.motion,z=E.loadData,j=E.filterTreeNode,V=E.height,L=E.itemHeight,K=E.virtual,J=E.titleRender,Y=E.dropIndicatorRender,W=E.onContextMenu,q=E.onScroll,ee=E.direction,ae=E.rootClassName,ne=E.rootStyle,ce=Qc(this.props,{aria:!0,data:!0}),ue;return F&&(Xt(F)==="object"?ue=F:typeof F=="function"?ue={nodeDraggable:F}:ue={}),m.createElement(U5.Provider,{value:{prefixCls:y,selectable:R,showIcon:b,icon:Q,switcherIcon:D,draggable:ue,draggingNodeKey:A,checkable:N,checkStrictly:k,disabled:O,keyEntities:l,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:f,dropPosition:h,dragOverNodeKey:g,indent:p,direction:ee,dropIndicatorRender:Y,loadData:z,filterTreeNode:j,titleRender:J,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},m.createElement("div",{role:"tree",className:He(y,C,ae,(a={},X(a,"".concat(y,"-show-line"),B),X(a,"".concat(y,"-focused"),o),X(a,"".concat(y,"-active-focused"),c!==null),a)),style:ne},m.createElement(J0e,oe({ref:this.listRef,prefixCls:y,style:w,data:s,disabled:O,selectable:R,checkable:!!N,motion:P,dragging:A!==null,height:V,itemHeight:L,virtual:K,focusable:M,focused:o,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:q},this.getTreeNodeRequiredProps(),ce))))}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o=i.prevProps,s={prevProps:a};function l(M){return!o&&M in a||o&&o[M]!==a[M]}var A,c=i.fieldNames;if(l("fieldNames")&&(c=Qb(a.fieldNames),s.fieldNames=c),l("treeData")?A=a.treeData:l("children")&&(Sn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),A=PEe(a.children)),A){s.treeData=A;var u=SR(A,{fieldNames:c});s.keyEntities=$(X({},eh,V0e),u.keyEntities)}var d=s.keyEntities||i.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!o&&a.defaultExpandParent?ij(a.expandedKeys,d):a.expandedKeys;else if(!o&&a.defaultExpandAll){var f=$({},d);delete f[eh],s.expandedKeys=Object.keys(f).map(function(M){return f[M].key})}else!o&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?ij(a.defaultExpandedKeys,d):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,A||s.expandedKeys){var h=uN(A||i.treeData,s.expandedKeys||i.expandedKeys,c);s.flattenNodes=h}if(a.selectable&&(l("selectedKeys")?s.selectedKeys=xq(a.selectedKeys,a):!o&&a.defaultSelectedKeys&&(s.selectedKeys=xq(a.defaultSelectedKeys,a))),a.checkable){var g;if(l("checkedKeys")?g=xN(a.checkedKeys)||{}:!o&&a.defaultCheckedKeys?g=xN(a.defaultCheckedKeys)||{}:A&&(g=xN(a.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),g){var p=g,E=p.checkedKeys,y=E===void 0?[]:E,C=p.halfCheckedKeys,w=C===void 0?[]:C;if(!a.checkStrictly){var B=Rc(y,!0,d);y=B.checkedKeys,w=B.halfCheckedKeys}s.checkedKeys=y,s.halfCheckedKeys=w}}return l("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),r}(m.Component);PR.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:x$e,allowDrop:function(){return!0},expandAction:!1};PR.TreeNode=cv;var Iq=4;function L$e(e){var t=e.dropPosition,r=e.dropLevelOffset,n=e.prefixCls,a=e.indent,i=e.direction,o=i===void 0?"ltr":i,s=o==="ltr"?"left":"right",l=o==="ltr"?"right":"left",A=X(X({},s,-r*a+Iq),l,0);switch(t){case-1:A.top=-3;break;case 1:A.bottom=-3;break;default:A.bottom=-3,A[s]=a+Iq;break}return te.createElement("div",{style:A,className:"".concat(n,"-drop-indicator")})}function W0e(e,t,r,n){var a=n.isLeaf,i=n.expanded,o=n.loading;if(o)return m.createElement(Xu,{className:"".concat(e,"-switcher-loading-icon")});var s;if(r&&Xt(r)==="object"&&(s=r.showLeafIcon),a){if(!r)return null;if(typeof s!="boolean"&&s){var l=typeof s=="function"?s(n):s,A="".concat(e,"-switcher-line-custom-icon");return is(l)?ia(l,{className:He(l.props.className||"",A)}):l}return s?m.createElement(Z3,{className:"".concat(e,"-switcher-line-icon")}):m.createElement("span",{className:"".concat(e,"-switcher-leaf-line")})}var c="".concat(e,"-switcher-icon"),u=typeof t=="function"?t(n):t;return is(u)?ia(u,{className:He(u.props.className||"",c)}):u||(r?i?m.createElement(_S,{className:"".concat(e,"-switcher-line-icon")}):m.createElement(gh,{className:"".concat(e,"-switcher-line-icon")}):m.createElement(cQe,{className:c}))}var X0e=m.forwardRef(function(e,t){var r=m.useContext(Mr),n=r.getPrefixCls,a=r.direction,i=r.virtual,o=e.prefixCls,s=e.className,l=e.showIcon,A=l===void 0?!1:l,c=e.showLine,u=e.switcherIcon,d=e.blockNode,f=d===void 0?!1:d,h=e.children,g=e.checkable,p=g===void 0?!1:g,E=e.selectable,y=E===void 0?!0:E,C=e.draggable,w=e.motion,B=w===void 0?oe(oe({},vy),{motionAppear:!1}):w,M=n("tree",o),I=oe(oe({},e),{checkable:p,selectable:y,showIcon:A,motion:B,blockNode:f,showLine:!!c,dropIndicatorRender:L$e}),S=m.useMemo(function(){if(!C)return!1;var R={};switch(Xt(C)){case"function":R.nodeDraggable=C;break;case"object":R=oe({},C);break}return R.icon!==!1&&(R.icon=R.icon||m.createElement(fFe,null)),R},[C]);return m.createElement(PR,oe({itemHeight:20,ref:t,virtual:i},I,{prefixCls:M,className:He(X(X(X(X({},"".concat(M,"-icon-hide"),!A),"".concat(M,"-block-node"),f),"".concat(M,"-unselectable"),!y),"".concat(M,"-rtl"),a==="rtl"),s),direction:a,checkable:p&&m.createElement("span",{className:"".concat(M,"-checkbox-inner")}),selectable:y,switcherIcon:function(b){return W0e(M,u,c,b)},draggable:S}),h)}),hc;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(hc||(hc={}));function G5(e,t){function r(n){var a=n.key,i=n.children;t(a,n)!==!1&&G5(i||[],t)}e.forEach(r)}function U$e(e){var t=e.treeData,r=e.expandedKeys,n=e.startKey,a=e.endKey,i=[],o=hc.None;if(n&&n===a)return[n];if(!n||!a)return[];function s(l){return l===n||l===a}return G5(t,function(l){if(o===hc.End)return!1;if(s(l)){if(i.push(l),o===hc.None)o=hc.Start;else if(o===hc.Start)return o=hc.End,!1}else o===hc.Start&&i.push(l);return r.includes(l)}),i}function IN(e,t){var r=Nt(t),n=[];return G5(e,function(a,i){var o=r.indexOf(a);return o!==-1&&(n.push(i),r.splice(o,1)),!!r.length}),n}var bq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function H$e(e){var t=e.isLeaf,r=e.expanded;return t?m.createElement(Z3,null):r?m.createElement(tFe,null):m.createElement(aFe,null)}function Sq(e){var t=e.treeData,r=e.children;return t||PEe(r)}var G$e=function(t,r){var n=t.defaultExpandAll,a=t.defaultExpandParent,i=t.defaultExpandedKeys,o=bq(t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),s=m.useRef(),l=m.useRef(),A=function(){var P=SR(Sq(o)),z=P.keyEntities,j;return n?j=Object.keys(z):a?j=ij(o.expandedKeys||i||[],z):j=o.expandedKeys||i,j},c=m.useState(o.selectedKeys||o.defaultSelectedKeys||[]),u=De(c,2),d=u[0],f=u[1],h=m.useState(function(){return A()}),g=De(h,2),p=g[0],E=g[1];m.useEffect(function(){"selectedKeys"in o&&f(o.selectedKeys)},[o.selectedKeys]),m.useEffect(function(){"expandedKeys"in o&&E(o.expandedKeys)},[o.expandedKeys]);var y=function(P,z){var j;return"expandedKeys"in o||E(P),(j=o.onExpand)===null||j===void 0?void 0:j.call(o,P,z)},C=function(P,z){var j,V=o.multiple,L=z.node,K=z.nativeEvent,J=L.key,Y=J===void 0?"":J,W=Sq(o),q=oe(oe({},z),{selected:!0}),ee=(K==null?void 0:K.ctrlKey)||(K==null?void 0:K.metaKey),ae=K==null?void 0:K.shiftKey,ne;V&&ee?(ne=P,s.current=Y,l.current=ne,q.selectedNodes=IN(W,ne)):V&&ae?(ne=Array.from(new Set([].concat(Nt(l.current||[]),Nt(U$e({treeData:W,expandedKeys:p,startKey:Y,endKey:s.current}))))),q.selectedNodes=IN(W,ne)):(ne=[Y],s.current=Y,l.current=ne,q.selectedNodes=IN(W,ne)),(j=o.onSelect)===null||j===void 0||j.call(o,ne,q),"selectedKeys"in o||f(ne)},w=m.useContext(Mr),B=w.getPrefixCls,M=w.direction,I=o.prefixCls,S=o.className,R=o.showIcon,b=R===void 0?!0:R,Q=o.expandAction,D=Q===void 0?"click":Q,F=bq(o,["prefixCls","className","showIcon","expandAction"]),N=B("tree",I),k=He("".concat(N,"-directory"),X({},"".concat(N,"-directory-rtl"),M==="rtl"),S);return m.createElement(X0e,oe({icon:H$e,ref:r,blockNode:!0},F,{showIcon:b,expandAction:D,prefixCls:N,className:k,expandedKeys:p,selectedKeys:d,onSelect:C,onExpand:y}))},K$e=m.forwardRef(G$e),SA=X0e;SA.DirectoryTree=K$e;SA.TreeNode=cv;function V$e(e){var t=m.useRef(e),r=Hve();return[function(){return t.current},function(n){t.current=n,r()}]}function Rq(e){var t=e.value,r=e.onChange,n=e.filterSearch,a=e.tablePrefixCls,i=e.locale;return n?m.createElement("div",{className:"".concat(a,"-filter-dropdown-search")},m.createElement(mt,{prefix:m.createElement(DA,null),placeholder:i.filterSearchPlaceholder,onChange:r,value:t,htmlSize:1,className:"".concat(a,"-filter-dropdown-search-input")})):null}var J$e=function(t){var r=t.keyCode;r===Pt.ENTER&&t.stopPropagation()},W$e=function(t){return m.createElement("div",{className:t.className,onClick:function(n){return n.stopPropagation()},onKeyDown:J$e},t.children)};function X$e(e){return e.some(function(t){var r=t.children;return r})}function q0e(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Z0e(e){var t=e.filters,r=e.prefixCls,n=e.filteredKeys,a=e.filterMultiple,i=e.searchValue,o=e.filterSearch;return t.map(function(s,l){var A=String(s.value);if(s.children)return{key:A||l,label:s.text,popupClassName:"".concat(r,"-dropdown-submenu"),children:Z0e({filters:s.children,prefixCls:r,filteredKeys:n,filterMultiple:a,searchValue:i,filterSearch:o})};var c=a?Rr:Vu,u={key:s.value!==void 0?A:l,label:m.createElement(m.Fragment,null,m.createElement(c,{checked:n.includes(A)}),m.createElement("span",null,s.text))};return i.trim()?typeof o=="function"?o(i,s)?u:null:q0e(i,s.text)?u:null:u})}function bN(e){return e||[]}function q$e(e){var t,r=e.tablePrefixCls,n=e.prefixCls,a=e.column,i=e.dropdownPrefixCls,o=e.columnKey,s=e.filterMultiple,l=e.filterMode,A=l===void 0?"menu":l,c=e.filterSearch,u=c===void 0?!1:c,d=e.filterState,f=e.triggerFilter,h=e.locale,g=e.children,p=e.getPopupContainer,E=a.filterDropdownOpen,y=a.onFilterDropdownOpenChange,C=a.filterDropdownVisible,w=a.onFilterDropdownVisibleChange,B=a.filterResetToDefaultFilteredValue,M=a.defaultFilteredValue,I=m.useState(!1),S=De(I,2),R=S[0],b=S[1],Q=!!(d&&(!((t=d.filteredKeys)===null||t===void 0)&&t.length||d.forceFiltered)),D=function($e){b($e),y==null||y($e),w==null||w($e)},F;typeof E=="boolean"?F=E:F=typeof C=="boolean"?C:R;var N=d==null?void 0:d.filteredKeys,k=V$e(bN(N)),O=De(k,2),P=O[0],z=O[1],j=function($e){var pt=$e.selectedKeys;z(pt)},V=function($e,pt){var de=pt.node,Fe=pt.checked;j(s?{selectedKeys:$e}:{selectedKeys:Fe&&de.key?[de.key]:[]})};m.useEffect(function(){R&&j({selectedKeys:bN(N)})},[N]);var L=m.useState([]),K=De(L,2),J=K[0],Y=K[1],W=function($e){Y($e)},q=m.useState(""),ee=De(q,2),ae=ee[0],ne=ee[1],ce=function($e){var pt=$e.target.value;ne(pt)};m.useEffect(function(){R||ne("")},[R]);var ue=function($e){var pt=$e&&$e.length?$e:null;if(pt===null&&(!d||!d.filteredKeys)||pq(pt,d==null?void 0:d.filteredKeys))return null;f({column:a,key:o,filteredKeys:pt})},ge=function(){D(!1),ue(P())},Se=function(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},pt=$e.confirm,de=$e.closeDropdown;pt&&ue([]),de&&D(!1),ne(""),z(B?(M||[]).map(function(Fe){return String(Fe)}):[])},ye=function(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},pt=$e.closeDropdown;pt&&D(!1),ue(P())},pe=function($e){$e&&N!==void 0&&z(bN(N)),D($e),!$e&&!a.filterDropdown&&ge()},Qe=He(X({},"".concat(i,"-menu-without-submenu"),!X$e(a.filters||[]))),Ue=function($e){if($e.target.checked){var pt=Op(a==null?void 0:a.filters).map(function(de){return String(de)});z(pt)}else z([])},tt=function Xe($e){var pt=$e.filters;return(pt||[]).map(function(de,Fe){var je=String(de.value),et={title:de.text,key:de.value!==void 0?je:String(Fe)};return de.children&&(et.children=Xe({filters:de.children})),et})},it=function Xe($e){var pt;return oe(oe({},$e),{text:$e.title,value:$e.key,children:((pt=$e.children)===null||pt===void 0?void 0:pt.map(function(de){return Xe(de)}))||[]})},we;if(typeof a.filterDropdown=="function")we=a.filterDropdown({prefixCls:"".concat(i,"-custom"),setSelectedKeys:function($e){return j({selectedKeys:$e})},selectedKeys:P(),confirm:ye,clearFilters:Se,filters:a.filters,visible:F,close:function(){D(!1)}});else if(a.filterDropdown)we=a.filterDropdown;else{var ve=P()||[],Te=function(){return(a.filters||[]).length===0?m.createElement(ml,{image:ml.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):A==="tree"?m.createElement(m.Fragment,null,m.createElement(Rq,{filterSearch:u,value:ae,onChange:ce,tablePrefixCls:r,locale:h}),m.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},s?m.createElement(Rr,{checked:ve.length===Op(a.filters).length,indeterminate:ve.length>0&&ve.length<Op(a.filters).length,className:"".concat(r,"-filter-dropdown-checkall"),onChange:Ue},h.filterCheckall):null,m.createElement(SA,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:"".concat(i,"-menu"),onCheck:V,checkedKeys:ve,selectedKeys:ve,showIcon:!1,treeData:tt({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ae.trim()?function($e){return typeof u=="function"?u(ae,it($e)):q0e(ae,$e.title)}:void 0}))):m.createElement(m.Fragment,null,m.createElement(Rq,{filterSearch:u,value:ae,onChange:ce,tablePrefixCls:r,locale:h}),m.createElement(IA,{selectable:!0,multiple:s,prefixCls:"".concat(i,"-menu"),className:Qe,onSelect:j,onDeselect:j,selectedKeys:ve,getPopupContainer:p,openKeys:J,onOpenChange:W,items:Z0e({filters:a.filters||[],filterSearch:u,prefixCls:n,filteredKeys:P(),filterMultiple:s,searchValue:ae})}))},Be=function(){return B?pq((M||[]).map(function($e){return String($e)}),ve):ve.length===0};we=m.createElement(m.Fragment,null,Te(),m.createElement("div",{className:"".concat(n,"-dropdown-btns")},m.createElement(nt,{type:"link",size:"small",disabled:Be(),onClick:function(){return Se()}},h.filterReset),m.createElement(nt,{type:"primary",size:"small",onClick:ge},h.filterConfirm)))}a.filterDropdown&&(we=m.createElement(lme,{selectable:void 0},we));var Ge=function(){return m.createElement(W$e,{className:"".concat(n,"-dropdown")},we)},ht;typeof a.filterIcon=="function"?ht=a.filterIcon(Q):a.filterIcon?ht=a.filterIcon:ht=m.createElement(KDe,null);var We=m.useContext(Mr),Ke=We.direction;return m.createElement("div",{className:"".concat(n,"-column")},m.createElement("span",{className:"".concat(r,"-column-title")},g),m.createElement(pd,{dropdownRender:Ge,trigger:["click"],open:F,onOpenChange:pe,getPopupContainer:p,placement:Ke==="rtl"?"bottomLeft":"bottomRight"},m.createElement("span",{role:"button",tabIndex:-1,className:He("".concat(n,"-trigger"),{active:Q}),onClick:function($e){$e.stopPropagation()}},ht)))}function oj(e,t,r){var n=[];return(e||[]).forEach(function(a,i){var o,s=NR(i,r);if(a.filters||"filterDropdown"in a||"onFilter"in a)if("filteredValue"in a){var l=a.filteredValue;"filterDropdown"in a||(l=(o=l==null?void 0:l.map(String))!==null&&o!==void 0?o:l),n.push({column:a,key:Av(a,s),filteredKeys:l,forceFiltered:a.filtered})}else n.push({column:a,key:Av(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(n=[].concat(Nt(n),Nt(oj(a.children,t,s))))}),n}function $0e(e,t,r,n,a,i,o,s){return r.map(function(l,A){var c=NR(A,s),u=l.filterMultiple,d=u===void 0?!0:u,f=l.filterMode,h=l.filterSearch,g=l;if(g.filters||g.filterDropdown){var p=Av(g,c),E=n.find(function(y){var C=y.key;return p===C});g=oe(oe({},g),{title:function(C){return m.createElement(q$e,{tablePrefixCls:e,prefixCls:"".concat(e,"-filter"),dropdownPrefixCls:t,column:g,columnKey:p,filterState:E,filterMultiple:d,filterMode:f,filterSearch:h,triggerFilter:a,locale:o,getPopupContainer:i},kR(l.title,C))}})}return"children"in g&&(g=oe(oe({},g),{children:$0e(e,t,g.children,n,a,i,o,c)})),g})}function Op(e){var t=[];return(e||[]).forEach(function(r){var n=r.value,a=r.children;t.push(n),a&&(t=[].concat(Nt(t),Nt(Op(a))))}),t}function Tq(e){var t={};return e.forEach(function(r){var n=r.key,a=r.filteredKeys,i=r.column,o=n,s=i.filters,l=i.filterDropdown;if(l)t[o]=a||null;else if(Array.isArray(a)){var A=Op(s);t[o]=A.filter(function(c){return a.includes(String(c))})}else t[o]=null}),t}function Qq(e,t){return t.reduce(function(r,n){var a=n.column,i=a.onFilter,o=a.filters,s=n.filteredKeys;return i&&s&&s.length?r.filter(function(l){return s.some(function(A){var c=Op(o),u=c.findIndex(function(f){return String(f)===String(A)}),d=u!==-1?c[u]:A;return i(d,l)})}):r},e)}function Z$e(e){var t=e.prefixCls,r=e.dropdownPrefixCls,n=e.mergedColumns,a=e.onFilterChange,i=e.getPopupContainer,o=e.locale,s=m.useState(function(){return oj(n,!0)}),l=De(s,2),A=l[0],c=l[1],u=m.useMemo(function(){var g=oj(n,!1),p=!0;return g.forEach(function(E){var y=E.filteredKeys;y!==void 0&&(p=!1)}),p?A:g},[n,A]),d=m.useMemo(function(){return Tq(u)},[u]),f=function(p){var E=u.filter(function(y){var C=y.key;return C!==p.key});E.push(p),c(E),a(Tq(E),E)},h=function(p){return $0e(t,r,p,u,f,i,o)};return[h,u,d]}function $$e(e,t,r){var n=m.useRef({});function a(i){if(!n.current||n.current.data!==e||n.current.childrenColumnName!==t||n.current.getRowKey!==r){let s=function(l){l.forEach(function(A,c){var u=r(A,c);o.set(u,A),A&&Xt(A)==="object"&&t in A&&s(A[t]||[])})};var o=new Map;s(e),n.current={data:e,childrenColumnName:t,kvMap:o,getRowKey:r}}return n.current.kvMap.get(i)}return[a]}var eet=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},eye=10;function tet(e,t){var r={current:t.current,pageSize:t.pageSize},n=e&&Xt(e)==="object"?e:{};return Object.keys(n).forEach(function(a){var i=t[a];typeof i!="function"&&(r[a]=i)}),r}function ret(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(a){a&&Object.keys(a).forEach(function(i){var o=a[i];o!==void 0&&(e[i]=o)})}),e}function net(e,t,r){var n=t&&Xt(t)==="object"?t:{},a=n.total,i=a===void 0?0:a,o=eet(n,["total"]),s=m.useState(function(){return{current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:eye}}),l=De(s,2),A=l[0],c=l[1],u=ret(A,o,{total:i>0?i:e}),d=Math.ceil((i||e)/u.pageSize);u.current>d&&(u.current=d||1);var f=function(p,E){c({current:p??1,pageSize:E||u.pageSize})},h=function(p,E){var y;t&&((y=t.onChange)===null||y===void 0||y.call(t,p,E)),f(p,E),r(p,E||(u==null?void 0:u.pageSize))};return t===!1?[{},function(){}]:[oe(oe({},u),{onChange:h}),f]}var Mu={},sj="SELECT_ALL",lj="SELECT_INVERT",Aj="SELECT_NONE",Dq=[];function tye(e,t){var r=[];return(e||[]).forEach(function(n){r.push(n),n&&Xt(n)==="object"&&t in n&&(r=[].concat(Nt(r),Nt(tye(n[t],t))))}),r}function aet(e,t){var r=e||{},n=r.preserveSelectedRowKeys,a=r.selectedRowKeys,i=r.defaultSelectedRowKeys,o=r.getCheckboxProps,s=r.onChange,l=r.onSelect,A=r.onSelectAll,c=r.onSelectInvert,u=r.onSelectNone,d=r.onSelectMultiple,f=r.columnWidth,h=r.type,g=r.selections,p=r.fixed,E=r.renderCell,y=r.hideSelectAll,C=r.checkStrictly,w=C===void 0?!0:C,B=t.prefixCls,M=t.data,I=t.pageData,S=t.getRecordByKey,R=t.getRowKey,b=t.expandType,Q=t.childrenColumnName,D=t.locale,F=t.getPopupContainer,N=Qn(a||i||Dq,{value:a}),k=De(N,2),O=k[0],P=k[1],z=m.useRef(new Map),j=m.useCallback(function(it){if(n){var we=new Map;it.forEach(function(ve){var Te=S(ve);!Te&&z.current.has(ve)&&(Te=z.current.get(ve)),we.set(ve,Te)}),z.current=we}},[S,n]);m.useEffect(function(){j(O)},[O]);var V=m.useMemo(function(){return w?{keyEntities:null}:SR(M,{externalGetKey:R,childrenPropName:Q})},[M,R,w,Q]),L=V.keyEntities,K=m.useMemo(function(){return tye(I,Q)},[I,Q]),J=m.useMemo(function(){var it=new Map;return K.forEach(function(we,ve){var Te=R(we,ve),Be=(o?o(we):null)||{};it.set(Te,Be)}),it},[K,R,o]),Y=m.useCallback(function(it){var we;return!!(!((we=J.get(R(it)))===null||we===void 0)&&we.disabled)},[J,R]),W=m.useMemo(function(){if(w)return[O||[],[]];var it=Rc(O,!0,L,Y),we=it.checkedKeys,ve=it.halfCheckedKeys;return[we||[],ve]},[O,w,L,Y]),q=De(W,2),ee=q[0],ae=q[1],ne=m.useMemo(function(){var it=h==="radio"?ee.slice(0,1):ee;return new Set(it)},[ee,h]),ce=m.useMemo(function(){return h==="radio"?new Set:new Set(ae)},[ae,h]),ue=m.useState(null),ge=De(ue,2),Se=ge[0],ye=ge[1];m.useEffect(function(){e||P(Dq)},[!!e]);var pe=m.useCallback(function(it,we){var ve,Te;j(it),n?(ve=it,Te=it.map(function(Be){return z.current.get(Be)})):(ve=[],Te=[],it.forEach(function(Be){var Ge=S(Be);Ge!==void 0&&(ve.push(Be),Te.push(Ge))})),P(ve),s==null||s(ve,Te,{type:we})},[P,S,s,n]),Qe=m.useCallback(function(it,we,ve,Te){if(l){var Be=ve.map(function(Ge){return S(Ge)});l(S(it),we,Be,Te)}pe(ve,"single")},[l,S,pe]),Ue=m.useMemo(function(){if(!g||y)return null;var it=g===!0?[sj,lj,Aj]:g;return it.map(function(we){return we===sj?{key:"all",text:D.selectionAll,onSelect:function(){pe(M.map(function(Te,Be){return R(Te,Be)}).filter(function(Te){var Be=J.get(Te);return!(Be!=null&&Be.disabled)||ne.has(Te)}),"all")}}:we===lj?{key:"invert",text:D.selectInvert,onSelect:function(){var Te=new Set(ne);I.forEach(function(Ge,ht){var We=R(Ge,ht),Ke=J.get(We);Ke!=null&&Ke.disabled||(Te.has(We)?Te.delete(We):Te.add(We))});var Be=Array.from(Te);c&&c(Be),pe(Be,"invert")}}:we===Aj?{key:"none",text:D.selectNone,onSelect:function(){u==null||u(),pe(Array.from(ne).filter(function(Te){var Be=J.get(Te);return Be==null?void 0:Be.disabled}),"none")}}:we}).map(function(we){return oe(oe({},we),{onSelect:function(){for(var Te,Be,Ge=arguments.length,ht=new Array(Ge),We=0;We<Ge;We++)ht[We]=arguments[We];(Be=we.onSelect)===null||Be===void 0||(Te=Be).call.apply(Te,[we].concat(ht)),ye(null)}})})},[g,ne,I,R,c,pe]),tt=m.useCallback(function(it){var we;if(!e)return it.filter(function(he){return he!==Mu});var ve=Nt(it),Te=new Set(ne),Be=K.map(R).filter(function(he){return!J.get(he).disabled}),Ge=Be.every(function(he){return Te.has(he)}),ht=Be.some(function(he){return Te.has(he)}),We=function(){var Pe=[];Ge?Be.forEach(function(Ve){Te.delete(Ve),Pe.push(Ve)}):Be.forEach(function(Ve){Te.has(Ve)||(Te.add(Ve),Pe.push(Ve))});var be=Array.from(Te);A==null||A(!Ge,be.map(function(Ve){return S(Ve)}),Pe.map(function(Ve){return S(Ve)})),pe(be,"all"),ye(null)},Ke;if(h!=="radio"){var Xe;if(Ue){var $e={getPopupContainer:F,items:Ue.map(function(he,Pe){var be=he.key,Ve=he.text,lt=he.onSelect;return{key:be||Pe,onClick:function(){lt==null||lt(Be)},label:Ve}})};Xe=m.createElement("div",{className:"".concat(B,"-selection-extra")},m.createElement(pd,{menu:$e,getPopupContainer:F},m.createElement("span",null,m.createElement(rC,null))))}var pt=K.map(function(he,Pe){var be=R(he,Pe),Ve=J.get(be)||{};return oe({checked:Te.has(be)},Ve)}).filter(function(he){var Pe=he.disabled;return Pe}),de=!!pt.length&&pt.length===K.length,Fe=de&&pt.every(function(he){var Pe=he.checked;return Pe}),je=de&&pt.some(function(he){var Pe=he.checked;return Pe});Ke=!y&&m.createElement("div",{className:"".concat(B,"-selection")},m.createElement(Rr,{checked:de?Fe:!!K.length&&Ge,indeterminate:de?!Fe&&je:!Ge&&ht,onChange:We,disabled:K.length===0||de,"aria-label":Xe?"Custom selection":"Select all",skipGroup:!0}),Xe)}var et;h==="radio"?et=function(Pe,be,Ve){var lt=R(be,Ve),Ze=Te.has(lt);return{node:m.createElement(Vu,oe({},J.get(lt),{checked:Ze,onClick:function(rt){return rt.stopPropagation()},onChange:function(rt){Te.has(lt)||Qe(lt,!0,[lt],rt.nativeEvent)}})),checked:Ze}}:et=function(Pe,be,Ve){var lt,Ze=R(be,Ve),Le=Te.has(Ze),rt=ce.has(Ze),Qt=J.get(Ze),Dt;return b==="nest"?Dt=rt:Dt=(lt=Qt==null?void 0:Qt.indeterminate)!==null&&lt!==void 0?lt:rt,{node:m.createElement(Rr,oe({},Qt,{indeterminate:Dt,checked:Le,skipGroup:!0,onClick:function(br){return br.stopPropagation()},onChange:function(br){var Er=br.nativeEvent,hr=Er.shiftKey,Wt=-1,$t=-1;if(hr&&w){var tr=new Set([Se,Ze]);Be.some(function(gr,Hr){if(tr.has(gr))if(Wt===-1)Wt=Hr;else return $t=Hr,!0;return!1})}if($t!==-1&&Wt!==$t&&w){var ir=Be.slice(Wt,$t+1),ar=[];Le?ir.forEach(function(gr){Te.has(gr)&&(ar.push(gr),Te.delete(gr))}):ir.forEach(function(gr){Te.has(gr)||(ar.push(gr),Te.add(gr))});var rr=Array.from(Te);d==null||d(!Le,rr.map(function(gr){return S(gr)}),ar.map(function(gr){return S(gr)})),pe(rr,"multiple")}else{var Yt=ee;if(w){var Vt=Le?fA(Yt,Ze):dc(Yt,Ze);Qe(Ze,!Le,Vt,Er)}else{var Ut=Rc([].concat(Nt(Yt),[Ze]),!0,L,Y),Mt=Ut.checkedKeys,xt=Ut.halfCheckedKeys,Ft=Mt;if(Le){var qt=new Set(Mt);qt.delete(Ze),Ft=Rc(Array.from(qt),{halfCheckedKeys:xt},L,Y).checkedKeys}Qe(Ze,!Le,Ft,Er)}}ye(Le?null:Ze)}})),checked:Le}};var xe=function(Pe,be,Ve){var lt=et(Pe,be,Ve),Ze=lt.node,Le=lt.checked;return E?E(Le,be,Ve,Ze):Ze};if(!ve.includes(Mu))if(ve.findIndex(function(he){var Pe;return((Pe=he[W0])===null||Pe===void 0?void 0:Pe.columnType)==="EXPAND_COLUMN"})===0){var Ne=ve,le=SY(Ne),At=le[0],Bt=le.slice(1);ve=[At,Mu].concat(Nt(Bt))}else ve=[Mu].concat(Nt(ve));var G=ve.indexOf(Mu);ve=ve.filter(function(he,Pe){return he!==Mu||Pe===G});var Ee=ve[G-1],Ie=ve[G+1],ie=p;ie===void 0&&((Ie==null?void 0:Ie.fixed)!==void 0?ie=Ie.fixed:(Ee==null?void 0:Ee.fixed)!==void 0&&(ie=Ee.fixed)),ie&&Ee&&((we=Ee[W0])===null||we===void 0?void 0:we.columnType)==="EXPAND_COLUMN"&&Ee.fixed===void 0&&(Ee.fixed=ie);var re=X({fixed:ie,width:f,className:"".concat(B,"-selection-column"),title:e.columnTitle||Ke,render:xe},W0,{className:"".concat(B,"-selection-col")});return ve.map(function(he){return he===Mu?re:he})},[R,K,e,ee,ne,ce,f,Ue,b,Se,J,d,Qe,Y]);return[tt,ne]}var MI="ascend",SN="descend";function Nb(e){return Xt(e.sorter)==="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function Fq(e){return typeof e=="function"?e:e&&Xt(e)==="object"&&e.compare?e.compare:!1}function iet(e,t){return t?e[e.indexOf(t)+1]:e[0]}function cj(e,t,r){var n=[];function a(i,o){n.push({column:i,key:Av(i,o),multiplePriority:Nb(i),sortOrder:i.sortOrder})}return(e||[]).forEach(function(i,o){var s=NR(o,r);i.children?("sortOrder"in i&&a(i,s),n=[].concat(Nt(n),Nt(cj(i.children,t,s)))):i.sorter&&("sortOrder"in i?a(i,s):t&&i.defaultSortOrder&&n.push({column:i,key:Av(i,s),multiplePriority:Nb(i),sortOrder:i.defaultSortOrder}))}),n}function rye(e,t,r,n,a,i,o,s){return(t||[]).map(function(l,A){var c=NR(A,s),u=l;if(u.sorter){var d=u.sortDirections||a,f=u.showSorterTooltip===void 0?o:u.showSorterTooltip,h=Av(u,c),g=r.find(function(b){var Q=b.key;return Q===h}),p=g?g.sortOrder:null,E=iet(d,p),y=d.includes(MI)&&m.createElement(EQe,{className:He("".concat(e,"-column-sorter-up"),{active:p===MI}),role:"presentation"}),C=d.includes(SN)&&m.createElement(fQe,{className:He("".concat(e,"-column-sorter-down"),{active:p===SN}),role:"presentation"}),w=i||{},B=w.cancelSort,M=w.triggerAsc,I=w.triggerDesc,S=B;E===SN?S=I:E===MI&&(S=M);var R=Xt(f)==="object"?f:{title:S};u=oe(oe({},u),{className:He(u.className,X({},"".concat(e,"-column-sort"),p)),title:function(Q){var D=m.createElement("div",{className:"".concat(e,"-column-sorters")},m.createElement("span",{className:"".concat(e,"-column-title")},kR(l.title,Q)),m.createElement("span",{className:He("".concat(e,"-column-sorter"),X({},"".concat(e,"-column-sorter-full"),!!(y&&C)))},m.createElement("span",{className:"".concat(e,"-column-sorter-inner")},y,C)));return f?m.createElement(Zn,oe({},R),D):D},onHeaderCell:function(Q){var D=l.onHeaderCell&&l.onHeaderCell(Q)||{},F=D.onClick,N=D.onKeyDown;D.onClick=function(P){n({column:l,key:h,sortOrder:E,multiplePriority:Nb(l)}),F==null||F(P)},D.onKeyDown=function(P){P.keyCode===Pt.ENTER&&(n({column:l,key:h,sortOrder:E,multiplePriority:Nb(l)}),N==null||N(P))};var k=w$e(l.title,{}),O=k==null?void 0:k.toString();return p?D["aria-sort"]=p==="ascend"?"ascending":"descending":D["aria-label"]=O||"",D.className=He(D.className,"".concat(e,"-column-has-sorters")),D.tabIndex=0,l.ellipsis&&(D.title=(k??"").toString()),D}})}return"children"in u&&(u=oe(oe({},u),{children:rye(e,u.children,r,n,a,i,o,c)})),u})}function _q(e){var t=e.column,r=e.sortOrder;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}}function Nq(e){var t=e.filter(function(r){var n=r.sortOrder;return n}).map(_q);return t.length===0&&e.length?oe(oe({},_q(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function uj(e,t,r){var n=t.slice().sort(function(o,s){return s.multiplePriority-o.multiplePriority}),a=e.slice(),i=n.filter(function(o){var s=o.column.sorter,l=o.sortOrder;return Fq(s)&&l});return i.length?a.sort(function(o,s){for(var l=0;l<i.length;l+=1){var A=i[l],c=A.column.sorter,u=A.sortOrder,d=Fq(c);if(d&&u){var f=d(o,s,u);if(f!==0)return u===MI?f:-f}}return 0}).map(function(o){var s=o[r];return s?oe(oe({},o),X({},r,uj(s,t,r))):o}):a}function oet(e){var t=e.prefixCls,r=e.mergedColumns,n=e.onSorterChange,a=e.sortDirections,i=e.tableLocale,o=e.showSorterTooltip,s=m.useState(cj(r,!0)),l=De(s,2),A=l[0],c=l[1],u=m.useMemo(function(){var p=!0,E=cj(r,!1);if(!E.length)return A;var y=[];function C(B){p?y.push(B):y.push(oe(oe({},B),{sortOrder:null}))}var w=null;return E.forEach(function(B){w===null?(C(B),B.sortOrder&&(B.multiplePriority===!1?p=!1:w=!0)):(w&&B.multiplePriority!==!1||(p=!1),C(B))}),y},[r,A]),d=m.useMemo(function(){var p=u.map(function(E){var y=E.column,C=E.sortOrder;return{column:y,order:C}});return{sortColumns:p,sortColumn:p[0]&&p[0].column,sortOrder:p[0]&&p[0].order}},[u]);function f(p){var E;p.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?E=[p]:E=[].concat(Nt(u.filter(function(y){var C=y.key;return C!==p.key})),[p]),c(E),n(Nq(E),E)}var h=function(E){return rye(t,E,u,f,a,i,o)},g=function(){return Nq(u)};return[h,u,d,g]}function nye(e,t){return e.map(function(r){var n=oe({},r);return n.title=kR(r.title,t),"children"in n&&(n.children=nye(n.children,t)),n})}function set(e){var t=m.useCallback(function(r){return nye(r,e)},[e]);return[t]}var Aet=[];function cet(e,t){var r=e.prefixCls,n=e.className,a=e.style,i=e.size,o=e.bordered,s=e.dropdownPrefixCls,l=e.dataSource,A=e.pagination,c=e.rowSelection,u=e.rowKey,d=u===void 0?"key":u,f=e.rowClassName,h=e.columns,g=e.children,p=e.childrenColumnName,E=e.onChange,y=e.getPopupContainer,C=e.loading,w=e.expandIcon,B=e.expandable,M=e.expandedRowRender,I=e.expandIconColumnIndex,S=e.indentSize,R=e.scroll,b=e.sortDirections,Q=e.locale,D=e.showSorterTooltip,F=D===void 0?!0:D;[["filterDropdownVisible","filterDropdownOpen"],["onFilterDropdownVisibleChange","onFilterDropdownOpenChange"]].forEach(function(Yt){var Vt=De(Yt,2);Vt[0],Vt[1]});var N=m.useMemo(function(){return h||L5(g)},[h,g]),k=m.useMemo(function(){return N.some(function(Yt){return Yt.responsive})},[N]),O=ZY(k),P=m.useMemo(function(){var Yt=new Set(Object.keys(O).filter(function(Vt){return O[Vt]}));return N.filter(function(Vt){return!Vt.responsive||Vt.responsive.some(function(Ut){return Yt.has(Ut)})})},[N,O]),z=Ia(e,["className","style","columns"]),j=m.useContext(Ti),V=m.useContext(Mr),L=V.locale,K=L===void 0?Ps:L,J=V.renderEmpty,Y=V.direction,W=i||j,q=oe(oe({},K.Table),Q),ee=l||Aet,ae=m.useContext(Mr),ne=ae.getPrefixCls,ce=ne("table",r),ue=ne("dropdown",s),ge=oe({childrenColumnName:p,expandIconColumnIndex:I},B),Se=ge.childrenColumnName,ye=Se===void 0?"children":Se,pe=m.useMemo(function(){return ee.some(function(Yt){return Yt==null?void 0:Yt[ye]})?"nest":M||B&&B.expandedRowRender?"row":null},[ee]),Qe={body:m.useRef()},Ue=m.useMemo(function(){return typeof d=="function"?d:function(Yt){return Yt==null?void 0:Yt[d]}},[d]),tt=$$e(ee,ye,Ue),it=De(tt,1),we=it[0],ve={},Te=function(Vt,Ut){var Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xt=oe(oe({},ve),Vt);Mt&&(ve.resetPagination(),xt.pagination.current&&(xt.pagination.current=1),A&&A.onChange&&A.onChange(1,xt.pagination.pageSize)),R&&R.scrollToFirstRowOnChange!==!1&&Qe.body.current&&M5e(0,{getContainer:function(){return Qe.body.current}}),E==null||E(xt.pagination,xt.filters,xt.sorter,{currentDataSource:Qq(uj(ee,xt.sorterStates,ye),xt.filterStates),action:Ut})},Be=function(Vt,Ut){Te({sorter:Vt,sorterStates:Ut},"sort",!1)},Ge=oet({prefixCls:ce,mergedColumns:P,onSorterChange:Be,sortDirections:b||["ascend","descend"],tableLocale:q,showSorterTooltip:F}),ht=De(Ge,4),We=ht[0],Ke=ht[1],Xe=ht[2],$e=ht[3],pt=m.useMemo(function(){return uj(ee,Ke,ye)},[ee,Ke]);ve.sorter=$e(),ve.sorterStates=Ke;var de=function(Vt,Ut){Te({filters:Vt,filterStates:Ut},"filter",!0)},Fe=Z$e({prefixCls:ce,locale:q,dropdownPrefixCls:ue,mergedColumns:P,onFilterChange:de,getPopupContainer:y}),je=De(Fe,3),et=je[0],xe=je[1],Ne=je[2],le=Qq(pt,xe);ve.filters=Ne,ve.filterStates=xe;var At=m.useMemo(function(){var Yt={};return Object.keys(Ne).forEach(function(Vt){Ne[Vt]!==null&&(Yt[Vt]=Ne[Vt])}),oe(oe({},Xe),{filters:Yt})},[Xe,Ne]),Bt=set(At),G=De(Bt,1),Ee=G[0],Ie=function(Vt,Ut){Te({pagination:oe(oe({},ve.pagination),{current:Vt,pageSize:Ut})},"paginate")},ie=net(le.length,A,Ie),re=De(ie,2),he=re[0],Pe=re[1];ve.pagination=A===!1?{}:tet(A,he),ve.resetPagination=Pe;var be=m.useMemo(function(){if(A===!1||!he.pageSize)return le;var Yt=he.current,Vt=Yt===void 0?1:Yt,Ut=he.total,Mt=he.pageSize,xt=Mt===void 0?eye:Mt;return le.length<Ut?le.length>xt?le.slice((Vt-1)*xt,Vt*xt):le:le.slice((Vt-1)*xt,Vt*xt)},[!!A,le,he&&he.current,he&&he.pageSize,he&&he.total]),Ve=aet(c,{prefixCls:ce,data:le,pageData:be,getRowKey:Ue,getRecordByKey:we,expandType:pe,childrenColumnName:ye,locale:q,getPopupContainer:y}),lt=De(Ve,2),Ze=lt[0],Le=lt[1],rt=function(Vt,Ut,Mt){var xt;return typeof f=="function"?xt=He(f(Vt,Ut,Mt)):xt=He(f),He(X({},"".concat(ce,"-row-selected"),Le.has(Ue(Vt,Ut))),xt)};ge.__PARENT_RENDER_ICON__=ge.expandIcon,ge.expandIcon=ge.expandIcon||w||C$e(q),pe==="nest"&&ge.expandIconColumnIndex===void 0?ge.expandIconColumnIndex=c?1:0:ge.expandIconColumnIndex>0&&c&&(ge.expandIconColumnIndex-=1),typeof ge.indentSize!="number"&&(ge.indentSize=typeof S=="number"?S:15);var Qt=m.useCallback(function(Yt){return Ee(Ze(et(We(Yt))))},[We,et,Ze]),Dt,ur;if(A!==!1&&(he!=null&&he.total)){var br;he.size?br=he.size:br=W==="small"||W==="middle"?"small":void 0;var Er=function(Vt){return m.createElement(z5,oe({},he,{className:He("".concat(ce,"-pagination ").concat(ce,"-pagination-").concat(Vt),he.className),size:br}))},hr=Y==="rtl"?"left":"right",Wt=he.position;if(Wt!==null&&Array.isArray(Wt)){var $t=Wt.find(function(Yt){return Yt.includes("top")}),tr=Wt.find(function(Yt){return Yt.includes("bottom")}),ir=Wt.every(function(Yt){return"".concat(Yt)==="none"});!$t&&!tr&&!ir&&(ur=Er(hr)),$t&&(Dt=Er($t.toLowerCase().replace("top",""))),tr&&(ur=Er(tr.toLowerCase().replace("bottom","")))}else ur=Er(hr)}var ar;typeof C=="boolean"?ar={spinning:C}:Xt(C)==="object"&&(ar=oe({spinning:!0},C));var rr=He("".concat(ce,"-wrapper"),X({},"".concat(ce,"-wrapper-rtl"),Y==="rtl"),n);return m.createElement("div",{ref:t,className:rr,style:a},m.createElement(TR,oe({spinning:!1},ar),Dt,m.createElement(Mh,oe({},z,{columns:P,direction:Y,expandable:ge,prefixCls:ce,className:He(X(X(X(X({},"".concat(ce,"-middle"),W==="middle"),"".concat(ce,"-small"),W==="small"),"".concat(ce,"-bordered"),o),"".concat(ce,"-empty"),ee.length===0)),data:be,rowKey:Ue,rowClassName:rt,emptyText:Q&&Q.emptyText||(J||iR)("Table"),internalHooks:BI,internalRefs:Qe,transformColumns:Qt})),ur))}var uet=m.forwardRef(cet),zc=uet;zc.SELECTION_COLUMN=Mu;zc.EXPAND_COLUMN=Mh.EXPAND_COLUMN;zc.SELECTION_ALL=sj;zc.SELECTION_INVERT=lj;zc.SELECTION_NONE=Aj;zc.Column=E$e;zc.ColumnGroup=y$e;zc.Summary=H0e;var det=function(t){var r=t.renderedText,n=t.renderedEl,a=t.item,i=t.checked,o=t.disabled,s=t.prefixCls,l=t.onClick,A=t.onRemove,c=t.showRemove,u=He(X(X(X({},"".concat(s,"-content-item"),!0),"".concat(s,"-content-item-disabled"),o||a.disabled),"".concat(s,"-content-item-checked"),i)),d;return(typeof r=="string"||typeof r=="number")&&(d=String(r)),m.createElement(_A,{componentName:"Transfer",defaultLocale:Ps.Transfer},function(f){var h={className:u,title:d},g=m.createElement("span",{className:"".concat(s,"-content-item-text")},n);return c?m.createElement("li",oe({},h),g,m.createElement(ej,{disabled:o||a.disabled,className:"".concat(s,"-content-item-remove"),"aria-label":f.remove,onClick:function(){A==null||A(a)}},m.createElement(Ba,null))):(h.onClick=o||a.disabled?void 0:function(){return l(a)},m.createElement("li",oe({},h),m.createElement(Rr,{className:"".concat(s,"-checkbox"),checked:i,disabled:o||a.disabled}),g))})};const fet=m.memo(det);function het(e,t,r){return t=Ma(t),Vs(e,FA()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}var get=fi("handleFilter","handleClear","checkedKeys");function RN(e){if(!e)return null;var t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return Xt(e)==="object"?oe(oe({},t),e):t}var pet=function(e){xn(t,e);function t(){var r;return sn(this,t),r=het(this,t,arguments),r.state={current:1},r.onItemSelect=function(n){var a=r.props,i=a.onItemSelect,o=a.selectedKeys,s=o.includes(n.key);i(n.key,!s)},r.onItemRemove=function(n){var a=r.props.onItemRemove;a==null||a([n.key])},r.onPageChange=function(n){r.setState({current:n})},r.getItems=function(){var n=r.state.current,a=r.props,i=a.pagination,o=a.filteredRenderItems,s=RN(i),l=o;return s&&(l=o.slice((n-1)*s.pageSize,n*s.pageSize)),l},r}return ln(t,[{key:"render",value:function(){var n=this,a=this.state.current,i=this.props,o=i.prefixCls,s=i.onScroll,l=i.filteredRenderItems,A=i.selectedKeys,c=i.disabled,u=i.showRemove,d=i.pagination,f=RN(d),h=null;return f&&(h=m.createElement(z5,{simple:f.simple,showSizeChanger:f.showSizeChanger,showLessItems:f.showLessItems,size:"small",disabled:c,className:"".concat(o,"-pagination"),total:l.length,pageSize:f.pageSize,current:a,onChange:this.onPageChange})),m.createElement(m.Fragment,null,m.createElement("ul",{className:He("".concat(o,"-content"),X({},"".concat(o,"-content-show-remove"),u)),onScroll:s},this.getItems().map(function(g){var p=g.renderedEl,E=g.renderedText,y=g.item,C=y.disabled,w=A.includes(y.key);return m.createElement(fet,{disabled:c||C,key:y.key,item:y,renderedText:E,renderedEl:p,checked:w,prefixCls:o,onClick:n.onItemSelect,onRemove:n.onItemRemove,showRemove:u})})),h)}}],[{key:"getDerivedStateFromProps",value:function(n,a){var i=n.filteredRenderItems,o=n.pagination,s=a.current,l=RN(o);if(l){var A=Math.ceil(i.length/l.pageSize);if(s>A)return{current:A}}return null}}]),t}(m.Component);function aye(e){var t=e.placeholder,r=t===void 0?"":t,n=e.value,a=e.prefixCls,i=e.disabled,o=e.onChange,s=e.handleClear,l=m.useCallback(function(A){o==null||o(A),A.target.value===""&&(s==null||s())},[o]);return m.createElement(mt,{placeholder:r,className:a,value:n,onChange:l,disabled:i,allowClear:!0,prefix:m.createElement(DA,null)})}function vet(e,t,r){return t=Ma(t),Vs(e,FA()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}var met=function(){return null};function Eet(e){return!!(e&&!is(e)&&Object.prototype.toString.call(e)==="[object Object]")}function $m(e){return e.filter(function(t){return!t.disabled}).map(function(t){return t.key})}var dj=function(e){xn(t,e);function t(r){var n;return sn(this,t),n=vet(this,t,[r]),n.defaultListBodyRef=m.createRef(),n.handleFilter=function(a){var i=n.props.handleFilter,o=a.target.value;n.setState({filterValue:o}),i(a)},n.handleClear=function(){var a=n.props.handleClear;n.setState({filterValue:""}),a()},n.matchFilter=function(a,i){var o=n.state.filterValue,s=n.props.filterOption;return s?s(o,i):a.includes(o)},n.renderListBody=function(a,i){var o=a?a(i):null,s=!!o;return s||(o=m.createElement(pet,oe({ref:n.defaultListBodyRef},i))),{customize:s,bodyContent:o}},n.renderItem=function(a){var i=n.props.render,o=i===void 0?met:i,s=o(a),l=Eet(s);return{renderedText:l?s.value:s,renderedEl:l?s.label:s,item:a}},n.getSelectAllLabel=function(a,i){var o=n.props,s=o.itemsUnit,l=o.itemUnit,A=o.selectAllLabel;if(A)return typeof A=="function"?A({selectedCount:a,totalCount:i}):A;var c=i>1?s:l;return m.createElement(m.Fragment,null,(a>0?"".concat(a,"/"):"")+i," ",c)},n.state={filterValue:""},n}return ln(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.triggerScrollTimer)}},{key:"getCheckStatus",value:function(n){var a=this.props.checkedKeys;return a.length===0?"none":n.every(function(i){return a.includes(i.key)||!!i.disabled})?"all":"part"}},{key:"getFilteredItems",value:function(n,a){var i=this,o=[],s=[];return n.forEach(function(l){var A=i.renderItem(l),c=A.renderedText;if(a&&!i.matchFilter(c,l))return null;o.push(l),s.push(A)}),{filteredItems:o,filteredRenderItems:s}}},{key:"getListBody",value:function(n,a,i,o,s,l,A,c,u,d){var f=this,h=u?m.createElement("div",{className:"".concat(n,"-body-search-wrapper")},m.createElement(aye,{prefixCls:"".concat(n,"-search"),onChange:this.handleFilter,handleClear:this.handleClear,placeholder:a,value:i,disabled:d})):null,g=this.renderListBody(c,oe(oe({},Ia(this.props,get)),{filteredItems:o,filteredRenderItems:l,selectedKeys:A})),p=g.bodyContent,E=g.customize,y=function(){var B=f.props.direction==="left"?0:1;return Array.isArray(s)?s[B]:s},C;return E?C=m.createElement("div",{className:"".concat(n,"-body-customize-wrapper")},p):C=o.length?p:m.createElement("div",{className:"".concat(n,"-body-not-found")},y()),m.createElement("div",{className:He(u?"".concat(n,"-body ").concat(n,"-body-with-search"):"".concat(n,"-body"))},h,C)}},{key:"getCheckBox",value:function(n){var a=n.filteredItems,i=n.onItemSelectAll,o=n.disabled,s=n.prefixCls,l=this.getCheckStatus(a),A=l==="all",c=m.createElement(Rr,{disabled:o,checked:A,indeterminate:l==="part",className:"".concat(s,"-checkbox"),onChange:function(){i(a.filter(function(d){return!d.disabled}).map(function(d){var f=d.key;return f}),!A)}});return c}},{key:"render",value:function(){var n=this,a=this.state.filterValue,i=this.props,o=i.prefixCls,s=i.dataSource,l=s===void 0?[]:s,A=i.titleText,c=A===void 0?"":A,u=i.checkedKeys,d=i.disabled,f=i.footer,h=i.showSearch,g=h===void 0?!1:h,p=i.style,E=i.searchPlaceholder,y=i.notFoundContent,C=i.selectAll,w=i.selectCurrent,B=i.selectInvert,M=i.removeAll,I=i.removeCurrent,S=i.renderList,R=i.onItemSelectAll,b=i.onItemRemove,Q=i.showSelectAll,D=Q===void 0?!0:Q,F=i.showRemove,N=i.pagination,k=i.direction,O=f&&(f.length<2?f(this.props):f(this.props,{direction:k})),P=He(o,X(X({},"".concat(o,"-with-pagination"),!!N),"".concat(o,"-with-footer"),!!O)),z=this.getFilteredItems(l,a),j=z.filteredItems,V=z.filteredRenderItems,L=this.getListBody(o,E,a,j,y,V,u,S,g,d),K=O?m.createElement("div",{className:"".concat(o,"-footer")},O):null,J=!F&&!N&&this.getCheckBox({filteredItems:j,onItemSelectAll:R,disabled:d,prefixCls:o}),Y;F?Y=[N?{key:"removeCurrent",onClick:function(){var ee,ae=$m((((ee=n.defaultListBodyRef.current)===null||ee===void 0?void 0:ee.getItems())||[]).map(function(ne){return ne.item}));b==null||b(ae)},label:I}:null,{key:"removeAll",onClick:function(){b==null||b($m(j))},label:M}].filter(function(q){return q}):Y=[{key:"selectAll",onClick:function(){var ee=$m(j);R(ee,ee.length!==u.length)},label:C},N?{key:"selectCurrent",onClick:function(){var ee,ae=((ee=n.defaultListBodyRef.current)===null||ee===void 0?void 0:ee.getItems())||[];R($m(ae.map(function(ne){return ne.item})),!0)},label:w}:null,{key:"selectInvert",onClick:function(){var ee,ae=$m((((ee=n.defaultListBodyRef.current)===null||ee===void 0?void 0:ee.getItems())||[]).map(function(ue){return ue.item})),ne=new Set(u),ce=new Set(ne);ae.forEach(function(ue){ne.has(ue)?ce.delete(ue):ce.add(ue)}),R==null||R(Array.from(ce),"replace")},label:B}];var W=m.createElement(pd,{className:"".concat(o,"-header-dropdown"),menu:{items:Y},disabled:d},m.createElement(rC,null));return m.createElement("div",{className:P,style:p},m.createElement("div",{className:"".concat(o,"-header")},D?m.createElement(m.Fragment,null,J,W):null,m.createElement("span",{className:"".concat(o,"-header-selected")},this.getSelectAllLabel(u.length,j.length)),m.createElement("span",{className:"".concat(o,"-header-title")},c)),L,K)}}]),t}(m.PureComponent),iye=function(t){var r=t.disabled,n=t.moveToLeft,a=t.moveToRight,i=t.leftArrowText,o=i===void 0?"":i,s=t.rightArrowText,l=s===void 0?"":s,A=t.leftActive,c=t.rightActive,u=t.className,d=t.style,f=t.direction,h=t.oneWay;return m.createElement("div",{className:u,style:d},m.createElement(nt,{type:"primary",size:"small",disabled:r||!c,onClick:a,icon:f!=="rtl"?m.createElement(uy,null):m.createElement(TO,null)},l),!h&&m.createElement(nt,{type:"primary",size:"small",disabled:r||!A,onClick:n,icon:f!=="rtl"?m.createElement(TO,null):m.createElement(uy,null)},o))};function yet(e,t,r){return t=Ma(t),Vs(e,FA()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}var OR=function(e){xn(t,e);function t(r){var n;sn(this,t),n=yet(this,t,[r]),n.separatedDataSource=null,n.setStateKeys=function(l,A){l==="left"?n.setState(function(c){var u=c.sourceSelectedKeys;return{sourceSelectedKeys:typeof A=="function"?A(u||[]):A}}):n.setState(function(c){var u=c.targetSelectedKeys;return{targetSelectedKeys:typeof A=="function"?A(u||[]):A}})},n.getLocale=function(l,A){var c=n.props.locale,u=c===void 0?{}:c;return oe(oe(oe({},l),{notFoundContent:A("Transfer")}),u)},n.moveTo=function(l){var A=n.props,c=A.targetKeys,u=c===void 0?[]:c,d=A.dataSource,f=d===void 0?[]:d,h=A.onChange,g=n.state,p=g.sourceSelectedKeys,E=g.targetSelectedKeys,y=l==="right"?p:E,C=y.filter(function(M){return!f.some(function(I){return!!(M===I.key&&I.disabled)})}),w=l==="right"?C.concat(u):u.filter(function(M){return!C.includes(M)}),B=l==="right"?"left":"right";n.setStateKeys(B,[]),n.handleSelectChange(B,[]),h==null||h(w,l,C)},n.moveToLeft=function(){return n.moveTo("left")},n.moveToRight=function(){return n.moveTo("right")},n.onItemSelectAll=function(l,A,c){n.setStateKeys(l,function(u){var d=[];return c==="replace"?d=A:c?d=Array.from(new Set([].concat(Nt(u),Nt(A)))):d=u.filter(function(f){return!A.includes(f)}),n.handleSelectChange(l,d),d})},n.onLeftItemSelectAll=function(l,A){return n.onItemSelectAll("left",l,A)},n.onRightItemSelectAll=function(l,A){return n.onItemSelectAll("right",l,A)},n.handleFilter=function(l,A){var c=n.props.onSearch,u=A.target.value;c==null||c(l,u)},n.handleLeftFilter=function(l){return n.handleFilter("left",l)},n.handleRightFilter=function(l){return n.handleFilter("right",l)},n.handleClear=function(l){var A=n.props.onSearch;A==null||A(l,"")},n.handleLeftClear=function(){return n.handleClear("left")},n.handleRightClear=function(){return n.handleClear("right")},n.onItemSelect=function(l,A,c){var u=n.state,d=u.sourceSelectedKeys,f=u.targetSelectedKeys,h=Nt(l==="left"?d:f),g=h.indexOf(A);g>-1&&h.splice(g,1),c&&h.push(A),n.handleSelectChange(l,h),n.props.selectedKeys||n.setStateKeys(l,h)},n.onLeftItemSelect=function(l,A){return n.onItemSelect("left",l,A)},n.onRightItemSelect=function(l,A){return n.onItemSelect("right",l,A)},n.onRightItemRemove=function(l){var A=n.props,c=A.targetKeys,u=c===void 0?[]:c,d=A.onChange;n.setStateKeys("right",[]),d==null||d(u.filter(function(f){return!l.includes(f)}),"left",Nt(l))},n.handleScroll=function(l,A){var c=n.props.onScroll;c==null||c(l,A)},n.handleLeftScroll=function(l){return n.handleScroll("left",l)},n.handleRightScroll=function(l){return n.handleScroll("right",l)},n.handleListStyle=function(l,A){return typeof l=="function"?l({direction:A}):l};var a=r.selectedKeys,i=a===void 0?[]:a,o=r.targetKeys,s=o===void 0?[]:o;return n.state={sourceSelectedKeys:i.filter(function(l){return!s.includes(l)}),targetSelectedKeys:i.filter(function(l){return s.includes(l)})},n}return ln(t,[{key:"getTitles",value:function(n){var a,i;return(i=(a=this.props.titles)!==null&&a!==void 0?a:n.titles)!==null&&i!==void 0?i:[]}},{key:"handleSelectChange",value:function(n,a){var i=this.state,o=i.sourceSelectedKeys,s=i.targetSelectedKeys,l=this.props.onSelectChange;l&&(n==="left"?l(a,s):l(o,a))}},{key:"separateDataSource",value:function(){var n=this.props,a=n.dataSource,i=a===void 0?[]:a,o=n.rowKey,s=n.targetKeys,l=s===void 0?[]:s,A=[],c=new Array(l.length);return i.forEach(function(u){o&&(u=oe(oe({},u),{key:o(u)}));var d=l.indexOf(u.key);d!==-1?c[d]=u:A.push(u)}),{leftDataSource:A,rightDataSource:c}}},{key:"render",value:function(){var n=this;return m.createElement(_A,{componentName:"Transfer",defaultLocale:Ps.Transfer},function(a){return m.createElement(gd,null,function(i){var o=i.getPrefixCls,s=i.renderEmpty,l=i.direction;return m.createElement(Qi.Consumer,null,function(A){var c=A.hasFeedback,u=A.status,d=n.props,f=d.prefixCls,h=d.className,g=d.disabled,p=d.operations,E=p===void 0?[]:p,y=d.showSearch,C=y===void 0?!1:y,w=d.footer,B=d.style,M=d.listStyle,I=M===void 0?{}:M,S=d.operationStyle,R=d.filterOption,b=d.render,Q=d.children,D=d.showSelectAll,F=d.oneWay,N=d.pagination,k=d.status,O=o("transfer",f),P=n.getLocale(a,s||iR),z=n.state,j=z.sourceSelectedKeys,V=z.targetSelectedKeys,L=Nc(u,k),K=!Q&&N,J=n.separateDataSource(),Y=J.leftDataSource,W=J.rightDataSource,q=V.length>0,ee=j.length>0,ae=He(O,X(X(X({},"".concat(O,"-disabled"),g),"".concat(O,"-customize-list"),!!Q),"".concat(O,"-rtl"),l==="rtl"),Qo(O,L,c),h),ne=n.getTitles(P),ce=n.props.selectAllLabels||[];return m.createElement("div",{className:ae,style:B},m.createElement(dj,oe({prefixCls:"".concat(O,"-list"),titleText:ne==null?void 0:ne[0],dataSource:Y,filterOption:R,style:n.handleListStyle(I,"left"),checkedKeys:j,handleFilter:n.handleLeftFilter,handleClear:n.handleLeftClear,onItemSelect:n.onLeftItemSelect,onItemSelectAll:n.onLeftItemSelectAll,render:b,showSearch:C,renderList:Q,footer:w,onScroll:n.handleLeftScroll,disabled:g,direction:l==="rtl"?"right":"left",showSelectAll:D,selectAllLabel:ce[0],pagination:K},P)),m.createElement(iye,{className:"".concat(O,"-operation"),rightActive:ee,rightArrowText:E[0],moveToRight:n.moveToRight,leftActive:q,leftArrowText:E[1],moveToLeft:n.moveToLeft,style:S,disabled:g,direction:l,oneWay:F}),m.createElement(dj,oe({prefixCls:"".concat(O,"-list"),titleText:ne==null?void 0:ne[1],dataSource:W,filterOption:R,style:n.handleListStyle(I,"right"),checkedKeys:V,handleFilter:n.handleRightFilter,handleClear:n.handleRightClear,onItemSelect:n.onRightItemSelect,onItemSelectAll:n.onRightItemSelectAll,onItemRemove:n.onRightItemRemove,render:b,showSearch:C,renderList:Q,footer:w,onScroll:n.handleRightScroll,disabled:g,direction:l==="rtl"?"left":"right",showSelectAll:D,selectAllLabel:ce[1],showRemove:F,pagination:K},P)))})})})}}],[{key:"getDerivedStateFromProps",value:function(n){var a=n.selectedKeys,i=n.targetKeys;if(n.pagination,n.children,a){var o=i||[];return{sourceSelectedKeys:a.filter(function(s){return!o.includes(s)}),targetSelectedKeys:a.filter(function(s){return o.includes(s)})}}return null}}]),t}(m.Component);OR.List=dj;OR.Operation=iye;OR.Search=aye;var oye=m.createContext(null),sye=m.createContext(null);function Cet(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function wet(e){var t=e||{},r=t.label,n=t.value,a=t.children,i=n||"value";return{_title:r?[r]:["title","label"],value:i,key:i,children:a||"children"}}function fj(e){return!e||e.disabled||e.disableCheckbox||e.checkable===!1}function Bet(e,t){var r=[];function n(a){a.forEach(function(i){var o=i[t.children];o&&(r.push(i[t.value]),n(o))})}return n(e),r}function kq(e){return e==null}var Met={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},xet=function(t,r){var n=rve(),a=n.prefixCls,i=n.multiple,o=n.searchValue,s=n.toggleOpen,l=n.open,A=n.notFoundContent,c=m.useContext(sye),u=c.virtual,d=c.listHeight,f=c.listItemHeight,h=c.treeData,g=c.fieldNames,p=c.onSelect,E=c.dropdownMatchSelectWidth,y=c.treeExpandAction,C=m.useContext(oye),w=C.checkable,B=C.checkedKeys,M=C.halfCheckedKeys,I=C.treeExpandedKeys,S=C.treeDefaultExpandAll,R=C.treeDefaultExpandedKeys,b=C.onTreeExpand,Q=C.treeIcon,D=C.showTreeIcon,F=C.switcherIcon,N=C.treeLine,k=C.treeNodeFilterProp,O=C.loadData,P=C.treeLoadedKeys,z=C.treeMotion,j=C.onTreeLoad,V=C.keyEntities,L=m.useRef(),K=mh(function(){return h},[l,h],function(Ge,ht){return ht[0]&&Ge[1]!==ht[1]}),J=m.useMemo(function(){return w?{checked:B,halfChecked:M}:null},[w,B,M]);m.useEffect(function(){if(l&&!i&&B.length){var Ge;(Ge=L.current)===null||Ge===void 0||Ge.scrollTo({key:B[0]})}},[l]);var Y=String(o).toLowerCase(),W=function(ht){return Y?String(ht[k]).toLowerCase().includes(Y):!1},q=m.useState(R),ee=De(q,2),ae=ee[0],ne=ee[1],ce=m.useState(null),ue=De(ce,2),ge=ue[0],Se=ue[1],ye=m.useMemo(function(){return I?Nt(I):o?ge:ae},[ae,ge,I,o]);m.useEffect(function(){o&&Se(Bet(h,g))},[o]);var pe=function(ht){ne(ht),Se(ht),b&&b(ht)},Qe=function(ht){ht.preventDefault()},Ue=function(ht,We){var Ke=We.node;w&&fj(Ke)||(p(Ke.key,{selected:!B.includes(Ke.key)}),i||s(!1))},tt=m.useState(null),it=De(tt,2),we=it[0],ve=it[1],Te=V[we];if(m.useImperativeHandle(r,function(){var Ge;return{scrollTo:(Ge=L.current)===null||Ge===void 0?void 0:Ge.scrollTo,onKeyDown:function(We){var Ke,Xe=We.which;switch(Xe){case Pt.UP:case Pt.DOWN:case Pt.LEFT:case Pt.RIGHT:(Ke=L.current)===null||Ke===void 0||Ke.onKeyDown(We);break;case Pt.ENTER:{if(Te){var $e=(Te==null?void 0:Te.node)||{},pt=$e.selectable,de=$e.value;pt!==!1&&Ue(null,{node:{key:we},selected:!B.includes(de)})}break}case Pt.ESC:s(!1)}},onKeyUp:function(){}}}),K.length===0)return m.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:Qe},A);var Be={fieldNames:g};return P&&(Be.loadedKeys=P),ye&&(Be.expandedKeys=ye),m.createElement("div",{onMouseDown:Qe},Te&&l&&m.createElement("span",{style:Met,"aria-live":"assertive"},Te.node.value),m.createElement(PR,oe({ref:L,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:K,height:d,itemHeight:f,virtual:u!==!1&&E!==!1,multiple:i,icon:Q,showIcon:D,switcherIcon:F,showLine:N,loadData:o?null:O,motion:z,activeKey:we,checkable:w,checkStrictly:!0,checkedKeys:J,selectedKeys:w?[]:B,defaultExpandAll:S},Be,{onActiveChange:ve,onSelect:Ue,onCheck:Ue,onExpand:pe,onLoad:j,filterTreeNode:W,expandAction:y})))},lye=m.forwardRef(xet);lye.displayName="OptionList";var K5=function(){return null},Aye="SHOW_ALL",V5="SHOW_PARENT",zR="SHOW_CHILD";function Pq(e,t,r,n){var a=new Set(e);return t===zR?e.filter(function(i){var o=r[i];return!(o&&o.children&&o.children.some(function(s){var l=s.node;return a.has(l[n.value])})&&o.children.every(function(s){var l=s.node;return fj(l)||a.has(l[n.value])}))}):t===V5?e.filter(function(i){var o=r[i],s=o?o.parent:null;return!(s&&!fj(s.node)&&a.has(s.key))}):e}var Iet=["children","value"];function cye(e){return ui(e).map(function(t){if(!m.isValidElement(t)||!t.type)return null;var r=t,n=r.key,a=r.props,i=a.children,o=a.value,s=Tr(a,Iet),l=$({key:n,value:o},s),A=cye(i);return A.length&&(l.children=A),l}).filter(function(t){return t})}function hj(e){if(!e)return e;var t=$({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Sn(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function bet(e,t,r,n,a,i){var o=null,s=null;function l(){function A(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return c.map(function(f,h){var g="".concat(u,"-").concat(h),p=f[i.value],E=r.includes(p),y=A(f[i.children]||[],g,E),C=m.createElement(K5,f,y.map(function(B){return B.node}));if(t===p&&(o=C),E){var w={pos:g,node:C,children:y};return d||s.push(w),w}return null}).filter(function(f){return f})}s||(s=[],A(n),s.sort(function(c,u){var d=c.node.props.value,f=u.node.props.value,h=r.indexOf(d),g=r.indexOf(f);return h-g}))}Object.defineProperty(e,"triggerNode",{get:function(){return Sn(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Sn(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),a?s:s.map(function(c){var u=c.node;return u})}})}function Ret(e,t){var r=t.id,n=t.pId,a=t.rootPId,i={},o=[],s=e.map(function(l){var A=$({},l),c=A[r];return i[c]=A,A.key=A.key||c,A});return s.forEach(function(l){var A=l[n],c=i[A];c&&(c.children=c.children||[],c.children.push(l)),(A===a||!c&&a===null)&&o.push(l)}),o}function Tet(e,t,r){return m.useMemo(function(){return e?r?Ret(e,$({id:"id",pId:"pId",rootPId:null},r!==!0?r:{})):e:cye(t)},[t,r,e])}const Qet=function(e){var t=m.useRef({valueLabels:new Map});return m.useMemo(function(){var r=t.current.valueLabels,n=new Map,a=e.map(function(i){var o,s=i.value,l=(o=i.label)!==null&&o!==void 0?o:r.get(s);return n.set(s,l),$($({},i),{},{label:l})});return t.current.valueLabels=n,[a]},[e])};function Oq(e){var t=m.useRef();t.current=e;var r=m.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}const Det=function(e,t){return m.useMemo(function(){var r=SR(e,{fieldNames:t,initWrapper:function(a){return $($({},a),{},{valueEntities:new Map})},processEntity:function(a,i){var o=a.node[t.value];i.valueEntities.set(o,a)}});return r},[e,t])},Fet=function(e,t,r,n){return m.useMemo(function(){var a=e.map(function(l){var A=l.value;return A}),i=t.map(function(l){var A=l.value;return A}),o=a.filter(function(l){return!n[l]});if(r){var s=Rc(a,!0,n);a=s.checkedKeys,i=s.halfCheckedKeys}return[Array.from(new Set([].concat(Nt(o),Nt(a)))),i]},[e,t,r,n])},_et=function(e,t,r){var n=r.treeNodeFilterProp,a=r.filterTreeNode,i=r.fieldNames,o=i.children;return m.useMemo(function(){if(!t||a===!1)return e;var s;if(typeof a=="function")s=a;else{var l=t.toUpperCase();s=function(u,d){var f=d[n];return String(f).toUpperCase().includes(l)}}function A(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return c.map(function(d){var f=d[o],h=u||s(t,hj(d)),g=A(f||[],h);return h||g.length?$($({},d),{},X({isLeaf:void 0},o,g)):null}).filter(function(d){return d})}return A(e)},[e,t,o,n,a])};var Net=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function ket(e){return!e||Xt(e)!=="object"}var Pet=m.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tree-select":n,i=e.value,o=e.defaultValue,s=e.onChange,l=e.onSelect,A=e.onDeselect,c=e.searchValue,u=e.inputValue,d=e.onSearch,f=e.autoClearSearchValue,h=f===void 0?!0:f,g=e.filterTreeNode,p=e.treeNodeFilterProp,E=p===void 0?"value":p,y=e.showCheckedStrategy,C=y===void 0?zR:y,w=e.treeNodeLabelProp,B=e.multiple,M=e.treeCheckable,I=e.treeCheckStrictly,S=e.labelInValue,R=e.fieldNames,b=e.treeDataSimpleMode,Q=e.treeData,D=e.children,F=e.loadData,N=e.treeLoadedKeys,k=e.onTreeLoad,O=e.treeDefaultExpandAll,P=e.treeExpandedKeys,z=e.treeDefaultExpandedKeys,j=e.onTreeExpand,V=e.treeExpandAction,L=e.virtual,K=e.listHeight,J=K===void 0?200:K,Y=e.listItemHeight,W=Y===void 0?20:Y,q=e.onDropdownVisibleChange,ee=e.dropdownMatchSelectWidth,ae=ee===void 0?!0:ee,ne=e.treeLine,ce=e.treeIcon,ue=e.showTreeIcon,ge=e.switcherIcon,Se=e.treeMotion,ye=Tr(e,Net),pe=Ive(r),Qe=M&&!I,Ue=M||I,tt=I||S,it=Ue||B,we=Qn(o,{value:i}),ve=De(we,2),Te=ve[0],Be=ve[1],Ge=m.useMemo(function(){return wet(R)},[JSON.stringify(R)]),ht=Qn("",{value:c!==void 0?c:u,postState:function($t){return $t||""}}),We=De(ht,2),Ke=We[0],Xe=We[1],$e=function($t){Xe($t),d==null||d($t)},pt=Tet(Q,D,b),de=Det(pt,Ge),Fe=de.keyEntities,je=de.valueEntities,et=m.useCallback(function(Wt){var $t=[],tr=[];return Wt.forEach(function(ir){je.has(ir)?tr.push(ir):$t.push(ir)}),{missingRawValues:$t,existRawValues:tr}},[je]),xe=_et(pt,Ke,{fieldNames:Ge,treeNodeFilterProp:E,filterTreeNode:g}),Ne=m.useCallback(function(Wt){if(Wt){if(w)return Wt[w];for(var $t=Ge._title,tr=0;tr<$t.length;tr+=1){var ir=Wt[$t[tr]];if(ir!==void 0)return ir}}},[Ge,w]),le=m.useCallback(function(Wt){var $t=Cet(Wt);return $t.map(function(tr){return ket(tr)?{value:tr}:tr})},[]),At=m.useCallback(function(Wt){var $t=le(Wt);return $t.map(function(tr){var ir=tr.label,ar=tr.value,rr=tr.halfChecked,Yt,Vt=je.get(ar);if(Vt){var Ut;ir=(Ut=ir)!==null&&Ut!==void 0?Ut:Ne(Vt.node),Yt=Vt.node.disabled}else if(ir===void 0){var Mt=le(Te).find(function(xt){return xt.value===ar});ir=Mt.label}return{label:ir,value:ar,halfChecked:rr,disabled:Yt}})},[je,Ne,le,Te]),Bt=m.useMemo(function(){return le(Te)},[le,Te]),G=m.useMemo(function(){var Wt=[],$t=[];return Bt.forEach(function(tr){tr.halfChecked?$t.push(tr):Wt.push(tr)}),[Wt,$t]},[Bt]),Ee=De(G,2),Ie=Ee[0],ie=Ee[1],re=m.useMemo(function(){return Ie.map(function(Wt){return Wt.value})},[Ie]),he=Fet(Ie,ie,Qe,Fe),Pe=De(he,2),be=Pe[0],Ve=Pe[1],lt=m.useMemo(function(){var Wt=Pq(be,C,Fe,Ge),$t=Wt.map(function(rr){var Yt,Vt,Ut;return(Yt=(Vt=Fe[rr])===null||Vt===void 0||(Ut=Vt.node)===null||Ut===void 0?void 0:Ut[Ge.value])!==null&&Yt!==void 0?Yt:rr}),tr=$t.map(function(rr){var Yt=Ie.find(function(Vt){return Vt.value===rr});return{value:rr,label:Yt==null?void 0:Yt.label}}),ir=At(tr),ar=ir[0];return!it&&ar&&kq(ar.value)&&kq(ar.label)?[]:ir.map(function(rr){var Yt;return $($({},rr),{},{label:(Yt=rr.label)!==null&&Yt!==void 0?Yt:rr.value})})},[Ge,it,be,Ie,At,C,Fe]),Ze=Qet(lt),Le=De(Ze,1),rt=Le[0],Qt=Oq(function(Wt,$t,tr){var ir=At(Wt);if(Be(ir),h&&Xe(""),s){var ar=Wt;if(Qe){var rr=Pq(Wt,C,Fe,Ge);ar=rr.map(function(zr){var an=je.get(zr);return an?an.node[Ge.value]:zr})}var Yt=$t||{triggerValue:void 0,selected:void 0},Vt=Yt.triggerValue,Ut=Yt.selected,Mt=ar;if(I){var xt=ie.filter(function(zr){return!ar.includes(zr.value)});Mt=[].concat(Nt(Mt),Nt(xt))}var Ft=At(Mt),qt={preValue:Ie,triggerValue:Vt},gr=!0;(I||tr==="selection"&&!Ut)&&(gr=!1),bet(qt,Vt,Wt,pt,gr,Ge),Ue?qt.checked=Ut:qt.selected=Ut;var Hr=tt?Ft:Ft.map(function(zr){return zr.value});s(it?Hr:Hr[0],tt?null:Ft.map(function(zr){return zr.label}),qt)}}),Dt=m.useCallback(function(Wt,$t){var tr,ir=$t.selected,ar=$t.source,rr=Fe[Wt],Yt=rr==null?void 0:rr.node,Vt=(tr=Yt==null?void 0:Yt[Ge.value])!==null&&tr!==void 0?tr:Wt;if(!it)Qt([Vt],{selected:!0,triggerValue:Vt},"option");else{var Ut=ir?[].concat(Nt(re),[Vt]):be.filter(function(an){return an!==Vt});if(Qe){var Mt=et(Ut),xt=Mt.missingRawValues,Ft=Mt.existRawValues,qt=Ft.map(function(an){return je.get(an).key}),gr;if(ir){var Hr=Rc(qt,!0,Fe);gr=Hr.checkedKeys}else{var zr=Rc(qt,{halfCheckedKeys:Ve},Fe);gr=zr.checkedKeys}Ut=[].concat(Nt(xt),Nt(gr.map(function(an){return Fe[an].node[Ge.value]})))}Qt(Ut,{selected:ir,triggerValue:Vt},ar||"option")}ir||!it?l==null||l(Vt,hj(Yt)):A==null||A(Vt,hj(Yt))},[et,je,Fe,Ge,it,re,Qt,Qe,l,A,be,Ve]),ur=m.useCallback(function(Wt){if(q){var $t={};Object.defineProperty($t,"documentClickClose",{get:function(){return Sn(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),q(Wt,$t)}},[q]),br=Oq(function(Wt,$t){var tr=Wt.map(function(ir){return ir.value});if($t.type==="clear"){Qt(tr,{},"selection");return}$t.values.length&&Dt($t.values[0].value,{selected:!1,source:"selection"})}),Er=m.useMemo(function(){return{virtual:L,dropdownMatchSelectWidth:ae,listHeight:J,listItemHeight:W,treeData:xe,fieldNames:Ge,onSelect:Dt,treeExpandAction:V}},[L,ae,J,W,xe,Ge,Dt,V]),hr=m.useMemo(function(){return{checkable:Ue,loadData:F,treeLoadedKeys:N,onTreeLoad:k,checkedKeys:be,halfCheckedKeys:Ve,treeDefaultExpandAll:O,treeExpandedKeys:P,treeDefaultExpandedKeys:z,onTreeExpand:j,treeIcon:ce,treeMotion:Se,showTreeIcon:ue,switcherIcon:ge,treeLine:ne,treeNodeFilterProp:E,keyEntities:Fe}},[Ue,F,N,k,be,Ve,O,P,z,j,ce,Se,ue,ge,ne,E,Fe]);return m.createElement(sye.Provider,{value:Er},m.createElement(oye.Provider,{value:hr},m.createElement(xve,oe({ref:t},ye,{id:pe,prefixCls:a,mode:it?"multiple":void 0,displayValues:rt,onDisplayValuesChange:br,searchValue:Ke,onSearch:$e,OptionList:lye,emptyOptions:!pt.length,onDropdownVisibleChange:ur,dropdownMatchSelectWidth:ae}))))}),FC=Pet;FC.TreeNode=K5;FC.SHOW_ALL=Aye;FC.SHOW_PARENT=V5;FC.SHOW_CHILD=zR;var Oet=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},zet=function(t,r){var n=t.prefixCls,a=t.size,i=t.disabled,o=t.bordered,s=o===void 0?!0:o,l=t.className,A=t.treeCheckable,c=t.multiple,u=t.listHeight,d=u===void 0?256:u,f=t.listItemHeight,h=f===void 0?26:f,g=t.placement,p=t.notFoundContent,E=t.switcherIcon,y=t.treeLine,C=t.getPopupContainer,w=t.dropdownClassName,B=t.popupClassName,M=t.treeIcon,I=M===void 0?!1:M,S=t.transitionName,R=t.choiceTransitionName,b=R===void 0?"":R,Q=t.status,D=t.showArrow,F=t.treeExpandAction,N=Oet(t,["prefixCls","size","disabled","bordered","className","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","dropdownClassName","popupClassName","treeIcon","transitionName","choiceTransitionName","status","showArrow","treeExpandAction"]),k=m.useContext(Mr),O=k.getPopupContainer,P=k.getPrefixCls,z=k.renderEmpty,j=k.direction,V=k.virtual,L=k.dropdownMatchSelectWidth,K=m.useContext(Ti),J=P("select",n),Y=P("select-tree",n),W=P("tree-select",n),q=kc(J,j),ee=q.compactSize,ae=q.compactItemClassnames,ne=He(B||w,"".concat(W,"-dropdown"),X({},"".concat(W,"-dropdown-rtl"),j==="rtl")),ce=!!(A||c),ue=D!==void 0?D:N.loading||!ce,ge=m.useContext(Qi),Se=ge.status,ye=ge.hasFeedback,pe=ge.isFormItemInput,Qe=ge.feedbackIcon,Ue=Nc(Se,Q),tt=Yve(oe(oe({},N),{multiple:ce,showArrow:ue,hasFeedback:ye,feedbackIcon:Qe,prefixCls:J})),it=tt.suffixIcon,we=tt.removeIcon,ve=tt.clearIcon,Te;p!==void 0?Te=p:Te=(z||iR)("Select");var Be=Ia(N,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),Ge=function(){return g!==void 0?g:j==="rtl"?"bottomRight":"bottomLeft"},ht=ee||a||K,We=m.useContext(Fo),Ke=i??We,Xe=He(!n&&W,X(X(X(X(X({},"".concat(J,"-lg"),ht==="large"),"".concat(J,"-sm"),ht==="small"),"".concat(J,"-rtl"),j==="rtl"),"".concat(J,"-borderless"),!s),"".concat(J,"-in-form-item"),pe),Qo(J,Ue,ye),ae,l),$e=P();return m.createElement(FC,oe({virtual:V,dropdownMatchSelectWidth:L,disabled:Ke},Be,{ref:r,prefixCls:J,className:Xe,listHeight:d,listItemHeight:h,treeCheckable:A&&m.createElement("span",{className:"".concat(J,"-tree-checkbox-inner")}),treeLine:!!y,inputIcon:it,multiple:c,placement:Ge(),removeIcon:we,clearIcon:ve,switcherIcon:function(de){return W0e(Y,E,y,de)},showTreeIcon:I,notFoundContent:Te,getPopupContainer:C||O,treeMotion:null,dropdownClassName:ne,choiceTransitionName:zs($e,"",b),transitionName:zs($e,jve(g),S),showArrow:ye||D,treeExpandAction:F}))},jet=m.forwardRef(zet),wa=jet;wa.TreeNode=K5;wa.SHOW_ALL=Aye;wa.SHOW_PARENT=V5;wa.SHOW_CHILD=zR;var TN,zq;function Yet(){return zq||(zq=1,TN=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}}),TN}var QN,jq;function Let(){if(jq)return QN;jq=1;var e=Yet(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,o)}function a(i,o){var s,l,A,c,u,d,f=!1;o||(o={}),s=o.debug||!1;try{A=e(),c=document.createRange(),u=document.getSelection(),d=document.createElement("span"),d.textContent=i,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(g){if(g.stopPropagation(),o.format)if(g.preventDefault(),typeof g.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=t[o.format]||t.default;window.clipboardData.setData(p,i)}else g.clipboardData.clearData(),g.clipboardData.setData(o.format,i);o.onCopy&&(g.preventDefault(),o.onCopy(g.clipboardData))}),document.body.appendChild(d),c.selectNodeContents(d),u.addRange(c);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");f=!0}catch(g){s&&console.error("unable to copy using execCommand: ",g),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(o.format||"text",i),o.onCopy&&o.onCopy(window.clipboardData),f=!0}catch(p){s&&console.error("unable to copy using clipboardData: ",p),s&&console.error("falling back to prompt"),l=n("message"in o?o.message:r),window.prompt(l,i)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(c):u.removeAllRanges()),d&&document.body.removeChild(d),A()}return f}return QN=a,QN}var Uet=Let();const Het=Nr(Uet);var Get=function(t){var r=t.prefixCls,n=t["aria-label"],a=t.className,i=t.style,o=t.direction,s=t.maxLength,l=t.autoSize,A=l===void 0?!0:l,c=t.value,u=t.onSave,d=t.onCancel,f=t.onEnd,h=t.component,g=t.enterIcon,p=g===void 0?m.createElement(EDe,null):g,E=m.useRef(null),y=m.useRef(!1),C=m.useRef(),w=m.useState(c),B=De(w,2),M=B[0],I=B[1];m.useEffect(function(){I(c)},[c]),m.useEffect(function(){if(E.current&&E.current.resizableTextArea){var P=E.current.resizableTextArea.textArea;P.focus();var z=P.value.length;P.setSelectionRange(z,z)}},[]);var S=function(z){var j=z.target;I(j.value.replace(/[\n\r]/g,""))},R=function(){y.current=!0},b=function(){y.current=!1},Q=function(z){var j=z.keyCode;y.current||(C.current=j)},D=function(){u(M.trim())},F=function(z){var j=z.keyCode,V=z.ctrlKey,L=z.altKey,K=z.metaKey,J=z.shiftKey;C.current===j&&!y.current&&!V&&!L&&!K&&!J&&(j===Pt.ENTER?(D(),f==null||f()):j===Pt.ESC&&d())},N=function(){D()},k=h?"".concat(r,"-").concat(h):"",O=He(r,"".concat(r,"-edit-content"),X({},"".concat(r,"-rtl"),o==="rtl"),a,k);return m.createElement("div",{className:O,style:i},m.createElement(A0e,{ref:E,maxLength:s,value:M,onChange:S,onKeyDown:Q,onKeyUp:F,onCompositionStart:R,onCompositionEnd:b,onBlur:N,"aria-label":n,rows:1,autoSize:A}),p!==null?ia(p,{className:"".concat(r,"-edit-content-confirm")}):null)};function DN(e,t){return m.useMemo(function(){var r=!!e;return[r,oe(oe({},t),r&&Xt(e)==="object"?e:null)]},[e])}var Ket=function(t,r){var n=m.useRef(!1);m.useEffect(function(){n.current?t():n.current=!0},r)},Vet=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},uye=m.forwardRef(function(e,t){var r=e.prefixCls,n=e.component,a=n===void 0?"article":n,i=e.className,o=e.setContentRef,s=e.children,l=e.direction,A=Vet(e,["prefixCls","component","className","setContentRef","children","direction"]),c=m.useContext(Mr),u=c.getPrefixCls,d=c.direction,f=l??d,h=t;o&&(h=As(t,o));var g=u("typography",r),p=He(g,X({},"".concat(g,"-rtl"),f==="rtl"),i);return m.createElement(a,oe({className:p,ref:h},A),s)});function dye(e){var t=Xt(e);return t==="string"||t==="number"}function Jet(e){var t=0;return e.forEach(function(r){dye(r)?t+=String(r).length:t+=1}),t}function Yq(e,t){for(var r=0,n=[],a=0;a<e.length;a+=1){if(r===t)return n;var i=e[a],o=dye(i),s=o?String(i).length:1,l=r+s;if(l>t){var A=t-r;return n.push(String(i).slice(0,A)),n}n.push(i),r=l}return e}var Wet=0,Qw=1,Lq=2,FN=3,Uq=4,Xet=function(t){var r=t.enabledMeasure,n=t.children,a=t.text,i=t.width,o=t.fontSize,s=t.rows,l=t.onEllipsis,A=m.useState([0,0,0]),c=De(A,2),u=De(c[0],3),d=u[0],f=u[1],h=u[2],g=c[1],p=m.useState(Wet),E=De(p,2),y=E[0],C=E[1],w=m.useState(0),B=De(w,2),M=B[0],I=B[1],S=m.useRef(null),R=m.useRef(null),b=m.useMemo(function(){return ui(a)},[a]),Q=m.useMemo(function(){return Jet(b)},[b]),D=m.useMemo(function(){return!r||y!==FN?n(b,!1):n(Yq(b,f),f<Q)},[r,y,n,b,f,Q]);Wn(function(){r&&i&&o&&Q&&(C(Qw),g([0,Math.ceil(Q/2),Q]))},[r,i,o,a,Q,s]),Wn(function(){var O;y===Qw&&I(((O=S.current)===null||O===void 0?void 0:O.offsetHeight)||0)},[y]),Wn(function(){var O,P;if(M){if(y===Qw){var z=((O=R.current)===null||O===void 0?void 0:O.offsetHeight)||0,j=s*M;z<=j?(C(Uq),l(!1)):C(Lq)}else if(y===Lq)if(d!==h){var V=((P=R.current)===null||P===void 0?void 0:P.offsetHeight)||0,L=s*M,K=d,J=h;d===h-1?J=d:V<=L?K=f:J=f;var Y=Math.ceil((K+J)/2);g([K,Y,J])}else C(FN),l(!0)}},[y,d,h,s,M]);var F={width:i,whiteSpace:"normal",margin:0,padding:0},N=function(P,z,j){return m.createElement("span",{"aria-hidden":!0,ref:z,style:oe({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.floor(o/2)*2},j)},P)},k=function(P,z){var j=Yq(b,P);return N(n(j,!0),z,F)};return m.createElement(m.Fragment,null,D,r&&y!==FN&&y!==Uq&&m.createElement(m.Fragment,null,N("lg",S,{wordBreak:"keep-all",whiteSpace:"nowrap"}),y===Qw?N(n(b,!1),R,F):k(f,R)))},qet=function(t){var r=t.enabledEllipsis,n=t.isEllipsis,a=t.children,i=t.tooltipProps;return!(i!=null&&i.title)||!r?a:m.createElement(Zn,oe({open:n?void 0:!1},i),a)},Zet=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function $et(e,t){var r=e.mark,n=e.code,a=e.underline,i=e.delete,o=e.strong,s=e.keyboard,l=e.italic,A=t;function c(u,d){u&&(A=m.createElement(d,{},A))}return c(o,"strong"),c(a,"u"),c(i,"del"),c(n,"code"),c(r,"mark"),c(s,"kbd"),c(l,"i"),A}function Dw(e,t,r){return e===!0||e===void 0?t:e||r&&t}function Hq(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}var ett="...",jR=m.forwardRef(function(e,t){var r,n,a,i=e.prefixCls,o=e.className,s=e.style,l=e.type,A=e.disabled,c=e.children,u=e.ellipsis,d=e.editable,f=e.copyable,h=e.component,g=e.title,p=Zet(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),E=m.useContext(Mr),y=E.getPrefixCls,C=E.direction,w=lpe("Text")[0],B=m.useRef(null),M=m.useRef(null),I=y("typography",i),S=Ia(p,["mark","code","delete","underline","strong","keyboard","italic"]),R=DN(d),b=De(R,2),Q=b[0],D=b[1],F=Qn(!1,{value:D.editing}),N=De(F,2),k=N[0],O=N[1],P=D.triggerType,z=P===void 0?["icon"]:P,j=function(Ft){var qt;Ft&&((qt=D.onStart)===null||qt===void 0||qt.call(D)),O(Ft)};Ket(function(){var xt;k||(xt=M.current)===null||xt===void 0||xt.focus()},[k]);var V=function(Ft){Ft==null||Ft.preventDefault(),j(!0)},L=function(Ft){var qt;(qt=D.onChange)===null||qt===void 0||qt.call(D,Ft),j(!1)},K=function(){var Ft;(Ft=D.onCancel)===null||Ft===void 0||Ft.call(D),j(!1)},J=DN(f),Y=De(J,2),W=Y[0],q=Y[1],ee=m.useState(!1),ae=De(ee,2),ne=ae[0],ce=ae[1],ue=m.useRef(),ge={};q.format&&(ge.format=q.format);var Se=function(){window.clearTimeout(ue.current)},ye=function(Ft){var qt;Ft==null||Ft.preventDefault(),Ft==null||Ft.stopPropagation(),Het(q.text||String(c)||"",ge),ce(!0),Se(),ue.current=window.setTimeout(function(){ce(!1)},3e3),(qt=q.onCopy)===null||qt===void 0||qt.call(q,Ft)};m.useEffect(function(){return Se},[]);var pe=m.useState(!1),Qe=De(pe,2),Ue=Qe[0],tt=Qe[1],it=m.useState(!1),we=De(it,2),ve=we[0],Te=we[1],Be=m.useState(!1),Ge=De(Be,2),ht=Ge[0],We=Ge[1],Ke=m.useState(!1),Xe=De(Ke,2),$e=Xe[0],pt=Xe[1],de=m.useState(!1),Fe=De(de,2),je=Fe[0],et=Fe[1],xe=m.useState(!0),Ne=De(xe,2),le=Ne[0],At=Ne[1],Bt=DN(u,{expandable:!1}),G=De(Bt,2),Ee=G[0],Ie=G[1],ie=Ee&&!ht,re=Ie.rows,he=re===void 0?1:re,Pe=m.useMemo(function(){return!ie||Ie.suffix!==void 0||Ie.onEllipsis||Ie.expandable||Q||W},[ie,Ie,Q,W]);Wn(function(){Ee&&!Pe&&(tt(Qz("webkitLineClamp")),Te(Qz("textOverflow")))},[Pe,Ee]);var be=m.useMemo(function(){return Pe?!1:he===1?ve:Ue},[Pe,ve,Ue]),Ve=ie&&(be?je:$e),lt=ie&&he===1&&be,Ze=ie&&he>1&&be,Le=function(Ft){var qt;We(!0),(qt=Ie.onExpand)===null||qt===void 0||qt.call(Ie,Ft)},rt=m.useState(0),Qt=De(rt,2),Dt=Qt[0],ur=Qt[1],br=m.useState(0),Er=De(br,2),hr=Er[0],Wt=Er[1],$t=function(Ft,qt){var gr=Ft.offsetWidth,Hr;ur(gr),Wt(parseInt((Hr=window.getComputedStyle)===null||Hr===void 0?void 0:Hr.call(window,qt).fontSize,10)||0)},tr=function(Ft){var qt;pt(Ft),$e!==Ft&&((qt=Ie.onEllipsis)===null||qt===void 0||qt.call(Ie,Ft))};m.useEffect(function(){var xt=B.current;if(Ee&&be&&xt){var Ft=Ze?xt.offsetHeight<xt.scrollHeight:xt.offsetWidth<xt.scrollWidth;je!==Ft&&et(Ft)}},[Ee,be,c,Ze,le]),m.useEffect(function(){var xt=B.current;if(!(typeof IntersectionObserver>"u"||!xt||!be||!ie)){var Ft=new IntersectionObserver(function(){At(!!xt.offsetParent)});return Ft.observe(xt),function(){Ft.disconnect()}}},[be,ie]);var ir={};Ie.tooltip===!0?ir={title:(r=D.text)!==null&&r!==void 0?r:c}:m.isValidElement(Ie.tooltip)?ir={title:Ie.tooltip}:Xt(Ie.tooltip)==="object"?ir=oe({title:(n=D.text)!==null&&n!==void 0?n:c},Ie.tooltip):ir={title:Ie.tooltip};var ar=m.useMemo(function(){var xt=function(qt){return["string","number"].includes(Xt(qt))};if(!(!Ee||be)){if(xt(D.text))return D.text;if(xt(c))return c;if(xt(g))return g;if(xt(ir.title))return ir.title}},[Ee,be,g,ir.title,Ve]);if(k)return m.createElement(Get,{value:(a=D.text)!==null&&a!==void 0?a:typeof c=="string"?c:"",onSave:L,onCancel:K,onEnd:D.onEnd,prefixCls:I,className:o,style:s,direction:C,component:h,maxLength:D.maxLength,autoSize:D.autoSize,enterIcon:D.enterIcon});var rr=function(){var Ft=Ie.expandable,qt=Ie.symbol;if(!Ft)return null;var gr;return qt?gr=qt:gr=w.expand,m.createElement("a",{key:"expand",className:"".concat(I,"-expand"),onClick:Le,"aria-label":w.expand},gr)},Yt=function(){if(Q){var Ft=D.icon,qt=D.tooltip,gr=ui(qt)[0]||w.edit,Hr=typeof gr=="string"?gr:"";return z.includes("icon")?m.createElement(Zn,{key:"edit",title:qt===!1?"":gr},m.createElement(ej,{ref:M,className:"".concat(I,"-edit"),onClick:V,"aria-label":Hr},Ft||m.createElement(QS,{role:"button"}))):null}},Vt=function(){if(W){var Ft=q.tooltips,qt=q.icon,gr=Hq(Ft),Hr=Hq(qt),zr=ne?Dw(gr[1],w.copied):Dw(gr[0],w.copy),an=ne?w.copied:w.copy,qe=typeof zr=="string"?zr:an;return m.createElement(Zn,{key:"copy",title:zr},m.createElement(ej,{className:He("".concat(I,"-copy"),ne&&"".concat(I,"-copy-success")),onClick:ye,"aria-label":qe},ne?Dw(Hr[1],m.createElement(Gs,null),!0):Dw(Hr[0],m.createElement(hh,null),!0)))}},Ut=function(Ft){return[Ft&&rr(),Yt(),Vt()]},Mt=function(Ft){return[Ft&&m.createElement("span",{"aria-hidden":!0,key:"ellipsis"},ett),Ie.suffix,Ut(Ft)]};return m.createElement(ks,{onResize:$t,disabled:!ie||be},function(xt){return m.createElement(qet,{tooltipProps:ir,enabledEllipsis:ie,isEllipsis:Ve},m.createElement(uye,oe({className:He(X(X(X(X(X(X({},"".concat(I,"-").concat(l),l),"".concat(I,"-disabled"),A),"".concat(I,"-ellipsis"),Ee),"".concat(I,"-single-line"),ie&&he===1),"".concat(I,"-ellipsis-single-line"),lt),"".concat(I,"-ellipsis-multiple-line"),Ze),o),prefixCls:i,style:oe(oe({},s),{WebkitLineClamp:Ze?he:void 0}),component:h,ref:As(xt,B,t),direction:C,onClick:z.includes("text")?V:void 0,"aria-label":ar==null?void 0:ar.toString(),title:g},S),m.createElement(Xet,{enabledMeasure:ie&&!be,text:c,rows:he,width:Dt,fontSize:hr,onEllipsis:tr},function(Ft,qt){var gr=Ft;Ft.length&&qt&&ar&&(gr=m.createElement("span",{key:"show-content","aria-hidden":!0},gr));var Hr=$et(e,m.createElement(m.Fragment,null,gr,Mt(qt)));return Hr})))})}),ttt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rtt=m.forwardRef(function(e,t){var r=e.ellipsis,n=e.rel,a=ttt(e,["ellipsis","rel"]),i=oe(oe({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete i.navigate,m.createElement(jR,oe({},i,{ref:t,ellipsis:!!r,component:"a"}))}),ntt=m.forwardRef(function(e,t){return m.createElement(jR,oe({ref:t},e,{component:"div"}))}),att=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},itt=function(t,r){var n=t.ellipsis,a=att(t,["ellipsis"]),i=m.useMemo(function(){return n&&Xt(n)==="object"?Ia(n,["expandable","rows"]):n},[n]);return m.createElement(jR,oe({ref:r},a,{ellipsis:i,component:"span"}))};const ott=m.forwardRef(itt);var stt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ltt=B6e(1,2,3,4,5),Att=m.forwardRef(function(e,t){var r=e.level,n=r===void 0?1:r,a=stt(e,["level"]),i;return ltt.includes(n)?i="h".concat(n):i="h1",m.createElement(jR,oe({ref:t},a,{component:i}))}),md=uye;md.Text=ott;md.Link=rtt;md.Title=Att;md.Paragraph=ntt;const YR=115,Tn=({type:e="info",message:t="Accueil",description:r,key:n,icon:a,duration:i=4}={})=>{as[e]({message:t,description:r,duration:i,placement:"topRight",top:YR,icon:a,key:n})},ctt=({description:e="",message:t="Une erreur s'est produite",key:r,icon:n,duration:a=4})=>{as.warning({message:t,description:e,duration:a,placement:"topRight",top:YR,icon:n,key:r})},RA=({description:e="",message:t="Une erreur s'est produite",key:r,icon:n,duration:a=4})=>{as.error({message:t,description:e,duration:a,placement:"topRight",top:YR,icon:n,key:r})},J5=({description:e="",message:t="Succes",key:r,icon:n,duration:a=4})=>{as.success({message:t,description:e,duration:a,placement:"topRight",top:YR,icon:n,key:r})},utt=(e,t,r)=>{Tn({type:"error",message:t,description:r})};VO.registerLanguage("sql",R3e);function en(e,t={}){const r=ma()+e;let n=new FormData;for(const a in t)n.append(a,t[a]);return new Promise(async(a,i)=>{try{let o=await ai({method:"post",url:r,data:n,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});const s=o.headers["content-type"];let l=o.data;s.includes("application/json")||(l=ud(o.data)),a(l)}catch(o){Tn({message:"Erreur",description:"Erreur de communication avec le serveur veuillez recharger la page"}),i(o)}})}async function ri(e,t="post",r={},n={"Content-Type":"multipart/form-data"}){let a;if(t==="post"&&n["Content-Type"]==="multipart/form-data"){a=new FormData;for(const i in r)a.append(i,r[i])}else a=r;try{const i=await ai({method:t,url:ma()+e,data:a,headers:n,responseType:"json"});let o=JSON.stringify(i.data);const s=Vde(o,Kde);return{data:JSON.parse(s),res:i}}catch{return!1}}async function pc(e,t={},r=!0){let n=await ai({method:"get",url:ma()+e,params:t,responseType:"arraybuffer"});const i=new TextDecoder("iso-8859-15").decode(n.data);let o="",s=document.createElement("pre");s.style.wordWrap="break-word",s.style.whiteSpace="pre-wrap";let l=document.createElement("code");l.classList.add("language-sql"),r?(VO.highlightAll(),o=VO.highlight(i,{language:"sql"}).value,l.innerHTML=o):l.innerHTML=i,s.appendChild(l);const A=window.open("");A.document.title="CTI Santé";const c=document.createElement("link");c.id="id2",c.rel="stylesheet",c.href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/styles/default.min.css",A.document.head.append(c),A.document.body.appendChild(s)}const Gq=()=>async function(e,t){e(ZI(!0));const{data:r}=await ri("api/logs","get");e(i8e(r)),e(ZI(!1))},Kq=()=>async function(e){e(ZI(!0));try{const{data:t}=await ri("api/exploit-status","get");e(A8e(t))}catch(t){Fa(8900,"",t)}e(ZI(!1))};function dtt(e,t){Object.keys(t.log).length&&(so.dispatch(SNe()),Object.values(t.log).forEach(r=>{console.warn(r.code,`Détecté ${r.count} fois`,e[r.code]?e[r.code]:"Erreur JiS non identifiée",r.text,r.error!==null?r.error:"")}),ri("api/log","post",t,{"Content-Type":"application/json"}),t={log:{}})}const fye={8100:"Erreur d'évaluation de l'actionScript",8101:"Erreur d'évaluation de l'actionScript - Globals manquants",8102:"Erreur lors de la construction de l'object SELECT ou VIEW - Globals manquants",8103:"Erreur lors de l'éval sur la visibilité d'un champs",8104:"Erreur lors de la récupération d'une valeur demandée dans l'eval",8105:"Return manquant dans l'eval",8200:"Erreur de traitements",8201:"Erreur lors du traitement des filtres avant envoi",8202:"Erreur lors du de la création du Tree",8300:"Erreur export",8301:"Erreur export Excel - Vue",8302:"Erreur export PDF - Vue",8400:"Erreur localForage",8401:"Erreur lors de la récupération du RUN du localForage",8402:"Erreur lors de la récupération du DESC du localForage",8403:"La vue demandée ne correspond pas au module en cours",8500:"Erreur retournée par le serveur",8510:"Temps de réponse serveur excessif",8600:"Erreur lors de la création du menu",8610:"swf manquant dans item du menu",8700:"Erreur de communication avec I-CTI Simulation",8701:"Erreur d'envoi des séjours non groupés",8702:"Erreur lors du téléchargement de la simulation",8800:"Erreur de communication avec le module references",8900:"Erreur de communication avec le module d'affichage des traces",8901:"Erreur de téléchargement de la trace",8902:"Erreur de visualisation de la trace"};var _N={exports:{}},NN={exports:{}},Vq;function ftt(){return Vq||(Vq=1,function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(r,n){return r<<n|r>>>32-n},rotr:function(r,n){return r<<32-n|r>>>n},endian:function(r){if(r.constructor==Number)return t.rotl(r,8)&16711935|t.rotl(r,24)&4278255360;for(var n=0;n<r.length;n++)r[n]=t.endian(r[n]);return r},randomBytes:function(r){for(var n=[];r>0;r--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(r){for(var n=[],a=0,i=0;a<r.length;a++,i+=8)n[i>>>5]|=r[a]<<24-i%32;return n},wordsToBytes:function(r){for(var n=[],a=0;a<r.length*32;a+=8)n.push(r[a>>>5]>>>24-a%32&255);return n},bytesToHex:function(r){for(var n=[],a=0;a<r.length;a++)n.push((r[a]>>>4).toString(16)),n.push((r[a]&15).toString(16));return n.join("")},hexToBytes:function(r){for(var n=[],a=0;a<r.length;a+=2)n.push(parseInt(r.substr(a,2),16));return n},bytesToBase64:function(r){for(var n=[],a=0;a<r.length;a+=3)for(var i=r[a]<<16|r[a+1]<<8|r[a+2],o=0;o<4;o++)a*8+o*6<=r.length*8?n.push(e.charAt(i>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],a=0,i=0;a<r.length;i=++a%4)i!=0&&n.push((e.indexOf(r.charAt(a-1))&Math.pow(2,-2*i+8)-1)<<i*2|e.indexOf(r.charAt(a))>>>6-i*2);return n}};NN.exports=t}()),NN.exports}var kN,Jq;function Wq(){if(Jq)return kN;Jq=1;var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],n=0;n<t.length;n++)r.push(t.charCodeAt(n)&255);return r},bytesToString:function(t){for(var r=[],n=0;n<t.length;n++)r.push(String.fromCharCode(t[n]));return r.join("")}}};return kN=e,kN}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var PN,Xq;function htt(){if(Xq)return PN;Xq=1,PN=function(r){return r!=null&&(e(r)||t(r)||!!r._isBuffer)};function e(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function t(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&e(r.slice(0,0))}return PN}var qq;function gtt(){return qq||(qq=1,function(){var e=ftt(),t=Wq().utf8,r=htt(),n=Wq().bin,a=function(i,o){i.constructor==String?o&&o.encoding==="binary"?i=n.stringToBytes(i):i=t.stringToBytes(i):r(i)?i=Array.prototype.slice.call(i,0):!Array.isArray(i)&&i.constructor!==Uint8Array&&(i=i.toString());for(var s=e.bytesToWords(i),l=i.length*8,A=1732584193,c=-271733879,u=-1732584194,d=271733878,f=0;f<s.length;f++)s[f]=(s[f]<<8|s[f]>>>24)&16711935|(s[f]<<24|s[f]>>>8)&4278255360;s[l>>>5]|=128<<l%32,s[(l+64>>>9<<4)+14]=l;for(var h=a._ff,g=a._gg,p=a._hh,E=a._ii,f=0;f<s.length;f+=16){var y=A,C=c,w=u,B=d;A=h(A,c,u,d,s[f+0],7,-680876936),d=h(d,A,c,u,s[f+1],12,-389564586),u=h(u,d,A,c,s[f+2],17,606105819),c=h(c,u,d,A,s[f+3],22,-1044525330),A=h(A,c,u,d,s[f+4],7,-176418897),d=h(d,A,c,u,s[f+5],12,1200080426),u=h(u,d,A,c,s[f+6],17,-1473231341),c=h(c,u,d,A,s[f+7],22,-45705983),A=h(A,c,u,d,s[f+8],7,1770035416),d=h(d,A,c,u,s[f+9],12,-1958414417),u=h(u,d,A,c,s[f+10],17,-42063),c=h(c,u,d,A,s[f+11],22,-1990404162),A=h(A,c,u,d,s[f+12],7,1804603682),d=h(d,A,c,u,s[f+13],12,-40341101),u=h(u,d,A,c,s[f+14],17,-1502002290),c=h(c,u,d,A,s[f+15],22,1236535329),A=g(A,c,u,d,s[f+1],5,-165796510),d=g(d,A,c,u,s[f+6],9,-1069501632),u=g(u,d,A,c,s[f+11],14,643717713),c=g(c,u,d,A,s[f+0],20,-373897302),A=g(A,c,u,d,s[f+5],5,-701558691),d=g(d,A,c,u,s[f+10],9,38016083),u=g(u,d,A,c,s[f+15],14,-660478335),c=g(c,u,d,A,s[f+4],20,-405537848),A=g(A,c,u,d,s[f+9],5,568446438),d=g(d,A,c,u,s[f+14],9,-1019803690),u=g(u,d,A,c,s[f+3],14,-187363961),c=g(c,u,d,A,s[f+8],20,1163531501),A=g(A,c,u,d,s[f+13],5,-1444681467),d=g(d,A,c,u,s[f+2],9,-51403784),u=g(u,d,A,c,s[f+7],14,1735328473),c=g(c,u,d,A,s[f+12],20,-1926607734),A=p(A,c,u,d,s[f+5],4,-378558),d=p(d,A,c,u,s[f+8],11,-2022574463),u=p(u,d,A,c,s[f+11],16,1839030562),c=p(c,u,d,A,s[f+14],23,-35309556),A=p(A,c,u,d,s[f+1],4,-1530992060),d=p(d,A,c,u,s[f+4],11,1272893353),u=p(u,d,A,c,s[f+7],16,-155497632),c=p(c,u,d,A,s[f+10],23,-1094730640),A=p(A,c,u,d,s[f+13],4,681279174),d=p(d,A,c,u,s[f+0],11,-358537222),u=p(u,d,A,c,s[f+3],16,-722521979),c=p(c,u,d,A,s[f+6],23,76029189),A=p(A,c,u,d,s[f+9],4,-640364487),d=p(d,A,c,u,s[f+12],11,-421815835),u=p(u,d,A,c,s[f+15],16,530742520),c=p(c,u,d,A,s[f+2],23,-995338651),A=E(A,c,u,d,s[f+0],6,-198630844),d=E(d,A,c,u,s[f+7],10,1126891415),u=E(u,d,A,c,s[f+14],15,-1416354905),c=E(c,u,d,A,s[f+5],21,-57434055),A=E(A,c,u,d,s[f+12],6,1700485571),d=E(d,A,c,u,s[f+3],10,-1894986606),u=E(u,d,A,c,s[f+10],15,-1051523),c=E(c,u,d,A,s[f+1],21,-2054922799),A=E(A,c,u,d,s[f+8],6,1873313359),d=E(d,A,c,u,s[f+15],10,-30611744),u=E(u,d,A,c,s[f+6],15,-1560198380),c=E(c,u,d,A,s[f+13],21,1309151649),A=E(A,c,u,d,s[f+4],6,-145523070),d=E(d,A,c,u,s[f+11],10,-1120210379),u=E(u,d,A,c,s[f+2],15,718787259),c=E(c,u,d,A,s[f+9],21,-343485551),A=A+y>>>0,c=c+C>>>0,u=u+w>>>0,d=d+B>>>0}return e.endian([A,c,u,d])};a._ff=function(i,o,s,l,A,c,u){var d=i+(o&s|~o&l)+(A>>>0)+u;return(d<<c|d>>>32-c)+o},a._gg=function(i,o,s,l,A,c,u){var d=i+(o&l|s&~l)+(A>>>0)+u;return(d<<c|d>>>32-c)+o},a._hh=function(i,o,s,l,A,c,u){var d=i+(o^s^l)+(A>>>0)+u;return(d<<c|d>>>32-c)+o},a._ii=function(i,o,s,l,A,c,u){var d=i+(s^(o|~l))+(A>>>0)+u;return(d<<c|d>>>32-c)+o},a._blocksize=16,a._digestsize=16,_N.exports=function(i,o){if(i==null)throw new Error("Illegal argument "+i);var s=e.wordsToBytes(a(i,o));return o&&o.asBytes?s:o&&o.asString?n.bytesToString(s):e.bytesToHex(s)}}()),_N.exports}var ptt=gtt();const hye=Nr(ptt),df={log:{}};setInterval(dtt(fye,df),6e3);const Fa=(e,t,r=null)=>{const n=so.getState();let a="Unknown";const i=n.router.location.pathname;n.cti.settings.data&&(a=n.cti.settings.data.session.CONNECTEDUSER);const o={count:1,id:Wze(),createdAt:Nn().format("DD-MM-YYYY HH:mm"),code:e,text:t,error:r&&r!==null?r.message:"-",message:fye[e],extra:{user:a,url:i}},s=hye(e+t).substring(0,7);df!=null&&df.log[s]?df.log[s].count=df.log[s].count+1:df.log[s]=o};var ON,Zq;function gye(){if(Zq)return ON;Zq=1;var e=vh(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return ON=t,ON}var zN,$q;function LR(){if($q)return zN;$q=1;var e=gye();function t(r,n,a){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return zN=t,zN}var jN,eZ;function vtt(){if(eZ)return jN;eZ=1;var e=LR(),t=yge(),r=Object.prototype,n=r.hasOwnProperty,a=t(function(i,o,s){n.call(i,s)?i[s].push(o):e(i,s,[o])});return jN=a,jN}var mtt=vtt();const lo=Nr(mtt),Iy=e=>(/ROW\./.test(e)&&(e=e==null?void 0:e.replace(/ROW\./g,"ROW?.")),/\.indexOf\(/.test(e)&&(e=e.replace(/\.indexOf\(/gi,"?.indexOf(")),/return/gm.test(e)||(e="return ("+e+")"),new Function(e)()),Cn=(e,t,r=null,n={},a=null)=>{if(!e)return!0;let i=so.getState();const o=i.cti.viewlinks.cell,s=i.cti.viewlinks.row,l=i.cti.dynamicSelects,A=Number(i.cti.ui.tab);if(window.TABNAME="",window.ROW={},window.COLUMN={},window.TOTALROW=n??{},window.LINKVARIABLES={},t!=null&&t.run.data){const f=Object.values(t.run.data).filter(g=>g.visible===!0),h=f==null?void 0:f[A];h&&(window.TABNAME=h.name)}r?window.ROW=r:(s||o)&&(window.ROW=o.row?o.row:s),o.row!==null&&o.column!==null&&(window.COLUMN=o.column),window.getValue=function(h,g,p){var I,S,R;p=p.replace("@","_");let E=i.cti.settings.data;const y=(E==null?void 0:E.environment)??{};let C=a??i.cti.globalVariables,w,B;switch(h){case"VIEW":w=(I=C==null?void 0:C.VIEW)==null?void 0:I[`${g+p}`],!w&&p==="_LABEL"&&(w=(S=C==null?void 0:C.VIEW)==null?void 0:S[`${g+p}_COURT`]);break;case"ENV":w=(y==null?void 0:y[g])??"";break;case"SELECT":B=Object.values(l).find(b=>b.name===g),w=(B==null?void 0:B.value)??((R=C==null?void 0:C.SELECT)==null?void 0:R[`${g+p}`]);break}let M=w;return M===void 0&&(Fa(8104,`${h}.${g}${p&&p!==""?"_"+p:""}`),M=""),M},window.String.prototype.ctiAs3Substr=function(h,g){let p="";return g?(Number(g)<0?p=this.slice(Number(h),Number(g)):p=this.substr(Number(h),Number(g)),p):this.substr(Number(h))},window.ctiCompare=function(h,g,p){const E=Number(h),y=Number(p);return g==="<"?E<y:g===">"?E>y:g==="<="?E<=y:g===">="?E>=y:!1};let c=Ett(e),u="";try{var d=Fa;u=Iy(c)}catch(f){console.log(c),console.error(f),Fa(8100,c,f)}return Object.keys(window.LINKVARIABLES).length>0?window.LINKVARIABLES:u};function Ett(e){return/substr\((\s?-?\d)(,\s?-?\d)?\)/gm.test(e)&&(e=e.replace(/substr\((\s?-?\d)(,\s?-?\d)?\)/gm,"ctiAs3Substr($1 $2)")),/(ROW.[A-Za-z0-9_]*)\s*?(<|>|<=|>=)\s*?((ROW.([A-Za-z0-9_]*))|\d+)/gm.test(e)&&(e=e.replace(/(TOTALROW|ROW.[A-Za-z0-9_]*)\s*?(<|>|<=|>=)\s*?((TOTALROW|ROW.([A-Za-z0-9_]*))|\d+)/gm,'ctiCompare($1, "$2", $3)')),e=e.replace(/_LABEL_COURT/g,"@LABEL"),e=e.replace(/_LABEL/g,"@LABEL"),/(ENV|VIEW|SELECT)\.([A-Z0-9_]+)(@LABEL)?/g.test(e)&&(e=e.replace(/(ENV|VIEW|SELECT)\.([A-Z0-9_]+)(@LABEL)?/g,"getValue('$1', '$2', '$3')")),/#B#/gi.test(e)&&(e=e.replace(/#B#/gi,"<strong>").replace(/#\/B#/gi,"</strong>")),/#(GE|LE|LT)#/gi.test(e)&&(e=e.replace(/#GE#/gi,">=").replace(/#LE#/gi,"<=").replace(/#LT#/gi,"<=")),/&(gt|lt);/gi.test(e)&&(e=e.replace(/&gt;/gi,">=").replace(/&lt;/gi,"<=")),/\\n/g.test(e)&&(e=e.replace(/\\n/g,"<br/>")),/null/gm.test(e)&&(e=e.replace(/null/gm,'""')),/ AND /gm.test(e)&&(e=e.replace(/ AND /gm,"&&")),/(:\s?(String|boolean|int|RegExp|Array|Date)(\W))/gim.test(e)&&(e=e.replace(/(:\s?(String|boolean|int|RegExp|Array|Date)(\W))*/gimu,"$3")),/=?/.test(e)&&(e=e.replace(/=?/,"")),e}const gj=["BASE_NATIONALE","BASE_NATIONALE_QUALIFIEE","DESCRIPTION_1","LVL","TABD","OID1","OID2","OID3","PERIODE_REF","ROW_HEIGHT","PADDING","FONTSIZE","FONTWEIGHT","BORDER_THICK","COLOR","BKGD_COLOR","CODE","CODE_2","TEXTE","VIEWLINK","VIEWLINK_PARAM","LASTERR","LASTERR_2","DESCRIPTION_1","FORMAT_1","FORMATT_1","FORMATTM_1","FORMATMM_1","FORMATTB_1","PICTO_1","PICTOMP_1","PICTOMM_1","PICTOB_1","FORMATTBM_1","PICTOBM_1","DESCRIPTION_2","FORMAT_2","FORMATT_2","FORMATTM_2","FORMATMM_2","FORMATTB_2","PICTO_2","PICTOMP_2","PICTOMM_2","PICTOB_2","FORMATTBM_2","PICTOBM_2","DESCRIPTION_3","FORMAT_3","FORMATT_3","FORMATTM_3","FORMATMM_3","FORMATTB_3","PICTO_3","PICTOMP_3","PICTOMM_3","PICTOB_3","FORMATTBM_3","PICTOBM_3","DESCRIPTION_4","FORMAT_4","FORMATT_4","FORMATTM_4","FORMATMM_4","FORMATTB_4","PICTO_4","PICTOMP_4","PICTOMM_4","PICTOB_4","FORMATTBM_4","PICTOBM_4","DESCRIPTION_5","FORMAT_5","FORMATT_5","FORMATTM_5","FORMATMM_5","FORMATTB_5","PICTO_5","PICTOMP_5","PICTOMM_5","PICTOB_5","FORMATTBM_5","PICTOBM_5","DESCRIPTION_6","FORMAT_6","FORMATT_6","FORMATTM_6","FORMATMM_6","FORMATTB_6","PICTO_6","PICTOMP_6","PICTOMM_6","PICTOB_6","FORMATTBM_6","PICTOBM_6","DESCRIPTION_7","FORMAT_7","FORMATT_7","FORMATTM_7","FORMATMM_7","FORMATTB_7","PICTO_7","PICTOMP_7","PICTOMM_7","PICTOB_7","FORMATTBM_7","PICTOBM_7","DESCRIPTION_8","FORMAT_8","FORMATT_8","FORMATTM_8","FORMATMM_8","FORMATTB_8","PICTO_8","PICTOMP_8","PICTOMM_8","PICTOB_8","FORMATTBM_8","PICTOBM_8","DESCRIPTION_9","FORMAT_9","FORMATT_9","FORMATTM_9","FORMATMM_9","FORMATTB_9","PICTO_9","PICTOMP_9","PICTOMM_9","PICTOB_9","FORMATTBM_9","PICTOBM_9","PICTO_NAP100MCO","PICTO_NRP100MCO","PICTO_NUP100MCO","PICTO_NAP200MCO","PICTO_NRP200MCO","PICTO_NUP200MCO","PICTO_NAP300MCO","PICTO_NRP300MCO","PICTO_NUP300MCO","FORMAT_NAP100MCO","FORMAT_NRP100MCO","FORMAT_NUP100MCO","FORMAT_NAP200MCO","FORMAT_NRP200MCO","FORMAT_NUP200MCO","FORMAT_NAP300MCO","FORMAT_NRP300MCO","FORMAT_NUP300MCO","RAPPORT_ONGLET"],ytt=20;function Ctt(e){const t=JSON.parse(JSON.stringify(e));let r=[];Object.values(t).forEach(a=>{Mtt(a.datagrid.columns),Object.values(a.datagrid.columns).forEach(i=>{r.push(i)})});const n=lo(r,({dataField:a})=>a);return Object.values(n).forEach(a=>{let i=[];a.forEach(o=>{for(const s in o)s!=="width"&&delete a[s];i.push(o.width)}),a.width=Math.max(...i)}),n}function wtt(e,t){var o;let r=300;const n=JSON.parse(JSON.stringify(t)),i=(((o=Object.values(n)[0])==null?void 0:o.data)??[]).map(s=>(gj.map(l=>(delete s[l],l)),s));if(!gj.includes(e.dataField)){const s=xtt(e,i);s&&(r=s*ytt)}return r<80?r=80:r>300&&(r=400),r}function Btt(e,t,r){let n=150,a=e==null?void 0:e.width,i=parseInt(e==null?void 0:e.minWidth);return!a&&!i||(/^=/gm.test(a)&&(a=Cn(a,t,null,null,r)),parseInt(a)&&(n=parseInt(a)),i&&i>n&&(n=i)),n}function Mtt(e){return gj.map(t=>(delete e[t],t)),e}function xtt(e,t){let r=lo(t,e.dataField);const i=Object.keys(r).map(s=>{if(!s||s.toLowerCase()==="undefined")return 0;if(isNaN(s))return s;let l=Number(s);return Math.floor(l)}).map(s=>s.toString().length);return Math.max(...i)}function Itt(e,t,r){const n=tZ(e,t,e.dataField),a=tZ(r,t,r.dataField);return btt(n,a)}function tZ(e,t,r){var s;let n=[];const a=JSON.parse(JSON.stringify(t));return n=(((s=Object.values(a)[0])==null?void 0:s.data)??[]).map(l=>l[r]).map(l=>Number(l)),n}function btt(e,t){let r=[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){let a;e[n]>t[n]?a="+":e[n]<t[n]?a="-":e[n]===t[n]&&(a="="),r.push(a)}return r}function Stt(e,t,r){let n;if(e.tendencyPictogram=t.arrayComparison[r],e.sanitizedText==="-")return[];switch(e.tendencyPictogram){case"+":n=["triangle_up"];break;case"-":n=["triangle_down"];break;case"=":n=["equal"];break;default:n=[]}return n}const rZ=e=>{const t=e[0];let r=e[3],n;if(t)switch(t){case"femme":n="&#9792",r=jr.pink;break;case"homme":n="&#9794;",r=jr.lightBlue;break;case"triangle_down":n="&#9660;",r=jr.red;break;case"triangle_up":n="&#9650;",r=jr.green;break;case"rectangle":n="&#8213;";break;case"circle":n="&#9679;";break;case"equal":n="&#61;",r=jr.lightBlue;break;default:n="&#10006;";break}return{style:{color:r,fontSize:"14px",paddingRight:"5px",float:"left"},html:n}};function Rtt(e,t,r){let n=e;return/=/.test(e)&&(n=n.replace(/=/gm,""),n=Cn(n,t,null,null,r)),n}function Ttt(e){let t=!1;return e.dataField==="COD"||e.dataField==="COD1"||e.dataField==="TXT"||e.dataField==="TXT1"||e.dataField==="N"?t="left":e.frozen&&(t=e.frozen),t}const Qtt=(e,t={},r)=>{if(!e.description)return"";if(e.description.trim().slice(0,1)==="="){let a=e.description.replace(/=/,"");return Cn(a,t,null,null,r).toString()}else return e.description};function Dtt(e){let t={};return e.textAlign!==void 0&&(t.textAlign=e.textAlign),t}function Ftt(e){let t="";return e.cellStyles&&e.cellStyles.forEach(r=>{r.name==="border_thickness"&&r.value==="1"&&(e.dataField==="NB0001"?t="firstColumnHeaderStyle":t="columnHeaderStyle")}),t}const _tt=e=>{const t=i=>(i.reduce((s,l)=>{const A=l.titleText||"",c=(A.match(/<br>/g)||[]).length,u=(A.match(/@LF@/g)||[]).length,d=c+u;return Math.max(s,d)},0)+1)*30,n=(i=>{const o=i.every(A=>!A.headerText)?0:50,l=[...document.querySelectorAll(".col-header-height-detect")].reduce((A,c)=>c.offsetHeight>A?c.offsetHeight:A,0);return l*2>o?l*2:o})(e),a=t(e);return n>a?n:a};var YN,nZ;function W5(){if(nZ)return YN;nZ=1;var e=LR(),t=lC(),r=Object.prototype,n=r.hasOwnProperty;function a(i,o,s){var l=i[o];(!(n.call(i,o)&&t(l,s))||s===void 0&&!(o in i))&&e(i,o,s)}return YN=a,YN}var LN,aZ;function Ntt(){if(aZ)return LN;aZ=1;var e=W5(),t=wY(),r=OS(),n=ls(),a=cC();function i(o,s,l,A){if(!n(o))return o;s=t(s,o);for(var c=-1,u=s.length,d=u-1,f=o;f!=null&&++c<u;){var h=a(s[c]),g=l;if(h==="__proto__"||h==="constructor"||h==="prototype")return o;if(c!=d){var p=f[h];g=A?A(p,h,f):void 0,g===void 0&&(g=n(p)?p:r(s[c+1])?[]:{})}e(f,h,g),f=f[h]}return o}return LN=i,LN}var UN,iZ;function ktt(){if(iZ)return UN;iZ=1;var e=Ntt();function t(r,n,a){return r==null?r:e(r,n,a)}return UN=t,UN}var Ptt=ktt();const Ott=Nr(Ptt),ztt=e=>{const t=so.getState();let r=!0;switch(e){case"ENV.TYPEETS != '1'":r=t.cti.settings.data.environment.TYPEETS!=="1";break;case"ENV.PMSISSRPROVIDER != ''":r=t.cti.settings.data.environment.PMSISSRPROVIDER!=="";break;case"ENV.RHPROVIDER != 'shspub'":r=t.cti.settings.data.environment.RHPROVIDER!=="shspub";break;case"ENV.RHPROVIDER == 'shspub'":r=t.cti.settings.data.environment.RHPROVIDER==="shspub";break}return r};function pye(e){try{let t=e,r=[];r=Tc(e,r);let n=lo(r,a=>a.option.value);for(let a in n)n[a]=n[a].sort((i,o)=>i.position.length-o.position.length);return Object.values(n).forEach(a=>{if(a.length>1)for(let i=0;i<a.length-1;i++){const o=a[i].position;let s={...a[i].option};s.value="jsx-"+i+"_"+s.value,Ott(t,o,s)}}),t}catch(t){Fa(8202,"",t)}}function Tc(e,t,r=0,n=[]){return e.forEach((a,i)=>{let o=[...n,i.toString()],s={option:a,position:o};a.children&&(o=[...o,"children"],t.concat(Tc(a.children,t,r++,o)),s.children=null),t.push(s)}),t.reverse()}function _C(e){let t=[];return e.forEach(r=>{t.push(r),r.children&&(t=[...t,..._C(r.children)])}),t}function xh(e,t=!0,r=!1){var o;if(!e.length)return e;let n=e.map(s=>({...s,value:s.data,treeLevel:Number(s.treeLevel),disabled:s.data==="-8"}));n=n.filter(s=>s.condition?ztt(s.condition):!0);let a=[];const i=(o=n[0])==null?void 0:o.treeLevel;return i&&n.forEach((s,l)=>{const A=s.treeLevel;let c=l!==0?n[l-1]:null;if(A===i)s.parentId=null;else if(A>c.treeLevel)s.parentId=l-1;else if(A===c.treeLevel)s.parentId=c.parentId;else if(A<c.treeLevel){const u=n.slice(0,l-1);let d;u.forEach(f=>{f.treeLevel===A&&(d=f)}),s.parentId=d==null?void 0:d.parentId}}),n.forEach(s=>{if(s.parentId===null){(r||s.label!=="")&&a.push(s);return}const l=n[s.parentId];l&&(l.children=[...l.children||[],s])}),t?pye(a):a}function by(e,t){let r;for(let n=0;n<t.length;n++){const a=t[n];a.children&&(a.children.some(i=>i.key===e)?r=a.key:by(e,a.children)&&(r=by(e,a.children)))}return r}function jtt(e,t,r=[]){for(let n=0;n<t.length;n++){const a=t[n];a.children&&(a.children.some(i=>i.key===e)?r.push(a.key):by(e,a.children)&&(r.push(a.key),r.push(by(e,a.children))))}return r}function X5(e,t=[]){if(e&&e!==null)for(let r=0;r<e.length;r++){const n=e[r],{key:a,title:i}=n;t.push({key:a,title:i}),n.children&&X5(n.children,t)}return t}function Ytt(e,t,r){return Object.values(e).forEach(function(a){var c,u,d;let i=!0;a.visibleCondition!==void 0&&(i=Cn(a.visibleCondition,t,null,null,r)),a.visible=i;let o=Object.values(a.datagrid.columns).map(f=>f.dataField);a.datagrid.forceColonnes&&a.datagrid.forceColonnes!==""&&(o=a.datagrid.forceColonnes.split("|")),((u=(c=t==null?void 0:t.desc)==null?void 0:c.attributes)==null?void 0:u.isFavorite)==="true"&&(o=Object.values((d=a==null?void 0:a.datagrid)==null?void 0:d.columns).sort((h,g)=>Number(h==null?void 0:h.forcePosition)-Number(g==null?void 0:g.forcePosition)).map(h=>h.dataField)),Object.values(a.datagrid.columns).forEach(function(h,g){if(h.order=o.indexOf(h.dataField),h.visible=h.visible!=="false",h.selectable=h.selectable==="true",h.symbols=h.cellStyles?h.cellStyles.filter(p=>p.name==="cellIndicator"):[],h.flexGrow=h.width===""||!h.width?1:0,a.excelLabel==="Essentiel"){h.width=wtt(h,a.similitabs);const p=Ctt(e);Object.keys(p).forEach(E=>{h.dataField===E&&(h.width=p[E].width)})}else h.width=Btt(h,t,r);if(h.sortable=a.datagrid.sortable,h.key=h.dataField,h.hidden=h.hide==="true"?!0:!h.visible,h.minWidth=h.minWidth?Number(h.minWidth):Number(h.width)<50?Number(h.width):50,h.NAME=h.dataField,h.DATA=h.columnData?Rtt(h.columnData,t,r):"",h.dataKey=h.dataField,h.description=Qtt(h,t,r),h.resizable=!0,h.ellipsis=!0,h.rawStyles=Utt(h,a.datagrid.rowStyles),h.style=Dtt(h),h.headerClassName=Ftt(h),h.titleText=Gtt(h,t,r),h.frozen=Ttt(h),h.calc=h.calc==="true",h.comparedIndicatorId&&h.comparedIndicatorId!=="0"){let p={};Object.values(a.datagrid.columns).forEach(y=>{y.indicatorId===h.comparedIndicatorId&&(p=y)}),h.arrayComparison=Itt(h,a.similitabs,p)}delete h.maxWidth});const s=Object.values(a.datagrid.columns),l=s.length;let A=a.datagrid.totalRowInRows;A&&(A=A.replace(/=/,"")),Object.values(a.similitabs).forEach(function(h){let g={},p=h.data;const E=p.length;let y=[],C={};C=h.data.filter(B=>{if(A)try{return window.ROW=B,Iy(A)}catch(M){return console.log(A),console.log(M),!0}return!1})[0];for(let B=0;B<E;B++){const M=p[B];let I={key:B};if(M){M.TABD&&(I.TABD=M.TABD);for(let S=0;S<l;S++){const R=s[S];if(R.visible||R.calc){let b=M[R.dataKey],Q={...M};if(R.calc){let z;if(R.type==="Number")if(R.calcs.length>1)if(R.calcs[0].condition){const j=R.calcs.find(V=>Cn(V.condition,t,Q,null,r));j&&(z=j.formula.replace(/(ROW|TOTALROW)\.([A-Z0-9_]+)?/g,"Number($1.$2)"))}else z=vye(R.calcs);else R.calcs[0].formula&&(z=R.calcs[0].formula.replace(/(ROW|TOTALROW)\.([A-Z0-9_]+)?/g,"Number($1.$2)"),z.includes("return")||(z=z.replace(/{/gi,"{return ")));if(z){for(let j in I)I[j].sanitizedText?Q[j]=I[j].text:Q[j]=I[j];b=Cn(z,t,Q,C,r).toString(),I[R.dataKey]=b,Q[R.dataKey]=b}}let D="",F={},N={};if(!b&&(!R.symbols||R.symbols&&!R.symbols.length))R.type==="Number"?N={text:"",sanitizedText:(Q==null?void 0:Q.CODE)==="CTI_SEP"?"":"-",symbol:null}:N={text:"",sanitizedText:"",symbol:null};else{let z=R.outputFormat,j=M.outputFormat;if(z&&z!==""){let L=R.outputFormat.trim();/^=/gm.test(L)&&(L=Cn(L,t,M,null,r)),D=VI({type:R.type,format:L,inputFormat:R.inputFormat,outputFormat:R.outputFormat,data:b,viewTitle:t.run.title}),R.type==="Number"&&D==="-"&&(Q==null?void 0:Q.CODE)==="CTI_SEP"&&(D=""),["Number","Date","Interval","Tps_deci"].includes(R.type)||(D=b)}else R.dataKey==="VAL"&&j&&j!==""?D=VI({type:M.type,format:M.outputFormat,inputFormat:M.inputFormat,outputFormat:M.outputFormat,data:b,viewTitle:t.run.title}):D=b;b&&(b=b.replace(/ /g,""));let V=[];R.symbols&&M.symbols?V=R.symbols.concat(M.symbols):R.symbols?V=R.symbols:M.symbols&&(V=M.symbols),V.length&&V.forEach(L=>{if(Cn(L.condition,t,Q,null,r)&&(!L.column||L.column===R.dataField)&&(F=L.value,F.trim().slice(0,1)==="="&&(F=Cn(F.trim().slice(1),t,Q,null,r)),F)){const K=F.split(",");F=rZ(K)}}),N={text:b,sanitizedText:D,symbol:F}}if(R.comparedIndicatorId&&R.comparedIndicatorId!=="0"){let z=Stt(N,R,B);N.symbol=rZ(z)}let k="";const O=Htt(R,Q,t,r);let P=Object.keys(g).filter(function(j){return qa(g[j],O)});P.length?k=P[0]:(g[`Cell${S}-${B}`]=O,k=`Cell${S}-${B}`),N.class=k,I[R.dataKey]=N}else I[R.dataKey]=M[R.dataKey]?M[R.dataKey]:""}y.push(I)}}h.styles=g,h.data=y}),Object.values(a.similitabs).forEach(function(h){h.data.map(g=>{for(let p in g)switch(p){case"VIEWLINK_PARAM":g[p]&&(g[p]=Ltt(g[p],t,r));break}return g})})}),Object.values(e).forEach(n=>{let a=n.datagrid.totalRowInRows;a&&(a=a.replace(/=/,""));let i=n.datagrid.otherRowInRows??"";i!==""&&(i=i.replace(/=/,""),a+=`|| ${i}`);let o=n.datagrid.selectRowInRows??"";o!==""&&(o=o.replace(/=/,""),a+=`|| ${o}`),Object.values(n.similitabs).forEach(s=>{s.data=Uze(s.data,l=>{window.ROW={};for(let A in l)window.ROW[A]=l!=null&&l[A].text?l[A].text:l[A];if(a)try{return!Iy(a)}catch(A){return console.log(`return ${a}`),console.log(A),!0}return!0})})}),e}function Ltt(e,t,r){let n={};return e.split("&").forEach(i=>{const[o,...s]=i.split("="),l=s.join("=");let A=l;/VIEW|SELECT/.test(l)&&!/DATACOL/.test(o)&&(A=Cn(l,t,null,null,r)),A&&(n[o]=A)}),n}function Utt(e,t){let r=[];return t&&t.length>0&&t.forEach(function(a){if(!d9.find(function(o){return qa(o,a)})){let i=a.value;i=i.replace("0x","#"),!isNaN(Number(a.value))&&!i.includes("#")&&(i+="px"),r.push({name:a.name,value:i,condition:a.condition||!0})}}),e.cellStyles&&e.cellStyles.forEach(n=>{if(!d9.find(a=>qa(a,n))){let a=n.value;a=a.replace("0x","#"),!isNaN(Number(n.value))&&!a.includes("#")&&(a+="px"),r.push({name:n.name,value:a,condition:n.condition||!0})}}),r}const Htt=(e,t,r,n)=>{let a={height:"100%",width:"100%",paddingLeft:"7.5px",paddingRight:"7.5px",lineHeight:"25px",overflow:"hidden",textOverflow:"ellipsis"};return e.rawStyles.forEach(function(o){if(o.condition===!0||Cn(o.condition,r,t,null,n)){let s=o.name.replace(/([A-Z])/g,"-$1").toLowerCase(),l=o.value;switch(/=/.test(o.value)&&(l=Cn(o.value,r,t,null,n)),isNaN(l)||(l=`${l}px`),s){case"border_thickness":if(l==="1px"){const u=["left","right"];t.TXT==="TOTAL"&&u.push("bottom"),u.forEach(d=>{d==="left"&&e.key==="NB0001"?a["border-left"]="2px solid !important":a[`border-${d}`]="1px solid !important"})}break;case"border-thickness":const A=["top","bottom"],c=["left","right"];A.forEach(u=>a[`border-${u}`]="1px solid !important"),c.forEach(u=>a[`border-${u}`]="0px !important");break;case"background-color":if(l.length<7){const u=7-l.length;let d="#";for(let f=0;f<u;f++)d=d+"0";d=d+l.replace("#","").replace("0x",""),l=`${d.substring(0,7)}`}l=`${l} !important`;break;case"color":if(l.length<7){const u=7-l.length;let d="#";for(let f=0;f<u;f++)d=d+"0";d=d+l.replace("#","").replace("0x",""),l=`${d.substring(0,7)}`}else l=`${l}`;break}a[s]=l}}),a},q5=e=>{let t=[];return e&&Object.values(e).forEach(r=>{r.selections&&r.selections.forEach(n=>{t.push(n)})}),t};function Gtt(e,t,r){let n="";return e.headerTextCalc==="true"?n=Cn(e.headerText,t,null,null,r):n=e.headerText,n=n?n.replace(/NaN/gm,"").replace(/@LF@/gm,"<br>"):"",n}function vye(e){let t="";return e.forEach(r=>{r.operator&&r.operator!=="%+"&&(t=t+`${r.operator}`),r.dataField&&(r.dataField==="*calc"?t=t+`(${vye(r.calcs)})`:r.dataField==="*constant"?t=t+`${r.value}`:r.operator==="%+"?t=`((ROW.${r.dataField} - ${t}) / ${t}) * 100`:t=t+`ROW.${r.dataField}`)}),t=t.replace(/(ROW|TOTALROW)\.([A-Z0-9_]+)?/g,"Number($1.$2)"),t.includes("return")||(t=t.replace(/{/gi,"{return ")),t}function UR(e){const r=so.getState().cti.globals,n=e.desc.selections,a=aY(n);let i={...e.run.args},o={...e.run.properties},s={};return a.forEach(l=>{var f,h,g,p;if((l.name==="PERIODE"||l.name==="TOPERIODE")&&i.ALIAS_PERIODE)return;let A=i[l.name]??l.value,c=l.treeData;c||(c=[],l.options&&l.options.length?l.options.forEach(E=>{c=c.concat(mye(E,r))}):l.globalListProvider&&(c=c.concat(Z5(l.globalListProvider,r)))),c=Tc(c,[]).reverse();let u=c.find(E=>E.option.data===A);u||(u=c[0]);const d=u?u.option.label:l.label;s[l.name]=A,A.substring(0,2)==="C*"||A.substring(0,2)==="T*"?s[`${l.name}_LABEL`]=A.slice(2):s[`${l.name}_LABEL`]=d;for(let E=2;E<=6;E++){const y=u&&u.option["data"+E]?u.option["data"+E]:"";s[`${l.name}${E}`]=y}if(l.UI==="numberInterval"&&(s[`${l.name}2`]=i[`${l.name}2`]),l.name==="ALIAS_PERIODE"){let E=i.PERIODE,y=i.TOPERIODE;(f=u==null?void 0:u.option)!=null&&f.value&&((h=u==null?void 0:u.option)==null?void 0:h.value)!=="-1"&&(E=((g=u.option)==null?void 0:g.data2)??i.PERIODE,y=((p=u.option)==null?void 0:p.data3)??i.TOPERIODE);const C=a.find(B=>B.name==="PERIODE"),w=a.find(B=>B.name==="TOPERIODE");if(C){let B=C.treeData;B=Tc(B,[]).reverse();let M=B.find(I=>I.option.data===E);M?(s.PERIODE=M.option.label?M.option.data:E,s.PERIODE_LABEL=M.option.label?M.option.label:u.option.data2):(s.PERIODE=E,s.PERIODE_LABEL=E)}if(w){let B=w.treeData;B=Tc(B,[]).reverse();let M=B.find(I=>I.option.data===y);M?(s.TOPERIODE=M.option.label?M.option.data:y,s.TOPERIODE_LABEL=M.option.label?M.option.label:y):(s.TOPERIODE=y,s.TOPERIODE_LABEL=y)}}}),{SELECT:s,VIEW:o}}const Ktt=(e,t)=>{const r=so.getState();let n=[];return Object.values(e).forEach(i=>{i.group.forEach(o=>{o.field&&(n=[...n,...o.field]),o.group&&o.group.forEach(s=>{n=[...n,...s.field]})})}),n.filter(i=>i.UI==="combo").forEach(i=>{i.treeData=Vtt(i,r.cti.globals,t)}),e};function Vtt(e,t,r={}){let n=[];e.options&&e.options.length?e.options.forEach(i=>{n=n.concat(mye(i,t))}):e.globalListProvider&&(n=n.concat(Z5(e.globalListProvider,t))),r.CONTEXTE&&(n=n.filter(i=>!i.contexte||i.contexte===r.CONTEXTE));const a=pye(n);return Eye(a)}function mye(e,t){let r=[];if(!e.globalListProvider)r.push(e);else{let n=Z5(e.globalListProvider,t);r=r.concat(n)}return r}function Z5(e,t){const r=t.data.providers,n=r!=null&&r[e]?r[e]:null;return n&&n!==null?n.children:(n||Fa(8102,e),[])}function Eye(e,t=[]){return e.map(r=>(r.parentKeys=t,r.children&&(t=[...t,r.value],r.children=Eye(r.children,t),t=[]),delete r.key,r))}const Jtt=e=>e.replace(/\s+/g," "),Wtt=e=>{for(let t in e)e[t]==="true"&&(e[t]=!0),e[t]==="false"&&(e[t]=!1);return e};function Xtt(e){let t=xg(e.getElementsByTagName("SESSION")[0]),r=xg(e.getElementsByTagName("ENVIRONMENT")[0]),n=xg(e.getElementsByTagName("MAP")[0]),a=xg(e.getElementsByTagName("CHART")[0]),i=xg(e.getElementsByTagName("VERSION")[0]);const o=xg(e.getElementsByTagName("USERDISPLAYSETTINGS")[0]),s=(o==null?void 0:o.homePageDefaultModule)??"accueil",l=(o==null?void 0:o.showGraphs)??"always",A=(o==null?void 0:o.spreadSheetEditor)??"EXCEL",c=(o==null?void 0:o.spreadSheetSeparator)??";",u=(o==null?void 0:o.pmsiDefaultModule)??null,d=(o==null?void 0:o.primaryColor)??"#FF8801",f=(o==null?void 0:o.expandedRows)??"ouvert",h={primaryColor:d},g={homePageDefaultModule:s,showGraphs:l,spreadSheetEditor:A,spreadSheetSeparator:c,pmsiDefaultModule:u,expandedRows:f},p={session:t,environment:r,map:n,chart:a,version:i,userDisplaySettings:o};return p.session===void 0?console.log("SETTINGS.SESSION is undefined"):Wtt(p.session),{uiSettings:h,settings:p,userSettings:g}}function xg(e){if(e===void 0)return;let t={};for(var r=0;r<e.getElementsByTagName("PROPERTY").length;r++){let n=qtt(e.getElementsByTagName("PROPERTY")[r]);t[n.name]=n.value}return t}function qtt(e){let t={};for(let r=0;r<e.attributes.length;r++){let n=e.attributes[r];[void 0,""].includes(n)||(t[n.name]=n.value)}return t}const yye=()=>{let e=ma();return async function(t,r){t(qG(!0));try{const n=await ai({url:e+"modules/base/php/httpService_loader_getSettings.php",method:"get",responseType:"arraybuffer"}),a=ud(n.data),{uiSettings:i,settings:o,userSettings:s}=Xtt(a);t(Nde(i.primaryColor)),t(DNe(o)),t(zde(s)),t(QNe(s.showGraphs))}catch(n){console.log(n)}t(qG(!1))}},Cye=()=>{const e=ma(),t=window.location.hostname;document.cookie=`CTISESSID= ; expires=Thu, 01 Jan 1970 00:00:00 GMT: domain=${t}; path=${e.slice(0,-1)};`,document.cookie=`CTISESSID= ; expires=Thu, 01 Jan 1970 00:00:00 GMT: domain=${t}; path=${e};`,document.cookie=`PHPSESSID= ; expires=Thu, 01 Jan 1970 00:00:00 GMT: domain=${t}; path=${e.slice(0,-1)};`,document.cookie=`PHPSESSID= ; expires=Thu, 01 Jan 1970 00:00:00 GMT: domain=${t}; path=${e};`,window.location.reload()};function oZ(e,t,r,n,a,i){return async function(o,s){n(!0);let l=new FormData;l.append("profile",e),l.append("password",t),l.append("forceClientName",r);try{const A=await ai({method:"post",url:ma()+"modules/base/php/checkProfile.php",data:l,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});let c=ud(A.data),u=Ztt(c);if(u.code==="OK")a(!0);else throw n(!1),i(u),new Error(u.code)}catch(A){console.log(A)}}}function Ztt(e){return lr(e.getElementsByTagName("HTTP_SERVICE")[0].getElementsByTagName("RETURN")[0])}const pr=({children:e,title:t,...r})=>v.jsx(Zn,{...r,mouseEnterDelay:1,title:t?v.jsx("div",{style:{width:"100%"},dangerouslySetInnerHTML:{__html:t}}):null,children:e});var HN,sZ;function $tt(){if(sZ)return HN;sZ=1;function e(s){return s&&typeof s=="object"&&"default"in s?s.default:s}var t=cr(),r=e(t);function n(s,l,A){return l in s?Object.defineProperty(s,l,{value:A,enumerable:!0,configurable:!0,writable:!0}):s[l]=A,s}function a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var i=!!(typeof window<"u"&&window.document&&window.document.createElement);function o(s,l,A){if(typeof s!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof l!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof A<"u"&&typeof A!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function c(u){return u.displayName||u.name||"Component"}return function(d){if(typeof d!="function")throw new Error("Expected WrappedComponent to be a React component.");var f=[],h;function g(){h=s(f.map(function(E){return E.props})),p.canUseDOM?l(h):A&&(h=A(h))}var p=function(E){a(y,E);function y(){return E.apply(this,arguments)||this}y.peek=function(){return h},y.rewind=function(){if(y.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var B=h;return h=void 0,f=[],B};var C=y.prototype;return C.UNSAFE_componentWillMount=function(){f.push(this),g()},C.componentDidUpdate=function(){g()},C.componentWillUnmount=function(){var B=f.indexOf(this);f.splice(B,1),g()},C.render=function(){return r.createElement(d,this.props)},y}(t.PureComponent);return n(p,"displayName","SideEffect("+c(d)+")"),n(p,"canUseDOM",i),p}}return HN=o,HN}var ert=$tt();const trt=Nr(ert);var GN,lZ;function rrt(){if(lZ)return GN;lZ=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(i,o){if(i===o)return!0;if(i&&o&&typeof i=="object"&&typeof o=="object"){if(i.constructor!==o.constructor)return!1;var s,l,A;if(Array.isArray(i)){if(s=i.length,s!=o.length)return!1;for(l=s;l--!==0;)if(!a(i[l],o[l]))return!1;return!0}var c;if(t&&i instanceof Map&&o instanceof Map){if(i.size!==o.size)return!1;for(c=i.entries();!(l=c.next()).done;)if(!o.has(l.value[0]))return!1;for(c=i.entries();!(l=c.next()).done;)if(!a(l.value[1],o.get(l.value[0])))return!1;return!0}if(r&&i instanceof Set&&o instanceof Set){if(i.size!==o.size)return!1;for(c=i.entries();!(l=c.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(o)){if(s=i.length,s!=o.length)return!1;for(l=s;l--!==0;)if(i[l]!==o[l])return!1;return!0}if(i.constructor===RegExp)return i.source===o.source&&i.flags===o.flags;if(i.valueOf!==Object.prototype.valueOf&&typeof i.valueOf=="function"&&typeof o.valueOf=="function")return i.valueOf()===o.valueOf();if(i.toString!==Object.prototype.toString&&typeof i.toString=="function"&&typeof o.toString=="function")return i.toString()===o.toString();if(A=Object.keys(i),s=A.length,s!==Object.keys(o).length)return!1;for(l=s;l--!==0;)if(!Object.prototype.hasOwnProperty.call(o,A[l]))return!1;if(e&&i instanceof Element)return!1;for(l=s;l--!==0;)if(!((A[l]==="_owner"||A[l]==="__v"||A[l]==="__o")&&i.$$typeof)&&!a(i[A[l]],o[A[l]]))return!1;return!0}return i!==i&&o!==o}return GN=function(o,s){try{return a(o,s)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},GN}var nrt=rrt();const art=Nr(nrt);var irt=IS();const ort=Nr(irt);var Yf={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},on={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(on).map(function(e){return on[e]});var fa={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},kb={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Sy={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},srt=Object.keys(kb).reduce(function(e,t){return e[kb[t]]=t,e},{}),lrt=[on.NOSCRIPT,on.SCRIPT,on.STYLE],xl="data-react-helmet",Art=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},crt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},urt=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),Co=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},drt=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},AZ=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},frt=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},pj=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},hrt=function(t){var r=zp(t,on.TITLE),n=zp(t,Sy.TITLE_TEMPLATE);if(n&&r)return n.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var a=zp(t,Sy.DEFAULT_TITLE);return r||a||void 0},grt=function(t){return zp(t,Sy.ON_CHANGE_CLIENT_STATE)||function(){}},KN=function(t,r){return r.filter(function(n){return typeof n[t]<"u"}).map(function(n){return n[t]}).reduce(function(n,a){return Co({},n,a)},{})},prt=function(t,r){return r.filter(function(n){return typeof n[on.BASE]<"u"}).map(function(n){return n[on.BASE]}).reverse().reduce(function(n,a){if(!n.length)for(var i=Object.keys(a),o=0;o<i.length;o++){var s=i[o],l=s.toLowerCase();if(t.indexOf(l)!==-1&&a[l])return n.concat(a)}return n},[])},eE=function(t,r,n){var a={};return n.filter(function(i){return Array.isArray(i[t])?!0:(typeof i[t]<"u"&&yrt("Helmet: "+t+' should be of type "Array". Instead found type "'+Art(i[t])+'"'),!1)}).map(function(i){return i[t]}).reverse().reduce(function(i,o){var s={};o.filter(function(d){for(var f=void 0,h=Object.keys(d),g=0;g<h.length;g++){var p=h[g],E=p.toLowerCase();r.indexOf(E)!==-1&&!(f===fa.REL&&d[f].toLowerCase()==="canonical")&&!(E===fa.REL&&d[E].toLowerCase()==="stylesheet")&&(f=E),r.indexOf(p)!==-1&&(p===fa.INNER_HTML||p===fa.CSS_TEXT||p===fa.ITEM_PROP)&&(f=p)}if(!f||!d[f])return!1;var y=d[f].toLowerCase();return a[f]||(a[f]={}),s[f]||(s[f]={}),a[f][y]?!1:(s[f][y]=!0,!0)}).reverse().forEach(function(d){return i.push(d)});for(var l=Object.keys(s),A=0;A<l.length;A++){var c=l[A],u=ort({},a[c],s[c]);a[c]=u}return i},[]).reverse()},zp=function(t,r){for(var n=t.length-1;n>=0;n--){var a=t[n];if(a.hasOwnProperty(r))return a[r]}return null},vrt=function(t){return{baseTag:prt([fa.HREF,fa.TARGET],t),bodyAttributes:KN(Yf.BODY,t),defer:zp(t,Sy.DEFER),encode:zp(t,Sy.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:KN(Yf.HTML,t),linkTags:eE(on.LINK,[fa.REL,fa.HREF],t),metaTags:eE(on.META,[fa.NAME,fa.CHARSET,fa.HTTPEQUIV,fa.PROPERTY,fa.ITEM_PROP],t),noscriptTags:eE(on.NOSCRIPT,[fa.INNER_HTML],t),onChangeClientState:grt(t),scriptTags:eE(on.SCRIPT,[fa.SRC,fa.INNER_HTML],t),styleTags:eE(on.STYLE,[fa.CSS_TEXT],t),title:hrt(t),titleAttributes:KN(Yf.TITLE,t)}},vj=function(){var e=Date.now();return function(t){var r=Date.now();r-e>16?(e=r,t(r)):setTimeout(function(){vj(t)},0)}}(),cZ=function(t){return clearTimeout(t)},mrt=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||vj:global.requestAnimationFrame||vj,Ert=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||cZ:global.cancelAnimationFrame||cZ,yrt=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},tE=null,Crt=function(t){tE&&Ert(tE),t.defer?tE=mrt(function(){uZ(t,function(){tE=null})}):(uZ(t),tE=null)},uZ=function(t,r){var n=t.baseTag,a=t.bodyAttributes,i=t.htmlAttributes,o=t.linkTags,s=t.metaTags,l=t.noscriptTags,A=t.onChangeClientState,c=t.scriptTags,u=t.styleTags,d=t.title,f=t.titleAttributes;mj(on.BODY,a),mj(on.HTML,i),wrt(d,f);var h={baseTag:Ig(on.BASE,n),linkTags:Ig(on.LINK,o),metaTags:Ig(on.META,s),noscriptTags:Ig(on.NOSCRIPT,l),scriptTags:Ig(on.SCRIPT,c),styleTags:Ig(on.STYLE,u)},g={},p={};Object.keys(h).forEach(function(E){var y=h[E],C=y.newTags,w=y.oldTags;C.length&&(g[E]=C),w.length&&(p[E]=h[E].oldTags)}),r&&r(),A(t,g,p)},wye=function(t){return Array.isArray(t)?t.join(""):t},wrt=function(t,r){typeof t<"u"&&document.title!==t&&(document.title=wye(t)),mj(on.TITLE,r)},mj=function(t,r){var n=document.getElementsByTagName(t)[0];if(n){for(var a=n.getAttribute(xl),i=a?a.split(","):[],o=[].concat(i),s=Object.keys(r),l=0;l<s.length;l++){var A=s[l],c=r[A]||"";n.getAttribute(A)!==c&&n.setAttribute(A,c),i.indexOf(A)===-1&&i.push(A);var u=o.indexOf(A);u!==-1&&o.splice(u,1)}for(var d=o.length-1;d>=0;d--)n.removeAttribute(o[d]);i.length===o.length?n.removeAttribute(xl):n.getAttribute(xl)!==s.join(",")&&n.setAttribute(xl,s.join(","))}},Ig=function(t,r){var n=document.head||document.querySelector(on.HEAD),a=n.querySelectorAll(t+"["+xl+"]"),i=Array.prototype.slice.call(a),o=[],s=void 0;return r&&r.length&&r.forEach(function(l){var A=document.createElement(t);for(var c in l)if(l.hasOwnProperty(c))if(c===fa.INNER_HTML)A.innerHTML=l.innerHTML;else if(c===fa.CSS_TEXT)A.styleSheet?A.styleSheet.cssText=l.cssText:A.appendChild(document.createTextNode(l.cssText));else{var u=typeof l[c]>"u"?"":l[c];A.setAttribute(c,u)}A.setAttribute(xl,"true"),i.some(function(d,f){return s=f,A.isEqualNode(d)})?i.splice(s,1):o.push(A)}),i.forEach(function(l){return l.parentNode.removeChild(l)}),o.forEach(function(l){return n.appendChild(l)}),{oldTags:i,newTags:o}},Bye=function(t){return Object.keys(t).reduce(function(r,n){var a=typeof t[n]<"u"?n+'="'+t[n]+'"':""+n;return r?r+" "+a:a},"")},Brt=function(t,r,n,a){var i=Bye(n),o=wye(r);return i?"<"+t+" "+xl+'="true" '+i+">"+pj(o,a)+"</"+t+">":"<"+t+" "+xl+'="true">'+pj(o,a)+"</"+t+">"},Mrt=function(t,r,n){return r.reduce(function(a,i){var o=Object.keys(i).filter(function(A){return!(A===fa.INNER_HTML||A===fa.CSS_TEXT)}).reduce(function(A,c){var u=typeof i[c]>"u"?c:c+'="'+pj(i[c],n)+'"';return A?A+" "+u:u},""),s=i.innerHTML||i.cssText||"",l=lrt.indexOf(t)===-1;return a+"<"+t+" "+xl+'="true" '+o+(l?"/>":">"+s+"</"+t+">")},"")},Mye=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,a){return n[kb[a]||a]=t[a],n},r)},xrt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,a){return n[srt[a]||a]=t[a],n},r)},Irt=function(t,r,n){var a,i=(a={key:r},a[xl]=!0,a),o=Mye(n,i);return[te.createElement(on.TITLE,o,r)]},brt=function(t,r){return r.map(function(n,a){var i,o=(i={key:a},i[xl]=!0,i);return Object.keys(n).forEach(function(s){var l=kb[s]||s;if(l===fa.INNER_HTML||l===fa.CSS_TEXT){var A=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:A}}else o[l]=n[s]}),te.createElement(t,o)})},tc=function(t,r,n){switch(t){case on.TITLE:return{toComponent:function(){return Irt(t,r.title,r.titleAttributes)},toString:function(){return Brt(t,r.title,r.titleAttributes,n)}};case Yf.BODY:case Yf.HTML:return{toComponent:function(){return Mye(r)},toString:function(){return Bye(r)}};default:return{toComponent:function(){return brt(t,r)},toString:function(){return Mrt(t,r,n)}}}},xye=function(t){var r=t.baseTag,n=t.bodyAttributes,a=t.encode,i=t.htmlAttributes,o=t.linkTags,s=t.metaTags,l=t.noscriptTags,A=t.scriptTags,c=t.styleTags,u=t.title,d=u===void 0?"":u,f=t.titleAttributes;return{base:tc(on.BASE,r,a),bodyAttributes:tc(Yf.BODY,n,a),htmlAttributes:tc(Yf.HTML,i,a),link:tc(on.LINK,o,a),meta:tc(on.META,s,a),noscript:tc(on.NOSCRIPT,l,a),script:tc(on.SCRIPT,A,a),style:tc(on.STYLE,c,a),title:tc(on.TITLE,{title:d,titleAttributes:f},a)}},Srt=function(t){var r,n;return n=r=function(a){drt(i,a);function i(){return crt(this,i),frt(this,a.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(s){return!art(this.props,s)},i.prototype.mapNestedChildrenToProps=function(s,l){if(!l)return null;switch(s.type){case on.SCRIPT:case on.NOSCRIPT:return{innerHTML:l};case on.STYLE:return{cssText:l}}throw new Error("<"+s.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(s){var l,A=s.child,c=s.arrayTypeChildren,u=s.newChildProps,d=s.nestedChildren;return Co({},c,(l={},l[A.type]=[].concat(c[A.type]||[],[Co({},u,this.mapNestedChildrenToProps(A,d))]),l))},i.prototype.mapObjectTypeChildren=function(s){var l,A,c=s.child,u=s.newProps,d=s.newChildProps,f=s.nestedChildren;switch(c.type){case on.TITLE:return Co({},u,(l={},l[c.type]=f,l.titleAttributes=Co({},d),l));case on.BODY:return Co({},u,{bodyAttributes:Co({},d)});case on.HTML:return Co({},u,{htmlAttributes:Co({},d)})}return Co({},u,(A={},A[c.type]=Co({},d),A))},i.prototype.mapArrayTypeChildrenToProps=function(s,l){var A=Co({},l);return Object.keys(s).forEach(function(c){var u;A=Co({},A,(u={},u[c]=s[c],u))}),A},i.prototype.warnOnInvalidChildren=function(s,l){return!0},i.prototype.mapChildrenToProps=function(s,l){var A=this,c={};return te.Children.forEach(s,function(u){if(!(!u||!u.props)){var d=u.props,f=d.children,h=AZ(d,["children"]),g=xrt(h);switch(A.warnOnInvalidChildren(u,f),u.type){case on.LINK:case on.META:case on.NOSCRIPT:case on.SCRIPT:case on.STYLE:c=A.flattenArrayTypeChildren({child:u,arrayTypeChildren:c,newChildProps:g,nestedChildren:f});break;default:l=A.mapObjectTypeChildren({child:u,newProps:l,newChildProps:g,nestedChildren:f});break}}}),l=this.mapArrayTypeChildrenToProps(c,l),l},i.prototype.render=function(){var s=this.props,l=s.children,A=AZ(s,["children"]),c=Co({},A);return l&&(c=this.mapChildrenToProps(l,c)),te.createElement(t,c)},urt(i,null,[{key:"canUseDOM",set:function(s){t.canUseDOM=s}}]),i}(te.Component),r.propTypes={base:U.object,bodyAttributes:U.object,children:U.oneOfType([U.arrayOf(U.node),U.node]),defaultTitle:U.string,defer:U.bool,encodeSpecialCharacters:U.bool,htmlAttributes:U.object,link:U.arrayOf(U.object),meta:U.arrayOf(U.object),noscript:U.arrayOf(U.object),onChangeClientState:U.func,script:U.arrayOf(U.object),style:U.arrayOf(U.object),title:U.string,titleAttributes:U.object,titleTemplate:U.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=t.peek,r.rewind=function(){var a=t.rewind();return a||(a=xye({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),a},n},Rrt=function(){return null},Trt=trt(vrt,Crt,xye)(Rrt),ka=Srt(Trt);ka.renderStatic=ka.rewind;te.Component;te.Component;var Ej=function(t,r){return typeof t=="function"?t(r):t},yj=function(t,r){return typeof t=="string"?oo(t,null,null,r):t},$5=function(t){return t},uv=te.forwardRef;typeof uv>"u"&&(uv=$5);function Qrt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Drt=uv(function(e,t){var r=e.innerRef,n=e.navigate,a=e.onClick,i=na(e,["innerRef","navigate","onClick"]),o=i.target,s=oe({},i,{onClick:function(A){try{a&&a(A)}catch(c){throw A.preventDefault(),c}!A.defaultPrevented&&A.button===0&&(!o||o==="_self")&&!Qrt(A)&&(A.preventDefault(),n())}});return $5!==uv?s.ref=t||r:s.ref=r,te.createElement("a",s)}),Ju=uv(function(e,t){var r=e.component,n=r===void 0?Drt:r,a=e.replace,i=e.to,o=e.innerRef,s=na(e,["component","replace","to","innerRef"]);return te.createElement(qu.Consumer,null,function(l){l||dd();var A=l.history,c=yj(Ej(i,l.location),l.location),u=c?A.createHref(c):"",d=oe({},s,{href:u,navigate:function(){var h=Ej(i,l.location),g=Mo(l.location)===Mo(yj(h)),p=a||g?A.replace:A.push;p(h)}});return $5!==uv?d.ref=t||o:d.innerRef=o,te.createElement(n,d)})}),Iye=function(t){return t},Pb=te.forwardRef;typeof Pb>"u"&&(Pb=Iye);function Frt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(n){return n}).join(" ")}Pb(function(e,t){var r=e["aria-current"],n=r===void 0?"page":r,a=e.activeClassName,i=a===void 0?"active":a,o=e.activeStyle,s=e.className,l=e.exact,A=e.isActive,c=e.location,u=e.sensitive,d=e.strict,f=e.style,h=e.to,g=e.innerRef,p=na(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return te.createElement(qu.Consumer,null,function(E){E||dd();var y=c||E.location,C=yj(Ej(h,y),y),w=C.pathname,B=w&&w.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),M=B?PS(y.pathname,{path:B,exact:l,sensitive:u,strict:d}):null,I=!!(A?A(M,y):M),S=typeof s=="function"?s(I):s,R=typeof f=="function"?f(I):f;I&&(S=Frt(S,i),R=oe({},R,o));var b=oe({"aria-current":I&&n||null,className:S,style:R,to:C},p);return Iye!==Pb?b.ref=t||g:b.innerRef=g,te.createElement(Ju,b)})});function _rt(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Nrt(e,t){e.classList?e.classList.add(t):_rt(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function dZ(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function krt(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=dZ(e.className,t):e.setAttribute("class",dZ(e.className&&e.className.baseVal||"",t))}const fZ={disabled:!1},Ob=te.createContext(null);var bye=function(t){return t.scrollTop},C0="unmounted",ff="exited",hf="entering",$g="entered",Cj="exiting",jc=function(e){_a(t,e);function t(n,a){var i;i=e.call(this,n,a)||this;var o=a,s=o&&!o.isMounting?n.enter:n.appear,l;return i.appearStatus=null,n.in?s?(l=ff,i.appearStatus=hf):l=$g:n.unmountOnExit||n.mountOnEnter?l=C0:l=ff,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===C0?{status:ff}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==hf&&o!==$g&&(i=hf):(o===hf||o===$g)&&(i=Cj)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},r.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===hf){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:bo.findDOMNode(this);o&&bye(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ff&&this.setState({status:C0})},r.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,l=this.props.nodeRef?[s]:[bo.findDOMNode(this),s],A=l[0],c=l[1],u=this.getTimeouts(),d=s?u.appear:u.enter;if(!a&&!o||fZ.disabled){this.safeSetState({status:$g},function(){i.props.onEntered(A)});return}this.props.onEnter(A,c),this.safeSetState({status:hf},function(){i.props.onEntering(A,c),i.onTransitionEnd(d,function(){i.safeSetState({status:$g},function(){i.props.onEntered(A,c)})})})},r.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:bo.findDOMNode(this);if(!i||fZ.disabled){this.safeSetState({status:ff},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Cj},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:ff},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},r.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:bo.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],A=l[0],c=l[1];this.props.addEndListener(A,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===C0)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=na(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return te.createElement(Ob.Provider,{value:null},typeof o=="function"?o(a,s):te.cloneElement(te.Children.only(o),s))},t}(te.Component);jc.contextType=Ob;jc.propTypes={};function bg(){}jc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bg,onEntering:bg,onEntered:bg,onExit:bg,onExiting:bg,onExited:bg};jc.UNMOUNTED=C0;jc.EXITED=ff;jc.ENTERING=hf;jc.ENTERED=$g;jc.EXITING=Cj;var Prt=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return Nrt(t,n)})},VN=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return krt(t,n)})},Ih=function(e){_a(t,e);function t(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=e.call.apply(e,[this].concat(i))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,l){var A=n.resolveArguments(s,l),c=A[0],u=A[1];n.removeClasses(c,"exit"),n.addClass(c,u?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,l)},n.onEntering=function(s,l){var A=n.resolveArguments(s,l),c=A[0],u=A[1],d=u?"appear":"enter";n.addClass(c,d,"active"),n.props.onEntering&&n.props.onEntering(s,l)},n.onEntered=function(s,l){var A=n.resolveArguments(s,l),c=A[0],u=A[1],d=u?"appear":"enter";n.removeClasses(c,d),n.addClass(c,d,"done"),n.props.onEntered&&n.props.onEntered(s,l)},n.onExit=function(s){var l=n.resolveArguments(s),A=l[0];n.removeClasses(A,"appear"),n.removeClasses(A,"enter"),n.addClass(A,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var l=n.resolveArguments(s),A=l[0];n.addClass(A,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var l=n.resolveArguments(s),A=l[0];n.removeClasses(A,"exit"),n.addClass(A,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,l){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,l]},n.getClassNames=function(s){var l=n.props.classNames,A=typeof l=="string",c=A&&l?l+"-":"",u=A?""+c+s:l[s],d=A?u+"-active":l[s+"Active"],f=A?u+"-done":l[s+"Done"];return{baseClassName:u,activeClassName:d,doneClassName:f}},n}var r=t.prototype;return r.addClass=function(a,i,o){var s=this.getClassNames(i)[o+"ClassName"],l=this.getClassNames("enter"),A=l.doneClassName;i==="appear"&&o==="done"&&A&&(s+=" "+A),o==="active"&&a&&bye(a),s&&(this.appliedClasses[i][o]=s,Prt(a,s))},r.removeClasses=function(a,i){var o=this.appliedClasses[i],s=o.base,l=o.active,A=o.done;this.appliedClasses[i]={},s&&VN(a,s),l&&VN(a,l),A&&VN(a,A)},r.render=function(){var a=this.props;a.classNames;var i=na(a,["classNames"]);return te.createElement(jc,oe({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(te.Component);Ih.defaultProps={classNames:""};Ih.propTypes={};function eL(e,t){var r=function(i){return t&&m.isValidElement(i)?t(i):i},n=Object.create(null);return e&&m.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function Ort(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),a=[];for(var i in e)i in t?a.length&&(n[i]=a,a=[]):a.push(i);var o,s={};for(var l in t){if(n[l])for(o=0;o<n[l].length;o++){var A=n[l][o];s[n[l][o]]=r(A)}s[l]=r(l)}for(o=0;o<a.length;o++)s[a[o]]=r(a[o]);return s}function Sf(e,t,r){return r[t]!=null?r[t]:e.props[t]}function zrt(e,t){return eL(e.children,function(r){return m.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Sf(r,"appear",e),enter:Sf(r,"enter",e),exit:Sf(r,"exit",e)})})}function jrt(e,t,r){var n=eL(e.children),a=Ort(t,n);return Object.keys(a).forEach(function(i){var o=a[i];if(m.isValidElement(o)){var s=i in t,l=i in n,A=t[i],c=m.isValidElement(A)&&!A.props.in;l&&(!s||c)?a[i]=m.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:Sf(o,"exit",e),enter:Sf(o,"enter",e)}):!l&&s&&!c?a[i]=m.cloneElement(o,{in:!1}):l&&s&&m.isValidElement(A)&&(a[i]=m.cloneElement(o,{onExited:r.bind(null,o),in:A.props.in,exit:Sf(o,"exit",e),enter:Sf(o,"enter",e)}))}}),a}var Yrt=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Lrt={component:"div",childFactory:function(t){return t}},NC=function(e){_a(t,e);function t(n,a){var i;i=e.call(this,n,a)||this;var o=i.handleExited.bind(at(i));return i.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,i){var o=i.children,s=i.handleExited,l=i.firstRender;return{children:l?zrt(a,s):jrt(a,o,s),firstRender:!1}},r.handleExited=function(a,i){var o=eL(this.props.children);a.key in o||(a.props.onExited&&a.props.onExited(i),this.mounted&&this.setState(function(s){var l=oe({},s.children);return delete l[a.key],{children:l}}))},r.render=function(){var a=this.props,i=a.component,o=a.childFactory,s=na(a,["component","childFactory"]),l=this.state.contextValue,A=Yrt(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,i===null?te.createElement(Ob.Provider,{value:l},A):te.createElement(Ob.Provider,{value:l},te.createElement(i,s,A))},t}(te.Component);NC.propTypes={};NC.defaultProps=Lrt;const Sye=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2},viewBox:"0 0 800 200",...e,children:[v.jsxs("g",{opacity:.92,children:[v.jsx("path",{d:"M37.291 1204.08a67.2 67.2 0 0 1-15.102 5.68c-5.239 1.27-10.705 1.91-16.399 1.91q-25.488 0-40.385-14.25t-14.896-38.64c0-16.31 4.965-29.21 14.896-38.71q14.897-14.25 40.385-14.25 8.54 0 16.399 1.92a66.7 66.7 0 0 1 15.102 5.67v21.11c-4.875-3.32-9.681-5.76-14.419-7.31-4.737-1.55-9.726-2.32-14.964-2.32-9.385 0-16.764 3-22.14 9.02q-8.063 9.015-8.063 24.87 0 15.78 8.063 24.81c5.376 6.01 12.755 9.02 22.14 9.02 5.238 0 10.227-.78 14.964-2.33 4.738-1.55 9.544-3.98 14.419-7.31zM50.098 1107.67h94.024v19.88h-33.824v82.14H83.99v-82.14H50.098z",style:{fill:"#012b43",fillRule:"nonzero"},transform:"translate(83.08 -1283.4)scale(1.19446)"}),v.jsx("path",{d:"M157.652 1107.67h26.308v102.019h-26.308z",style:{fill:"#012b43"},transform:"translate(83.08 -1283.4)scale(1.19446)"})]}),v.jsx("path",{d:"M282.263 1010.17a1.318 1.318 0 0 1 .822-.54c.177-.03.392-.05.646-.05.253 0 .556.03.909.08q.617.075.992.21c.25.08.421.18.511.29s.12.22.089.35q-.048.18-.25.36l-4.666 4.6c-.137.14-.259.24-.366.31-.107.08-.227.13-.358.17a2.3 2.3 0 0 1-.5.05c-.201 0-.448-.03-.742-.07-.323-.04-.577-.1-.763-.17-.185-.07-.313-.14-.384-.23a.28.28 0 0 1-.05-.29c.037-.12.118-.25.242-.4z",style:{fill:"#ff8801",fillRule:"nonzero"},transform:"translate(-299.395 -3669.24)scale(3.66951)"}),v.jsx("path",{d:"M192.719 1012.36v4.23c-1.647-.78-3.2-1.37-4.66-1.76-1.46-.38-2.871-.58-4.231-.58q-3.543 0-5.475 1.38c-1.275.91-1.912 2.22-1.912 3.9 0 1.42.423 2.5 1.267 3.23q1.289 1.065 4.853 1.74l2.62.53q4.853.93 7.151 3.27c1.546 1.54 2.319 3.62 2.319 6.22 0 3.11-1.045 5.47-3.135 7.07q-3.114 2.4-9.148 2.4-2.276 0-4.853-.51a36 36 0 0 1-5.304-1.53v-4.46c1.761.98 3.486 1.73 5.175 2.23q2.534.75 4.982.75c2.477 0 4.388-.48 5.734-1.46 1.345-.97 2.018-2.36 2.018-4.16 0-1.58-.486-2.81-1.46-3.7-.959-.88-2.541-1.55-4.746-2l-2.641-.51q-4.853-.96-7.022-3.03-2.169-2.055-2.169-5.73c0-2.84.995-5.07 2.985-6.7 2.004-1.63 4.76-2.45 8.268-2.45 1.503 0 3.035.14 4.595.41s3.157.68 4.789 1.22M212.174 1031.28c-3.192 0-5.404.37-6.635 1.1s-1.847 1.97-1.847 3.73c0 1.41.458 2.52 1.374 3.35q1.396 1.23 3.78 1.23c2.19 0 3.944-.78 5.261-2.32q1.997-2.34 1.997-6.21v-.88zm7.881-1.63v13.72h-3.951v-3.65q-1.353 2.19-3.371 3.24c-1.346.69-2.992 1.03-4.939 1.03-2.463 0-4.424-.68-5.884-2.06-1.446-1.39-2.169-3.24-2.169-5.56q0-4.065 2.705-6.12c1.819-1.37 4.524-2.06 8.118-2.06h5.54v-.39c0-1.82-.601-3.22-1.804-4.21q-1.782-1.5-5.025-1.5c-1.374 0-2.713.16-4.015.49a16 16 0 0 0-3.758 1.49v-3.65c1.446-.56 2.849-.98 4.209-1.25a19 19 0 0 1 3.972-.43c3.479 0 6.077.9 7.795 2.71 1.718 1.8 2.577 4.53 2.577 8.2M248.208 1028.86v14.51h-3.951v-14.39c0-2.27-.444-3.98-1.332-5.11-.887-1.13-2.219-1.69-3.994-1.69q-3.2 0-5.046 2.04c-1.232 1.36-1.847 3.21-1.847 5.56v13.59h-3.973v-24.05h3.973v3.74c.945-1.45 2.054-2.53 3.328-3.25 1.289-.71 2.77-1.07 4.445-1.07q4.145 0 6.271 2.58c1.417 1.7 2.126 4.21 2.126 7.54M260.04 1012.49v6.83h8.139v3.07h-8.139v13.06q0 2.94.795 3.78c.544.56 1.639.83 3.285.83h4.059v3.31h-4.059c-3.049 0-5.154-.56-6.313-1.7-1.16-1.14-1.74-3.22-1.74-6.22v-13.06h-2.899v-3.07h2.899v-6.83zM293.969 1030.36v1.93h-18.167c.172 2.72.988 4.8 2.448 6.23 1.475 1.41 3.522 2.12 6.142 2.12 1.517 0 2.985-.18 4.402-.55q2.148-.57 4.252-1.68v3.74c-1.417.6-2.871 1.06-4.359 1.37-1.489.32-3 .47-4.531.47-3.837 0-6.879-1.11-9.127-3.35q-3.35-3.345-3.35-9.06 0-5.91 3.178-9.36 3.2-3.48 8.611-3.48c3.236 0 5.791 1.04 7.667 3.14 1.889 2.07 2.834 4.9 2.834 8.48m-3.951-1.16c-.029-2.16-.637-3.89-1.825-5.18-1.174-1.28-2.735-1.93-4.682-1.93-2.204 0-3.972.62-5.304 1.87-1.317 1.24-2.076 3-2.276 5.26z",style:{fill:"#195c84",fillRule:"nonzero"},transform:"translate(-299.395 -3669.24)scale(3.66951)"})]}),Rye=(e,t)=>{const r="support@ctisante.com",n=`${e.ENVIRONMENT} (${e.FINESS}).Message pour CTI Santé`;let a=`Références:
Versions=`;return Object.keys(t).forEach(o=>{a=a+`
- ${o} v${t[o]}`}),a=a+`
 Environnement = ${e.ENVIRONMENT} (${e.FINESS})`,a=a+`
 URL = ${window.location.href}`,a=encodeURIComponent(a),`mailto:${r}?subject=${n}!&body=${a}`},{Text:hZ}=md,Urt=e=>{const t=Pr(),r=Ye(N=>N.cti.settings.data.environment),n=Ye(N=>N.cti.settings.data.session),[a,i]=m.useState(!1),o=Ye(N=>N.router),[s,l]=m.useState(!1),[A,c]=m.useState(!1),[u,d]=m.useState(!1),[f,h]=m.useState(void 0),[g,p]=m.useState(void 0),[E,y]=m.useState(!1),[C,w]=m.useState((n==null?void 0:n.HOMEVIEW)??"accueil"),B=Ye(N=>N.cti.settings.data.environment),M=Ye(N=>N.cti.settings.data.version),I=te.useCallback(async()=>{var k,O;const N=((O=(k=o==null?void 0:o.location)==null?void 0:k.state)==null?void 0:O.referrer)??"/";w(C&&(!N||N==="/"||N==="/accueil/")?C:N||"/accueil/")},[o,C]);m.useEffect(()=>{t(yye())},[A,t]),m.useEffect(()=>{setTimeout(()=>i(!0),500)},[]),m.useEffect(()=>{I()},[I]);const S=N=>{MPe(),t(oZ(f,g,"false",l,c,d))},R=(N,k)=>{va.confirm({title:N,content:k,centered:!0,onOk:()=>{t(oZ(f,g,"true",l,c,d)),d(!1)}})},b=({key:N})=>{let k=document.createElement("a");k.href=Rye(B,M),document.body.appendChild(k),k.click(),document.body.removeChild(k)},Q=N=>{N.preventDefault(),y(!0)},D=N=>{N.preventDefault(),y(!1)},F=()=>{switch(u.code){case"LIC0001":R("Confirmez vous cette connexion ?","Le poste sera ajouté au gestionnaire de licences.");break;case"LIC0002":R("Confirmez vous cette connexion ?","Un mail vous sera envoyé pour valider cette connexion.");break;default:return v.jsx(tR,{message:u.code,description:u.message,type:"error",showIcon:!0})}};return n&&n.CONNECTEDUSER.trim()!==""?n.HOMEVIEW!==""&&(C==="/"||C.startsWith("/accueil"))?v.jsx(Rp,{to:{pathname:"/accueil/",state:{logged:!0,homeview:n.HOMEVIEW}}}):C==="/"?v.jsx(Rp,{to:{pathname:"/accueil/",state:{logged:!0}}}):(t(Ay("accueil")),v.jsx(Rp,{to:{pathname:C,state:{logged:!0}}})):v.jsx("div",{className:"login-page",children:v.jsxs("div",{className:"login-container",children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Connexion"})}),a&&v.jsx(Ih,{in:!0,classNames:"login-fade",appear:!0,timeout:300,children:v.jsx("div",{children:v.jsxs("div",{children:[v.jsxs(_e,{onFinish:S,className:"login-form",children:[v.jsxs("div",{className:"login__form",children:[v.jsx(Sye,{}),v.jsx("div",{className:"login__formHeader",children:v.jsxs("div",{children:[v.jsx("br",{}),v.jsx(hZ,{className:"login__text--environnement",children:r&&r.ENVIRONMENT})," ",v.jsx("br",{}),v.jsx("br",{}),v.jsx(hZ,{className:"login__text--finess",type:"secondary",children:r&&r.FINESS}),v.jsx("br",{})]})})]}),v.jsx(_e.Item,{children:v.jsx(mt,{name:"username",onChange:N=>h(N.target.value),prefix:v.jsx(mNe,{className:"login__item"}),className:"login__item",placeholder:"Identifiant",autoComplete:"off"})}),v.jsx(_e.Item,{children:v.jsx(mt,{name:"password",type:E?"text":"password",suffix:E?v.jsx(X3,{onMouseDown:Q,onMouseUp:D,className:"login__eye"}):v.jsx(q3,{onMouseDown:Q,onMouseUp:D,className:"login__eye"}),onChange:N=>p(N.target.value),prefix:v.jsx(eY,{className:"login__item"}),className:"login__item",placeholder:"Mot de passe",autoComplete:"current-password"})}),v.jsx(_e.Item,{children:v.jsx(nt,{type:"primary",htmlType:"submit",className:"login-form-button",loading:s,children:s?"":"Connexion"})})]},"a"),v.jsxs("div",{id:"links-container",children:[v.jsx(pr,{title:"Accéder au site www.ctisante.com",placement:"bottom",children:v.jsx("a",{href:"https://www.ctisante.com",rel:"noopener noreferrer nofollow",target:"_blank",children:v.jsx(cFe,{})})}),v.jsx(pr,{title:"Rapporter un bug",placement:"bottom",children:v.jsx(nt,{type:"link",className:"user-button",onClick:b,children:v.jsx(eI,{className:"login__svg--bug"})})})]}),v.jsx("div",{className:"login__error",children:u&&F()})]},"loginForm")})})]})})};var Hrt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ha=function(){return Ha=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ha.apply(this,arguments)},gZ={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},pZ={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Fw={width:"20px",height:"20px",position:"absolute"},Grt={top:Ha(Ha({},gZ),{top:"-5px"}),right:Ha(Ha({},pZ),{left:void 0,right:"-5px"}),bottom:Ha(Ha({},gZ),{top:void 0,bottom:"-5px"}),left:Ha(Ha({},pZ),{left:"-5px"}),topRight:Ha(Ha({},Fw),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Ha(Ha({},Fw),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Ha(Ha({},Fw),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Ha(Ha({},Fw),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Krt=function(e){Hrt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.onMouseDown=function(n){r.props.onResizeStart(n,r.props.direction)},r.onTouchStart=function(n){r.props.onResizeStart(n,r.props.direction)},r}return t.prototype.render=function(){return m.createElement("div",{className:this.props.className||"",style:Ha(Ha({position:"absolute",userSelect:"none"},Grt[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(m.PureComponent),Vrt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),gA=function(){return gA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},gA.apply(this,arguments)},Jrt={width:"auto",height:"auto"},_w=function(e,t,r){return Math.max(Math.min(e,r),t)},vZ=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},Sg=function(e,t){return new RegExp(e,"i").test(t)},Nw=function(e){return!!(e.touches&&e.touches.length)},Wrt=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},mZ=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(i,o,s){return Math.abs(o-e)<Math.abs(t[i]-e)?s:i},0),a=Math.abs(t[n]-e);return r===0||a<r?t[n]:e},JN=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},kw=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var a=Number(e.replace("%",""))/100;return t*a}if(e.endsWith("vw")){var a=Number(e.replace("vw",""))/100;return r*a}if(e.endsWith("vh")){var a=Number(e.replace("vh",""))/100;return n*a}}return e},Xrt=function(e,t,r,n,a,i,o){return n=kw(n,e.width,t,r),a=kw(a,e.height,t,r),i=kw(i,e.width,t,r),o=kw(o,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof a>"u"?void 0:Number(a),minWidth:typeof i>"u"?void 0:Number(i),minHeight:typeof o>"u"?void 0:Number(o)}},qrt=function(e){return Array.isArray(e)?e:[e,e]},Zrt=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],EZ="__resizable_base__",bh=function(e){Vrt(t,e);function t(r){var n,a,i,o,s=e.call(this,r)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.appendBase=function(){if(!s.resizable||!s.window)return null;var l=s.parentNode;if(!l)return null;var A=s.window.document.createElement("div");return A.style.width="100%",A.style.height="100%",A.style.position="absolute",A.style.transform="scale(0, 0)",A.style.left="0",A.style.flex="0 0 100%",A.classList?A.classList.add(EZ):A.className+=EZ,l.appendChild(A),A},s.removeBase=function(l){var A=s.parentNode;A&&A.removeChild(l)},s.state={isResizing:!1,width:(a=(n=s.propsSize)===null||n===void 0?void 0:n.width)!==null&&a!==void 0?a:"auto",height:(o=(i=s.propsSize)===null||i===void 0?void 0:i.height)!==null&&o!==void 0?o:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Jrt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var a=this.resizable.offsetWidth,i=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:a,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:i,this.resizable.style.position=o}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,a=function(s){var l;if(typeof r.state[s]>"u"||r.state[s]==="auto")return"auto";if(r.propsSize&&r.propsSize[s]&&(!((l=r.propsSize[s])===null||l===void 0)&&l.toString().endsWith("%"))){if(r.state[s].toString().endsWith("%"))return r.state[s].toString();var A=r.getParentSize(),c=Number(r.state[s].toString().replace("px","")),u=c/A[s]*100;return u+"%"}return JN(r.state[s])},i=n&&typeof n.width<"u"&&!this.state.isResizing?JN(n.width):a("width"),o=n&&typeof n.height<"u"&&!this.state.isResizing?JN(n.height):a("height");return{width:i,height:o}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,a=this.parentNode.style.flexWrap;a!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var i={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=a),this.removeBase(r),i},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var a=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof a>"u"||a==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var a=this.props.boundsByDirection,i=this.state.direction,o=a&&Sg("left",i),s=a&&Sg("top",i),l,A;if(this.props.bounds==="parent"){var c=this.parentNode;c&&(l=o?this.resizableRight-this.parentLeft:c.offsetWidth+(this.parentLeft-this.resizableLeft),A=s?this.resizableBottom-this.parentTop:c.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,A=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),A=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(r=r&&r<l?r:l),A&&Number.isFinite(A)&&(n=n&&n<A?n:A),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var a=this.props.scale||1,i=qrt(this.props.resizeRatio||1),o=i[0],s=i[1],l=this.state,A=l.direction,c=l.original,u=this.props,d=u.lockAspectRatio,f=u.lockAspectRatioExtraHeight,h=u.lockAspectRatioExtraWidth,g=c.width,p=c.height,E=f||0,y=h||0;return Sg("right",A)&&(g=c.width+(r-c.x)*o/a,d&&(p=(g-y)/this.ratio+E)),Sg("left",A)&&(g=c.width-(r-c.x)*o/a,d&&(p=(g-y)/this.ratio+E)),Sg("bottom",A)&&(p=c.height+(n-c.y)*s/a,d&&(g=(p-E)*this.ratio+y)),Sg("top",A)&&(p=c.height-(n-c.y)*s/a,d&&(g=(p-E)*this.ratio+y)),{newWidth:g,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,a,i){var o=this.props,s=o.lockAspectRatio,l=o.lockAspectRatioExtraHeight,A=o.lockAspectRatioExtraWidth,c=typeof i.width>"u"?10:i.width,u=typeof a.width>"u"||a.width<0?r:a.width,d=typeof i.height>"u"?10:i.height,f=typeof a.height>"u"||a.height<0?n:a.height,h=l||0,g=A||0;if(s){var p=(d-h)*this.ratio+g,E=(f-h)*this.ratio+g,y=(c-g)/this.ratio+h,C=(u-g)/this.ratio+h,w=Math.max(c,p),B=Math.min(u,E),M=Math.max(d,y),I=Math.min(f,C);r=_w(r,w,B),n=_w(n,M,I)}else r=_w(r,c,u),n=_w(n,d,f);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var a=n.getBoundingClientRect();this.parentLeft=a.left*r,this.parentTop=a.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var i=this.props.bounds.getBoundingClientRect();this.targetLeft=i.left*r,this.targetTop=i.top*r}if(this.resizable){var o=this.resizable.getBoundingClientRect(),s=o.left,l=o.top,A=o.right,c=o.bottom;this.resizableLeft=s*r,this.resizableRight=A*r,this.resizableTop=l*r,this.resizableBottom=c*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var a=0,i=0;if(r.nativeEvent&&Wrt(r.nativeEvent)?(a=r.nativeEvent.clientX,i=r.nativeEvent.clientY):r.nativeEvent&&Nw(r.nativeEvent)&&(a=r.nativeEvent.touches[0].clientX,i=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(r,n,this.resizable);if(o===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var A=this.parentNode;if(A){var c=this.window.getComputedStyle(A).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",s=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:a,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:gA(gA({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:s};this.setState(u)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Nw(r))try{r.preventDefault(),r.stopPropagation()}catch{}var a=this.props,i=a.maxWidth,o=a.maxHeight,s=a.minWidth,l=a.minHeight,A=Nw(r)?r.touches[0].clientX:r.clientX,c=Nw(r)?r.touches[0].clientY:r.clientY,u=this.state,d=u.direction,f=u.original,h=u.width,g=u.height,p=this.getParentSize(),E=Xrt(p,this.window.innerWidth,this.window.innerHeight,i,o,s,l);i=E.maxWidth,o=E.maxHeight,s=E.minWidth,l=E.minHeight;var y=this.calculateNewSizeFromDirection(A,c),C=y.newHeight,w=y.newWidth,B=this.calculateNewMaxFromBoundary(i,o);this.props.snap&&this.props.snap.x&&(w=mZ(w,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(C=mZ(C,this.props.snap.y,this.props.snapGap));var M=this.calculateNewSizeFromAspectRatio(w,C,{width:B.maxWidth,height:B.maxHeight},{width:s,height:l});if(w=M.newWidth,C=M.newHeight,this.props.grid){var I=vZ(w,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),S=vZ(C,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),R=this.props.snapGap||0,b=R===0||Math.abs(I-w)<=R?I:w,Q=R===0||Math.abs(S-C)<=R?S:C;w=b,C=Q}var D={width:w-f.width,height:C-f.height};if(h&&typeof h=="string"){if(h.endsWith("%")){var F=w/p.width*100;w=F+"%"}else if(h.endsWith("vw")){var N=w/this.window.innerWidth*100;w=N+"vw"}else if(h.endsWith("vh")){var k=w/this.window.innerHeight*100;w=k+"vh"}}if(g&&typeof g=="string"){if(g.endsWith("%")){var F=C/p.height*100;C=F+"%"}else if(g.endsWith("vw")){var N=C/this.window.innerWidth*100;C=N+"vw"}else if(g.endsWith("vh")){var k=C/this.window.innerHeight*100;C=k+"vh"}}var O={width:this.createSizeForCssProperty(w,"width"),height:this.createSizeForCssProperty(C,"height")};this.flexDir==="row"?O.flexBasis=O.width:this.flexDir==="column"&&(O.flexBasis=O.height);var P=this.state.width!==O.width,z=this.state.height!==O.height,j=this.state.flexBasis!==O.flexBasis,V=P||z||j;V&&ei.flushSync(function(){n.setState(O)}),this.props.onResize&&V&&this.props.onResize(r,d,this.resizable,D)}},t.prototype.onMouseUp=function(r){var n,a,i=this.state,o=i.isResizing,s=i.direction,l=i.original;if(!(!o||!this.resizable)){var A={width:this.size.width-l.width,height:this.size.height-l.height};this.props.onResizeStop&&this.props.onResizeStop(r,s,this.resizable,A),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(a=this.props.size.height)!==null&&a!==void 0?a:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:gA(gA({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(r){var n,a;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(a=r.height)!==null&&a!==void 0?a:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,a=n.enable,i=n.handleStyles,o=n.handleClasses,s=n.handleWrapperStyle,l=n.handleWrapperClass,A=n.handleComponent;if(!a)return null;var c=Object.keys(a).map(function(u){return a[u]!==!1?m.createElement(Krt,{key:u,direction:u,onResizeStart:r.onResizeStart,replaceStyles:i&&i[u],className:o&&o[u]},A&&A[u]?A[u]:null):null});return m.createElement("div",{className:l,style:s},c)},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(o,s){return Zrt.indexOf(s)!==-1||(o[s]=r.props[s]),o},{}),a=gA(gA(gA({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(a.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return m.createElement(i,gA({style:a,className:this.props.className},n,{ref:function(o){o&&(r.resizable=o)}}),this.state.isResizing&&m.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(m.PureComponent);let $rt=class extends te.Component{constructor(t){super(t),this.state={error:!1,errorMessage:{}}}static getDerivedStateFromError(t){return{error:!0,errorMessage:t}}render(){return this.state.error?to.error("Une erreur est survenue merci de bien vouloir recharger la page"):this.props.children}};const ent=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0];let r=t.getElementsByTagName("MYFAVORITES")[0],n=t.getElementsByTagName("ALLVIEWS")[0],a=tL(r),i=Tye(n);return[a,i]},tL=(e,t=!1)=>{const r=ft(e,"MENUITEM");let n={};return t&&(n=[]),r.length&&r.forEach((a,i)=>{let o=lr(a),s=tL(a,!0);if(Object.keys(s).length&&(o.children=s),t){n.push(o);return}n[i]=o}),n},Tye=e=>{const t=ft(e,"MENUITEM");let r={};return t.length&&t.forEach((n,a)=>{let i=lr(n),o=Tye(n);Object.keys(o).length&&(i.children=o),r[a]=i}),r},tnt=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"PROFILE");let n=[];return r&&r.length&&r.forEach((a,i)=>{let o=lr(a),s={};Object.entries(o).forEach(c=>{c[1]==="true"?s[c[0]]=!0:c[1]==="false"?s[c[0]]=!1:s[c[0]]=c[1]});const l=ft(a,"AUT");s.auths=mn(l);const A=ft(a,"FAVORITE")[0];s.favorites=[],A&&(s.favorites=tL(A,!0)),s.key=i,n.push(s)}),n},rnt=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"MODULES")[0],n=ft(t,"SECURITY_LEVEL")[0],a=ft(t,"CTIUSRDIR")[0],i=ft(r,"MODULE");let o=[];return i&&i.length&&i.forEach((s,l)=>{let A=lr(s);const c=ft(s,"VIEW");let u=[];c&&c.length&&(u=mn(c)),A.views=u,A.key=l,o.push(A)}),{modules:o,securityLevels:mn(ft(n,"RECORD")),envs:mn(ft(a,"ENVIRONMENT")),ctiusrdir:lr(a)}},zb=()=>async function(e,t){e(s9(!0));const r=await en("modules/outils/php/getUsers.php"),n=tnt(r);e(P8e(n)),e(s9(!1))},yZ=(e,t,r="save")=>async function(n,a){let i=new FormData;i.append("option",r),i.append("file",t),i.append("recordXML",e),await ai({method:"post",url:ma()+"modules/outils/php/setUser.php",data:i,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"}),n(zb())};function nnt(e,t){return new Promise(async(r,n)=>{try{let a=new FormData;a.append("user",e),t.theme===!0?t.theme="light":t.theme="dark",a.append("displaySettings",JSON.stringify(t));let i=ma(),o=await ai({method:"post",url:i+"modules/outils/php/httpService_usersManager_updateUserDisplaySettings.php",data:a,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});const s=o.status,l=o.statusText;s===200?r(l):n(l)}catch(a){n(a)}})}function ant(e,t,r){return new Promise(async(n,a)=>{try{let i=new FormData;i.append("user",e),i.append("password",t),i.append("newPassword",r);let o=ma(),s=await ai({method:"post",url:o+"modules/outils/php/httpService_passwordManager_update.php",data:i,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});const A=ud(s.data).getElementsByTagName("HTTP_SERVICE")[0],c=lr(A);c.returnCode==="OK"?n(c):a(c)}catch(i){a(i)}})}const dv=({handleClick:e,disabledAction:t,toolTipTitle:r})=>v.jsx(pr,{title:r,children:v.jsx(nt,{type:"primary",onClick:e,disabled:t,children:v.jsx(Gs,{})})});dv.propTypes={handleClick:U.func,disabledAction:U.bool,toolTipTitle:U.string};var vo={},Rg={},WN,CZ;function int(){if(CZ)return WN;CZ=1;var e=fh(),t=Vi(),r=QA(),n="[object String]";function a(i){return typeof i=="string"||!t(i)&&r(i)&&e(i)==n}return WN=a,WN}var XN,wZ;function ont(){if(wZ)return XN;wZ=1;var e=uC();function t(r){return typeof r=="function"?r:e}return XN=t,XN}var qN,BZ;function rL(){if(BZ)return qN;BZ=1;var e=Age(),t=ont();function r(n,a){return n&&e(n,t(a))}return qN=r,qN}var ZN,MZ;function nL(){if(MZ)return ZN;MZ=1;var e=sge(),t=e(Object.getPrototypeOf,Object);return ZN=t,ZN}var $N,xZ;function Qye(){if(xZ)return $N;xZ=1;var e=fh(),t=nL(),r=QA(),n="[object Object]",a=Function.prototype,i=Object.prototype,o=a.toString,s=i.hasOwnProperty,l=o.call(Object);function A(c){if(!r(c)||e(c)!=n)return!1;var u=t(c);if(u===null)return!0;var d=s.call(u,"constructor")&&u.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==l}return $N=A,$N}var ek,IZ;function Dye(){if(IZ)return ek;IZ=1;var e=cge(),t=fd();function r(n,a){var i=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,A){o[++i]=a(s,l,A)}),o}return ek=r,ek}var tk,bZ;function Fye(){if(bZ)return tk;bZ=1;var e=V3(),t=dC(),r=Dye(),n=Vi();function a(i,o){var s=n(i)?e:r;return s(i,t(o,3))}return tk=a,tk}var SZ;function snt(){if(SZ)return Rg;SZ=1,Object.defineProperty(Rg,"__esModule",{value:!0}),Rg.flattenNames=void 0;var e=int(),t=l(e),r=rL(),n=l(r),a=Qye(),i=l(a),o=Fye(),s=l(o);function l(c){return c&&c.__esModule?c:{default:c}}var A=Rg.flattenNames=function c(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=[];return(0,s.default)(u,function(f){Array.isArray(f)?c(f).map(function(h){return d.push(h)}):(0,i.default)(f)?(0,n.default)(f,function(h,g){h===!0&&d.push(g),d.push(g+"-"+h)}):(0,t.default)(f)&&d.push(f)}),d};return Rg.default=A,Rg}var Tg={},rk,RZ;function lnt(){if(RZ)return rk;RZ=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a&&r(t[n],n,t)!==!1;);return t}return rk=e,rk}var nk,TZ;function Lv(){if(TZ)return nk;TZ=1;var e=W5(),t=LR();function r(n,a,i,o){var s=!i;i||(i={});for(var l=-1,A=a.length;++l<A;){var c=a[l],u=o?o(i[c],n[c],c,i,n):void 0;u===void 0&&(u=n[c]),s?t(i,c,u):e(i,c,u)}return i}return nk=r,nk}var ak,QZ;function Ant(){if(QZ)return ak;QZ=1;var e=Lv(),t=Qv();function r(n,a){return n&&e(a,t(a),n)}return ak=r,ak}var ik,DZ;function cnt(){if(DZ)return ik;DZ=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return ik=e,ik}var ok,FZ;function unt(){if(FZ)return ok;FZ=1;var e=ls(),t=YS(),r=cnt(),n=Object.prototype,a=n.hasOwnProperty;function i(o){if(!e(o))return r(o);var s=t(o),l=[];for(var A in o)A=="constructor"&&(s||!a.call(o,A))||l.push(A);return l}return ok=i,ok}var sk,_Z;function Uv(){if(_Z)return sk;_Z=1;var e=oge(),t=unt(),r=fd();function n(a){return r(a)?e(a,!0):t(a)}return sk=n,sk}var lk,NZ;function dnt(){if(NZ)return lk;NZ=1;var e=Lv(),t=Uv();function r(n,a){return n&&e(a,t(a),n)}return lk=r,lk}var w0={exports:{}};w0.exports;var kZ;function _ye(){return kZ||(kZ=1,function(e,t){var r=Nl(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(A,c){if(c)return A.slice();var u=A.length,d=s?s(u):new A.constructor(u);return A.copy(d),d}e.exports=l}(w0,w0.exports)),w0.exports}var Ak,PZ;function Nye(){if(PZ)return Ak;PZ=1;function e(t,r){var n=-1,a=t.length;for(r||(r=Array(a));++n<a;)r[n]=t[n];return r}return Ak=e,Ak}var ck,OZ;function fnt(){if(OZ)return ck;OZ=1;var e=Lv(),t=EY();function r(n,a){return e(n,t(n),a)}return ck=r,ck}var uk,zZ;function kye(){if(zZ)return uk;zZ=1;var e=mY(),t=nL(),r=EY(),n=gge(),a=Object.getOwnPropertySymbols,i=a?function(o){for(var s=[];o;)e(s,r(o)),o=t(o);return s}:n;return uk=i,uk}var dk,jZ;function hnt(){if(jZ)return dk;jZ=1;var e=Lv(),t=kye();function r(n,a){return e(n,t(n),a)}return dk=r,dk}var fk,YZ;function gnt(){if(YZ)return fk;YZ=1;var e=hge(),t=kye(),r=Uv();function n(a){return e(a,r,t)}return fk=n,fk}var hk,LZ;function pnt(){if(LZ)return hk;LZ=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var a=n.length,i=new n.constructor(a);return a&&typeof n[0]=="string"&&t.call(n,"index")&&(i.index=n.index,i.input=n.input),i}return hk=r,hk}var gk,UZ;function aL(){if(UZ)return gk;UZ=1;var e=fge();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return gk=t,gk}var pk,HZ;function vnt(){if(HZ)return pk;HZ=1;var e=aL();function t(r,n){var a=n?e(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.byteLength)}return pk=t,pk}var vk,GZ;function mnt(){if(GZ)return vk;GZ=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return vk=t,vk}var mk,KZ;function Ent(){if(KZ)return mk;KZ=1;var e=xv(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(a){return r?Object(r.call(a)):{}}return mk=n,mk}var Ek,VZ;function Pye(){if(VZ)return Ek;VZ=1;var e=aL();function t(r,n){var a=n?e(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.length)}return Ek=t,Ek}var yk,JZ;function ynt(){if(JZ)return yk;JZ=1;var e=aL(),t=vnt(),r=mnt(),n=Ent(),a=Pye(),i="[object Boolean]",o="[object Date]",s="[object Map]",l="[object Number]",A="[object RegExp]",c="[object Set]",u="[object String]",d="[object Symbol]",f="[object ArrayBuffer]",h="[object DataView]",g="[object Float32Array]",p="[object Float64Array]",E="[object Int8Array]",y="[object Int16Array]",C="[object Int32Array]",w="[object Uint8Array]",B="[object Uint8ClampedArray]",M="[object Uint16Array]",I="[object Uint32Array]";function S(R,b,Q){var D=R.constructor;switch(b){case f:return e(R);case i:case o:return new D(+R);case h:return t(R,Q);case g:case p:case E:case y:case C:case w:case B:case M:case I:return a(R,Q);case s:return new D;case l:case u:return new D(R);case A:return r(R);case c:return new D;case d:return n(R)}}return yk=S,yk}var Ck,WZ;function Cnt(){if(WZ)return Ck;WZ=1;var e=ls(),t=Object.create,r=function(){function n(){}return function(a){if(!e(a))return{};if(t)return t(a);n.prototype=a;var i=new n;return n.prototype=void 0,i}}();return Ck=r,Ck}var wk,XZ;function Oye(){if(XZ)return wk;XZ=1;var e=Cnt(),t=nL(),r=YS();function n(a){return typeof a.constructor=="function"&&!r(a)?e(t(a)):{}}return wk=n,wk}var Bk,qZ;function wnt(){if(qZ)return Bk;qZ=1;var e=AC(),t=QA(),r="[object Map]";function n(a){return t(a)&&e(a)==r}return Bk=n,Bk}var Mk,ZZ;function Bnt(){if(ZZ)return Mk;ZZ=1;var e=wnt(),t=zS(),r=hY(),n=r&&r.isMap,a=n?t(n):e;return Mk=a,Mk}var xk,$Z;function Mnt(){if($Z)return xk;$Z=1;var e=AC(),t=QA(),r="[object Set]";function n(a){return t(a)&&e(a)==r}return xk=n,xk}var Ik,e$;function xnt(){if(e$)return Ik;e$=1;var e=Mnt(),t=zS(),r=hY(),n=r&&r.isSet,a=n?t(n):e;return Ik=a,Ik}var bk,t$;function Int(){if(t$)return bk;t$=1;var e=KS(),t=lnt(),r=W5(),n=Ant(),a=dnt(),i=_ye(),o=Nye(),s=fnt(),l=hnt(),A=pge(),c=gnt(),u=AC(),d=pnt(),f=ynt(),h=Oye(),g=Vi(),p=sC(),E=Bnt(),y=ls(),C=xnt(),w=Qv(),B=Uv(),M=1,I=2,S=4,R="[object Arguments]",b="[object Array]",Q="[object Boolean]",D="[object Date]",F="[object Error]",N="[object Function]",k="[object GeneratorFunction]",O="[object Map]",P="[object Number]",z="[object Object]",j="[object RegExp]",V="[object Set]",L="[object String]",K="[object Symbol]",J="[object WeakMap]",Y="[object ArrayBuffer]",W="[object DataView]",q="[object Float32Array]",ee="[object Float64Array]",ae="[object Int8Array]",ne="[object Int16Array]",ce="[object Int32Array]",ue="[object Uint8Array]",ge="[object Uint8ClampedArray]",Se="[object Uint16Array]",ye="[object Uint32Array]",pe={};pe[R]=pe[b]=pe[Y]=pe[W]=pe[Q]=pe[D]=pe[q]=pe[ee]=pe[ae]=pe[ne]=pe[ce]=pe[O]=pe[P]=pe[z]=pe[j]=pe[V]=pe[L]=pe[K]=pe[ue]=pe[ge]=pe[Se]=pe[ye]=!0,pe[F]=pe[N]=pe[J]=!1;function Qe(Ue,tt,it,we,ve,Te){var Be,Ge=tt&M,ht=tt&I,We=tt&S;if(it&&(Be=ve?it(Ue,we,ve,Te):it(Ue)),Be!==void 0)return Be;if(!y(Ue))return Ue;var Ke=g(Ue);if(Ke){if(Be=d(Ue),!Ge)return o(Ue,Be)}else{var Xe=u(Ue),$e=Xe==N||Xe==k;if(p(Ue))return i(Ue,Ge);if(Xe==z||Xe==R||$e&&!ve){if(Be=ht||$e?{}:h(Ue),!Ge)return ht?l(Ue,a(Be,Ue)):s(Ue,n(Be,Ue))}else{if(!pe[Xe])return ve?Ue:{};Be=f(Ue,Xe,Ge)}}Te||(Te=new e);var pt=Te.get(Ue);if(pt)return pt;Te.set(Ue,Be),C(Ue)?Ue.forEach(function(je){Be.add(Qe(je,tt,it,je,Ue,Te))}):E(Ue)&&Ue.forEach(function(je,et){Be.set(et,Qe(je,tt,it,et,Ue,Te))});var de=We?ht?c:A:ht?B:w,Fe=Ke?void 0:de(Ue);return t(Fe||Ue,function(je,et){Fe&&(et=je,je=Ue[et]),r(Be,et,Qe(je,tt,it,et,Ue,Te))}),Be}return bk=Qe,bk}var Sk,r$;function zye(){if(r$)return Sk;r$=1;var e=Int(),t=1,r=4;function n(a){return e(a,t|r)}return Sk=n,Sk}var n$;function bnt(){if(n$)return Tg;n$=1,Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.mergeClasses=void 0;var e=rL(),t=i(e),r=zye(),n=i(r),a=Object.assign||function(s){for(var l=1;l<arguments.length;l++){var A=arguments[l];for(var c in A)Object.prototype.hasOwnProperty.call(A,c)&&(s[c]=A[c])}return s};function i(s){return s&&s.__esModule?s:{default:s}}var o=Tg.mergeClasses=function(l){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=l.default&&(0,n.default)(l.default)||{};return A.map(function(u){var d=l[u];return d&&(0,t.default)(d,function(f,h){c[h]||(c[h]={}),c[h]=a({},c[h],d[h])}),u}),c};return Tg.default=o,Tg}var Qg={},a$;function Snt(){if(a$)return Qg;a$=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.autoprefix=void 0;var e=rL(),t=n(e),r=Object.assign||function(o){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var A in l)Object.prototype.hasOwnProperty.call(l,A)&&(o[A]=l[A])}return o};function n(o){return o&&o.__esModule?o:{default:o}}var a={borderRadius:function(s){return{msBorderRadius:s,MozBorderRadius:s,OBorderRadius:s,WebkitBorderRadius:s,borderRadius:s}},boxShadow:function(s){return{msBoxShadow:s,MozBoxShadow:s,OBoxShadow:s,WebkitBoxShadow:s,boxShadow:s}},userSelect:function(s){return{WebkitTouchCallout:s,KhtmlUserSelect:s,MozUserSelect:s,msUserSelect:s,WebkitUserSelect:s,userSelect:s}},flex:function(s){return{WebkitBoxFlex:s,MozBoxFlex:s,WebkitFlex:s,msFlex:s,flex:s}},flexBasis:function(s){return{WebkitFlexBasis:s,flexBasis:s}},justifyContent:function(s){return{WebkitJustifyContent:s,justifyContent:s}},transition:function(s){return{msTransition:s,MozTransition:s,OTransition:s,WebkitTransition:s,transition:s}},transform:function(s){return{msTransform:s,MozTransform:s,OTransform:s,WebkitTransform:s,transform:s}},absolute:function(s){var l=s&&s.split(" ");return{position:"absolute",top:l&&l[0],right:l&&l[1],bottom:l&&l[2],left:l&&l[3]}},extend:function(s,l){var A=l[s];return A||{extend:s}}},i=Qg.autoprefix=function(s){var l={};return(0,t.default)(s,function(A,c){var u={};(0,t.default)(A,function(d,f){var h=a[f];h?u=r({},u,h(d)):u[f]=d}),l[c]=u}),l};return Qg.default=i,Qg}var Dg={},i$;function Rnt(){if(i$)return Dg;i$=1,Object.defineProperty(Dg,"__esModule",{value:!0}),Dg.hover=void 0;var e=Object.assign||function(l){for(var A=1;A<arguments.length;A++){var c=arguments[A];for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(l[u]=c[u])}return l},t=cr(),r=n(t);function n(l){return l&&l.__esModule?l:{default:l}}function a(l,A){if(!(l instanceof A))throw new TypeError("Cannot call a class as a function")}function i(l,A){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:l}function o(l,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);l.prototype=Object.create(A&&A.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(l,A):l.__proto__=A)}var s=Dg.hover=function(A){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){o(d,u);function d(){var f,h,g,p;a(this,d);for(var E=arguments.length,y=Array(E),C=0;C<E;C++)y[C]=arguments[C];return p=(h=(g=i(this,(f=d.__proto__||Object.getPrototypeOf(d)).call.apply(f,[this].concat(y))),g),g.state={hover:!1},g.handleMouseOver=function(){return g.setState({hover:!0})},g.handleMouseOut=function(){return g.setState({hover:!1})},g.render=function(){return r.default.createElement(c,{onMouseOver:g.handleMouseOver,onMouseOut:g.handleMouseOut},r.default.createElement(A,e({},g.props,g.state)))},h),i(g,p)}return d}(r.default.Component)};return Dg.default=s,Dg}var Fg={},o$;function Tnt(){if(o$)return Fg;o$=1,Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.active=void 0;var e=Object.assign||function(l){for(var A=1;A<arguments.length;A++){var c=arguments[A];for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(l[u]=c[u])}return l},t=cr(),r=n(t);function n(l){return l&&l.__esModule?l:{default:l}}function a(l,A){if(!(l instanceof A))throw new TypeError("Cannot call a class as a function")}function i(l,A){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:l}function o(l,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);l.prototype=Object.create(A&&A.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(l,A):l.__proto__=A)}var s=Fg.active=function(A){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(u){o(d,u);function d(){var f,h,g,p;a(this,d);for(var E=arguments.length,y=Array(E),C=0;C<E;C++)y[C]=arguments[C];return p=(h=(g=i(this,(f=d.__proto__||Object.getPrototypeOf(d)).call.apply(f,[this].concat(y))),g),g.state={active:!1},g.handleMouseDown=function(){return g.setState({active:!0})},g.handleMouseUp=function(){return g.setState({active:!1})},g.render=function(){return r.default.createElement(c,{onMouseDown:g.handleMouseDown,onMouseUp:g.handleMouseUp},r.default.createElement(A,e({},g.props,g.state)))},h),i(g,p)}return d}(r.default.Component)};return Fg.default=s,Fg}var Pw={},s$;function Qnt(){if(s$)return Pw;s$=1,Object.defineProperty(Pw,"__esModule",{value:!0});var e=function(r,n){var a={},i=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a[s]=l};return r===0&&i("first-child"),r===n-1&&i("last-child"),(r===0||r%2===0)&&i("even"),Math.abs(r%2)===1&&i("odd"),i("nth-child",r),a};return Pw.default=e,Pw}var l$;function Dnt(){if(l$)return vo;l$=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.ReactCSS=vo.loop=vo.handleActive=vo.handleHover=vo.hover=void 0;var e=snt(),t=d(e),r=bnt(),n=d(r),a=Snt(),i=d(a),o=Rnt(),s=d(o),l=Tnt(),A=d(l),c=Qnt(),u=d(c);function d(h){return h&&h.__esModule?h:{default:h}}vo.hover=s.default,vo.handleHover=s.default,vo.handleActive=A.default,vo.loop=u.default;var f=vo.ReactCSS=function(g){for(var p=arguments.length,E=Array(p>1?p-1:0),y=1;y<p;y++)E[y-1]=arguments[y];var C=(0,t.default)(E),w=(0,n.default)(g,C);return(0,i.default)(w)};return vo.default=f,vo}var iL=Dnt();const Jr=Nr(iL);var Fnt=function(t,r,n,a,i){var o=i.clientWidth,s=i.clientHeight,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,A=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=l-(i.getBoundingClientRect().left+window.pageXOffset),u=A-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(u<0?d=0:u>s?d=1:d=Math.round(u*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var f=void 0;if(c<0?f=0:c>o?f=1:f=Math.round(c*100/o)/100,a!==f)return{h:r.h,s:r.s,l:r.l,a:f,source:"rgb"}}return null},Rk={},_nt=function(t,r,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var o=i.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,i.width,i.height),o.fillStyle=r,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null},Nnt=function(t,r,n,a){var i=t+"-"+r+"-"+n+(a?"-server":"");if(Rk[i])return Rk[i];var o=_nt(t,r,n,a);return Rk[i]=o,o},A$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hv=function(t){var r=t.white,n=t.grey,a=t.size,i=t.renderers,o=t.borderRadius,s=t.boxShadow,l=t.children,A=Jr({default:{grid:{borderRadius:o,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+Nnt(r,n,a,i.canvas)+") center left"}}});return m.isValidElement(l)?te.cloneElement(l,A$({},l.props,{style:A$({},l.props.style,A.grid)})):te.createElement("div",{style:A.grid})};Hv.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var knt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pnt=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Ont(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function znt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var oL=function(e){znt(t,e);function t(){var r,n,a,i;Ont(this,t);for(var o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];return i=(n=(a=c$(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(A){var c=Fnt(A,a.props.hsl,a.props.direction,a.props.a,a.container);c&&typeof a.props.onChange=="function"&&a.props.onChange(c,A)},a.handleMouseDown=function(A){a.handleChange(A),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleChange),window.removeEventListener("mouseup",a.handleMouseUp)},n),c$(a,i)}return Pnt(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,a=this.props.rgb,i=Jr({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+a.r+","+a.g+","+a.b+`, 0) 0%,
           rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:a.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+a.r+","+a.g+","+a.b+`, 0) 0%,
           rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)"},pointer:{left:0,top:a.a*100+"%"}},overwrite:knt({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return te.createElement("div",{style:i.alpha},te.createElement("div",{style:i.checkboard},te.createElement(Hv,{renderers:this.props.renderers})),te.createElement("div",{style:i.gradient}),te.createElement("div",{style:i.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},te.createElement("div",{style:i.pointer},this.props.pointer?te.createElement(this.props.pointer,this.props):te.createElement("div",{style:i.slider}))))}}]),t}(m.PureComponent||m.Component),jnt=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Ynt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lnt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Unt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Hnt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Gnt=1,jye=38,Knt=40,Vnt=[jye,Knt],Jnt=function(t){return Vnt.indexOf(t)>-1},Wnt=function(t){return Number(String(t).replace(/%/g,""))},Xnt=1,In=function(e){Hnt(t,e);function t(r){Lnt(this,t);var n=Unt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(a){n.setUpdatedValue(a.target.value,a)},n.handleKeyDown=function(a){var i=Wnt(a.target.value);if(!isNaN(i)&&Jnt(a.keyCode)){var o=n.getArrowOffset(),s=a.keyCode===jye?i+o:i-o;n.setUpdatedValue(s,a)}},n.handleDrag=function(a){if(n.props.dragLabel){var i=Math.round(n.props.value+a.movementX);i>=0&&i<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(i),a)}},n.handleMouseDown=function(a){n.props.dragLabel&&(a.preventDefault(),n.handleDrag(a),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+Xnt++,n}return jnt(t,[{key:"componentDidUpdate",value:function(n,a){this.props.value!==this.state.value&&(n.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return Ynt({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Gnt}},{key:"setUpdatedValue",value:function(n,a){var i=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(i,a),this.setState({value:n})}},{key:"render",value:function(){var n=this,a=Jr({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return te.createElement("div",{style:a.wrap},te.createElement("input",{id:this.inputId,style:a.input,ref:function(o){return n.input=o},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?te.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(m.PureComponent||m.Component),qnt=function(t,r,n,a){var i=a.clientWidth,o=a.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,A=s-(a.getBoundingClientRect().left+window.pageXOffset),c=l-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var u=void 0;if(c<0)u=359;else if(c>o)u=0;else{var d=-(c*100/o)+100;u=360*d/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var f=void 0;if(A<0)f=0;else if(A>i)f=359;else{var h=A*100/i;f=360*h/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},Znt=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function $nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function eat(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Gv=function(e){eat(t,e);function t(){var r,n,a,i;$nt(this,t);for(var o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];return i=(n=(a=u$(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(A){var c=qnt(A,a.props.direction,a.props.hsl,a.container);c&&typeof a.props.onChange=="function"&&a.props.onChange(c,A)},a.handleMouseDown=function(A){a.handleChange(A),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},n),u$(a,i)}return Znt(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,a=this.props.direction,i=a===void 0?"horizontal":a,o=Jr({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:i==="vertical"});return te.createElement("div",{style:o.hue},te.createElement("div",{className:"hue-"+i,style:o.container,ref:function(l){return n.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},te.createElement("style",null,`
            .hue-horizontal {
              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
              background: -webkit-linear-gradient(to right, #f00 0%, #ff0
                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
            }

            .hue-vertical {
              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
            }
          `),te.createElement("div",{style:o.pointer},this.props.pointer?te.createElement(this.props.pointer,this.props):te.createElement("div",{style:o.slider}))))}}]),t}(m.PureComponent||m.Component);function tat(){this.__data__=[],this.size=0}function kC(e,t){return e===t||e!==e&&t!==t}function HR(e,t){for(var r=e.length;r--;)if(kC(e[r][0],t))return r;return-1}var rat=Array.prototype,nat=rat.splice;function aat(e){var t=this.__data__,r=HR(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():nat.call(t,r,1),--this.size,!0}function iat(e){var t=this.__data__,r=HR(t,e);return r<0?void 0:t[r][1]}function oat(e){return HR(this.__data__,e)>-1}function sat(e,t){var r=this.__data__,n=HR(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Yc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yc.prototype.clear=tat;Yc.prototype.delete=aat;Yc.prototype.get=iat;Yc.prototype.has=oat;Yc.prototype.set=sat;function lat(){this.__data__=new Yc,this.size=0}function Aat(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function cat(e){return this.__data__.get(e)}function uat(e){return this.__data__.has(e)}var Yye=typeof global=="object"&&global&&global.Object===Object&&global,dat=typeof self=="object"&&self&&self.Object===Object&&self,zl=Yye||dat||Function("return this")(),rd=zl.Symbol,Lye=Object.prototype,fat=Lye.hasOwnProperty,hat=Lye.toString,rE=rd?rd.toStringTag:void 0;function gat(e){var t=fat.call(e,rE),r=e[rE];try{e[rE]=void 0;var n=!0}catch{}var a=hat.call(e);return n&&(t?e[rE]=r:delete e[rE]),a}var pat=Object.prototype,vat=pat.toString;function mat(e){return vat.call(e)}var Eat="[object Null]",yat="[object Undefined]",d$=rd?rd.toStringTag:void 0;function Sh(e){return e==null?e===void 0?yat:Eat:d$&&d$ in Object(e)?gat(e):mat(e)}function js(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Cat="[object AsyncFunction]",wat="[object Function]",Bat="[object GeneratorFunction]",Mat="[object Proxy]";function sL(e){if(!js(e))return!1;var t=Sh(e);return t==wat||t==Bat||t==Cat||t==Mat}var Tk=zl["__core-js_shared__"],f$=function(){var e=/[^.]+$/.exec(Tk&&Tk.keys&&Tk.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xat(e){return!!f$&&f$ in e}var Iat=Function.prototype,bat=Iat.toString;function Rh(e){if(e!=null){try{return bat.call(e)}catch{}try{return e+""}catch{}}return""}var Sat=/[\\^$.*+?()[\]{}|]/g,Rat=/^\[object .+?Constructor\]$/,Tat=Function.prototype,Qat=Object.prototype,Dat=Tat.toString,Fat=Qat.hasOwnProperty,_at=RegExp("^"+Dat.call(Fat).replace(Sat,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Nat(e){if(!js(e)||xat(e))return!1;var t=sL(e)?_at:Rat;return t.test(Rh(e))}function kat(e,t){return e==null?void 0:e[t]}function Th(e,t){var r=kat(e,t);return Nat(r)?r:void 0}var Ry=Th(zl,"Map"),Ty=Th(Object,"create");function Pat(){this.__data__=Ty?Ty(null):{},this.size=0}function Oat(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var zat="__lodash_hash_undefined__",jat=Object.prototype,Yat=jat.hasOwnProperty;function Lat(e){var t=this.__data__;if(Ty){var r=t[e];return r===zat?void 0:r}return Yat.call(t,e)?t[e]:void 0}var Uat=Object.prototype,Hat=Uat.hasOwnProperty;function Gat(e){var t=this.__data__;return Ty?t[e]!==void 0:Hat.call(t,e)}var Kat="__lodash_hash_undefined__";function Vat(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ty&&t===void 0?Kat:t,this}function th(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}th.prototype.clear=Pat;th.prototype.delete=Oat;th.prototype.get=Lat;th.prototype.has=Gat;th.prototype.set=Vat;function Jat(){this.size=0,this.__data__={hash:new th,map:new(Ry||Yc),string:new th}}function Wat(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function GR(e,t){var r=e.__data__;return Wat(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Xat(e){var t=GR(this,e).delete(e);return this.size-=t?1:0,t}function qat(e){return GR(this,e).get(e)}function Zat(e){return GR(this,e).has(e)}function $at(e,t){var r=GR(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Lc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Lc.prototype.clear=Jat;Lc.prototype.delete=Xat;Lc.prototype.get=qat;Lc.prototype.has=Zat;Lc.prototype.set=$at;var eit=200;function tit(e,t){var r=this.__data__;if(r instanceof Yc){var n=r.__data__;if(!Ry||n.length<eit-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Lc(n)}return r.set(e,t),this.size=r.size,this}function CA(e){var t=this.__data__=new Yc(e);this.size=t.size}CA.prototype.clear=lat;CA.prototype.delete=Aat;CA.prototype.get=cat;CA.prototype.has=uat;CA.prototype.set=tit;var jb=function(){try{var e=Th(Object,"defineProperty");return e({},"",{}),e}catch{}}();function lL(e,t,r){t=="__proto__"&&jb?jb(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function wj(e,t,r){(r!==void 0&&!kC(e[t],r)||r===void 0&&!(t in e))&&lL(e,t,r)}function rit(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var l=o[++a];if(r(i[l],l,i)===!1)break}return t}}var Uye=rit(),Hye=typeof exports=="object"&&exports&&!exports.nodeType&&exports,h$=Hye&&typeof module=="object"&&module&&!module.nodeType&&module,nit=h$&&h$.exports===Hye,g$=nit?zl.Buffer:void 0;g$&&g$.allocUnsafe;function ait(e,t){return e.slice()}var Yb=zl.Uint8Array;function iit(e){var t=new e.constructor(e.byteLength);return new Yb(t).set(new Yb(e)),t}function oit(e,t){var r=iit(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function sit(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var p$=Object.create,lit=function(){function e(){}return function(t){if(!js(t))return{};if(p$)return p$(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Gye(e,t){return function(r){return e(t(r))}}var Kye=Gye(Object.getPrototypeOf,Object),Ait=Object.prototype;function AL(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ait;return e===r}function cit(e){return typeof e.constructor=="function"&&!AL(e)?lit(Kye(e)):{}}function nd(e){return e!=null&&typeof e=="object"}var uit="[object Arguments]";function v$(e){return nd(e)&&Sh(e)==uit}var Vye=Object.prototype,dit=Vye.hasOwnProperty,fit=Vye.propertyIsEnumerable,Lb=v$(function(){return arguments}())?v$:function(e){return nd(e)&&dit.call(e,"callee")&&!fit.call(e,"callee")},ss=Array.isArray,hit=9007199254740991;function cL(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=hit}function Kv(e){return e!=null&&cL(e.length)&&!sL(e)}function git(e){return nd(e)&&Kv(e)}function pit(){return!1}var Jye=typeof exports=="object"&&exports&&!exports.nodeType&&exports,m$=Jye&&typeof module=="object"&&module&&!module.nodeType&&module,vit=m$&&m$.exports===Jye,E$=vit?zl.Buffer:void 0,mit=E$?E$.isBuffer:void 0,Ub=mit||pit,Eit="[object Object]",yit=Function.prototype,Cit=Object.prototype,Wye=yit.toString,wit=Cit.hasOwnProperty,Bit=Wye.call(Object);function Mit(e){if(!nd(e)||Sh(e)!=Eit)return!1;var t=Kye(e);if(t===null)return!0;var r=wit.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Wye.call(r)==Bit}var xit="[object Arguments]",Iit="[object Array]",bit="[object Boolean]",Sit="[object Date]",Rit="[object Error]",Tit="[object Function]",Qit="[object Map]",Dit="[object Number]",Fit="[object Object]",_it="[object RegExp]",Nit="[object Set]",kit="[object String]",Pit="[object WeakMap]",Oit="[object ArrayBuffer]",zit="[object DataView]",jit="[object Float32Array]",Yit="[object Float64Array]",Lit="[object Int8Array]",Uit="[object Int16Array]",Hit="[object Int32Array]",Git="[object Uint8Array]",Kit="[object Uint8ClampedArray]",Vit="[object Uint16Array]",Jit="[object Uint32Array]",ra={};ra[jit]=ra[Yit]=ra[Lit]=ra[Uit]=ra[Hit]=ra[Git]=ra[Kit]=ra[Vit]=ra[Jit]=!0;ra[xit]=ra[Iit]=ra[Oit]=ra[bit]=ra[zit]=ra[Sit]=ra[Rit]=ra[Tit]=ra[Qit]=ra[Dit]=ra[Fit]=ra[_it]=ra[Nit]=ra[kit]=ra[Pit]=!1;function Wit(e){return nd(e)&&cL(e.length)&&!!ra[Sh(e)]}function Xit(e){return function(t){return e(t)}}var Xye=typeof exports=="object"&&exports&&!exports.nodeType&&exports,X0=Xye&&typeof module=="object"&&module&&!module.nodeType&&module,qit=X0&&X0.exports===Xye,Qk=qit&&Yye.process,y$=function(){try{var e=X0&&X0.require&&X0.require("util").types;return e||Qk&&Qk.binding&&Qk.binding("util")}catch{}}(),C$=y$&&y$.isTypedArray,uL=C$?Xit(C$):Wit;function Bj(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Zit=Object.prototype,$it=Zit.hasOwnProperty;function eot(e,t,r){var n=e[t];(!($it.call(e,t)&&kC(n,r))||r===void 0&&!(t in e))&&lL(e,t,r)}function tot(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=void 0;l===void 0&&(l=e[s]),a?lL(r,s,l):eot(r,s,l)}return r}function rot(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var not=9007199254740991,aot=/^(?:0|[1-9]\d*)$/;function dL(e,t){var r=typeof e;return t=t??not,!!t&&(r=="number"||r!="symbol"&&aot.test(e))&&e>-1&&e%1==0&&e<t}var iot=Object.prototype,oot=iot.hasOwnProperty;function qye(e,t){var r=ss(e),n=!r&&Lb(e),a=!r&&!n&&Ub(e),i=!r&&!n&&!a&&uL(e),o=r||n||a||i,s=o?rot(e.length,String):[],l=s.length;for(var A in e)(t||oot.call(e,A))&&!(o&&(A=="length"||a&&(A=="offset"||A=="parent")||i&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||dL(A,l)))&&s.push(A);return s}function sot(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var lot=Object.prototype,Aot=lot.hasOwnProperty;function cot(e){if(!js(e))return sot(e);var t=AL(e),r=[];for(var n in e)n=="constructor"&&(t||!Aot.call(e,n))||r.push(n);return r}function Zye(e){return Kv(e)?qye(e,!0):cot(e)}function uot(e){return tot(e,Zye(e))}function dot(e,t,r,n,a,i,o){var s=Bj(e,r),l=Bj(t,r),A=o.get(l);if(A){wj(e,r,A);return}var c=i?i(s,l,r+"",e,t,o):void 0,u=c===void 0;if(u){var d=ss(l),f=!d&&Ub(l),h=!d&&!f&&uL(l);c=l,d||f||h?ss(s)?c=s:git(s)?c=sit(s):f?(u=!1,c=ait(l)):h?(u=!1,c=oit(l)):c=[]:Mit(l)||Lb(l)?(c=s,Lb(s)?c=uot(s):(!js(s)||sL(s))&&(c=cit(l))):u=!1}u&&(o.set(l,c),a(c,l,n,i,o),o.delete(l)),wj(e,r,c)}function $ye(e,t,r,n,a){e!==t&&Uye(t,function(i,o){if(a||(a=new CA),js(i))dot(e,t,o,r,$ye,n,a);else{var s=n?n(Bj(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),wj(e,o,s)}},Zye)}function KR(e){return e}function fot(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var w$=Math.max;function hot(e,t,r){return t=w$(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=w$(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),fot(e,this,s)}}function got(e){return function(){return e}}var pot=jb?function(e,t){return jb(e,"toString",{configurable:!0,enumerable:!1,value:got(t),writable:!0})}:KR,vot=800,mot=16,Eot=Date.now;function yot(e){var t=0,r=0;return function(){var n=Eot(),a=mot-(n-r);if(r=n,a>0){if(++t>=vot)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Cot=yot(pot);function wot(e,t){return Cot(hot(e,t,KR),e+"")}function Bot(e,t,r){if(!js(r))return!1;var n=typeof t;return(n=="number"?Kv(r)&&dL(t,r.length):n=="string"&&t in r)?kC(r[t],e):!1}function Mot(e){return wot(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&Bot(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var s=r[n];s&&e(t,s,n,i)}return t})}var No=Mot(function(e,t,r){$ye(e,t,r)}),PC=function(t){var r=t.zDepth,n=t.radius,a=t.background,i=t.children,o=t.styles,s=o===void 0?{}:o,l=Jr(No({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:a}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return te.createElement("div",{style:l.wrap},te.createElement("div",{style:l.bg}),te.createElement("div",{style:l.content},i))};PC.propTypes={background:U.string,zDepth:U.oneOf([0,1,2,3,4,5]),radius:U.number,styles:U.object};PC.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var Dk=function(){return zl.Date.now()},xot=/\s/;function Iot(e){for(var t=e.length;t--&&xot.test(e.charAt(t)););return t}var bot=/^\s+/;function Sot(e){return e&&e.slice(0,Iot(e)+1).replace(bot,"")}var Rot="[object Symbol]";function VR(e){return typeof e=="symbol"||nd(e)&&Sh(e)==Rot}var B$=NaN,Tot=/^[-+]0x[0-9a-f]+$/i,Qot=/^0b[01]+$/i,Dot=/^0o[0-7]+$/i,Fot=parseInt;function M$(e){if(typeof e=="number")return e;if(VR(e))return B$;if(js(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=js(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Sot(e);var r=Qot.test(e);return r||Dot.test(e)?Fot(e.slice(2),r?2:8):Tot.test(e)?B$:+e}var _ot="Expected a function",Not=Math.max,kot=Math.min;function eCe(e,t,r){var n,a,i,o,s,l,A=0,c=!1,u=!1,d=!0;if(typeof e!="function")throw new TypeError(_ot);t=M$(t)||0,js(r)&&(c=!!r.leading,u="maxWait"in r,i=u?Not(M$(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function f(M){var I=n,S=a;return n=a=void 0,A=M,o=e.apply(S,I),o}function h(M){return A=M,s=setTimeout(E,t),c?f(M):o}function g(M){var I=M-l,S=M-A,R=t-I;return u?kot(R,i-S):R}function p(M){var I=M-l,S=M-A;return l===void 0||I>=t||I<0||u&&S>=i}function E(){var M=Dk();if(p(M))return y(M);s=setTimeout(E,g(M))}function y(M){return s=void 0,d&&n?f(M):(n=a=void 0,o)}function C(){s!==void 0&&clearTimeout(s),A=0,n=l=a=s=void 0}function w(){return s===void 0?o:y(Dk())}function B(){var M=Dk(),I=p(M);if(n=arguments,a=this,l=M,I){if(s===void 0)return h(l);if(u)return clearTimeout(s),s=setTimeout(E,t),f(l)}return s===void 0&&(s=setTimeout(E,t)),o}return B.cancel=C,B.flush=w,B}var Pot="Expected a function";function Oot(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(Pot);return js(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),eCe(e,t,{leading:n,maxWait:t,trailing:a})}var zot=function(t,r,n){var a=n.getBoundingClientRect(),i=a.width,o=a.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,A=s-(n.getBoundingClientRect().left+window.pageXOffset),c=l-(n.getBoundingClientRect().top+window.pageYOffset);A<0?A=0:A>i&&(A=i),c<0?c=0:c>o&&(c=o);var u=A/i,d=1-c/o;return{h:r.h,s:u,v:d,a:r.a,source:"hsv"}},jot=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Yot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lot(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Uot(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var JR=function(e){Uot(t,e);function t(r){Yot(this,t);var n=Lot(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(a){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,zot(a,n.props.hsl,n.container),a)},n.handleMouseDown=function(a){n.handleChange(a);var i=n.getContainerRenderWindow();i.addEventListener("mousemove",n.handleChange),i.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=Oot(function(a,i,o){a(i,o)},50),n}return jot(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,a=window;!a.document.contains(n)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,a=this.props.style||{},i=a.color,o=a.white,s=a.black,l=a.pointer,A=a.circle,c=Jr({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
            0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:i,white:o,black:s,pointer:l,circle:A}},{custom:!!this.props.style});return te.createElement("div",{style:c.color,ref:function(d){return n.container=d},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},te.createElement("style",null,`
          .saturation-white {
            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
            background: linear-gradient(to right, #fff, rgba(255,255,255,0));
          }
          .saturation-black {
            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
            background: linear-gradient(to top, #000, rgba(0,0,0,0));
          }
        `),te.createElement("div",{style:c.white,className:"saturation-white"},te.createElement("div",{style:c.black,className:"saturation-black"}),te.createElement("div",{style:c.pointer},this.props.pointer?te.createElement(this.props.pointer,this.props):te.createElement("div",{style:c.circle}))))}}]),t}(m.PureComponent||m.Component);function Hot(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Got=Gye(Object.keys,Object),Kot=Object.prototype,Vot=Kot.hasOwnProperty;function Jot(e){if(!AL(e))return Got(e);var t=[];for(var r in Object(e))Vot.call(e,r)&&r!="constructor"&&t.push(r);return t}function fL(e){return Kv(e)?qye(e):Jot(e)}function Wot(e,t){return e&&Uye(e,t,fL)}function Xot(e,t){return function(r,n){if(r==null)return r;if(!Kv(r))return e(r,n);for(var a=r.length,i=-1,o=Object(r);++i<a&&n(o[i],i,o)!==!1;);return r}}var tCe=Xot(Wot);function qot(e){return typeof e=="function"?e:KR}function Zot(e,t){var r=ss(e)?Hot:tCe;return r(e,qot(t))}function Hb(e){"@babel/helpers - typeof";return Hb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hb(e)}var $ot=/^\s+/,est=/\s+$/;function Fr(e,t){if(e=e||"",t=t||{},e instanceof Fr)return e;if(!(this instanceof Fr))return new Fr(e,t);var r=tst(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}Fr.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,a,i,o,s;return r=t.r/255,n=t.g/255,a=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*s},setAlpha:function(t){return this._a=rCe(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=I$(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=I$(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=x$(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=x$(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return b$(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return ist(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ha(this._r,255)*100)+"%",g:Math.round(ha(this._g,255)*100)+"%",b:Math.round(ha(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ha(this._r,255)*100)+"%, "+Math.round(ha(this._g,255)*100)+"%, "+Math.round(ha(this._b,255)*100)+"%)":"rgba("+Math.round(ha(this._r,255)*100)+"%, "+Math.round(ha(this._g,255)*100)+"%, "+Math.round(ha(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:vst[b$(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+S$(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var i=Fr(t);n="#"+S$(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,a=this._a<1&&this._a>=0,i=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return Fr(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Ast,arguments)},brighten:function(){return this._applyModification(cst,arguments)},darken:function(){return this._applyModification(ust,arguments)},desaturate:function(){return this._applyModification(ost,arguments)},saturate:function(){return this._applyModification(sst,arguments)},greyscale:function(){return this._applyModification(lst,arguments)},spin:function(){return this._applyModification(dst,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(gst,arguments)},complement:function(){return this._applyCombination(fst,arguments)},monochromatic:function(){return this._applyCombination(pst,arguments)},splitcomplement:function(){return this._applyCombination(hst,arguments)},triad:function(){return this._applyCombination(R$,[3])},tetrad:function(){return this._applyCombination(R$,[4])}};Fr.fromRatio=function(e,t){if(Hb(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=B0(e[n]));e=r}return Fr(e,t)};function tst(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=Cst(e)),Hb(e)=="object"&&(rc(e.r)&&rc(e.g)&&rc(e.b)?(t=rst(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):rc(e.h)&&rc(e.s)&&rc(e.v)?(n=B0(e.s),a=B0(e.v),t=ast(e.h,n,a),o=!0,s="hsv"):rc(e.h)&&rc(e.s)&&rc(e.l)&&(n=B0(e.s),i=B0(e.l),t=nst(e.h,n,i),o=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=rCe(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function rst(e,t,r){return{r:ha(e,255)*255,g:ha(t,255)*255,b:ha(r,255)*255}}function x$(e,t,r){e=ha(e,255),t=ha(t,255),r=ha(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var l=n-a;switch(o=s>.5?l/(2-n-a):l/(n+a),n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,l:s}}function nst(e,t,r){var n,a,i;e=ha(e,360),t=ha(t,100),r=ha(r,100);function o(A,c,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?A+(c-A)*6*u:u<1/2?c:u<2/3?A+(c-A)*(2/3-u)*6:A}if(t===0)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=o(l,s,e+1/3),a=o(l,s,e),i=o(l,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function I$(e,t,r){e=ha(e,255),t=ha(t,255),r=ha(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=n,l=n-a;if(o=n===0?0:l/n,n==a)i=0;else{switch(n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,v:s}}function ast(e,t,r){e=ha(e,360)*6,t=ha(t,100),r=ha(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,A=[r,o,i,i,s,r][l],c=[s,r,r,o,i,i][l],u=[i,i,s,r,r,o][l];return{r:A*255,g:c*255,b:u*255}}function b$(e,t,r,n){var a=[Il(Math.round(e).toString(16)),Il(Math.round(t).toString(16)),Il(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function ist(e,t,r,n,a){var i=[Il(Math.round(e).toString(16)),Il(Math.round(t).toString(16)),Il(Math.round(r).toString(16)),Il(nCe(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function S$(e,t,r,n){var a=[Il(nCe(n)),Il(Math.round(e).toString(16)),Il(Math.round(t).toString(16)),Il(Math.round(r).toString(16))];return a.join("")}Fr.equals=function(e,t){return!e||!t?!1:Fr(e).toRgbString()==Fr(t).toRgbString()};Fr.random=function(){return Fr.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function ost(e,t){t=t===0?0:t||10;var r=Fr(e).toHsl();return r.s-=t/100,r.s=WR(r.s),Fr(r)}function sst(e,t){t=t===0?0:t||10;var r=Fr(e).toHsl();return r.s+=t/100,r.s=WR(r.s),Fr(r)}function lst(e){return Fr(e).desaturate(100)}function Ast(e,t){t=t===0?0:t||10;var r=Fr(e).toHsl();return r.l+=t/100,r.l=WR(r.l),Fr(r)}function cst(e,t){t=t===0?0:t||10;var r=Fr(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),Fr(r)}function ust(e,t){t=t===0?0:t||10;var r=Fr(e).toHsl();return r.l-=t/100,r.l=WR(r.l),Fr(r)}function dst(e,t){var r=Fr(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,Fr(r)}function fst(e){var t=Fr(e).toHsl();return t.h=(t.h+180)%360,Fr(t)}function R$(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Fr(e).toHsl(),n=[Fr(e)],a=360/t,i=1;i<t;i++)n.push(Fr({h:(r.h+i*a)%360,s:r.s,l:r.l}));return n}function hst(e){var t=Fr(e).toHsl(),r=t.h;return[Fr(e),Fr({h:(r+72)%360,s:t.s,l:t.l}),Fr({h:(r+216)%360,s:t.s,l:t.l})]}function gst(e,t,r){t=t||6,r=r||30;var n=Fr(e).toHsl(),a=360/r,i=[Fr(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(Fr(n));return i}function pst(e,t){t=t||6;for(var r=Fr(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(Fr({h:n,s:a,v:i})),i=(i+s)%1;return o}Fr.mix=function(e,t,r){r=r===0?0:r||50;var n=Fr(e).toRgb(),a=Fr(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return Fr(o)};Fr.readability=function(e,t){var r=Fr(e),n=Fr(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};Fr.isReadable=function(e,t,r){var n=Fr.readability(e,t),a,i;switch(i=!1,a=wst(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};Fr.mostReadable=function(e,t,r){var n=null,a=0,i,o,s,l;r=r||{},o=r.includeFallbackColors,s=r.level,l=r.size;for(var A=0;A<t.length;A++)i=Fr.readability(e,t[A]),i>a&&(a=i,n=Fr(t[A]));return Fr.isReadable(e,n,{level:s,size:l})||!o?n:(r.includeFallbackColors=!1,Fr.mostReadable(e,["#fff","#000"],r))};var Mj=Fr.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},vst=Fr.hexNames=mst(Mj);function mst(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function rCe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ha(e,t){Est(e)&&(e="100%");var r=yst(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function WR(e){return Math.min(1,Math.max(0,e))}function qo(e){return parseInt(e,16)}function Est(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function yst(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Il(e){return e.length==1?"0"+e:""+e}function B0(e){return e<=1&&(e=e*100+"%"),e}function nCe(e){return Math.round(parseFloat(e)*255).toString(16)}function T$(e){return qo(e)/255}var dl=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function rc(e){return!!dl.CSS_UNIT.exec(e)}function Cst(e){e=e.replace($ot,"").replace(est,"").toLowerCase();var t=!1;if(Mj[e])e=Mj[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=dl.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=dl.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=dl.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=dl.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=dl.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=dl.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=dl.hex8.exec(e))?{r:qo(r[1]),g:qo(r[2]),b:qo(r[3]),a:T$(r[4]),format:t?"name":"hex8"}:(r=dl.hex6.exec(e))?{r:qo(r[1]),g:qo(r[2]),b:qo(r[3]),format:t?"name":"hex"}:(r=dl.hex4.exec(e))?{r:qo(r[1]+""+r[1]),g:qo(r[2]+""+r[2]),b:qo(r[3]+""+r[3]),a:T$(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=dl.hex3.exec(e))?{r:qo(r[1]+""+r[1]),g:qo(r[2]+""+r[2]),b:qo(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function wst(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Q$=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return Zot(r,function(i){if(t[i]&&(n+=1,isNaN(t[i])||(a+=1),i==="s"||i==="l")){var o=/^\d+%$/;o.test(t[i])&&(a+=1)}}),n===a?t:!1},M0=function(t,r){var n=t.hex?Fr(t.hex):Fr(t),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),s=n.toHex();a.s===0&&(a.h=r||0,i.h=r||0);var l=s==="000000"&&o.a===0;return{hsl:a,hex:l?"transparent":"#"+s,rgb:o,hsv:i,oldHue:t.h||r||a.h,source:t.source}},Ed=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&Fr(t).isValid()},hL=function(t){if(!t)return"#fff";var r=M0(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},Fk=function(t,r){var n=t.replace("°","");return Fr(r+" ("+n+")")._ok},nE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bst=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Mst(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xst(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Ist(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ko=function(t){var r=function(n){Ist(a,n);function a(i){Mst(this,a);var o=xst(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return o.handleChange=function(s,l){var A=Q$(s);if(A){var c=M0(s,s.h||o.state.oldHue);o.setState(c),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,c,l),o.props.onChange&&o.props.onChange(c,l)}},o.handleSwatchHover=function(s,l){var A=Q$(s);if(A){var c=M0(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(c,l)}},o.state=nE({},M0(i.color,0)),o.debounce=eCe(function(s,l,A){s(l,A)},100),o}return Bst(a,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),te.createElement(t,nE({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return nE({},M0(o.color,s.oldHue))}}]),a}(m.PureComponent||m.Component);return r.propTypes=nE({},t.propTypes),r.defaultProps=nE({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},bst=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sst=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Rst(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Tst(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Qst=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){Tst(a,n);function a(){var i,o,s,l;Rst(this,a);for(var A=arguments.length,c=Array(A),u=0;u<A;u++)c[u]=arguments[u];return l=(o=(s=D$(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(c))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},o),D$(s,l)}return Sst(a,[{key:"render",value:function(){return te.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},te.createElement(t,bst({},this.props,this.state)))}}]),a}(te.Component)},F$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dst=13,Fst=function(t){var r=t.color,n=t.style,a=t.onClick,i=a===void 0?function(){}:a,o=t.onHover,s=t.title,l=s===void 0?r:s,A=t.children,c=t.focus,u=t.focusStyle,d=u===void 0?{}:u,f=r==="transparent",h=Jr({default:{swatch:F$({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?d:{})}}),g=function(w){return i(r,w)},p=function(w){return w.keyCode===Dst&&i(r,w)},E=function(w){return o(r,w)},y={};return o&&(y.onMouseOver=E),te.createElement("div",F$({style:h.swatch,onClick:g,title:l,tabIndex:0,onKeyDown:p},y),A,f&&te.createElement(Hv,{borderRadius:h.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Qh=Qst(Fst);var _st=function(t){var r=t.direction,n=Jr({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return te.createElement("div",{style:n.picker})},Nst=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aCe=function(t){var r=t.rgb,n=t.hsl,a=t.width,i=t.height,o=t.onChange,s=t.direction,l=t.style,A=t.renderers,c=t.pointer,u=t.className,d=u===void 0?"":u,f=Jr({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:l}}});return te.createElement("div",{style:f.picker,className:"alpha-picker "+d},te.createElement(oL,Nst({},f.alpha,{rgb:r,hsl:n,pointer:c,renderers:A,onChange:o,direction:s})))};aCe.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:_st};ko(aCe);function iCe(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var kst="__lodash_hash_undefined__";function Pst(e){return this.__data__.set(e,kst),this}function Ost(e){return this.__data__.has(e)}function Gb(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Lc;++t<r;)this.add(e[t])}Gb.prototype.add=Gb.prototype.push=Pst;Gb.prototype.has=Ost;function zst(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function jst(e,t){return e.has(t)}var Yst=1,Lst=2;function oCe(e,t,r,n,a,i){var o=r&Yst,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var A=i.get(e),c=i.get(t);if(A&&c)return A==t&&c==e;var u=-1,d=!0,f=r&Lst?new Gb:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var h=e[u],g=t[u];if(n)var p=o?n(g,h,u,t,e,i):n(h,g,u,e,t,i);if(p!==void 0){if(p)continue;d=!1;break}if(f){if(!zst(t,function(E,y){if(!jst(f,y)&&(h===E||a(h,E,r,n,i)))return f.push(y)})){d=!1;break}}else if(!(h===g||a(h,g,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function Ust(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function Hst(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Gst=1,Kst=2,Vst="[object Boolean]",Jst="[object Date]",Wst="[object Error]",Xst="[object Map]",qst="[object Number]",Zst="[object RegExp]",$st="[object Set]",elt="[object String]",tlt="[object Symbol]",rlt="[object ArrayBuffer]",nlt="[object DataView]",_$=rd?rd.prototype:void 0,_k=_$?_$.valueOf:void 0;function alt(e,t,r,n,a,i,o){switch(r){case nlt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rlt:return!(e.byteLength!=t.byteLength||!i(new Yb(e),new Yb(t)));case Vst:case Jst:case qst:return kC(+e,+t);case Wst:return e.name==t.name&&e.message==t.message;case Zst:case elt:return e==t+"";case Xst:var s=Ust;case $st:var l=n&Gst;if(s||(s=Hst),e.size!=t.size&&!l)return!1;var A=o.get(e);if(A)return A==t;n|=Kst,o.set(e,t);var c=oCe(s(e),s(t),n,a,i,o);return o.delete(e),c;case tlt:if(_k)return _k.call(e)==_k.call(t)}return!1}function ilt(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}function olt(e,t,r){var n=t(e);return ss(e)?n:ilt(n,r(e))}function slt(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function llt(){return[]}var Alt=Object.prototype,clt=Alt.propertyIsEnumerable,N$=Object.getOwnPropertySymbols,ult=N$?function(e){return e==null?[]:(e=Object(e),slt(N$(e),function(t){return clt.call(e,t)}))}:llt;function k$(e){return olt(e,fL,ult)}var dlt=1,flt=Object.prototype,hlt=flt.hasOwnProperty;function glt(e,t,r,n,a,i){var o=r&dlt,s=k$(e),l=s.length,A=k$(t),c=A.length;if(l!=c&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:hlt.call(t,d)))return!1}var f=i.get(e),h=i.get(t);if(f&&h)return f==t&&h==e;var g=!0;i.set(e,t),i.set(t,e);for(var p=o;++u<l;){d=s[u];var E=e[d],y=t[d];if(n)var C=o?n(y,E,d,t,e,i):n(E,y,d,e,t,i);if(!(C===void 0?E===y||a(E,y,r,n,i):C)){g=!1;break}p||(p=d=="constructor")}if(g&&!p){var w=e.constructor,B=t.constructor;w!=B&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof B=="function"&&B instanceof B)&&(g=!1)}return i.delete(e),i.delete(t),g}var xj=Th(zl,"DataView"),Ij=Th(zl,"Promise"),bj=Th(zl,"Set"),Sj=Th(zl,"WeakMap"),P$="[object Map]",plt="[object Object]",O$="[object Promise]",z$="[object Set]",j$="[object WeakMap]",Y$="[object DataView]",vlt=Rh(xj),mlt=Rh(Ry),Elt=Rh(Ij),ylt=Rh(bj),Clt=Rh(Sj),Tu=Sh;(xj&&Tu(new xj(new ArrayBuffer(1)))!=Y$||Ry&&Tu(new Ry)!=P$||Ij&&Tu(Ij.resolve())!=O$||bj&&Tu(new bj)!=z$||Sj&&Tu(new Sj)!=j$)&&(Tu=function(e){var t=Sh(e),r=t==plt?e.constructor:void 0,n=r?Rh(r):"";if(n)switch(n){case vlt:return Y$;case mlt:return P$;case Elt:return O$;case ylt:return z$;case Clt:return j$}return t});var wlt=1,L$="[object Arguments]",U$="[object Array]",Ow="[object Object]",Blt=Object.prototype,H$=Blt.hasOwnProperty;function Mlt(e,t,r,n,a,i){var o=ss(e),s=ss(t),l=o?U$:Tu(e),A=s?U$:Tu(t);l=l==L$?Ow:l,A=A==L$?Ow:A;var c=l==Ow,u=A==Ow,d=l==A;if(d&&Ub(e)){if(!Ub(t))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new CA),o||uL(e)?oCe(e,t,r,n,a,i):alt(e,t,l,r,n,a,i);if(!(r&wlt)){var f=c&&H$.call(e,"__wrapped__"),h=u&&H$.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,p=h?t.value():t;return i||(i=new CA),a(g,p,r,n,i)}}return d?(i||(i=new CA),glt(e,t,r,n,a,i)):!1}function gL(e,t,r,n,a){return e===t?!0:e==null||t==null||!nd(e)&&!nd(t)?e!==e&&t!==t:Mlt(e,t,r,n,gL,a)}var xlt=1,Ilt=2;function blt(e,t,r,n){var a=r.length,i=a;if(e==null)return!i;for(e=Object(e);a--;){var o=r[a];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=r[a];var s=o[0],l=e[s],A=o[1];if(o[2]){if(l===void 0&&!(s in e))return!1}else{var c=new CA,u;if(!(u===void 0?gL(A,l,xlt|Ilt,n,c):u))return!1}}return!0}function sCe(e){return e===e&&!js(e)}function Slt(e){for(var t=fL(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,sCe(a)]}return t}function lCe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Rlt(e){var t=Slt(e);return t.length==1&&t[0][2]?lCe(t[0][0],t[0][1]):function(r){return r===e||blt(r,e,t)}}var Tlt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qlt=/^\w*$/;function pL(e,t){if(ss(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||VR(e)?!0:Qlt.test(e)||!Tlt.test(e)||t!=null&&e in Object(t)}var Dlt="Expected a function";function vL(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Dlt);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(vL.Cache||Lc),r}vL.Cache=Lc;var Flt=500;function _lt(e){var t=vL(e,function(n){return r.size===Flt&&r.clear(),n}),r=t.cache;return t}var Nlt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,klt=/\\(\\)?/g,Plt=_lt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Nlt,function(r,n,a,i){t.push(a?i.replace(klt,"$1"):n||r)}),t}),G$=rd?rd.prototype:void 0,K$=G$?G$.toString:void 0;function ACe(e){if(typeof e=="string")return e;if(ss(e))return iCe(e,ACe)+"";if(VR(e))return K$?K$.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Olt(e){return e==null?"":ACe(e)}function cCe(e,t){return ss(e)?e:pL(e,t)?[e]:Plt(Olt(e))}function XR(e){if(typeof e=="string"||VR(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function uCe(e,t){t=cCe(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[XR(t[r++])];return r&&r==n?e:void 0}function zlt(e,t,r){var n=e==null?void 0:uCe(e,t);return n===void 0?r:n}function jlt(e,t){return e!=null&&t in Object(e)}function Ylt(e,t,r){t=cCe(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=XR(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&cL(a)&&dL(o,a)&&(ss(e)||Lb(e)))}function Llt(e,t){return e!=null&&Ylt(e,t,jlt)}var Ult=1,Hlt=2;function Glt(e,t){return pL(e)&&sCe(t)?lCe(XR(e),t):function(r){var n=zlt(r,e);return n===void 0&&n===t?Llt(r,e):gL(t,n,Ult|Hlt)}}function Klt(e){return function(t){return t==null?void 0:t[e]}}function Vlt(e){return function(t){return uCe(t,e)}}function Jlt(e){return pL(e)?Klt(XR(e)):Vlt(e)}function Wlt(e){return typeof e=="function"?e:e==null?KR:typeof e=="object"?ss(e)?Glt(e[0],e[1]):Rlt(e):Jlt(e)}function Xlt(e,t){var r=-1,n=Kv(e)?Array(e.length):[];return tCe(e,function(a,i,o){n[++r]=t(a,i,o)}),n}function Dh(e,t){var r=ss(e)?iCe:Xlt;return r(e,Wlt(t))}var qlt=function(t){var r=t.colors,n=t.onClick,a=t.onSwatchHover,i=Jr({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return te.createElement("div",{style:i.swatches},Dh(r,function(o){return te.createElement(Qh,{key:o,color:o,style:i.swatch,onClick:n,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}})}),te.createElement("div",{style:i.clear}))},mL=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,l=t.styles,A=l===void 0?{}:l,c=t.className,u=c===void 0?"":c,d=a==="transparent",f=function(p,E){Ed(p)&&r({hex:p,source:"hex"},E)},h=Jr(No({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:a,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:hL(a),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+a+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},A),{"hide-triangle":s==="hide"});return te.createElement("div",{style:h.card,className:"block-picker "+u},te.createElement("div",{style:h.triangle}),te.createElement("div",{style:h.head},d&&te.createElement(Hv,{borderRadius:"6px 6px 0 0"}),te.createElement("div",{style:h.label},a)),te.createElement("div",{style:h.body},te.createElement(qlt,{colors:i,onClick:f,onSwatchHover:n}),te.createElement(In,{style:{input:h.input},value:a,onChange:f})))};mL.propTypes={width:U.oneOfType([U.string,U.number]),colors:U.arrayOf(U.string),triangle:U.oneOf(["top","hide"]),styles:U.object};mL.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};const Zlt=ko(mL);var ep={100:"#ffcdd2",300:"#e57373",500:"#f44336",700:"#d32f2f",900:"#b71c1c"},tp={100:"#f8bbd0",300:"#f06292",500:"#e91e63",700:"#c2185b",900:"#880e4f"},rp={100:"#e1bee7",300:"#ba68c8",500:"#9c27b0",700:"#7b1fa2",900:"#4a148c"},np={100:"#d1c4e9",300:"#9575cd",500:"#673ab7",700:"#512da8",900:"#311b92"},ap={100:"#c5cae9",300:"#7986cb",500:"#3f51b5",700:"#303f9f",900:"#1a237e"},ip={100:"#bbdefb",300:"#64b5f6",500:"#2196f3",700:"#1976d2",900:"#0d47a1"},op={100:"#b3e5fc",300:"#4fc3f7",500:"#03a9f4",700:"#0288d1",900:"#01579b"},sp={100:"#b2ebf2",300:"#4dd0e1",500:"#00bcd4",700:"#0097a7",900:"#006064"},lp={100:"#b2dfdb",300:"#4db6ac",500:"#009688",700:"#00796b",900:"#004d40"},x0={100:"#c8e6c9",300:"#81c784",500:"#4caf50",700:"#388e3c"},Ap={100:"#dcedc8",300:"#aed581",500:"#8bc34a",700:"#689f38",900:"#33691e"},cp={100:"#f0f4c3",300:"#dce775",500:"#cddc39",700:"#afb42b",900:"#827717"},up={100:"#fff9c4",300:"#fff176",500:"#ffeb3b",700:"#fbc02d",900:"#f57f17"},dp={100:"#ffecb3",300:"#ffd54f",500:"#ffc107",700:"#ffa000",900:"#ff6f00"},fp={100:"#ffe0b2",300:"#ffb74d",500:"#ff9800",700:"#f57c00",900:"#e65100"},hp={100:"#ffccbc",300:"#ff8a65",500:"#ff5722",700:"#e64a19",900:"#bf360c"},gp={100:"#d7ccc8",300:"#a1887f",500:"#795548",700:"#5d4037",900:"#3e2723"},pp={100:"#cfd8dc",300:"#90a4ae",500:"#607d8b",700:"#455a64",900:"#263238"},dCe=function(t){var r=t.color,n=t.onClick,a=t.onSwatchHover,i=t.hover,o=t.active,s=t.circleSize,l=t.circleSpacing,A=Jr({default:{swatch:{width:s,height:s,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:i,active:o});return te.createElement("div",{style:A.swatch},te.createElement(Qh,{style:A.Swatch,color:r,onClick:n,onHover:a,focusStyle:{boxShadow:A.Swatch.boxShadow+", 0 0 5px "+r}}))};dCe.defaultProps={circleSize:28,circleSpacing:14};const $lt=iL.handleHover(dCe);var EL=function(t){var r=t.width,n=t.onChange,a=t.onSwatchHover,i=t.colors,o=t.hex,s=t.circleSize,l=t.styles,A=l===void 0?{}:l,c=t.circleSpacing,u=t.className,d=u===void 0?"":u,f=Jr(No({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},A)),h=function(p,E){return n({hex:p,source:"hex"},E)};return te.createElement("div",{style:f.card,className:"circle-picker "+d},Dh(i,function(g){return te.createElement($lt,{key:g,color:g,onClick:h,onSwatchHover:a,active:o===g.toLowerCase(),circleSize:s,circleSpacing:c})}))};EL.propTypes={width:U.oneOfType([U.string,U.number]),circleSize:U.number,circleSpacing:U.number,styles:U.object};EL.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[ep[500],tp[500],rp[500],np[500],ap[500],ip[500],op[500],sp[500],lp[500],x0[500],Ap[500],cp[500],up[500],dp[500],fp[500],hp[500],gp[500],pp[500]],styles:{}};ko(EL);function V$(e){return e===void 0}var zw={},J$;function eAt(){if(J$)return zw;J$=1,Object.defineProperty(zw,"__esModule",{value:!0});var e=Object.assign||function(o){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var A in l)Object.prototype.hasOwnProperty.call(l,A)&&(o[A]=l[A])}return o},t=cr(),r=n(t);function n(o){return o&&o.__esModule?o:{default:o}}function a(o,s){var l={};for(var A in o)s.indexOf(A)>=0||Object.prototype.hasOwnProperty.call(o,A)&&(l[A]=o[A]);return l}var i=24;return zw.default=function(o){var s=o.fill,l=s===void 0?"currentColor":s,A=o.width,c=A===void 0?i:A,u=o.height,d=u===void 0?i:u,f=o.style,h=f===void 0?{}:f,g=a(o,["fill","width","height","style"]);return r.default.createElement("svg",e({viewBox:"0 0 "+i+" "+i,style:e({fill:l,width:c,height:d},h)},g),r.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},zw}var tAt=eAt();const rAt=Nr(tAt);var nAt=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function aAt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iAt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function oAt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var fCe=function(e){oAt(t,e);function t(r){aAt(this,t);var n=iAt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(a,i){a.hex?Ed(a.hex)&&n.props.onChange({hex:a.hex,source:"hex"},i):a.r||a.g||a.b?n.props.onChange({r:a.r||n.props.rgb.r,g:a.g||n.props.rgb.g,b:a.b||n.props.rgb.b,source:"rgb"},i):a.a?(a.a<0?a.a=0:a.a>1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},i)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(V$(a.s)?n.props.hsl.s:a.s),l:Number(V$(a.l)?n.props.hsl.l:a.l),source:"hsl"},i))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return nAt(t,[{key:"render",value:function(){var n=this,a=Jr({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),i=void 0;return this.state.view==="hex"?i=te.createElement("div",{style:a.fields,className:"flexbox-fix"},te.createElement("div",{style:a.field},te.createElement(In,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=te.createElement("div",{style:a.fields,className:"flexbox-fix"},te.createElement("div",{style:a.field},te.createElement(In,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),te.createElement("div",{style:a.field},te.createElement(In,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),te.createElement("div",{style:a.field},te.createElement(In,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),te.createElement("div",{style:a.alpha},te.createElement(In,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=te.createElement("div",{style:a.fields,className:"flexbox-fix"},te.createElement("div",{style:a.field},te.createElement(In,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),te.createElement("div",{style:a.field},te.createElement(In,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),te.createElement("div",{style:a.field},te.createElement(In,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),te.createElement("div",{style:a.alpha},te.createElement(In,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),te.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,te.createElement("div",{style:a.toggle},te.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},te.createElement(rAt,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),t}(te.Component);fCe.defaultProps={view:"hex"};var W$=function(){var t=Jr({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return te.createElement("div",{style:t.picker})},sAt=function(){var t=Jr({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return te.createElement("div",{style:t.picker})},yL=function(t){var r=t.width,n=t.onChange,a=t.disableAlpha,i=t.rgb,o=t.hsl,s=t.hsv,l=t.hex,A=t.renderers,c=t.styles,u=c===void 0?{}:c,d=t.className,f=d===void 0?"":d,h=t.defaultView,g=Jr(No({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},u),{disableAlpha:a});return te.createElement("div",{style:g.picker,className:"chrome-picker "+f},te.createElement("div",{style:g.saturation},te.createElement(JR,{style:g.Saturation,hsl:o,hsv:s,pointer:sAt,onChange:n})),te.createElement("div",{style:g.body},te.createElement("div",{style:g.controls,className:"flexbox-fix"},te.createElement("div",{style:g.color},te.createElement("div",{style:g.swatch},te.createElement("div",{style:g.active}),te.createElement(Hv,{renderers:A}))),te.createElement("div",{style:g.toggles},te.createElement("div",{style:g.hue},te.createElement(Gv,{style:g.Hue,hsl:o,pointer:W$,onChange:n})),te.createElement("div",{style:g.alpha},te.createElement(oL,{style:g.Alpha,rgb:i,hsl:o,pointer:W$,renderers:A,onChange:n})))),te.createElement(fCe,{rgb:i,hsl:o,hex:l,view:h,onChange:n,disableAlpha:a})))};yL.propTypes={width:U.oneOfType([U.string,U.number]),disableAlpha:U.bool,styles:U.object,defaultView:U.oneOf(["hex","rgb","hsl"])};yL.defaultProps={width:225,disableAlpha:!1,styles:{}};ko(yL);var lAt=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.active,s=Jr({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:hL(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return te.createElement(Qh,{style:s.color,color:r,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},te.createElement("div",{style:s.dot}))},AAt=function(t){var r=t.hex,n=t.rgb,a=t.onChange,i=Jr({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(l,A){l.r||l.g||l.b?a({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},A):a({hex:l.hex,source:"hex"},A)};return te.createElement("div",{style:i.fields,className:"flexbox-fix"},te.createElement("div",{style:i.active}),te.createElement(In,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:r,onChange:o}),te.createElement(In,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),te.createElement(In,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),te.createElement(In,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},CL=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.colors,i=t.hex,o=t.rgb,s=t.styles,l=s===void 0?{}:s,A=t.className,c=A===void 0?"":A,u=Jr(No({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),d=function(h,g){h.hex?Ed(h.hex)&&r({hex:h.hex,source:"hex"},g):r(h,g)};return te.createElement(PC,{style:u.Compact,styles:l},te.createElement("div",{style:u.compact,className:"compact-picker "+c},te.createElement("div",null,Dh(a,function(f){return te.createElement(lAt,{key:f,color:f,active:f.toLowerCase()===i,onClick:d,onSwatchHover:n})}),te.createElement("div",{style:u.clear})),te.createElement(AAt,{hex:i,rgb:o,onChange:d})))};CL.propTypes={colors:U.arrayOf(U.string),styles:U.object};CL.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};ko(CL);var cAt=function(t){var r=t.hover,n=t.color,a=t.onClick,i=t.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=Jr({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:r});return te.createElement("div",{style:s.swatch},te.createElement(Qh,{color:n,onClick:a,onHover:i,focusStyle:o}))};const uAt=iL.handleHover(cAt);var wL=function(t){var r=t.width,n=t.colors,a=t.onChange,i=t.onSwatchHover,o=t.triangle,s=t.styles,l=s===void 0?{}:s,A=t.className,c=A===void 0?"":A,u=Jr(No({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),d=function(h,g){return a({hex:h,source:"hex"},g)};return te.createElement("div",{style:u.card,className:"github-picker "+c},te.createElement("div",{style:u.triangleShadow}),te.createElement("div",{style:u.triangle}),Dh(n,function(f){return te.createElement(uAt,{color:f,key:f,onClick:d,onSwatchHover:i})}))};wL.propTypes={width:U.oneOfType([U.string,U.number]),colors:U.arrayOf(U.string),triangle:U.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:U.object};wL.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};ko(wL);var dAt=function(t){var r=t.direction,n=Jr({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return te.createElement("div",{style:n.picker})},fAt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BL=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.hsl,o=t.direction,s=t.pointer,l=t.styles,A=l===void 0?{}:l,c=t.className,u=c===void 0?"":c,d=Jr(No({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},A)),f=function(g){return a({a:1,h:g.h,l:.5,s:1})};return te.createElement("div",{style:d.picker,className:"hue-picker "+u},te.createElement(Gv,fAt({},d.hue,{hsl:i,pointer:s,onChange:f,direction:o})))};BL.propTypes={styles:U.object};BL.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:dAt,styles:{}};ko(BL);var hAt=function(t){var r=t.onChange,n=t.hex,a=t.rgb,i=t.styles,o=i===void 0?{}:i,s=t.className,l=s===void 0?"":s,A=Jr(No({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),c=function(d,f){d.hex?Ed(d.hex)&&r({hex:d.hex,source:"hex"},f):(d.r||d.g||d.b)&&r({r:d.r||a.r,g:d.g||a.g,b:d.b||a.b,source:"rgb"},f)};return te.createElement(PC,{styles:o},te.createElement("div",{style:A.material,className:"material-picker "+l},te.createElement(In,{style:{wrap:A.HEXwrap,input:A.HEXinput,label:A.HEXlabel},label:"hex",value:n,onChange:c}),te.createElement("div",{style:A.split,className:"flexbox-fix"},te.createElement("div",{style:A.third},te.createElement(In,{style:{wrap:A.RGBwrap,input:A.RGBinput,label:A.RGBlabel},label:"r",value:a.r,onChange:c})),te.createElement("div",{style:A.third},te.createElement(In,{style:{wrap:A.RGBwrap,input:A.RGBinput,label:A.RGBlabel},label:"g",value:a.g,onChange:c})),te.createElement("div",{style:A.third},te.createElement(In,{style:{wrap:A.RGBwrap,input:A.RGBinput,label:A.RGBlabel},label:"b",value:a.b,onChange:c})))))};ko(hAt);var gAt=function(t){var r=t.onChange,n=t.rgb,a=t.hsv,i=t.hex,o=Jr({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(A,c){A["#"]?Ed(A["#"])&&r({hex:A["#"],source:"hex"},c):A.r||A.g||A.b?r({r:A.r||n.r,g:A.g||n.g,b:A.b||n.b,source:"rgb"},c):(A.h||A.s||A.v)&&r({h:A.h||a.h,s:A.s||a.s,v:A.v||a.v,source:"hsv"},c)};return te.createElement("div",{style:o.fields},te.createElement(In,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(a.h),onChange:s}),te.createElement(In,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(a.s*100),onChange:s}),te.createElement(In,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(a.v*100),onChange:s}),te.createElement("div",{style:o.divider}),te.createElement(In,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),te.createElement(In,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),te.createElement(In,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),te.createElement("div",{style:o.divider}),te.createElement(In,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),te.createElement("div",{style:o.fieldSymbols},te.createElement("div",{style:o.symbol},"°"),te.createElement("div",{style:o.symbol},"%"),te.createElement("div",{style:o.symbol},"%")))},pAt=function(t){var r=t.hsl,n=Jr({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return te.createElement("div",{style:n.picker})},vAt=function(){var t=Jr({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return te.createElement("div",{style:t.pointer},te.createElement("div",{style:t.left},te.createElement("div",{style:t.leftInside})),te.createElement("div",{style:t.right},te.createElement("div",{style:t.rightInside})))},X$=function(t){var r=t.onClick,n=t.label,a=t.children,i=t.active,o=Jr({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return te.createElement("div",{style:o.button,onClick:r},n||a)},mAt=function(t){var r=t.rgb,n=t.currentColor,a=Jr({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return te.createElement("div",null,te.createElement("div",{style:a.label},"new"),te.createElement("div",{style:a.swatches},te.createElement("div",{style:a.new}),te.createElement("div",{style:a.current})),te.createElement("div",{style:a.label},"current"))},EAt=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function yAt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CAt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function wAt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ML=function(e){wAt(t,e);function t(r){yAt(this,t);var n=CAt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return EAt(t,[{key:"render",value:function(){var n=this.props,a=n.styles,i=a===void 0?{}:a,o=n.className,s=o===void 0?"":o,l=Jr(No({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},i));return te.createElement("div",{style:l.picker,className:"photoshop-picker "+s},te.createElement("div",{style:l.head},this.props.header),te.createElement("div",{style:l.body,className:"flexbox-fix"},te.createElement("div",{style:l.saturation},te.createElement(JR,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:pAt,onChange:this.props.onChange})),te.createElement("div",{style:l.hue},te.createElement(Gv,{direction:"vertical",hsl:this.props.hsl,pointer:vAt,onChange:this.props.onChange})),te.createElement("div",{style:l.controls},te.createElement("div",{style:l.top,className:"flexbox-fix"},te.createElement("div",{style:l.previews},te.createElement(mAt,{rgb:this.props.rgb,currentColor:this.state.currentColor})),te.createElement("div",{style:l.actions},te.createElement(X$,{label:"OK",onClick:this.props.onAccept,active:!0}),te.createElement(X$,{label:"Cancel",onClick:this.props.onCancel}),te.createElement(gAt,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(te.Component);ML.propTypes={header:U.string,styles:U.object};ML.defaultProps={header:"Color Picker",styles:{}};ko(ML);var BAt=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.disableAlpha,s=Jr({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),l=function(c,u){c.hex?Ed(c.hex)&&r({hex:c.hex,source:"hex"},u):c.r||c.g||c.b?r({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,a:n.a,source:"rgb"},u):c.a&&(c.a<0?c.a=0:c.a>100&&(c.a=100),c.a/=100,r({h:a.h,s:a.s,l:a.l,a:c.a,source:"rgb"},u))};return te.createElement("div",{style:s.fields,className:"flexbox-fix"},te.createElement("div",{style:s.double},te.createElement(In,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:l})),te.createElement("div",{style:s.single},te.createElement(In,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.single},te.createElement(In,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.single},te.createElement(In,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.alpha},te.createElement(In,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},MAt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hCe=function(t){var r=t.colors,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=Jr({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(A,c){a({hex:A,source:"hex"},c)};return te.createElement("div",{style:o.colors,className:"flexbox-fix"},r.map(function(l){var A=typeof l=="string"?{color:l}:l,c=""+A.color+(A.title||"");return te.createElement("div",{key:c,style:o.swatchWrap},te.createElement(Qh,MAt({},A,{style:o.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+A.color}})))}))};hCe.propTypes={colors:U.arrayOf(U.oneOfType([U.string,U.shape({color:U.string,title:U.string})])).isRequired};var xAt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xL=function(t){var r=t.width,n=t.rgb,a=t.hex,i=t.hsv,o=t.hsl,s=t.onChange,l=t.onSwatchHover,A=t.disableAlpha,c=t.presetColors,u=t.renderers,d=t.styles,f=d===void 0?{}:d,h=t.className,g=h===void 0?"":h,p=Jr(No({default:xAt({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},f),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},f),{disableAlpha:A});return te.createElement("div",{style:p.picker,className:"sketch-picker "+g},te.createElement("div",{style:p.saturation},te.createElement(JR,{style:p.Saturation,hsl:o,hsv:i,onChange:s})),te.createElement("div",{style:p.controls,className:"flexbox-fix"},te.createElement("div",{style:p.sliders},te.createElement("div",{style:p.hue},te.createElement(Gv,{style:p.Hue,hsl:o,onChange:s})),te.createElement("div",{style:p.alpha},te.createElement(oL,{style:p.Alpha,rgb:n,hsl:o,renderers:u,onChange:s}))),te.createElement("div",{style:p.color},te.createElement(Hv,null),te.createElement("div",{style:p.activeColor}))),te.createElement(BAt,{rgb:n,hsl:o,hex:a,onChange:s,disableAlpha:A}),te.createElement(hCe,{colors:c,onClick:s,onSwatchHover:l}))};xL.propTypes={disableAlpha:U.bool,width:U.oneOfType([U.string,U.number]),styles:U.object};xL.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};ko(xL);var aE=function(t){var r=t.hsl,n=t.offset,a=t.onClick,i=a===void 0?function(){}:a,o=t.active,s=t.first,l=t.last,A=Jr({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:s,last:l}),c=function(d){return i({h:r.h,s:.5,l:n,source:"hsl"},d)};return te.createElement("div",{style:A.swatch,onClick:c})},IAt=function(t){var r=t.onClick,n=t.hsl,a=Jr({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return te.createElement("div",{style:a.swatches},te.createElement("div",{style:a.swatch},te.createElement(aE,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:r,first:!0})),te.createElement("div",{style:a.swatch},te.createElement(aE,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:r})),te.createElement("div",{style:a.swatch},te.createElement(aE,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:r})),te.createElement("div",{style:a.swatch},te.createElement(aE,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:r})),te.createElement("div",{style:a.swatch},te.createElement(aE,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:r,last:!0})),te.createElement("div",{style:a.clear}))},bAt=function(){var t=Jr({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return te.createElement("div",{style:t.picker})},IL=function(t){var r=t.hsl,n=t.onChange,a=t.pointer,i=t.styles,o=i===void 0?{}:i,s=t.className,l=s===void 0?"":s,A=Jr(No({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},o));return te.createElement("div",{style:A.wrap||{},className:"slider-picker "+l},te.createElement("div",{style:A.hue},te.createElement(Gv,{style:A.Hue,hsl:r,pointer:a,onChange:n})),te.createElement("div",{style:A.swatches},te.createElement(IAt,{hsl:r,onClick:n})))};IL.propTypes={styles:U.object};IL.defaultProps={pointer:bAt,styles:{}};ko(IL);var jw={},q$;function SAt(){if(q$)return jw;q$=1,Object.defineProperty(jw,"__esModule",{value:!0});var e=Object.assign||function(o){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var A in l)Object.prototype.hasOwnProperty.call(l,A)&&(o[A]=l[A])}return o},t=cr(),r=n(t);function n(o){return o&&o.__esModule?o:{default:o}}function a(o,s){var l={};for(var A in o)s.indexOf(A)>=0||Object.prototype.hasOwnProperty.call(o,A)&&(l[A]=o[A]);return l}var i=24;return jw.default=function(o){var s=o.fill,l=s===void 0?"currentColor":s,A=o.width,c=A===void 0?i:A,u=o.height,d=u===void 0?i:u,f=o.style,h=f===void 0?{}:f,g=a(o,["fill","width","height","style"]);return r.default.createElement("svg",e({viewBox:"0 0 "+i+" "+i,style:e({fill:l,width:c,height:d},h)},g),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},jw}var RAt=SAt();const TAt=Nr(RAt);var QAt=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.first,s=t.last,l=t.active,A=Jr({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:hL(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:o,last:s,active:l,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return te.createElement(Qh,{color:r,style:A.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},te.createElement("div",{style:A.check},te.createElement(TAt,null)))},DAt=function(t){var r=t.onClick,n=t.onSwatchHover,a=t.group,i=t.active,o=Jr({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return te.createElement("div",{style:o.group},Dh(a,function(s,l){return te.createElement(QAt,{key:s,color:s,active:s.toLowerCase()===i,first:l===0,last:l===a.length-1,onClick:r,onSwatchHover:n})}))},bL=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.onSwatchHover,o=t.colors,s=t.hex,l=t.styles,A=l===void 0?{}:l,c=t.className,u=c===void 0?"":c,d=Jr(No({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},A)),f=function(g,p){return a({hex:g,source:"hex"},p)};return te.createElement("div",{style:d.picker,className:"swatches-picker "+u},te.createElement(PC,null,te.createElement("div",{style:d.overflow},te.createElement("div",{style:d.body},Dh(o,function(h){return te.createElement(DAt,{key:h.toString(),group:h,active:s,onClick:f,onSwatchHover:i})}),te.createElement("div",{style:d.clear})))))};bL.propTypes={width:U.oneOfType([U.string,U.number]),height:U.oneOfType([U.string,U.number]),colors:U.arrayOf(U.arrayOf(U.string)),styles:U.object};bL.defaultProps={width:320,height:240,colors:[[ep[900],ep[700],ep[500],ep[300],ep[100]],[tp[900],tp[700],tp[500],tp[300],tp[100]],[rp[900],rp[700],rp[500],rp[300],rp[100]],[np[900],np[700],np[500],np[300],np[100]],[ap[900],ap[700],ap[500],ap[300],ap[100]],[ip[900],ip[700],ip[500],ip[300],ip[100]],[op[900],op[700],op[500],op[300],op[100]],[sp[900],sp[700],sp[500],sp[300],sp[100]],[lp[900],lp[700],lp[500],lp[300],lp[100]],["#194D33",x0[700],x0[500],x0[300],x0[100]],[Ap[900],Ap[700],Ap[500],Ap[300],Ap[100]],[cp[900],cp[700],cp[500],cp[300],cp[100]],[up[900],up[700],up[500],up[300],up[100]],[dp[900],dp[700],dp[500],dp[300],dp[100]],[fp[900],fp[700],fp[500],fp[300],fp[100]],[hp[900],hp[700],hp[500],hp[300],hp[100]],[gp[900],gp[700],gp[500],gp[300],gp[100]],[pp[900],pp[700],pp[500],pp[300],pp[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};ko(bL);var SL=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,l=t.styles,A=l===void 0?{}:l,c=t.className,u=c===void 0?"":c,d=Jr(No({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},A),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),f=function(g,p){Ed(g)&&r({hex:g,source:"hex"},p)};return te.createElement("div",{style:d.card,className:"twitter-picker "+u},te.createElement("div",{style:d.triangleShadow}),te.createElement("div",{style:d.triangle}),te.createElement("div",{style:d.body},Dh(i,function(h,g){return te.createElement(Qh,{key:g,color:h,hex:h,style:d.swatch,onClick:f,onHover:n,focusStyle:{boxShadow:"0 0 4px "+h}})}),te.createElement("div",{style:d.hash},"#"),te.createElement(In,{label:null,style:{input:d.input},value:a.replace("#",""),onChange:f}),te.createElement("div",{style:d.clear})))};SL.propTypes={width:U.oneOfType([U.string,U.number]),triangle:U.oneOf(["hide","top-left","top-right"]),colors:U.arrayOf(U.string),styles:U.object};SL.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};ko(SL);var RL=function(t){var r=Jr({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return te.createElement("div",{style:r.picker})};RL.propTypes={hsl:U.shape({h:U.number,s:U.number,l:U.number,a:U.number})};RL.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var TL=function(t){var r=Jr({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return te.createElement("div",{style:r.picker})};TL.propTypes={hsl:U.shape({h:U.number,s:U.number,l:U.number,a:U.number})};TL.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var FAt=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.hsv,s=function(f,h){if(f.hex)Ed(f.hex)&&r({hex:f.hex,source:"hex"},h);else if(f.rgb){var g=f.rgb.split(",");Fk(f.rgb,"rgb")&&r({r:g[0],g:g[1],b:g[2],a:1,source:"rgb"},h)}else if(f.hsv){var p=f.hsv.split(",");Fk(f.hsv,"hsv")&&(p[2]=p[2].replace("%",""),p[1]=p[1].replace("%",""),p[0]=p[0].replace("°",""),p[1]==1?p[1]=.01:p[2]==1&&(p[2]=.01),r({h:Number(p[0]),s:Number(p[1]),v:Number(p[2]),source:"hsv"},h))}else if(f.hsl){var E=f.hsl.split(",");Fk(f.hsl,"hsl")&&(E[2]=E[2].replace("%",""),E[1]=E[1].replace("%",""),E[0]=E[0].replace("°",""),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),r({h:Number(E[0]),s:Number(E[1]),v:Number(E[2]),source:"hsl"},h))}},l=Jr({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),A=n.r+", "+n.g+", "+n.b,c=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",u=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return te.createElement("div",{style:l.wrap,className:"flexbox-fix"},te.createElement("div",{style:l.fields},te.createElement("div",{style:l.double},te.createElement(In,{style:{input:l.input,label:l.label},label:"hex",value:i,onChange:s})),te.createElement("div",{style:l.column},te.createElement("div",{style:l.single},te.createElement(In,{style:{input:l.input2,label:l.label2},label:"rgb",value:A,onChange:s})),te.createElement("div",{style:l.single},te.createElement(In,{style:{input:l.input2,label:l.label2},label:"hsv",value:u,onChange:s})),te.createElement("div",{style:l.single},te.createElement(In,{style:{input:l.input2,label:l.label2},label:"hsl",value:c,onChange:s})))))},QL=function(t){var r=t.width,n=t.onChange,a=t.rgb,i=t.hsl,o=t.hsv,s=t.hex,l=t.header,A=t.styles,c=A===void 0?{}:A,u=t.className,d=u===void 0?"":u,f=Jr(No({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return te.createElement("div",{style:f.picker,className:"google-picker "+d},te.createElement("div",{style:f.head},l),te.createElement("div",{style:f.swatch}),te.createElement("div",{style:f.saturation},te.createElement(JR,{hsl:i,hsv:o,pointer:RL,onChange:n})),te.createElement("div",{style:f.body},te.createElement("div",{style:f.controls,className:"flexbox-fix"},te.createElement("div",{style:f.hue},te.createElement(Gv,{style:f.Hue,hsl:i,radius:"4px",pointer:TL,onChange:n}))),te.createElement(FAt,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};QL.propTypes={width:U.oneOfType([U.string,U.number]),styles:U.object,header:U.string};QL.defaultProps={width:652,styles:{},header:"Color picker"};ko(QL);const Qy=({onChange:e,color:t,style:r,triangle:n,buttonStyle:a,position:i="bottom"})=>{const o=Ye(h=>h.cti.ui.primaryColor),[s,l]=m.useState(!1),A=new Event("onChange"),c=[o,"#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#FF8801"],u=()=>{l(!s)},d=(h,g)=>{l(!1),e(h,g),dispatchEvent(A)};let f="";switch(i){case"top":f="translateY(-200px)";break}return v.jsxs("div",{className:"color-picker-container",children:[v.jsxs("div",{className:"color-button",style:a,children:[v.jsx("div",{onClick:u,style:{width:"36px",height:"14px",borderRadius:"2px",backgroundColor:t}}),s?v.jsx("div",{className:"wrapper",style:{...r,transform:f},children:v.jsx(Zlt,{triangle:n,colors:c,color:t,onChangeComplete:d,style:r})}):null]}),v.jsx("div",{style:a,className:"reset-button",children:t?v.jsx(Zn,{placement:"top",title:"Supprimer la couleur",children:v.jsx(nt,{type:"danger",icon:v.jsx(Ba,{}),onClick:d,size:"small"})}):null})]})},{Option:_g}=Ir,gCe=()=>{const[e,t]=m.useState(!1),r=Ye(M=>M.cti.ui.primaryColor),n=Ye(M=>M.cti.settings.data.session),a=Ye(M=>M.cti.settings.user.homePageDefaultModule),i=Ye(M=>M.cti.settings.user.showGraphs),o=Ye(M=>M.cti.settings.user.spreadsheetEditor),s=Ye(M=>M.cti.settings.user.spreadsheetSeparator),l=Ye(M=>M.cti.settings.user.pmsiDefaultModule),A=Ye(M=>M.cti.menu.modules),c=Ye(M=>M.cti.settings.user.expandedRows),[u]=_e.useForm(),d=Pr(),f=n.CONNECTEDUSER,[h,g]=m.useState(r);let p=c==="ouvert";const E=async M=>{var S;M.expandedRows===!0?M.expandedRows="ouvert":M.expandedRows="fermé";let{...I}=M;d(zde(I)),t(!0),M.primaryColor===void 0?M.primaryColor=h:M.primaryColor=(S=M.primaryColor)==null?void 0:S.hex,d(Nde(M.primaryColor));try{await nnt(f,M),Tn({type:"success",message:"Succès",description:"Modification des settings utilisateur réussie !"}),u.resetFields()}catch{Tn({type:"error",message:"Erreur",description:"Une erreur est survenue pendant la mise à jour des settings utilisateur..."})}},y=M=>{g(M.hex),t(!0)},C=(M,I)=>{t(!0)},w=()=>{t(!1),u.submit(),Tn({type:"success",message:"Paramètres",description:"Paramètres enregistrés"})},B=Object.values(A).filter(M=>M.name.includes("PMSI"));return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"page-header",children:[v.jsx("h1",{className:"header-title",children:"Options"}),v.jsx("div",{className:"header-actions",children:v.jsx(dv,{handleClick:w,disabledAction:!e,toolTipTitle:"Enregistrer"})})]}),v.jsx("div",{className:"page-content",style:{overflow:"scroll"},children:v.jsxs(_e,{form:u,onValuesChange:C,onFinish:E,initialValues:{pmsiDefaultModule:l,homePageDefaultModule:a,spreadsheetSeparator:s,spreadsheetEditor:o,showGraphs:i,primaryColor:r,expandedRows:p},children:[v.jsxs("div",{className:"options-section",children:[v.jsx("h2",{className:"section-title",children:"Paramètres d'affichage "}),v.jsx(Ml,{style:{marginTop:"0px",marginBottom:"10px"}}),v.jsxs("div",{className:"section-body",children:[v.jsxs(Mi,{children:[v.jsx(zn,{span:4,children:v.jsx("span",{className:"first-label",children:"Principale"})}),v.jsx(zn,{span:6,children:v.jsx(_e.Item,{name:"primaryColor",className:"form-item-element",children:v.jsx(Qy,{color:h,onChange:y,style:{right:"120px",top:"24px",position:"relative"}})})})]}),v.jsxs(Mi,{children:[v.jsx(zn,{span:4,children:v.jsx("span",{className:"first-label",children:"Affichage des graphiques "})}),v.jsx(_e.Item,{name:"showGraphs",className:"form-item-element",children:v.jsx(Ir,{style:{width:160},options:[{value:"always",label:"toujours"},{value:"hidden",label:"masqués"},{value:"never",label:"jamais"}]})})]})]})]}),v.jsxs("div",{className:"options-section-middle",children:[v.jsx("h2",{className:"section-title",children:"Paramètres de l'export EXCEL "}),v.jsx(Ml,{style:{marginTop:"0px",marginBottom:"10px"}}),v.jsxs("div",{className:"section-body",children:[v.jsxs(Mi,{children:[v.jsx(zn,{span:4,children:v.jsx("span",{className:"first-label",children:"Editeur CSV "})}),v.jsx(zn,{span:6,children:v.jsx(_e.Item,{name:"spreadsheetEditor",className:"form-item-element",children:v.jsxs(Ir,{style:{width:160},children:[v.jsx(_g,{value:"EXCEL",children:"Microsoft Excel"}),v.jsx(_g,{value:"CSV",children:"Open Office"})]})})})]}),v.jsxs(Mi,{children:[v.jsx(zn,{span:4,children:v.jsx("span",{className:"first-label",children:"Séparateur "})}),v.jsx(zn,{span:6,children:v.jsx(_e.Item,{name:"spreadsheetSeparator",className:"form-item-element",children:v.jsxs(Ir,{style:{width:80},children:[v.jsx(_g,{value:";",children:";"}),v.jsx(_g,{value:",",children:","})]})})})]})]})]}),v.jsxs("div",{className:"options-section-middle",children:[v.jsx("h2",{className:"section-title",children:"Paramètres des menus "}),v.jsx(Ml,{style:{marginTop:"0px",marginBottom:"10px"}}),v.jsxs("div",{className:"section-body",children:[v.jsxs(Mi,{children:[v.jsx(zn,{span:4,children:v.jsx("span",{className:"first-label",children:"Module à ouvrir "})}),v.jsx(zn,{span:6,children:v.jsx(_e.Item,{name:"homePageDefaultModule",className:"form-item-element",children:v.jsx(Ir,{style:{width:160},children:Object.values(A).map(({name:M,label:I},S)=>v.jsx(_g,{value:M.toLowerCase(),children:I},S))})})})]}),B.length>1?v.jsxs(Mi,{children:[v.jsx(zn,{span:4,children:v.jsx("span",{className:"first-label",children:"Module PMSI par défaut"})}),v.jsx(zn,{span:6,children:v.jsx(_e.Item,{name:"pmsiDefaultModule",className:"form-item-element",children:v.jsx(Ir,{style:{width:160},children:B.map((M,I)=>v.jsx(_g,{value:M.name.toLowerCase(),children:M.label},I))})})})]}):null]})]}),v.jsxs("div",{className:"options-section-middle",children:[v.jsx("h2",{className:"section-title",children:"Paramètres des Tableaux"}),v.jsx(Ml,{style:{marginTop:"0px",marginBottom:"10px"}}),v.jsx("div",{className:"section-body",children:v.jsxs(Mi,{children:[v.jsx(zn,{span:4,children:v.jsx("span",{className:"first-label",children:"Ouverture par défaut des regroupements"})}),v.jsx(zn,{span:6,children:v.jsx(_e.Item,{className:"form-item-element",name:"expandedRows",valuePropName:"checked",children:v.jsx(Va,{defaultChecked:p})})})]})})]})]})})]})},xI=({status:e,env:t,provider:r,module:n,duration:a,start:i,running:o})=>{const s=Ye(h=>h.cti.settings.data),l=window.location,A=l.origin,c=l.pathname.replace(s.environment.ICTIDIR,`iCTI_${t.code}`);let u="exploit-env",d="",f="";switch(e){case 0:d="rgb(240, 255, 241)",f="3px solid rgb(124, 217, 146)";break;case 1:d="rgb(254, 255, 240)",f="3px solid rgb(247, 228, 99)";break;case 2:d="rgb(255, 242, 240)",f="3px solid rgb(235, 96, 96)";break;case-1:d="rgb(211,211,211)",f="3px solid rgb(122, 122, 122)";break}return v.jsx("a",{href:A+c,target:"_blank",rel:"noreferrer",children:v.jsxs("div",{className:u,style:{backgroundColor:d,border:f},children:[v.jsxs("div",{className:"exploit-label",children:[o===1&&v.jsx(Wf,{className:"exploit__icon",spin:!0}),n??`${t.code} - ${t.trig&&t.trig!==""?t.trig+" - ":""}${t.comment}`]}),i&&v.jsxs("div",{className:"exploit-duration",children:["Débuté le ",Nn(i).format("DD/MM/YYYY à HH:mm")]}),a&&v.jsxs("div",{className:"exploit-duration",children:["Durée: ",a]}),v.jsx("div",{className:"exploit-provider",children:r})]},n||t.code)})};xI.propTypes={status:U.number,env:U.object,provider:U.string,module:U.string,duration:U.string,start:U.string,running:U.number};const Z$={iCTI_activite:"ADMPROVIDER",iCTI_pmsi:"PMSIPROVIDER",iCTI_pmsipsy:"PMSIPSYPROVIDER",iCTI_pmsihad:"PMSIHADPROVIDER",iCTI_pmsissr:"PMSISSRPROVIDER",iCTI_rh:"RHPROVIDER",iCTI_compta:"COMPTAPROVIDER",iCTI_eco:"ECOPROVIDER",iCTI_dpi:"DPIPROVIDER"},pCe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M21.094 13.281a2.35 2.35 0 0 0-2.21 1.563H16.97l-1.384-4.153a.78.78 0 0 0-1.492.032l-2.174 7.605L9.364 2.996a.781.781 0 0 0-1.528-.06L4.859 14.843H2.344a.781.781 0 1 0 0 1.562h3.125a.78.78 0 0 0 .758-.591L8.44 6.959l2.508 15.045a.78.78 0 0 0 .727.652h.044a.78.78 0 0 0 .75-.566l2.432-8.51.764 2.292a.78.78 0 0 0 .741.534h2.478a2.344 2.344 0 1 0 2.21-3.125"})}),vCe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.344 15.875h3.125l3.125-12.5 3.125 18.75 3.125-10.937 1.562 4.687h3.125"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21.094 17.188a1.562 1.562 0 1 0 0-3.125 1.562 1.562 0 0 0 0 3.124"})]}),mCe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M4.663 5.078h15.625q.274 0 .546.035A3.224 3.224 0 0 0 17.049 2.4L4.2 4.594h-.014A3.22 3.22 0 0 0 2.179 5.87a4.28 4.28 0 0 1 2.484-.792M20.288 6.25H4.663a3.13 3.13 0 0 0-3.125 3.125v9.375a3.13 3.13 0 0 0 3.125 3.125h15.625a3.13 3.13 0 0 0 3.125-3.125V9.375a3.13 3.13 0 0 0-3.125-3.125m-2.32 9.375a1.562 1.562 0 1 1 0-3.125 1.562 1.562 0 0 1 0 3.125"}),v.jsx("path",{fill:"currentColor",d:"M1.563 12.67V7.814c0-1.059.585-2.833 2.62-3.217 1.725-.324 3.434-.324 3.434-.324s1.123.782.196.782c-.928 0-.904 1.196 0 1.196.903 0 0 1.147 0 1.147l-3.638 4.126z"})]}),ECe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M20.313 7.031H4.688a2.344 2.344 0 0 0-2.344 2.344v9.375a2.344 2.344 0 0 0 2.344 2.344h15.625a2.344 2.344 0 0 0 2.343-2.344V9.375a2.344 2.344 0 0 0-2.343-2.344Z"}),v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M20.086 7.031V5.566a2.442 2.442 0 0 0-2.898-2.397L4.328 5.364a2.44 2.44 0 0 0-1.984 2.4v2.392"}),v.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:2,d:"M17.969 14.625a.563.563 0 1 1 0-1.125.563.563 0 0 1 0 1.125Z"})]}),yCe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M17.969 2.344h-.557a.39.39 0 0 1-.364-.248A2.06 2.06 0 0 0 15.13.78H9.87a2.06 2.06 0 0 0-1.918 1.315.39.39 0 0 1-.364.248h-.557a3.125 3.125 0 0 0-3.125 3.125v15.625a3.125 3.125 0 0 0 3.125 3.125H17.97a3.125 3.125 0 0 0 3.125-3.125V5.469a3.125 3.125 0 0 0-3.125-3.125m-2.35 3.125H9.38a.781.781 0 1 1 0-1.563h6.238a.781.781 0 1 1 0 1.563"})}),CCe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M16.406 3.125h1.563a2.343 2.343 0 0 1 2.343 2.344v15.625a2.343 2.343 0 0 1-2.343 2.343H7.03a2.344 2.344 0 0 1-2.343-2.343V5.469A2.344 2.344 0 0 1 7.03 3.125h1.563"}),v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M15.13 1.563H9.87c-.705 0-1.276.57-1.276 1.275v.574c0 .704.571 1.276 1.276 1.276h5.26c.705 0 1.276-.572 1.276-1.276v-.574c0-.704-.571-1.275-1.276-1.275Z"})]}),wCe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M21.528 6.655a.195.195 0 0 0 0-.337L14.07 1.985a3.13 3.13 0 0 0-3.14 0L3.472 6.318a.195.195 0 0 0 0 .337l8.93 5.253a.2.2 0 0 0 .198 0zM2.637 7.984a.195.195 0 0 0-.293.17v8.491a2.34 2.34 0 0 0 1.164 2.021l7.918 4.748a.196.196 0 0 0 .293-.17v-9.85a.2.2 0 0 0-.098-.17zm10.644 5.444v9.814a.195.195 0 0 0 .293.17l7.918-4.748a2.34 2.34 0 0 0 1.164-2.019v-8.49a.196.196 0 0 0-.293-.17L13.38 13.26a.2.2 0 0 0-.098.169"})}),BCe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21.875 16.668V8.331a1.56 1.56 0 0 0-.776-1.349l-7.422-4.319a2.34 2.34 0 0 0-2.355 0L3.9 6.983a1.56 1.56 0 0 0-.776 1.348v8.337a1.56 1.56 0 0 0 .776 1.35l7.422 4.319a2.34 2.34 0 0 0 2.355 0l7.422-4.32a1.56 1.56 0 0 0 .775-1.349M3.37 7.519l9.13 5.371m0 0 9.13-5.371M12.5 12.89v9.766"})}),MCe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 26 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M12.889 9.89a.195.195 0 0 0 .222 0 7.42 7.42 0 0 1 6.272-.997.195.195 0 0 0 .251-.196A6.65 6.65 0 0 0 13 2.344a6.65 6.65 0 0 0-6.634 6.355.195.195 0 0 0 .251.195 7.42 7.42 0 0 1 6.272.997zm7.402.489a7.45 7.45 0 0 1-4.057 5.285.2.2 0 0 0-.111.18l.002.172a7.4 7.4 0 0 1-2.302 5.368.195.195 0 0 0 .031.308 6.6 6.6 0 0 0 3.443.964c3.519 0 6.548-2.943 6.64-6.462a6.64 6.64 0 0 0-3.357-5.95.194.194 0 0 0-.252.05.2.2 0 0 0-.037.085"}),v.jsx("path",{fill:"currentColor",d:"M19.57 9.945a.195.195 0 0 0-.13-.215 6.63 6.63 0 0 0-5.587.61.2.2 0 0 0-.09.146.2.2 0 0 0 .06.161 7.4 7.4 0 0 1 2.17 3.975.196.196 0 0 0 .29.132 6.66 6.66 0 0 0 3.288-4.81m-9.695 6.07q0-.086.002-.171a.2.2 0 0 0-.11-.18 7.45 7.45 0 0 1-4.058-5.285.195.195 0 0 0-.287-.135 6.64 6.64 0 0 0-3.357 5.95c.095 3.519 3.122 6.462 6.64 6.462a6.6 6.6 0 0 0 3.441-.964.195.195 0 0 0 .031-.308 7.4 7.4 0 0 1-2.302-5.368"}),v.jsx("path",{fill:"currentColor",d:"M8.703 9.375c-.729 0-1.453.12-2.142.355a.195.195 0 0 0-.132.215 6.66 6.66 0 0 0 3.287 4.81.195.195 0 0 0 .29-.133 7.4 7.4 0 0 1 2.172-3.975.195.195 0 0 0-.032-.307 6.6 6.6 0 0 0-3.443-.965M13 16.406c-.706 0-1.408-.1-2.086-.299a.195.195 0 0 0-.251.196 6.63 6.63 0 0 0 2.206 4.658.195.195 0 0 0 .262 0 6.63 6.63 0 0 0 2.206-4.658.196.196 0 0 0-.251-.196c-.678.2-1.38.3-2.086.3m2.274-1.35a6.64 6.64 0 0 0-2.142-3.984.2.2 0 0 0-.264 0 6.64 6.64 0 0 0-2.142 3.983.195.195 0 0 0 .131.215 6.64 6.64 0 0 0 4.286 0 .195.195 0 0 0 .13-.215"})]}),xCe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M12.5 14.844a5.86 5.86 0 1 0 0-11.72 5.86 5.86 0 0 0 0 11.72Z"}),v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M16.797 21.875a5.86 5.86 0 1 0 0-11.719 5.86 5.86 0 0 0 0 11.719Z"}),v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M8.203 21.875a5.86 5.86 0 1 0 0-11.719 5.86 5.86 0 0 0 0 11.719Z"})]}),ICe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 26 22",...e,children:v.jsx("path",{fill:"currentColor",d:"M21.531 9.358a3.9 3.9 0 0 0-1.562-.327H5.906A3.91 3.91 0 0 0 2 12.937v5.47a.781.781 0 1 0 1.563 0v-.391a.396.396 0 0 1 .39-.391h17.969a.396.396 0 0 1 .39.39v.391a.781.781 0 1 0 1.563 0v-5.468a3.91 3.91 0 0 0-2.344-3.58M18.797 2H7.078a2.734 2.734 0 0 0-2.734 2.734V8.25a.195.195 0 0 0 .25.188 4.7 4.7 0 0 1 1.312-.188h.207a.195.195 0 0 0 .195-.173 1.56 1.56 0 0 1 1.551-1.39h2.735a1.56 1.56 0 0 1 1.553 1.39.195.195 0 0 0 .195.173h1.194a.195.195 0 0 0 .195-.173 1.563 1.563 0 0 1 1.55-1.39h2.735a1.56 1.56 0 0 1 1.552 1.39.195.195 0 0 0 .196.173h.205c.444 0 .886.063 1.313.188a.195.195 0 0 0 .25-.188V4.734A2.734 2.734 0 0 0 18.796 2"})}),bCe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.344 20.313v-5.47a3.135 3.135 0 0 1 3.125-3.124H19.53a3.134 3.134 0 0 1 3.125 3.125v5.469m-3.906-8.594H4.688V6.64A1.96 1.96 0 0 1 6.64 4.688h11.718a1.96 1.96 0 0 1 1.953 1.953v5.078z"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.344 20.313v-.391a1.176 1.176 0 0 1 1.172-1.172h17.968a1.176 1.176 0 0 1 1.172 1.172v.39M5.47 11.72v-.781A1.567 1.567 0 0 1 7.03 9.375h3.907a1.567 1.567 0 0 1 1.562 1.563m0 0v.78m0-.78a1.567 1.567 0 0 1 1.563-1.563h3.906a1.567 1.567 0 0 1 1.562 1.563v.78"})]}),SCe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M9.458 7.463a.781.781 0 0 1 1.447.125l1.777 5.926 1.465-2.926a.78.78 0 0 1 1.397 0l1.345 2.693h4.725a10.4 10.4 0 0 0 1.042-4.656c-.03-3.032-2.464-5.5-5.424-5.5-2.348 0-3.906 1.442-4.732 2.49-.824-1.05-2.384-2.49-4.732-2.49-2.96 0-5.393 2.468-5.424 5.5-.013 1.048.134 2.09.436 3.094h4.55z"}),v.jsx("path",{fill:"currentColor",d:"m15.708 14.412-.864-1.727-1.645 3.29a.782.782 0 0 1-1.45-.125L9.972 9.924 8.507 12.85a.78.78 0 0 1-.694.431H3.386a14 14 0 0 0 1.82 2.816c.917 1.117 2.578 2.903 6.416 5.508a1.555 1.555 0 0 0 1.757 0c3.838-2.605 5.5-4.391 6.416-5.508q.495-.603.928-1.253h-4.317a.78.78 0 0 1-.698-.432m6.948-1.13h-1.042q-.39.812-.891 1.562h1.933a.781.781 0 1 0 0-1.563M2.344 11.718a.781.781 0 0 0 0 1.562h1.042a11 11 0 0 1-.606-1.562z"})]}),RCe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.232 3.906c-3.17 0-4.732 3.125-4.732 3.125s-1.562-3.125-4.732-3.125c-2.577 0-4.617 2.156-4.643 4.727-.054 5.339 4.235 9.135 8.936 12.326a.78.78 0 0 0 .879 0c4.7-3.19 8.988-6.987 8.935-12.326-.026-2.571-2.066-4.727-4.643-4.727"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.344 12.5h5.469l2.343-4.687 2.344 7.812 2.344-4.687 1.562 3.124h6.25"})]}),_At=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M21.875 4.688a3.125 3.125 0 1 0-4.703 2.695c-.087 1.02-.56 1.86-1.41 2.505-.866.659-2.086 1.05-3.262 1.05s-2.396-.391-3.263-1.05c-.85-.644-1.322-1.486-1.41-2.505a3.125 3.125 0 1 0-3.13.014c.102 1.996 1.034 3.754 2.652 4.981 1.015.77 2.27 1.303 3.589 1.542v3.688a3.125 3.125 0 1 0 3.124 0V13.92c1.319-.239 2.574-.772 3.589-1.542 1.618-1.227 2.55-2.985 2.652-4.98a3.13 3.13 0 0 0 1.572-2.71M6.25 3.125a1.563 1.563 0 1 1 0 3.125 1.563 1.563 0 0 1 0-3.125m6.25 18.75a1.563 1.563 0 1 1 0-3.125 1.563 1.563 0 0 1 0 3.125M18.75 6.25a1.563 1.563 0 1 1 0-3.126 1.563 1.563 0 0 1 0 3.126"})}),TCe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6.25 7.031a2.344 2.344 0 1 0 0-4.687 2.344 2.344 0 0 0 0 4.687M12.5 22.656a2.344 2.344 0 1 0 0-4.687 2.344 2.344 0 0 0 0 4.687M12.5 12.5v5.469M18.75 7.031a2.344 2.344 0 1 0 0-4.687 2.344 2.344 0 0 0 0 4.687"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6.25 7.031c0 3.646 3.365 5.469 6.25 5.469s6.25-1.823 6.25-5.469"})]}),Rj=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M13.135 16.387a8.4 8.4 0 0 1-1.382-.01 8.6 8.6 0 0 1-6.233-3.562.195.195 0 0 0-.331.017L1.673 19.15c-.133.245-.154.538-.013.776a.82.82 0 0 0 .694.387h3.81a.75.75 0 0 1 .664.357l1.888 3.158a.8.8 0 0 0 .671.39c.29-.015.59-.204.711-.468l3.228-7.087a.195.195 0 0 0-.191-.276m10.187 2.748-3.492-6.307a.195.195 0 0 0-.33-.018 8.6 8.6 0 0 1-3.823 3 .79.79 0 0 0-.426.402l-1.8 3.96a.39.39 0 0 0 0 .322l1.478 3.252c.12.264.42.457.71.473a.8.8 0 0 0 .668-.397l1.882-3.153c.14-.237.396-.358.672-.357h3.846c.326 0 .573-.17.684-.488a.83.83 0 0 0-.069-.69M12.513 10.156a2.344 2.344 0 1 0 0-4.688 2.344 2.344 0 0 0 0 4.688"}),v.jsx("path",{fill:"currentColor",d:"M12.513.781A7.04 7.04 0 0 0 5.48 7.813a7.04 7.04 0 0 0 7.032 7.03 7.04 7.04 0 0 0 7.03-7.03A7.04 7.04 0 0 0 12.514.78m0 10.938a3.906 3.906 0 1 1 0-7.812 3.906 3.906 0 0 1 0 7.812"})]}),NAt=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12.5 14.063a6.25 6.25 0 1 0 0-12.5 6.25 6.25 0 0 0 0 12.5"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m7.014 11.124-4.67 8.407 4.241-.02a.78.78 0 0 1 .675.38l2.115 3.547 4.313-9.489M17.898 10.938l4.758 8.593-4.241-.02a.78.78 0 0 0-.675.38l-2.115 3.547-3.125-6.875M12.5 10.938a3.125 3.125 0 1 0 0-6.25 3.125 3.125 0 0 0 0 6.25"})]}),QCe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M16.406 12.5c-1.004 0-1.974-.448-2.734-1.262a4.88 4.88 0 0 1-1.27-2.978c-.085-1.202.282-2.308 1.033-3.114.75-.805 1.8-1.24 2.971-1.24 1.164 0 2.216.443 2.964 1.246.755.812 1.123 1.915 1.038 3.107-.081 1.129-.532 2.186-1.27 2.979-.757.814-1.727 1.262-2.732 1.262m6.437 8.594H9.97a1.35 1.35 0 0 1-1.074-.521 1.48 1.48 0 0 1-.257-1.26c.41-1.65 1.43-3.02 2.945-3.958 1.345-.834 3.058-1.293 4.822-1.293 1.8 0 3.467.44 4.82 1.273 1.52.934 2.54 2.31 2.948 3.981a1.48 1.48 0 0 1-.26 1.26 1.35 1.35 0 0 1-1.07.518M7.178 12.695c-1.719 0-3.23-1.597-3.37-3.56-.069-1.007.245-1.937.88-2.619.627-.675 1.513-1.047 2.49-1.047.976 0 1.855.374 2.487 1.053.64.687.952 1.616.879 2.613-.14 1.963-1.65 3.56-3.366 3.56m3.206 1.536c-.86-.42-1.974-.63-3.206-.63-1.438 0-2.835.375-3.934 1.056C2 15.43 1.161 16.555.822 17.914a1.34 1.34 0 0 0 .234 1.14 1.24 1.24 0 0 0 .981.477h5.42a.39.39 0 0 0 .384-.32l.02-.092c.414-1.663 1.385-3.069 2.818-4.093a.392.392 0 0 0-.03-.654 4 4 0 0 0-.265-.141"})}),DCe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19.629 8.203c-.143 1.986-1.616 3.516-3.223 3.516s-3.082-1.53-3.222-3.516c-.147-2.066 1.287-3.515 3.222-3.515s3.37 1.487 3.223 3.515"}),v.jsx("path",{stroke:"currentColor",strokeMiterlimit:10,strokeWidth:2,d:"M16.406 14.844c-3.182 0-6.242 1.58-7.009 4.658-.101.408.154.81.573.81h12.873c.419 0 .673-.402.573-.81-.767-3.127-3.827-4.658-7.01-4.658Z"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.766 9.08c-.115 1.585-1.305 2.834-2.588 2.834S4.702 10.666 4.59 9.08C4.473 7.43 5.632 6.25 7.178 6.25s2.704 1.21 2.588 2.83"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:2,d:"M10.059 14.941c-.882-.403-1.852-.559-2.881-.559-2.54 0-4.986 1.263-5.598 3.721-.081.325.123.647.457.647H7.52"})]}),FCe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 26 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M3.728 17.432a.78.78 0 0 1-.714-.462A10.937 10.937 0 0 1 13 1.563a.78.78 0 0 1 .781.78V12.5a.78.78 0 0 1-.462.713l-9.273 4.148a.8.8 0 0 1-.318.07"}),v.jsx("path",{fill:"currentColor",d:"M15.812 3.33a.39.39 0 0 0-.468.38v8.79a2.35 2.35 0 0 1-1.387 2.14l-8.421 3.768a.39.39 0 0 0-.164.577c.645.948 1.445 1.78 2.366 2.461a10.07 10.07 0 0 0 6.043 1.991c5.6 0 10.157-4.556 10.157-10.156 0-4.905-3.496-9.009-8.126-9.952"})]}),_Ce=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:2,d:"M12.502 3.938q.385-.032.78-.032c5.175 0 9.374 4.2 9.374 9.375 0 5.176-4.199 9.375-9.375 9.375a9.38 9.38 0 0 1-8.93-6.511"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12.5 2.344C6.89 2.344 2.344 6.89 2.344 12.5c-.002 1.43.299 2.845.883 4.15L12.5 12.5z"})]}),Tj=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M16.406 16.406H1.563a.78.78 0 0 1-.684-1.162L8.3 1.962a.781.781 0 0 1 1.364 0l7.422 13.282a.78.78 0 0 1-.68 1.162"}),v.jsx("path",{fill:"currentColor",d:"M16.406 7.813c-.534 0-1.067.054-1.59.162l3.636 6.507a2.344 2.344 0 0 1-2.046 3.487H8.952a7.813 7.813 0 1 0 7.454-10.157"})]}),NCe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M12.955 9.498a7.031 7.031 0 1 1-3.58 6.127m7.031 0H1.563L8.984 2.344z"})}),kCe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M22.927 5.885a.782.782 0 0 0-1.247-.196l-3 3.002a.787.787 0 0 1-1.105 0l-1.297-1.298a.78.78 0 0 1 0-1.105L19.265 3.3a.782.782 0 0 0-.233-1.266c-2.257-1.009-5.073-.482-6.849 1.28-1.509 1.499-1.958 3.84-1.233 6.423a.78.78 0 0 1-.219.781l-8.129 7.424a3.133 3.133 0 1 0 4.424 4.426l7.504-8.147a.78.78 0 0 1 .77-.223 8.8 8.8 0 0 0 2.257.311c1.63 0 3.062-.528 4.094-1.545 1.912-1.883 2.203-5.077 1.276-6.88M4.857 21.834a1.563 1.563 0 1 1-.339-3.107 1.563 1.563 0 0 1 .34 3.107"})}),DL=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 26 26",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:2,d:"M20.196 9.777a1.567 1.567 0 0 1-2.21 0L16.69 8.48a1.567 1.567 0 0 1 0-2.21l2.937-2.938a.05.05 0 0 0 .014-.044.05.05 0 0 0-.029-.036c-1.895-.812-4.353-.398-5.913 1.15-1.494 1.483-1.578 3.712-1.032 5.657a1.56 1.56 0 0 1-.442 1.567L4.09 19.055a2.352 2.352 0 1 0 3.32 3.32l7.513-8.154a1.56 1.56 0 0 1 1.543-.446c1.93.517 4.128.42 5.602-1.035 1.586-1.562 1.928-4.324 1.16-5.904a.05.05 0 0 0-.036-.027.05.05 0 0 0-.043.014z"}),v.jsx("path",{fill:"currentColor",d:"M5.652 21.594a.781.781 0 1 0 0-1.563.781.781 0 0 0 0 1.563"})]}),PCe=[{label:"Outils",key:"outils",icon:v.jsx(kCe,{}),index:300,iconOutline:v.jsx(DL,{})},{label:"E.I.S",key:"eis",index:0,icon:v.jsx(MCe,{}),iconOutline:v.jsx(xCe,{})},{label:"PMSI MCO",key:"pmsi",index:1,icon:v.jsx(SCe,{}),iconOutline:v.jsx(RCe,{})},{label:"PMSI SSR",key:"pmsissr",index:2,icon:v.jsx(Tj,{}),iconOutline:v.jsx(NCe,{})},{label:"PMSI HAD",key:"pmsihad",index:3,icon:v.jsx(ICe,{}),iconOutline:v.jsx(bCe,{})},{label:"PMSI PSY",key:"pmsipsy",index:4,icon:v.jsx(_At,{}),iconOutline:v.jsx(TCe,{})},{label:"Activité",key:"activite",index:5,icon:v.jsx(pCe,{}),iconOutline:v.jsx(vCe,{})},{label:"Ressources Humaines - Paie",key:"rh",index:6,icon:v.jsx(QCe,{}),iconOutline:v.jsx(DCe,{})},{label:"DPI",key:"dpi",index:7,icon:v.jsx(yCe,{}),iconOutline:v.jsx(CCe,{})},{label:"Gestion Économique",key:"eco",index:8,icon:v.jsx(wCe,{}),iconOutline:v.jsx(BCe,{})},{label:"Comptabilité",key:"compta",index:9,icon:v.jsx(mCe,{}),iconOutline:v.jsx(ECe,{})},{label:"SSAE",key:"ssae",index:13,icon:v.jsx(FCe,{}),iconOutline:v.jsx(_Ce,{})},{label:"Qualite",key:"qualite",index:14,icon:v.jsx(Rj,{}),iconOutline:v.jsx(NAt,{})}],nc={activite:{label:"Activite",module:"iCTI_activite"},rhs_rsf:{label:"SSR",module:"iCTI_pmsissr"},rss_rsf:{label:"PMSI",module:"iCTI_pmsi"},rss_rsf_en_cours:{label:"PMSI - Fil de l'eau",module:"iCTI_pmsi"},compta:{label:"Compta",module:"iCTI_compta"},rh:{label:"RH",module:"iCTI_rh"},planning:{label:"Planning",module:"iCTI_rh"},eco:{label:"Eco",module:"iCTI_eco"},dpi:{label:"Dpi",module:"iCTI_dpi"},aggregateCtiIndicators:{label:"Essentiels",module:"iCTI_XXX"}},$$={dpi:"DPI",pmsi:"PMSI",pmsissr:"PMSISSR",pmsiHAD:"PMSIHAD",pmsipsy:"PMSIPSY",activite:"ACTI",rh:"RH",eco:"ECO",compta:"COMPTA",ssae:"SSAE",outils:"TOOL"},kAt=["Présentation i-CTI","EHTRACE"],PAt=()=>{const[e,t]=m.useState(["Synthèse"]),[r,n]=m.useState(!1),a=Pr(),i=Ye(f=>f.cti.components.logs.data.exploit),o=Ye(f=>f.cti.components.logs.data.timestamp),s=Ye(f=>f.cti.components.logs.loading),l=Ye(f=>f.cti.settings.data);m.useEffect(()=>{a(Kq())},[a]),m.useEffect(()=>{if(i.length){let f=[];i.forEach(h=>{h.jobs.forEach(g=>{let p="";switch(g.job){case"iCTI_consolidation_pmsi":p="iCTI_pmsi";break;case"iCTI_import_activite_consolidation":p="iCTI_activite";break;default:p=g.job.replace(/iCTI_(import_)?/,"");break}nc[p]&&!f.includes(p)&&f.push(p)})}),t(f)}},[i]);const A=()=>{a(Kq())},c=f=>i.filter(g=>g.jobs.some(p=>f==="rss_rsf_en_cours"&&p.job.includes("pmsi")?!0:p.job.includes(f))).sort((g,p)=>g.code.localeCompare(p.code)).map(g=>{const p=g.jobs.find(E=>f==="rss_rsf"?E.job.includes(f)&&!E.job.includes("en_cours"):f==="rss_rsf_en_cours"&&E.job.includes("pmsi")?!0:E.job.includes(f));if(p){const E=p.status,y=p.running,C=Object.keys(g.settings).length?g.settings[Z$[nc[f].module]]:"";return v.jsx(xI,{status:E,running:y,env:g,provider:C,duration:p.duration,start:p.start},g.code)}else return null}),u=()=>{let f=[];return l.environment.ISEXPLOIT==="1"&&(f=e.map(h=>{var g;return{label:((g=nc[h])==null?void 0:g.label)??h,key:h,children:v.jsx("div",{className:"exploit-module",children:c(h)})}})),f},d=f=>{if(f)return i.sort((h,g)=>h.code.localeCompare(g.code)).map(h=>{const g=h.jobs.map(E=>E.status).includes(-1)?-1:h.jobs.reduce((E,y)=>(r||nc[y.module])&&y.status>E?y.status:E,0);return v.jsx(xI,{status:g,running:0,env:h,provider:""},h.code)});{const h=i.find(g=>g.code===l.environment.ICTIDIR.replace("iCTI_",""));if(h)return h.jobs.map(g=>{const p=g.module!==g.job?g.module:g.job.replace(/iCTI_(import_)?/,""),E=Object.keys(h.settings).length&&nc[g.module]?h.settings[Z$[nc[g.module].module]]:null;return r||nc[p]?v.jsx(xI,{status:g.status,running:g.running,env:h,provider:E,duration:g.duration,start:g.start,module:nc[p]?nc[p].label:p},g.job):null})}};return!s&&!l.environment.ISEXPLOIT?v.jsx(vd,{icon:v.jsx(Tv,{}),title:"Cette fonctionnalité n'est pas encore disponible sur votre serveur."}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"component-header",children:[v.jsxs("div",{className:"header-title",children:[l.environment.ISEXPLOIT==="1"?"Résumé Exploitation Serveur ":"Résumé Exploitation ","(dernière mise à jour: ",Nn(o).format("HH:mm"),")"]}),v.jsxs("div",{className:"header-actions",children:[v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"actions-label",children:"Afficher les jobs CTI:"}),v.jsx(Va,{checked:r,onChange:f=>n(f)})]}),v.jsx(nt,{onClick:A,type:"primary",loading:s,disabled:s,icon:v.jsx(bp,{}),children:"Rafraichir"})]})]}),v.jsx("div",{className:"component-content",children:v.jsx(xa,{items:[{label:"Synthèse",key:"total",children:v.jsx("div",{className:"exploit-module",children:d(l.environment.ISEXPLOIT==="1")})},{tabsItems:u}]})})]})};var OAt=zye();const zAt=Nr(OAt);var eee=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function jAt(e,t){return!!(e===t||eee(e)&&eee(t))}function YAt(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!jAt(e[r],t[r]))return!1;return!0}function ao(e,t){t===void 0&&(t=YAt);var r,n=[],a,i=!1;function o(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return i&&r===this&&t(s,n)||(a=e.apply(this,s),i=!0,r=this,n=s),a}return o}const LAt=Object.freeze(Object.defineProperty({__proto__:null,default:ao},Symbol.toStringTag,{value:"Module"}));var UAt=typeof performance=="object"&&typeof performance.now=="function",tee=UAt?function(){return performance.now()}:function(){return Date.now()};function Kb(e){cancelAnimationFrame(e.id)}function OCe(e,t){var r=tee();function n(){tee()-r>=t?e.call(null):a.id=requestAnimationFrame(n)}var a={id:requestAnimationFrame(n)};return a}var Nk=-1;function Qj(e){if(e===void 0&&(e=!1),Nk===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),Nk=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Nk}var Ng=null;function Vb(e){if(e===void 0&&(e=!1),Ng===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),a=n.style;return a.width="100px",a.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Ng="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Ng="negative":Ng="positive-ascending"),document.body.removeChild(t),Ng}return Ng}var HAt=150,GAt=function(t){var r=t.columnIndex;t.data;var n=t.rowIndex;return n+":"+r};function zCe(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,a=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,o=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,A=e.getOffsetForRowAndAlignment,c=e.getRowHeight,u=e.getRowOffset,d=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=function(E){_a(y,E);function y(w){var B;return B=E.call(this,w)||this,B._instanceProps=h(B.props,at(B)),B._resetIsScrollingTimeoutId=null,B._outerRef=void 0,B.state={instance:at(B),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof B.props.initialScrollLeft=="number"?B.props.initialScrollLeft:0,scrollTop:typeof B.props.initialScrollTop=="number"?B.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},B._callOnItemsRendered=void 0,B._callOnItemsRendered=ao(function(M,I,S,R,b,Q,D,F){return B.props.onItemsRendered({overscanColumnStartIndex:M,overscanColumnStopIndex:I,overscanRowStartIndex:S,overscanRowStopIndex:R,visibleColumnStartIndex:b,visibleColumnStopIndex:Q,visibleRowStartIndex:D,visibleRowStopIndex:F})}),B._callOnScroll=void 0,B._callOnScroll=ao(function(M,I,S,R,b){return B.props.onScroll({horizontalScrollDirection:S,scrollLeft:M,scrollTop:I,verticalScrollDirection:R,scrollUpdateWasRequested:b})}),B._getItemStyle=void 0,B._getItemStyle=function(M,I){var S=B.props,R=S.columnWidth,b=S.direction,Q=S.rowHeight,D=B._getItemStyleCache(g&&R,g&&b,g&&Q),F=M+":"+I,N;if(D.hasOwnProperty(F))N=D[F];else{var k=r(B.props,I,B._instanceProps),O=b==="rtl";D[F]=N={position:"absolute",left:O?void 0:k,right:O?k:void 0,top:u(B.props,M,B._instanceProps),height:c(B.props,M,B._instanceProps),width:i(B.props,I,B._instanceProps)}}return N},B._getItemStyleCache=void 0,B._getItemStyleCache=ao(function(M,I,S){return{}}),B._onScroll=function(M){var I=M.currentTarget,S=I.clientHeight,R=I.clientWidth,b=I.scrollLeft,Q=I.scrollTop,D=I.scrollHeight,F=I.scrollWidth;B.setState(function(N){if(N.scrollLeft===b&&N.scrollTop===Q)return null;var k=B.props.direction,O=b;if(k==="rtl")switch(Vb()){case"negative":O=-b;break;case"positive-descending":O=F-R-b;break}O=Math.max(0,Math.min(O,F-R));var P=Math.max(0,Math.min(Q,D-S));return{isScrolling:!0,horizontalScrollDirection:N.scrollLeft<b?"forward":"backward",scrollLeft:O,scrollTop:P,verticalScrollDirection:N.scrollTop<Q?"forward":"backward",scrollUpdateWasRequested:!1}},B._resetIsScrollingDebounced)},B._outerRefSetter=function(M){var I=B.props.outerRef;B._outerRef=M,typeof I=="function"?I(M):I!=null&&typeof I=="object"&&I.hasOwnProperty("current")&&(I.current=M)},B._resetIsScrollingDebounced=function(){B._resetIsScrollingTimeoutId!==null&&Kb(B._resetIsScrollingTimeoutId),B._resetIsScrollingTimeoutId=OCe(B._resetIsScrolling,HAt)},B._resetIsScrolling=function(){B._resetIsScrollingTimeoutId=null,B.setState({isScrolling:!1},function(){B._getItemStyleCache(-1)})},B}y.getDerivedStateFromProps=function(B,M){return KAt(B,M),p(B),null};var C=y.prototype;return C.scrollTo=function(B){var M=B.scrollLeft,I=B.scrollTop;M!==void 0&&(M=Math.max(0,M)),I!==void 0&&(I=Math.max(0,I)),this.setState(function(S){return M===void 0&&(M=S.scrollLeft),I===void 0&&(I=S.scrollTop),S.scrollLeft===M&&S.scrollTop===I?null:{horizontalScrollDirection:S.scrollLeft<M?"forward":"backward",scrollLeft:M,scrollTop:I,scrollUpdateWasRequested:!0,verticalScrollDirection:S.scrollTop<I?"forward":"backward"}},this._resetIsScrollingDebounced)},C.scrollToItem=function(B){var M=B.align,I=M===void 0?"auto":M,S=B.columnIndex,R=B.rowIndex,b=this.props,Q=b.columnCount,D=b.height,F=b.rowCount,N=b.width,k=this.state,O=k.scrollLeft,P=k.scrollTop,z=Qj();S!==void 0&&(S=Math.max(0,Math.min(S,Q-1))),R!==void 0&&(R=Math.max(0,Math.min(R,F-1)));var j=o(this.props,this._instanceProps),V=s(this.props,this._instanceProps),L=V>N?z:0,K=j>D?z:0;this.scrollTo({scrollLeft:S!==void 0?l(this.props,S,I,O,this._instanceProps,K):O,scrollTop:R!==void 0?A(this.props,R,I,P,this._instanceProps,L):P})},C.componentDidMount=function(){var B=this.props,M=B.initialScrollLeft,I=B.initialScrollTop;if(this._outerRef!=null){var S=this._outerRef;typeof M=="number"&&(S.scrollLeft=M),typeof I=="number"&&(S.scrollTop=I)}this._callPropsCallbacks()},C.componentDidUpdate=function(){var B=this.props.direction,M=this.state,I=M.scrollLeft,S=M.scrollTop,R=M.scrollUpdateWasRequested;if(R&&this._outerRef!=null){var b=this._outerRef;if(B==="rtl")switch(Vb()){case"negative":b.scrollLeft=-I;break;case"positive-ascending":b.scrollLeft=I;break;default:var Q=b.clientWidth,D=b.scrollWidth;b.scrollLeft=D-Q-I;break}else b.scrollLeft=Math.max(0,I);b.scrollTop=Math.max(0,S)}this._callPropsCallbacks()},C.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Kb(this._resetIsScrollingTimeoutId)},C.render=function(){var B=this.props,M=B.children,I=B.className,S=B.columnCount,R=B.direction,b=B.height,Q=B.innerRef,D=B.innerElementType,F=B.innerTagName,N=B.itemData,k=B.itemKey,O=k===void 0?GAt:k,P=B.outerElementType,z=B.outerTagName,j=B.rowCount,V=B.style,L=B.useIsScrolling,K=B.width,J=this.state.isScrolling,Y=this._getHorizontalRangeToRender(),W=Y[0],q=Y[1],ee=this._getVerticalRangeToRender(),ae=ee[0],ne=ee[1],ce=[];if(S>0&&j)for(var ue=ae;ue<=ne;ue++)for(var ge=W;ge<=q;ge++)ce.push(m.createElement(M,{columnIndex:ge,data:N,isScrolling:L?J:void 0,key:O({columnIndex:ge,data:N,rowIndex:ue}),rowIndex:ue,style:this._getItemStyle(ue,ge)}));var Se=o(this.props,this._instanceProps),ye=s(this.props,this._instanceProps);return m.createElement(P||z||"div",{className:I,onScroll:this._onScroll,ref:this._outerRefSetter,style:oe({position:"relative",height:b,width:K,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:R},V)},m.createElement(D||F||"div",{children:ce,ref:Q,style:{height:Se,pointerEvents:J?"none":void 0,width:ye}}))},C._callPropsCallbacks=function(){var B=this.props,M=B.columnCount,I=B.onItemsRendered,S=B.onScroll,R=B.rowCount;if(typeof I=="function"&&M>0&&R>0){var b=this._getHorizontalRangeToRender(),Q=b[0],D=b[1],F=b[2],N=b[3],k=this._getVerticalRangeToRender(),O=k[0],P=k[1],z=k[2],j=k[3];this._callOnItemsRendered(Q,D,O,P,F,N,z,j)}if(typeof S=="function"){var V=this.state,L=V.horizontalScrollDirection,K=V.scrollLeft,J=V.scrollTop,Y=V.scrollUpdateWasRequested,W=V.verticalScrollDirection;this._callOnScroll(K,J,L,W,Y)}},C._getHorizontalRangeToRender=function(){var B=this.props,M=B.columnCount,I=B.overscanColumnCount,S=B.overscanColumnsCount,R=B.overscanCount,b=B.rowCount,Q=this.state,D=Q.horizontalScrollDirection,F=Q.isScrolling,N=Q.scrollLeft,k=I||S||R||1;if(M===0||b===0)return[0,0,0,0];var O=n(this.props,N,this._instanceProps),P=a(this.props,O,N,this._instanceProps),z=!F||D==="backward"?Math.max(1,k):1,j=!F||D==="forward"?Math.max(1,k):1;return[Math.max(0,O-z),Math.max(0,Math.min(M-1,P+j)),O,P]},C._getVerticalRangeToRender=function(){var B=this.props,M=B.columnCount,I=B.overscanCount,S=B.overscanRowCount,R=B.overscanRowsCount,b=B.rowCount,Q=this.state,D=Q.isScrolling,F=Q.verticalScrollDirection,N=Q.scrollTop,k=S||R||I||1;if(M===0||b===0)return[0,0,0,0];var O=d(this.props,N,this._instanceProps),P=f(this.props,O,N,this._instanceProps),z=!D||F==="backward"?Math.max(1,k):1,j=!D||F==="forward"?Math.max(1,k):1;return[Math.max(0,O-z),Math.max(0,Math.min(b-1,P+j)),O,P]},y}(m.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var KAt=function(t,r){t.children,t.direction,t.height,t.innerTagName,t.outerTagName,t.overscanColumnsCount,t.overscanCount,t.overscanRowsCount,t.width,r.instance},ree=50,jCe=function(t,r){var n=t.rowCount,a=r.rowMetadataMap,i=r.estimatedRowHeight,o=r.lastMeasuredRowIndex,s=0;if(o>=n&&(o=n-1),o>=0){var l=a[o];s=l.offset+l.size}var A=n-o-1,c=A*i;return s+c},YCe=function(t,r){var n=t.columnCount,a=r.columnMetadataMap,i=r.estimatedColumnWidth,o=r.lastMeasuredColumnIndex,s=0;if(o>=n&&(o=n-1),o>=0){var l=a[o];s=l.offset+l.size}var A=n-o-1,c=A*i;return s+c},gc=function(t,r,n,a){var i,o,s;if(t==="column"?(i=a.columnMetadataMap,o=r.columnWidth,s=a.lastMeasuredColumnIndex):(i=a.rowMetadataMap,o=r.rowHeight,s=a.lastMeasuredRowIndex),n>s){var l=0;if(s>=0){var A=i[s];l=A.offset+A.size}for(var c=s+1;c<=n;c++){var u=o(c);i[c]={offset:l,size:u},l+=u}t==="column"?a.lastMeasuredColumnIndex=n:a.lastMeasuredRowIndex=n}return i[n]},nee=function(t,r,n,a){var i,o;t==="column"?(i=n.columnMetadataMap,o=n.lastMeasuredColumnIndex):(i=n.rowMetadataMap,o=n.lastMeasuredRowIndex);var s=o>0?i[o].offset:0;return s>=a?LCe(t,r,n,o,0,a):VAt(t,r,n,Math.max(0,o),a)},LCe=function(t,r,n,a,i,o){for(;i<=a;){var s=i+Math.floor((a-i)/2),l=gc(t,r,s,n).offset;if(l===o)return s;l<o?i=s+1:l>o&&(a=s-1)}return i>0?i-1:0},VAt=function(t,r,n,a,i){for(var o=t==="column"?r.columnCount:r.rowCount,s=1;a<o&&gc(t,r,a,n).offset<i;)a+=s,s*=2;return LCe(t,r,n,Math.min(a,o-1),Math.floor(a/2),i)},aee=function(t,r,n,a,i,o,s){var l=t==="column"?r.width:r.height,A=gc(t,r,n,o),c=t==="column"?YCe(r,o):jCe(r,o),u=Math.max(0,Math.min(c-l,A.offset)),d=Math.max(0,A.offset-l+s+A.size);switch(a==="smart"&&(i>=d-l&&i<=u+l?a="auto":a="center"),a){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);case"auto":default:return i>=d&&i<=u?i:d>u||i<d?d:u}},UCe=zCe({getColumnOffset:function(t,r,n){return gc("column",t,r,n).offset},getColumnStartIndexForOffset:function(t,r,n){return nee("column",t,n,r)},getColumnStopIndexForStartIndex:function(t,r,n,a){for(var i=t.columnCount,o=t.width,s=gc("column",t,r,a),l=n+o,A=s.offset+s.size,c=r;c<i-1&&A<l;)c++,A+=gc("column",t,c,a).size;return c},getColumnWidth:function(t,r,n){return n.columnMetadataMap[r].size},getEstimatedTotalHeight:jCe,getEstimatedTotalWidth:YCe,getOffsetForColumnAndAlignment:function(t,r,n,a,i,o){return aee("column",t,r,n,a,i,o)},getOffsetForRowAndAlignment:function(t,r,n,a,i,o){return aee("row",t,r,n,a,i,o)},getRowOffset:function(t,r,n){return gc("row",t,r,n).offset},getRowHeight:function(t,r,n){return n.rowMetadataMap[r].size},getRowStartIndexForOffset:function(t,r,n){return nee("row",t,n,r)},getRowStopIndexForStartIndex:function(t,r,n,a){for(var i=t.rowCount,o=t.height,s=gc("row",t,r,a),l=n+o,A=s.offset+s.size,c=r;c<i-1&&A<l;)c++,A+=gc("row",t,c,a).size;return c},initInstanceProps:function(t,r){var n=t,a=n.estimatedColumnWidth,i=n.estimatedRowHeight,o={columnMetadataMap:{},estimatedColumnWidth:a||ree,estimatedRowHeight:i||ree,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return r.resetAfterColumnIndex=function(s,l){l===void 0&&(l=!0),r.resetAfterIndices({columnIndex:s,shouldForceUpdate:l})},r.resetAfterRowIndex=function(s,l){l===void 0&&(l=!0),r.resetAfterIndices({rowIndex:s,shouldForceUpdate:l})},r.resetAfterIndices=function(s){var l=s.columnIndex,A=s.rowIndex,c=s.shouldForceUpdate,u=c===void 0?!0:c;typeof l=="number"&&(o.lastMeasuredColumnIndex=Math.min(o.lastMeasuredColumnIndex,l-1)),typeof A=="number"&&(o.lastMeasuredRowIndex=Math.min(o.lastMeasuredRowIndex,A-1)),r._getItemStyleCache(-1),u&&r.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.columnWidth,t.rowHeight}}),JAt=150,WAt=function(t,r){return t};function HCe(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,a=e.getItemSize,i=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,A=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(u){_a(d,u);function d(h){var g;return g=u.call(this,h)||this,g._instanceProps=l(g.props,at(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:at(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=ao(function(p,E,y,C){return g.props.onItemsRendered({overscanStartIndex:p,overscanStopIndex:E,visibleStartIndex:y,visibleStopIndex:C})}),g._callOnScroll=void 0,g._callOnScroll=ao(function(p,E,y){return g.props.onScroll({scrollDirection:p,scrollOffset:E,scrollUpdateWasRequested:y})}),g._getItemStyle=void 0,g._getItemStyle=function(p){var E=g.props,y=E.direction,C=E.itemSize,w=E.layout,B=g._getItemStyleCache(A&&C,A&&w,A&&y),M;if(B.hasOwnProperty(p))M=B[p];else{var I=r(g.props,p,g._instanceProps),S=a(g.props,p,g._instanceProps),R=y==="horizontal"||w==="horizontal",b=y==="rtl",Q=R?I:0;B[p]=M={position:"absolute",left:b?void 0:Q,right:b?Q:void 0,top:R?0:I,height:R?"100%":S,width:R?S:"100%"}}return M},g._getItemStyleCache=void 0,g._getItemStyleCache=ao(function(p,E,y){return{}}),g._onScrollHorizontal=function(p){var E=p.currentTarget,y=E.clientWidth,C=E.scrollLeft,w=E.scrollWidth;g.setState(function(B){if(B.scrollOffset===C)return null;var M=g.props.direction,I=C;if(M==="rtl")switch(Vb()){case"negative":I=-C;break;case"positive-descending":I=w-y-C;break}return I=Math.max(0,Math.min(I,w-y)),{isScrolling:!0,scrollDirection:B.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(p){var E=p.currentTarget,y=E.clientHeight,C=E.scrollHeight,w=E.scrollTop;g.setState(function(B){if(B.scrollOffset===w)return null;var M=Math.max(0,Math.min(w,C-y));return{isScrolling:!0,scrollDirection:B.scrollOffset<M?"forward":"backward",scrollOffset:M,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(p){var E=g.props.outerRef;g._outerRef=p,typeof E=="function"?E(p):E!=null&&typeof E=="object"&&E.hasOwnProperty("current")&&(E.current=p)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&Kb(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=OCe(g._resetIsScrolling,JAt)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}d.getDerivedStateFromProps=function(g,p){return XAt(g,p),c(g),null};var f=d.prototype;return f.scrollTo=function(g){g=Math.max(0,g),this.setState(function(p){return p.scrollOffset===g?null:{scrollDirection:p.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},f.scrollToItem=function(g,p){p===void 0&&(p="auto");var E=this.props,y=E.itemCount,C=E.layout,w=this.state.scrollOffset;g=Math.max(0,Math.min(g,y-1));var B=0;if(this._outerRef){var M=this._outerRef;C==="vertical"?B=M.scrollWidth>M.clientWidth?Qj():0:B=M.scrollHeight>M.clientHeight?Qj():0}this.scrollTo(i(this.props,g,p,w,this._instanceProps,B))},f.componentDidMount=function(){var g=this.props,p=g.direction,E=g.initialScrollOffset,y=g.layout;if(typeof E=="number"&&this._outerRef!=null){var C=this._outerRef;p==="horizontal"||y==="horizontal"?C.scrollLeft=E:C.scrollTop=E}this._callPropsCallbacks()},f.componentDidUpdate=function(){var g=this.props,p=g.direction,E=g.layout,y=this.state,C=y.scrollOffset,w=y.scrollUpdateWasRequested;if(w&&this._outerRef!=null){var B=this._outerRef;if(p==="horizontal"||E==="horizontal")if(p==="rtl")switch(Vb()){case"negative":B.scrollLeft=-C;break;case"positive-ascending":B.scrollLeft=C;break;default:var M=B.clientWidth,I=B.scrollWidth;B.scrollLeft=I-M-C;break}else B.scrollLeft=C;else B.scrollTop=C}this._callPropsCallbacks()},f.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Kb(this._resetIsScrollingTimeoutId)},f.render=function(){var g=this.props,p=g.children,E=g.className,y=g.direction,C=g.height,w=g.innerRef,B=g.innerElementType,M=g.innerTagName,I=g.itemCount,S=g.itemData,R=g.itemKey,b=R===void 0?WAt:R,Q=g.layout,D=g.outerElementType,F=g.outerTagName,N=g.style,k=g.useIsScrolling,O=g.width,P=this.state.isScrolling,z=y==="horizontal"||Q==="horizontal",j=z?this._onScrollHorizontal:this._onScrollVertical,V=this._getRangeToRender(),L=V[0],K=V[1],J=[];if(I>0)for(var Y=L;Y<=K;Y++)J.push(m.createElement(p,{data:S,key:b(Y,S),index:Y,isScrolling:k?P:void 0,style:this._getItemStyle(Y)}));var W=n(this.props,this._instanceProps);return m.createElement(D||F||"div",{className:E,onScroll:j,ref:this._outerRefSetter,style:oe({position:"relative",height:C,width:O,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},N)},m.createElement(B||M||"div",{children:J,ref:w,style:{height:z?"100%":W,pointerEvents:P?"none":void 0,width:z?W:"100%"}}))},f._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var p=this._getRangeToRender(),E=p[0],y=p[1],C=p[2],w=p[3];this._callOnItemsRendered(E,y,C,w)}}if(typeof this.props.onScroll=="function"){var B=this.state,M=B.scrollDirection,I=B.scrollOffset,S=B.scrollUpdateWasRequested;this._callOnScroll(M,I,S)}},f._getRangeToRender=function(){var g=this.props,p=g.itemCount,E=g.overscanCount,y=this.state,C=y.isScrolling,w=y.scrollDirection,B=y.scrollOffset;if(p===0)return[0,0,0,0];var M=o(this.props,B,this._instanceProps),I=s(this.props,M,B,this._instanceProps),S=!C||w==="backward"?Math.max(1,E):1,R=!C||w==="forward"?Math.max(1,E):1;return[Math.max(0,M-S),Math.max(0,Math.min(p-1,I+R)),M,I]},d}(m.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var XAt=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},qAt=50,Mp=function(t,r,n){var a=t,i=a.itemSize,o=n.itemMetadataMap,s=n.lastMeasuredIndex;if(r>s){var l=0;if(s>=0){var A=o[s];l=A.offset+A.size}for(var c=s+1;c<=r;c++){var u=i(c);o[c]={offset:l,size:u},l+=u}n.lastMeasuredIndex=r}return o[r]},ZAt=function(t,r,n){var a=r.itemMetadataMap,i=r.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=n?GCe(t,r,i,0,n):$At(t,r,Math.max(0,i),n)},GCe=function(t,r,n,a,i){for(;a<=n;){var o=a+Math.floor((n-a)/2),s=Mp(t,o,r).offset;if(s===i)return o;s<i?a=o+1:s>i&&(n=o-1)}return a>0?a-1:0},$At=function(t,r,n,a){for(var i=t.itemCount,o=1;n<i&&Mp(t,n,r).offset<a;)n+=o,o*=2;return GCe(t,r,Math.min(n,i-1),Math.floor(n/2),a)},iee=function(t,r){var n=t.itemCount,a=r.itemMetadataMap,i=r.estimatedItemSize,o=r.lastMeasuredIndex,s=0;if(o>=n&&(o=n-1),o>=0){var l=a[o];s=l.offset+l.size}var A=n-o-1,c=A*i;return s+c},ect=HCe({getItemOffset:function(t,r,n){return Mp(t,r,n).offset},getItemSize:function(t,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:iee,getOffsetForIndexAndAlignment:function(t,r,n,a,i,o){var s=t.direction,l=t.height,A=t.layout,c=t.width,u=s==="horizontal"||A==="horizontal",d=u?c:l,f=Mp(t,r,i),h=iee(t,i),g=Math.max(0,Math.min(h-d,f.offset)),p=Math.max(0,f.offset-d+f.size+o);switch(n==="smart"&&(a>=p-d&&a<=g+d?n="auto":n="center"),n){case"start":return g;case"end":return p;case"center":return Math.round(p+(g-p)/2);case"auto":default:return a>=p&&a<=g?a:a<p?p:g}},getStartIndexForOffset:function(t,r,n){return ZAt(t,n,r)},getStopIndexForStartIndex:function(t,r,n,a){for(var i=t.direction,o=t.height,s=t.itemCount,l=t.layout,A=t.width,c=i==="horizontal"||l==="horizontal",u=c?A:o,d=Mp(t,r,a),f=n+u,h=d.offset+d.size,g=r;g<s-1&&h<f;)g++,h+=Mp(t,g,a).size;return g},initInstanceProps:function(t,r){var n=t,a=n.estimatedItemSize,i={itemMetadataMap:{},estimatedItemSize:a||qAt,lastMeasuredIndex:-1};return r.resetAfterIndex=function(o,s){s===void 0&&(s=!0),i.lastMeasuredIndex=Math.min(i.lastMeasuredIndex,o-1),r._getItemStyleCache(-1),s&&r.forceUpdate()},i},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.itemSize}}),KCe=zCe({getColumnOffset:function(t,r){var n=t.columnWidth;return r*n},getColumnWidth:function(t,r){var n=t.columnWidth;return n},getRowOffset:function(t,r){var n=t.rowHeight;return r*n},getRowHeight:function(t,r){var n=t.rowHeight;return n},getEstimatedTotalHeight:function(t){var r=t.rowCount,n=t.rowHeight;return n*r},getEstimatedTotalWidth:function(t){var r=t.columnCount,n=t.columnWidth;return n*r},getOffsetForColumnAndAlignment:function(t,r,n,a,i,o){var s=t.columnCount,l=t.columnWidth,A=t.width,c=Math.max(0,s*l-A),u=Math.min(c,r*l),d=Math.max(0,r*l-A+o+l);switch(n==="smart"&&(a>=d-A&&a<=u+A?n="auto":n="center"),n){case"start":return u;case"end":return d;case"center":var f=Math.round(d+(u-d)/2);return f<Math.ceil(A/2)?0:f>c+Math.floor(A/2)?c:f;case"auto":default:return a>=d&&a<=u?a:d>u||a<d?d:u}},getOffsetForRowAndAlignment:function(t,r,n,a,i,o){var s=t.rowHeight,l=t.height,A=t.rowCount,c=Math.max(0,A*s-l),u=Math.min(c,r*s),d=Math.max(0,r*s-l+o+s);switch(n==="smart"&&(a>=d-l&&a<=u+l?n="auto":n="center"),n){case"start":return u;case"end":return d;case"center":var f=Math.round(d+(u-d)/2);return f<Math.ceil(l/2)?0:f>c+Math.floor(l/2)?c:f;case"auto":default:return a>=d&&a<=u?a:d>u||a<d?d:u}},getColumnStartIndexForOffset:function(t,r){var n=t.columnWidth,a=t.columnCount;return Math.max(0,Math.min(a-1,Math.floor(r/n)))},getColumnStopIndexForStartIndex:function(t,r,n){var a=t.columnWidth,i=t.columnCount,o=t.width,s=r*a,l=Math.ceil((o+n-s)/a);return Math.max(0,Math.min(i-1,r+l-1))},getRowStartIndexForOffset:function(t,r){var n=t.rowHeight,a=t.rowCount;return Math.max(0,Math.min(a-1,Math.floor(r/n)))},getRowStopIndexForStartIndex:function(t,r,n){var a=t.rowHeight,i=t.rowCount,o=t.height,s=r*a,l=Math.ceil((o+n-s)/a);return Math.max(0,Math.min(i-1,r+l-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.columnWidth,t.rowHeight}}),tct=HCe({getItemOffset:function(t,r){var n=t.itemSize;return r*n},getItemSize:function(t,r){var n=t.itemSize;return n},getEstimatedTotalSize:function(t){var r=t.itemCount,n=t.itemSize;return n*r},getOffsetForIndexAndAlignment:function(t,r,n,a,i,o){var s=t.direction,l=t.height,A=t.itemCount,c=t.itemSize,u=t.layout,d=t.width,f=s==="horizontal"||u==="horizontal",h=f?d:l,g=Math.max(0,A*c-h),p=Math.min(g,r*c),E=Math.max(0,r*c-h+c+o);switch(n==="smart"&&(a>=E-h&&a<=p+h?n="auto":n="center"),n){case"start":return p;case"end":return E;case"center":{var y=Math.round(E+(p-E)/2);return y<Math.ceil(h/2)?0:y>g+Math.floor(h/2)?g:y}case"auto":default:return a>=E&&a<=p?a:a<E?E:p}},getStartIndexForOffset:function(t,r){var n=t.itemCount,a=t.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/a)))},getStopIndexForStartIndex:function(t,r,n){var a=t.direction,i=t.height,o=t.itemCount,s=t.itemSize,l=t.layout,A=t.width,c=a==="horizontal"||l==="horizontal",u=r*s,d=c?A:i,f=Math.ceil((d+n-u)/s);return Math.max(0,Math.min(o-1,r+f-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function Dj(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var rct=["style"],nct=["style"];function VCe(e,t){var r=e.style,n=na(e,rct),a=t.style,i=na(t,nct);return!Dj(r,a)&&!Dj(n,i)}function act(e,t){return!VCe(this.props,e)||Dj(this.state,t)}const ict=Object.freeze(Object.defineProperty({__proto__:null,FixedSizeGrid:KCe,FixedSizeList:tct,VariableSizeGrid:UCe,VariableSizeList:ect,areEqual:VCe,shouldComponentUpdate:act},Symbol.toStringTag,{value:"Module"}));var JCe=function(e){_a(t,e);function t(n){var a;return a=e.call(this,n)||this,a.renderHeaderRow=a.renderHeaderRow.bind(at(a)),a.renderFrozenRow=a.renderFrozenRow.bind(at(a)),a._setRef=a._setRef.bind(at(a)),a}var r=t.prototype;return r.scrollTo=function(a){var i=this;requestAnimationFrame(function(){i.headerRef&&(i.headerRef.scrollLeft=a)})},r.renderHeaderRow=function(a,i){var o=this.props,s=o.columns,l=o.headerRenderer;if(a<=0)return null;var A={width:"100%",height:a};return l({style:A,columns:s,headerIndex:i})},r.renderFrozenRow=function(a,i){var o=this.props,s=o.columns,l=o.rowHeight,A=o.rowRenderer,c={width:"100%",height:l},u=-i-1;return A({style:c,columns:s,rowData:a,rowIndex:u})},r.render=function(){var a=this.props,i=a.className,o=a.width,s=a.height,l=a.rowWidth,A=a.headerHeight,c=a.frozenData;if(s<=0)return null;var u={width:o,height:s,position:"relative",overflow:"hidden"},d={width:l,height:s},f=Array.isArray(A)?A:[A];return te.createElement("div",{role:"grid",ref:this._setRef,className:i,style:u},te.createElement("div",{role:"rowgroup",style:d},f.map(this.renderHeaderRow),c.map(this.renderFrozenRow)))},r._setRef=function(a){this.headerRef=a},t}(te.PureComponent);JCe.propTypes={className:U.string,width:U.number.isRequired,height:U.number.isRequired,headerHeight:U.oneOfType([U.number,U.arrayOf(U.number)]).isRequired,rowWidth:U.number.isRequired,rowHeight:U.number.isRequired,columns:U.arrayOf(U.object).isRequired,data:U.array.isRequired,frozenData:U.array,headerRenderer:U.func.isRequired,rowRenderer:U.func.isRequired};function oee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function WCe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oee(r,!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oee(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yf(e,t){return te.isValidElement(e)?t?te.cloneElement(e,t):e:typeof e=="function"?e.prototype&&e.prototype.isReactComponent?te.createElement(e,t):e.defaultProps?e(WCe({},e.defaultProps,{},t)):e(t):null}function oct(e){var t=[];return te.Children.forEach(e,function(r){if(te.isValidElement(r)&&r.key){var n=WCe({},r.props,{key:r.key});t.push(n)}}),t}function XCe(e,t,r){if(r===void 0&&(r=!0),e===t||e===null&&t===null)return!0;if(e===null||t===null||typeof e!="object"||typeof t!="object")return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!(o==="_owner"&&e.$$typeof)){var s=e[o],l=t[o],A=typeof s;if(A!==typeof l)return!1;if(!(A==="function"&&r)){if(A==="object"){if(XCe(s,l,r))continue;return!1}if(s!==l)return!1}}}return!0}function fl(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return typeof e=="function"?e.apply(void 0,r):e}function sct(e){return Array.isArray(e.children)&&e.children.length>0}function lct(e,t,r,n){if(r===void 0&&(r={}),n===void 0&&(n="id"),!t||!t.length)return e;var a=[],i=new Set;t.forEach(function(l){return i.add(l)});var o=[].concat(e);o.forEach(function(l){return r[l[n]]=0});for(var s=function(){var A=o.shift();a.push(A),i.has(A[n])&&Array.isArray(A.children)&&A.children.length>0&&(o=[].concat(A.children,o),A.children.forEach(function(c){return r[c[n]]=r[A[n]]+1}))};o.length>0;)s();return a}function kk(e){return Array.isArray(e)?[].concat(e):[]}function Zo(){}function Act(e){return typeof e=="string"?e:e==null?"":e.toString?e.toString():""}function cct(e){for(var t=e.split("."),r=[],n=0;n<t.length;n++){for(var a=t[n];a[a.length-1]==="\\"&&t[n+1]!==void 0;)a=a.slice(0,-1)+".",a+=t[++n];r.push(a)}return r}function uct(e,t,r){if(e===null||typeof e!="object"||typeof t!="string")return r;for(var n=cct(t),a=0;a<n.length;a++){if(!Object.prototype.propertyIsEnumerable.call(e,n[a]))return r;if(e=e[n[a]],e==null){if(a!==n.length-1)return r;break}}return e}var dct=function(t,r){var n;return function(){for(var a=this,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];clearTimeout(n),n=setTimeout(function(){return t.apply(a,o)},r)}},fct=function(t,r){var n,a,i;return function(){var o=this,s=arguments;n?(clearTimeout(a),a=setTimeout(function(){Date.now()-i>=r&&(t.apply(o,s),i=Date.now())},Math.max(r-(Date.now()-i),0))):(t.apply(o,s),i=Date.now(),n=!0)}},Yw;function hct(e){if((!Yw&&Yw!==0||e)&&typeof window<"u"&&window.document&&window.document.createElement){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Yw=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Yw}function gct(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)"+t+"(?!\\S)"))||(e.className+=" "+t)}function pct(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)"+t+"(?!\\S)","g"),"")}function qCe(e,t){return typeof t=="function"?e.reduce(function(r,n,a){return r+t({rowData:n,rowIndex:a})},0):e.length*t}function see(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?see(r,!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):see(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var II=function(e){_a(t,e);function t(n){var a;return a=e.call(this,n)||this,a._setHeaderRef=a._setHeaderRef.bind(at(a)),a._setBodyRef=a._setBodyRef.bind(at(a)),a._setInnerRef=a._setInnerRef.bind(at(a)),a._itemKey=a._itemKey.bind(at(a)),a._getBodyWidth=a._getBodyWidth.bind(at(a)),a._handleItemsRendered=a._handleItemsRendered.bind(at(a)),a._resetColumnWidthCache=ao(function(i){a.props.estimatedRowHeight&&a.bodyRef&&a.bodyRef.resetAfterColumnIndex(0,!1)}),a._getEstimatedTotalRowsHeight=ao(qCe),a.renderRow=a.renderRow.bind(at(a)),a}var r=t.prototype;return r.resetAfterRowIndex=function(a,i){a===void 0&&(a=0),this.props.estimatedRowHeight&&this.bodyRef&&this.bodyRef.resetAfterRowIndex(a,i)},r.forceUpdateTable=function(){this.headerRef&&this.headerRef.forceUpdate(),this.bodyRef&&this.bodyRef.forceUpdate()},r.scrollToPosition=function(a){this.headerRef&&this.headerRef.scrollTo(a.scrollLeft),this.bodyRef&&this.bodyRef.scrollTo(a)},r.scrollToTop=function(a){this.bodyRef&&this.bodyRef.scrollTo({scrollTop:a})},r.scrollToLeft=function(a){this.headerRef&&this.headerRef.scrollTo(a),this.bodyRef&&this.bodyRef.scrollToPosition({scrollLeft:a})},r.scrollToRow=function(a,i){a===void 0&&(a=0),i===void 0&&(i="auto"),this.bodyRef&&this.bodyRef.scrollToItem({rowIndex:a,align:i})},r.getTotalRowsHeight=function(){var a=this.props,i=a.data,o=a.rowHeight,s=a.estimatedRowHeight;return s?this.innerRef&&this.innerRef.clientHeight||this._getEstimatedTotalRowsHeight(i,s):i.length*o},r.renderRow=function(a){var i=this.props,o=i.data,s=i.columns,l=i.rowRenderer,A=o[a.rowIndex];return l(vct({},a,{columns:s,rowData:A}))},r.render=function(){var a=this.props,i=a.containerStyle,o=a.classPrefix,s=a.className,l=a.data,A=a.frozenData,c=a.width,u=a.height,d=a.rowHeight,f=a.estimatedRowHeight,h=a.getRowHeight,g=a.headerWidth,p=a.bodyWidth,E=a.useIsScrolling,y=a.onScroll,C=a.hoveredRowKey,w=a.overscanRowCount;a.style,a.onScrollbarPresenceChange;var B=na(a,["containerStyle","classPrefix","className","data","frozenData","width","height","rowHeight","estimatedRowHeight","getRowHeight","headerWidth","bodyWidth","useIsScrolling","onScroll","hoveredRowKey","overscanRowCount","style","onScrollbarPresenceChange"]),M=this._getHeaderHeight(),I=A.length,S=d*I,R=He(o+"__table",s),b=i?{style:i}:null,Q=f?UCe:KCe;return this._resetColumnWidthCache(p),te.createElement("div",oe({role:"table",className:R},b),te.createElement(Q,oe({},B,{className:o+"__body",ref:this._setBodyRef,innerRef:this._setInnerRef,itemKey:this._itemKey,data:l,frozenData:A,width:c,height:Math.max(u-M-S,0),rowHeight:f?h:d,estimatedRowHeight:typeof f=="function"?void 0:f,rowCount:l.length,overscanRowCount:w,columnWidth:f?this._getBodyWidth:p,columnCount:1,overscanColumnCount:0,useIsScrolling:E,hoveredRowKey:C,onScroll:y,onItemsRendered:this._handleItemsRendered,children:this.renderRow})),M+S>0&&te.createElement(JCe,oe({},B,{className:o+"__header",ref:this._setHeaderRef,data:l,frozenData:A,width:c,height:Math.min(M+S,u),rowWidth:g,rowHeight:d,headerHeight:this.props.headerHeight,headerRenderer:this.props.headerRenderer,rowRenderer:this.props.rowRenderer,hoveredRowKey:I>0?C:null})))},r._setHeaderRef=function(a){this.headerRef=a},r._setBodyRef=function(a){this.bodyRef=a},r._setInnerRef=function(a){this.innerRef=a},r._itemKey=function(a){var i=a.rowIndex,o=this.props,s=o.data,l=o.rowKey;return s[i][l]},r._getHeaderHeight=function(){var a=this.props.headerHeight;return Array.isArray(a)?a.reduce(function(i,o){return i+o},0):a},r._getBodyWidth=function(){return this.props.bodyWidth},r._handleItemsRendered=function(a){var i=a.overscanRowStartIndex,o=a.overscanRowStopIndex,s=a.visibleRowStartIndex,l=a.visibleRowStopIndex;this.props.onRowsRendered({overscanStartIndex:i,overscanStopIndex:o,startIndex:s,stopIndex:l})},t}(te.PureComponent);II.propTypes={containerStyle:U.object,classPrefix:U.string,className:U.string,width:U.number.isRequired,height:U.number.isRequired,headerHeight:U.oneOfType([U.number,U.arrayOf(U.number)]).isRequired,headerWidth:U.number.isRequired,bodyWidth:U.number.isRequired,rowHeight:U.number.isRequired,estimatedRowHeight:U.oneOfType([U.func,U.number]),getRowHeight:U.func,columns:U.arrayOf(U.object).isRequired,data:U.array.isRequired,frozenData:U.array,rowKey:U.oneOfType([U.string,U.number]).isRequired,useIsScrolling:U.bool,overscanRowCount:U.number,hoveredRowKey:U.oneOfType([U.string,U.number]),style:U.object,onScrollbarPresenceChange:U.func,onScroll:U.func,onRowsRendered:U.func,headerRenderer:U.func.isRequired,rowRenderer:U.func.isRequired};var FL=function(t){var r=t.className,n=t.style,a=t.columns,i=t.headerIndex,o=t.cellRenderer,s=t.headerRenderer,l=t.expandColumnKey,A=t.expandIcon,c=t.tagName,u=na(t,["className","style","columns","headerIndex","cellRenderer","headerRenderer","expandColumnKey","expandIcon","tagName"]),d=a.map(function(f,h){return o({columns:a,column:f,columnIndex:h,headerIndex:i,expandIcon:f.key===l&&te.createElement(A,null)})});return s&&(d=yf(s,{cells:d,columns:a,headerIndex:i})),te.createElement(c,oe({},u,{className:r,style:n}),d)};FL.defaultProps={tagName:"div"};FL.propTypes={isScrolling:U.bool,className:U.string,style:U.object,columns:U.arrayOf(U.object).isRequired,headerIndex:U.number,cellRenderer:U.func,headerRenderer:U.oneOfType([U.func,U.element]),expandColumnKey:U.string,expandIcon:U.func,tagName:U.elementType};var _L=function(e){_a(t,e);function t(n){var a;return a=e.call(this,n)||this,a.state={measured:!1},a._setRef=a._setRef.bind(at(a)),a._handleExpand=a._handleExpand.bind(at(a)),a}var r=t.prototype;return r.componentDidMount=function(){this.props.estimatedRowHeight&&this.props.rowIndex>=0&&this._measureHeight(!0)},r.componentDidUpdate=function(a,i){var o=this;this.props.estimatedRowHeight&&this.props.rowIndex>=0&&!this.props.getIsResetting()&&this.state.measured&&i.measured&&this.setState({measured:!1},function(){return o._measureHeight()})},r.render=function(){var a=this.props,i=a.isScrolling,o=a.className,s=a.style,l=a.columns,A=a.rowIndex,c=a.rowData,u=a.expandColumnKey,d=a.depth,f=a.rowEventHandlers,h=a.estimatedRowHeight,g=a.rowRenderer,p=a.cellRenderer,E=a.expandIconRenderer,y=a.tagName;a.rowKey,a.getIsResetting,a.onRowHover,a.onRowExpand,a.onRowHeightChange;var C=na(a,["isScrolling","className","style","columns","rowIndex","rowData","expandColumnKey","depth","rowEventHandlers","estimatedRowHeight","rowRenderer","cellRenderer","expandIconRenderer","tagName","rowKey","getIsResetting","onRowHover","onRowExpand","onRowHeightChange"]),w=E({rowData:c,rowIndex:A,depth:d,onExpand:this._handleExpand}),B=l.map(function(S,R){return p({isScrolling:i,columns:l,column:S,columnIndex:R,rowData:c,rowIndex:A,expandIcon:S.key===u&&w})});g&&(B=yf(g,{isScrolling:i,cells:B,columns:l,rowData:c,rowIndex:A,depth:d}));var M=this._getEventHandlers(f);if(h&&A>=0){s.height;var I=na(s,["height"]);return te.createElement(y,oe({},C,{ref:this._setRef,className:o,style:this.state.measured?s:I},this.state.measured&&M),B)}return te.createElement(y,oe({},C,{className:o,style:s},M),B)},r._setRef=function(a){this.ref=a},r._handleExpand=function(a){var i=this.props,o=i.onRowExpand,s=i.rowData,l=i.rowIndex,A=i.rowKey;o&&o({expanded:a,rowData:s,rowIndex:l,rowKey:A})},r._measureHeight=function(a){if(this.ref){var i=this.props,o=i.style,s=i.rowKey,l=i.onRowHeightChange,A=i.rowIndex,c=i.columns,u=this.ref.getBoundingClientRect().height;this.setState({measured:!0},function(){(a||u!==o.height)&&l(s,u,A,c[0]&&!c[0].__placeholder__&&c[0].frozen)})}},r._getEventHandlers=function(a){a===void 0&&(a={});var i=this.props,o=i.rowData,s=i.rowIndex,l=i.rowKey,A=i.onRowHover,c={};if(Object.keys(a).forEach(function(f){var h=a[f];typeof h=="function"&&(c[f]=function(g){h({rowData:o,rowIndex:s,rowKey:l,event:g})})}),A){var u=c.onMouseEnter;c.onMouseEnter=function(f){A({hovered:!0,rowData:o,rowIndex:s,rowKey:l,event:f}),u&&u(f)};var d=c.onMouseLeave;c.onMouseLeave=function(f){A({hovered:!1,rowData:o,rowIndex:s,rowKey:l,event:f}),d&&d(f)}}return c},t}(te.PureComponent);_L.defaultProps={tagName:"div"};_L.propTypes={isScrolling:U.bool,className:U.string,style:U.object,columns:U.arrayOf(U.object).isRequired,rowData:U.object.isRequired,rowIndex:U.number.isRequired,rowKey:U.oneOfType([U.string,U.number]),expandColumnKey:U.string,depth:U.number,rowEventHandlers:U.object,rowRenderer:U.oneOfType([U.func,U.element]),cellRenderer:U.func,expandIconRenderer:U.func,estimatedRowHeight:U.oneOfType([U.number,U.func]),getIsResetting:U.func,onRowHover:U.func,onRowExpand:U.func,onRowHeightChange:U.func,tagName:U.elementType};var ZCe=function(t){var r=t.className,n=t.column;return t.columnIndex,te.createElement("div",{className:r},n.title)};ZCe.propTypes={className:U.string,column:U.object,columnIndex:U.number};var $Ce=function(t){var r=t.className,n=t.cellData;return t.column,t.columnIndex,t.rowData,t.rowIndex,te.createElement("div",{className:r},te.isValidElement(n)?n:Act(n))};$Ce.propTypes={className:U.string,cellData:U.any,column:U.object,columnIndex:U.number,rowData:U.object,rowIndex:U.number};var I0={LEFT:"left",CENTER:"center",RIGHT:"right"},Rf={LEFT:"left",RIGHT:"right",DEFAULT:!0,NONE:!1},Vv=function(e){_a(t,e);function t(){return e.apply(this,arguments)||this}return t}(te.Component);Vv.propTypes={className:U.oneOfType([U.string,U.func]),headerClassName:U.oneOfType([U.string,U.func]),style:U.object,title:U.node,dataKey:U.string,dataGetter:U.func,align:U.oneOf(["left","center","right"]),flexGrow:U.number,flexShrink:U.number,width:U.number.isRequired,maxWidth:U.number,minWidth:U.number,frozen:U.oneOf(["left","right",!0,!1]),hidden:U.bool,resizable:U.bool,sortable:U.bool,cellRenderer:U.oneOfType([U.func,U.element]),headerRenderer:U.oneOfType([U.func,U.element])};Vv.Alignment=I0;Vv.FrozenDirection=Rf;var si={ASC:"asc",DESC:"desc"},NL=function(e){_a(t,e);function t(n){var a;return a=e.call(this,n)||this,a._handleClick=a._handleClick.bind(at(a)),a}var r=t.prototype;return r.render=function(){var a=this.props,i=a.expandable,o=a.expanded,s=a.indentSize,l=a.depth,A=a.onExpand,c=na(a,["expandable","expanded","indentSize","depth","onExpand"]);if(!i&&s===0)return null;var u=He("BaseTable__expand-icon",{"BaseTable__expand-icon--expanded":o});return te.createElement("div",oe({},c,{className:u,onClick:i&&A?this._handleClick:null,style:{fontFamily:"initial",cursor:"pointer",userSelect:"none",width:"16px",minWidth:"16px",height:"16px",lineHeight:"16px",fontSize:"16px",textAlign:"center",transition:"transform 0.15s ease-out",transform:"rotate("+(i&&o?90:0)+"deg)",marginLeft:l*s}}),i&&"▸")},r._handleClick=function(a){a.stopPropagation(),a.preventDefault();var i=this.props,o=i.onExpand,s=i.expanded;o(!s)},t}(te.PureComponent);NL.defaultProps={depth:0,indentSize:16};NL.propTypes={expandable:U.bool,expanded:U.bool,indentSize:U.number,depth:U.number,onExpand:U.func};function lee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function mct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lee(r,!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lee(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var e1e=function(t){var r=t.sortOrder,n=t.className,a=t.style,i=He("BaseTable__sort-indicator",n,{"BaseTable__sort-indicator--descending":r===si.DESC});return te.createElement("div",{className:i,style:mct({userSelect:"none",width:"16px",height:"16px",lineHeight:"16px",textAlign:"center"},a)},r===si.DESC?"↓":"↑")};e1e.propTypes={sortOrder:U.oneOf([si.ASC,si.DESC]),className:U.string,style:U.object};function Aee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ect(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Aee(r,!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aee(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Pk=null;function yct(e){if(e){var t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&gct(e.body,"react-draggable-transparent-selection")}}function cee(e){if(e)try{if(e.body&&pct(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}var hA={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},lu=hA.mouse,kL=function(e){_a(t,e);function t(n){var a;return a=e.call(this,n)||this,a.isDragging=!1,a.lastX=Pk,a.width=0,a._setHandleRef=a._setHandleRef.bind(at(a)),a._handleClick=a._handleClick.bind(at(a)),a._handleMouseDown=a._handleMouseDown.bind(at(a)),a._handleMouseUp=a._handleMouseUp.bind(at(a)),a._handleTouchStart=a._handleTouchStart.bind(at(a)),a._handleTouchEnd=a._handleTouchEnd.bind(at(a)),a._handleDragStart=a._handleDragStart.bind(at(a)),a._handleDragStop=a._handleDragStop.bind(at(a)),a._handleDrag=a._handleDrag.bind(at(a)),a}var r=t.prototype;return r.componentWillUnmount=function(){if(this.handleRef){var a=this.handleRef.ownerDocument;a.removeEventListener(hA.mouse.move,this._handleDrag),a.removeEventListener(hA.mouse.stop,this._handleDragStop),a.removeEventListener(hA.touch.move,this._handleDrag),a.removeEventListener(hA.touch.stop,this._handleDragStop),cee(a)}},r.render=function(){var a=this.props,i=a.style;a.column,a.onResizeStart,a.onResize,a.onResizeStop,a.minWidth;var o=na(a,["style","column","onResizeStart","onResize","onResizeStop","minWidth"]);return te.createElement("div",oe({},o,{ref:this._setHandleRef,onClick:this._handleClick,onMouseDown:this._handleMouseDown,onMouseUp:this._handleMouseUp,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd,style:Ect({userSelect:"none",touchAction:"none",position:"absolute",top:0,bottom:0,right:0,cursor:"col-resize"},i)}))},r._setHandleRef=function(a){this.handleRef=a},r._handleClick=function(a){a.stopPropagation()},r._handleMouseDown=function(a){lu=hA.mouse,this._handleDragStart(a)},r._handleMouseUp=function(a){lu=hA.mouse,this._handleDragStop(a)},r._handleTouchStart=function(a){lu=hA.touch,this._handleDragStart(a)},r._handleTouchEnd=function(a){lu=hA.touch,this._handleDragStop(a)},r._handleDragStart=function(a){if(!(typeof a.button=="number"&&a.button!==0)){this.isDragging=!0,this.lastX=Pk,this.width=this.props.column.width,this.props.onResizeStart(this.props.column);var i=this.handleRef.ownerDocument;yct(i),i.addEventListener(lu.move,this._handleDrag),i.addEventListener(lu.stop,this._handleDragStop)}},r._handleDragStop=function(a){if(this.isDragging){this.isDragging=!1,this.props.onResizeStop(this.props.column);var i=this.handleRef.ownerDocument;cee(i),i.removeEventListener(lu.move,this._handleDrag),i.removeEventListener(lu.stop,this._handleDragStop)}},r._handleDrag=function(a){var i=a.clientX;a.type===hA.touch.move&&(a.preventDefault(),a.targetTouches&&a.targetTouches[0]&&(i=a.targetTouches[0].clientX));var o=this.handleRef.offsetParent,s=o.getBoundingClientRect(),l=i+o.scrollLeft-s.left;if(this.lastX===Pk){this.lastX=l;return}var A=this.props,c=A.column,u=A.minWidth,d=c.width,f=c.maxWidth,h=c.minWidth,g=h===void 0?u:h,p=l-this.lastX;if(p){this.width=this.width+p,this.lastX=l;var E=this.width;f&&E>f?E=f:E<g&&(E=g),E!==d&&this.props.onResize(c,E)}},t}(te.PureComponent);kL.defaultProps={onResizeStart:Zo,onResize:Zo,onResizeStop:Zo,minWidth:30};kL.propTypes={style:U.object,column:U.object,onResizeStart:U.func,onResize:U.func,onResizeStop:U.func,minWidth:U.number};function uee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Lw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uee(r,!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uee(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var q0=function(){function e(r,n){this._origColumns=[],this.reset(r,n)}var t=e.prototype;return t._cache=function(n,a){return n in this._cached?this._cached[n]:(this._cached[n]=a(),this._cached[n])},t.reset=function(n,a){var i=this;this._columns=n.map(function(o){var s=o.width;if(o.resizable){var l=i._origColumns.findIndex(function(A){return A.key===o.key});l>=0&&i._origColumns[l].width===o.width&&(s=i._columns[l].width)}return Lw({},o,{width:s})}),this._origColumns=n,this._fixed=a,this._cached={},this._columnStyles=this.recomputeColumnStyles()},t.resetCache=function(){this._cached={}},t.getOriginalColumns=function(){return this._origColumns},t.getColumns=function(){return this._columns},t.getVisibleColumns=function(){var n=this;return this._cache("visibleColumns",function(){return n._columns.filter(function(a){return!a.hidden})})},t.hasFrozenColumns=function(){var n=this;return this._cache("hasFrozenColumns",function(){return n._fixed&&n.getVisibleColumns().some(function(a){return!!a.frozen})})},t.hasLeftFrozenColumns=function(){var n=this;return this._cache("hasLeftFrozenColumns",function(){return n._fixed&&n.getVisibleColumns().some(function(a){return a.frozen===Rf.LEFT||a.frozen===!0})})},t.hasRightFrozenColumns=function(){var n=this;return this._cache("hasRightFrozenColumns",function(){return n._fixed&&n.getVisibleColumns().some(function(a){return a.frozen===Rf.RIGHT})})},t.getMainColumns=function(){var n=this;return this._cache("mainColumns",function(){var a=n.getVisibleColumns();if(!n.hasFrozenColumns())return a;var i=[];return n.getLeftFrozenColumns().forEach(function(o){var s;i.push(Lw({},o,(s={},s[e.PlaceholderKey]=!0,s)))}),n.getVisibleColumns().forEach(function(o){o.frozen||i.push(o)}),n.getRightFrozenColumns().forEach(function(o){var s;i.push(Lw({},o,(s={},s[e.PlaceholderKey]=!0,s)))}),i})},t.getLeftFrozenColumns=function(){var n=this;return this._cache("leftFrozenColumns",function(){return n._fixed?n.getVisibleColumns().filter(function(a){return a.frozen===Rf.LEFT||a.frozen===!0}):[]})},t.getRightFrozenColumns=function(){var n=this;return this._cache("rightFrozenColumns",function(){return n._fixed?n.getVisibleColumns().filter(function(a){return a.frozen===Rf.RIGHT}):[]})},t.getColumn=function(n){var a=this._columns.findIndex(function(i){return i.key===n});return this._columns[a]},t.getColumnsWidth=function(){var n=this;return this._cache("columnsWidth",function(){return n.recomputeColumnsWidth(n.getVisibleColumns())})},t.getLeftFrozenColumnsWidth=function(){var n=this;return this._cache("leftFrozenColumnsWidth",function(){return n.recomputeColumnsWidth(n.getLeftFrozenColumns())})},t.getRightFrozenColumnsWidth=function(){var n=this;return this._cache("rightFrozenColumnsWidth",function(){return n.recomputeColumnsWidth(n.getRightFrozenColumns())})},t.recomputeColumnsWidth=function(n){return n.reduce(function(a,i){return a+i.width},0)},t.setColumnWidth=function(n,a){var i=this.getColumn(n);i.width=a,this._cached={},this._columnStyles[i.key]=this.recomputeColumnStyle(i)},t.getColumnStyle=function(n){return this._columnStyles[n]},t.getColumnStyles=function(){return this._columnStyles},t.recomputeColumnStyle=function(n){var a=0,i=0;this._fixed||(a=typeof n.flexGrow=="number"?n.flexGrow:0,i=typeof n.flexShrink=="number"?n.flexShrink:1);var o=a+" "+i+" auto",s=Lw({},n.style,{flex:o,msFlex:o,WebkitFlex:o,width:n.width,overflow:"hidden"});return!this._fixed&&n.maxWidth&&(s.maxWidth=n.maxWidth),!this._fixed&&n.minWidth&&(s.minWidth=n.minWidth),s},t.recomputeColumnStyles=function(){var n=this;return this._columns.reduce(function(a,i){return a[i.key]=n.recomputeColumnStyle(i),a},{})},e}();q0.PlaceholderKey="__placeholder__";function dee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Uw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dee(r,!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dee(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var fee=ao(function(e,t){return e||oct(t)}),hee=function(t,r,n){return{width:t,maxWidth:r,height:n,overflow:"hidden"}},Cct={TableCell:$Ce,TableHeaderCell:ZCe,ExpandIcon:NL,SortIndicator:e1e},wct=50,Bct=[],fv=function(e){_a(t,e);function t(n){var a;a=e.call(this,n)||this;var i=n.columns,o=n.children,s=n.defaultExpandedRowKeys;return a.state={scrollbarSize:0,hoveredRowKey:null,resizingKey:null,resizingWidth:0,expandedRowKeys:kk(s)},a.columnManager=new q0(fee(i,o),n.fixed),a._setContainerRef=a._setContainerRef.bind(at(a)),a._setMainTableRef=a._setMainTableRef.bind(at(a)),a._setLeftTableRef=a._setLeftTableRef.bind(at(a)),a._setRightTableRef=a._setRightTableRef.bind(at(a)),a.renderExpandIcon=a.renderExpandIcon.bind(at(a)),a.renderRow=a.renderRow.bind(at(a)),a.renderRowCell=a.renderRowCell.bind(at(a)),a.renderHeader=a.renderHeader.bind(at(a)),a.renderHeaderCell=a.renderHeaderCell.bind(at(a)),a._handleScroll=a._handleScroll.bind(at(a)),a._handleVerticalScroll=a._handleVerticalScroll.bind(at(a)),a._handleRowsRendered=a._handleRowsRendered.bind(at(a)),a._handleRowHover=a._handleRowHover.bind(at(a)),a._handleRowExpand=a._handleRowExpand.bind(at(a)),a._handleColumnResize=fct(a._handleColumnResize.bind(at(a)),wct),a._handleColumnResizeStart=a._handleColumnResizeStart.bind(at(a)),a._handleColumnResizeStop=a._handleColumnResizeStop.bind(at(a)),a._handleColumnSort=a._handleColumnSort.bind(at(a)),a._handleFrozenRowHeightChange=a._handleFrozenRowHeightChange.bind(at(a)),a._handleRowHeightChange=a._handleRowHeightChange.bind(at(a)),a._getLeftTableContainerStyle=ao(hee),a._getRightTableContainerStyle=ao(hee),a._flattenOnKeys=ao(function(l,A,c){return a._depthMap={},lct(l,A,a._depthMap,c)}),a._resetColumnManager=ao(function(l,A){a.columnManager.reset(l,A),a.props.estimatedRowHeight&&A&&(a.columnManager.hasLeftFrozenColumns()||(a._leftRowHeightMap={}),a.columnManager.hasRightFrozenColumns()||(a._rightRowHeightMap={}))},function(l,A){return XCe(l,A,a.props.ignoreFunctionInColumnCompare)}),a._isResetting=!1,a._resetIndex=null,a._rowHeightMap={},a._rowHeightMapBuffer={},a._mainRowHeightMap={},a._leftRowHeightMap={},a._rightRowHeightMap={},a._getEstimatedTotalRowsHeight=ao(qCe),a._getRowHeight=a._getRowHeight.bind(at(a)),a._updateRowHeights=dct(function(){a._isResetting=!0,a._rowHeightMap=Uw({},a._rowHeightMap,{},a._rowHeightMapBuffer),a.resetAfterRowIndex(a._resetIndex,!1),a._rowHeightMapBuffer={},a._resetIndex=null,a.forceUpdateTable(),a.forceUpdate(),a._isResetting=!1},0),a._scroll={scrollLeft:0,scrollTop:0},a._scrollHeight=0,a._lastScannedRowIndex=-1,a._hasDataChangedSinceEndReached=!0,a._data=n.data,a._depthMap={},a._horizontalScrollbarSize=0,a._verticalScrollbarSize=0,a._scrollbarPresenceChanged=!1,a}var r=t.prototype;return r.getDOMNode=function(){return this.tableNode},r.getColumnManager=function(){return this.columnManager},r.getExpandedRowKeys=function(){var a=this.props.expandedRowKeys;return a!==void 0?a||Bct:this.state.expandedRowKeys},r.getExpandedState=function(){return{expandedData:this._data,expandedRowKeys:this.getExpandedRowKeys(),expandedDepthMap:this._depthMap}},r.getTotalRowsHeight=function(){var a=this.props,i=a.rowHeight,o=a.estimatedRowHeight;return o?this.table?this.table.getTotalRowsHeight():this._getEstimatedTotalRowsHeight(this._data,o):this._data.length*i},r.getTotalColumnsWidth=function(){return this.columnManager.getColumnsWidth()},r.forceUpdateTable=function(){this.table&&this.table.forceUpdateTable(),this.leftTable&&this.leftTable.forceUpdateTable(),this.rightTable&&this.rightTable.forceUpdateTable()},r.resetAfterRowIndex=function(a,i){a===void 0&&(a=0),i===void 0&&(i=!0),this.props.estimatedRowHeight&&(this.table&&this.table.resetAfterRowIndex(a,i),this.leftTable&&this.leftTable.resetAfterRowIndex(a,i),this.rightTable&&this.rightTable.resetAfterRowIndex(a,i))},r.resetRowHeightCache=function(){this.props.estimatedRowHeight&&(this._resetIndex=null,this._rowHeightMapBuffer={},this._rowHeightMap={},this._mainRowHeightMap={},this._leftRowHeightMap={},this._rightRowHeightMap={})},r.scrollToPosition=function(a){this._scroll=a,this.table&&this.table.scrollToPosition(a),this.leftTable&&this.leftTable.scrollToTop(a.scrollTop),this.rightTable&&this.rightTable.scrollToTop(a.scrollTop)},r.scrollToTop=function(a){this._scroll.scrollTop=a,this.table&&this.table.scrollToPosition(this._scroll),this.leftTable&&this.leftTable.scrollToTop(a),this.rightTable&&this.rightTable.scrollToTop(a)},r.scrollToLeft=function(a){this._scroll.scrollLeft=a,this.table&&this.table.scrollToPosition(this._scroll)},r.scrollToRow=function(a,i){a===void 0&&(a=0),i===void 0&&(i="auto"),this.table&&this.table.scrollToRow(a,i),this.leftTable&&this.leftTable.scrollToRow(a,i),this.rightTable&&this.rightTable.scrollToRow(a,i)},r.setExpandedRowKeys=function(a){this.props.expandedRowKeys===void 0&&this.setState({expandedRowKeys:kk(a)})},r.renderExpandIcon=function(a){var i=a.rowData,o=a.rowIndex,s=a.depth,l=a.onExpand,A=this.props,c=A.rowKey,u=A.expandColumnKey,d=A.expandIconProps;if(!u)return null;var f=o>=0&&sct(i),h=o>=0&&this.getExpandedRowKeys().indexOf(i[c])>=0,g=fl(d,{rowData:i,rowIndex:o,depth:s,expandable:f,expanded:h}),p=this._getComponent("ExpandIcon");return te.createElement(p,oe({depth:s,expandable:f,expanded:h},g,{onExpand:l}))},r.renderRow=function(a){var i,o=a.isScrolling,s=a.columns,l=a.rowData,A=a.rowIndex,c=a.style,u=this.props,d=u.rowClassName,f=u.rowRenderer,h=u.rowEventHandlers,g=u.expandColumnKey,p=u.estimatedRowHeight,E=fl(d,{columns:s,rowData:l,rowIndex:A}),y=fl(this.props.rowProps,{columns:s,rowData:l,rowIndex:A}),C=l[this.props.rowKey],w=this._depthMap[C]||0,B=He(this._prefixClass("row"),E,(i={},i[this._prefixClass("row--depth-"+w)]=!!g&&A>=0,i[this._prefixClass("row--expanded")]=!!g&&this.getExpandedRowKeys().indexOf(C)>=0,i[this._prefixClass("row--hovered")]=!o&&C===this.state.hoveredRowKey,i[this._prefixClass("row--frozen")]=w===0&&A<0,i[this._prefixClass("row--customized")]=f,i)),M=this.columnManager.hasFrozenColumns(),I=Uw({},y,{role:"row",key:"row-"+C,isScrolling:o,className:B,style:c,columns:s,rowIndex:A,rowData:l,rowKey:C,expandColumnKey:g,depth:w,rowEventHandlers:h,rowRenderer:f,estimatedRowHeight:A>=0?p:void 0,getIsResetting:this._getIsResetting,cellRenderer:this.renderRowCell,expandIconRenderer:this.renderExpandIcon,onRowExpand:this._handleRowExpand,onRowHover:M?this._handleRowHover:null,onRowHeightChange:M?this._handleFrozenRowHeightChange:this._handleRowHeightChange});return te.createElement(_L,I)},r.renderRowCell=function(a){var i,o=a.isScrolling,s=a.columns,l=a.column,A=a.columnIndex,c=a.rowData,u=a.rowIndex,d=a.expandIcon;if(l[q0.PlaceholderKey])return te.createElement("div",{key:"row-"+c[this.props.rowKey]+"-cell-"+l.key+"-placeholder",className:this._prefixClass("row-cell-placeholder"),style:this.columnManager.getColumnStyle(l.key)});var f=l.className,h=l.dataKey,g=l.dataGetter,p=l.cellRenderer,E=this._getComponent("TableCell"),y=g?g({columns:s,column:l,columnIndex:A,rowData:c,rowIndex:u}):uct(c,h),C={isScrolling:o,cellData:y,columns:s,column:l,columnIndex:A,rowData:c,rowIndex:u,container:this},w=yf(p||te.createElement(E,{className:this._prefixClass("row-cell-text")}),C),B=fl(f,{cellData:y,columns:s,column:l,columnIndex:A,rowData:c,rowIndex:u}),M=He(this._prefixClass("row-cell"),B,(i={},i[this._prefixClass("row-cell--align-center")]=l.align===I0.CENTER,i[this._prefixClass("row-cell--align-right")]=l.align===I0.RIGHT,i)),I=fl(this.props.cellProps,{columns:s,column:l,columnIndex:A,rowData:c,rowIndex:u}),S=I||{},R=S.tagName,b=na(S,["tagName"]),Q=R||"div";return te.createElement(Q,oe({role:"gridcell",key:"row-"+c[this.props.rowKey]+"-cell-"+l.key},b,{className:M,style:this.columnManager.getColumnStyle(l.key)}),d,w)},r.renderHeader=function(a){var i,o=a.columns,s=a.headerIndex,l=a.style,A=this.props,c=A.headerClassName,u=A.headerRenderer,d=fl(c,{columns:o,headerIndex:s}),f=fl(this.props.headerProps,{columns:o,headerIndex:s}),h=He(this._prefixClass("header-row"),d,(i={},i[this._prefixClass("header-row--resizing")]=!!this.state.resizingKey,i[this._prefixClass("header-row--customized")]=u,i)),g=Uw({},f,{role:"row",key:"header-"+s,className:h,style:l,columns:o,headerIndex:s,headerRenderer:u,cellRenderer:this.renderHeaderCell,expandColumnKey:this.props.expandColumnKey,expandIcon:this._getComponent("ExpandIcon")});return te.createElement(FL,g)},r.renderHeaderCell=function(a){var i,o,s=a.columns,l=a.column,A=a.columnIndex,c=a.headerIndex,u=a.expandIcon;if(l[q0.PlaceholderKey])return te.createElement("div",{key:"header-"+c+"-cell-"+l.key+"-placeholder",className:this._prefixClass("header-cell-placeholder"),style:this.columnManager.getColumnStyle(l.key)});var d=l.headerClassName,f=l.headerRenderer,h=this.props,g=h.sortBy,p=h.sortState,E=h.headerCellProps,y=this._getComponent("TableHeaderCell"),C=this._getComponent("SortIndicator"),w={columns:s,column:l,columnIndex:A,headerIndex:c,container:this},B=yf(f||te.createElement(y,{className:this._prefixClass("header-cell-text")}),w),M,I;if(p){var S=p[l.key];M=S===si.ASC||S===si.DESC,I=M?S:si.ASC}else M=l.key===g.key,I=M?g.order:si.ASC;var R=fl(d,{columns:s,column:l,columnIndex:A,headerIndex:c}),b=He(this._prefixClass("header-cell"),R,(i={},i[this._prefixClass("header-cell--align-center")]=l.align===I0.CENTER,i[this._prefixClass("header-cell--align-right")]=l.align===I0.RIGHT,i[this._prefixClass("header-cell--sortable")]=l.sortable,i[this._prefixClass("header-cell--sorting")]=M,i[this._prefixClass("header-cell--resizing")]=l.key===this.state.resizingKey,i)),Q=fl(E,{columns:s,column:l,columnIndex:A,headerIndex:c}),D=Q||{},F=D.tagName,N=na(D,["tagName"]),k=F||"div";return te.createElement(k,oe({role:"gridcell",key:"header-"+c+"-cell-"+l.key,onClick:l.sortable?this._handleColumnSort:null},N,{className:b,style:this.columnManager.getColumnStyle(l.key),"data-key":l.key}),u,B,l.sortable&&te.createElement(C,{sorting:M,sortOrder:I,className:He(this._prefixClass("sort-indicator"),(o={},o[this._prefixClass("sort-indicator--descending")]=I===si.DESC,o))}),l.resizable&&te.createElement(kL,{className:this._prefixClass("column-resizer"),column:l,onResizeStart:this._handleColumnResizeStart,onResizeStop:this._handleColumnResizeStop,onResize:this._handleColumnResize}))},r.renderMainTable=function(){var a=this.props,i=a.width,o=a.headerHeight,s=a.rowHeight,l=a.fixed,A=a.estimatedRowHeight,c=na(a,["width","headerHeight","rowHeight","fixed","estimatedRowHeight"]),u=this._getTableHeight(),d=i-this._verticalScrollbarSize;if(l){var f=this.columnManager.getColumnsWidth();d=Math.max(Math.round(f),d)}return te.createElement(II,oe({},c,this.state,{className:this._prefixClass("table-main"),ref:this._setMainTableRef,data:this._data,columns:this.columnManager.getMainColumns(),width:i,height:u,headerHeight:o,rowHeight:s,estimatedRowHeight:A,getRowHeight:A?this._getRowHeight:void 0,headerWidth:d+(l?this._verticalScrollbarSize:0),bodyWidth:d,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleScroll,onRowsRendered:this._handleRowsRendered}))},r.renderLeftTable=function(){if(!this.columnManager.hasLeftFrozenColumns())return null;var a=this.props,i=a.width,o=a.headerHeight,s=a.rowHeight,l=a.estimatedRowHeight,A=na(a,["width","headerHeight","rowHeight","estimatedRowHeight"]),c=this._getFrozenContainerHeight(),u=this._verticalScrollbarSize||20,d=this.columnManager.getLeftFrozenColumnsWidth();return te.createElement(II,oe({},A,this.state,{containerStyle:this._getLeftTableContainerStyle(d,i,c),className:this._prefixClass("table-frozen-left"),ref:this._setLeftTableRef,data:this._data,columns:this.columnManager.getLeftFrozenColumns(),initialScrollTop:this._scroll.scrollTop,width:d+u,height:c,headerHeight:o,rowHeight:s,estimatedRowHeight:l,getRowHeight:l?this._getRowHeight:void 0,headerWidth:d+u,bodyWidth:d+u,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleVerticalScroll,onRowsRendered:Zo}))},r.renderRightTable=function(){if(!this.columnManager.hasRightFrozenColumns())return null;var a=this.props,i=a.width,o=a.headerHeight,s=a.rowHeight,l=a.estimatedRowHeight,A=na(a,["width","headerHeight","rowHeight","estimatedRowHeight"]),c=this._getFrozenContainerHeight(),u=this.columnManager.getRightFrozenColumnsWidth(),d=this._verticalScrollbarSize;return te.createElement(II,oe({},A,this.state,{containerStyle:this._getLeftTableContainerStyle(u+d,i,c),className:this._prefixClass("table-frozen-right"),ref:this._setRightTableRef,data:this._data,columns:this.columnManager.getRightFrozenColumns(),initialScrollTop:this._scroll.scrollTop,width:u+d,height:c,headerHeight:o,rowHeight:s,estimatedRowHeight:l,getRowHeight:l?this._getRowHeight:void 0,headerWidth:u+d,bodyWidth:u,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleVerticalScroll,onRowsRendered:Zo}))},r.renderResizingLine=function(){var a=this.props,i=a.width,o=a.fixed,s=this.state.resizingKey;if(!o||!s)return null;var l=this.columnManager.getMainColumns(),A=l.findIndex(function(E){return E.key===s}),c=l[A],u=c.width,d=c.frozen,f=this.columnManager.recomputeColumnsWidth(l.slice(0,A)),h=f+u;if(!d)h-=this._scroll.scrollLeft;else if(d===Rf.RIGHT){var g=this.columnManager.recomputeColumnsWidth(l.slice(A+1));g+u>i-this._verticalScrollbarSize?h=u:h=i-this._verticalScrollbarSize-g}var p={left:h,height:this._getTableHeight()-this._horizontalScrollbarSize};return te.createElement("div",{className:this._prefixClass("resizing-line"),style:p})},r.renderFooter=function(){var a=this.props,i=a.footerHeight,o=a.footerRenderer;return i===0?null:te.createElement("div",{className:this._prefixClass("footer"),style:{height:i}},yf(o))},r.renderEmptyLayer=function(){var a=this.props,i=a.data,o=a.frozenData,s=a.footerHeight,l=a.emptyRenderer;if(i&&i.length||o&&o.length)return null;var A=this._getHeaderHeight();return te.createElement("div",{className:this._prefixClass("empty-layer"),style:{top:A,bottom:s}},yf(l))},r.renderOverlay=function(){var a=this.props.overlayRenderer;return te.createElement("div",{className:this._prefixClass("overlay")},!!a&&yf(a))},r.render=function(){var a,i=this.props,o=i.columns,s=i.children,l=i.width,A=i.fixed,c=i.data,u=i.frozenData,d=i.expandColumnKey,f=i.disabled,h=i.className,g=i.style,p=i.footerHeight,E=i.classPrefix,y=i.estimatedRowHeight;this._resetColumnManager(fee(o,s),A);var C=d?this._flattenOnKeys(c,this.getExpandedRowKeys(),this.props.rowKey):c;this._data!==C&&(this.resetAfterRowIndex(0,!1),this._data=C),this._calcScrollbarSizes(),this._totalRowsHeight=this.getTotalRowsHeight();var w=Uw({},g,{width:l,height:this._getTableHeight()+p,position:"relative"}),B=He(E,h,(a={},a[E+"--fixed"]=A,a[E+"--expandable"]=!!d,a[E+"--empty"]=c.length===0,a[E+"--has-frozen-rows"]=u.length>0,a[E+"--has-frozen-columns"]=this.columnManager.hasFrozenColumns(),a[E+"--disabled"]=f,a[E+"--dynamic"]=!!y,a));return te.createElement("div",{ref:this._setContainerRef,className:B,style:w},this.renderFooter(),this.renderMainTable(),this.renderLeftTable(),this.renderRightTable(),this.renderResizingLine(),this.renderEmptyLayer(),this.renderOverlay())},r.componentDidMount=function(){var a=this.props.getScrollbarSize();a>0&&this.setState({scrollbarSize:a})},r.componentDidUpdate=function(a,i){var o=this.props,s=o.data,l=o.height,A=o.maxHeight,c=o.estimatedRowHeight;s!==a.data&&(this._lastScannedRowIndex=-1,this._hasDataChangedSinceEndReached=!0),(A!==a.maxHeight||l!==a.height)&&this._maybeCallOnEndReached(),this._maybeScrollbarPresenceChange(),c&&this.getTotalRowsHeight()!==this._totalRowsHeight&&this.forceUpdate()},r._prefixClass=function(a){return this.props.classPrefix+"__"+a},r._setContainerRef=function(a){this.tableNode=a},r._setMainTableRef=function(a){this.table=a},r._setLeftTableRef=function(a){this.leftTable=a},r._setRightTableRef=function(a){this.rightTable=a},r._getComponent=function(a){return this.props.components&&this.props.components[a]?this.props.components[a]:Cct[a]},r._getRowHeight=function(a){var i=this.props,o=i.estimatedRowHeight,s=i.rowKey;return this._rowHeightMap[this._data[a][s]]||fl(o,{rowData:this._data[a],rowIndex:a})},r._getIsResetting=function(){return this._isResetting},r._getHeaderHeight=function(){var a=this.props.headerHeight;return Array.isArray(a)?a.reduce(function(i,o){return i+o},0):a},r._getFrozenRowsHeight=function(){var a=this.props,i=a.frozenData,o=a.rowHeight;return i.length*o},r._getTableHeight=function(){var a=this.props,i=a.height,o=a.maxHeight,s=a.footerHeight,l=i-s;if(o>0){var A=this._getFrozenRowsHeight(),c=this.getTotalRowsHeight(),u=this._getHeaderHeight(),d=u+A+c+this._horizontalScrollbarSize;l=Math.min(d,o-s)}return l},r._getBodyHeight=function(){return this._getTableHeight()-this._getHeaderHeight()-this._getFrozenRowsHeight()},r._getFrozenContainerHeight=function(){var a=this.props.maxHeight,i=this._getTableHeight()-(this._data.length>0?this._horizontalScrollbarSize:0);if(a>0)return i;var o=this.getTotalRowsHeight()+this._getHeaderHeight()+this._getFrozenRowsHeight();return Math.min(i,o)},r._calcScrollbarSizes=function(){var a=this.props,i=a.fixed,o=a.width,s=this.state.scrollbarSize,l=this.getTotalRowsHeight(),A=this.getTotalColumnsWidth(),c=this._horizontalScrollbarSize,u=this._verticalScrollbarSize;s===0?(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=0):!i||A<=o-s?(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=l>this._getBodyHeight()?s:0):A>o?(this._horizontalScrollbarSize=s,this._verticalScrollbarSize=l>this._getBodyHeight()-this._horizontalScrollbarSize?s:0):(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=0,l>this._getBodyHeight()&&(this._horizontalScrollbarSize=s,this._verticalScrollbarSize=s)),(c!==this._horizontalScrollbarSize||u!==this._verticalScrollbarSize)&&(this._scrollbarPresenceChanged=!0)},r._maybeScrollbarPresenceChange=function(){if(this._scrollbarPresenceChanged){var a=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,a({size:this.state.scrollbarSize,horizontal:this._horizontalScrollbarSize>0,vertical:this._verticalScrollbarSize>0})}},r._maybeCallOnEndReached=function(){var a=this.props,i=a.onEndReached,o=a.onEndReachedThreshold,s=this._scroll.scrollTop,l=this.getTotalRowsHeight(),A=this._getBodyHeight();if(!(!i||!A||!l)){var c=l-s-A+this._horizontalScrollbarSize;this._lastScannedRowIndex>=0&&c<=o&&(this._hasDataChangedSinceEndReached||l!==this._scrollHeight)&&(this._hasDataChangedSinceEndReached=!1,this._scrollHeight=l,i({distanceFromEnd:c}))}},r._handleScroll=function(a){var i=this._scroll.scrollTop;this.scrollToPosition(a),this.props.onScroll(a),a.scrollTop>i&&this._maybeCallOnEndReached()},r._handleVerticalScroll=function(a){var i=a.scrollTop,o=this._scroll.scrollTop;i!==o&&this.scrollToTop(i),i>o&&this._maybeCallOnEndReached()},r._handleRowsRendered=function(a){this.props.onRowsRendered(a),a.overscanStopIndex>this._lastScannedRowIndex&&(this._lastScannedRowIndex=a.overscanStopIndex,this._maybeCallOnEndReached())},r._handleRowHover=function(a){var i=a.hovered,o=a.rowKey;this.setState({hoveredRowKey:i?o:null})},r._handleRowExpand=function(a){var i=a.expanded,o=a.rowData,s=a.rowIndex,l=a.rowKey,A=kk(this.getExpandedRowKeys());if(i)!A.indexOf(l)>=0&&A.push(l);else{var c=A.indexOf(l);c>-1&&A.splice(c,1)}this.props.expandedRowKeys===void 0&&this.setState({expandedRowKeys:A}),this.props.onRowExpand({expanded:i,rowData:o,rowIndex:s,rowKey:l}),this.props.onExpandedRowsChange(A)},r._handleColumnResize=function(a,i){var o=a.key;this.columnManager.setColumnWidth(o,i),this.setState({resizingWidth:i});var s=this.columnManager.getColumn(o);this.props.onColumnResize({column:s,width:i})},r._handleColumnResizeStart=function(a){var i=a.key;this.setState({resizingKey:i})},r._handleColumnResizeStop=function(){var a=this.state,i=a.resizingKey,o=a.resizingWidth;if(this.setState({resizingKey:null,resizingWidth:0}),!(!i||!o)){var s=this.columnManager.getColumn(i);this.props.onColumnResizeEnd({column:s,width:o})}},r._handleColumnSort=function(a){var i=a.currentTarget.dataset.key,o=this.props,s=o.sortBy,l=o.sortState,A=o.onColumnSort,c=si.ASC;l?c=l[i]===si.ASC?si.DESC:si.ASC:i===s.key&&(c=s.order===si.ASC?si.DESC:si.ASC);var u=this.columnManager.getColumn(i);A({column:u,key:i,order:c})},r._handleFrozenRowHeightChange=function(a,i,o,s){s?s===Rf.RIGHT?this._rightRowHeightMap[a]=i:this._leftRowHeightMap[a]=i:this._mainRowHeightMap[a]=i;var l=Math.max(this._mainRowHeightMap[a]||0,this._leftRowHeightMap[a]||0,this._rightRowHeightMap[a]||0);this._rowHeightMap[a]!==l&&this._handleRowHeightChange(a,l,o)},r._handleRowHeightChange=function(a,i,o){this._resetIndex===null?this._resetIndex=o:this._resetIndex>o&&(this._resetIndex=o),this._rowHeightMapBuffer[a]=i,this._updateRowHeights()},t}(te.PureComponent);fv.Column=Vv;fv.PlaceholderKey=q0.PlaceholderKey;fv.defaultProps={classPrefix:"BaseTable",rowKey:"id",data:[],frozenData:[],fixed:!1,headerHeight:50,rowHeight:50,footerHeight:0,defaultExpandedRowKeys:[],sortBy:{},useIsScrolling:!1,overscanRowCount:1,onEndReachedThreshold:500,getScrollbarSize:hct,ignoreFunctionInColumnCompare:!0,onScroll:Zo,onRowsRendered:Zo,onScrollbarPresenceChange:Zo,onRowExpand:Zo,onExpandedRowsChange:Zo,onColumnSort:Zo,onColumnResize:Zo,onColumnResizeEnd:Zo};fv.propTypes={classPrefix:U.string,className:U.string,style:U.object,children:U.node,columns:U.arrayOf(U.shape(Vv.propTypes)),data:U.array.isRequired,frozenData:U.array,rowKey:U.oneOfType([U.string,U.number]).isRequired,width:U.number.isRequired,height:U.number,maxHeight:U.number,rowHeight:U.number,estimatedRowHeight:U.oneOfType([U.number,U.func]),headerHeight:U.oneOfType([U.number,U.arrayOf(U.number)]).isRequired,footerHeight:U.number,fixed:U.bool,disabled:U.bool,overlayRenderer:U.oneOfType([U.func,U.element]),emptyRenderer:U.oneOfType([U.func,U.element]),footerRenderer:U.oneOfType([U.func,U.element]),headerRenderer:U.oneOfType([U.func,U.element]),rowRenderer:U.oneOfType([U.func,U.element]),headerClassName:U.oneOfType([U.string,U.func]),rowClassName:U.oneOfType([U.string,U.func]),headerProps:U.oneOfType([U.object,U.func]),headerCellProps:U.oneOfType([U.object,U.func]),rowProps:U.oneOfType([U.object,U.func]),cellProps:U.oneOfType([U.object,U.func]),expandIconProps:U.oneOfType([U.object,U.func]),expandColumnKey:U.string,defaultExpandedRowKeys:U.arrayOf(U.oneOfType([U.string,U.number])),expandedRowKeys:U.arrayOf(U.oneOfType([U.string,U.number])),onRowExpand:U.func,onExpandedRowsChange:U.func,sortBy:U.shape({key:U.string,order:U.oneOf([si.ASC,si.DESC])}),sortState:U.object,onColumnSort:U.func,onColumnResize:U.func,onColumnResizeEnd:U.func,useIsScrolling:U.bool,overscanRowCount:U.number,getScrollbarSize:U.func,onScroll:U.func,onEndReached:U.func,onEndReachedThreshold:U.number,onRowsRendered:U.func,onScrollbarPresenceChange:U.func,rowEventHandlers:U.object,ignoreFunctionInColumnCompare:U.bool,components:U.shape({TableCell:U.elementType,TableHeaderCell:U.elementType,ExpandIcon:U.elementType,SortIndicator:U.elementType})};let _s;typeof window<"u"?_s=window:typeof self<"u"?_s=self:_s=global;let Fj=null,_j=null;const gee=20,Ok=_s.clearTimeout,pee=_s.setTimeout,zk=_s.cancelAnimationFrame||_s.mozCancelAnimationFrame||_s.webkitCancelAnimationFrame,vee=_s.requestAnimationFrame||_s.mozRequestAnimationFrame||_s.webkitRequestAnimationFrame;zk==null||vee==null?(Fj=Ok,_j=function(t){return pee(t,gee)}):(Fj=function([t,r]){zk(t),Ok(r)},_j=function(t){const r=vee(function(){Ok(n),t()}),n=pee(function(){zk(r),t()},gee);return[r,n]});function Mct(e){let t,r,n,a,i,o,s;const l=typeof document<"u"&&document.attachEvent;if(!l){o=function(E){const y=E.__resizeTriggers__,C=y.firstElementChild,w=y.lastElementChild,B=C.firstElementChild;w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight,B.style.width=C.offsetWidth+1+"px",B.style.height=C.offsetHeight+1+"px",C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight},i=function(E){return E.offsetWidth!==E.__resizeLast__.width||E.offsetHeight!==E.__resizeLast__.height},s=function(E){if(E.target.className&&typeof E.target.className.indexOf=="function"&&E.target.className.indexOf("contract-trigger")<0&&E.target.className.indexOf("expand-trigger")<0)return;const y=this;o(this),this.__resizeRAF__&&Fj(this.__resizeRAF__),this.__resizeRAF__=_j(function(){i(y)&&(y.__resizeLast__.width=y.offsetWidth,y.__resizeLast__.height=y.offsetHeight,y.__resizeListeners__.forEach(function(B){B.call(y,E)}))})};let d=!1,f="";n="animationstart";const h="Webkit Moz O ms".split(" ");let g="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const E=document.createElement("fakeelement");if(E.style.animationName!==void 0&&(d=!0),d===!1){for(let y=0;y<h.length;y++)if(E.style[h[y]+"AnimationName"]!==void 0){p=h[y],f="-"+p.toLowerCase()+"-",n=g[y],d=!0;break}}}r="resizeanim",t="@"+f+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",a=f+"animation: 1ms "+r+"; "}const A=function(d){if(!d.getElementById("detectElementResize")){const f=(t||"")+".resize-triggers { "+(a||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',h=d.head||d.getElementsByTagName("head")[0],g=d.createElement("style");g.id="detectElementResize",g.type="text/css",e!=null&&g.setAttribute("nonce",e),g.styleSheet?g.styleSheet.cssText=f:g.appendChild(d.createTextNode(f)),h.appendChild(g)}};return{addResizeListener:function(d,f){if(l)d.attachEvent("onresize",f);else{if(!d.__resizeTriggers__){const h=d.ownerDocument,g=_s.getComputedStyle(d);g&&g.position==="static"&&(d.style.position="relative"),A(h),d.__resizeLast__={},d.__resizeListeners__=[],(d.__resizeTriggers__=h.createElement("div")).className="resize-triggers";const p=h.createElement("div");p.className="expand-trigger",p.appendChild(h.createElement("div"));const E=h.createElement("div");E.className="contract-trigger",d.__resizeTriggers__.appendChild(p),d.__resizeTriggers__.appendChild(E),d.appendChild(d.__resizeTriggers__),o(d),d.addEventListener("scroll",s,!0),n&&(d.__resizeTriggers__.__animationListener__=function(C){C.animationName===r&&o(d)},d.__resizeTriggers__.addEventListener(n,d.__resizeTriggers__.__animationListener__))}d.__resizeListeners__.push(f)}},removeResizeListener:function(d,f){if(l)d.detachEvent("onresize",f);else if(d.__resizeListeners__.splice(d.__resizeListeners__.indexOf(f),1),!d.__resizeListeners__.length){d.removeEventListener("scroll",s,!0),d.__resizeTriggers__.__animationListener__&&(d.__resizeTriggers__.removeEventListener(n,d.__resizeTriggers__.__animationListener__),d.__resizeTriggers__.__animationListener__=null);try{d.__resizeTriggers__=!d.removeChild(d.__resizeTriggers__)}catch{}}}}}class xct extends m.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:r,disableWidth:n,onResize:a}=this.props;if(this._parentNode){const i=window.getComputedStyle(this._parentNode)||{},o=parseFloat(i.paddingLeft||"0"),s=parseFloat(i.paddingRight||"0"),l=parseFloat(i.paddingTop||"0"),A=parseFloat(i.paddingBottom||"0"),c=this._parentNode.getBoundingClientRect(),u=c.height-l-A,d=c.width-o-s;if(!r&&this.state.height!==u||!n&&this.state.width!==d){this.setState({height:u,width:d});const f=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof a=="function"&&a({height:u,width:d,get scaledHeight(){return f(),u},get scaledWidth(){return f(),d}})}}},this._setRef=r=>{this._autoSizer=r}}componentDidMount(){const{nonce:t}=this.props,r=this._autoSizer?this._autoSizer.parentNode:null;if(r!=null&&r.ownerDocument&&r.ownerDocument.defaultView&&r instanceof r.ownerDocument.defaultView.HTMLElement){this._parentNode=r;const n=r.ownerDocument.defaultView.ResizeObserver;n!=null?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(r)):(this._detectElementResize=Mct(t),this._detectElementResize.addResizeListener(r,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:r,defaultWidth:n,disableHeight:a=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:s,onResize:l,style:A={},tagName:c="div",...u}=this.props,{height:d,width:f}=this.state,h={overflow:"visible"},g={};let p=!1;return a||(d===0&&(p=!0),h.height=0,g.height=d,g.scaledHeight=d),i||(f===0&&(p=!0),h.width=0,g.width=f,g.scaledWidth=f),o&&(p=!1),m.createElement(c,{ref:this._setRef,style:{...h,...A},...u},!p&&t(g))}}var Dl=function(t){var r=t.className,n=t.width,a=t.height,i=t.children,o=t.onResize,s=typeof n=="number",l=typeof a=="number";return s&&l?te.createElement("div",{className:r,style:{width:n,height:a,position:"relative"}},i({width:n,height:a})):te.createElement(xct,{className:r,disableWidth:s,disableHeight:l,onResize:o},function(A){return i({width:s?n:A.width,height:l?a:A.height})})};Dl.propTypes={className:U.string,width:U.number,height:U.number,children:U.func.isRequired,onResize:U.func};const Dy=({initialText:e,handleUpdateText:t,field:r,rowKey:n,recordKey:a,type:i,options:o})=>{const[s,l]=m.useState(!1),[A,c]=m.useState(""),u=m.useRef();m.useEffect(()=>{c(e)},[e,a]),m.useEffect(()=>{s&&u.current.focus()},[s]);const d=()=>{l(!s)},f=p=>{c(p.target.value)},h=p=>{l(!1),A!==e&&t(r,A,n)},g=p=>{t(r,p,n)};return i==="select"?v.jsx(Ir,{style:{width:"100%"},defaultValue:e,options:o,onChange:g}):s?v.jsx(mt,{ref:u,style:{marginLeft:"6px",width:"90%"},value:A,onChange:f,onBlur:h}):v.jsx("div",{className:"editable-field",onClick:d,children:A})};Dy.propTypes={initialText:U.string,handleUpdateText:U.func,field:U.string,rowKey:U.number};const Ya=({style:e={},size:t})=>{Ye(n=>n.cti.ui.primaryColor);let r={...e};if(t)switch(t){case"small":r.transform="scale(0.5)";break}return v.jsx("div",{className:"cti-loader",style:r,children:v.jsxs("div",{className:"sk-folding-cube",children:[v.jsx("div",{className:"sk-cube1 sk-cube"}),v.jsx("div",{className:"sk-cube2 sk-cube"}),v.jsx("div",{className:"sk-cube4 sk-cube"}),v.jsx("div",{className:"sk-cube3 sk-cube"})]})})};Ya.propTypes={style:U.object,size:U.string};Ya.defaultProps={style:{}};const $r=te.memo(te.forwardRef(({columns:e,data:t,loading:r,selectedRow:n,selectedRowOid:a,onRowSelect:i,noOverlay:o,selectedRows:s,handleSelectedRowOid:l,choice:A,selectButtonBool:c=!1,shiftMulti:u=!1,defaultStyles:d=!0,handleUpdateText:f,sortByDefault:h=null,overideGetRowClassName:g=null,essentialsFixed:p,flexGrowBool:E=!1,view:y,...C},w)=>{const[B,M]=m.useState(null),[I,S]=m.useState(!1),[R,b]=m.useState(h||{}),[Q,D]=m.useState([]),F=Pr();m.useEffect(()=>(window.addEventListener("keydown",N),window.addEventListener("keyup",k),()=>{window.removeEventListener("keydown",N),window.removeEventListener("keyup",k)}),[]),m.useEffect(()=>{if(R&&(R!=null&&R.key)&&(R!=null&&R.order)){let q=Ic(t,R.key,R.order);q.length&&q[0].key===void 0&&q[0].oid&&(q=q.map(ee=>({...ee,key:ee.oid}))),D(q)}else if(t!=null&&t.length&&t[0].key===void 0&&t[0].oid){let q=t.map(ee=>({...ee,key:ee.oid}));D(q)}else D(t)},[t]);function N(q){q.shiftKey&&S(!0)}function k(q){q.key==="Shift"&&S(!1)}const O=m.useCallback(({column:q,key:ee,order:ae})=>{let ne=ae;(!R.key||R.key!==ee)&&(ne=fv.ASC),b({key:ee,order:ne});let ce=zAt(t),ue=Ic(ce,ee,ne);D(ue),F(_he({key:ee,order:ne}))},[t,R,F]),P=te.useCallback(()=>{if(r&&o!==!0)return v.jsx("div",{className:"table-loading-overlay",children:v.jsx(Ya,{size:"small"})});if(c&&(!A.length||A==="-1"))return v.jsx(ml,{description:"Veuillez sélectionner la liste des gestes marqueurs à visualiser",className:"table-empty"});if(!t.length&&r===!1)return v.jsx(ml,{description:"Pas de données",className:"table-empty"})},[r,t,o]),z=te.useCallback(()=>10,[]),j=({columns:q,rowData:ee,rowIndex:ae})=>{let ne="";return a&&a===ee.oid&&(ne+=" selected"),n&&(C.rowKey?n[C.rowKey]===ee[C.rowKey]&&(ne+=" selected"):n.key===ee.key&&(ne+=" selected")),s&&(C.rowKey?s.includes(ee[C.rowKey])&&(ne+=" selected"):s.includes(ee.key)&&(ne+=" selected")),ae%2===0&&(ne+=" even-row"),ae%2===0&&(ne+=" even-row"),ne};function V(q){let ee=[];return d?ee=q.map(ae=>({sortable:!0,...ae,className:"cti-default-table",headerClassName:"cti-default-table"})):ee=q.map(ae=>({...ae})),ee=ee.map(ae=>ae.editable?{...ae,cellRenderer:({cellData:ne,rowData:ce})=>v.jsx(Dy,{initialText:ne,field:ae.dataKey,rowKey:Number(ce.key),handleUpdateText:f,type:ae.type,options:ae.options})}:ae),ee}const L=te.useMemo(()=>({onClick:({rowData:q,rowIndex:ee,rowKey:ae,event:ne})=>{if(l)l(ae);else if(i)if(B&&I&&u){const ce=t.map(ye=>Number(ye.key)),ue=ce.indexOf(Math.min(Number(ae),Number(B))),ge=ce.indexOf(Math.max(Number(ae),Number(B)));let Se=ce.filter(ye=>ce.indexOf(ye)>=ue&&ce.indexOf(ye)<=ge);i(Se.map(ye=>ye.toString()))}else i(ae);M(ae)}}),[I,t,B,i,u,l]),K=V(e),J=te.useMemo(()=>({fontSize:"11px"}),[]),Y=K.filter(q=>q.hidden!==!0).reduce((q,ee)=>q+ee.width,0),W=function(){let ee="";if(y){const ae=y.desc.attributes;ae.favoriteEssential==="true"&&ae.isFavorite!=="true"&&(ee="header-column-font-size")}return ee};return Q?v.jsx(Dl,{children:({width:q,height:ee})=>v.jsx(fv,{rowKey:"key",columns:K,headerHeight:50,headerClassName:W,rowHeight:25,width:q,height:ee,data:Q,onColumnSort:O,sortBy:R,getScrollbarSize:z,rowClassName:g??j,rowEventHandlers:L,overlayRenderer:P,style:J,ref:w,...C,fixed:E&&q>Y?!1:C.fixed||C.fixed===!1&&q<Math.max(1400,Y)})}):null}));$r.propTypes={columns:U.array.isRequired,data:U.array.isRequired,loading:U.bool,onRowSelect:U.func,selectedRow:U.object,selectedRows:U.array,shiftMulti:U.bool,defaultStyles:U.bool,flexGrowBool:U.bool,choice:U.string,selectButtonBool:U.bool,view:U.object};$r.defaultProps={loading:!1,defaultStyle:!0};const t1e=()=>{const e=Ye(l=>l.cti.components.log.data.logs),t=Ye(l=>l.cti.components.log.loading),r=Ye(l=>l.cti.settings.data.session),n=Pr();m.useEffect(()=>{n(Gq())},[n]);const a=()=>{n(Gq())},o=[{title:"Id",dataKey:"id"},{title:"Date",dataKey:"createdAt",width:150},{title:"Code",dataKey:"code",width:100},{title:"Count",dataKey:"count",width:100},{title:"Erreur",dataKey:"error",width:200},{title:"Texte",dataKey:"text",width:200},{title:"Message",dataKey:"message",width:200},{title:"Utilisateur",dataKey:"user",dataGetter:({rowData:l})=>l.extra.user,width:100},{title:"URL",dataKey:"url",dataGetter:({rowData:l})=>l.extra.url,width:300}].map(l=>({width:50,resizable:!0,key:l.dataKey,...l})),s=({rowData:l,column:A})=>({onClick:c=>{c.preventDefault();var u=document.createElement("textarea");u.value=l[A.dataKey],document.body.appendChild(u),u.select(),document.execCommand("copy"),document.body.removeChild(u),to.success("Copié !")}});return r.CONNECTEDUSER!=="cti"?v.jsx(Rp,{to:"/accueil"}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"page-header",children:[v.jsx("div",{className:"header-title",children:"Logs"}),v.jsx("div",{className:"header-actions",children:v.jsx(nt,{type:"primary",onClick:a,children:"Reload"})})]}),v.jsx("div",{className:"page-content",children:v.jsx("div",{className:"logs-table",children:v.jsx($r,{rowKey:"id",columns:o,data:e,loading:t,cellProps:s})})})]})};t1e.propTypes={};const r1e=({pageName:e,module:t})=>N4e().pathname.startsWith("/outils/")?v.jsx(NC,{className:"cti-page",children:v.jsx(Ih,{in:!0,classNames:"menu-fade",appear:!0,timeout:300,unmountOnExit:!0,children:v.jsxs(Afe,{children:[v.jsx(vp,{exact:!0,path:"/outils/parametrage-utilisateur/options-de-presentation/presentation-manager",children:v.jsx(gCe,{})}),v.jsx(vp,{exact:!0,path:"/outils/logs",children:v.jsx(t1e,{})}),v.jsx(vp,{exact:!0,path:"/outils/exploit",children:v.jsx(PAt,{})}),v.jsx(vp,{children:null})]})},e)}):null;r1e.propTypes={pageName:U.string,module:U.string};const Ict=te.memo(r1e);function bct(e){const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=lr(t).schema,n=ft(t,"TABLE");let a={};n.forEach(l=>{let A=lr(l);const c=ft(l,"CLASSE");A.classes=s(c),a[`${A.classe_schema}-${A.table_id}`]=A});const i=ft(t,"REFTABLE");let o={};i.forEach(l=>{let A=lr(l);const c=ft(l,"CLASSE");A.classes=s(c),o[A.table_id]=A});function s(l){let A={};return l.forEach(c=>{let u=lr(c);A[u.classe_id]=u}),A}return{schema:r,tables:a,refTables:o}}function Sct(e){const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"CLASSE")[0];let n=lr(r);const a=ft(r,"SECTION");n.sections=i(a);function i(s){let l=[];return s.forEach(A=>{let c=lr(A);const u=ft(A,"ELEMENT");c.elements=o(u),l.push(c)}),l}function o(s){let l=[];return s.forEach(A=>{const c=lr(A);c.key=c.oid,l.push(c)}),l}return n.schema=lr(t).schema??lr(t).classe_schema,n.classe_schema=lr(t).classe_schema??lr(t).schema,n}function n1e(e){const t=e.getElementsByTagName("HTTP_SERVICE")[0];let r=lr(t);const n=ft(t,"LISTPROVIDER");let a={};return n.forEach(i=>{let o=lr(i);const s=ft(i,"OPTION");let l=mn(s);l=l.map(A=>({...A,title:A.label,value:A.data})),l.length&&l.every(A=>A.treeLevel)?o.children=xh(l):o.children=l,a[o.name]=o}),r.providers=a,r}const Rct=["OUTILS_GLOBALS.XML","ACCUEIL_GLOBALS.XML","_GLOBALS.XML","MYFAVORITES_GLOBALS.XML"],hv=(e,t=!1)=>async function(r,n){const a=n();let o=`globals_${(e==="qualite"?"qual":e).toLowerCase()}`;const s=vc(o,!0);if(!s)return r(ED(!1)),null;if(!a.cti.globals.module===o&&Object.keys(a.cti.globals.data).length)return null;r(ED(!0));const l=await Na.getItem(o);if(l&&t===!1){const u=JSON.parse(Do.inflate(l,{to:"string"}));r(PO(o,u))}else{let u=new FormData;u.append("url",s);const d=await ai({method:"post",url:ma()+"modules/base/php/getGlobals.php",data:u,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});let f=ud(d.data);const h=n1e(f);r(PO(o,h));var A=Do.deflate(JSON.stringify(h),{to:"string"});Na.setItem(o,A)}r(ED(!1));const c=new CustomEvent("globalsReady",{detail:e});document.dispatchEvent(c)},Tct=e=>new Promise(async t=>{const r=vc(e,!0);(!r||Rct.includes(r))&&t();let n=new FormData;n.append("url",r);const a=await ai({method:"post",url:ma()+"modules/base/php/getGlobals.php",data:n,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});let i=ud(a.data);const o=n1e(i);var s=Do.deflate(JSON.stringify(o),{to:"string"});Na.setItem(e,s),t()}),qR=()=>async function(e,t){Tn({type:"warn",message:"Filtres",description:"Rechargement en cours"});const n=(await Na.keys()).filter(c=>c.startsWith("globals")),a=n.length;let i=[];for(let c=0;c<a;c++)i.push(Tct(n[c]));await Promise.all(i);const l=`globals_${t().cti.menu.selectedModuleKey}`,A=await Na.getItem(l);if(A){const c=JSON.parse(Do.inflate(A,{to:"string"}));e(PO(l,c))}Tn({type:"success",message:"Filtres",description:"Rechargement terminé"})},Qct=()=>async function(e,t){const r=await en("modules/outils/php/httpService_usersManager_getConfig.php"),{modules:n,securityLevels:a,envs:i,ctiusrdir:o}=rnt(r);e(O8e(n,a,i,o))},Fl=(e,t=!1)=>{let r=document.implementation.createDocument("","");return Object.values(e).forEach(n=>{let a=r.createElement(n.XMLType);for(let i in n)switch(i){case"XMLType":break;case"children":a1e(n.children,r).forEach(s=>{a.appendChild(s)});break;default:a.setAttribute(i,n[i]);break}r.appendChild(a)}),t===!0?new XMLSerializer().serializeToString(r):r};function a1e(e,t){return e.map(r=>{let n=t.createElement(r.XMLType);for(let a in r)switch(a){case"XMLType":break;case"children":a1e(r.children,t).forEach(o=>{n.appendChild(o)});break;default:n.setAttribute(a,r[a]);break}return n})}const Jb=()=>async function(e,t){e(Wp(!0));const n={softCode:t().cti.content.moduleId},a=await en("modules/base/php/httpService_classesManager_getClasses.php",n),{schema:i,tables:o,refTables:s}=bct(a);e(RPe(i,o,s)),e(Wp(!1))},Dct=({classeId:e,tableId:t,key:r})=>async function(n,a){n(Wp(!0));const i=r&&r.includes("finess")?"base":a().cti.content.moduleId.replace("iCTI_",""),s=await en("modules/base/php/httpService_classesManager_getClasse.php",{classe_id:e,table_id:t,schema:i,classe_schema:i}),l=Sct(s);n(TPe(l)),n(Wp(!1))},Fct=e=>{const t=e.table_name;let r={CLASSE:{XMLType:"CLASSE",...e,est_lecture_seule:e.est_lecture_seule===!0?"1":"0",is_cti:e.is_cti===!0?"1":"0",contenu_non_replicable_ailleurs:e.contenu_non_replicable_ailleurs===!0?"1":"0"}};delete r.CLASSE.sections;let n=JNe(e.sections);n&&(r.CLASSE.children=n);let a=Fl(r,!0);return async function(i,o){i(Wp(!0));const s=o().cti.content.moduleId.replace("iCTI_",""),l=t&&t.includes("finess")?"base":o().cti.content.moduleId.replace("iCTI_","");await en("modules/base/php/httpService_classesManager_setClasse.php",{schema:s,classe_schema:l,action:"save",classeDef:a}),i(Jb()),i(qR())}};async function _ct(e,t,r){await pc("modules/base/php/httpService_classesManager_getSqlScript.php",{softCode:e,classes:t,tableName:r})}const Nct=(e,t)=>async function(r,n){const a=n().cti.content.moduleId.replace("iCTI_","");await en("modules/base/php/httpService_classesManager_setClasse.php",{schema:a,action:"delete",classe_id:e,classe_schema:a,table_id:t}),r(QPe(t,e)),r(qR())},kct=(e,t)=>async function(r,n){r(Wp(!0));const a=t.replace("iCTI_",""),i={action:"refcopy",softCode:t,refoid:e,schema:a};try{await en("modules/base/php/httpService_classesManager_setClasse.php",i),r(Jb(t)),Tn({type:"success",message:"Synchronisation",description:"La synchronisation est terminée"})}catch{throw Tn({type:"error",message:"Synchronisation",description:"La synchronisation a échoué"}),new Error("Erreur lors de la mise à jour des classes")}};function Pct(e){const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"LISTE")[0];let n=lr(r),a=ft(r,"COLUMN");if(a){let s={};a.forEach(l=>{const A=lr(l);s[A.name]=A}),n.columns=s}let i=ft(r,"RECORD");if(i){let s={};i.forEach(l=>{const A=lr(l);s[A.oid]=A}),n.records=s}let o=ft(r,"OID");if(o){let s={};o.forEach(l=>{const A=lr(l);s[A.code.replace(/\s/gm,"")]=A}),n.oids=s}return n}var jk,mee;function Oct(){if(mee)return jk;mee=1;var e=rde(),t=e(function(r,n,a){return r+(a?"-":"")+n.toLowerCase()});return jk=t,jk}var zct=Oct();const Ka=Nr(zct);function jct(e){const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=lr(t).schema;let n=i(t),a=o(t);return{schema:r,tables:n,refTables:a};function i(A){let c={};return ft(A,"TABLE").forEach((d,f)=>{let h=lr(d);const g=s(d);Su(g)||(h.listes=g);const p=l(d);Su(p)||(h.groups=p),c[`${h.table_id}-${f}`]=h}),c}function o(A){let c={};return ft(A,"REFTABLE").forEach(d=>{let f=lr(d);const h=s(d);Su(h)||(f.listes=h);const g=l(d);Su(g)||(f.groups=g),c[Ka(f.table_id)]=f}),c}function s(A){let c={};return ft(A,"LISTE").forEach(d=>{let f=lr(d);c[Ka(f.liste_id)]=f}),c}function l(A){let c={};return ft(A,"GROUP").forEach(d=>{let f=lr(d);const h=l(d);Su(h)||(f.groups=h);const g=s(d);Su(g)||(f.listes=g),c[Ka(f.texte)]=f}),c}}function Z0(e){return async function(t){t(i9(!0));const a=await en("modules/base/php/getListes.php",{softCode:e}),i=jct(a);t(t8e(i)),t(i9(!1))}}function Eee(e,t){return async function(r){const i=await en("modules/base/php/getListe.php",t),o=Pct(i);r(n8e(t.table_id,t.liste_id,o,t.treeSelectedKey))}}function i1e(e){const t=ma()+"modules/base/php/getListeSaisieCode.php";let r=new FormData;for(const a in e)r.append(a,e[a]);var n={method:"POST",credentials:"include",cache:"no-cache",body:r};return new Promise(async(a,i)=>{try{let o;o=await fetch(t,n),o=await o.json(),a(o)}catch(o){i(o)}})}function Yct(e){return async function(t,r){await en("modules/base/php/setListe.php",e),t(qR()),t(Z0(e.softCode))}}const Lct=(e,t,r)=>async function(n,a){const i=t.replace("iCTI_",""),o={action:"refcopy",softCode:t,refoid:e,schema:i,database:r};try{await en("modules/base/php/setListe.php",o),n(Z0(t))}catch{throw new Error("Erreur lors de la mise à jour des rapports")}};async function Uct(e,t,r){await pc("modules/base/php/httpService_listesManager_getSqlScript.php",{softCode:e,listes:t,tableName:r})}function Hct(e){return[{title:"Code",dataKey:"code",dataGetter:({rowData:r})=>v.jsx(Zn,{title:r.code,children:r.code})},{dataKey:"texte",headerRenderer:()=>e.table_texte,dataGetter:({rowData:r})=>v.jsx(Zn,{title:r.texte,children:r.texte})},{title:"Complément",dataKey:"complement"},{title:"Section",dataKey:"section_texte"},{title:"Ref",dataKey:"utilise",width:70}].map(r=>({width:300,key:r.dataKey,dataIndex:r.dataKey,ellipsis:!0,resizable:!0,...r}))}const Gct="modulepreload",Kct=function(e,t){return new URL(e,t).href},yee={},Fy=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){let o=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),A=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));a=o(r.map(c=>{if(c=Kct(c,n),c in yee)return;yee[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(!!n)for(let g=s.length-1;g>=0;g--){const p=s[g];if(p.href===c&&(!u||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":Gct,u||(h.as="script"),h.crossOrigin="",h.href=c,A&&h.setAttribute("nonce",A),document.head.appendChild(h),u)return new Promise((g,p)=>{h.addEventListener("load",g),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return a.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},Vct="[encoded data, 531960 characters]",rh=5,jp=4,Jct=5,ZR=297,Wct=210,Nj=ZR/2,o1e=1,PL=ZR-2*rh,Yp=14,OL=rh+2,s1e=ZR-2*OL,l1e=6,Cee=8,A1e=10,c1e=12,wee=100;function Xct(){return new Promise(e=>setTimeout(e,1e3))}const Bee=e=>{const r=String(e).match(/\d+$/);return r?parseInt(r[0],10):null};function Mee(e,t,r,n,a){const i=Bee(r),o=Bee(n);return async function(s,l){const A=l();s(XG(!0)),await Xct();const{jsPDF:c}=await Fy(async()=>{const{jsPDF:h}=await import("./jspdf.es.min-DCw0FjSx.js").then(g=>g.j);return{jsPDF:h}},[],import.meta.url);await Fy(()=>import("./jspdf.plugin.autotable-BNSPgntu.js").then(h=>h.j),__vite__mapDeps([0,1]),import.meta.url);let u=new c({orientation:"l",unit:"mm",format:"a4"});u.addFileToVFS("Roboto-Regular.ttf",Vct),u.addFont("Roboto-Regular.ttf","custom","normal"),u.setFont("custom");const d=`${A.cti.settings.data.environment.FINESS} - ${A.cti.settings.data.environment.ENVIRONMENT}`;u=qct(u,e,A.cti.components.favorites.hiddenColumns,t,i,o,d,A,a),u.putTotalPages("{total_pages_count_string}"),window.open(u.output("bloburl")),setTimeout(()=>s(XG(!1)),2e3)}}function qct(e,t,r,n,a,i,o,s,l){const A=Object.values(t.run.data).filter(c=>c.visible===!0);return Object.values(A).forEach((c,u)=>{var d,f;if(n==="TOUT"||a===u){const h=c.label?c.label:c.excelLabel;e=xee(e,t.run.title!==""?t.run.title:t.desc.attributes.label,o,h),e.setTextColor(0,0,0);const g=(f=(d=t.run)==null?void 0:d.viewFilters)==null?void 0:f.filter(w=>w!=="");let p=0;if(g!=null&&g.length){e.setFontSize(A1e);const w=e.getTextDimensions(g[0]).h,B=$ct(e,g);p=w*(B+3),eut(e,t,g,w,p)}e.setFontSize(c1e);const E=tut(e,t,o,c,p);e=kj(e,t.run.title,o,h);let y=Zct(t,s,c,r);const C=y.map(w=>gv(w.titleText.replace(/<br>/g,`
`)));Object.values(c.similitabs).sort((w,B)=>Number(w.id)-Number(B.id)).forEach((w,B)=>{if(n==="TOUT"||i===B||Object.keys(c.similitabs).length<=1){let M=[],I=[],S=[],R=[];if(l&&Object.keys(l).length){const O=jL(w.data[0]),P=Ic(O,l.key,l.order);R=_C(P)}else R=w.data[0];let b={},Q={},D=R.map((O,P)=>{let z=[];return O.LVL==="1"&&M.push(P),O.LVL==="2"&&I.push(P),O.LVL==="3"&&S.push(P),O.BKGD_COLOR&&O.BKGD_COLOR!==""&&(b[P]=O.BKGD_COLOR),O.COLOR&&O.COLOR!==""&&(Q[P]=O.COLOR),y.forEach((j,V)=>{let L=null;if(!O[j.dataKey])return;if(O[j.dataKey].symbol&&Object.keys(O[j.dataKey].symbol).length){var K=document.createElement("div");K.innerHTML=O[j.dataKey].symbol.html,L=K.innerText}let J=O[j.dataKey].sanitizedText;J.length>wee&&(J=J.substring(0,wee)),L?z.push(`${L} ${J}`):z.push(J)}),z}),F=w.data[1].map((O,P)=>{let z=[];return y.forEach(j=>{O[j.dataKey]&&(O[j.dataKey].sanitizedText==="TOTAL"?z.push("TOTAL GÉNÉRAL"):z.push(O[j.dataKey].sanitizedText))}),z});const N=jp+Yp+o1e*2,k=!E.length&&g.length?N+p:N;e.autoTable({startY:k,margin:{left:rh,right:rh,top:N},head:[C],body:D,foot:F,rowPageBreak:"auto",horizontalPageBreak:!0,horizontalPageBreakBehaviour:"immediately",horizontalPageBreakRepeat:0,headStyles:{fontSize:Cee,fillColor:[255,180,136],textColor:[0,0,0],halign:"left"},footStyles:{fontSize:Cee,fillColor:[152,193,217],textColor:[0,0,0],overflow:"ellipsize"},bodyStyles:{font:"custom",fontSize:l1e,fillColor:[245,245,245],halign:"left"},alternateRowStyles:{fillColor:[255,255,255]},allSectionHooks:!0,showFoot:"lastPage",didParseCell:function(O){if(M.includes(O.row.index)&&O.section==="body"&&I.length&&(O.cell.styles.fillColor=[254,210,151]),I.includes(O.row.index)&&O.section!=="body"&&S.length&&(O.cell.styles.textColor=[15,77,148]),b[O.row.index]&&O.section==="body"){let P=b[O.row.index];if(P.length<7){const z=7-P.length;let j="#";for(let V=0;V<z;V++)j=j+"0";j=j+P.replace("#","").replace("0x",""),P=`${j.substring(0,7)}`}O.cell.styles.fillColor=P}if(Q[O.row.index]&&O.section==="body"){let P=Q[O.row.index];if(P.length<7){const z=7-P.length;let j="#";for(let V=0;V<z;V++)j=j+"0";j=j+P.replace("#","").replace("0x",""),P=`${j.substring(0,7)}`}O.cell.styles.textColor=P}O.cell.text[0].includes("▼")&&(O.cell.styles.textColor=jr.red),O.cell.text[0].includes("▲")&&(O.cell.styles.textColor=jr.green)},didDrawPage:function(O){const P=t.run.title!==""?t.run.title:t.desc.attributes.label;e=xee(e,P,o,h,w.name),e=kj(e,P,o,h)}}),e.addPage()}})}}),e}const Zct=(e,t,r,n)=>{var s,l;const a=n.map(A=>A.dataField);let i=t.cti.history.columns[`${t.cti.view.runRef}_${r.label}`];if(i)return i.filter(A=>A.hidden!==!0);let o=Object.values(r.datagrid.columns).filter(A=>A.visible===!0&&A.hidden!==!0&&!a.includes(A.dataKey)&&A.printable!=="false");return o=o.filter(A=>A!=null&&A.visibleCondition?Cn(A.visibleCondition,e):!0),((l=(s=e==null?void 0:e.desc)==null?void 0:s.attributes)==null?void 0:l.isFavorite)==="true"&&o.sort((A,c)=>Number(A==null?void 0:A.order)-Number(c==null?void 0:c.order)),o};function xee(e,t,r,n,a=""){e.setFontSize(A1e),e.setTextColor(255,255,255);const i=e.getTextDimensions(t).h,o=a?`${n} - ${a}`:n;let s=o?jp+Yp/2-i:jp+Yp/2;return e.setFillColor(1,43,67),e.rect(rh,jp,PL,Yp,"F"),e.text(t,Nj,s,{align:"center",baseline:"middle"}),o&&(s+=i*2,e.text(o,Nj,s,{align:"center",baseline:"middle"})),e}function $ct(e,t){let r=0;return t.forEach((n,a)=>{const i=e.splitTextToSize(gv(n),s1e);r+=i.length}),r}function eut(e,t,r,n,a){const i=jp+Yp+o1e;e.setFillColor(255,136,1),e.rect(rh,i,PL,a,"F");let o=1.3,s=1;r.forEach((l,A)=>{const c=e.splitTextToSize(gv(l),s1e);let u=i+n;A>0&&(u=i+n*o*s),e.text(c,OL,u,{baseline:"top"}),s+=c.length})}function tut(e,t,r,n,a){const i=Ka(n.label),o=n.label?n.label:n.excelLabel;let s=n.charts.length>1,l=[],A=[];if(s===!1){let d=document.querySelector(`div[tabname="${i}"][similitabname="synthese"]`);d===null&&(d=document.querySelector(`div[tabname="${i}"]`)),l=d!==null?d.querySelectorAll("canvas"):[],A=d!==null?d.querySelectorAll(".graph-title"):[]}else{let d=document.querySelectorAll(`.slick-slide:not(.slick-cloned) div[tabname="${i}"][similitabname="synthese"]`);d===null&&(d=document.querySelectorAll(`.slick-slide:not(.slick-cloned) div[tabname="${i}"]`)),d.forEach(f=>{l=[...l,...f.querySelectorAll("canvas")],A=[...A,...f.querySelectorAll(".graph-title")]})}const c=[...A].map(d=>d.innerHTML),u=jp+Yp+a+10;return[...l].forEach((d,f)=>{f!==0&&f%2===0&&(e.addPage(),e=kj(e,t.run.title,r,o)),e.addImage(d,"PNG",rh+f%2*145,u+2,145,150),e.setFontSize(c1e);const h=f%2===0?1:2;e.text(c[f],ZR/4*(f%2+h),u,{align:"center"})}),l.length&&e.addPage(),l}function kj(e,t,r,n,a=""){e.setFontSize(l1e),e.setTextColor(0,0,0);const i=`Le ${Nn().format("DD/MM/YYYY")} - ${r} `,o=Wct-Jct;e.text(i,OL,o);let s=a?`${n} - ${a}`:n;s||(s=t),e.text(s,Nj,o,{align:"center"});const l="{total_pages_count_string}";let A="Page "+e.internal.getNumberOfPages();return typeof e.putTotalPages=="function"&&(A=A+"/"+l),e.text(A,PL,o,{align:"center"}),e}function gv(e){let t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}const rut=(e,t,r)=>{if(r>=e.length)for(var n=r-e.length+1;n--;)e.push(void 0);return e.splice(r,0,e.splice(t,1)[0]),e};function Yk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.forEach(function(a){X(e,a,r[a])})}return e}var Lk,Iee;function nut(){if(Iee)return Lk;Iee=1;var e=function(t,r,n,a,i,o,s,l){if(!t){var A;if(r===void 0)A=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,a,i,o,s,l],u=0;A=new Error(r.replace(/%s/g,function(){return c[u++]})),A.name="Invariant Violation"}throw A.framesToPop=1,A}};return Lk=e,Lk}var aut=nut();const nh=Nr(aut);var iut=function(){function e(){sn(this,e),X(this,"refs",{})}return ln(e,[{key:"add",value:function(r,n){this.refs[r]||(this.refs[r]=[]),this.refs[r].push(n)}},{key:"remove",value:function(r,n){var a=this.getIndex(r,n);a!==-1&&this.refs[r].splice(a,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var r=this;return this.refs[this.active.collection].find(function(n){var a=n.node;return a.sortableInfo.index==r.active.index})}},{key:"getIndex",value:function(r,n){return this.refs[r].indexOf(n)}},{key:"getOrderedRefs",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[r].sort(out)}}]),e}();function out(e,t){var r=e.node.sortableInfo.index,n=t.node.sortableInfo.index;return r-n}function u1e(e,t){return Object.keys(e).reduce(function(r,n){return t.indexOf(n)===-1&&(r[n]=e[n]),r},{})}var kg={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},d1e=function(){if(typeof window>"u"||typeof document>"u")return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||e.OLink===""&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function Hw(e,t){Object.keys(t).forEach(function(r){e.style[r]=t[r]})}function Gw(e,t){e.style["".concat(d1e,"Transform")]=t==null?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function Uk(e,t){e.style["".concat(d1e,"TransitionDuration")]=t==null?"":"".concat(t,"ms")}function b0(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function bee(e,t,r){return Math.max(e,Math.min(r,t))}function xp(e){return e.substr(-2)==="px"?parseFloat(e):0}function sut(e){var t=window.getComputedStyle(e);return{bottom:xp(t.marginBottom),left:xp(t.marginLeft),right:xp(t.marginRight),top:xp(t.marginTop)}}function zL(e,t){var r=t.displayName||t.name;return r?"".concat(e,"(").concat(r,")"):e}function Hk(e,t){var r=e.getBoundingClientRect();return{top:r.top+t.top,left:r.left+t.left}}function iE(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function lut(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function bI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(e){var n={left:r.left+e.offsetLeft,top:r.top+e.offsetTop};return e.parentNode===t?n:bI(e.parentNode,t,n)}}function Aut(e,t,r){return e<r&&e>t?e-1:e>r&&e<t?e+1:e}function See(e){var t=e.lockOffset,r=e.width,n=e.height,a=t,i=t,o="px";if(typeof t=="string"){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);nh(s!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),a=parseFloat(t),i=parseFloat(t),o=s[1]}return nh(isFinite(a)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),o==="%"&&(a=a*r/100,i=i*n/100),{x:a,y:i}}function cut(e){var t=e.height,r=e.width,n=e.lockOffset,a=Array.isArray(n)?n:[n,n];nh(a.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",n);var i=De(a,2),o=i[0],s=i[1];return[See({height:t,lockOffset:o,width:r}),See({height:t,lockOffset:s,width:r})]}function uut(e){var t=window.getComputedStyle(e),r=/(auto|scroll)/,n=["overflow","overflowX","overflowY"];return n.find(function(a){return r.test(t[a])})}function f1e(e){return e instanceof HTMLElement?uut(e)?e:f1e(e.parentNode):null}function dut(e){var t=window.getComputedStyle(e);return t.display==="grid"?{x:xp(t.gridColumnGap),y:xp(t.gridRowGap)}:{x:0,y:0}}var Ud={ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},Cf={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function fut(e){var t="input, textarea, select, canvas, [contenteditable]",r=e.querySelectorAll(t),n=e.cloneNode(!0),a=Nt(n.querySelectorAll(t));return a.forEach(function(i,o){if(i.type!=="file"&&(i.value=r[o].value),i.type==="radio"&&i.name&&(i.name="__sortableClone__".concat(i.name)),i.tagName===Cf.Canvas&&r[o].width>0&&r[o].height>0){var s=i.getContext("2d");s.drawImage(r[o],0,0)}}),n}function hut(e){var t,r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return r=t=function(a){xn(i,a);function i(){var o,s;sn(this,i);for(var l=arguments.length,A=new Array(l),c=0;c<l;c++)A[c]=arguments[c];return s=Vs(this,(o=Ma(i)).call.apply(o,[this].concat(A))),X(at(at(s)),"wrappedInstance",m.createRef()),s}return ln(i,[{key:"componentDidMount",value:function(){var s=ei.findDOMNode(this);s.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return nh(n.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var s=n.withRef?this.wrappedInstance:null;return m.createElement(e,oe({ref:s},this.props))}}]),i}(m.Component),X(t,"displayName",zL("sortableHandle",e)),r}function Ree(e){return e.sortableHandle!=null}var gut=function(){function e(t,r){sn(this,e),this.container=t,this.onScrollCallback=r}return ln(e,[{key:"clear",value:function(){this.interval!=null&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(r){var n=this,a=r.translate,i=r.minTranslate,o=r.maxTranslate,s=r.width,l=r.height,A={x:0,y:0},c={x:1,y:1},u={x:10,y:10},d=this.container,f=d.scrollTop,h=d.scrollLeft,g=d.scrollHeight,p=d.scrollWidth,E=d.clientHeight,y=d.clientWidth,C=f===0,w=g-f-E===0,B=h===0,M=p-h-y===0;a.y>=o.y-l/2&&!w?(A.y=1,c.y=u.y*Math.abs((o.y-l/2-a.y)/l)):a.x>=o.x-s/2&&!M?(A.x=1,c.x=u.x*Math.abs((o.x-s/2-a.x)/s)):a.y<=i.y+l/2&&!C?(A.y=-1,c.y=u.y*Math.abs((a.y-l/2-i.y)/l)):a.x<=i.x+s/2&&!B&&(A.x=-1,c.x=u.x*Math.abs((a.x-s/2-i.x)/s)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(A.x!==0||A.y!==0)&&(this.interval=setInterval(function(){n.isAutoScrolling=!0;var I={left:c.x*A.x,top:c.y*A.y};n.container.scrollTop+=I.top,n.container.scrollLeft+=I.left,n.onScrollCallback(I)},5))}}]),e}();function put(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}}function vut(e){var t=[Cf.Input,Cf.Textarea,Cf.Select,Cf.Option,Cf.Button];return!!(t.indexOf(e.target.tagName)!==-1||b0(e.target,function(r){return r.contentEditable==="true"}))}var h1e={axis:U.oneOf(["x","y","xy"]),contentWindow:U.any,disableAutoscroll:U.bool,distance:U.number,getContainer:U.func,getHelperDimensions:U.func,helperClass:U.string,helperContainer:U.oneOfType([U.func,typeof HTMLElement>"u"?U.any:U.instanceOf(HTMLElement)]),hideSortableGhost:U.bool,keyboardSortingTransitionDuration:U.number,lockAxis:U.string,lockOffset:U.oneOfType([U.number,U.string,U.arrayOf(U.oneOfType([U.number,U.string]))]),lockToContainerEdges:U.bool,onSortEnd:U.func,onSortMove:U.func,onSortOver:U.func,onSortStart:U.func,pressDelay:U.number,pressThreshold:U.number,keyCodes:U.shape({lift:U.arrayOf(U.number),drop:U.arrayOf(U.number),cancel:U.arrayOf(U.number),up:U.arrayOf(U.number),down:U.arrayOf(U.number)}),shouldCancelStart:U.func,transitionDuration:U.number,updateBeforeSortStart:U.func,useDragHandle:U.bool,useWindowAsScrollContainer:U.bool},g1e={lift:[Ud.SPACE],drop:[Ud.SPACE],cancel:[Ud.ESC],up:[Ud.UP,Ud.LEFT],down:[Ud.DOWN,Ud.RIGHT]},mut={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:put,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:g1e,shouldCancelStart:vut,transitionDuration:300,useWindowAsScrollContainer:!1},Eut=Object.keys(h1e);function yut(e){nh(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function Cut(e,t){try{var r=e()}catch(n){return t(!0,n)}return r&&r.then?r.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}var p1e=m.createContext({manager:{}});function v1e(e){var t,r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return r=t=function(a){xn(i,a);function i(o){var s;sn(this,i),s=Vs(this,Ma(i).call(this,o)),X(at(at(s)),"state",{}),X(at(at(s)),"handleStart",function(A){var c=s.props,u=c.distance,d=c.shouldCancelStart;if(!(A.button===2||d(A))){s.touched=!0,s.position=iE(A);var f=b0(A.target,function(C){return C.sortableInfo!=null});if(f&&f.sortableInfo&&s.nodeIsChild(f)&&!s.state.sorting){var h=s.props.useDragHandle,g=f.sortableInfo,p=g.index,E=g.collection,y=g.disabled;if(y||h&&!b0(A.target,Ree))return;s.manager.active={collection:E,index:p},!lut(A)&&A.target.tagName===Cf.Anchor&&A.preventDefault(),u||(s.props.pressDelay===0?s.handlePress(A):s.pressTimer=setTimeout(function(){return s.handlePress(A)},s.props.pressDelay))}}}),X(at(at(s)),"nodeIsChild",function(A){return A.sortableInfo.manager===s.manager}),X(at(at(s)),"handleMove",function(A){var c=s.props,u=c.distance,d=c.pressThreshold;if(!s.state.sorting&&s.touched&&!s._awaitingUpdateBeforeSortStart){var f=iE(A),h={x:s.position.x-f.x,y:s.position.y-f.y},g=Math.abs(h.x)+Math.abs(h.y);s.delta=h,!u&&(!d||g>=d)?(clearTimeout(s.cancelTimer),s.cancelTimer=setTimeout(s.cancel,0)):u&&g>=u&&s.manager.isActive()&&s.handlePress(A)}}),X(at(at(s)),"handleEnd",function(){s.touched=!1,s.cancel()}),X(at(at(s)),"cancel",function(){var A=s.props.distance,c=s.state.sorting;c||(A||clearTimeout(s.pressTimer),s.manager.active=null)}),X(at(at(s)),"handlePress",function(A){try{var c=s.manager.getActive(),u=function(){if(c){var d=function(){var b=B.sortableInfo.index,Q=sut(B),D=dut(s.container),F=s.scrollContainer.getBoundingClientRect(),N=g({index:b,node:B,collection:M});if(s.node=B,s.margin=Q,s.gridGap=D,s.width=N.width,s.height=N.height,s.marginOffset={x:s.margin.left+s.margin.right+s.gridGap.x,y:Math.max(s.margin.top,s.margin.bottom,s.gridGap.y)},s.boundingClientRect=B.getBoundingClientRect(),s.containerBoundingRect=F,s.index=b,s.newIndex=b,s.axis={x:h.indexOf("x")>=0,y:h.indexOf("y")>=0},s.offsetEdge=bI(B,s.container),I?s.initialOffset=iE(Yk({},A,{pageX:s.boundingClientRect.left,pageY:s.boundingClientRect.top})):s.initialOffset=iE(A),s.initialScroll={left:s.scrollContainer.scrollLeft,top:s.scrollContainer.scrollTop},s.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},s.helper=s.helperContainer.appendChild(fut(B)),Hw(s.helper,{boxSizing:"border-box",height:"".concat(s.height,"px"),left:"".concat(s.boundingClientRect.left-Q.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(s.boundingClientRect.top-Q.top,"px"),width:"".concat(s.width,"px")}),I&&s.helper.focus(),E&&(s.sortableGhost=B,Hw(B,{opacity:0,visibility:"hidden"})),s.minTranslate={},s.maxTranslate={},I){var k=w?{top:0,left:0,width:s.contentWindow.innerWidth,height:s.contentWindow.innerHeight}:s.containerBoundingRect,O=k.top,P=k.left,z=k.width,j=k.height,V=O+j,L=P+z;s.axis.x&&(s.minTranslate.x=P-s.boundingClientRect.left,s.maxTranslate.x=L-(s.boundingClientRect.left+s.width)),s.axis.y&&(s.minTranslate.y=O-s.boundingClientRect.top,s.maxTranslate.y=V-(s.boundingClientRect.top+s.height))}else s.axis.x&&(s.minTranslate.x=(w?0:F.left)-s.boundingClientRect.left-s.width/2,s.maxTranslate.x=(w?s.contentWindow.innerWidth:F.left+F.width)-s.boundingClientRect.left-s.width/2),s.axis.y&&(s.minTranslate.y=(w?0:F.top)-s.boundingClientRect.top-s.height/2,s.maxTranslate.y=(w?s.contentWindow.innerHeight:F.top+F.height)-s.boundingClientRect.top-s.height/2);p&&p.split(" ").forEach(function(K){return s.helper.classList.add(K)}),s.listenerNode=A.touches?A.target:s.contentWindow,I?(s.listenerNode.addEventListener("wheel",s.handleKeyEnd,!0),s.listenerNode.addEventListener("mousedown",s.handleKeyEnd,!0),s.listenerNode.addEventListener("keydown",s.handleKeyDown)):(kg.move.forEach(function(K){return s.listenerNode.addEventListener(K,s.handleSortMove,!1)}),kg.end.forEach(function(K){return s.listenerNode.addEventListener(K,s.handleSortEnd,!1)})),s.setState({sorting:!0,sortingIndex:b}),C&&C({node:B,index:b,collection:M,isKeySorting:I,nodes:s.manager.getOrderedRefs(),helper:s.helper},A),I&&s.keyMove(0)},f=s.props,h=f.axis,g=f.getHelperDimensions,p=f.helperClass,E=f.hideSortableGhost,y=f.updateBeforeSortStart,C=f.onSortStart,w=f.useWindowAsScrollContainer,B=c.node,M=c.collection,I=s.manager.isKeySorting,S=function(){if(typeof y=="function"){s._awaitingUpdateBeforeSortStart=!0;var R=Cut(function(){var b=B.sortableInfo.index;return Promise.resolve(y({collection:M,index:b,node:B,isKeySorting:I},A)).then(function(){})},function(b,Q){if(s._awaitingUpdateBeforeSortStart=!1,b)throw Q;return Q});if(R&&R.then)return R.then(function(){})}}();return S&&S.then?S.then(d):d(S)}}();return Promise.resolve(u&&u.then?u.then(function(){}):void 0)}catch(d){return Promise.reject(d)}}),X(at(at(s)),"handleSortMove",function(A){var c=s.props.onSortMove;typeof A.preventDefault=="function"&&A.cancelable&&A.preventDefault(),s.updateHelperPosition(A),s.animateNodes(),s.autoscroll(),c&&c(A)}),X(at(at(s)),"handleSortEnd",function(A){var c=s.props,u=c.hideSortableGhost,d=c.onSortEnd,f=s.manager,h=f.active.collection,g=f.isKeySorting,p=s.manager.getOrderedRefs();s.listenerNode&&(g?(s.listenerNode.removeEventListener("wheel",s.handleKeyEnd,!0),s.listenerNode.removeEventListener("mousedown",s.handleKeyEnd,!0),s.listenerNode.removeEventListener("keydown",s.handleKeyDown)):(kg.move.forEach(function(B){return s.listenerNode.removeEventListener(B,s.handleSortMove)}),kg.end.forEach(function(B){return s.listenerNode.removeEventListener(B,s.handleSortEnd)}))),s.helper.parentNode.removeChild(s.helper),u&&s.sortableGhost&&Hw(s.sortableGhost,{opacity:"",visibility:""});for(var E=0,y=p.length;E<y;E++){var C=p[E],w=C.node;C.edgeOffset=null,C.boundingClientRect=null,Gw(w,null),Uk(w,null),C.translate=null}s.autoScroller.clear(),s.manager.active=null,s.manager.isKeySorting=!1,s.setState({sorting:!1,sortingIndex:null}),typeof d=="function"&&d({collection:h,newIndex:s.newIndex,oldIndex:s.index,isKeySorting:g,nodes:p},A),s.touched=!1}),X(at(at(s)),"autoscroll",function(){var A=s.props.disableAutoscroll,c=s.manager.isKeySorting;if(A){s.autoScroller.clear();return}if(c){var u=Yk({},s.translate),d=0,f=0;s.axis.x&&(u.x=Math.min(s.maxTranslate.x,Math.max(s.minTranslate.x,s.translate.x)),d=s.translate.x-u.x),s.axis.y&&(u.y=Math.min(s.maxTranslate.y,Math.max(s.minTranslate.y,s.translate.y)),f=s.translate.y-u.y),s.translate=u,Gw(s.helper,s.translate),s.scrollContainer.scrollLeft+=d,s.scrollContainer.scrollTop+=f;return}s.autoScroller.update({height:s.height,maxTranslate:s.maxTranslate,minTranslate:s.minTranslate,translate:s.translate,width:s.width})}),X(at(at(s)),"onAutoScroll",function(A){s.translate.x+=A.left,s.translate.y+=A.top,s.animateNodes()}),X(at(at(s)),"handleKeyDown",function(A){var c=A.keyCode,u=s.props,d=u.shouldCancelStart,f=u.keyCodes,h=f===void 0?{}:f,g=Yk({},g1e,h);s.manager.active&&!s.manager.isKeySorting||!s.manager.active&&(!g.lift.includes(c)||d(A)||!s.isValidSortingTarget(A))||(A.stopPropagation(),A.preventDefault(),g.lift.includes(c)&&!s.manager.active?s.keyLift(A):g.drop.includes(c)&&s.manager.active?s.keyDrop(A):g.cancel.includes(c)?(s.newIndex=s.manager.active.index,s.keyDrop(A)):g.up.includes(c)?s.keyMove(-1):g.down.includes(c)&&s.keyMove(1))}),X(at(at(s)),"keyLift",function(A){var c=A.target,u=b0(c,function(g){return g.sortableInfo!=null}),d=u.sortableInfo,f=d.index,h=d.collection;s.initialFocusedNode=c,s.manager.isKeySorting=!0,s.manager.active={index:f,collection:h},s.handlePress(A)}),X(at(at(s)),"keyMove",function(A){var c=s.manager.getOrderedRefs(),u=c[c.length-1].node.sortableInfo.index,d=s.newIndex+A,f=s.newIndex;if(!(d<0||d>u)){s.prevIndex=f,s.newIndex=d;var h=Aut(s.newIndex,s.prevIndex,s.index),g=c.find(function(I){var S=I.node;return S.sortableInfo.index===h}),p=g.node,E=s.containerScrollDelta,y=g.boundingClientRect||Hk(p,E),C=g.translate||{x:0,y:0},w={top:y.top+C.y-E.top,left:y.left+C.x-E.left},B=f<d,M={x:B&&s.axis.x?p.offsetWidth-s.width:0,y:B&&s.axis.y?p.offsetHeight-s.height:0};s.handleSortMove({pageX:w.left+M.x,pageY:w.top+M.y,ignoreTransition:A===0})}}),X(at(at(s)),"keyDrop",function(A){s.handleSortEnd(A),s.initialFocusedNode&&s.initialFocusedNode.focus()}),X(at(at(s)),"handleKeyEnd",function(A){s.manager.active&&s.keyDrop(A)}),X(at(at(s)),"isValidSortingTarget",function(A){var c=s.props.useDragHandle,u=A.target,d=b0(u,function(f){return f.sortableInfo!=null});return d&&d.sortableInfo&&!d.sortableInfo.disabled&&(c?Ree(u):u.sortableInfo)});var l=new iut;return yut(o),s.manager=l,s.wrappedInstance=m.createRef(),s.sortableContextValue={manager:l},s.events={end:s.handleEnd,move:s.handleMove,start:s.handleStart},s}return ln(i,[{key:"componentDidMount",value:function(){var s=this,l=this.props.useWindowAsScrollContainer,A=this.getContainer();Promise.resolve(A).then(function(c){s.container=c,s.document=s.container.ownerDocument||document;var u=s.props.contentWindow||s.document.defaultView||window;s.contentWindow=typeof u=="function"?u():u,s.scrollContainer=l?s.document.scrollingElement||s.document.documentElement:f1e(s.container)||s.container,s.autoScroller=new gut(s.scrollContainer,s.onAutoScroll),Object.keys(s.events).forEach(function(d){return kg[d].forEach(function(f){return s.container.addEventListener(f,s.events[d],!1)})}),s.container.addEventListener("keydown",s.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var s=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(l){return kg[l].forEach(function(A){return s.container.removeEventListener(A,s.events[l])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(s){var l=this.props,A=l.lockAxis,c=l.lockOffset,u=l.lockToContainerEdges,d=l.transitionDuration,f=l.keyboardSortingTransitionDuration,h=f===void 0?d:f,g=this.manager.isKeySorting,p=s.ignoreTransition,E=iE(s),y={x:E.x-this.initialOffset.x,y:E.y-this.initialOffset.y};if(y.y-=window.pageYOffset-this.initialWindowScroll.top,y.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=y,u){var C=cut({height:this.height,lockOffset:c,width:this.width}),w=De(C,2),B=w[0],M=w[1],I={x:this.width/2-B.x,y:this.height/2-B.y},S={x:this.width/2-M.x,y:this.height/2-M.y};y.x=bee(this.minTranslate.x+I.x,this.maxTranslate.x-S.x,y.x),y.y=bee(this.minTranslate.y+I.y,this.maxTranslate.y-S.y,y.y)}A==="x"?y.y=0:A==="y"&&(y.x=0),g&&h&&!p&&Uk(this.helper,h),Gw(this.helper,y)}},{key:"animateNodes",value:function(){var s=this.props,l=s.transitionDuration,A=s.hideSortableGhost,c=s.onSortOver,u=this.containerScrollDelta,d=this.windowScrollDelta,f=this.manager.getOrderedRefs(),h={left:this.offsetEdge.left+this.translate.x+u.left,top:this.offsetEdge.top+this.translate.y+u.top},g=this.manager.isKeySorting,p=this.newIndex;this.newIndex=null;for(var E=0,y=f.length;E<y;E++){var C=f[E].node,w=C.sortableInfo.index,B=C.offsetWidth,M=C.offsetHeight,I={height:this.height>M?M/2:this.height/2,width:this.width>B?B/2:this.width/2},S=g&&w>this.index&&w<=p,R=g&&w<this.index&&w>=p,b={x:0,y:0},Q=f[E].edgeOffset;Q||(Q=bI(C,this.container),f[E].edgeOffset=Q,g&&(f[E].boundingClientRect=Hk(C,u)));var D=E<f.length-1&&f[E+1],F=E>0&&f[E-1];if(D&&!D.edgeOffset&&(D.edgeOffset=bI(D.node,this.container),g&&(D.boundingClientRect=Hk(D.node,u))),w===this.index){A&&(this.sortableGhost=C,Hw(C,{opacity:0,visibility:"hidden"}));continue}l&&Uk(C,l),this.axis.x?this.axis.y?R||w<this.index&&(h.left+d.left-I.width<=Q.left&&h.top+d.top<=Q.top+I.height||h.top+d.top+I.height<=Q.top)?(b.x=this.width+this.marginOffset.x,Q.left+b.x>this.containerBoundingRect.width-I.width&&D&&(b.x=D.edgeOffset.left-Q.left,b.y=D.edgeOffset.top-Q.top),this.newIndex===null&&(this.newIndex=w)):(S||w>this.index&&(h.left+d.left+I.width>=Q.left&&h.top+d.top+I.height>=Q.top||h.top+d.top+I.height>=Q.top+M))&&(b.x=-(this.width+this.marginOffset.x),Q.left+b.x<this.containerBoundingRect.left+I.width&&F&&(b.x=F.edgeOffset.left-Q.left,b.y=F.edgeOffset.top-Q.top),this.newIndex=w):S||w>this.index&&h.left+d.left+I.width>=Q.left?(b.x=-(this.width+this.marginOffset.x),this.newIndex=w):(R||w<this.index&&h.left+d.left<=Q.left+I.width)&&(b.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=w)):this.axis.y&&(S||w>this.index&&h.top+d.top+I.height>=Q.top?(b.y=-(this.height+this.marginOffset.y),this.newIndex=w):(R||w<this.index&&h.top+d.top<=Q.top+I.height)&&(b.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=w))),Gw(C,b),f[E].translate=b}this.newIndex==null&&(this.newIndex=this.index),g&&(this.newIndex=p);var N=g?this.prevIndex:p;c&&this.newIndex!==N&&c({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:N,isKeySorting:g,nodes:f,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return nh(n.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var s=this.props.getContainer;return typeof s!="function"?ei.findDOMNode(this):s(n.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var s=n.withRef?this.wrappedInstance:null;return m.createElement(p1e.Provider,{value:this.sortableContextValue},m.createElement(e,oe({ref:s},u1e(this.props,Eut))))}},{key:"helperContainer",get:function(){var s=this.props.helperContainer;return typeof s=="function"?s():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var s=this.props.useWindowAsScrollContainer;return s?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),i}(m.Component),X(t,"displayName",zL("sortableList",e)),X(t,"defaultProps",mut),X(t,"propTypes",h1e),r}var m1e={index:U.number.isRequired,collection:U.oneOfType([U.number,U.string]),disabled:U.bool},wut=Object.keys(m1e);function E1e(e){var t,r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return r=t=function(a){xn(i,a);function i(){var o,s;sn(this,i);for(var l=arguments.length,A=new Array(l),c=0;c<l;c++)A[c]=arguments[c];return s=Vs(this,(o=Ma(i)).call.apply(o,[this].concat(A))),X(at(at(s)),"wrappedInstance",m.createRef()),s}return ln(i,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(s){this.node&&(s.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),s.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),s.collection!==this.props.collection&&(this.unregister(s.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var s=this.props,l=s.collection,A=s.disabled,c=s.index,u=ei.findDOMNode(this);u.sortableInfo={collection:l,disabled:A,index:c,manager:this.context.manager},this.node=u,this.ref={node:u},this.context.manager.add(l,this.ref)}},{key:"unregister",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(s,this.ref)}},{key:"getWrappedInstance",value:function(){return nh(n.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var s=n.withRef?this.wrappedInstance:null;return m.createElement(e,oe({ref:s},u1e(this.props,wut)))}}]),i}(m.Component),X(t,"displayName",zL("sortableElement",e)),X(t,"contextType",p1e),X(t,"propTypes",m1e),X(t,"defaultProps",{collection:0}),r}const{Text:Kw}=md,But=({columns:e,handleReorder:t,handleReset:r})=>{const n=m.useRef(),[a,i]=m.useState(e),[o,s]=m.useState(0);m.useEffect(()=>{i(e.map(f=>({...f})))},[e]),m.useEffect(()=>{n.current.scrollTop=o},[a,o]);const l=Ye(f=>f.cti.ui.primaryColor),A=E1e(({dataKey:f,hidden:h,titleText:g})=>{const p=E=>{let y=a.map(w=>({...w})),C=y.find(w=>w.dataKey===f);C.hidden=!C.hidden,s(n.current.scrollTop),i(y),t(y)};return v.jsx("li",{children:v.jsxs("div",{className:"column-item",children:[v.jsxs(Kw,{style:{display:"flex"},disabled:h,children:[v.jsx("div",{className:"dots"}),v.jsx("div",{className:"dots"})]}),v.jsx(Kw,{disabled:h,className:"column-item-text",children:gv(g)}),h?v.jsx(Kw,{disabled:h,style:{marginLeft:"auto"},children:v.jsx(X3,{style:{fontSize:"14px",marginRight:"6px"},onClick:p})}):v.jsx(Kw,{disabled:h,style:{marginLeft:"auto"},children:v.jsx(q3,{style:{fontSize:"14px",marginRight:"6px",color:l},onClick:p})})]})})}),c=v1e(({columns:f})=>v.jsx("ul",{style:{maxHeight:"500px",overflow:"scroll",marginBottom:"0px"},ref:n,children:f.map((h,g)=>v.jsx(A,{index:g,...h}))})),u=({oldIndex:f,newIndex:h},g)=>{const p=rut(a,f,h);s(n.current.scrollTop),i(p),t(p)},d=()=>{let f=[];a.some(h=>h.hidden===!0)?f=a.map(h=>({...h,hidden:!1})):f=a.map(h=>({...h,hidden:!0})),i(f),t(f)};return v.jsxs("div",{className:"column-manager",children:[v.jsx("div",{className:"column-manager-header",children:v.jsx("span",{children:"Gestion des Colonnes"})}),v.jsx(c,{columns:a,onSortEnd:u,distance:1}),v.jsx("div",{className:"column-manager-footer",children:v.jsxs("div",{className:"column-manager-footer-actions",children:[v.jsx(nt,{type:"primary",onClick:d,style:{width:"100%",borderRight:"none"},children:"Afficher/Cacher tout"}),v.jsx(nt,{type:"primary",onClick:r,style:{width:"100%"},children:"Reset"})]})})]})},Mut=({columns:e,tableData:t,totalData:r,view:n,tabName:a})=>{const[i,o]=m.useState([]),[s,l]=m.useState([]),[A,c]=m.useState([]),[u,d]=m.useState([]),[f,h]=m.useState([]),[g,p]=m.useState(1),[E,y]=m.useState(null),[C,w]=m.useState(null),[B,M]=m.useState(null),[I,S]=m.useState(null),R=Ye(we=>we.cti.view.isLoading),b=Ye(we=>we.cti.view.rendering),Q=Ye(we=>we.cti.view.runRef),D=Ye(we=>we.cti.history.expand),F=Ye(we=>we.cti.history.columns),N=Ye(we=>we.cti.settings.user.expandedRows),k=Ye(we=>we.cti.ui.primaryColor),O=m.useRef(),P=m.useRef(),z=Pr();m.useEffect(()=>{if(t){j(!0);let we=jL(t);if(we||(we=[]),r||(r=[]),!qa(we,i)){o(we);const ve=ce(we);ve.length&&c(ve)}if(qa(r,u)||d(r),!qa(e,f)){let ve=t.reduce((Be,Ge)=>Number(Ge.LVL)>Be?Number(Ge.LVL):Be,1);ve>6&&(ve=1),p(ve);let Te=e.map(Be=>({...Be}));ve===1?Te.shift():Te[0].width=20*(ve-1),h(Te)}z(_he({}))}j(!1)},[t]),m.useEffect(()=>{b===!1&&Q&&D[Q]&&(qa(D[Q],s)||l(D[Q]))},[Q,D,i,b]),m.useEffect(()=>{b===!1&&Q&&F[Q]&&(qa(F[`${Q}_${a}`],f)||h(F[`${Q}_${a}`]))},[Q,F,i,b]);const j=te.useCallback(we=>{we!==b&&z(age(we))},[z,b]);m.useEffect(()=>{var we,ve;(R||b)&&A.length&&((ve=(we=n.run.data[a])==null?void 0:we.datagrid)==null?void 0:ve.treeDefaultOpenLevel)!=="0"&&N==="ouvert"&&l(A),R!==b&&j(R)},[R,j,i.length,A.length,b,A,n.run,a]);const V=m.useCallback(({scrollLeft:we,scrollTop:ve})=>{O.current&&O.current.scrollToLeft(we)},[]),L=m.useCallback(({scrollLeft:we,scrollTop:ve})=>{P.current&&P.current.scrollToLeft(we)},[]),K=m.useCallback(({column:we,width:ve})=>{let Te=f.map(Ge=>({...Ge})),Be=Te.find(Ge=>Ge.key===we.key);Be.width=ve,h(Te)},[f]),J=we=>{z(A9(`${Q}_${a}`,we)),z(GPe(a,we)),h(we)},Y=()=>{z(A9(`${Q}_${a}`,e)),h(e)},W=()=>{P.current&&P.current.scrollToRow(0)},q=te.useCallback(({expanded:we,rowData:ve,rowIndex:Te,rowKey:Be})=>{let Ge=[...s];if(Ge.includes(Be)){const ht=Ge.indexOf(Be);Ge.splice(ht,1)}else Ge.push(Be);l(Ge),z(yD(Q,Ge))},[s,z,Q]),ee=()=>{l(A),z(yD(Q,A))},ae=()=>{l([]),z(yD(Q,[]))},ne=we=>{if(!we){let Te=f.filter(Be=>Be.hidden).map(Be=>({XMLType:"COLUMN",dataField:Be.dataField,hide:Be.hidden.toString()}));z(LPe(Te))}};function ce(we){return we.reduce(ue,[])}function ue(we,ve){return ve.children&&(we.concat(ve.children.reduce(ue,we)),we.push(ve.key)),we}const ge=te.useCallback(({column:we,rowData:ve})=>({onClick:Te=>{M(null);let Be={};for(let Ge in ve)ve[Ge].text&&ve[Ge].text!==null?Be[Ge]=ve[Ge].text:ve[Ge].text===null?Be[Ge]="":Be[Ge]=ve[Ge];if(we.selectable){const Ge=document.getElementsByClassName("selected");if(Ge)for(let ht of Ge)ht.classList.remove("selected");w(null),E&&qa(E.row,ve)&&qa(E.column,we)?(Te.currentTarget.classList.remove("selected"),y(null),z(Ru(null,null))):(Te.currentTarget.classList.toggle("selected"),y({row:ve,column:we}),z(Ru(Be,we)))}else{const Ge=document.getElementsByClassName("selected");if(Ge)for(let ht of Ge)ht.classList.remove("selected");y(null),z(Ru(null,null)),qa(ve,C)?(w(null),z(g0(null))):(w(ve),z(g0(Be)))}}}),[E,C,z]),Se=te.useCallback(({column:we,rowData:ve})=>({onClick:Te=>{w(null);let Be={};for(let Ge in ve)ve[Ge].text&&ve[Ge].text!==null?Be[Ge]=ve[Ge].text:ve[Ge].text===null?Be[Ge]="":Be[Ge]=ve[Ge];if(we.selectable){const Ge=document.getElementsByClassName("selected");if(Ge)for(let ht of Ge)ht.classList.remove("selected");M(null),I&&qa(I.row,ve)&&qa(I.column,we)?(Te.currentTarget.classList.remove("selected"),S(null),z(Ru(null,null))):(Te.currentTarget.classList.toggle("selected"),S({row:ve,column:we}),z(Ru(Be,we)))}else{const Ge=document.getElementsByClassName("selected");if(Ge)for(let ht of Ge)ht.classList.remove("selected");S(null),z(Ru(null,null)),qa(ve,B)?(M(null),z(g0(null))):(M(ve),z(g0(Be)))}}}),[I,B,z]),ye=m.useCallback(({column:we})=>{let ve={width:"100%",height:"100%",display:"flex",flexFlow:"column",justifyContent:"center"};return we.headerStyles&&we.headerStyles.forEach(Te=>{ve[Te.name]=Te.value}),v.jsx(pr,{title:we.description.trim(),children:v.jsx("div",{style:ve,dangerouslySetInnerHTML:{__html:`<div class="col-header-height-detect">${we.titleText}</div>`}})})},[]),pe=te.useCallback(({columns:we,rowData:ve,rowIndex:Te})=>{let Be="";return qa(C,ve)&&(E&&E.row.key!==ve.key?Be+=" selected":E||(Be+=" selected")),ve.LVL==="1"&&ve.children&&(Be+=" level-one"),ve.LVL==="2"&&ve.children&&(Be+=" level-two"),Te%2===0&&(Be+=" even-row"),Be},[E,C]),Qe=te.useCallback(()=>0,[]),Ue=te.useMemo(()=>({fontSize:"11px",fontWeight:"700",backgroundColor:"f8f8f8"}),[]),tt=te.useMemo(()=>({TableHeaderCell:ye}),[ye]),it=_tt(e);return n?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"table-actions",style:{color:k},children:[v.jsx(pr,{title:"Remonter en haut du tableau",children:v.jsx(X_e,{onClick:W})}),v.jsx(pr,{title:"Refermer tout",children:v.jsx(__e,{onClick:ae})}),v.jsx(pr,{title:"Ouvrir tout",placement:"topRight",children:v.jsx(ZTe,{onClick:ee})}),v.jsx(pr,{title:"Gérer les colonnes",placement:"topRight",children:v.jsx(AR,{content:v.jsx(But,{columns:f,handleReorder:J,handleReset:Y}),placement:"bottomRight",trigger:["click"],onOpenChange:ne,children:v.jsx(rY,{})})})]}),v.jsx("div",{className:"content-table",children:v.jsx($r,{ref:P,columns:f,data:i,rowKey:"key",headerHeight:it,expandColumnKey:g>1?e.filter(we=>we.hidden!==!0)[0].dataKey:null,components:tt,cellProps:ge,onScroll:V,onColumnResizeEnd:K,rowClassName:pe,expandedRowKeys:s,onRowExpand:q,defaultStyles:!1,fixed:n.desc.attributes.favoriteEssential!=="true",view:n})}),u.length>0&&v.jsx("div",{className:"total-table",style:{height:40*u.length},children:v.jsx($r,{ref:O,headerHeight:0,columns:f,data:u,rowKey:"key",rowHeight:40,onScroll:L,cellProps:Se,getScrollbarSize:Qe,style:Ue,noOverlay:!0,defaultStyles:!1,selectedRow:B,fixed:n.desc.attributes.favoriteEssential!=="true"})})]}):null};function jL(e){const t=lo(e,i=>i.LVL);let r=0;if(e.every(i=>!i.OID1||!i.OID2)||(Object.keys(t).includes("6")&&(r=Number(Object.keys(t)[Object.keys(t).length-2])),Object.keys(t).length<2)||!e[0].LVL||e[0].LVL!=="1")return e;let a=e.map(i=>({...i})).reduce((i,o)=>{let s=i[o.OID1]||{},l={},A={},c={};if(o.TABD==="-9999999"){if(o.LVL==="1")i[o.OID1]=o;else if(o.LVL==="2"){s.children=s.children||{};let u=o.OID2!=="-1"?o.OID2:Object.keys(s.children).length++;s.children[u]=o}else if(o.LVL==="3"){if(!s.children)return i;l=s.children[o.OID2]||{},l.children=l.children||{};let u=o.OID3!=="-1"?o.OID3:Object.keys(l.children).length++;l.children[u]=o}else o.LVL==="4"?(l=s.children[o.OID2]||{},A=l.children[o.OID3]||{},A.children=A.children||{},A.children[o.OID4]=o):o.LVL==="5"&&(l=s.children[o.OID2]||{},A=l.children[o.OID3]||{},c=A.children[o.OID4]||{},c.children=c.children||{},c.children[o.OID5]=o);if(r!==0&&o.LVL==="6"){let u=i;for(let d=1;d<=r;d++)u=d===1?u[o[`OID${d}`]]:u.children[o[`OID${d}`]],u&&(u.children=(u==null?void 0:u.children)||{});u&&(u.children[o.OID6]=o)}}else o.LVL==="1"?i[o.OID2]=o:o.LVL==="2"&&(s=i[o.OID2]||{},s.children=s.children||{},s.children[o.OID3]=o);return i},{});return a=y1e(a),a}function y1e(e){return Object.values(e).map(r=>(r.children&&(r.children=y1e(r.children)),r))}const xut=te.memo(Mut);var SI={exports:{}},Iut=SI.exports,Tee;function but(){return Tee||(Tee=1,function(e,t){(function(r,n){n()})(Iut,function(){function r(A,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob(["\uFEFF",A],{type:A.type}):A}function n(A,c,u){var d=new XMLHttpRequest;d.open("GET",A),d.responseType="blob",d.onload=function(){l(d.response,c,u)},d.onerror=function(){console.error("could not download file")},d.send()}function a(A){var c=new XMLHttpRequest;c.open("HEAD",A,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(A){try{A.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Ai=="object"&&Ai.global===Ai?Ai:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(A,c,u){var d=o.URL||o.webkitURL,f=document.createElement("a");c=c||A.name||"download",f.download=c,f.rel="noopener",typeof A=="string"?(f.href=A,f.origin===location.origin?i(f):a(f.href)?n(A,c,u):i(f,f.target="_blank")):(f.href=d.createObjectURL(A),setTimeout(function(){d.revokeObjectURL(f.href)},4e4),setTimeout(function(){i(f)},0))}:"msSaveOrOpenBlob"in navigator?function(A,c,u){if(c=c||A.name||"download",typeof A!="string")navigator.msSaveOrOpenBlob(r(A,u),c);else if(a(A))n(A,c,u);else{var d=document.createElement("a");d.href=A,d.target="_blank",setTimeout(function(){i(d)})}}:function(A,c,u,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof A=="string")return n(A,c,u);var f=A.type==="application/octet-stream",h=/constructor/i.test(o.HTMLElement)||o.safari,g=/CriOS\/[\d]+/.test(navigator.userAgent);if((g||f&&h||s)&&typeof FileReader<"u"){var p=new FileReader;p.onloadend=function(){var C=p.result;C=g?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=C:location=C,d=null},p.readAsDataURL(A)}else{var E=o.URL||o.webkitURL,y=E.createObjectURL(A);d?d.location=y:location.href=y,d=null,setTimeout(function(){E.revokeObjectURL(y)},4e4)}});o.saveAs=l.saveAs=l,e.exports=l})}(SI)),SI.exports}var YL=but(),Gk,Qee;function Sut(){return Qee||(Qee=1,Gk=function(e,t,r,n){var a=typeof n<"u"?[n,e]:[e],i=new Blob(a,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(i,t);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),s=document.createElement("a");s.style.display="none",s.href=o,s.setAttribute("download",t),typeof s.download>"u"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),setTimeout(function(){document.body.removeChild(s),window.URL.revokeObjectURL(o)},200)}}),Gk}var Rut=Sut();const $R=Nr(Rut);function bl(e,t=null){const r=e.split("/"),n=r[r.length-1].split("?")[0];return t?n+"_RUN_"+t:n+"_DESC"}function e2(e){return hye(JSON.stringify(e))}function _y(e,t={},r=1){let n=e.replace(".XML","");const a=e2(t);return r?n+"_DESC":n+"_RUN_"+a}async function Wb(e){return new Promise(async(t,r)=>{let n;try{n=await Na.keys();const a=n.find(i=>i.substring(9).startsWith(e)||i.startsWith(e));t(a)}catch(a){r(a)}})}async function ts(e){return new Promise(async function(r,n){let a;try{a=await Na.getItem(e),a!==null&&(a=JSON.parse(Do.inflate(a,{to:"string"}))),r(a)}catch(i){n(i)}})}async function ah(e,t){const r=Do.deflate(JSON.stringify(t),{to:"string"});return new Promise((n,a)=>{try{Na.setItem(e,r),n(e)}catch(i){a(i)}})}const Tut=(e,t)=>async function(r){ei.unstable_batchedUpdates(()=>{r(w2e(e,t)),r(rge(null)),r(nge(null))})};function Qut(e,t){if(t[e])return t[e]}const C1e=async(e=null)=>{let r=(await Na.keys()).filter(i=>i.includes("_RUN_")||i.includes("_DESC"));if(e!==null){const i=e[e.length-1];r=r.filter(o=>o.includes(i))}const n=r.length;let a=[];for(let i=0;i<n;i++)a.push(BPe(r[i]));Promise.all(a),Tn({type:"success",message:"Rechargement",description:"Rechargement des vues terminé"})},Dut=e=>{var n;let t=!1,r=Object.values((n=e==null?void 0:e.desc)==null?void 0:n.selections);if(r.length>0){let a=r.filter(i=>i.label==="Paramètres de l'analyse");a.length>0&&a[0].group.filter(s=>s.label==="Rapport").length>0&&(t=!0)}return t};function Kk(e,t,r,n,a,i){return async function(o,s){const l=s();let A=Fl(kut(l.cti.settings.data.environment,e,t,parseInt(r),n,l),!0),c=new FormData;c.append("csv_application",a??"EXCEL"),c.append("csv_separator",i??";"),c.append("data",A);let u=ma();const d=await ai({method:"post",url:u+"modules/base/php/getCsvFromView.php",data:c,responseType:"blob",headers:{"Content-Type":"multipart/form-data"}});let f=e.desc.attributes.name+".xlsx";$R(d.data,f)}}function Fut(e,t){Fy(()=>import("./exceljs.min-BNb-FBo6.js").then(r=>r.e),[],import.meta.url).then(r=>{const n=new r.Workbook;n.creator="CTI Santé";var a=n.addWorksheet(e.table_texte);let i=[];t.forEach(s=>{i.push([s.code,s.texte,s.complement,s.section_texte,s.utilise])}),a.addTable({name:"ListeTable",ref:"A10",headerRow:!0,style:{theme:"TableStyleLight1",showRowStripes:!0,headerRow:!0},columns:[{name:"Code",filterButton:!0},{name:"Texte",filterButton:!0},{name:"Complément",filterButton:!0},{name:"Section",filterButton:!0},{name:"Reférence",filterButton:!0}],rows:i}),a.getCell("A2").font={bold:!0},a.getCell("A2").value=`Classe ${e.texte}`,a.getColumn(1).width="30",a.getColumn(2).width="30",a.getColumn(3).width="30",a.getColumn(4).width="30",a.getColumn(5).width="30";const o="liste"+e.texte+"_"+e.code+"_"+e.table_texte;n.xlsx.writeBuffer().then(function(s){var l=new Blob([s],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});YL.saveAs(l,o+".xlsx")})})}function _ut(e,t){Fy(()=>import("./exceljs.min-BNb-FBo6.js").then(r=>r.e),[],import.meta.url).then(r=>{const n=new r.Workbook;n.creator="CTI Santé";var a=n.addWorksheet("Liste ("+t.table_texte+")");a.getCell("A2").value="Liste "+e.texte+" | "+e.chapitre+" ("+t.table_texte+") ";let i=[];Object.values(t.oids).forEach(s=>{const l=Object.values(t.records).find(A=>A.oid===s.oid);i.push([l.code,l.texte,l.complement,l.utilise])}),a.addTable({name:"ListeTable",ref:"A10",headerRow:!0,style:{theme:"TableStyleLight1",showRowStripes:!0,headerRow:!0},columns:[{name:t.table_texte,filterButton:!0},{name:"Texte",filterButton:!0},{name:"Complément",filterButton:!0},{name:"Reférence",filterButton:!0}],rows:i}),a.getCell("A2").font={bold:!0},a.getColumn(1).width="30",a.getColumn(2).width="30",a.getColumn(3).width="30",a.getColumn(4).width="30";const o="liste"+e.texte+"_"+e.chapitre+"_"+t.table_texte;n.xlsx.writeBuffer().then(function(s){var l=new Blob([s],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});YL.saveAs(l,o+".xlsx")})})}const Nut=(e,t)=>{Fy(()=>import("./exceljs.min-BNb-FBo6.js").then(r=>r.e),[],import.meta.url).then(r=>{const n=new r.Workbook;n.creator="CTI Santé";var a=n.addWorksheet(t.title);let i=[];Array.isArray(t.fields)?i=t.fields.map(A=>({name:A.title,filterButton:!0,dataKey:A.dataKey,hidden:A.hidden?A.hidden:!1})):i=t.fields[1].map(A=>({name:A.title,filterButton:!0,isSC:A.isSC,dataKey:A.dataKey,hidden:A.hidden?A.hidden:!1}));let o=[];i.forEach(A=>{if(!A.hidden&&(o.push(A),A.isSC)){const c=A.dataKey;o.push({title:"S",name:`${A.name} - S`,dataKey:c.replace("p_","s_"),key:c.replace("p_","s_"),dataIndex:c.replace("p_","s_")}),o.push({title:"C",name:`${A.name} - C`,dataKey:c.replace("p_","c_"),key:c.replace("p_","c_"),dataIndex:c.replace("p_","c_")})}});let s=e.map(A=>{let c=[];return o.forEach(u=>{c.push(A[u.dataKey])}),c});a.addTable({name:"ListeTable",ref:"A10",headerRow:!0,style:{theme:"TableStyleLight1",showRowStripes:!0,headerRow:!0},columns:o,rows:s}),a.getCell("A2").font={bold:!0},a.getCell("A2").value=`Table ${t.title}`,a.getColumn(1).width="30",a.getColumn(2).width="30",a.getColumn(3).width="30",a.getColumn(4).width="30",a.getColumn(5).width="30";const l=`Table_${t.title}`;n.xlsx.writeBuffer().then(function(A){var c=new Blob([A],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});YL.saveAs(c,l+".xlsx")})})},Dee=(e,t,r=!1,n={},a={})=>{var s,l,A,c,u,d,f,h;let i={XMLType:r?"TOTALROW":"ROW",c0:e.LVL},o=1;return Object.values(t).forEach(g=>{let p=e[g.dataField],E=g.type;p?E==="Date"?p.text.length===6?p=new Nn(p.text,"YYYYMM").format("YYYY/MM/DD"):p=p.text:E==="Number"?p=Number.isInteger(Number(p.text))?Number(p.text).toString().split(".")[0]:Number(p.text).toFixed(2):p!=null&&p.sanitizedText&&p.sanitizedText!==""?p=Jtt(p.sanitizedText):p="":p="",i[`c${o}`]=p,o=o+1}),(s=a==null?void 0:a.SELECT)!=null&&s.GROUPBY_LABEL&&(i.g1=a.SELECT.GROUPBY_LABEL),(l=a==null?void 0:a.SELECT)!=null&&l.GROUPBY_2_LABEL&&(i.g2=a.SELECT.GROUPBY_2_LABEL),(A=a==null?void 0:a.SELECT)!=null&&A.GROUPBY_3_LABEL&&(i.g3=a.SELECT.GROUPBY_3_LABEL),(c=a==null?void 0:a.SELECT)!=null&&c.ARBRE1_LABEL&&(i.g1=a.SELECT.ARBRE1_LABEL,i.g6=a.SELECT.GROUPBY_LABEL),(u=a==null?void 0:a.SELECT)!=null&&u.ARBRE2_LABEL&&(i.g2=a.SELECT.ARBRE2_LABEL),(d=a==null?void 0:a.SELECT)!=null&&d.ARBRE3_LABEL&&(i.g3=a.SELECT.ARBRE3_LABEL),(f=a==null?void 0:a.SELECT)!=null&&f.ARBRE4_LABEL&&(i.g4=a.SELECT.ARBRE4_LABEL),(h=a==null?void 0:a.SELECT)!=null&&h.ARBRE5_LABEL&&(i.g5=a.SELECT.ARBRE5_LABEL),i},kut=(e,t,r,n,a,i)=>{const o=Object.values(t.run.data).filter(u=>u.visible===!0),s=t.run.viewFilters.filter(u=>u!=="").map(u=>({XMLType:"SELECTIONS",displayText:gv(u)}));let l={data:{XMLType:"EXCELEXPORT",environnement:e.ENVIRONMENT,viewName:t.desc.attributes.name,title:t.run.title,mode:r,children:[...s],isReport:Dut(t)}};const A=so.getState().cti.globalVariables,c=so.getState().cti.history.sort;return Object.values(o).forEach((u,d)=>{var C,w,B;const f=u.label?`${d+1} - ${u.label.latinise().replace(/[^0-9a-zA-Z -]/g,"")}`:`${d+1} - ${u.excelLabel.latinise().replace(/[^0-9a-zA-Z -]/g,"")}`??`Onglet ${d+1}`,h=u.label?u.label.latinise().replace(/[^0-9a-zA-Z -]/g,""):u.excelLabel.latinise().replace(/[^0-9a-zA-Z -]/g,"");let g={XMLType:"ONGLET",excelLabel:f,excelLongLabel:f,children:[{XMLType:"DATAGRID",total:u.datagrid.total,children:[]}]},p=Put(i,t,h,u);((w=(C=t==null?void 0:t.desc)==null?void 0:C.attributes)==null?void 0:w.isFavorite)==="true"&&p.sort((M,I)=>Number(M==null?void 0:M.order)-Number(I==null?void 0:I.order));const E=(B=Object.values(u.similitabs)[0])==null?void 0:B.data[0];let y={};if(E&&(y=E[1]??{}),Object.values(p).forEach(M=>{let I=M.visible;if(!I&&M.visibleCondition&&(I=Cn(M.visibleCondition,t)),I){let S=M.outputFormat?M.outputFormat.trim():"";/^=/gm.test(S)&&(S=Cn(S,t,y));let b={XMLType:"COLUMN",dataField:M.dataField,headerText:gv(M.titleText),type:M.type,outputFormat:S,textAlign:M.style.textAlign??"left",currency:"",currencyAlign:"",visible:M.visible,totalFunction:"text",totalComplement:M.totalComplement,printable:"true"};g.children[0].children.push(b)}}),Object.values(u.similitabs).forEach((M,I)=>{const S=f.slice(0,17),R=M.name?`${S} - ${I+1} ${M.name}`:`${S} - ${I+1}`,b=M.name?`${f} - ${I+1} ${M.name}`:`${f} - ${I+1}`;let Q={XMLType:"SIMILITAB",id:M.id,excelLabel:R.latinise().replace(/[^0-9a-zA-Z -]/g,""),excelLonglabel:b.latinise().replace(/[^0-9a-zA-Z -]/g,""),children:[{XMLType:"DATA",children:[]}]},D=M.data[0],F=jL(D),N=Ic(F,c.key??"key",c.order??"asc");D=_C(N).map(P=>Dee(P,p,!1,t,A));let O=M.data[1].sort(P=>P.key).map(P=>Dee(P,p,!0,t,A));D=D.concat(O),Q.children[0].children=D,(r==="TOUT"||!t.run.data.Onglet||a===M.id)&&g.children.push(Q)}),!Object.values(u.similitabs).length){const M={XMLType:"SIMILITAB",id:1,execelLabel:f.latinise().replace(/[^0-9a-zA-Z -]/g,""),excelLonglabel:f.latinise().replace(/[^0-9a-zA-Z -]/g,""),children:[{XMLType:"DATA"}]};g.children.push(M)}g.children=g.children.sort((M,I)=>M.XMLType==="SIMILITAB"&&I.XMLType==="SIMILITAB"?Number(M.id)-Number(I.id):1),(r==="TOUT"||n===d||a===d)&&l.data.children.push(g)}),l},Put=(e,t,r,n)=>{let a=e.cti.history.columns[`${e.cti.view.runRef}_${r}`];if(a)a=a.filter(o=>o.hidden!==!0);else{a=Object.values(n.datagrid.columns).map(l=>({...l,hidden:l.hidden?l.hidden:!Cn(l.visibleCondition,t)}));const o=e.cti.components.favorites.hiddenColumns,s=o?o.map(l=>l.dataField):[];a=a.filter(l=>!l.hidden&&!s.includes(l.dataKey))}return a.filter(o=>o.dataKey!=="EXPAND")};function Fh(e,t,r){if(e.length){let n=Object.keys(e[0]),a=[];if(r.forEach(o=>{n.includes(o)&&a.push(o)}),!a.length)return e;const i=t.split(" ");return e.filter(o=>i.every(s=>a.some(l=>o[l].toLowerCase().includes(s.toLowerCase()))))}else return e}function Fee(e,t,r,n=!0){let a=Object.keys(e),i=[];if(r.forEach(l=>{a.includes(l)&&i.push(l)}),!i.length)return!1;const o=t.split(/\s/).filter(l=>l!=="");let s=!1;return n?s=o.every(l=>i.some(A=>e[A].toLowerCase().includes(l.toLowerCase()))):s=o.some(l=>i.some(A=>e[A].toLowerCase().includes(l.toLowerCase()))),s}var Vk,_ee;function Out(){if(_ee)return Vk;_ee=1;var e=xv(),t=oC(),r=Vi(),n=e?e.isConcatSpreadable:void 0;function a(i){return r(i)||t(i)||!!(n&&i&&i[n])}return Vk=a,Vk}var Jk,Nee;function zut(){if(Nee)return Jk;Nee=1;var e=mY(),t=Out();function r(n,a,i,o,s){var l=-1,A=n.length;for(i||(i=t),s||(s=[]);++l<A;){var c=n[l];a>0&&i(c)?a>1?r(c,a-1,i,o,s):e(s,c):o||(s[s.length]=c)}return s}return Jk=r,Jk}var Wk,kee;function jut(){if(kee)return Wk;kee=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Wk=e,Wk}var Xk,Pee;function Yut(){if(Pee)return Xk;Pee=1;var e=$y();function t(r,n){if(r!==n){var a=r!==void 0,i=r===null,o=r===r,s=e(r),l=n!==void 0,A=n===null,c=n===n,u=e(n);if(!A&&!u&&!s&&r>n||s&&l&&c&&!A&&!u||i&&l&&c||!a&&c||!o)return 1;if(!i&&!s&&!u&&r<n||u&&a&&o&&!i&&!s||A&&a&&o||!l&&o||!c)return-1}return 0}return Xk=t,Xk}var qk,Oee;function Lut(){if(Oee)return qk;Oee=1;var e=Yut();function t(r,n,a){for(var i=-1,o=r.criteria,s=n.criteria,l=o.length,A=a.length;++i<l;){var c=e(o[i],s[i]);if(c){if(i>=A)return c;var u=a[i];return c*(u=="desc"?-1:1)}}return r.index-n.index}return qk=t,qk}var Zk,zee;function Uut(){if(zee)return Zk;zee=1;var e=V3(),t=BY(),r=dC(),n=Dye(),a=jut(),i=zS(),o=Lut(),s=uC(),l=Vi();function A(c,u,d){u.length?u=e(u,function(g){return l(g)?function(p){return t(p,g.length===1?g[0]:g)}:g}):u=[s];var f=-1;u=e(u,i(r));var h=n(c,function(g,p,E){var y=e(u,function(C){return C(g)});return{criteria:y,index:++f,value:g}});return a(h,function(g,p){return o(g,p,d)})}return Zk=A,Zk}var $k,jee;function Hut(){if(jee)return $k;jee=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return $k=e,$k}var e4,Yee;function Gut(){if(Yee)return e4;Yee=1;var e=Hut(),t=Math.max;function r(n,a,i){return a=t(a===void 0?n.length-1:a,0),function(){for(var o=arguments,s=-1,l=t(o.length-a,0),A=Array(l);++s<l;)A[s]=o[a+s];s=-1;for(var c=Array(a+1);++s<a;)c[s]=o[s];return c[a]=i(A),e(n,this,c)}}return e4=r,e4}var t4,Lee;function Kut(){if(Lee)return t4;Lee=1;function e(t){return function(){return t}}return t4=e,t4}var r4,Uee;function Vut(){if(Uee)return r4;Uee=1;var e=Kut(),t=gye(),r=uC(),n=t?function(a,i){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:r;return r4=n,r4}var n4,Hee;function Jut(){if(Hee)return n4;Hee=1;var e=800,t=16,r=Date.now;function n(a){var i=0,o=0;return function(){var s=r(),l=t-(s-o);if(o=s,l>0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return n4=n,n4}var a4,Gee;function Wut(){if(Gee)return a4;Gee=1;var e=Vut(),t=Jut(),r=t(e);return a4=r,a4}var i4,Kee;function w1e(){if(Kee)return i4;Kee=1;var e=uC(),t=Gut(),r=Wut();function n(a,i){return r(t(a,i,e),a+"")}return i4=n,i4}var o4,Vee;function B1e(){if(Vee)return o4;Vee=1;var e=lC(),t=fd(),r=OS(),n=ls();function a(i,o,s){if(!n(s))return!1;var l=typeof o;return(l=="number"?t(s)&&r(o,s.length):l=="string"&&o in s)?e(s[o],i):!1}return o4=a,o4}var s4,Jee;function Xut(){if(Jee)return s4;Jee=1;var e=zut(),t=Uut(),r=w1e(),n=B1e(),a=r(function(i,o){if(i==null)return[];var s=o.length;return s>1&&n(i,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(i,e(o,1),[])});return s4=a,s4}var qut=Xut();const M1e=Nr(qut),x1e=({section:e,handleEdit:t,handleClose:r})=>{const[n,a]=m.useState(""),[i,o]=m.useState("");return m.useEffect(()=>{e&&(a(e.include_code),o(e.exclude_code))},[e]),v.jsxs("div",{className:"section-form",children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Codes à inclure"}),v.jsx(mt.TextArea,{value:n,onChange:s=>a(s.target.value)})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Codes à exclure"}),v.jsx(mt.TextArea,{value:i,onChange:s=>o(s.target.value)})]})}),v.jsxs("div",{className:"form-row form-buttons",style:{marginTop:"12px"},children:[v.jsx(nt,{onClick:r,style:{marginRight:"8px"},children:"Annuler"}),v.jsx(nt,{onClick:()=>t(e.oid,n,i),type:"primary",children:"Appliquer"})]})]})};x1e.propTypes={section:U.object,handleEdit:U.func,handleClose:U.func};const I1e=({node:e,handleSetCode:t,handleSetText:r,byCode:n,handleEdit:a,handleDelete:i})=>{const[o,s]=m.useState(!1),[l,A]=m.useState(!1),[c,u]=m.useState(""),[d,f]=m.useState(""),[h,g]=m.useState(!1),[p,E]=m.useState(!1),y=m.useRef(),C=m.useRef();m.useEffect(()=>{e&&(u(e.code),f(e.texte))},[e]),m.useEffect(()=>{o&&y.current.focus()},[o]),m.useEffect(()=>{l&&C.current.focus()},[l]);const w=()=>{s(!o)},B=()=>{A(!l)},M=D=>{u(D.target.value)},I=D=>{f(D.target.value)},S=D=>{s(!1),t(e.oid,c)},R=D=>{A(!1),r(e.oid,d)},b=()=>{g(!h)},Q=D=>{E(D)};return v.jsxs("div",{className:"editable-title",onMouseEnter:b,onMouseLeave:b,children:[o?v.jsx(mt,{ref:y,style:{width:"20%"},value:c,onChange:M,onBlur:S}):v.jsx("div",{className:"editable-code",onClick:w,children:c}),l?v.jsx(mt,{ref:C,style:{marginLeft:"6px",width:"50%"},value:d,onChange:I,onBlur:R}):v.jsx("div",{className:"editable-text",onClick:B,children:`${d} (${e.elements.length})`}),v.jsxs("div",{className:"title-buttons",children:[v.jsx(AR,{trigger:"click",content:v.jsx(x1e,{section:e,handleEdit:a,handleClose:()=>E(!1)}),visible:p,onVisibleChange:Q,children:n||p?v.jsx(nt,{type:"link",className:"edit-button-title",children:v.jsx(QS,{})}):null}),v.jsx(ga,{title:"Etes vous sur de vouloir supprimer cette section ?",okText:"Supprimer",cancelText:"Annuler",onConfirm:()=>i(e.oid),children:v.jsx(nt,{type:"link",className:"delete-button-title",children:v.jsx(Ba,{})})})]})]})};I1e.propTypes={node:U.object,handleSetCode:U.func,handleSetText:U.func,handleEdit:U.func,handleDelete:U.func};const Jv=(e,t)=>{const[r,n]=m.useState(!1);return m.useEffect(()=>{e&&!t.ISROLECTI?n(!0):n(!1)},[t,e]),r},b1e=({selectedClasse:e,handleCloseEditor:t})=>{const r=Pr(),[n]=_e.useForm(),a=Ye(We=>We.cti.content.moduleId.replace("iCTI_","")),i=Ye(We=>We.cti.components.classes.data.selectedClasse),o=Ye(We=>We.cti.components.classes.loading),s=Ye(We=>We.cti.content),[l,A]=m.useState([]),[c,u]=m.useState([]),[d,f]=m.useState([]),[h,g]=m.useState({}),[p,E]=m.useState(!1),[y,C]=m.useState(null),[w,B]=m.useState([]),[M,I]=m.useState([]),[S,R]=m.useState([]),b=Ye(We=>We.cti.settings.data.session),[Q,D]=m.useState(!1),[F,N]=m.useState(!0),[k,O]=m.useState(""),[P,z]=m.useState(""),[j,V]=m.useState(!1);m.useEffect(()=>{e&&r(Dct(e))},[e,r]),m.useEffect(()=>{if(Object.keys(i).length){const We=Ge(i);g(We),n.setFieldsValue(We),A(Hct(i))}else n.setFieldsValue({})},[i]),m.useEffect(()=>{if(Object.keys(i).length){let We=we(i);We=ve(We),u(We)}},[i,k,Q,F,P]),m.useEffect(()=>{if(h.sections){let We=Be(h.sections);f(ht(We))}else f([])},[h]);const L=Jv(i.is_cti==="1",b),K=(We,Ke)=>{if(y||Ke){let Xe={...h},$e=Ke||Xe.sections.find(pt=>pt.oid===y.oid);if($e){let pt=[],de=Xe.sections.filter(et=>et.oid!==$e.oid),Fe=we(h);(We||M).forEach(et=>{const xe=Fe.find(Ne=>Ne.oid===et.toString());$e.elements.some(Ne=>Ne.oid===xe.oid)||(xe.section_texte=`${$e.code} - ${$e.texte}`,xe.section_id=$e.oid,pt.push(xe),de.forEach(Ne=>{Ne.elements=Ne.elements.filter(le=>le.oid!==xe.oid)}))}),$e.elements=$e.elements.concat(pt),u(ve(Fe))}g({...Xe}),I([]),E(!0)}},J=(We,Ke)=>{let Xe=we(h),$e={...h};const pt=We||S;let de=h.sections.find(Fe=>Fe.oid==="0");pt.forEach(Fe=>{let je=Xe.find(xe=>xe.oid===Fe.oid);je&&(de.elements.push(je),je.section_id="0",je.section_texte="");let et;$e.sections.forEach(xe=>{xe.elements.forEach(Ne=>{Ne.oid===Fe.oid&&(et=xe)})}),et.elements=et.elements.filter(xe=>xe.oid!==Fe.oid)}),Xe=ve(Xe),g($e),u(Xe),R([]),E(!0)},Y=We=>{let Ke=n.getFieldsValue();for(let $e in Ke)Ke[$e]===!0&&(Ke[$e]="1"),Ke[$e]===!1&&(Ke[$e]="0");let Xe={...h,...Ke};r(Fct(Xe)),E(!1),g({}),t()},W=We=>{D(We.target.checked)},q=We=>{N(We.target.checked)},ee=We=>{O(We.target.value)},ae=We=>{z(We.target.value)},ne=(We,Ke)=>{let Xe={...h},$e=Xe.sections.find(pt=>pt.oid===We);$e&&($e.texte=Ke),g(Xe),E(!0)},ce=(We,Ke)=>{let Xe={...h},$e=Xe.sections.find(pt=>pt.oid===We);$e&&($e.code=Ke),g(Xe),E(!0)},ue=We=>{E(!0);const Ke=Object.keys(We)[0];if(Ke==="contenu_by_code"){let Xe={...h};Xe[Ke]=We[Ke],g(Xe)}},ge=(We,Ke)=>{Ke.node.section_id?(C(null),R([Ke.node])):(C({...Ke.node}),R([...Ke.node.children])),Ke.selected||R([]),B(We)},Se=()=>{let We={...h};const Xe=-(We.sections.filter($e=>+($e.oid<0)).length+1).toString();We.sections.push({oid:Xe,texte:"Nouvelle section",code:`S${We.sections.length}`,include_code:"",exclude_code:"",elements:[]}),g(We)},ye=We=>{let Ke={...h},Xe=Ke.sections.filter($e=>$e.oid!==We);Ke.sections=Xe,g(Ke)},pe=async(We,Ke,Xe)=>{let $e={...h},pt;if(pt=$e.sections.find(de=>de.oid===We),pt&&(pt.include_code=Ke,pt.exclude_code=Xe),Ke!==""){J(pt.elements),pt.elements=[];const de={schema:s.moduleId.replace("iCTI_",""),table_id:i.table_id,include_code:Ke,exclude_code:Xe},Fe=await i1e(de);K(Fe,pt)}g($e)},Qe=()=>{r(Nct(i.oid,i.table_id)),g({}),t()},Ue=We=>{let Ke=[...M];Array.isArray(We)?Ke=Ke.concat(We):Ke.includes(We)?Ke=Ke.filter(Xe=>Xe!==We):Ke.push(We),I([...new Set(Ke)])},tt=()=>{if(M.length)I([]);else{let We=c.map(Ke=>Ke.oid);I(We)}},it=()=>{g({}),t()};function we(We){let Ke=[];return We.sections.forEach(Xe=>{Xe.elements&&(Ke=Ke.concat(Xe.elements))}),Ke=M1e(Ke,Xe=>Xe.code),Ke}function ve(We){let Ke=[...We];return Q&&(Ke=Ke.filter(Xe=>Xe.utilise==="O")),F&&(Ke=Ke.filter(Xe=>Xe.section_id==="0")),Ke=Fh(Ke,k,["code","texte","complement"]),Ke=Te(Ke,P),Ke}function Te(We,Ke,Xe){let $e=Ke.match(/\w*\*?/gm);return We.filter(de=>$e.includes(de.code)?!0:$e.length!==1&&$e[0]!==""?$e.some(Fe=>{if(Fe!==""&&Fe.slice(-1)==="*"){let je=Fe.slice(0,-1);return de.code.startsWith(je)}else return!1}):!0)}function Be(We,Ke="",Xe=!1){let $e=[];return We.forEach((pt,de)=>{if(pt.code!==""){const Fe=(Ke!==""?Ke+"_":"")+de;let je={...pt,key:Fe,isLeaf:!0,title:pt.texte,editable:Xe};pt.elements&&(je.children=Be(pt.elements,Fe,Xe),je.isLeaf=!1,je.editable=!0),$e.push(je)}}),$e}function Ge(We){let Ke={...We};for(let Xe in i)switch(Xe){case"is_cti":Ke[Xe]=Ke[Xe]==="1";break;case"contenu_by_code":Ke[Xe]=Ke[Xe]==="1";break;case"contenu_non_replicable_ailleurs":Ke[Xe]=Ke[Xe]==="1";break;case"show_omit":Ke[Xe]=Ke[Xe]==="1";break;case"est_lecture_seule":Ke[Xe]=Ke[Xe]==="1";break;case"est_partagee_modification":Ke[Xe]=Ke[Xe]==="1";break}return Ke}function ht(We,Ke){return We.map(Xe=>({...Xe,title:Xe.editable?v.jsx(I1e,{node:Xe,handleSetText:ne,handleSetCode:ce,byCode:n.getFieldValue("contenu_by_code"),handleEdit:pe,handleDelete:ye}):`${Xe.title} (${Xe.code})`,children:Xe.children?ht(Xe.children):null}))}return v.jsx(v.Fragment,{children:v.jsxs(_e,{form:n,onValuesChange:ue,style:{height:"100%",display:"flex",flexFlow:"column"},disabled:L,children:[v.jsxs("div",{className:"component-header",children:[v.jsxs("div",{className:"header-title",children:[p?v.jsx(ga,{title:"Des modifications sont en cours. Etes vous sur de vouloir annuler ?",okText:"Retour à la liste",cancelText:"Continuer à modifier",onConfirm:it,children:v.jsx(nt,{type:"link",style:{height:"100%",paddingRight:"20px"},disabled:!1,children:v.jsx(UI,{})})}):v.jsx(nt,{type:"link",style:{height:"100%",paddingRight:"20px"},disabled:!1,children:v.jsx(UI,{onClick:it})}),"Gestion des classes"]}),v.jsxs("div",{className:"header-actions",children:[v.jsx(nt,{size:"default",icon:v.jsx(cde,{}),onClick:()=>{const We=n.getFieldsValue();Fut(We,c)},children:"Exporter"},"formExcelExportBtn"),b.ISROLECTI&&v.jsx(nt,{size:"default",icon:v.jsx(bv,{}),onClick:()=>{_ct(`iCTI_${a}`,i.oid,i.table_name)},children:"SQL"},"formSQLExportBtn"),v.jsx(ga,{title:"Vous vous vraiment supprimer cette classe ?",onConfirm:Qe,okText:"Supprimer",cancelText:"Annuler",children:v.jsx(nt,{size:"default",icon:v.jsx(Ba,{}),disabled:i.est_lecture_seule==="true"||L,children:"Supprimer"})}),v.jsx(nt,{size:"default",type:"primary",icon:v.jsx(Gs,{}),loading:j,disabled:!p||i.est_lecture_seule==="true",onClick:Y,children:"Enregistrer"},"formSubmitbtn")]})]}),v.jsxs("div",{className:"classes-description",children:[v.jsxs("div",{className:"form-column",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Code:"}),v.jsx(_e.Item,{name:"code",children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Texte:"}),v.jsx(_e.Item,{name:"texte",children:v.jsx(mt,{})})]})]}),v.jsxs("div",{className:"form-column",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Lecture seule:"}),v.jsx("b",{children:i.est_lecture_seule==="1"?"Oui":"Non"})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Saisie par code"}),v.jsx(_e.Item,{name:"contenu_by_code",valuePropName:"checked",children:v.jsx(Va,{})})]})]}),b.ISROLECTI&&v.jsxs("div",{className:"form-column",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Classe CTI"}),v.jsx(_e.Item,{name:"is_cti",valuePropName:"checked",children:v.jsx(Rr,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Contenu non réplicable ailleurs"}),v.jsx(_e.Item,{name:"contenu_non_replicable_ailleurs",valuePropName:"checked",children:v.jsx(Rr,{})})]})]})]}),v.jsx("div",{className:"component-content",children:v.jsxs("div",{className:"classes-editor-content",children:[v.jsxs("div",{className:"classes-sections",children:[v.jsxs("div",{className:"tree-header",children:[v.jsx("span",{children:"Sections"}),v.jsx("div",{className:"header-actions",children:v.jsx(nt,{type:"link",onClick:Se,children:v.jsx(gh,{})})})]}),v.jsx(SA,{treeData:d,blockNode:!0,onSelect:ge,selectedKeys:w})]}),v.jsxs("div",{className:"transfer-actions",children:[v.jsx(nt,{type:"link",onClick:()=>K(),disabled:h.contenu_by_code||!y||!M.length||L,children:v.jsx(FS,{})}),v.jsx(nt,{type:"link",onClick:()=>J(),disabled:h.contenu_by_code||!S.length||L,children:v.jsx(tY,{})})]}),v.jsxs(bh,{className:"classes-options",defaultSize:{width:"50%"},enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:[v.jsxs("div",{className:"options-search",children:[v.jsx("div",{className:"options-dragger",children:v.jsx(KQe,{style:{fontSize:16}})}),v.jsxs("div",{className:"form-column",children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Recherche par texte"}),v.jsx(mt,{value:k,onChange:ee})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Référencés uniquement"}),v.jsx(Rr,{checked:Q,onChange:W})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Non attribués uniquement"}),v.jsx(Rr,{checked:F,onChange:q})]})})]}),v.jsxs("div",{className:"form-column",children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{style:{minWidth:"100px"},children:"Liste de codes"}),v.jsx(mt.TextArea,{value:P,onChange:ae})]})}),v.jsx("div",{className:"form-row",children:v.jsx("div",{className:"form-item",children:v.jsx(nt,{type:"primary",onClick:tt,children:"De/Sélectionner"})})})]})]}),v.jsx("div",{className:"options-table",children:v.jsx($r,{fixed:!1,columns:l,data:c,loading:o,selectedRows:M,onRowSelect:Ue,shiftMulti:!0})})]})]})})]})})};b1e.propType={selectedClasse:U.object,handleCloseEditor:U.func};const Zut=te.memo(b1e),{DirectoryTree:Wee}=SA,S1e=({tables:e,refTables:t,showReferences:r,handleSelectedClasse:n,search:a})=>{const[i,o]=m.useState(null),[s,l]=m.useState(null),[A,c]=m.useState([]),[u,d]=m.useState([]),[f,h]=m.useState(null),g=Ye(I=>I.cti.content.moduleId),p=Pr(),E=Ye(I=>I.cti.components.classes.loading);m.useEffect(()=>{e&&t&&(o(B(e)),l(B(t)))},[e,t]),m.useEffect(()=>{const I=X5(i);c(I)},[i]),m.useEffect(()=>{if(a==="")d([]);else{const I=A.map(S=>S.title.toLowerCase().includes(a.toLowerCase())?by(S.key,i):null).filter((S,R,b)=>S&&b.indexOf(S)===R);d(I)}},[a,i,A]);const y=I=>{d(I)},C=I=>{const R=_C(s).find(b=>b.key===I[0]);R&&h(R.classe_id)},w=()=>{Tn({type:"info",message:"Synchronisation",description:"La synchronisation est en cours"}),p(kct(f,g)),h(null)};function B(I,S="",R=!1){let b=[];return Object.values(I).forEach((Q,D)=>{const F=(S!==""?S+"_":"")+Ka(Q.texte);let N={title:Q.texte,key:F,table_id:Q.table_id};Q.table_id===void 0&&(N.key=F);let k,O;Q.classes!==void 0&&(k=M(Q.classes,F)),Q.groups!==void 0&&(O=B(Q.groups,F,R)),k!==void 0&&O!==void 0?N.children=k.concat(O):k!==void 0?N.children=k:N.children=O,b.push(N)}),b.sort((Q,D)=>Q.title.localeCompare(D.title,void 0,{numeric:!0,sensitivity:"base"}))}function M(I,S,R){let b=[];return Object.values(I).forEach(Q=>{let D={title:Q.texte,key:S+"_"+Ka(Q.texte),isLeaf:!0,table_id:Q.table_id,classe_id:Q.classe_id,code:Q.code};Q.classe_id==="-1"?D.icon=v.jsx(gh,{}):D.icon=v.jsx(dy,{}),b.push(D)}),b.sort((Q,D)=>Number(Q.classe_id)-Number(D.classe_id))}return v.jsxs("div",{className:"component-content",children:[v.jsxs("div",{className:"classes-manager-classes",children:[E?v.jsx("div",{className:"listes-spin-loader",children:v.jsx(TR,{})}):null,v.jsx(Wee,{onSelect:n,treeData:i,expandedKeys:u,onExpand:y})]}),v.jsxs("div",{className:"cti-listes-manager-references",style:{display:r?"flex":"none"},children:[v.jsxs("div",{className:"references-header",children:[v.jsx("h3",{children:"Classes de références"}),v.jsx(nt,{style:{marginLeft:"10px"},size:"small",onClick:w,icon:v.jsx(Rv,{}),disabled:!f,children:"Importer"},"importBtn")]}),v.jsx("div",{className:"references-tree",children:v.jsx(Wee,{treeData:s,onSelect:C})})]})]})};S1e.propTypes={tables:U.object,refTables:U.object,showReferences:U.bool,handleSelectedClasse:U.func,search:U.string};const $ut=te.memo(S1e),edt=()=>{const[e,t]=m.useState(!1),[r,n]=m.useState(!1),[a,i]=m.useState(null),[o,s]=m.useState(""),l=Ye(C=>C.cti.components.classes.data),A=Ye(C=>C.cti.components.classes.loading),c=Ye(C=>C.cti.content.moduleId),u=Ye(C=>C.router.location.query),d=Pr(),f=_c();m.useEffect(()=>{d(Jb()),t(!1),i(null)},[c,d]),m.useEffect(()=>{if(u&&Object.keys(l.tables).length&&u.classe&&a===null){const C=u.classe,B=y(Object.values(l.tables)).find(M=>M.code===C);if(B){const M={classeId:B.classe_id,tableId:B.table_id};i(M),t(!0)}else f.replace({search:""})}},[u,l.tables,f,d,a]);const h=()=>{t(!1),f.push({search:""}),d(DPe())},g=C=>{s(C.target.value)},p=()=>{n(!r)},E=(C,w)=>{if(w.node.isLeaf===!0){const B={classeId:w.node.classe_id,tableId:w.node.table_id,key:w.node.key};f.replace({search:`?classe=${w.node.code}`}),i(B),t(!0)}};function y(C){let w=[];return Object.values(C).forEach(B=>{w=[...w,...Object.values(B.classes)]}),w}return e?v.jsx(Zut,{selectedClasse:a,handleCloseEditor:h}):v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Gestion des classes"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Gestion des classes"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(mt,{placeholder:"Recherche",value:o,onChange:g}),v.jsx(nt,{onClick:()=>{d(Jb())},icon:v.jsx(Wf,{}),loading:A,children:"Actualiser"},"refreshBtn"),v.jsx(nt,{style:{width:"148.5px"},type:r?"secondary":"primary",onClick:p,icon:v.jsx(dy,{}),children:r?"Cacher références":"Afficher références"},"showReferencesBtn")]})]}),v.jsx($ut,{tables:l.tables,refTables:l.refTables,showReferences:r,handleSelectedClasse:E,search:o})]})},tdt=te.memo(edt);var RI={exports:{}},rdt=RI.exports,Xee;function ndt(){return Xee||(Xee=1,function(e,t){(function(r,n,a){e.exports=a(),e.exports.default=a()})("slugify",rdt,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","ǈ":"LJ","ǉ":"lj","ǋ":"NJ","ǌ":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),n=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function a(i,o){if(typeof i!="string")throw new Error("slugify: string argument expected");o=typeof o=="string"?{replacement:o}:o||{};var s=n[o.locale]||{},l=o.replacement===void 0?"-":o.replacement,A=o.trim===void 0?!0:o.trim,c=i.normalize().split("").reduce(function(u,d){var f=s[d];return f===void 0&&(f=r[d]),f===void 0&&(f=d),f===l&&(f=" "),u+f.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return o.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),A&&(c=c.trim()),c=c.replace(/\s+/g,l),o.lower&&(c=c.toLowerCase()),c}return a.extend=function(i){Object.assign(r,i)},a})}(RI)),RI.exports}var adt=ndt();const ih=Nr(adt);function idt(e){let t=ft(e,"HTTP_SERVICE"),r=ft(t[0],"MODULE"),n=[];return r.forEach(a=>{let i=lr(a);function o(A){let c={};return ft(A,"MENUINFO").forEach(u=>{let d=lr(u);c[d.code]=d}),c}let s=o(a);Su(s)||(i.informations=s);function l(A){let c={};return ft(A,"MENUITEM").forEach(u=>{let d=lr(u);if((d==null?void 0:d.jisavailable)!=="false"){if(!Su(ft(u,"MENUITEM"))){let f=l(u);d.children=f}c[ih(d.label,{lower:!0})]=d}}),c}i.children=l(a),n[ih(i.name,{lower:!0})]=i}),n}const t2=e=>async function(t,r){const n=r(),a=n.cti.ui.primaryColor;t(c9(!0)),Tn({message:"Accueil",description:"Chargement de vos paramètres",key:"menu",duration:0,icon:v.jsx(Xu,{style:{color:a}})});try{const i=await en("modules/base/php/getNavigation.php");n.cti.ui.download===0&&t(bNe(Math.floor(Math.random()*8+9)));let o=idt(i),s={...o},l=Do.deflate(JSON.stringify(s),{to:"string"});Na.setItem("navigation",l),t(Khe(o)),e&&t(dY(e)),t(c9(!1)),as.close("menu")}catch(i){t(hOe(i)),console.log(i)}},odt=()=>function(e,t){const n=t().cti.menu.selectedModuleKey;e(dY(null)),e(t2(n))},sdt=()=>async function(e,t){const n=await Na.getItem("navigation");if(n===null)e(t2());else try{let a=JSON.parse(Do.inflate(n,{to:"string"}));e(Khe(a))}catch{throw new Error("Erreur lors de la récupération de la navigation")}};let S0=!1;function qee(e){let t={},r=e.getElementsByTagName("HTTP_SERVICE")[0];if(r){t=lr(r);const n=ft(r,"skipFirstSelection");if(n&&n.length>0){let a=lr(n);t.skipFirstSelection=a}return t}else return}function ldt(e){let t={},r=e.getElementsByTagName("HTTP_SERVICE")[0],n=ft(r,"PRESENTATION");return ft(n[0],"ONGLET").forEach((i,o)=>{let s=udt(i),l=cdt(i),A=ft(i,"INPUTSELECTION"),c=Adt(i),u=lr(i);if(A&&A.length>0){let f=[];A.forEach(h=>{let g=lr(h);f.push(g)}),u.inputSelections=f}u.charts=l,u.datagrid=s,u.selections=c;const d=u.label?ih(u.label,{lower:!0}):o;t[d]=u}),t}function Adt(e){let t=[],r=ft(e,"SELECTIONS");return r&&r.length>0&&r.forEach(n=>{let a=ft(n,"GROUP");a&&a.length>0&&a.forEach(i=>{let o=ft(i,"FIELD");o&&o.length>0&&o.forEach(s=>{let l=lr(s),A=ft(s,"OPTION");if(A&&A.length>0){let c=mn(A);c=c.map(u=>({...u,title:u.label})),c=xh(c),l.options=c}t.push(l)})})}),t}function cdt(e){let t=ft(e,"CHART"),r={};return t.forEach((n,a)=>{let i=lr(n),o=ft(n,"CHART");if(o.length>0){let s={};o.forEach((l,A)=>{let c=Zee(l);s[A]=c}),i.subCharts=s}else i=Zee(n);r[a]=i}),r}function Zee(e){let t={},r=ft(e,"SERIE");r[0]!==void 0&&r.forEach((o,s)=>{let l=lr(o);t[s]=l});let n={},a=ft(e,"CATEGORY");a[0]!==void 0&&a.forEach((o,s)=>{let l=lr(o),A=ft(o,"ITEM");A.length&&(l.items=mn(A)),n[s]=l});let i=lr(e);return i.categories=n,i.series=t,i}function udt(e){let t=ft(e,"DATAGRID"),r=lr(t[0]);r.sortable=r.sortable!=="false";let n=ft(t[0],"COLUMN");r.columns=R1e(n);let a=ft(t[0],"ROWSTYLE");r.rowStyles=Pj(a);let i=ft(t[0],"LINE");return i.length>0&&(r.lines=fdt(i)),r}function R1e(e){let t={};return e.forEach(r=>{let n=lr(r),a=ft(r,"CALC"),i=ft(r,"CELLSTYLE"),o=ft(r,"HEADERCELLSTYLE");a.length>0&&(n.calcs=ddt(a)),i.length>0&&(n.cellStyles=Pj(i)),o.length>0&&(n.headerStyles=Pj(o)),t[n.dataField]=n}),t}function ddt(e){let t=[];return e.forEach(r=>{let n=lr(r);if(n.dataField==="*calc"){let a=ft(r,"CALC");n.calcs=mn(a)}t.push(n)}),t}function Pj(e){let t=[];return e.forEach(r=>{let n=lr(r);t.push(n)}),t.filter(r=>r["jis-ignore"]!=="true"&&r.name!=="toolTip")}function fdt(e){let t=[];return e.forEach(r=>{let n=lr(r),a=ft(r,"COLUMN"),i=ft(r,"ROWSTYLE");a.length>0&&(n.columns=R1e(a)),a.length>0&&(n.rowStyles=mn(i)),t.push(n)}),t}const $ee=e=>{let t={},r={};return ft(e,"ARG").forEach((i,o)=>{let s=lr(i);t[`${s.name}-${o}`]={name:s.name,value:s.value}}),ft(e,"ARGS").forEach((i,o)=>{let s=lr(i);r[`${s.name}-${o}`]=s}),{args:t,allArgs:r}};function ete(e){let t=ft(e,"HTTP_SERVICE"),r=ft(t[0],"PRESENTATION"),n=ft(r[0],"VIEWLINKS"),a={};return n.length>0&&ft(n[0],"VIEWLINK").forEach((o,s)=>{const{args:l,allArgs:A}=$ee(o);let c={};ft(o,"VIEWITEM").forEach(f=>{let h=lr(f);const{args:g,allArgs:p}=$ee(f);Object.keys(g).length>0&&(h.args=g),Object.keys(p).length>0&&(h.allArgs=p),c[h.label]=h});let d=lr(o);Object.keys(l).length>0&&(d.args=l),Object.keys(A).length>0&&(d.allArgs=A),Object.keys(c).length>0&&(d.viewitems=c),d.rowContext=!(d.rowContext&&d.rowContext==="false"),a[`${ih(d.label,{lower:!0})}-${s}`]=d}),a}function hdt(e){let t=ft(e,"HTTP_SERVICE"),r=ft(t[0],"PRESENTATION"),n=ft(r[0],"VIEWLINKS");if(n.length){let a=ft(n[0],"VIEWREF");return mn(a)}else return[]}function tte(e){let t={},r=e.getElementsByTagName("HTTP_SERVICE")[0],n=ft(r,"VIEWPROPERTIES")[0];return ft(n,"PROPERTY").forEach(i=>{let o=lr(i);t[o.name]=o.value}),t}function rte(e){let t={},r=e.getElementsByTagName("HTTP_SERVICE")[0];return ft(r,"VIEWARG").forEach(a=>{let i=lr(a);t[i.key]=i.value}),t}function nte(e){return pdt(e)}function gdt(e){let t={};for(let r=0;r<e.attributes.length;r++){let n=e.attributes[r];[void 0,""].includes(n)||(t[n.name]=n.value)}return t}function pdt(e){var t={};let r=0;for(const n in e.getElementsByTagName("SELECTIONS"))if(e.getElementsByTagName("SELECTIONS").hasOwnProperty(n)){const a=e.getElementsByTagName("SELECTIONS")[n];t[r]=gdt(a),t[r].group=vdt(a),r++}return t}function vdt(e){let t=ft(e,"GROUP"),r=[];return t&&t.forEach(n=>{let a=lr(n);a.field=ate(n);let i=ft(n,"GROUP");if(i&&i.length){let o=[];i.forEach(s=>{let l=lr(s);l.field=ate(s),o.push(l)}),a.group=o}r.push(a)}),r}function ate(e){var t=[];let r=ft(e,"FIELD");return r&&r.length&&r.forEach(n=>{let a=lr(n);a.value=a.default??a.value;let i=ft(n,"OPTION"),o=mn(i);o=o.map(s=>(s.title=s.label??"",delete s.key,s)),o.length>0&&(a.options=xh(o,!1,!0)),t.push(a)}),t}function mdt(e){let t=ldt(e);var r=[];let n=e.getElementsByTagName("HTTP_SERVICE")[0];ft(n,"DATA").forEach(function(s){let l=[];ft(s,"ROW").forEach(function(d){let f=lr(d);l.push(f)});let c=lo(l,u=>u.TABD);r.push(c)});let i={};return Object.values(t).forEach(o=>{let s={},l=0;o.queryNumber!==void 0&&(l=o.queryNumber);let A=[];A=r[l];let c=[];Object.values(A).forEach((d,f)=>{let h=[...d];o.template_count&&o.inputSelections&&o.inputSelections.length===1&&(h=h.filter(y=>Cn(o.inputSelections[0].condition,null,y)));const g=o.datagrid.lines;if(g&&Object.keys(h).length>0){let y;y=h[0],y&&(h=[],Object.values(g).forEach(C=>{if(C.rowStyles){const R=C.rowStyles.find(b=>b.name==="hide");if(R&&Cn(R.condition,{run:{}},y))return}let w=" ",B=[],M="",I="",S="";C.columns&&(w=y[Object.values(C.columns)[0].dataField],Object.values(C.columns).forEach(R=>{R.outputFormat&&(M=R.outputFormat,I=R.inputFormat),R.type&&(S=R.type),R.cellStyles&&(B=R.cellStyles.map(b=>({...b,column:R.toDataField})),B=B.filter(b=>b.name==="cellIndicator"))})),h.push({...y,KEY:C.key,LABEL:C.label,VAL:w,symbols:B,outputFormat:M,inputFormat:I,type:S})}))}let p={};p.data=h,p.name=d[0].TABDLL,p.id=d[0].TABD;let E=p.name;(E==="undefined"||E===void 0)&&(E=`similitab_${f}`),s[`${E}-${d[0].TABD}`]=p});const u=o.label??o.excelLabel;i[u]={...o},i[u].label=u,i[u].similitabs=s,i[u].datagrid.rowStyles=i[u].datagrid.rowStyles?i[u].datagrid.rowStyles.concat(c):c}),i}function Edt(e){let t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"ERROR"),n=mn(r);return n.length?n:null}async function pv(e,t,r=null){S0=!1;let n={},a={},i=Edt(e);if(i)return i.forEach(s=>{Fa(8500,"Erreur retournée par le serveur",s)}),{viewData:{desc:null,run:null,errors:i},dynamicSelect:[]};t?(n={selections:nte(e),attributes:qee(e),viewlinks:ete(e),viewRefs:hdt(e)},a={args:rte(e),properties:tte(e),executed:!1,forceServer:!1}):(r?n=r:n={selections:nte(e),attributes:qee(e),viewlinks:ete(e)},a={properties:tte(e),data:mdt(e),args:rte(e),executed:!0}),a.args.init!==void 0&&delete a.args.init;const o={desc:n,run:a};if(o.desc.selections){const s=vc(o.desc.attributes.globals);let l=so.getState();if(s==="globals_"||s===null||s===l.cti.globals.module&&Object.keys(l.cti.globals.data).length)S0=!0;else{let A=s.replace("globals_","");so.dispatch(hv(A));const c=so.subscribe(()=>{l=so.getState(),s===l.cti.globals.module&&Object.keys(l.cti.globals.data).length&&(S0=!0,c())});for(;S0===!1;)await T1e(500)}}return ydt(o)}const T1e=e=>new Promise(t=>{setTimeout(async()=>{S0===!0||await T1e(1e3),t()},e)});function ydt(e){let t=[],r;if(e.desc.selections){e.desc.selections=Ktt(e.desc.selections,e.run.properties),r=UR(e),e.desc.attributes.title&&(e.desc.attributes.title.includes("=")?e.run.title=Cn(e.desc.attributes.title,e,null,null,r):e.run.title=e.desc.attributes.title);let n=[];Object.values(e.desc.selections).forEach(a=>{a.displayText&&a.displayText!==""&&n.push(Cn(a.displayText,e,null,null,r))}),e.run.viewFilters=n}return e.run.data&&(e.run.data=Ytt(e.run.data,e,r),t=q5(e.run.data)),{viewData:e,dynamicSelect:t,globalVariables:r}}function Lp(e,t,r={},n=!1){return function(a,i){if(a(ph(!0)),t!=="")a(Bdt(e,t,n));else{const o=bl(e).split("_")[0],s=Qut(o,r);if(!s)a(LL(e));else{const l=s.substring(0,7);ei.unstable_batchedUpdates(()=>{a(AY("?p="+l,{type:"view"})),a(Lp(e,l,r))})}}}}function Cdt(e,t,r){return async function(a){a(j4e(e));const i=bl(e),o=bl(e,t);let s=await Wb(i),l=await Wb(o),A=[],c,u=[],d=r;if(!s||!l){const p=bl(e).split("_")[0];if(!s||d._FORCE_UPDATE){const w=await vv(p+".XML",d,1,d,!0);let B=await pv(w,1);c=B.viewData,u=B.dynamicSelect,c.errors?a(ev(c.errors)):(a(Gu(B.globalVariables)),d=c.run.args,s=_y(p),await ah(s,c.desc))}else c={desc:await ts(s)};const E=c.desc.selections,y=aY(E,[]);for(let w in d){const B=d[w];if(B&&typeof B=="string"&&(B.startsWith("#LI")||B.startsWith("#LS")||B.startsWith("#LC")||B.startsWith("#SL")||B.startsWith("#CH")||w==="MOIS"||w==="TOMOIS"||w==="CHAMP"||w==="PERIODE"||w==="TOPERIODE")){const M=y.find(I=>I.name===w);if(M&&M.UI==="combo"){const S=Tc(M.treeData,[]).find(R=>R.option.aliasData===B);S&&(d[w]=S.option.data)}}else B&&typeof B=="string"&&B.includes("-999999")&&(d[w]="-1")}if(l=_y(p,d,0),await ts(l)===null){const w=await vv(p+".XML",d,0,null,!0),B=await pv(w,0,c.desc);c=B.viewData;let M=B.dynamicSelect;c.errors?a(ev(c.errors)):(a(Gu(B.globalVariables)),A=u.concat(M),await ah(l,c.run))}}A.length>0&&a($p(A));const f=await ts(l),h=await ts(s);a(Gu(UR({run:f,desc:h})));const g=l.split("_")[2].substring(0,7);a(AY("?p="+g)),a(ad(s,l,!1,!1)),a(Ru(null,null))}}function wdt(e,t,r,n){return async function(i){const o=await ts(n);if(o&&o.executed){const s=q5(o.data);s.length>0&&i($p(s)),i(ad(r,n,!1,!1))}else{const s=bl(e).split("_")[0],l=await vv(s+".XML",t,0);let{viewData:A,dynamicSelect:c,globalVariables:u}=await pv(l,0);A.errors?i(ev(A.errors)):(i(Gu(u)),await ah(n,A.run),c.length>0&&i($p(c)),i(ad(r,n,!1,!1)))}}}function Bdt(e,t,r){return async function(n){const a=bl(e,t);try{const i=await Wb(a);if(!i)n(LL(e,!1));else if(r===!0){const o=await ts(i);n(ite(o,i,e,t))}else try{const o=await ts(i);o.executed===!0?n(xdt(e,i,t)):o.forceServer?n(ite(o,i,e,t)):n(Mdt(e,i))}catch(o){Fa(8401,i,o)}}catch(i){Fa(8401,a,i)}}}function Mdt(e,t){return async function(r){try{const n=bl(e),a=await ts(n),i=await ts(t),o={desc:a,run:i},s=vc(o.desc.attributes.globals);let l=so.getState();const A=UR(o,a.selections);if(s!==l.cti.globals.module){let u=s.replace("globals_","");l.cti.globals.isLoading===!1&&so.dispatch(hv(u))}const c=!(a.selections&&!Object.keys(a.selections).length);a===void 0?r(LL(e)):(r(Gu(A)),r(ad(n,t,c)))}catch(n){Fa(8400,`DESC: ${bl(e)}, RUN: ${t}`,n)}}}function ad(e,t,r,n=!1){return function(i){ei.unstable_batchedUpdates(()=>{if(i(rge(e)),t!==null){const o=t.split("_")[0],s=t.split("_")[2];i(nge(t)),i(sOe(o,s))}i(xOe(r)),r===!0&&i(age(!1)),i(ph(n))})}}function xdt(e,t,r){return async function(n){try{const a=bl(e),i=await Wb(a),o=await ts(t);if(i){const s=q5(o.data);s.length>0&&n($p(s));const l=await ts(a),c=UR({desc:l,run:o},l.selection);n(Gu(c)),n(ad(i,t,!1,!1))}}catch(a){Fa(8401,t,a)}}}function LL(e){return async function(r){const n=bl(e).split("_")[0],a=await vv(n+".XML");let{viewData:i,globalVariables:o}=await pv(a,1);if(i.errors)r(ev(i.errors));else{r(Gu(o));const s=i.run.args;let l={},A=["-1","null"];for(let h in s){let g=s[h];A.includes(g)||(l[h]=g)}const u=e2(l).substring(0,7);r(AY("?p="+u,{type:"view"}));const d=_y(n),f=_y(n,l,0);if(await ah(d,i.desc),i.desc.attributes.skipFirstSelection&&i.desc.attributes.skipFirstSelection==="true")r(wdt(e,i.run.args,d,f));else{await ah(f,i.run);const h=!(i.desc.selections&&!Object.keys(i.desc.selections).length);r(ad(d,f,h))}}}}function ite(e,t,r,n){return async function(i,o){i(OO(!0));const s=t.split("_")[0],l=bl(r),A=await ts(l),c=e.args,u=await vv(s+".XML",c,0,n);let{viewData:d,dynamicSelect:f,globalVariables:h}=await pv(u,0,A);d.errors?(i(ev(d.errors)),i(ad(l,null,!1))):(i(Gu(h)),ah(t,d.run),f.length>0&&i($p(f)),i(ad(l,t,!1)),i(OO(!1)))}}const Idt=()=>async function(e,t){const r=t(),n={user:r.cti.settings.data.session.CONNECTEDUSER,viewName:r.cti.menu.item.name};await en("modules/base/php/httpService_view_cancelExec.php",n),e(ph(!1))};async function vv(e,t,r=1,n="",a){const i=!(r===1&&!a);let o=new FormData,s={url:e,init:r,shargs:n};i&&(s._OPTION_FORCEDEFAULT=1);for(const c in s)o.append(c,s[c]);for(const c in t)c!=="init"&&o.append(c,t[c]);const l=ma()+"modules/base/php/getVue.php";let A=await ai({method:"post",url:l,data:o,credentials:"include",cache:"no-cache",headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});return A.status>=400&&Tn({type:"error",duration:0,message:"Le serveur a retourné une erreur",description:"Veuillez changer de vue ou recharger la page"}),new Promise((c,u)=>{try{let d=ud(A.data);c(d)}catch{u()}})}const bdt=(e,t)=>async function(r,n){const a={definition:e};try{if(await en("modules/base/php/addFavorite.php",a),r(t2()),t){let i=window.location.pathname.split("/"),o="";await C1e(i),Tn({type:"warn",message:"Rechargement du favori",description:"En cours"}),r(Lp(i[i.length-1],o))}}catch(i){throw console.log(i),new Error("Erreur lors de l'ajout du favori")}},Sdt=e=>async function(t,r){const n={myFavorites:e};try{await en("modules/base/php/setMyFavorites.php",n),t(t2())}catch{throw new Error("Erreur lors de la mise à jour des favoris")}},Rdt=()=>async function(e,t){e(n9(!0));try{const r=await en("modules/base/php/getMyfavorites.php"),[n,a]=ent(r);ei.unstable_batchedUpdates(()=>{e(UPe(n,a)),e(n9(!1))})}catch{throw new Error("Erreur lors du chargement des favoris")}},UL=e=>{let t=[];return e.forEach(r=>{let n={XMLType:"MENUITEM",...r};r.children&&(n.children=UL(r.children)),delete n.key,delete n.isLeaf,delete n.editable,t.push(n)}),t};function ote(e){let t={settings:{XMLType:"SETTINGS",children:[]}},r={XMLType:"PROFILE"};if(Object.entries(e).forEach(n=>{if(n[0]!=="auths"){let a=n[1];r[n[0]]=a}}),delete r.key,delete r.longFile,delete r.file,delete r.role,delete r.disabled_display,delete r.referentUsers,delete r.granted_modules,delete r.ctiusrdir_rule,delete r.ctisrvdir_rule,delete r.lastConnexion_token,delete r.lastConnexion_datetime,delete r.favorites,delete r.specialite,delete r.security_level_id,delete r.ctiusrdir_synchronize_force,t.settings.children.push(r),e.auths&&e.auths.forEach(n=>{if(n){let a={XMLType:"AUT",...n};delete a.key,t.settings.children.push(a)}}),e.favorites){let n={XMLType:"FAVORITE",name:"Favoris",label:"Mes favoris",children:UL(e.favorites)};t.settings.children.push(n)}return Fl(t,!0)}function Tdt(){let e={profil:"",name:"Nouvel utilisateur",password:"",description:"",mail:"",hasMailExploit:"false",disabled:"false",isadmin:"false",isCTI:"false",isdecideur:"false",ismedecin:"false",homeview:"",hidenames:"false",referentUser:"",referentUser2:"",referentUser3:"",referentUser4:"",referentUser5:"",referentUser_withDashboard:"false",referentUser_withFavorite:"false",security_level_id:"-1",default_ctiusrdir_synchronize_all:"false",default_ctiusrdir_synchronize_name:"false",default_ctiusrdir_synchronize_role:"false",default_ctiusrdir_synchronize_password:"false",default_ctiusrdir_synchronize_aut:"false",FAVORIS_PARTAGES_ALL:!1,FAVORIS_PARTAGES_PMSI:!1,FAVORIS_PARTAGES_PMSISSR:!1,FAVORIS_PARTAGES_PMSIPSY:!1,FAVORIS_PARTAGES_ACTIVITE:!1,FAVORIS_PARTAGES_RH:!1,FAVORIS_PARTAGES_COMPTA:!1,FAVORIS_PARTAGES_EIS:!1,FAVORIS_PARTAGES_PARTIAL:!1,FAVORIS_PARTAGES_PMSIHAD:!1};const t=[{type:"module",module:"iCTI_eis",name:"iCTI_eis",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_qualite",name:"iCTI_qualite",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_pmsi",name:"iCTI_pmsi",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_pmsimpact",name:"iCTI_pmsimpact",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_pmsissr",name:"iCTI_pmsissr",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_pmsipsy",name:"iCTI_pmsipsy",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_pmsihad",name:"iCTI_pmsihad",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_ssae",name:"iCTI_ssae",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_dpi",name:"iCTI_dpi",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_activite",name:"iCTI_activite",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_compta",name:"iCTI_compta",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_rh",name:"iCTI_rh",granted:"none",refProfile:"*user",dataProfileGranted:"partial",dataProfile:"NONE"},{type:"module",module:"iCTI_eco",name:"iCTI_eco",granted:"none",refProfile:"*user",dataGranted:"partial",dataRule1:"NONE"},{type:"module",module:"iCTI_specifique",name:"iCTI_specifique",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_tools",name:"iCTI_tools",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_tools",name:"iCTI_tools",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_ALL",name:"FAVORIS_PARTAGES_ALL",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_PMSI",name:"FAVORIS_PARTAGES_PMSI",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_PMSISSR",name:"FAVORIS_PARTAGES_PMSISSR",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_PMSIPSY",name:"FAVORIS_PARTAGES_PMSIPSY",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_ACTIVITE",name:"FAVORIS_PARTAGES_ACTIVITE",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_RH",name:"FAVORIS_PARTAGES_RH",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_COMPTA",name:"FAVORIS_PARTAGES_COMPTA",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_EIS",name:"FAVORIS_PARTAGES_EIS",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_PARTIAL",name:"FAVORIS_PARTAGES_PARTIAL",granted:"none",refProfile:"*user"},{type:"token",name:"*ALL",granted:"full"}];return e.auths=t,e}const Qdt=e=>({...e,code:"",profil:"",name:`Copie de ${e.name}`,password:"",auths:[...e.auths],favorites:[...e.favorites]}),Q1e=({text:e,nodeKey:t,setLabel:r})=>{const[n,a]=m.useState(e),[i,o]=m.useState(!1),[s,l]=m.useState(!1),A=m.useRef(),c=Pr();m.useEffect(()=>{s&&A.current.focus(),c(HPe(s))},[s,c]);const u=g=>{a(g.target.value)},d=()=>{o(!i)},f=()=>{l(!s)},h=g=>{l(!1),r(t,n)};return v.jsx("div",{className:"editable-title",onMouseEnter:d,onMouseLeave:d,children:s?v.jsx(mt,{ref:A,draggable:!1,style:{marginLeft:"6px",width:"50%"},value:n,onChange:u,onBlur:h}):v.jsx(v.Fragment,{children:v.jsx("div",{className:"editable-label",onClick:f,children:n})})})};Q1e.propTypes={text:U.string,nodeKey:U.string,setLabel:U.func};const{DirectoryTree:ste}=SA,Ddt=()=>{const e=Pr(),[t,r]=m.useState([]),[n,a]=m.useState(!1),[i,o]=m.useState([]),[s,l]=m.useState([]),[A,c]=m.useState([]),[u,d]=m.useState([]),[f,h]=m.useState([]),g=Ye(O=>O.cti.components.favorites.data),p=Ye(O=>O.cti.components.favorites.loading),E=Ye(O=>O.cti.components.favorites.selected);m.useEffect(()=>{e(Rdt())},[e]),m.useEffect(()=>{if(g.myFavorites){const O=y(g.myFavorites,"",!0);r(O)}if(g.allViews){const O=y(g.allViews);o(O)}},[g,e]);function y(O,P="",z=!1){let j=[];return Object.values(O).forEach((V,L)=>{const K=(P!==""?P+"_":"")+L;let J={...V,key:K,isLeaf:!0,title:V.label,editable:z};delete J.icon,V.children&&(J.children=y(V.children,K,z),J.isLeaf=!1,J.checkable=!1),j.push(J)}),j}function C(O,P){let z=t.map(j=>({...j}));B(z,O,(j,V,L)=>{j.label=P}),r(z)}function w(O,P=""){let z=[];return O.forEach((j,V)=>{const L=(P!==""?P+"_":"")+V+j.name;j.key=L,j.children&&(j.children=w(j.children,L),j.isLeaf=!1),z.push(j)}),z}function B(O,P,z){for(let j=0;j<O.length;j++){if(O[j].key===P)return z(O[j],j,O);O[j].children&&B(O[j].children,P,z)}}const M=(O,P,z)=>{as[O]({message:P,description:z})},I=()=>{a(!0);const O={name:"Nouveau dossier",label:"Nouveau dossier",editable:!0,key:(t.length+1).toString(),view:"",isLeaf:!1,children:[]},P=w([...t,O]);r(P)},S=(O,P)=>{if(P.checked)h([...f,...P.checkedNodes]);else{const z=f.findIndex(V=>V.key===P.node.key);let j=[...f];j.splice(z,1),h(j)}l(O)},R=(O,P)=>{if(P.checked)d([...u,P.node]);else{const z=u.findIndex(V=>V.key===P.node.key);let j=[...u];j.splice(z,1),d(j)}c(O)},b=()=>{a(!0);const O=y(u,"",!0),P=w([...t,...O]);r(P),d([]),c([])},Q=()=>{a(!0);let O=t.map(z=>({...z}));f.forEach(z=>{B(O,z.key,(j,V,L)=>{L.splice(V,1)})});const P=w(O);h([]),l([]),r(P)},D=({event:O,node:P,dragNode:z,dropPosition:j,dropToGap:V})=>{a(!0);let L=t.map(Y=>({...Y}));const K=P.key,J=z.key;if(!V)B(L,K,Y=>{if(!Y.isLeaf){let W;B(L,J,(q,ee,ae)=>{W={...q},ae.splice(ee,1)}),Y.children=Y.children||[],Y.children.push(W)}});else if((P.children||[]).length>0&&P.expanded&&j===1){let Y;B(L,J,(W,q,ee)=>{Y={...W},ee.splice(q,1)}),B(L,K,W=>{W.children=W.children||[],W.children.unshift(Y)})}else{let Y;B(L,J,(ee,ae,ne)=>{Y={...ee},ne.splice(ae,1)});let W,q;B(L,K,(ee,ae,ne)=>{W=ne,q=ae}),j===-1?W.splice(q,0,Y):W.splice(q+1,0,Y)}r(L)},F=()=>{let O={sendFavorites:{XMLType:"MYFAVORITES",children:UL(t)}};const P=Fl(O,!0);M("info","Mise à jour en cours","La mise à jour de vos favoris est en cours. Cela va prendre quelques instants"),e(Sdt(P))},N=O=>O==null?void 0:O.map(P=>({...P,title:P.editable?v.jsx(Q1e,{text:P.label,nodeKey:P.key,setLabel:C}):P.label,children:P.children?N(P.children):null})),k=N(t);return v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Gestion des favoris"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("h1",{className:"header-title",children:"Organisation de mes favoris"}),v.jsx("div",{className:"favorites-actions",children:v.jsx(dv,{handleClick:F,disabledAction:!n,toolTipTitle:"Enregistrer"})})]}),v.jsx("div",{className:"component-content",children:v.jsxs("div",{className:"favorites-editor",children:[v.jsxs("div",{className:"favorites-editor-items",children:[v.jsxs("div",{className:"tree-header",children:[v.jsx("h2",{children:"Mes Favoris"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(nt,{type:"link",onClick:I,children:v.jsx(WDe,{})}),v.jsx(nt,{type:"link",onClick:Q,children:v.jsx(Ba,{})})]})]}),p?null:v.jsx(ste,{checkable:!0,treeData:k,draggable:!E,blockNode:!0,onDrop:D,checkedKeys:s,onCheck:S})]}),v.jsx("div",{className:"transfer-actions",children:v.jsx(nt,{type:"link",onClick:b,children:v.jsx(FS,{})})}),v.jsxs("div",{className:"favorites-editor-menu",children:[v.jsx("h2",{className:"tree-header",children:"Vues disponibles"}),p?v.jsx("div",{className:"favorites-loader",children:v.jsx(Ya,{size:"small"})}):v.jsx(ste,{checkable:!0,treeData:i,checkedKeys:A,onCheck:R})]})]})})]})};var l4={},A4={exports:{}},c4={exports:{}},lte;function Xn(){return lte||(lte=1,function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(c4)),c4.exports}var Ate;function Gn(){return Ate||(Ate=1,function(e){var t=Xn().default;function r(n,a){if(typeof WeakMap=="function")var i=new WeakMap,o=new WeakMap;return(e.exports=r=function(l,A){if(!A&&l&&l.__esModule)return l;var c,u,d={__proto__:null,default:l};if(l===null||t(l)!="object"&&typeof l!="function")return d;if(c=A?o:i){if(c.has(l))return c.get(l);c.set(l,d)}for(var f in l)f!=="default"&&{}.hasOwnProperty.call(l,f)&&((u=(c=Object.defineProperty)&&Object.getOwnPropertyDescriptor(l,f))&&(u.get||u.set)?c(d,f,u):d[f]=l[f]);return d},e.exports.__esModule=!0,e.exports.default=e.exports)(n,a)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(A4)),A4.exports}var u4={exports:{}},cte;function mr(){return cte||(cte=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u4)),u4.exports}var d4={exports:{}},f4={exports:{}},h4={exports:{}},ute;function Fdt(){return ute||(ute=1,function(e){var t=Xn().default;function r(n,a){if(t(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,a||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(h4)),h4.exports}var dte;function D1e(){return dte||(dte=1,function(e){var t=Xn().default,r=Fdt();function n(a){var i=r(a,"string");return t(i)=="symbol"?i:i+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(f4)),f4.exports}var fte;function Ua(){return fte||(fte=1,function(e){var t=D1e();function r(n,a,i){return(a=t(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(d4)),d4.exports}var g4={exports:{}},hte;function Kn(){return hte||(hte=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var i in a)({}).hasOwnProperty.call(a,i)&&(r[i]=a[i])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(g4)),g4.exports}var Vw={exports:{}},oE={},p4={exports:{}},gte;function co(){return gte||(gte=1,function(e){var t=Ua();function r(a,i){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);i&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),o.push.apply(o,s)}return o}function n(a){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){t(a,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(o,s))})}return a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(p4)),p4.exports}var Jw={},pte;function _dt(){if(pte)return Jw;pte=1,Object.defineProperty(Jw,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};return Jw.default=e,Jw}var sE={},v4={exports:{}},m4={exports:{}},vte;function F1e(){return vte||(vte=1,function(e){function t(r){if(Array.isArray(r))return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(m4)),m4.exports}var E4={exports:{}},mte;function Ndt(){return mte||(mte=1,function(e){function t(r,n){var a=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(a!=null){var i,o,s,l,A=[],c=!0,u=!1;try{if(s=(a=a.call(r)).next,n===0){if(Object(a)!==a)return;c=!1}else for(;!(c=(i=s.call(a)).done)&&(A.push(i.value),A.length!==n);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(u)throw o}}return A}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(E4)),E4.exports}var y4={exports:{}},C4={exports:{}},Ete;function _1e(){return Ete||(Ete=1,function(e){function t(r,n){(n==null||n>r.length)&&(n=r.length);for(var a=0,i=Array(n);a<n;a++)i[a]=r[a];return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(C4)),C4.exports}var yte;function HL(){return yte||(yte=1,function(e){var t=_1e();function r(n,a){if(n){if(typeof n=="string")return t(n,a);var i={}.toString.call(n).slice(8,-1);return i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set"?Array.from(n):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(n,a):void 0}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(y4)),y4.exports}var w4={exports:{}},Cte;function N1e(){return Cte||(Cte=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(w4)),w4.exports}var wte;function OA(){return wte||(wte=1,function(e){var t=F1e(),r=Ndt(),n=HL(),a=N1e();function i(o,s){return t(o)||r(o,s)||n(o,s)||a()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(v4)),v4.exports}var B4={exports:{}},M4={exports:{}},Bte;function kdt(){return Bte||(Bte=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(n.indexOf(i)!==-1)continue;a[i]=r[i]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(M4)),M4.exports}var Mte;function yd(){return Mte||(Mte=1,function(e){var t=kdt();function r(n,a){if(n==null)return{};var i,o,s=t(n,a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(o=0;o<l.length;o++)i=l[o],a.indexOf(i)===-1&&{}.propertyIsEnumerable.call(n,i)&&(s[i]=n[i])}return s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(B4)),B4.exports}var lE={},xte;function GL(){if(xte)return lE;xte=1,Object.defineProperty(lE,"__esModule",{value:!0}),lE.default=void 0;var e=cr(),t=(0,e.createContext)({});return lE.default=t,lE}var AE={},Xi={};const k1e=Un(nTe);var Ko={},Ite;function P1e(){if(Ite)return Ko;Ite=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.call=i,Ko.default=void 0,Ko.note=n,Ko.noteOnce=s,Ko.preMessage=void 0,Ko.resetWarned=a,Ko.warning=r,Ko.warningOnce=o;var e={},t=Ko.preMessage=function(A){};function r(l,A){}function n(l,A){}function a(){e={}}function i(l,A,c){!A&&!e[c]&&(l(!1,c),e[c]=!0)}function o(l,A){i(r,l,A)}function s(l,A){i(n,l,A)}return o.preMessage=t,o.resetWarned=a,o.noteOnce=s,Ko.default=o,Ko}var Hd={},Ww={},bte;function OC(){if(bte)return Ww;bte=1,Object.defineProperty(Ww,"__esModule",{value:!0}),Ww.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}return Ww}var Xw={},Ste;function Pdt(){if(Ste)return Xw;Ste=1,Object.defineProperty(Xw,"__esModule",{value:!0}),Xw.default=e;function e(t,r){if(!t)return!1;if(t.contains)return t.contains(r);for(var n=r;n;){if(n===t)return!0;n=n.parentNode}return!1}return Xw}var Rte;function KL(){if(Rte)return Hd;Rte=1;var e=mr().default;Object.defineProperty(Hd,"__esModule",{value:!0}),Hd.clearContainerCache=p,Hd.injectCSS=d,Hd.removeCSS=h,Hd.updateCSS=E;var t=e(co()),r=e(OC()),n=e(Pdt()),a="data-rc-order",i="data-rc-priority",o="rc-util-key",s=new Map;function l(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=y.mark;return C?C.startsWith("data-")?C:"data-".concat(C):o}function A(y){if(y.attachTo)return y.attachTo;var C=document.querySelector("head");return C||document.body}function c(y){return y==="queue"?"prependQueue":y?"prepend":"append"}function u(y){return Array.from((s.get(y)||y).children).filter(function(C){return C.tagName==="STYLE"})}function d(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,r.default)())return null;var w=C.csp,B=C.prepend,M=C.priority,I=M===void 0?0:M,S=c(B),R=S==="prependQueue",b=document.createElement("style");b.setAttribute(a,S),R&&I&&b.setAttribute(i,"".concat(I)),w!=null&&w.nonce&&(b.nonce=w==null?void 0:w.nonce),b.innerHTML=y;var Q=A(C),D=Q.firstChild;if(B){if(R){var F=(C.styles||u(Q)).filter(function(N){if(!["prepend","prependQueue"].includes(N.getAttribute(a)))return!1;var k=Number(N.getAttribute(i)||0);return I>=k});if(F.length)return Q.insertBefore(b,F[F.length-1].nextSibling),b}Q.insertBefore(b,D)}else Q.appendChild(b);return b}function f(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=A(C);return(C.styles||u(w)).find(function(B){return B.getAttribute(l(C))===y})}function h(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=f(y,C);if(w){var B=A(C);B.removeChild(w)}}function g(y,C){var w=s.get(y);if(!w||!(0,n.default)(document,w)){var B=d("",C),M=B.parentNode;s.set(y,M),y.removeChild(B)}}function p(){s.clear()}function E(y,C){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=A(w),M=u(B),I=(0,t.default)((0,t.default)({},w),{},{styles:M});g(B,I);var S=f(C,I);if(S){var R,b;if((R=I.csp)!==null&&R!==void 0&&R.nonce&&S.nonce!==((b=I.csp)===null||b===void 0?void 0:b.nonce)){var Q;S.nonce=(Q=I.csp)===null||Q===void 0?void 0:Q.nonce}return S.innerHTML!==y&&(S.innerHTML=y),S}var D=d(y,I);return D.setAttribute(l(I),C),D}return Hd}var Tte;function VL(){if(Tte)return Xi;Tte=1;var e=mr(),t=Xn();Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.generate=g,Xi.getSecondaryColor=p,Xi.iconStyles=void 0,Xi.isIconDefinition=f,Xi.normalizeAttrs=h,Xi.normalizeTwoToneColors=E,Xi.useInsertStyles=Xi.svgBaseProps=void 0,Xi.warning=d;var r=e(co()),n=e(Xn()),a=k1e,i=u(cr()),o=e(P1e()),s=KL(),l=e(GL()),A=e(nde());function c(C){if(typeof WeakMap!="function")return null;var w=new WeakMap,B=new WeakMap;return(c=function(I){return I?B:w})(C)}function u(C,w){if(C&&C.__esModule)return C;if(C===null||t(C)!="object"&&typeof C!="function")return{default:C};var B=c(w);if(B&&B.has(C))return B.get(C);var M={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in C)if(S!=="default"&&{}.hasOwnProperty.call(C,S)){var R=I?Object.getOwnPropertyDescriptor(C,S):null;R&&(R.get||R.set)?Object.defineProperty(M,S,R):M[S]=C[S]}return M.default=C,B&&B.set(C,M),M}function d(C,w){(0,o.default)(C,"[@ant-design/icons] ".concat(w))}function f(C){return(0,n.default)(C)==="object"&&typeof C.name=="string"&&typeof C.theme=="string"&&((0,n.default)(C.icon)==="object"||typeof C.icon=="function")}function h(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(C).reduce(function(w,B){var M=C[B];switch(B){case"class":w.className=M,delete w.class;break;default:delete w[B],w[(0,A.default)(B)]=M}return w},{})}function g(C,w,B){return B?i.default.createElement(C.tag,(0,r.default)((0,r.default)({key:w},h(C.attrs)),B),(C.children||[]).map(function(M,I){return g(M,"".concat(w,"-").concat(C.tag,"-").concat(I))})):i.default.createElement(C.tag,(0,r.default)({key:w},h(C.attrs)),(C.children||[]).map(function(M,I){return g(M,"".concat(w,"-").concat(C.tag,"-").concat(I))}))}function p(C){return(0,a.generate)(C)[0]}function E(C){return C?Array.isArray(C)?C:[C]:[]}Xi.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var y=Xi.iconStyles=`
.anticon {
  display: inline-flex;
  alignItems: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`;return Xi.useInsertStyles=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y,B=(0,i.useContext)(l.default),M=B.csp;(0,i.useEffect)(function(){(0,s.updateCSS)(w,"@ant-design-icons",{prepend:!0,csp:M})},[])},Xi}var Qte;function O1e(){if(Qte)return AE;Qte=1;var e=mr();Object.defineProperty(AE,"__esModule",{value:!0}),AE.default=void 0;var t=e(yd()),r=e(co()),n=VL(),a=["icon","className","onClick","style","primaryColor","secondaryColor"],i={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function o(A){var c=A.primaryColor,u=A.secondaryColor;i.primaryColor=c,i.secondaryColor=u||(0,n.getSecondaryColor)(c),i.calculated=!!u}function s(){return(0,r.default)({},i)}var l=function(c){var u=c.icon,d=c.className,f=c.onClick,h=c.style,g=c.primaryColor,p=c.secondaryColor,E=(0,t.default)(c,a),y=i;if(g&&(y={primaryColor:g,secondaryColor:p||(0,n.getSecondaryColor)(g)}),(0,n.useInsertStyles)(),(0,n.warning)((0,n.isIconDefinition)(u),"icon should be icon definiton, but got ".concat(u)),!(0,n.isIconDefinition)(u))return null;var C=u;return C&&typeof C.icon=="function"&&(C=(0,r.default)((0,r.default)({},C),{},{icon:C.icon(y.primaryColor,y.secondaryColor)})),(0,n.generate)(C.icon,"svg-".concat(C.name),(0,r.default)({className:d,onClick:f,style:h,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},E))};return l.displayName="IconReact",l.getTwoToneColors=s,l.setTwoToneColors=o,AE.default=l,AE}var cE={},Dte;function Odt(){if(Dte)return cE;Dte=1;var e=mr();Object.defineProperty(cE,"__esModule",{value:!0}),cE.getTwoToneColor=i,cE.setTwoToneColor=a;var t=e(OA()),r=e(O1e()),n=VL();function a(o){var s=(0,n.normalizeTwoToneColors)(o),l=(0,t.default)(s,2),A=l[0],c=l[1];return r.default.setTwoToneColors({primaryColor:A,secondaryColor:c})}function i(){var o=r.default.getTwoToneColors();return o.calculated?[o.primaryColor,o.secondaryColor]:o.primaryColor}return cE}var Fte;function zA(){if(Fte)return sE;Fte=1;var e=mr(),t=Xn();Object.defineProperty(sE,"__esModule",{value:!0}),sE.default=void 0;var r=e(co()),n=e(OA()),a=e(Ua()),i=e(yd()),o=h(cr()),s=e(ni()),l=e(GL()),A=e(O1e()),c=Odt(),u=VL(),d=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];function f(p){if(typeof WeakMap!="function")return null;var E=new WeakMap,y=new WeakMap;return(f=function(w){return w?y:E})(p)}function h(p,E){if(p&&p.__esModule)return p;if(p===null||t(p)!="object"&&typeof p!="function")return{default:p};var y=f(E);if(y&&y.has(p))return y.get(p);var C={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in p)if(B!=="default"&&{}.hasOwnProperty.call(p,B)){var M=w?Object.getOwnPropertyDescriptor(p,B):null;M&&(M.get||M.set)?Object.defineProperty(C,B,M):C[B]=p[B]}return C.default=p,y&&y.set(p,C),C}(0,c.setTwoToneColor)("#1890ff");var g=o.forwardRef(function(p,E){var y=p.className,C=p.icon,w=p.spin,B=p.rotate,M=p.tabIndex,I=p.onClick,S=p.twoToneColor,R=(0,i.default)(p,d),b=o.useContext(l.default),Q=b.prefixCls,D=Q===void 0?"anticon":Q,F=b.rootClassName,N=(0,s.default)(F,D,(0,a.default)((0,a.default)({},"".concat(D,"-").concat(C.name),!!C.name),"".concat(D,"-spin"),!!w||C.name==="loading"),y),k=M;k===void 0&&I&&(k=-1);var O=B?{msTransform:"rotate(".concat(B,"deg)"),transform:"rotate(".concat(B,"deg)")}:void 0,P=(0,u.normalizeTwoToneColors)(S),z=(0,n.default)(P,2),j=z[0],V=z[1];return o.createElement("span",(0,r.default)((0,r.default)({role:"img","aria-label":C.name},R),{},{ref:E,tabIndex:k,onClick:I,className:N}),o.createElement(A.default,{icon:C,primaryColor:j,secondaryColor:V,style:O}))});return g.displayName="AntdIcon",g.getTwoToneColor=c.getTwoToneColor,g.setTwoToneColor=c.setTwoToneColor,sE.default=g,sE}var _te;function zdt(){if(_te)return oE;_te=1;var e=mr(),t=Xn();Object.defineProperty(oE,"__esModule",{value:!0}),oE.default=void 0;var r=e(co()),n=s(cr()),a=e(_dt()),i=e(zA());function o(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(c)}function s(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!="object"&&typeof c!="function")return{default:c};var d=o(u);if(d&&d.has(c))return d.get(c);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&{}.hasOwnProperty.call(c,g)){var p=h?Object.getOwnPropertyDescriptor(c,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=c[g]}return f.default=c,d&&d.set(c,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},A=n.forwardRef(l);return oE.default=A,oE}var Nte;function z1e(){return Nte||(Nte=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(zdt());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a}(Vw,Vw.exports)),Vw.exports}const jdt=Un(qXe);var x4={},I4={},qw={},kte;function r2(){if(kte)return qw;kte=1,Object.defineProperty(qw,"__esModule",{value:!0}),qw.default=e;function e(t,r){var n=Object.assign({},t);return Array.isArray(r)&&r.forEach(function(a){delete n[a]}),n}return qw}var b4={},Zw={},Pte;function j1e(){if(Pte)return Zw;Pte=1;var e=Gn().default;Object.defineProperty(Zw,"__esModule",{value:!0}),Zw.default=r;var t=e(cr());function r(n,a,i){var o=t.useRef({});return(!("value"in o.current)||i(o.current.condition,a))&&(o.current.value=n(),o.current.condition=a),o.current.value}return Zw}var uE={},S4={exports:{}},R4={exports:{}},Ote;function Ydt(){return Ote||(Ote=1,function(e){var t=_1e();function r(n){if(Array.isArray(n))return t(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(R4)),R4.exports}var T4={exports:{}},zte;function Y1e(){return zte||(zte=1,function(e){function t(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(T4)),T4.exports}var Q4={exports:{}},jte;function Ldt(){return jte||(jte=1,function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Q4)),Q4.exports}var Yte;function n2(){return Yte||(Yte=1,function(e){var t=Ydt(),r=Y1e(),n=HL(),a=Ldt();function i(o){return t(o)||r(o)||n(o)||a()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(S4)),S4.exports}var D4={exports:{}},Lte;function Udt(){return Lte||(Lte=1,function(e){var t=F1e(),r=Y1e(),n=HL(),a=N1e();function i(o){return t(o)||r(o)||n(o)||a()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(D4)),D4.exports}var $w={},Ute;function Hdt(){if(Ute)return $w;Ute=1,Object.defineProperty($w,"__esModule",{value:!0}),$w.default=e;function e(t,r){for(var n=t,a=0;a<r.length;a+=1){if(n==null)return;n=n[r[a]]}return n}return $w}var Hte;function Gdt(){if(Hte)return uE;Hte=1;var e=mr().default;Object.defineProperty(uE,"__esModule",{value:!0}),uE.default=s,uE.merge=u;var t=e(Xn()),r=e(co()),n=e(n2()),a=e(Udt()),i=e(Hdt());function o(d,f,h,g){if(!f.length)return h;var p=(0,a.default)(f),E=p[0],y=p.slice(1),C;return!d&&typeof E=="number"?C=[]:Array.isArray(d)?C=(0,n.default)(d):C=(0,r.default)({},d),g&&h===void 0&&y.length===1?delete C[E][y[0]]:C[E]=o(C[E],y,h,g),C}function s(d,f,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return f.length&&g&&h===void 0&&!(0,i.default)(d,f.slice(0,-1))?d:o(d,f,h,g)}function l(d){return(0,t.default)(d)==="object"&&d!==null&&Object.getPrototypeOf(d)===Object.prototype}function A(d){return Array.isArray(d)?[]:{}}var c=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function u(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];var g=A(f[0]);return f.forEach(function(p){function E(y,C){var w=new Set(C),B=(0,i.default)(p,y),M=Array.isArray(B);if(M||l(B)){if(!w.has(B)){w.add(B);var I=(0,i.default)(g,y);M?g=s(g,y,[]):(!I||(0,t.default)(I)!=="object")&&(g=s(g,y,A(B))),c(B).forEach(function(S){E([].concat((0,n.default)(y),[S]),w)})}}else g=s(g,y,B)}E([])}),g}return uE}var F4={},Gte;function Kdt(){return Gte||(Gte=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=cr();e.default=(0,t.createContext)(void 0)}(F4)),F4}var _4={},N4={},Kte;function _h(){return Kte||(Kte=1,function(e){var t=Gn().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.noop=n,Object.defineProperty(e,"resetWarned",{enumerable:!0,get:function(){return r.resetWarned}});var r=t(P1e());function n(){}var a=n;e.default=a}(N4)),N4}var dE={},k4={},fE={},Vte;function Vdt(){if(Vte)return fE;Vte=1,Object.defineProperty(fE,"__esModule",{value:!0}),fE.default=void 0;var e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};return fE.default=e,fE}var P4={},O4={},hE={},Jte;function Jdt(){if(Jte)return hE;Jte=1,Object.defineProperty(hE,"__esModule",{value:!0}),hE.default=void 0;var e={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},t=e;return hE.default=t,hE}var z4={},Wte;function L1e(){return Wte||(Wte=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};e.default=t}(z4)),z4}var Xte;function U1e(){return Xte||(Xte=1,function(e){var t=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Kn()),n=t(Jdt()),a=t(L1e()),i={lang:(0,r.default)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},n.default),timePickerLocale:(0,r.default)({},a.default)};e.default=i}(O4)),O4}var qte;function Wdt(){return qte||(qte=1,function(e){var t=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(U1e());e.default=r.default}(P4)),P4}var Zte;function JL(){return Zte||(Zte=1,function(e){var t=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Vdt()),n=t(Wdt()),a=t(U1e()),i=t(L1e()),o="${label} is not a valid ${type}",s={locale:"en",Pagination:r.default,DatePicker:a.default,TimePicker:i.default,Calendar:n.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};e.default=s}(k4)),k4}var $te;function H1e(){if($te)return dE;$te=1;var e=mr().default;Object.defineProperty(dE,"__esModule",{value:!0}),dE.changeConfirmLocale=a,dE.getConfirmLocale=i;var t=e(Kn()),r=e(JL()),n=(0,t.default)({},r.default.Modal);function a(o){o?n=(0,t.default)((0,t.default)({},n),o):n=(0,t.default)({},r.default.Modal)}function i(){return n}return dE}var j4={},ere;function G1e(){return ere||(ere=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=cr(),r=(0,t.createContext)(void 0);e.default=r}(j4)),j4}var tre;function Xdt(){return tre||(tre=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0;var n=r(Kn()),a=t(cr());r(_h());var i=H1e(),o=r(G1e());e.ANT_MARK="internalMark";var s=function(A){var c=A.locale,u=c===void 0?{}:c,d=A.children;A._ANT_MARK__,a.useEffect(function(){return(0,i.changeConfirmLocale)(u&&u.Modal),function(){(0,i.changeConfirmLocale)()}},[u]);var f=a.useMemo(function(){return(0,n.default)((0,n.default)({},u),{exist:!0})},[u]);return a.createElement(o.default.Provider,{value:f},d)};e.default=s}(_4)),_4}var Y4={},L4={},rre;function qdt(){return rre||(rre=1,function(e){var t=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(JL());e.default=r.default}(L4)),L4}var nre;function K1e(){return nre||(nre=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.useLocaleReceiver=e.default=void 0;var n=r(Kn()),a=t(cr()),i=r(G1e()),o=r(qdt()),s=function(A){var c=A.componentName,u=c===void 0?"global":c,d=A.defaultLocale,f=A.children,h=a.useContext(i.default),g=a.useMemo(function(){var E,y=d||o.default[u],C=(E=h==null?void 0:h[u])!==null&&E!==void 0?E:{};return(0,n.default)((0,n.default)({},y instanceof Function?y():y),C||{})},[u,d,h]),p=a.useMemo(function(){var E=h&&h.locale;return h&&h.exist&&!E?o.default.locale:E},[h]);return f(g,p,h)};e.default=s,e.useLocaleReceiver=function(A,c){var u=a.useContext(i.default),d=a.useMemo(function(){var f,h=c||o.default[A],g=(f=u==null?void 0:u[A])!==null&&f!==void 0?f:{};return(0,n.default)((0,n.default)({},typeof h=="function"?h():h),g||{})},[A,c,u]);return[d]}}(Y4)),Y4}var U4={},eB={exports:{}},gE={},tB={},are;function Zdt(){if(are)return tB;are=1,Object.defineProperty(tB,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};return tB.default=e,tB}var ire;function $dt(){if(ire)return gE;ire=1;var e=mr(),t=Xn();Object.defineProperty(gE,"__esModule",{value:!0}),gE.default=void 0;var r=e(co()),n=s(cr()),a=e(Zdt()),i=e(zA());function o(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(c)}function s(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!="object"&&typeof c!="function")return{default:c};var d=o(u);if(d&&d.has(c))return d.get(c);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&{}.hasOwnProperty.call(c,g)){var p=h?Object.getOwnPropertyDescriptor(c,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=c[g]}return f.default=c,d&&d.set(c,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},A=n.forwardRef(l);return gE.default=A,gE}var ore;function eft(){return ore||(ore=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n($dt());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a}(eB,eB.exports)),eB.exports}var rB={exports:{}},pE={},nB={},sre;function tft(){if(sre)return nB;sre=1,Object.defineProperty(nB,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};return nB.default=e,nB}var lre;function rft(){if(lre)return pE;lre=1;var e=mr(),t=Xn();Object.defineProperty(pE,"__esModule",{value:!0}),pE.default=void 0;var r=e(co()),n=s(cr()),a=e(tft()),i=e(zA());function o(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(c)}function s(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!="object"&&typeof c!="function")return{default:c};var d=o(u);if(d&&d.has(c))return d.get(c);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&{}.hasOwnProperty.call(c,g)){var p=h?Object.getOwnPropertyDescriptor(c,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=c[g]}return f.default=c,d&&d.set(c,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},A=n.forwardRef(l);return pE.default=A,pE}var Are;function WL(){return Are||(Are=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(rft());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a}(rB,rB.exports)),rB.exports}var aB={exports:{}},vE={},iB={},cre;function nft(){if(cre)return iB;cre=1,Object.defineProperty(iB,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};return iB.default=e,iB}var ure;function aft(){if(ure)return vE;ure=1;var e=mr(),t=Xn();Object.defineProperty(vE,"__esModule",{value:!0}),vE.default=void 0;var r=e(co()),n=s(cr()),a=e(nft()),i=e(zA());function o(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(c)}function s(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!="object"&&typeof c!="function")return{default:c};var d=o(u);if(d&&d.has(c))return d.get(c);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&{}.hasOwnProperty.call(c,g)){var p=h?Object.getOwnPropertyDescriptor(c,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=c[g]}return f.default=c,d&&d.set(c,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},A=n.forwardRef(l);return vE.default=A,vE}var dre;function ift(){return dre||(dre=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(aft());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a}(aB,aB.exports)),aB.exports}var oB={exports:{}},mE={},sB={},fre;function oft(){if(fre)return sB;fre=1,Object.defineProperty(sB,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};return sB.default=e,sB}var hre;function sft(){if(hre)return mE;hre=1;var e=mr(),t=Xn();Object.defineProperty(mE,"__esModule",{value:!0}),mE.default=void 0;var r=e(co()),n=s(cr()),a=e(oft()),i=e(zA());function o(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(c)}function s(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!="object"&&typeof c!="function")return{default:c};var d=o(u);if(d&&d.has(c))return d.get(c);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&{}.hasOwnProperty.call(c,g)){var p=h?Object.getOwnPropertyDescriptor(c,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=c[g]}return f.default=c,d&&d.set(c,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},A=n.forwardRef(l);return mE.default=A,mE}var gre;function lft(){return gre||(gre=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(sft());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a}(oB,oB.exports)),oB.exports}var lB={exports:{}},EE={},AB={},pre;function Aft(){if(pre)return AB;pre=1,Object.defineProperty(AB,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};return AB.default=e,AB}var vre;function cft(){if(vre)return EE;vre=1;var e=mr(),t=Xn();Object.defineProperty(EE,"__esModule",{value:!0}),EE.default=void 0;var r=e(co()),n=s(cr()),a=e(Aft()),i=e(zA());function o(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(c)}function s(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!="object"&&typeof c!="function")return{default:c};var d=o(u);if(d&&d.has(c))return d.get(c);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&{}.hasOwnProperty.call(c,g)){var p=h?Object.getOwnPropertyDescriptor(c,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=c[g]}return f.default=c,d&&d.set(c,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},A=n.forwardRef(l);return EE.default=A,EE}var mre;function V1e(){return mre||(mre=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(cft());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a}(lB,lB.exports)),lB.exports}const J1e=Un(JYe);var H4={},cB={},yE={},G4={exports:{}},Ere;function jl(){return Ere||(Ere=1,function(e){function t(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(G4)),G4.exports}var K4={exports:{}},yre;function jA(){return yre||(yre=1,function(e){var t=D1e();function r(a,i){for(var o=0;o<i.length;o++){var s=i[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,t(s.key),s)}}function n(a,i,o){return i&&r(a.prototype,i),o&&r(a,o),Object.defineProperty(a,"prototype",{writable:!1}),a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(K4)),K4.exports}var V4={exports:{}},J4={exports:{}},Cre;function uft(){return Cre||(Cre=1,function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(J4)),J4.exports}var wre;function YA(){return wre||(wre=1,function(e){var t=uft();function r(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),a&&t(n,a)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(V4)),V4.exports}var W4={exports:{}},X4={exports:{}},Bre;function LA(){return Bre||(Bre=1,function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(X4)),X4.exports}var q4={exports:{}},Mre;function XL(){return Mre||(Mre=1,function(e){function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e.exports=t=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(q4)),q4.exports}var Z4={exports:{}},$4={exports:{}},xre;function Cd(){return xre||(xre=1,function(e){function t(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($4)),$4.exports}var Ire;function UA(){return Ire||(Ire=1,function(e){var t=Xn().default,r=Cd();function n(a,i){if(i&&(t(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(a)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Z4)),Z4.exports}var bre;function dft(){return bre||(bre=1,function(e){var t=LA(),r=XL(),n=UA();function a(i){var o=r();return function(){var s,l=t(i);if(o){var A=t(this).constructor;s=Reflect.construct(l,arguments,A)}else s=l.apply(this,arguments);return n(this,s)}}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}(W4)),W4.exports}var Sre;function fft(){if(Sre)return yE;Sre=1;var e=mr(),t=Xn();Object.defineProperty(yE,"__esModule",{value:!0}),yE.default=void 0;var r=e(Kn()),n=e(Ua()),a=e(jl()),i=e(jA()),o=e(YA()),s=e(dft()),l=d(cr()),A=e(j3()),c=e(ni());function u(h){if(typeof WeakMap!="function")return null;var g=new WeakMap,p=new WeakMap;return(u=function(y){return y?p:g})(h)}function d(h,g){if(h&&h.__esModule)return h;if(h===null||t(h)!=="object"&&typeof h!="function")return{default:h};var p=u(g);if(p&&p.has(h))return p.get(h);var E={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in h)if(C!=="default"&&Object.prototype.hasOwnProperty.call(h,C)){var w=y?Object.getOwnPropertyDescriptor(h,C):null;w&&(w.get||w.set)?Object.defineProperty(E,C,w):E[C]=h[C]}return E.default=h,p&&p.set(h,E),E}var f=function(h){(0,o.default)(p,h);var g=(0,s.default)(p);function p(){var E;(0,a.default)(this,p);for(var y=arguments.length,C=new Array(y),w=0;w<y;w++)C[w]=arguments[w];return E=g.call.apply(g,[this].concat(C)),E.closeTimer=null,E.close=function(B){B&&B.stopPropagation(),E.clearCloseTimer();var M=E.props,I=M.onClose,S=M.noticeKey;I&&I(S)},E.startCloseTimer=function(){E.props.duration&&(E.closeTimer=window.setTimeout(function(){E.close()},E.props.duration*1e3))},E.clearCloseTimer=function(){E.closeTimer&&(clearTimeout(E.closeTimer),E.closeTimer=null)},E}return(0,i.default)(p,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(y){(this.props.duration!==y.duration||this.props.updateMark!==y.updateMark||this.props.visible!==y.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var y=this,C=this.props,w=C.prefixCls,B=C.className,M=C.closable,I=C.closeIcon,S=C.style,R=C.onClick,b=C.children,Q=C.holder,D="".concat(w,"-notice"),F=Object.keys(this.props).reduce(function(k,O){return(O.substr(0,5)==="data-"||O.substr(0,5)==="aria-"||O==="role")&&(k[O]=y.props[O]),k},{}),N=l.createElement("div",(0,r.default)({className:(0,c.default)(D,B,(0,n.default)({},"".concat(D,"-closable"),M)),style:S,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:R},F),l.createElement("div",{className:"".concat(D,"-content")},b),M?l.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(D,"-close")},I||l.createElement("span",{className:"".concat(D,"-close-x")})):null);return Q?A.default.createPortal(N,Q):N}}]),p}(l.Component);return yE.default=f,f.defaultProps={onClose:function(){},duration:1.5},yE}var Rre;function W1e(){if(Rre)return cB;Rre=1;var e=mr(),t=Xn();Object.defineProperty(cB,"__esModule",{value:!0}),cB.default=A;var r=e(n2()),n=e(Kn()),a=e(OA()),i=l(cr()),o=e(fft());function s(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(s=function(h){return h?d:u})(c)}function l(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!=="object"&&typeof c!="function")return{default:c};var d=s(u);if(d&&d.has(c))return d.get(c);var f={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&Object.prototype.hasOwnProperty.call(c,g)){var p=h?Object.getOwnPropertyDescriptor(c,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=c[g]}return f.default=c,d&&d.set(c,f),f}function A(c){var u=i.useRef({}),d=i.useState([]),f=(0,a.default)(d,2),h=f[0],g=f[1];function p(E){var y=!0;c.add(E,function(C,w){var B=w.key;if(C&&(!u.current[B]||y)){var M=i.createElement(o.default,(0,n.default)({},w,{holder:C}));u.current[B]=M,g(function(I){var S=I.findIndex(function(b){return b.key===w.key});if(S===-1)return[].concat((0,r.default)(I),[M]);var R=(0,r.default)(I);return R[S]=M,R})}y=!1})}return[p,i.createElement(i.Fragment,null,h)]}return cB}var Tre;function hft(){return Tre||(Tre=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=A;var n=r(Kn()),a=r(OA()),i=r(W1e()),o=t(cr()),s=X1e(),l=us();function A(c,u){var d=function(){var h,g,p=null,E={add:function(R,b){p==null||p.component.add(R,b)}},y=(0,i.default)(E),C=(0,a.default)(y,2),w=C[0],B=C[1];function M(S){var R=S.prefixCls,b=h("message",R),Q=h(),D=S.key||(0,s.getKeyThenIncreaseKey)(),F=new Promise(function(k){var O=function(){return typeof S.onClose=="function"&&S.onClose(),k(!0)};c((0,n.default)((0,n.default)({},S),{prefixCls:b,rootPrefixCls:Q,getPopupContainer:g}),function(P){var z=P.prefixCls,j=P.instance;p=j,w(u((0,n.default)((0,n.default)({},S),{key:D,onClose:O}),z))})}),N=function(){p&&p.removeNotice(D)};return N.then=function(k,O){return F.then(k,O)},N.promise=F,N}var I=o.useRef({});return I.current.open=M,s.typeList.forEach(function(S){return(0,s.attachTypeApi)(I.current,S)}),[I.current,o.createElement(l.ConfigConsumer,{key:"holder"},function(S){return h=S.getPrefixCls,g=S.getPopupContainer,B})]};return d}}(H4)),H4}var Qre;function X1e(){return Qre||(Qre=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.attachTypeApi=z,e.getInstance=e.default=void 0,e.getKeyThenIncreaseKey=R,e.typeList=void 0;var n=r(Kn()),a=r(Ua()),i=r(eft()),o=r(WL()),s=r(ift()),l=r(lft()),A=r(V1e()),c=r(ni()),u=r(J1e),d=t(cr()),f=t(us()),h=r(hft()),g,p=3,E,y=1,C="",w="move-up",B=!1,M,I,S=!1;function R(){return y++}function b(j){j.top!==void 0&&(E=j.top,g=null),j.duration!==void 0&&(p=j.duration),j.prefixCls!==void 0&&(C=j.prefixCls),j.getContainer!==void 0&&(M=j.getContainer,g=null),j.transitionName!==void 0&&(w=j.transitionName,g=null,B=!0),j.maxCount!==void 0&&(I=j.maxCount,g=null),j.rtl!==void 0&&(S=j.rtl)}function Q(j,V){var L=j.prefixCls,K=j.getPopupContainer,J=(0,f.globalConfig)(),Y=J.getPrefixCls,W=J.getRootPrefixCls,q=J.getIconPrefixCls,ee=Y("message",L||C),ae=W(j.rootPrefixCls,ee),ne=q();if(g){V({prefixCls:ee,rootPrefixCls:ae,iconPrefixCls:ne,instance:g});return}var ce={prefixCls:ee,transitionName:B?w:"".concat(ae,"-").concat(w),style:{top:E},getContainer:M||K,maxCount:I};u.default.newInstance(ce,function(ue){if(g){V({prefixCls:ee,rootPrefixCls:ae,iconPrefixCls:ne,instance:g});return}g=ue,V({prefixCls:ee,rootPrefixCls:ae,iconPrefixCls:ne,instance:ue})})}var D={info:l.default,success:i.default,error:o.default,warning:s.default,loading:A.default},F=e.typeList=Object.keys(D);function N(j,V,L){var K=j.duration!==void 0?j.duration:p,J=D[j.type],Y=(0,c.default)("".concat(V,"-custom-content"),(0,a.default)((0,a.default)({},"".concat(V,"-").concat(j.type),j.type),"".concat(V,"-rtl"),S===!0));return{key:j.key,duration:K,style:j.style||{},className:j.className,content:d.createElement(f.default,{iconPrefixCls:L},d.createElement("div",{className:Y},j.icon||J&&d.createElement(J,null),d.createElement("span",null,j.content))),onClose:j.onClose,onClick:j.onClick}}function k(j){var V=j.key||R(),L=new Promise(function(J){var Y=function(){return typeof j.onClose=="function"&&j.onClose(),J(!0)};Q(j,function(W){var q=W.prefixCls,ee=W.iconPrefixCls,ae=W.instance;ae.notice(N((0,n.default)((0,n.default)({},j),{key:V,onClose:Y}),q,ee))})}),K=function(){var Y;g&&(g.removeNotice(V),(Y=j.onClose)===null||Y===void 0||Y.call(j))};return K.then=function(J,Y){return L.then(J,Y)},K.promise=L,K}function O(j){return Object.prototype.toString.call(j)==="[object Object]"&&!!j.content}var P={open:k,config:b,destroy:function(V){if(g)if(V){var L=g,K=L.removeNotice;K(V)}else{var J=g,Y=J.destroy;Y(),g=null}}};function z(j,V){j[V]=function(L,K,J){return O(L)?j.open((0,n.default)((0,n.default)({},L),{type:V})):(typeof K=="function"&&(J=K,K=void 0),j.open({content:L,duration:K,type:V,onClose:J}))}}F.forEach(function(j){return z(P,j)}),P.warn=P.warning,P.useMessage=(0,h.default)(Q,N),e.getInstance=function(){return null},e.default=P}(U4)),U4}var eP={},tP={exports:{}},rP={exports:{}},Dre;function q1e(){return Dre||(Dre=1,function(e){function t(r,n){this.v=r,this.k=n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(rP)),rP.exports}var nP={exports:{}},aP={exports:{}},Fre;function Z1e(){return Fre||(Fre=1,function(e){function t(r,n,a,i){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}e.exports=t=function(l,A,c,u){if(A)o?o(l,A,{value:c,enumerable:!u,configurable:!u,writable:!u}):l[A]=c;else{var d=function(h,g){t(l,h,function(p){return this._invoke(h,g,p)})};d("next",0),d("throw",1),d("return",2)}},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,a,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(aP)),aP.exports}var _re;function $1e(){return _re||(_re=1,function(e){var t=Z1e();function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,a,i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function l(p,E,y,C){var w=E&&E.prototype instanceof c?E:c,B=Object.create(w.prototype);return t(B,"_invoke",function(M,I,S){var R,b,Q,D=0,F=S||[],N=!1,k={p:0,n:0,v:n,a:O,f:O.bind(n,4),d:function(z,j){return R=z,b=0,Q=n,k.n=j,A}};function O(P,z){for(b=P,Q=z,a=0;!N&&D&&!j&&a<F.length;a++){var j,V=F[a],L=k.p,K=V[2];P>3?(j=K===z)&&(Q=V[(b=V[4])?5:(b=3,3)],V[4]=V[5]=n):V[0]<=L&&((j=P<2&&L<V[1])?(b=0,k.v=z,k.n=V[1]):L<K&&(j=P<3||V[0]>z||z>K)&&(V[4]=P,V[5]=z,k.n=K,b=0))}if(j||P>1)return A;throw N=!0,z}return function(P,z,j){if(D>1)throw TypeError("Generator is already running");for(N&&z===1&&O(z,j),b=z,Q=j;(a=b<2?n:Q)||!N;){R||(b?b<3?(b>1&&(k.n=-1),O(b,Q)):k.n=Q:k.v=Q);try{if(D=2,R){if(b||(P="next"),a=R[P]){if(!(a=a.call(R,Q)))throw TypeError("iterator result is not an object");if(!a.done)return a;Q=a.value,b<2&&(b=0)}else b===1&&(a=R.return)&&a.call(R),b<2&&(Q=TypeError("The iterator does not provide a '"+P+"' method"),b=1);R=n}else if((a=(N=k.n<0)?Q:M.call(I,k))!==A)break}catch(V){R=n,b=1,Q=V}finally{D=1}}return{value:a,done:N}}}(p,y,C),!0),B}var A={};function c(){}function u(){}function d(){}a=Object.getPrototypeOf;var f=[][o]?a(a([][o]())):(t(a={},o,function(){return this}),a),h=d.prototype=c.prototype=Object.create(f);function g(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,d):(p.__proto__=d,t(p,s,"GeneratorFunction")),p.prototype=Object.create(h),p}return u.prototype=d,t(h,"constructor",d),t(d,"constructor",u),u.displayName="GeneratorFunction",t(d,s,"GeneratorFunction"),t(h),t(h,s,"Generator"),t(h,o,function(){return this}),t(h,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:l,m:g}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(nP)),nP.exports}var iP={exports:{}},oP={exports:{}},sP={exports:{}},Nre;function ewe(){return Nre||(Nre=1,function(e){var t=q1e(),r=Z1e();function n(a,i){function o(l,A,c,u){try{var d=a[l](A),f=d.value;return f instanceof t?i.resolve(f.v).then(function(h){o("next",h,c,u)},function(h){o("throw",h,c,u)}):i.resolve(f).then(function(h){d.value=h,c(d)},function(h){return o("throw",h,c,u)})}catch(h){u(h)}}var s;this.next||(r(n.prototype),r(n.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(l,A,c){function u(){return new i(function(d,f){o(l,c,d,f)})}return s=s?s.then(u,u):u()},!0)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(sP)),sP.exports}var kre;function twe(){return kre||(kre=1,function(e){var t=$1e(),r=ewe();function n(a,i,o,s,l){return new r(t().w(a,i,o,s),l||Promise)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(oP)),oP.exports}var Pre;function gft(){return Pre||(Pre=1,function(e){var t=twe();function r(n,a,i,o,s){var l=t(n,a,i,o,s);return l.next().then(function(A){return A.done?A.value:l.next()})}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(iP)),iP.exports}var lP={exports:{}},Ore;function pft(){return Ore||(Ore=1,function(e){function t(r){var n=Object(r),a=[];for(var i in n)a.unshift(i);return function o(){for(;a.length;)if((i=a.pop())in n)return o.value=i,o.done=!1,o;return o.done=!0,o}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(lP)),lP.exports}var AP={exports:{}},zre;function vft(){return zre||(zre=1,function(e){var t=Xn().default;function r(n){if(n!=null){var a=n[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],i=0;if(a)return a.call(n);if(typeof n.next=="function")return n;if(!isNaN(n.length))return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}}}throw new TypeError(t(n)+" is not iterable")}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(AP)),AP.exports}var jre;function mft(){return jre||(jre=1,function(e){var t=q1e(),r=$1e(),n=gft(),a=twe(),i=ewe(),o=pft(),s=vft();function l(){var A=r(),c=A.m(l),u=(Object.getPrototypeOf?Object.getPrototypeOf(c):c.__proto__).constructor;function d(g){var p=typeof g=="function"&&g.constructor;return!!p&&(p===u||(p.displayName||p.name)==="GeneratorFunction")}var f={throw:1,return:2,break:3,continue:3};function h(g){var p,E;return function(y){p||(p={stop:function(){return E(y.a,2)},catch:function(){return y.v},abrupt:function(w,B){return E(y.a,f[w],B)},delegateYield:function(w,B,M){return p.resultName=B,E(y.d,s(w),M)},finish:function(w){return E(y.f,w)}},E=function(w,B,M){y.p=p.prev,y.n=p.next;try{return w(B,M)}finally{p.next=y.n}}),p.resultName&&(p[p.resultName]=y.v,p.resultName=void 0),p.sent=y.v,p.next=y.n;try{return g.call(this,p)}finally{y.p=p.prev,y.n=p.next}}}return(e.exports=l=function(){return{wrap:function(E,y,C,w){return A.w(h(E),y,C,w&&w.reverse())},isGeneratorFunction:d,mark:A.m,awrap:function(E,y){return new t(E,y)},AsyncIterator:i,async:function(E,y,C,w,B){return(d(y)?a:n)(h(E),y,C,w,B)},keys:o,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports}(tP)),tP.exports}var uB={exports:{}},CE={},dB={},Yre;function Eft(){if(Yre)return dB;Yre=1,Object.defineProperty(dB,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};return dB.default=e,dB}var Lre;function yft(){if(Lre)return CE;Lre=1;var e=mr(),t=Xn();Object.defineProperty(CE,"__esModule",{value:!0}),CE.default=void 0;var r=e(co()),n=s(cr()),a=e(Eft()),i=e(zA());function o(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(c)}function s(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!="object"&&typeof c!="function")return{default:c};var d=o(u);if(d&&d.has(c))return d.get(c);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&{}.hasOwnProperty.call(c,g)){var p=h?Object.getOwnPropertyDescriptor(c,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=c[g]}return f.default=c,d&&d.set(c,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},A=n.forwardRef(l);return CE.default=A,CE}var Ure;function Cft(){return Ure||(Ure=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(yft());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a}(uB,uB.exports)),uB.exports}var fB={exports:{}},wE={},hB={},Hre;function wft(){if(Hre)return hB;Hre=1,Object.defineProperty(hB,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};return hB.default=e,hB}var Gre;function Bft(){if(Gre)return wE;Gre=1;var e=mr(),t=Xn();Object.defineProperty(wE,"__esModule",{value:!0}),wE.default=void 0;var r=e(co()),n=s(cr()),a=e(wft()),i=e(zA());function o(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(c)}function s(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!="object"&&typeof c!="function")return{default:c};var d=o(u);if(d&&d.has(c))return d.get(c);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&{}.hasOwnProperty.call(c,g)){var p=h?Object.getOwnPropertyDescriptor(c,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=c[g]}return f.default=c,d&&d.set(c,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},A=n.forwardRef(l);return wE.default=A,wE}var Kre;function Mft(){return Kre||(Kre=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Bft());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a}(fB,fB.exports)),fB.exports}var gB={exports:{}},BE={},pB={},Vre;function xft(){if(Vre)return pB;Vre=1,Object.defineProperty(pB,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};return pB.default=e,pB}var Jre;function Ift(){if(Jre)return BE;Jre=1;var e=mr(),t=Xn();Object.defineProperty(BE,"__esModule",{value:!0}),BE.default=void 0;var r=e(co()),n=s(cr()),a=e(xft()),i=e(zA());function o(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(c)}function s(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!="object"&&typeof c!="function")return{default:c};var d=o(u);if(d&&d.has(c))return d.get(c);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&{}.hasOwnProperty.call(c,g)){var p=h?Object.getOwnPropertyDescriptor(c,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=c[g]}return f.default=c,d&&d.set(c,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},A=n.forwardRef(l);return BE.default=A,BE}var Wre;function bft(){return Wre||(Wre=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Ift());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a}(gB,gB.exports)),gB.exports}var vB={exports:{}},ME={},mB={},Xre;function Sft(){if(Xre)return mB;Xre=1,Object.defineProperty(mB,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};return mB.default=e,mB}var qre;function Rft(){if(qre)return ME;qre=1;var e=mr(),t=Xn();Object.defineProperty(ME,"__esModule",{value:!0}),ME.default=void 0;var r=e(co()),n=s(cr()),a=e(Sft()),i=e(zA());function o(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(c)}function s(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!="object"&&typeof c!="function")return{default:c};var d=o(u);if(d&&d.has(c))return d.get(c);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&{}.hasOwnProperty.call(c,g)){var p=h?Object.getOwnPropertyDescriptor(c,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=c[g]}return f.default=c,d&&d.set(c,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},A=n.forwardRef(l);return ME.default=A,ME}var Zre;function Tft(){return Zre||(Zre=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Rft());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a}(vB,vB.exports)),vB.exports}var cP={},$re;function Qft(){return $re||($re=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var n=r(Kn()),a=r(OA()),i=r(W1e()),o=t(cr()),s=us();function l(A,c){var u=function(){var f,h=null,g={add:function(I,S){h==null||h.component.add(I,S)}},p=(0,i.default)(g),E=(0,a.default)(p,2),y=E[0],C=E[1];function w(M){var I=M.prefixCls,S=f("notification",I);A((0,n.default)((0,n.default)({},M),{prefixCls:S}),function(R){var b=R.prefixCls,Q=R.instance;h=Q,y(c(M,b))})}var B=o.useRef({});return B.current.open=w,["success","info","warning","error"].forEach(function(M){B.current[M]=function(I){return B.current.open((0,n.default)((0,n.default)({},I),{type:M}))}}),[B.current,o.createElement(s.ConfigConsumer,{key:"holder"},function(M){return f=M.getPrefixCls,C})]};return u}}(cP)),cP}var ene;function Dft(){return ene||(ene=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.getInstance=e.default=void 0;var n=r(mft()),a=r(Kn()),i=r(Ua()),o=r(Cft()),s=r(Mft()),l=r(z1e()),A=r(bft()),c=r(Tft()),u=r(ni()),d=r(J1e),f=t(cr()),h=t(us()),g=r(Qft()),p=function(z,j,V,L){function K(J){return J instanceof V?J:new V(function(Y){Y(J)})}return new(V||(V=Promise))(function(J,Y){function W(ae){try{ee(L.next(ae))}catch(ne){Y(ne)}}function q(ae){try{ee(L.throw(ae))}catch(ne){Y(ne)}}function ee(ae){ae.done?J(ae.value):K(ae.value).then(W,q)}ee((L=L.apply(z,[])).next())})},E={},y=4.5,C=24,w=24,B="",M="topRight",I,S,R=!1,b;function Q(z){var j=z.duration,V=z.placement,L=z.bottom,K=z.top,J=z.getContainer,Y=z.closeIcon,W=z.prefixCls;W!==void 0&&(B=W),j!==void 0&&(y=j),V!==void 0?M=V:z.rtl&&(M="topLeft"),L!==void 0&&(w=L),K!==void 0&&(C=K),J!==void 0&&(I=J),Y!==void 0&&(S=Y),z.rtl!==void 0&&(R=z.rtl),z.maxCount!==void 0&&(b=z.maxCount)}function D(z){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:w,L;switch(z){case"top":L={left:"50%",transform:"translateX(-50%)",right:"auto",top:j,bottom:"auto"};break;case"topLeft":L={left:0,top:j,bottom:"auto"};break;case"topRight":L={right:0,top:j,bottom:"auto"};break;case"bottom":L={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:V};break;case"bottomLeft":L={left:0,top:"auto",bottom:V};break;default:L={right:0,top:"auto",bottom:V};break}return L}function F(z,j){var V=z.placement,L=V===void 0?M:V,K=z.top,J=z.bottom,Y=z.getContainer,W=Y===void 0?I:Y,q=z.prefixCls,ee=(0,h.globalConfig)(),ae=ee.getPrefixCls,ne=ee.getIconPrefixCls,ce=ae("notification",q||B),ue=ne(),ge="".concat(ce,"-").concat(L),Se=E[ge];if(Se){Promise.resolve(Se).then(function(pe){j({prefixCls:"".concat(ce,"-notice"),iconPrefixCls:ue,instance:pe})});return}var ye=(0,u.default)("".concat(ce,"-").concat(L),(0,i.default)({},"".concat(ce,"-rtl"),R===!0));E[ge]=new Promise(function(pe){d.default.newInstance({prefixCls:ce,className:ye,style:D(L,K,J),getContainer:W,maxCount:b},function(Qe){pe(Qe),j({prefixCls:"".concat(ce,"-notice"),iconPrefixCls:ue,instance:Qe})})})}var N={success:o.default,info:c.default,error:s.default,warning:A.default};function k(z,j,V){var L=z.duration,K=z.icon,J=z.type,Y=z.description,W=z.message,q=z.btn,ee=z.onClose,ae=z.onClick,ne=z.key,ce=z.style,ue=z.className,ge=z.closeIcon,Se=ge===void 0?S:ge,ye=z.props,pe=L===void 0?y:L,Qe=null;K?Qe=f.createElement("span",{className:"".concat(j,"-icon")},z.icon):J&&(Qe=f.createElement(N[J]||null,{className:"".concat(j,"-icon ").concat(j,"-icon-").concat(J)}));var Ue=typeof Se>"u"?f.createElement("span",{className:"".concat(j,"-close-x")},f.createElement(l.default,{className:"".concat(j,"-close-icon")})):Se,tt=!Y&&Qe?f.createElement("span",{className:"".concat(j,"-message-single-line-auto-margin")}):null;return{content:f.createElement(h.default,{iconPrefixCls:V},f.createElement("div",{className:Qe?"".concat(j,"-with-icon"):"",role:"alert"},Qe,f.createElement("div",{className:"".concat(j,"-message")},tt,W),f.createElement("div",{className:"".concat(j,"-description")},Y),q?f.createElement("span",{className:"".concat(j,"-btn")},q):null)),duration:pe,closable:!0,closeIcon:Ue,onClose:ee,onClick:ae,key:ne,style:ce||{},className:(0,u.default)(ue,(0,i.default)({},"".concat(j,"-").concat(J),!!J)),props:ye}}function O(z){F(z,function(j){var V=j.prefixCls,L=j.iconPrefixCls,K=j.instance;K.notice(k(z,V,L))})}var P={open:O,close:function(j){Object.keys(E).forEach(function(V){return Promise.resolve(E[V]).then(function(L){L.removeNotice(j)})})},config:Q,destroy:function(){Object.keys(E).forEach(function(j){Promise.resolve(E[j]).then(function(V){V.destroy()}),delete E[j]})}};["success","info","warning","error"].forEach(function(z){P[z]=function(j){return P.open((0,a.default)((0,a.default)({},j),{type:z}))}}),P.warn=P.warning,P.useNotification=(0,g.default)(F,k),e.getInstance=function(j){return p(void 0,void 0,void 0,(0,n.default)().mark(function V(){return(0,n.default)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.abrupt("return",null);case 1:case"end":return K.stop()}},V)}))},e.default=P}(eP)),eP}var Au={},tne;function Fft(){if(tne)return Au;tne=1;var e=Gn().default,t=mr().default;Object.defineProperty(Au,"__esModule",{value:!0}),Au.ConfigContext=Au.ConfigConsumer=void 0,Au.withConfigConsumer=s;var r=t(Kn()),n=e(cr()),a=function(A,c){return c||(A?"ant-".concat(A):"ant")},i=Au.ConfigContext=n.createContext({getPrefixCls:a}),o=Au.ConfigConsumer=i.Consumer;function s(l){return function(c){var u=function(h){return n.createElement(o,null,function(g){var p=l.prefixCls,E=g.getPrefixCls,y=h.prefixCls,C=E(p,y);return n.createElement(c,(0,r.default)({},g,h,{prefixCls:C}))})},d=c.constructor;return d&&d.displayName||c.name,u}}return Au}var xE={};const _ft=Un(O2e);var rne;function Nft(){if(rne)return xE;rne=1;var e=mr().default;Object.defineProperty(xE,"__esModule",{value:!0}),xE.getStyle=o,xE.registerTheme=s;var t=k1e,r=_ft,n=e(OC()),a=KL();e(_h());var i="-ant-".concat(Date.now(),"-").concat(Math.random());function o(l,A){var c={},u=function(y,C){var w=y.clone();return w=(C==null?void 0:C(w))||w,w.toRgbString()},d=function(y,C){var w=new r.TinyColor(y),B=(0,t.generate)(w.toRgbString());c["".concat(C,"-color")]=u(w),c["".concat(C,"-color-disabled")]=B[1],c["".concat(C,"-color-hover")]=B[4],c["".concat(C,"-color-active")]=B[6],c["".concat(C,"-color-outline")]=w.clone().setAlpha(.2).toRgbString(),c["".concat(C,"-color-deprecated-bg")]=B[0],c["".concat(C,"-color-deprecated-border")]=B[2]};if(A.primaryColor){d(A.primaryColor,"primary");var f=new r.TinyColor(A.primaryColor),h=(0,t.generate)(f.toRgbString());h.forEach(function(E,y){c["primary-".concat(y+1)]=E}),c["primary-color-deprecated-l-35"]=u(f,function(E){return E.lighten(35)}),c["primary-color-deprecated-l-20"]=u(f,function(E){return E.lighten(20)}),c["primary-color-deprecated-t-20"]=u(f,function(E){return E.tint(20)}),c["primary-color-deprecated-t-50"]=u(f,function(E){return E.tint(50)}),c["primary-color-deprecated-f-12"]=u(f,function(E){return E.setAlpha(E.getAlpha()*.12)});var g=new r.TinyColor(h[0]);c["primary-color-active-deprecated-f-30"]=u(g,function(E){return E.setAlpha(E.getAlpha()*.3)}),c["primary-color-active-deprecated-d-02"]=u(g,function(E){return E.darken(2)})}A.successColor&&d(A.successColor,"success"),A.warningColor&&d(A.warningColor,"warning"),A.errorColor&&d(A.errorColor,"error"),A.infoColor&&d(A.infoColor,"info");var p=Object.keys(c).map(function(E){return"--".concat(l,"-").concat(E,": ").concat(c[E],";")});return`
  :root {
    `.concat(p.join(`
`),`
  }
  `).trim()}function s(l,A){var c=o(l,A);(0,n.default)()&&(0,a.updateCSS)(c,"".concat(i,"-dynamic-theme"))}return xE}var uP={},nne;function zC(){return nne||(nne=1,function(e){var t=Gn().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DisabledContextProvider=void 0;var r=t(cr()),n=r.createContext(!1);e.DisabledContextProvider=function(i){var o=i.children,s=i.disabled,l=r.useContext(n);return r.createElement(n.Provider,{value:s??l},o)},e.default=n}(uP)),uP}var dP={},ane;function a2(){return ane||(ane=1,function(e){var t=Gn().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SizeContextProvider=void 0;var r=t(cr()),n=r.createContext(void 0);e.SizeContextProvider=function(i){var o=i.children,s=i.size;return r.createElement(n.Consumer,null,function(l){return r.createElement(n.Provider,{value:s||l},o)})},e.default=n}(dP)),dP}var ine;function us(){return ine||(ine=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return h.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return h.ConfigContext}}),e.globalConfig=e.defaultPrefixCls=e.defaultIconPrefixCls=e.default=e.configConsumerProps=void 0;var n=r(Kn()),a=r(GL()),i=r(j1e()),o=t(cr()),s=Gdt(),l=r(Kdt()),A=t(Xdt()),c=r(K1e()),u=r(JL()),d=r(X1e()),f=r(Dft()),h=Fft(),g=Nft(),p=zC(),E=t(a2());e.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];var y=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"],C=e.defaultPrefixCls="ant",w=e.defaultIconPrefixCls="anticon",B,M;function I(){return B||C}function S(){return M||w}var R=function(F){var N=F.prefixCls,k=F.iconPrefixCls,O=F.theme;N!==void 0&&(B=N),k!==void 0&&(M=k),O&&(0,g.registerTheme)(I(),O)};e.globalConfig=function(){return{getPrefixCls:function(N,k){return k||(N?"".concat(I(),"-").concat(N):I())},getIconPrefixCls:S,getRootPrefixCls:function(N,k){return N||B||(k&&k.includes("-")?k.replace(/^(.*)-[^-]*$/,"$1"):I())}}};var b=function(F){var N=F.children,k=F.csp,O=F.autoInsertSpaceInButton,P=F.form,z=F.locale,j=F.componentSize,V=F.direction,L=F.space,K=F.virtual,J=F.dropdownMatchSelectWidth,Y=F.legacyLocale,W=F.parentContext,q=F.iconPrefixCls,ee=F.componentDisabled,ae=o.useCallback(function(ye,pe){var Qe=F.prefixCls;if(pe)return pe;var Ue=Qe||W.getPrefixCls("");return ye?"".concat(Ue,"-").concat(ye):Ue},[W.getPrefixCls,F.prefixCls]),ne=(0,n.default)((0,n.default)({},W),{csp:k,autoInsertSpaceInButton:O,locale:z||Y,direction:V,space:L,virtual:K,dropdownMatchSelectWidth:J,getPrefixCls:ae});y.forEach(function(ye){var pe=F[ye];pe&&(ne[ye]=pe)});var ce=(0,i.default)(function(){return ne},ne,function(ye,pe){var Qe=Object.keys(ye),Ue=Object.keys(pe);return Qe.length!==Ue.length||Qe.some(function(tt){return ye[tt]!==pe[tt]})}),ue=o.useMemo(function(){return{prefixCls:q,csp:k}},[q,k]),ge=N,Se=o.useMemo(function(){var ye,pe,Qe,Ue;return(0,s.merge)(((ye=u.default.Form)===null||ye===void 0?void 0:ye.defaultValidateMessages)||{},((Qe=(pe=ce.locale)===null||pe===void 0?void 0:pe.Form)===null||Qe===void 0?void 0:Qe.defaultValidateMessages)||{},((Ue=ce.form)===null||Ue===void 0?void 0:Ue.validateMessages)||{},(P==null?void 0:P.validateMessages)||{})},[ce,P==null?void 0:P.validateMessages]);return Object.keys(Se).length>0&&(ge=o.createElement(l.default.Provider,{value:Se},N)),z&&(ge=o.createElement(A.default,{locale:z,_ANT_MARK__:A.ANT_MARK},ge)),(q||k)&&(ge=o.createElement(a.default.Provider,{value:ue},ge)),j&&(ge=o.createElement(E.SizeContextProvider,{size:j},ge)),ee!==void 0&&(ge=o.createElement(p.DisabledContextProvider,{disabled:ee},ge)),o.createElement(h.ConfigContext.Provider,{value:ce},ge)},Q=function(F){return o.useEffect(function(){F.direction&&(d.default.config({rtl:F.direction==="rtl"}),f.default.config({rtl:F.direction==="rtl"}))},[F.direction]),o.createElement(c.default,null,function(N,k,O){return o.createElement(h.ConfigConsumer,null,function(P){return o.createElement(b,(0,n.default)({parentContext:P,legacyLocale:O},F))})})};Q.ConfigContext=h.ConfigContext,Q.SizeContext=E.default,Q.config=R,e.default=Q}(b4)),b4}var fP={},EB={},yB={},one;function rwe(){if(one)return yB;one=1;var e=mr().default;Object.defineProperty(yB,"__esModule",{value:!0}),yB.default=i;var t=e(Xn()),r=Symbol.for("react.element"),n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(o){return o&&(0,t.default)(o)==="object"&&(o.$$typeof===r||o.$$typeof===n)&&o.type===a}return yB}var sne;function kft(){if(sne)return EB;sne=1;var e=mr().default;Object.defineProperty(EB,"__esModule",{value:!0}),EB.default=n;var t=e(rwe()),r=e(cr());function n(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[];return r.default.Children.forEach(a,function(s){s==null&&!i.keepEmpty||(Array.isArray(s)?o=o.concat(n(s)):(0,t.default)(s)&&s.props?o=o.concat(n(s.props.children,i)):o.push(s))}),o}return EB}var lne;function qL(){return lne||(lne=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.useCompactItemContext=e.default=e.SpaceCompactItemContext=e.NoCompactStyle=void 0;var n=r(Kn()),a=r(Ua()),i=r(ni()),o=r(kft()),s=t(cr()),l=us(),A=function(f,h){var g={};for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&h.indexOf(p)<0&&(g[p]=f[p]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,p=Object.getOwnPropertySymbols(f);E<p.length;E++)h.indexOf(p[E])<0&&Object.prototype.propertyIsEnumerable.call(f,p[E])&&(g[p[E]]=f[p[E]]);return g},c=e.SpaceCompactItemContext=s.createContext(null);e.useCompactItemContext=function(h,g){var p=s.useContext(c),E=s.useMemo(function(){if(!p)return"";var y=p.compactDirection,C=p.isFirstItem,w=p.isLastItem,B=y==="vertical"?"-vertical-":"-";return(0,i.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)({},"".concat(h,"-compact").concat(B,"item"),!0),"".concat(h,"-compact").concat(B,"first-item"),C),"".concat(h,"-compact").concat(B,"last-item"),w),"".concat(h,"-compact").concat(B,"item-rtl"),g==="rtl"))},[h,g,p]);return{compactSize:p==null?void 0:p.compactSize,compactDirection:p==null?void 0:p.compactDirection,compactItemClassnames:E}},e.NoCompactStyle=function(h){var g=h.children;return s.createElement(c.Provider,{value:null},g)};var u=function(h){var g=h.children,p=A(h,["children"]);return s.createElement(c.Provider,{value:p},g)},d=function(h){var g=s.useContext(l.ConfigContext),p=g.getPrefixCls,E=g.direction,y=h.size,C=y===void 0?"middle":y,w=h.direction,B=h.block,M=h.prefixCls,I=h.className,S=h.children,R=A(h,["size","direction","block","prefixCls","className","children"]),b=p("space-compact",M),Q=(0,i.default)(b,(0,a.default)((0,a.default)((0,a.default)({},"".concat(b,"-rtl"),E==="rtl"),"".concat(b,"-block"),B),"".concat(b,"-vertical"),w==="vertical"),I),D=s.useContext(c),F=(0,o.default)(S),N=s.useMemo(function(){return F.map(function(k,O){var P=k&&k.key||"".concat(b,"-item-").concat(O);return s.createElement(u,{key:P,compactSize:C,compactDirection:w,isFirstItem:O===0&&(!D||(D==null?void 0:D.isFirstItem)),isLastItem:O===F.length-1&&(!D||(D==null?void 0:D.isLastItem))},k)})},[C,F,D]);return F.length===0?null:s.createElement("div",(0,n.default)({className:Q},R),N)};e.default=d}(fP)),fP}var cu={},Ane;function ZL(){if(Ane)return cu;Ane=1;var e=Gn().default;Object.defineProperty(cu,"__esModule",{value:!0}),cu.cloneElement=i,cu.isFragment=n,cu.isValidElement=void 0,cu.replaceElement=a;var t=e(cr()),r=cu.isValidElement=t.isValidElement;function n(o){return o&&r(o)&&o.type===t.Fragment}function a(o,s,l){return r(o)?t.cloneElement(o,typeof l=="function"?l(o.props||{}):l):s}function i(o,s){return a(o,o,s)}return cu}var Gd={},cne;function i2(){return cne||(cne=1,Object.defineProperty(Gd,"__esModule",{value:!0}),Gd.tupleNum=Gd.tuple=void 0,Gd.tuple=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r},Gd.tupleNum=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r}),Gd}var hP={},qi={},une;function nwe(){if(une)return qi;une=1;var e=mr().default;Object.defineProperty(qi,"__esModule",{value:!0}),qi.useComposeRef=qi.supportRef=qi.supportNodeRef=qi.getNodeRef=qi.fillRef=qi.composeRef=void 0;var t=e(Xn()),r=cr(),n=Vge(),a=e(j1e()),i=e(rwe()),o=Number(r.version.split(".")[0]),s=qi.fillRef=function(d,f){typeof d=="function"?d(f):(0,t.default)(d)==="object"&&d&&"current"in d&&(d.current=f)},l=qi.composeRef=function(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];var g=f.filter(Boolean);return g.length<=1?g[0]:function(p){f.forEach(function(E){s(E,p)})}};qi.useComposeRef=function(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];return(0,a.default)(function(){return l.apply(void 0,f)},f,function(g,p){return g.length!==p.length||g.every(function(E,y){return E!==p[y]})})};var A=qi.supportRef=function(d){var f,h;if(!d)return!1;if(c(d)&&o>=19)return!0;var g=(0,n.isMemo)(d)?d.type.type:d.type;return!(typeof g=="function"&&!((f=g.prototype)!==null&&f!==void 0&&f.render)&&g.$$typeof!==n.ForwardRef||typeof d=="function"&&!((h=d.prototype)!==null&&h!==void 0&&h.render)&&d.$$typeof!==n.ForwardRef)};function c(u){return(0,r.isValidElement)(u)&&!(0,i.default)(u)}return qi.supportNodeRef=function(d){return c(d)&&A(d)},qi.getNodeRef=function(d){if(d&&c(d)){var f=d;return f.props.propertyIsEnumerable("ref")?f.props.ref:f.ref}return null},qi}var gP={},IE={},dne;function Pft(){if(dne)return IE;dne=1,Object.defineProperty(IE,"__esModule",{value:!0}),IE.default=void 0;var e=function(s){return+setTimeout(s,16)},t=function(s){return clearTimeout(s)};typeof window<"u"&&"requestAnimationFrame"in window&&(e=function(s){return window.requestAnimationFrame(s)},t=function(s){return window.cancelAnimationFrame(s)});var r=0,n=new Map;function a(o){n.delete(o)}var i=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;r+=1;var A=r;function c(u){if(u===0)a(A),s();else{var d=e(function(){c(u-1)});n.set(A,d)}}return c(l),A};return i.cancel=function(o){var s=n.get(o);return a(o),t(s)},IE.default=i,IE}var fne;function Oft(){return fne||(fne=1,function(e){var t=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(Pft()),n=0,a={};function i(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=n++,A=s;function c(){A-=1,A<=0?(o(),delete a[l]):a[l]=(0,r.default)(c)}return a[l]=(0,r.default)(c),l}i.cancel=function(s){s!==void 0&&(r.default.cancel(a[s]),delete a[s])},i.ids=a}(gP)),gP}var hne;function zft(){return hne||(hne=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(jl()),a=r(jA()),i=r(UA()),o=r(XL()),s=r(LA()),l=r(Cd()),A=r(YA()),c=KL(),u=nwe(),d=t(cr()),f=us(),h=r(Oft()),g=ZL();function p(M,I,S){return I=(0,s.default)(I),(0,i.default)(M,(0,o.default)()?Reflect.construct(I,S||[],(0,s.default)(M).constructor):I.apply(M,S))}var E;function y(M){return!M||M.offsetParent===null||M.hidden}function C(M){return M instanceof Document?M.body:Array.from(M.childNodes).find(function(I){return(I==null?void 0:I.nodeType)===Node.ELEMENT_NODE})}function w(M){var I=(M||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return I&&I[1]&&I[2]&&I[3]?!(I[1]===I[2]&&I[2]===I[3]):!0}var B=function(M){(0,A.default)(I,M);function I(){var S;return(0,n.default)(this,I),S=p(this,I,arguments),S.containerRef=d.createRef(),S.animationStart=!1,S.destroyed=!1,S.onClick=function(R,b){var Q,D,F=S.props,N=F.insertExtraNode,k=F.disabled;if(!(k||!R||y(R)||R.className.includes("-leave"))){S.extraNode=document.createElement("div");var O=(0,l.default)(S),P=O.extraNode,z=S.context.getPrefixCls;P.className="".concat(z(""),"-click-animating-node");var j=S.getAttributeName();if(R.setAttribute(j,"true"),b&&b!=="#fff"&&b!=="#ffffff"&&b!=="rgb(255, 255, 255)"&&b!=="rgba(255, 255, 255, 1)"&&w(b)&&!/rgba\((?:\d*, ){3}0\)/.test(b)&&b!=="transparent"){P.style.borderColor=b;var V=((Q=R.getRootNode)===null||Q===void 0?void 0:Q.call(R))||R.ownerDocument,L=(D=C(V))!==null&&D!==void 0?D:V;E=(0,c.updateCSS)(`
      [`.concat(z(""),"-click-animating-without-extra-node='true']::after, .").concat(z(""),`-click-animating-node {
        --antd-wave-shadow-color: `).concat(b,`;
      }`),"antd-wave",{csp:S.csp,attachTo:L})}N&&R.appendChild(P),["transition","animation"].forEach(function(K){R.addEventListener("".concat(K,"start"),S.onTransitionStart),R.addEventListener("".concat(K,"end"),S.onTransitionEnd)})}},S.onTransitionStart=function(R){if(!S.destroyed){var b=S.containerRef.current;!R||R.target!==b||S.animationStart||S.resetEffect(b)}},S.onTransitionEnd=function(R){!R||R.animationName!=="fadeEffect"||S.resetEffect(R.target)},S.bindAnimationEvent=function(R){if(!(!R||!R.getAttribute||R.getAttribute("disabled")||R.className.includes("disabled"))){var b=function(D){if(!(D.target.tagName==="INPUT"||y(D.target))){S.resetEffect(R);var F=getComputedStyle(R).getPropertyValue("border-top-color")||getComputedStyle(R).getPropertyValue("border-color")||getComputedStyle(R).getPropertyValue("background-color");S.clickWaveTimeoutId=window.setTimeout(function(){return S.onClick(R,F)},0),h.default.cancel(S.animationStartId),S.animationStart=!0,S.animationStartId=(0,h.default)(function(){S.animationStart=!1},10)}};return R.addEventListener("click",b,!0),{cancel:function(){R.removeEventListener("click",b,!0)}}}},S.renderWave=function(R){var b=R.csp,Q=S.props.children;if(S.csp=b,!d.isValidElement(Q))return Q;var D=S.containerRef;return(0,u.supportRef)(Q)&&(D=(0,u.composeRef)(Q.ref,S.containerRef)),(0,g.cloneElement)(Q,{ref:D})},S}return(0,a.default)(I,[{key:"componentDidMount",value:function(){this.destroyed=!1;var R=this.containerRef.current;!R||R.nodeType!==1||(this.instance=this.bindAnimationEvent(R))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var R=this.context.getPrefixCls,b=this.props.insertExtraNode;return b?"".concat(R(""),"-click-animating"):"".concat(R(""),"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(R){var b=this;if(!(!R||R===this.extraNode||!(R instanceof Element))){var Q=this.props.insertExtraNode,D=this.getAttributeName();R.setAttribute(D,"false"),E&&(E.innerHTML=""),Q&&this.extraNode&&R.contains(this.extraNode)&&R.removeChild(this.extraNode),["transition","animation"].forEach(function(F){R.removeEventListener("".concat(F,"start"),b.onTransitionStart),R.removeEventListener("".concat(F,"end"),b.onTransitionEnd)})}}},{key:"render",value:function(){return d.createElement(f.ConfigConsumer,null,this.renderWave)}}]),I}(d.Component);B.contextType=f.ConfigContext,e.default=B}(hP)),hP}var pP={},gne;function jft(){return gne||(gne=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GroupSizeContext=void 0;var n=r(Kn()),a=r(Ua()),i=r(ni()),o=t(cr()),s=us();r(_h());var l=function(u,d){var f={};for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&d.indexOf(h)<0&&(f[h]=u[h]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,h=Object.getOwnPropertySymbols(u);g<h.length;g++)d.indexOf(h[g])<0&&Object.prototype.propertyIsEnumerable.call(u,h[g])&&(f[h[g]]=u[h[g]]);return f},A=e.GroupSizeContext=o.createContext(void 0),c=function(d){var f=o.useContext(s.ConfigContext),h=f.getPrefixCls,g=f.direction,p=d.prefixCls,E=d.size,y=d.className,C=l(d,["prefixCls","size","className"]),w=h("btn-group",p),B="";switch(E){case"large":B="lg";break;case"small":B="sm";break}var M=(0,i.default)(w,(0,a.default)((0,a.default)({},"".concat(w,"-").concat(B),B),"".concat(w,"-rtl"),g==="rtl"),y);return o.createElement(A.Provider,{value:E},o.createElement("div",(0,n.default)({},C,{className:M})))};e.default=c}(pP)),pP}var vP={};const Yft=Un(GYe);var pne;function Lft(){return pne||(pne=1,function(e){var t=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(V1e()),n=t(Yft),a=t(cr()),i=function(){return{width:0,opacity:0,transform:"scale(0)"}},o=function(A){return{width:A.scrollWidth,opacity:1,transform:"scale(1)"}},s=function(A){var c=A.prefixCls,u=A.loading,d=A.existIcon,f=!!u;return d?a.default.createElement("span",{className:"".concat(c,"-loading-icon")},a.default.createElement(r.default,null)):a.default.createElement(n.default,{visible:f,motionName:"".concat(c,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:i,onAppearActive:o,onEnterStart:i,onEnterActive:o,onLeaveStart:o,onLeaveActive:i},function(h,g){var p=h.className,E=h.style;return a.default.createElement("span",{className:"".concat(c,"-loading-icon"),style:E,ref:g},a.default.createElement(r.default,{className:p}))})};e.default=s}(vP)),vP}var vne;function awe(){return vne||(vne=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.convertLegacyProps=b,e.default=void 0;var n=r(Kn()),a=r(Ua()),i=r(OA()),o=r(Xn()),s=r(ni()),l=r(r2()),A=t(cr()),c=us(),u=r(zC()),d=r(a2()),f=qL(),h=ZL(),g=i2();r(_h());var p=r(zft()),E=t(jft()),y=r(Lft()),C=function(F,N){var k={};for(var O in F)Object.prototype.hasOwnProperty.call(F,O)&&N.indexOf(O)<0&&(k[O]=F[O]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,O=Object.getOwnPropertySymbols(F);P<O.length;P++)N.indexOf(O[P])<0&&Object.prototype.propertyIsEnumerable.call(F,O[P])&&(k[O[P]]=F[O[P]]);return k},w=/^[\u4e00-\u9fa5]{2}$/,B=w.test.bind(w);function M(F){return typeof F=="string"}function I(F){return F==="text"||F==="link"}function S(F,N){if(F!=null){var k=N?" ":"";return typeof F!="string"&&typeof F!="number"&&M(F.type)&&B(F.props.children)?(0,h.cloneElement)(F,{children:F.props.children.split("").join(k)}):typeof F=="string"?B(F)?A.createElement("span",null,F.split("").join(k)):A.createElement("span",null,F):(0,h.isFragment)(F)?A.createElement("span",null,F):F}}function R(F,N){var k=!1,O=[];return A.Children.forEach(F,function(P){var z=(0,o.default)(P),j=z==="string"||z==="number";if(k&&j){var V=O.length-1,L=O[V];O[V]="".concat(L).concat(P)}else O.push(P);k=j}),A.Children.map(O,function(P){return S(P,N)})}(0,g.tuple)("default","primary","ghost","dashed","link","text"),(0,g.tuple)("default","circle","round"),(0,g.tuple)("submit","button","reset");function b(F){return F==="danger"?{danger:!0}:{type:F}}var Q=function(N,k){var O,P=N.loading,z=P===void 0?!1:P,j=N.prefixCls,V=N.type,L=V===void 0?"default":V,K=N.danger,J=N.shape,Y=J===void 0?"default":J,W=N.size,q=N.disabled,ee=N.className,ae=N.children,ne=N.icon,ce=N.ghost,ue=ce===void 0?!1:ce,ge=N.block,Se=ge===void 0?!1:ge,ye=N.htmlType,pe=ye===void 0?"button":ye,Qe=C(N,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),Ue=A.useContext(d.default),tt=A.useContext(u.default),it=q??tt,we=A.useContext(E.GroupSizeContext),ve=A.useState(!!z),Te=(0,i.default)(ve,2),Be=Te[0],Ge=Te[1],ht=A.useState(!1),We=(0,i.default)(ht,2),Ke=We[0],Xe=We[1],$e=A.useContext(c.ConfigContext),pt=$e.getPrefixCls,de=$e.autoInsertSpaceInButton,Fe=$e.direction,je=k||A.createRef(),et=function(){return A.Children.count(ae)===1&&!ne&&!I(L)},xe=function(){if(!(!je||!je.current||de===!1)){var Qt=je.current.textContent;et()&&B(Qt)?Ke||Xe(!0):Ke&&Xe(!1)}},Ne=typeof z=="boolean"?z:(z==null?void 0:z.delay)||!0;A.useEffect(function(){var rt=null;return typeof Ne=="number"?rt=window.setTimeout(function(){rt=null,Ge(Ne)},Ne):Ge(Ne),function(){rt&&(window.clearTimeout(rt),rt=null)}},[Ne]),A.useEffect(xe,[je]);var le=function(Qt){var Dt=N.onClick;if(Be||it){Qt.preventDefault();return}Dt==null||Dt(Qt)},At=pt("btn",j),Bt=de!==!1,G=(0,f.useCompactItemContext)(At,Fe),Ee=G.compactSize,Ie=G.compactItemClassnames,ie={large:"lg",small:"sm",middle:void 0},re=Ee||we||W||Ue,he=re&&ie[re]||"",Pe=Be?"loading":ne,be=(0,l.default)(Qe,["navigate"]),Ve=(0,s.default)(At,(O={},(0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)(O,"".concat(At,"-").concat(Y),Y!=="default"&&Y),"".concat(At,"-").concat(L),L),"".concat(At,"-").concat(he),he),"".concat(At,"-icon-only"),!ae&&ae!==0&&!!Pe),"".concat(At,"-background-ghost"),ue&&!I(L)),"".concat(At,"-loading"),Be),"".concat(At,"-two-chinese-chars"),Ke&&Bt&&!Be),"".concat(At,"-block"),Se),"".concat(At,"-dangerous"),!!K),"".concat(At,"-rtl"),Fe==="rtl"),(0,a.default)(O,"".concat(At,"-disabled"),be.href!==void 0&&it)),Ie,ee),lt=ne&&!Be?ne:A.createElement(y.default,{existIcon:!!ne,prefixCls:At,loading:!!Be}),Ze=ae||ae===0?R(ae,et()&&Bt):null;if(be.href!==void 0)return A.createElement("a",(0,n.default)({},be,{className:Ve,onClick:le,ref:je}),lt,Ze);var Le=A.createElement("button",(0,n.default)({},Qe,{type:pe,className:Ve,onClick:le,disabled:it,ref:je}),lt,Ze);return I(L)?Le:A.createElement(p.default,{disabled:!!Be},Le)},D=A.forwardRef(Q);D.Group=E.default,D.__ANT_BUTTON=!0,e.default=D}(I4)),I4}var mne;function Uft(){return mne||(mne=1,function(e){var t=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(awe());e.default=r.default}(x4)),x4}var Zi={};const Hft=Un(w6e);var Ene;function jC(){if(Ene)return Zi;Ene=1;var e=Gn().default,t=mr().default;Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.NoStyleItemContext=Zi.NoFormStyle=Zi.FormProvider=Zi.FormItemPrefixContext=Zi.FormItemInputContext=Zi.FormContext=void 0;var r=t(Kn()),n=Hft,a=t(r2()),i=e(cr()),o=i;Zi.FormContext=o.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),Zi.NoStyleItemContext=o.createContext(null),Zi.FormProvider=function(A){var c=(0,a.default)(A,["prefixCls"]);return o.createElement(n.FormProvider,(0,r.default)({},c))},Zi.FormItemPrefixContext=o.createContext({prefixCls:""});var s=Zi.FormItemInputContext=o.createContext({});return Zi.NoFormStyle=function(A){var c=A.children,u=A.status,d=A.override,f=(0,i.useContext)(s),h=(0,i.useMemo)(function(){var g=(0,r.default)({},f);return d&&delete g.isFormItemInput,u&&(delete g.status,delete g.hasFeedback,delete g.feedbackIcon),g},[u,d,f]);return o.createElement(s.Provider,{value:h},c)},Zi}var mP={},yne;function Gft(){return yne||(yne=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getTransitionName=e.getTransitionDirection=e.default=void 0;var t=i2(),r=function(){return{height:0,opacity:0}},n=function(l){var A=l.scrollHeight;return{height:A,opacity:1}},a=function(l){return{height:l?l.offsetHeight:0}},i=function(l,A){return(A==null?void 0:A.deadline)===!0||A.propertyName==="height"},o={motionName:"ant-motion-collapse",onAppearStart:r,onEnterStart:r,onAppearActive:n,onEnterActive:n,onLeaveStart:a,onLeaveActive:r,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500};(0,t.tuple)("bottomLeft","bottomRight","topLeft","topRight"),e.getTransitionDirection=function(l){return l!==void 0&&(l==="topLeft"||l==="topRight")?"slide-down":"slide-up"},e.getTransitionName=function(l,A,c){return c!==void 0?c:"".concat(l,"-").concat(A)},e.default=o}(mP)),mP}var EP={},CB={},Cne;function Kft(){if(Cne)return CB;Cne=1;var e=mr().default;Object.defineProperty(CB,"__esModule",{value:!0}),CB.isStyleSupport=a;var t=e(OC()),r=function(o){if((0,t.default)()&&window.document.documentElement){var s=Array.isArray(o)?o:[o],l=window.document.documentElement;return s.some(function(A){return A in l.style})}return!1},n=function(o,s){if(!r(o))return!1;var l=document.createElement("div"),A=l.style[o];return l.style[o]=s,l.style[o]!==A};function a(i,o){return!Array.isArray(i)&&o!==void 0?n(i,o):r(i)}return CB}var wne;function Vft(){return wne||(wne=1,function(e){var t=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.detectFlexGapSupported=e.canUseDocElement=void 0,Object.defineProperty(e,"isStyleSupport",{enumerable:!0,get:function(){return n.isStyleSupport}});var r=t(OC()),n=Kft(),a=e.canUseDocElement=function(){return(0,r.default)()&&window.document.documentElement},i;e.detectFlexGapSupported=function(){if(!a())return!1;if(i!==void 0)return i;var s=document.createElement("div");return s.style.display="flex",s.style.flexDirection="column",s.style.rowGap="1px",s.appendChild(document.createElement("div")),s.appendChild(document.createElement("div")),document.body.appendChild(s),i=s.scrollHeight===1,document.body.removeChild(s),i}}(EP)),EP}var Bne;function Jft(){return Bne||(Bne=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(Ua()),a=r(Kn()),i=r(z1e()),o=r(ni()),s=r(jdt),l=t(cr()),A=r(Uft()),c=awe(),u=us(),d=jC(),f=r(K1e()),h=qL(),g=Gft(),p=Vft();r(_h());var E=H1e(),y=function(M,I){var S={};for(var R in M)Object.prototype.hasOwnProperty.call(M,R)&&I.indexOf(R)<0&&(S[R]=M[R]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,R=Object.getOwnPropertySymbols(M);b<R.length;b++)I.indexOf(R[b])<0&&Object.prototype.propertyIsEnumerable.call(M,R[b])&&(S[R[b]]=M[R[b]]);return S},C,w=function(I){C={x:I.pageX,y:I.pageY},setTimeout(function(){C=null},100)};(0,p.canUseDocElement)()&&document.documentElement.addEventListener("click",w,!0);var B=function(I){var S,R=l.useContext(u.ConfigContext),b=R.getPopupContainer,Q=R.getPrefixCls,D=R.direction,F=function(pe){var Qe=I.onCancel;Qe==null||Qe(pe)},N=function(pe){var Qe=I.onOk;Qe==null||Qe(pe)},k=I.prefixCls,O=I.footer,P=I.visible,z=I.open,j=z===void 0?!1:z,V=I.wrapClassName,L=I.centered,K=I.getContainer,J=I.closeIcon,Y=I.focusTriggerAfterClose,W=Y===void 0?!0:Y,q=I.width,ee=q===void 0?520:q,ae=y(I,["prefixCls","footer","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","width"]),ne=Q("modal",k),ce=Q(),ue=l.createElement(f.default,{componentName:"Modal",defaultLocale:(0,E.getConfirmLocale)()},function(ye){var pe=I.okText,Qe=I.okType,Ue=Qe===void 0?"primary":Qe,tt=I.cancelText,it=I.confirmLoading,we=it===void 0?!1:it;return l.createElement(l.Fragment,null,l.createElement(A.default,(0,a.default)({onClick:F},I.cancelButtonProps),tt||ye.cancelText),l.createElement(A.default,(0,a.default)({},(0,c.convertLegacyProps)(Ue),{loading:we,onClick:N},I.okButtonProps),pe??ye.okText))}),ge=l.createElement("span",{className:"".concat(ne,"-close-x")},J||l.createElement(i.default,{className:"".concat(ne,"-close-icon")})),Se=(0,o.default)(V,(0,n.default)((0,n.default)({},"".concat(ne,"-centered"),!!L),"".concat(ne,"-wrap-rtl"),D==="rtl"));return l.createElement(h.NoCompactStyle,null,l.createElement(d.NoFormStyle,{status:!0,override:!0},l.createElement(s.default,(0,a.default)({width:ee},ae,{getContainer:K===void 0?b:K,prefixCls:ne,wrapClassName:Se,footer:O===void 0?ue:O,visible:j||P,mousePosition:(S=ae.mousePosition)!==null&&S!==void 0?S:C,onClose:F,closeIcon:ge,focusTriggerAfterClose:W,transitionName:(0,g.getTransitionName)(ce,"zoom",I.transitionName),maskTransitionName:(0,g.getTransitionName)(ce,"fade",I.maskTransitionName)}))))};e.default=B}(l4)),l4}var Wft=Jft();const Xft=Nr(Wft),iwe=({showGenerateModal:e,selectedImportId:t,handleShowGenerateModal:r,module:n,generateImportMutation:a,importOptions:i,handleImportOptions:o,updateProgression:s})=>{const l=()=>{a.mutate({import_id:t,module:n,...i},{onSettled:(A,c)=>{c||A.returnType==="error"?s(2,!0):s(3)}}),r()};return v.jsxs(Xft,{open:e,title:"Options de génération",okText:"Lancer la génération",cancelText:"Annuler",onOk:l,onCancel:r,children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Générer contrôles expert"}),v.jsx(Rr,{checked:i.option_expert,onChange:A=>o(A.target.checked,"option_expert")})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Générer essentiels"}),v.jsx(Rr,{checked:i.option_essentiels,onChange:A=>o(A.target.checked,"option_essentiels")})]})})]})};iwe.propTypes={showGenerateModal:U.bool,handleShowGenerateModal:U.func,selectedImportId:U.string,module:U.string,importOptions:U.object,generateImportMutation:U.object,handleImportOptions:U.func,updateProgression:U.func};const Wv="pmsi",YC="pmsissr",LC="pmsihad",UC="pmsipsy",qft="iCTI_pmsi",Zft="iCTI_pmsissr",$ft="iCTI_pmsihad",eht="iCTI_pmsipsy",tht={[qft]:Wv,[Zft]:YC,[$ft]:LC,[eht]:UC},Mne={[Wv]:{title:"RSS",dataKey:"nb_rss"},[YC]:{title:"RHS",dataKey:"nb_rhs"},[UC]:{title:"RPS",dataKey:"nb_rps"},[LC]:{title:"RPSS",dataKey:"nb_rpss"}},xne={[Wv]:{title:"RUM",dataKey:"nb_rum"},[YC]:{title:"RHS Générés",dataKey:"nb_ref"},[UC]:{title:"RPA",dataKey:"nb_rpa"},[LC]:{title:"RAPSS",dataKey:"nb_rapss"}},rht=[{key:"ZIN",label:"RSS IN.ZIP"},{key:"ZOU",label:"RSS OUT.ZIP"},{key:"ZIF",label:"RSF IN.ZIP"},{key:"DRUIDE_OQN",label:"DRUIDE OQN"},{key:"DRUIDE_SEJ",label:"DRUIDE SEJOUR"},{key:"DRUIDE_ACE",label:"DRUIDE RSF ACE"},{key:"RSS",label:"RSS"},{key:"RSF",label:"RSF"},{key:"FCP",label:"FICHCOMP (ex DG)"},{key:"MED",label:"Médecins"},{key:"RSSMED",label:"RSS - Médecins"},{key:"RSSNOM",label:"RSS - Noms"},{key:"ACTMED",label:"Actes Médecins"},{key:"VSJ",label:"Valorisation séjours"},{key:"VSE",label:"Valorisation ACE"},{key:"TSP",label:"FICHSUP transports"}],nht=[{key:"ZIN",label:"RHS IN.ZIP"},{key:"ZOU",label:"RHS OUT.ZIP"},{key:"ZIF",label:"RSF IN.ZIP"},{key:"RHS",label:"RHS"},{key:"RSF",label:"RSF"},{key:"VAL",label:"VAL DMA.CSV"}],Ine=[{key:"ZIN",label:"RPSS IN.ZIP"},{key:"ZOU",label:"RPSS OUT.ZIP"},{key:"ZIF",label:"RSF IN.ZIP"},{key:"RPS",label:"RPSS"},{key:"RSF",label:"RSF"}],aht={[Wv]:rht,[YC]:nht,[LC]:Ine,[UC]:Ine},iht=[{title:"Nom",dataKey:"name"},{title:"Titre",dataKey:"title"},{title:"Démarré",dataKey:"start"},{title:"Terminé",dataKey:"end"},{title:"Statut",dataKey:"endStatus",width:50},{title:"Durée",dataKey:"duration"}],oht=iht.map(e=>({width:150,resizable:!0,key:e.dataKey,...e})),sht=(e,t,r)=>[{title:"",dataIndex:"action",key:"deleteImport",render:(n,a,i)=>v.jsx(nt,{shape:"circle",icon:v.jsx(Ba,{}),onClick:()=>r(a.fullname,t)})},{title:"Type",dataIndex:"type",key:"type",render:(n,a,i)=>{let o=e.find(s=>s.key===n);if(o)return o.label}},{title:"Mois",dataIndex:"mois",key:"month"},{title:"Fichier",dataIndex:"name",key:"file"},{title:"Date",dataIndex:"date",key:"date"},{title:"Taille",dataIndex:"size",key:"size"}],lht=e=>[{title:"N°",dataKey:"oid"},{title:"Texte",dataKey:"texte",width:200},{title:"Date import",dataKey:"date_import",width:100},{title:"Etat",dataKey:"etat",width:100,dataGetter:({rowData:t})=>{let r="";return t.etat==="G"?r="Généré":t.etat==="C"&&(r="Contrôlé"),t.etat_en_cours==="G"&&(r=r+" - Génération en cours"),t.traitement_a_faire==="G"&&(r=r+" - Génération en attente"),r}},{title:"Finess",dataKey:"finess",width:150},{title:"Date début",dataKey:"date_debut",width:100},{title:"Date fin",dataKey:"date_fin",width:100},{title:Mne[e].title,dataKey:Mne[e].dataKey},{title:xne[e].title,dataKey:xne[e].dataKey},{title:"RSF",dataKey:"nb_rsf"},{title:"Erreur(s)",dataKey:"nb_erreurs"},{title:"Avertissement(s)",dataKey:"nb_avertissements",width:150}],Aht=e=>lht(e).map(t=>({width:50,resizable:!0,key:t.dataKey,...t})),bne=e=>[{title:"N°",dataKey:"oid",width:50},{title:"Import dans CTI",dataKey:"date_text",dataGetter:({columns:t,column:r,columnIndex:n,rowData:a,rowIndex:i})=>e==="mco"?Nn(a.date_text,"YYYY/MM/DD").format("DD/MM/YYYY"):a.date},{title:"Traitement du fichier MAT2A/OVALIDE",dataKey:"mat2a_date_text",dataGetter:({rowData:t})=>e==="mco"?Nn(t.mat2a_date_text,"YYYY/MM/DD").format("DD/MM/YYYY"):t.mat2a_date},{title:"Année",dataKey:"mat2a_annee"},{title:"Mois",dataKey:"mat2a_mois"}],cht=[{title:"RSA Transmis",dataKey:"mat2a_rsa_transmis"},{title:"RSA traités",dataKey:"mat2a_rsa_traites"},{title:"RSA séances",dataKey:"mat2a_rsa_seances"},{title:"RSA 0 nuits",dataKey:"mat2a_rsa_0_nuits"},{title:"Montant base de remboursement",dataKey:"mat2a_rsa_prestations_base_remb",dataGetter:({rowData:e})=>new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(e.mat2a_rsa_prestations_base_remb)}],uht=[{title:"RHA",dataKey:"mat2a_rha"},{title:"Journées",dataKey:"mat2a_journees"},{title:"IVA",dataKey:"mat2a_iva"},{title:"Age moyen",dataKey:"mat2a_age_moyen"},{title:"% femmes",dataKey:"mat2a_pct_femmes"}],dht=e=>{let t=[];return e==="mco"?t=bne(e).concat(cht):t=bne(e).concat(uht),t.map(r=>({width:150,resizable:!0,key:r.dataKey,...r}))},owe=({jobsQueryData:e,isJobsQueryLoading:t,selectedJobId:r,handleSelectedJobId:n})=>v.jsx("div",{className:"import-jobs",children:v.jsx($r,{columns:oht,data:e,loading:t,selectedRowOid:r,handleSelectedRowOid:n})});owe.propTypes={jobsQueryData:U.array,isJobsQueryLoading:U.bool,selectedJobId:U.string,handleSelectedJobId:U.func};function $L(e){let t="";switch(e){case"mco":t="modules/pmsi/php/PMSI_getImportsMat2a.php";break;case"ssr":t="modules/pmsissr/php/PMSI_getImportsMat2a.php";break}return t}function fht(e){let t="";switch(e){case"mco":t="/modules/pmsi/php/PMSI_getFile_Mat2a.php?mat2a_import_id=";break;case"ssr":t="/modules/pmsissr/php/getFileMat2a.php?mat2a_import_id=";break}return t}function HC(e,t,r){return`modules/${e}/php/${e===Wv?r:t}`}function hht(e){let t;switch(e){case"./CTI_BASE_TablesManager.swf":t="modules/base/php/BASE_getTableRecords.php";break;case"./CTI_ECO_TablesManager.swf":t="modules/eco/php/httpService_tablesManager_getData.php";break;case"./CTI_ACTI_TablesManager.swf":t="modules/activite/php/ACTI_getTableRecords.php";break;case"./CTI_PMSI_TablesManager.swf":t="modules/pmsi/php/PMSI_getTableRecords.php";break;case"./CTI_RH_TablesManager.swf":t="modules/rh/php/httpService_tablesManager_getData.php";break;case"./CTI_PMSISSR_TablesManager.swf":t="modules/pmsissr/php/PMSISSR_getTableRecords.php";break;case"./CTI_COMPTA_TablesManager.swf":t="modules/compta/php/COMPTA_getTableRecords.php";break;case"./CTI_SSAE_TablesManager.swf":t="modules/ssae/php/SSAE_getTableRecords.php";break;case"./CTI_DPI_TablesManager.swf":t="modules/dpi/php/DPI_getTableRecords.php";break;case"./CTI_ACTI_ConsoManager.swf":t="modules/activite/php/httpService_ACTI_consoManager_getData.php";break}return t}function ght(e){let t;switch(e){case"./CTI_ACTI_TablesManager.swf":t="modules/activite/php/httpService_ACTI_tableManager_copyRef.php";break;case"./CTI_PMSI_TablesManager.swf":t="modules/pmsi/php/httpService_PMSI_tableManager_copyRef.php";break;case"./CTI_RH_TablesManager.swf":t="mmodules/rh/php/httpService_RH_tableManager_copyRef.php";break;case"./CTI_ACTI_ConsoManager.swf":t="modules/activite/php/httpService_ACTI_consoManager_setData.php";break}return t}function swe(e){let t;switch(e){case"./CTI_BASE_TablesManager.swf":t="modules/base/php/BASE_setTableRecord.php";break;case"./CTI_ECO_TablesManager.swf":t="modules/eco/php/httpService_tablesManager_setData.php";break;case"./CTI_ACTI_TablesManager.swf":t="modules/activite/php/ACTI_setTableRecord.php";break;case"./CTI_RH_TablesManager.swf":t="modules/rh/php/httpService_tablesManager_setData.php";break;case"./CTI_PMSI_TablesManager.swf":t="modules/pmsi/php/PMSI_setTableRecord.php";break;case"./CTI_PMSISSR_TablesManager.swf":t="modules/pmsissr/php/PMSISSR_setTableRecord.php";break;case"./CTI_COMPTA_TablesManager.swf":t="modules/compta/php/COMPTA_setTableRecord.php";break;case"./CTI_SSAE_TablesManager.swf":t="modules/ssae/php/SSAE_setTableRecord.php";break;case"./CTI_DPI_TablesManager.swf":t="modules/dpi/php/DPI_setTableRecord.php";break}return t}async function lwe(e,t,r){const n={oids:t,tableName:e};switch(r){case"iCTI_rh":await pc("modules/rh/php/httpService_RH_tableManager_getSqlScript.php",n);break;case"iCTI_pmsi":await pc("modules/pmsi/php/httpService_PMSI_tableManager_getSqlScript.php",n);break;case"iCTI_activite":await pc("modules/activite/php/httpService_ACTI_tableManager_getSqlScript.php",n);break;case"iCTI_pmsissr":await pc("modules/PMSISSR/php/httpService_PMSISSRtableManager_getSqlScript.php",n);break;default:await pc("modules/base/php/httpService_listesManager_getSqlScript.php",n);break}}const pht=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"FILE"),n=ft(t,"STATUS")[0];return{files:mn(r),statusMessage:lr(n)}},o2=ma(),vht=aa.create({baseURL:o2,responseType:"json",headers:{"Content-Type":"multipart/form-data"}}),Nh=aa.create({baseURL:o2,responseType:"json",headers:{"Content-Type":"application/json"}}),mht=aa.create({baseURL:o2,responseType:"arraybuffer",headers:{"Content-Type":"multipart/form-data"}}),Eht=aa.create({baseURL:o2,responseType:"blob",headers:{"Content-Type":"multipart/form-data"}}),yht=e=>{const t=new FormData;for(const r in e)t.append(r,e[r]);return t},Awe="modules/base/php/import/",Cht=async e=>{let t=HC(e,"getFiles.php","httpservice_PMSI_rssUpload_getFiles.php");const r=await en(t);return pht(r)},wht=async(e,t)=>{const r={type:t.type,importFile:t.name,importFileDate:t.lastModified.toString().substring(0,10),Filedata:t};let n=HC(e,"upload.php","importUploadFiles.php");if(e==="pmsi"){const o=yht(r);return(await vht.post(n,o)).data}const i=(await en(n,r)).getElementsByTagName("HTTP_SERVICE")[0];return lr(i)},Bht=async e=>(await Nh.post(`${Awe}/removeFile.php`,{filename:e})).data,Mht=async(e,t)=>{let r=HC(e,"valideFiles.php","httpservice_PMSI_rssUpload_valideFiles.php");const a=(await en(r,t)).getElementsByTagName("HTTP_SERVICE")[0];return lr(a)},xht=async(e,t)=>{const r={module:e,import_id:t};return(await Nh.post(`${Awe}/execControl.php`,r)).data};class Xv{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Ny=typeof window>"u"||"Deno"in window;function Qs(){}function Iht(e,t){return typeof e=="function"?e(t):e}function Oj(e){return typeof e=="number"&&e>=0&&e!==1/0}function cwe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function R0(e,t,r){return GC(e)?typeof t=="function"?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function bht(e,t,r){return GC(e)?{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function Qu(e,t,r){return GC(e)?[{...t,queryKey:e},r]:[e||{},t]}function Sne(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:i,queryKey:o,stale:s}=e;if(GC(o)){if(n){if(t.queryHash!==eU(o,t.options))return!1}else if(!Xb(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof a<"u"&&a!==t.state.fetchStatus||i&&!i(t))}function Rne(e,t){const{exact:r,fetching:n,predicate:a,mutationKey:i}=e;if(GC(i)){if(!t.options.mutationKey)return!1;if(r){if(Tf(t.options.mutationKey)!==Tf(i))return!1}else if(!Xb(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||a&&!a(t))}function eU(e,t){return((t==null?void 0:t.queryKeyHashFn)||Tf)(e)}function Tf(e){return JSON.stringify(e,(t,r)=>zj(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function Xb(e,t){return uwe(e,t)}function uwe(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!uwe(e[r],t[r])):!1}function dwe(e,t){if(e===t)return e;const r=Tne(e)&&Tne(t);if(r||zj(e)&&zj(t)){const n=r?e.length:Object.keys(e).length,a=r?t:Object.keys(t),i=a.length,o=r?[]:{};let s=0;for(let l=0;l<i;l++){const A=r?l:a[l];o[A]=dwe(e[A],t[A]),o[A]===e[A]&&s++}return n===i&&s===n?e:o}return t}function qb(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Tne(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zj(e){if(!Qne(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!Qne(r)||!r.hasOwnProperty("isPrototypeOf"))}function Qne(e){return Object.prototype.toString.call(e)==="[object Object]"}function GC(e){return Array.isArray(e)}function fwe(e){return new Promise(t=>{setTimeout(t,e)})}function Dne(e){fwe(0).then(e)}function Sht(){if(typeof AbortController=="function")return new AbortController}function jj(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?dwe(e,t):t}class Rht extends Xv{constructor(){super(),this.setup=t=>{if(!Ny&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Zb=new Rht,Fne=["online","offline"];class Tht extends Xv{constructor(){super(),this.setup=t=>{if(!Ny&&window.addEventListener){const r=()=>t();return Fne.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{Fne.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const $b=new Tht;function Qht(e){return Math.min(1e3*2**e,3e4)}function s2(e){return(e??"online")==="online"?$b.isOnline():!0}class hwe{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function TI(e){return e instanceof hwe}function gwe(e){let t=!1,r=0,n=!1,a,i,o;const s=new Promise((p,E)=>{i=p,o=E}),l=p=>{n||(f(new hwe(p)),e.abort==null||e.abort())},A=()=>{t=!0},c=()=>{t=!1},u=()=>!Zb.isFocused()||e.networkMode!=="always"&&!$b.isOnline(),d=p=>{n||(n=!0,e.onSuccess==null||e.onSuccess(p),a==null||a(),i(p))},f=p=>{n||(n=!0,e.onError==null||e.onError(p),a==null||a(),o(p))},h=()=>new Promise(p=>{a=E=>{const y=n||!u();return y&&p(E),y},e.onPause==null||e.onPause()}).then(()=>{a=void 0,n||e.onContinue==null||e.onContinue()}),g=()=>{if(n)return;let p;try{p=e.fn()}catch(E){p=Promise.reject(E)}Promise.resolve(p).then(d).catch(E=>{var y,C;if(n)return;const w=(y=e.retry)!=null?y:3,B=(C=e.retryDelay)!=null?C:Qht,M=typeof B=="function"?B(r,E):B,I=w===!0||typeof w=="number"&&r<w||typeof w=="function"&&w(r,E);if(t||!I){f(E);return}r++,e.onFail==null||e.onFail(r,E),fwe(M).then(()=>{if(u())return h()}).then(()=>{t?f(E):g()})})};return s2(e.networkMode)?g():h().then(g),{promise:s,cancel:l,continue:()=>(a==null?void 0:a())?s:Promise.resolve(),cancelRetry:A,continueRetry:c}}const tU=console;function Dht(){let e=[],t=0,r=c=>{c()},n=c=>{c()};const a=c=>{let u;t++;try{u=c()}finally{t--,t||s()}return u},i=c=>{t?e.push(c):Dne(()=>{r(c)})},o=c=>(...u)=>{i(()=>{c(...u)})},s=()=>{const c=e;e=[],c.length&&Dne(()=>{n(()=>{c.forEach(u=>{r(u)})})})};return{batch:a,batchCalls:o,schedule:i,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{n=c}}}const Da=Dht();class pwe{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oj(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Ny?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Fht extends pwe{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||tU,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||_ht(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=jj(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(Qs).catch(Qs):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!cwe(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,a;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const o=Sht(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(s);const A=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:A};if(l(c),(n=this.options.behavior)==null||n.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=c.fetchOptions)==null?void 0:a.meta)){var u;this.dispatch({type:"fetch",meta:(u=c.fetchOptions)==null?void 0:u.meta})}const d=f=>{if(TI(f)&&f.silent||this.dispatch({type:"error",error:f}),!TI(f)){var h,g,p,E;(h=(g=this.cache.config).onError)==null||h.call(g,f,this),(p=(E=this.cache.config).onSettled)==null||p.call(E,this.state.data,f,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=gwe({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:f=>{var h,g,p,E;if(typeof f>"u"){d(new Error(this.queryHash+" data is undefined"));return}this.setData(f),(h=(g=this.cache.config).onSuccess)==null||h.call(g,f,this),(p=(E=this.cache.config).onSettled)==null||p.call(E,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(f,h)=>{this.dispatch({type:"failed",failureCount:f,error:h})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var a,i;switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(a=t.meta)!=null?a:null,fetchStatus:s2(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return TI(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Da.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function _ht(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class Nht extends Xv{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var a;const i=r.queryKey,o=(a=r.queryHash)!=null?a:eU(i,r);let s=this.get(o);return s||(s=new Fht({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Da.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=Qu(t,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(a=>Sne(n,a))}findAll(t,r){const[n]=Qu(t,r);return Object.keys(n).length>0?this.queries.filter(a=>Sne(n,a)):this.queries}notify(t){Da.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){Da.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Da.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class kht extends pwe{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||tU,this.observers=[],this.state=t.state||vwe(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}async execute(){const t=()=>{var I;return this.retryer=gwe({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(S,R)=>{this.dispatch({type:"failed",failureCount:S,error:R})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(I=this.options.retry)!=null?I:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,a,i,o,s,l,A,c;if(!r){var u,d,f,h;this.dispatch({type:"loading",variables:this.options.variables}),await((u=(d=this.mutationCache.config).onMutate)==null?void 0:u.call(d,this.state.variables,this));const S=await((f=(h=this.options).onMutate)==null?void 0:f.call(h,this.state.variables));S!==this.state.context&&this.dispatch({type:"loading",context:S,variables:this.state.variables})}const I=await t();return await((n=(a=this.mutationCache.config).onSuccess)==null?void 0:n.call(a,I,this.state.variables,this.state.context,this)),await((i=(o=this.options).onSuccess)==null?void 0:i.call(o,I,this.state.variables,this.state.context)),await((s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,I,null,this.state.variables,this.state.context,this)),await((A=(c=this.options).onSettled)==null?void 0:A.call(c,I,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:I}),I}catch(I){try{var g,p,E,y,C,w,B,M;throw await((g=(p=this.mutationCache.config).onError)==null?void 0:g.call(p,I,this.state.variables,this.state.context,this)),await((E=(y=this.options).onError)==null?void 0:E.call(y,I,this.state.variables,this.state.context)),await((C=(w=this.mutationCache.config).onSettled)==null?void 0:C.call(w,void 0,I,this.state.variables,this.state.context,this)),await((B=(M=this.options).onSettled)==null?void 0:B.call(M,void 0,I,this.state.variables,this.state.context)),I}finally{this.dispatch({type:"error",error:I})}}}dispatch(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!s2(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...n,...t.state}}};this.state=r(this.state),Da.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function vwe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Pht extends Xv{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const a=new kht({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(a),a}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){Da.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(r=>Rne(t,r))}findAll(t){return this.mutations.filter(r=>Rne(t,r))}notify(t){Da.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return Da.batch(()=>r.reduce((n,a)=>n.then(()=>a.continue().catch(Qs)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Oht(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,a,i,o;const s=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,l=(n=e.fetchOptions)==null||(a=n.meta)==null?void 0:a.fetchMore,A=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",u=(l==null?void 0:l.direction)==="backward",d=((i=e.state.data)==null?void 0:i.pages)||[],f=((o=e.state.data)==null?void 0:o.pageParams)||[];let h=f,g=!1;const p=M=>{Object.defineProperty(M,"signal",{enumerable:!0,get:()=>{var I;if((I=e.signal)!=null&&I.aborted)g=!0;else{var S;(S=e.signal)==null||S.addEventListener("abort",()=>{g=!0})}return e.signal}})},E=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(M,I,S,R)=>(h=R?[I,...h]:[...h,I],R?[S,...M]:[...M,S]),C=(M,I,S,R)=>{if(g)return Promise.reject("Cancelled");if(typeof S>"u"&&!I&&M.length)return Promise.resolve(M);const b={queryKey:e.queryKey,pageParam:S,meta:e.options.meta};p(b);const Q=E(b);return Promise.resolve(Q).then(F=>y(M,S,F,R))};let w;if(!d.length)w=C([]);else if(c){const M=typeof A<"u",I=M?A:_ne(e.options,d);w=C(d,M,I)}else if(u){const M=typeof A<"u",I=M?A:zht(e.options,d);w=C(d,M,I,!0)}else{h=[];const M=typeof e.options.getNextPageParam>"u";w=(s&&d[0]?s(d[0],0,d):!0)?C([],M,f[0]):Promise.resolve(y([],f[0],d[0]));for(let S=1;S<d.length;S++)w=w.then(R=>{if(s&&d[S]?s(d[S],S,d):!0){const Q=M?f[S]:_ne(e.options,R);return C(R,M,Q)}return Promise.resolve(y(R,f[S],d[S]))})}return w.then(M=>({pages:M,pageParams:h}))}}}}function _ne(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function zht(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class jht{constructor(t={}){this.queryCache=t.queryCache||new Nht,this.mutationCache=t.mutationCache||new Pht,this.logger=t.logger||tU,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Zb.subscribe(()=>{Zb.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=$b.subscribe(()=>{$b.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=Qu(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const a=R0(t,r,n),i=this.getQueryData(a.queryKey);return i?Promise.resolve(i):this.fetchQuery(a)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const a=n.data;return[r,a]})}setQueryData(t,r,n){const a=this.queryCache.find(t),i=a==null?void 0:a.state.data,o=Iht(r,i);if(typeof o>"u")return;const s=R0(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(o,{...n,manual:!0})}setQueriesData(t,r,n){return Da.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=Qu(t,r),a=this.queryCache;Da.batch(()=>{a.findAll(n).forEach(i=>{a.remove(i)})})}resetQueries(t,r,n){const[a,i]=Qu(t,r,n),o=this.queryCache,s={type:"active",...a};return Da.batch(()=>(o.findAll(a).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,r,n){const[a,i={}]=Qu(t,r,n);typeof i.revert>"u"&&(i.revert=!0);const o=Da.batch(()=>this.queryCache.findAll(a).map(s=>s.cancel(i)));return Promise.all(o).then(Qs).catch(Qs)}invalidateQueries(t,r,n){const[a,i]=Qu(t,r,n);return Da.batch(()=>{var o,s;if(this.queryCache.findAll(a).forEach(A=>{A.invalidate()}),a.refetchType==="none")return Promise.resolve();const l={...a,type:(o=(s=a.refetchType)!=null?s:a.type)!=null?o:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,r,n){const[a,i]=Qu(t,r,n),o=Da.batch(()=>this.queryCache.findAll(a).filter(l=>!l.isDisabled()).map(l=>{var A;return l.fetch(void 0,{...i,cancelRefetch:(A=i==null?void 0:i.cancelRefetch)!=null?A:!0,meta:{refetchPage:a.refetchPage}})}));let s=Promise.all(o).then(Qs);return i!=null&&i.throwOnError||(s=s.catch(Qs)),s}fetchQuery(t,r,n){const a=R0(t,r,n),i=this.defaultQueryOptions(a);typeof i.retry>"u"&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(Qs).catch(Qs)}fetchInfiniteQuery(t,r,n){const a=R0(t,r,n);return a.behavior=Oht(),this.fetchQuery(a)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(Qs).catch(Qs)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(a=>Tf(t)===Tf(a.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>Xb(t,n.queryKey));return r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(a=>Tf(t)===Tf(a.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>Xb(t,n.mutationKey));return r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!r.queryHash&&r.queryKey&&(r.queryHash=eU(r.queryKey,r)),typeof r.refetchOnReconnect>"u"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary>"u"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Yht extends Xv{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Nne(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Yj(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Yj(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),qb(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&kne(this.currentQuery,a,this.options,n)&&this.executeFetch(),this.updateResult(r),i&&(this.currentQuery!==a||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();i&&(this.currentQuery!==a||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return Uht(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...r}={}){return this.fetch({...r,meta:{refetchPage:t}})}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch({...t,cancelRefetch:(r=t.cancelRefetch)!=null?r:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Qs)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Ny||this.currentResult.isStale||!Oj(this.options.staleTime))return;const r=cwe(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Ny||this.options.enabled===!1||!Oj(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Zb.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,a=this.options,i=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,l=t!==n,A=l?t.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:u}=t;let{dataUpdatedAt:d,error:f,errorUpdatedAt:h,fetchStatus:g,status:p}=u,E=!1,y=!1,C;if(r._optimisticResults){const S=this.hasListeners(),R=!S&&Nne(t,r),b=S&&kne(t,n,r,a);(R||b)&&(g=s2(t.options.networkMode)?"fetching":"paused",d||(p="loading")),r._optimisticResults==="isRestoring"&&(g="idle")}if(r.keepPreviousData&&!u.dataUpdatedAt&&c!=null&&c.isSuccess&&p!=="error")C=c.data,d=c.dataUpdatedAt,p=c.status,E=!0;else if(r.select&&typeof u.data<"u")if(i&&u.data===(o==null?void 0:o.data)&&r.select===this.selectFn)C=this.selectResult;else try{this.selectFn=r.select,C=r.select(u.data),C=jj(i==null?void 0:i.data,C,r),this.selectResult=C,this.selectError=null}catch(S){this.selectError=S}else C=u.data;if(typeof r.placeholderData<"u"&&typeof C>"u"&&p==="loading"){let S;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))S=i.data;else if(S=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof S<"u")try{S=r.select(S),this.selectError=null}catch(R){this.selectError=R}typeof S<"u"&&(p="success",C=jj(i==null?void 0:i.data,S,r),y=!0)}this.selectError&&(f=this.selectError,C=this.selectResult,h=Date.now(),p="error");const w=g==="fetching",B=p==="loading",M=p==="error";return{status:p,fetchStatus:g,isLoading:B,isSuccess:p==="success",isError:M,isInitialLoading:B&&w,data:C,dataUpdatedAt:d,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>A.dataUpdateCount||u.errorUpdateCount>A.errorUpdateCount,isFetching:w,isRefetching:w&&!B,isLoadingError:M&&u.dataUpdatedAt===0,isPaused:g==="paused",isPlaceholderData:y,isPreviousData:E,isRefetchError:M&&u.dataUpdatedAt!==0,isStale:rU(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,qb(n,r))return;this.currentResult=n;const a={cache:!0},i=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!this.trackedProps.size)return!0;const l=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(A=>{const c=A;return this.currentResult[c]!==r[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(a.listeners=!0),this.notify({...a,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!TI(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){Da.batch(()=>{if(t.onSuccess){var r,n,a,i;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(a=(i=this.options).onSettled)==null||a.call(i,this.currentResult.data,null)}else if(t.onError){var o,s,l,A;(o=(s=this.options).onError)==null||o.call(s,this.currentResult.error),(l=(A=this.options).onSettled)==null||l.call(A,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Lht(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Nne(e,t){return Lht(e,t)||e.state.dataUpdatedAt>0&&Yj(e,t,t.refetchOnMount)}function Yj(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&rU(e,t)}return!1}function kne(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&rU(e,r)}function rU(e,t){return e.isStaleByTime(t.staleTime)}function Uht(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!qb(e.getCurrentResult(),t)}let Hht=class extends Xv{constructor(t,r){super(),this.client=t,this.setOptions(r),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=this.client.defaultMutationOptions(t),qb(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(r=this.currentMutation)==null||r.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const r={listeners:!0};t.type==="success"?r.onSuccess=!0:t.type==="error"&&(r.onError=!0),this.notify(r)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,r){return this.mutateOptions=r,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:vwe(),r=t.status==="loading",n={...t,isLoading:r,isPending:r,isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){Da.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var r,n,a,i;(r=(n=this.mutateOptions).onSuccess)==null||r.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(a=(i=this.mutateOptions).onSettled)==null||a.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,s,l,A;(o=(s=this.mutateOptions).onError)==null||o.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(A=this.mutateOptions).onSettled)==null||l.call(A,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}};var yP={exports:{}},CP={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Pne;function Ght(){if(Pne)return CP;Pne=1;var e=cr();function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function s(u,d){var f=d(),h=n({inst:{value:f,getSnapshot:d}}),g=h[0].inst,p=h[1];return i(function(){g.value=f,g.getSnapshot=d,l(g)&&p({inst:g})},[u,f,d]),a(function(){return l(g)&&p({inst:g}),u(function(){l(g)&&p({inst:g})})},[u]),o(f),f}function l(u){var d=u.getSnapshot;u=u.value;try{var f=d();return!r(u,f)}catch{return!0}}function A(u,d){return d()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?A:s;return CP.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,CP}var One;function Kht(){return One||(One=1,yP.exports=Ght()),yP.exports}var Vht=Kht();const mwe=Vht.useSyncExternalStore,zne=m.createContext(void 0),Ewe=m.createContext(!1);function ywe(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=zne),window.ReactQueryClientContext):zne)}const Yl=({context:e}={})=>{const t=m.useContext(ywe(e,m.useContext(Ewe)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Jht=({client:e,children:t,context:r,contextSharing:n=!1})=>{m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const a=ywe(r,n);return m.createElement(Ewe.Provider,{value:!r&&n},m.createElement(a.Provider,{value:e},t))},Cwe=m.createContext(!1),Wht=()=>m.useContext(Cwe);Cwe.Provider;function Xht(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const qht=m.createContext(Xht()),Zht=()=>m.useContext(qht);function wwe(e,t){return typeof e=="function"?e(...t):!!e}const $ht=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},egt=e=>{m.useEffect(()=>{e.clearReset()},[e])},tgt=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&wwe(r,[e.error,n]),rgt=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},ngt=(e,t)=>e.isLoading&&e.isFetching&&!t,agt=(e,t,r)=>(e==null?void 0:e.suspense)&&ngt(t,r),igt=(e,t,r)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{r.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});function ogt(e,t){const r=Yl({context:e.context}),n=Wht(),a=Zht(),i=r.defaultQueryOptions(e);i._optimisticResults=n?"isRestoring":"optimistic",i.onError&&(i.onError=Da.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Da.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Da.batchCalls(i.onSettled)),rgt(i),$ht(i,a),egt(a);const[o]=m.useState(()=>new t(r,i)),s=o.getOptimisticResult(i);if(mwe(m.useCallback(l=>{const A=n?()=>{}:o.subscribe(Da.batchCalls(l));return o.updateResult(),A},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),m.useEffect(()=>{o.setOptions(i,{listeners:!1})},[i,o]),agt(i,s,n))throw igt(i,o,a);if(tgt({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:o.trackResult(s)}function nU(e,t,r){const n=R0(e,t,r);return ogt(n,Yht)}function Uc(e,t,r){const n=bht(e,t),a=Yl({context:n.context}),[i]=m.useState(()=>new Hht(a,n));m.useEffect(()=>{i.setOptions(n)},[i,n]);const o=mwe(m.useCallback(l=>i.subscribe(Da.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=m.useCallback((l,A)=>{i.mutate(l,A).catch(sgt)},[i]);if(o.error&&wwe(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function sgt(){}const Bwe=e=>nU({queryKey:["getUploadedImportFiles",e],queryFn:()=>Cht(e)}),lgt=()=>{const e=Yl();return Uc({mutationFn:({module:t,file:r})=>wht(t,r),onError:t=>{RA({description:t.response.data.message})},onSettled:async(t,r,n)=>{await e.invalidateQueries({queryKey:["getUploadedImportFiles",n.module]}),!r&&t&&(t.returnCode==="KO"?RA({description:t.returnTexte}):J5({message:"Fichier téléchargé",description:n.file.name}))}})},Agt=()=>{const e=Yl();return Uc({mutationFn:({filename:t,module:r})=>Bht(t),onError:t=>{RA({description:t.response.data.message})},onSettled:async(t,r,n)=>{await e.invalidateQueries({queryKey:["getUploadedImportFiles",n.module]})}})},cgt=()=>{const e=Yl();return Uc({mutationFn:({module:t,importOptions:r})=>Mht(t,r),onSettled:async(t,r,n)=>{await e.invalidateQueries({queryKey:["getImports",n.module]})}})},ugt=()=>{const e=Yl();return Uc({mutationFn:({module:t,import_id:r})=>xht(t,r),onError:t=>{const r=t.response.data.message;RA({message:"Erreur lancement des contrôle",description:r})},onSettled:async(t,r,n)=>{await e.invalidateQueries({queryKey:["getImports",n.module]}),r||Tn({type:t.returnType,message:"Contrôle terminé",description:t.message})}})},Mwe=({fileTypes:e,handleImportOptions:t,importOptions:r,module:n,progress:a,isShowProgressBar:i,updateProgression:o})=>{var g;const s=m.useRef(),l=Bwe(n),A=lgt(),c=Agt(),u=()=>{s.current.click()},d=(p,E)=>{o(-1),c.mutate({filename:p,module:E})},f=p=>{let E=p.target.files[0];l.data.files.reduce((C,w)=>E.name===w.name?!0:C,!1)?ctt({message:"Fichier déjà présent",description:E.name}):A.mutate({module:n,file:E})},h=[{title:"Validation des fichiers"},{title:"Contrôle des fichiers"},{title:"Lancement génération"}];return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"import-new",children:[v.jsx("span",{className:"new-title",children:"Fichiers locaux à importer"}),v.jsxs("div",{className:"upload-form",children:[v.jsx(nt,{icon:v.jsx(aC,{}),loading:A.isLoading,disabled:A.isLoading,onClick:u,children:"Rechercher"}),v.jsx("input",{type:"file",ref:s,onChange:f,style:{display:"none"}}),v.jsxs("div",{className:"description",children:[v.jsx("span",{style:{marginRight:"20px"},children:"Texte"}),v.jsx(mt,{style:{width:"200px"},value:r.import_texte,onChange:p=>t(p.target.value,"import_texte")})]})]}),v.jsx(zc,{dataSource:((g=l.data)==null?void 0:g.files)??[],columns:sht(e,n,d),loading:l.isLoading??!0,pagination:!1})]}),v.jsx("div",{className:"import-progress",style:{display:i&&a.current!==-1?"block":"none"},children:v.jsx(I0e,{current:a.current,status:a.status,items:h})})]})};Mwe.propTypes={fileTypes:U.array,handleImportOptions:U.func,importOptions:U.object,module:U.string,progress:U.object,isShowProgressBar:U.bool,updateProgression:U.func};const xwe=({importData:e,importIsLoading:t,selectedImportId:r,handleSelectedImportId:n,module:a})=>v.jsx("div",{className:"import-state",children:v.jsx($r,{columns:Aht(a),data:e,loading:t,selectedRowOid:r,handleSelectedRowOid:n})});xwe.propTypes={importData:U.array,importIsLoading:U.bool,selectedImportId:U.string,handleSelectedImportId:U.func,module:U.string};const l2="modules/base/php/import",dgt=async e=>(await Nh.post(`${l2}/getImports.php`,e)).data,fgt=async(e,t)=>{const r={module:t,option:"D",import_id:e};await Nh.post(`${l2}/execImport.php`,r)},hgt=async(e,t)=>{const r={module:t,option:"C",import_id:e};return(await Nh.post(`${l2}/execImport.php`,r)).data},ggt=async(e,t,r)=>{const n={...r,module:t,option:"G",import_id:e};return(await Nh.post(`${l2}/execImport.php`,n)).data},pgt=async(e,t)=>{let r=new FormData;r.append("import_id",e);let n=HC(t,"getImportRapport.php","PMSI_getImportRapport.php");const a=await mht.post(n,r);return new TextDecoder("iso-8859-15").decode(a.data)},vgt=async(e,t,r)=>{let n=new FormData;n.append("import_id",e),n.append("data_type",r);let a=HC(t,"getFile.php","PMSI_getFile.php");return await Eht.post(a,n)},mgt=e=>nU({queryKey:["getImports",e.module],queryFn:()=>dgt(e),staleTime:1e3*60*5,cacheTime:1e3*60*5}),Egt=(e,t,r=null)=>{const n=new Blob([e],{type:r||"application/octet-stream"}),a=window.URL.createObjectURL(n),i=document.createElement("a");i.href=a,i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(a)},ygt=e=>{let t="",r=e.headers["content-disposition"];if(r&&r.indexOf("attachment")!==-1){const a=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/i.exec(r);a!=null&&a[1]&&(t=a[1].replace(/['"]/g,""))}return t},Cgt=()=>{const e=Yl();return Uc({mutationFn:({import_id:t,module:r})=>fgt(t,r),onError:t=>{const r=t.response.data.message;RA({description:r})},onSettled:async(t,r,n)=>{await e.invalidateQueries({queryKey:["getImports",n.module]}),r||J5({message:"Suppression réussi"})}})},wgt=()=>{const e=Yl();return Uc({mutationFn:({import_id:t,module:r})=>hgt(t,r),onMutate:()=>{Tn({type:"info",message:"Contrôle",description:"Contrôle lancé"})},onError:t=>{const r=t.response.data.message;RA({message:"Erreur lancement des contrôle",description:r})},onSettled:async(t,r,n)=>{await e.invalidateQueries({queryKey:["getImports",n.module]}),r||Tn({type:t.returnType,message:"Contrôle terminé",description:t.message})}})},Bgt=()=>{const e=Yl();return Uc({mutationFn:({import_id:t,module:r,...n})=>ggt(t,r,n),onError:t=>{const r=t.response.data.message;RA({message:"Erreur génération",description:r})},onSuccess(t){t.returnType==="error"?RA({message:"Erreur bloquante",description:t.message}):Tn({message:"Génération",description:"La génération a été lancé sur le serveur"})},onSettled:(t,r,n)=>{setTimeout(async()=>{await e.invalidateQueries({queryKey:["getImports",n.module]})},1e3)}})},Mgt=()=>Uc({mutationFn:({import_id:e,module:t})=>pgt(e,t),onSettled:async(e,t)=>{const r=window.open();r.document.write(e),r.document.close()}}),xgt=()=>Uc({mutationFn:({import_id:e,module:t,fileImportType:r})=>vgt(e,t,r),onError:()=>{RA({message:"Erreur téléchargement",description:"Fichier non trouvé"})},onSuccess:e=>{let t=ygt(e);J5({message:"Téléchargement",description:"Téléchargement débuté"}),Egt(e.data,t)}}),Iwe=({importsQuery:e,fileTypes:t,selectedImportId:r,setShowGenerateModal:n,module:a,setIsShowProgressBar:i,generateImportMutation:o})=>{const s=Cgt(),l=wgt(),A=Mgt(),c=xgt(),u=Yl(),d=async()=>{await u.invalidateQueries({queryKey:["getImports",a]})},f=()=>{s.mutate({import_id:r,module:a})},h=()=>{A.mutate({import_id:r,module:a})},g=()=>{l.mutate({import_id:r,module:a})},p=()=>{i(!1),n(!0)},E=async({key:w})=>{await c.mutateAsync({import_id:r,module:a,fileImportType:w})},C=(()=>{var M;let w=[];const B=(M=e.data)==null?void 0:M.find(I=>I.oid===r);return B&&(w=t.reduce((I,{key:S,label:R})=>{const b=`${S.toLocaleLowerCase()}_file_path`;return B[b]&&B[b]!==""?[...I,{label:R,key:S}]:I},[])),w})();return v.jsxs(v.Fragment,{children:[v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",onClick:d,disabled:e.isFetching,children:v.jsx(La,{})})}),v.jsx(pr,{title:"Supprimer l'import",children:v.jsx(ga,{placement:"top",style:{zIndex:"4000"},title:"Etes vous sur de vouloir supprimer l'import ?",onConfirm:f,okText:"Supprimer",cancelText:"Annuler",children:v.jsx(nt,{type:"link",disabled:!r||s.isLoading,children:v.jsx(Ba,{})})})}),v.jsx(nt,{size:"default",icon:v.jsx(Z3,{}),loading:A.isLoading,disabled:!r||A.isLoading,onClick:h,children:"Dernier rapport"}),v.jsx(nt,{size:"default",icon:v.jsx(Tv,{}),loading:l.isLoading,disabled:!r||l.isLoading,onClick:g,children:"Recontrôler"}),v.jsx(nt,{size:"default",icon:v.jsx(rY,{}),loading:o.isLoading,disabled:!r||o.isLoading,onClick:p,children:"Générer"}),v.jsx(pd,{menu:{items:C,onClick:E},disabled:!r||c.isLoading,trigger:["click"],arrow:!0,children:v.jsx(nt,{size:"default",type:"primary",icon:v.jsx(TS,{}),loading:c.isLoading,children:"Télécharger fichier"})})]})};Iwe.propTypes={importsQuery:U.object,fileTypes:U.array,selectedImportId:U.string,setShowGenerateModal:U.func,module:U.string,setIsShowProgressBar:U.func,generateImportMutation:U.object};const bwe=({importOptions:e,setShowGenerateModal:t,setSelectedImportId:r,module:n,updateProgression:a,setIsShowProgressBar:i,validateUploadedFilesMutation:o,controlUploadedFiles:s})=>{var u,d;const l=Bwe(n),A=()=>{a(0),i(!0),o.mutate({module:n,importOptions:e},{onSuccess:f=>{f.returnCode==="OK"?c(f.import_id):(RA({message:"Erreur",description:f.returnTexte}),a(0,!0))}})},c=f=>{a(1),s.mutate({module:n,import_id:f},{onError:()=>{a(1,!0)},onSuccess:h=>{a(2),t(!0),r(f)}})};return v.jsx(ga,{title:"Confirmez-vous le lancement de cet import ?",onConfirm:A,okText:"Lancer l'import",cancelText:"Annuler",children:v.jsx(nt,{size:"default",type:"primary",icon:v.jsx(r_e,{}),loading:o.isLoading||s.isLoading,disabled:!((d=(u=l.data)==null?void 0:u.files)!=null&&d.length)||!e.import_texte,children:"Lancer l'import"})})};bwe.propTypes={importOptions:U.object,module:U.string,updateProgression:U.func,setShowGenerateModal:U.func,setIsShowProgressBar:U.func,setSelectedImportId:U.func,validateUploadedFilesMutation:U.object,controlUploadedFiles:U.object};const Swe=({module:e,jobsQueryIsFetching:t})=>{const r=Yl(),n=async()=>{await r.invalidateQueries({queryKey:["getImportJobs",e]})};return v.jsx(v.Fragment,{children:v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",disabled:t,onClick:n,children:v.jsx(La,{})})})})};Swe.propTypes={module:U.string,jobsQueryIsFetching:U.bool};const Igt="modules/base/php/import",bgt=async e=>(await Nh.post(`${Igt}/getImportJobs.php`,e)).data,Sgt=(e,t)=>nU({queryKey:["getImportJobs",e.module],queryFn:()=>bgt(e),enabled:t==="jobs"}),Rwe=({softcode:e})=>{const[t,r]=m.useState("state"),[n,a]=m.useState({current:-1,status:"process"}),[i,o]=m.useState(!1),[s,l]=m.useState(null),[A,c]=m.useState(null),[u,d]=m.useState(!1),[f,h]=m.useState({option_expert:!0,option_essentiels:!0}),g=tht[e]??"",p=mgt({module:g}),E=Sgt({module:g},t),y=cgt(),C=ugt(),w=Bgt();if(p.isError){const k=p.error.response.data.message;Tn({type:"error",message:"Erreur",description:k})}const B=aht[g]??[],I={[Wv]:"RSS / RSF",[YC]:"RHS / RSF",[LC]:"RPSS",[UC]:"RPS"}[g]??"",S=k=>{r(k)},R=k=>{l(k)},b=k=>{c(k)},Q=(k,O=!1)=>{a({current:k,status:O?"error":"process"})},D=()=>{d(k=>!k)},F=(k,O)=>{h(P=>({...P,[O]:k}))},N=()=>{switch(t){case"state":return v.jsx(Iwe,{importsQuery:p,fileTypes:B,selectedImportId:s,setShowGenerateModal:d,module:g,setIsShowProgressBar:o,generateImportMutation:w});case"new":return v.jsx(bwe,{importOptions:f,setShowGenerateModal:d,setSelectedImportId:l,module:g,updateProgression:Q,setIsShowProgressBar:o,validateUploadedFilesMutation:y,controlUploadedFiles:C});case"jobs":return v.jsx(Swe,{module:g,jobsQueryIsFetching:E.isFetching??!0});default:return null}};return v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Gestion des imports"})}),v.jsx(iwe,{showGenerateModal:u,selectedImportId:s,handleShowGenerateModal:D,module:g,generateImportMutation:w,importOptions:f,handleImportOptions:F,updateProgression:Q}),v.jsxs("div",{className:"component-header",children:[v.jsxs("div",{className:"header-title",children:["Import des fichiers ",I]}),v.jsx("div",{className:"header-actions",children:N()})]}),v.jsx("div",{className:"component-content",children:v.jsx(xa,{onChange:S,defaultActiveKey:"state",items:[{label:"Etats des imports",key:"state",children:v.jsx(xwe,{importData:p.data??[],importIsLoading:p.isFetching??!0,selectedImportId:s,handleSelectedImportId:R,module:g})},{label:"Nouvel import",key:"new",children:v.jsx(Mwe,{fileTypes:B,handleImportOptions:F,importOptions:f,module:g,progress:n,isShowProgressBar:i,updateProgression:Q})},{label:"Historique des imports",key:"jobs",children:v.jsx(owe,{jobsQueryData:E.data??[],selectedJobId:A,isJobsQueryLoading:E.isFetching??!0,handleSelectedJobId:b})}]})})]})};Rwe.propTypes={softcode:U.string};const Lj=e=>async function(t,r){const n=$L(e);t(qp(!0));const a={action:"get"};let{data:i}=await ri(n,"post",a);t(d8e(i)),t(qp(!1))},Rgt=(e,t)=>async function(r,n){if(r(qp(!0)),t==="ssr")await ri(`api/pmsissr/importsOvalide/${e}`,"delete",{});else{const a=$L(t);await ri(a,"post",{action:"delete",id:e})}r(f8e(e)),r(qp(!1))},Tgt=async(e,t)=>{const n=`${ma()}${fht(t)}${e}`,a=await ai({method:"get",url:n,responseType:"blob",headers:{"Content-Type":"multipart/form-data"}});$R(a.data,"ovalide.zip")},Qgt=(e,t,r)=>async function(n,a){const i=$L(r);n(qp(!0));const o={action:"post",fileName:e.name,fileData:e,typeEts:t};await ri(i,"post",o),n(qp(!1)),n(Lj(r))},Uj=({module:e})=>{const[t,r]=m.useState(null),n=Ye(h=>h.cti.components.ovalide.loading),a=Ye(h=>h.cti.settings.data),i=Ye(h=>h.cti.components.ovalide.data.imports),o=m.useRef(),s=Pr();m.useEffect(()=>{s(Lj(e))},[e,s]);const l=()=>{s(Lj(e))},A=h=>{r(i.find(g=>g.oid===h))},c=()=>{t&&s(Rgt(t.oid,e))},u=()=>{t&&Tgt(t.oid,e)},d=h=>{o.current.click()},f=h=>{const g=h.target.files[0],p=a.environment.TYPEETS;s(Qgt(g,p,e))};return v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Gestion des imports"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Import des fichiers MAT2A/OVALIDE"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",onClick:l,children:v.jsx(La,{})})}),v.jsx(pr,{title:"Supprimer",children:v.jsx(nt,{type:"link",onClick:c,disabled:!t,children:v.jsx(Ba,{})})}),v.jsx(pr,{title:"Télécharger le fichier de l'import",children:v.jsx(nt,{type:"link",onClick:u,disabled:!t||!t.oid,children:v.jsx(TS,{})})}),v.jsx(nt,{size:"default",type:"primary",icon:v.jsx(aC,{}),onClick:d,children:"Importer un fichier"}),v.jsx("input",{type:"file",ref:o,onChange:f,style:{display:"none"}})]})]}),v.jsx("div",{className:"component-content",children:v.jsx("div",{className:"ovalide-imports",children:v.jsx($r,{rowKey:"oid",columns:dht(e),loading:n,data:i,selectedRow:t,onRowSelect:A})})})]})};Uj.propTypes={module:U.string};const Hj=e=>async function(t,r){t(rb(!0));const n={action:"get"};let{data:a}=await ri("modules/pmsissr/php/PMSI_getImportsValo.php","post",n);t(L8e(a)),t(rb(!1))},Dgt=(e,t)=>async function(r,n){r(rb(!0));const a={action:"post",fileName:e.name,fileData:e};await ri("modules/pmsissr/php/PMSI_getImportsValo.php","post",a),r(rb(!1)),r(Hj())},Twe=e=>{const t=Ye(c=>c.cti.components.valo.data),r=Ye(c=>c.cti.components.valo.loading),n=m.useRef(),a=Pr();m.useEffect(()=>{a(Hj())},[a]);const i=()=>{a(Hj())},o=c=>{n.current.click()},s=c=>{const u=c.target.files[0];a(Dgt(u))},A=[{title:"Import dans CTI",dataKey:"date"},{title:"Nombre séjour",dataKey:"nb_sejours"},{title:"Nombre séjour HC",dataKey:"nb_sejours_hc"},{title:"Nombre séjour HP",dataKey:"nb_sejours_hp"},{title:"Nombre séjour non valorisé",dataKey:"nb_sejours_non_valorises"},{title:"Nombre séjour pédiatrique",dataKey:"nb_sejours_pediatrique_valorises"},{title:"Année de valorisation",dataKey:"vclass"},{title:"Coefficient Géographique",dataKey:"coeffgeo"},{title:"Coefficient Spécialisation",dataKey:"coeffspe"},{title:"Coefficient prudentiel",dataKey:"coeffprud"},{title:"Coefficient honoraire",dataKey:"coeffhono"},{title:"Coefficient transition",dataKey:"coefftrans"},{title:"Fraction DMA",dataKey:"fracdma"}].map(c=>({width:100,resizable:!0,key:c.dataKey,...c}));return v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Gestion des imports"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Imports VALO SSR"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",onClick:i,children:v.jsx(La,{})})}),v.jsx(nt,{size:"default",type:"primary",icon:v.jsx(aC,{}),onClick:o,children:"Importer un fichier"}),v.jsx("input",{type:"file",ref:n,onChange:s,style:{display:"none"}})]})]}),v.jsx("div",{className:"component-content",children:v.jsx("div",{className:"valo-imports",children:v.jsx($r,{rowKey:"oid",columns:A,loading:r,data:t.imports})})})]})};Twe.propTypes={};const Fgt=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"INDICATEUR"),n=ft(t,"TABLE"),a=ft(t,"THEME"),i=ft(t,"THEME_SEARCH");return[Qwe(r),Dwe(n),_gt(i),Fwe(a)]},Qwe=e=>{let t=[];return e&&e.forEach((r,n)=>{let a=lr(r),i=ft(r,"THEME"),o=[],s=[],l=[];i&&i.forEach(u=>{let d=lr(u);o.push(d.oid)});for(let u=1;u<=6;u++)a[`theme_${u}_id`]!=="0"&&s.push(a[`theme_${u}_id`]);for(let u=1;u<=5;u++)a[`dimension_date_${u}`]!==""&&l.push(Number(a[`dimension_date_${u}`]));let A=a.entete,c=a.description;a.entete=A.replaceAll("&#xA;",`
`),a.description=c.replaceAll("&#xA;",`
`),a.themesSearch=o,a.themes=s,a.dimensions=l,a.is_cti==="1"?a.is_cti=!0:a.is_cti=!1,a.is_hide==="1"?a.is_hide=!0:a.is_hide=!1,a.key=n,t.push(a)}),t},Dwe=e=>{let t=[];return e&&e.forEach(r=>{let n=lr(r),a=[];n.nb_dimensions_date=Number(n.nb_dimensions_date);for(let i=1;i<=5;i++)n[`dimensions_date_texte_${i}`]!==""&&a.push({value:i,label:n[`dimensions_date_texte_${i}`]});n.dimensions=a,t.push(n)}),t},Fwe=e=>{let t=[];return e&&e.forEach((r,n)=>{let a=lr(r);a.title=a.label,a.value=a.data,t.push(a)}),xh(t)},_gt=e=>{let t=[];return e&&e.forEach((r,n)=>{let a=lr(r);a.title=a.label,a.value=a.data,t.push(a)}),xh(t)},Ngt=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"RAPPORT"),n=ft(t,"REFRAPPORT"),a=ft(t,"COMBO_GROUP"),i=ft(t,"COMBO_RAPPORT"),o=ft(t,"COMBO_CONDITION"),s=ft(t,"COMBO_TYPERAPPORT");return{reports:mn(r),refReports:mn(n),comboGroup:jne(a),comboReport:jgt(i),comboCondition:Ygt(o),conditions:mn(ft(o[0],"RECORD")),comboType:jne(s)}},kgt=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"RAPPORT")[0],n=ft(r,"RUBRIQUE");let a=[];n&&n.length&&n.forEach((o,s)=>{let l=lr(o),A=l.entete,c=l.description;l.entete=A.replaceAll("&#xA;",`
`),l.description=c.replaceAll("&#xA;",`
`),l.border_thickness=Number(l.border_thickness),l.is_hide=Number(l.is_hide),l.key=s,a.push(l)});let i=lr(r);return i.sections=a,i},Pgt=e=>{const t=e.getElementsByTagName("LASTSTATUS_ACTIVE")[0];return lr(t).status},Ogt=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"VIEW");return mn(r)},zgt=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"INDICATEUR"),n=ft(t,"TABLE"),a=ft(t,"THEME");return{tables:Dwe(n),themes:Fwe(a),indicators:Qwe(r)}};function jne(e){const t=ft(e[0],"RECORD");let r=[];return t&&t.length&&t.forEach(n=>{let a=lr(n);a.value=a.data??a.oid,r.push(a)}),r}function jgt(e){const t=ft(e[0],"RECORD");let r=[];return t&&t.length&&t.forEach(n=>{let a=lr(n);a.value=a.oid,r.push(a)}),r}function Ygt(e){const t=ft(e[0],"RECORD");let r=[];return t&&t.length&&t.forEach(n=>{let a=lr(n);a.oid&&(a.value=a.oid,r.push(a))}),r=xh(r),r}const ky=()=>async function(e,t){e(a9(!0));const n={softCode:t().cti.content.moduleId},a=await en("modules/base/php/getIndicateurs.php",n);let[i,o,s,l]=Fgt(a);e(WPe(i,o,s,l)),e(a9(!1))},Lgt=async(e,t)=>{await pc("modules/base/php/httpService_indicateursManager_getSqlScript.php",{softCode:e,indicateur:t})},Yne=(e,t,r=!1)=>async function(n,a){await en("modules/base/php/setIndicateur.php",{action:r?"copy":"delete",softCode:e,oid:t}),n(r?ky():XPe(t))},Ugt=(e,t)=>async function(r,n){const a={action:"save",softCode:e,...t};await en("modules/base/php/setIndicateur.php",a),r(ky())},oh=e=>async function(t,r){t(eb(!0));const n=ma();let a=new FormData;a.append("modules",e),a.append("options","-separator -fulldefinition");try{const o=await ai({method:"post",url:n+"modules/base/php/httpService_chooseIndicateurs_getIndicateurs.php",data:a,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});var i=new TextDecoder("iso-8859-15");const s=i.decode(o.data);let l=Jde(s);const{tables:A,themes:c,indicators:u}=zgt(l);t(w8e(A,c,u))}catch(o){throw console.log(o),new Error("Erreur lors de la récupérations des indicateurs")}},_we=({selectedRowKeys:e,setSelectedRowKeys:t,selectionsModified:r,setSelectionsModified:n,handleAddIndicators:a,handleModifyIndicator:i,handleShowModal:o,tableData:s,options:l,joinedIndicatorIndex:A})=>{const c=f=>{if(!r)o();else{let h=[];e.forEach(g=>{h.push(s.find(p=>p.key===g))}),l.oneOnly?i(A?{value:h[0].oid,field:A}:h[0]):a(h),n(!1),f===!0?o():d(h.length)}},u=()=>{if(e.length)t([]);else{let f=s.map(h=>h.key);t(f)}};function d(f){to.success(`${f} indicateurs ajoutés`)}return v.jsxs(v.Fragment,{children:[v.jsx(nt,{onClick:o,children:r?"Annuler":"Fermer"}),l.oneOnly===!1&&v.jsxs(v.Fragment,{children:[v.jsx(nt,{onClick:()=>c(!1),disabled:!r,children:"Ajouter et continuer"}),v.jsx(nt,{onClick:u,disabled:!r,children:"Tout (de) selectionner"})]}),v.jsx(nt,{type:"primary",onClick:()=>c(!0),disabled:!r,children:"Ajouter et fermer"})]})};_we.propTypes={handleAddIndicators:U.func,handleModifyIndicator:U.func,handleShowModal:U.func,options:U.object,selectedRowKeys:U.array,setSelectedRowKeys:U.func,selectionsModified:U.bool,setSelectionsModified:U.func,tableData:U.array};function Nwe(e){let t={width:"95%",height:"100%"};for(let r in e)switch(r){case"font_size":e[r]!=="0"&&(t.fontSize=`${e[r]}px`);break;case"font_weight":t.fontWeight=e[r];break;case"padding":t.paddingLeft=`${e[r]}px`;break;case"color":e.is_hide!==1&&(t.color=e[r]);break;case"background_color":e.is_hide!==1&&(t.backgroundColor=e[r]);break;case"border_thickness":e[r]===1&&(t.border="2px solid rgba(0, 0, 0, 0.5)");break;case"is_hide":e[r]===1&&(t.color=jr.inactiveGrey);break}return t}const KC=({label:e,isCti:t,icon:r,toolTipLabel:n})=>v.jsxs(v.Fragment,{children:[t==="0"&&v.jsx(pr,{title:n,children:"null"}),e]});KC.propTypes={label:U.string,isCti:U.string,icon:U.string};const Hgt=e=>{const t=[{title:"Contexte",dataKey:"contexte",width:100},{title:"Code",dataKey:"code"},{title:"Nom",dataKey:"texte",frozen:"left",width:600,cellRenderer:({rowData:a})=>{const i=a.label?a.label:a.texte;return v.jsx("div",{className:"BaseTable__row-cell-text",children:v.jsx(KC,{label:i,isCti:a.is_cti,icon:"Hospital",toolTipLabel:"Rapport créé par l'établissement"})})}},{title:"Condition",dataKey:"rapport_indicateur_condition"}];return((a,i)=>{if(i==="ESSENTIEL"){const o={title:"Groupe",dataKey:"group_texte",width:150};a.unshift(o)}})(t,e),t.map(a=>({width:200,resizable:!0,key:a.dataKey,...a}))};function Ggt(e,t,r,n){let a=[{title:"N°",width:40,dataKey:"numero_rubrique",frozen:"left"},{title:"Nom",dataKey:"entete_etendue",frozen:"left",width:400,cellRenderer:({rowData:i})=>{const o=i.entete_etendue!==""?i.entete_etendue:i.indicateur_entete_etendue,s=Nwe(i);return v.jsx("div",{style:s,className:"BaseTable__row-cell-text",children:v.jsx(KC,{label:o,isCti:i.is_cti,style:s,icon:"Hospital",toolTipLabel:"Indicateur créé par l'établissement"})})}},{title:"Code",width:150,dataKey:"code"},{title:"Format de sortie",dataKey:"output_format",width:120,dataGetter:({rowData:i})=>{const o="output_format";return i[o]!==""?i[o]:i["indicateur_output_format"]}},{title:"Condition",dataKey:"indicateur_condition",width:120}];return e.type_rapport==="ESSENTIEL"?a.push({title:"Picto",width:75,dataKey:"picto_enabled",dataGetter:({rowData:i})=>{let o="";const s="picto_enabled",l="positif_is_good";return o+=i[s]==="1"?"+":"",o+=i[l]==="1"?" OK":"",o}},{title:"Série",width:800,dataGetter:({rowData:i})=>{let o="";return o=r(i,n).map(l=>l==null?void 0:l.code).join(" / "),o}}):a.push({title:"Nom abrégé",dataKey:"entete",width:250,dataGetter:({rowData:i})=>i.entete!==""?i.entete:i.indicateur_entete},{title:"Fonction Total",width:150,dataKey:"total_function",dataGetter:({rowData:i})=>{let o="";return t.forEach(s=>{s.value===i.total_function&&(o+=s.title)}),o}}),e.type_rapport==="VUEPARAM"&&a.push({title:"Comparé avec",width:300,dataKey:"compared_indicator_label"}),a.map(i=>({width:200,...i,resizable:!0,key:i.dataKey,className:"cti-default-table",headerClassName:"cti-default-table"}))}const Kgt=e=>[{title:"Code",dataIndex:"code",dataKey:"code",key:"code",width:250,resizable:!0},{title:"Nom",dataKey:"entete_etendue",dataIndex:"entete_etendue",key:"name",frozen:"left",width:400,cellRenderer:({rowData:t})=>{const r=t.entete_etendue!==""?t.entete_etendue:t.indicateur_entete_etendue,n=Nwe(t),a=t.is_cti?"1":"0";return v.jsx("div",{style:n,className:"BaseTable__row-cell-text",children:v.jsx(KC,{label:r,isCti:a,style:n,icon:"Hospital",toolTipLabel:"Indicateur créé par l'établissement"})})}},{title:"Format de sortie",dataKey:"output_format",dataIndex:"output_format",key:"output_format",width:200},{title:"Table",dataKey:"table_name",dataGetter:({rowData:t})=>{let r=t.table_name;const n=e.find(a=>a.code===r);return n?n.texte:r},width:200,key:"table"}],HA=({showModal:e,handleShowModal:t,handleAddIndicators:r,handleModifyIndicator:n,options:a,specifiedIndicators:i=[],joinedIndicatorIndex:o=null})=>{const[s,l]=m.useState([]),[A,c]=m.useState(""),[u,d]=m.useState([]),[f,h]=m.useState(!1),g=Ye(B=>B.cti.components.reports.data),p=Ye(B=>B.cti.components.indicators.data);m.useEffect(()=>{i.length?l(E(i)):l(E(g.indicators.indicators))},[g,A,i]),m.useEffect(()=>{d([])},[e]);function E(B){return Fh(B,A,["texte","code"])}const y=v.jsx(_we,{selectedRowKeys:u,setSelectedRowKeys:d,setSelectionsModified:h,selectionsModified:f,handleAddIndicators:r,handleModifyIndicator:n,handleShowModal:t,tableData:s,options:a,joinedIndicatorIndex:o}),C=B=>{c(B.target.value)},w=B=>{if(h(!0),a.oneOnly)u.length&&u[0]===B?d([]):d([B]);else{let M=[...u];Array.isArray(B)?M=M.concat(B):M.includes(B)?M=M.filter(I=>I!==B):M.push(B),d(M)}};return v.jsx(va,{open:e,onCancel:t,footer:y,width:"75%",bodyStyle:{height:"70vh"},centered:!0,zIndex:3010,children:v.jsxs("div",{className:"indicator-modal",children:[v.jsxs("div",{className:"indicator-modal-header",children:[v.jsx("span",{className:"modal-title",children:"Choix d'un ou plusieurs indicateurs"}),v.jsxs("div",{className:"modal-search",children:[v.jsx("span",{children:"Rechercher par texte:"}),v.jsx(mt,{value:A,onChange:C})]})]}),v.jsx("div",{className:"indicator-modal-table",children:v.jsx($r,{rowKey:"key",columns:Kgt(p.tables),data:s,selectedRow:a.oneOnly===!0?s.find(B=>B.key===u[0]):null,selectedRows:a.oneOnly===!1?u:null,shiftMulti:a.oneOnly!==!0,onRowSelect:w})})]})})};HA.propTypes={showModal:U.bool,handleShowModal:U.func,handleAddIndicators:U.func,handleModifyIndicator:U.func,options:U.object,specifiedIndicators:U.array};HA.defaultProps={specifiedIndicators:[]};const Vgt=()=>v.jsx("div",{className:"form-row",children:v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Largeur"}),v.jsx(_e.Item,{name:"width",children:v.jsx(mt,{className:"indicator-form-input"})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Format de sortie"}),v.jsx(_e.Item,{name:"output_format",children:v.jsx(mt,{className:"indicator-form-input"})})]})]})}),Jgt=e=>{let t=[{value:"*LIST",title:"Pas de fonction total"},{value:"Sommes",title:"Sommes",disabled:!0,children:[{title:"Somme",value:"SUM"},{title:"Somme du dernier mois",value:"SUMLASTMONTH"},{title:"Somme du premier mois",value:"SUMFIRSTMONTH"},{title:"Somme distincte",value:"base.cti_sum_distinct_on"}]},{value:"Bornes",title:"Bornes",disabled:!0,children:[{title:"Minimum",value:"MIN"},{title:"Maximum",value:"MAX"}]},{value:"Moyennes",title:"Moyennes",disabled:!0,children:[{title:"Moyenne",value:"AVG"},{title:"Moyenne sur 12 mois",value:"AVG12M"}]},{value:"Comptage",title:"Comptage",disabled:!0,children:[{title:"Comptage",value:"COUNT"},{title:"Comptage du dernier mois",value:"COUNTLASTMONTH"}]},{value:"Texte",title:"Texte",disabled:!0,children:[{title:"Aggrégation des valeurs",value:"LISTACUM"}]}];return e==="eis"&&t.filter(a=>a.value==="Texte")[0].children.push({title:"AGGVAL",data:"AGGVAL"}),t},Wgt=[{title:"Pas de fonction total",value:"AGGVAL"},{title:"Pas de fonction total",value:"*LIST"},{title:"Somme",value:"SUM"},{title:"Somme du dernier mois",value:"SUMLASTMONTH"},{title:"Somme du premier mois",value:"SUMFIRSTMONTH"},{title:"Somme distincte",value:"base.cti_sum_distinct_on"},{title:"Minimum",value:"MIN"},{title:"Maximum",value:"MAX"},{title:"Moyenne",value:"AVG"},{title:"Moyenne sur 12 mois",value:"AVG12M"},{title:"Comptage",value:"COUNT"},{title:"Comptage du dernier mois",value:"COUNTLASTMONTH"},{title:"Aggrégation des valeurs",value:"LISTACUM"},{title:"Calcul entre indicateurs",value:"*CALC"}],eS=(e,t)=>{let r={},n=[];for(const[a,i]of Object.entries(e))/indicateur_associe_[\d]*_id/.test(a)&&i!=="0"&&(r[a]=i);if(r){const i=Object.values(r).map(o=>t==null?void 0:t.indicators.find(s=>s.oid===o));i.forEach(o=>{for(const[s,l]of Object.entries(r))if(l===(o==null?void 0:o.oid)){const A=s.match(/\d+/g);o.associatedIndicatorIndex=Number(A[0])}}),n=i}return n},kwe=({textAreaLastCursorPosition:e,indicator:t,handleShowModal:r,handleChange:n})=>{const a=Ye(u=>u.cti.components.indicators.data),i=eS(t,a),o=Ye(u=>u.cti.menu.selectedModuleKey),s=u=>{let d="";const f=e,h="["+u.associatedIndicatorIndex+"]";t.column_name?e?d=t.column_name.slice(0,f)+h+t.column_name.slice(f):d=t.column_name+h:d=h,n({field:"column_name",value:d})},A=(u=>{for(const[d,f]of Object.entries(u))if(/indicateur_associe_[\d]*_id/.test(d)&&f==="0")return d;return null})(t),c=()=>{if(t.table_name&&!t.table_name.includes("*CALC"))return v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Fonction 'total'"}),v.jsx(_e.Item,{name:"total_function",children:v.jsx(wa,{treeData:Jgt(o),size:"large",treeDefaultExpandAll:!0,dropdownStyle:{maxHeight:400,overflow:"auto"},className:"indicator-form-input",onChange:n})})]});{const u=i.map((d,f)=>v.jsxs("li",{className:"editor__database-joined-indicator-list",children:[v.jsxs("span",{className:"editor__database-joined-indicator-list--key",children:["[",d.associatedIndicatorIndex,"] - "]}),v.jsx(nt,{type:"dashed",onClick:()=>s(d),children:v.jsx("span",{children:d.code})}),v.jsx(Zn,{placement:"top",title:"Modifier l'indicateur",children:v.jsx(nt,{type:"secondary",icon:v.jsx(DA,{}),onClick:()=>r(`indicateur_associe_${d.associatedIndicatorIndex}_id`,t)})}),v.jsx(Zn,{placement:"top",title:"Supprimer l'indicateur",children:v.jsx(nt,{type:"danger",icon:v.jsx(Ba,{}),className:"editor__database-joined-indicator--delete-button",onClick:()=>n({field:`indicateur_associe_${d.associatedIndicatorIndex}_id`,value:"0"})})})]},f));return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Indicateurs associés:"}),v.jsxs("div",{className:"editor__database-joined-indicator-block",children:[i.length>0&&v.jsx("ul",{children:u}),i.length<=20&&v.jsx(nt,{onClick:()=>r(A,t),children:"Ajouter"})]})]})})}};return v.jsx(v.Fragment,{children:c()})};kwe.propTypes={textAreaLastCursorPosition:U.oneOfType([U.string,U.number]),form:U.object,indicator:U.object,handleShowModal:U.func,handleChange:U.func};const Pwe=({tableOptions:e,form:t,indicator:r,handleShowModal:n,handleChange:a})=>{const[i,o]=m.useState(null),s=l=>{o(l.target.selectionStart)};return v.jsx("div",{className:"form-row",children:v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Table"}),v.jsx(_e.Item,{name:"table_name",children:v.jsx(Ir,{className:"indicator-form-input",onChange:l=>a({field:"table_name",value:l}),children:e})})]}),r.table_name!==""&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Code SQL"}),v.jsx(_e.Item,{name:"column_name",children:v.jsx(mt.TextArea,{autoSize:{minRows:4},className:"editor__database-textArea",onChange:l=>a({field:"column_name",value:l.target.value}),onMouseLeave:l=>s(l)})})]}),r.total_function!=="*LISTANON"&&v.jsx(kwe,{textAreaLastCursorPosition:i,form:t,indicator:r,handleShowModal:n,handleChange:a})]})]})})};Pwe.propTypes={tableOptions:U.array,form:U.object,indicator:U.object,handleShowModal:U.func};const QI=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e,children:v.jsx("path",{fill:"currentColor",d:"M9 7h2V5H9m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18a10 10 0 1 0 0 20 10 10 0 0 0 0-20M9 15h2V9H9z"})}),Owe=({indicator:e,availableDimensions:t,indicatorDimensions:r,setIndicatorDimensions:n,handleChange:a})=>{const i=Ye(A=>A.cti.content.moduleId),o=Ye(A=>A.cti.settings.data.session),s=A=>{n(A)},l=A=>{let c={anonymized:A.target.checked};A.target.checked?(c.total_function="*LISTANON",e.table_name==="*CALC"&&(c.table_name="")):c.total_function="*LIST",a({fieldsToEdit:c})};return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Code"}),v.jsx(_e.Item,{name:"code",children:v.jsx(mt,{className:"indicator-form-input"})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Nom"}),v.jsx(_e.Item,{name:"texte",children:v.jsx(mt,{className:"indicator-form-input"})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Nom abrégé"}),v.jsx(_e.Item,{name:"entete",children:v.jsx(mt.TextArea,{className:"indicator-form-input"})}),v.jsx(pr,{title:"Nom de l'entéte de la colonne qui apparait dans le rapport",children:v.jsx(QI,{style:{marginLeft:6,marginBottom:-1,color:jr.lightBlue}})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Description"}),v.jsx(_e.Item,{name:"description",children:v.jsx(mt.TextArea,{className:"indicator-form-input"})})]})}),o.ISROLECTI&&v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Indicateur CTI"}),v.jsx(_e.Item,{valuePropName:"checked",name:"is_cti",children:v.jsx(Rr,{size:"small",onChange:A=>a({field:"is_cti",value:A.target.checked})})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Indicateur anonymisé"}),v.jsx(_e.Item,{valuePropName:"checked",name:"anonymized",children:v.jsx(Rr,{size:"small",onChange:l,disabled:!o.ISROLECTI||!o.ISROLEADMIN})})]})}),i==="iCTI_activite"&&v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Dimension date"}),e.dimension_date===""||!e.dimension_date?v.jsx(_e.Item,{name:"dimensions",children:v.jsx(wa,{treeData:t,value:r,multiple:!0,onChange:s})}):v.jsx("span",{children:e.dimension_date})]})})]})};Owe.propTypes={setModified:U.func,indicator:U.object,availableDimensions:U.array,setIndicatorDimensions:U.func,handleChange:U.func};const Gj=({handleReset:e,toolTipTitle:t="Annuler les modifications",title:r="Des modifications sont en cours... Etes vous sur de vouloir annuler ?",discardText:n="Annuler les modifications",cancelText:a="Revenir à l'éditeur",size:i="default"})=>v.jsx(pr,{title:t,children:v.jsx(ga,{placement:"topRight",title:r,onConfirm:e,okText:n,cancelText:a,children:v.jsx(nt,{size:i,children:v.jsx(La,{})})})});Gj.propTypes={handleReset:U.func.isRequired,toolTipTitle:U.string,title:U.string,discardText:U.string,cancelText:U.string,size:U.string};const zwe=({modified:e,indicator:t,handleSubmit:r,handleReset:n,handleCopy:a,handleCloseEditor:i,handleDelete:o})=>{const s=Ye(A=>A.cti.settings.data.session),l=A=>e&&t.oid!=="-1"?v.jsxs("div",{className:"editor-indicator-header",children:[v.jsx(dv,{handleClick:r,toolTipTitle:"Enregistrer"}),v.jsx(Gj,{handleReset:n})]}):t.oid==="-1"?v.jsxs("div",{className:"editor-new-indicator-header",children:[v.jsx("div",{className:"editor__header-title",children:"Nouvel indicateur"}),v.jsxs("div",{className:"editor-indicator-header",children:[v.jsx(dv,{handleClick:r,toolTipTitle:"Enregistrer"}),v.jsx(Gj,{handleReset:n})]})]}):v.jsxs("div",{className:"editor-new-indicator-header",children:[v.jsx("div",{className:"editor__header-title",children:"Modifier l'indicateur"}),v.jsxs("div",{className:"editor-indicator-action-button",children:[v.jsx(pr,{title:"Copier l'indicateur",children:v.jsx(nt,{size:"default",type:"primary",icon:v.jsx(hh,{}),onClick:a,children:"Copier"})}),s.ISROLECTI?v.jsx(nt,{size:"default",icon:v.jsx(bv,{}),onClick:()=>{Lgt(t.module,t.oid)},children:"SQL"}):null,v.jsx(pr,{title:"Annuler",children:v.jsxs(nt,{onClick:i,children:[v.jsx(La,{}),"Annuler"]})}),v.jsx(pr,{title:"Supprimer l'indicateur",children:v.jsxs(nt,{onClick:o,type:"danger",disabled:A,children:[v.jsx(Ba,{}),"Supprimer"]})})]})]});return v.jsx(v.Fragment,{children:l(Jv(t.is_cti,s))})};zwe.propTypes={modified:U.bool,indicator:U.object,handleSubmit:U.func,handleReset:U.func,handleCopy:U.func,handleCloseEditor:U.func,handleDelete:U.func};const{Option:Xgt}=Ir,jwe=({indicator:e,setIndicator:t,showEditor:r,tables:n,handleCloseEditor:a,themes:i})=>{const[o,s]=m.useState(!1),[l,A]=m.useState(),[c,u]=m.useState(),[d,f]=m.useState(),[h,g]=m.useState(),[p,E]=m.useState(null),[y,C]=m.useState(!1),[w,B]=m.useState([]),M=Ye(W=>W.cti.components.indicators.data),[I]=_e.useForm(),S=Pr(),R=Ye(W=>W.cti.settings.data.session);m.useEffect(()=>{const W=n.find(q=>q.code===e.table_name);W&&g(W.dimensions)},[e,n]),m.useEffect(()=>{const W=j();I.setFieldsValue(W),A(W),u(V(e)),f(L(e))},[e,M.indicators]);const b=({value:W,field:q,fieldsToEdit:ee})=>{s(!0);let ae=JSON.parse(JSON.stringify(e)),ne=I.getFieldsValue();for(const ue in ne)ae[ue]=ne[ue];let ce={...ae};if(q&&W&&(ce={...ae,[q]:W}),ee){for(const ue in ee)ae[ue]=ee[ue];ce={...ae,fieldsToEdit:ee}}t({...ce})},Q=(W=null,q)=>{W&&(E(W),B(z(q))),C(!y)},D=()=>{s(!0)},F=()=>{I.setFieldsValue(l),s(!1),a()},N=()=>{S(Yne(e.module,e.oid)),a(),J("info","Indicateur","La suppression est en cours")},k=()=>{S(Yne(e.module,e.oid,!0)),J("info","Indicateur","La copie est en cours")},O=()=>{let W=P(e,I);S(Ugt(e.module,W)),s(!1),J("info","Création de l'indicateur","L'indicateur est en cours de création.")},P=(W,q)=>{let ee=q.getFieldsValue();for(let ce in ee)ee[ce]===!0?ee[ce]="1":ee[ce]===!1?ee[ce]="0":ee[ce]||(ee[ce]="");const ae=K(i);for(let ce=1;ce<=6;ce++){let ue="0";c[ce-1]&&(ue=ae.find(ge=>ge.value===c[ce-1]).data),ee[`theme_${ce}_id`]=ue}for(let ce=1;ce<=5;ce++){let ue="";d[ce-1]&&(ue=d[ce-1].toString()),ee[`dimension_date_${ce}`]=ue}let ne={...W,...ee};return delete ne.dimensions,delete ne.themes,delete ne.anonymized,delete ne.themesSearch,delete ne.is_new,ne},z=W=>{let q=[];for(const[ne,ce]of Object.entries(W))/indicateur_associe_[\d]*_id/.test(ne)&&ce!=="0"&&q.push(ce);let ae=M.indicators.filter(ne=>!q.includes(ne.oid)).filter(ne=>![W.oid].includes(ne.oid));return ae.length>0?ae:[]};function j(W){let q=I.getFieldsValue();for(let ae in q)q[ae]=null;return q.table_name=n[0].code,{...q,...e}}function V(W){let q=[];const ee=K(i);return W.themes.forEach(ae=>{const ne=ee.find(ce=>ce.data===ae);ne&&q.push(ne.value)}),q}function L(W){let q=[];const ee=n.find(ae=>ae.code===W.table_name);return W==null||W.dimensions.forEach(ae=>{const ne=ee==null?void 0:ee.dimensions.find(ce=>ce.value===ae);ne&&q.push(ne.value)}),q}function K(W){let q=[];return W.forEach(ee=>{let ae={...ee};ae.children&&(q=q.concat(K(ae.children)),delete ae.children),q.push(ae)}),q}function J(W,q,ee){as[W]({message:q,description:ee})}let Y=n.map((W,q)=>v.jsx(Xgt,{value:W.code,children:W.texte},q));return e.total_function==="*LISTANON"&&(Y=Y.filter(W=>W.props.value!=="*CALC")),v.jsxs(v.Fragment,{children:[v.jsx(HA,{showModal:y,handleShowModal:()=>Q(null),handleModifyIndicator:b,options:{oneOnly:!0},specifiedIndicators:w,joinedIndicatorIndex:p}),v.jsxs("div",{className:"editor-indicator-editor",style:{display:r?"flex":"none"},children:[v.jsx("div",{className:"editor-indicator-header ",children:v.jsx(zwe,{modified:o,indicator:e,handleSubmit:O,handleReset:F,handleCopy:k,handleCloseEditor:a,handleDelete:N})}),v.jsxs(_e,{className:"indicator-editor-form",form:I,onValuesChange:D,disabled:Jv(e.is_cti,R),children:[v.jsx("div",{className:"indicator-tab-column",children:v.jsx(xa,{items:[{label:"Paramètre",key:"1",className:"scrollable-tab",children:v.jsx(Owe,{indicator:e,availableDimensions:h,indicatorDimensions:d,setIndicatorDimensions:f,handleChange:b})}]})}),e.code!=="CTI_SEP"&&v.jsx("div",{className:"indicator-tab-column",children:v.jsx(xa,{items:[{label:"Base de donnée",key:"1",className:"scrollable-tab",children:v.jsx(Pwe,{tableOptions:Y,form:I,indicator:e,handleShowModal:Q,handleChange:b})},{label:"Présentation",key:"2",className:"scrollable-tab",children:v.jsx(Vgt,{})}]})})]})]})]})};jwe.prototype={indicator:U.object,setIndicator:U.func,showEditor:U.bool,tables:U.arrayOf(U.object),handleCloseEditor:U.func,themes:U.arrayOf(U.object)};const qgt=[{title:"oid",key:"oid",dataKey:"oid",width:150},{title:"code",key:"code",dataKey:"code",width:150},{title:"Entête",key:"entete",dataKey:"entete",width:200},{title:"Libéllé",key:"texte",dataKey:"texte",width:200,flexGrow:2},{title:"CTI",key:"isCti",dataKey:"isCti",width:50,dataGetter:({rowData:e})=>v.jsx(Rr,{disabled:!0,checked:e.isCti})}],Zgt=(e,t)=>{let r=[{title:"Code",dataKey:"code",width:250},{title:"Nom",dataKey:"texte",frozen:"left",width:500,cellRenderer:({rowData:n})=>{const a=n.texte,i=n.is_cti?"1":"0";return v.jsx("div",{className:"BaseTable__row-cell-text",children:v.jsx(KC,{label:a,isCti:i,icon:"Hospital",toolTipLabel:"Indicateur créé par l'établissement"})})}},{title:"Nom abrégé",dataKey:"entete",width:400},{title:"Table",dataKey:"table_name",dataGetter:({rowData:n})=>{let a=n.table_name;const i=t.find(o=>o.code===a);return i?i.texte:a},width:200},{title:"Format de sortie",dataKey:"output_format",width:200}];return e==="iCTI_activite"&&r.push({title:"Dimension date",key:"date",dataKey:"dimension_date"}),r.map(n=>({width:200,...n,resizable:!0,key:n.dataKey,className:"cti-default-table",headerClassName:"cti-default-table"}))},$gt=({tables:e,selectedRow:t,handleSelectedRow:r,module:n,tableData:a})=>{const i=Ye(s=>s.cti.components.indicators.loading),o=({columns:s,rowData:l,rowIndex:A})=>{let c="";return l.is_hide&&(c+="settings__rowTable-inactive"),A%2===0&&(c+=" even-row"),c};return v.jsx($r,{columns:Zgt(n,e),data:a,loading:i,selectedRow:t,onRowSelect:r,rowClassName:o})},ept=te.memo($gt),Ywe=({module:e})=>{const t=Ye(b=>b.cti.components.indicators.data),[r,n]=m.useState(!1),[a,i]=m.useState(null),[o,s]=m.useState(null),[l,A]=m.useState("100%"),[c,u]=m.useState([]),d=Pr(),[f,h]=m.useState(!1),[g,p]=m.useState(!1),E=Ye(b=>b.cti.components.indicators.searchIndicatorFilterValue);m.useEffect(()=>{d(ky())},[d,e]),m.useEffect(()=>{i(null),n(!1),A("100%")},[t.indicators]),m.useEffect(()=>{let b=t.indicators.filter(Q=>(!g||Q.is_hide==="0")&&(!f||Q.is_cti==="1"));E&&(b=Fh(b,E,["texte","column_name","code","entete","table"])),u(b)},[t.indicators,E,f,g]);const y=b=>{h(b)},C=b=>{p(b)},w=b=>{const Q=t.indicators.find(D=>D.key===b);Q.anonymized=Q.total_function==="*LISTANON",i(Q),n(!0),A("55%"),s(Q)},B=()=>{i(null),n(!1),A("100%")},M=b=>{d(qPe(b.target.value))},I=()=>{s({module:e,oid:"-1",themes:[],dimensions:[],custom_total_function:"",indicateur_associe_1_id:"0",indicateur_associe_2_id:"0",indicateur_associe_3_id:"0",indicateur_associe_4_id:"0",indicateur_associe_5_id:"0",indicateur_associe_6_id:"0",table_name:"",total_function:"*LIST",is_new:!0,is_cti:!1,is_hide:!1}),i(null),n(!0),A("55%")},S=()=>{d(ky())},R=b=>{A(l+b.height)};return t.tables.length?v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Gestion des indicateurs"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Gestion des indicateurs"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",onClick:S,children:v.jsx(La,{})})}),v.jsx(pr,{title:"Créer un nouvel indicateur",children:v.jsx(nt,{size:"default",type:"primary",icon:v.jsx(NS,{}),onClick:I,children:"Ajouter un indicateur"})})]})]}),v.jsx("div",{className:"indicators-filters",children:v.jsxs(Mi,{children:[v.jsx(zn,{span:12,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",gap:10},children:v.jsxs("div",{className:"indicators-search text-search",children:[v.jsx("span",{style:{minWidth:161},children:"Filtre"}),v.jsx(mt,{className:"search-input",placeholder:"Recherche",value:E,onChange:M,style:{width:"50%"}})]})})}),v.jsx(zn,{span:12,children:v.jsxs("div",{className:"indicators__table-check",children:[v.jsx("span",{children:"Afficher uniquement :"}),v.jsxs("div",{className:"indicators__table-single-check",children:[v.jsx(Va,{size:"small",checked:f,onChange:y}),v.jsx("span",{children:"Indicateurs CTI"})]}),v.jsxs("div",{className:"indicators__table-single-check",children:[v.jsx(Va,{size:"small",checked:g,onChange:C}),v.jsx("span",{children:"Indicateurs actifs"})]})]})})]})}),v.jsx("div",{className:"component-content",children:v.jsxs("div",{className:"indicators-tab",children:[v.jsx(bh,{className:"tables-table",axis:"x",handleComponent:{bottom:v.jsx("div",{className:"resize-handle",style:{marginBottom:8},children:v.jsx("span",{children:"…"})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:"100%",height:l},onResizeStop:R,children:v.jsx(ept,{tables:t.tables,selectedRow:a,handleSelectedRow:w,module:e,tableData:c})}),r&&v.jsx(jwe,{indicator:o,setIndicator:s,showEditor:r,tables:t.tables,themes:t.themes,handleCloseEditor:B,module:e})]})})]}):v.jsx("div",{className:"loading-wrapper",children:v.jsx(Ya,{style:{height:"auto"}})})};Ywe.propTypes={module:U.string};const tpt=te.memo(Ywe);function rpt(e){var t={};const r=e.getElementsByTagName("HTTP_SERVICE")[0],n=r.getElementsByTagName("SESSION")[0];let a={};for(let d=0;d<n.getElementsByTagName("PROPERTY").length;d++){const f=n.getElementsByTagName("PROPERTY")[d];a[f.getAttribute("name")]=f.getAttribute("value")}t.session=a;const i=r.getElementsByTagName("ENVIRONMENT")[0];let o={};for(let d=0;d<i.getElementsByTagName("PROPERTY").length;d++){const f=i.getElementsByTagName("PROPERTY")[d];o[f.getAttribute("name")]=f.getAttribute("value")}t.env=o;const s=r.getElementsByTagName("LICENCES")[0];let l=[];l.maxPc=r.getElementsByTagName("LICENCES")[0].getAttribute("maxPC");for(let d=0;d<s.getElementsByTagName("LICENCE").length;d++){const f=s.getElementsByTagName("LICENCE")[d];let h={};h.file=f.getAttribute("file"),h.machineName=f.getAttribute("machineName"),h.machineNameOK=f.getAttribute("machineNameOK"),h.finess=f.getAttribute("finess"),h.finessOK=f.getAttribute("finessOK"),h.softCode=f.getAttribute("softCode"),h.softCodeOK=f.getAttribute("softCodeOK"),h.endDate=f.getAttribute("endDate"),h.endDateOK=f.getAttribute("endDateOK"),h.key=d,l.push(h)}t.licences=l;const A=r.getElementsByTagName("MODULES")[0],c=ft(A,"MODULE");let u=[];return Object.values(c).forEach((d,f)=>{let h=lr(d);h.key=f,u.push(h)}),t.modules=u,t}const aU=()=>async function(e,t){const r=await en("modules/outils/php/getLicences.php",{});let n=rpt(r),a=Do.deflate(JSON.stringify(n),{to:"string"});Na.setItem("licences",a),e(Ohe(n)),e(fy(!1))},npt=()=>async function(e,t){e(fy(!0));const r=await Na.getItem("licences");if(r===null)e(aU());else try{let n=JSON.parse(Do.inflate(r,{to:"string"}));e(Ohe(n)),e(fy(!1))}catch(n){console.log(n)}},apt=e=>async function(t,r){t(fy(!0));let n=new FormData;n.append("licenceKey",e);let a=ma(),i=await ai({method:"post",url:a+"modules/outils/php/addLicence.php",data:n,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});const s=ud(i.data).getElementsByTagName("HTTP_SERVICE")[0],l=ft(s,"RETURN")[0],A=lr(l);t(fy(!1)),A.code==="OK"?t(aU()):t(zhe("Une erreur est survenue pendant l'ajout de la licence"))},ipt=[{title:"Modules installés",dataKey:"label",key:"label",width:250,dataGetter:({columns:e,column:t,columnIndex:r,rowData:n,rowIndex:a})=>v.jsxs("div",{children:[n.label," ",v.jsx("span",{style:{float:"right"},children:n.licenceOK==="OK"?v.jsx(cy,{twoToneColor:"#52c41a"}):v.jsx(HI,{twoToneColor:"#cf1322"})})]})},{title:"Code",dataKey:"softCode",key:"softCode",width:250},{title:"Expiration",dataKey:"licenceDate",key:"licenceDate",width:250},{title:"Type",dataKey:"licenceType",key:"licenceType",width:250}],opt=[{title:"Licences serveur installées",dataKey:"machineName",key:"machineName",width:250},{title:"FINESS",dataKey:"finess",key:"finess",width:250,dataGetter:({columns:e,column:t,columnIndex:r,rowData:n,rowIndex:a})=>v.jsxs("div",{children:[n.finess,v.jsx("span",{style:{float:"right"},children:n.finessOK==="true"?v.jsx(cy,{twoToneColor:"#52c41a"}):v.jsx(HI,{twoToneColor:"#cf1322"})})]})},{title:"Module",dataKey:"softCode",key:"softCode",width:250},{title:"Date expiration",dataKey:"endDate",key:"endDate",width:250,dataGetter:({columns:e,column:t,columnIndex:r,rowData:n,rowIndex:a})=>v.jsxs("div",{children:[n.endDate,v.jsx("span",{style:{float:"right"},children:n.endDateOK==="true"?v.jsx(cy,{twoToneColor:"#52c41a"}):v.jsx(HI,{twoToneColor:"#cf1322"})})]})}],Lwe=()=>{const[e,t]=m.useState(!1),[r,n]=m.useState(""),[a,i]=m.useState(!1),o=Pr(),s=Ye(h=>h.cti.licences.data),l=Ye(h=>h.cti.licences.addError);m.useEffect(()=>{l&&(Tn({type:"error",message:"Erreur",description:l}),o(zhe(null)))},[l,o]);const A=()=>{o(aU())},c=h=>{t(h)},u=()=>{i(!a)},d=()=>{o(apt(r)),n(""),u()},f=h=>{n(h.target.value)};return s?v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Gestion des licences"})}),v.jsx(va,{open:a,onCancel:u,onOk:d,okText:"Ajouter",cancelText:"Annuler",title:"Ajouter une licence",children:v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Clé de la licence"}),v.jsx(mt,{value:r,onChange:f})]})})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Gestions des licences"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",onClick:A,children:v.jsx(La,{})})}),v.jsx(nt,{type:"primary",onClick:u,children:"Ajouter une licence"})]})]}),v.jsx("div",{className:"licences-info",children:v.jsxs(Mi,{children:[v.jsxs(zn,{span:12,children:[v.jsxs("div",{className:"licences-info-row",children:[v.jsx("span",{children:"FINESS :"}),s.env.FINESS]}),v.jsxs("div",{className:"licences-info-row",children:[v.jsx("span",{children:"Serveur :"}),s.session.SERVERNAME]})]}),v.jsx(zn,{span:12,children:v.jsxs("div",{className:"indicators-single-check",children:[v.jsx(Va,{size:"small",className:"switch",checked:e,onChange:c}),v.jsx("span",{children:"Afficher les licences installées"})]})})]})}),v.jsx("div",{className:"component-content",children:e?v.jsx($r,{columns:opt,data:s.licences}):v.jsx($r,{columns:ipt,data:s.modules})})]}):v.jsx("div",{className:"loading-wrapper",children:v.jsx(Ya,{style:{height:"auto"}})})};Lwe.propTypes={};const{confirm:spt}=va,Uwe=({handleKillEditor:e})=>{const[t,r]=m.useState(!1),[n,a]=m.useState(!1),[i,o]=m.useState(!1),[s,l]=m.useState(!1),[A,c]=m.useState(!1),[u,d]=m.useState(!1),[f,h]=m.useState(""),[g,p]=m.useState([]),[E,y]=m.useState([]),[C,w]=m.useState([]),[B,M]=m.useState([]),[I,S]=m.useState([]),[R,b]=m.useState(null),[Q,D]=m.useState(""),F=Ye(ve=>ve.cti.components.listesManager.listeEditor),N=Ye(ve=>ve.cti.content.moduleId.replace("iCTI_","")),k=Ye(ve=>ve.cti.content),O=Ye(ve=>ve.cti.settings.data.session),P=Pr(),[z]=_e.useForm();m.useEffect(()=>{F.liste&&(b(F.liste),c(!!parseInt(F.liste.contenu_by_code)))},[F]),m.useEffect(()=>{if(R){const ve=V(),Te=Object.values(F.liste.oids).map(Be=>Be.oid);y(ve.filter(Be=>Te.includes(Be.oid))),p(ve),ee()}},[R,s,A]),m.useEffect(()=>{if(g){const ve=g.filter(Te=>E.findIndex(Be=>Be.key===Te.key)===-1);w(it(ve,!0))}},[Q,g,f,E,s]);const j=Jv((R==null?void 0:R.is_cti)==="1",O);if(!R)return v.jsx("div",{className:"loading-wrapper",children:v.jsx(Ya,{style:{height:"auto"}})});function V(){return Object.values(F.liste.records).map((ve,Te)=>({key:ve.oid,oid:ve.oid,code:ve.code,texte:ve.texte,complement:ve.complement,utilise:ve.utilise,disabled:!!A}))}const L=()=>{d(!1),e()},K=ve=>{console.log("Failed:",ve)},J=async(ve,Te)=>{o(!0);let Be={...ve};Be.liste_id=R.oid,Be.table_id=R.table_id,Be.liste_schema=F.liste.table_name==="t_finess"?"base":k.moduleId.replace("iCTI_",""),Be.schema=F.liste.table_name==="t_finess"?"base":k.moduleId.replace("iCTI_",""),Be.softCode="iCTI_"+k.moduleId.replace("iCTI_",""),Be.to_oids=A?"":E.map(ht=>ht.oid).join(","),Be.database="RH000004",Be.is_cti=ve.is_cti?"1":"0",Be.est_partagee_modification=ve.est_partagee_modification?"1":"0",Be.show_omit=ve.show_omit?"1":"0",Be.contenu_non_replicable_ailleurs=ve.contenu_non_replicable_ailleurs?"1":"0",Be.contenu_by_code=ve.contenu_by_code?"1":"0",Be.include_code||(Be.include_code=""),Be.exclude_code||(Be.exclude_code=""),Be.action=Te;const Ge=!!parseInt(R.contenu_by_code);Be.liste_id!=="-1"&&(Be.contenu_by_code!==Ge||Be.contenu_by_code===!1)&&{...Be},P(Yct(Be)),o(!1),L()},Y=()=>{c(!A),ee()},W=()=>{Uct(`iCTI_${N}`,F.liste_id,F.liste.table_name)},q=async()=>{r(!0);let ve={};ve.schema=k.moduleId.replace("iCTI_",""),ve.table_id=R.table_id,ve.exclude_code=z.getFieldValue("exclude_code"),ve.include_code=z.getFieldValue("include_code");let Te=await i1e(ve);Se(Te),r(!1)},ee=()=>{if(A){const Te=(z.getFieldValue("include_code")+" "+z.getFieldValue("exclude_code")).trim()!=="";a(Te)}else a(!1)},ae=()=>{spt({title:"Attention",icon:v.jsx(Sv,{}),content:"Confirmez-vous la suppresion de la liste ?",maskClosable:!0,centered:!0,onOk(){J({},"delete")}})},ne=()=>{d(!0)},ce=ve=>{D(ve.target.value)},ue=ve=>{h(ve.target.value);let Te=V();Te=tt(Te,ve.target.value),p(Te)},ge=()=>{c(!1),z.setFieldsValue({contenu_by_code:!1})},Se=ve=>{if(d(!0),ve){const Te=g.filter(Ge=>ve.includes(Number(Ge.oid))),Be=g.filter(Ge=>!ve.includes(Number(Ge.oid)));w(it(Be)),y(it(Te))}else{const Te=g.filter(Ge=>B.includes(Ge.key)),Be=g.filter(Ge=>!B.includes(Ge.key));y(it([...E,...Te])),w(Be),M([])}},ye=()=>{d(!0);let ve=E.filter(Ge=>!I.includes(Ge.key)),Te=E.filter(Ge=>I.includes(Ge.key)),Be=it([...C,...Te]);y(ve),w(Be),S([])},pe=ve=>{let Te=[...B];Array.isArray(ve)?Te=Te.concat(ve):Te.includes(ve)?Te=Te.filter(Be=>Be!==ve):Te.push(ve),M(Te)},Qe=ve=>{let Te=[...I];Array.isArray(ve)?Te=Te.concat(ve):Te.includes(ve)?Te=Te.filter(Be=>Be!==ve):Te.push(ve),S(Te)},Ue=()=>{B.length||I.length?(M([]),S([])):M(C.map(ve=>ve.key))};function tt(ve,Te,Be){let Ge=Te.match(/\w*\*?/gm);return ve.filter(We=>Ge.includes(We.code)?!0:Ge.length!==1&&Ge[0]!==""?Ge.some(Ke=>{if(Ke!==""&&Ke.slice(-1)==="*"){let Xe=Ke.slice(0,-1);return We.code.startsWith(Xe)}else return!1}):!0)}function it(ve,Te=!1){let Be=ve.sort((Ge,ht)=>Ge.code.localeCompare(ht.code));return Te&&(Be=Fh(Be,Q,["code","texte","complement"]),Be=tt(Be,f),s===!0&&(Be=Be.filter(Ge=>Ge.utilise==="O"))),Be}let we=[{dataKey:"code",key:"code",title:R.table_texte,sorter:(ve,Te)=>ve.code.localeCompare(Te.code),width:200,resizable:!0},{dataKey:"texte",key:"texte",title:"Texte",sorter:(ve,Te)=>ve.texte.localeCompare(Te.texte),width:200,resizable:!0},{dataKey:"complement",key:"complement",title:"Complement",sorter:(ve,Te)=>ve.complement.localeCompare(Te.complement),width:200,resizable:!0},{dataKey:"utilise",key:"utilise",title:"Ref",sorter:(ve,Te)=>ve.utilise.localeCompare(Te.utilise),width:200,resizable:!0}];return v.jsx("div",{className:"list-editor",children:v.jsxs(_e,{id:"formListEditor",name:"basic",form:z,style:{height:"100%",display:"flex",flexFlow:"column"},initialValues:{texte:R.texte,code:R.code,table:R.table_texte,chapitre:R.chapitre,include_code:R.include_code,exclude_code:R.exclude_code,is_cti:!!parseInt(R.is_cti),est_partagee_modification:!!parseInt(R.est_partagee_modification),show_omit:!!parseInt(R.show_omit),contenu_non_replicable_ailleurs:!!parseInt(R.contenu_non_replicable_ailleurs),contenu_by_code:!!parseInt(R.contenu_by_code)},size:"small",onFinish:ve=>J(ve,"save"),onValuesChange:ne,onFinishFailed:K,disabled:j,children:[v.jsxs("div",{className:"component-header",children:[v.jsx(nt,{type:"text",style:{fontSize:"16px",lineHeight:"16px"},onClick:L,disabled:!1,children:v.jsx(UI,{})}),v.jsx("div",{className:"header-title",children:"Gestion des listes"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(nt,{size:"default",icon:v.jsx(cde,{}),onClick:()=>{const ve=z.getFieldsValue();_ut(ve,R)},children:"Exporter"},"formExcelExportBtn"),O.ISROLECTI&&v.jsx(nt,{size:"default",icon:v.jsx(bv,{}),onClick:W,children:"SQL"},"formSQLExportBtn"),v.jsx(nt,{size:"default",icon:v.jsx(Ba,{}),onClick:ae,children:"Supprimer"},"formDeleteBtn"),u&&v.jsx(nt,{size:"default",type:"primary",htmlType:"submit",icon:v.jsx(Gs,{}),loading:i,children:"Enregistrer"},"formSubmitbtn")]})]}),v.jsxs("div",{className:"listes-description",children:[v.jsxs("div",{className:"form-column",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Code:"}),v.jsx(_e.Item,{name:"code",extra:"Id interne : "+R.oid,children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Texte:"}),v.jsx(_e.Item,{name:"texte",children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Chapitre:"}),v.jsx(_e.Item,{name:"chapitre",extra:`Table: ${R.table_texte}`,children:v.jsx(mt,{})})]})]}),v.jsxs("div",{className:"form-column checkbox-col",children:[O.ISROLECTI&&v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Liste CTI"}),v.jsx(_e.Item,{valuePropName:"checked",name:"is_cti",children:v.jsx(Rr,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Modification partagée"}),v.jsx(_e.Item,{valuePropName:"checked",name:"est_partagee_modification",children:v.jsx(Rr,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Liste sauf possible"}),v.jsx(_e.Item,{valuePropName:"checked",name:"show_omit",children:v.jsx(Rr,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Contenu non réplicable ailleurs"}),v.jsx(_e.Item,{valuePropName:"checked",name:"contenu_non_replicable_ailleurs",onClick:ge,children:v.jsx(Rr,{})})]})]}),v.jsxs("div",{className:"form-column code-col",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Saisie par code:"}),v.jsx(_e.Item,{valuePropName:"checked",name:"contenu_by_code",children:v.jsx(Va,{onChange:Y})}),v.jsx(nt,{disabled:!n||!A,style:{marginLeft:"15px"},type:"secondary",onClick:q,loading:t,children:"Appliquer"})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Codes inclus:"}),v.jsx(_e.Item,{name:"include_code",children:v.jsx(mt,{disabled:!A,onChange:ee})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Codes exclus:"}),v.jsx(_e.Item,{name:"exclude_code",children:v.jsx(mt,{disabled:!A,onChange:ee})})]})]})]}),v.jsx("div",{className:"component-content",children:v.jsxs("div",{className:"classes-editor-content",children:[v.jsx("div",{className:"selected-items-table",children:v.jsx($r,{columns:we,data:E,fixed:!1,shiftMulti:!0,selectedRows:I,onRowSelect:Qe})}),v.jsxs("div",{className:"transfer-actions",children:[v.jsx(nt,{type:"link",onClick:()=>Se(),disabled:!B.length||A||j,children:v.jsx(FS,{})}),v.jsx(nt,{type:"link",onClick:()=>ye(),disabled:!I.length||A||j,children:v.jsx(tY,{})})]}),v.jsxs("div",{className:"available-items",children:[v.jsxs("div",{className:"available-items-options",children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Recherche par texte:"}),v.jsx(mt,{value:Q,onChange:ce})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Recherche par code:"}),v.jsx(mt.TextArea,{value:f,onChange:ue})]})}),v.jsxs("div",{className:"form-row",children:[v.jsx(nt,{type:"primary",onClick:Ue,children:"De/Sélectionner"}),v.jsx("span",{style:{margin:"0px 12px"},children:"Référencés uniquement"}),v.jsx(Rr,{checked:s,onChange:ve=>l(ve.target.checked)})]})]}),v.jsx("div",{className:"available-items-table",children:v.jsx($r,{columns:we,data:C,fixed:!1,shiftMulti:!0,selectedRows:B,onRowSelect:pe})})]})]})})]},R.oid)})};Uwe.propTypes={handleKillEditor:U.func};const lpt=te.memo(Uwe),{DirectoryTree:Lne}=SA,Hwe=({module:e})=>{const[t,r]=m.useState(!1),[n,a]=m.useState(!1),[i,o]=m.useState([]),[s,l]=m.useState([]),[A,c]=m.useState(null),[u,d]=m.useState(""),[f,h]=m.useState([]),[g,p]=m.useState([]),E=Ye(j=>j.cti.components.listesManager),y=Ye(j=>j.cti.components.listesManager.loading),C=Ye(j=>j.cti.content),w=Ye(j=>j.cti.menu.item),B=Ye(j=>j.router.location.query),M=Pr(),I=_c();m.useEffect(()=>{M(Z0(e))},[e,M]),m.useEffect(()=>{let j=z(k(E.data.tables));o(j)},[u,E.data.tables]),m.useEffect(()=>{if(B&&Object.keys(E.data.tables).length&&B.liste&&n===!1){const j=B.liste,L=P(Object.values(E.data.tables)).find(K=>K.code===j);if(L){const K={table_id:L.table_id,liste_id:L.liste_id,schema:L.schema};M(Eee(C,K)),a(!0)}else I.replace({search:""})}},[E.data,B,n,C,M,I]),m.useEffect(()=>{o(k(E.data.tables)),l(k(E.data.refTables))},[E]),m.useEffect(()=>{const j=X5(i);h(j)},[i]),m.useEffect(()=>{if(u==="")p([]);else{let j=[];f.forEach(V=>{V.title.toLowerCase().includes(u.toLowerCase())&&(j=j.concat(jtt(V.key,i)))}),j=j.filter((V,L,K)=>V&&K.indexOf(V)===L),p(j)}},[u,i,f]);const S=()=>{I.replace({search:""}),a(!1),M(e8e()),M(r8e()),M(Z0(C.moduleId))},R=(j,V)=>{const L={table_id:V.node.table_id,liste_id:V.node.liste_id,treeSelectedKey:V.node.key,schema:V.node.schema};L.liste_id&&(I.push({search:`?liste=${V.node.code}`}),a(!0),M(Eee(C,L)))},b=j=>{j&&M(Lct(j,C.moduleId,w.name))},Q=()=>{M(Z0(C.moduleId))},D=()=>{r(!t)},F=j=>{d(j.target.value)},N=j=>{p(j)};function k(j,V="",L=!1){let K=[];return Object.values(j).forEach((J,Y)=>{let W,q;const ee=(V!==""?V+"_":"")+Ka(J.texte)+Y.toString();let ae={title:J.texte,key:J.table_id?Y:ee,table_id:J.table_id};J.listes!==void 0&&(W=O(J.listes,ee)),J.groups!==void 0&&(q=k(J.groups,ee,L)),W!==void 0&&q!==void 0?ae.children=W.concat(q):W!==void 0?ae.children=W:ae.children=q,K.push(ae)}),K.sort((J,Y)=>J.title.localeCompare(Y.title,void 0,{numeric:!0,sensitivity:"base"}))}function O(j,V,L){let K=[];return Object.values(j).forEach((J,Y)=>{let W={title:J.texte,key:V+"_"+Ka(J.texte),isLeaf:!0,table_id:J.table_id,liste_id:J.liste_id,code:J.code,schema:J.schema};J.liste_id==="-1"?W.icon=v.jsx(gh,{}):W.icon=v.jsx(dy,{}),K.push(W)}),K.sort((J,Y)=>Number(J.liste_id)-Number(Y.liste_id))}function P(j){let V=[];return Object.values(j).forEach(L=>{L.groups&&Object.values(L.groups).forEach(K=>{K.listes&&(V=[...V,...Object.values(K.listes)]),K.groups&&Object.values(K.groups).forEach(J=>{J.listes&&(V=[...V,...Object.values(J.listes)])})})}),V}function z(j,V){return j}return n===!0?v.jsx(lpt,{handleKillEditor:S}):v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Gestion des listes"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Gestion des listes"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(mt,{placeholder:"Recherche",value:u,onChange:F}),v.jsx(nt,{onClick:Q,icon:v.jsx(Wf,{}),loading:y,children:"Actualiser"},"refreshBtn"),v.jsx(nt,{style:{width:"148.5px"},type:t?"secondary":"primary",onClick:D,icon:v.jsx(dy,{}),children:t?"Cacher références":"Afficher références"},"showReferencesBtn")]})]}),v.jsxs("div",{className:"component-content",children:[v.jsxs("div",{className:"listes-manager-listes",children:[y?v.jsx("div",{className:"listes-spin-loader",children:v.jsx(TR,{})}):null,v.jsx(Lne,{onSelect:R,treeData:i,expandedKeys:g,onExpand:N})]}),v.jsxs("div",{className:"cti-listes-manager-references",style:{display:t?"flex":"none"},children:[v.jsxs("div",{className:"references-header",children:[v.jsx("h3",{children:"Listes de références"}),v.jsx(nt,{style:{marginLeft:"10px"},size:"small",onClick:()=>b(A),icon:v.jsx(Rv,{}),disabled:!A,children:"Importer"},"importBtn")]}),v.jsx("div",{className:"references-tree",children:v.jsx(Lne,{treeData:s,onSelect:(j,V)=>{let L=V.node;L.table_id&&L.isLeaf?c(V.node.liste_id):c(null)}})})]})]})]})};Hwe.propTypes={module:U.string};const Apt=te.memo(Hwe),Gwe=()=>{const[e,t]=m.useState(!1),r=Ye(o=>o.cti.settings.data.session),[n]=_e.useForm(),a=async o=>{const s=r.CONNECTEDUSER;try{await ant(s,o.password,o.newPassword),Tn({type:"success",message:"Succès",description:"Modification du mot de passe réussie !"}),n.resetFields()}catch{Tn({type:"error",message:"Erreur",description:"Une erreur est survenue pendant la mise à jour du mot de passe..."})}},i=()=>{t(!0)};return v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Modification du mot de passe"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("h1",{className:"header-title",children:"Modification du mot de passe"}),v.jsx("div",{className:"header-actions",children:v.jsx(dv,{handleClick:()=>n.submit(),disabledAction:!e,toolTipTitle:"Enregistrer"})})]}),v.jsx("div",{className:"component-content",children:v.jsx("div",{className:"password-form",children:v.jsxs(_e,{form:n,onValuesChange:i,onFinish:a,children:[v.jsx("div",{className:"row-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Mot de passe actuel :"}),v.jsx(_e.Item,{name:"password",rules:[{required:!0,message:"Veuillez renseigner ce champ"}],children:v.jsx(mt.Password,{})})]})}),v.jsx("div",{className:"row-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Nouveau mot de passe :"}),v.jsx(_e.Item,{name:"newPassword",rules:[{required:!0,message:"Veuillez renseigner ce champ"}],children:v.jsx(mt.Password,{})})]})}),v.jsx("div",{className:"row-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Confirmer le nouveau mot de passe :"}),v.jsx(_e.Item,{name:"confirmPassword",rules:[{required:!0,message:"Veuillez renseigner ce champ"},({getFieldValue:o})=>({validator(s,l){return!l||o("newPassword")===l?Promise.resolve():Promise.reject("Les mots de passes ne sont pas identiques !")}})],children:v.jsx(mt.Password,{})})]})})]})})})]})};Gwe.propTypes={};const VC=(e=!1)=>async function(t,r){t($I(!0));const a={softCode:r().cti.content.moduleId},i=await en("modules/base/php/getRapports.php",a),{reports:o,refReports:s,comboGroup:l,comboReport:A,comboCondition:c,conditions:u,comboType:d}=Ngt(i);if(t(p8e(o,s,l,A,c,u,d)),t($I(!1)),e){const f=await en("modules/base/php/httpService_rapportsManager_getLastViews.php");let h=Ogt(f);t(C8e(h))}},cpt=e=>async function(t,r){t($I(!0));const a={softCode:r().cti.content.moduleId,oid:e},i=await en("modules/base/php/httpService_rapportsManager_getRapport.php",a),o=kgt(i);t(v8e(o)),t($I(!1))},upt=async(e,t)=>{await pc("modules/base/php/httpService_rapportsManager_getSqlScript.php",{softCode:e,rapports:t})},Une=(e,t,r,n=!1)=>async function(a,i){await en("modules/base/php/setRapport.php",{action:n?"copy":"delete",softCode:e,xmldef:t}),a(n===!0?VC():y8e(r))},dpt=(e,t,r)=>async function(n,a){const i={action:"updateGeneralSettings",softCode:e,xmldef:t};try{await en("modules/base/php/setRapport.php",i),n(E8e(r))}catch{throw new Error("Erreur lors de la mise à jour des paramètres")}},fpt=(e,t)=>async function(r,n){const a={action:"refcopy",softCode:e,refoid:t};try{await en("modules/base/php/setRapport.php",a),r(VC())}catch{throw new Error("Erreur lors de la mise à jour des rapports")}},hpt=e=>async function(t,r){t(eb(!0));const n={option:"calculEssentiels",context:e};try{await en("modules/outils/php/execSystemExploit.php",n),setTimeout(()=>{t(iU("iCTI_aggregateCtiIndicators"))},1e4)}catch{throw new Error("Erreur lors de la mise à jour des rapports")}},iU=e=>async function(t,r){const n={job:e};let a="pending";try{const i=await en("modules/outils/php/httpService_exploitManager_getExecStatus.php",n);a=Pgt(i),a===""?t(eb(!1)):(t(eb(!0)),setTimeout(()=>{t(iU("iCTI_aggregateCtiIndicators"))},1e4))}catch{throw new Error("Erreur lors de la verification du statut du job")}},gpt=(e,t)=>async function(r,n){const a={xmldef:e,softCode:t,action:"save"};try{await en("modules/base/php/setRapport.php",a),r(VC())}catch{throw new Error("Erreur lors de la mise à jour du rapport")}},ppt={oid:"-1",code:"",texte:"",is_cti:"0",is_essentiel:"1",serie_entete_1:"",serie_entete_2:"",serie_entete_3:"",serie_entete_4:"",serie_entete_5:"",serie_entete_6:"",serie_entete_7:"",serie_entete_8:"",serie_entete_9:"",colonnes_essentiel:"ENTETE_ETENDUE|VAP101|VAP100|ECP100|TDP100|VAM112|VAM100|ECM100|TDM100|VAP201|VAP200|ECP200|TDP200|VAM212|VAM200|ECM200|TDM200",colonnes_essentiel_style:"",is_hide:"1",group_id:"13",group_texte:"Tableau de bord opérationnel",rapport_template_id:"0",is_template_updatable:"0",label:"",rapport_indicateur_condition_id_1:"0",rapport_indicateur_condition_id_2:"0",rapport_indicateur_condition_id_3:"0",rapport_indicateur_condition_id_4:"0",rapport_indicateur_condition_id_5:"0",sections:[],type_rapport:"ESSENTIEL"},vpt={key:0,numero_rubrique:"",indicateur_id:"",indicateur_texte:"",is_hide:"0",entete:"",indicateur_entete:"",entete_etendue:"",indicateur_entete_etendue:"",description:"",indicateur_description:"",output_format:"",indicateur_output_format:"",width:"0",indicateur_width:"0",picto_enabled:"",positif_is_good:"",periode_reference:"",row_height:"0",padding:"0",font_size:"0",font_weight:"",color:"",background_color:"",border_thickness:"0",viewlink:"",viewlink_label:"",viewlink_param:"",indicateur_associe_id:"0",indicateur_associe_texte:"",entete_etendue_2:"",indicateur_entete_etendue_2:"",description_2:"",indicateur_description_2:"",output_format_2:"",indicateur_output_format_2:"",picto_enabled_2:"",positif_is_good_2:"",indicateur_associe_3_id:"0",entete_etendue_3:"",description_3:"",output_format_3:"",picto_enabled_3:"",positif_is_good_3:"",indicateur_associe_4_id:"0",entete_etendue_4:"",description_4:"",output_format_4:"",picto_enabled_4:"",positif_is_good_4:"",indicateur_associe_5_id:"0",entete_etendue_5:"",description_5:"",output_format_5:"",picto_enabled_5:"",positif_is_good_5:"",indicateur_associe_6_id:"0",entete_etendue_6:"",description_6:"",output_format_6:"",picto_enabled_6:"",positif_is_good_6:"",indicateur_associe_7_id:"0",entete_etendue_7:"",description_7:"",output_format_7:"",picto_enabled_7:"",positif_is_good_7:"",indicateur_associe_8_id:"0",entete_etendue_8:"",description_8:"",output_format_8:"",picto_enabled_8:"",positif_is_good_8:"",indicateur_associe_9_id:"0",entete_etendue_9:"",description_9:"",output_format_9:"",picto_enabled_9:"",positif_is_good_9:"",base_nationale:"0",base_nationale_qualifiee:"0",specific_viewlink:"",specific_viewlink_label:"",specific_viewlink_param:"",indicateur_condition_id_1:"0",indicateur_condition_id_2:"0",indicateur_condition_id_3:"0",indicateur_condition_id_4:"0",indicateur_condition:"",field_tag:"",hide_on_zero_field:"",calc_formula:"",erase_rapport_indicateur_condition:"0"},Hne=["ENTETE_ETENDUE","VAP101","VAP100","ECP100","TDP100","VAM112","VAM100","ECM100","TDM100","VAP201","VAP200","ECP200","TDP200","VAM212","VAM200","ECM200","TDM200"],mpt=e=>{let t=[];for(let r=1;r<10;r++)e.forEach(n=>{var i;let a=n.key;if(r>1&&n.key==="ENTETE_ETENDUE")a=`${a}_${r}`;else if(r>1){const s=(i=[...a.matchAll(/(?<prefix>[A-Z]{3})(?<serie>\d)(?<rest>.*)/gm)][0])==null?void 0:i.groups;a=`${s.prefix}${r}${s.rest}`}t.push({...n,key:a,title:r===1?n.title:`${n.title} (${r})`,serie:r})});return t},Ept=[{title:"Entete ligne",indicateur:1,key:"ENTETE_ETENDUE",selected:"1",position:0},{title:"Cumul période Année",indicateur:1,key:"VAP100",selected:"1",position:0},{title:"Cumul période Année - 1",indicateur:1,key:"VAP101",selected:"0",position:0},{title:"Cumul période Année - 2",indicateur:1,key:"VAP102",selected:"1",position:0},{title:"Cumul 12 derniers mois",indicateur:1,key:"VAZ100",selected:"1",position:0},{title:"Cumul 4 derniers trimestres",indicateur:1,key:"VAQ100",selected:"1",position:0},{title:"Budget Année période ",indicateur:1,key:"BUP100",selected:"1",position:0},{title:"Budget Année total",indicateur:1,key:"BUA100",selected:"1",position:0},{title:"Ecart période Année / Année - 1",indicateur:1,key:"ECP100",selected:"1",position:0},{title:"Tendance période Année / Année - 1",indicateur:1,key:"TDP100",selected:"1",position:0},{title:"% atteinte budget Année période ",indicateur:1,key:"BTP100",selected:"1",position:0},{title:"% atteinte budget Année total",indicateur:1,key:"BTA100",selected:"1",position:0},{title:"Ecart budget Année période ",indicateur:1,key:"BEP100",selected:"1",position:0},{title:"Ecart budget Année total",indicateur:1,key:"BEA100",selected:"1",position:0},{title:"Ecart Moyen Année total",indicateur:1,key:"BNA100",selected:"1",position:0},{title:"Cumul période Exercice",indicateur:1,key:"VAY100",selected:"1",position:0},{title:"Cumul période Exercice - 1",indicateur:1,key:"VAY101",selected:"1",position:0},{title:"Cumul période Exercice - 2",indicateur:1,key:"VAY102",selected:"1",position:0},{title:"Budget Exercice période",indicateur:1,key:"BUY100",selected:"1",position:0},{title:"Budget Exercice total",indicateur:1,key:"BUX100",selected:"1",position:0},{title:"Ecart période Exercice / Exercice - 1",indicateur:1,key:"ECY100",selected:"1",position:0},{title:"Tendance période Exercice / Exercice - 1",indicateur:1,key:"TDY100",selected:"1",position:0},{title:"% atteinte Budget Exercice periode",indicateur:1,key:"BTY100",selected:"1",position:0},{title:"% atteinte Budget Exercice total",indicateur:1,key:"BTX100",selected:"1",position:0},{title:"Ecart Budget Exercice periode",indicateur:1,key:"BEY100",selected:"1",position:0},{title:"Ecart Budget Exercice total",indicateur:1,key:"BEX100",selected:"1",position:0},{title:"Budget mois",indicateur:1,key:"BUM100",selected:"1",position:0},{title:"Cumul mois",indicateur:1,key:"VAM100",selected:"1",position:0},{title:"Cumul mois Année - 1",indicateur:1,key:"VAM112",selected:"1",position:0},{title:"Cumul mois Année - 2",indicateur:1,key:"VAM124",selected:"1",position:0},{title:"Ecart mois Année / Année - 1",indicateur:1,key:"ECM100",selected:"1",position:0},{title:"Tendance mois Année / Année - 1",indicateur:1,key:"TDM100",selected:"1",position:0},{title:"Cumul mois - 1",indicateur:1,key:"VAM101",selected:"1",position:0},{title:"Ecart Mois / Mois - 1",indicateur:1,key:"ECM101",selected:"1",position:0},{title:"Tendance mois Mois / Mois - 1",indicateur:1,key:"TDM101",selected:"1",position:0},{title:"Cumul mois - 2",indicateur:1,key:"VAM102",selected:"1",position:0},{title:"Cumul mois - 3",indicateur:1,key:"VAM103",selected:"1",position:0},{title:"Cumul mois - 4",indicateur:1,key:"VAM104",selected:"1",position:0},{title:"Cumul mois - 5",indicateur:1,key:"VAM105",selected:"1",position:0},{title:"Cumul mois - 6",indicateur:1,key:"VAM106",selected:"1",position:0},{title:"Cumul mois - 7",indicateur:1,key:"VAM107",selected:"1",position:0},{title:"Cumul mois - 8",indicateur:1,key:"VAM108",selected:"1",position:0},{title:"Cumul mois - 9",indicateur:1,key:"VAM109",selected:"1",position:0},{title:"Cumul mois - 10",indicateur:1,key:"VAM110",selected:"1",position:0},{title:"Cumul mois - 11",indicateur:1,key:"VAM111",selected:"1",position:0},{title:"Evolution mensuelle Année",indicateur:1,key:"DAM100",selected:"1",position:0},{title:"Evolution mensuelle Exercice",indicateur:1,key:"DXM100",selected:"1",position:0},{title:"Evolution mensuelle 12 derniers mois",indicateur:1,key:"DZM100",selected:"1",position:0},{title:"Evolution mensuelle Budget Année",indicateur:1,key:"BAM100",selected:"1",position:0},{title:"Evolution mensuelle Budget Exercice",indicateur:1,key:"BXM100",selected:"1",position:0},{title:"Evolution mensuelle Budget 12 derniers mois",indicateur:1,key:"BZM100",selected:"1",position:0},{title:"Evolution mens. Année (Valeur+Budget)",indicateur:1,key:"FAM100",selected:"1",position:0},{title:"Evolution mens. Exercice (Valeur+Budget)",indicateur:1,key:"FXM100",selected:"1",position:0},{title:"Evolution mens. 12 derniers mois (Valeur+Budget)",indicateur:1,key:"FZM100",selected:"1",position:0},{title:"Cumul trimestre",indicateur:1,key:"VAT100",selected:"1",position:0},{title:"Cumul trimestre Année - 1",indicateur:1,key:"VAT112",selected:"1",position:0},{title:"Cumul trimestre Année - 2",indicateur:1,key:"VAT124",selected:"1",position:0},{title:"Ecart trimestre Année / Année - 1",indicateur:1,key:"ECT100",selected:"1",position:0},{title:"Tendance trimestre Année / Année - 1",indicateur:1,key:"TDT100",selected:"1",position:0},{title:"Evolution trimestrielle Année",indicateur:1,key:"DAT100",selected:"1",position:0},{title:"Evolution trimestrielle Exercice",indicateur:1,key:"DXT100",selected:"1",position:0},{title:"Evolution trimestrielle 4 derniers trimestres",indicateur:1,key:"DZT100",selected:"1",position:0},{title:"Evolution quotidienne mois en cours",indicateur:1,key:"VMJ100",selected:"1",position:0},{title:"MCO. Indicateurs nationaux période",indicateur:1,key:"NAP100MCO",selected:"1",position:0},{title:"MCO. Indicateurs nationaux mois",indicateur:1,key:"NAM100MCO",selected:"1",position:0},{title:"MCO. Indicateurs nationaux privé période",indicateur:1,key:"NRP100MCO",selected:"1",position:0},{title:"MCO. Indicateurs nationaux privé mois",indicateur:1,key:"NRM100MCO",selected:"1",position:0},{title:"MCO. Indicateurs nationaux public période",indicateur:1,key:"NUP100MCO",selected:"1",position:0},{title:"MCO. Indicateurs nationaux public mois",indicateur:1,key:"NUM100MCO",selected:"1",position:0}],Pg=mpt(Ept);var wP={};const ypt=Un(dJe);var BP={},Gne;function Cpt(){return Gne||(Gne=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GroupContext=void 0;var n=r(Kn()),a=r(Ua()),i=r(n2()),o=r(OA()),s=r(ni()),l=r(r2()),A=t(cr()),c=us(),u=r(Kwe()),d=function(p,E){var y={};for(var C in p)Object.prototype.hasOwnProperty.call(p,C)&&E.indexOf(C)<0&&(y[C]=p[C]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,C=Object.getOwnPropertySymbols(p);w<C.length;w++)E.indexOf(C[w])<0&&Object.prototype.propertyIsEnumerable.call(p,C[w])&&(y[C[w]]=p[C[w]]);return y},f=e.GroupContext=A.createContext(null),h=function(E,y){var C=E.defaultValue,w=E.children,B=E.options,M=B===void 0?[]:B,I=E.prefixCls,S=E.className,R=E.style,b=E.onChange,Q=d(E,["defaultValue","children","options","prefixCls","className","style","onChange"]),D=A.useContext(c.ConfigContext),F=D.getPrefixCls,N=D.direction,k=A.useState(Q.value||C||[]),O=(0,o.default)(k,2),P=O[0],z=O[1],j=A.useState([]),V=(0,o.default)(j,2),L=V[0],K=V[1];A.useEffect(function(){"value"in Q&&z(Q.value||[])},[Q.value]);var J=function(){return M.map(function(Se){return typeof Se=="string"||typeof Se=="number"?{label:Se,value:Se}:Se})},Y=function(Se){K(function(ye){return ye.filter(function(pe){return pe!==Se})})},W=function(Se){K(function(ye){return[].concat((0,i.default)(ye),[Se])})},q=function(Se){var ye=P.indexOf(Se.value),pe=(0,i.default)(P);ye===-1?pe.push(Se.value):pe.splice(ye,1),"value"in Q||z(pe);var Qe=J();b==null||b(pe.filter(function(Ue){return L.includes(Ue)}).sort(function(Ue,tt){var it=Qe.findIndex(function(ve){return ve.value===Ue}),we=Qe.findIndex(function(ve){return ve.value===tt});return it-we}))},ee=F("checkbox",I),ae="".concat(ee,"-group"),ne=(0,l.default)(Q,["value","disabled"]);M&&M.length>0&&(w=J().map(function(ge){return A.createElement(u.default,{prefixCls:ee,key:ge.value.toString(),disabled:"disabled"in ge?ge.disabled:Q.disabled,value:ge.value,checked:P.includes(ge.value),onChange:ge.onChange,className:"".concat(ae,"-item"),style:ge.style},ge.label)}));var ce={toggleOption:q,value:P,disabled:Q.disabled,name:Q.name,registerValue:W,cancelValue:Y},ue=(0,s.default)(ae,(0,a.default)({},"".concat(ae,"-rtl"),N==="rtl"),S);return A.createElement("div",(0,n.default)({className:ue,style:R},ne,{ref:y}),A.createElement(f.Provider,{value:ce},w))},g=A.forwardRef(h);e.default=A.memo(g)}(BP)),BP}var Kne;function Kwe(){return Kne||(Kne=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(Ua()),a=r(Kn()),i=r(ni()),o=r(ypt),s=t(cr()),l=s,A=us(),c=jC();r(_h());var u=Cpt(),d=r(zC()),f=function(p,E){var y={};for(var C in p)Object.prototype.hasOwnProperty.call(p,C)&&E.indexOf(C)<0&&(y[C]=p[C]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,C=Object.getOwnPropertySymbols(p);w<C.length;w++)E.indexOf(C[w])<0&&Object.prototype.propertyIsEnumerable.call(p,C[w])&&(y[C[w]]=p[C[w]]);return y},h=function(E,y){var C,w=E.prefixCls,B=E.className,M=E.children,I=E.indeterminate,S=I===void 0?!1:I,R=E.style,b=E.onMouseEnter,Q=E.onMouseLeave,D=E.skipGroup,F=D===void 0?!1:D,N=E.disabled,k=f(E,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),O=l.useContext(A.ConfigContext),P=O.getPrefixCls,z=O.direction,j=l.useContext(u.GroupContext),V=(0,s.useContext)(c.FormItemInputContext),L=V.isFormItemInput,K=(0,s.useContext)(d.default),J=(C=(j==null?void 0:j.disabled)||N)!==null&&C!==void 0?C:K,Y=l.useRef(k.value);l.useEffect(function(){j==null||j.registerValue(k.value)},[]),l.useEffect(function(){if(!F)return k.value!==Y.current&&(j==null||j.cancelValue(Y.current),j==null||j.registerValue(k.value),Y.current=k.value),function(){return j==null?void 0:j.cancelValue(k.value)}},[k.value]);var W=P("checkbox",w),q=(0,a.default)({},k);j&&!F&&(q.onChange=function(){k.onChange&&k.onChange.apply(k,arguments),j.toggleOption&&j.toggleOption({label:M,value:k.value})},q.name=j.name,q.checked=j.value.includes(k.value));var ee=(0,i.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)({},"".concat(W,"-wrapper"),!0),"".concat(W,"-rtl"),z==="rtl"),"".concat(W,"-wrapper-checked"),q.checked),"".concat(W,"-wrapper-disabled"),J),"".concat(W,"-wrapper-in-form-item"),L),B),ae=(0,i.default)((0,n.default)({},"".concat(W,"-indeterminate"),S)),ne=S?"mixed":void 0;return l.createElement("label",{className:ee,style:R,onMouseEnter:b,onMouseLeave:Q},l.createElement(o.default,(0,a.default)({"aria-checked":ne},q,{prefixCls:W,className:ae,disabled:J,ref:y})),M!==void 0&&l.createElement("span",null,M))},g=l.forwardRef(h);e.default=g}(wP)),wP}var wpt=Kwe();const oU=Nr(wpt),Vwe=({report:e,handleChangeColumns:t,handleChangeColumnStyles:r,handleResetColumnStyles:n})=>{var b,Q,D,F;const[a,i]=m.useState(!0),[o,s]=m.useState([]),[l,A]=m.useState(null),[c,u]=m.useState(1),[d,f]=m.useState({}),[h]=_e.useForm();m.useEffect(()=>{if(e){h.setFieldsValue(e),h.setFieldsValue({essential_conditions:w()});let N=e.colonnes_essentiel.split("|");s(N),i(qa(N,Hne)),f(Kj(e.colonnes_essentiel_style))}},[e]);const g=N=>{i(N),N&&s(Hne)},p=N=>{let O=o.map(j=>Pg.find(V=>V.key===j)).filter(j=>j&&j.serie!==c).map(j=>j.key);const P=Pg.filter(j=>j.serie===c&&N.includes(j.key)).map(j=>j.key),z=[...O,...P];s(z.sort((j,V)=>o.includes(j)&&o.indexOf(j)<o.indexOf(V)?-1:1)),t(z)},E=N=>{const k=Pg.find(O=>O.key===N[0]);A(k||null)},y=(N,k)=>{let O=l.key,P=N.hex;(k==="color"||k==="backgroundColor")&&(P=P.replace(/#/gm,"0x"));let z=k??N.target.name;P||(z==="fontWeight"?P=N.target.checked:P=N.target.value),r(O,z,P)},C=({node:N,dragNode:k,dragNodesKeys:O,event:P})=>{const z=k.key,j=N.key,V=o.findIndex(J=>J===z),L=o.findIndex(J=>J===j);let K=[...o];K.splice(L,0,K.splice(V,1)[0]),s(K)},w=N=>{let k=[];for(let O=1;O<=5;O++)e[`rapport_indicateur_condition_id_${O}`]!=="0"&&k.push(e[`rapport_indicateur_condition_id_${O}`]);return k};let B=[];for(let N=1;N<=9;N++)(N===1||e.sections.some(k=>k[`indicateur_associe_${N}_id`]!=="0"))&&B.push(N);const M=B.map(N=>v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:`Nom abrégé série ${N}`}),v.jsx(_e.Item,{name:`serie_entete_${N}`,children:v.jsx(mt,{})})]})})),I=()=>{const N=e.sections.reduce((P,z)=>{for(let j in z)j.startsWith("indicateur_associe_")&&j.includes("_id")&&z[j]!=="0"&&P.push(j);return P},[]);let O=[...new Set(N)].map((P,z)=>({label:`Serie ${z+2}`,value:z+2}));return O.unshift({label:"Serie 1",value:1}),O},S=o.filter(N=>{let k=Pg.find(O=>O.key===N);return k?k.serie===c:!1}),R=()=>Pg.filter(k=>o.includes(k.key)).sort((k,O)=>o.indexOf(k.key)<o.indexOf(O.key)?-1:1).map(k=>{const P={...Kj(e.colonnes_essentiel_style)[k.key]};return{...k,title:v.jsx("div",{style:{width:"80%",paddingLeft:4,...P},children:k.title})}});return v.jsx("div",{className:"editor-essentials",children:v.jsx(xa,{items:[{label:"Séries",key:"1",children:v.jsx(_e,{name:"essential_1",form:h,children:M})},{label:"Colonnes à afficher",key:"3",children:v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Afficher colonnes par défaut"}),v.jsx(Va,{checked:a,onChange:g})]}),v.jsx("div",{className:"form-item",children:v.jsx(ga,{okText:"Valider",cancelText:"Annuler",onConfirm:n,title:"Etes vous sûr de vouloir réinitialiser tous les styles ?",children:v.jsx(nt,{style:{marginLeft:8},children:"Réinitialiser les styles"})})})]}),v.jsxs("div",{className:"column-lists",children:[v.jsxs("div",{className:"column-list",children:[v.jsx("div",{className:"tree-title",children:"Colonnes choisies"}),v.jsxs("div",{className:"essentials-left-content",children:[v.jsx(SA,{treeData:R(),onSelect:E,draggable:!0,onDrop:C}),v.jsxs("div",{className:"style-options",children:[v.jsx("div",{className:"tree-title",children:"Options de styles"}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Taille"}),v.jsx(mt,{disabled:!l,name:"fontSize",type:"number",onChange:y,value:(b=d[l==null?void 0:l.key])==null?void 0:b.fontSize})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Gras"}),v.jsx(oU,{disabled:!l,name:"fontWeight",onChange:y,checked:((Q=d[l==null?void 0:l.key])==null?void 0:Q.fontWeight)==="bold"})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Couleur"}),v.jsx(Qy,{disabled:!l,name:"color",triangle:"hide",position:"top",onChange:N=>y(N,"color"),color:(D=d[l==null?void 0:l.key])==null?void 0:D.color})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Fond"}),v.jsx(Qy,{disabled:!l,name:"backgroundColor",triangle:"hide",position:"top",onChange:N=>y(N,"backgroundColor"),color:(F=d[l==null?void 0:l.key])==null?void 0:F.backgroundColor})]})})]})]})]}),v.jsxs("div",{className:"column-list",style:{display:a?"none":"block"},children:[v.jsx("div",{className:"tree-title",children:"Colonnes disponibles"}),v.jsx(Ir,{style:{width:"100%"},value:c,options:I(),onChange:N=>u(N)}),v.jsx(SA,{checkable:!0,onCheck:p,checkedKeys:S,treeData:Pg.filter(N=>N.serie===c)})]})]})]})}]})})};Vwe.propTypes={report:U.object,handleChangeColumns:U.func,handleChangeColumnStyles:U.func,handleResetColumnStyles:U.func};const Kj=e=>{let t={};return e&&(t=e.split("|").reduce((n,a)=>{const[i,o]=a.split(":");if(i&&o){let[s,l]=o.split("=");l=l.replace("0x","#");let A=n[i]??{};A[s]=l,n[i]=A}return n},{})),t},Vne=e=>{let t="";for(let r in e){let n=e[r];for(let a in n){let i=n[a];a==="fontWeight"&&i!==!1?(i="bold",t=t+`${r}:${a}=${i}|`):a!=="fontWeight"&&(i=i.replace("#","0x"),t=t+`${r}:${a}=${i}|`)}}return t};var MP={};const Jwe=Un(LAt);var xP={};const Bpt=Un(ict);var IP={},Jne;function Mpt(){return Jne||(Jne=1,function(e){var t=mr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jl()),n=t(jA()),a=t(UA()),i=t(LA()),o=t(Cd()),s=t(YA()),l=t(cr()),A=t(Ks()),c=function(d){(0,s.default)(f,d);function f(h){var g;return(0,r.default)(this,f),g=(0,a.default)(this,(0,i.default)(f).call(this,h)),g.renderHeaderRow=g.renderHeaderRow.bind((0,o.default)(g)),g.renderFrozenRow=g.renderFrozenRow.bind((0,o.default)(g)),g._setRef=g._setRef.bind((0,o.default)(g)),g}return(0,n.default)(f,[{key:"scrollTo",value:function(g){var p=this;requestAnimationFrame(function(){p.headerRef&&(p.headerRef.scrollLeft=g)})}},{key:"renderHeaderRow",value:function(g,p){var E=this.props,y=E.columns,C=E.headerRenderer;if(g<=0)return null;var w={width:"100%",height:g};return C({style:w,columns:y,headerIndex:p})}},{key:"renderFrozenRow",value:function(g,p){var E=this.props,y=E.columns,C=E.rowHeight,w=E.rowRenderer,B={width:"100%",height:C},M=-p-1;return w({style:B,columns:y,rowData:g,rowIndex:M})}},{key:"render",value:function(){var g=this.props,p=g.className,E=g.width,y=g.height,C=g.rowWidth,w=g.headerHeight,B=g.frozenData;if(y<=0)return null;var M={width:E,height:y,position:"relative",overflow:"hidden"},I={width:C,height:y},S=Array.isArray(w)?w:[w];return l.default.createElement("div",{role:"grid",ref:this._setRef,className:p,style:M},l.default.createElement("div",{role:"rowgroup",style:I},S.map(this.renderHeaderRow),B.map(this.renderFrozenRow)))}},{key:"_setRef",value:function(g){this.headerRef=g}}]),f}(l.default.PureComponent);c.propTypes={className:A.default.string,width:A.default.number.isRequired,height:A.default.number.isRequired,headerHeight:A.default.oneOfType([A.default.number,A.default.arrayOf(A.default.number)]).isRequired,rowWidth:A.default.number.isRequired,rowHeight:A.default.number.isRequired,columns:A.default.arrayOf(A.default.object).isRequired,data:A.default.array.isRequired,frozenData:A.default.array,headerRenderer:A.default.func.isRequired,rowRenderer:A.default.func.isRequired};var u=c;e.default=u}(IP)),IP}var Qa={},Wne;function qv(){if(Wne)return Qa;Wne=1;var e=mr();Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.renderElement=o,Qa.normalizeColumns=s,Qa.isObjectEqual=l,Qa.callOrReturn=A,Qa.hasChildren=c,Qa.unflatten=u,Qa.flattenOnKeys=d,Qa.cloneArray=f,Qa.noop=h,Qa.toString=g,Qa.getValue=E,Qa.getScrollbarSize=B,Qa.addClassName=M,Qa.removeClassName=I,Qa.getEstimatedTotalRowsHeight=S,Qa.throttle=Qa.debounce=void 0;var t=e(Xn()),r=e(Ua()),n=e(cr());function a(R,b){var Q=Object.keys(R);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(R);b&&(D=D.filter(function(F){return Object.getOwnPropertyDescriptor(R,F).enumerable})),Q.push.apply(Q,D)}return Q}function i(R){for(var b=1;b<arguments.length;b++){var Q=arguments[b]!=null?arguments[b]:{};b%2?a(Q,!0).forEach(function(D){(0,r.default)(R,D,Q[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(Q)):a(Q).forEach(function(D){Object.defineProperty(R,D,Object.getOwnPropertyDescriptor(Q,D))})}return R}function o(R,b){return n.default.isValidElement(R)?b?n.default.cloneElement(R,b):R:typeof R=="function"?R.prototype&&R.prototype.isReactComponent?n.default.createElement(R,b):R.defaultProps?R(i({},R.defaultProps,{},b)):R(b):null}function s(R){var b=[];return n.default.Children.forEach(R,function(Q){if(n.default.isValidElement(Q)&&Q.key){var D=i({},Q.props,{key:Q.key});b.push(D)}}),b}function l(R,b){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(R===b||R===null&&b===null)return!0;if(R===null||b===null||(0,t.default)(R)!=="object"||(0,t.default)(b)!=="object")return!1;var D=Object.keys(R),F=Object.keys(b);if(D.length!==F.length)return!1;for(var N=0;N<D.length;N++){var k=D[N];if(!(k==="_owner"&&R.$$typeof)){var O=R[k],P=b[k],z=(0,t.default)(O);if(z!==(0,t.default)(P))return!1;if(!(z==="function"&&Q)){if(z==="object"){if(l(O,P,Q))continue;return!1}if(O!==P)return!1}}}return!0}function A(R){for(var b=arguments.length,Q=new Array(b>1?b-1:0),D=1;D<b;D++)Q[D-1]=arguments[D];return typeof R=="function"?R.apply(void 0,Q):R}function c(R){return Array.isArray(R.children)&&R.children.length>0}function u(R){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"id",D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parentId",F=[],N={},k=R.length,O=0;O<k;O++){var P=i({},R[O]),z=P[Q],j=P[D];Array.isArray(P.children)?N[z]=P.children.concat(N[z]||[]):N[z]||(N[z]=[]),P.children=N[z],j!==void 0&&j!==b?(N[j]||(N[j]=[]),N[j].push(P)):F.push(P)}return F}function d(R,b){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"id";if(!b||!b.length)return R;var F=[],N=new Set;b.forEach(function(P){return N.add(P)});var k=[].concat(R);k.forEach(function(P){return Q[P[D]]=0});for(var O=function(){var z=k.shift();F.push(z),N.has(z[D])&&Array.isArray(z.children)&&z.children.length>0&&(k=[].concat(z.children,k),z.children.forEach(function(j){return Q[j[D]]=Q[z[D]]+1}))};k.length>0;)O();return F}function f(R){return Array.isArray(R)?[].concat(R):[]}function h(){}function g(R){return typeof R=="string"?R:R==null?"":R.toString?R.toString():""}function p(R){for(var b=R.split("."),Q=[],D=0;D<b.length;D++){for(var F=b[D];F[F.length-1]==="\\"&&b[D+1]!==void 0;)F=F.slice(0,-1)+".",F+=b[++D];Q.push(F)}return Q}function E(R,b,Q){if(R===null||(0,t.default)(R)!=="object"||typeof b!="string")return Q;for(var D=p(b),F=0;F<D.length;F++){if(!Object.prototype.propertyIsEnumerable.call(R,D[F]))return Q;if(R=R[D[F]],R==null){if(F!==D.length-1)return Q;break}}return R}var y=function(b){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D;return function(){for(var F=this,N=arguments.length,k=new Array(N),O=0;O<N;O++)k[O]=arguments[O];clearTimeout(D),D=setTimeout(function(){return b.apply(F,k)},Q)}};Qa.debounce=y;var C=function(b,Q){var D,F,N;return function(){var k=this,O=arguments;D?(clearTimeout(F),F=setTimeout(function(){Date.now()-N>=Q&&(b.apply(k,O),N=Date.now())},Math.max(Q-(Date.now()-N),0))):(b.apply(k,O),N=Date.now(),D=!0)}};Qa.throttle=C;var w;function B(R){if((!w&&w!==0||R)&&typeof window<"u"&&window.document&&window.document.createElement){var b=document.createElement("div");b.style.position="absolute",b.style.top="-9999px",b.style.width="50px",b.style.height="50px",b.style.overflow="scroll",document.body.appendChild(b),w=b.offsetWidth-b.clientWidth,document.body.removeChild(b)}return w}function M(R,b){R.classList?R.classList.add(b):R.className.match(new RegExp("(?:^|\\s)".concat(b,"(?!\\S)")))||(R.className+=" ".concat(b))}function I(R,b){R.classList?R.classList.remove(b):R.className=R.className.replace(new RegExp("(?:^|\\s)".concat(b,"(?!\\S)"),"g"),"")}function S(R,b){return typeof b=="function"?R.reduce(function(Q,D,F){return Q+b({rowData:D,rowIndex:F})},0):R.length*b}return Qa}var Xne;function xpt(){return Xne||(Xne=1,function(e){var t=mr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Kn()),n=t(yd()),a=t(Ua()),i=t(jl()),o=t(jA()),s=t(UA()),l=t(LA()),A=t(Cd()),c=t(YA()),u=t(cr()),d=t(Ks()),f=t(ni()),h=Bpt,g=t(Jwe),p=t(Mpt()),E=qv();function y(M,I){var S=Object.keys(M);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(M);I&&(R=R.filter(function(b){return Object.getOwnPropertyDescriptor(M,b).enumerable})),S.push.apply(S,R)}return S}function C(M){for(var I=1;I<arguments.length;I++){var S=arguments[I]!=null?arguments[I]:{};I%2?y(S,!0).forEach(function(R){(0,a.default)(M,R,S[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(S)):y(S).forEach(function(R){Object.defineProperty(M,R,Object.getOwnPropertyDescriptor(S,R))})}return M}var w=function(M){(0,c.default)(I,M);function I(S){var R;return(0,i.default)(this,I),R=(0,s.default)(this,(0,l.default)(I).call(this,S)),R._setHeaderRef=R._setHeaderRef.bind((0,A.default)(R)),R._setBodyRef=R._setBodyRef.bind((0,A.default)(R)),R._setInnerRef=R._setInnerRef.bind((0,A.default)(R)),R._itemKey=R._itemKey.bind((0,A.default)(R)),R._getBodyWidth=R._getBodyWidth.bind((0,A.default)(R)),R._handleItemsRendered=R._handleItemsRendered.bind((0,A.default)(R)),R._resetColumnWidthCache=(0,g.default)(function(b){R.props.estimatedRowHeight&&R.bodyRef&&R.bodyRef.resetAfterColumnIndex(0,!1)}),R._getEstimatedTotalRowsHeight=(0,g.default)(E.getEstimatedTotalRowsHeight),R.renderRow=R.renderRow.bind((0,A.default)(R)),R}return(0,o.default)(I,[{key:"resetAfterRowIndex",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,b=arguments.length>1?arguments[1]:void 0;this.props.estimatedRowHeight&&this.bodyRef&&this.bodyRef.resetAfterRowIndex(R,b)}},{key:"forceUpdateTable",value:function(){this.headerRef&&this.headerRef.forceUpdate(),this.bodyRef&&this.bodyRef.forceUpdate()}},{key:"scrollToPosition",value:function(R){this.headerRef&&this.headerRef.scrollTo(R.scrollLeft),this.bodyRef&&this.bodyRef.scrollTo(R)}},{key:"scrollToTop",value:function(R){this.bodyRef&&this.bodyRef.scrollTo({scrollTop:R})}},{key:"scrollToLeft",value:function(R){this.headerRef&&this.headerRef.scrollTo(R),this.bodyRef&&this.bodyRef.scrollToPosition({scrollLeft:R})}},{key:"scrollToRow",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto";this.bodyRef&&this.bodyRef.scrollToItem({rowIndex:R,align:b})}},{key:"getTotalRowsHeight",value:function(){var R=this.props,b=R.data,Q=R.rowHeight,D=R.estimatedRowHeight;return D?this.innerRef&&this.innerRef.clientHeight||this._getEstimatedTotalRowsHeight(b,D):b.length*Q}},{key:"renderRow",value:function(R){var b=this.props,Q=b.data,D=b.columns,F=b.rowRenderer,N=Q[R.rowIndex];return F(C({},R,{columns:D,rowData:N}))}},{key:"render",value:function(){var R=this.props,b=R.containerStyle,Q=R.classPrefix,D=R.className,F=R.data,N=R.frozenData,k=R.width,O=R.height,P=R.rowHeight,z=R.estimatedRowHeight,j=R.getRowHeight,V=R.headerWidth,L=R.bodyWidth,K=R.useIsScrolling,J=R.onScroll,Y=R.hoveredRowKey,W=R.overscanRowCount;R.style,R.onScrollbarPresenceChange;var q=(0,n.default)(R,["containerStyle","classPrefix","className","data","frozenData","width","height","rowHeight","estimatedRowHeight","getRowHeight","headerWidth","bodyWidth","useIsScrolling","onScroll","hoveredRowKey","overscanRowCount","style","onScrollbarPresenceChange"]),ee=this._getHeaderHeight(),ae=N.length,ne=P*ae,ce=(0,f.default)("".concat(Q,"__table"),D),ue=b?{style:b}:null,ge=z?h.VariableSizeGrid:h.FixedSizeGrid;return this._resetColumnWidthCache(L),u.default.createElement("div",(0,r.default)({role:"table",className:ce},ue),u.default.createElement(ge,(0,r.default)({},q,{className:"".concat(Q,"__body"),ref:this._setBodyRef,innerRef:this._setInnerRef,itemKey:this._itemKey,data:F,frozenData:N,width:k,height:Math.max(O-ee-ne,0),rowHeight:z?j:P,estimatedRowHeight:typeof z=="function"?void 0:z,rowCount:F.length,overscanRowCount:W,columnWidth:z?this._getBodyWidth:L,columnCount:1,overscanColumnCount:0,useIsScrolling:K,hoveredRowKey:Y,onScroll:J,onItemsRendered:this._handleItemsRendered,children:this.renderRow})),ee+ne>0&&u.default.createElement(p.default,(0,r.default)({},q,{className:"".concat(Q,"__header"),ref:this._setHeaderRef,data:F,frozenData:N,width:k,height:Math.min(ee+ne,O),rowWidth:V,rowHeight:P,headerHeight:this.props.headerHeight,headerRenderer:this.props.headerRenderer,rowRenderer:this.props.rowRenderer,hoveredRowKey:ae>0?Y:null})))}},{key:"_setHeaderRef",value:function(R){this.headerRef=R}},{key:"_setBodyRef",value:function(R){this.bodyRef=R}},{key:"_setInnerRef",value:function(R){this.innerRef=R}},{key:"_itemKey",value:function(R){var b=R.rowIndex,Q=this.props,D=Q.data,F=Q.rowKey;return D[b][F]}},{key:"_getHeaderHeight",value:function(){var R=this.props.headerHeight;return Array.isArray(R)?R.reduce(function(b,Q){return b+Q},0):R}},{key:"_getBodyWidth",value:function(){return this.props.bodyWidth}},{key:"_handleItemsRendered",value:function(R){var b=R.overscanRowStartIndex,Q=R.overscanRowStopIndex,D=R.visibleRowStartIndex,F=R.visibleRowStopIndex;this.props.onRowsRendered({overscanStartIndex:b,overscanStopIndex:Q,startIndex:D,stopIndex:F})}}]),I}(u.default.PureComponent);w.propTypes={containerStyle:d.default.object,classPrefix:d.default.string,className:d.default.string,width:d.default.number.isRequired,height:d.default.number.isRequired,headerHeight:d.default.oneOfType([d.default.number,d.default.arrayOf(d.default.number)]).isRequired,headerWidth:d.default.number.isRequired,bodyWidth:d.default.number.isRequired,rowHeight:d.default.number.isRequired,estimatedRowHeight:d.default.oneOfType([d.default.func,d.default.number]),getRowHeight:d.default.func,columns:d.default.arrayOf(d.default.object).isRequired,data:d.default.array.isRequired,frozenData:d.default.array,rowKey:d.default.oneOfType([d.default.string,d.default.number]).isRequired,useIsScrolling:d.default.bool,overscanRowCount:d.default.number,hoveredRowKey:d.default.oneOfType([d.default.string,d.default.number]),style:d.default.object,onScrollbarPresenceChange:d.default.func,onScroll:d.default.func,onRowsRendered:d.default.func,headerRenderer:d.default.func.isRequired,rowRenderer:d.default.func.isRequired};var B=w;e.default=B}(xP)),xP}var bP={},qne;function Ipt(){return qne||(qne=1,function(e){var t=mr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Kn()),n=t(yd()),a=t(cr()),i=t(Ks()),o=qv(),s=function(c){var u=c.className,d=c.style,f=c.columns,h=c.headerIndex,g=c.cellRenderer,p=c.headerRenderer,E=c.expandColumnKey,y=c.expandIcon,C=c.tagName,w=(0,n.default)(c,["className","style","columns","headerIndex","cellRenderer","headerRenderer","expandColumnKey","expandIcon","tagName"]),B=f.map(function(M,I){return g({columns:f,column:M,columnIndex:I,headerIndex:h,expandIcon:M.key===E&&a.default.createElement(y,null)})});return p&&(B=(0,o.renderElement)(p,{cells:B,columns:f,headerIndex:h})),a.default.createElement(C,(0,r.default)({},w,{className:u,style:d}),B)};s.defaultProps={tagName:"div"},s.propTypes={isScrolling:i.default.bool,className:i.default.string,style:i.default.object,columns:i.default.arrayOf(i.default.object).isRequired,headerIndex:i.default.number,cellRenderer:i.default.func,headerRenderer:i.default.oneOfType([i.default.func,i.default.element]),expandColumnKey:i.default.string,expandIcon:i.default.func,tagName:i.default.elementType};var l=s;e.default=l}(bP)),bP}var SP={},Zne;function bpt(){return Zne||(Zne=1,function(e){var t=mr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Kn()),n=t(yd()),a=t(jl()),i=t(jA()),o=t(UA()),s=t(LA()),l=t(Cd()),A=t(YA()),c=t(cr()),u=t(Ks()),d=qv(),f=function(g){(0,A.default)(p,g);function p(E){var y;return(0,a.default)(this,p),y=(0,o.default)(this,(0,s.default)(p).call(this,E)),y.state={measured:!1},y._setRef=y._setRef.bind((0,l.default)(y)),y._handleExpand=y._handleExpand.bind((0,l.default)(y)),y}return(0,i.default)(p,[{key:"componentDidMount",value:function(){this.props.estimatedRowHeight&&this.props.rowIndex>=0&&this._measureHeight(!0)}},{key:"componentDidUpdate",value:function(y,C){var w=this;this.props.estimatedRowHeight&&this.props.rowIndex>=0&&!this.props.getIsResetting()&&this.state.measured&&C.measured&&this.setState({measured:!1},function(){return w._measureHeight()})}},{key:"render",value:function(){var y=this.props,C=y.isScrolling,w=y.className,B=y.style,M=y.columns,I=y.rowIndex,S=y.rowData,R=y.expandColumnKey,b=y.depth,Q=y.rowEventHandlers,D=y.estimatedRowHeight,F=y.rowRenderer,N=y.cellRenderer,k=y.expandIconRenderer,O=y.tagName;y.rowKey,y.getIsResetting,y.onRowHover,y.onRowExpand,y.onRowHeightChange;var P=(0,n.default)(y,["isScrolling","className","style","columns","rowIndex","rowData","expandColumnKey","depth","rowEventHandlers","estimatedRowHeight","rowRenderer","cellRenderer","expandIconRenderer","tagName","rowKey","getIsResetting","onRowHover","onRowExpand","onRowHeightChange"]),z=k({rowData:S,rowIndex:I,depth:b,onExpand:this._handleExpand}),j=M.map(function(K,J){return N({isScrolling:C,columns:M,column:K,columnIndex:J,rowData:S,rowIndex:I,expandIcon:K.key===R&&z})});F&&(j=(0,d.renderElement)(F,{isScrolling:C,cells:j,columns:M,rowData:S,rowIndex:I,depth:b}));var V=this._getEventHandlers(Q);if(D&&I>=0){B.height;var L=(0,n.default)(B,["height"]);return c.default.createElement(O,(0,r.default)({},P,{ref:this._setRef,className:w,style:this.state.measured?B:L},this.state.measured&&V),j)}return c.default.createElement(O,(0,r.default)({},P,{className:w,style:B},V),j)}},{key:"_setRef",value:function(y){this.ref=y}},{key:"_handleExpand",value:function(y){var C=this.props,w=C.onRowExpand,B=C.rowData,M=C.rowIndex,I=C.rowKey;w&&w({expanded:y,rowData:B,rowIndex:M,rowKey:I})}},{key:"_measureHeight",value:function(y){if(this.ref){var C=this.props,w=C.style,B=C.rowKey,M=C.onRowHeightChange,I=C.rowIndex,S=C.columns,R=this.ref.getBoundingClientRect().height;this.setState({measured:!0},function(){(y||R!==w.height)&&M(B,R,I,S[0]&&!S[0].__placeholder__&&S[0].frozen)})}}},{key:"_getEventHandlers",value:function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=this.props,w=C.rowData,B=C.rowIndex,M=C.rowKey,I=C.onRowHover,S={};if(Object.keys(y).forEach(function(Q){var D=y[Q];typeof D=="function"&&(S[Q]=function(F){D({rowData:w,rowIndex:B,rowKey:M,event:F})})}),I){var R=S.onMouseEnter;S.onMouseEnter=function(Q){I({hovered:!0,rowData:w,rowIndex:B,rowKey:M,event:Q}),R&&R(Q)};var b=S.onMouseLeave;S.onMouseLeave=function(Q){I({hovered:!1,rowData:w,rowIndex:B,rowKey:M,event:Q}),b&&b(Q)}}return S}}]),p}(c.default.PureComponent);f.defaultProps={tagName:"div"},f.propTypes={isScrolling:u.default.bool,className:u.default.string,style:u.default.object,columns:u.default.arrayOf(u.default.object).isRequired,rowData:u.default.object.isRequired,rowIndex:u.default.number.isRequired,rowKey:u.default.oneOfType([u.default.string,u.default.number]),expandColumnKey:u.default.string,depth:u.default.number,rowEventHandlers:u.default.object,rowRenderer:u.default.oneOfType([u.default.func,u.default.element]),cellRenderer:u.default.func,expandIconRenderer:u.default.func,estimatedRowHeight:u.default.oneOfType([u.default.number,u.default.func]),getIsResetting:u.default.func,onRowHover:u.default.func,onRowExpand:u.default.func,onRowHeightChange:u.default.func,tagName:u.default.elementType};var h=f;e.default=h}(SP)),SP}var RP={},$ne;function Spt(){return $ne||($ne=1,function(e){var t=mr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(cr()),n=t(Ks()),a=function(s){var l=s.className,A=s.column;return s.columnIndex,r.default.createElement("div",{className:l},A.title)};a.propTypes={className:n.default.string,column:n.default.object,columnIndex:n.default.number};var i=a;e.default=i}(RP)),RP}var TP={},eae;function Rpt(){return eae||(eae=1,function(e){var t=mr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(cr()),n=t(Ks()),a=qv(),i=function(l){var A=l.className,c=l.cellData;return l.column,l.columnIndex,l.rowData,l.rowIndex,r.default.createElement("div",{className:A},r.default.isValidElement(c)?c:(0,a.toString)(c))};i.propTypes={className:n.default.string,cellData:n.default.any,column:n.default.object,columnIndex:n.default.number,rowData:n.default.object,rowIndex:n.default.number};var o=i;e.default=o}(TP)),TP}var QP={},tae;function Wwe(){return tae||(tae=1,function(e){var t=mr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FrozenDirection=e.Alignment=void 0;var r=t(jl()),n=t(UA()),a=t(LA()),i=t(YA()),o=t(cr()),s=t(Ks()),l={LEFT:"left",CENTER:"center",RIGHT:"right"};e.Alignment=l;var A={LEFT:"left",RIGHT:"right",DEFAULT:!0,NONE:!1};e.FrozenDirection=A;var c=function(d){(0,i.default)(f,d);function f(){return(0,r.default)(this,f),(0,n.default)(this,(0,a.default)(f).apply(this,arguments))}return f}(o.default.Component);c.propTypes={className:s.default.oneOfType([s.default.string,s.default.func]),headerClassName:s.default.oneOfType([s.default.string,s.default.func]),style:s.default.object,title:s.default.node,dataKey:s.default.string,dataGetter:s.default.func,align:s.default.oneOf(["left","center","right"]),flexGrow:s.default.number,flexShrink:s.default.number,width:s.default.number.isRequired,maxWidth:s.default.number,minWidth:s.default.number,frozen:s.default.oneOf(["left","right",!0,!1]),hidden:s.default.bool,resizable:s.default.bool,sortable:s.default.bool,cellRenderer:s.default.oneOfType([s.default.func,s.default.element]),headerRenderer:s.default.oneOfType([s.default.func,s.default.element])},c.Alignment=l,c.FrozenDirection=A;var u=c;e.default=u}(QP)),QP}var DP={},rae;function Xwe(){return rae||(rae=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={ASC:"asc",DESC:"desc"},r=t;e.default=r}(DP)),DP}var FP={},nae;function Tpt(){return nae||(nae=1,function(e){var t=mr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Kn()),n=t(yd()),a=t(jl()),i=t(jA()),o=t(UA()),s=t(LA()),l=t(Cd()),A=t(YA()),c=t(cr()),u=t(Ks()),d=t(ni()),f=function(g){(0,A.default)(p,g);function p(E){var y;return(0,a.default)(this,p),y=(0,o.default)(this,(0,s.default)(p).call(this,E)),y._handleClick=y._handleClick.bind((0,l.default)(y)),y}return(0,i.default)(p,[{key:"render",value:function(){var y=this.props,C=y.expandable,w=y.expanded,B=y.indentSize,M=y.depth,I=y.onExpand,S=(0,n.default)(y,["expandable","expanded","indentSize","depth","onExpand"]);if(!C&&B===0)return null;var R=(0,d.default)("BaseTable__expand-icon",{"BaseTable__expand-icon--expanded":w});return c.default.createElement("div",(0,r.default)({},S,{className:R,onClick:C&&I?this._handleClick:null,style:{fontFamily:"initial",cursor:"pointer",userSelect:"none",width:"16px",minWidth:"16px",height:"16px",lineHeight:"16px",fontSize:"16px",textAlign:"center",transition:"transform 0.15s ease-out",transform:"rotate(".concat(C&&w?90:0,"deg)"),marginLeft:M*B}}),C&&"▸")}},{key:"_handleClick",value:function(y){y.stopPropagation(),y.preventDefault();var C=this.props,w=C.onExpand,B=C.expanded;w(!B)}}]),p}(c.default.PureComponent);f.defaultProps={depth:0,indentSize:16},f.propTypes={expandable:u.default.bool,expanded:u.default.bool,indentSize:u.default.number,depth:u.default.number,onExpand:u.default.func};var h=f;e.default=h}(FP)),FP}var _P={},aae;function Qpt(){return aae||(aae=1,function(e){var t=mr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ua()),n=t(cr()),a=t(Ks()),i=t(ni()),o=t(Xwe());function s(u,d){var f=Object.keys(u);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(u);d&&(h=h.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),f.push.apply(f,h)}return f}function l(u){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?s(f,!0).forEach(function(h){(0,r.default)(u,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(f)):s(f).forEach(function(h){Object.defineProperty(u,h,Object.getOwnPropertyDescriptor(f,h))})}return u}var A=function(d){var f=d.sortOrder,h=d.className,g=d.style,p=(0,i.default)("BaseTable__sort-indicator",h,{"BaseTable__sort-indicator--descending":f===o.default.DESC});return n.default.createElement("div",{className:p,style:l({userSelect:"none",width:"16px",height:"16px",lineHeight:"16px",textAlign:"center"},g)},f===o.default.DESC?"↓":"↑")};A.propTypes={sortOrder:a.default.oneOf([o.default.ASC,o.default.DESC]),className:a.default.string,style:a.default.object};var c=A;e.default=c}(_P)),_P}var NP={},iae;function Dpt(){return iae||(iae=1,function(e){var t=mr();Object.defineProperty(e,"__esModule",{value:!0}),e.addUserSelectStyles=E,e.removeUserSelectStyles=y,e.default=void 0;var r=t(Kn()),n=t(Ua()),a=t(yd()),i=t(jl()),o=t(jA()),s=t(UA()),l=t(LA()),A=t(Cd()),c=t(YA()),u=t(cr()),d=t(Ks()),f=qv();function h(I,S){var R=Object.keys(I);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(I);S&&(b=b.filter(function(Q){return Object.getOwnPropertyDescriptor(I,Q).enumerable})),R.push.apply(R,b)}return R}function g(I){for(var S=1;S<arguments.length;S++){var R=arguments[S]!=null?arguments[S]:{};S%2?h(R,!0).forEach(function(b){(0,n.default)(I,b,R[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(R)):h(R).forEach(function(b){Object.defineProperty(I,b,Object.getOwnPropertyDescriptor(R,b))})}return I}var p=null;function E(I){if(I){var S=I.getElementById("react-draggable-style-el");S||(S=I.createElement("style"),S.type="text/css",S.id="react-draggable-style-el",S.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,S.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,I.getElementsByTagName("head")[0].appendChild(S)),I.body&&(0,f.addClassName)(I.body,"react-draggable-transparent-selection")}}function y(I){if(I)try{if(I.body&&(0,f.removeClassName)(I.body,"react-draggable-transparent-selection"),I.selection)I.selection.empty();else{var S=(I.defaultView||window).getSelection();S&&S.type!=="Caret"&&S.removeAllRanges()}}catch{}}var C={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},w=C.mouse,B=function(I){(0,c.default)(S,I);function S(R){var b;return(0,i.default)(this,S),b=(0,s.default)(this,(0,l.default)(S).call(this,R)),b.isDragging=!1,b.lastX=p,b.width=0,b._setHandleRef=b._setHandleRef.bind((0,A.default)(b)),b._handleClick=b._handleClick.bind((0,A.default)(b)),b._handleMouseDown=b._handleMouseDown.bind((0,A.default)(b)),b._handleMouseUp=b._handleMouseUp.bind((0,A.default)(b)),b._handleTouchStart=b._handleTouchStart.bind((0,A.default)(b)),b._handleTouchEnd=b._handleTouchEnd.bind((0,A.default)(b)),b._handleDragStart=b._handleDragStart.bind((0,A.default)(b)),b._handleDragStop=b._handleDragStop.bind((0,A.default)(b)),b._handleDrag=b._handleDrag.bind((0,A.default)(b)),b}return(0,o.default)(S,[{key:"componentWillUnmount",value:function(){if(this.handleRef){var b=this.handleRef.ownerDocument;b.removeEventListener(C.mouse.move,this._handleDrag),b.removeEventListener(C.mouse.stop,this._handleDragStop),b.removeEventListener(C.touch.move,this._handleDrag),b.removeEventListener(C.touch.stop,this._handleDragStop),y(b)}}},{key:"render",value:function(){var b=this.props,Q=b.style;b.column,b.onResizeStart,b.onResize,b.onResizeStop,b.minWidth;var D=(0,a.default)(b,["style","column","onResizeStart","onResize","onResizeStop","minWidth"]);return u.default.createElement("div",(0,r.default)({},D,{ref:this._setHandleRef,onClick:this._handleClick,onMouseDown:this._handleMouseDown,onMouseUp:this._handleMouseUp,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd,style:g({userSelect:"none",touchAction:"none",position:"absolute",top:0,bottom:0,right:0,cursor:"col-resize"},Q)}))}},{key:"_setHandleRef",value:function(b){this.handleRef=b}},{key:"_handleClick",value:function(b){b.stopPropagation()}},{key:"_handleMouseDown",value:function(b){w=C.mouse,this._handleDragStart(b)}},{key:"_handleMouseUp",value:function(b){w=C.mouse,this._handleDragStop(b)}},{key:"_handleTouchStart",value:function(b){w=C.touch,this._handleDragStart(b)}},{key:"_handleTouchEnd",value:function(b){w=C.touch,this._handleDragStop(b)}},{key:"_handleDragStart",value:function(b){if(!(typeof b.button=="number"&&b.button!==0)){this.isDragging=!0,this.lastX=p,this.width=this.props.column.width,this.props.onResizeStart(this.props.column);var Q=this.handleRef.ownerDocument;E(Q),Q.addEventListener(w.move,this._handleDrag),Q.addEventListener(w.stop,this._handleDragStop)}}},{key:"_handleDragStop",value:function(b){if(this.isDragging){this.isDragging=!1,this.props.onResizeStop(this.props.column);var Q=this.handleRef.ownerDocument;y(Q),Q.removeEventListener(w.move,this._handleDrag),Q.removeEventListener(w.stop,this._handleDragStop)}}},{key:"_handleDrag",value:function(b){var Q=b.clientX;b.type===C.touch.move&&(b.preventDefault(),b.targetTouches&&b.targetTouches[0]&&(Q=b.targetTouches[0].clientX));var D=this.handleRef.offsetParent,F=D.getBoundingClientRect(),N=Q+D.scrollLeft-F.left;if(this.lastX===p){this.lastX=N;return}var k=this.props,O=k.column,P=k.minWidth,z=O.width,j=O.maxWidth,V=O.minWidth,L=V===void 0?P:V,K=N-this.lastX;if(K){this.width=this.width+K,this.lastX=N;var J=this.width;j&&J>j?J=j:J<L&&(J=L),J!==z&&this.props.onResize(O,J)}}}]),S}(u.default.PureComponent);B.defaultProps={onResizeStart:f.noop,onResize:f.noop,onResizeStop:f.noop,minWidth:30},B.propTypes={style:d.default.object,column:d.default.object,onResizeStart:d.default.func,onResize:d.default.func,onResizeStop:d.default.func,minWidth:d.default.number};var M=B;e.default=M}(NP)),NP}var kP={},oae;function Fpt(){return oae||(oae=1,function(e){var t=mr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ua()),n=t(jl()),a=t(jA()),i=Wwe();function o(A,c){var u=Object.keys(A);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(A);c&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(A,f).enumerable})),u.push.apply(u,d)}return u}function s(A){for(var c=1;c<arguments.length;c++){var u=arguments[c]!=null?arguments[c]:{};c%2?o(u,!0).forEach(function(d){(0,r.default)(A,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(u)):o(u).forEach(function(d){Object.defineProperty(A,d,Object.getOwnPropertyDescriptor(u,d))})}return A}var l=function(){function A(c,u){(0,n.default)(this,A),this._origColumns=[],this.reset(c,u)}return(0,a.default)(A,[{key:"_cache",value:function(u,d){return u in this._cached?this._cached[u]:(this._cached[u]=d(),this._cached[u])}},{key:"reset",value:function(u,d){var f=this;this._columns=u.map(function(h){var g=h.width;if(h.resizable){var p=f._origColumns.findIndex(function(E){return E.key===h.key});p>=0&&f._origColumns[p].width===h.width&&(g=f._columns[p].width)}return s({},h,{width:g})}),this._origColumns=u,this._fixed=d,this._cached={},this._columnStyles=this.recomputeColumnStyles()}},{key:"resetCache",value:function(){this._cached={}}},{key:"getOriginalColumns",value:function(){return this._origColumns}},{key:"getColumns",value:function(){return this._columns}},{key:"getVisibleColumns",value:function(){var u=this;return this._cache("visibleColumns",function(){return u._columns.filter(function(d){return!d.hidden})})}},{key:"hasFrozenColumns",value:function(){var u=this;return this._cache("hasFrozenColumns",function(){return u._fixed&&u.getVisibleColumns().some(function(d){return!!d.frozen})})}},{key:"hasLeftFrozenColumns",value:function(){var u=this;return this._cache("hasLeftFrozenColumns",function(){return u._fixed&&u.getVisibleColumns().some(function(d){return d.frozen===i.FrozenDirection.LEFT||d.frozen===!0})})}},{key:"hasRightFrozenColumns",value:function(){var u=this;return this._cache("hasRightFrozenColumns",function(){return u._fixed&&u.getVisibleColumns().some(function(d){return d.frozen===i.FrozenDirection.RIGHT})})}},{key:"getMainColumns",value:function(){var u=this;return this._cache("mainColumns",function(){var d=u.getVisibleColumns();if(!u.hasFrozenColumns())return d;var f=[];return u.getLeftFrozenColumns().forEach(function(h){f.push(s({},h,(0,r.default)({},A.PlaceholderKey,!0)))}),u.getVisibleColumns().forEach(function(h){h.frozen||f.push(h)}),u.getRightFrozenColumns().forEach(function(h){f.push(s({},h,(0,r.default)({},A.PlaceholderKey,!0)))}),f})}},{key:"getLeftFrozenColumns",value:function(){var u=this;return this._cache("leftFrozenColumns",function(){return u._fixed?u.getVisibleColumns().filter(function(d){return d.frozen===i.FrozenDirection.LEFT||d.frozen===!0}):[]})}},{key:"getRightFrozenColumns",value:function(){var u=this;return this._cache("rightFrozenColumns",function(){return u._fixed?u.getVisibleColumns().filter(function(d){return d.frozen===i.FrozenDirection.RIGHT}):[]})}},{key:"getColumn",value:function(u){var d=this._columns.findIndex(function(f){return f.key===u});return this._columns[d]}},{key:"getColumnsWidth",value:function(){var u=this;return this._cache("columnsWidth",function(){return u.recomputeColumnsWidth(u.getVisibleColumns())})}},{key:"getLeftFrozenColumnsWidth",value:function(){var u=this;return this._cache("leftFrozenColumnsWidth",function(){return u.recomputeColumnsWidth(u.getLeftFrozenColumns())})}},{key:"getRightFrozenColumnsWidth",value:function(){var u=this;return this._cache("rightFrozenColumnsWidth",function(){return u.recomputeColumnsWidth(u.getRightFrozenColumns())})}},{key:"recomputeColumnsWidth",value:function(u){return u.reduce(function(d,f){return d+f.width},0)}},{key:"setColumnWidth",value:function(u,d){var f=this.getColumn(u);f.width=d,this._cached={},this._columnStyles[f.key]=this.recomputeColumnStyle(f)}},{key:"getColumnStyle",value:function(u){return this._columnStyles[u]}},{key:"getColumnStyles",value:function(){return this._columnStyles}},{key:"recomputeColumnStyle",value:function(u){var d=0,f=0;this._fixed||(d=typeof u.flexGrow=="number"?u.flexGrow:0,f=typeof u.flexShrink=="number"?u.flexShrink:1);var h="".concat(d," ").concat(f," auto"),g=s({},u.style,{flex:h,msFlex:h,WebkitFlex:h,width:u.width,overflow:"hidden"});return!this._fixed&&u.maxWidth&&(g.maxWidth=u.maxWidth),!this._fixed&&u.minWidth&&(g.minWidth=u.minWidth),g}},{key:"recomputeColumnStyles",value:function(){var u=this;return this._columns.reduce(function(d,f){return d[f.key]=u.recomputeColumnStyle(f),d},{})}}]),A}();e.default=l,l.PlaceholderKey="__placeholder__"}(kP)),kP}var sae;function _pt(){return sae||(sae=1,function(e){var t=Gn(),r=mr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(yd()),a=r(Kn()),i=r(Ua()),o=r(jl()),s=r(jA()),l=r(UA()),A=r(LA()),c=r(Cd()),u=r(YA()),d=r(cr()),f=r(Ks()),h=r(ni()),g=r(Jwe),p=r(xpt()),E=r(Ipt()),y=r(bpt()),C=r(Spt()),w=r(Rpt()),B=t(Wwe()),M=r(Xwe()),I=r(Tpt()),S=r(Qpt()),R=r(Dpt()),b=r(Fpt()),Q=qv();function D(L,K){var J=Object.keys(L);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(L);K&&(Y=Y.filter(function(W){return Object.getOwnPropertyDescriptor(L,W).enumerable})),J.push.apply(J,Y)}return J}function F(L){for(var K=1;K<arguments.length;K++){var J=arguments[K]!=null?arguments[K]:{};K%2?D(J,!0).forEach(function(Y){(0,i.default)(L,Y,J[Y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(J)):D(J).forEach(function(Y){Object.defineProperty(L,Y,Object.getOwnPropertyDescriptor(J,Y))})}return L}var N=(0,g.default)(function(L,K){return L||(0,Q.normalizeColumns)(K)}),k=function(K,J,Y){return{width:K,maxWidth:J,height:Y,overflow:"hidden"}},O={TableCell:w.default,TableHeaderCell:C.default,ExpandIcon:I.default,SortIndicator:S.default},P=50,z=[],j=function(L){(0,u.default)(K,L);function K(J){var Y;(0,o.default)(this,K),Y=(0,l.default)(this,(0,A.default)(K).call(this,J));var W=J.columns,q=J.children,ee=J.defaultExpandedRowKeys;return Y.state={scrollbarSize:0,hoveredRowKey:null,resizingKey:null,resizingWidth:0,expandedRowKeys:(0,Q.cloneArray)(ee)},Y.columnManager=new b.default(N(W,q),J.fixed),Y._setContainerRef=Y._setContainerRef.bind((0,c.default)(Y)),Y._setMainTableRef=Y._setMainTableRef.bind((0,c.default)(Y)),Y._setLeftTableRef=Y._setLeftTableRef.bind((0,c.default)(Y)),Y._setRightTableRef=Y._setRightTableRef.bind((0,c.default)(Y)),Y.renderExpandIcon=Y.renderExpandIcon.bind((0,c.default)(Y)),Y.renderRow=Y.renderRow.bind((0,c.default)(Y)),Y.renderRowCell=Y.renderRowCell.bind((0,c.default)(Y)),Y.renderHeader=Y.renderHeader.bind((0,c.default)(Y)),Y.renderHeaderCell=Y.renderHeaderCell.bind((0,c.default)(Y)),Y._handleScroll=Y._handleScroll.bind((0,c.default)(Y)),Y._handleVerticalScroll=Y._handleVerticalScroll.bind((0,c.default)(Y)),Y._handleRowsRendered=Y._handleRowsRendered.bind((0,c.default)(Y)),Y._handleRowHover=Y._handleRowHover.bind((0,c.default)(Y)),Y._handleRowExpand=Y._handleRowExpand.bind((0,c.default)(Y)),Y._handleColumnResize=(0,Q.throttle)(Y._handleColumnResize.bind((0,c.default)(Y)),P),Y._handleColumnResizeStart=Y._handleColumnResizeStart.bind((0,c.default)(Y)),Y._handleColumnResizeStop=Y._handleColumnResizeStop.bind((0,c.default)(Y)),Y._handleColumnSort=Y._handleColumnSort.bind((0,c.default)(Y)),Y._handleFrozenRowHeightChange=Y._handleFrozenRowHeightChange.bind((0,c.default)(Y)),Y._handleRowHeightChange=Y._handleRowHeightChange.bind((0,c.default)(Y)),Y._getLeftTableContainerStyle=(0,g.default)(k),Y._getRightTableContainerStyle=(0,g.default)(k),Y._flattenOnKeys=(0,g.default)(function(ae,ne,ce){return Y._depthMap={},(0,Q.flattenOnKeys)(ae,ne,Y._depthMap,ce)}),Y._resetColumnManager=(0,g.default)(function(ae,ne){Y.columnManager.reset(ae,ne),Y.props.estimatedRowHeight&&ne&&(Y.columnManager.hasLeftFrozenColumns()||(Y._leftRowHeightMap={}),Y.columnManager.hasRightFrozenColumns()||(Y._rightRowHeightMap={}))},function(ae,ne){return(0,Q.isObjectEqual)(ae,ne,Y.props.ignoreFunctionInColumnCompare)}),Y._isResetting=!1,Y._resetIndex=null,Y._rowHeightMap={},Y._rowHeightMapBuffer={},Y._mainRowHeightMap={},Y._leftRowHeightMap={},Y._rightRowHeightMap={},Y._getEstimatedTotalRowsHeight=(0,g.default)(Q.getEstimatedTotalRowsHeight),Y._getRowHeight=Y._getRowHeight.bind((0,c.default)(Y)),Y._updateRowHeights=(0,Q.debounce)(function(){Y._isResetting=!0,Y._rowHeightMap=F({},Y._rowHeightMap,{},Y._rowHeightMapBuffer),Y.resetAfterRowIndex(Y._resetIndex,!1),Y._rowHeightMapBuffer={},Y._resetIndex=null,Y.forceUpdateTable(),Y.forceUpdate(),Y._isResetting=!1},0),Y._scroll={scrollLeft:0,scrollTop:0},Y._scrollHeight=0,Y._lastScannedRowIndex=-1,Y._hasDataChangedSinceEndReached=!0,Y._data=J.data,Y._depthMap={},Y._horizontalScrollbarSize=0,Y._verticalScrollbarSize=0,Y._scrollbarPresenceChanged=!1,Y}return(0,s.default)(K,[{key:"getDOMNode",value:function(){return this.tableNode}},{key:"getColumnManager",value:function(){return this.columnManager}},{key:"getExpandedRowKeys",value:function(){var Y=this.props.expandedRowKeys;return Y!==void 0?Y||z:this.state.expandedRowKeys}},{key:"getExpandedState",value:function(){return{expandedData:this._data,expandedRowKeys:this.getExpandedRowKeys(),expandedDepthMap:this._depthMap}}},{key:"getTotalRowsHeight",value:function(){var Y=this.props,W=Y.rowHeight,q=Y.estimatedRowHeight;return q?this.table?this.table.getTotalRowsHeight():this._getEstimatedTotalRowsHeight(this._data,q):this._data.length*W}},{key:"getTotalColumnsWidth",value:function(){return this.columnManager.getColumnsWidth()}},{key:"forceUpdateTable",value:function(){this.table&&this.table.forceUpdateTable(),this.leftTable&&this.leftTable.forceUpdateTable(),this.rightTable&&this.rightTable.forceUpdateTable()}},{key:"resetAfterRowIndex",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.props.estimatedRowHeight&&(this.table&&this.table.resetAfterRowIndex(Y,W),this.leftTable&&this.leftTable.resetAfterRowIndex(Y,W),this.rightTable&&this.rightTable.resetAfterRowIndex(Y,W))}},{key:"resetRowHeightCache",value:function(){this.props.estimatedRowHeight&&(this._resetIndex=null,this._rowHeightMapBuffer={},this._rowHeightMap={},this._mainRowHeightMap={},this._leftRowHeightMap={},this._rightRowHeightMap={})}},{key:"scrollToPosition",value:function(Y){this._scroll=Y,this.table&&this.table.scrollToPosition(Y),this.leftTable&&this.leftTable.scrollToTop(Y.scrollTop),this.rightTable&&this.rightTable.scrollToTop(Y.scrollTop)}},{key:"scrollToTop",value:function(Y){this._scroll.scrollTop=Y,this.table&&this.table.scrollToPosition(this._scroll),this.leftTable&&this.leftTable.scrollToTop(Y),this.rightTable&&this.rightTable.scrollToTop(Y)}},{key:"scrollToLeft",value:function(Y){this._scroll.scrollLeft=Y,this.table&&this.table.scrollToPosition(this._scroll)}},{key:"scrollToRow",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto";this.table&&this.table.scrollToRow(Y,W),this.leftTable&&this.leftTable.scrollToRow(Y,W),this.rightTable&&this.rightTable.scrollToRow(Y,W)}},{key:"setExpandedRowKeys",value:function(Y){this.props.expandedRowKeys===void 0&&this.setState({expandedRowKeys:(0,Q.cloneArray)(Y)})}},{key:"renderExpandIcon",value:function(Y){var W=Y.rowData,q=Y.rowIndex,ee=Y.depth,ae=Y.onExpand,ne=this.props,ce=ne.rowKey,ue=ne.expandColumnKey,ge=ne.expandIconProps;if(!ue)return null;var Se=q>=0&&(0,Q.hasChildren)(W),ye=q>=0&&this.getExpandedRowKeys().indexOf(W[ce])>=0,pe=(0,Q.callOrReturn)(ge,{rowData:W,rowIndex:q,depth:ee,expandable:Se,expanded:ye}),Qe=this._getComponent("ExpandIcon");return d.default.createElement(Qe,(0,a.default)({depth:ee,expandable:Se,expanded:ye},pe,{onExpand:ae}))}},{key:"renderRow",value:function(Y){var W,q=Y.isScrolling,ee=Y.columns,ae=Y.rowData,ne=Y.rowIndex,ce=Y.style,ue=this.props,ge=ue.rowClassName,Se=ue.rowRenderer,ye=ue.rowEventHandlers,pe=ue.expandColumnKey,Qe=ue.estimatedRowHeight,Ue=(0,Q.callOrReturn)(ge,{columns:ee,rowData:ae,rowIndex:ne}),tt=(0,Q.callOrReturn)(this.props.rowProps,{columns:ee,rowData:ae,rowIndex:ne}),it=ae[this.props.rowKey],we=this._depthMap[it]||0,ve=(0,h.default)(this._prefixClass("row"),Ue,(W={},(0,i.default)(W,this._prefixClass("row--depth-".concat(we)),!!pe&&ne>=0),(0,i.default)(W,this._prefixClass("row--expanded"),!!pe&&this.getExpandedRowKeys().indexOf(it)>=0),(0,i.default)(W,this._prefixClass("row--hovered"),!q&&it===this.state.hoveredRowKey),(0,i.default)(W,this._prefixClass("row--frozen"),we===0&&ne<0),(0,i.default)(W,this._prefixClass("row--customized"),Se),W)),Te=this.columnManager.hasFrozenColumns(),Be=F({},tt,{role:"row",key:"row-".concat(it),isScrolling:q,className:ve,style:ce,columns:ee,rowIndex:ne,rowData:ae,rowKey:it,expandColumnKey:pe,depth:we,rowEventHandlers:ye,rowRenderer:Se,estimatedRowHeight:ne>=0?Qe:void 0,getIsResetting:this._getIsResetting,cellRenderer:this.renderRowCell,expandIconRenderer:this.renderExpandIcon,onRowExpand:this._handleRowExpand,onRowHover:Te?this._handleRowHover:null,onRowHeightChange:Te?this._handleFrozenRowHeightChange:this._handleRowHeightChange});return d.default.createElement(y.default,Be)}},{key:"renderRowCell",value:function(Y){var W,q=Y.isScrolling,ee=Y.columns,ae=Y.column,ne=Y.columnIndex,ce=Y.rowData,ue=Y.rowIndex,ge=Y.expandIcon;if(ae[b.default.PlaceholderKey])return d.default.createElement("div",{key:"row-".concat(ce[this.props.rowKey],"-cell-").concat(ae.key,"-placeholder"),className:this._prefixClass("row-cell-placeholder"),style:this.columnManager.getColumnStyle(ae.key)});var Se=ae.className,ye=ae.dataKey,pe=ae.dataGetter,Qe=ae.cellRenderer,Ue=this._getComponent("TableCell"),tt=pe?pe({columns:ee,column:ae,columnIndex:ne,rowData:ce,rowIndex:ue}):(0,Q.getValue)(ce,ye),it={isScrolling:q,cellData:tt,columns:ee,column:ae,columnIndex:ne,rowData:ce,rowIndex:ue,container:this},we=(0,Q.renderElement)(Qe||d.default.createElement(Ue,{className:this._prefixClass("row-cell-text")}),it),ve=(0,Q.callOrReturn)(Se,{cellData:tt,columns:ee,column:ae,columnIndex:ne,rowData:ce,rowIndex:ue}),Te=(0,h.default)(this._prefixClass("row-cell"),ve,(W={},(0,i.default)(W,this._prefixClass("row-cell--align-center"),ae.align===B.Alignment.CENTER),(0,i.default)(W,this._prefixClass("row-cell--align-right"),ae.align===B.Alignment.RIGHT),W)),Be=(0,Q.callOrReturn)(this.props.cellProps,{columns:ee,column:ae,columnIndex:ne,rowData:ce,rowIndex:ue}),Ge=Be||{},ht=Ge.tagName,We=(0,n.default)(Ge,["tagName"]),Ke=ht||"div";return d.default.createElement(Ke,(0,a.default)({role:"gridcell",key:"row-".concat(ce[this.props.rowKey],"-cell-").concat(ae.key)},We,{className:Te,style:this.columnManager.getColumnStyle(ae.key)}),ge,we)}},{key:"renderHeader",value:function(Y){var W,q=Y.columns,ee=Y.headerIndex,ae=Y.style,ne=this.props,ce=ne.headerClassName,ue=ne.headerRenderer,ge=(0,Q.callOrReturn)(ce,{columns:q,headerIndex:ee}),Se=(0,Q.callOrReturn)(this.props.headerProps,{columns:q,headerIndex:ee}),ye=(0,h.default)(this._prefixClass("header-row"),ge,(W={},(0,i.default)(W,this._prefixClass("header-row--resizing"),!!this.state.resizingKey),(0,i.default)(W,this._prefixClass("header-row--customized"),ue),W)),pe=F({},Se,{role:"row",key:"header-".concat(ee),className:ye,style:ae,columns:q,headerIndex:ee,headerRenderer:ue,cellRenderer:this.renderHeaderCell,expandColumnKey:this.props.expandColumnKey,expandIcon:this._getComponent("ExpandIcon")});return d.default.createElement(E.default,pe)}},{key:"renderHeaderCell",value:function(Y){var W,q=Y.columns,ee=Y.column,ae=Y.columnIndex,ne=Y.headerIndex,ce=Y.expandIcon;if(ee[b.default.PlaceholderKey])return d.default.createElement("div",{key:"header-".concat(ne,"-cell-").concat(ee.key,"-placeholder"),className:this._prefixClass("header-cell-placeholder"),style:this.columnManager.getColumnStyle(ee.key)});var ue=ee.headerClassName,ge=ee.headerRenderer,Se=this.props,ye=Se.sortBy,pe=Se.sortState,Qe=Se.headerCellProps,Ue=this._getComponent("TableHeaderCell"),tt=this._getComponent("SortIndicator"),it={columns:q,column:ee,columnIndex:ae,headerIndex:ne,container:this},we=(0,Q.renderElement)(ge||d.default.createElement(Ue,{className:this._prefixClass("header-cell-text")}),it),ve,Te;if(pe){var Be=pe[ee.key];ve=Be===M.default.ASC||Be===M.default.DESC,Te=ve?Be:M.default.ASC}else ve=ee.key===ye.key,Te=ve?ye.order:M.default.ASC;var Ge=(0,Q.callOrReturn)(ue,{columns:q,column:ee,columnIndex:ae,headerIndex:ne}),ht=(0,h.default)(this._prefixClass("header-cell"),Ge,(W={},(0,i.default)(W,this._prefixClass("header-cell--align-center"),ee.align===B.Alignment.CENTER),(0,i.default)(W,this._prefixClass("header-cell--align-right"),ee.align===B.Alignment.RIGHT),(0,i.default)(W,this._prefixClass("header-cell--sortable"),ee.sortable),(0,i.default)(W,this._prefixClass("header-cell--sorting"),ve),(0,i.default)(W,this._prefixClass("header-cell--resizing"),ee.key===this.state.resizingKey),W)),We=(0,Q.callOrReturn)(Qe,{columns:q,column:ee,columnIndex:ae,headerIndex:ne}),Ke=We||{},Xe=Ke.tagName,$e=(0,n.default)(Ke,["tagName"]),pt=Xe||"div";return d.default.createElement(pt,(0,a.default)({role:"gridcell",key:"header-".concat(ne,"-cell-").concat(ee.key),onClick:ee.sortable?this._handleColumnSort:null},$e,{className:ht,style:this.columnManager.getColumnStyle(ee.key),"data-key":ee.key}),ce,we,ee.sortable&&d.default.createElement(tt,{sorting:ve,sortOrder:Te,className:(0,h.default)(this._prefixClass("sort-indicator"),(0,i.default)({},this._prefixClass("sort-indicator--descending"),Te===M.default.DESC))}),ee.resizable&&d.default.createElement(R.default,{className:this._prefixClass("column-resizer"),column:ee,onResizeStart:this._handleColumnResizeStart,onResizeStop:this._handleColumnResizeStop,onResize:this._handleColumnResize}))}},{key:"renderMainTable",value:function(){var Y=this.props,W=Y.width,q=Y.headerHeight,ee=Y.rowHeight,ae=Y.fixed,ne=Y.estimatedRowHeight,ce=(0,n.default)(Y,["width","headerHeight","rowHeight","fixed","estimatedRowHeight"]),ue=this._getTableHeight(),ge=W-this._verticalScrollbarSize;if(ae){var Se=this.columnManager.getColumnsWidth();ge=Math.max(Math.round(Se),ge)}return d.default.createElement(p.default,(0,a.default)({},ce,this.state,{className:this._prefixClass("table-main"),ref:this._setMainTableRef,data:this._data,columns:this.columnManager.getMainColumns(),width:W,height:ue,headerHeight:q,rowHeight:ee,estimatedRowHeight:ne,getRowHeight:ne?this._getRowHeight:void 0,headerWidth:ge+(ae?this._verticalScrollbarSize:0),bodyWidth:ge,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleScroll,onRowsRendered:this._handleRowsRendered}))}},{key:"renderLeftTable",value:function(){if(!this.columnManager.hasLeftFrozenColumns())return null;var Y=this.props,W=Y.width,q=Y.headerHeight,ee=Y.rowHeight,ae=Y.estimatedRowHeight,ne=(0,n.default)(Y,["width","headerHeight","rowHeight","estimatedRowHeight"]),ce=this._getFrozenContainerHeight(),ue=this._verticalScrollbarSize||20,ge=this.columnManager.getLeftFrozenColumnsWidth();return d.default.createElement(p.default,(0,a.default)({},ne,this.state,{containerStyle:this._getLeftTableContainerStyle(ge,W,ce),className:this._prefixClass("table-frozen-left"),ref:this._setLeftTableRef,data:this._data,columns:this.columnManager.getLeftFrozenColumns(),initialScrollTop:this._scroll.scrollTop,width:ge+ue,height:ce,headerHeight:q,rowHeight:ee,estimatedRowHeight:ae,getRowHeight:ae?this._getRowHeight:void 0,headerWidth:ge+ue,bodyWidth:ge+ue,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleVerticalScroll,onRowsRendered:Q.noop}))}},{key:"renderRightTable",value:function(){if(!this.columnManager.hasRightFrozenColumns())return null;var Y=this.props,W=Y.width,q=Y.headerHeight,ee=Y.rowHeight,ae=Y.estimatedRowHeight,ne=(0,n.default)(Y,["width","headerHeight","rowHeight","estimatedRowHeight"]),ce=this._getFrozenContainerHeight(),ue=this.columnManager.getRightFrozenColumnsWidth(),ge=this._verticalScrollbarSize;return d.default.createElement(p.default,(0,a.default)({},ne,this.state,{containerStyle:this._getLeftTableContainerStyle(ue+ge,W,ce),className:this._prefixClass("table-frozen-right"),ref:this._setRightTableRef,data:this._data,columns:this.columnManager.getRightFrozenColumns(),initialScrollTop:this._scroll.scrollTop,width:ue+ge,height:ce,headerHeight:q,rowHeight:ee,estimatedRowHeight:ae,getRowHeight:ae?this._getRowHeight:void 0,headerWidth:ue+ge,bodyWidth:ue,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleVerticalScroll,onRowsRendered:Q.noop}))}},{key:"renderResizingLine",value:function(){var Y=this.props,W=Y.width,q=Y.fixed,ee=this.state.resizingKey;if(!q||!ee)return null;var ae=this.columnManager.getMainColumns(),ne=ae.findIndex(function(Ue){return Ue.key===ee}),ce=ae[ne],ue=ce.width,ge=ce.frozen,Se=this.columnManager.recomputeColumnsWidth(ae.slice(0,ne)),ye=Se+ue;if(!ge)ye-=this._scroll.scrollLeft;else if(ge===B.FrozenDirection.RIGHT){var pe=this.columnManager.recomputeColumnsWidth(ae.slice(ne+1));pe+ue>W-this._verticalScrollbarSize?ye=ue:ye=W-this._verticalScrollbarSize-pe}var Qe={left:ye,height:this._getTableHeight()-this._horizontalScrollbarSize};return d.default.createElement("div",{className:this._prefixClass("resizing-line"),style:Qe})}},{key:"renderFooter",value:function(){var Y=this.props,W=Y.footerHeight,q=Y.footerRenderer;return W===0?null:d.default.createElement("div",{className:this._prefixClass("footer"),style:{height:W}},(0,Q.renderElement)(q))}},{key:"renderEmptyLayer",value:function(){var Y=this.props,W=Y.data,q=Y.frozenData,ee=Y.footerHeight,ae=Y.emptyRenderer;if(W&&W.length||q&&q.length)return null;var ne=this._getHeaderHeight();return d.default.createElement("div",{className:this._prefixClass("empty-layer"),style:{top:ne,bottom:ee}},(0,Q.renderElement)(ae))}},{key:"renderOverlay",value:function(){var Y=this.props.overlayRenderer;return d.default.createElement("div",{className:this._prefixClass("overlay")},!!Y&&(0,Q.renderElement)(Y))}},{key:"render",value:function(){var Y,W=this.props,q=W.columns,ee=W.children,ae=W.width,ne=W.fixed,ce=W.data,ue=W.frozenData,ge=W.expandColumnKey,Se=W.disabled,ye=W.className,pe=W.style,Qe=W.footerHeight,Ue=W.classPrefix,tt=W.estimatedRowHeight;this._resetColumnManager(N(q,ee),ne);var it=ge?this._flattenOnKeys(ce,this.getExpandedRowKeys(),this.props.rowKey):ce;this._data!==it&&(this.resetAfterRowIndex(0,!1),this._data=it),this._calcScrollbarSizes(),this._totalRowsHeight=this.getTotalRowsHeight();var we=F({},pe,{width:ae,height:this._getTableHeight()+Qe,position:"relative"}),ve=(0,h.default)(Ue,ye,(Y={},(0,i.default)(Y,"".concat(Ue,"--fixed"),ne),(0,i.default)(Y,"".concat(Ue,"--expandable"),!!ge),(0,i.default)(Y,"".concat(Ue,"--empty"),ce.length===0),(0,i.default)(Y,"".concat(Ue,"--has-frozen-rows"),ue.length>0),(0,i.default)(Y,"".concat(Ue,"--has-frozen-columns"),this.columnManager.hasFrozenColumns()),(0,i.default)(Y,"".concat(Ue,"--disabled"),Se),(0,i.default)(Y,"".concat(Ue,"--dynamic"),!!tt),Y));return d.default.createElement("div",{ref:this._setContainerRef,className:ve,style:we},this.renderFooter(),this.renderMainTable(),this.renderLeftTable(),this.renderRightTable(),this.renderResizingLine(),this.renderEmptyLayer(),this.renderOverlay())}},{key:"componentDidMount",value:function(){var Y=this.props.getScrollbarSize();Y>0&&this.setState({scrollbarSize:Y})}},{key:"componentDidUpdate",value:function(Y,W){var q=this.props,ee=q.data,ae=q.height,ne=q.maxHeight,ce=q.estimatedRowHeight;ee!==Y.data&&(this._lastScannedRowIndex=-1,this._hasDataChangedSinceEndReached=!0),(ne!==Y.maxHeight||ae!==Y.height)&&this._maybeCallOnEndReached(),this._maybeScrollbarPresenceChange(),ce&&this.getTotalRowsHeight()!==this._totalRowsHeight&&this.forceUpdate()}},{key:"_prefixClass",value:function(Y){return"".concat(this.props.classPrefix,"__").concat(Y)}},{key:"_setContainerRef",value:function(Y){this.tableNode=Y}},{key:"_setMainTableRef",value:function(Y){this.table=Y}},{key:"_setLeftTableRef",value:function(Y){this.leftTable=Y}},{key:"_setRightTableRef",value:function(Y){this.rightTable=Y}},{key:"_getComponent",value:function(Y){return this.props.components&&this.props.components[Y]?this.props.components[Y]:O[Y]}},{key:"_getRowHeight",value:function(Y){var W=this.props,q=W.estimatedRowHeight,ee=W.rowKey;return this._rowHeightMap[this._data[Y][ee]]||(0,Q.callOrReturn)(q,{rowData:this._data[Y],rowIndex:Y})}},{key:"_getIsResetting",value:function(){return this._isResetting}},{key:"_getHeaderHeight",value:function(){var Y=this.props.headerHeight;return Array.isArray(Y)?Y.reduce(function(W,q){return W+q},0):Y}},{key:"_getFrozenRowsHeight",value:function(){var Y=this.props,W=Y.frozenData,q=Y.rowHeight;return W.length*q}},{key:"_getTableHeight",value:function(){var Y=this.props,W=Y.height,q=Y.maxHeight,ee=Y.footerHeight,ae=W-ee;if(q>0){var ne=this._getFrozenRowsHeight(),ce=this.getTotalRowsHeight(),ue=this._getHeaderHeight(),ge=ue+ne+ce+this._horizontalScrollbarSize;ae=Math.min(ge,q-ee)}return ae}},{key:"_getBodyHeight",value:function(){return this._getTableHeight()-this._getHeaderHeight()-this._getFrozenRowsHeight()}},{key:"_getFrozenContainerHeight",value:function(){var Y=this.props.maxHeight,W=this._getTableHeight()-(this._data.length>0?this._horizontalScrollbarSize:0);if(Y>0)return W;var q=this.getTotalRowsHeight()+this._getHeaderHeight()+this._getFrozenRowsHeight();return Math.min(W,q)}},{key:"_calcScrollbarSizes",value:function(){var Y=this.props,W=Y.fixed,q=Y.width,ee=this.state.scrollbarSize,ae=this.getTotalRowsHeight(),ne=this.getTotalColumnsWidth(),ce=this._horizontalScrollbarSize,ue=this._verticalScrollbarSize;ee===0?(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=0):!W||ne<=q-ee?(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=ae>this._getBodyHeight()?ee:0):ne>q?(this._horizontalScrollbarSize=ee,this._verticalScrollbarSize=ae>this._getBodyHeight()-this._horizontalScrollbarSize?ee:0):(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=0,ae>this._getBodyHeight()&&(this._horizontalScrollbarSize=ee,this._verticalScrollbarSize=ee)),(ce!==this._horizontalScrollbarSize||ue!==this._verticalScrollbarSize)&&(this._scrollbarPresenceChanged=!0)}},{key:"_maybeScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var Y=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,Y({size:this.state.scrollbarSize,horizontal:this._horizontalScrollbarSize>0,vertical:this._verticalScrollbarSize>0})}}},{key:"_maybeCallOnEndReached",value:function(){var Y=this.props,W=Y.onEndReached,q=Y.onEndReachedThreshold,ee=this._scroll.scrollTop,ae=this.getTotalRowsHeight(),ne=this._getBodyHeight();if(!(!W||!ne||!ae)){var ce=ae-ee-ne+this._horizontalScrollbarSize;this._lastScannedRowIndex>=0&&ce<=q&&(this._hasDataChangedSinceEndReached||ae!==this._scrollHeight)&&(this._hasDataChangedSinceEndReached=!1,this._scrollHeight=ae,W({distanceFromEnd:ce}))}}},{key:"_handleScroll",value:function(Y){var W=this._scroll.scrollTop;this.scrollToPosition(Y),this.props.onScroll(Y),Y.scrollTop>W&&this._maybeCallOnEndReached()}},{key:"_handleVerticalScroll",value:function(Y){var W=Y.scrollTop,q=this._scroll.scrollTop;W!==q&&this.scrollToTop(W),W>q&&this._maybeCallOnEndReached()}},{key:"_handleRowsRendered",value:function(Y){this.props.onRowsRendered(Y),Y.overscanStopIndex>this._lastScannedRowIndex&&(this._lastScannedRowIndex=Y.overscanStopIndex,this._maybeCallOnEndReached())}},{key:"_handleRowHover",value:function(Y){var W=Y.hovered,q=Y.rowKey;this.setState({hoveredRowKey:W?q:null})}},{key:"_handleRowExpand",value:function(Y){var W=Y.expanded,q=Y.rowData,ee=Y.rowIndex,ae=Y.rowKey,ne=(0,Q.cloneArray)(this.getExpandedRowKeys());if(W)!ne.indexOf(ae)>=0&&ne.push(ae);else{var ce=ne.indexOf(ae);ce>-1&&ne.splice(ce,1)}this.props.expandedRowKeys===void 0&&this.setState({expandedRowKeys:ne}),this.props.onRowExpand({expanded:W,rowData:q,rowIndex:ee,rowKey:ae}),this.props.onExpandedRowsChange(ne)}},{key:"_handleColumnResize",value:function(Y,W){var q=Y.key;this.columnManager.setColumnWidth(q,W),this.setState({resizingWidth:W});var ee=this.columnManager.getColumn(q);this.props.onColumnResize({column:ee,width:W})}},{key:"_handleColumnResizeStart",value:function(Y){var W=Y.key;this.setState({resizingKey:W})}},{key:"_handleColumnResizeStop",value:function(){var Y=this.state,W=Y.resizingKey,q=Y.resizingWidth;if(this.setState({resizingKey:null,resizingWidth:0}),!(!W||!q)){var ee=this.columnManager.getColumn(W);this.props.onColumnResizeEnd({column:ee,width:q})}}},{key:"_handleColumnSort",value:function(Y){var W=Y.currentTarget.dataset.key,q=this.props,ee=q.sortBy,ae=q.sortState,ne=q.onColumnSort,ce=M.default.ASC;ae?ce=ae[W]===M.default.ASC?M.default.DESC:M.default.ASC:W===ee.key&&(ce=ee.order===M.default.ASC?M.default.DESC:M.default.ASC);var ue=this.columnManager.getColumn(W);ne({column:ue,key:W,order:ce})}},{key:"_handleFrozenRowHeightChange",value:function(Y,W,q,ee){ee?ee===B.FrozenDirection.RIGHT?this._rightRowHeightMap[Y]=W:this._leftRowHeightMap[Y]=W:this._mainRowHeightMap[Y]=W;var ae=Math.max(this._mainRowHeightMap[Y]||0,this._leftRowHeightMap[Y]||0,this._rightRowHeightMap[Y]||0);this._rowHeightMap[Y]!==ae&&this._handleRowHeightChange(Y,ae,q)}},{key:"_handleRowHeightChange",value:function(Y,W,q){this._resetIndex===null?this._resetIndex=q:this._resetIndex>q&&(this._resetIndex=q),this._rowHeightMapBuffer[Y]=W,this._updateRowHeights()}}]),K}(d.default.PureComponent);j.Column=B.default,j.PlaceholderKey=b.default.PlaceholderKey,j.defaultProps={classPrefix:"BaseTable",rowKey:"id",data:[],frozenData:[],fixed:!1,headerHeight:50,rowHeight:50,footerHeight:0,defaultExpandedRowKeys:[],sortBy:{},useIsScrolling:!1,overscanRowCount:1,onEndReachedThreshold:500,getScrollbarSize:Q.getScrollbarSize,ignoreFunctionInColumnCompare:!0,onScroll:Q.noop,onRowsRendered:Q.noop,onScrollbarPresenceChange:Q.noop,onRowExpand:Q.noop,onExpandedRowsChange:Q.noop,onColumnSort:Q.noop,onColumnResize:Q.noop,onColumnResizeEnd:Q.noop},j.propTypes={classPrefix:f.default.string,className:f.default.string,style:f.default.object,children:f.default.node,columns:f.default.arrayOf(f.default.shape(B.default.propTypes)),data:f.default.array.isRequired,frozenData:f.default.array,rowKey:f.default.oneOfType([f.default.string,f.default.number]).isRequired,width:f.default.number.isRequired,height:f.default.number,maxHeight:f.default.number,rowHeight:f.default.number,estimatedRowHeight:f.default.oneOfType([f.default.number,f.default.func]),headerHeight:f.default.oneOfType([f.default.number,f.default.arrayOf(f.default.number)]).isRequired,footerHeight:f.default.number,fixed:f.default.bool,disabled:f.default.bool,overlayRenderer:f.default.oneOfType([f.default.func,f.default.element]),emptyRenderer:f.default.oneOfType([f.default.func,f.default.element]),footerRenderer:f.default.oneOfType([f.default.func,f.default.element]),headerRenderer:f.default.oneOfType([f.default.func,f.default.element]),rowRenderer:f.default.oneOfType([f.default.func,f.default.element]),headerClassName:f.default.oneOfType([f.default.string,f.default.func]),rowClassName:f.default.oneOfType([f.default.string,f.default.func]),headerProps:f.default.oneOfType([f.default.object,f.default.func]),headerCellProps:f.default.oneOfType([f.default.object,f.default.func]),rowProps:f.default.oneOfType([f.default.object,f.default.func]),cellProps:f.default.oneOfType([f.default.object,f.default.func]),expandIconProps:f.default.oneOfType([f.default.object,f.default.func]),expandColumnKey:f.default.string,defaultExpandedRowKeys:f.default.arrayOf(f.default.oneOfType([f.default.string,f.default.number])),expandedRowKeys:f.default.arrayOf(f.default.oneOfType([f.default.string,f.default.number])),onRowExpand:f.default.func,onExpandedRowsChange:f.default.func,sortBy:f.default.shape({key:f.default.string,order:f.default.oneOf([M.default.ASC,M.default.DESC])}),sortState:f.default.object,onColumnSort:f.default.func,onColumnResize:f.default.func,onColumnResizeEnd:f.default.func,useIsScrolling:f.default.bool,overscanRowCount:f.default.number,getScrollbarSize:f.default.func,onScroll:f.default.func,onEndReached:f.default.func,onEndReachedThreshold:f.default.number,onRowsRendered:f.default.func,onScrollbarPresenceChange:f.default.func,rowEventHandlers:f.default.object,ignoreFunctionInColumnCompare:f.default.bool,components:f.default.shape({TableCell:f.default.elementType,TableHeaderCell:f.default.elementType,ExpandIcon:f.default.elementType,SortIndicator:f.default.elementType})};var V=j;e.default=V}(MP)),MP}var Npt=_pt();const kpt=Nr(Npt),Ppt=v1e(({children:e})=>e),Opt=E1e(({children:e})=>e),zpt=hut(({children:e})=>e),qwe=({selectedIndicator:e,handleSelectedIndicator:t,report:r,handleSort:n,indicators:a})=>{const[i,o]=m.useState([]),[s,l]=m.useState([]),A=Ye(E=>E.cti.components.reports.loading),c=Pr();m.useEffect(()=>{if(i){const E=Ggt(r,Wgt,eS,a);l(E)}},[i]),m.useEffect(()=>{r.sections&&o(r.sections)},[r]);const u=({key:E,index:y,children:C,...w})=>C.length!==s.length?v.jsx(Opt,{index:y,children:v.jsxs("div",{...w,children:[v.jsx(zpt,{children:v.jsx("div",{children:v.jsx(JFe,{})})}),C]})},E):v.jsx("div",{...w,children:C});function d(E){const[y,C]=m.useState(E.data),w=m.useRef(),B=()=>w.current.getDOMNode().querySelector(".BaseTable__table-frozen-left .BaseTable__body"),M=()=>w.current.getDOMNode().querySelector(".BaseTable__table-frozen-left"),I=R=>({...fl(E.rowProps),tagName:u,index:R.rowIndex}),S=({oldIndex:R,newIndex:b})=>{const Q=y.map(F=>({...F})),[D]=Q.splice(R,1);Q.splice(b,0,D),C(Q),c(m8e(!0)),E.handleSort(Q)};return v.jsx(Ppt,{useDragHandle:!0,getContainer:B,getHelperContainer:M,onSortEnd:S,children:v.jsx(kpt,{...E,ref:w,data:y,fixed:!0,rowProps:I})})}const f=()=>10,h=({columns:E,rowData:y,rowIndex:C})=>{let w="";return e!==null&&e===y.key&&(w+=" selected"),C%2===0&&(w+=" even-row"),w},g={onClick:({rowData:E,rowIndex:y,rowKey:C,event:w})=>{t(C)}},p=te.useCallback(()=>A?v.jsx(Ya,{style:{backgroundColor:"rgba(255,255,255, 0.5)"}}):null,[A]);return v.jsx("div",{className:"reports-editor-table",children:v.jsx(Dl,{children:({width:E,height:y})=>v.jsx(d,{fixed:!0,rowKey:"key",columns:s,headerHeight:50,headerClassName:"indicator-table-header",rowHeight:25,width:E,height:y,data:i,getScrollbarSize:f,rowClassName:h,overlayRenderer:p,rowEventHandlers:g,handleSort:n,style:{fontSize:"11px"}})})})};qwe.propTypes={selectedIndicator:U.number,handleSelectedIndicator:U.func,report:U.object,handleSort:U.func};const Zwe=({indicator:e})=>{const r=Object.keys(e).filter(n=>n.substring(0,11)==="description").map((n,a)=>a===0||e[`indicateur_entete_etendue_${a+1}`]?v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:`Description série ${a+1}`}),v.jsx(_e.Item,{name:a===0?"description":`description_${a+1}`,children:v.jsx(mt,{})})]})},a):null);return v.jsx("div",{style:{overflow:"scroll"},children:r})};Zwe.propTypes={indicator:U.object};const{Option:jpt}=Ir,$we=({form:e,specific:t=!1})=>{const r=Ye(s=>s.cti.components.reports.data.lastViews),[n,a]=m.useState(!0),i=r==null?void 0:r.map((s,l)=>v.jsx(jpt,{value:s.name,variables:s.variables,children:s.label},l)),o=(s,l)=>{a(!1),t===!0?e.setFieldsValue({specific_viewlink:s,specific_viewlink_param:l.variables}):e.setFieldsValue({viewlink:s,viewlink_param:l.variables})};return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Rapport / Collection"}),v.jsx(Ir,{onChange:o,children:i})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Vue justificative"}),v.jsx(_e.Item,{name:t===!0?"specific_viewlink":"viewlink",children:v.jsx(mt,{disabled:n})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Libellé"}),v.jsx(_e.Item,{name:t===!0?"specific_viewlink_label":"viewlink_label",children:v.jsx(mt,{disabled:n})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Paramètres"}),v.jsx(_e.Item,{name:t===!0?"specific_viewlink_param":"viewlink_param",children:v.jsx(mt.TextArea,{disabled:n})})]})})]})};$we.propTypes={form:U.object,specific:U.bool};const eBe=({indicator:e,form:t,handleIndicatorModified:r,isActive:n})=>{const[a,i]=m.useState(e.color),[o,s]=m.useState(e.background_color);m.useEffect(()=>{Object.keys(e).length&&(i(e.color),s(e.background_color))},[e]);const l=(c,u)=>{switch(t.setFieldsValue({[u]:c.hex}),r(!0),u){case"color":i(c.hex);break;case"background_color":s(c.hex);break}};let A=Number(e.font_size);return A===0&&(e.font_size=null),v.jsx(v.Fragment,{children:v.jsx(xa,{defaultActiveKey:["0"],items:[{label:"Général",key:"0",children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Bordure"}),v.jsx(_e.Item,{name:"border_thickness",valuePropName:"checked",children:v.jsx(Rr,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Masquer"}),v.jsx(_e.Item,{valuePropName:"checked",name:"is_hide",children:v.jsx(Rr,{})})]})})]})},{label:"En téte",key:"1",children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Taille caractères"}),v.jsx(_e.Item,{name:"font_size",children:v.jsx(u0e,{min:10,max:18,defaultValue:A})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Gras"}),v.jsx(_e.Item,{name:"font_weight",valuePropName:"checked",children:v.jsx(Rr,{})})]})})]})},{label:"Colonne",key:"2",children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Couleur du texte"}),v.jsx(Qy,{triangle:"hide",color:a,onChange:c=>l(c,"color"),style:{right:470,bottom:400,position:"absolute"},disabled:n}),v.jsx(_e.Item,{name:"color",style:{display:"none"},children:v.jsx(mt,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Couleur du fond"}),v.jsx(Qy,{triangle:"hide",color:o,onChange:c=>l(c,"background_color"),style:{right:470,bottom:340,position:"absolute"},disabled:n}),v.jsx(_e.Item,{name:"background_color",style:{display:"none"},children:v.jsx(mt,{})})]})})]})}]})})};eBe.propTypes={indicator:U.object,form:U.object,handleIndicatorModified:U.func};const tS=({copiedText:e,size:t="default",type:r="primary",tooltip:n="Copier",style:a})=>{const[i,o]=m.useState(!1),s=()=>{o(!i),navigator.clipboard.writeText(e)};return v.jsx(v.Fragment,{children:v.jsx(pr,{title:"Copier",children:v.jsx(nt,{style:a,size:t,type:r,icon:i?v.jsx(Gs,{style:{color:jr.green}}):v.jsx(hh,{}),onClick:s})})})};tS.propTypes={copiedText:U.string,size:U.string,type:U.string,tooltip:U.string};const tBe=({indicator:e,handleShowModalFromForm:t,associatedIndicators:r})=>{const[n,a]=m.useState({});m.useEffect(()=>{const o={};let s=!1;const l=["entete_etendue","description","output_format","picto_enabled","positif_is_good"];for(let A=2;A<=9;A++){const c=`indicateur_associe_${A}_id`,u=e[c]&&e[c]!=="0";if(u||!s&&!u){const d={key:A};l.forEach(f=>{const h=`${f}_${A}`;e[h]!==void 0&&(d[h]=e[h])}),u&&(d[c]=e[c]),o[A]=d,u||(s=!0)}}a(o)},[e]);const i=Object.values(n).map(o=>{var s,l,A,c,u,d;return r&&(o.associatedIndicator=r.find(f=>(f==null?void 0:f.associatedIndicatorIndex)===(o==null?void 0:o.key))),{label:`Série ${o.key}`,key:o.key,forceRender:!0,children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Indicateur"}),v.jsx(_e.Item,{style:{width:"240px",display:"block",textAlign:"center",color:"rgba(0, 0, 0, 0.25)",backgroundColor:"#f5f5f5",borderColor:"#eeeeee"},name:`indicateur_associe_${o.key}_id`,children:v.jsx("span",{children:(s=o==null?void 0:o.associatedIndicator)==null?void 0:s.code})}),v.jsx(nt,{style:{marginLeft:8,marginBottom:5},type:"secondary",icon:v.jsx(DA,{}),onClick:()=>t(o.key)}),v.jsx(tS,{copiedText:(l=o==null?void 0:o.associatedIndicator)==null?void 0:l.code,type:"secondary",style:{marginLeft:8,marginBottom:5}},(A=o==null?void 0:o.associatedIndicator)==null?void 0:A.code)]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Nom abrégé"}),v.jsx(_e.Item,{name:`entete_etendue_${o.key}`,extra:(c=o==null?void 0:o.associatedIndicator)==null?void 0:c.entete,children:v.jsx(mt,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Description"}),v.jsx(_e.Item,{name:`description_${o.key}`,extra:(u=o==null?void 0:o.associatedIndicator)==null?void 0:u.description,children:v.jsx(mt.TextArea,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Format"}),v.jsx(_e.Item,{name:`output_format_${o.key}`,extra:(d=o==null?void 0:o.associatedIndicator)==null?void 0:d.output_format,children:v.jsx(mt,{})})]})}),v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Picto tendance"}),v.jsx(_e.Item,{name:`picto_enabled_${o.key}`,valuePropName:"checked",children:v.jsx(Rr,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Tendance positive = OK"}),v.jsx(_e.Item,{name:`positif_is_good_${o.key}`,valuePropName:"checked",children:v.jsx(Rr,{})})]})]})]})}});return v.jsx(xa,{items:i})};tBe.propTypes={indicator:U.object,handleShowModalFromForm:U.func,associatedIndicators:U.array};const{Option:Ypt}=Ir,rBe=({report:e,indicator:t})=>{var a;let r=(a=e==null?void 0:e.sections)==null?void 0:a.filter(i=>i.indicateur_output_format===t.indicateur_output_format&&i.indicateur_id!==t.indicateur_id);(r==null?void 0:r.length)>0&&r.unshift({indicateur_id:0,indicateur_entete_etendue:" "});const n=r.map(i=>v.jsx(Ypt,{value:i.indicateur_id,children:i.indicateur_entete_etendue},i.indicateur_id));return v.jsx(v.Fragment,{children:(r==null?void 0:r.length)>0?v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Comparer avec l'indicateur :"}),v.jsx(_e.Item,{name:"compared_indicator_id",children:v.jsx(Ir,{style:{width:250},children:n})})]})}):v.jsx("div",{className:"form-row",children:v.jsx("div",{className:"form-item",children:v.jsx("span",{className:"first-label",children:"Aucun indicateur comparable avec l'indicateur séléctionné"})})})})};rBe.propTypes={report:U.object,indicator:U.object};const nBe=({indicator:e,showEditor:t,isEssentiel:r,handleUpdateIndicator:n,handleCancelSection:a,handleShowModalFromForm:i,indicatorModified:o,handleIndicatorModified:s,handleDeleteSection:l,report:A,setFormIndicator:c,associatedIndicators:u})=>{const d=Ye(R=>R.cti.components.reports.data.comboCondition),f=Ye(R=>R.cti.settings.data.session),[h]=_e.useForm();m.useEffect(()=>{h.setFieldsValue(e),h.setFieldsValue({indicator_conditions:C(e)})},[e]);const g=()=>{let R={...e,...h.getFieldsValue()};for(let b in R)R[b]===!0?b==="font_weight"?R[b]="bold":R[b]="1":R[b]===!1?R[b]="0":R[b]===void 0&&(R[b]="");delete R.indicator_conditions,s(!1),n(R),Tn({type:"success",message:"Indicateur",description:"L'indicateur est ajouté au rapport"})},p=(R,b)=>{s(!0)},E=(R,b)=>{(R==null?void 0:R.length)>4&&R.pop();for(let Q=1;Q<=4;Q++)R[Q-1]?h.setFieldsValue({[`indicateur_condition_id_${Q}`]:R[Q-1]}):h.setFieldsValue({[`indicateur_condition_id_${Q}`]:""})},y=R=>{utt(R,"Indicateur","Les champs du formulaires sont incomplets")};function C(R){let b=[];for(let Q=1;Q<=4;Q++){const D=R[`indicateur_condition_id_${Q}`];D&&D!=="0"&&b.push(D)}return b}const w=(R=!1)=>{let b={...e},Q=b.field_tag?b.field_tag:(b==null?void 0:b.code)+b.key*9;R&&(Q=(b==null?void 0:b.code)+ske(1,1e4));const D=[];A==null||A.sections.forEach(F=>{F.field_tag!==""&&D.push(F.field_tag)}),D.includes(Q)&&w(!0),c({...e,field_tag:Q}),s(!0)},B=Jv(A.is_cti==="1",f),M=()=>{let R=[];for(let b=1;b<=4;b++)R.push(v.jsx(_e.Item,{name:`indicateur_condition_id_${b}`,children:v.jsx(mt,{})},b));return R},I=[{label:"Présentation",key:"1",children:v.jsx(eBe,{indicator:e,form:h,handleIndicatorModified:s,isActive:B})},...r?[{label:"Description",key:"2",className:"scrollable-tab",children:v.jsx(Zwe,{indicator:e})},{label:"Justificatif",key:"3",className:"scrollable-tab",children:v.jsx($we,{form:h})}]:[],...A.type_rapport==="VUEPARAM"?[{label:"Comparaison",key:"5",className:"scrollable-tab",children:v.jsx(rBe,{form:h,report:A,indicator:e})}]:[]],S=[{label:"Indicateur",key:"1",className:"scrollable-tab",children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Indicateur"}),v.jsx(_e.Item,{name:"code",children:v.jsx(mt,{style:{textAlign:"center"},disabled:!0})}),v.jsx(nt,{style:{marginLeft:8,marginBottom:5},type:"secondary",icon:v.jsx(DA,{}),onClick:()=>i()}),v.jsx(tS,{copiedText:e.code,type:"secondary",style:{marginLeft:8,marginBottom:5}},e.indicateur_id)]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsxs("span",{className:"first-label",children:["Nom",v.jsx(pr,{title:"Nom de l'indicateur au sein du rapport",children:v.jsx(QI,{style:{marginLeft:6,marginBottom:-1,color:jr.lightBlue}})})]}),v.jsx(_e.Item,{name:"entete_etendue",extra:e.indicateur_entete_etendue,children:v.jsx(mt,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsxs("span",{className:"first-label",children:["Nom abrégé",v.jsx(pr,{title:"Nom de l'entéte de la colonne qui apparait dans le rapport",children:v.jsx(QI,{style:{marginLeft:6,marginBottom:-1,color:jr.lightBlue}})})]}),v.jsx(_e.Item,{name:"entete",extra:e.indicateur_entete,children:v.jsx(mt.TextArea,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Description"}),v.jsx(_e.Item,{name:"description",extra:e.indicateur_descritption,children:v.jsx(mt.TextArea,{})})]})}),e.indicateur_id!=="999"&&v.jsx(v.Fragment,{children:v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsxs("span",{className:"first-label",children:["Etiquette",v.jsx(pr,{title:"Identifiant unique de l'indicateur au sein du rapport qui sera utilisé dans le calcul entre indicateurs",children:v.jsx(QI,{style:{marginLeft:6,marginBottom:-1,color:jr.lightBlue}})})]}),v.jsx(_e.Item,{name:"field_tag",rules:[{validator(R,b){return new Promise((Q,D)=>{const F=[];A==null||A.sections.forEach(N=>{N.field_tag!==""&&N.key!==e.key&&F.push(N.field_tag)}),F.includes(b)?D("L'étiquette est déja assigné à un indicateur du rapport"):Q()})}}],children:v.jsx(mt,{})}),e.field_tag===""&&v.jsx(pr,{title:"test",children:v.jsx(nt,{onClick:()=>w(!1),children:v.jsx(bp,{})})}),e.field_tag!==""&&v.jsx(tS,{copiedText:"["+e.field_tag+"]",type:"secondary",style:{marginLeft:8,marginBottom:5}},e.indicateur_id)]})})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Format"}),v.jsx(_e.Item,{name:"output_format",extra:e.indicateur_output_format,children:v.jsx(mt,{})})]})}),e.code==="CTI_RAPPORTCALC"&&v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Formule"}),v.jsx(_e.Item,{shouldUpdate:!0,children:R=>v.jsx(_e.Item,{name:"calc_formula",children:v.jsx(mt.TextArea,{})})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Option"}),v.jsx(_e.Item,{name:"option",children:v.jsx(mt,{})})]})}),r&&v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Picto Tendance"}),v.jsx(_e.Item,{name:"picto_enabled",valuePropName:"checked",children:v.jsx(Rr,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Tendance positive = OK"}),v.jsx(_e.Item,{name:"positif_is_good",valuePropName:"checked",children:v.jsx(Rr,{})})]})]})]})},...e.total_function!=="*CALC"?[{label:"Condition",key:"3",className:"scrollable-tab",children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Ne pas prendre en compte les conditions du rapport"}),v.jsx(_e.Item,{name:"erase_rapport_indicateur_condition",valuePropName:"checked",children:v.jsx(Rr,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Conditions"}),v.jsx(_e.Item,{name:"indicator_conditions",children:v.jsx(wa,{style:{width:"300px"},multiple:!0,treeData:d,onChange:E})}),v.jsx("div",{style:{display:"none"},children:M()})]})})]})}]:[],...r?[{label:"Séries",key:"2",className:"scrollable-tab",children:v.jsx(tBe,{indicator:e,handleShowModalFromForm:i,associatedIndicators:u})}]:[]];return v.jsx("div",{className:"editor-indicator-editor",style:{display:t?"flex":"none"},children:v.jsxs(_e,{form:h,name:"indicator",onValuesChange:p,className:"form__report-indicator",onFinish:g,onFinishFailed:y,disabled:B,children:[v.jsx("div",{className:"editor-indicator-header ",children:o?v.jsxs(v.Fragment,{children:[v.jsx(pr,{title:"Enregistrer",children:v.jsx(nt,{type:"primary",htmlType:"submit",children:v.jsx(Gs,{})})}),v.jsx(pr,{title:"Annuler les modifications",children:v.jsx(ga,{placement:"topRight",style:{zIndex:"4000"},title:"Des modifications sont en cours... Etes vous sur de vouloir annuler ?",onConfirm:a,okText:"Annuler les modifications",cancelText:"Revenir à l'éditeur",children:v.jsx(nt,{size:"default",children:v.jsx(La,{})})})})]}):v.jsxs(v.Fragment,{children:[v.jsx(pr,{title:"Annuler",children:v.jsxs(nt,{onClick:a,children:[v.jsx(La,{}),"Annuler"]})}),v.jsx(pr,{title:"Supprimer",children:v.jsxs(nt,{onClick:l,type:"danger",children:[v.jsx(Ba,{}),"Supprimer"]})})]})}),v.jsxs("div",{style:{display:"flex",minHeight:0},children:[v.jsx("div",{className:"indicator-tab-column",children:v.jsx(xa,{items:S})}),v.jsx("div",{className:"indicator-tab-column",style:{flex:3},children:v.jsx(xa,{items:I})})]})]})})};nBe.propTypes={indicator:U.object,showEditor:U.bool,isEssentiel:U.bool,handleUpdateIndicator:U.func,handleShowModalFromForm:U.func,indicatorModified:U.bool,handleIndicatorModified:U.func,handleDeleteSection:U.func,report:U.object,setFormIndicator:U.func,associatedIndicators:U.array};const sU=({selectedReportsType:e,selectedReport:t,label:r})=>{const n=Ye(s=>s.cti.components.reports.computingEssentiels),a=Ye(s=>s.cti.content.moduleId),i=Pr(),o=()=>{if(a!=="iCTI_pmsipsy"){let s=`-m ${a.substring(5)}`;t&&(s=s+` -r ${t.code}`),i(hpt(s))}};return v.jsx(v.Fragment,{children:v.jsx(pr,{title:r,children:v.jsxs(nt,{onClick:o,disabled:n||e!=="ESSENTIEL",children:[v.jsx(bp,{}),n?r+" (en cours)":r]})})})};sU.propTypes={selectedReportsType:U.string,selectedReport:U.object,label:U.string};const{Option:lae}=Ir,aBe=({selectedRow:e,models:t,handleCloseEditor:r,newReport:n,nameReportsType:a})=>{const[i,o]=m.useState(!1),[s,l]=m.useState(),[A,c]=m.useState(!1),[u,d]=m.useState(null),[f,h]=m.useState({}),[g,p]=m.useState({}),[E,y]=m.useState(!1),[C,w]=m.useState({oneOnly:!1}),[B,M]=m.useState(!1),[I,S]=m.useState(!1),[R,b]=m.useState("100%"),Q=Ye(Fe=>Fe.cti.components.reports.data.selectedReport),D=Ye(Fe=>Fe.cti.components.reports.data.comboCondition),F=Ye(Fe=>Fe.cti.content.moduleId),N=Ye(Fe=>Fe.cti.settings.data.session),k=Pr(),[O]=_e.useForm(),P="Recalcul de l'essentiel",[z,j]=m.useState({}),V=Ye(Fe=>Fe.cti.components.indicators.data),L=Ye(Fe=>Fe.cti.components.reports.data.comboGroup);m.useEffect(()=>{k(ky())},[]),m.useEffect(()=>{e&&k(cpt(e.oid))},[e,k]),m.useEffect(()=>{if(u!==null){const Fe=f.sections.find(je=>je.key===u);j(()=>eS(Fe,V)),p(Y(Fe))}},[u,f]),m.useEffect(()=>{n?(h(n),O.setFieldsValue(J(n)),l("ESSENTIEL"),o(!1)):Object.keys(Q).length?(h(Q),l(Q.type_rapport),O.setFieldsValue(J(Q)),o(Q.is_cti==="1")):(h({}),O.setFieldsValue({}),o(!1))},[Q,n]);const K=Jv(i,N);function J(Fe){let je={...Fe};for(let xe in je)switch(xe){case"is_cti":je[xe]=je[xe]==="1";break;case"is_hide":je[xe]=je[xe]==="1";break;case"is_template_updatable":je[xe]=je[xe]==="1";break}let et=[];for(let xe=1;xe<=5;xe++)je[`rapport_indicateur_condition_id_${xe}`]&&je[`rapport_indicateur_condition_id_${xe}`]!=="0"&&et.push(je[`rapport_indicateur_condition_id_${xe}`]);return je.essential_conditions=et,je}function Y(Fe){let je={...Fe};for(let et in je)if(et.includes("picto_enabled"))je[et]=je[et]==="1";else if(et.includes("positif_is_good"))je[et]=je[et]==="1";else switch(et){case"erase_rapport_indicateur_condition":je[et]=je[et]==="1";break;case"font_weight":je[et]=je[et]==="bold";break}return je}const W=(Fe,je)=>Fe.map((xe,Ne)=>{let le={...vpt,key:je+Ne,numero_rubrique:(je+Ne+1).toString(),indicateur_id:xe.oid};for(let At in le){let Bt=At.substring(11);xe[Bt]&&(le[At]=xe[Bt])}return le}),q=Fe=>{l(Fe)},ee=Fe=>{const je={...f};let et=W(Fe,je.sections.length);je.sections=je.sections.concat(et),h(je),et.length===1&&(d(et[0].key),c(!0),b("30%")),M(!0)},ae=Fe=>{const je={...f};let et=je.sections.find(xe=>xe.key===u);C.serie===null?(et.indicateur_output_format=Fe.output_format,et.indicateur_id=Fe.oid,et.indicateur_entete_etendue=Fe.texte,et.indicateur_texte=Fe.texte,et.indicateur_entete=Fe.texte,et.indicateur_code=Fe.code):(et.indicateur_entete=Fe.texte,et[`indicateur_entete_etendue_${C.serie}`]=Fe.texte,et[`indicateur_output_format_${C.serie}`]=Fe.output_format,C.serie>=2&&(et[`indicateur_associe_${C.serie}_id`]=Fe.oid,j(eS(et,V)))),h(je),S(!0),M(!0),w({oneOnly:!1})},ne=Fe=>{d(Fe),c(!0),b("30%")},ce=Fe=>{let je={...f},et=[...f.sections],xe=et.findIndex(Ne=>Ne.key===Fe.key);xe!==-1?et[xe]=Fe:et.push(Fe),je.sections=et,h(je),S(!1),M(!0),c(!1),b("100%"),d(null)},ue=()=>{c(!1),b("100%"),d(null)},ge=()=>{M(!0)},Se=()=>{const Fe=`<RAPPORT oid="${e.oid}"/>`;k(Une(F,Fe,e.oid,!0))},ye=()=>{const Fe=`<RAPPORT oid="${e.oid}"/>`;k(Une(F,Fe,e.oid)),r()},pe=()=>{let Fe={...f},je=[...f.sections],et=je.findIndex(xe=>xe.key===u);et!==-1&&je.splice(et,1),Fe.sections=je,h(Fe),M(!0),c(!1),b("100%"),d(null)},Qe=()=>{upt(F,e.oid)},Ue=()=>{const Fe=O.getFieldsValue();let je={...f,...Fe};for(let xe in je)je[xe]===!0?je[xe]="1":je[xe]===!1&&(je[xe]="0");je.children=je.sections.map(xe=>({...xe,XMLType:"RUBRIQUE"})),delete je.sections,je.XMLType="RAPPORT";const et=Fl({Rapport:je},!0);k(gpt(et,F)),r()},tt=(Fe,je)=>{if(je.changedFields.length&&Fe!=="indicator"){ge();let et={...f},xe=je.changedFields[0].name[0],Ne=je.changedFields[0].value;if(xe==="essential_conditions")for(let le=1;le<=5;le++)Ne[le-1]&&(et[`rapport_indicateur_condition_id_${le}`]=Ne[le-1]);xe in et&&(et[xe]=Ne,h(et))}},it=Fe=>{ge();let je={...f},et=Fe.map((xe,Ne)=>({...xe,numero_rubrique:(Ne+1).toString(),XMLType:"RUBRIQUE"}));je.sections=et,h(je)},we=()=>{w({oneOnly:!1}),y(!E)},ve=(Fe=null)=>{w({oneOnly:!0,serie:Fe}),y(!0)},Te=Fe=>{S(Fe)},Be=Fe=>{M(!0);let je={...f};je.colonnes_essentiel=Fe.join("|"),h(je)},Ge=(Fe,je,et)=>{M(!0);let xe={...f},Ne=Kj(xe.colonnes_essentiel_style),le=Ne[Fe]??{};le[je]=et,Ne[Fe]=le;let At=Vne(Ne);xe.colonnes_essentiel_style=At,h(xe)},ht=()=>{M(!0);let Fe={...f},je=Vne({});Fe.colonnes_essentiel_style=je,h(Fe)},We=()=>{n?(h(n),O.setFieldsValue(J(n))):Object.keys(Q).length?(h(Q),O.setFieldsValue(J(Q))):(h({}),O.setFieldsValue({}))},Ke=Fe=>{b(R+Fe.height)},Xe=()=>{o(Fe=>!Fe)},$e=Fe=>B?v.jsxs(v.Fragment,{children:[v.jsx(pr,{title:"Annuler les modifications",children:v.jsx(nt,{icon:v.jsx(La,{}),onClick:We,children:"Annuler"})}),v.jsx(pr,{title:"Enregistrer",children:v.jsx(nt,{type:"primary",icon:v.jsx(Gs,{}),onClick:Ue,children:"Enregister"})})]}):v.jsxs(v.Fragment,{children:[v.jsx(pr,{title:"Copier",onClick:Se,children:v.jsx(nt,{type:"link",disabled:!e,children:v.jsx(hh,{})})}),v.jsx(ga,{title:"Etes vous sûr de vouloir supprimer ce rapport ?",okText:"Supprimer le rapport",cancelText:"Annuler",onConfirm:ye,children:v.jsx(pr,{title:"Supprimer le rapport",children:v.jsx(nt,{type:"link",disabled:Fe,children:v.jsx(Ba,{})})})}),N.ISROLECTI&&v.jsx(pr,{title:"Script SQL",children:v.jsx(nt,{type:"link",disabled:!e,onClick:Qe,children:v.jsx(bv,{})})}),f.is_essentiel==="1"&&v.jsx(sU,{selectedReportsType:s,selectedReport:e,label:P})]}),pt=t.map((Fe,je)=>v.jsx(lae,{value:Fe.oid,children:Fe.texte},je)),de=L.map((Fe,je)=>v.jsx(lae,{value:Fe.oid,children:Fe.texte},je));return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:e?"Modifier le rapport":"Nouveau rapport"}),v.jsx("div",{className:"header-actions",children:v.jsxs(v.Fragment,{children:[$e(K),v.jsx(pr,{title:"Ajouter un nouvel indicateur",children:v.jsx(nt,{size:"default",type:"primary",icon:v.jsx(NS,{}),onClick:we,disabled:K,children:"Ajouter un indicateur"})}),v.jsx(nt,{type:"link",style:{height:"100%",marginRight:5},children:v.jsx(pr,{placement:"topRight",title:"Retour à la gestion des rapports",children:v.jsx(ci,{onClick:r})})})]})})]}),v.jsx(HA,{showModal:E,options:C,handleShowModal:we,handleAddIndicators:ee,handleModifyIndicator:ae}),v.jsxs(_e.Provider,{onFormChange:tt,children:[v.jsxs(_e,{form:O,name:"settings",className:"reports-editor-settings",onValuesChange:ge,disabled:K,children:[v.jsxs("div",{className:"form-row form-row_margin_right",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Code"}),v.jsx(_e.Item,{name:"code",children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Nom"}),v.jsx(_e.Item,{name:"label",children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Contexte"}),v.jsx(_e.Item,{name:"contexte",children:v.jsx(mt,{style:{maxWidth:150}})})]})]}),v.jsxs("div",{className:"form-row form-row_margin_right",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Conditions"}),v.jsx(_e.Item,{name:"essential_conditions",children:v.jsx(wa,{treeData:D,multiple:!0,style:{width:"250px"}})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Modèle"}),v.jsx(_e.Item,{name:"rapport_template_id",children:v.jsx(Ir,{children:pt})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Type de rapport"}),v.jsx(_e.Item,{name:"type_rapport",children:v.jsx(Ir,{options:a,onChange:q})})]})]}),v.jsxs("div",{className:"form-row ",children:[s==="ESSENTIEL"&&v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Groupe"}),v.jsx(_e.Item,{name:"group_id",children:v.jsx(Ir,{children:de})})]}),N.ISROLECTI&&v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Rapport CTI"}),v.jsx(_e.Item,{valuePropName:"checked",name:"is_cti",onChange:Xe,children:v.jsx(Rr,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Rapport désactivé"}),v.jsx(_e.Item,{valuePropName:"checked",name:"is_hide",children:v.jsx(Rr,{})})]})]})]}),v.jsx("div",{className:"component-content",children:v.jsx("div",{className:"editor-table",children:v.jsx(xa,{defaultActiveKey:"1",items:[{label:"Indicateurs",key:"1",children:v.jsxs("div",{className:"indicators-tab",children:[v.jsx(bh,{className:"tables-table",axis:"x",handleComponent:{bottom:v.jsx("div",{className:"resize-handle",style:{marginBottom:8},children:v.jsx("span",{children:"…"})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:"100%",height:R},onResizeStop:Ke,children:v.jsx(qwe,{report:f,selectedIndicator:u,handleSelectedIndicator:ne,handleSort:it,indicators:V})}),v.jsx(nBe,{indicator:g,showEditor:A,isEssentiel:s==="ESSENTIEL",handleUpdateIndicator:ce,handleCancelSection:ue,handleShowModalFromForm:ve,indicatorModified:I,handleIndicatorModified:Te,handleDeleteSection:pe,report:f,setFormIndicator:p,associatedIndicators:z})]})},...s==="ESSENTIEL"?[{label:"Paramétrages Essentiels",key:"2",children:v.jsx(Vwe,{report:f,handleChangeColumns:Be,handleChangeColumnStyles:Ge,handleResetColumnStyles:ht})}]:[]]})})})]})]})};aBe.propTypes={selectedRow:U.object,models:U.array,handleCloseEditor:U.func,newReport:U.object,nameReportsType:U.array};const Lpt=te.memo(aBe),iBe=({selectedRow:e,setSelectedRow:t,showParams:r,handleShowParams:n,handleCloseEditor:a,showEditor:i,setShowEditor:o,handleAddReport:s,nameReportsType:l})=>{const[A,c]=m.useState([]),[u,d]=m.useState([]),[f,h]=m.useState(!1),[g,p]=m.useState("ESSENTIEL"),[E,y]=m.useState(!1),[C,w]=m.useState(!1),[B,M]=m.useState(!1),[I,S]=m.useState([]),R=Ye(ye=>ye.cti.components.reports.loading),b=Ye(ye=>ye.cti.components.reports.data.selectedReport),Q=Ye(ye=>ye.cti.components.reports.data.searchFilterValue),D=Ye(ye=>ye.cti.settings.data.session),F=Ye(ye=>ye.cti.content.moduleId),N=Ye(ye=>ye.cti.components.reports.data),[k]=_e.useForm(),O=Pr(),P=N.comboGroup,z="Recalcul des essentiels";m.useEffect(()=>{b&&Object.keys(b).length>0&&p(b.type_rapport)},[b]),m.useEffect(()=>{g&&(d(Hgt(g)),k.setFieldsValue(ce()));let ye=N.reports.filter(pe=>(!B||pe.is_hide==="0")&&(!C||pe.is_cti==="1")&&pe.type_rapport===g);Q&&(ye=Fh(ye,Q,["texte","code","contexte"])),c(ye)},[N.reports,g,Q,C,B]);const j=ye=>{p(ye)},V=ye=>{O(B8e(ye.target.value))},L=ye=>{h(!0)},K=ye=>{const pe=N.reports.find(Qe=>Qe.key===ye);t(pe),p(pe.type_rapport),o(!0)},J=()=>{let ye=k.getFieldsValue(),pe={GENERALSETTINGS:{XMLType:"GENERALSETTINGS"}};for(let tt in ye)ye[tt]===!0?ye[tt]="1":ye[tt]===!1&&(ye[tt]="0"),pe.GENERALSETTINGS[`group_${tt}`]=ye[tt];const Qe=Fl(pe,!0);let Ue=[{oid:"0",texte:"N/A",one_click:"0"}];for(let tt in ye){let it=tt.split("_"),we=it.pop(),ve=it.join("_"),Te=Ue.find(Be=>Be.oid===we);Te?Te[ve]=ye[tt]:Ue.push({oid:we,[ve]:ye[tt]})}h(!1),O(dpt(F,Qe,Ue))},Y=()=>{y(!E),S([])},W=()=>{const pe=N.refReports.filter((Qe,Ue)=>I.includes(Ue)).map(Qe=>Qe.oid).join(",");O(fpt(F,pe)),Y()},q=()=>{O(VC())},ee=ye=>{let pe=[...I];Array.isArray(ye)?pe=pe.concat(ye):pe.includes(ye)?pe=pe.filter(Qe=>Qe!==ye):pe.push(ye),S([...new Set(pe)])},ae=ye=>{w(ye)},ne=ye=>{M(ye)};function ce(ye){let pe={};return P.forEach((Qe,Ue)=>{if(Ue!==0)for(let tt in Qe)tt==="one_click"?pe[`${tt}_${Qe.oid}`]=Qe[tt]==="1":pe[`${tt}_${Qe.oid}`]=Qe[tt]}),pe}const ue=(ye=!1)=>P.map((pe,Qe)=>pe.texte==="N/A"?null:(ye?Number(pe.oid)<10:Number(pe.oid)>10)?v.jsx("div",{className:"form-row",children:v.jsx("div",{className:"form-item",children:v.jsx(_e.Item,{name:`texte_${pe.oid}`,children:v.jsx(mt,{value:pe.texte,disabled:!!ye})})})},Qe):null),ge=[{title:"oid",dataKey:"oid",key:"oid",width:60},{title:"Rapport de référence",dataKey:"texte",key:"texte",width:600},{title:"Code",dataKey:"code",key:"code",width:200},{title:"CTI",dataKey:"is_cti",key:"is_cti",width:200}],Se=({columns:ye,rowData:pe,rowIndex:Qe})=>{let Ue="";return pe.is_hide==="1"&&(Ue+="settings__rowTable-inactive"),Qe%2===0&&(Ue+=" even-row"),Ue};return v.jsxs(v.Fragment,{children:[v.jsx(va,{title:"Importer depuis l'environnement de référence",open:E,onCancel:Y,width:"70vw",okText:"Importer les rapports sélectionnés",okButtonProps:{disabled:!I.length},onOk:W,cancelText:"Annuler",children:v.jsx("div",{style:{height:"50vh"},children:v.jsx($r,{columns:ge,data:N.refReports,selectedRows:I,onRowSelect:ee,shiftMulti:!0})})}),v.jsxs("div",{className:"component-header",children:[v.jsxs("div",{className:"header-title",children:[i&&v.jsx(nt,{type:"link",style:{height:"100%"},children:v.jsx(UI,{onClick:a})}),"Gestion des rapports"]}),v.jsx("div",{className:"header-actions",children:v.jsxs(v.Fragment,{children:[v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",onClick:q,children:v.jsx(La,{})})}),v.jsx(pr,{title:"Importer depuis l'environement de référence",children:v.jsx(nt,{type:"link",onClick:Y,children:v.jsx(Rv,{})})}),g==="ESSENTIEL"&&v.jsxs(v.Fragment,{children:[v.jsx(pr,{title:"Parametres généraux",children:v.jsx(nt,{type:"link",onClick:n,children:v.jsx(rY,{})})}),v.jsx(sU,{selectedReportsType:g,selectedReport:e,label:z})]}),v.jsx(pr,{title:"Créer un nouveau rapport",children:v.jsx(nt,{size:"default",type:"primary",icon:v.jsx(NS,{}),onClick:s,children:"Ajouter un rapport"})})]})})]}),v.jsx("div",{className:"reports__table-headers",children:v.jsxs(Mi,{children:[v.jsx(zn,{span:12,children:v.jsxs("div",{className:"reports__table-filters",children:[v.jsx("span",{children:"Type de rapport:"}),v.jsx(Ir,{options:l,onChange:j,style:{width:200},value:g}),v.jsx("span",{style:{marginLeft:"10px"},children:"Filtre:"}),v.jsx(mt,{className:"search-input",placeholder:"Recherche",value:Q,onChange:V})]})}),v.jsx(zn,{span:12,children:v.jsxs("div",{className:"reports__table-check",children:[v.jsx("span",{children:"Afficher uniquement :"}),v.jsxs("div",{className:"reports__table-single-check",children:[v.jsx(Va,{size:"small",checked:C,onChange:ae}),v.jsx("span",{children:"Rapports CTI"})]}),v.jsxs("div",{className:"reports__table-single-check",children:[v.jsx(Va,{size:"small",checked:B,onChange:ne}),v.jsx("span",{children:"Rapports actifs"})]})]})})]})}),v.jsxs("div",{className:"component-content",children:[v.jsx("div",{className:"reports-table",children:v.jsx($r,{columns:u,data:A,loading:R,selectedRow:e,onRowSelect:K,rowClassName:Se})}),v.jsxs("div",{className:"reports-params",style:{display:r?"block":"none"},children:[v.jsxs("div",{className:"params-close",children:[v.jsx("span",{children:"Paramètres généraux des essentiels"}),v.jsx("div",{className:"params-actions",children:f?v.jsxs(v.Fragment,{children:[v.jsx(pr,{title:"Valider",children:v.jsx(nt,{onClick:J,children:v.jsx(Gs,{})})}),v.jsx(ga,{placement:"top",style:{zIndex:"4000"},title:"Des modifications sont en cours... Etes vous sur de vouloir annuler ?",onConfirm:n,okText:"Annuler les modifications",cancelText:"Revenir à l'éditeur",children:v.jsx(pr,{title:"Fermer",children:v.jsx(nt,{children:v.jsx(ci,{})})})})]}):v.jsx(pr,{title:"Fermer",children:v.jsx(nt,{onClick:n,children:v.jsx(ci,{})})})})]}),v.jsx(_e,{form:k,onValuesChange:L,children:v.jsxs("div",{className:"params-form",children:[D.ISROLECTI&&v.jsxs("div",{className:"form-column",children:[v.jsx("span",{children:"Intitulés des groupes d'essentiels CTI"}),ue()]}),v.jsxs("div",{className:"form-column",children:[v.jsx("span",{children:"Intitulés des groupes d'essentiels Etablissement"}),ue()]})]})})]})]})]})};iBe.propTypes={selectedRow:U.object,showParams:U.bool,handleShowParams:U.func,handleCloseEditor:U.func,showEditor:U.bool,handleAddReport:U.func};const Upt=te.memo(iBe),oBe=({module:e})=>{const[t,r]=m.useState(!1),[n,a]=m.useState(!1),[i,o]=m.useState(),[s,l]=m.useState(null),A=Ye(g=>g.cti.components.reports.data),c=Pr();m.useEffect(()=>{c(VC(!0)),c(iU("iCTI_aggregateCtiIndicators")),c(oh(e))},[e,c]);const u=()=>{o(null),r(!1),l(null)},d=()=>{a(!n)},f=()=>{l(ppt),r(!0)},h=A.types.map(g=>({value:g.oid,label:g.texte}));return v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Gestion des rapports"})}),t?v.jsx(Lpt,{selectedRow:i,models:A.comboReport,handleCloseEditor:u,newReport:s,nameReportsType:h}):v.jsx(Upt,{selectedRow:i,setSelectedRow:o,showParams:n,handleShowParams:d,handleCloseEditor:u,showEditor:t,setShowEditor:r,handleAddReport:f,nameReportsType:h})]})};oBe.propTypes={module:U.string};const Hpt=te.memo(oBe),Gpt=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"FILE");return mn(r)},lU=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"RETURN");return mn(r)[0]},$0=(e,t)=>async function(r){r(Hu(!0));try{const n=await en("modules/pmsi/php/PMSI_simulation.php",{operation:t,FG_YEAR:e});if(t==="get_list"){const a=Gpt(n),i=lU(n);r(I8e(a,i))}else t==="send_file"&&(r($0(e,"get_list")),Tn({type:"info",message:"Simulation",description:"Sejours non groupés envoyés"}))}catch(n){t==="send_file"?(Tn({type:"error",message:"Simulation",description:"Erreur lors de l'envoi des séjours"}),Fa(8701,"",n)):Fa(8700,"",n)}r(Hu(!1))},Kpt=(e,t,r)=>async function(n){let a={};n(Hu(!0));try{const i=await en("modules/pmsi/php/PMSI_simulation.php",{operation:t,FG_YEAR:e,file:r});a=lU(i),a.code==="OK"?(Tn({type:"info",message:"Simulation",description:"Sejours groupés téléchargés, lancement des traitements"}),n(Vpt(e,"trt_file",r))):(Tn({type:"error",message:"Simulation",description:a.message}),n(Hu(!1)))}catch(i){Tn({type:"error",message:"Simulation",description:"Erreur lors du téléchargement des sejours groupés"}),Fa(8702,"",i),n(Hu(!1))}},Vpt=(e,t,r)=>async function(n){let a={};n(Hu(!0));try{const i=await en("modules/pmsi/php/PMSI_simulation.php",{operation:t,FG_YEAR:e,file:r});a=lU(i),a.code==="OK"?(Tn({type:"success",message:"Simulation",description:"Traitements terminés"}),n($0(e,"get_list"))):(Tn({type:"error",message:"Simulation",description:a.message}),n(Hu(!1)))}catch(i){Tn({type:"error",message:"Simulation",description:"Erreur lors du téléchargement des sejours groupés"}),Fa(8702,"",i),n(Hu(!1))}},Jpt=[{title:"Séjour téléversés",dataKey:"fg0_name",key:"fg0_name",width:300,resizable:!0,flexGrow:1},{title:"Date de téléversement",dataKey:"fg0_remote_date",key:"fg0_remote_date",width:300,resizable:!0},{title:"Taille",dataKey:"fg0_size",key:"fg0_size",cellRenderer:({cellData:e})=>`${e/1e3} Ko`,width:300,resizable:!0},{title:"Groupé par CTI",dataKey:"fg1_remote_date",key:"fg1_remote_date",width:300,resizable:!0}],sBe=({year:e})=>{const t=Ye(u=>u.cti.components.simulations.data.simulations),r=Ye(u=>u.cti.components.simulations.data.message),n=Ye(u=>u.cti.components.simulations.loading),[a,i]=m.useState({}),o=Pr();m.useEffect(()=>{o($0(e,"get_list")),i({})},[o,e]);const s=()=>{o($0(e,"get_list"))},l=()=>{o($0(e,"send_file"))},A=u=>{const d=t.find(f=>f.key===u);i(d)},c=()=>{a.fg1_ok==="OUI"&&o(Kpt(e,"get_file",a.fg1_name))};return v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsxs("title",{children:["iCTI | Regroupage ",e]})}),v.jsxs("div",{className:"component-header",children:[v.jsxs("div",{className:"header-title",children:["Regroupage ",e]}),v.jsxs("div",{className:"header-actions",children:[v.jsx(pr,{title:"Téléverser les séjours vers Web CTI",children:v.jsxs(nt,{onClick:l,children:[v.jsx(aC,{}),"Téléverser"]})}),v.jsx(pr,{title:"Télécharger la simulation",children:v.jsxs(nt,{disabled:a.fg1_ok!=="OUI",onClick:c,children:[v.jsx(TS,{}),"Télécharger"]})}),v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",onClick:s,children:v.jsx(La,{})})})]})]}),Object.keys(r).length?r.warning!==""&&v.jsx(tR,{message:r.warning,type:"warning",showIcon:!0}):null,v.jsx("div",{className:"component-content",children:v.jsx($r,{columns:Jpt,data:t,loading:n,fixed:!1,onRowSelect:A,selectedRow:a})})]})};sBe.propTypes={year:U.string};function lBe(e){const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"JOB"),n=ft(t,"EXE"),a=ft(t,"LASTJOBS");return{jobs:mn(r),execs:mn(n),lastJobs:mn(a)}}const Aae=(e=null)=>async function(t,r){t(tb(!0));const i=await en("modules/ssae/php/getSynchronize.php",{saeYear:e}),{jobs:o,execs:s,lastJobs:l}=lBe(i);t(uhe(o,s,l)),t(tb(!1))},PP=e=>async function(t,r){t(tb(!0));const i=await en("modules/outils/php/httpService_synchronizeManager_get.php",{exe:e}),{jobs:o,execs:s,lastJobs:l}=lBe(i);t(uhe(o,s,l)),t(tb(!1))},Wpt=(e,t)=>async function(r,n){await en("modules/ssae/php/execSynchronize.php",{exe_path:e,saeYear:t})};let ABe=[{title:"Nom",width:200,dataKey:"name",frozen:"left",key:"name",resizable:!0},{title:"Titre",width:150,dataKey:"title",key:"title",resizable:!0},{title:"Démarré",width:120,dataKey:"start",key:"start",resizable:!0},{title:"Terminé",width:120,dataKey:"end",key:"end",resizable:!0},{title:"Statut",width:200,dataKey:"endStatus",key:"endStatus",resizable:!0},{title:"Durée",width:200,dataKey:"duration",key:"duration",resizable:!0},{title:"Logs",fixed:"right",width:200,key:"operation",resizable:!0,dataGetter:({rowData:e})=>v.jsx("a",{href:window.location.origin+ma()+"modules/outils/php/getLogFile.php?longfile="+encodeURI(e.logFile),target:"_blank",rel:"noopener noreferrer",children:"Afficher"})}];const cBe=({module:e,swfData:t})=>{const[r,n]=m.useState({}),a=Ye(d=>d.cti.components.synchronize.data),i=Ye(d=>d.cti.components.synchronize.loading),o=Pr(),[s]=_e.useForm();m.useEffect(()=>{const d=t.split("|");n({exe:d[0],title:d[1],options:d.splice(2,d.length-1).filter(f=>f)}),o(PP(d[0]))},[e,o,t]);const l=()=>{o(PP(PP(r.exe)))},A=async()=>{const d=s.getFieldsValue();let f={exe:r.exe},h="";for(let g in d)d[g]&&(h=`${h}${g} ${d[g]} `);f.args=h,Tn({type:"success",message:"Synchronisation",description:"Synchronisation lancée sur le serveur"}),await en("modules/outils/php/httpService_synchronizeManager_exec.php",f),l()};function c(d){const f=d.map((h,g)=>({...h,key:g}));return v.jsx("div",{className:"content-table",children:v.jsx($r,{columns:ABe,data:f,loading:i})})}const u=()=>{if(!r.options||!r.options.length)return null;const d=r.options.map(f=>{const h=f.split("#")[0],g=f.split("#")[1],p=f.split("#")[3];return v.jsxs("div",{className:"form-item",children:[v.jsx("div",{className:"first-label",children:h}),v.jsx(_e.Item,{name:g,extra:p,children:v.jsx(mt,{})},g)]},g)});return v.jsx("div",{className:"sync-options",children:v.jsx(_e,{form:s,children:d})})};return!a.jobs||i?v.jsx("div",{className:"loading-wrapper",children:v.jsx(Ya,{})}):v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Synchronisation"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:r.title}),v.jsx("div",{className:"header-actions",children:v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",onClick:l,children:v.jsx(La,{})})})})]}),v.jsx("div",{className:"component-content",children:v.jsx(xa,{defaultActiveKey:"1",items:[{label:"Synchronisation des données",key:"1",children:v.jsxs(v.Fragment,{children:[u(),v.jsx("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center"},children:v.jsxs(ga,{title:"Êtes-vous sur de vouloir lancer la synchronisation ?",onConfirm:A,children:[v.jsx(nt,{type:"primary",style:{width:500},children:"Lancer"}),v.jsx("p",{children:a.lastJobs[0].last_all_endded})]})})]})},{label:"Historique des travaux",key:"2",children:v.jsx(v.Fragment,{children:c(a.jobs)})}]})})]})};cBe.propTypes={module:U.string,data:U.string};const Xpt=te.memo(cBe),uBe=({module:e,year:t})=>{const r=Ye(A=>A.cti.components.synchronize.data),n=Ye(A=>A.cti.components.synchronize.loading),a=Pr();m.useEffect(()=>{a(Aae(t))},[a,t]);const i=()=>{a(Aae(t))},o=A=>{a(Wpt(A,t)),Tn({type:"success",message:"Synchronisation",description:"Synchronisation lancée sur le serveur"})};function s(A){return e==="iCTI_ssae"?v.jsx("div",{style:{display:"flex",flexDirection:"column"},children:A.map(c=>v.jsxs("div",{style:{padding:"10px 20px"},children:[v.jsx(ga,{title:c.confirm,onConfirm:()=>o(c.exe_path),okText:"Lancer la synchronisation",cancelText:"Annuler",children:v.jsx(nt,{type:"primary",icon:v.jsx(i_e,{}),children:c.button})}),v.jsx("br",{}),v.jsx("span",{style:{margin:"10px 0px  0px"},children:c.last_status})]},c.button))}):v.jsx("div",{})}function l(A){const c=A.map((u,d)=>({...u,key:d}));return v.jsx("div",{className:"content-table",children:v.jsx($r,{columns:ABe,data:c,loading:n})})}return!r.jobs||n?v.jsx("div",{className:"loading-wrapper",children:v.jsx(Ya,{})}):v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Synchronisation"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Synchronisation des données"}),v.jsx("div",{className:"header-actions",children:v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",onClick:i,children:v.jsx(La,{})})})})]}),v.jsx("div",{className:"component-content",children:v.jsx(xa,{defaultActiveKey:"1",items:[{label:"Synchronisation des données",key:"1",children:v.jsx(v.Fragment,{children:s(r.execs)})},{label:"Historique des travaux",key:"2",children:v.jsx(v.Fragment,{children:l(r.jobs)})}]})})]})};uBe.propTypes={module:U.string,year:U.string};const qpt=te.memo(uBe);function AU(e,t){let r={...e.extraData};delete e.extraData;let n={RECORD:{XMLType:"RECORD",...e,children:[]}};return r.histos&&r.histos.forEach(a=>{let i={XMLType:"HISTO",...a};n.RECORD.children.push(i)}),r.indicators&&r.indicators.forEach(a=>{var s;let i=[];a!=null&&a.hasOwnProperty("keys")&&(i=(s=a.keys)==null?void 0:s.map(l=>({XMLType:"CLE",...l})));let o={XMLType:"INDICATEUR",...a,children:i};n.RECORD.children.push(o)}),r.lits&&r.lits.forEach(a=>{let i={XMLType:"LIT",...a};n.RECORD.children.push(i)}),r.etages&&r.etages.forEach(a=>{let i={XMLType:"ETAGE",...a};n.RECORD.children.push(i)}),r.iqv&&r.iqv.forEach(a=>{let i={XMLType:"IQV",...a};n.RECORD.children.push(i)}),Fl(n,!0)}function Vj(e,t={}){let r=t.fields&&Array.isArray(t.fields)?t.fields:[];for(const n in e){let a;r&&(a=r.find(o=>o.dataKey===n));let i=e[n];a&&a.type==="date"&&(t.tableName==="t_provider_data_section"?i=e[n]?e[n].format("YYY-MM-DD"):"":t.tableName==="t_finess"?i=e[n]?e[n].format("YYYY-MM-DD"):"":i=e[n]?e[n].format("DD-MM-YYYY"):""),i===!1&&(i="0"),i===!0&&(i="1"),i===void 0&&(i=""),n==="user_modified"&&(i===!0||i==="1")?i="M":n==="p_cumul"&&(i===!0||i==="1")?i="C":n==="p_detail"&&(i===!0||i==="1")?i="D":(n.startsWith("p_")||n==="proratiser_conversion")&&((i===!0||i==="1")&&(i="X"),(i===!1||i==="0")&&(i="")),e[n]=i}return e}function Zpt(e){const t=Buffer.from(e,"base64"),r=Do.inflate(t);var n=new TextDecoder("iso-8859-15");return n.decode(r)}const cU=(e,t={},r=[])=>{const n=t.fields;for(let a in e){let i;if(n&&Array.isArray(n)&&(i=n.find(o=>o.dataKey===a)),i&&i.type==="checkbox"&&e[a]==="0"&&(e[a]=!1),i&&i.type==="checkbox"&&["1","M","C","D","X"].includes(e[a])&&(e[a]=!0),i&&i.type==="date"){let o=Nn(e[a],"DD-MM-YYYY");o.isValid()||(o=Nn(e[a],"YYYY-MM-DD"),o.isValid()||(o=null)),e[a]=o}}if(e.description&&e.description.startsWith("_c_"))try{let a=Zpt(e.description.substring(3));a.includes("TEXTFORMAT")&&(a=a.replace(/<\/?TEXTFORMAT[^>]*>|<\/?FONT[^>]*>|<P[^>]*>|<\/LI[^>]*>/gm,"").replace(/<\/?B[^>]*>/g,"**").replace(/<\/P[^>]*>/g,`
`).replace(/<LI[^>]*>/g,`
 - `).replace(/&apos;/g,"'").replace(/\[/g,"	(").replace(/\]/g,"	)").replace(/&quot;/g,'"')),e.description=a}catch{}if((t==null?void 0:t.component)==="MEDA"&&r.length){const a=r.filter(i=>i.medecin_reference_id===e.oid).map(i=>i.oid);e.medecins_regroupes_oids=a.join(", ")}return e},$pt=(e,t,r={})=>{const n=e.getElementsByTagName("HTTP_SERVICE")[0],a=ft(n,"RECORD"),i=ft(n,"REFRECORD"),o=ft(n,"COMBO_POL"),s=ft(n,"COMBO_SPI"),l=ft(n,"COMBO_MDA"),A=ft(n,"COMBO_SERVICE"),c=ft(n,"COMBO_ETAGE"),u=ft(n,"COMBO_MOIS"),d=ft(n,"COMBO_CPT"),f=ft(n,"COMBO_GRG"),h=ft(n,"COMBO_DEP"),g=ft(n,"COMBO_SPI"),p=ft(n,"COMBO_TAU"),E=ft(n,"COMBO_UM"),y=ft(n,"COMBO_MED"),C=ft(n,"COMBO_FAC"),w=ft(n,"COMBO_FSO"),B=ft(n,"COMBO_MVT_UF_SOIN"),M=ft(n,"COMBO_FINESS"),I=ft(n,"COMBO_MTR"),S=ft(n,"COMBO_DMT"),R=ft(n,"COMBO_ACTIVITE"),b=ft(n,"COMBO_UMD"),Q=ft(n,"COMBO_UMX"),D=ft(n,"COMBO_SER"),F=ft(n,"COMBO_QUA"),N=ft(n,"COMBO_SAL"),k=ft(n,"COMBO_FROMSER"),O=ft(n,"COMBO_TOSER"),P=ft(n,"COMBO_FROMQUA"),z=ft(n,"COMBO_TOQUA"),j=ft(n,"COMBO_FROMDAT"),V=ft(n,"COMBO_TODAT"),L=ft(n,"COMBO_JOURNAL"),K=ft(n,"COMBO_SECTION"),J=ft(n,"COMBO_COMPTE"),Y=ft(n,"COMBO_SITE"),W=ft(n,"COMBO_ECH"),q=ft(n,"COMBO_CST"),ee=ft(n,"COMBO_FOU"),ae=ft(n,"COMBO_TAA"),ne=ft(n,"COMBO_CONDITION"),ce=ft(n,"COMBO_BUDGET_CLE"),ue=ft(n,"ARRAY_SEJ");let ge=[];ue.length&&(ge=ft(ue[0],"RECORD"));const Se=ft(n,"COMBO_TYPECOMPTA"),ye=ft(n,"COMBO_PRESTATION"),pe=ft(n,"PRESTATAIRE"),Qe=ft(n,"ADDRECORD");let Ue={};Qe.length&&(Ue=lr(Qe[0]));const tt=ft(n,"COMBO_POP")[0];let it=[];tt&&(it=ft(tt,"RECORD"),it=it.map(ie=>{let re=lr(ie);return{...re,label:re.texte,value:re.oid}}));const we=ft(n,"COMBO_DEP")[0];let ve=[];we&&(ve=ft(we,"RECORD"),ve=ve.map(ie=>{let re=lr(ie);return{...re,label:re.texte,value:re.oid}}));const Te=ft(n,"LIST_MDA")[0],Be=ft(n,"LIST_MEDA")[0];let Ge=[],ht=[];Te&&(Ge=ft(Te,"RECORD")),Be&&(ht=ft(Be,"RECORD"));const We=ft(n,"LIST_CPO")[0];let Ke=[];We&&(Ke=ft(We,"RECORD"));const Xe=ft(n,"LIST_GHM")[0];let $e=[];Xe&&($e=ft(Xe,"RECORD"));const pt=ft(n,"LIST_ART")[0];let de=[];pt&&(de=ft(pt,"RECORD"));const Fe=ft(n,"LIST_FOU")[0];let je=[];Fe&&(je=ft(Fe,"RECORD"));const et=ft(n,"ARRAY_RA9"),xe=ft(n,"ARRAY_RA1"),Ne={POL:qr(o),SPI:qr(s),MDA:qr(l),SERVICE:qr(A),ETAGE:qr(c),MOIS:qr(u),CPT:qr(d),PRESTATION:qr(ye),TPY:qr(f),CPO:qr(h),MED:qr(g),TAU:qr(p),UM:qr(E),UM_MED:qr(y),FAC:qr(C),FSO:qr(w),MVT_UF_SOIN:qr(B),FINESS:qr(M),MTR:qr(I),DMT:qr(S),ACTIVITE:qr(R),UMD:qr(b),UMX:qr(Q),SER:qr(D),QUA:qr(F),PRESTATAIRE:mn(pe),SAL:qr(N),FROMSER:qr(k),TOSER:qr(O),FROMQUA:qr(P),TOQUA:qr(z),FROMDAT:qr(j),TODAT:qr(V),TYPECOMPTA:qr(Se),JOURNAL:qr(L),SECTION:qr(K),COMPTE:qr(J),SITE:qr(Y),BUDGET_CLE:qr(ce),FOU:qr(ee),CONDITIONS:xh(qr(ne)),ECH:qr(W),CST:qr(q),TAA:qr(ae),SEJ:mn(ge),RA9:qr(et),RA1:qr(xe),DEP:ve,POP:it},le={MDA:mn(Ge),MEDA:mn(ht),CPO:mn(Ke),GHM:mn($e),ART:mn(de),LFOU:mn(je)};let At=mn(a),Bt=mn(i);At=At.map((ie,re)=>{let he={},Pe=ft(a[re],"INDICATEUR");if(Pe){let rt=tvt(Pe);he.indicators=rt}ie.extraData=he;let be=ft(a[re],"HISTO");be&&(ie.extraData.histos=mn(be));let Ve=ft(a[re],"LIT");Ve&&(ie.extraData.lits=mn(Ve));let lt=ft(a[re],"ETAGE");lt&&(ie.extraData.etages=mn(lt));let Ze=ft(a[re],"IQV");return Ze&&(ie.extraData.iqv=mn(Ze)),cU(ie,r,At)});let G={};const Ee=ft(n,"DIVERS")[0];if(Ee&&t==="t_rubriques"){const ie=ft(Ee,"RECORD");G.rubriques=lr(ie[0])}const Ie=ft(n,"GENERAL_SETTINGS");if(Ie&&t==="t_expert_controle"&&!r.module){const ie=lr(Ie[0]);G.expert=ie}return{records:At,combos:Ne,listes:le,divers:G,addRecord:Ue,refRecords:Bt}},evt=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=ft(t,"RECORD");let n=mn(r);return n.forEach(a=>{a.label=a.texte,a.value=a.oid}),n};function qr(e){let t=[];if(e&&e.length){const r=e[0];let n=ft(r,"RECORD");t=mn(n),t=t.map(a=>({...a,label:a.texte??a.label,value:a.oid??a.data}))}return t}function tvt(e){return e.map((t,r)=>{let n=lr(t);n.key=r;let a=ft(t,"CLE");if(a&&a.length){let i=a.map((o,s)=>{let l=lr(o);return l.key=s,l});n.keys=i}return n})}const Py=(e,t,r,n="",a="1",i={})=>async function(o,s){o(Zp(!0));let l={softCode:t,tableName:r,firstCall:a,getParam:n};i.tableSection&&(l.tableSection=i.tableSection);const A=await en(hht(e),l),{records:c,combos:u,listes:d,divers:f,addRecord:h,refRecords:g}=$pt(A,r,i);o(a==="0"?D8e(c):Q8e(c,u,d,f,h,g)),o(Zp(!1))},uU=(e,t=null)=>async function(r,n){r(Zp(!0));const i=await en("modules/base/php/httpservice_getChoices.php",{query:e}),o=evt(i);r(t?_8e(t,o):F8e(o)),r(Zp(!1))},Up=(e,t,r,n,a,i,o=!0,s="")=>async function(l,A){const c=swe(e),u={softCode:t,tableName:r,action:i,propagate:o,recordNode:n};try{l(Zp(!0)),await en(c,u),l(Py(e,t,r,s))}catch(d){throw console.log(d),new Error("Erreur lors de la mise à jour de la table")}},dBe=(e,t,r,n=null,a=null)=>async function(i,o){i(Zp(!0));const s=swe(e);let l={softCode:r,tableName:t,action:a!==null?a:"execute_rules"};n!==null&&(l.oids=n);try{await en(s,l),i(Py(e,r,t))}catch(A){throw console.log(A),new Error("Erreur lors de la mise à jour de la table")}},rvt=(e,t,r,n)=>async function(a,i){const o=ght(e);let s={tableName:r,oids:n.join(", ")};await en(o,s),a(Py(e,t,r))},Og=[{title:"Code",dataKey:"code",width:75,type:"input"},{title:"Texte",dataKey:"texte",type:"input"}],nvt={POL:{tableName:"t_pole",title:"Gestion Poles",component:"common",addButton:!0,fields:[...Og,{title:"Nombre Références (règles)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}],visible:!0},POR:{tableName:"t_pole_rule",title:"Gestion règles poles",component:"rules",addButton:!0,execute:{label:"Executer les règles",action:"POR_execute_rules"},fields:[{title:"Priorité",dataKey:"priorite",type:"input",default:"5000"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Code règle",dataKey:"code",type:"input",editable:!1,hidden:!0},{title:"Pole",dataKey:"pole_texte",editVisible:!1},{title:"Règles",dataKey:"rule_resume",type:"input",editVisible:!1},{title:"Pole",dataKey:"pole_id",type:"select",selectOptionsKey:"POL",hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole02_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux02",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole03_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux03",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole04_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux04",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole05_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux05",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole06_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux06",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole07_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux07",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole08_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux08",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole09_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux09",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole10_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux10",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole11_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux11",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole12_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"}],comptaExtraParams:!0,visible:!0,extraFields:!0},SPI:{tableName:"t_specialites_medecin",title:"Gestion Spécialités internes des médecins",component:"common",addButton:!0,fields:[...Og,{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Nombre Références (médecins)",dataKey:"nbref",type:"input",editVisible:!1}],visible:!0},MED:{tableName:"t_medecins",title:"Gestion Référentiel Médecins",component:"MED",addButton:!0,doubleFilter:!0,sejoursActFilter:!0,saveWithoutCalc:!0,addSearchFields:["nom","prenom"],fields:[{title:"Code",dataKey:"code",type:"input"},{title:"Nom",dataKey:"nom",type:"input"},{title:"Prénom",dataKey:"prenom",type:"input"},{title:"Spécialité interne",dataKey:"specialite_interne_texte",editVisible:"false"},{title:"Spécialité interne",dataKey:"specialite_interne_id",type:"select",hidden:!0,selectOptionsKey:"SPI"},{title:"Nº ADELI",dataKey:"numero_ordre",type:"input"},{title:"RPPS",dataKey:"code_rpps",type:"input"},{title:"Identifiant groupe",dataKey:"identifiant_groupe",type:"input"},{title:"Etablissements",dataKey:"ets",type:"input",editable:!1},{title:"Références (médecins administratifs)",dataKey:"nbref",type:"input",editable:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""},{title:"Références (séjours)",dataKey:"nbsej",type:"input",editable:!1},{title:"Références (actes)",dataKey:"nbact",type:"input",editable:!1},{title:"Doublon",dataKey:"doublon",type:"input",editable:!1,editVisible:!1}],visible:!0},BUD:{tableName:"t_budget",title:"Gestion Budgets",addButton:!0,component:"BUD",fields:[...Og,{title:"Date début",dataKey:"date_debut",type:"date"},{title:"Date fin",dataKey:"date_fin",type:"date"}],visible:!0,modalLabel:"Gestion des indicateurs"},BUC:{tableName:"t_budget_cle",title:"Gestion Clés budgétaires",component:"common",addButton:!0,fields:[...Og,{title:"Texte court",dataKey:"texte_court",type:"input"}],visible:!0},BUR:{tableName:"t_budget_cle_rule",title:"Gestion Règles d'affectation aux Clés budgétaires",component:"rules",addButton:!0,execute:{label:"Executer les règles",action:"execute_rules"},fields:[...Og,{title:"Priorite",dataKey:"priorite",type:"input",default:"5000"},{title:"Clé budgétaire",dataKey:"budget_cle_texte",type:"input",editVisible:!1},{title:"Clé budgétaire",dataKey:"budget_cle_id",type:"select",selectOptionsKey:"BUDGET_CLE",hidden:!0},{title:"Règles",dataKey:"rule_resume",type:"input",editVisible:!1}],visible:!0,extraFields:!0},BUI:{tableName:"t_budget_cle_budget",title:"Gestion Budgets",component:"BUI_activite",fields:[...Og.map(e=>({...e,editable:!1})),{title:"Date début",dataKey:"date_debut",type:"input",editVisible:!1},{title:"Date fin",dataKey:"date_fin",type:"input",editVisible:!1}],visible:!0},VPA:{tableName:"t_validation_parametre",title:"Validation nouveaux paramètres",refUniquement:!1,component:"common",fields:[{title:"oid",dataKey:"oid",type:"input",hidden:!1,editVisible:!1},{title:"Table",dataKey:"table_texte",type:"input",editable:!1},{title:"Code",dataKey:"parametre_code",type:"input",editable:!1},{title:"Texte",dataKey:"parametre_texte",type:"input",editable:!1},{title:"Date",dataKey:"parametre_date",type:"input",editable:!1},{title:"Validé",dataKey:"parametre_valide",type:"checkbox",hidden:!0}],visible:!0}},avt=(e,t)=>{switch(e){case"POR":return bE(e,t);case"PER":return bE(e,t);case"BUR":return bE(e,t);case"FAR":return bE(e,t);case"FSR":return bE(e,t)}};function bE(e,t){switch(t){case"iCTI_activite":const r=[{title:"Type séjour",dataKey:"liste_type_sejour",type:"input",hidden:!0,tab:!0},{title:"Spécialité",dataKey:"liste_specialite",type:"input",hidden:!0,tab:!0},{title:"Médecins",dataKey:"liste_medecin",type:"input",hidden:!0,tab:!0},{title:"Services (S)",dataKey:"liste_service",type:"input",hidden:!0,tab:!0},{title:e==="BUR"?"Activite":"Etages (S)",dataKey:e==="BUR"?"liste_activite":"liste_etage",type:"input",hidden:!0,tab:!0},{title:"Unité fonctionnelle (S)",dataKey:e==="BUR"?"liste_uf":"liste_unite_fonctionnelle",type:"input",hidden:!0,tab:!0},{title:"Actes",dataKey:"liste_acte",type:"input",hidden:!0,tab:!0},{title:"Rubriques",dataKey:"liste_rubrique",type:"input",hidden:!0,tab:!0},{title:"GHM",dataKey:"liste_ghm",type:"input",hidden:!0,tab:!0},{title:"Sauf GHM",dataKey:"liste_sauf_ghm",type:"input",hidden:!0,tab:!0},{title:"Diagnostic principal",dataKey:"liste_diagnostic_principal",type:"input",hidden:!0,tab:!0},{title:"Diagnostique relié",dataKey:"liste_diagnostic_relie",type:"input",hidden:!0,tab:!0},{title:"Diagnostique associé",dataKey:"liste_diagnostic_associe",type:"input",hidden:!0,tab:!0},{title:"FINESS",dataKey:"liste_finess",type:"input",hidden:!0,tab:!0},e!=="BUR"&&{title:"Prestations",dataKey:"liste_prestation",type:"input",hidden:!0,tab:!0}];return e==="CAR"?r.push({title:"Sauf Préstation",dataKey:"liste_sauf_prestation",type:"input",hidden:!0,tab:!0},{title:"Compte Produit",dataKey:"liste_compte_produit",type:"input",hidden:!0,tab:!0},{title:"Sauf Compte Produit",dataKey:"liste_sauf_compte_produit",type:"input",hidden:!0,tab:!0}):(e==="FAR"||e==="FSR")&&r.push({title:"UF (E)",dataKey:"liste_unite_fonctionnelle_entree",type:"input",hidden:!0,tab:!0},{title:"Etage (E)",dataKey:"liste_etage_entree",type:"input",hidden:!0,tab:!0},{title:"Service (E)",dataKey:"liste_service_entree",type:"input",hidden:!0,tab:!0}),r;case"iCTI_rh":const n=[{title:"Service",dataKey:"liste_service",type:"input",hidden:!0,tab:!0},{title:"Spécialité",dataKey:"liste_specialite",type:"input",hidden:!0,tab:!0},{title:"Section analytique",dataKey:"liste_section_analytique",type:"input",hidden:!0,tab:!0},{title:"Section paie",dataKey:"liste_section_analytique_paie",type:"input",hidden:!0,tab:!0},{title:"Qualification",dataKey:"liste_qualification",type:"input",hidden:!0,tab:!0},{title:"Grille",dataKey:"liste_grille",type:"input",hidden:!0,tab:!0},{title:"Code emploi",dataKey:"liste_code_emploi",type:"input",hidden:!0,tab:!0},{title:"Catégories socio professionnelle",dataKey:"liste_categorie_socio_professionnelle",type:"input",hidden:!0,tab:!0},{title:"FINESS",dataKey:"liste_finess",type:"input",hidden:!0,tab:!0},{title:"Etablissement",dataKey:"liste_etablissement",type:"input",hidden:!0,tab:!0}];return e==="PER"&&n.push({title:"Statut",dataKey:"liste_statut",type:"input",hidden:!0,tab:!0}),e==="POR"&&n.push({title:"Service Planning",dataKey:"liste_service_planning",type:"input",hidden:!0,tab:!0}),n;case"iCTI_compta":return[{title:"Compte",dataKey:"liste_compte",type:"input",hidden:!0,tab:!0},{title:"Sauf Compte",dataKey:"liste_sauf_compte",type:"input",hidden:!0,tab:!0},{title:"Journal",dataKey:"liste_journal",type:"input",hidden:!0,tab:!0},{title:"Sauf journal",dataKey:"liste_sauf_journal",type:"input",hidden:!0,tab:!0},{title:"Section",dataKey:"liste_section_analytique",type:"input",hidden:!0,tab:!0},{title:"Sauf section",dataKey:"liste_sauf_section_analytique",type:"input",hidden:!0,tab:!0},{title:"Site",dataKey:"liste_site",type:"input",hidden:!0,tab:!0},{title:"Exercice",dataKey:"liste_exercice",type:"input",hidden:!0,tab:!0},{title:"Finess",dataKey:"liste_finess",type:"input",hidden:!0,tab:!0},{title:"Mois comptable",dataKey:"liste_mois_comptable",type:"input",hidden:!0,tab:!0},{title:"Mode",dataKey:"special_calc",type:"input",editVisible:!1}];case"iCTI_eco":return[{title:"FINESS",dataKey:"liste_finess",type:"input",hidden:!0,tab:!0},{title:"Sites",dataKey:"liste_site",type:"input",hidden:!0,tab:!0},{title:"Unité fonctionnelle",dataKey:"liste_unite_fonctionnelle",type:"input",hidden:!0,tab:!0}];case"iCTI_qualite":return[{title:"FINESS",dataKey:"liste_finess",type:"input",hidden:!0,tab:!0},{title:"Unité fonctionnelle",dataKey:"liste_unite_fonctionnelle",type:"input",hidden:!0,tab:!0}]}}const fBe=({form:e,record:t,handleValuesChange:r})=>{const[n,a]=m.useState("2020"),i=Ye(u=>u.cti.components.tables.data.combos);m.useEffect(()=>{if(t!=null&&t.date_ecriture){const u=t.date_ecriture.slice(0,4);a(u);let d={};for(let f=1;f<=12;f++)f<10?d[`mois_ventile_${f}`]=`${u}0${f}`:d[`mois_ventile_${f}`]=`${u}${f}`;e.setFieldsValue(d)}},[t,e]);const o=u=>{u==="D"?e.setFieldsValue({montant_debit:e.getFieldValue("montant"),montant_credit:"0"}):e.setFieldsValue({montant_credit:e.getFieldValue("montant"),montant_debit:"0"})},s=u=>{e.getFieldValue("debit")==="D"?e.setFieldsValue({montant_debit:u.target.value,montant_credit:"0"}):e.setFieldsValue({montant_credit:u.target.value,montant_debit:"0"})},l=()=>{const u=e.getFieldValue("montant"),d=e.getFieldValue("debit"),f=(Number(u)/12).toFixed(2),h=(Number(u)-11*Number(f)).toFixed(2).replace(".",",");let g={};for(let p=1;p<12;p++)g[`montant_ventile_${p}`]=f.replace(".",",");g.montant_ventile_12=h,g.total=u,d==="D"?g.montant_credit="0":g.montant_debit="0",e.setFieldsValue(g),r()},A=u=>{const d=u.slice(0,4);a(u.slice(0,4));let f={};for(let h=1;h<=12;h++){let g=`${d}${h}`;h<10&&(g=`${d}0${h}`),f[`mois_ventile_${h}`]=g}e.setFieldsValue(f)},c=()=>{let u=0;const d=e.getFieldValue("debit"),f=e.getFieldsValue();for(let g=1;g<=12;g++)u=u+Number(f[`montant_ventile_${g}`].replace(",","."));u=u.toFixed(2).replace(".",",");const h={total:u,montant_credit:u,montant:u,montant_debit:"0"};d==="D"&&(h.montant_debit=u,h.montant_credit="0"),e.setFieldsValue(h)};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Mois Comptable"}),v.jsx(_e.Item,{name:"mois_comptable",children:v.jsx(Ir,{options:i.MOIS,onChange:A})})]}),v.jsxs("span",{children:["Saisie le ",Nn().format("YYYY-MM-DD")]})]}),v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Site"}),v.jsx(_e.Item,{name:"site_id",children:v.jsx(Ir,{options:i.SITE})})]}),v.jsx("div",{className:"form-item",children:v.jsx(_e.Item,{name:"clinique_honoraire",children:v.jsx(Ir,{options:[{label:"Clinique",value:"C"},{label:"Honoraire",value:"H"}]})})})]}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Journal"}),v.jsx(_e.Item,{name:"journal_code",children:v.jsx(Ir,{options:i.JOURNAL})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Compte"}),v.jsx(_e.Item,{name:"compte_numero",children:v.jsx(Ir,{style:{width:"200px"},options:i.COMPTE})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Section"}),v.jsx(_e.Item,{name:"section_code",children:v.jsx(Ir,{options:i.SECTION})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Texte"}),v.jsx(_e.Item,{name:"texte",children:v.jsx(mt.TextArea,{})})]})}),v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Montant"}),v.jsx(_e.Item,{name:"debit",children:v.jsx(Ir,{options:[{label:"Débit",value:"D"},{label:"Crédit",value:"C"}],onChange:o})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(_e.Item,{name:"montant",children:v.jsx(mt,{onChange:s})}),v.jsx(nt,{type:"primary",onClick:l,children:"Ventiler"}),v.jsx(_e.Item,{name:"montant_credit",hidden:!0,children:v.jsx(mt,{})}),v.jsx(_e.Item,{name:"montant_debit",hidden:!0,children:v.jsx(mt,{})})]})]}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Report automatique"}),v.jsx(_e.Item,{name:"report_automatique_mois_suivant",valuePropName:"checked",children:v.jsx(Rr,{})})]})}),v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Ventilation"}),v.jsx("span",{className:"second-label",children:`Janvier ${n}`}),v.jsx(_e.Item,{hidden:!0,name:"mois_ventile_1",children:v.jsx(mt,{})}),v.jsx(_e.Item,{name:"montant_ventile_1",children:v.jsx(mt,{style:{width:"80px"},onChange:c})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(_e.Item,{hidden:!0,name:"mois_ventile_2",children:v.jsx(mt,{})}),v.jsx("span",{className:"second-label",children:`Février ${n}`}),v.jsx(_e.Item,{name:"montant_ventile_2",children:v.jsx(mt,{style:{width:"80px"},onChange:c})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(_e.Item,{hidden:!0,name:"mois_ventile_3",children:v.jsx(mt,{})}),v.jsx("span",{className:"second-label",children:`Mars ${n}`}),v.jsx(_e.Item,{name:"montant_ventile_3",children:v.jsx(mt,{style:{width:"80px"},onChange:c})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(_e.Item,{hidden:!0,name:"mois_ventile_4",children:v.jsx(mt,{})}),v.jsx("span",{className:"second-label",children:`Avril ${n}`}),v.jsx(_e.Item,{name:"montant_ventile_4",children:v.jsx(mt,{style:{width:"80px"},onChange:c})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(_e.Item,{hidden:!0,name:"mois_ventile_5",children:v.jsx(mt,{})}),v.jsx("span",{className:"second-label",children:`Mai ${n}`}),v.jsx(_e.Item,{name:"montant_ventile_5",children:v.jsx(mt,{style:{width:"80px"},onChange:c})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(_e.Item,{hidden:!0,name:"mois_ventile_6",children:v.jsx(mt,{})}),v.jsx("span",{className:"second-label",children:`Juin ${n}`}),v.jsx(_e.Item,{name:"montant_ventile_6",children:v.jsx(mt,{style:{width:"80px"},onChange:c})})]})]}),v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx(_e.Item,{hidden:!0,name:"mois_ventile_7",children:v.jsx(mt,{})}),v.jsx("span",{className:"first-label"}),v.jsx("span",{className:"second-label",children:`Juillet ${n}`}),v.jsx(_e.Item,{name:"montant_ventile_7",children:v.jsx(mt,{style:{width:"80px"},onChange:c})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(_e.Item,{hidden:!0,name:"mois_ventile_8",children:v.jsx(mt,{})}),v.jsx("span",{className:"second-label",children:`Août ${n}`}),v.jsx(_e.Item,{name:"montant_ventile_8",children:v.jsx(mt,{style:{width:"80px"},onChange:c})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(_e.Item,{hidden:!0,name:"mois_ventile_9",children:v.jsx(mt,{})}),v.jsx("span",{className:"second-label",children:`Septembre ${n}`}),v.jsx(_e.Item,{name:"montant_ventile_9",children:v.jsx(mt,{style:{width:"80px"},onChange:c})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(_e.Item,{hidden:!0,name:"mois_ventile_10",children:v.jsx(mt,{})}),v.jsx("span",{className:"second-label",children:`Octobre ${n}`}),v.jsx(_e.Item,{name:"montant_ventile_10",children:v.jsx(mt,{style:{width:"80px"},onChange:c})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(_e.Item,{hidden:!0,name:"mois_ventile_11",children:v.jsx(mt,{})}),v.jsx("span",{className:"second-label",children:`Novembre ${n}`}),v.jsx(_e.Item,{name:"montant_ventile_11",children:v.jsx(mt,{style:{width:"80px"},onChange:c})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(_e.Item,{hidden:!0,name:"mois_ventile_12",children:v.jsx(mt,{})}),v.jsx("span",{className:"second-label",children:`Décembre ${n}`}),v.jsx(_e.Item,{name:"montant_ventile_12",children:v.jsx(mt,{style:{width:"80px"},onChange:c})})]})]}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Total"}),v.jsx(_e.Item,{name:"total",children:v.jsx(mt,{disabled:!0})})]})})]})};fBe.propTypes={form:U.object,record:U.object,handleValuesChange:U.func};const hBe=({form:e,record:t})=>{const r=Ye(n=>n.cti.components.tables.data.combos);return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Type"}),v.jsx(_e.Item,{name:"est_balance",children:v.jsx(Ir,{options:[{label:"Ecritures",value:""},{label:"Balance mensuelle",value:"M"},{label:"Balance exercice",value:"X"}]})})]})}),v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Site"}),v.jsx(_e.Item,{name:"site_id",children:v.jsx(Ir,{options:r.SITE})})]}),v.jsx("div",{className:"form-item",children:v.jsx(_e.Item,{name:"clinique_honoraire",children:v.jsx(Ir,{options:[{label:"Clinique",value:"C"},{label:"Honoraire",value:"H"}]})})})]}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Texte"}),v.jsx(_e.Item,{name:"texte",children:v.jsx(mt.TextArea,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Report automatique"}),v.jsx(_e.Item,{name:"report_automatique_mois_suivant",valuePropName:"checked",children:v.jsx(Rr,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Coller les données:"}),v.jsx(_e.Item,{name:"import_data",children:v.jsx(mt.TextArea,{autoSize:{minRows:8}})})]})})]})};hBe.propTypes={form:U.object,record:U.object};const gBe=({record:e,handleValuesChange:t,form:r})=>{const[n,a]=m.useState(!1);m.useEffect(()=>{if(e){if((e.montant_credit||e.montant_debit)&&(e.montant_credit!=="+0"?r.setFieldsValue({montant:e.montant_credit.substring(1),montant_credit:e.montant_credit.substring(1),montant_debit:e.montant_debit.substring(1),debit:"C"}):e.montantd_debit!=="+0"&&r.setFieldsValue({montant:e.montant_debit.substring(1),montant_credit:e.montant_credit.substring(1),montant_debit:e.montant_debit.substring(1),debit:"D"})),e.montant_ventile_1){let l=0;for(let A=1;A<=12;A++)l=l+Number(e[`montant_ventile_${A}`].substring(1)),r.setFieldsValue({[`montant_ventile_${A}`]:e[`montant_ventile_${A}`].substring(1).replace(".",",")});r.setFieldsValue({total:l})}let o=!1,s=!1;e.est_import_data==="1"&&(o=!0),e.report_automatique_mois_suivant==="1"&&(s=!0),a(o),r.setFieldsValue({est_import_data:o,report_automatique_mois_suivant:s})}},[e,r]);const i=o=>{a(o.target.checked)};return v.jsxs("div",{className:"aju-editor",children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Import Tableur"}),v.jsx(_e.Item,{name:"est_import_data",valuePropName:"checked",children:v.jsx(Rr,{onChange:i})})]})}),n===!0?v.jsx(hBe,{form:r,record:e,handleValuesChange:t}):v.jsx(fBe,{form:r,record:e,handleValuesChange:t})]})};gBe.propTypes={tableParams:U.object,record:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func,form:U.object};var OP={};const ivt=Un(vqe);var wB={},BB={},cae;function ovt(){if(cae)return BB;cae=1;var e=Gn().default;Object.defineProperty(BB,"__esModule",{value:!0}),BB.default=r;var t=e(cr());function r(n){var a=t.useRef();a.current=n;var i=t.useCallback(function(){for(var o,s=arguments.length,l=new Array(s),A=0;A<s;A++)l[A]=arguments[A];return(o=a.current)===null||o===void 0?void 0:o.call.apply(o,[a].concat(l))},[]);return i}return BB}var Kd={},uae;function svt(){if(uae)return Kd;uae=1;var e=mr().default,t=Gn().default;Object.defineProperty(Kd,"__esModule",{value:!0}),Kd.useLayoutUpdateEffect=Kd.default=void 0;var r=t(cr()),n=e(OC()),a=(0,n.default)()?r.useLayoutEffect:r.useEffect,i=function(s,l){var A=r.useRef(!0);a(function(){return s(A.current)},l),a(function(){return A.current=!1,function(){A.current=!0}},[])};return Kd.useLayoutUpdateEffect=function(s,l){i(function(A){if(!A)return s()},l)},Kd.default=i,Kd}var MB={},dae;function lvt(){if(dae)return MB;dae=1;var e=Gn().default,t=mr().default;Object.defineProperty(MB,"__esModule",{value:!0}),MB.default=a;var r=t(OA()),n=e(cr());function a(i){var o=n.useRef(!1),s=n.useState(i),l=(0,r.default)(s,2),A=l[0],c=l[1];n.useEffect(function(){return o.current=!1,function(){o.current=!0}},[]);function u(d,f){f&&o.current||c(d)}return[A,u]}return MB}var fae;function Avt(){if(fae)return wB;fae=1;var e=mr().default;Object.defineProperty(wB,"__esModule",{value:!0}),wB.default=o;var t=e(OA()),r=e(ovt()),n=svt(),a=e(lvt());function i(s){return s!==void 0}function o(s,l){var A=l||{},c=A.defaultValue,u=A.value,d=A.onChange,f=A.postState,h=(0,a.default)(function(){return i(u)?u:i(c)?typeof c=="function"?c():c:typeof s=="function"?s():s}),g=(0,t.default)(h,2),p=g[0],E=g[1],y=u!==void 0?u:p,C=f?f(y):y,w=(0,r.default)(d),B=(0,a.default)([y]),M=(0,t.default)(B,2),I=M[0],S=M[1];(0,n.useLayoutUpdateEffect)(function(){var b=I[0];p!==b&&w(p,b)},[I]),(0,n.useLayoutUpdateEffect)(function(){i(u)||E(u)},[u]);var R=(0,r.default)(function(b,Q){E(b,Q),S([y],Q)});return[C,R]}return wB}var zg={},hae;function dU(){if(hae)return zg;hae=1;var e=mr().default;Object.defineProperty(zg,"__esModule",{value:!0}),zg.getMergedStatus=void 0,zg.getStatusClassNames=a;var t=e(Ua()),r=e(ni()),n=i2();(0,n.tuple)("warning","error","");function a(i,o,s){return(0,r.default)((0,t.default)((0,t.default)((0,t.default)((0,t.default)((0,t.default)({},"".concat(i,"-status-success"),o==="success"),"".concat(i,"-status-warning"),o==="warning"),"".concat(i,"-status-error"),o==="error"),"".concat(i,"-status-validating"),o==="validating"),"".concat(i,"-has-feedback"),s))}return zg.getMergedStatus=function(o,s){return s||o},zg}var zP={},gae;function cvt(){return gae||(gae=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(Ua()),a=r(jl()),i=r(jA()),o=r(UA()),s=r(XL()),l=r(LA()),A=r(YA()),c=r(WL()),u=r(ni()),d=t(cr()),f=jC(),h=ZL(),g=dU(),p=i2();function E(B,M,I){return M=(0,l.default)(M),(0,o.default)(B,(0,s.default)()?Reflect.construct(M,I||[],(0,l.default)(B).constructor):M.apply(B,I))}var y=(0,p.tuple)("text","input");function C(B){return!!(B.addonBefore||B.addonAfter)}var w=function(B){(0,A.default)(M,B);function M(){return(0,a.default)(this,M),E(this,M,arguments)}return(0,i.default)(M,[{key:"renderClearIcon",value:function(S){var R=this.props,b=R.value,Q=R.disabled,D=R.readOnly,F=R.handleReset,N=R.suffix,k=!Q&&!D&&b,O="".concat(S,"-clear-icon");return d.createElement(c.default,{onClick:F,onMouseDown:function(z){return z.preventDefault()},className:(0,u.default)((0,n.default)((0,n.default)({},"".concat(O,"-hidden"),!k),"".concat(O,"-has-suffix"),!!N),O),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(S,R,b){var Q=this.props,D=Q.value,F=Q.allowClear,N=Q.className,k=Q.focused,O=Q.style,P=Q.direction,z=Q.bordered,j=Q.hidden,V=Q.status,L=b.status,K=b.hasFeedback;if(!F)return(0,h.cloneElement)(R,{value:D});var J=(0,u.default)("".concat(S,"-affix-wrapper"),"".concat(S,"-affix-wrapper-textarea-with-clear-btn"),(0,g.getStatusClassNames)("".concat(S,"-affix-wrapper"),(0,g.getMergedStatus)(L,V),K),(0,n.default)((0,n.default)((0,n.default)((0,n.default)({},"".concat(S,"-affix-wrapper-focused"),k),"".concat(S,"-affix-wrapper-rtl"),P==="rtl"),"".concat(S,"-affix-wrapper-borderless"),!z),"".concat(N),!C(this.props)&&N));return d.createElement("span",{className:J,style:O,hidden:j},(0,h.cloneElement)(R,{style:null,value:D}),this.renderClearIcon(S))}},{key:"render",value:function(){var S=this;return d.createElement(f.FormItemInputContext.Consumer,null,function(R){var b=S.props,Q=b.prefixCls,D=b.inputType,F=b.element;if(D===y[0])return S.renderTextAreaWithClearIcon(Q,F,R)})}}]),M}(d.Component);e.default=w}(zP)),zP}var jP={};const uvt=Un(tqe);var YP={},pae;function dvt(){return pae||(pae=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=cr();function r(n,a){var i=(0,t.useRef)([]),o=function(){i.current.push(setTimeout(function(){var l,A,c,u;!((l=n.current)===null||l===void 0)&&l.input&&((A=n.current)===null||A===void 0?void 0:A.input.getAttribute("type"))==="password"&&(!((c=n.current)===null||c===void 0)&&c.input.hasAttribute("value"))&&((u=n.current)===null||u===void 0||u.input.removeAttribute("value"))}))};return(0,t.useEffect)(function(){return a&&o(),function(){return i.current.forEach(function(s){s&&clearTimeout(s)})}},[]),o}}(YP)),YP}var xB={},vae;function fvt(){if(vae)return xB;vae=1,Object.defineProperty(xB,"__esModule",{value:!0}),xB.hasPrefixSuffix=e;function e(t){return!!(t.prefix||t.suffix||t.allowClear)}return xB}var mae;function hvt(){return mae||(mae=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.fixControlledValue=w,e.resolveOnChange=B,e.triggerFocus=M;var n=r(Ua()),a=r(Kn()),i=r(Xn()),o=r(WL()),s=r(ni()),l=r(uvt),A=nwe(),c=t(cr()),u=us(),d=r(zC()),f=r(a2()),h=jC(),g=qL(),p=dU();r(_h());var E=r(dvt()),y=fvt(),C=function(S,R){var b={};for(var Q in S)Object.prototype.hasOwnProperty.call(S,Q)&&R.indexOf(Q)<0&&(b[Q]=S[Q]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,Q=Object.getOwnPropertySymbols(S);D<Q.length;D++)R.indexOf(Q[D])<0&&Object.prototype.propertyIsEnumerable.call(S,Q[D])&&(b[Q[D]]=S[Q[D]]);return b};function w(S){return typeof S>"u"||S===null?"":String(S)}function B(S,R,b,Q){if(b){var D=R;if(R.type==="click"){var F=S.cloneNode(!0);D=Object.create(R,{target:{value:F},currentTarget:{value:F}}),F.value="",b(D);return}if(Q!==void 0){D=Object.create(R,{target:{value:S},currentTarget:{value:S}}),S.value=Q,b(D);return}b(D)}}function M(S,R){if(S){S.focus(R);var b=R||{},Q=b.cursor;if(Q){var D=S.value.length;switch(Q){case"start":S.setSelectionRange(0,0);break;case"end":S.setSelectionRange(D,D);break;default:S.setSelectionRange(0,D);break}}}}var I=(0,c.forwardRef)(function(S,R){var b=S.prefixCls,Q=S.bordered,D=Q===void 0?!0:Q,F=S.status,N=S.size,k=S.disabled,O=S.onBlur,P=S.onFocus,z=S.suffix,j=S.allowClear,V=S.addonAfter,L=S.addonBefore,K=S.className,J=S.onChange,Y=C(S,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","onChange"]),W=c.default.useContext(u.ConfigContext),q=W.getPrefixCls,ee=W.direction,ae=W.input,ne=q("input",b),ce=(0,c.useRef)(null),ue=(0,g.useCompactItemContext)(ne,ee),ge=ue.compactSize,Se=ue.compactItemClassnames,ye=c.default.useContext(f.default),pe=ge||N||ye,Qe=c.default.useContext(d.default),Ue=k??Qe,tt=(0,c.useContext)(h.FormItemInputContext),it=tt.status,we=tt.hasFeedback,ve=tt.feedbackIcon,Te=(0,p.getMergedStatus)(it,F),Be=(0,y.hasPrefixSuffix)(S)||!!we,Ge=(0,c.useRef)(Be);(0,c.useEffect)(function(){Be&&Ge.current,Ge.current=Be},[Be]);var ht=(0,E.default)(ce,!0),We=function(Fe){ht(),O==null||O(Fe)},Ke=function(Fe){ht(),P==null||P(Fe)},Xe=function(Fe){ht(),J==null||J(Fe)},$e=(we||z)&&c.default.createElement(c.default.Fragment,null,z,we&&ve),pt;return(0,i.default)(j)==="object"&&(j!=null&&j.clearIcon)?pt=j:j&&(pt={clearIcon:c.default.createElement(o.default,null)}),c.default.createElement(l.default,(0,a.default)({ref:(0,A.composeRef)(R,ce),prefixCls:ne,autoComplete:ae==null?void 0:ae.autoComplete},Y,{disabled:Ue||void 0,onBlur:We,onFocus:Ke,suffix:$e,allowClear:pt,className:(0,s.default)(K,Se),onChange:Xe,addonAfter:V&&c.default.createElement(g.NoCompactStyle,null,c.default.createElement(h.NoFormStyle,{override:!0,status:!0},V)),addonBefore:L&&c.default.createElement(g.NoCompactStyle,null,c.default.createElement(h.NoFormStyle,{override:!0,status:!0},L)),inputClassName:(0,s.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)({},"".concat(ne,"-sm"),pe==="small"),"".concat(ne,"-lg"),pe==="large"),"".concat(ne,"-rtl"),ee==="rtl"),"".concat(ne,"-borderless"),!D),!Be&&(0,p.getStatusClassNames)(ne,Te)),affixWrapperClassName:(0,s.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)({},"".concat(ne,"-affix-wrapper-sm"),pe==="small"),"".concat(ne,"-affix-wrapper-lg"),pe==="large"),"".concat(ne,"-affix-wrapper-rtl"),ee==="rtl"),"".concat(ne,"-affix-wrapper-borderless"),!D),(0,p.getStatusClassNames)("".concat(ne,"-affix-wrapper"),Te,we)),wrapperClassName:(0,s.default)((0,n.default)({},"".concat(ne,"-group-rtl"),ee==="rtl")),groupClassName:(0,s.default)((0,n.default)((0,n.default)((0,n.default)({},"".concat(ne,"-group-wrapper-sm"),pe==="small"),"".concat(ne,"-group-wrapper-lg"),pe==="large"),"".concat(ne,"-group-wrapper-rtl"),ee==="rtl"),(0,p.getStatusClassNames)("".concat(ne,"-group-wrapper"),Te,we))}))});e.default=I}(jP)),jP}var Eae;function gvt(){return Eae||(Eae=1,function(e){var t=Gn().default,r=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(Xn()),a=r(Ua()),i=r(Kn()),o=r(OA()),s=r(n2()),l=r(ni()),A=r(ivt),c=r(Avt()),u=r(r2()),d=t(cr()),f=us(),h=r(zC()),g=r(a2()),p=jC(),E=dU(),y=r(cvt()),C=hvt(),w=function(S,R){var b={};for(var Q in S)Object.prototype.hasOwnProperty.call(S,Q)&&R.indexOf(Q)<0&&(b[Q]=S[Q]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,Q=Object.getOwnPropertySymbols(S);D<Q.length;D++)R.indexOf(Q[D])<0&&Object.prototype.propertyIsEnumerable.call(S,Q[D])&&(b[Q[D]]=S[Q[D]]);return b};function B(S,R){return(0,s.default)(S||"").slice(0,R).join("")}function M(S,R,b,Q){var D=b;return S?D=B(b,Q):(0,s.default)(R||"").length<b.length&&(0,s.default)(b||"").length>Q&&(D=R),D}var I=d.forwardRef(function(S,R){var b=S.prefixCls,Q=S.bordered,D=Q===void 0?!0:Q,F=S.showCount,N=F===void 0?!1:F,k=S.maxLength,O=S.className,P=S.style,z=S.size,j=S.disabled,V=S.onCompositionStart,L=S.onCompositionEnd,K=S.onChange,J=S.onFocus,Y=S.onBlur,W=S.status,q=w(S,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","onFocus","onBlur","status"]),ee=d.useContext(f.ConfigContext),ae=ee.getPrefixCls,ne=ee.direction,ce=d.useContext(g.default),ue=d.useContext(h.default),ge=j??ue,Se=d.useContext(p.FormItemInputContext),ye=Se.status,pe=Se.hasFeedback,Qe=Se.isFormItemInput,Ue=Se.feedbackIcon,tt=(0,E.getMergedStatus)(ye,W),it=d.useRef(null),we=d.useRef(null),ve=d.useState(!1),Te=(0,o.default)(ve,2),Be=Te[0],Ge=Te[1],ht=d.useState(!1),We=(0,o.default)(ht,2),Ke=We[0],Xe=We[1],$e=d.useRef(),pt=d.useRef(0),de=(0,c.default)(q.defaultValue,{value:q.value}),Fe=(0,o.default)(de,2),je=Fe[0],et=Fe[1],xe=q.hidden,Ne=function(Le,rt){q.value===void 0&&et(Le)},le=Number(k)>0,At=function(Le){Ge(!0),$e.current=je,pt.current=Le.currentTarget.selectionStart,V==null||V(Le)},Bt=function(Le){var rt;Ge(!1);var Qt=Le.currentTarget.value;if(le){var Dt=pt.current>=k+1||pt.current===((rt=$e.current)===null||rt===void 0?void 0:rt.length);Qt=M(Dt,$e.current,Qt,k)}Qt!==je&&(Ne(Qt),(0,C.resolveOnChange)(Le.currentTarget,Le,K,Qt)),L==null||L(Le)},G=function(Le){var rt=Le.target.value;if(!Be&&le){var Qt=Le.target.selectionStart>=k+1||Le.target.selectionStart===rt.length||!Le.target.selectionStart;rt=M(Qt,je,rt,k)}Ne(rt),(0,C.resolveOnChange)(Le.currentTarget,Le,K,rt)},Ee=function(Le){Xe(!1),Y==null||Y(Le)},Ie=function(Le){Xe(!0),J==null||J(Le)};d.useEffect(function(){Xe(function(Ze){return!ge&&Ze})},[ge]);var ie=function(Le){var rt,Qt,Dt;Ne(""),(rt=it.current)===null||rt===void 0||rt.focus(),(0,C.resolveOnChange)((Dt=(Qt=it.current)===null||Qt===void 0?void 0:Qt.resizableTextArea)===null||Dt===void 0?void 0:Dt.textArea,Le,K)},re=ae("input",b);d.useImperativeHandle(R,function(){var Ze;return{resizableTextArea:(Ze=it.current)===null||Ze===void 0?void 0:Ze.resizableTextArea,focus:function(rt){var Qt,Dt;(0,C.triggerFocus)((Dt=(Qt=it.current)===null||Qt===void 0?void 0:Qt.resizableTextArea)===null||Dt===void 0?void 0:Dt.textArea,rt)},blur:function(){var rt;return(rt=it.current)===null||rt===void 0?void 0:rt.blur()}}});var he=d.createElement(A.default,(0,i.default)({},(0,u.default)(q,["allowClear"]),{disabled:ge,className:(0,l.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)({},"".concat(re,"-borderless"),!D),O,O&&!N),"".concat(re,"-sm"),ce==="small"||z==="small"),"".concat(re,"-lg"),ce==="large"||z==="large"),(0,E.getStatusClassNames)(re,tt)),style:N?{resize:P==null?void 0:P.resize}:P,prefixCls:re,onCompositionStart:At,onChange:G,onBlur:Ee,onFocus:Ie,onCompositionEnd:Bt,ref:it})),Pe=(0,C.fixControlledValue)(je);!Be&&le&&(q.value===null||q.value===void 0)&&(Pe=B(Pe,k));var be=d.createElement(y.default,(0,i.default)({disabled:ge,focused:Ke},q,{prefixCls:re,direction:ne,inputType:"text",value:Pe,element:he,handleReset:ie,ref:we,bordered:D,status:W,style:N?void 0:P}));if(N||pe){var Ve=(0,s.default)(Pe).length,lt="";return(0,n.default)(N)==="object"?lt=N.formatter({value:Pe,count:Ve,maxLength:k}):lt="".concat(Ve).concat(le?" / ".concat(k):""),d.createElement("div",{hidden:xe,className:(0,l.default)("".concat(re,"-textarea"),(0,a.default)((0,a.default)((0,a.default)({},"".concat(re,"-textarea-rtl"),ne==="rtl"),"".concat(re,"-textarea-show-count"),N),"".concat(re,"-textarea-in-form-item"),Qe),(0,E.getStatusClassNames)("".concat(re,"-textarea"),tt,pe),O),style:P,"data-count":lt},be,pe&&d.createElement("span",{className:"".concat(re,"-textarea-suffix")},Ue))}return be});e.default=I}(OP)),OP}var pvt=gvt();const vvt=Nr(pvt),yae=new Date().getFullYear();let pBe=[];for(let e=yae-4;e<=yae+2;e++)pBe.push(e);const Sl={DPI_CST:[{label:"",value:""},{label:"Liste de valeurs selon échelle",value:"LIST-ECHELLE"},{label:"Liste de valeurs numériques",value:"LIST-NUMERIC"}],DPI_SPE:[{label:"",value:""},{label:"Spécialité",value:"S"}],COMPTA_CH:[{label:"Clinique",value:"C"},{label:"Honoraire",value:"H"}],AJU_est_balance:[{label:"Ecritures",value:""},{label:"Balance mensuelle",value:"M"},{label:"Balance exercice",value:"X"}],AJU_Debit_Credit:[{label:"Débit",value:"D"},{label:"Crédit",value:"C"}],YEARS:pBe.map(e=>({label:e,value:e})),PRC_type_valorisation_facture:[{label:"Ventilation par défault",value:""},{label:"Forcer ventilation quotidienne",value:"1"}],PRC_type_valorisation_non_facture:[{label:"",value:""},{label:"Prix de journée",value:"PJ"},{label:"Chambre particulière",value:"CP"},{label:"Forfait à l'entrée",value:"ENT"},{label:"Moyenne par journée de présence service",value:"*AVGJOUSER"},{label:"Uniquement prestations saisies",value:"*SAISIE"}],UMD_type_ventilation_ca:[{label:"Par défault (avec PMS)",value:""},{label:"Uniquement selon durée séjour",value:"1"}],UMD_type_eclatement:[{label:"Pas d'éclatement",value:"0"},{label:"Eclatement selon première UM",value:"1"},{label:"Eclatement selon première UM",value:"2"}],UMD_mode_hospitalisation:[{label:"Hospitalisation complète",value:"C"},{label:"Hospitalisation partielle",value:"P"},{label:"Hospitalisation mixte",value:"M"}],UMD_type_sejour:[{label:"Pas de forçage",value:"1"},{label:"Externe",value:"3"},{label:"Ignorer (fil de l'eau)",value:"9"}],PRC_type_valorisation_non_facture_provider:[{label:"Prix de journée",value:"PJ"},{label:"Chambre particulière",value:"CP"},{label:"Moyenne par journée de précense service",value:"*AVGJOUSER"},{label:"Forfait à l'entrée",value:"ENT"},{label:"Uniquement prestations saisies",value:"*SAISIE"}],calculCodeList:[{label:"Aucun",value:"0"},{label:"(1) Heures payées",value:"1"},{label:"(2) Heures (non) travaillées",value:"2"},{label:"(3) Frais imposables",value:"3"},{label:"(4) Avantages en nature",value:"4"},{label:"(5) OD/net salariées",value:"5"},{label:"(6) OD/net patronales",value:"6"},{label:"(7)",value:"7"},{label:"(8)",value:"8"},{label:"(9) Ignorer",value:"9"},{label:"(10) Heures contrat",value:"10"},{label:"(11) Heures c/p/t",value:"11"}],EXC_cible_provider:[{label:"Tous",value:"0"},{label:"Présent",value:"1"},{label:"Non facturé",value:"2"}],EXC_gravite_provider:[{label:"Information",value:"0"},{label:"Avertissement",value:"5"},{label:"Erreur",value:"9"}],EXC_table_provider:[{label:"Séjour",value:"0"},{label:"Mouvements",value:"1"},{label:"Factures",value:"2"},{label:"Lignes Factures Honoraires",value:"3"},{label:"SQL brut",value:"99"}],EXC_table_provider_RH:[{label:"Contrats",value:"1"},{label:"Historique de paie",value:"2"},{label:"Arrêts de travail",value:"3"},{label:"Mouvement planning",value:"4"},{label:"SQL brut",value:"99"}],EXC_table_provider_SSR:[{label:"Séjours ePMSI",value:"0"},{label:"Séjours fil de l'eau",value:"1"}],GENRE:[{label:"",value:""},{label:"Féminin",value:"F"},{label:"Masculin",value:"M"},{label:"Sans object",value:"I"}],TYPE_TEMPS_TRAVAIL:[{label:"",value:""},{label:"Temps complet",value:"TC"},{label:"Temps partiel",value:"TP"}],EIE_etat:[{label:"Nouveau",value:"0"},{label:"En-cours",value:"1"},{label:"Traité",value:"9"}],EIE_gravite:[{label:"",value:""},{label:"Mineure",value:"1"},{label:"Significative",value:"2"},{label:"Majeure",value:"3"},{label:"Critique",value:"4"},{label:"Catastrophique",value:"5"}],EIF_frequence:[{label:"",value:""},{label:"Très improbable",value:"1"},{label:"Très peu probable",value:"2"},{label:"Peu probable",value:"3"},{label:"Possible / Probable",value:"4"},{label:"Très probable à certain",value:"5"}],EII_data_type:[{label:"",value:""},{label:"APTA",value:"APTA"},{label:"Blue Medi XML",value:"BLUEMEDI"},{label:"CSV",value:"CSV"},{label:"CSV sans entete",value:"CSVWITHOUTHEADER"}],IXI_data_type:[{label:"",value:""},{label:"CSV",value:"CSV"},{label:"Données créées depuis interface externe",value:"EXT"}],QSE_type_entete:[{label:"",value:""},{label:"Choix unique",value:"choixunique"},{label:"Choix multiple",value:"choixmultiple"},{label:"Date de réponse",value:"date"},{label:"Mois de réponse",value:"mois"},{label:"Service",value:"service"},{label:"Age",value:"age"},{label:"Sexe",value:"sexe"},{label:"Ignorer",value:"ignore"}],CXP_start:[{label:"",value:""},{label:"Année en cours",value:"A0"},{label:"A - 1",value:"A1"},{label:"A - 2",value:"A2"},{label:"12 derniers mois",value:"M12"},{label:"24 derniers mois",value:"M24"}],CXP_item_dpi:[{label:"",value:""},{label:"Item",value:"ITM"},{label:"Table normale Item",value:"ITMTAB"},{label:"Séjour",value:"SEJ"},{label:"Document",value:"DOC"},{label:"Intervention",value:"INT"}],code_calcul:[{label:"Aucun",value:"0"},{label:"(1) Heures payées",value:"1"},{label:"(2) Heures (non) travaillées",value:"2"},{label:"(3) Frais imposables",value:"3"},{label:"(4) Avantages en nature",value:"4"},{label:"(5) OD/net salariées",value:"5"},{label:"(6) OD/net patronales",value:"6"},{label:"(7)",value:"7"},{label:"(8)",value:"8"},{label:"(9) Ignorer",value:"9"},{label:"(10) Heures contrat",value:"10"},{label:"(11) Heures c/p/t",value:"11"}],TYM_SENS:[{label:"Aucun forcage",value:""},{label:"Entrée",value:"E"},{label:"Sortie",value:"S"}],TYM_SIGNE:[{label:"Non",value:"0"},{label:"Oui",value:"1"}],FSJ_type:[{label:"Pas de forçage",value:"0"},{label:"Hospitalisé",value:"1"},{label:"Ambulatoire",value:"2"},{label:"Séance",value:"5"},{label:"Bébé",value:"6"},{label:"Externe",value:"3"},{label:"Fictif",value:"9"}],TYA:[{label:"Sans Valeur par défaut",value:""},{label:"Catégorire",value:"CAT"},{label:"Compte",value:"CPT"}]},fU=({record:e,fields:t})=>{const r=Ye(a=>a.cti.components.tables.data.combos),n=Object.assign(r,Sl);return e?v.jsx(v.Fragment,{children:ds(t,e,n)}):null};fU.propTypes={tableParams:U.object,record:U.object};function ds(e,t,r={}){if(Array.isArray(e)&&e.length)return e.map((n,a)=>vBe(n,a,t,r))}const mvt=async(e,t,r)=>{let n=new FormData;n.append("ISSOID",t.oid),n.append("CSVOID",e.dataKey==="int18_entet_csvf"?t.int18_entet_csvi:t.int18_poste_csvi);const a=await ai({method:"post",url:ma()+e.downloadUrl,data:n,responseType:"blob",headers:{"Content-Type":"multipart/form-data"}}),s=a.headers["content-disposition"].split(";")[1].split('="')[1].replace(/"/gm,"");$R(a.data,s)};function vBe(e,t=0,r,n){if(e.editVisible===!1)return null;const a=e.titleEdit?e.titleEdit:e.title;let i=e.editable===!1;e.dependsOn&&(i=r[e.dependsOn]===e.disabledWhen);let o=null;switch(e.type){case"divider":o=v.jsx("div",{children:v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:a})})},t);break;case"input":o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:a}),v.jsx(_e.Item,{shouldUpdate:!0,children:A=>(i=e.editable===!1,e.dependsOn&&(i=A.getFieldsValue()[e.dependsOn]===e.disabledWhen),v.jsx(_e.Item,{style:{width:"100%"},name:e.dataKey,extra:e.detail,children:v.jsx(mt,{addonAfter:e.pourcentage?"%":null,disabled:i})}))})]})},t);break;case"fileDownload":o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:a}),v.jsx(nt,{icon:v.jsx(TS,{}),style:{marginRight:8,paddingRight:8,paddingLeft:8},onClick:()=>mvt(e,r)}),v.jsx(_e.Item,{shouldUpdate:!0,children:A=>(i=e.editable===!1,e.dependsOn&&(i=A.getFieldsValue()[e.dependsOn]===e.disabledWhen),v.jsx(_e.Item,{style:{width:"100%"},name:e.dataKey,extra:e.detail,children:v.jsx(mt,{addonAfter:e.pourcentage?"%":null,disabled:i})}))})]})},t);break;case"textArea":o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:e.title}),v.jsx(_e.Item,{name:e.dataKey,extra:e.detail,style:{width:"100%"},children:v.jsx(vvt,{disabled:i,style:{width:"100%"}})})]})},t);break;case"select":const s=e.value==="-1";o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:e.title}),v.jsx(_e.Item,{name:e.dataKey,extra:e.detail,style:{width:"100%"},children:v.jsx(Ir,{style:{width:"100%"},disabled:i,options:n[e.selectOptionsKey],showSearch:!0,allowClear:e.allowClear,defaultActiveFirstOption:s})})]})},t);break;case"checkbox":o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:a}),v.jsx(_e.Item,{style:{width:"100%"},name:e.dataKey,valuePropName:"checked",extra:e.detail,children:v.jsx(Rr,{disabled:!e.dataKey||i})})]})},t);break;case"date":o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:e.title}),v.jsx(_e.Item,{name:e.dataKey,extra:e.detail,style:{width:"100%"},children:v.jsx(lv,{dateRender:A=>v.jsx("div",{className:"ant-picker-cell-inner",style:{fontSize:"12px"},children:A.date()})})})]})},t);break;case"checkboxRow":o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"first-label",style:{width:"250px"},children:e.title}),v.jsx("div",{style:{display:"flex",flexFlow:"row wrap"},children:e.children.map(A=>v.jsx(_e.Item,{name:A.dataKey,label:A.title,valuePropName:"checked",extra:A.detail,className:"checkboxUnit",children:v.jsx(Rr,{disabled:A.editable===!1})},A.dataKey+"-chckbx-unit"))})]})},t);break;case"multi-input":const l=A=>{switch(A.type){case"input":return v.jsx(_e.Item,{label:A.title,name:A.dataKey,extra:A.detail,children:v.jsx(mt,{addonAfter:A.pourcentage?"%":null,disabled:A.editable===!1})},A.dataKey);default:return null}};o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"first-label",children:e.title}),v.jsx("div",{style:{display:"flex",flexFlow:"row wrap"},children:e.children.map(A=>l(A))})]})},t);break;default:o=null}return o}const mBe=({text:e,handleUpdateRecord:t,record:r,indicator:n,handleValuesChange:a})=>{const[i,o]=m.useState(!1),s=()=>{o(!0)},l=()=>{o(!i)},A=c=>{let u={...r},d=u.extraData.indicators.find(f=>f.oid===n.oid);d&&(d.indicateur_id=c.oid,d.module=c.module),a(),t(u)};return v.jsxs(v.Fragment,{children:[v.jsx(HA,{showModal:i,options:{oneOnly:!0},handleShowModal:l,handleModifyIndicator:A}),v.jsxs("div",{className:"bud-indicator-field",children:[v.jsx("div",{className:"indicator-field-text",children:e}),v.jsx(nt,{type:"link",onClick:s,children:v.jsx(DA,{})})]})]})};mBe.propTypes={text:U.string,handleUpdateRecord:U.func,record:U.object,indicator:U.object,handleValuesChange:U.func};const EBe=({title:e})=>v.jsx(v.Fragment,{children:v.jsx("h3",{className:"title__h3",children:e})});EBe.propTypes={title:U.string};const Cae={CLEBUD:[{label:"Pas de génération automatique des clés",value:""},{label:"Génération d'une clé par médecin séjour (CTI)",value:"CTIMEDSEJ"},{label:"Génération d'une clé par classe d'UF (CTI)",value:"CTICLSUF"}]},yBe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n,form:a,softCode:i})=>{const o=Ye(S=>S.cti.components.reports.data.indicators.indicators),s=Ye(S=>S.cti.components.tables.data.dataEditor),[l,A]=m.useState(!1),[c,u]=m.useState(!1),[d,f]=m.useState(null),h=Pr();m.useEffect(()=>{A(t.cle_budgetaire_activite==="CTICLSUF")},[t,a]),m.useEffect(()=>{i==="iCTI_rh"?h(oh("rh")):i==="iCTI_activite"&&h(oh("activite, pmsi"))},[t.oid,i]),m.useEffect(()=>{t!==null&&t.extraData&&h(oI(t.extraData.indicators.map(S=>({...S}))))},[t,h]);const g=(S,R)=>{let b={...t},Q=b.extraData.indicators.find(D=>D.key===S);Q&&(R.target.checked===!0?Q.actif="1":Q.actif="0"),r(b),n()},p=(S,R,b)=>{let Q={...t};Q.extraData={...Q.extraData};let D=s.map(O=>({...O})),F=D.find(O=>O.key===b);F&&(F[S]=R,Q.extraData.indicators=D,r(Q),n());let N=[...s],k=N.find(O=>O.key===b);k&&(k[S]=R,h(oI(N)))},E=S=>{let R={...t};R.cle_budgetaire_activite=S,r(R),n()},y=S=>{let R=[],b={...t};b.extraData={...b.extraData},b.extraData.indicators&&(R=b.extraData.indicators.map(Q=>({...Q}))),R.push({oid:"-1",actif:(S==null?void 0:S.actif)??"1",code:(S==null?void 0:S.code)??"",texte:(S==null?void 0:S.texte)??"",indicateur_id:S.oid,indicateur_module:S.module,key:R.length+1}),b.extraData.indicators=R,r(b),n()},C=()=>{let S={...t};S.extraData={...S.extraData};let R=s.map(F=>({...F})),b=R.findIndex(F=>F.key===d.key);b>-1&&(R.splice(b,1),S.extraData.indicators=R,r(S),n());let Q=[...s],D=Q.find(F=>F.key===d.key);D&&(Q.splice(D,1),h(oI(Q)))},w=S=>{f(s.find(R=>R.key===S))},B=m.useMemo(()=>{var S;return(S=Cae.CLEBUD.find(R=>R.value===t.cle_budgetaire_activite))==null?void 0:S.label},[t.cle_budgetaire_activite]),I=[{title:"Code",dataKey:"code",width:150,cellRenderer:({rowData:S})=>v.jsx(Dy,{initialText:S.code,handleUpdateText:p,field:"code",rowKey:S.key})},{title:"Texte",dataKey:"texte",flexGrow:1,cellRenderer:({rowData:S})=>v.jsx(Dy,{initialText:S.texte,handleUpdateText:p,field:"texte",rowKey:S.key})},{title:"Indicateur CTI",dataKey:"indicateur_id",dataGetter:({rowData:S})=>{let R="",b=o.find(Q=>Q.oid===S.indicateur_id);return b&&(R=b.texte),v.jsx(mBe,{text:R,handleUpdateRecord:r,record:t,indicator:S,handleValuesChange:n})}},{title:"Actif",dataKey:"actif",width:100,dataGetter:({rowData:S})=>v.jsx(Rr,{checked:S.actif==="1",onClick:R=>g(S.key,R)})}].map(S=>({width:300,key:S.dataKey,dataIndex:S.dataKey,ellipsis:!0,...S}));return o.length?v.jsxs(v.Fragment,{children:[v.jsx(HA,{showModal:c,options:{oneOnly:!0},handleModifyIndicator:y,handleShowModal:()=>u(!c),softCode:i}),v.jsxs("div",{className:"bud-editor",children:[v.jsxs("div",{className:"tables-column",children:[ds(e.fields,t),i==="iCTI_activite"&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Clés automatiques"}),v.jsx(Ir,{options:Cae.CLEBUD,value:B,onChange:E,style:{width:"100%"}})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Classe"}),v.jsx(_e.Item,{name:"classe_code",hidden:!l,style:{width:"100%"},children:v.jsx(mt,{})})]})]})]}),v.jsx("div",{className:"tables-column",children:v.jsxs("div",{className:"bud-table-indicators",style:{display:"flex",flexFlow:"column"},children:[v.jsx(EBe,{title:e.modalLabel}),v.jsxs("div",{className:"bud-table-buttons",style:{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between"},children:[v.jsx(nt,{style:{width:"48%",marginBottom:"12px"},type:"primary",onClick:()=>u(!0),children:"Ajouter"}),v.jsx(nt,{style:{width:"48%",marginBottom:"12px"},onClick:C,disabled:!d,children:"Supprimer"})]}),v.jsx("div",{className:"ind-table",style:{flex:3},children:v.jsx($r,{columns:I,data:s,flexGrowBool:!0,fixed:!1,rowHeight:30,selectedRow:d,onRowSelect:w})})]})})]})]}):v.jsx("div",{className:"loading-wrapper",children:v.jsx(Ya,{style:{height:"auto"}})})};yBe.propTypes={tableParams:U.object,record:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func,form:U.object,softCode:U.string};const CBe=({indicator:e,handleUpdateIndicator:t,handleExcelExport:r,handleExcelImport:n,recordkey:a})=>{const[i,o]=m.useState([]);m.useEffect(()=>{e&&e.keys&&o(e.keys.map(c=>({...c})))},[e]);const s=()=>{let c={...e};c.keys.forEach(d=>{for(let f=1;f<=12;f++){const h=f<10?`budget_0${f}`:`budget_${f}`;d[h]="0"}});let u=[...i];u.forEach(d=>{for(let f=1;f<=12;f++){const h=f<10?`budget_0${f}`:`budget_${f}`;d[h]="0"}}),o(u),t(c)},l=(c,u,d)=>{t(e,c,u,d);let f=[...i],h=f.find(g=>g.key===d);h&&(h[c]=u),o(f)},A=()=>{let c=[{title:"Indicateur",dataKey:"budget_cle_fulltexte",width:200}];for(let u=1;u<=12;u++){const d=u<10?`budget_0${u}`:`budget_${u}`;c.push({title:u.toString(),dataKey:d,cellRenderer:({rowData:f})=>v.jsx(Dy,{initialText:f[d],handleUpdateText:l,field:d,rowKey:f.key,recordKey:a})})}return c.map(u=>({width:100,key:u.dataKey,dataIndex:u.dataKey,ellipsis:!0,...u}))};return v.jsxs("div",{className:"bui-indicator-tab",children:[v.jsxs("div",{className:"bui-excel-actions",children:[v.jsx(nt,{icon:v.jsx(Rv,{}),onClick:()=>n(e.key),children:"Importer depuis Excel (indicateur courant)"}),v.jsx(nt,{icon:v.jsx(GI,{}),onClick:()=>r(e.key),children:"Exporter vers Excel (indicateur courant)"}),v.jsx(nt,{icon:v.jsx(Ba,{}),onClick:s,children:"Effacer"})]}),v.jsx("div",{className:"bui-table",children:v.jsx($r,{rowHeight:32,columns:A(),data:i})})]})};CBe.propTypes={indicator:U.object,handleUpdateIndicator:U.func,handleExcelImport:U.func,handleExcelExport:U.func,recordKey:U.number};const wBe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{const[a,i]=m.useState(!1),[o,s]=m.useState(null),[l,A]=m.useState(""),[c,u]=m.useState(null);m.useEffect(()=>{t&&u({...t})},[t]);const d=y=>{s(y==="all"?null:y),i(!0)},f=()=>{let y={...c};y.extraData={...y.extraData};let C=y.extraData.indicators.map(B=>({...B}));l.split(`
`).forEach(B=>{const M=B.split("	");if(M.length===14&&o!==null){let I=C.find(S=>S.key===o);if(I){let S=I.keys.map(b=>({...b})),R=S.find(b=>b.budget_cle_code===M[0]);if(R)for(let b=1;b<=12;b++){const Q=b<10?`budget_0${b}`:`budget_${b}`;R[Q]=M[b+1]}I.keys=S}}else if(M.length===15){let I=C.find(S=>S.budget_indicateur_code===M[0]);if(I){let S=I.keys.map(b=>({...b})),R=S.find(b=>b.budget_cle_code===M[1]);if(R)for(let b=1;b<=12;b++){const Q=b<10?`budget_0${b}`:`budget_${b}`;R[Q]=M[b+2]}I.keys=S}}}),y.extraData.indicators=C,i(!1),A(""),r(y),n()},h=y=>{A(y.target.value)},g=y=>{let C="",w;y!=="all"?(w=c.extraData.indicators.find(M=>M.key===y),w.keys.forEach(M=>{C=C+`${M.budget_cle_code}	${M.budget_cle_texte}	`;for(let I=1;I<=12;I++){const S=I<10?`budget_0${I}`:`budget_${I}`;C=C+`${M[S]}	`}C=C+`
`})):(w=c.extraData.indicators,w.forEach(M=>{M.keys.forEach(I=>{C=C+`${M.budget_indicateur_code}	${I.budget_cle_code}	${I.budget_cle_texte}	`;for(let S=1;S<=12;S++){const R=S<10?`budget_0${S}`:`budget_${S}`;C=C+`${I[R]}	`}C=C+`
`})}));var B=document.createElement("textarea");B.value=C,document.body.appendChild(B),B.select(),document.execCommand("copy"),document.body.removeChild(B),to.success("Copié !")},p=(y,C,w,B)=>{let M={...c};M.extraData={...M.extraData};let I={...M.extraData.indicators.find(S=>S.key===y.key)};if(I){if(!C)I=y;else{let S=I.keys.map(b=>({...b})),R=S.find(b=>b.key===B);R&&(R[C]=w),I.keys=S}n(),r(M)}},E=()=>c.extraData.indicators.map((y,C)=>({label:y.budget_indicateur_code,key:C,children:v.jsx(CBe,{indicator:y,handleUpdateIndicator:p,handleExcelExport:g,handleExcelImport:d,recordkey:c.key},C)}));return!c||!c.extraData?v.jsx("div",{className:"loading-wrapper",children:v.jsx(Ya,{style:{height:"auto"}})}):v.jsxs(v.Fragment,{children:[v.jsx(va,{open:a,title:"Budget à importer",okText:"Importer",cancelText:"Annuler",onCancel:()=>i(!1),onOk:f,children:v.jsx(mt.TextArea,{autoSize:{minRows:20,maxRows:30},value:l,onChange:h})}),v.jsxs("div",{className:"bui-acti-editor",children:[v.jsx("div",{className:"base-editor",children:ds(e.fields)}),v.jsxs("div",{className:"bui-excel-actions",children:[v.jsx(nt,{icon:v.jsx(Rv,{}),onClick:()=>d("all"),children:"Importer depuis Excel (tous les indicateurs)"}),v.jsx(nt,{icon:v.jsx(GI,{}),onClick:()=>g("all"),children:"Exporter vers Excel (tous les indicateurs)"})]}),v.jsx("div",{className:"bui-tabs",children:v.jsx(xa,{items:E()})})]})]})};wBe.propTypes={tableParams:U.object,record:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};function hU({tableParams:e,record:t,form:r,handleUpdateRecord:n,typeOnly:a=!1}){const i=Ye(l=>l.cti.components.tables.data.combos),o=l=>{n({...t,auto_reponse_code_type:l})},s=()=>{let l=[];for(let A=1;A<=20;A++){const c=A<10?"0"+A:A,u=A<11?`0${A-1}`:A-1;l.push(v.jsx("div",{className:"common-form-item",children:v.jsx(_e.Item,{shouldUpdate:!0,children:d=>{const f=d.getFieldValue(`auto_reponse_code_values_${u}`);return v.jsx(_e.Item,{name:`auto_reponse_code_values_${c}`,children:v.jsx(mt,{disabled:f===""})})}})}))}return l};return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"tables-common-fields",children:[!a&&ds(e.fields,"",Sl),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Type de réponse"}),v.jsx(_e.Item,{style:{width:"100%"},name:"auto_reponse_code_type",children:v.jsx(Ir,{style:{width:"100%"},options:Sl.DPI_CST,onChange:o})})]}),t.auto_reponse_code_type==="LIST-ECHELLE"&&v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Echelle"}),v.jsx(_e.Item,{style:{width:"100%"},name:"echelle_id",children:v.jsx(Ir,{style:{width:"100%"},options:i.ECH})})]}),t.auto_reponse_code_type==="LIST-NUMERIC"&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:"160px"},children:"Valeurs"}),v.jsx("div",{className:"form-row",style:{width:"100%"},children:s()})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:"160px"},children:"Valeurs autres"}),v.jsx(_e.Item,{name:"auto_reponse_code_value_other",style:{width:"100%"},children:v.jsx(mt,{})})]})]})]})})}hU.propTypes={tableParams:U.object,record:U.object,form:U.object,typeOnly:U.bool};var LP,wae;function Evt(){if(wae)return LP;wae=1;var e=dC(),t=fd(),r=Qv();function n(a){return function(i,o,s){var l=Object(i);if(!t(i)){var A=e(o,3);i=r(i),o=function(u){return A(l[u],u,l)}}var c=a(i,o,s);return c>-1?l[A?i[c]:c]:void 0}}return LP=n,LP}var UP,Bae;function yvt(){if(Bae)return UP;Bae=1;function e(t,r,n,a){for(var i=t.length,o=n+(a?1:-1);a?o--:++o<i;)if(r(t[o],o,t))return o;return-1}return UP=e,UP}var HP,Mae;function Cvt(){if(Mae)return HP;Mae=1;var e=yvt(),t=dC(),r=fVe(),n=Math.max;function a(i,o,s){var l=i==null?0:i.length;if(!l)return-1;var A=s==null?0:r(s);return A<0&&(A=n(l+A,0)),e(i,t(o,3),A)}return HP=a,HP}var GP,xae;function wvt(){if(xae)return GP;xae=1;var e=Evt(),t=Cvt(),r=e(t);return GP=r,GP}var Bvt=wvt();const Mvt=Nr(Bvt);var xvt=Fye();const Ivt=Nr(xvt);var KP,Iae;function BBe(){if(Iae)return KP;Iae=1;var e=LR(),t=lC();function r(n,a,i){(i!==void 0&&!t(n[a],i)||i===void 0&&!(a in n))&&e(n,a,i)}return KP=r,KP}var VP,bae;function bvt(){if(bae)return VP;bae=1;var e=fd(),t=QA();function r(n){return t(n)&&e(n)}return VP=r,VP}var JP,Sae;function MBe(){if(Sae)return JP;Sae=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return JP=e,JP}var WP,Rae;function Svt(){if(Rae)return WP;Rae=1;var e=Lv(),t=Uv();function r(n){return e(n,t(n))}return WP=r,WP}var XP,Tae;function Rvt(){if(Tae)return XP;Tae=1;var e=BBe(),t=_ye(),r=Pye(),n=Nye(),a=Oye(),i=oC(),o=Vi(),s=bvt(),l=sC(),A=gY(),c=ls(),u=Qye(),d=jS(),f=MBe(),h=Svt();function g(p,E,y,C,w,B,M){var I=f(p,y),S=f(E,y),R=M.get(S);if(R){e(p,y,R);return}var b=B?B(I,S,y+"",p,E,M):void 0,Q=b===void 0;if(Q){var D=o(S),F=!D&&l(S),N=!D&&!F&&d(S);b=S,D||F||N?o(I)?b=I:s(I)?b=n(I):F?(Q=!1,b=t(S,!0)):N?(Q=!1,b=r(S,!0)):b=[]:u(S)||i(S)?(b=I,i(I)?b=h(I):(!c(I)||A(I))&&(b=a(S))):Q=!1}Q&&(M.set(S,b),w(b,S,C,B,M),M.delete(S)),e(p,y,b)}return XP=g,XP}var qP,Qae;function Tvt(){if(Qae)return qP;Qae=1;var e=KS(),t=BBe(),r=ige(),n=Rvt(),a=ls(),i=Uv(),o=MBe();function s(l,A,c,u,d){l!==A&&r(A,function(f,h){if(d||(d=new e),a(f))n(l,A,h,c,s,u,d);else{var g=u?u(o(l,h),f,h+"",l,A,d):void 0;g===void 0&&(g=f),t(l,h,g)}},i)}return qP=s,qP}var ZP,Dae;function xBe(){if(Dae)return ZP;Dae=1;var e=w1e(),t=B1e();function r(n){return e(function(a,i){var o=-1,s=i.length,l=s>1?i[s-1]:void 0,A=s>2?i[2]:void 0;for(l=n.length>3&&typeof l=="function"?(s--,l):void 0,A&&t(i[0],i[1],A)&&(l=s<3?void 0:l,s=1),a=Object(a);++o<s;){var c=i[o];c&&n(a,c,o,l)}return a})}return ZP=r,ZP}var $P,Fae;function Qvt(){if(Fae)return $P;Fae=1;var e=Tvt(),t=xBe(),r=t(function(n,a,i){e(n,a,i)});return $P=r,$P}var Dvt=Qvt();const Fvt=Nr(Dvt),_vt=[{title:"Code",dataKey:"code",width:100},{title:"Texte",dataKey:"texte",minWidth:500},{title:"DMS",dataKey:"dms",width:80,dataGetter:({rowData:e})=>e.dms[0]==="+"?e.dms.substring(1):e.dms}],{TextArea:Nvt}=mt,{confirm:kvt}=va,{Search:Pvt}=mt,IBe=({tableParams:e,record:t})=>{const r=Ye(M=>M.cti.components.tables.data.lists.GHM),n=Ye(M=>M.cti.components.tables.data.combos),[a,i]=m.useState(""),[o,s]=m.useState(!1),[l,A]=m.useState(!1),[c,u]=m.useState(null),[d,f]=m.useState([]);m.useEffect(()=>{if(t!==null&&r){let M=r.map(I=>({...I,label:I.texte}));t.dms&&(M=h(t,M)),f(w(M,o))}},[t,r,a,o]);function h(M,I){const S=M.dms.split(";").map((R,b)=>{const Q=R.split("=");return{key:`${Q[0]}-${b}`,oid:Q[0],dms:Q[1]}});return Ivt(I,function(R){return Fvt({...R},Mvt(S,{oid:R.oid}))})}const g=()=>kvt({title:"Confirmez-vous l'effacement des DMS ?",icon:v.jsx(Sv,{}),maskClosable:!0,okText:"Oui",okType:"danger",cancelText:"Non",onOk(){console.log(t)},onCancel(){console.log("Cancel")}}),p=M=>{i(M.target.value)},E=M=>{u(d.find(I=>I.key===M))},y=M=>{A(M)},C=M=>g();function w(M,I=!1){let S=Fh(M,a,["code","texte"]);return I&&(S=S.filter(R=>Number(R.dms)!==0)),S}const B=M=>M.map(I=>({width:300,key:I.dataKey,dataIndex:I.dataKey,ellipsis:!0,...I}));return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"top-editor",children:[v.jsx("div",{className:"tables-common-fields-dms",children:ds(e.fields,t,n)}),v.jsxs("div",{className:"dms-button",children:[v.jsx(nt,{icon:v.jsx(gh,{}),onClick:()=>y(!0),disabled:!(t.key===0&&t.dms.trim()===""),style:{marginRight:"3px"},children:"Ajouter DMS"}),v.jsx(nt,{icon:v.jsx(_S,{}),onClick:()=>C(),disabled:!(t.key===0&&t.dms.trim()===""),children:"Effacer DMS"})]}),v.jsxs("div",{className:"dms-search",children:[v.jsx("div",{className:"dms-search-child",children:v.jsx(Pvt,{style:{height:"24px"},value:a,onChange:p,placeholder:"Rechercher"})}),v.jsxs("div",{className:"dms-search-child",children:[v.jsx("span",{className:"child-label",children:"DMS renseignées uniquement"}),v.jsx(oU,{checked:o,onChange:M=>s(M.target.checked)})]})]})]}),v.jsxs("div",{className:"dms-editor",children:[v.jsx("div",{className:"dms-top-table",children:v.jsx($r,{fixed:!1,columns:B(_vt),data:d,selectedRow:c,onRowSelect:E})}),v.jsx(va,{title:"Ajout DMS",open:l,okText:"Enregistrer",cancelText:"Annuler",onCancel:()=>y(!1),children:v.jsx(Nvt,{})},"add-modal")]})]})};IBe.propTypes={tableParams:U.object,record:U.object};const gU=({record:e,handleUpdateRecord:t,typeOfRegles:r})=>{const n=Ye(p=>p.cti.components.tables.data.combos),a=Ye(p=>p.cti.components.reports.data.indicators),i=Ye(p=>p.cti.content.moduleId),[o,s]=m.useState(!1),[l,A]=m.useState(null),c=Pr();m.useEffect(()=>{c(oh(i))},[c,i]);const u=m.useMemo(()=>r==="event-regle-cti"?{title:"Règles CTI",data:["01","02","03"]}:{title:"Indicateurs Etablissement",data:["51","52","53"]},[r]),d=m.useMemo(()=>n.CONDITIONS.map(p=>({...p,key:p.value,children:p.children.map(E=>{var y;return{...E,key:E.value,children:(y=E==null?void 0:E.children)==null?void 0:y.map(C=>({...C,key:C.value}))}})})),[n.CONDITIONS]),f=p=>{const E={...e,[`ei_${l}_id`]:p.oid};t(E),A(null),s(!1)},h=p=>{s(!0),A(p)},g=m.useCallback(p=>{const E=["1","2","3","4"];return p.data.map((y,C)=>{var w;return v.jsxs("div",{className:"common-form-item",style:{alignItems:"flex-start"},children:[v.jsx("span",{className:"item-label",children:C===0?p.title:"ou"}),v.jsxs("div",{className:"evt-indicator-row",style:{alignItems:"flex-start"},children:[v.jsxs("div",{className:"evt-indicator",children:[v.jsx(mt,{style:{height:28},disabled:!0,value:((w=a.indicators.find(B=>B.oid===e[`ei_${y}_id`]))==null?void 0:w.entete)??""}),v.jsx(nt,{type:"primary",onClick:()=>h(y),children:"Ajouter"})]}),v.jsx("div",{className:"evt-conditions",children:E.map(B=>v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:B==="1"?"Conditions":"et"}),v.jsx(_e.Item,{name:`ec_${y}_id_${B}`,children:v.jsx(wa,{treeData:d,style:{width:300}})})]},B))})]})]},y)})},[d,a.indicators,e]);return v.jsxs(v.Fragment,{children:[v.jsx(HA,{showModal:o,handleShowModal:()=>s(!1),options:{oneOnly:!0},handleAddIndicators:f,handleModifyIndicator:f}),g(u)]})};gU.propTypes={tableParams:U.object,record:U.object,form:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};const bBe=({tableParams:e,record:t,handleUpdateRecord:r,softCode:n})=>{const a=Ye(u=>u.cti.components.tables.data.combos),i=Pr();m.useEffect(()=>{i(uU("SELECT oid, texte, CASE WHEN oid = 0 THEN ' ' || texte ELSE texte END as tri  FROM base.t_territoires_sante  UNION SELECT -1 AS oid, 'Sélectionnez une valeur...' as texte, '  Sélectionnez une valeur...' as tri ORDER BY 3","territoire_de_sante"))},[i]);const[o,s]=m.useState({});m.useEffect(()=>{s(e.lineBlocks[0].lines)},[e]);const l=(u,d,f)=>{r({...t,[f]:u})},A=(u,d)=>{r({...t,[`coefficient_mco_${d}`]:u.target.value})},c=()=>{let u=[];if(o.length){u.push(v.jsxs("div",{children:[v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[0].label})}),v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[1].label})}),v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[2].label})}),v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[3].label})}),v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[4].label})}),v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[5].label})}),v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[6].label})})]},0));for(let d=1;d<=7;d++){const f=parseFloat(t[`${o[1].key}${d}`])===0||!t[`${o[1].key}${d}`]||!t[`${o[0].key}${d}`],h=n==="iCTI_pmsissr"?f||t[`${o[0].key}${d}`].$y===2099:f;u.push(v.jsxs("div",{children:[v.jsx("div",{className:"common-form-item",children:v.jsx(_e.Item,{name:`${o[0].key}${d}`,style:{width:"100%"},children:v.jsx(lv,{name:`${o[0].key}${d}`,format:"DD-MM-YYYY",onChange:(g,p)=>{l(g,p,[`${o[0].key}${d}`])},style:{width:"100%"},dateRender:g=>v.jsx("div",{className:"ant-picker-cell-inner",style:{fontSize:"12px"},children:g.date()})})})}),v.jsx("div",{className:"common-form-item",children:v.jsx(_e.Item,{name:`${o[1].key}${d}`,children:v.jsx(mt,{type:"number",onChange:g=>{A(g,d)},disabled:n==="iCTI_pmsi"?!t[`${o[0].key}${d}`]:!t[`${o[0].key}${d}`]||t[`${o[0].key}${d}`].$y===2099})})}),v.jsx("div",{className:"common-form-item",children:v.jsx(_e.Item,{name:`${o[2].key}${d}`,children:v.jsx(mt,{type:"number",disabled:h})})}),v.jsx("div",{className:"common-form-item",children:v.jsx(_e.Item,{name:`${o[3].key}${d}`,children:v.jsx(mt,{type:"number",disabled:h})})}),v.jsx("div",{className:"common-form-item",children:v.jsx(_e.Item,{name:`${o[4].key}${d}`,children:v.jsx(mt,{type:"number",disabled:h})})}),v.jsx("div",{className:"common-form-item",children:v.jsx(_e.Item,{name:`${o[5].key}${d}`,style:{width:"100%"},children:n==="iCTI_pmsi"?v.jsx(lv,{name:`${o[5].key}${d}`,format:"DD-MM-YYYY",onChange:(g,p)=>{l(g,p,[`${o[5].key}${d}`])},style:{width:"100%"},dateRender:g=>v.jsx("div",{className:"ant-picker-cell-inner",style:{fontSize:"12px"},children:g.date()})}):v.jsx(mt,{type:"number",disabled:h})})}),v.jsx("div",{className:"common-form-item",children:v.jsx(_e.Item,{name:`${o[6].key}${d}`,children:v.jsx(mt,{type:"number",disabled:n==="iCTI_pmsi"?!t[`${o[5].key}${d}`]:h})})})]},d))}}return u};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"tables-common-fields",children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Code"}),v.jsx(_e.Item,{name:"code",style:{width:"80%"},children:v.jsx(mt,{disabled:!0})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Texte"}),v.jsx(_e.Item,{name:"texte",style:{width:"80%"},children:v.jsx(mt,{disabled:!0})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Territoire de santé"}),v.jsx(_e.Item,{name:"tersante_id",style:{width:"80%"},children:v.jsx(Ir,{options:a.territoire_de_sante,style:{width:"100%"}})})]})]}),n==="iCTI_pmsi"&&v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Coefficient MCO FG11"}),v.jsx(_e.Item,{name:"coefficient_mco_simulation_fg11",style:{width:"80%"},children:v.jsx(mt,{type:"number"})})]}),v.jsx(Ml,{}),v.jsxs("div",{className:"lines-container",children:[" ",c()]})]})};bBe.propTypes={record:U.object,handleUpdateRecord:U.func,softCode:U.string};const SBe=({tableParams:e,record:t,form:r,handleUpdateRecord:n,handleValuesChange:a})=>{const[i,o]=m.useState([]),[s,l]=m.useState(!1),[A,c]=m.useState([]),u=te.useCallback((f,h)=>{const g={...t,extraData:{...t.extraData,iqv:t.extraData.iqv.map(E=>({...E}))}};let p=g.extraData.iqv.find(E=>E.key===f);p&&(p.note=h),a(),n(g)},[n,t,a]);m.useEffect(()=>{let f=[{key:"code",dataKey:"code",title:"Code",width:200},{key:"text",dataKey:"texte",title:"Texte",width:200}];s&&f.push({key:"note",dataKey:"note",title:"Note",width:200,dataGetter:({rowData:h})=>v.jsx(mt,{value:h.note,onChange:g=>u(h.key,g.target.value)})}),c(f)},[s,u,t]),m.useEffect(()=>{t!=null&&t.extraData&&o(t.extraData.iqv.map(f=>({...f}))),t.note_with?l(t.note_with):l(!1)},[t]);const d=f=>{l(f.target.checked)};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"tables-common-fields",children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Code"}),v.jsx(_e.Item,{name:"code",style:{width:"100%"},children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Texte"}),v.jsx(_e.Item,{name:"texte",style:{width:"100%"},children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Note"}),v.jsx(_e.Item,{name:"note_with",valuePropName:"checked",style:{width:"100%"},children:v.jsx(Rr,{onChange:d})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Coefficient"}),v.jsx(_e.Item,{name:"note_coefficient",style:{width:"100%"},children:v.jsx(mt,{disabled:!s})})]})]}),v.jsx("div",{className:"indicator-qualite-table",children:v.jsx($r,{columns:A,data:i})})]})};SBe.propTypes={tableParams:U.object,record:U.object,form:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};const RBe=({form:e})=>{const t=()=>{let r=[];for(let n=1;n<=5;n++){let a=[];for(let i=1;i<=5;i++)a.push(v.jsxs("div",{className:"form-item",children:[i>1&&v.jsx("span",{children:"et"}),v.jsx(_e.Item,{shouldUpdate:!0,children:o=>{const s=o.getFieldValue();let l=!1;return n===1&&i===1?l=!1:n>1&&i===1?l=s[`rule_array_0${n-1}_01`]==="":l=s[`rule_array_0${n}_0${i-1}`]==="",v.jsx(_e.Item,{name:`rule_array_0${n}_0${i}`,children:v.jsx(mt,{disabled:l})})}})]}));r.push(v.jsxs("div",{className:"form-row",children:[v.jsx("span",{className:"item-label",children:`Règle ${n}`}),a]}))}return r};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"tables-common-fields",children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Code"}),v.jsx(_e.Item,{name:"code",style:{width:"100%"},children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Texte"}),v.jsx(_e.Item,{name:"texte",style:{width:"100%"},children:v.jsx(mt,{})})]})]}),t()]})};RBe.propTypes={form:U.object};const Ovt=[{title:"Médecins administratifs associés",dataKey:"nom_adm"},{title:"Module",dataKey:"module"}],zvt=[{title:"Médecins administratifs non associés",dataKey:"nom_adm"},{title:"Déjà associé à",dataKey:"nom_ref"},{title:"Module",dataKey:"module"}],TBe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{const[a,i]=m.useState(""),[o,s]=m.useState([]),[l,A]=m.useState([]),[c,u]=m.useState([]),[d,f]=m.useState(null),[h,g]=m.useState(null),p=Ye(R=>R.cti.components.tables.data.lists.MDA),E=Ye(R=>R.cti.components.tables.data.combos);m.useEffect(()=>{if(t!==null&&t.medecins_regroupes_oids){i(t.nom);const R=t.medecins_regroupes_oids.split(",");if(A(R),R.length&&p){let b=[];R.forEach(Q=>{let D=p.find(F=>F.oid===Q);D&&b.push(D)}),s(b)}p&&u(B(p))}else i(""),s([])},[t,p]),m.useEffect(()=>{p&&u(B(p))},[a,l]);const y=R=>{i(R.target.value)},C=R=>{f(o.find(b=>b.key===R))},w=R=>{g(c.find(b=>b.key===R))};function B(R){let b=[...R];return b=b.filter(Q=>(Q.nom_adm.toLowerCase().includes(a.toLocaleLowerCase())||Q.nom_ref.toLowerCase().includes(a.toLocaleLowerCase()))&&!l.includes(Q.oid)),b}const M=()=>{let R={...t},b=t.medecins_regroupes_oids.split(",");b=b.filter(Q=>Q!==d.oid),R.medecins_regroupes_oids=b.join(","),r(R),n(),f(null)},I=()=>{let R={...t},b=t.medecins_regroupes_oids.split(",");b.push(h.oid),R.medecins_regroupes_oids=b.join(","),r(R),n(),g(null)},S=R=>R.map(b=>({width:300,key:b.dataKey,dataIndex:b.dataKey,ellipsis:!0,...b}));return v.jsxs("div",{className:"med-editor",children:[v.jsx("div",{className:"tables-column",children:ds(e.fields,t,E)}),v.jsxs("div",{className:"tables-column",children:[v.jsx("div",{className:"med-top-table",children:v.jsx($r,{fixed:!1,columns:S(Ovt),data:o,selectedRow:d,onRowSelect:C})}),v.jsxs("div",{className:"med-actions",children:[v.jsx(nt,{type:"link",style:{lineHeight:"28px"},disabled:!d,onClick:M,children:v.jsx(_S,{})}),v.jsx(nt,{type:"link",style:{lineHeight:"28px"},disabled:!h,onClick:I,children:v.jsx(gh,{})}),v.jsx("span",{style:{paddingLeft:"12px",paddingRight:"8px"},children:"Recherche"}),v.jsx(mt,{style:{height:"24px"},value:a,onChange:y})]}),v.jsx("div",{className:"med-bottom-table",children:v.jsx($r,{fixed:!1,columns:S(zvt),data:c,selectedRow:h,onRowSelect:w})})]})]})};TBe.propTypes={tableParams:U.object,record:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};const jvt=[{title:"Médecins regroupés",width:100,flexGrow:2,dataKey:"texte"}],Yvt=[{title:"Médecins à regrouper",width:100,flexGrow:2,dataKey:"texte",dataGetter:({columns:e,column:t,columnIndex:r,rowData:n,rowIndex:a})=>n.texte}],QBe=({record:e,form:t,handleUpdateRecord:r,handleValuesChange:n})=>{const[a,i]=m.useState(""),[o,s]=m.useState([]),[l,A]=m.useState(),[c,u]=m.useState(),d=Ye(E=>E.cti.components.tables.data.combos),f=Ye(E=>E.cti.components.tables.data.lists),h=Ye(E=>E.cti.components.tables.data.records);m.useEffect(()=>{e.nom&&i(e.nom.substring(0,3));let E=[];if(e.medecins_regroupes_oids&&f.MEDA.length){const y=e.medecins_regroupes_oids.split(", ").map(C=>C.trim());E=[...E,...y]}if(f.MEDA&&f.MEDA.length){const y=f.MEDA.filter(C=>E.indexOf(C.oid)>=0);s(y)}},[e,f,h]);const g=()=>{let E=e.medecins_regroupes_oids?e.medecins_regroupes_oids+", "+l.oid:l.oid;r({...e,medecins_regroupes_oids:E}),A(null),n()},p=()=>{let E=e.medecins_regroupes_oids.split(", ").filter(y=>y!==c.oid).join(", ");r({...e,medecins_regroupes_oids:E}),u(null),n()};return v.jsxs("div",{className:"meda-editor",children:[v.jsxs("div",{className:"form-column",style:{width:"30%",justifyContent:"flex-start"},children:[v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"first-label",children:"Code"}),v.jsx("div",{className:"form-meda-item",style:{flex:3},children:v.jsx(_e.Item,{name:"code",children:v.jsx(mt,{disabled:!0})})})]}),v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"first-label",children:"Nom"}),v.jsx("div",{className:"form-meda-item",style:{flex:3},children:v.jsx(_e.Item,{name:"nom",children:v.jsx(mt,{})})})]}),v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"first-label",children:"Prénom"}),v.jsx("div",{className:"form-meda-item",style:{flex:3},children:v.jsx(_e.Item,{name:"prenom",children:v.jsx(mt,{})})})]}),v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"first-label",children:"Spécialité officielle"}),v.jsx("div",{className:"form-meda-item",style:{flex:3},children:v.jsx(_e.Item,{name:"specialite",children:v.jsx(mt,{disabled:!0})})})]}),v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"first-label",children:"Médecin référence"}),v.jsx("div",{className:"form-meda-item",style:{flex:3},children:v.jsx(_e.Item,{name:"medecin_reference",children:v.jsx(mt,{disabled:!0})})})]}),v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"first-label",children:"Spécialité interne"}),v.jsx("div",{className:"form-meda-item",style:{flex:3},children:v.jsx(_e.Item,{name:"specialite_interne_id",children:v.jsx(Ir,{options:d.SPI,style:{width:"100%"}})})})]})]}),e.medecin_reference_id==="0"&&v.jsxs("div",{className:"form-column meda-tables",style:{flex:3},children:[v.jsx("div",{className:"meda-top-table",children:v.jsx($r,{data:o,columns:jvt,selectedRow:c,onRowSelect:E=>u(h.find(y=>y.key===E))})}),v.jsxs("div",{className:"meda-actions",children:[v.jsx(nt,{onClick:g,children:v.jsx(sde,{})}),v.jsx(nt,{style:{marginLeft:8,marginRight:8},onClick:p,children:v.jsx(GTe,{})}),v.jsx(mt,{placeholder:"Recherche",value:a,onChange:E=>i(E.target.value)})]}),v.jsx("div",{className:"meda-bottom-table",children:v.jsx($r,{data:f.MEDA.filter(E=>E.texte.includes(a)),columns:Yvt,selectedRow:l,onRowSelect:E=>A(f.MEDA.find(y=>y.key===E))})})]})]})};QBe.propTypes={record:U.object,form:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};var e8,_ae;function Lvt(){if(_ae)return e8;_ae=1;var e=lge(),t=AC(),r=oC(),n=Vi(),a=fd(),i=sC(),o=YS(),s=jS(),l="[object Map]",A="[object Set]",c=Object.prototype,u=c.hasOwnProperty;function d(f){if(f==null)return!0;if(a(f)&&(n(f)||typeof f=="string"||typeof f.splice=="function"||i(f)||s(f)||r(f)))return!f.length;var h=t(f);if(h==l||h==A)return!f.size;if(o(f))return!e(f).length;for(var g in f)if(u.call(f,g))return!1;return!0}return e8=d,e8}var Uvt=Lvt();const JC=Nr(Uvt),sh=({value:e,handleUpdate:t,column:r,recordKey:n,rowKey:a,type:i,selectValues:o})=>{const[s,l]=m.useState(!1),[A,c]=m.useState(""),u=m.useRef();m.useEffect(()=>{c(e)},[e,n]),m.useEffect(()=>{s&&u.current.focus()},[s]);const d=()=>{l(!s)},f=E=>{c(E.target.value)},h=()=>{l(!1),A!==e&&t(r.key,A,a)},g=E=>{let y=E.target.checked?"1":"0";y!==e&&t(r.key,y,a)},p=E=>{E!==e&&t(r.key,E,a)};switch(i){case"checkbox":let E=e==="1";return v.jsx(Rr,{checked:E,onChange:y=>g(y)});case"input":return s?v.jsx(mt,{ref:u,style:{marginLeft:"6px",width:"90%"},value:A,onChange:f,onBlur:h}):v.jsx("div",{className:"editable-field",onClick:d,children:A});case"select":return v.jsx(Ir,{value:e,options:o,style:{width:250},showSearch:!0,onChange:p})}};sh.propTypes={initialText:U.string,handleUpdate:U.func,field:U.string,rowKey:U.number,type:U.string};const Hvt=[{title:"Date",dataKey:"date"},{title:"Étage",dataKey:"oid",width:300}],DBe=({record:e,handleUpdateRecord:t,handleValuesChange:r,selectValues:n})=>{const[a,i]=m.useState([]),o=m.useRef();o.current=e,m.useEffect(()=>{!JC(e)&&e.extraData.etages&&i(e.extraData.etages.map(c=>({...c})))},[e]);const s=c=>c.map(u=>({width:120,key:u.dataKey,dataIndex:u.dataKey,ellipsis:!0,...u,cellRenderer:({cellData:d,column:f,rowData:h,rowIndex:g})=>f.key==="oid"?v.jsx(sh,{value:d,handleUpdate:A,column:f,rowKey:g,type:"select",selectValues:n.ETAGE}):v.jsx(sh,{value:d,handleUpdate:A,column:f,field:f.key,rowKey:g,type:"input"})})),l=()=>{let c={key:e.extraData.etages.length,date:Nn().format("DD/MM/YYYY"),date_debut:Nn().format("DD/MM/YYYY"),oid:"0"},u={...e};u.extraData={...e.extraData};let d=u.extraData.etages.map(f=>({...f}));u.extraData.etages=d,u.extraData.etages.push(c),t(u),r()},A=(c,u,d)=>{let f={...o.current};f.extraData={...f.extraData};let h=f.extraData.etages.map(y=>({...y})),g=h.find(y=>y.key===d);g&&(g[c]=u,f.extraData.etages=h,t(f),r());let p=[...a],E=p.find(y=>y.key===d);E&&(E[c]=u,i(p))};return v.jsxs(v.Fragment,{children:[v.jsx(nt,{type:"primary",onClick:l,children:"Ajouter"}),v.jsx($r,{columns:s(Hvt),data:a})]})};DBe.propTypes={record:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};const FBe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{var f;const a=Ye(h=>h.cti.components.tables.data.combos),i=Ye(h=>h.cti.components.reports.data.indicators),[o,s]=m.useState(!1),[l,A]=m.useState(),c=Pr();m.useEffect(()=>{e.module&&c(oh(`iCTI_${e.module}`))},[c,e]);const u=h=>{const g={...t,[`ei_${l}_id`]:h.oid};r(g),n(),A(null),s(!1)},d=h=>{s(!0),A(h)};return v.jsxs(v.Fragment,{children:[v.jsx(HA,{showModal:o,handleShowModal:()=>s(!1),options:{oneOnly:!0},handleAddIndicators:u,handleModifyIndicator:u}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Indicateurs CTI"}),v.jsx("div",{className:"evt-indicator-row",children:v.jsxs("div",{className:"evt-indicator",children:[v.jsx(mt,{style:{height:28},disabled:!0,value:((f=i.indicators.find(h=>h.oid===t.ei_01_id))==null?void 0:f.entete)??""}),v.jsx(nt,{type:"primary",onClick:()=>d("01"),children:"Ajouter"})]})}),v.jsxs("div",{className:"evt-conditions",children:[v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"Conditions"}),v.jsx(_e.Item,{name:"ec_01_id_1",children:v.jsx(wa,{treeData:a.CONDITIONS,style:{width:300}})})]}),v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"et"}),v.jsx(_e.Item,{name:"ec_01_id_2",children:v.jsx(wa,{treeData:a.CONDITIONS,style:{width:300}})})]})]})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Formule"}),v.jsx(_e.Item,{name:"ef_01",style:{width:"100%"},children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Niveau de détail"}),v.jsx(_e.Item,{name:"et_01",style:{width:"100%"},children:v.jsx(Ir,{options:Sl[`CXP_item_${e.module}`]})})]})]})};FBe.propTypes={tableParams:U.object,record:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};const _Be=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{var f,h,g;const a=Ye(p=>p.cti.components.tables.data.combos),i=Ye(p=>p.cti.components.reports.data.indicators),[o,s]=m.useState(!1),[l,A]=m.useState(),c=Pr();m.useEffect(()=>{e.module&&c(oh(`iCTI_${e.module}`))},[c,e]);const u=p=>{const E={...t,[`ei_${l}_id`]:p.oid};r(E),n(),A(null),s(!1)},d=p=>{s(!0),A(p)};return v.jsxs(v.Fragment,{children:[v.jsx(HA,{showModal:o,handleShowModal:()=>s(!1),options:{oneOnly:!0},handleAddIndicators:u,handleModifyIndicator:u}),v.jsxs("div",{style:{height:"800px"},children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Indicateur établissement"}),v.jsx("div",{className:"evt-indicator-row",children:v.jsxs("div",{className:"evt-indicator",children:[v.jsx(mt,{style:{height:28},disabled:!0,value:((f=i.indicators.find(p=>p.oid===t.ei_51_id))==null?void 0:f.entete)??""}),v.jsx(nt,{type:"primary",onClick:()=>d("51"),children:"Ajouter"})]})}),v.jsxs("div",{className:"evt-conditions",children:[v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"Conditions"}),v.jsx(_e.Item,{name:"ec_51_id_1",children:v.jsx(wa,{treeData:a.CONDITIONS,style:{width:300}})})]}),v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"et"}),v.jsx(_e.Item,{name:"ec_51_id_2",children:v.jsx(wa,{treeData:a.CONDITIONS,style:{width:300}})})]})]})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Formule"}),v.jsx(_e.Item,{name:"ef_51",style:{width:"100%"},children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Niveau de détail"}),v.jsx(_e.Item,{name:"et_51",style:{width:"100%"},children:v.jsx(Ir,{options:Sl[`CXP_item_${e.module}`]})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Ou"}),v.jsx("div",{className:"evt-indicator-row",children:v.jsxs("div",{className:"evt-indicator",children:[v.jsx(mt,{style:{height:28},disabled:!0,value:((h=i.indicators.find(p=>p.oid===t.ei_52_id))==null?void 0:h.entete)??""}),v.jsx(nt,{type:"primary",onClick:()=>d("52"),children:"Ajouter"})]})}),v.jsxs("div",{className:"evt-conditions",children:[v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"Conditions"}),v.jsx(_e.Item,{name:"ec_52_id_1",children:v.jsx(wa,{treeData:a.CONDITIONS,style:{width:300}})})]}),v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"et"}),v.jsx(_e.Item,{name:"ec_52_id_2",children:v.jsx(wa,{treeData:a.CONDITIONS,style:{width:300}})})]})]})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Formule"}),v.jsx(_e.Item,{name:"ef_52",style:{width:"100%"},children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Niveau de détail"}),v.jsx(_e.Item,{name:"et_52",style:{width:"100%"},children:v.jsx(Ir,{options:Sl[`CXP_item_${e.module}`]})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Ou"}),v.jsx("div",{className:"evt-indicator-row",children:v.jsxs("div",{className:"evt-indicator",children:[v.jsx(mt,{style:{height:28},disabled:!0,value:((g=i.indicators.find(p=>p.oid===t.ei_53_id))==null?void 0:g.entete)??""}),v.jsx(nt,{type:"primary",onClick:()=>d("53"),children:"Ajouter"})]})}),v.jsxs("div",{className:"evt-conditions",children:[v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"Conditions"}),v.jsx(_e.Item,{name:"ec_53_id_1",children:v.jsx(wa,{treeData:a.CONDITIONS,style:{width:300}})})]}),v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"et"}),v.jsx(_e.Item,{name:"ec_53_id_2",children:v.jsx(wa,{treeData:a.CONDITIONS,style:{width:300}})})]})]})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Formule"}),v.jsx(_e.Item,{name:"ef_53",style:{width:"100%"},children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Niveau de détail"}),v.jsx(_e.Item,{name:"et_53",style:{width:"100%"},children:v.jsx(Ir,{options:Sl[`CXP_item_${e.module}`]})})]})]})]})};_Be.propTypes={tableParams:U.object,record:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};const NBe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{var f,h;const a=Ye(g=>g.cti.components.tables.data.combos),i=Ye(g=>g.cti.components.reports.data.indicators),[o,s]=m.useState(!1),[l,A]=m.useState(),c=Pr();m.useEffect(()=>{e.module&&c(oh(`iCTI_${e.module}`))},[c,e]);const u=g=>{const p={...t,[`ei_${l}_id`]:g.oid};r(p),n(),A(null),s(!1)},d=g=>{s(!0),A(g)};return v.jsxs(v.Fragment,{children:[v.jsx(HA,{showModal:o,handleShowModal:()=>s(!1),options:{oneOnly:!0},handleAddIndicators:u,handleModifyIndicator:u}),v.jsxs("div",{style:{height:"600px"},children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Autre indicateur CTI"}),v.jsx("div",{className:"evt-indicator-row",children:v.jsxs("div",{className:"evt-indicator",children:[v.jsx(mt,{style:{height:28},disabled:!0,value:((f=i.indicators.find(g=>g.oid===t.ei_02_id))==null?void 0:f.entete)??""}),v.jsx(nt,{type:"primary",onClick:()=>d("02"),children:"Ajouter"})]})}),v.jsxs("div",{className:"evt-conditions",children:[v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"Conditions"}),v.jsx(_e.Item,{name:"ec_02_id_1",children:v.jsx(wa,{treeData:a.CONDITIONS,style:{width:300}})})]}),v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"et"}),v.jsx(_e.Item,{name:"ec_02_id_2",children:v.jsx(wa,{treeData:a.CONDITIONS,style:{width:300}})})]})]})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Formule"}),v.jsx(_e.Item,{name:"ef_02",style:{width:"100%"},children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Niveau de détail"}),v.jsx(_e.Item,{name:"et_02",style:{width:"100%"},children:v.jsx(Ir,{options:Sl[`CXP_item_${e.module}`]})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Ou"}),v.jsx("div",{className:"evt-indicator-row",children:v.jsxs("div",{className:"evt-indicator",children:[v.jsx(mt,{style:{height:28},disabled:!0,value:((h=i.indicators.find(g=>g.oid===t.ei_03_id))==null?void 0:h.entete)??""}),v.jsx(nt,{type:"primary",onClick:()=>d("03"),children:"Ajouter"})]})}),v.jsxs("div",{className:"evt-conditions",children:[v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"Conditions"}),v.jsx(_e.Item,{name:"ec_03_id_1",children:v.jsx(wa,{treeData:a.CONDITIONS,style:{width:300}})})]}),v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"et"}),v.jsx(_e.Item,{name:"ec_03_id_2",children:v.jsx(wa,{treeData:a.CONDITIONS,style:{width:300}})})]})]})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Formule"}),v.jsx(_e.Item,{name:"ef_03",style:{width:"100%"},children:v.jsx(mt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Niveau de détail"}),v.jsx(_e.Item,{name:"et_03",style:{width:"100%"},children:v.jsx(Ir,{options:Sl[`CXP_item_${e.module}`]})})]})]})]})};NBe.propTypes={tableParams:U.object,record:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};const Gvt=[{title:"Lit",dataKey:"code"},{title:"CP",dataKey:"chambre_particuliere",width:50}],kBe=({record:e,handleUpdateRecord:t,handleValuesChange:r})=>{const[n,a]=m.useState([]),i=m.useRef();i.current=e,m.useEffect(()=>{!JC(e)&&e.extraData.lits&&a(e.extraData.lits.map(l=>({...l})))},[e]);const o=l=>l.map(A=>({width:120,key:A.dataKey,dataIndex:A.dataKey,ellipsis:!0,...A,cellRenderer:({cellData:c,column:u,rowData:d,rowIndex:f})=>u.key==="chambre_particuliere"?v.jsx(sh,{value:d[u.key],handleUpdate:s,column:u,recordKey:u.key,rowKey:f,type:"checkbox"}):v.jsx(sh,{value:c,handleUpdate:s,column:u,recordKey:u.key,rowKey:f,type:"input"})})),s=(l,A,c)=>{let u={...i.current};u.extraData={...u.extraData};let d=u.extraData.lits.map(p=>({...p})),f=d.find(p=>p.key===c);f&&(f[l]=A,u.extraData.lits=d,t(u),r());let h=[...n],g=h.find(p=>p.key===c);g&&(g[l]=A,a(h))};return v.jsx(v.Fragment,{children:v.jsx($r,{columns:o(Gvt),data:n})})};kBe.propTypes={record:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};const Kvt=[{title:"Supprimer",dataKey:"action"},{title:"Date",dataKey:"date"},{title:"Lits théoriques",dataKey:"nb_lits_theoriques"},{title:"Lits ouverts",dataKey:"nb_lits_ouverts"},{title:"Box A théoriques",dataKey:"nb_box_ambulatoires_theoriques"},{title:"Box A ouverts",dataKey:"nb_box_ambulatoires_ouverts"},{title:"Box S théoriques",dataKey:"nb_box_seances_theoriques"},{title:"Box S ouverts",dataKey:"nb_box_seances_ouverts"},{title:"C.P. théoriques",dataKey:"nb_lits_cp_theoriques"},{title:"C.P. ouvertes",dataKey:"nb_lits_cp_ouverts"},{title:"L",dataKey:"est_ouvert_1",width:50},{title:"M",dataKey:"est_ouvert_2",width:50},{title:"M",dataKey:"est_ouvert_3",width:50},{title:"J",dataKey:"est_ouvert_4",width:50},{title:"V",dataKey:"est_ouvert_5",width:50},{title:"S",dataKey:"est_ouvert_6",width:50},{title:"D",dataKey:"est_ouvert_7",width:50}],PBe=({record:e,handleUpdateRecord:t,handleValuesChange:r})=>{const[n,a]=m.useState([]),i=m.useRef();i.current=e,m.useEffect(()=>{!JC(e)&&e.extraData.histos&&a(e.extraData.histos.map(c=>({...c})))},[e]);const o=(c,u,d)=>{let f={...i.current};f.extraData={...f.extraData};let h=f.extraData.histos.map(y=>({...y})),g=h.find(y=>y.key===d);g&&(g[c]=u,f.extraData.histos=h,t(f),r());let p=[...n],E=p.find(y=>y.key===d);E&&(E[c]=u,a(p))},s=c=>{let u={...i.current};u.extraData={...u.extraData};let d=u.extraData.histos.map(h=>({...h})),f=d.findIndex(h=>h.key===c);f>-1&&(d.splice(f,1),u.extraData.histos=d,t(u),r())},l=c=>c.map(u=>({width:120,key:u.dataKey,dataIndex:u.dataKey,ellipsis:!0,...u,cellRenderer:({cellData:d,column:f,rowData:h,rowIndex:g})=>f.key.startsWith("est_ouvert")?v.jsx(sh,{value:d,handleUpdate:o,column:f,rowKey:g,type:"checkbox"}):f.key==="action"?v.jsx(nt,{onClick:()=>s(g),children:v.jsx(Ba,{})}):v.jsx(sh,{value:d,handleUpdate:o,column:f,field:f.key,rowKey:g,type:"input"})})),A=()=>{let c={key:0,date:Nn().format("DD/MM/YYYY"),nb_lits_theoriques:"0",nb_lits_ouverts:"0",nb_box_ambulatoires_theoriques:"0",nb_box_ambulatoires_ouverts:"0",nb_box_seances_theoriques:"0",nb_box_seances_ouverts:"0",est_ouvert_1:"1",est_ouvert_2:"1",est_ouvert_3:"1",est_ouvert_4:"1",est_ouvert_5:"1",est_ouvert_6:"1",est_ouvert_7:"1"},u={...e};u.extraData={...e.extraData};let d=u.extraData.histos.map(f=>({key:f.key++,...f}));u.extraData.histos=d,u.extraData.histos.unshift(c),t(u),r()};return v.jsxs(v.Fragment,{children:[v.jsx(nt,{type:"primary",onClick:A,style:{marginBottom:"8px"},children:"Ajouter"}),v.jsx($r,{fixed:!1,columns:l(Kvt),data:n})]})};PBe.propTypes={record:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};const Vvt=[{title:"Date début",dataKey:"dd"},{title:"Date fin",dataKey:"df"},{title:"Borne basse",dataKey:"bb"},{title:"Borne haute",dataKey:"bh"},{title:"Dms nationale",dataKey:"dm"},{title:"Tarif GHS",dataKey:"tg"},{title:"Forfait EXB",dataKey:"fb"},{title:"Tarif EXB",dataKey:"tb"},{title:"Tarif EXH",dataKey:"tx"}],Jj=({record:e,typeEts:t})=>{let r=t==="public"?"pp":"pr",n=Object.keys(e).filter(s=>s.includes(r)),a={};n.forEach(s=>a[s]=e[s]);let i={};Object.keys(a).forEach(s=>{let l=parseInt(s.slice(-1));i[l]=i[l]?i[l]:{key:l},i[l][s.slice(0,-3)]=a[s]});const o=s=>s.map(l=>({width:120,key:l.dataKey,dataIndex:l.dataKey,ellipsis:!0,...l}));return v.jsx(v.Fragment,{children:v.jsx($r,{fixed:!1,columns:o(Vvt),data:Ic(Object.values(i),"dd","desc")})})};Jj.propTypes={record:U.object,typeEts:U.string};const Jvt={SER_type_t2a_provider:[{label:"Pas de sélection",value:"0"},{label:"PMSI MCO",value:"1"},{label:"PMSI SSR",value:"2"},{label:"PMSI PSY",value:"3"},{label:"PMSI HAD",value:"4"}],OPTADM_DAYOUT_PROVIDER:[{label:"Jour de sortie non inclus sauf hospits avec DE=DS",value:"0"},{label:"Jour de sortie non inclus",value:"1"},{label:"Jour de sortie inclus",value:"2"}],SER_TYPE_SEJOUR_PROVIDER:[{label:"Selon mode de traitement et séjour",value:"0"},{label:"Selon mode de traitement et séjour (sauf séance)",value:"0sauf5"},{label:"Hospitalisé",value:"1"},{label:"Ambulatoire",value:"2"},{label:"Externe",value:"3"},{label:"Externe si durée <= 1n, Hospitalisé sinon)",value:"31"},{label:"Séance",value:"5"},{label:"Bébé",value:"6"},{label:"Ignorer ce service",value:"9"}],SER_est_sans_facturation_provider:[{label:"Avec facturation",value:"0"},{label:"Sans facturation",value:"1"},{label:"Facturation facultative si budget global expédié MAT2A",value:"2"}]},OBe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{const[a,i]=m.useState([]),o=Ye(A=>A.cti.components.tables.data.combos),s=Object.assign(o,Jvt,Sl);m.useEffect(()=>{e&&i(e.fields)},[e]);const l=A=>{let c={};return e.tabs.forEach(u=>{c[u.key]={...u,children:[]}}),A.forEach(u=>{c[u.tab].children.push(u)}),Object.values(c).map((u,d)=>{const f=h=>h.children.map((p,E)=>{switch(p.type){case"histos":return v.jsx(PBe,{record:t,handleUpdateRecord:r,handleValuesChange:n},E);case"lits":return v.jsx(kBe,{record:t,handleUpdateRecord:r,handleValuesChange:n},E);case"etages":return v.jsx(DBe,{record:t,handleUpdateRecord:r,handleValuesChange:n,selectValues:s},E);case"cti-constantes":return v.jsx(hU,{record:t,handleUpdateRecord:r,tableParams:e,typeOnly:!0});case"cxp-regle-cti":return v.jsx(FBe,{record:t,handleUpdateRecord:r,handleValuesChange:n,tableParams:e,typeOnly:!0});case"cxp-autre-cti":return v.jsx(NBe,{record:t,handleUpdateRecord:r,handleValuesChange:n,tableParams:e,typeOnly:!0});case"cxp-ets":return v.jsx(_Be,{record:t,handleUpdateRecord:r,handleValuesChange:n,tableParams:e,typeOnly:!0});case"tarifs_prive_ghs":return v.jsx(Jj,{record:t,typeEts:"prive"},E);case"tarifs_public_ghs":return v.jsx(Jj,{record:t,typeEts:"public"},E);case"event-regle-cti":case"event-regle-spe":return v.jsx(gU,{record:t,handleUpdateRecord:r,typeOfRegles:p.type},E);default:return vBe(p,E,t,s)}});return{label:v.jsx("span",{children:u.label}),key:d,className:"tables-tab-panes",children:f(u)}})};return JC(t)?null:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"tables-common-fields",children:ds(e.fields.filter(A=>!A.tab),"",s)}),v.jsx("div",{className:"tables-tab-fields",children:v.jsx(xa,{shouldUpdate:!0,items:l(e.fields.filter(A=>A.tab))})})]})};OBe.propTypes={tableParams:U.object,record:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};const Wvt={selectOptions:[{label:"Nombre",value:"0"},{label:"Base",value:"1"},{label:"Tx. salarial",value:"2"},{label:"Mt. salarial",value:"3"},{label:"Tx. patronal",value:"4"},{label:"Mt. patronal",value:"5"},{label:"Mt. +sal. +pat.",value:"6"},{label:"Mt. +sal. -pat.",value:"7"},{label:"Mt. -sal. +pat.",value:"8"}]},zBe=({index:e,rubrique:t,field:r,handleUpdateRubrique:n})=>{const[a,i]=m.useState(null);m.useEffect(()=>{i(!t.pVal)},[t]);const o=Ye(l=>l.cti.components.tables.data.combos),s=Object.assign(o,Wvt);return v.jsxs("div",{className:"rubrique",children:[v.jsxs("div",{className:"rubrique-header",children:[v.jsx("span",{className:"item-label",children:r.title}),v.jsx(_e.Item,{name:t.pKey,valuePropName:"checked",extra:r.detail,children:v.jsx(Rr,{onChange:l=>n(l.target)})})]}),v.jsxs("div",{className:"rubrique-fields",children:[v.jsx(_e.Item,{name:t.sKey,children:v.jsx(Ir,{disabled:a,options:s.selectOptions,showSearch:!0,style:{width:"100%"}})}),v.jsx(_e.Item,{name:t.cKey,children:v.jsx(mt,{disabled:a})})]})]},e)};zBe.propTypes={index:U.number,rubrique:U.object,field:U.object,handleUpdateRubrique:U.func};const jBe=({record:e,fields:t,handleGetFieldValue:r,handleUpdateRecord:n})=>{const a=Ye(c=>c.cti.components.tables.data.combos),i=Ye(c=>c.cti.components.tables.data.divers),o=c=>{let u=c.id,d={...e},f=c.checked===!0?"X":"";d[u]=f,n(d)},s=(c,u)=>{if(c.editVisible===!1)return null;{const d=c.dataKey?c.dataKey:c.key,f=d.replace("p","c"),h=d.replace("p","s"),g={pKey:d,pVal:r(d),cKey:f,cVal:r(f),sKey:h,sVal:r(h)};return v.jsx(zBe,{index:u,field:c,rubrique:g,handleUpdateRubrique:o,handleGetFieldValue:r},u+d)}};if(JC(e))return null;const l=i.rubriques.valeur,A=t[l].filter(c=>c.isSC);return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"tables-common-fields",children:ds(t[l],"",a)}),v.jsx("div",{className:"tables-rubriques-fields",children:A.map((c,u)=>s(c,u))})]})};jBe.propTypes={record:U.object,fields:U.object,handleGetFieldValue:U.func,handleUpdateRecord:U.func};const YBe=({tableParams:e,record:t})=>{const r=Ye(a=>a.cti.components.tables.data.combos),n=()=>{let a=Object.keys(t).filter(o=>o.startsWith("cc")&&t[o]!==""),i=Object.keys(t).filter(o=>o.startsWith("ct")&&t[o]!=="");return a.map((o,s)=>v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:t[o]}),v.jsx(_e.Item,{name:i[s],className:"title-input",style:{width:"100%"},children:v.jsx(mt,{})})]},o))};return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"tables-common-fields",children:ds(e.fields.filter(a=>!a.tab),"",r)}),v.jsx("div",{className:"tables-chapter-fields",children:n()})]})};YBe.propTypes={tableParams:U.object,record:U.object};const LBe=({tableParams:e,record:t})=>{const[r,n]=m.useState([]),[a,i]=m.useState(!1),[o,s]=m.useState([]),[l,A]=m.useState(!1),[c,u]=m.useState(0),d=Ye(w=>w.cti.components.tables.data.combos),f=Ye(w=>w.cti.content.moduleId);m.useEffect(()=>{e&&s(e.fields)},[e,f]),m.useEffect(()=>{f==="iCTI_compta"&&(n(h(o)),t[r==null?void 0:r.modeSpe]?i(!0):i(!1))},[t]);const h=w=>{const B=w.filter(I=>I.comptaExtraParams==="taux"),M=w.filter(I=>I.comptaExtraParams==="pole");return B.map((I,S)=>({tauxId:I.dataKey,poleId:M[S].dataKey}))},g=w=>{let B=0;return r==null||r.forEach(M=>{B+=Number(w[M.tauxId])}),B},p=w=>{A(!l),t[w.target.id]=w.target.value};m.useEffect(()=>{u(g(t))},[t,p]);const E=w=>{w.target.value&&!a?i(!0):a&&!w.target.value&&i(!1)},y=w=>w.map((B,M)=>B.editVisible===!1?null:{label:v.jsxs("span",{children:[t[B.dataKey]!==""&&v.jsx(UFe,{}),B.title]}),key:M,children:v.jsx(_e.Item,{name:B.dataKey,children:v.jsx(mt.TextArea,{})})}),C=w=>v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Mode spécifique"}),v.jsx(_e.Item,{name:"special_calc",onChange:E,children:v.jsx(mt,{})})]}),w&&!a&&v.jsxs("div",{className:"common-form-item",style:{alignItems:"flex-start"},children:[v.jsx("span",{className:"item-label",children:`Pole Total : ${c} %`}),v.jsx("div",{className:"compta-grid",children:w.map(B=>v.jsxs("div",{className:"compta-grid__container",children:[v.jsx(_e.Item,{name:B.poleId,children:v.jsx(Ir,{options:d.POL})}),v.jsx(_e.Item,{shouldUpdate:!0,children:({getFieldValue:M})=>v.jsx(_e.Item,{name:B.tauxId,onChange:p,children:v.jsx(mt,{disabled:M(B.poleId)==="0",addonAfter:"%",type:"number"})})})]},B.tauxId))})]})]});return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"tables-common-fields",children:ds(e.fields.filter(w=>!w.tab),"",d)}),f==="iCTI_compta"&&r.length&&v.jsx("div",{className:"tables-common-fields",children:C(r)}),v.jsx("div",{className:"tables-tab-fields",children:v.jsx(xa,{items:y(e.fields.filter(w=>w.tab))})})]})};LBe.propTypes={tableParams:U.object,record:U.object};const UBe=({tableParams:e,form:t})=>{const r=Ye(i=>i.cti.components.tables.data.combos),n=Ye(i=>i.cti.components.tables.data.combos.SEJ),a=i=>{let o=n.find(l=>l.code===i.target.value),s="?";o&&(s=o.texte),t.setFieldsValue({texte:s})};return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"tables-common-fields",children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Numéro"}),v.jsx(_e.Item,{style:{width:"100%"},name:"code",children:v.jsx(mt,{onChange:j5(a,500)})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Nom"}),v.jsx(_e.Item,{style:{width:"100%"},name:"texte",children:v.jsx(mt,{disabled:!0})})]}),ds(e.fields.filter(i=>i.dataKey!=="code"&&i.dataKey!=="texte"),"",{...r,...Sl})]})})};UBe.propTypes={tableParams:U.object,form:U.object};const HBe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{const a=Pr(),i=e.listName,o=e.listPath,s=Ye(F=>F.cti.components.tables.data.lists[i]),l=Ye(F=>F.cti.components.tables.data.combos),[A,c]=m.useState(""),[u,d]=m.useState([]),[f,h]=m.useState([]),[g,p]=m.useState([]),[E,y]=m.useState(null),[C,w]=m.useState(null);m.useEffect(()=>{a(uU("SELECT oid, texte, CASE WHEN oid = 0 THEN ' ' || texte ELSE texte END as tri  FROM base.t_territoires_sante  UNION SELECT -1 AS oid, 'Sélectionnez une valeur...' as texte, '  Sélectionnez une valeur...' as tri ORDER BY 3","territoire_de_sante"))},[]),m.useEffect(()=>{if(t!==null&&t[o]){A===""&&c(t.texte);let F=t[o].replace(/\s+/g,"").split(",");if(F=F.map(N=>N),h(F),F.length&&s){let N=[];F.forEach(k=>{let O=s.find(P=>P.oid===k);O&&N.push(O)}),d(N)}if(s){let N=[];s.forEach(k=>{F.find(P=>k.oid===P)||N.push(k)}),p(S(N))}}else d([]),p([]),h([])},[t,s]),m.useEffect(()=>{let F=[];s&&(t!==null&&t[o]&&f?s.forEach(N=>{let k=t[o].replace(/\s+/g,"").split(",");k=k.map(P=>P),k.find(P=>N.oid===P)||F.push(N)}):F=s.map(N=>({...N,label:N.texte})),p(S(F)))},[A,f]);const B=F=>{c(F.target.value)},M=F=>{y(u.find(N=>N.key===F))},I=F=>{w(g.find(N=>N.key===F))},S=F=>{let N=[...F];return A&&(N=N.filter(k=>k.texte.toLowerCase().includes(A.toLocaleLowerCase()))),N},R=()=>{let F={...t},N=t[o].replace(/\s+/g,"").split(",");N=N.filter(k=>k!==E.oid),F[o]=N.join(","),r(F),n(),y(null)},b=()=>{let F={...t},N=t[o].replace(/\s+/g,"").split(",");N.push(C.oid),F[o]=N.join(","),r(F),n(),w(null)},Q=[...e.transfertFields],D=F=>F.map(N=>({width:300,key:N.dataKey,dataIndex:N.dataKey,ellipsis:!0,...N}));return v.jsxs("div",{className:"transfer-editor",children:[v.jsx("div",{className:"tables-column",children:ds(e.fields,t,l)}),v.jsxs("div",{className:"tables-column",children:[v.jsx("div",{className:"med-top-table",children:v.jsx($r,{fixed:!1,columns:D(Q),data:u,selectedRow:E,onRowSelect:M})}),v.jsxs("div",{className:"med-actions",children:[v.jsx(nt,{type:"link",style:{lineHeight:"28px"},disabled:!E,onClick:R,children:v.jsx(_S,{})}),v.jsx(nt,{type:"link",style:{lineHeight:"28px"},disabled:!C,onClick:b,children:v.jsx(gh,{})}),v.jsx("span",{style:{paddingLeft:"12px",paddingRight:"8px"},children:"Recherche"}),v.jsx(mt,{style:{height:"24px"},value:A,onChange:B})]}),v.jsx("div",{className:"med-bottom-table",children:v.jsx($r,{fixed:!1,columns:D(Q),data:g,selectedRow:C,onRowSelect:I})})]})]})};HBe.propTypes={tableParams:U.object,record:U.object,handleUpdateRecord:U.func,handleValuesChange:U.func};const Wj=({tableParams:e,record:t,handleShowEditor:r,swf:n,choice:a})=>{const i=Ye(b=>b.cti.settings.data.session),[o,s]=m.useState(null),[l,A]=m.useState(!1),[c,u]=m.useState({}),d=Ye(b=>b.cti.content.moduleId),f=Ye(b=>b.cti.components.tables.data.records),h=Pr(),[g]=_e.useForm();m.useEffect(()=>{e&&s(e.component)},[e]),m.useEffect(()=>{if(t){A(!1);const b=cU(t,e,f);g.setFieldsValue(b),u({...b})}},[t,e,f]);const p=(t==null?void 0:t.nbref)&&(t==null?void 0:t.nbref)!=="+0"&&(t==null?void 0:t.nbref)!=="0"||(t==null?void 0:t.oid)==="-1",E=b=>g.getFieldValue(b),y=()=>{A(!0)},C=()=>{const b=f.find(Q=>Q.key===t.key);u({...b}),g.setFieldsValue(b),A(!1)},w=()=>{A(!1),r()},B=b=>{let Q={...b,...g.getFieldsValue()};u(Q)},M=(b,Q=!0)=>{let D={...c,...g.getFieldsValue()};D=Vj(D,e);const F=AU(D);h(Up(n,d,e.tableName,F,D,b,Q,a)),A(!1),r()},I=()=>{lwe(e.tableName,t.oid)},S=()=>{const b={oid:c.oid};let Q={RECORD:{XMLType:"RECORD",...b}};const D=Fl(Q,!0);h(Up(n,d,e.tableName,D,b,"delete"))},R=()=>{switch(o){case"common":return v.jsx(fU,{record:c,fields:e.fields});case"rubrique":return v.jsx(jBe,{record:c,fields:e.fields,handleGetFieldValue:E,handleUpdateRecord:B});case"onglet":return v.jsx(OBe,{tableParams:e,record:c,handleUpdateRecord:B,handleValuesChange:y});case"rules":return v.jsx(LBe,{tableParams:e,record:c});case"finess":return v.jsx(bBe,{tableParams:e,record:c,handleUpdateRecord:B,softCode:d});case"transfert":return v.jsx(HBe,{tableParams:e,record:c,handleUpdateRecord:B,handleValuesChange:y});case"DMS":return v.jsx(IBe,{tableParams:e,record:c});case"MED":return v.jsx(TBe,{tableParams:e,record:c,handleUpdateRecord:B,handleValuesChange:y});case"BUD":return v.jsx(yBe,{tableParams:e,record:c,handleUpdateRecord:B,handleValuesChange:y,form:g,softCode:d});case"BUI_activite":return v.jsx(wBe,{tableParams:e,record:c,handleUpdateRecord:B,handleValuesChange:y});case"AJU":return v.jsx(gBe,{tableParams:e,record:c,handleUpdateRecord:B,handleValuesChange:y,form:g});case"chapter":return v.jsx(YBe,{tableParams:e,record:c});case"sejours":return v.jsx(UBe,{tableParams:e,form:g});case"constantes":return v.jsx(hU,{tableParams:e,record:c,form:g,handleUpdateRecord:B,handleValuesChange:y});case"keyword":return v.jsx(RBe,{form:g});case"evenement":return v.jsx(gU,{tableParams:e,record:c,form:g,handleUpdateRecord:B,handleValuesChange:y});case"indicateur_qualite":return v.jsx(SBe,{tableParams:e,record:c,form:g,handleUpdateRecord:B,handleValuesChange:y});case"MEDA":return v.jsx(QBe,{record:c,form:g,handleUpdateRecord:B,handleValuesChange:y});default:return v.jsx(vd,{icon:v.jsx(Tv,{}),title:`Désolé cet editeur n'est pas comme les autres... Il est encore en construction (${o}) !`})}};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"tables-editor-header",children:[v.jsx(nt,{icon:v.jsx(La,{}),disabled:!l,onClick:C,children:"Annuler"}),e.sqlButton&&i.ISROLECTI&&v.jsx(nt,{icon:v.jsx(bv,{}),onClick:I,children:"SQL"}),e.addButton&&v.jsx(ga,{title:"Voulez-vous vraiment supprimer cette entrée ?",okText:"Supprimer",cancelText:"Annuler",onConfirm:S,children:v.jsx(nt,{icon:v.jsx(Ba,{}),disabled:p,children:"Supprimer"})}),e.deleteButton&&v.jsx(ga,{title:"Voulez-vous vraiment supprimer cette entrée ?",okText:"Supprimer",cancelText:"Annuler",onConfirm:S,children:v.jsx(nt,{icon:v.jsx(Ba,{}),disabled:(e==null?void 0:e.tableName)==="t_ghm_dms"?!(t&&t.dms.trim()===""&&t.key===0):p,children:"Supprimer"})}),e.copyButton&&v.jsx(ga,{title:"Voulez-vous vraiment copier cette entrée ?",okText:"Copier",cancelText:"Annuler",onConfirm:()=>M("copy"),children:v.jsx(nt,{icon:v.jsx(hh,{}),disabled:t&&t.oid==="-1",children:"Copier"})}),v.jsx(nt,{icon:v.jsx(DO,{}),type:"primary",disabled:!l,onClick:()=>M("save"),children:"Enregistrer"}),e.saveWithoutCalc&&v.jsx(nt,{icon:v.jsx(DO,{}),type:"primary",disabled:!l,onClick:()=>M("save",!1),children:"Enregistrer sans recalcul"}),l?v.jsx(ga,{placement:"topRight",cancelText:"Rester sur l'éditeur",okText:"Retour à la liste",onConfirm:w,title:"Des modifications sont en cours. Etes vous sur de vouloir revenir à la liste ?",children:v.jsx(nt,{type:"link",className:"close-button",children:v.jsx(ci,{})})}):v.jsx(nt,{type:"link",className:"close-button",onClick:w,children:v.jsx(ci,{})})]}),v.jsx("div",{className:"tables-editor-content",children:v.jsx(_e,{form:g,onValuesChange:y,style:{maxWidth:"100%"},children:R()})})]})};Wj.propTypes={tableParams:U.object,record:U.object,handleShowEditor:U.func,swf:U.string,softCode:U.string,choice:U.string};const GBe=({data:e,handleUpdateDescription:t})=>{const[r,n]=m.useState("");m.useEffect(()=>{n(e)},[e]);const a=i=>{n(i),t(i)};return v.jsx(mt.TextArea,{placeholder:"",size:"middle",value:r,onChange:a})};GBe.propTypes={data:U.string,handleUpdateDescription:U.func};const Xvt=[{title:"Code",dataKey:"code",key:"code",width:200},{title:"Texte",dataKey:"texte",key:"texte",width:400,resizable:!0},{title:"Abrégé",dataKey:"texte_abrege",key:"texte_abrege",width:400,resizable:!0},{title:"Complément",dataKey:"complement",key:"complement",width:200,resizable:!0},{title:"Gravité",dataKey:"gravite_texte",key:"gravite_texte",width:200,resizable:!0}],KBe=({tableParams:e,record:t,handleShowEditor:r,swf:n,showRefs:a})=>{const i=Ye(N=>N.cti.settings.data.session),[o,s]=m.useState(!1),[l,A]=m.useState({}),[c,u]=m.useState([]),d=Ye(N=>N.cti.content.moduleId),f=Ye(N=>N.cti.components.tables.data.records),h=Ye(N=>N.cti.components.tables.data.refRecords),g=Pr(),[p]=_e.useForm();m.useEffect(()=>{if(t){s(!1);const N=cU(t,e);p.setFieldsValue(N),A({...N})}},[t,e]);const E=(t==null?void 0:t.nbref)&&(t==null?void 0:t.nbref)!=="+0"&&(t==null?void 0:t.nbref)!=="0"||(t==null?void 0:t.oid)==="-1",y=N=>{let k=t;k.description=N;let O={...k,...p.getFieldsValue()};O=Vj(O),A(O),s(!0)},C=()=>{s(!0)},w=()=>{const N=f.find(k=>k.key===t.key);A({...N}),p.setFieldsValue(N),s(!1)},B=()=>{s(!1),r()},M=(N,k=!0)=>{let O={...l,...p.getFieldsValue()};O=Vj(O,e);const P=AU(O);g(Up(n,d,e.tableName,P,O,N)),s(!1)},I=()=>{g(dBe(n,e.tableName,d,t.oid))},S=()=>{lwe(e.tableName,t.oid,d)},R=()=>{const N={oid:l.oid};let k={RECORD:{XMLType:"RECORD",...N}};const O=Fl(k,!0);g(Up(n,d,e.tableName,O,N,"delete"))},b=()=>{const N={oid:l.oid};let k={RECORD:{XMLType:"RECORD",...N}};const O=Fl(k,!0);g(Up(n,d,e.tableName,O,N,"purge_history"))},Q=N=>{let k={};return e.tabs.forEach(O=>{k[O.key]={...O,children:[]}}),N.forEach(O=>{k[O.tab].children.push(O)}),Object.values(k).map((O,P)=>{let z=null,j=[];return O.children.forEach(V=>V.type!=="text-editor"?j.push(V):z=V),{label:v.jsx("span",{children:O.label}),key:P,className:"tables-tab-panes",children:v.jsxs(v.Fragment,{children:[v.jsx(fU,{tableParams:e,record:l,fields:j}),z&&t?v.jsx(GBe,{data:t.description,handleUpdateDescription:y}):null]})}})},D=N=>{let k=[...c];Array.isArray(N)?k=k.concat(N):k.includes(N)?k=k.filter(O=>O!==N):k.push(N),u([...new Set(k)])},F=()=>{g(rvt(n,d,e.tableName,c)),u([])};return a?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"tables-editor-header",children:v.jsx(nt,{disabled:!c.length,onClick:F,icon:v.jsx(Rv,{}),children:"Importer"})}),v.jsx("div",{className:"tables-editor-content",children:v.jsx($r,{columns:Xvt,data:h,shiftMulti:!0,onRowSelect:D,selectedRows:c})})]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"tables-editor-header",children:[v.jsx(nt,{icon:v.jsx(La,{}),disabled:!o,onClick:w,children:"Annuler"}),e.sqlButton&&i.ISROLECTI&&v.jsx(nt,{icon:v.jsx(bv,{}),onClick:S,children:"SQL"}),v.jsx(ga,{title:"Voulez-vous vraiment effacer l'historique ?",okText:"Effacer l'historique",cancelText:"Annuler",onConfirm:b,children:v.jsx(nt,{icon:v.jsx(ci,{}),children:"Effacer historique"})}),v.jsx(ga,{title:"Voulez-vous vraiment exécuter cette règle ?",okText:"Exécuter la règle",cancelText:"Annuler",onConfirm:I,children:v.jsx(nt,{icon:v.jsx(jQe,{}),disabled:t&&t.oid==="-1",children:"Exécuter"})}),e.addButton&&v.jsx(ga,{title:"Voulez-vous vraiment supprimer cette entrée ?",okText:"Supprimer",cancelText:"Annuler",onConfirm:R,children:v.jsx(nt,{icon:v.jsx(Ba,{}),disabled:E,children:"Supprimer"})}),e.deleteButton&&v.jsx(ga,{title:"Voulez-vous vraiment supprimer cette entrée ?",okText:"Supprimer",cancelText:"Annuler",onConfirm:R,children:v.jsx(nt,{icon:v.jsx(Ba,{}),disabled:(e==null?void 0:e.tableName)==="t_ghm_dms"?!(t&&t.dms.trim()===""&&t.key===0):E,children:"Supprimer"})}),e.copyButton&&v.jsx(ga,{title:"Voulez-vous vraiment copier cette entrée ?",okText:"Copier",cancelText:"Annuler",onConfirm:()=>M("copy"),children:v.jsx(nt,{icon:v.jsx(hh,{}),disabled:t&&t.oid==="-1",children:"Copier"})}),v.jsx(nt,{icon:v.jsx(DO,{}),type:"primary",disabled:!o,onClick:()=>M("save"),children:"Enregistrer"}),o?v.jsx(ga,{placement:"topRight",cancelText:"Rester sur l'éditeur",okText:"Retour à la liste",onConfirm:B,title:"Des modifications sont en cours. Etes vous sur de vouloir revenir à la liste ?",children:v.jsx(nt,{type:"link",className:"close-button",children:v.jsx(ci,{})})}):v.jsx(nt,{type:"link",className:"close-button",onClick:B,children:v.jsx(ci,{})})]}),v.jsx("div",{className:"tables-editor-content",children:v.jsxs(_e,{form:p,onValuesChange:C,style:{minWidth:"0px",paddingTop:"20px"},children:[v.jsx("div",{className:"tables-common-fields",children:ds(e.fields.filter(N=>!N.tab),"")}),v.jsx("div",{className:"tables-tab-fields",children:v.jsx(xa,{items:Q(e.fields.filter(N=>N.tab))})})]})})]})};KBe.propTypes={tableParams:U.object,record:U.object,handleShowEditor:U.func,swf:U.string};const qvt=({showModalPreferences:e,handleShowModalPreferences:t,swf:r,softCode:n,tableParams:a})=>{const i=Pr(),[o,s]=m.useState(null),[l,A]=m.useState(null),c=Ye(g=>g.cti.components.tables.data.divers),u="DD/MM/YYYY";m.useEffect(()=>{c.expert&&(s(Nn(c.expert.EXPERT_DATE_DEBUT,u)),A(c.expert.EXPERT_ACTIVE==="1"))},[c]);const d=()=>{const g={mode:"2",EXPERT_ACTIVE:l?"1":"0",EXPERT_DATE_DEBUT:Nn(o).format(u)},p=AU(g);i(Up(r,n,a.tableName,p,g,"save"))},f=g=>{s(g)},h=()=>{A(!l)};return c.expert?v.jsx(v.Fragment,{children:v.jsx(va,{title:"Préférences",open:e,okText:"Enregistrer",cancelText:"Retour",maskClosable:!0,onCancel:()=>t(!1),onOk:()=>{d()},children:v.jsxs("div",{children:[v.jsxs("div",{children:[v.jsx("span",{className:"spanStr",children:"Expert"}),v.jsx(Va,{checked:l,onClick:h})]}),v.jsxs("div",{children:[v.jsx("span",{className:"spanStr",children:"Date de démarrage :"}),v.jsx(lv,{format:u,onChange:g=>{f(g)},dateRender:g=>v.jsx("div",{className:"ant-picker-cell-inner",style:{fontSize:"12px"},children:g.date()})})]}),v.jsx("div",{children:v.jsx("span",{children:"À partir de cette date, tous les séjours seront controlés, sortis ou non."})})]})})}):null},IB=[{title:"Code",dataKey:"code",type:"input"},{title:"Code original",dataKey:"code_original",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"}],Zvt={SIT:{tableName:"t_sites",title:"Gestion Sites",component:"common",fields:[...IB,{title:"C/H",dataKey:"clinique_honoraire",type:"select",selectOptionsKey:"COMPTA_CH"},{title:"Etablissement",dataKey:"finess_id",type:"select",selectOptionsKey:"FINESS",hidden:!0},{title:"Etablissement",dataKey:"finess_texte",editVisible:!1},{title:"Nombres références",dataKey:"nbref",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}]},JRN:{tableName:"t_journaux",title:"Gestion Journaux",component:"common",fields:[...IB,{title:"C/H",dataKey:"clinique_honoraire",type:"input",editable:!1},{title:"A nouveaux",dataKey:"a_nouveaux",type:"checkbox"},{title:"Nombre de Références (écritures)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}]},TCO:{tableName:"t_types_compta",title:"Gestion Types de Comptabilité",component:"common",fields:[...IB,{title:"C/H",dataKey:"clinique_honoraire",type:"select",editVisible:!1,selectOptionsKey:"COMPTA_CH"},{title:"Nombre de Références (comptes)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}]},CLS:{tableName:"t_classes_comptes",title:"Gestion classes de comptes",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Nombre de Références (comptes)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}]},CPT:{tableName:"t_comptes",title:"Gestion comptes",component:"onglet",addSearchFields:["numero"],tabs:[{key:"general",label:"Général"},{key:"sage",label:"Collectif (SAGEX3)"}],fields:[{title:"Compte",dataKey:"numero",type:"input",editable:!1},{tab:"general",title:"Texte",dataKey:"texte",type:"input"},{tab:"general",title:"C/H",dataKey:"clinique_honoraire",type:"select",editable:!1,selectOptionsKey:"COMPTA_CH"},{title:"Commentaire",dataKey:"comment",type:"input",editVisible:!1},{tab:"general",title:"Compte banque",dataKey:"banque",type:"checkbox",hidden:!0},{tab:"general",title:"Compte collectif",dataKey:"collectif",type:"checkbox",hidden:!0},{tab:"general",title:"Solde Initial",dataKey:"solde_initial",type:"input",hidden:!0},{title:"Nombre de Références (écritures)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""},{tab:"sage",title:"Journal",dataKey:"type_compta_extra_id",type:"select",selectOptionsKey:"TYPECOMPTA",hidden:!0},{tab:"sage",title:"Numéro auxiliaire",dataKey:"numero_extra",type:"input",hidden:!0},{tab:"sage",title:"Texte auxiliaire",dataKey:"texte_extra",type:"input",hidden:!0}]},CPX:{tableName:"t_comptes_extra",title:"Gestion Comptes auxiliaires",component:"common",fields:[{title:"Compte",dataKey:"numero",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"C/H",dataKey:"clinique_honoraire",type:"select",editable:!1,selectOptionsKey:"COMPTA_CH"},{title:"Type comptabilité",dataKey:"type_compta",editable:!1,type:"select",selectOptionsKey:"TYPECOMPTA"},{title:"Commentaire",dataKey:"comment",editVisible:!1,type:"input"},{title:"Nombre de Références (écritures)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}]},PAR:{tableName:"t_partenaires",title:"Gestion Partenaires",component:"common",fields:[...IB,{title:"Texte abrégé",dataKey:"texte_court",type:"input"},{title:"Comptes",dataKey:"comptes",type:"input",editable:!1},{title:"Commentaire",dataKey:"comment",type:"input",editVisible:!1},{title:"Partenaire du groupe",dataKey:"intra_groupe",type:"checkbox"},{title:"Nombre de Références (écritures)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}]},AJU:{tableName:"t_ecritures_ajustement",title:"Ecritures d'ajustement",component:"AJU",addButton:!0,copyButton:!0,fields:[{title:"Texte",dataKey:"texte",type:"input"},{title:"Date saisie",dataKey:"date_ecriture",type:"input"},{title:"Mois comptable",dataKey:"mois_comptable",type:"input"},{title:"C/H",dataKey:"clinique_honoraire",type:"select",selectOptionsKey:"COMPTA_CH"},{title:"Journal",dataKey:"journal_code",type:"input"},{title:"Compte",dataKey:"compte_numero",type:"input"},{title:"Débit",dataKey:"montant_debit",type:"input"},{title:"Crédit",dataKey:"montant_credit",type:"input"}]},BUD:{tableName:"t_budget",title:"Gestion Budget",addButton:!0,component:"common",fields:[{title:"Code",dataKey:"code",type:"input"},{title:"Site",dataKey:"site_id",type:"select",selectOptionsKey:"SITE",hidden:!0},{title:"Texte",dataKey:"texte",type:"input"},{title:"Actif",dataKey:"is_actif",type:"checkbox"},{title:"Exercice",dataKey:"exercice_comptable",type:"select",selectOptionsKey:"YEARS"},{title:"Données à importer",dataKey:"import_data",type:"textArea",hidden:!0}]},DIV:{tableName:"t_divers",title:"Éléments divers",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Valeur",dataKey:"valeur",type:"input"},{title:"Valeur Date",dataKey:"valeur_date",type:"input",detail:"YYYY-MM-DD"},{title:"Description",dataKey:"description",type:"input",editable:!1},{title:"Info Module",dataKey:"show_info_module",type:"checkbox"}]}},rA=[{title:"Code",dataKey:"code",type:"input"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Nb Ref",dataKey:"nbref",type:"text"}],$vt={BIL:{tableName:"t_bilan",title:"Bilans",component:"common",fields:[...rA]},CST:{tableName:"t_constante",title:"Constantes",component:"constantes",fields:[...rA,{title:"Propriétés",dataKey:"property",type:"text"}]},DOC:{tableName:"t_document",title:"Documents",component:"common",fields:[...rA,{title:"Complément",dataKey:"cmp",type:"text"},{title:"Toujours document sortie ?",dataKey:"est_document_sortie",hidden:!0,type:"checkbox"},{title:"Règle document sortie",dataKey:"document_sortie_rule_1",type:"input",detail:"DD=DS:Date document = date sortie, DD=DS-x: Date document - date sortie <= x",hidden:!0}]},DOCPRE:{tableName:"t_document_precision",title:"Précision Documents",refUniquement:!1,addButton:!0,component:"common",fields:[{title:"Code",dataKey:"code",type:"input"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Priorité",dataKey:"priorite",type:"input",default:"5000"},{title:"Règle SQL",dataKey:"precision_rule_01",type:"input",hidden:!0},{title:"ou",dataKey:"precision_rule_02",type:"input",hidden:!0},{title:"ou",dataKey:"precision_rule_03",type:"input",hidden:!0},{title:"ou",dataKey:"precision_rule_04",type:"input",hidden:!0},{title:"ou",dataKey:"precision_rule_05",type:"input",hidden:!0}]},FRM:{tableName:"t_formulaire",title:"Formulaires",component:"common",fields:[...rA]},FRQ:{tableName:"t_formulaire_question",title:"Questions Formulaires",component:"onglet",selectFilterLabel:"Formulaire",selectFilterField:"formulaire_texte",tabs:[{key:"frq-definition",label:"Définition"},{key:"calcul",label:"Calcul"}],fields:[{title:"Code",dataKey:"code",type:"input",tab:"frq-definition"},{title:"Texte",dataKey:"texte",type:"input",tab:"frq-definition"},{title:"Texte Court",dataKey:"texte_court",type:"input"},{title:"Propriété",dataKey:"property",type:"input",editVisible:!1},{title:"Formulaire",dataKey:"formulaire_texte",type:"input",editable:!1},{title:"Nb Ref",dataKey:"nbref",type:"text"},{title:"Type",dataKey:"question_type",type:"input",disabled:!0,hidden:!0,editable:!1},{title:"Transformer en constante",dataKey:"constante_id",type:"select",tab:"frq-definition",hidden:!0,selectOptionsKey:"CST"},{title:"Type réponse",dataKey:"auto_reponse_code_type",type:"cti-constantes",hidden:!0,tab:"frq-definition"},{title:"Formule",dataKey:"calc_formula",type:"textArea",hidden:!0,editable:!1,tab:"calcul"}]},FRR:{tableName:"t_formulaire_question_reponse",title:"Réponses Formulaires",component:"common",selectFilterLabel:"Formulaire",selectFilterField:"formulaire_texte",fields:[{title:"Formulaire",dataKey:"formulaire_texte",type:"input",editable:!1},{title:"Question",dataKey:"formulaire_question_texte",type:"input",editable:!1},{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",hidden:!0},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Significatif",dataKey:"est_significatif",type:"checkbox"},{title:"Nb Ref",dataKey:"nbref",type:"input",editable:!1}]},INT:{tableName:"t_intervenant",title:"Intervenants",component:"common",refUniquement:!1,fields:[...rA,{title:"Spécialité",dataKey:"specialite_texte",type:"text",editVisible:!1},{title:"Spécialité",dataKey:"specialite_id",type:"select",hidden:!0,selectOptionsKey:"SPI"}],excludeFields:["nbref"]},IQU:{tableName:"t_indicateur_qualite",title:"Indicateurs qualité",component:"indicateur_qualite",fields:[...rA,{title:"Propriétés",dataKey:"properties",editVisible:!1},{title:"Note",dataKey:"note_with",type:"checkbox",hidden:!0}]},OBS:{tableName:"t_observation",title:"Observations",component:"common",fields:[...rA,{title:"Masquer le texte",dataKey:"masquer_texte",type:"checkbox"},{title:"Type éclatement",dataKey:"mode_eclatement",type:"select",selectOptionsKey:"DPI_SPE"}]},PRC:{tableName:"t_prescription",title:"Prescriptions",component:"common",fields:[...rA]},REL:{tableName:"t_releve",title:"Relevés",component:"common",fields:[...rA]},SPI:{tableName:"t_intervenant_specialite",title:"Specialités intervenant",component:"common",fields:[...rA]},KWO:{tableName:"t_mot_cle",title:"Mots clé",addButton:!0,execute:{label:"Executer les règles",action:"execute_rules"},refUniquement:!1,component:"keyword",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Règle",dataKey:"rule",type:"text"}]},DIV:{tableName:"t_divers",title:"Configuration",refUniquement:!1,component:"common",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Description",dataKey:"description",type:"input",editable:!1},{title:"Valeur",dataKey:"valeur",type:"input"},{title:"Valeur(2)",dataKey:"valeur2",type:"input"}]},EVT:{tableName:"t_evenement",title:"Evènements",refUniquement:!1,component:"onglet",tabs:[{key:"event-regle-cti",label:"Règle CTI"},{key:"event-regle-spe",label:"Règles Spécifiques"}],fields:[{title:"Code",dataKey:"code",type:"input",editable:!1,width:150},{title:"Texte",dataKey:"texte",type:"input"},{title:"CTI",dataKey:"is_cti",type:"checkbox",width:75},{title:"Indicateur",dataKey:"indicateur_texte",editVisible:!1},{title:"Règles CTI",tab:"event-regle-cti",type:"event-regle-cti",hidden:!0},{title:"Règles Spécifiques",tab:"event-regle-spe",type:"event-regle-spe",hidden:!0}]},CXP:{tableName:"t_expert_controle",title:"Controles expert",refUniquement:!1,addButton:!0,module:"dpi",execute:{label:"Executer les règles",action:"execute_rules"},component:"onglet",tabs:[{key:"cxp-regle-cti",label:"Règle CTI"},{key:"cxp-autre-cti",label:"Autres règles CTI"},{key:"cxp-ets",label:"Règles établissement"}],fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"CTI",dataKey:"is_cti",type:"checkbox"},{title:"Description",dataKey:"description",type:"textArea",hidden:!0},{title:"Gravité",dataKey:"gravite_id",type:"select",selectOptionsKey:"EXC_gravite_provider",hidden:!0},{title:"Alerte",dataKey:"alerte_id",type:"checkbox",hidden:!0},{title:"Actif",dataKey:"is_active",type:"checkbox",hidden:!0},{title:"A partir de",dataKey:"start_periode",type:"select",selectOptionsKey:"CXP_start",hidden:!0},{title:"Indicateur",dataKey:"indicateur_texte",type:"text",editVisible:!1},{title:"Complément",dataKey:"complement",type:"text",editVisible:!1},{title:"Date Exécution",dataKey:"last_date",type:"text",editVisible:!1},{title:"Statut",dataKey:"last_status",type:"text",editVisible:!1},{title:"Signalements",dataKey:"last_count",type:"text",editVisible:!1},{title:"cxp-regle-cti",tab:"cxp-regle-cti",type:"cxp-regle-cti",hidden:!0},{title:"cxp-autre-cti",tab:"cxp-autre-cti",type:"cxp-autre-cti",hidden:!0},{title:"cxp-ets",tab:"cxp-ets",type:"cxp-ets",hidden:!0}]}},ii=[{title:"Code",dataKey:"code",width:75,type:"input",editable:!1},{title:"Code original",dataKey:"code_original",width:75,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Complément",dataKey:"complement",type:"textArea",editable:!1},{title:"Références",dataKey:"nbref",type:"input",editable:!1}],emt={ART:{tableName:"t_articles",title:"Gestion des articles",component:"common",fields:[...ii,{title:"Géré en stock",dataKey:"gere_en_stock",hidden:!0,type:"checkbox"},{title:"Référence CACIC",dataKey:"cacic_id",hidden:!0,type:"select",selectOptionsKey:"RA1"},{title:"Référence CTI",dataKey:"rfcti_id",hidden:!0,type:"select",selectOptionsKey:"RA9"}]},TYA:{tableName:"t_types_articles",title:"Gestion des types articles",component:"common",fields:[...ii,{title:"Valeur par défaut selon",dataKey:"defaut_selon",hidden:!0,type:"select",selectOptionsKey:"TYA"},{title:"codes",dataKey:"defaut_selon_codes",hidden:!0,type:"input",dependsOn:"defaut_selon",disabledWhen:""}]},FAA:{tableName:"t_familles_articles",title:"Gestion des familles d'articles",component:"common",fields:[...ii]},SFA:{tableName:"t_sous_familles_articles",title:"Gestion sous famille d'articles",component:"common",fields:[...ii]},CAA:{tableName:"t_categories_articles",title:"Gestion des catégories d'articles",component:"common",fields:[...ii]},SCA:{tableName:"t_sous_categories_articles",title:"Gestion des sous catégories articles",component:"common",fields:[...ii]},UNI:{tableName:"t_unites",title:"Gestion des unités",component:"common",refUniquement:!1,fields:[...ii],excludeFields:["nbref"]},FOU:{tableName:"t_fournisseurs",title:"Gestion des fournisseurs",component:"common",fields:[...ii,{title:"Fusionner avec",dataKey:"fusionner_vers_fournisseur_id",hidden:!0,type:"select",selectOptionsKey:"FOU"},{title:"Référence CACIC",dataKey:"cacic_id",hidden:!0,type:"input"},{title:"Référence CTI",dataKey:"rfcti_id",hidden:!0,type:"input"}]},TYF:{tableName:"t_types_fournisseurs",title:"Gestion des types de fournisseurs",component:"common",fields:[...ii]},GES:{tableName:"t_gestionnaires",title:"Gestion des gestionnaires",refUniquement:!1,component:"common",fields:[...ii],excludeFields:["nbref"]},LIE:{tableName:"t_lieux",title:"Gestion des lieux",component:"common",refUniquement:!1,fields:[...ii],excludeFields:["nbref"]},UFO:{tableName:"t_unites_fonctionnelles",title:"Gestion des unités fonctionnelles",component:"common",refUniquement:!1,fields:[...ii],excludeFields:["nbref"]},TYM:{tableName:"t_types_mouvements",title:"Gestion des types de mouvements",component:"common",refUniquement:!1,fields:[...ii,{title:"Inverser signe",dataKey:"particularite_inverser_signe",hidden:!0,type:"select",selectOptionsKey:"TYM_SIGNE"},{title:"Forcer sens",dataKey:"sens_force",hidden:!0,type:"select",selectOptionsKey:"TYM_SENS"}],excludeFields:["nbref"]},RIN:{tableName:"t_reference_input",title:"Import référentiel",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",width:75,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Complément",dataKey:"complement",type:"textArea",editable:!1}]},RA1:{tableName:"t_article_reference_cacic",title:"Gestion référential article CACIC",component:"common",fields:[...ii],excludeFields:["texte_court","code_original"]},RF1:{tableName:"t_fournisseur_reference_cacic",title:"Gestion référentiel fournisseur CACIC",component:"common",fields:[...ii],excludeFields:["complement","texte_court","code_original"]},RA9:{tableName:"t_article_reference_cti",title:"Gestion référentiel article CTI",component:"transfert",fields:[...ii],transfertFields:[{title:"Nom",dataKey:"texte",width:400},{title:"LPP/UCD",dataKey:"lppucd",width:150},{title:"Code",dataKey:"code",width:150}],excludeFields:["complement","texte_court","code_original"],listName:"ART",listPath:"rfoids"},RF9:{tableName:"t_fournisseur_reference_cti",title:"Gestion du référentiel fournisseur CTI",component:"transfert",fields:[...ii],transfertFields:[{title:"Nom",dataKey:"texte",width:400},{title:"Code",dataKey:"code",width:150}],listName:"LFOU",listPath:"rfoids",excludeFields:["complement","texte_court","code_original"]},DIV:{tableName:"t_divers",title:"Eléments divers",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",width:75,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Complément",dataKey:"complement",type:"textArea"},{title:"Valeur",dataKey:"valeur",type:"input"}]},SIT:{tableName:"t_sites",title:"Gestion sites",refUniquement:!1,component:"common",fields:[...ii],excludeFields:["complement","nbref"]},TAR:{tableName:"t_type_article_cti_rule",title:"Gestion des règles types articles CTI",refUniquement:!1,addButton:!0,component:"rules",execute:{label:"Executer les règles",action:"execute_rules"},fields:[{title:"Priorite",dataKey:"priorite",type:"input",default:"5000"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Type CTI",dataKey:"type_article_cti_id",type:"select",selectOptionsKey:"TAA",hidden:!0},{title:"Type CTI",dataKey:"type_article_cti_texte",editVisible:!1},{title:"Règles",dataKey:"rule_texte",type:"input",editVisible:!1},{title:"Types article source",dataKey:"liste_type_article",type:"textArea",hidden:!0,tab:!0},{title:"Comptes",dataKey:"liste_compte",type:"textArea",hidden:!0,tab:!0},{title:"Familles",dataKey:"liste_famille",type:"textArea",hidden:!0,tab:!0},{title:"Sous-familles",dataKey:"liste_sous_famille",type:"textArea",hidden:!0,tab:!0},{title:"Catégories",dataKey:"liste_categorie",type:"textArea",hidden:!0,tab:!0},{title:"Sous-catégories",dataKey:"liste_sous_categorie",type:"textArea",hidden:!0,tab:!0},{title:"Articles",dataKey:"liste_article",type:"textArea",hidden:!0,tab:!0}],excludeFields:["complement","nbref"]}},tmt=[{title:"Code",dataKey:"code",width:100,type:"input"},{title:"Texte",dataKey:"texte",type:"input",width:500},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Code original",dataKey:"code_original",type:"input",width:150}],rmt={CCR:{tableName:"t_ccam_regroupements",title:"Interrogation",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Texte court",dataKey:"texte_court",type:"input",width:100,editable:!1}],excludeFields:["code_original"]},GMA:{tableName:"t_gestes_marqueurs",title:"Gestion gestes marqueurs",component:"common",selectButton:!0,refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Actes associés",dataKey:"actes_codes",type:"input",hidden:!0,editable:!1}],sqlChoices:"select oid, code, texte from pmsi.t_classes where texte ilike '%marqueur%' union select -1, 'code', 'Sélectionnez une valeur...' order by oid"},ACT:{tableName:"t_actes",title:"Interrogation Actes",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Classant",dataKey:"classant",type:"input",width:100,editable:!1},{title:"Regroupement",dataKey:"regroupement_1",type:"input",width:100,editable:!1},{title:"Regroupement",dataKey:"regroupement_4",type:"input",width:100,editable:!1,hidden:!0},{title:"Geste marqueur MSAP 2015",dataKey:"geste_marqueur",type:"input",width:120,editable:!1},{title:"ICR",dataKey:"icr_1",type:"input",width:80,editable:!1,dataGetter:({rowData:e})=>e.icr_1?e.icr_1.substring(1):""},{title:"ICR A",dataKey:"icr_4",type:"input",width:80,editable:!1,dataGetter:({rowData:e})=>e.icr_4?e.icr_4.substring(1):""},{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",width:100,editable:!1,editVisible:!1}]},DIA:{tableName:"t_diagnostics",title:"Interrogation Diagnostics",component:"common",fields:[...tmt,{title:"CMA 2012",dataKey:"sev1311d",type:"input",width:75,editVisible:!1},{title:"CMA 2013",dataKey:"sev1311e",type:"input",width:75,editVisible:!1},{title:"CMA 2014",dataKey:"sev1311f",type:"input",width:75,editVisible:!1},{title:"CMA 2015",dataKey:"sev1311g",type:"input",width:75,editVisible:!1},{title:"CMA 2016",dataKey:"sev2016",type:"input",width:75,editVisible:!1},{title:"CMA 2017",dataKey:"sev2017",type:"input",width:75,editVisible:!1},{title:"CMA 2018",dataKey:"sev2018",type:"input",width:75,editVisible:!1},{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",width:100,editVisible:!1}],excludeFields:["texte_court","code_original"]},DG5:{tableName:"t_etude_7",title:"Dégressivité tarifaire",component:"common",selectButton:!0,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Seuil déclanchement racine",dataKey:"seuil_degressivite",type:"input",pourcentage:!0,editable:!1,dataGetter:({rowData:e})=>e.seuil_degressivite&&`${e.seuil_degressivite}%`},{title:"Taux correction avant mars",dataKey:"taux_correction_avant_mars",type:"input",pourcentage:!0,editable:!0,dataGetter:({rowData:e})=>e.taux_correction_avant_mars&&`${e.taux_correction_avant_mars}%`},{title:"Taux correction après mars",dataKey:"taux_correction_apres_mars",type:"input",pourcentage:!0,editable:!0,dataGetter:({rowData:e})=>e.taux_correction_apres_mars&&`${e.taux_correction_apres_mars}%`}],sqlChoices:"select min(oid), annee::text, 'Seuils ' || annee from pmsi.t_etude_7 group by annee union select -1, 'code', 'Pas de sélection' order by 1"},ED1:{tableName:"t_etude_1",title:"Gestion couples GHM (analyse ambulatoire)",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"GHM1",dataKey:"ghm_1_code",width:80,editVisible:!1},{title:"GHM1",dataKey:"ghm_1_texte",type:"input",editable:!1,hidden:!0},{title:"GHM2",dataKey:"ghm_2_code",width:80,editVisible:!1},{title:"GHM2",dataKey:"ghm_2_texte",type:"input",editable:!1,hidden:!0},{title:"GHM3",dataKey:"ghm_3_code",width:80,editVisible:!1},{title:"GHM3",dataKey:"ghm_3_texte",type:"input",editable:!1,hidden:!0},{title:"Taux cible 2008",dataKey:"taux_cible_2008",width:90,type:"input"},{title:"Taux cible 2009",dataKey:"taux_cible_2009",width:90,type:"input"},{title:"Taux cible 2010",dataKey:"taux_cible_2010",width:90,type:"input"},{title:"Taux cible 2011",dataKey:"taux_cible_2011",width:90,type:"input"}],excludeFields:["texte_court","code_original"]},ED6:{tableName:"t_etude_6",title:"Cancérologie (activité soumise à seuil). Cahier des charges ",component:"common",selectButton:!0,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Cahier des charges",dataKey:"année",type:"input",editable:!1,hidden:!0,width:100},{title:"Seuil etablissement",dataKey:"seuil_ets",type:"input",editable:!0,width:100},{title:"Seuil ARS",dataKey:"seuil_ars",type:"input",editable:!0,width:100},{title:"Moyenne régionale",dataKey:"moy_region",type:"input",editable:!1,width:100},{title:"Moyenne nationale",dataKey:"moy_nat",type:"input",editable:!1,width:100}],sqlChoices:"select min(oid), annee::text, 'Cahier des charges ' || annee from pmsi.t_etude_6 group by annee union select -1, 'code', 'Pas de sélection' order by 1"},ED5:{tableName:"t_etude_5",title:"Gestes marqueurs",component:"common",selectButton:!0,refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Liste",dataKey:"liste",type:"input",editable:!1,hidden:!0,width:100},{title:"Taux cible etablissement",dataKey:"taux_cible_ets",type:"input",editable:!0,pourcentage:!0,dataGetter:({rowData:e})=>e.taux_cible_ets&&`${e.taux_cible_ets}%`,width:100},{title:"Taux cible ARS",dataKey:"taux_cible_ars",type:"input",editable:!0,pourcentage:!0,dataGetter:({rowData:e})=>e.taux_cible_ars&&`${e.taux_cible_ars}%`,width:100},{title:"Taux moyen régional",dataKey:"taux_moyen_regional",type:"input",editable:!1,pourcentage:!0,dataGetter:({rowData:e})=>e.taux_moyen_regional&&`${e.taux_moyen_regional}%`,width:100},{title:"Taux moyen national",dataKey:"taux_moyen_national",type:"input",editable:!1,pourcentage:!0,dataGetter:({rowData:e})=>e.taux_moyen_national&&`${e.taux_moyen_national}%`,width:100}],sqlChoices:"select sequence, code, texte from pmsi.t_classes where texte ilike '%marqueur%' union select -1, 'code', 'Pas de sélection' order by sequence"},EXC:{tableName:"t_expert_controle",title:"Gestion Controles Expert",component:"common",addButton:!0,copyButton:!0,sqlButton:!0,execute:{label:"Éxécuter les règles",action:"execute_rules"},preferences:{label:"Préférences"},tabs:[{key:"definition",label:"Définition"},{key:"description",label:"Description"},{key:"regle-1",label:"Règle 1"},{key:"regle-2",label:"Règle 2"},{key:"regle-3",label:"Règle 3"}],fields:[{title:"Code",dataKey:"code",type:"input",editable:!0},{title:"Contrôle CTI",dataKey:"is_cti",type:"checkbox",width:80,hidden:!0},{tab:"definition",title:"Texte",dataKey:"texte",type:"input"},{tab:"definition",title:"Texte affiché",dataKey:"texte_court",type:"input",hidden:!0},{title:"Gravité",dataKey:"gravite_texte",editVisible:!1,width:80},{tab:"definition",title:"Gravité",dataKey:"gravite_id",type:"select",selectOptionsKey:"EXC_gravite_provider",hidden:!0},{title:"Complément",dataKey:"complement",editVisible:!1,width:120},{tab:"definition",title:"DATIM",dataKey:"is_datim",type:"checkbox",hidden:!0},{tab:"definition",title:"Contrôle en masse",dataKey:"is_global",type:"checkbox",hidden:!0,editable:!1},{tab:"definition",title:"Alerte",dataKey:"is_alert",type:"checkbox",hidden:!0},{tab:"definition",title:"Masqué",dataKey:"is_hide",type:"checkbox",hidden:!0},{tab:"regle-1",title:"Sélection",dataKey:"sqlcmd_where1",type:"textArea",hidden:!0},{tab:"regle-1",title:"Justificatif",dataKey:"sqlcmd_justificatif1",type:"textArea",hidden:!0},{tab:"regle-2",title:"Sélection",dataKey:"sqlcmd_where2",type:"textArea",hidden:!0},{tab:"regle-2",title:"Justificatif",dataKey:"sqlcmd_justificatif2",type:"textArea",hidden:!0},{tab:"regle-3",title:"Sélection",dataKey:"sqlcmd_where3",type:"textArea",hidden:!0},{tab:"regle-3",title:"Justificatif",dataKey:"sqlcmd_justificatif3",type:"textArea",hidden:!0},{tab:"description",title:"Description",dataKey:"description",type:"text-editor",hidden:!0},{title:"Dernière exécution",dataKey:"last_execution_date",type:"input",editVisible:!1},{title:"Nombre références",dataKey:"nbref",type:"input",editVisible:!1},{title:"Dont actives",dataKey:"nbref0",type:"input",editVisible:!1}]},XDC:{tableName:"t_datim_ccaminfo",title:"Datim : CCAMINFO",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:400},{title:"Datim",dataKey:"datim",type:"input",editable:!1,width:300},{title:"Début",dataKey:"date_debut",editVisible:!1},{title:"Fin",dataKey:"date_fin",editVisible:!1},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},XDD:{tableName:"t_datim_diaginfo",title:"Datim : DIAGINFO",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:400},{title:"Datim",dataKey:"datim",type:"input",editable:!1,width:300},{title:"Début",dataKey:"date_debut",editVisible:!1},{title:"Fin",dataKey:"date_fin",editVisible:!1},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},XDG:{tableName:"t_datim_ghminfo",title:"Datim : GHMINFO",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:400},{title:"Datim",dataKey:"datim",type:"input",editable:!1,width:300},{title:"Début",dataKey:"date_debut",editVisible:!1},{title:"Fin",dataKey:"date_fin",editVisible:!1},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},ASO:{tableName:"t_mco",title:"Interrogation Codes ASO",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},GHV:{tableName:"t_severites_ghm",title:"Interrogation Codes sévérité GHM",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},GHM:{tableName:"t_ghm",title:"InterrogationGHM",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Aso",dataKey:"aso",type:"input",editable:!1,width:70},{title:"C.A.S",dataKey:"cas",type:"input",editable:!1,width:70},{title:"Pole OAP",dataKey:"pole_oap",type:"input",editable:!1},{title:"Ligne OAP",dataKey:"ligne_oap",type:"input",editable:!1,hidden:!0},{title:"Groupe d'activité",dataKey:"groupe_activite",type:"input",editable:!1,hidden:!0},{title:"Nombre réféfences",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1,width:120}]},DMS:{tableName:"t_ghm_dms",title:"Gestion DMS",component:"DMS",deleteButton:!0,fields:[{title:"Code",dataKey:"code",type:"input",width:200,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500}]},CMD:{tableName:"t_cmd",title:"Interrogation CMD",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},POA:{tableName:"t_poles_oap",title:"Interrogation Poles OAP",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},LOA:{tableName:"t_lignes_oap",title:"Interrogation Lignes OAP",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Pole OAP",dataKey:"pole_oap",type:"input",editable:!1,width:400},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},GAC:{tableName:"t_groupes_activite",title:"Interrogation Groupes d'activité",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},GHS:{tableName:"t_ghs",title:"Interrogation GHS",component:"onglet",datePicker:!0,selectTarif:!0,tabs:[{key:"tarifs_prive",label:"Tarifs Privé"},{key:"tarifs_public",label:"Tarifs Public"}],fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Borne basse",dataKey:"borne_basse",editable:!1,width:100},{title:"Borne haute",dataKey:"borne_haute",editable:!1,width:100},{title:"Dms nationale",dataKey:"dms_nationale",editable:!1,width:100},{title:"Tarif GHS",dataKey:"tarif_ghs",editable:!1,width:100},{title:"Forfait EXB",dataKey:"forfait_exb",editable:!1,width:100},{title:"Tarif EXB",dataKey:"tarif_exb",editable:!1,width:100},{title:"Tarif EXH",dataKey:"tarif_exh",editable:!1,width:100},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1,width:200},{type:"tarifs_public_ghs",tab:"tarifs_public",hidden:!0},{type:"tarifs_prive_ghs",tab:"tarifs_prive",hidden:!0}]},SGE:{tableName:"t_secteurs_geographiques",title:"Gestion secteurs géographiques",component:"transfert",copyButton:!0,fields:[{title:"Code",dataKey:"code",type:"input",width:100},{title:"Texte",dataKey:"texte",type:"input",width:500},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Nombre réféfences (Codes postaux)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1},{title:"Codes",dataKey:"codes",type:"transfert",hidden:!0}],transfertFields:[{title:"Codes postaux du secteur",dataKey:"texte"}],listName:"CPO",listPath:"codes"},DEP:{tableName:"t_departements",title:"Gestion départements",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100},{title:"Texte",dataKey:"texte",type:"input",width:500},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},CGP:{tableName:"t_codes_geographiques_pmsi",title:"Affichage Codes géographiques PMSI",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",width:500,editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0,editable:!1},{title:"Population",dataKey:"population",type:"input",hidden:!0,editable:!1},{title:"Codes postaux",dataKey:"codes",type:"input",editable:!1},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},CPO:{tableName:"t_codes_postaux",title:"Gestion Codes postaux",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Département",dataKey:"departement",editVisible:!1},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Département",dataKey:"departement_id",type:"select",selectOptionsKey:"CPO",hidden:!0},{title:"Codes géo PMSI",dataKey:"code_geo_pmsi",type:"input",editable:!1},{title:"Population",dataKey:"population",type:"input",editable:!1,hidden:!0,dataGetter:({rowData:e})=>e.population?e.population.substring(1):""},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},SPI:{tableName:"t_specialites_internes_medecin",title:"Gestion Spécialités internes des médecins",component:"common",fields:[{title:"Code",dataKey:"code",type:"input"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},MED:{tableName:"t_medecins",title:"Gestion Médecins",component:"common",addButton:!0,fields:[{title:"Code",dataKey:"code",type:"input",editable:!1,width:100},{title:"Nom",dataKey:"nom",type:"input"},{title:"Prénom",dataKey:"prenom",type:"input"},{title:"Numéro ADELI",dataKey:"no_adeli",type:"input",editVisible:!1},{title:"Identifiant annuaire",dataKey:"identifiant_annuaire",type:"input",hidden:!0},{title:"Medecin référence",dataKey:"medecin_reference",type:"input",editable:!1},{title:"Spécialité",dataKey:"specialite_id",type:"select",selectOptionsKey:"SPI"},{title:"Nombre référence RSS",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editVisible:!1},{title:"Nombre référence actes",dataKey:"nbref2",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editVisible:!1}],visible:!0},CMM:{tableName:"t_comites_medicaux",title:"Gestion comités médicaux",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1,width:100},{title:"Texte",dataKey:"texte",type:"input"},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},PRE:{tableName:"t_prestations",title:"Gestion prestations",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1,width:100},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},LPP:{tableName:"t_lpp",title:"Gestion LPP",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"En sus FG11 ?",dataKey:"code_fg11",type:"checkbox"},{title:"Nombre réféfences (LPP)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},UCD:{tableName:"t_ucd",title:"Gestion UCD",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Laboratoire",dataKey:"laboratoire_texte",type:"input"},{title:"Nombre réféfences",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},TAU:{tableName:"t_types_autorisations",title:"Interrogation types autorisations",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input",editable:!1,hidden:!0}]},UMD:{tableName:"t_unites_medicales",title:"Gestion unités médicales",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Autorisation",dataKey:"type_autorisation",type:"select",selectOptionsKey:"TAU"},{title:"Date d'effet",dataKey:"date_effet_autorisation",type:"input"},{title:"Nombre de lit",dataKey:"nb_lits",type:"input",dependsOn:"type_autorisation_code",disabledWhen:""},{title:"Mode d'hospitalisation",dataKey:"mode_hospitalisation",type:"select",selectOptionsKey:"UMD_mode_hospitalisation"},{title:"Type éclatement",dataKey:"type_eclatement",type:"select",selectOptionsKey:"UMD_type_eclatement",hidden:!0},{title:"Type séjour",dataKey:"type_sejour",type:"select",selectOptionsKey:"UMD_type_sejour",hidden:!0},{title:"Type Ventilation C.A.",dataKey:"type_ventilation_ca",type:"select",selectOptionsKey:"UMD_type_ventilation_ca",hidden:!0},{title:"UM expédition",dataKey:"um_expedition_id",type:"select",selectOptionsKey:"UM",detail:"Unité médicale sur laquelle est regroupé cette UM avant envoi ePM",hidden:!0},{title:"UM expédition",dataKey:"um_expedition_codetexte",type:"select",selectOptionsKey:"UM",editVisible:!1},{title:"Medecin par default",dataKey:"medecin_par_defaut_id",type:"select",selectOptionsKey:"UM_MED",hidden:!0}]},UFC:{tableName:"t_unites_fonctionnelles",title:"Gestion Unités fonctionnelles",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Nombre réféfences (actes)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},MEN:{tableName:"t_modes_entree",title:"Interrogation Modes entrée",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input"}]},MEP:{tableName:"t_provenances_entree",title:"Interrogation Provenances entrée",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input"}]},MSO:{tableName:"t_modes_sortie",title:"Interrogation Modes sortie",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input"}]},MSD:{tableName:"t_destinations_sortie",title:"Interrogation Destinations sortie",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input"}]},ETS:{tableName:"t_finess",title:"Gestion Finess",component:"finess",refUniquement:!1,lineBlocks:[{dateFieldKey:"date_debut_coefficient_mco",lines:[{key:"date_debut_coefficient_mco_",label:"Historique coefficients MCO",type:"date"},{key:"coefficient_mco_",label:"Coefficient MCO",type:"input"},{key:"coefficient_transition_",label:"- Transition",type:"input"},{key:"coefficient_ht_",label:"- Haute technicité",type:"input"},{key:"coefficient_geo_",label:"- Géographique",type:"input"},{key:"date_debut_coefficient_pacte_resp_",label:"Historique coefficients pacte responsabilité",type:"date"},{key:"coefficient_pacte_resp_",label:"Coefficients pacte responsabilité",type:"input"}],lengthFields:7}],fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Territoire de santé",dataKey:"tersante_id",type:"select",selectOptionsKey:"territoire_de_sante",hidden:!0},{dataKey:"date_debut_coefficient_mco_1",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_mco_2",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_mco_3",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_mco_4",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_mco_5",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_mco_6",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_mco_7",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_1",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_2",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_3",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_4",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_5",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_6",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_7",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0}]},DIV:{tableName:"t_divers",title:"Paramètres divers",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Valeur",dataKey:"valeur",type:"input"},{title:"Description",dataKey:"description",type:"input",editable:!1},{title:"Info module",dataKey:"show_info_module",type:"checkbox",width:80}]}},Ei=[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input",editable:!1,hidden:!0}],nmt={SPI:{tableName:"t_specialites_internes_medecin",title:"Gestion Spécialités internes des médecins",component:"common",deleteButton:!0,copyButton:!0,fields:[{title:"Code",dataKey:"code",type:"input",width:100},{title:"Texte",dataKey:"texte",type:"input"},{title:"Spécialités (défaut)",dataKey:"specialite_defaut_codes",type:"input",editable:!1,editVisible:!1},{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1},{title:"Spécialité officielles par défault",dataKey:"code",type:"multi-input",hidden:!0,children:[{title:"Code 1",dataKey:"specialite_defaut_code_1",type:"input"},{title:"Code 2",dataKey:"specialite_defaut_code_2",type:"input"},{title:"Code 3",dataKey:"specialite_defaut_code_3",type:"input"},{title:"Code 4",dataKey:"specialite_defaut_code_4",type:"input"}]}],excludeFields:["texte_court"]},SPE:{tableName:"t_specialites_medecin",title:"Interrogation Spécialités des médecins",component:"common",fields:[...Ei,{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},MED:{tableName:"t_medecins",title:"Gestion Médecins",component:"MEDA",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1,width:100},{title:"Nom",dataKey:"nom",type:"input"},{title:"Prénom",dataKey:"prenom",type:"input"},{title:"Numéro ADELI",dataKey:"no_adeli",type:"input",editVisible:!1},{title:"Spécialité officielle",dataKey:"specialite",type:"input",editable:!1},{title:"Spécialité interne",dataKey:"specialite_interne",editVisible:!1},{title:"Medecin référence",dataKey:"medecin_reference",type:"input",editable:!1},{title:"Spécialité interne",dataKey:"specialite_id",type:"select",selectOptionsKey:"SPI",hidden:!0},{title:"Nombre référence RSS",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editVisible:!1},{title:"Nombre référence actes",dataKey:"nbref2",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editVisible:!1}],visible:!0},TAU:{tableName:"t_type_autorisation_unite_medicale",title:"Interrogation types autorisations",component:"common",fields:[...Ei]},UMD:{tableName:"t_unites_medicales",title:"Gestion Unites médicales",module:"iCTI_pmsissr",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Autorisation",dataKey:"type_autorisation",editVisible:!1},{title:"Autorisation",editTitle:"Type autorisation",dataKey:"type_autorisation_code",type:"select",selectOptionsKey:"TAU",hidden:!0},{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},MEN:{tableName:"t_modes_entree",title:"Interrogation Modes entrée",component:"common",fields:[...Ei],refUniquement:!1},MEP:{tableName:"t_provenances_entree",title:"Interrogation Provenances entrée",component:"common",fields:[...Ei],refUniquement:!1},MSO:{tableName:"t_modes_sortie",title:"Interrogation Modes sortie",component:"common",fields:[...Ei],excludeFields:[],refUniquement:!1},MSD:{tableName:"t_destinations_sortie",title:"Interrogation Destinations sortie",component:"common",fields:[...Ei],refUniquement:!1},GME:{tableName:"t_gme",title:"Interrogation GME",component:"common",fields:[...Ei,{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},CMC:{tableName:"t_cmc",title:"Interrogation CMC",component:"common",fields:[...Ei,{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},GMD:{tableName:"t_gmd",title:"Interrogation GMD",component:"common",fields:[...Ei,{title:"CMC",dataKey:"cmc_code",type:"input",editable:!1},{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},CCR:{tableName:"t_ccam_regroupements",title:"Interrogation Regroupements CCAM",component:"common",fields:[...Ei],refUniquement:!1},ACT:{tableName:"t_actes",title:"Interrogation Actes",component:"common",fields:[...Ei,{title:"Classant",dataKey:"classant",type:"input",editable:!1,width:200},{title:"Geste marqueur",dataKey:"geste_marqueur",type:"input",editable:!1},{title:"Regroupement",dataKey:"regroupement_1",type:"multi-input",width:200,children:[{dataKey:"regroupement_1",type:"input",editable:!1},{dataKey:"regroupement_4",type:"input",editable:!1}]},{title:"Regroupement",dataKey:"regroupement_4",editVisible:!1,width:200},{title:"ICR",dataKey:"icr_1",width:100,type:"multi-input",children:[{dataKey:"icr_1",type:"input",editable:!1},{dataKey:"icr_4",type:"input",editable:!1}],dataGetter:({rowData:e})=>e.icr_1?e.icr_1.substring(1):""},{title:"ICR A",dataKey:"icr_4",width:100,dataGetter:({rowData:e})=>e.icr_4?e.icr_4.substring(1):"",type:"input",editVisible:!1},{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},IAR:{tableName:"t_activite_cdarr",title:"Interrogation Activités CdARR",component:"common",fields:[...Ei,{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}],refUniquement:!1},AAR:{tableName:"t_acte_cdarr",title:"Interrogation Actes CdARR",component:"common",fields:[...Ei,{title:"Activité CdARR",dataKey:"activite_cdarr_texte",type:"input",editVisible:!1},{title:"CMC",dataKey:"activite_cdarr_texte",type:"input",hidden:!0,editable:!1},{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}],excludeFields:["texte_court"],refUniquement:!1},ASR:{tableName:"t_acte_csarr",title:"Interrogation Actes CSARR",component:"common",fields:[...Ei,{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}],refUniquement:!0,excludeFields:["texte_court"]},DIA:{tableName:"t_diagnostics",title:"Interrogation Diagnostics",component:"common",fields:[...Ei,{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},PRE:{tableName:"t_prestations",title:"Gestion Prestations",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}]},REG:{tableName:"t_regions",title:"Gestion Régions administratives",component:"common",fields:[...Ei,{title:"Départements",dataKey:"departements_texte",type:"input",editable:!1},{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}]},DEP:{tableName:"t_departements",title:"Gestion Départements",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}],refUniquement:!1},CGP:{tableName:"t_codes_geographiques_pmsi",title:"Affichage Codes géographiques PMSI",component:"common",fields:[...Ei,{title:"Codes postaux",dataKey:"codes",type:"input",editable:!1},{title:"Population",dataKey:"population",type:"input",editable:!1,hidden:!0},{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}]},CPO:{tableName:"t_codes_postaux",title:"Gestion Codes postaux",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Département",dataKey:"departement",editVisible:!1},{title:"Département",dataKey:"departement_id",type:"select",selectOptionsKey:"DEP",hidden:!0},{title:"Codes géo PMSI",dataKey:"code_geo_pmsi",type:"input",editable:!1},{title:"Population",dataKey:"population",type:"input",editable:!1,hidden:!0,dataGetter:({rowData:e})=>e.population?e.population.substring(1):""},{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}]},EXC:{tableName:"t_expert_controle",title:"Gestion Controles Expert",addButton:!0,copyButton:!0,sqlButton:!0,execute:{label:"Éxécuter les règles",action:"execute_rules"},component:"onglet",preferences:{label:"Préférences"},tabs:[{key:"definition",label:"Définition"},{key:"description",label:"Description"},{key:"regle-1",label:"Règle 1"},{key:"regle-2",label:"Règle 2"},{key:"regle-3",label:"Règle 3"}],fields:[{title:"Code",dataKey:"code",type:"input"},{tab:"definition",title:"Texte",dataKey:"texte",type:"input"},{title:"Contrôle CTI",dataKey:"is_cti",type:"checkbox",width:80,hidden:!0},{title:"État",dataKey:"is_active_texte",editVisible:!1,width:80},{title:"Complément",dataKey:"complement",editVisible:!1,width:120},{title:"Gravité",dataKey:"gravite_texte",editVisible:!1,width:80},{title:"Contrôle activé",dataKey:"is_active",type:"checkbox",tab:"definition",hidden:!0},{tab:"definition",title:"Texte affiché",dataKey:"texte_court",type:"input",hidden:!0},{title:"Dossier ciblés",dataKey:"etat_cible_texte",editVisible:!1,width:120},{title:"Date dernière exécution",dataKey:"last_execution_timestamp",editVisible:!1,width:120},{title:"Etat dernière exécution",dataKey:"last_execution_ok",editVisible:!1,width:120},{title:"Nombre références",dataKey:"nbref",editVisible:!1},{tab:"definition",title:"Dossier ciblés",dataKey:"etat_cible",type:"select",selectOptionsKey:"EXC_cible_provider",hidden:!0},{tab:"definition",title:"Gravité",dataKey:"gravite",type:"select",selectOptionsKey:"EXC_gravite_provider",hidden:!0},{tab:"definition",title:"Alerte",dataKey:"is_alert",type:"checkbox",hidden:!0},{tab:"regle-1",title:"Données",dataKey:"table1",type:"select",selectOptionsKey:"EXC_table_provider_SSR",hidden:!0},{tab:"regle-1",title:"Sélection",dataKey:"sqlcmd_where1",type:"textArea",hidden:!0},{tab:"regle-1",title:"Justificatif",dataKey:"sqlcmd_justificatif1",type:"textArea",hidden:!0},{tab:"regle-2",title:"Données",dataKey:"table2",type:"select",selectOptionsKey:"EXC_table_provider",hidden:!0},{tab:"regle-2",title:"Sélection",dataKey:"sqlcmd_where2",type:"textArea",hidden:!0},{tab:"regle-2",title:"Justificatif",dataKey:"sqlcmd_justificatif2",type:"textArea",hidden:!0},{tab:"regle-3",title:"Données",dataKey:"table3",type:"select",selectOptionsKey:"EXC_table_provider",hidden:!0},{tab:"regle-3",title:"Sélection",dataKey:"sqlcmd_where3",type:"textArea",hidden:!0},{tab:"regle-3",title:"Justificatif",dataKey:"sqlcmd_justificatif3",type:"textArea",hidden:!0},{tab:"description",title:"Description",dataKey:"description",type:"text-editor",hidden:!0}]},FIN:{tableName:"t_finess",title:"Gestion Finess",component:"finess",lineBlocks:[{dateFieldKey:"FIN_date_debut_coefficient_ssr",lines:[{key:"FIN_date_debut_coefficient_ssr_",label:"Historique coefficients SSR",type:"date"},{key:"FIN_fraction_dma_",label:"Fraction DMA",type:"input"},{key:"FIN_coefficient_transition_",label:"- Transition",type:"input"},{key:"FIN_coefficient_spe_",label:"- Spécialité",type:"input"},{key:"FIN_coefficient_geo_",label:"- Géographique",type:"input"},{key:"FIN_coefficient_hono_",label:"- Honoraire",type:"input"},{key:"FIN_coefficient_prud_",label:"- Prudentiel",type:"input"}],lengthFields:7}],fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,editVisible:!1},{title:"Valeur point IVA",dataKey:"iva",type:"input",editable:!1,editVisible:!1},{title:"Valeur taux régional IVA",dataKey:"iva_reg",type:"input",editable:!1},{dataKey:"FIN_date_debut_coefficient_ssr_1",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"FIN_date_debut_coefficient_ssr_2",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"FIN_date_debut_coefficient_ssr_3",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"FIN_date_debut_coefficient_ssr_4",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"FIN_date_debut_coefficient_ssr_5",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"FIN_date_debut_coefficient_ssr_6",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"FIN_date_debut_coefficient_ssr_7",title:"Historique coefficients MCO",type:"date",hidden:!0}]},DIV:{tableName:"t_divers",title:"Paramètres divers",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Valeur",dataKey:"DIV1",type:"input"},{title:"Valeur date (format YYYY-MM-DD)",dataKey:"DIV2",type:"input"},{title:"Description",dataKey:"DIV3",type:"input",hidden:!0},{title:"Infomodule",dataKey:"DIV4",type:"input",hidden:!0}],refUniquement:!1}},ca=[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Code original",dataKey:"code_original",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"}],amt={DIV:{tableName:"t_divers",title:"Éléments divers",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Valeur",dataKey:"valeur",type:"input"},{title:"Valeur date",dataKey:"valeur_date",type:"input"},{title:"Description",dataKey:"description",type:"input",editVisible:!1},{title:"Info module",dataKey:"show_info_module",type:"checkbox",width:80}]},ENT:{tableName:"t_entreprises",title:"Gestion entreprises",component:"common",refUniquement:!1,fields:[...ca,{title:"Code planning",dataKey:"code_ent_planning",type:"input"}]},ETA:{tableName:"t_etablissements",title:"Gestion Etablissements",component:"common",refUniquement:!1,fields:[...ca,{title:"Base calcul ETP",dataKey:"base_calcul_etp",type:"input"},{title:"Code planning",dataKey:"code_ets_planning",type:"input"},{title:"Etablissement",dataKey:"finess_id",type:"select",selectOptionsKey:"FINESS",hidden:!0}]},NAT:{tableName:"t_nationalites",title:"Gestion nationalités",refUniquement:!1,component:"common",fields:[...ca]},SIT:{tableName:"t_situations_famille",title:"Gestion situations de famille",refUniquement:!1,component:"common",fields:[...ca]},CSP:{tableName:"t_categories_socio_professionnelle",title:"Gestion catégories socio-profesionnelle",component:"common",refUniquement:!1,fields:[...ca]},CAE:{tableName:"t_cadre_emploi",title:"Gestion codes emploi",component:"common",refUniquement:!1,fields:[...ca]},CEM:{tableName:"t_codes_emploi",title:"Gestion codes emploi",refUniquement:!1,component:"common",fields:[...ca]},GRI:{tableName:"t_grilles",title:"Gestion grilles",component:"common",refUniquement:!1,fields:[...ca]},GGR:{tableName:"t_grilles_groupes",title:"Gestion groupes de grilles",refUniquement:!1,component:"common",fields:[...ca]},MDC:{tableName:"t_motifs_debut_contrat",title:"Gestion motifs début de contrat",refUniquement:!1,component:"common",fields:[...ca]},MFC:{tableName:"t_motifs_fin_contrat",title:"Gestion motifs fin de contrat",refUniquement:!1,component:"common",fields:[...ca]},QUA:{tableName:"t_qualifications",title:"Gestion qualifications",refUniquement:!1,component:"common",fields:[...ca]},SAN:{tableName:"t_sections_analytiques",title:"Gestion sections analytiques",refUniquement:!1,component:"common",fields:[...ca]},SAP:{tableName:"t_sections_analytiques_paie",title:"Gestion sections analytiques paie",refUniquement:!1,component:"common",fields:[...ca]},SER:{tableName:"t_services",title:"Gestion services",refUniquement:!1,component:"common",fields:[...ca]},SOC:{tableName:"t_societes_interim",title:"Gestion sociétés intérimaires",refUniquement:!1,component:"common",fields:[...ca]},SPE:{tableName:"t_specialites",title:"Gestion spécialités",refUniquement:!1,component:"common",fields:[...ca]},STA:{tableName:"t_statuts",title:"Gestion statuts",refUniquement:!1,component:"common",fields:[...ca]},TCO:{tableName:"t_types_contrat",title:"Gestion types contrat",component:"common",refUniquement:!1,fields:[...ca]},THO:{tableName:"t_types_horaire",title:"Gestion Types d'horaire",component:"common",refUniquement:!1,fields:[...ca]},TTT:{tableName:"t_types_temps_travail",title:"Gestion types temps de travail",component:"common",refUniquement:!1,fields:[...ca]},MAR:{tableName:"t_motifs_arret",title:"Gestion motifs d'arrêts de travail",component:"common",refUniquement:!1,fields:[...ca]},DPR:{tableName:"t_data_profile",title:"Gestion profils de données",component:"onglet",refUniquement:!1,addButton:!0,tabs:[{key:"etablissements",label:"Etablissements"},{key:"service",label:"Service"},{key:"statuts",label:"Status"}],fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Règles",dataKey:"regles",type:"input",width:400,editVisible:!1},{title:"Inclus",tab:"etablissements",dataKey:"etablissement_inclus",type:"input",hidden:!0},{title:"Exclus",tab:"etablissements",dataKey:"etablissement_exclus",type:"input",hidden:!0},{title:"Inclus",tab:"service",dataKey:"service_inclus",type:"input",hidden:!0},{title:"Exclus",tab:"service",dataKey:"service_exclus",type:"input",hidden:!0},{title:"Inclus",tab:"statuts",dataKey:"statut_inclus",type:"input",hidden:!0},{title:"Exclus",tab:"statuts",dataKey:"statut_exclus",type:"input",hidden:!0}]},RUB:{tableName:"t_rubriques",title:"Gestion rubriques",component:"rubrique",refUniquement:!1,fields:{0:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Code original",dataKey:"code_original",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Proratiser la conversion j->h selon le temps de travail",dataKey:"proratiser_conversion",type:"checkbox",hidden:!0},{title:"Cumul",dataKey:"p_cumul",type:"checkbox",hidden:!0},{title:"Détail",dataKey:"p_detail",type:"checkbox",hidden:!0},{title:"Modifié par l'utilisateur",dataKey:"user_modified",type:"checkbox",hidden:!0},{title:"Code calcul",dataKey:"code_calcul",type:"select",selectOptionsKey:"calculCodeList",width:80},{title:"Coefficient",dataKey:"coefficient",type:"input",width:100},{title:"Coefficient base",dataKey:"coefficient_base",type:"input",width:100},{title:"Coefficient nombre",dataKey:"coefficient_nombre",type:"input",width:10},{title:"Coefficient taux salarial",dataKey:"coefficient_txs",type:"input",hidden:!0},{title:"Coefficient taux patronal",dataKey:"coefficient_txp",type:"input",hidden:!0}],1:[{title:"Code",dataKey:"code",type:"input",editable:!1,resizable:!1,parentKey:"placeHolder",width:80},{title:"Code original",dataKey:"code_original",type:"input",editable:!1,hidden:!0},{title:"Texte",dataKey:"texte",type:"input",resizable:!1,parentKey:"placeHolder",width:200,dataGetter:({rowData:e})=>v.jsx(Zn,{placement:"topLeft",title:e.texte,children:e.texte})},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Proratiser la conversion j->h selon le temps de travail",dataKey:"proratiser_conversion",type:"checkbox",hidden:!0},{title:"Cumul",dataKey:"p_cumul",type:"checkbox",hidden:!0},{title:"Détail",dataKey:"p_detail",type:"checkbox",hidden:!0},{title:"Modifié par l'utilisateur",dataKey:"user_modified",type:"checkbox",hidden:!0},{title:"Global",dataKey:"global",resizable:!1,width:0,children:[{title:"M",titleEdit:"Modifié par l'utilisateur",dataKey:"user_modified",key:"user_modified",type:"checkbox",resizable:!1,parentKey:"global",width:50,align:"center"},{title:"C",titleEdit:"Cumul",dataKey:"p_cumul",key:"p_cumul",type:"checkbox",resizable:!1,parentKey:"global",width:50,align:"center"},{title:"D",titleEdit:"Détail",dataKey:"p_detail",key:"p_detail",type:"checkbox",resizable:!1,parentKey:"global",width:50,align:"center"}]},{title:"Nombre",dataKey:"p_nombre",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Base",dataKey:"p_base",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Heure Contrat.",dataKey:"p_heures_contrat",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Heure Payées.",dataKey:"p_heures_payees",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Heure travaillées",dataKey:"p_heures_travaillees",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Masse salariale",dataKey:"p_masse_salariale",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Brut",dataKey:"p_brut",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Avantages Nature",dataKey:"p_avantage_nature",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Frais impossables",dataKey:"p_frais_imposables",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Cotisations salariés",dataKey:"p_cotisation_salarie",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Cotisations patronales",dataKey:"p_cotisation_patronale",resizable:!1,width:0,isSC:!0,align:"center"},{title:"OD/Net salarié",dataKey:"p_od_net_salarie",resizable:!1,width:0,isSC:!0,align:"center"},{title:"OD/Net patronale",dataKey:"p_od_net_patronale",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Net imposable",dataKey:"p_net_imposable",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Net à payer",dataKey:"p_net_a_payer",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Nombre provisions",dataKey:"p_nombre_provisions",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Montant provisions",dataKey:"p_montant_provisions",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Masse salariale avec provisions",dataKey:"p_masse_salariale_provisionnee",resizable:!1,width:0,isSC:!0,align:"center"}]}},ORG:{tableName:"t_organismes_cotisation",title:"Gestion organisme de cotisation",component:"common",refUniquement:!1,fields:[...ca]},PSE:{tableName:"t_planning_service",title:"Gestion services planning",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Code original",dataKey:"code_original",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Service (code paie) associé",dataKey:"service_paie_associe_texte"},{title:"Service (code paie) associé",dataKey:"service_id",type:"select",selectOptionsKey:"SER",hidden:!0}]},PQU:{tableName:"t_planning_qualification",title:"Gestion qualifications planning",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Code original",dataKey:"code_original",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Qualification (code paie) associé",dataKey:"qualification_paie_associe_texte",editVisible:!1},{title:"Qualification (code paie) associé",dataKey:"qualification_id",type:"select",selectOptionsKey:"QUA",hidden:!0}]},PAB:{tableName:"t_planning_type_absence",title:"Gestion type absence planning",component:"common",refUniquement:!1,fields:[...ca],excludeFields:["texte_court"]},CXP:{tableName:"t_expert_controle",title:"Controles expert",refUniquement:!1,addButton:!0,module:"rh",execute:{label:"Executer les règles",action:"execute_rules"},component:"onglet",tabs:[{key:"cxp-regle-cti",label:"Règle CTI"},{key:"cxp-autre-cti",label:"Autres règles CTI"},{key:"cxp-ets",label:"Règles établissement"}],fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"CTI",dataKey:"is_cti",type:"checkbox"},{title:"Description",dataKey:"description",type:"textArea",hidden:!0},{title:"Gravité",dataKey:"gravite_id",type:"select",selectOptionsKey:"EXC_gravite_provider",hidden:!0},{title:"Alerte",dataKey:"alerte_id",type:"checkbox",hidden:!0},{title:"Actif",dataKey:"is_active",type:"checkbox",hidden:!0},{title:"A partir de",dataKey:"start_periode",type:"select",selectOptionsKey:"CXP_start",hidden:!0},{title:"Indicateur",dataKey:"indicateur_texte",type:"text",editVisible:!1},{title:"Complément",dataKey:"complement",type:"text",editVisible:!1},{title:"Date Exécution",dataKey:"last_date",type:"text",editVisible:!1},{title:"Statut",dataKey:"last_status",type:"text",editVisible:!1},{title:"Signalements",dataKey:"last_count",type:"text",editVisible:!1},{title:"cxp-regle-cti",tab:"cxp-regle-cti",type:"cxp-regle-cti",hidden:!0},{title:"cxp-autre-cti",tab:"cxp-autre-cti",type:"cxp-autre-cti",hidden:!0},{title:"cxp-ets",tab:"cxp-ets",type:"cxp-ets",hidden:!0}]}},Vd=[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"}],imt={BOR:{tableName:"t_sae_bordereau",title:"Bordereaux",refUniquement:!1,component:"common",fields:[...Vd,{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Masqué",dataKey:"est_masque",type:"checkbox",dataGetter:({rowData:e})=>e.est_masque?"Oui":"Non"}]},CHP:{tableName:"t_sae_chapitre",title:"Chapitres (lignes)",refUniquement:!1,component:"chapter",fields:[...Vd,{title:"Bordereau",dataKey:"bordereau_texte",type:"input",editable:!1}]},IND:{tableName:"t_sae_indicateur",title:"Indicateurs",refUniquement:!1,component:"common",fields:[...Vd,{title:"Source",dataKey:"source",type:"input",editable:!1},{title:"Bordereau",dataKey:"source",type:"input"},{title:"Chapitre (ligne)",dataKey:"chapitre",type:"input"},{title:"Format",dataKey:"format",type:"input"}]},NPR:{tableName:"t_sae_classification_personnel",title:"Classification personnel",refUniquement:!1,component:"common",fields:[...Vd,{title:"Arborescence",dataKey:"arborescence",type:"input",editable:!1}]},MDX:{tableName:"t_sae_medecin_liberal",title:"Médecins (activité)",refUniquement:!1,component:"common",fields:[...Vd,{title:"Genre",dataKey:"sexe",type:"input"},{title:"Spécialité",dataKey:"specialite_texte",type:"input"},{title:"Type",dataKey:"type",type:"input"},{title:"Discipline",dataKey:"discipline",type:"input"},{title:"Service",dataKey:"service",type:"input"},{title:"Filière",dataKey:"filiere",type:"input"},{title:"Classification",dataKey:"classification",type:"input"},{title:"Présent 31/12",dataKey:"present_3112",type:"input"},{title:"Jours année",dataKey:"jours_travailles_annee",type:"input"},{title:"Jours Décembre",dataKey:"jours_travailles_decembre",type:"input"},{title:"Temps travail",dataKey:"type_temps_travail",type:"input"}]},CNT:{tableName:"t_sae_contrat",title:"Salariés / Contrats",refUniquement:!1,component:"common",fields:[...Vd,{title:"Matricule",dataKey:"salarie_code",type:"input"},{title:"Nom",dataKey:"texte",type:"input"},{title:"Contrat",dataKey:"contrat_code",type:"input"},{title:"Genre",dataKey:"sexe",type:"input"},{title:"Type",dataKey:"type_contrat_code",type:"input"},{title:"Qualification",dataKey:"qualification",type:"input"},{title:"Discipline",dataKey:"discipline",type:"input"},{title:"Service",dataKey:"service",type:"input"},{title:"Filière",dataKey:"filiere",type:"input"},{title:"Classification",dataKey:"classification",type:"input"},{title:"Temps travail",dataKey:"type_temps_travail",type:"input"},{title:"Présent 31/12",dataKey:"effectif",type:"input"},{title:"ETP",dataKey:"etp",type:"etp_paye_prorate"}]},DIV:{tableName:"t_divers",title:"Options",refUniquement:!1,component:"common",fields:[...Vd,{title:"Valeur",dataKey:"valeur",type:"input"},{title:"Description",dataKey:"description",type:"input",editable:!1}]}},Is=[{title:"Code",dataKey:"code",width:100,type:"input"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Code original",dataKey:"code_original",type:"input",editable:!1,width:150}],omt={SER:{tableName:"t_services_facturation",title:"Gestion Services facturation",component:"onglet",refUniquement:!1,saveWithoutCalc:!0,addSearchFields:["mtdmt"],tabs:[{key:"definition",label:"Définition"},{key:"places",label:"Places"},{key:"options-1",label:"Options de génération"},{key:"options-2",label:"Options de génération (suite)"},{key:"unite-medicale",label:"Unité médicale associée (SHS)"}],fields:[...Is,{title:"Lits",dataKey:"nb_lits",type:"input",width:80,tab:"definition"},{title:"C.P.",dataKey:"nb_cp",type:"input",width:80,tab:"definition"},{title:"Finess",dataKey:"finess",type:"input",tab:"definition",editVisible:!1},{title:"Mode de traitement",dataKey:"mode_traitement_id",type:"select",selectOptionsKey:"MTR",tab:"options-1",hidden:!0},{title:"DMT",dataKey:"dmt_id",type:"select",selectOptionsKey:"DMT",tab:"options-1",width:80,hidden:!0},{title:"DMT",dataKey:"mtdmt",editVisible:!1},{title:"Particularités",dataKey:"comment",type:"input",editVisible:!1},{title:"Type PMSI",dataKey:"type_t2a",type:"select",selectOptionsKey:"SER_type_t2a_provider",tab:"definition",hidden:!0},{title:"FINESS",dataKey:"finess_id",type:"select",selectOptionsKey:"FINESS",tab:"definition",hidden:!0},{title:"Budget global",dataKey:"est_budget_global",type:"checkbox",tab:"definition",hidden:!0},{title:"Histos",type:"histos",tab:"places",hidden:!0},{title:"Type séjour",dataKey:"type_sejour",type:"select",selectOptionsKey:"SER_TYPE_SEJOUR_PROVIDER",tab:"options-1",hidden:!0},{title:"Sans mouvement",dataKey:"est_sans_mouvement",type:"checkbox",tab:"options-1",hidden:!0},{title:"Calcul journées",dataKey:"mode_calcul_journees",type:"select",selectOptionsKey:"OPTADM_DAYOUT_PROVIDER",tab:"options-1",hidden:!0},{title:"Étage par défault",dataKey:"etage_par_defaut_id",type:"select",selectOptionsKey:"ETAGE",tab:"options-1",hidden:!0},{title:"Étage forcé",dataKey:"etage_force_id",type:"select",selectOptionsKey:"ETAGE",tab:"options-1",hidden:!0},{title:"Médecins par défault",dataKey:"medecin_par_defaut_id",type:"select",selectOptionsKey:"MDA",tab:"options-1",hidden:!0},{title:"Médecin forcé",dataKey:"medecin_force_id",type:"select",selectOptionsKey:"MDA",tab:"options-1",hidden:!0},{title:"Facturation",dataKey:"est_sans_facturation",type:"select",selectOptionsKey:"SER_est_sans_facturation_provider",tab:"options-1",hidden:!0},{title:"Facturation intermédiaire",dataKey:"avec_facturation_intermediaire",type:"checkbox",tab:"options-1",hidden:!0},{title:"Mouvement / jours fermés",dataKey:"option_jour_ferme",type:"checkbox",detail:"Si coché : suppression des mouvements les jours de fermeture du service.",tab:"options-2",hidden:!0},{title:"Prestations présence",dataKey:"prestations_presence",type:"input",detail:"Codes prestations identifiant présence en HDJ",tab:"options-2",hidden:!0},{title:"Particularité en cours",dataKey:"particularites_encours",type:"input",detail:"IVG, MAT",tab:"options-2",hidden:!0},{title:"Séjours sans actes fictifs",dataKey:"sej_sans_acte_fictif",type:"checkbox",tab:"options-2",hidden:!0},{title:"Activité par défaut",dataKey:"activite_par_defaut_id",type:"select",selectOptionsKey:"ACTIVITE",tab:"options-2",hidden:!0},{title:"Activité forcée",dataKey:"activite_force_id",type:"select",selectOptionsKey:"ACTIVITE",tab:"options-2",hidden:!0},{title:"Unité par default",dataKey:"unite_medicale_default_id",type:"select",selectOptionsKey:"UMD",tab:"unite-medicale",hidden:!0},{title:"Exceptions médicale",dataKey:"unite_medicale_except1_id",type:"select",selectOptionsKey:"UMD",tab:"unite-medicale",hidden:!0},{title:"Exceptions étage",dataKey:"unite_medicale_except1_etage_id",type:"select",selectOptionsKey:"UMX",tab:"unite-medicale",hidden:!0},{title:"Exceptions activités",dataKey:"unite_medicale_except1_activite_id",type:"select",selectOptionsKey:"UMX",tab:"unite-medicale",hidden:!0}]},ACF:{tableName:"t_activites",title:"Gestion activtés facturation",component:"common",refUniquement:!1,fields:[...Is,{title:"Étage par défault",dataKey:"etage_par_defaut_id",type:"select",selectOptionsKey:"ETAGE",hidden:!0},{title:"Étage par forcé",dataKey:"etage_force_id",type:"select",selectOptionsKey:"ETAGE",hidden:!0}]},ETA:{tableName:"t_etages",title:"Gestion étages",component:"onglet",refUniquement:!1,saveWithoutCalc:!0,tabs:[{key:"definition",label:"Définition"},{key:"places",label:"Places"},{key:"lits",label:"Lits"}],fields:[...Is.filter(e=>e.dataKey!=="texte_court"),{title:"Texte court",dataKey:"texte_court",type:"input",width:80,hidden:!0,tab:"definition"},{title:"Lits",dataKey:"nb_lits",type:"input",width:80,tab:"definition"},{title:"C.P.",dataKey:"nb_cp",type:"input",width:80,tab:"definition"},{title:"Unité d'urgences",dataKey:"est_urgence",type:"checkbox",tab:"definition",hidden:!0},{title:"Service forcé",dataKey:"service_force_id",type:"select",selectOptionsKey:"SERVICE",tab:"definition",hidden:!0},{title:"Ignorer",dataKey:"remplacer_par_valeur_par_defaut",type:"checkbox",tab:"definition",detail:"Si coché, la valeur sera remplacé par l'étape par défault du service.",hidden:!0},{title:"Histos",type:"histos",tab:"places",hidden:!0},{title:"Lits",type:"lits",tab:"lits",hidden:!0}]},ETAPLC:{tableName:"t_etages",title:"Capacité étages",component:"onglet",refUniquement:!1,tabs:[{key:"places",label:"Places"}],fields:[...Is,{title:"Histos",type:"histos",tab:"places",hidden:!0},{title:"Lits",dataKey:"nb_lits",type:"input",width:80},{title:"C.P.",dataKey:"nb_cp",type:"input",width:80}],excludeFields:["texte_court"]},LIT:{tableName:"t_lits",title:"Gestion lits",component:"onglet",refUniquement:!1,saveWithoutCalc:!0,tabs:[{key:"definition",label:"Définition"},{key:"etages",label:"Étage"}],fields:[{title:"Code",dataKey:"code",width:100,type:"input"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input",width:80,tab:"definition",hidden:!0},{title:"Code original",dataKey:"code_original",type:"input"},{title:"Etage code",dataKey:"etage_code",type:"input",tab:"definition"},{title:"Etage texte",dataKey:"etage_texte",type:"input",tab:"definition"},{title:"Chambre particulière",dataKey:"est_chambre_particuliere",type:"checkbox",tab:"definition",hidden:!0},{type:"etages",tab:"etages",hidden:!0}]},UFT:{tableName:"t_unites_fonctionnelles",title:"Gestion unités fonctionnelles",component:"onglet",refUniquement:!1,saveWithoutCalc:!0,tabs:[{key:"definition",label:"Définition"},{key:"places",label:"Places"},{key:"options",label:"Options de génération"}],fields:[{title:"Code",dataKey:"code",width:100,type:"input",tab:"definition"},{title:"Texte",dataKey:"texte",type:"input",tab:"definition"},{title:"Texte court",dataKey:"texte_court",type:"input",tab:"definition"},{title:"Code original",dataKey:"code_original",type:"input",tab:"definition",editable:!1,width:150},{title:"Facturation",dataKey:"est_sans_facturation",type:"select",selectOptionsKey:"SER_est_sans_facturation_provider",tab:"options",hidden:!0},{title:"Histos",type:"histos",tab:"places",hidden:!0}]},UMD:{tableName:"t_unites_medicales",title:"Gestion unités médicales",component:"onglet",refUniquement:!1,saveWithoutCalc:!0,tabs:[{key:"definition",label:"Définition"},{key:"places",label:"Places"}],fields:[{title:"Code",dataKey:"code",width:100,type:"input",tab:"definition"},{title:"Texte",dataKey:"texte",type:"input",tab:"definition"},{title:"Texte court",dataKey:"texte_court",type:"input",tab:"definition"},{title:"Code original",dataKey:"code_original",type:"input",tab:"definition",editable:!1,width:150},{title:"Étage par défault",dataKey:"etage_par_defaut_id",type:"select",selectOptionsKey:"ETAGE",tab:"definition",hidden:!0},{title:"Étage par forcé",dataKey:"etage_force_id",type:"select",selectOptionsKey:"ETAGE",tab:"definition",hidden:!0},{title:"Histos",type:"histos",tab:"places",hidden:!0}]},FAC:{tableName:"t_forme_activite",title:"Gestion formes d'activité",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",width:100,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input",editable:!1}]},FAR:{tableName:"t_forme_activite_rule",title:"Gestion règles formes d'activité",component:"rules",addButton:!0,execute:{label:"Executer les règles",action:"execute_rules"},refUniquement:!1,fields:[{title:"Priorité",dataKey:"priorite",type:"input",width:100,default:"5000"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Code règle",dataKey:"code",type:"input"},{title:"Forme activité",dataKey:"forme_activite_texte",type:"text",editVisible:!1},{title:"Forme activité",dataKey:"forme_activite_id",type:"select",selectOptionsKey:"FAC",hidden:!0},{title:"Règle",dataKey:"rule_resume",editVisible:!1,type:"input"}],extraFields:!0},FSO:{tableName:"t_filiere_soin",title:"Gestion Filières de soin",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",width:100,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"}]},FSR:{tableName:"t_filiere_soin_rule",title:"Gestion règles Filières de soin",component:"rules",addButton:!0,execute:{label:"Executer les règles",action:"execute_rules"},refUniquement:!1,fields:[{title:"Priorité",dataKey:"priorite",type:"input",width:100,default:"5000"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Code règle",dataKey:"code",type:"input"},{title:"Filière de soin",dataKey:"filiere_soin_texte",type:"select",editVisible:!1},{title:"Filière de soin",dataKey:"filiere_soin_id",type:"select",selectOptionsKey:"FSO",hidden:!0},{title:"Règle",dataKey:"rule_resume",type:"input",editVisible:!1}],extraFields:!0},FSJ:{tableName:"t_sejour",title:"Forçages Séjours",component:"sejours",refUniquement:!1,addButton:!0,fields:[{title:"Numéro",dataKey:"code",type:"input",width:100},{title:"Nom",dataKey:"texte",type:"input"},{title:"Séjour à ignorer",dataKey:"est_ignore",type:"checkbox",width:100,hidden:!0},{title:"Ignoré",dataKey:"est_ignore_texte",type:"input",editVisible:!1,width:100},{title:"Médecin forcé",dataKey:"medecin_sejour_id",type:"select",selectOptionsKey:"MDA",hidden:!0},{title:"Médecin forcé",dataKey:"medecin_sejour_texte",editVisible:!1},{title:"Service forcé",dataKey:"service_facturation_texte",editVisible:!1},{title:"Etage forcé",dataKey:"etage_texte",editVisible:!1,width:150},{title:"Type",dataKey:"type_sejour",type:"select",selectOptionsKey:"FSJ_type",hidden:!0},{title:"Type séjour forcé",dataKey:"type_sejour_texte",editVisible:!1,width:150},{title:"Service",dataKey:"service_facturation_id",type:"select",selectOptionsKey:"SERVICE",hidden:!0},{title:"Etage",dataKey:"etage_id",type:"select",selectOptionsKey:"ETAGE",hidden:!0},{title:"Encours",dataKey:"encours_1_from_date",type:"select",selectOptionsKey:"MOIS",hidden:!0,detail:"à partir de",default:"2099-12-31"},{title:"Forçage en cours",dataKey:"encours_texte",editVisible:!1,width:150},{title:"Ignorer (Encours)",dataKey:"encours_1_est_ignore",type:"checkbox",hidden:!0}]},WFU:{tableName:"t_web100t_forcage_uf_soin",title:"Gestion Forcage UF Soins WEB100T",component:"common",refUniquement:!1,fields:[{title:"Texte",dataKey:"texte",type:"input"},{title:"UF Soins forcée",dataKey:"mvt_uf_soin_lib",editVisible:!1},{title:"UF Soins forcée",dataKey:"mvt_uf_soin",type:"select",selectOptionsKey:"MVT_UF_SOIN",hidden:!0},{title:"UF Soins héritée (spécialité séjour)",dataKey:"mvt_uf_soin_lib_hs",editVisible:!1},{title:"UF Soins héritée (type séjour)",dataKey:"mvt_uf_soin_lib_hc",editVisible:!1}]},MDA:{tableName:"t_medecins_administratifs",title:"Gestion Référentiel Médecins",component:"common",refUniquement:!1,fields:[...Is,{title:"Nom",dataKey:"nom",type:"input"},{title:"Prénom",dataKey:"prenom",type:"input"},{title:"Nº ADELI",dataKey:"no_adeli",type:"input",editVisible:!1},{title:"Spécialité",dataKey:"specialite",type:"input",editVisible:!1},{title:"Médecin référence",dataKey:"medecin_reference",type:"input",editVisible:!1},{title:"Médecin salarié",dataKey:"est_medecin_salarie",type:"checkbox",hidden:!0},{title:"Comptabiliser honoraires (patient)",dataKey:"kiwee_sigems_honpatcpt",type:"checkbox"},{title:"Comptabiliser dépassements honoraires (patient)",dataKey:"kiwee_sigems_honpatcptdep",type:"checkbox"}],excludeFields:["texte_court","texte"]},PRC:{tableName:"t_prestations_c",title:"Gestion Prestations Clinique",component:"common",refUniquement:!1,fields:[...Is,{title:"Complement",dataKey:"complement",type:"input",editVisible:!1},{title:"Ventilation des lignes facturés par jour",dataKey:"type_ventilation_jour",type:"select",selectOptionsKey:"PRC_type_valorisation_facture",hidden:!0},{title:"Type valorisation",dataKey:"type_valorisation_non_facture",type:"select",selectOptionsKey:"PRC_type_valorisation_non_facture",hidden:!0}]},RUB:{tableName:"t_rubriques_facturation",title:"Gestion Rubriques Facturation",refUniquement:!1,component:"common",fields:[...Is,{title:"Forcé établissement",detail:"Acte facturé en honoraire à remonter en partie établissement",dataKey:"est_force_etablissement",type:"checkbox",hidden:!0},{title:"Acte inclus (public)",dataKey:"actes_inclus_public",type:"checkbox",hidden:!0}]},CPT:{tableName:"t_compte",title:"Gestion Comptes produits",refUniquement:!1,component:"common",fields:[...Is,{title:"TVA",dataKey:"tva_texte",type:"input",editVisible:!1},{title:"Compte TVA",dataKey:"compte_tva_id",type:"select",selectOptionsKey:"CPT",hidden:!0},{title:"Taux TVA",dataKey:"taux_tva",type:"input",dependsOn:"compte_tva_id",disabledWhen:"0",width:80,hidden:!0}]},SRU:{tableName:"t_service_rubrique",title:"Gestion Comptes produits par rubrique",refUniquement:!1,component:"common",fields:[{title:"Service",dataKey:"service",type:"input",editable:!1},{title:"Rubriques",dataKey:"rubrique",type:"input",editable:!1},{title:"Compte",dataKey:"compte",editVisible:!1},{title:"Prestation forcée",dataKey:"prestation_forcee",type:"input",editVisible:!1},{title:"Nombre référence",dataKey:"nbref",editVisible:!1},{title:"Compte",dataKey:"compte_id",type:"select",selectOptionsKey:"CPT",hidden:!0},{title:"Compte forcé ?",dataKey:"est_compte_force",type:"checkbox",hidden:!0},{title:"Prestation forcée",dataKey:"prestation_forcee_id",type:"select",selectOptionsKey:"PRESTATION",hidden:!0}]},CAR:{tableName:"t_compte_produit_analytique_rule",title:"Gestion règles comptes analytiques",component:"rules",addButton:!0,execute:{label:"Executer les règles",action:"execute_rules"},refUniquement:!1,fields:[{title:"Priorité",dataKey:"priorite",type:"input",width:100,default:"5000"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Code règle",dataKey:"code",type:"input",hidden:!0},{title:"Compte",dataKey:"compte_produit_analytique_texte",type:"input",editVisible:!1},{title:"Compte",dataKey:"$compte_produit_analytique_id",type:"select",selectOptionsKey:"CPT",hidden:!0},{title:"Règles",dataKey:"rule_resume",editVisible:!1},{title:"Type séjour",dataKey:"liste_type_sejour",type:"input",hidden:!0,tab:!0},{title:"Spécialité",dataKey:"liste_specialite",type:"input",hidden:!0,tab:!0},{title:"Médecins",dataKey:"liste_medecin",type:"input",hidden:!0,tab:!0},{title:"Services",dataKey:"liste_service",type:"input",hidden:!0,tab:!0},{title:"Etages",dataKey:"liste_etage",type:"input",hidden:!0,tab:!0},{title:"Unité fonctionnelle",dataKey:"liste_unite_fonctionnelle",type:"input",hidden:!0,tab:!0},{title:"Actes",dataKey:"liste_acte",type:"input",hidden:!0,tab:!0},{title:"Rubriques",dataKey:"liste_rubrique",type:"input",hidden:!0,tab:!0},{title:"Prestations",dataKey:"liste_prestation",type:"input",hidden:!0,tab:!0},{title:"Sauf Prestation",dataKey:"liste_sauf_prestation",type:"input",hidden:!0,tab:!0},{title:"Compte Produit",dataKey:"liste_compte_produit",type:"input",hidden:!0,tab:!0},{title:"Sauf Compte Produit",dataKey:"liste_sauf_compte_produit",type:"input",hidden:!0,tab:!0},{title:"GHM",dataKey:"liste_ghm",type:"input",hidden:!0,tab:!0},{title:"Sauf GHM",dataKey:"liste_sauf_ghm",type:"input",hidden:!0,tab:!0},{title:"Diagnostic principal",dataKey:"liste_diagnostic_principal",type:"input",hidden:!0,tab:!0},{title:"Diagnostique relié",dataKey:"liste_diagnostic_relie",type:"input",hidden:!0,tab:!0},{title:"Diagnostique associé",dataKey:"liste_diagnostic_associe",type:"input",hidden:!0,tab:!0},{title:"FINESS",dataKey:"liste_finess",type:"input",hidden:!0,tab:!0}]},GHS:{tableName:"t_ghs",title:"Interrogation GHS",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",width:100,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"OAP",dataKey:"pole_oap_code",type:"input",editable:!1,width:70},{title:"Pole",dataKey:"pole_oap_texte",type:"input",editable:!1},{title:"Ligne",dataKey:"ligne_oap_code",type:"input",editable:!1,width:100},{title:"Pole",dataKey:"ligne_oap_texte",type:"input",editable:!1,hidden:!0}]},ENC:{tableName:"t_calcul_encours",title:"Paramètres de calculs d'encours",ongletTable:!0,refUniquement:!1,execute:{label:"Relancer la valorisation",action:"execute"},fields:[...Is,{title:"Complément",dataKey:"complement",type:"input",editVisible:!1}],addSearchFields:["prestation","service","service","nom","séjour"],infoSup:{label:"Prochain en-cours"},onglets:{1:{label:"Paramètres généraux",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Valeur",dataKey:"valeur",type:"input"},{title:"Description",dataKey:"description",type:"input",editable:!1}]},2:{label:"Paramètres prestations",component:"common",fields:[{title:"Prestation",dataKey:"prestation",type:"input",editable:!1},{title:"Type valorisation",dataKey:"description",type:"input",editVisible:!1},{title:"Type valorisation",dataKey:"type_valorisation",type:"select",allowClear:!0,selectOptionsKey:"PRC_type_valorisation_non_facture_provider",hidden:!0}]},3:{label:"Moyenne et PU calculés",component:"common",fields:[{title:"Service",dataKey:"service",type:"input",editable:!1},{title:"Prestation",dataKey:"prestation",type:"input",editable:!1},{title:"Rubrique",dataKey:"rubrique",type:"input",editable:!1},{title:"Coefficient calculé",dataKey:"coefficient_calcule",type:"input",editable:!1},{title:"Coefficient forcé",dataKey:"coefficient_force",type:"input",editVisible:!1},{title:"Coefficient forcé",dataKey:"coefficient_is_force",type:"checkbox",hidden:!0},{title:"Valeur",dataKey:"coefficient_force",type:"input",dependsOn:"coefficient_is_force",disabledWhen:!1,hidden:!0},{title:"Prix unitaire calculé",dataKey:"prix_unitaire_calcule",type:"input",editable:!1},{title:"Prix unitaire forcé",dataKey:"prix_unitaire_force",type:"input",editVisible:!1},{title:"Prix unitaire forcé",dataKey:"prix_unitaire_is_force",type:"checkbox",hidden:!0},{title:"Valeur",dataKey:"prix_unitaire_force",type:"input",dependsOn:"prix_unitaire_is_force",disabledWhen:!1,hidden:!0}]},4:{label:"Valorisation GHS (non groupés)",component:"common",fields:[{title:"Séjour",dataKey:"sejour",type:"input",editable:!1},{title:"Nom",dataKey:"nom",type:"input",editable:!1},{title:"Facture",dataKey:"facture",type:"input",editable:!1},{title:"Service",dataKey:"service",type:"input",editable:!1},{title:"Prestation",dataKey:"prestation",type:"input",editable:!1},{title:"Rubrique",dataKey:"rubrique",type:"input",editable:!1},{title:"Tarif calculé",dataKey:"prix_unitaire_calcule",type:"input",editable:!1},{title:"Tarif forcé",dataKey:"prix_unitaire_force",type:"input",editVisible:!1},{title:"Tarif forcé",dataKey:"prix_unitaire_is_force",type:"checkbox",hidden:!0},{title:"Valeur",dataKey:"prix_unitaire_force",type:"input",dependsOn:"prix_unitaire_is_force",disabledWhen:!1,hidden:!0}]},5:{label:"Valorisations prestations",component:"common",fields:[{title:"Séjour",dataKey:"sejour",type:"input",editable:!1},{title:"Nom",dataKey:"nom",type:"input",editable:!1},{title:"Facture",dataKey:"facture",type:"input",editable:!1},{title:"Service",dataKey:"service",type:"input",editable:!1},{title:"Prestation",dataKey:"prestation",type:"input",editable:!1},{title:"Rubrique",dataKey:"rubrique",type:"input",editable:!1},{title:"Coefficient calculé",dataKey:"coefficient_calcule",type:"input",editable:!1},{title:"Tarif calculé",dataKey:"prix_unitaire_calcule",type:"input",editable:!1},{title:"Tarif forcé",dataKey:"prix_unitaire_force",type:"input",editVisible:!1},{title:"Tarif forcé",dataKey:"prix_unitaire_is_force",type:"checkbox",hidden:!0},{title:"Valeur",dataKey:"prix_unitaire_force",type:"input",dependsOn:"prix_unitaire_is_force",disabledWhen:!1,hidden:!0},{title:"Ignoré",dataKey:"ignorer",type:"checkbox"}]},8:{label:"Factures ignorées",component:"common",fields:[{title:"Séjour",dataKey:"sejour",type:"input",editable:!1},{title:"Nom",dataKey:"nom",type:"input",editable:!1},{title:"Facture",dataKey:"facture",type:"input",editable:!1},{title:"Tarif calculé",dataKey:"prix_unitaire_calcule",type:"input",editable:!1},{title:"Ignoré",dataKey:"ignorer",type:"checkbox"}]}}},PRH:{tableName:"t_prestations_h",title:"Gestion Prestations Honoraire",component:"common",refUniquement:!1,fields:[...Is,{title:"Complément",dataKey:"complement",type:"input",editVisible:!1}]},CCR:{tableName:"t_ccam_regroupements",title:"Interrogation Regroupements CCAM",component:"common",refUniquement:!1,fields:[...Is.map(e=>({...e,editable:!1}))],excludeFields:["code_original"]},DTG:{tableName:"t_service_rubrique_dotation",title:"Gestion Dotation globale",component:"common",refUniquement:!1,fields:[{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Année",dataKey:"annee",type:"input",editable:!1},{title:"Dotation",dataKey:"dotation",type:"input",editable:!1},{title:"Service",dataKey:"service",type:"input",editable:!1},{title:"Rubrique",dataKey:"rubrique",type:"input",editable:!1},{title:"Vers rubrique",dataKey:"versrubrique",type:"input",editable:!1}]},ACT:{tableName:"t_actes",title:"Interrogation Actes",component:"common",fields:[{title:"Code",dataKey:"code",width:100,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Regroupement",dataKey:"regroupement_1",width:100,type:"input",editable:!1},{title:"Regroupement",dataKey:"regroupement_4",width:100,type:"input",editable:!1}],excludeFields:["texte_court","code_original"]},TTP:{tableName:"t_types_tiers_payant",title:"Gestion Types Tiers Payant",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",width:100,editable:!1,type:"input"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"}]},TPY:{tableName:"t_tiers_payant",title:"Gestion Tiers Payant",component:"common",refUniquement:!1,saveWithoutCalc:!0,fields:[...Is,{title:"Régime",dataKey:"grand_regime",type:"input",editVisible:!1},{title:"Régime",dataKey:"grand_regime_id",type:"select",selectOptionsKey:"TPY",hidden:!0},{title:"Type",dataKey:"type_tiers_payant",type:"input",editable:!1}]},EXC:{tableName:"t_expert_controle",title:"Gestion Controles Expert",component:"onglet",addButton:!0,copyButton:!0,sqlButton:!0,editable:!1,execute:{label:"Éxécuter les règles",action:"execute_rules"},preferences:{label:"Préférences"},tabs:[{key:"definition",label:"Définition"},{key:"description",label:"Description"},{key:"regle-1",label:"Règle 1"},{key:"regle-2",label:"Règle 2"},{key:"regle-3",label:"Règle 3"}],fields:[{title:"Code",dataKey:"code",type:"input",editable:!0},{title:"Contrôle CTI",dataKey:"is_cti",type:"checkbox",width:80,hidden:!0},{tab:"definition",title:"Texte",dataKey:"texte",type:"input"},{title:"État",dataKey:"is_active_texte",editVisible:!1,width:80},{title:"Complément",dataKey:"complement",editVisible:!1,width:120},{title:"Gravité",dataKey:"gravite_texte",editVisible:!1,width:80},{title:"Contrôle activé",dataKey:"is_active",type:"checkbox",tab:"definition",hidden:!0},{title:"Dernière exécution",dataKey:"last_execution_timestamp",editVisible:!1},{title:"Nombre références",dataKey:"nbref",editVisible:!1},{tab:"definition",title:"Texte affiché",dataKey:"texte_court",type:"input",hidden:!0},{tab:"definition",title:"Dossier ciblés",dataKey:"etat_cible",type:"select",selectOptionsKey:"EXC_cible_provider",hidden:!0},{tab:"definition",title:"Prestataires",dataKey:"prestataire_id",type:"select",selectOptionsKey:"PRESTATAIRE",hidden:!0},{tab:"definition",title:"Gravité",dataKey:"gravite",type:"select",selectOptionsKey:"EXC_gravite_provider",detail:"Contrôle spécifique à un prestataire",hidden:!0},{tab:"definition",title:"Alerte",dataKey:"is_alert",type:"checkbox",hidden:!0},{tab:"definition",title:"Masqué",dataKey:"is_hide",type:"checkbox",hidden:!0},{tab:"regle-1",title:"Données",dataKey:"table1",type:"select",selectOptionsKey:"EXC_table_provider",hidden:!0},{tab:"regle-1",title:"Sélection",dataKey:"sqlcmd_where1",type:"textArea",hidden:!0},{tab:"regle-1",title:"Justificatif",dataKey:"sqlcmd_justificatif1",type:"textArea",hidden:!0},{tab:"regle-2",title:"Données",dataKey:"table2",type:"select",selectOptionsKey:"EXC_table_provider",hidden:!0},{tab:"regle-2",title:"Sélection",dataKey:"sqlcmd_where2",type:"textArea",hidden:!0},{tab:"regle-2",title:"Justificatif",dataKey:"sqlcmd_justificatif2",type:"textArea",hidden:!0},{tab:"regle-3",title:"Données",dataKey:"table3",type:"select",selectOptionsKey:"EXC_table_provider",hidden:!0},{tab:"regle-3",title:"Sélection",dataKey:"sqlcmd_where3",type:"textArea",hidden:!0},{tab:"regle-3",title:"Justificatif",dataKey:"sqlcmd_justificatif3",type:"textArea",hidden:!0},{tab:"description",title:"Description",dataKey:"description",type:"text-editor",hidden:!0}]},DIV:{tableName:"t_divers",title:"Gestion Paramètres divers",component:"common",refUniquement:!1,saveWithoutCalc:!0,fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Valeur",dataKey:"valeur",type:"input",width:80},{title:"Description",dataKey:"description",type:"input",editable:!1},{title:"Info Module",dataKey:"show_info_module",type:"checkbox",width:80}]},KIW:{tableName:"t_kiwee_params",title:"Gestion Paramètres Kiwee",component:"common",refUniquement:!1,saveWithoutCalc:!0,fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Valeur",dataKey:"valeur",type:"checkbox",width:80},{title:"Description",dataKey:"description",type:"input",editable:!1}]}},smt={"CTI_BASE_TablesManager.swf":nvt,"CTI_ECO_TablesManager.swf":emt,"CTI_ACTI_TablesManager.swf":omt,"CTI_PMSI_TablesManager.swf":rmt,"CTI_RH_TablesManager.swf":amt,"CTI_PMSISSR_TablesManager.swf":nmt,"CTI_COMPTA_TablesManager.swf":Zvt,"CTI_SSAE_TablesManager.swf":imt,"CTI_DPI_TablesManager.swf":$vt},SE="Privé",t8="Public",VBe=({module:e,item:t})=>{const[r,n]=m.useState(null),[a,i]=m.useState(null),[o,s]=m.useState(!1),[l,A]=m.useState(!1),[c,u]=m.useState([]),[d,f]=m.useState(null),[h,g]=m.useState(!1),[p,E]=m.useState([]),[y,C]=m.useState(null),[w,B]=m.useState(""),[M,I]=m.useState(null),[S,R]=m.useState(null),[b,Q]=m.useState([]),[D,F]=m.useState(!1),[N,k]=m.useState(!1),[O,P]=m.useState(!1),[z,j]=m.useState(SE),[V,L]=m.useState(Nn()),[K,J]=m.useState(""),[Y,W]=m.useState(!1),q=m.useRef(),[ee,ae]=m.useState("100%"),ne=Ye(Ee=>Ee.cti.components.tables.data.records),ce=Ye(Ee=>Ee.cti.components.tables.data.choices),ue=Ye(Ee=>Ee.cti.components.tables.data.divers),ge=Ye(Ee=>Ee.cti.components.tables.data.addRecord),Se=Ye(Ee=>Ee.cti.components.tables.data.refRecords),ye=Ye(Ee=>Ee.cti.components.tables.loading),pe=Pr();m.useEffect(()=>{if(t){R(null),ae("100%"),s(!1),P(!1),f(t.swf),J(""),W(!1);let Ee=t.swfData;e==="iCTI_ssae"&&(Ee=Ee.split("-")[0]),["BUC_activite","BUI_activite","BUR_activite"].includes(Ee)&&(Ee=Ee.split("_")[0]),C(Ee),i(null)}},[t,e]),m.useEffect(()=>{a&&(n(null),B(""),F(!1),k(!1),W(a.selectButton),pe(Py(t.swf,e,a.tableName,K,"1",a)))},[a,K]),m.useEffect(()=>{if(y&&d){const Ee=de(d);if(Ee){let Ie={...Ee[y]};Ie&&(Ie.extraFields===!0&&(Ie.fields=Ie.fields.concat(avt(y,e))),Ie.excludeFields&&Ie.excludeFields.forEach(ie=>{Ie.fields=Ie.fields.filter(re=>re.dataKey!==ie)}),Ie.sqlChoices&&pe(uU(Ie.sqlChoices)),i(Ie))}else i(null)}},[e,y,d,pe]),m.useEffect(()=>{if(a)if(a.tableName==="t_rubriques"){if(ue&&Object.values(ue).length){const Ee=ue.rubriques.valeur;Q(a.fields[Ee])}}else Q(a.fields)},[ue,a]),m.useEffect(()=>{if(b!=null&&b.length&&a)switch(b[0].title!=="oid"&&b.unshift({title:"oid",dataKey:"oid",type:"input",hidden:!0,editVisible:!1}),R(null),a.tableName){case"t_rubriques":const Ie=Fe(b).map((ie,re)=>{let he;return["Code","Texte"].includes(ie.title)&&(he=Vv.FrozenDirection.LEFT),ie.title==="Texte"?{...ie,frozen:he,justifyContent:"center",width:200}:{...ie,frozen:he,width:100,justifyContent:"center"}});E(Ie);break;default:E(Fe(b));break}},[b]),m.useEffect(()=>{if(ne.length&&a&&b){if(a.ongletTable){let Ee={};ne.forEach(Ie=>{Ee[Ie.type_parametre]={type_ligne:Ie.type_ligne,type_parametre:Ie.type_parametre}}),R(Ee)}else R(null);a.selectButton&&(!K.length||K==="-1")?u([]):Array.isArray(b)&&b.length&&u(je(ne,b,M))}else ne.length||u([])},[ne,a,h,w,b,D,N,M,z,V]),m.useEffect(()=>{q.current&&typeof ee=="string"&&ae(q.current.offsetHeight)},[q,ee]);const Qe=()=>{ae("100%"),s(!o),n(null)},Ue=Ee=>{n(ne.find(Ie=>Ie.key===Ee)),s(!0),ae("40%"),P(!1)},tt=Ee=>{F(Ee)},it=Ee=>{k(Ee)},we=()=>{pe(Py(t.swf,e,a.tableName,K,"1",a))},ve=()=>{pe(oI([]));let Ee={};Object.keys(ge).length?Ee={...ge}:(b.forEach(Ie=>{let ie;switch(Ie.type){case"input":ie=Ie.default??"";break;case"select":ie=Ie.default??"0";break;case"checkbox":ie=!1;break}Ee[Ie.dataKey]=ie}),Ee.oid="-1"),n(Ee),s(!0),ae("40%")},Te=Ee=>{g(Ee)},Be=Ee=>{B(Ee.target.value)},Ge=Ee=>{let Ie=ce.find(ie=>ie.oid===Ee);J(Ie.code!=="code"?Ie.code:""),a.tableName==="t_etude_5"&&J(Ie.oid)},ht=()=>{Nut(ne,a)},We=()=>{var Ee;pe(dBe(t.swf,a.tableName,t.softCode,null,((Ee=a==null?void 0:a.execute)==null?void 0:Ee.action)??"execute"))},Ke=Ee=>{A(Ee)},Xe=Ee=>{ae(ee+Ee.height)},$e=(Ee,Ie)=>{L(Ee)},pt=Ee=>{j(Ee===SE?SE:t8)};function de(Ee){let Ie=Ee.substring(2);return smt[Ie]}function Fe(Ee){let Ie=Ee.map(ie=>{if(ie.isSC&&(!ie.children||ie.children.length!==2)){let re=ie.dataKey?ie.dataKey:ie.key;ie.children||(ie.children=[]),ie.children.push({title:"S",dataKey:re.replace("p_","s_"),key:re.replace("p_","s_"),dataIndex:re.replace("p_","s_"),type:"input",resizable:!1,parentKey:re,width:60,align:"center",sorter:(he,Pe)=>he[re.replace("p_","s_")]-Pe[re.replace("p_","s_")]}),ie.children.push({title:"C",dataKey:re.replace("p_","c_"),key:re.replace("p_","c_"),dataIndex:re.replace("p_","c_"),type:"input",resizable:!1,parentKey:re,width:60,align:"center",sorter:(he,Pe)=>he[re.replace("p_","c_")]-Pe[re.replace("p_","c_")]})}return ie});return Ie=Ie.map(ie=>({width:250,resizable:!0,key:ie.dataKey?ie.dataKey:ie.key,dataIndex:ie.dataKey,dataGetter:({columns:re,column:he,columnIndex:Pe,rowData:be,rowIndex:Ve})=>{if(he.type==="checkbox"){let lt=typeof be[ie.dataKey]=="boolean"?be[ie.dataKey]:be[ie.dataKey]==="1";return v.jsx(oU,{disabled:!0,checked:lt})}else return he.type==="date"&&Nn(be[ie.dataKey]).isValid()?Nn(be[ie.dataKey]).format("DD/MM/YYYY"):be[ie.dataKey]},...ie})),Ie.filter(ie=>ie.hidden!==!0)}function je(Ee,Ie,ie=null){let re=[...Ee];h&&(re=re.filter(Pe=>Pe.nbref!=="+0"&&Pe.nbref!=="0")),D&&(re=re.filter(Pe=>Pe.doublon==="1")),N&&(re=re.filter(Pe=>Pe.nbsej!=="0"||Pe.nbact!=="0")),M&&(re=re.filter(Pe=>Pe[a.selectFilterField]===ie));let he=["code","texte"];if(a.addSearchFields&&(he=[...he,...a.addSearchFields]),re=Fh(re,w,he),a.selectTarif&&a.datePicker&&re.length>0){const Pe=V.hour(0).minute(0).second(0).millisecond(0);let be=z==="Public"?"pp":"pr";re.forEach(Ve=>{let lt=Ne(Pe,Ve,be);Ve.borne_basse=Ve[`bb${be}${lt}`],Ve.borne_haute=Ve[`bh${be}${lt}`],Ve.dms_nationale=Ve[`dm${be}${lt}`],Ve.tarif_ghs=Ve[`tg${be}${lt}`],Ve.forfait_exb=Ve[`fb${be}${lt}`],Ve.tarif_exb=Ve[`tb${be}${lt}`],Ve.tarif_exh=Ve[`tx${be}${lt}`]})}return re}const et=p,xe=({cells:Ee,columns:Ie,headerIndex:ie})=>{if(ie===1)return Ee;const re=[];let he=0;return Ie.forEach((Pe,be)=>{he+=Pe.width;const Ve=Ie[be+1];if(be===Ie.length-1||Ve.parentKey!==Pe.parentKey){const lt=et.find(Ze=>Ze.key===Pe.parentKey);re.push(v.jsx("div",{className:"group-cell",style:{...Ee[be].props.style,width:he},children:v.jsx("div",{style:{padding:"12px",textAlign:"center"},children:lt?lt.title:""})},`header-group-cell-${Pe.key}-${be}`)),he=0}}),re};function Ne(Ee,Ie,ie){let re="9";for(let he=1;he<=9;he++)Date.parse(Ee.toString())>=Date.parse(Ie[`dd${ie}${he}`])&&Date.parse(Ee.toString())<=Date.parse(Ie[`df${ie}${he}`])&&(re=he.toString());return re}const le=()=>{switch(a.tableName){case"t_rubriques":let Ee=[];return p.forEach((Ie,ie)=>{Ie.children?Ee=Ee=[...Ee,...Ie.children.map(re=>({...re,parentKey:Ie.key}))]:Ee.push(Ie)}),v.jsx($r,{fixed:!1,columns:Ee,data:c,rowHeight:25,className:"rub-table",loading:ye,selectedRow:r,onRowSelect:Ue,headerClassName:"rub-header",headerHeight:[50,40],headerRenderer:xe});default:return v.jsx($r,{columns:p,data:c,loading:ye,selectedRow:r,onRowSelect:Ue,choice:K,selectButtonBool:Y})}};function At(){return S?Object.values(S).length?v.jsx("div",{className:"content-tabs",children:v.jsx(xa,{items:Object.values(S).map((Ee,Ie)=>Bt(Ee,Ie))})}):v.jsx(Ya,{}):v.jsxs(v.Fragment,{children:[v.jsx(bh,{className:"tables-table",axis:"x",handleComponent:{bottom:v.jsx("div",{className:"resize-handle",style:{marginBottom:8},children:v.jsx("span",{children:"…"})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:"100%",height:ee},onResizeStop:Xe,children:v.jsx("div",{ref:q,style:{height:"100%"},children:le()})}),v.jsx("div",{className:"tables-editor",style:{display:o||O?"flex":"none"},children:a.tableName==="t_expert_controle"&&!a.module?v.jsx(KBe,{tableParams:a,record:r,handleShowEditor:Qe,swf:t.swf,showRefs:O,fields:b}):v.jsx(Wj,{tableParams:a,record:r,handleShowEditor:Qe,swf:t.swf,fields:b,choice:K})})]})}const Bt=(Ee,Ie)=>{const ie=a.onglets[parseInt(Ee.type_parametre)];if(ie){const re=c.filter(be=>be.type_parametre===Ee.type_parametre),he=Fe(ie.fields),Pe={...a,...ie};return{label:v.jsx("span",{children:a.onglets[parseInt(Ee.type_parametre)].label}),key:Ie,children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"tables-table",children:v.jsx($r,{columns:he,data:re,loading:ye,selectedRow:r,onRowSelect:Ue})}),v.jsx("div",{className:"tables-editor",style:{display:o?"flex":"none"},children:v.jsx(Wj,{tableParams:Pe,record:r,handleShowEditor:Qe,swf:t.swf,fields:b})})]})}}};let G=ne.find(Ee=>Ee.code==="ENCOURSNEXT");return a?p.length&&a?v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Gestion des tables"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:a.title}),v.jsxs("div",{className:"header-actions",children:[a.preferences&&v.jsx(nt,{icon:v.jsx(HG,{}),onClick:()=>Ke(!0),children:a.preferences.label}),Se.length>0&&v.jsx(nt,{icon:v.jsx(HG,{}),onClick:()=>P(!O),children:"Importer depuis l'environnement de référence"}),a.execute&&v.jsx(nt,{icon:v.jsx(Wf,{}),onClick:We,disabled:r,children:a.execute.label}),a.infoSup&&G&&v.jsx(v.Fragment,{children:v.jsxs(RC,{icon:v.jsx(J3,{}),style:{marginLeft:8},children:[a.infoSup.label," : ",G.valeur]})}),v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",onClick:we,children:v.jsx(La,{})})}),v.jsx(pr,{title:"Export excel",children:v.jsx(nt,{type:"link",onClick:ht,children:v.jsx(ude,{})})}),a.addButton&&v.jsx(nt,{type:"primary",icon:v.jsx(NS,{}),onClick:ve,children:"Ajouter"})]})]}),v.jsx("div",{className:"tables-search",children:v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"form-item",children:a.selectButton&&v.jsx(Ir,{placeholder:"Pas de sélections",style:{marginRight:"10px"},loading:!ce.length,options:ce,onChange:Ee=>Ge(Ee)})}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Recherche"}),v.jsx(mt,{style:{marginRight:"20px"},value:w,onChange:Be})]}),a.refUniquement!==!1&&v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Référencés uniquement"}),v.jsx(Va,{checked:h,onChange:Te})]}),a.selectFilterField&&v.jsxs("div",{className:"form-item",style:{marginLeft:12},children:[v.jsx("span",{children:a.selectFilterLabel}),v.jsx(Ir,{allowClear:!0,value:M,options:ne.map((Ee,Ie)=>({key:Ie,label:Ee[a.selectFilterField],value:Ee[a.selectFilterField]})),onChange:Ee=>I(Ee)})]}),a.doubleFilter===!0&&v.jsxs("div",{className:"form-item",style:{marginLeft:"8px"},children:[v.jsx("span",{children:"Doublons potentiels"}),v.jsx(Va,{checked:D,onChange:tt})]}),a.sejoursActFilter===!0&&v.jsxs("div",{className:"form-item",style:{marginLeft:"8px"},children:[v.jsx("span",{children:"Avec séjour ou acte (12 derniers mois)"}),v.jsx(Va,{checked:N,onChange:it})]}),a.selectTarif&&v.jsxs("div",{className:"form-item",style:{marginLeft:"20px"},children:[v.jsx("span",{children:"Tarif"}),v.jsxs(Ir,{defaultValue:"prive",onChange:pt,style:{width:"80px"},children:[v.jsx(Ir.Option,{value:SE,children:SE}),v.jsx(Ir.Option,{value:t8,children:t8})]})]}),a.datePicker&&v.jsxs("div",{className:"form-item",style:{marginLeft:"8px"},children:[v.jsx("span",{children:"au"}),v.jsx(lv,{style:{width:"150px"},value:V,onChange:$e,format:"DD/MM/YYYY",picker:"day",dateRender:Ee=>v.jsx("div",{className:"ant-picker-cell-inner",style:{fontSize:"12px"},children:Ee.date()})})]})]})}),v.jsx("div",{className:"component-content",children:At()}),v.jsx(qvt,{showModalPreferences:l,handleShowModalPreferences:Ke,swf:t.swf,softCode:t.softCode,tableParams:a})]}):v.jsx(Ya,{}):v.jsx(vd,{icon:v.jsx(Tv,{}),title:`Désolé ces tables ne sont pas encore disponibles (${d}) !`})};VBe.propTypes={module:U.string,item:U.object};const JBe=({modUser:e,handleUpdateAuths:t})=>{const[r,n]=m.useState([]),[a,i]=m.useState([]),[o,s]=m.useState([]),[l,A]=m.useState([]),[c,u]=m.useState(""),d=Ye(B=>B.cti.components.users.data.envs);m.useEffect(()=>{u(""),e.auths&&i(e.auths.filter(B=>B.type==="ictidir"))},[e]),m.useEffect(()=>{if(e.auths){let B=y(d);n(B)}},[c,d,e]);const f=B=>{if(B==="right"){const M=e.auths.filter(I=>l.includes(I.key));t("",M,"left")}else{const I=[...new Set(o)].map((S,R)=>{const b=r.find(D=>D.key===S),Q=e.auths.length+R;return{type:"ictidir",name:b.ICTIDIR,granted:"full",key:Q}});t("",I,"add"),s([]),A([])}},h=B=>{u(B.target.value)},g=B=>{let M=[...o];Array.isArray(B)?M=M.concat(B):M.includes(B)?M=M.filter(I=>I!==B):M.push(B),s(M.map(I=>Number(I)))},p=B=>{let M=[...l];Array.isArray(B)?M=M.concat(B):M.includes(B)?M=M.filter(I=>I!==B):M.push(B),A([...new Set(M.map(I=>Number(I)))])},E=()=>{o.length?s([]):s(r.map(B=>B.key))};function y(B){let M=e.auths.filter(I=>I.type==="ictidir").map(I=>I.name);return B.filter(I=>!M.includes(I.ICTIDIR)&&I.ICTIDIR.toLowerCase().includes(c.toLowerCase()))}const C=[{title:"Environnements CTI autorisés",dataKey:"name",key:"name",width:200}],w=[{title:"Environnements CTI disponibles",dataKey:"ICTIDIR",key:"ICTIDIR",width:200}];return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"annuaire-editor",children:[v.jsxs("div",{className:d.length>0?"annuaire-options-30":"annuaire-options-100",children:[v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Tout synchroniser"})}),v.jsx("div",{className:"user-editor-row-container",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{name:"default_ctiusrdir_synchronize_all",valuePropName:"checked",children:v.jsx(Rr,{})})},"default_ctiusrdir_synchronize_all")})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Nom et définition"})}),v.jsx("div",{className:"user-editor-row-container ",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{name:"default_ctiusrdir_synchronize_name",valuePropName:"checked",children:v.jsx(Rr,{disabled:e.default_ctiusrdir_synchronize_all})})},"default_ctiusrdir_synchronize_name")})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Role et spécialité"})}),v.jsx("div",{className:"user-editor-row-container ",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{name:"default_ctiusrdir_synchronize_role",valuePropName:"checked",children:v.jsx(Rr,{disabled:e.default_ctiusrdir_synchronize_all})})},"default_ctiusrdir_synchronize_role")})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Mot de passe"})}),v.jsx("div",{className:"user-editor-row-container ",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{name:"default_ctiusrdir_synchronize_password",valuePropName:"checked",children:v.jsx(Rr,{disabled:e.default_ctiusrdir_synchronize_all})})},"ctiusrdir_synchronize_password")})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Autorisations"})}),v.jsx("div",{className:"user-editor-row-container ",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{name:"default_ctiusrdir_synchronize_aut",valuePropName:"checked",children:v.jsx(Rr,{disabled:e.default_ctiusrdir_synchronize_all})})},"ctiusrdir_synchronize_aut")})]})]}),d.length>0&&v.jsxs("div",{className:"annuaire-list",children:[v.jsx("div",{className:"transfer-table",children:v.jsx($r,{columns:C,data:a,selectedRows:l,onRowSelect:p,shiftMulti:!0})}),v.jsxs("div",{className:"transfer-actions",children:[v.jsx(nt,{type:"link",onClick:()=>f("left"),children:v.jsx(FS,{})}),v.jsx(nt,{type:"link",onClick:()=>f("right"),children:v.jsx(tY,{})})]}),v.jsxs("div",{className:"transfer-table",children:[v.jsxs("div",{className:"transfer-search",children:[v.jsx(nt,{type:"primary",onClick:E,children:"Tout (De)Selectionner"}),v.jsx(mt,{value:c,placeholder:"Rechercher",onChange:h,style:{marginLeft:"8px"}})]}),v.jsx($r,{columns:w,data:r,selectedRows:o,shiftMulti:!0,onRowSelect:g})]})]})]})})};JBe.propTypes={modUser:U.object,handleUpdateAuths:U.func};const WBe=({modUser:e})=>{const[t,r]=m.useState(!1),[n,a]=m.useState([]),i=Ye(c=>c.cti.components.users.data.modules),o=Ye(c=>c.cti.components.users.data.ctiusrdir),s=Ye(c=>c.cti.settings.data.session),l=Ye(c=>c.cti.components.users.data.users);m.useEffect(()=>{const c=i.reduce((u,d)=>[...u,...d.views],[]).filter(u=>u.essential==="true").map((u,d)=>({label:u.label,value:u.name,key:`${u.name}-${d}`}));a(c)},[e,i]);const A=c=>[{key:"-1",label:"Aucun",value:""},...c.filter(u=>!u.disabled&&u.referentUser==="").map(({key:u,name:d,profil:f})=>({key:u,label:d,value:f}))];return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Mot de passe"})}),v.jsx("div",{className:"user-editor-row-container ",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{name:"password",children:v.jsx(mt.Password,{onChange:()=>r(!0),visibilityToggle:t?!0:v.jsx("span",{}),disabled:(o==null?void 0:o.URL)!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_password)})})},"password")})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Rôles"})}),v.jsxs("div",{className:"user-editor-row-container ",children:[s.ISROLECTI&&v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{label:"CTI",name:"isCTI",valuePropName:"checked",children:v.jsx(Rr,{disabled:(o==null?void 0:o.URL)!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_role)})})},"isCTI"),v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{label:"Administrateur",name:"isadmin",valuePropName:"checked",children:v.jsx(Rr,{disabled:(o==null?void 0:o.URL)!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_role)})})},"isadmin"),v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{label:"Médecin",name:"ismedecin",valuePropName:"checked",children:v.jsx(Rr,{disabled:(o==null?void 0:o.URL)!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_role)})})},"ismedecin")]})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Vue d'accueil"})}),v.jsx("div",{className:"user-editor-row-container ",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{name:"homeview",children:v.jsx(Ir,{disabled:e.ismedecin!==!0,style:{width:300},options:n,showSearch:!0})})},"homeview")})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Utilisateur référent"})}),v.jsxs("div",{className:"user-editor-row-container ",children:[v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{name:"referentUser",children:v.jsx(Ir,{disabled:(o==null?void 0:o.URL)!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_aut),options:A(l),showSearch:!0})})},"referentUser"),v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{label:"Avec tableaux de bord et essentiels",name:"referentUser_withDashboard",valuePropName:"checked",children:v.jsx(Rr,{disabled:(o==null?void 0:o.URL)!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_aut)})})},"referentUser_withDashboard"),v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{label:"Avec favoris",name:"referentUser_withFavorite",valuePropName:"checked",children:v.jsx(Rr,{disabled:(o==null?void 0:o.URL)!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_aut)})})},"referentUser_withFavorite")]})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Niveau de sécurité"})}),v.jsxs("div",{className:"user-editor-row-container ",children:[v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{name:"security_level_id",children:v.jsx(Ir,{disabled:(o==null?void 0:o.URL)!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_aut),options:[{label:"Niveau de sécurité établissement",value:"-1"},{label:"Pas de sécurité d'accès aux données",value:"0"}],showSearch:!0})})},"security_level_id"),v.jsx("div",{className:"user-editor-field",children:v.jsx(_e.Item,{label:"Masquer les noms",name:"hidenames",valuePropName:"checked",children:v.jsx(Rr,{})})},"hidenames")]})]})]})};WBe.propTypes={modUser:U.object};const XBe=({modUser:e,moduleIndex:t,moduleKey:r,moduleLabel:n,handleUserHasChanged:a,handleUpdateAuths:i,handleChangeAllData:o})=>{const s=Ye(k=>k.cti.components.users.data.modules),[l,A]=m.useState(!1),[c,u]=m.useState([]),[d,f]=m.useState([]),[h,g]=m.useState(),[p,E]=m.useState([]),[y,C]=m.useState(!1),[w,B]=m.useState(!1),[M,I]=m.useState("");m.useEffect(()=>{if(s&&s[t]&&Object.keys(e)&&e.auths){u(s[t].views);let k=!1,O=r;r==="Outils"&&(O="tools");let P=e.auths.find(z=>z.module===`iCTI_${O.toLowerCase()}`);if(P&&P.granted==="full"&&(k=!0),A(k),r==="RH"){const z=e.auths.find(j=>j.name===`iCTI_${r.toLowerCase()}`);z&&(B(z.dataProfileGranted==="full"),I(z.dataProfile==="NONE"?"":z.dataProfile))}if(r==="ECO"){const z=e.auths.find(j=>j.name===`iCTI_${r.toLowerCase()}`);z&&(B(z.dataGranted==="full"),I(z.dataRule1??""))}}},[s,e]),m.useEffect(()=>{if(y){const k=c.filter(O=>O.label.toLowerCase().includes("favori"));f(k)}else f(c)},[c,y]),m.useEffect(()=>{if(e&&e.auths){const k=e.auths.filter(P=>P.type==="view"&&P.module&&P.module.toLowerCase()===r.toLowerCase()).map(P=>P.name),O=d.filter(P=>k.includes(P.name)).map(P=>P.key);g(O)}},[e,d]);const S=(k,O)=>{let P=[...k,...O];E(P)},R=(k,O,P)=>{const z="iCTI_"+r.toLowerCase(),j=F(P);i(z,j,O),a(!0)},b=(k,O)=>O.label.toLowerCase().indexOf(k.toLowerCase())!==-1||O.file.toLowerCase().indexOf(k.toLowerCase())!==-1,Q=()=>{C(!y)},D=k=>{A(k.target.checked),a(!0,{[k.target.id]:k.target.checked??k.target.value})};function F(k){let O=[];return k.forEach(P=>{if(P!==void 0){const z=d.find(j=>j.key===P);O.push({type:"view",name:z.name,module:r,granted:"full"})}}),O}const N=k=>({label:v.jsxs("span",{className:"custom-item",children:[k.label," - ",v.jsx("small",{children:k.name})]})});return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"user-editor-section",children:v.jsxs("div",{className:"user-editor-row-container",children:[v.jsx("div",{className:"user-editor-field inline-chkbox",children:v.jsx(_e.Item,{valuePropName:"checked",label:"Autoriser à TOUTES les vues ?",children:v.jsx(Rr,{id:`${r}_full`,onChange:D,checked:l,disabled:e.ctiusrdir_synchronize_all||e.ctiusrdir_synchronize_aut})})}),(r==="RH"||r==="ECO")&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"user-editor-field inline-chkbox favoris-editor",children:[v.jsx("span",{children:"Autoriser à TOUTES les données:"}),v.jsx(Rr,{onChange:k=>o(k.target.checked,"",r),checked:w,disabled:e.ctiusrdir_synchronize_all||e.ctiusrdir_synchronize_aut})]}),v.jsxs("div",{className:"user-editor-field inline-chkbox favoris-editor",style:{display:w?"none":"flex"},children:[v.jsx("div",{style:{width:"180px"},children:"Profil de données:"}),v.jsx(mt,{onChange:k=>o(!1,k.target.value,r),value:M})]})]}),v.jsx("div",{className:"user-editor-field inline-chkbox",children:v.jsx(_e.Item,{label:"Autoriser aux favoris diffusés ?",name:`FAVORIS_PARTAGES_${r.toUpperCase()}`,valuePropName:"checked",children:v.jsx(Rr,{disabled:l||e.ctiusrdir_synchronize_all||e.ctiusrdir_synchronize_aut})})},`FAVORIS_PARTAGES_${r.toUpperCase()}`),v.jsxs("div",{className:"user-editor-field inline-chkbox favoris-editor",children:[v.jsx("span",{children:"Favoris"}),v.jsx(Va,{disabled:l,onChange:Q,checked:y})]},`${r}_show_favorites`)]})}),v.jsx("br",{}),v.jsx(OR,{showSearch:!0,dataSource:d,titles:[`Vues disponibles ${n}`,`Vues autorisées ${n}`],targetKeys:h,selectedKeys:p,onChange:R,onSelectChange:S,render:N,disabled:l,filterOption:b,listStyle:{width:"50%"},style:{width:"100%, height:'100%"}})]})};XBe.propTypes={modUser:U.object,moduleIndex:U.number,moduleKey:U.string,moduleLabel:U.string,handleUserHasChanged:U.func,handleUpdateAuths:U.func,handleChangeAllData:U.func};const qBe=({user:e,setUser:t,setAddUser:r,addUser:n,handleCloseEditor:a,handleUnsetUser:i})=>{const[o,s]=m.useState(!1),[l,A]=m.useState({}),c=Ye(I=>I.cti.components.users.data.modules),u=Pr(),[d]=_e.useForm();m.useEffect(()=>{const I=w();d.setFieldsValue(I),A({...I})},[e,c,n]);const f=()=>{const I=d.getFieldsValue(),S=ote({...w(),...I}),R=n?"*NEW":e.profil;u(yZ(S,R,"delete")),u(zb()),s(!1),i()},h=(I,S)=>{const R=Object.keys(I)[0],b=Object.values(I)[0];if(R.slice(-4)==="full"){let Q=R.split("_")[0],D={...l,auths:l.auths.map(N=>({...N}))};Q==="Outils"&&(Q="tools");let F=D.auths.find(N=>N.type==="module"&&(N.module===`iCTI_${Q.toLowerCase()}`||N.name===`iCTI_${Q.toLowerCase()}`));F?F.granted=b===!0?"full":"none":(F={type:"module",module:`iCTI_${Q.toLowerCase()}`,name:`iCTI_${Q.toLowerCase()}`,granted:b===!0?"full":"none"},D.auths=[...l.auths,F]),A(D)}else A({...l,[R]:b});s(!0)},g=()=>{s(!1),d.setFieldsValue(w())},p=(I,S)=>{s(I),S&&h(S)},E=(I,S,R)=>{s(!0);let b={...l},Q=l.auths.map(F=>({...F}));S.forEach(F=>{if(R==="add")Q.push(F);else if(R==="left"){let N=Q.findIndex(k=>({...k},F.type===k.type&&F.name===k.name&&F.module===k.module));N!==-1&&Q.splice(N,1)}else l!=null&&l.referentUser&&(F.refProfile="*user"),Q.push(F)});let D=Q.find(F=>F.type==="module"&&F.module===I);D&&(D.granted=Q.filter(F=>F.type==="view"&&F.module.toLowerCase()===I.replace("iCTI_","").toLowerCase()).length?"partial":"none"),b.auths=Q,A(b)},y=()=>{const I=d.getFieldsValue(),S=ote({...l,...I}),R=n?"*NEW":e.profil;u(yZ(S,R)),s(!1)},C=(I,S,R)=>{s(!0);let b=l.auths.map(D=>({...D})),Q=b.find(D=>D.name===`iCTI_${R.toLowerCase()}`);Q&&(R==="RH"?(Q.dataProfileGranted=I?"full":"partial",Q.dataProfile=S):R==="ECO"&&(Q.dataGranted=I?"full":"partial",Q.dataRule1=S)),A({...l,auths:b})};function w(I){let S={...e};for(let R in S)S[R]==="true"&&(S[R]=!0),S[R]==="false"&&(S[R]=!1);return S}const B=()=>{let I=[{label:"Définition",key:"0",className:"user-editor-tab scrollable-tab",children:v.jsx(WBe,{addUser:n,modUser:l})},{label:"Annuaire",key:"1",className:"user-editor-tab scrollable-tab",children:v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:"Options de synchronisation"}),v.jsx(JBe,{modUser:l,handleUpdateAuths:E})]})}];return c.length&&c.forEach(S=>{S.code!=="presentation"&&I.push({label:S.label,key:String(S.key+3),className:"user-editor-tab scrollable-tab",children:v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"user-editor-inline",children:[v.jsx("h2",{children:v.jsx("strong",{children:"Droits spécifiques à l'utilisateur"})}),v.jsx("div",{className:"subtitle",children:"(En plus des droits de utilisateur référent)"})]}),v.jsx(XBe,{modUser:l,moduleIndex:S.key,moduleKey:S.name,moduleLabel:S.label,handleUpdateAuths:E,handleUserHasChanged:p,handleChangeAllData:C})]})})}),I},M=I=>{const S=Qdt(I);t(S),r(!0)};return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"user-editor-container",children:[v.jsxs("div",{className:"user-editor-header",children:[v.jsx(nt,{icon:v.jsx(Ba,{}),disabled:n,onClick:f,children:"Supprimer"}),v.jsx(nt,{onClick:()=>M(e),icon:v.jsx(hh,{}),disabled:n,children:"Copier"}),v.jsx(nt,{disabled:!o,icon:v.jsx(La,{}),onClick:g,children:"Annuler"}),v.jsx(nt,{disabled:!o,icon:v.jsx(Gs,{}),onClick:y,children:"Valider"}),v.jsx(pr,{title:"Fermer",children:v.jsx(nt,{type:"link",onClick:a,children:v.jsx(ci,{})})})]}),v.jsx("div",{className:"user-editor-form",children:v.jsxs(_e,{form:d,onValuesChange:h,children:[v.jsxs("div",{className:"form-row",style:{display:"flex",flexDirection:"row"},children:[v.jsxs("div",{children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Code: "}),v.jsx(_e.Item,{name:"profil",children:v.jsx(mt,{disabled:!n})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Nom: "}),v.jsx(_e.Item,{name:"name",children:v.jsx(mt,{})})]})]}),v.jsxs("div",{style:{display:"contents"},children:[v.jsx("strong",{children:"Désactivé"}),v.jsx(_e.Item,{name:"disabled",valuePropName:"checked",children:v.jsx(Rr,{})})]})]}),c&&v.jsx("div",{className:"form-row",style:{display:"flex",flex:"3",minHeight:"1px"},children:v.jsx(xa,{items:B()})})]})})]})})};qBe.propTypes={user:U.object,handleCloseEditor:U.func};const lmt=[{title:"Code",dataKey:"profil"},{title:"Nom",dataKey:"name"},{title:"Roles",dataKey:"role"},{title:"Désactivé",dataKey:"disabled",dataGetter:({rowData:e})=>e.disabled===!0?"oui":"non"},{title:"Référent",dataKey:"referentUser"},{title:"Modules",dataKey:"granted_modules"},{title:"Dernière connexion",dataKey:"lastConnexion_datetime"}],ZBe=()=>{const[e,t]=m.useState(null),[r,n]=m.useState(!1),[a,i]=m.useState(!1),[o,s]=m.useState(""),l=Ye(w=>w.cti.components.users.data.users),A=Ye(w=>w.cti.components.users.loading),[c,u]=m.useState("100%"),d=Pr();m.useEffect(()=>{d(zb()),d(Qct())},[d]),m.useEffect(()=>{e?t(l.find(w=>w.key===e.key)):(t(null),n(!1))},[l]);const f=()=>{d(zb())},h=()=>{const w=Tdt();t(w),i(!0),n(!0),u("40%")},g=()=>{t(null),u("100%")},p=w=>{i(!1),t(l.find(B=>B.key===w)),n(!0),u("40%")},E=()=>{t(null),n(!1),u("100%")},y=w=>{u(c+w.height)},C=lmt.map(w=>({...w,width:200,resizable:!0,key:w.dataKey}));return v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Gestion des utilisateurs"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Gestion des utilisateurs"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",onClick:f,children:v.jsx(La,{})})}),v.jsx(nt,{type:"primary",icon:v.jsx(gNe,{}),onClick:h,children:"Ajouter un utilisateur"})]})]}),v.jsx("div",{className:"indicators-filters",children:v.jsx(Mi,{children:v.jsx(zn,{span:24,children:v.jsxs("div",{className:"indicators-search text-search",children:[v.jsx("span",{children:"Filtre"}),v.jsx(mt,{placeholder:"Recherche",value:o,onChange:w=>s(w.target.value),style:{width:300}})]})})})}),v.jsxs("div",{className:"component-content",children:[v.jsx(bh,{className:"tables-table",axis:"x",handleComponent:{bottom:v.jsx("div",{className:"resize-handle",style:{marginBottom:8},children:v.jsx("span",{children:"…"})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:"100%",height:c},onResizeStop:y,children:v.jsx($r,{columns:C,data:l.filter(w=>w.file&&w.file.toLowerCase().includes(o.toLowerCase())),selectedRow:e,onRowSelect:p,loading:A})}),v.jsx("div",{className:"users-editor",style:{display:r?"flex":"none"},children:v.jsx(qBe,{user:e,setUser:t,setAddUser:i,addUser:a,handleCloseEditor:E,handleUnsetUser:g})})]})]})};ZBe.propTypes={};const mv=e=>async function(t,r){t(Zu(!0));const{data:n}=await ri(`api/${e}/experts-controls/settings`,"get");n&&n.rules&&n.rules.forEach(a=>{const i=a==null?void 0:a.indicateurConditionId.filter(l=>l!==0),o=a==null?void 0:a.indicateurCondition2Id.filter(l=>l!==0),s=a==null?void 0:a.indicateurCondition3Id.filter(l=>l!==0);a.indicateurConditionId=i,a.indicateurCondition2Id=o,a.indicateurCondition3Id=s}),t(OPe(n)),t(Zu(!1))},$Be=(e,t,r=null)=>async function(n,a){n(Zu(!0));let i=`api/${e}/experts-data?page=${t.current}&size=${t.pageSize}`;r!=null&&r.selectedControl&&(i=`${i}&selectedControl=${r.selectedControl}`),r!=null&&r.showIgnored&&(i=`${i}&showIgnored=${r.showIgnored}`);const{data:o}=await ri(i,"get");n(zPe({...o,entities:o.entities.map((s,l)=>({...s,key:l}))})),n(Zu(!1))},Amt=(e,t)=>async function(r,n){r(Zu(!0)),e.oid?await ri(`api/${t.substring(5)}/experts-controls/${e.oid}`,"put",e,{"Content-Type":"application/json"}):await ri(`api/${t.substring(5)}/experts-controls`,"post",e,{"Content-Type":"application/json"}),r(mv(t.substring(5)))},cmt=(e,t)=>async function(r,n){r(Zu(!0)),await ri(`api/${t.substring(5)}/experts-controls/${e}`,"delete"),r(mv(t.substring(5)))},umt=(e,t,r,n)=>async function(a,i){a(Zu(!0)),await ri(`api/${r.substring(5)}/experts-data/${t}`,"post",e,{"Content-Type":"application/json"}),a($Be(r.substring(5),n))},dmt=(e,t)=>async function(r,n){r(Zu(!0)),await ri(`api/${t.substring(5)}/experts-controls/execute/${e}`,"put",{"Content-Type":"application/json"}),r(mv(t.substring(5)))},Xj=({text:e,style:t})=>v.jsx(Zn,{title:e,children:v.jsx(hde,{style:{marginLeft:8,marginRight:8,color:"#096dd9",fontSize:10,...t}})});Xj.propTypes={text:U.string};var DI={exports:{}},fmt=DI.exports,Nae;function hmt(){return Nae||(Nae=1,function(e,t){(function(r,n){e.exports=n()})(fmt,function(){return function(r,n,a){n.prototype.isBetween=function(i,o,s,l){var A=a(i),c=a(o),u=(l=l||"()")[0]==="(",d=l[1]===")";return(u?this.isAfter(A,s):!this.isBefore(A,s))&&(d?this.isBefore(c,s):!this.isAfter(c,s))||(u?this.isBefore(A,s):!this.isAfter(A,s))&&(d?this.isAfter(c,s):!this.isBefore(c,s))}}})}(DI)),DI.exports}var gmt=hmt();const pmt=Nr(gmt);Nn.extend(pmt);const vmt="ignore",mmt="handle",Emt="reset",eMe=({module:e})=>{const[t,r]=m.useState({current:1,pageSize:100}),[n,a]=m.useState([]),[i,o]=m.useState(Nn()),[s,l]=m.useState(),[A,c]=m.useState(!1),[u,d]=m.useState([]),[f,h]=m.useState(0),g=Ye(b=>b.cti.components.expert.alerts),p=Ye(b=>b.cti.components.expert.data),E=Ye(b=>b.cti.components.expert.loading),y=Pr(),C=Ye(b=>b.cti.ui.primaryColor);if(m.useEffect(()=>{y($Be(e.substring(5),t,{showIgnored:A,selectedControl:s}))},[y,e,t,A,s]),m.useEffect(()=>{y(mv(e.substring(5)))},[y,e]),m.useEffect(()=>{h(g.total)},[g]),m.useEffect(()=>{if(g.entities.length){let b=g.entities.map(Q=>({...Q}));if(i){const Q=i.startOf("month"),D=i.endOf("month");b=b.filter(F=>Nn(F.dateSignalement).isBetween(Q,D))}d(b)}},[g,i]),!p.controls.length)return v.jsx(Ya,{});const w=(b,Q)=>{r({...t,pageSize:Q,current:b}),a([])},B=(b,Q)=>{b.stopPropagation()},M=b=>{y(umt(g.entities.filter(Q=>n.includes(Q.key)).map(Q=>Q.oid),b,e,t)),a([])},I=b=>{let Q=[...n];Array.isArray(b)?Q=Q.concat(b):Q.includes(b)?Q=Q.filter(D=>D!==b):Q.push(b),a([...new Set(Q)])},S=({columns:b,rowData:Q,rowIndex:D})=>{let F="";return n.includes(Q.key)&&(F+=" selected"),D%2===0&&(F+=" even-row"),Q.etat==="I"&&(F+=" alert-ignored"),Q.etat==="T"&&(F+=" alert-handled"),F},R=[{title:"Texte",dataKey:"texte",key:"texte",width:300,fixed:"left",flexGrow:2},{title:"Element",dataKey:"itemId",key:"item",width:300,dataGetter:({rowData:b})=>{const Q=p.items.find(D=>Number(D.oid)===Number(b.itemId));return Q!=null&&Q.nom?`${Q.nom} ${Q.prenom} (${Q.matricule})`:b.itemId}},{title:"Contrôle Expert",dataKey:"expertControleId",key:"control",width:200,dataGetter:({rowData:b})=>{const Q=p.controls.find(D=>Number(D.oid)===Number(b.expertControleId));return v.jsx(Zn,{title:(Q==null?void 0:Q.texte)??b.expertControleId,children:(Q==null?void 0:Q.code)??b.expertControleId})}},{title:"Date evenement",dataKey:"dateEvenement",key:"date_evt",width:200,dataGetter:({rowData:b})=>Nn(b.dateEvenement).format("DD/MM/YYYY")},{title:"Date signalement",dataKey:"dateSignalement",key:"date_sgt",width:200,dataGetter:({rowData:b})=>Nn(b.dateSignalement).format("DD/MM/YYYY")},{title:"Etat",dataKey:"etat",key:"etat",width:80,dataGetter:({rowData:b})=>{switch(b.etat){case"":return v.jsx(BNe,{twoToneColor:C});case"I":return null;case"T":return v.jsx(cy,{twoToneColor:"grey"});default:return null}}},{title:"Action",dataKey:"action",key:"action",width:100,align:"center",dataGetter:({rowData:b})=>v.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsx(nt,{style:{height:20,width:60,marginTop:2,padding:"0px 8px",position:"relative"},disabled:!0,onClick:Q=>B(Q,b.itemId),children:v.jsx(DA,{style:{fontSize:10,position:"absolute",top:"4px",left:"24px"}})})})}];return v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Alertes Expert"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Alertes Expert"}),v.jsxs("div",{className:"header-actions",children:[v.jsx("div",{className:"expert-alert-filter-label",children:"Afficher les ignorés:"}),v.jsx(Va,{checked:A,onChange:b=>c(b)}),v.jsx("div",{className:"expert-alert-filter-label",children:"Contrôle:"}),v.jsx(Ir,{value:s,onChange:b=>l(b),allowClear:!0,options:p.controls.filter(b=>b.code).map(b=>({value:b.oid,label:`${b.code} ${b.texte}`})),style:{width:200}}),v.jsx(Xj,{text:"Filtre sur le contrôle seléctionné"}),v.jsx("div",{className:"expert-alert-filter-label",children:"Date:"}),v.jsx(lv,{value:i,picker:"month",onChange:b=>o(b),dateRender:b=>v.jsx("div",{className:"ant-picker-cell-inner",style:{fontSize:"12px"},children:b.date()})}),v.jsx(Xj,{text:"Filtre sur la date de signalement (mois seléctionné)"}),v.jsx(nt,{disabled:!n.length,onClick:()=>M(vmt),children:"Ignorer"}),v.jsx(nt,{disabled:!n.length,onClick:()=>M(mmt),children:"Traiter"}),v.jsx(nt,{disabled:!n.length,onClick:()=>M(Emt),children:"Remettre en service"})]})]}),v.jsxs("div",{className:"component-content",children:[v.jsx("div",{className:"expert-alerts-table",children:v.jsx($r,{selectedRows:n,shiftMulti:!0,onRowSelect:I,fixed:!1,loading:E,data:u,columns:R,overideGetRowClassName:S})}),v.jsx("div",{className:"expert-alerts-pagination",children:v.jsx(z5,{current:t.current,pageSize:t.pageSize,total:f,onChange:w})})]})]})};eMe.propTypes={module:U.string};const pU=e=>async function(t,r){t(Xp(!0));const n=await ri(`api/${e}/divers`,"get");t(NPe(n.data)),t(Xp(!1))},ymt=(e,t)=>async function(r,n){r(Xp(!0)),await ri(`api/${t}/divers/${e.code}`,"put",e,{"Content-Type":"application/json"}),r(pU(t)),r(Xp(!1))},Cmt=(e,t)=>async function(r,n){r(Xp(!0)),await ri(`api/${t}/divers`,"post",e,{"Content-Type":"application/json"}),r(pU(t)),r(Xp(!1))},tMe=({indicators:e,visible:t,onCancel:r,onOk:n})=>{const[a,i]=m.useState(""),[o,s]=m.useState();m.useEffect(()=>{s(),i("")},[t]);const l=A=>{const c=e.find(u=>u.oid===A);s(c)};return v.jsx(va,{open:t,zIndex:2e3,onCancel:r,onOk:()=>n(o),title:"Choisir un indicateur",width:"60vw",children:v.jsxs("div",{className:"cti-indicator-modal",children:[v.jsx("div",{className:"indicator-modal-search",children:v.jsx(mt,{placeholder:"Recherche",value:a,onChange:A=>i(A.target.value)})}),v.jsx("div",{className:"indicator-modal-table",children:v.jsx($r,{rowKey:"oid",fixed:!1,columns:qgt,selectedRow:o,onRowSelect:l,data:e.filter(A=>A.code.toLowerCase().includes(a.toLowerCase())||A.texte.toLowerCase().includes(a.toLowerCase()))})})]})})};tMe.propTypes={indicators:U.array,visible:U.bool,onCancel:U.func,okOk:U.func};const{Title:kae,Text:wmt}=md,rMe=({showModal:e,selectedControl:t,handleShowModal:r,module:n})=>{const[a,i]=m.useState(!1),[o,s]=m.useState([]),[l,A]=m.useState({}),[c,u]=m.useState([]),[d,f]=m.useState(!1),h=Ye(P=>P.cti.ui.primaryColor),g=Ye(P=>P.cti.settings.data.session),p=Pr(),E=Ye(P=>P.cti.components.expert.data),[y]=_e.useForm(),[C]=_e.useForm(),[w]=_e.useForm(),[B]=_e.useForm(),[M]=_e.useForm(),[I]=_e.useForm(),S=te.useMemo(()=>[C,w,B,M,I],[C,w,B,M,I]);m.useEffect(()=>{t&&(y.setFieldsValue(t),f(t.isCti)),t&&!Object.keys(t).length&&y.resetFields()},[t,y]),m.useEffect(()=>{if(t){const P=E.rules.filter(L=>Number(L.expertControleId)===t.oid).sort((L,K)=>L.oid-K.oid),z=lo(P,L=>L.isCti);let j=[],V=[];if(z.true)for(let L=0;L<3;L++)z.true[L]&&z.true[L].isCti?(j[L]=z.true[L],V.push(z.true[L].indicateur3Id&&z.true[L].indicateur3Id!=="0"?3:z.true[L].indicateur2Id&&z.true[L].indicateur2Id!=="0"?2:1)):V.push(1);if(z.false)for(let L=0;L<2;L++)z.false[L]?(j[L+3]=z.false[L],V.push(z.false[L].indicateur3Id&&z.false[L].indicateur3Id!=="0"?3:z.false[L].indicateur2Id&&z.false[L].indicateur2Id!=="0"?2:1)):V.push(1);s(V),u(j)}},[t,E]),m.useEffect(()=>{for(let P=0;P<5;P++){const z=S[P];c[P]?z.setFieldsValue(c[P]):z.resetFields()}},[c,S]);const R=P=>{let z=[...o];z[P]=(z[P]??0)+1,s(z)},b=async()=>{let P=[];await y.validateFields();for(let j=0;j<=4;j++){let V=S[j].getFieldsValue(!0);j>2?V.isCti=!1:V.isCti=!0,P.push(V)}const z={...y.getFieldsValue(!0),rules:P};p(Amt(z,n)),r()},Q=(P,z)=>{const j=S[P],V=j.getFieldsValue(),L=o[P]-1;if(z===0&&L===0)j.setFieldsValue({...V,indicateurId:"",indicateurConditionId:[]});else if(z===L){j.setFieldsValue({...V,[`indicateur${z+1}Id`]:"",[`indicateurCondition${z+1}Id`]:[]});let K=[...o];K[P]=K[P]-1,s(K)}else{let K={...V};if(z===0){K={...K,indicateuId:V.indicateur2Id,indicateurConditionId:V.indicateurCondition2Id};for(let Y=L;Y>z;Y--)K={...K,[`indicateur${Y+1}Id`]:V[`indicateur${Y+2}Id`],[`indicateurCondition${Y+1}Id`]:V[`indicateurCondition${Y+2}Id`],[`indicateur${Y+2}Id`]:"",[`indicateurCondition${Y+2}Id`]:[]}}else for(let Y=L;Y>=z;Y--)K={...K,[`indicateur${Y+1}Id`]:V[`indicateur${Y+2}Id`],[`indicateurCondition${Y+1}Id`]:V[`indicateurCondition${Y+2}Id`],[`indicateur${Y+2}Id`]:"",[`indicateurCondition${Y+2}Id`]:[]};j.setFieldsValue(K);let J=[...o];J[P]=J[P]-1,s(J)}},D=(P,z)=>{A({rule:P,indicator:z}),i(!0)},F=P=>{const z=S[l.rule],j=l.indicator===0?"indicateurId":`indicateur${l.indicator+1}Id`;z.setFieldsValue({expertControleId:t.oid,...z.getFieldsValue(),[j]:P.oid}),i(!1)},N=P=>{const z=S[P];let j=[];const V=o[P]??0;for(let L=0;L<V;L++){const K=`Indicateur ${L+1}`;j.push(v.jsxs(Mi,{children:[v.jsx(zn,{span:22,children:v.jsxs("div",{className:"expert-rule-indicator",children:[L>0&&v.jsx(Ml,{className:"expert-rule-divider"}),v.jsxs("div",{className:"expert-rule-indicator-container",children:[v.jsx(Mi,{children:v.jsxs(zn,{span:12,children:[v.jsx(_e.Item,{className:"form-item-font",label:"Indicateur",name:L===0?"indicateurId":`indicateur${L+1}Id`,hidden:!0,children:v.jsx(mt,{})}),v.jsx(_e.Item,{shouldUpdate:!0,children:J=>{const Y=E.indicators.find(W=>W.oid===Number(J.getFieldValue(L===0?"indicateurId":`indicateur${L+1}Id`)));return v.jsx(_e.Item,{className:"form-item-font",label:K,shouldUpdate:!0,children:v.jsx(mt.Search,{className:"form-item-widht",name:"searchIndicator",label:"searchIndicator",value:(Y==null?void 0:Y.texte)??"Choisir un indicateur",readOnly:!0,onSearch:()=>D(P,L)})})}})]})}),v.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[v.jsx(_e.Item,{className:"form-item-font",label:"Opérateur des conditions",name:L===0?"conditionsOperateur":`conditionsOperateur${L+1}`,children:v.jsxs(Vu.Group,{children:[v.jsx(Vu,{value:"AND",children:"Toutes les conditions doivent être vraies (ET)"}),v.jsx(Vu,{value:"OR",children:"Au moins une des conditions doit être vraie (OU)"})]})}),v.jsx("div",{children:v.jsx(_e.Item,{className:"form-item-font",label:"Conditions",name:L===0?"indicateurConditionId":`indicateurCondition${L+1}Id`,children:v.jsx(wa,{showSearch:!0,style:{width:"100%"},allowClear:!0,treeData:E.conditions,multiple:!0,treeNodeFilterProp:"title"})})}),v.jsx(_e.Item,{className:"form-item-font",label:"Formule",name:L===0?"formula":`formula${L+1}`,children:v.jsx(mt,{style:{width:"100%"},placeholder:"Valeur par défault: <> 0"})})]})]})]},L)}),v.jsx(zn,{span:2,children:v.jsx("div",{className:"expert-rule-delete-button",children:v.jsx(Zn,{placement:"leftTop",title:"Supprimer la règle",children:v.jsx(nt,{type:"danger",icon:v.jsx(Ba,{}),onClick:()=>Q(P,L)})})})})]}))}return v.jsxs(v.Fragment,{children:[v.jsx(_e,{name:`rule_${isFinite}`,form:z,children:v.jsxs("div",{className:"expert-rule-container",children:[v.jsx("div",{className:"expert-rule-header",children:v.jsx("div",{className:"expert-rule-label",children:"Si toutes les conditions de cette règle sont remplies"})}),v.jsxs("div",{className:"expert-rule",children:[j,v.jsx(Ml,{style:{marginTop:0,marginBottom:12}}),v.jsx(_e.Item,{className:"form-item-font",label:"Niveau de détail",name:"dataType",children:v.jsx(Ir,{options:E.levels})})]})]})}),v.jsx(Mi,{children:v.jsx(zn,{span:24,children:v.jsx("div",{className:"expert-rule-add-button",children:v.jsx(nt,{type:"primary",disabled:o[P]>=3,onClick:()=>R(P),children:"Ajouter un indicateur"})})})})]})},k=te.useCallback((P,z)=>c[P]&&c[P].indicateurId&&c[P].indicateurId!=="0"?v.jsx(Pf,{dot:!0,color:h,style:{right:-4,top:4},children:z}):z,[c]),O=te.useCallback(()=>{let P=[];for(let z=0;z<5;z++)c[z]&&c[z].indicateurId&&c[z].indicateurId!=="0"&&P.push(`Règle ${z+1}`);return P.join(" ou ")},[c]);return v.jsxs(v.Fragment,{children:[v.jsx(tMe,{indicators:E.indicators,visible:a,onCancel:()=>i(!1),onOk:F}),v.jsx(va,{title:"Ajouter/Modifier un contrôle expert",open:e,onCancel:r,onOk:b,okText:"Enregistrer",width:"53vw",className:"expert-settings-modal",children:v.jsxs(_e.Provider,{children:[v.jsxs(_e,{form:y,children:[v.jsx(kae,{level:3,children:"Définition"}),v.jsx(Ml,{style:{marginTop:0}}),v.jsxs(Mi,{children:[v.jsx(zn,{span:12,children:v.jsxs("div",{className:"expert-settings-containet",children:[v.jsx(_e.Item,{className:"form-item-font",label:"Code",name:"code",rules:[{required:!0,message:"Code requis"}],children:v.jsx(mt,{className:"form-item-widht"})}),v.jsx(_e.Item,{className:"form-item-font",label:"Texte",name:"texte",rules:[{required:!0,message:"Texte requis"}],children:v.jsx(mt,{className:"form-item-widht"})}),v.jsx(_e.Item,{className:"form-item-font",label:"Gravité",name:"graviteId",children:v.jsx(Ir,{className:"form-item-widht",options:[{label:"Information",value:"0"},{label:"Avertissement",value:"5"},{label:"Erreur",value:"9"}]})}),v.jsx(_e.Item,{className:"form-item-font",label:"A partir de",name:"startPeriode",children:v.jsx(Ir,{className:"form-item-widht",options:[{label:"",value:""},{label:"Année en cours",value:"A0"},{label:"A - 1",value:"A1"},{label:"A - 2",value:"A2"},{label:"12 derniers mois",value:"M12"},{label:"24 derniers mois",value:"M24"}]})})]})}),v.jsx(zn,{span:12,children:v.jsxs("div",{className:"expert-settings-column",children:[g.ISROLECTI&&v.jsx(_e.Item,{className:"form-item-font",label:"Contrôle expert CTI",name:"isCti",valuePropName:"checked",style:{width:"450px"},rules:[{required:!0,message:"Type de contrôle requis"}],children:v.jsx(Rr,{size:"small"})}),v.jsx(_e.Item,{className:"form-item-font",label:"Contrôle expert actif",name:"isActive",valuePropName:"checked",children:v.jsx(Rr,{})}),v.jsx(_e.Item,{className:"form-item-font",label:"Contrôle expert masqué",name:"isHide",valuePropName:"checked",children:v.jsx(Rr,{})})]})})]}),v.jsx(Mi,{children:v.jsx(zn,{span:24,children:v.jsx(_e.Item,{className:"form-item-font",label:"Description",name:"description",children:v.jsx(mt.TextArea,{style:{maxWidth:800}})})})})]}),d&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"expert-rule-title-header",children:[v.jsx(kae,{level:3,children:"Règles"}),v.jsx(wmt,{type:"secondary",style:{marginLeft:12},children:`Toutes les règles sont exclusives (${O()})`})]}),v.jsx(Ml,{style:{marginTop:0}}),v.jsx(xa,{defaultActiveKey:["0"],items:["Règle CTI 1","Règle CTI 2","Règle CTI 3","Règle Établissement 1","Règle Établissement 2"].map((P,z)=>({label:k(z,P),key:String(z),children:N(z)}))})]})]})})]})};rMe.propTypes={showModal:U.bool,handleShowModal:U.func,selectedControl:U.object,module:U.string};const nMe=({module:e})=>{const[t,r]=m.useState(!1),[n,a]=m.useState(),i=Ye(M=>M.cti.components.expert.loading),o=Ye(M=>M.cti.components.expert.data),s=Pr(),[l,A]=m.useState({code:"",valeur:!0}),c=Ye(M=>M.cti.components.divers.data.divers),u=Ye(M=>M.cti.settings.data.session);m.useEffect(()=>{o.indicators.length||s(mv(e.substring(5)))},[s,e,o.indicators.length]),m.useEffect(()=>{c.length||s(pU(e.substring(5)))},[s,e,c]),m.useEffect(()=>{var M,I;if(Array.isArray(c)&&c.length){const S=c.filter(R=>R.code==="CONTROLSEXPERTACTIVE");Array.isArray(S)&&!S.length&&s(Cmt({code:"CONTROLSEXPERTACTIVE",valeur:"1"},e.substring(5))),A({code:(M=S[0])==null?void 0:M.code,valeur:((I=S[0])==null?void 0:I.valeur)==="1"})}},[c,s,e]);const d=M=>{s(dmt(M,e))},f=()=>{r(!0),a({})},h=()=>{r(!t)},g=M=>{a(M),r(!0)},p=M=>{s(cmt(M.oid,e))},E=()=>{s(mv(e.substring(5)))},y=M=>{const I={code:l==null?void 0:l.code,valeur:M?1:0};s(ymt(I,e.substring(5)))},w=[{title:"Code",dataKey:"code"},{title:"Texte",dataKey:"texte",flexGrow:2,flexShrink:2},{title:"Contrôle expert CTI",dataKey:"isCti",align:"center",width:100,dataGetter:({rowData:M})=>v.jsx(Rr,{disabled:!0,checked:M.isCti})},{title:"Date dernière éxecution",dataKey:"lastExecutionTimestamp",align:"right",dataGetter:({rowData:M})=>M.lastExecutionTimestamp?Nn(M.lastExecutionTimestamp).format("DD/MM/YYYY"):"Jamais exécuté"},{title:"Statut dernière éxecution",dataKey:"lastExecutionOk",align:"center",dataGetter:({rowData:M})=>M.lastExecutionOk?v.jsx(SS,{style:{color:"#52c41a",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}}):null},{title:"Nombre de signalements",dataKey:"lastExecutionCount",align:"right",width:150},{title:"Gravité",dataKey:"graviteId",align:"center",width:100,dataGetter:({rowData:M})=>{const I=S=>{switch(S==null?void 0:S.graviteId){case"5":return v.jsx(yde,{style:{color:"#faad14"}});case"9":return v.jsx(kl,{style:{color:"#ff4d4f"}});default:return v.jsx($3,{style:{color:"#1677ff"}})}};return v.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:I(M)})}},{title:"Action",dataKey:"action",width:170,minWidth:140,align:"center",dataGetter:({rowData:M})=>v.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:[v.jsx(pr,{title:"Modifier",children:v.jsx(nt,{onClick:()=>g(M),disabled:M.isCti&&!u.ISROLECTI,children:v.jsx(QS,{})})}),v.jsx(ga,{onConfirm:()=>d(M.oid),title:"Etes-vous sûr de vouloir exécuter ce contrôle ?",children:v.jsx(pr,{title:"Executer",children:v.jsx(nt,{style:{marginLeft:8},children:v.jsx(Wf,{})})})}),v.jsx(ga,{onConfirm:()=>p(M),title:"Etes-vous sûr de vouloir supprimer ce contrôle ?",disabled:M.isCti&&!u.ISROLECTI,children:v.jsx(pr,{title:"Supprimer",children:v.jsx(nt,{type:"danger",style:{marginLeft:8},disabled:M.isCti&&!u.ISROLECTI,children:v.jsx(Ba,{})})})})]})}].map(M=>({width:200,key:M.dataKey,...M})),B=({columns:M,rowData:I,rowIndex:S})=>{let R="expert-row";return I.isActive||(R+=" expert-control-inactive"),R};return v.jsxs("div",{className:"expert-settings",children:[v.jsx(rMe,{showModal:t,selectedControl:n,handleShowModal:h,module:e}),v.jsx(ka,{children:v.jsx("title",{children:"iCTI | Paramètres contrôle expert"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Paramètres contrôle expert"}),v.jsxs("div",{className:"header-actions",children:[v.jsxs("div",{children:[v.jsx("span",{className:"switch-label",children:"Activer tous les contrôles : "}),v.jsx(Va,{checked:l==null?void 0:l.valeur,onChange:y})]}),v.jsx(pr,{title:"Actualiser",children:v.jsx(nt,{type:"link",onClick:E,children:v.jsx(La,{})})}),v.jsx(nt,{type:"primary",onClick:f,icon:v.jsx(fde,{}),children:"Ajouter un contrôle expert"}),v.jsx(nt,{disabled:!u.ISROLECTI,onClick:()=>d(0),icon:v.jsx(Wf,{}),children:"Exécuter toutes les règles"})]})]}),v.jsx("div",{className:"component-content",children:v.jsx($r,{loading:i,fixed:!1,columns:w,rowKey:"oid",data:o.controls.filter(M=>M.code!=="**"),rowHeight:40,rowClassName:B})})]})};nMe.propTypes={module:U.string};const aMe=({componentName:e,module:t,item:r})=>{const n=()=>{let a=e;switch((r.swf===""||r.jisComponent)&&(a=r.jisComponent),a){case"synchronize":return r.swfData.includes("|")?v.jsx(Xpt,{module:t,swfData:r.swfData}):v.jsx(qpt,{module:t,year:r.swfData});case"listes-manager":return v.jsx(Apt,{module:t});case"classes-manager":return v.jsx(tdt,{module:t});case"indicateurs-manager":return v.jsx(tpt,{module:t});case"rapports-manager":return v.jsx(Hpt,{module:t});case"import":return v.jsx(Rwe,{softcode:t});case"tables-manager":case"conso-manager":return v.jsx(VBe,{module:t,item:r});case"import-mat-2-a":return v.jsx(Uj,{module:"mco"});case"cti-pmsissr-import-mat-2-a":return v.jsx(Uj,{module:"ssr"});case"favorites-manager":return v.jsx(Ddt,{});case"licence-manager":return v.jsx(Lwe,{});case"password-manager":return v.jsx(Gwe,{});case"users-manager":return v.jsx(ZBe,{});case"cti-pmsissr-import-valo-ssr":return v.jsx(Twe,{});case"pmsiSimulation":return v.jsx(sBe,{year:r.swfData});case"presentation-manager":return v.jsx(gCe,{});case"expertSettings":return v.jsx(nMe,{module:t});case"ExpertControlsAlerts":return v.jsx(eMe,{module:t});default:return v.jsx(vd,{icon:v.jsx(Tv,{}),title:"Désolé ce composant n'existe pas encore... Patience il arrive !"})}};return v.jsx("div",{className:"cti-component",children:n()})};aMe.propTypes={componentName:U.string,module:U.string,item:U.object};const iMe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M19.238 23.438a.8.8 0 0 1-.458-.147l-6.28-4.553-6.28 4.553a.781.781 0 0 1-1.199-.883l2.45-7.254L1.123 10.8a.782.782 0 0 1 .44-1.426h7.83l2.364-7.273a.781.781 0 0 1 1.486 0l2.363 7.275h7.832a.781.781 0 0 1 .441 1.426l-6.35 4.35 2.448 7.253a.78.78 0 0 1-.739 1.032"})}),oMe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M23.875 9.813h-8.398L12.937 2l-2.539 7.813H2L8.836 14.5l-2.637 7.813 6.739-4.883 6.738 4.883-2.637-7.813z"})}),Bmt=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M12.772 4.945a.39.39 0 0 0-.54 0l-8.99 8.588a.4.4 0 0 0-.12.282l-.002 8.06a1.56 1.56 0 0 0 1.563 1.563h4.692a.78.78 0 0 0 .781-.782v-6.64a.39.39 0 0 1 .39-.391h3.907a.39.39 0 0 1 .39.39v6.641a.78.78 0 0 0 .782.782h4.69a1.563 1.563 0 0 0 1.563-1.563v-8.06a.4.4 0 0 0-.12-.282z"}),v.jsx("path",{fill:"currentColor",d:"m23.97 11.921-3.652-3.494V3.125a.78.78 0 0 0-.781-.781h-2.344a.78.78 0 0 0-.781.781v1.563l-2.828-2.705c-.265-.267-.659-.42-1.084-.42-.424 0-.816.153-1.081.42L1.033 11.92c-.303.293-.342.775-.065 1.093a.78.78 0 0 0 1.132.052l10.132-9.682a.39.39 0 0 1 .54 0l10.132 9.682a.78.78 0 0 0 1.103-.022c.3-.31.275-.823-.037-1.122"})]}),Mmt=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 26 25",...e,children:[v.jsxs("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,clipPath:"url(#home-outline_svg__a)",children:[v.jsx("path",{d:"M4.87 10.352v11.523a.78.78 0 0 0 .782.781h4.687v-6.64a1.17 1.17 0 0 1 1.172-1.172h3.906a1.17 1.17 0 0 1 1.172 1.172v6.64h4.688a.78.78 0 0 0 .781-.781V10.352"}),v.jsx("path",{d:"M24.402 12.5 13.996 2.54c-.244-.259-.815-.262-1.063 0L2.527 12.5M20.496 8.74V3.125h-2.344v3.37"})]}),v.jsx("defs",{children:v.jsx("clipPath",{id:"home-outline_svg__a",children:v.jsx("path",{fill:"#fff",d:"M.964 0h25v25h-25z"})})})]}),xmt=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:130,height:38,fill:"none",...e,children:[v.jsx("g",{fill:"#F2F2F2",opacity:.92,children:v.jsx("path",{d:"M20.672 29.03q-1.401.842-2.922 1.272a11.7 11.7 0 0 1-3.173.428q-4.931 0-7.813-3.192t-2.882-8.654q0-5.479 2.882-8.67t7.813-3.19q1.653 0 3.173.43 1.521.426 2.922 1.27v4.727q-1.415-1.116-2.79-1.637a8.1 8.1 0 0 0-2.895-.52q-2.724-.001-4.283 2.02t-1.56 5.57q0 3.534 1.56 5.557 1.56 2.02 4.283 2.02a8.1 8.1 0 0 0 2.895-.522q1.376-.52 2.79-1.637zM23.15 7.438h18.192v4.452h-6.544v18.396h-5.09V11.89H23.15zM49.049 7.438h-5.09v22.848h5.09z"})}),v.jsx("path",{fill:"#FF8801",d:"M119.276 7.048a.8.8 0 0 1 .214-.24.7.7 0 0 1 .274-.132q.158-.032.384-.034.226.001.541.055.367.052.589.145.224.083.304.2a.29.29 0 0 1 .053.24.53.53 0 0 1-.149.248l-2.773 3.165a1.4 1.4 0 0 1-.217.213.7.7 0 0 1-.213.117c-.079.02-.177.034-.297.034s-.267-.02-.442-.048a1.8 1.8 0 0 1-.453-.117c-.11-.048-.186-.096-.228-.158a.21.21 0 0 1-.03-.2.9.9 0 0 1 .144-.275z"}),v.jsx("path",{fill:"#fff",d:"M66.053 8.555v2.91q-1.468-.807-2.77-1.21c-.867-.262-1.706-.4-2.514-.4q-2.106 0-3.254.95c-.758.626-1.137 1.527-1.137 2.683q0 1.467.753 2.222.765.733 2.885 1.197l1.557.365q2.885.64 4.25 2.25c.92 1.06 1.379 2.49 1.379 4.28q0 3.211-1.864 4.864-1.85 1.65-5.437 1.651-1.353 0-2.885-.35a19.3 19.3 0 0 1-3.152-1.053v-3.07c1.047.675 2.072 1.191 3.076 1.535a9.1 9.1 0 0 0 2.96.516c1.473 0 2.61-.33 3.41-1.004q1.198-1.003 1.198-2.862c0-1.088-.288-1.934-.867-2.546q-.855-.91-2.821-1.376l-1.57-.351q-2.884-.66-4.174-2.085-1.29-1.415-1.289-3.942 0-2.93 1.774-4.61 1.787-1.684 4.915-1.686 1.34.002 2.73.282 1.392.28 2.847.84M77.618 21.572q-2.847.002-3.944.757-1.098.751-1.098 2.566c0 .97.272 1.734.817 2.305q.83.847 2.246.847c1.302 0 2.345-.537 3.127-1.597q1.187-1.61 1.187-4.272v-.606zm4.684-1.121v9.44h-2.349v-2.512q-.804 1.507-2.003 2.23-1.2.71-2.936.708c-1.464 0-2.63-.468-3.497-1.417q-1.29-1.433-1.29-3.826 0-2.796 1.608-4.21 1.622-1.416 4.826-1.418h3.292v-.268q0-1.877-1.072-2.897-1.06-1.032-2.987-1.032-1.224-.002-2.386.337a8.7 8.7 0 0 0-2.234 1.025v-2.51q1.29-.58 2.502-.86a9.8 9.8 0 0 1 2.36-.297q3.103-.001 4.634 1.865 1.532 1.856 1.532 5.642M99.035 19.907v9.984h-2.348V19.99c0-1.562-.264-2.739-.792-3.516q-.791-1.164-2.374-1.163-1.901 0-3 1.404c-.731.936-1.097 2.208-1.097 3.825v9.35h-2.362V13.344h2.362v2.574q.842-1.495 1.978-2.236 1.15-.735 2.642-.737 2.463 0 3.728 1.775 1.263 1.753 1.263 5.188M106.068 8.644v4.7h4.838v2.112h-4.838v8.985q0 2.024.473 2.601c.323.385.974.571 1.952.571h2.413v2.278h-2.413c-1.812 0-3.063-.386-3.752-1.17-.69-.785-1.034-2.216-1.034-4.28v-8.985h-1.724v-2.113h1.724V8.644zM126.234 20.94v1.327h-10.798q.153 2.81 1.455 4.287 1.315 1.457 3.651 1.458 1.352.002 2.616-.378a11 11 0 0 0 2.527-1.156v2.573c-.842.413-1.706.73-2.59.943-.885.22-1.784.323-2.694.323-2.28 0-4.088-.764-5.424-2.305q-1.992-2.301-1.992-6.233 0-4.067 1.889-6.44 1.903-2.395 5.119-2.395c1.923 0 3.442.716 4.557 2.16q1.683 2.139 1.684 5.835m-2.348-.799q-.026-2.23-1.085-3.564c-.698-.88-1.626-1.328-2.783-1.328q-1.965-.001-3.153 1.287c-.782.853-1.233 2.064-1.352 3.619z"})]});var Imt=Ege();const bmt=Nr(Imt),Smt=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 26",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M20.313 11.303v9.51a2.344 2.344 0 0 1-2.344 2.343H7.03a2.344 2.344 0 0 1-2.343-2.343V5.188A2.344 2.344 0 0 1 7.03 2.844h4.822c.414 0 .812.164 1.104.457l6.898 6.898c.293.293.457.69.457 1.104Z"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12.5 3.234v5.86a1.563 1.563 0 0 0 1.563 1.562h5.859M8.594 14.562h7.812M8.594 18.47h7.812"})]});function Za({label:e,key:t,icon:r,children:n,type:a,className:i,disabled:o=!1,url:s,itemType:l,moduleid:A,originalitem:c}={}){return{label:e,key:t,icon:r,children:n,type:a,className:i,disabled:o,url:s,itemType:l,moduleid:A,originalitem:c}}const sMe=({siderIsCollapsed:e,selectedModuleKey:t})=>{const r=Pr(),n=_c(),a=Ye(k=>k.router),i=n.location.pathname,o=Ye(k=>k.cti.menu.modules),s=Ye(k=>k.cti.menu.item),l=Ye(k=>k.cti.globals),A=Ye(k=>k.cti.content),c=Ye(k=>k.cti.menu.loading),u=Ye(k=>k.cti.ui.menuMode),d=o[t]??null,[f,h]=m.useState(null),[g,p]=m.useState(null),[E,y]=m.useState(""),[C,w]=m.useState(null);let B=te.useMemo(()=>({}),[]);const M=m.useRef(),I=k=>{switch(k){case"synthese":return v.jsx(Smt,{className:"drawer__icon"});case"import":return v.jsx(GG,{className:"drawer__icon"});case"export":return v.jsx(GI,{className:"drawer__icon"});case"parametres":return v.jsx($_e,{className:"drawer__icon"});case"documentation":return v.jsx(nQe,{className:"drawer__icon"});default:return v.jsx(ZDe,{className:"drawer__icon"})}},S=te.useCallback((k,O,P=!1)=>{const z=E.split(/\s/).length>1?!1:P;if(k.children!==void 0){let j=[];for(const Y in k.children)if(k.children.hasOwnProperty(Y)){const W=k.children[Y];j.push(W)}const V=O+"/"+ih(k.label,{lower:!0}),L=V.replace(/\//g,"_"),K=P||Fee(k,E,["label"],!1),J=j.map(Y=>S(Y,V,K));return!z&&J.every(Y=>Y===null)?null:Za({label:k.label,disabled:k==null?void 0:k.disabled,key:L,icon:I(k.icon),children:J})}else if(z||Fee(k,E,["label","name"],!P)){let j=O+"/"+ih(k.label,{lower:!0}),V=k.view.split(".")[0],L=j.replace(/\//g,"_")+"_"+V,K="";k.swf?K=Ka(k.swf.replace(".swf","").replace("./","").split("_").pop()):k.jisComponent||Fa(8610,k.label),k.jisComponent&&(K=Ka(k.jisComponent)),k.swf!=="*CTI_view1"&&(L=j.replace(/\//g,"_")+"_"+K);const J=Ka(K.replace(".swf","").replace("./","").split("_").pop()),Y=k.swf.replace("./CTI_","");let W="component";return B[V]="/"+j+"/"+J,Y==="*CTI_view1"&&(W="view",B[V]="/"+j+"/"+V),Za({icon:N(k.icon),key:L,url:J,itemType:W,label:v.jsx(pr,{title:k.name,children:k.label}),moduleid:k.softCode,className:"cti-menu-item",disabled:k.disabled,originalitem:k})}else return null},[B,E]),R=te.useCallback((k,O)=>{let P=[];for(const z in k.children)if(k.children.hasOwnProperty(z)){const j=k.children[z];P.push(j)}return P.map(z=>{const j=S(z,O);return E!==""&&(j==null?void 0:j.type)===IA.SubMenu&&j.props.children.every(V=>V===null)?null:j})},[S,E]);m.useEffect(()=>{if(d&&!c){const k=R(d,t);if(w(k),E!==""){const O=qj(k);p(O)}}E===""&&(f!=null&&f.length)&&p(gK(f[0]))},[d,c,t,R,E,f]),m.useEffect(()=>{var k;return(k=M==null?void 0:M.current)!=null&&k.focus()&&(console.log(M),setTimeout(()=>{M.current.focus()},200)),[M,e]}),m.useEffect(()=>{const k=()=>{let O=i.slice(1).replace(/\//g,"_");(f===null||O!==f[0])&&h([O]);let P=gK(O);Array.isArray(g)?p([...new Set([...g,...P,`${t}_synthese`,`${t}_exploration`])]):p([...P])};(!A.viewUrl||A.viewUrl&&A.viewlink)&&k()},[t,A,i,f]),m.useEffect(()=>{B&&r(fOe(B))},[B,r,i]);const b=(k,O,P,z,j,V)=>{switch(k){case"view":r(Que(O,!1,P));break;case"component":r(Tut(z,j));break}};m.useEffect(()=>{if(!l.isLoading&&(s&&s.globals===""||s&&l.module===vc(s.globals)&&Object.keys(l.data).length&&A.type!=="page")){const k=Ka(s.swf.replace(".swf","").replace("./","").split("_").pop()),O=s.swf.replace("./CTI_","");let P="component",z=s.label;O==="*CTI_view1"&&(P="view",z=s.label),b(P,z,i,k,s.softCode)}},[s,l.module]),m.useEffect(()=>{var k,O,P,z,j,V;if(!(!o||!Object.keys(o).length)&&(a.action==="POP"||(O=(k=a==null?void 0:a.location)==null?void 0:k.state)!=null&&O.logged||((z=(P=a==null?void 0:a.location)==null?void 0:P.state)==null?void 0:z.fromSider)===!0)){let L="";if((V=(j=a.location)==null?void 0:j.state)!=null&&V.homeview){const W=Object.keys(KI).find(ae=>a.location.state.homeview.toLowerCase().includes(ae.toLowerCase())),q=KI[W],ee=o[q];if(ee){const ae=vU(ee.children,`/${q}`),ne=Object.keys(ae).find(ce=>ce===a.location.state.homeview);L=ne?ae[ne]:`/${q}/${a.location.state.homeview}`}n.push(L),b("view",a.location.state.homeview,L,L,q);return}L=i.substring(1),L=L.replace(ma()+"jis/","");let K=L.split("/"),J=[];for(let W=0;W<K.length-1;W++)J.push(K[W]),W!==K.length-2&&J.push("children");const Y=bmt(o,J);if(Y&&(Y.swf||Y.jisComponent)){let W="component",q=Y.label;Y.swf==="*CTI_view1"&&(W="view",q=Y.label);const ee=L.split("/");L=ee[ee.length-1],l.isLoading===!1&&r(hv(Y.softCode.split("_")[1])),r(nb(Y)),b(W,q,i,L,Y.softCode)}else{const W=i.split("/").length-1;let q=i.endsWith("/")?i.split("/")[W-1]:i.split("/")[W];return r(Ay(q)),v.jsx(Rp,{to:`/${q}`})}}},[a,o,r,i]);const Q=k=>{y(k.target.value)},D=k=>{p(k)},F=({item:k})=>{var V;if(u===qI&&r(Sp()),r(kS(!1)),((V=k.props.originalitem)==null?void 0:V.favoriteOwner)!==""&&l.isLoading===!1){const L=k.props.originalitem.softCode.split("_")[1];r(hv(L))}const O=k.props["data-menu-id"],P=/^(?:[^-]*-){5}(.*)$/,j="/"+O.match(P)[1].replace(/_/g,"/");n.push(j),r(nb(k.props.originalitem)),r(KPe()),b(k.props.itemType,k.props.originalitem.name,j,k.props.url,k.props.moduleid,k.props.originalitem)};function N(k){if(k!=null&&k.includes("essentiel"))return v.jsx(qFe,{});switch(k){case"analyse_croisee":return v.jsx(pde,{});case"VIEWLINKPOPUP_RH":case"VIEWLINK_EVO_COMP_RH":return v.jsx(QO,{});case"comparatif":return v.jsx(lde,{});case"analyse":return v.jsx(dde,{});case"evolution":return v.jsx(vde,{});case"justificatif":return v.jsx(FO,{});case"controle":return v.jsx(Tv,{});case"etude":return v.jsx(sFe,{});case"import":return v.jsx(GG,{});case"export":return v.jsx(GI,{});case"essentiel":return v.jsx(LTe,{});case"synthese":return v.jsx(V_e,{});case"synchronisation":return v.jsx(Wf,{});case"liste":return v.jsx(dy,{});case"classe":return v.jsx(jFe,{});default:return v.jsx(FO,{})}}return t==="accueil"?v.jsx("div",{className:"menu homeMenu"}):c?v.jsx("div",{className:"loading-wrapper",children:v.jsx(Ya,{size:"small"})}):d?f&&g?v.jsxs(v.Fragment,{children:[!e&&v.jsx("div",{className:"search-field",children:v.jsx(mt,{placeholder:"Recherche",value:E,ref:M,onChange:Q,onPressEnter:Q,prefix:v.jsx(DA,{}),allowClear:!0})}),v.jsx(IA,{theme:"dark",className:"cti-menu",mode:"inline",selectedKeys:f,openKeys:g,multiple:!1,onSelect:F,onOpenChange:D,items:C})]}):null:t==="myfavorites"?v.jsx("div",{className:"menu-no-access",children:"Vous n'avez pas encore créé de favoris !"}):v.jsx("div",{className:"menu-no-access",children:"Vous n'avez pas accès à ce module"})},vU=(e,t="")=>{let r={};return Object.values(e).forEach(n=>{const a=t+"/"+ih(n.label,{lower:!0});n.children?r={...r,...vU(n.children,a)}:r[n.name]=n.swf!==""?`${a}/${n.name}`:a}),r},qj=e=>{let t=[];return e.forEach(r=>{var n;r&&(t.push(r.key),(n=r.props)!=null&&n.children&&(Array.isArray(r.props.children)?t=[...t,...qj(r.props.children)]:typeof r.props.children=="object"&&(t=[...t,...qj([r.props.children])])))}),t};sMe.propTypes={siderIsCollapsed:U.bool,selectedModuleKey:U.string};const Rmt=te.memo(sMe),Tmt=({siderIsCollapsed:e,handleCollapseSider:t})=>{const r=Pr(),n=Ye(A=>A.cti.menu.modules),a=Ye(A=>A.cti.ui.showMenus),i=Ye(A=>A.cti.ui.primaryColor),o=Ye(A=>A.cti.menu.selectedModuleKey);m.useEffect(()=>{Object.keys(n).length||r(sdt())},[r,n]);const[s,l]=m.useState();return m.useEffect(()=>{l(Qmt(o,e))},[o,e]),v.jsxs("div",{className:"Sider",style:{display:a===!0?"flex":"none"},children:[v.jsx("div",{className:"menuLabelContainer",children:v.jsx("span",{className:"menuLabel",style:{backgroundColor:i},children:v.jsx(pr,{title:"Informations",placement:"bottom",children:s})})}),v.jsx(NC,{className:"SiderContent",children:v.jsx(Ih,{in:!0,classNames:"menu-fade",timeout:300,unmountOnExit:!0,children:v.jsx("div",{style:{height:300},children:v.jsx(Rmt,{siderIsCollapsed:e,selectedModuleKey:o})})},o)}),v.jsx("div",{className:"SiderFooter",children:v.jsxs("div",{className:"ctiLogo",children:[v.jsx(Ml,{className:"sider-divider"}),v.jsx(xmt,{style:{height:"30px",margin:"10px 0"}})]})})]})};function Qmt(e,t){switch(e){case"accueil":return t?v.jsx(Mmt,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(Bmt,{className:"sider-icon"}),v.jsx("span",{children:"Accueil"})]});case"myfavorites":return t?v.jsx(oMe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(iMe,{className:"sider-icon"}),v.jsx("span",{children:"Mes Favoris"}),v.jsx(Ju,{to:{pathname:"/outils/parametrage-utilisateur/organisation-de-mes-favoris/favorites-manager",state:{fromSider:!0}},children:v.jsx(Zn,{title:"Organisation de mes favoris",children:v.jsx(QS,{style:{color:"white",marginLeft:"10px"}})})})]});case"pmsissr":return t?v.jsx(NCe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(Tj,{className:"sider-icon"}),v.jsx("span",{children:"PMSI SSR"})]});case"pmsihad":return t?v.jsx(bCe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(ICe,{className:"sider-icon"}),v.jsx("span",{children:"PMSI HAD"})]});case"pmsipsy":return t?v.jsx(TCe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(Tj,{className:"sider-icon"}),v.jsx("span",{children:"PMSI PSY"})]});case"pmsi":return t?v.jsx(RCe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(SCe,{className:"sider-icon"}),v.jsx("span",{children:"PMSI MCO"})]});case"activite":return t?v.jsx(vCe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(pCe,{className:"sider-icon"}),v.jsx("span",{children:"Activité"})]});case"rh":return t?v.jsx(DCe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(QCe,{className:"sider-icon"}),v.jsx("span",{children:"Ressources Humaines - Paie"})]});case"ssae":return t?v.jsx(_Ce,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(FCe,{className:"sider-icon"}),v.jsx("span",{children:"SSAE"})]});case"compta":return t?v.jsx(ECe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(mCe,{className:"sider-icon"}),v.jsx("span",{children:"Comptabilité"})]});case"dpi":return t?v.jsx(CCe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(yCe,{className:"sider-icon"}),v.jsx("span",{children:"Dossier Patient"})]});case"qualite":return t?v.jsx(Rj,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(Rj,{className:"sider-icon"}),v.jsx("span",{children:"Qualité"})]});case"eco":return t?v.jsx(BCe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(wCe,{className:"sider-icon"}),v.jsx("span",{children:"Gestion Economique"})]});case"eis":return t?v.jsx(xCe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(MCe,{className:"sider-icon"}),v.jsx("span",{children:"EIS"})]});case"outils":return t?v.jsx(DL,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(kCe,{className:"sider-icon"}),v.jsx("span",{children:"Outils"})]});default:return"Menu"}}const Pae=te.memo(Tmt);function Dmt(e){let t=ft(e,"HTTP_SERVICE");const r=ft(t[0],"DASHBOARDS");let n={};return r&&r.length&&r.forEach(a=>{let i=lr(a),o=ft(a,"DASHBOARD");o&&o.length&&(i.modules=_mt(o)),n[i.type]=i}),n}function lMe(e){let t=[];e.linkViewVariables!==""&&(t=e.linkViewVariables.split("&"));let r={};return t.forEach(function(a,i){let o=a.split("="),s=o[0],l=o[1];r[`${s}-${i}`]={name:s,value:l}}),r}function Fmt(e,t){let r=[],n=ft(e,"DASHBOARD");return n&&n.length&&n.forEach((a,i)=>{let o=lr(a);o.key=t.key+"-"+i;let s=lMe(o),l=AMe(o);o.icon=l,o.viewLinkParams=s,r.push(o)}),r}function _mt(e){let t=[];return e.forEach((r,n)=>{let a=lr(r);a.key=n.toString();let i=lMe(a),o=Fmt(r,a),s=AMe(a);a.icon=s,a.children=o,a.viewLinkParams=i,t.push(a)}),t}function AMe(e){let t="";switch(e.status){case"OK":t=v.jsx(cy,{twoToneColor:"#52c41a"});break;case"KO":t=v.jsx(HI,{twoToneColor:"#d12121"});break;case"WARNING":t=v.jsx(RDe,{twoToneColor:"#FF8801"});break}return t}const Nmt=()=>async function(e,t){try{const r=await en("modules/outils/php/httpService_dashboards_getPortalDashboards.php"),n=Dmt(r);e(vOe(n))}catch(r){console.error(r)}},kmt=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.883 17.16c-1.254-1.535-2.14-2.316-2.14-6.547 0-3.875-1.978-5.255-3.606-5.925a.87.87 0 0 1-.486-.516c-.286-.972-1.087-1.828-2.151-1.828-1.065 0-1.866.857-2.148 1.83-.066.224-.27.425-.486.513-1.63.672-3.607 2.047-3.607 5.926-.003 4.23-.888 5.012-2.142 6.547-.52.635-.064 1.59.844 1.59h15.083c.903 0 1.355-.957.839-1.59M15.625 18.75v.781a3.125 3.125 0 1 1-6.25 0v-.781"})}),Pmt=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M12.642 2.344C6.93 2.267 2.267 6.93 2.344 12.642 2.42 18.12 6.88 22.58 12.358 22.656c5.713.078 10.375-4.585 10.297-10.297C22.58 6.88 18.12 2.42 12.642 2.344m6.172 15.979a.194.194 0 0 1-.235.04.2.2 0 0 1-.064-.056 6.1 6.1 0 0 0-1.58-1.445c-1.243-.798-2.818-1.237-4.435-1.237s-3.192.44-4.435 1.237a6.1 6.1 0 0 0-1.58 1.445.196.196 0 0 1-.3.015 8.56 8.56 0 0 1-2.279-5.675c-.08-4.752 3.82-8.73 8.573-8.74 4.754-.013 8.615 3.847 8.615 8.593a8.56 8.56 0 0 1-2.28 5.823"}),v.jsx("path",{fill:"currentColor",d:"M12.5 7.031c-.963 0-1.834.361-2.452 1.017-.619.656-.928 1.562-.858 2.536.142 1.916 1.626 3.479 3.31 3.479s3.165-1.563 3.31-3.479c.072-.964-.234-1.862-.863-2.53-.621-.66-1.49-1.023-2.447-1.023"})]});var Omt=ls();const zmt=Nr(Omt);var r8,Oae;function jmt(){if(Oae)return r8;Oae=1;var e=Lv(),t=xBe(),r=Uv(),n=t(function(a,i){e(i,r(i),a)});return r8=n,r8}var n8,zae;function Ymt(){return zae||(zae=1,n8=jmt()),n8}var Lmt=Ymt();const jae=Nr(Lmt);function Umt(e,t,r,n){for(let a in e)if(typeof e[a]=="object"){let i=e[a].name,o=e[a].value;if(i!=="_NONE"){let s=o;/=|SELECT.|VIEW.|ROW.|return|Date|'(.*)'/gm.test(s)&&(isNaN(Number(s))?s=Cn(o,r,n):s=Number(s)),s&&(t[i]=s)}}else t[a]=e[a];return t}function Hmt(e,t,r,n){return Object.values(e).forEach(a=>{let i={};if(a.name!=="_NONE"&&a.value){const o=Cn(a.value,r,n);if(zmt(o))for(let s in o)t[s]=o[s]}t={...t,...i}}),t}function Gmt(e,t,r){let n={};return e?n=jae({},e.run.args,t):n=jae({},r,t),!t.ALIAS_PERIODE&&n.PERIODE&&(n.ALIAS_PERIODE="-1"),Kmt(n)}function Kmt(e){delete e.ALIAS_PERIODE2,delete e.ALIAS_PERIODE3;for(let t in e)e[t]==="undefined"&&delete e[t];return e}const Vmt=async(e,t)=>{const r=ma(),n=await ai({method:"get",url:r+`modules/base/php/getCsvFile.php?longfile=${encodeURI(e.longfile)}`,responseType:"arraybuffer",headers:{"Content-Type":"multipart/form-data"}});let a="cti.zip";n.headers["content-disposition"]&&(a=n.headers["content-disposition"].match(/filename="(?<filename>.*)"/).groups.filename),$R(n.data,a),t(ph(!1))};async function rS(e,t,r,n,a,i=null,o=null,s=null,l=null){r(ph(!0));const A=e.replace(".XML","");let c=Object.keys(a.moduleEntries).find(p=>p===A),u,d={},f={};(o||s)&&(u=s.row?s.row:o),t&&(d=Umt(t,d,n,u)),i&&(d=Hmt(i,d,n,u)),f=Gmt(n,d,t);const h=e2(f).substring(0,7);let g=c?a.moduleEntries[c]+"?p="+h:e.replace(".XML","")+"?p="+h;if(!c&&l!==a.selectedModuleKey){const p=a.modules[l];if(p){const E=vU(p.children,`/${l}`);c=Object.keys(E).find(y=>y===A),g=c?E[c]+"?p="+h:`/${l}/${e.replace(".XML","")}?p=${h}`}}g.startsWith("*URL")?Vmt(f,r):ei.unstable_batchedUpdates(()=>{r(Que(A,e,!0)),r(Cdt(g,h,f)),r(Ru(null,null)),r(g0(null))})}const Jmt=({visible:e,closeModal:t})=>{const n=[{name:"Vues",shortcuts:{f:"Ouvrir / Fermer les filtres",e:"Lancer l'analyse"}}].map((a,i)=>{let o=Object.keys(a.shortcuts).map((s,l)=>v.jsx("div",{className:"shortcut",children:v.jsxs("p",{children:[v.jsx(RC,{className:"shortcut-key",children:s}),a.shortcuts[s]]})},l));return v.jsxs("div",{className:"shortcut-section",children:[v.jsx("div",{className:"section-title",children:a.name}),v.jsx("div",{className:"section-shortcuts",children:o})]},i)});return bo.createPortal(v.jsx(va,{title:"Raccourcis clavier",open:e,footer:null,onCancel:t,centered:!0,width:"30vw",className:"shortcuts-modal",zIndex:3100,children:n}),document.getElementById("root"))},Zj=({label:e,infos:t})=>v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"module-tooltip-label",children:e}),t&&v.jsx("div",{style:{marginTop:8},children:Object.keys(t).map(r=>v.jsxs("div",{style:{display:"flex"},children:[v.jsx("div",{style:{width:200},children:t[r].label})," ",v.jsx("div",{style:{flex:3,textAlign:"right"},children:t[r].value})]},r))})]});Zj.propTypes={label:U.string,infos:U.object};const Wmt=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 26 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M21.594 8.594h-5.469V3.125A2.344 2.344 0 0 0 13.781.781H4.406a2.344 2.344 0 0 0-2.343 2.344v20.313a.78.78 0 0 0 .78.78h5.079a.39.39 0 0 0 .39-.39v-3.494c0-.42.324-.78.744-.802a.78.78 0 0 1 .819.78v3.516a.39.39 0 0 0 .39.39h12.891a.78.78 0 0 0 .782-.78v-12.5a2.344 2.344 0 0 0-2.344-2.344M5.289 21.087a.781.781 0 1 1-.203-1.549.781.781 0 0 1 .203 1.55m0-3.906a.782.782 0 1 1-.202-1.55.782.782 0 0 1 .202 1.55m0-3.906a.781.781 0 1 1-.203-1.549.781.781 0 0 1 .203 1.549m0-3.906a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.907a.781.781 0 1 1-.203-1.549.781.781 0 0 1 .203 1.55m3.906 11.72a.782.782 0 1 1-.202-1.551.782.782 0 0 1 .202 1.55m0-3.907a.781.781 0 1 1-.202-1.549.781.781 0 0 1 .202 1.549m0-3.906a.781.781 0 1 1-.202-1.55.781.781 0 0 1 .202 1.55m0-3.907a.781.781 0 1 1-.202-1.549.781.781 0 0 1 .202 1.55m3.907 15.625a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.906a.782.782 0 1 1-.203-1.55.782.782 0 0 1 .203 1.55m0-3.906a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.906a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.907a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m9.078 17.194h-6.055v-12.5h5.469a.78.78 0 0 1 .781.781v11.524a.195.195 0 0 1-.195.195"}),v.jsx("path",{fill:"currentColor",d:"M20.031 19.531a.782.782 0 1 0 0 1.564.782.782 0 0 0 0-1.564m0-3.906a.78.78 0 1 0 0 1.562.78.78 0 0 0 0-1.562m0-3.906a.782.782 0 1 0 0 1.563.782.782 0 0 0 0-1.563m-3.125 7.812a.782.782 0 1 0 0 1.564.782.782 0 0 0 0-1.564m0-3.906a.78.78 0 1 0 0 1.562.78.78 0 0 0 0-1.562m0-3.906a.782.782 0 1 0 0 1.563.782.782 0 0 0 0-1.563"})]}),Xmt=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.594 20.313v3.125M3.906 1.563h9.375a1.56 1.56 0 0 1 1.563 1.562v20.117a.195.195 0 0 1-.196.195H2.344V3.125a1.56 1.56 0 0 1 1.562-1.562m11.719 7.812h5.469a1.56 1.56 0 0 1 1.562 1.563v12.5h-7.812V10.156a.78.78 0 0 1 .781-.781"}),v.jsx("path",{fill:"currentColor",d:"M4.79 21.087a.781.781 0 1 1-.204-1.549.781.781 0 0 1 .203 1.55m0-3.906a.781.781 0 1 1-.204-1.549.781.781 0 0 1 .203 1.55m0-3.906a.781.781 0 1 1-.204-1.549.781.781 0 0 1 .203 1.549m0-3.906a.781.781 0 1 1-.204-1.55.781.781 0 0 1 .203 1.55m0-3.907a.781.781 0 1 1-.204-1.549.781.781 0 0 1 .203 1.55m3.905 11.72a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.907a.781.781 0 1 1-.202-1.549.781.781 0 0 1 .202 1.549m0-3.906a.781.781 0 1 1-.202-1.55.781.781 0 0 1 .202 1.55m0-3.907a.781.781 0 1 1-.202-1.549.781.781 0 0 1 .202 1.55m3.907 15.625a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.906a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.906a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55M13.053 9.147a.78.78 0 0 0-.002-1.104.78.78 0 0 0-1.104-.003.78.78 0 0 0 .002 1.104.78.78 0 0 0 1.104.003M12.602 5.462a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m6.93 14.07a.782.782 0 1 0 0 1.562.782.782 0 0 0 0-1.563m0-3.907a.78.78 0 1 0 0 1.562.78.78 0 0 0 0-1.562m0-3.906a.782.782 0 1 0 0 1.563.782.782 0 0 0 0-1.563m-3.126 7.812a.782.782 0 1 0 0 1.563.782.782 0 0 0 0-1.563m0-3.906a.78.78 0 1 0 0 1.562.78.78 0 0 0 0-1.562m0-3.906a.782.782 0 1 0 0 1.563.782.782 0 0 0 0-1.563"})]}),qmt=(e,t,r)=>{let n=e.filter(o=>!kAt.includes(o.label));n=n.map(o=>{const s=r.modules[o.softCode.substring(5)];return{...o,info:(s==null?void 0:s.informations)??{},key:o.name.toLowerCase(),purchased:o.licenceOK==="OK"}});let a=[...n];t.forEach(o=>{a.find(l=>l.key===o.key)||a.push({...o,purchased:!1})});const i=a.findIndex(o=>o.key==="outils");return i>-1&&a.push(a.splice(i,1)[0]),Zmt(a,PCe),$mt(a),a},Zmt=(e,t)=>{let r=[];return e.forEach((n,a)=>{r=t.find(i=>i.key===n.key),n.index=r!=null&&r.index?r.index:e.length+a,n.icon=r!=null&&r.icon?r.icon:v.jsx(Wmt,{}),n.iconOutline=r!=null&&r.iconOutline?r.iconOutline:v.jsx(Xmt,{})}),e},$mt=e=>(e.sort(function(r,n){return r.index<n.index?-1:r.index>n.index?1:0}),e),cMe=({handleModuleSelect:e,selectedKey:t,setSelectedKey:r})=>{const n=Pr(),a=_c(),i=Ye(M=>M.cti.settings.data.userDisplaySettings),o=Ye(M=>M.cti.ui.primaryColor),s=Ye(M=>M.cti.licences.data.modules),l=Ye(M=>M.cti.menu),A=Ye(M=>M.cti.globals),[c,u]=m.useState((i==null?void 0:i.pmsiDefaultModule)??null);m.useEffect(()=>{let M=a.location.pathname.split("/")[1];M===""&&(a.replace("/accueil/"),M="accueil",n(Ay("accueil"))),r(M),A.isLoading===!1&&n(hv(M))},[a,a.location.pathname,n]);const d=()=>{a.push(`/${c}`)};let f=qmt(s,PCe,l),h=f.filter(M=>M.key.includes("pmsi"));if(!c){const M=h.find(S=>S.purchased),I=M?M.key:"pmsi";u(I)}t!=null&&t.includes("pmsi")&&c!==t&&u(t);let g;if(c){const M=h==null?void 0:h.find(I=>I.key===c);g=t===M.key?M.icon:M.iconOutline}let p=f==null?void 0:f.map(M=>{let I=M.key;return Za({label:v.jsx(Pf,{dot:!M.purchased,style:{background:o},children:v.jsx(Zn,{mouseEnterDelay:1,title:v.jsx(Zj,{label:M.label,infos:M.info}),children:v.jsx(Ju,{className:"top-navigation-item",to:`/${I}`,children:t===M.key?M.icon:M.iconOutline})})}),key:I})});const E=p==null?void 0:p.find(M=>M.key==="eis"),C=p.filter(M=>M.key!=="eis"&&M.key!=="outils").filter(M=>!M.key.includes("pmsi")),w=h.map(M=>Za({label:v.jsx(Pf,{dot:!M.purchased,style:{background:o},children:v.jsx(Zn,{mouseEnterDelay:1,title:v.jsx(Zj,{label:M.label,infos:M.info}),children:v.jsx(Ju,{to:`/${M.key}`,children:M.label})})}),key:M.key,icon:t===M.key?M.icon:M.iconOutline,className:"menu-item-pmsi"})),B=[{label:v.jsx(Zn,{mouseEnterDelay:1,title:"Mes favoris",children:v.jsx(Ju,{to:"/myfavorites",children:t==="myfavorites"?v.jsx(iMe,{}):v.jsx(oMe,{})})}),key:"myfavorites"},E,{label:v.jsx(Ml,{type:"vertical",style:{height:32,borderColor:"rgba(0,0,0,0.1)"}}),key:"divider-1",disabled:!0},{key:"subMenu",icon:g,onTitleClick:d,children:w},...C];return v.jsx("div",{className:"top-navigation-menu",children:v.jsx(IA,{mode:"horizontal",selectedKeys:[t],onClick:e,items:B,subMenuCloseDelay:"0.7"})})};cMe.propTypes={handleModuleSelect:U.func,selectedKey:U.string,setSelectedKey:U.func};const eEt=te.memo(cMe),tEt=({handleCollapseSider:e,siderIsCollapsed:t})=>{const[r,n]=m.useState(!1),a=Pr(),i=Ye(L=>L.cti.settings.data.session),o=Ye(L=>L.cti.settings.data.environment),s=Ye(L=>L.cti.settings.data.version),l=Ye(L=>L.router.location.pathname),A=Ye(L=>L.cti.ui.showShortcuts),c=Ye(L=>L.cti.ui.bugTracker),u=Ye(L=>L.cti.notifications.data),d=Ye(L=>L.cti.ui.showMenus),f=Ye(L=>L.cti.ui.menuMode),h=Ye(L=>L.cti.ui.devMode),g=Ye(L=>L.cti.menu),p=Ye(L=>L.cti.menu.item),E=Ye(L=>L.cti.menu.selectedModuleKey),y=Ye(L=>L.cti.settings.data.environment),C=_c(),w=Ye(L=>L.router),B=Ye(L=>L.cti.history.modules),[M,I]=m.useState(null);let S=l.split("/")[1];m.useEffect(()=>{a(dY(S))},[a,S]),m.useEffect(()=>{a(Nmt())},[a]);const R=()=>t?v.jsx(PFe,{}):v.jsx(VG,{}),b=L=>{a(TNe(L))},Q=({key:L})=>{let K;switch(L){case"logout":Cye();break;case"bug":K=document.createElement("a"),K.href=Rye(o,s),document.body.appendChild(K),K.click(),document.body.removeChild(K);break;case"shortcuts":a(WG(!0));break;case"tools":O("outils");break;case"about":n(!0);break;case"reload_menu":a(odt());break;case"reload_filters":a(qR());break;case"reload_views":C1e();break}},D=()=>{a(WG(!1))},F=(L,K)=>{K.stopPropagation(),a(Sp(!!L)),a(_de())},N=()=>{a(Ay("options")),C.push("/outils/logs")},k=(L,K)=>{const J=K.node;O({key:J.moduleKey}),rS(J.linkView,J.linkViewVariables,a,null,g,null,null,null,J.moduleKey)},O=({key:L})=>{a(kS(!1)),a(Sp(!1));const K=p&&p!==null?{...p,url:`${{...w.location}.pathname}${{...w.location}.search}`}:null,J=p&&p!==null?p.softCode.slice(5):null;if(a(hv(L)),J!==null&&(!K.favoriteOwner||K.favoriteOwner==="")&&K.url.includes(J)&&a(lOe(J,K)),I(L),B[L]){const Y=B[L];a(nb(Y)),C.replace(Y.url,{fromSider:!0})}else a(nb(null)),a(Ay(L))},P=[Za({label:v.jsxs(v.Fragment,{children:["Menu drawer",v.jsx(Va,{checked:f===qI,onChange:F,style:{marginLeft:6},size:"small"})]}),key:"menu_mode",icon:v.jsx(VG,{})}),Za({type:"divider"}),Za({label:"Recharger le menu",key:"reload_menu",icon:v.jsx(bp,{})}),Za({label:"Recharger les filtres",key:"reload_filters",icon:v.jsx(bp,{})}),Za({label:"Recharger les vues",key:"reload_views",icon:v.jsx(bp,{})}),Za({type:"divider"}),Za({label:"Raccourcis clavier",key:"shortcuts",icon:v.jsx(gde,{})}),Za({label:"A propos",key:"about",icon:v.jsx(DS,{})}),Za({label:"Rapporter un bug",key:"bug",icon:v.jsx(eI,{})}),Za({type:"divider"}),Za({label:v.jsx(Ju,{to:"/outils",children:"Paramètres"}),key:"tools",icon:v.jsx(DL,{})}),Za({label:"Se déconnecter",key:"logout",icon:v.jsx(DFe,{})})],z=()=>{const L=Object.values(u).map((K,J)=>{let Y=j();return{label:v.jsx(Pf,{count:Y,offset:[10],children:K.type}),key:J,children:v.jsxs(v.Fragment,{children:[v.jsx(SA,{showIcon:!0,defaultExpandAll:!0,treeData:K.modules,onSelect:K.type==="EXPERT"?k:null}),o.ISEXPLOIT&&v.jsx(Ju,{to:"/outils/exploit",children:v.jsx(nt,{type:"primary",style:{width:"100%",marginTop:12},className:"notifications-list-detail",children:v.jsx("span",{children:"Accès au détail"})})})]})}});return v.jsx("div",{className:"notifications-menu",children:v.jsx(xa,{centered:!0,items:L})})},j=()=>{let L=0;return Object.values(u).forEach((K,J)=>{K!=null&&K.module&&(L=Object.values(K==null?void 0:K.modules).filter(Y=>Y.status==="KO").length)}),L},V=Object.keys(s).map(L=>v.jsx("div",{className:"about-version",children:`${L} v${s[L]}`},L));return v.jsxs("div",{className:"Top",style:{display:d===!0?"flex":"none"},children:[v.jsx(va,{open:r,footer:null,onCancel:()=>n(!1),width:700,children:v.jsxs("div",{className:"about-modal",children:[v.jsx("div",{className:"about-logo",children:v.jsx(Sye,{style:{height:"80px",margin:"10px 0"}})}),v.jsx("div",{className:"about-environment",children:`${o.ENVIRONMENT} (${o.FINESS})`}),v.jsx("div",{className:"about-versions",children:V}),v.jsxs("div",{children:["Build n°: ",window.appVersion]}),v.jsx(nt,{type:"link",href:"https://www.ctisante.com",children:"https://www.ctisante.com"})]})}),v.jsx(nt,{className:"siderButton",type:"link",onClick:e,disabled:E==="accueil",children:R()}),v.jsx(Ju,{to:"/accueil",children:v.jsx(Zn,{placement:"bottom",title:"Accueil",children:v.jsx("div",{className:"headerEtablissement",children:v.jsxs("div",{children:[v.jsx("div",{className:"nomEtablissement",children:y&&y.ENVIRONMENT}),v.jsx("div",{className:"numFiness",children:v.jsx(RC,{style:{background:"#eeeeee"},icon:v.jsx(wDe,{style:{marginTop:"3px"}}),children:y&&y.FINESS})})]})})})}),v.jsx(eEt,{handleModuleSelect:O,selectedKey:M,setSelectedKey:I}),v.jsx(Jmt,{visible:A,closeModal:D}),v.jsxs("div",{className:"settings-buttons",children:[i.ISROLECTI&&h===!0&&v.jsx(nt,{type:"link",onClick:N,children:v.jsx(Pf,{count:c,children:v.jsx(eI,{})})}),i.ISROLECTI&&h===!1&&v.jsx(nt,{type:"link",disabled:!0,children:v.jsx(eI,{})}),i.ISROLECTI&&v.jsx(Va,{style:{height:"20px",width:"auto"},checked:h,onChange:b}),u&&v.jsx(AR,{content:z(),placement:"bottomRight",arrow:!0,trigger:"click",className:"settings-dropdown",children:v.jsx(nt,{type:"link",children:v.jsx(Pf,{count:j(),children:v.jsx(kmt,{})})})}),v.jsx(pd,{menu:{items:P,onClick:Q},placement:"bottomRight",arrow:!0,overlayClassName:"settings-dropdown",trigger:["click"],children:v.jsxs(nt,{type:"link",className:"user-button",children:[v.jsx("span",{children:i.CONNECTEDUSER}),v.jsx(Pmt,{})]})})]})]})},uMe=({style:e})=>v.jsx("div",{className:"progress-line"});uMe.propTypes={style:U.object};const{Panel:rEt}=sv,nEt=()=>v.jsx(sv,{className:"filters__collapse",defaultActiveKey:["favorite"],children:v.jsxs(rEt,{header:"Définition du favori",children:[v.jsx(_e.Item,{label:"Label",name:"favorite_label",children:v.jsx(mt,{})}),v.jsxs("div",{className:"editor-header-checkbox",children:[v.jsx(_e.Item,{label:"Partagé",name:"favorite_shared",valuePropName:"checked",children:v.jsx(Rr,{})}),v.jsx(_e.Item,{label:"Diffusé",name:"favorite_diffuser",valuePropName:"checked",children:v.jsx(Rr,{})})]})]},"favorite")}),aEt=te.memo(nEt),$j=(e,t,r,n,a,i,o)=>{if(((a==null?void 0:a.name)==="PERIODE"||(a==null?void 0:a.name)==="TOPERIODE")&&!i&&(o==null?void 0:o.ALIAS_PERIODE)==="-1"||t==null)return!0;if(t.toLowerCase()==="false")return!1;window.form=e,window.getValue=function(A,c){var u;switch(A){case"ENV":return((u=r.environment)==null?void 0:u[c])??c;case"VIEW":return(n==null?void 0:n[c])??c}};let s=t.replace(/(SELECT)\.([A-Za-z_0-9]*)/gm,"form.getFieldValue('$2')").replace(/(ENV|VIEW)\.([A-Za-z_0-9]*)/gm,"getValue('$1', '$2')").trim().replace(/=?/,"");try{return Iy(s)}catch(l){return console.log(s),console.log(l),Fa(8103,s,l),!0}};function nS(e,t,r,n,a,i,o,s,l){return r&&r==="true"&&i===!1?!1:$j(e,t,n,a,o,s,l)}const iEt=e=>e.treeData.filter(t=>{if(!t.condition)return!0;let r=t.condition.replace(/(SELECT)\.([A-Za-z_0-9]*)/gm,"form.getFieldValue('$2')").replace(/(ENV|VIEW)\.([A-Za-z_0-9]*)/gm,"getValue('$1', '$2')").trim().replace(/=?/,"");try{return Iy(r)}catch(n){return console.log(r),console.log(n),!0}}),mU=({field:e,hidden:t,locked:r})=>v.jsx(_e.Item,{shouldUpdate:(n,a)=>n[e.name]!==a[e.name],children:n=>{let a="";return(n.getFieldValue(e.name)?e.selectedValue:e.unSelectedValue)!==e.default&&e.showIfNotDefault==="true"&&(a="changed-filter"),v.jsx(_e.Item,{name:e.name,valuePropName:"checked",shouldUpdate:!0,className:a,hidden:t,locked:r.toString(),children:v.jsx(Rr,{field:e})},e.name)}});mU.propTypes={field:U.object,hidden:U.bool,locked:U.oneOfType([U.string,U.bool])};var a8,Yae;function oEt(){return Yae||(Yae=1,a8=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],r.get(a[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(t[a]!==r[a])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r}),a8}var sEt=oEt();const id=Nr(sEt),lEt=({field:e,form:t,hidden:r,isFieldEnabled:n,locked:a})=>{const i=(o,s,l)=>{s.field==='"ALIAS_PERIODE"'&&s.data2!==void 0&&s.data3!==void 0&&(t.setFieldsValue({PERIODE:s.data2}),t.setFieldsValue({TOPERIODE:s.data3}))};return v.jsx(_e.Item,{shouldUpdate:(o,s)=>o[e.name]!==s[e.name],children:o=>{let s=!1,l=!1,A=o.getFieldValue(e.name),c=[],u=[],d=iEt(e);c=Tc(d,c);const f=c.find(p=>p.option.data===A);let h=[];f&&!id(u,f.option.parentKeys)?u=f.option.parentKeys:id(u,h)||(u=h),A||(A=e.value);let g="";return A!==e.default&&A&&e.showIfNotDefault==="true"&&(g="combo-modified"),A==="C*"&&(l=!0),A==="T*"&&(s=!0),v.jsxs("div",{className:"form-combo-manual",children:[v.jsx(_e.Item,{style:{width:e.width},shouldUpdate:!0,name:e.name,hidden:r,children:v.jsx(wa,{hidden:r,className:g,dropdownStyle:{maxHeight:400,overflow:"auto",minWidth:200},disabled:!n,treeData:d,onSelect:i,treeDefaultExpandedKeys:u,locked:a?"true":"false",showSearch:!0,filterTreeNode:(p,E)=>E.title&&E.title.toLowerCase().indexOf(p.toLowerCase())>=0})},e.name),l&&v.jsx(_e.Item,{shouldUpdate:!0,name:`${e.name}_CODE`,className:"filters__form--pading",children:v.jsx(mt,{locked:a?"true":"false"})},`${e.name}_CODE`),s&&v.jsx(_e.Item,{shouldUpdate:!0,name:`${e.name}_TEXTE`,className:"filters__form--pading",children:v.jsx(mt,{})},`${e.name}_TEXTE`)]})}})};mU.propTypes={field:U.object,hidden:U.bool,locked:U.oneOfType([U.string,U.bool]),form:U.object,isFieldEnabled:U.any};const AEt=te.memo(lEt,id),dMe=({field:e,hidden:t})=>{const n={width:e.width/2};return v.jsxs("div",{className:"filters__filtersFieldNumberInterval",style:{width:e.width},children:[v.jsx(_e.Item,{name:e.name,className:"filtersIntervalNumber",style:{style:n},hidden:t,children:v.jsx(mt,{placeholder:"",hidden:t})},e.name),v.jsx("span",{className:"filters__intervalNumberLabel",children:" à "}),v.jsx(_e.Item,{name:`${e.name}2`,className:"filtersIntervalNumber",style:{style:n},children:v.jsx(mt,{placeholder:"",hidden:t})},`${e.name}2`)]})};dMe.propTypes={field:U.object,hidden:U.bool};const fMe=({field:e,hidden:t,locked:r})=>{const n=()=>e.UI==="textArea"?v.jsx(mt.TextArea,{className:"combo-modified",placeholder:"",size:"middle",hidden:t,field:e,locked:r.toString()}):e.UI==="number"?v.jsx(u0e,{className:"combo-modified",placeholder:"",size:"middle",hidden:t,field:e,locked:r.toString()}):v.jsx(mt,{className:"combo-modified",placeholder:"",size:"middle",hidden:t,field:e,locked:r.toString()});return v.jsx(_e.Item,{name:e.name,style:{width:e.width},hidden:t,children:n()},e.name)};fMe.propTypes={field:U.object,hidden:U.bool,locked:U.oneOfType([U.string,U.bool])};const EU=({view:e,index:t,field:r,form:n,totalItems:a,filterItems:i,setFilterItems:o,formValues:s,initialFormValues:l})=>{var w,B;const A=Ye(M=>M.cti.settings.data),c=Ye(M=>M.cti.ui.filters.editor),u=i.filter(M=>M.name===r.name),d=((w=u[0])==null?void 0:w.locked)===!0||((B=u[0])==null?void 0:B.locked)==="true",f=Ye(M=>M.cti.ui.primaryColor),h=e.run.properties,g=nS(n,r.visible,r.locked,A,h,c,s,l),p=nS(n,r.enabled,r.locked,A,h,c,r,s,l),E=!(t===0&&r.UI!=="check"||!r.label||r.label.trim()===""||g===!1),y=()=>{o(i.map(M=>M.name===r.name?{...M,locked:!d}:M))},C=()=>{switch(r.UI){case"check":return v.jsx(mU,{field:r,form:n,hidden:!g,locked:d});case"combo":return v.jsx(AEt,{field:r,isFieldEnabled:p,form:n,hidden:!g,locked:d});case"text":case"textArea":case"number":return v.jsx(fMe,{field:r,hidden:!g,locked:d});case"numberInterval":return v.jsx(dMe,{field:r,hidden:!g});default:return v.jsx(_e.Item,{hidden:!g,children:r.name+" | "+r.label},r.name+t)}};return v.jsxs("div",{className:"filter-field-item",style:{flex:a===t+1?4:3,display:g?"flex":"none"},children:[E&&v.jsx("div",{className:"filter-field-item-label",children:r.label}),v.jsxs("div",{className:"filter-field-item-input",children:[c?v.jsx(nt,{type:"link",className:"editor-lock",onClick:y,children:d?v.jsx(eY,{style:{color:f}}):v.jsx(Ede,{})}):null,C()]})]})};EU.propTypes={view:U.object,index:U.number,field:U.object,form:U.object,totalItems:U.number,filterItems:U.array,setFilterItems:U.func,formValues:U.oneOfType([U.array,U.object]),initialFormValues:U.object};const cEt=te.forwardRef(({children:e,title:t,...r},n)=>{const[a,i]=m.useState(!1),o=j5(A=>{for(let c of A)l(c.target)},500),s=te.useMemo(()=>new ResizeObserver(o),[o]);m.useEffect(()=>{const A=n.current;return l(A),n&&s.observe(A),()=>{A&&s.unobserve(A)}},[n,s]);function l(A){A!=null&&A.offsetWidth&&(A!=null&&A.scrollWidth)&&i(A.offsetWidth<A.scrollWidth)}return a?v.jsx(Zn,{placement:"topLeft",...r,title:t?v.jsx("div",{style:{width:"100%"},dangerouslySetInnerHTML:{__html:t}}):null,children:e}):e}),hMe=({group:e})=>{const t=m.useRef(),[r,n]=m.useState(""),[a,i]=m.useState({});return m.useEffect(()=>{var o;e.label&&e.label!==""?n(e.label.trim()):(o=e.field[0])!=null&&o.label&&e.field[0].label!==""&&(n(e.field[0].label.trim()),i({fontWeight:"400"}))},[e]),v.jsx("div",{className:"filters-group-label",style:a,children:v.jsx("span",{ref:t,children:v.jsx(cEt,{title:r,ref:t,children:r})})})};hMe.propTypes={group:U.object};const uEt=({view:e,index:t,form:r,group:n,filterItems:a,setFilterItems:i,formValues:o,initialFormValues:s})=>{const l=Ye(f=>f.cti.settings.data),A=Ye(f=>f.cti.ui.filters.editor),c=e.run.properties,u=n.field.every(f=>!nS(r,f.visible,f.locked,l,c,A));if(!n.field||u)return null;const d=n.field.map((f,h)=>v.jsx(EU,{field:f,form:r,index:h,totalItems:n.field.length,view:e,filterItems:a,setFilterItems:i,formValues:o,initialFormValues:s},h));return v.jsxs("div",{className:"filters-group",style:{display:"flex"},children:[v.jsx(hMe,{group:n}),v.jsx("div",{className:"filters-group-fields",children:d})]},t)};EU.propTypes={view:U.object,index:U.number,form:U.object,group:U.object,filterItems:U.array,setFilterItems:U.func,formValues:U.oneOfType([U.array,U.object]),initialFormValues:U.object};const{Panel:Lae}=sv,dEt=({view:e,loading:t})=>{const r=Pr(),[n]=_e.useForm(),a=_c(),i=e.run.properties,[o,s]=m.useState(),[l,A]=m.useState(),[c,u]=m.useState(null),d=Ye(q=>q.cti.ui.filters.editor),[f,h]=m.useState(),g=Ye(q=>q.cti.components.favorites.dataOnglet),[p,E]=m.useState(!1),y=Ye(q=>q.cti.settings.data),C=Ye(q=>q.cti.history.views),w=Ye(q=>q.cti.globals),B=m.useRef(),M=e.desc.selections,I=Ye(q=>q.cti.ui.primaryColor);if(m.useEffect(()=>{if(M){let q=O(Object.values(M));q=q.map((ee,ae)=>({...ee,id:ae+1})),h(q)}},[M]),m.useEffect(()=>{if(M!==void 0&&e.desc.attributes.globals===""||M!==void 0&&e.run.args&&w.module===vc(e.desc.attributes.globals)&&Object.keys(w.data).length){let q=k();d&&(q.favorite_label=e.desc.attributes.label,q.favorite_shared=e.desc.attributes.favoriteShared==="true",q.favorite_direct=e.desc.attributes.favoriteEssential==="true",q.favorite_diffuser=e.desc.attributes.diffuser==="true"),q&&A(q)}},[M,e.run.args,w.module,e.desc.globals,d]),m.useEffect(()=>{l&&S(l)},[l]),(e.desc.attributes.globals||e.desc.attributes.globals!=="")&&w.module!==vc(e.desc.attributes.globals))return v.jsx(Ya,{size:"small",className:"filters__loadingCube"});return v.jsx("div",{className:"filters-form",children:!t&&w.isLoading===!1?j():v.jsx(Ya,{size:"small",className:"filters__loadingCube"})});function S(q){q!==void 0&&n.setFieldsValue(q)}function R(){const q=f.map(ee=>({...ee,locked:!p}));h(q),E(!p)}function b(){const q=e.desc.attributes.isFavorite==="true";let ee={vue:{XMLType:"VUE",fromView:q?e.desc.attributes.fromViewFile:`${e.desc.attributes.name}.XML`,label:n.getFieldValue("favorite_label"),title:e.desc.attributes.title,name:e.desc.attributes.name,viewFilePath:e.desc.attributes.viewFilePath,isFavorite:q?"true":"false",shared:n.getFieldValue("favorite_shared"),essential:"false",diffuser:n.getFieldValue("favorite_diffuser"),children:[]}};f.forEach(ue=>{let ge={XMLType:"FIELD",name:ue.name,default:ue.default,default2:ue.default2?ue.default2:"",value:n.getFieldValue(ue.name),locked:ue.locked?"true":"false"};ue.UI==="check"&&(ge.value===!0?ge.value=ue.selectedValue:ge.value=ue.unselectedValue===""?"0":ue.unselectedValue),n.getFieldValue(`${ue.name}2`)&&(ge.value2=n.getFieldValue(`${ue.name}2`)),ge.value==="C*"&&(ge.value=`C*${n.getFieldValue(`${ue.name}_CODE`)}`),ge.value==="T*"&&(ge.value=`T*${n.getFieldValue(`${ue.name}_TEXTE`)}`),ee.vue.children.push(ge)});let ae=e.run.data;const ne=Object.keys(ae);g.forEach(({tabName:ue,columnsFiltered:ge})=>{ne.includes(ue)&&(ae[ue].datagrid.columns=[...ge])}),Object.values(ae).forEach(ue=>{let ge=[],Se={XMLType:"ONGLET",showDatagrid:"true",showCharts:"true",children:[{XMLType:"DATAGRID",showDatagrid:"true",showCharts:"true",forceColonnes:"",children:[]}]};Object.values(ue.datagrid.columns).forEach(ye=>{let pe={XMLType:"COLUMN",dataField:ye.dataField,hide:String(ye.hidden)};Se.children[0].children.push(pe),ye.visible&&ge.push(ye.dataField)}),Se.children[0].forceColonnes=ge.join("|"),ee.vue.children.push(Se)});let ce=Fl(ee,!0);r(Xf(!1)),r(bdt(ce,q))}async function Q(){let q=n.getFieldsValue(!0);const ee=q.TYPE_COMPARAISON&&q.TYPE_COMPARAISON!=="S";for(const pe in q){!d&&pe.startsWith("favorite")&&delete q[pe];let Qe=f.filter(Ue=>Ue.name===pe);if(Qe[0]){Qe[0].UI==="check"&&(q[pe]===!0?q[pe]=Qe[0].selectedValue:q[pe]=Qe[0].unselectedValue===""?"0":Qe[0].unselectedValue);const Ue=Qe[0].UI==="text"||Qe[0].UI==="textArea"||Qe[0].UI==="numberInterval";(q[pe]===void 0||q[pe]==="null"||q[pe]===""&&!Ue)&&delete q[pe]}pe==="ALIAS_PERIODE"&&q[pe]!=="-1"&&(q.ALIAS_PERIODE2=q.PERIODE,q.ALIAS_PERIODE3=q.TOPERIODE),(ee&&pe==="PERIODE_D"||ee&&pe==="TOPERIODE_D")&&delete q[pe],q[pe]==="C*"&&q[`${pe}_CODE`]&&(q[pe]=q[pe]+q[`${pe}_CODE`],delete q[`${pe}_CODE`]),q[pe]==="T*"&&q[`${pe}_TEXTE`]&&(q[pe]=q[pe]+q[`${pe}_TEXTE`],delete q[`${pe}_TEXTE`])}const ae=N(!0,!0,!1);let ne={};q.ALIAS_PERIODE&&q.ALIAS_PERIODE!=="-1"&&(ne.ALIAS_PERIODE2=q.ALIAS_PERIODE2,ne.ALIAS_PERIODE3=q.ALIAS_PERIODE3);for(let pe in q)(!ae[pe]||ae[pe]!==q[pe]||ae[pe]===q[pe]&&["PERIODE","TOPERIODE","MOIS","TOMOIS"].includes(pe))&&(ne[pe]=q[pe]);const ue=e2(ne).substring(0,7);let ge=!1;ue===a.location.search.substring(3)&&(ge=!0);const Se=_y(e.desc.attributes.name,ne,0),ye="?p="+ue;try{const pe=await ts(Se);if(pe===null||pe.executed===!1||ge){const Qe=Object.assign({},e,{...e,run:{...e.run,args:ne,executed:!1,forceServer:!0}});await ah(Se,Qe.run)}}catch(pe){Fa(8201,"",pe)}a.push(ye),ei.unstable_batchedUpdates(()=>{r(ph(!0)),r(Xf(!1)),r(Lp(e.desc.attributes.name,ue,C,ge))})}function D(q,ee){const ae=Object.keys(q)[0],ne=Object.values(q)[0];if(ae==="JIS_FULL_PERIODE"&&ne!==null&&n.setFieldsValue({PERIODE:ne[0].format("YYYY-MM-DD"),TOPERIODE:ne[1].format("YYYY-MM-DD")}),ae==="JIS_TOPERIODE"&&n.setFieldsValue({TOPERIODE:ne.format("YYYY-MM-DD")}),ae==="ALIAS_PERIODE"&&ne!=="-1"){const ge=vc(e.desc.attributes.globals);if(ge&&ge!==""){const ye=w.data.providers.ALIAS_PERIODE;if(ye){let Qe=_C(ye.children).find(Ue=>Ue.data===ne);Qe&&n.setFieldsValue({PERIODE:Qe.data2,TOPERIODE:Qe.data3})}}}let ce=/jsx-[0-9]_/,ue={...q};if(ce.test(Object.values(ue)[0])){const ge=Object.keys(ue)[0],Se=Object.values(ue)[0].replace(ce,"");n.setFieldsValue({[ge]:Se})}s(n.getFieldsValue())}function F(){const q=N();A(q),S(l)}function N(q=!1,ee=!1,ae=!0){let ne={};return f.forEach(ce=>{if(ce.showIfNotDefault==="true"||ee)if(ce.UI==="check"&&!q)ce.default===ce.selectedValue?ne[ce.name]=!0:ne[ce.name]=!1;else{let ue=ce.default;if(ne[ce.name]=ue,ue==="*FIRST"&&ce.UI==="combo"&&ce.treeData[0]&&(ne[ce.name]=ce.treeData[0].data),ae&&ue&&(ue.startsWith("#LI")||ue.startsWith("#LS")||ue.startsWith("#LC")||ue.startsWith("#SL")||ue.startsWith("#CH"))&&ce.UI==="combo"){const Se=Tc(ce.treeData,[]).find(ye=>ye.option.aliasData===ue);Se&&(ne[ce.name]=Se.option.data)}ce.UI==="numberInterval"&&(ne[`${ce.name}2`]=ue)}}),ne}function k(){let q={},ee=["0"];const ae=Object.values(M);if(ae.forEach((ue,ge)=>{J(ue)&&ee.push(ge)}),q={...e.run.args},O(ae).forEach(ue=>{var ge,Se;if(q[ue.name]&&(q[ue.name].startsWith("#LI")||q[ue.name].startsWith("#LS")||q[ue.name].startsWith("#LC")||q[ue.name].startsWith("#SL")||q[ue.name].startsWith("#CH"))&&ue.UI==="combo"){const pe=Tc(ue.treeData,[]).find(Qe=>Qe.option.aliasData===q[ue.name]);pe&&(q[ue.name]=pe.option.data)}q[ue.name]==="*FIRST"&&ue.UI==="combo"&&ue.treeData[0]&&(q[ue.name]=ue.treeData[0].data),(q[ue.name]===void 0&&ue.default!==void 0||q[ue.name]==="undefined")&&(q[ue.name]=ue.default),q[ue.name]!==ue.default&&!ee.includes(ue.sectionIndex)&&ue.showIfNotDefault==="true"&&ee.push(ue.sectionIndex),((ge=q[ue.name])==null?void 0:ge.substring(0,2))==="C*"&&(q[`${ue.name}_CODE`]=q[ue.name].substring(2),q[ue.name]=q[ue.name].substring(0,2)),((Se=q[ue.name])==null?void 0:Se.substring(0,2))==="T*"&&(q[`${ue.name}_TEXTE`]=q[ue.name].substring(2),q[ue.name]=q[ue.name].substring(0,2)),ue.UI==="check"&&(q[ue.name]=q[ue.name]===ue.selectedValue)}),qa(ee,c)||u(ee),q.ALIAS_PERIODE&&q.ALIAS_PERIODE!=="-1"&&q.ALIAS_PERIODE2&&q.ALIAS_PERIODE3)q.PERIODE=q.ALIAS_PERIODE2,q.TOPERIODE=q.ALIAS_PERIODE3;else if(q.ALIAS_PERIODE&&q.ALIAS_PERIODE!=="-1"){const ue=vc(e.desc.attributes.globals);if(ue&&ue!==""){const Se=w.data.providers.ALIAS_PERIODE;if(Se){const ye=Se.children.find(pe=>pe.data===q.ALIAS_PERIODE);ye&&(q.PERIODE=ye.data2,q.TOPERIODE=ye.data3)}}}else!q.ALIAS_PERIODE&&q.TOPERIODE&&(q.JIS_TOPERIODE=Nn(q.TOPERIODE));return q.favorite_label="",q.favorite_shared=!1,q.favorite_direct=!1,q.favorite_diffuser=!1,q}function O(q){let ee=[];return[...q].forEach((ne,ce)=>{ne.group!==void 0?O(ne.group).forEach(ge=>{let Se={...ge,sectionIndex:ce};ee.push(Se)}):ne.field!==void 0&&ne.field.forEach(ue=>{let ge={...ue,sectionIndex:ce};ee.push(ge)})}),ee}function P(){return M!==void 0&&!w.isLoading}function z(){return d?v.jsxs(v.Fragment,{children:[v.jsx(pr,{title:"Enregistrer le favori",placement:"bottom",children:v.jsx(nt,{onClick:b,type:"link",children:v.jsx(mde,{})})}),v.jsx(pr,{title:"Tout verrouiller/ Tout déverrouiller",placement:"bottom",children:v.jsx(nt,{onClick:R,type:"link",children:p?v.jsx(Ede,{style:{color:I}}):v.jsx(eY,{})})})]}):v.jsx(pr,{title:"Exécuter la requête (e)",placement:"bottom",children:v.jsx(nt,{htmlType:"submit",type:"link",children:v.jsx(pQe,{})})})}function j(){return v.jsx(v.Fragment,{children:v.jsxs(_e,{layout:"horizontal",form:n,onValuesChange:D,onFinish:Q,name:"Filters",children:[v.jsxs("div",{className:"filters-header",children:[v.jsx("div",{className:"filters-title",children:"Paramètres et sélections"}),v.jsxs("div",{className:"filters-actions",children:[z(),v.jsx(pr,{title:"Réinitialiser les filtres",placement:"bottom",children:v.jsx(nt,{type:"link",onClick:F,children:v.jsx(Ba,{})})})]})]}),v.jsxs("div",{ref:B,className:"filters-content",children:[d?v.jsx(aEt,{}):null,P()?V():v.jsx("div",{className:"loading-wrapper",children:v.jsx(Ya,{size:"small",className:"filters__loadingCube--filter"})})]})]})})}function V(){let q=K(M);return c?v.jsx(sv,{defaultActiveKey:c,destroyInactivePanel:!1,className:"filters__collapse",children:q}):null}function L(q){if(q.visible&&!$j(n,q.visible,y,i)||q.label===null||q.label===void 0)return!0;let ee=aY({0:q},[]);return ee.every(ae=>ae.locked==="true")&&!d?!0:ee.every(ae=>ae.visible==="false"||!nS(n,ae.visible,ae.locked,y,i,d))}function K(q){return Object.values(q).map((ee,ae)=>{if(L(ee))return null;const ne=Y(ee);return v.jsx(Lae,{header:ee.label===""?null:ee.label,showArrow:ee.label!=="",forceRender:!0,style:{backgroundColor:ee.label===""?"white":"transparent"},children:ne},ae)})}function J(q){return q.label===""||q.collapsible&&q.collapsible==="false"}function Y(q,ee){let ae=q.group;if(ae!==void 0)return ae.map((ne,ce)=>{if(ne.visible&&!$j(n,ne.visible,y,i))return null;const ue=ne.group;if(!ue)return v.jsx(uEt,{group:ne,form:n,index:ce,view:e,filterItems:f,setFilterItems:h,formValues:o,initialFormValues:l},ce);if(L(ne))return null;const ge=W(ue)?[ce]:[];return v.jsx(sv,{className:"filters__collapse",defaultActiveKey:ge,children:v.jsx(Lae,{header:ne.label,forceRender:!0,children:Y(ne)},ce)},ce+"collapse")})}function W(q){let ee=[];return q.forEach((ae,ne)=>{ae.field&&ae.field.forEach(ce=>{var ue;((ue=l==null?void 0:l.field)==null?void 0:ue.name)!==(ce==null?void 0:ce.default)&&!ee.includes(ne)&&ee.push(ne)})}),ee.length}},fEt=te.memo(dEt),hEt=()=>v.jsx("div",{className:"filters-footer",children:v.jsx(pr,{title:"Retour en haut de page",children:v.jsx(nt,{onClick:()=>{document.querySelector(".ant-drawer-body").scrollTop=0},type:"link",children:v.jsx(sde,{})})})}),gEt=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M14.453 22.656q-.19 0-.368-.06l-3.914-1.302a1.17 1.17 0 0 1-.796-1.112V14.36l-.004-.007-8.235-9.591a1.465 1.465 0 0 1 1.113-2.42h20.505a1.465 1.465 0 0 1 1.113 2.42l-8.238 9.593-.004.006v7.122a1.17 1.17 0 0 1-1.172 1.172"})}),pEt=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"#fff",stroke:"currentColor",d:"M14.455 22.156h-.002a.7.7 0 0 1-.21-.034L10.33 20.82a.67.67 0 0 1-.455-.636v-5.931l-.044-.098a.5.5 0 0 0-.085-.131l-8.23-9.587a.965.965 0 0 1 .732-1.593h20.506a.965.965 0 0 1 .957 1.098l.495.07-.495-.07a.97.97 0 0 1-.224.495L15.25 14.03a.6.6 0 0 0-.063.091l-.062.112v7.253a.67.67 0 0 1-.196.474l.354.354-.354-.354a.67.67 0 0 1-.474.196Z"})}),gMe=({loading:e})=>{const t=Ye(n=>n.cti.ui.filters.visible),r=Pr();return v.jsx("div",{className:"cti-view-controls",children:v.jsx(pr,{title:t?"Fermer paramètres et sélections (f)":"Ouvrir paramètres et sélections (f)",placement:"left",children:v.jsx(nt,{type:"link",children:t?v.jsx(gEt,{className:"filters-action-button",onClick:()=>r(Xf(!t))}):v.jsx(pEt,{className:"filters-action-button",onClick:()=>r(Xf(!t))})})})})};gMe.propTypes={loading:U.bool};const{Paragraph:Uae,Text:vEt}=md,pMe=({errors:e})=>{const[t,r]=m.useState([]),n=Ye(o=>o.cti.ui.showOverlay),a=Pr();m.useEffect(()=>{e.length&&(r([...e]),a(ev([])))},[e,a]);const i=()=>{a(kS(!1))};return n===!1?null:v.jsx(vd,{icon:v.jsx(UQe,{}),title:"Une erreur est survenue",subTitle:"Si le problème persiste veuillez contacter le support CTI.",style:{height:"100%",position:"relative"},extra:[v.jsx(nt,{type:"primary",onClick:i,children:"Fermer"},"close")],children:v.jsxs("div",{className:"desc",children:[v.jsx(Uae,{children:v.jsx(vEt,{strong:!0,style:{fontSize:16},children:"Nous avons détecté les erreurs suivantes:"})}),t.map(o=>v.jsxs(Uae,{children:[v.jsx(RS,{className:"site-result-demo-error-icon"}),o.text]},o.key))]})})};pMe.propTypes={errors:U.array};const mEt=({view:e,selectedSimiliTab:t})=>{const[r,n]=m.useState(!1),[a,i]=m.useState(!1),o=Pr(),s=Ye(O=>O.cti.menu),l=Ye(O=>O.cti.viewlinks.row),A=Ye(O=>O.cti.viewlinks.cell),c=Ye(O=>O.cti.history.sort),u=Ye(O=>O.cti.ui.primaryColor),d=Ye(O=>O.cti.ui.tab);window.TAB=d;const f=Ye(O=>O.cti.globalVariables);window.SELECT=f;const h=Ye(O=>O.cti.settings.user.spreadsheetSeparator),g=Ye(O=>O.cti.settings.user.spreadsheetEditor),p=Ye(O=>O.cti.settings.data.session),E=e.desc.viewlinks,y=_c();let C="0";t?C=t.slice(-1):d&&(C=Number(d.slice(-1)));function w(O){return O?O.map(function(z,j){if(z.viewitems){const V=Object.values(z.viewitems).filter(L=>L.granted!=="false");return V.length?{label:v.jsxs(nt,{type:"link",className:"view-link-button view-link",style:{color:u},children:[I(z.buttonType),v.jsxs("span",{className:"button-label",children:[z.label,v.jsx(rC,{})]})]}),children:B(Object.values(V)),className:"submenu__viewlinks",key:"parentLink"+z.label+String(j)}:null}else return M(z,j)}):null}function B(O){return O.map((z,j)=>M(z,j))}function M(O,P){let z=!1;(e.isLoading||O.rowContext===!0&&l===null&&(A===null||A.row===null&&A.column===null))&&(z=!0);const j=V=>{const L=V.softCode?V.softCode.substring(5):null;if(V.swf==="*CTI_view1"||V.view.startsWith("*URL"))return rS(V.view,V.args,o,e,s,V.allArgs,l,A,L);{let K=V.name?s.moduleEntries[V.name]:null;K&&y.push(K,{fromSider:!0})}};return Za({key:"simpleLink"+O.label+String(P),label:v.jsx(pr,{title:O.label,placement:"bottom",children:v.jsxs(nt,{type:"link",onClick:()=>j(O),disabled:z,className:"view-link-button",style:{color:u},children:[I(O.buttonType),v.jsx("span",{className:"button-label",children:O.label})]})}),className:"view-link"})}function I(O){switch(O){case"ANALYSE_CROISEE":return v.jsx(pde,{className:"links__viewlinks-icon"});case"VIEWLINKPOPUP_RH":return v.jsx(QO,{className:"links__viewlinks-icon"});case"COMPARATIF":return v.jsx(lde,{className:"links__viewlinks-icon"});case"VIEWLINK_EVO_COMP_RH":return v.jsx(QO,{className:"links__viewlinks-icon"});case"ANALYSE_VIEWLINK_RH":return v.jsx(dde,{className:"links__viewlinks-icon"});case"EVOLUTION":return v.jsx(vde,{className:"links__viewlinks-icon"});default:return v.jsx(FO,{className:"links__viewlinks-icon"})}}function S({key:O}){switch(O){case"excel":try{Object.keys(e.run.data).length>1?n(!0):(o(Kk(e,"TOUT",d,C,g,h)),to.success("Export en cours"))}catch(P){throw Fa(8301,"",P),to.error("Erreur dans l'export"),new Error("Erreur export excel")}break;case"pdf":try{if(Object.keys(e.run.data).length>1)i(!0);else{let z=Object.values(e.run.data)[d];Object.keys(z.similitabs).length>1?i(!0):o(Mee(e,"TOUT",d,C,c))}}catch(P){throw Fa(8302,"",P),new Error("Erreur export pdf")}break}}const R=()=>{const O=e.desc.attributes.isFavorite==="true",P=!O||O&&e.desc.attributes.favoriteOwner.toLowerCase()===p.CONNECTEDUSER.toLowerCase(),z=[Za({label:"Exporter au format PDF",icon:v.jsx(KG,{}),key:"pdf"}),Za({label:"Exporter au format tableur",icon:v.jsx(ude,{}),key:"excel"})];return v.jsxs(v.Fragment,{children:[v.jsx(pd,{menu:{items:z,onClick:S},placement:"bottomLeft",trigger:["click"],children:v.jsx(pr,{title:"Exporter",children:v.jsx(nt,{type:"link",className:"button-action",children:v.jsx(aC,{})})})}),v.jsx(pr,{title:O?"Modifier le favoris":"Ajouter aux favoris",children:P&&v.jsx(nt,{type:"link",className:"button-action",onClick:()=>{o(Xf(!0,!0))},children:O?v.jsx(z_e,{twoToneColor:"grey"}):v.jsx(mde,{})})}),v.jsx(Zn,{"data-html":"true",title:O?"Favoris : "+e.desc.attributes.name+" Vue d'origine : "+e.desc.attributes.fromViewFile:e.desc.attributes.name,children:v.jsx(nt,{type:"link",className:"button-action",children:v.jsx(gde,{})})})]})},b=Object.values(E).filter(O=>{if(O.granted==="false")return!1;let P=!0;if(O.visible)try{P=Cn(O.visible,e,l)}catch(z){console.log(z,O.visible)}return P}),Q=()=>{n(!r)},D=()=>{i(!a)},F=(O,P,z,j)=>{o(Kk(O,P,z,j,g,h)),n(!1)},N=(O,P,z,j,V)=>{o(Mee(O,P,z,j,V)),i(!1)},k=()=>e.desc.viewRefs.map((O,P)=>{const z=O.url.startsWith("http")?O.url:`${window.location.origin}${ma()}${O.url}`;return v.jsx(pr,{title:O.label,children:v.jsx(nt,{href:z,target:"_blank",className:"viewref-button",icon:v.jsx(KG,{}),children:O.shortLabel})},P)});return v.jsxs("div",{className:"view-links-bar",children:[v.jsx(va,{title:"EXPORT CSV",open:r,onCancel:Q,footer:[v.jsx(nt,{onClick:()=>{o(Kk(e,"PAGE",d,C,g,h)),to.success("Export en cours"),n(!1)},children:"Onglet en cours"},"page"),v.jsx(nt,{type:"primary",onClick:()=>{F(e,"TOUT",d,C),to.success("Export en cours")},children:"Tout"},"tout")],children:"Souhaitez-vous tout exporter, ou seulement l'onglet en cours ?"}),v.jsx(va,{title:"Export PDF",open:a,onCancel:D,footer:[v.jsx(nt,{onClick:()=>{N(e,"PAGE",d,C,c),to.success("Export en cours")},children:"Onglet en cours"},"page"),v.jsx(nt,{type:"primary",onClick:()=>{N(e,"TOUT",d,C),to.success("Export en cours")},children:"Tout"},"tout")],children:"Souhaitez-vous tout exporter, ou seulement l'onglet en cours ?"}),v.jsx("div",{className:"view-actions",children:R()}),v.jsxs("div",{className:"align-right",children:[v.jsx("div",{className:"view-refs",children:k()}),v.jsx(IA,{selectedKeys:[],mode:"horizontal",className:"links__viewlinks-container",items:w(b)})]})]})},EEt=te.memo(mEt);var Vo={},i8={},o8,Hae;function vMe(){if(Hae)return o8;Hae=1;function e(t){for(var r=5381,n=t.length;n;)r=r*33^t.charCodeAt(--n);return r>>>0}return o8=e,o8}var s8,Gae;function yEt(){if(Gae)return s8;Gae=1,s8=e;function e(c){t.length||r(),t[t.length]=c}var t=[],r,n=0,a=1024;function i(){for(;n<t.length;){var c=n;if(n=n+1,t[c].call(),n>a){for(var u=0,d=t.length-n;u<d;u++)t[u]=t[u+n];t.length-=n,n=0}}t.length=0,n=0}var o=typeof Ai<"u"?Ai:self,s=o.MutationObserver||o.WebKitMutationObserver;typeof s=="function"?r=l(i):r=A(i),e.requestFlush=r;function l(c){var u=1,d=new s(c),f=document.createTextNode("");return d.observe(f,{characterData:!0}),function(){u=-u,f.data=u}}function A(c){return function(){var d=setTimeout(h,0),f=setInterval(h,50);function h(){clearTimeout(d),clearInterval(f),c()}}}return e.makeRequestCallFromTimer=A,s8}var l8,Kae;function mMe(){if(Kae)return l8;Kae=1;var e=yEt(),t=[],r=[],n=e.makeRequestCallFromTimer(a);function a(){if(r.length)throw r.shift()}l8=i;function i(s){var l;t.length?l=t.pop():l=new o,l.task=s,e(l)}function o(){this.task=null}return o.prototype.call=function(){try{this.task.call()}catch(s){i.onerror?i.onerror(s):(r.push(s),n())}finally{this.task=null,t[t.length]=this}},l8}var Vae;function CEt(){if(Vae)return i8;Vae=1;function e(qe){return qe&&typeof qe=="object"&&"default"in qe?qe.default:qe}var t=e(vMe()),r=e(mMe());function n(qe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(ke){return typeof ke}:n=function(ke){return ke&&typeof Symbol=="function"&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke},n(qe)}function a(qe,ke,ut){return ke in qe?Object.defineProperty(qe,ke,{value:ut,enumerable:!0,configurable:!0,writable:!0}):qe[ke]=ut,qe}function i(qe){for(var ke=1;ke<arguments.length;ke++){var ut=arguments[ke]!=null?arguments[ke]:{},gt=Object.keys(ut);typeof Object.getOwnPropertySymbols=="function"&&(gt=gt.concat(Object.getOwnPropertySymbols(ut).filter(function(bt){return Object.getOwnPropertyDescriptor(ut,bt).enumerable}))),gt.forEach(function(bt){a(qe,bt,ut[bt])})}return qe}function o(qe){return s(qe)||l(qe)||A()}function s(qe){if(Array.isArray(qe)){for(var ke=0,ut=new Array(qe.length);ke<qe.length;ke++)ut[ke]=qe[ke];return ut}}function l(qe){if(Symbol.iterator in Object(qe)||Object.prototype.toString.call(qe)==="[object Arguments]")return Array.from(qe)}function A(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var c=/([A-Z])/g,u=function(ke){return"-".concat(ke.toLowerCase())},d=function(ke){var ut=ke.replace(c,u);return ut[0]==="m"&&ut[1]==="s"&&ut[2]==="-"?"-".concat(ut):ut},f={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function h(qe,ke){return qe+ke.charAt(0).toUpperCase()+ke.substring(1)}var g=["Webkit","ms","Moz","O"];Object.keys(f).forEach(function(qe){g.forEach(function(ke){f[h(ke,qe)]=f[qe]})});var p=function(ke,ut){return typeof ut=="number"?f[ke]?""+ut:ut+"px":""+ut},E=function(ke,ut){return w(p(ke,ut))},y=function(ke,ut){return t(ke).toString(36)},C=function(ke){return y(JSON.stringify(ke))},w=function(ke){return ke[ke.length-10]==="!"&&ke.slice(-11)===" !important"?ke:"".concat(ke," !important")},B=typeof Map<"u",M=function(){function qe(){this.elements={},this.keyOrder=[]}var ke=qe.prototype;return ke.forEach=function(gt){for(var bt=0;bt<this.keyOrder.length;bt++)gt(this.elements[this.keyOrder[bt]],this.keyOrder[bt])},ke.set=function(gt,bt,dt){if(!this.elements.hasOwnProperty(gt))this.keyOrder.push(gt);else if(dt){var se=this.keyOrder.indexOf(gt);this.keyOrder.splice(se,1),this.keyOrder.push(gt)}if(bt==null){this.elements[gt]=bt;return}if(B&&bt instanceof Map||bt instanceof qe){var Ce=this.elements.hasOwnProperty(gt)?this.elements[gt]:new qe;bt.forEach(function(Oe,st){Ce.set(st,Oe,dt)}),this.elements[gt]=Ce;return}if(!Array.isArray(bt)&&n(bt)==="object"){for(var fe=this.elements.hasOwnProperty(gt)?this.elements[gt]:new qe,Me=Object.keys(bt),Re=0;Re<Me.length;Re+=1)fe.set(Me[Re],bt[Me[Re]],dt);this.elements[gt]=fe;return}this.elements[gt]=bt},ke.get=function(gt){return this.elements[gt]},ke.has=function(gt){return this.elements.hasOwnProperty(gt)},ke.addStyleType=function(gt){var bt=this;if(B&&gt instanceof Map||gt instanceof qe)gt.forEach(function(Ce,fe){bt.set(fe,Ce,!0)});else for(var dt=Object.keys(gt),se=0;se<dt.length;se++)this.set(dt[se],gt[dt[se]],!0)},qe}();function I(qe){return qe&&qe.__esModule&&Object.prototype.hasOwnProperty.call(qe,"default")?qe.default:qe}function S(qe,ke){return ke={exports:{}},qe(ke,ke.exports),ke.exports}function R(qe){return qe&&qe.default||qe}var b=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=ut;function ut(gt){return gt.charAt(0).toUpperCase()+gt.slice(1)}});I(b);var Q=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=bt;var ut=gt(b);function gt(dt){return dt&&dt.__esModule?dt:{default:dt}}function bt(dt,se,Ce){if(dt.hasOwnProperty(se)){for(var fe={},Me=dt[se],Re=(0,ut.default)(se),Oe=Object.keys(Ce),st=0;st<Oe.length;st++){var Ct=Oe[st];if(Ct===se)for(var St=0;St<Me.length;St++)fe[Me[St]+Re]=Ce[se];fe[Ct]=Ce[Ct]}return fe}return Ce}});I(Q);var D=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=ut;function ut(gt,bt,dt,se,Ce){for(var fe=0,Me=gt.length;fe<Me;++fe){var Re=gt[fe](bt,dt,se,Ce);if(Re)return Re}}});I(D);var F=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=gt;function ut(bt,dt){bt.indexOf(dt)===-1&&bt.push(dt)}function gt(bt,dt){if(Array.isArray(dt))for(var se=0,Ce=dt.length;se<Ce;++se)ut(bt,dt[se]);else ut(bt,dt)}});I(F);var N=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=ut;function ut(gt){return gt instanceof Object&&!Array.isArray(gt)}});I(N);var k=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=Ce;var ut=se(Q),gt=se(D),bt=se(F),dt=se(N);function se(fe){return fe&&fe.__esModule?fe:{default:fe}}function Ce(fe){var Me=fe.prefixMap,Re=fe.plugins;return function Oe(st){for(var Ct in st){var St=st[Ct];if((0,dt.default)(St))st[Ct]=Oe(St);else if(Array.isArray(St)){for(var It=[],kt=0,nr=St.length;kt<nr;++kt){var Qr=(0,gt.default)(Re,Ct,St[kt],st,Me);(0,bt.default)(It,Qr||St[kt])}It.length>0&&(st[Ct]=It)}else{var kr=(0,gt.default)(Re,Ct,St,st,Me);kr&&(st[Ct]=kr),st=(0,ut.default)(Me,Ct,st)}}return st}}}),O=I(k),P=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=ut;function ut(gt,bt){if(typeof bt=="string"&&bt==="text")return["-webkit-text","text"]}}),z=I(P),j=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=gt;var ut=/-webkit-|-moz-|-ms-/;function gt(bt){return typeof bt=="string"&&ut.test(bt)}qe.exports=ke.default});I(j);var V=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=dt;var ut=gt(j);function gt(se){return se&&se.__esModule?se:{default:se}}var bt=["-webkit-","-moz-",""];function dt(se,Ce){if(typeof Ce=="string"&&!(0,ut.default)(Ce)&&Ce.indexOf("calc(")>-1)return bt.map(function(fe){return Ce.replace(/calc\(/g,fe+"calc(")})}}),L=I(V),K=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=dt;var ut=gt(j);function gt(se){return se&&se.__esModule?se:{default:se}}var bt=["-webkit-",""];function dt(se,Ce){if(typeof Ce=="string"&&!(0,ut.default)(Ce)&&Ce.indexOf("cross-fade(")>-1)return bt.map(function(fe){return Ce.replace(/cross-fade\(/g,fe+"cross-fade(")})}}),J=I(K),Y=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=bt;var ut=["-webkit-","-moz-",""],gt={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function bt(dt,se){if(dt==="cursor"&&gt.hasOwnProperty(se))return ut.map(function(Ce){return Ce+se})}}),W=I(Y),q=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=dt;var ut=gt(j);function gt(se){return se&&se.__esModule?se:{default:se}}var bt=["-webkit-",""];function dt(se,Ce){if(typeof Ce=="string"&&!(0,ut.default)(Ce)&&Ce.indexOf("filter(")>-1)return bt.map(function(fe){return Ce.replace(/filter\(/g,fe+"filter(")})}}),ee=I(q),ae=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=gt;var ut={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function gt(bt,dt){if(bt==="display"&&ut.hasOwnProperty(dt))return ut[dt]}}),ne=I(ae),ce=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=se;var ut={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},gt={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"},bt={auto:"1 1 auto",inherit:"inherit",initial:"0 1 auto",none:"0 0 auto",unset:"unset"},dt=/^\d+(\.\d+)?$/;function se(Ce,fe,Me){if(Object.prototype.hasOwnProperty.call(gt,Ce)&&(Me[gt[Ce]]=ut[fe]||fe),Ce==="flex"){if(Object.prototype.hasOwnProperty.call(bt,fe)){Me.msFlex=bt[fe];return}if(dt.test(fe)){Me.msFlex=fe+" 1 0%";return}var Re=fe.split(/\s/);switch(Re.length){case 1:Me.msFlex="1 1 "+fe;return;case 2:dt.test(Re[1])?Me.msFlex=Re[0]+" "+Re[1]+" 0%":Me.msFlex=Re[0]+" 1 "+Re[1];return;default:Me.msFlex=fe}}}}),ue=I(ce),ge=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=bt;var ut={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},gt={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function bt(dt,se,Ce){dt==="flexDirection"&&typeof se=="string"&&(se.indexOf("column")>-1?Ce.WebkitBoxOrient="vertical":Ce.WebkitBoxOrient="horizontal",se.indexOf("reverse")>-1?Ce.WebkitBoxDirection="reverse":Ce.WebkitBoxDirection="normal"),gt.hasOwnProperty(dt)&&(Ce[gt[dt]]=ut[se]||se)}}),Se=I(ge),ye=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=se;var ut=gt(j);function gt(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}var bt=["-webkit-","-moz-",""],dt=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function se(Ce,fe){if(typeof fe=="string"&&!(0,ut.default)(fe)&&dt.test(fe))return bt.map(function(Me){return fe.replace(dt,function(Re){return Me+Re})})}}),pe=I(ye),Qe=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0});var ut=function(){function fe(Me,Re){var Oe=[],st=!0,Ct=!1,St=void 0;try{for(var It=Me[Symbol.iterator](),kt;!(st=(kt=It.next()).done)&&(Oe.push(kt.value),!(Re&&Oe.length===Re));st=!0);}catch(nr){Ct=!0,St=nr}finally{try{!st&&It.return&&It.return()}finally{if(Ct)throw St}}return Oe}return function(Me,Re){if(Array.isArray(Me))return Me;if(Symbol.iterator in Object(Me))return fe(Me,Re);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();ke.default=Ce;function gt(fe){return typeof fe=="number"&&!isNaN(fe)}var bt=["center","end","start","stretch"],dt={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},se={alignSelf:function(Me,Re){bt.indexOf(Me)>-1&&(Re.msGridRowAlign=Me)},gridColumn:function(Me,Re){if(gt(Me))Re.msGridColumn=Me;else{var Oe=Me.split("/").map(function(It){return+It}),st=ut(Oe,2),Ct=st[0],St=st[1];se.gridColumnStart(Ct,Re),se.gridColumnEnd(St,Re)}},gridColumnEnd:function(Me,Re){var Oe=Re.msGridColumn;gt(Me)&&gt(Oe)&&(Re.msGridColumnSpan=Me-Oe)},gridColumnStart:function(Me,Re){gt(Me)&&(Re.msGridColumn=Me)},gridRow:function(Me,Re){if(gt(Me))Re.msGridRow=Me;else{var Oe=Me.split("/").map(function(It){return+It}),st=ut(Oe,2),Ct=st[0],St=st[1];se.gridRowStart(Ct,Re),se.gridRowEnd(St,Re)}},gridRowEnd:function(Me,Re){var Oe=Re.msGridRow;gt(Me)&&gt(Oe)&&(Re.msGridRowSpan=Me-Oe)},gridRowStart:function(Me,Re){gt(Me)&&(Re.msGridRow=Me)},gridTemplateColumns:function(Me,Re){Re.msGridColumns=Me},gridTemplateRows:function(Me,Re){Re.msGridRows=Me},justifySelf:function(Me,Re){bt.indexOf(Me)>-1&&(Re.msGridColumnAlign=Me)}};function Ce(fe,Me,Re){if(fe==="display"&&Me in dt)return dt[Me];if(fe in se){var Oe=se[fe];Oe(Me,Re)}}}),Ue=I(Qe),tt=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=dt;var ut=gt(j);function gt(se){return se&&se.__esModule?se:{default:se}}var bt=["-webkit-",""];function dt(se,Ce){if(typeof Ce=="string"&&!(0,ut.default)(Ce)&&Ce.indexOf("image-set(")>-1)return bt.map(function(fe){return Ce.replace(/image-set\(/g,fe+"image-set(")})}}),it=I(tt),we=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=gt;var ut={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};function gt(bt,dt,se){if(Object.prototype.hasOwnProperty.call(ut,bt))for(var Ce=ut[bt],fe=0,Me=Ce.length;fe<Me;++fe)se[Ce[fe]]=dt}}),ve=I(we),Te=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=ut;function ut(gt,bt){if(gt==="position"&&bt==="sticky")return["-webkit-sticky","sticky"]}}),Be=I(Te),Ge=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=dt;var ut=["-webkit-","-moz-",""],gt={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},bt={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function dt(se,Ce){if(gt.hasOwnProperty(se)&&bt.hasOwnProperty(Ce))return ut.map(function(fe){return fe+Ce})}}),ht=I(Ge),We=/[A-Z]/g,Ke=/^ms-/,Xe={};function $e(qe){return"-"+qe.toLowerCase()}function pt(qe){if(Xe.hasOwnProperty(qe))return Xe[qe];var ke=qe.replace(We,$e);return Xe[qe]=Ke.test(ke)?"-"+ke:ke}var de=Object.freeze({default:pt}),Fe=R(de),je=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=bt;var ut=gt(Fe);function gt(dt){return dt&&dt.__esModule?dt:{default:dt}}function bt(dt){return(0,ut.default)(dt)}qe.exports=ke.default});I(je);var et=S(function(qe,ke){Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=Me;var ut=dt(je),gt=dt(j),bt=dt(b);function dt(Re){return Re&&Re.__esModule?Re:{default:Re}}var se={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},Ce={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function fe(Re,Oe){if((0,gt.default)(Re))return Re;for(var st=Re.split(/,(?![^()]*(?:\([^()]*\))?\))/g),Ct=0,St=st.length;Ct<St;++Ct){var It=st[Ct],kt=[It];for(var nr in Oe){var Qr=(0,ut.default)(nr);if(It.indexOf(Qr)>-1&&Qr!=="order")for(var kr=Oe[nr],or=0,vr=kr.length;or<vr;++or)kt.unshift(It.replace(Qr,Ce[kr[or]]+Qr))}st[Ct]=kt.join(",")}return st.join(",")}function Me(Re,Oe,st,Ct){if(typeof Oe=="string"&&se.hasOwnProperty(Re)){var St=fe(Oe,Ct),It=St.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(nr){return!/-moz-|-ms-/.test(nr)}).join(",");if(Re.indexOf("Webkit")>-1)return It;var kt=St.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(nr){return!/-webkit-|-ms-/.test(nr)}).join(",");return Re.indexOf("Moz")>-1?kt:(st["Webkit"+(0,bt.default)(Re)]=It,st["Moz"+(0,bt.default)(Re)]=kt,St)}}}),xe=I(et),Ne=["Webkit"],le=["Moz"],At=["ms"],Bt=["Webkit","Moz"],G=["Webkit","ms"],Ee=["Webkit","Moz","ms"],Ie={plugins:[z,L,J,W,ee,ne,ue,Se,pe,Ue,it,ve,Be,ht,xe],prefixMap:{transform:G,transformOrigin:G,transformOriginX:G,transformOriginY:G,backfaceVisibility:Ne,perspective:Ne,perspectiveOrigin:Ne,transformStyle:Ne,transformOriginZ:Ne,animation:Ne,animationDelay:Ne,animationDirection:Ne,animationFillMode:Ne,animationDuration:Ne,animationIterationCount:Ne,animationName:Ne,animationPlayState:Ne,animationTimingFunction:Ne,appearance:Bt,userSelect:Ee,fontKerning:Ne,textEmphasisPosition:Ne,textEmphasis:Ne,textEmphasisStyle:Ne,textEmphasisColor:Ne,boxDecorationBreak:Ne,clipPath:Ne,maskImage:Ne,maskMode:Ne,maskRepeat:Ne,maskPosition:Ne,maskClip:Ne,maskOrigin:Ne,maskSize:Ne,maskComposite:Ne,mask:Ne,maskBorderSource:Ne,maskBorderMode:Ne,maskBorderSlice:Ne,maskBorderWidth:Ne,maskBorderOutset:Ne,maskBorderRepeat:Ne,maskBorder:Ne,maskType:Ne,textDecorationStyle:Bt,textDecorationSkip:Bt,textDecorationLine:Bt,textDecorationColor:Bt,filter:Ne,fontFeatureSettings:Bt,breakAfter:Ee,breakBefore:Ee,breakInside:Ee,columnCount:Bt,columnFill:Bt,columnGap:Bt,columnRule:Bt,columnRuleColor:Bt,columnRuleStyle:Bt,columnRuleWidth:Bt,columns:Bt,columnSpan:Bt,columnWidth:Bt,writingMode:G,flex:G,flexBasis:Ne,flexDirection:G,flexGrow:Ne,flexFlow:G,flexShrink:Ne,flexWrap:G,alignContent:Ne,alignItems:Ne,alignSelf:Ne,justifyContent:Ne,order:Ne,transitionDelay:Ne,transitionDuration:Ne,transitionProperty:Ne,transitionTimingFunction:Ne,backdropFilter:Ne,scrollSnapType:G,scrollSnapPointsX:G,scrollSnapPointsY:G,scrollSnapDestination:G,scrollSnapCoordinate:G,shapeImageThreshold:Ne,shapeImageMargin:Ne,shapeImageOutside:Ne,hyphens:Ee,flowInto:G,flowFrom:G,regionFragment:G,textOrientation:Ne,boxSizing:le,textAlignLast:le,tabSize:le,wrapFlow:At,wrapThrough:At,wrapMargin:At,touchAction:At,textSizeAdjust:G,borderImage:Ne,borderImageOutset:Ne,borderImageRepeat:Ne,borderImageSlice:Ne,borderImageSource:Ne,borderImageWidth:Ne}},ie=O(Ie),re=[function(ke,ut,gt){return ke[0]!==":"?null:gt(ut+ke)},function(ke,ut,gt){if(ke[0]!=="@")return null;var bt=gt(ut);return["".concat(ke,"{").concat(bt.join(""),"}")]}],he=function qe(ke,ut,gt,bt,dt){for(var se=new M,Ce=0;Ce<ut.length;Ce++)se.addStyleType(ut[Ce]);var fe=new M,Me=[];se.forEach(function(Oe,st){var Ct=gt.some(function(St){var It=St(st,ke,function(kt){return qe(kt,[Oe],gt,bt,dt)});if(It!=null)return Array.isArray(It)?Me.push.apply(Me,o(It)):(console.warn("WARNING: Selector handlers should return an array of rules.Returning a string containing multiple rules is deprecated.",St),Me.push("@media all {".concat(It,"}"))),!0});Ct||fe.set(st,Oe,!0)});var Re=lt(ke,fe,bt,dt,gt);return Re&&Me.unshift(Re),Me},Pe=function(ke,ut,gt){if(ut)for(var bt=Object.keys(ut),dt=0;dt<bt.length;dt++){var se=bt[dt];ke.has(se)&&ke.set(se,ut[se](ke.get(se),gt),!1)}},be=function(ke,ut,gt){return"".concat(d(ke),":").concat(gt(ke,ut),";")},Ve=function(ke,ut){return ke[ut]=!0,ke},lt=function(ke,ut,gt,bt,dt){Pe(ut,gt,dt);var se=Object.keys(ut.elements).reduce(Ve,Object.create(null)),Ce=ie(ut.elements),fe=Object.keys(Ce);if(fe.length!==ut.keyOrder.length){for(var Me=0;Me<fe.length;Me++)if(!se[fe[Me]]){var Re=void 0;if(fe[Me][0]==="W"?Re=fe[Me][6].toLowerCase()+fe[Me].slice(7):fe[Me][1]==="o"?Re=fe[Me][3].toLowerCase()+fe[Me].slice(4):Re=fe[Me][2].toLowerCase()+fe[Me].slice(3),Re&&se[Re]){var Oe=ut.keyOrder.indexOf(Re);ut.keyOrder.splice(Oe,0,fe[Me])}else ut.keyOrder.unshift(fe[Me])}}for(var st=bt===!1?p:E,Ct=[],St=0;St<ut.keyOrder.length;St++){var It=ut.keyOrder[St],kt=Ce[It];if(Array.isArray(kt))for(var nr=0;nr<kt.length;nr++)Ct.push(be(It,kt[nr],st));else Ct.push(be(It,kt,st))}return Ct.length?"".concat(ke,"{").concat(Ct.join(""),"}"):""},Ze=null,Le=function(ke){if(Ze==null&&(Ze=document.querySelector("style[data-aphrodite]"),Ze==null)){var ut=document.head||document.getElementsByTagName("head")[0];Ze=document.createElement("style"),Ze.type="text/css",Ze.setAttribute("data-aphrodite",""),ut.appendChild(Ze)}var gt=Ze.styleSheet||Ze.sheet;if(gt.insertRule){var bt=gt.cssRules.length;ke.forEach(function(dt){try{gt.insertRule(dt,bt),bt+=1}catch{}})}else Ze.innerText=(Ze.innerText||"")+ke.join("")},rt={fontFamily:function qe(ke){if(Array.isArray(ke)){var ut={};return ke.forEach(function(gt){ut[qe(gt)]=!0}),Object.keys(ut).join(",")}else return n(ke)==="object"?(Er(ke.src,"@font-face",[ke],!1),'"'.concat(ke.fontFamily,'"')):ke},animationName:function qe(ke,ut){if(Array.isArray(ke))return ke.map(function(dt){return qe(dt,ut)}).join(",");if(n(ke)==="object"){var gt="keyframe_".concat(C(ke)),bt="@keyframes ".concat(gt,"{");return ke instanceof M?ke.forEach(function(dt,se){bt+=he(se,[dt],ut,rt,!1).join("")}):Object.keys(ke).forEach(function(dt){bt+=he(dt,[ke[dt]],ut,rt,!1).join("")}),bt+="}",br(gt,[bt]),gt}else return ke}},Qt={},Dt=[],ur=!1,br=function(ke,ut){var gt;if(!Qt[ke]){if(!ur){if(typeof document>"u")throw new Error("Cannot automatically buffer without a document");ur=!0,r(ar)}(gt=Dt).push.apply(gt,o(ut)),Qt[ke]=!0}},Er=function(ke,ut,gt,bt){var dt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[];if(!Qt[ke]){var se=he(ut,gt,dt,rt,bt);br(ke,se)}},hr=function(){Dt=[],Qt={},ur=!1,Ze=null},Wt=function(ke){delete Qt[ke]},$t=function(){if(ur)throw new Error("Cannot buffer while already buffering");ur=!0},tr=function(){ur=!1;var ke=Dt;return Dt=[],ke},ir=function(){return tr().join("")},ar=function(){var ke=tr();ke.length>0&&Le(ke)},rr=function(){return Object.keys(Qt)},Yt=function(ke){ke.forEach(function(ut){Qt[ut]=!0})},Vt=function(ke){return"_definition"in ke&&"_name"in ke&&"_len"in ke},Ut=function qe(ke,ut,gt,bt){for(var dt=0;dt<ke.length;dt+=1)if(ke[dt])if(Array.isArray(ke[dt]))bt+=qe(ke[dt],ut,gt,bt);else if(Vt(ke[dt]))ut.push(ke[dt]._name),gt.push(ke[dt]._definition),bt+=ke[dt]._len;else throw new Error("Invalid Style Definition: Styles should be defined using the StyleSheet.create method.");return bt},Mt=function(ke,ut,gt){var bt=[],dt=[],se=Ut(ut,bt,dt,0);if(bt.length===0)return"";var Ce;return Ce=bt.length===1?"_".concat(bt[0]):"_".concat(y(bt.join())).concat((se%36).toString(36)),Er(Ce,".".concat(Ce),dt,ke,gt),Ce},xt=function(ke,ut){return"".concat(ut,"_").concat(y(ke))},Ft=function(){return y},qt=Ft(),gr={create:function(ke){for(var ut={},gt=Object.keys(ke),bt=0;bt<gt.length;bt+=1){var dt=gt[bt],se=ke[dt],Ce=JSON.stringify(se);ut[dt]={_len:Ce.length,_name:qt(Ce,dt),_definition:se}}return ut},rehydrate:function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Yt(ke)}},Hr=typeof window<"u"?null:{renderStatic:function(ke){hr(),$t();var ut=ke(),gt=ir();return{html:ut,css:{content:gt,renderedClassNames:rr()}}}},zr=null;function an(qe){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re;return{StyleSheet:i({},gr,{extend:function(gt){var bt=gt.map(function(dt){return dt.selectorHandler}).filter(function(dt){return dt});return an(qe,ke.concat(bt))}}),StyleSheetServer:Hr,StyleSheetTestUtils:zr,minify:function(gt){qt=gt?y:xt},css:function(){for(var gt=arguments.length,bt=new Array(gt),dt=0;dt<gt;dt++)bt[dt]=arguments[dt];return Mt(qe,bt,ke)},flushToStyleTag:ar,injectAndGetClassName:Mt,defaultSelectorHandlers:re,reset:hr,resetInjectedStyle:Wt}}return i8.makeExports=an,i8}var Jae;function wEt(){if(Jae)return Vo;Jae=1,Object.defineProperty(Vo,"__esModule",{value:!0});var e=CEt();vMe(),mMe();var t=!1,r=e.makeExports(t),n=r.StyleSheet,a=r.StyleSheetServer,i=r.StyleSheetTestUtils,o=r.css,s=r.minify,l=r.flushToStyleTag,A=r.injectAndGetClassName,c=r.defaultSelectorHandlers,u=r.reset,d=r.resetInjectedStyle;return Vo.StyleSheet=n,Vo.StyleSheetServer=a,Vo.StyleSheetTestUtils=i,Vo.css=o,Vo.minify=s,Vo.flushToStyleTag=l,Vo.injectAndGetClassName=A,Vo.defaultSelectorHandlers=c,Vo.reset=u,Vo.resetInjectedStyle=d,Vo}var A8,Wae;function BEt(){return Wae||(Wae=1,A8=wEt()),A8}var Xae=BEt();const EMe=({className:e,symbol:t,text:r,description:n,complement:a})=>v.jsx(pr,{title:n+" : "+r+a,children:v.jsxs("div",{className:e??"",children:[t,r??""]})});EMe.propTypes={className:U.string,symbol:U.object,text:U.string,description:U.string,complement:U.string};var uu={},bB={},e3=function(e,t){return e3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},e3(e,t)};function Cr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e3(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Tt=function(){return Tt=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Tt.apply(this,arguments)};function Zv(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function yMe(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function CMe(e,t){return function(r,n){t(r,n,e)}}function wMe(e,t,r,n,a,i){function o(E){if(E!==void 0&&typeof E!="function")throw new TypeError("Function expected");return E}for(var s=n.kind,l=s==="getter"?"get":s==="setter"?"set":"value",A=!t&&e?n.static?e:e.prototype:null,c=t||(A?Object.getOwnPropertyDescriptor(A,n.name):{}),u,d=!1,f=r.length-1;f>=0;f--){var h={};for(var g in n)h[g]=g==="access"?{}:n[g];for(var g in n.access)h.access[g]=n.access[g];h.addInitializer=function(E){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(E||null))};var p=(0,r[f])(s==="accessor"?{get:c.get,set:c.set}:c[l],h);if(s==="accessor"){if(p===void 0)continue;if(p===null||typeof p!="object")throw new TypeError("Object expected");(u=o(p.get))&&(c.get=u),(u=o(p.set))&&(c.set=u),(u=o(p.init))&&a.unshift(u)}else(u=o(p))&&(s==="field"?a.unshift(u):c[l]=u)}A&&Object.defineProperty(A,n.name,c),d=!0}function BMe(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0}function MMe(e){return typeof e=="symbol"?e:"".concat(e)}function xMe(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function IMe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function bMe(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(c){try{A(n.next(c))}catch(u){o(u)}}function l(c){try{A(n.throw(c))}catch(u){o(u)}}function A(c){c.done?i(c.value):a(c.value).then(s,l)}A((n=n.apply(e,t||[])).next())})}function SMe(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(A){return function(c){return l([A,c])}}function l(A){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,A[0]&&(r=0)),r;)try{if(n=1,a&&(i=A[0]&2?a.return:A[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,A[1])).done)return i;switch(a=0,i&&(A=[A[0]&2,i.value]),A[0]){case 0:case 1:i=A;break;case 4:return r.label++,{value:A[1],done:!1};case 5:r.label++,a=A[1],A=[0];continue;case 7:A=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(A[0]===6||A[0]===2)){r=0;continue}if(A[0]===3&&(!i||A[1]>i[0]&&A[1]<i[3])){r.label=A[1];break}if(A[0]===6&&r.label<i[1]){r.label=i[1],i=A;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(A);break}i[2]&&r.ops.pop(),r.trys.pop();continue}A=t.call(e,r)}catch(c){A=[6,c],a=0}finally{n=i=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}}var A2=Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function RMe(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&A2(t,e,r)}function aS(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function yU(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function TMe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(yU(arguments[t]));return e}function lh(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n}function iS(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Ev(e){return this instanceof Ev?(this.v=e,this):new Ev(e)}function QMe(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),a,i=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",o),a[Symbol.asyncIterator]=function(){return this},a;function o(f){return function(h){return Promise.resolve(h).then(f,u)}}function s(f,h){n[f]&&(a[f]=function(g){return new Promise(function(p,E){i.push([f,g,p,E])>1||l(f,g)})},h&&(a[f]=h(a[f])))}function l(f,h){try{A(n[f](h))}catch(g){d(i[0][3],g)}}function A(f){f.value instanceof Ev?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}function c(f){l("next",f)}function u(f){l("throw",f)}function d(f,h){f(h),i.shift(),i.length&&l(i[0][0],i[0][1])}}function DMe(e){var t,r;return t={},n("next"),n("throw",function(a){throw a}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(a,i){t[a]=e[a]?function(o){return(r=!r)?{value:Ev(e[a](o)),done:!1}:i?i(o):o}:i}}function FMe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof aS=="function"?aS(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(o){return new Promise(function(s,l){o=e[i](o),a(s,l,o.done,o.value)})}}function a(i,o,s,l){Promise.resolve(l).then(function(A){i({value:A,done:s})},o)}}function _Me(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var MEt=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},t3=function(e){return t3=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},t3(e)};function NMe(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=t3(e),n=0;n<r.length;n++)r[n]!=="default"&&A2(t,e,r[n]);return MEt(t,e),t}function kMe(e){return e&&e.__esModule?e:{default:e}}function PMe(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function OMe(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r}function zMe(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function jMe(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,a;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(a=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");a&&(n=function(){try{a.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var xEt=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function YMe(e){function t(i){e.error=e.hasError?new xEt(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function a(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(a);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(a,function(o){return t(o),a()})}else n|=1}catch(o){t(o)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return a()}function LMe(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,a,i,o){return n?t?".jsx":".js":a&&(!i||!o)?r:a+i+"."+o.toLowerCase()+"js"}):e}const IEt={__extends:Cr,__assign:Tt,__rest:Zv,__decorate:yMe,__param:CMe,__esDecorate:wMe,__runInitializers:BMe,__propKey:MMe,__setFunctionName:xMe,__metadata:IMe,__awaiter:bMe,__generator:SMe,__createBinding:A2,__exportStar:RMe,__values:aS,__read:yU,__spread:TMe,__spreadArrays:lh,__spreadArray:iS,__await:Ev,__asyncGenerator:QMe,__asyncDelegator:DMe,__asyncValues:FMe,__makeTemplateObject:_Me,__importStar:NMe,__importDefault:kMe,__classPrivateFieldGet:PMe,__classPrivateFieldSet:OMe,__classPrivateFieldIn:zMe,__addDisposableResource:jMe,__disposeResources:YMe,__rewriteRelativeImportExtension:LMe},bEt=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:jMe,get __assign(){return Tt},__asyncDelegator:DMe,__asyncGenerator:QMe,__asyncValues:FMe,__await:Ev,__awaiter:bMe,__classPrivateFieldGet:PMe,__classPrivateFieldIn:zMe,__classPrivateFieldSet:OMe,__createBinding:A2,__decorate:yMe,__disposeResources:YMe,__esDecorate:wMe,__exportStar:RMe,__extends:Cr,__generator:SMe,__importDefault:kMe,__importStar:NMe,__makeTemplateObject:_Me,__metadata:IMe,__param:CMe,__propKey:MMe,__read:yU,__rest:Zv,__rewriteRelativeImportExtension:LMe,__runInitializers:BMe,__setFunctionName:xMe,__spread:TMe,__spreadArray:iS,__spreadArrays:lh,__values:aS,default:IEt},Symbol.toStringTag,{value:"Module"})),Kt=Un(bEt);var _o=function(e){return e!==null&&typeof e!="function"&&isFinite(e.length)},oS=function(e,t){return _o(e)?e.indexOf(t)>-1:!1},$v=function(e,t){if(!_o(e))return e;for(var r=[],n=0;n<e.length;n++){var a=e[n];t(a,n)&&r.push(a)}return r},UMe=function(e,t){return t===void 0&&(t=[]),$v(e,function(r){return!oS(t,r)})},SEt={}.toString,Ll=function(e,t){return SEt.call(e)==="[object "+t+"]"};const Fn=function(e){return Ll(e,"Function")};var sr=function(e){return e==null};const En=function(e){return Array.isArray?Array.isArray(e):Ll(e,"Array")},ns=function(e){var t=typeof e;return e!==null&&t==="object"||t==="function"};function Ht(e,t){if(e){var r;if(En(e))for(var n=0,a=e.length;n<a&&(r=t(e[n],n),r!==!1);n++);else if(ns(e)){for(var i in e)if(e.hasOwnProperty(i)&&(r=t(e[i],i),r===!1))break}}}var CU=Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];return Ht(e,function(r,n){Fn(e)&&n==="prototype"||t.push(n)}),t};function HMe(e,t){var r=CU(t),n=r.length;if(sr(e))return!n;for(var a=0;a<n;a+=1){var i=r[a];if(t[i]!==e[i]||!(i in e))return!1}return!0}var sS=function(e){return typeof e=="object"&&e!==null},yv=function(e){if(!sS(e)||!Ll(e,"Object"))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t};function REt(e,t){if(!En(e))return null;var r;if(Fn(t)&&(r=t),yv(t)&&(r=function(a){return HMe(a,t)}),r){for(var n=0;n<e.length;n+=1)if(r(e[n]))return e[n]}return null}function TEt(e,t,r){r===void 0&&(r=0);for(var n=r;n<e.length;n++)if(t(e[n],n))return n;return-1}var QEt=function(e,t){for(var r=null,n=0;n<e.length;n++){var a=e[n],i=a[t];if(!sr(i)){En(i)?r=i[0]:r=i;break}}return r},Oy=function(e){if(!En(e))return[];for(var t=[],r=0;r<e.length;r++)t=t.concat(e[r]);return t},GMe=function(e,t){if(t===void 0&&(t=[]),!En(e))t.push(e);else for(var r=0;r<e.length;r+=1)GMe(e[r],t);return t};const Ys=function(e){if(En(e))return e.reduce(function(t,r){return Math.max(t,r)},e[0])},Ls=function(e){if(En(e))return e.reduce(function(t,r){return Math.min(t,r)},e[0])};var KMe=function(e){var t=e.filter(function(o){return!isNaN(o)});if(!t.length)return{min:0,max:0};if(En(e[0])){for(var r=[],n=0;n<e.length;n++)r=r.concat(e[n]);t=r}var a=Ys(t),i=Ls(t);return{min:i,max:a}},VMe=Array.prototype,DEt=VMe.splice,FEt=VMe.indexOf,_Et=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n++)for(var a=t[n],i=-1;(i=FEt.call(e,a))>-1;)DEt.call(e,i,1);return e},NEt=Array.prototype.splice,JMe=function(t,r){if(!_o(t))return[];for(var n=t?r.length:0,a=n-1;n--;){var i=void 0,o=r[n];(n===a||o!==i)&&(i=o,NEt.call(t,o,1))}return t},WMe=function(e,t,r){if(!En(e)&&!yv(e))return e;var n=r;return Ht(e,function(a,i){n=t(n,a,i)}),n},kEt=function(e,t){var r=[];if(!_o(e))return r;for(var n=-1,a=[],i=e.length;++n<i;){var o=e[n];t(o,n,e)&&(r.push(o),a.push(n))}return JMe(e,a),r};const jn=function(e){return Ll(e,"String")};function PEt(e,t){var r;if(Fn(t))r=function(a,i){return t(a)-t(i)};else{var n=[];jn(t)?n.push(t):En(t)&&(n=t),r=function(a,i){for(var o=0;o<n.length;o+=1){var s=n[o];if(a[s]>i[s])return 1;if(a[s]<i[s])return-1}return 0}}return e.sort(r),e}function XMe(e,t){t===void 0&&(t=new Map);var r=[];if(Array.isArray(e))for(var n=0,a=e.length;n<a;n++){var i=e[n];t.has(i)||(r.push(i),t.set(i,!0))}return r}var OEt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return XMe([].concat.apply([],e))};const wU=function(e,t){for(var r=[],n={},a=0;a<e.length;a++){var i=e[a],o=i[t];if(!sr(o)){En(o)||(o=[o]);for(var s=0;s<o.length;s++){var l=o[s];n[l]||(r.push(l),n[l]=!0)}}}return r};function wA(e){if(_o(e))return e[0]}function Ns(e){if(_o(e)){var t=e;return t[t.length-1]}}function zEt(e,t){return En(e)||jn(e)?e[0]===t:!1}function jEt(e,t){return En(e)||jn(e)?e[e.length-1]===t:!1}var YEt=function(e,t){for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},LEt=function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r))return!0;return!1},UEt=Object.prototype.hasOwnProperty;function c2(e,t){if(!t||!En(e))return{};for(var r={},n=Fn(t)?t:function(s){return s[t]},a,i=0;i<e.length;i++){var o=e[i];a=n(o),UEt.call(r,a)?r[a].push(o):r[a]=[o]}return r}function qMe(e,t){if(!t)return{0:e};if(!Fn(t)){var r=En(t)?t:t.replace(/\s+/g,"").split("*");t=function(n){for(var a="_",i=0,o=r.length;i<o;i++)a+=n[r[i]]&&n[r[i]].toString();return a}}return c2(e,t)}const ZMe=function(e,t){if(!t)return[e];var r=qMe(e,t),n=[];for(var a in r)n.push(r[a]);return n};function HEt(e,t){return e["_wrap_"+t]}function GEt(e,t){if(e["_wrap_"+t])return e["_wrap_"+t];var r=function(n){e[t](n)};return e["_wrap_"+t]=r,r}var qae={};function KEt(e){var t=qae[e];if(!t){for(var r=e.toString(16),n=r.length;n<6;n++)r="0"+r;t="#"+r,qae[e]=t}return t}function VEt(e){var t=0,r=0,n=0,a=0;return En(e)?e.length===1?t=r=n=a=e[0]:e.length===2?(t=n=e[0],r=a=e[1]):e.length===3?(t=e[0],r=a=e[1],n=e[2]):(t=e[0],r=e[1],n=e[2],a=e[3]):t=r=n=a=e,{r1:t,r2:r,r3:n,r4:a}}var Yi=function(e,t,r){return e<t?t:e>r?r:e},FI=function(e,t){var r=t.toString(),n=r.indexOf(".");if(n===-1)return Math.round(e);var a=r.substr(n+1).length;return a>20&&(a=20),parseFloat(e.toFixed(a))},$n=function(e){return Ll(e,"Number")},JEt=function(e){return $n(e)&&e%1!==0},WEt=function(e){return $n(e)&&e%2===0},XEt=Number.isInteger?Number.isInteger:function(e){return $n(e)&&e%1===0},qEt=function(e){return $n(e)&&e<0},ZEt=1e-5;function BA(e,t,r){return r===void 0&&(r=ZEt),Math.abs(e-t)<r}var $Et=function(e){return $n(e)&&e%2!==0},e0t=function(e){return $n(e)&&e>0};const t0t=function(e,t){if(En(e)){for(var r,n=-1/0,a=0;a<e.length;a++){var i=e[a],o=Fn(t)?t(i):i[t];o>n&&(r=i,n=o)}return r}},r0t=function(e,t){if(En(e)){for(var r,n=1/0,a=0;a<e.length;a++){var i=e[a],o=Fn(t)?t(i):i[t];o<n&&(r=i,n=o)}return r}};var BU=function(e,t){return(e%t+t)%t},n0t=180/Math.PI,a0t=function(e){return n0t*e};const i0t=parseInt;var o0t=Math.PI/180,MU=function(e){return o0t*e};const od=function(e,t){return e.hasOwnProperty(t)};var xU=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return Ht(e,function(r,n){Fn(e)&&n==="prototype"||t.push(r)}),t};const s0t=function(e,t){return oS(xU(e),t)},em=function(e){return sr(e)?"":e.toString()};var l0t=function(e){return em(e).toLowerCase()},A0t=function(e){var t=em(e);return t.charAt(0).toLowerCase()+t.substring(1)};function IU(e,t){return!e||!t?e:e.replace(/\\?\{([^{}]+)\}/g,function(r,n){return r.charAt(0)==="\\"?r.slice(1):t[n]===void 0?"":t[n]})}var c0t=function(e){return em(e).toUpperCase()},u2=function(e){var t=em(e);return t.charAt(0).toUpperCase()+t.substring(1)},u0t={}.toString,$Me=function(e){return u0t.call(e).replace(/^\[object /,"").replace(/]$/,"")},d0t=function(e){return Ll(e,"Arguments")},f0t=function(e){return Ll(e,"Boolean")},bU=function(e){return Ll(e,"Date")},h0t=function(e){return Ll(e,"Error")};function g0t(e){return $n(e)&&isFinite(e)}var p0t=function(e){return e===null},v0t=Object.prototype,exe=function(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||v0t;return e===r},m0t=function(e){return Ll(e,"RegExp")},E0t=function(e){return e===void 0},SU=function(e){return e instanceof Element||e instanceof HTMLDocument};function txe(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(r){return setTimeout(r,16)};return t(e)}function rxe(e){var t=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;t(e)}function c8(e,t){for(var r in t)t.hasOwnProperty(r)&&r!=="constructor"&&t[r]!==void 0&&(e[r]=t[r])}function pa(e,t,r,n){return t&&c8(e,t),r&&c8(e,r),n&&c8(e,n),e}var y0t=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=1;n<e.length;n++){var a=e[n];Fn(a)&&(a=a.prototype),pa(r.prototype,a)}},Ah=function(e){if(typeof e!="object"||e===null)return e;var t;if(En(e)){t=[];for(var r=0,n=e.length;r<n;r++)typeof e[r]=="object"&&e[r]!=null?t[r]=Ah(e[r]):t[r]=e[r]}else{t={};for(var a in e)typeof e[a]=="object"&&e[a]!=null?t[a]=Ah(e[a]):t[a]=e[a]}return t};function C0t(e,t,r){var n;return function(){var a=this,i=arguments,o=function(){n=null,r||e.apply(a,i)},s=r&&!n;clearTimeout(n),n=setTimeout(o,t),s&&e.apply(a,i)}}const RU=function(e,t){if(!Fn(e))throw new TypeError("Expected a function");var r=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return o.set(i,s),s};return r.cache=new Map,r};var w0t=5;function nxe(e,t,r,n){r=r||0,n=n||w0t;for(var a in t)if(t.hasOwnProperty(a)){var i=t[a];i!==null&&yv(i)?(yv(e[a])||(e[a]={}),r<n?nxe(e[a],i,r+1,n):e[a]=t[a]):En(i)?(e[a]=[],e[a]=e[a].concat(i)):i!==void 0&&(e[a]=i)}}var Fc=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n+=1)nxe(e,t[n]);return e},B0t=function(e,t,r,n){Fn(t)||(r=t,t=e,e=function(){});var a=Object.create?function(o,s){return Object.create(o,{constructor:{value:s}})}:function(o,s){function l(){}l.prototype=o;var A=new l;return A.constructor=s,A},i=a(t.prototype,e);return e.prototype=pa(i,e.prototype),e.superclass=a(t.prototype,t),pa(i,r),pa(e,n),e},TU=function(e,t){if(!_o(e))return-1;var r=Array.prototype.indexOf;if(r)return r.call(e,t);for(var n=-1,a=0;a<e.length;a++)if(e[a]===t){n=a;break}return n},M0t=Object.prototype.hasOwnProperty;function axe(e){if(sr(e))return!0;if(_o(e))return!e.length;var t=$Me(e);if(t==="Map"||t==="Set")return!e.size;if(exe(e))return!Object.keys(e).length;for(var r in e)if(M0t.call(e,r))return!1;return!0}var sd=function(e,t){if(e===t)return!0;if(!e||!t||jn(e)||jn(t))return!1;if(_o(e)||_o(t)){if(e.length!==t.length)return!1;for(var r=!0,n=0;n<e.length&&(r=sd(e[n],t[n]),!!r);n++);return r}if(sS(e)||sS(t)){var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var r=!0,n=0;n<a.length&&(r=sd(e[a[n]],t[a[n]]),!!r);n++);return r}return!1};const x0t=function(e,t,r){return Fn(r)?!!r(e,t):sd(e,t)};var mA=function(e,t){if(!_o(e))return e;for(var r=[],n=0;n<e.length;n++){var a=e[n];r.push(t(a,n))}return r},I0t=function(e){return e};const ixe=function(e,t){t===void 0&&(t=I0t);var r={};return ns(e)&&!sr(e)&&Object.keys(e).forEach(function(n){r[n]=t(e[n],n)}),r},cn=function(e,t,r){for(var n=0,a=jn(t)?t.split("."):t;e&&n<a.length;)e=e[a[n++]];return e===void 0||n<a.length?r:e},b0t=function(e,t,r){var n=e,a=jn(t)?t.split("."):t;return a.forEach(function(i,o){o<a.length-1?(ns(n[i])||(n[i]=$n(a[o+1])?[]:{}),n=n[i]):n[i]=r}),e};var S0t=Object.prototype.hasOwnProperty;const QU=function(e,t){if(e===null||!yv(e))return{};var r={};return Ht(t,function(n){S0t.call(e,n)&&(r[n]=e[n])}),r},R0t=function(e,t){return WMe(e,function(r,n,a){return t.includes(a)||(r[a]=n),r},{})},T0t=function(e,t,r){var n,a,i,o,s=0;r||(r={});var l=function(){s=r.leading===!1?0:Date.now(),n=null,o=e.apply(a,i),n||(a=i=null)},A=function(){var c=Date.now();!s&&r.leading===!1&&(s=c);var u=t-(c-s);return a=this,i=arguments,u<=0||u>t?(n&&(clearTimeout(n),n=null),s=c,o=e.apply(a,i),n||(a=i=null)):!n&&r.trailing!==!1&&(n=setTimeout(l,u)),o};return A.cancel=function(){clearTimeout(n),s=0,n=a=i=null},A},Q0t=function(e){return _o(e)?Array.prototype.slice.call(e):[]};var SB={};const oxe=function(e){return e=e||"g",SB[e]?SB[e]+=1:SB[e]=1,e+SB[e]},Qf=function(){},D0t=function(e){return e};function WC(e){return sr(e)?0:_o(e)?e.length:Object.keys(e).length}var RB;const T0=RU(function(e,t){t===void 0&&(t={});var r=t.fontSize,n=t.fontFamily,a=t.fontWeight,i=t.fontStyle,o=t.fontVariant;return RB||(RB=document.createElement("canvas").getContext("2d")),RB.font=[i,o,a,r+"px",n].join(" "),RB.measureText(jn(e)?e:"").width},function(e,t){return t===void 0&&(t={}),lh([e],xU(t)).join("")}),sxe=function(e,t,r,n){n===void 0&&(n="...");var a=16,i=T0(n,r),o=jn(e)?e:em(e),s=t,l=[],A,c;if(T0(e,r)<=t)return e;for(;A=o.substr(0,a),c=T0(A,r),!(c+i>s&&c>s);)if(l.push(A),s-=c,o=o.substr(a),!o)return l.join("");for(;A=o.substr(0,1),c=T0(A,r),!(c+i>s);)if(l.push(A),s-=c,o=o.substr(1),!o)return l.join("");return""+l.join("")+n};var lxe=function(){function e(){this.map={}}return e.prototype.has=function(t){return this.map[t]!==void 0},e.prototype.get=function(t,r){var n=this.map[t];return n===void 0?r:n},e.prototype.set=function(t,r){this.map[t]=r},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(t){delete this.map[t]},e.prototype.size=function(){return Object.keys(this.map).length},e}();const F0t=Object.freeze(Object.defineProperty({__proto__:null,Cache:lxe,assign:pa,augment:y0t,clamp:Yi,clearAnimationFrame:rxe,clone:Ah,contains:oS,debounce:C0t,deepMix:Fc,difference:UMe,each:Ht,endsWith:jEt,every:YEt,extend:B0t,filter:$v,find:REt,findIndex:TEt,firstValue:QEt,fixedBase:FI,flatten:Oy,flattenDeep:GMe,forIn:Ht,get:cn,getEllipsisText:sxe,getRange:KMe,getType:$Me,getWrapBehavior:HEt,group:ZMe,groupBy:c2,groupToMap:qMe,has:od,hasKey:od,hasValue:s0t,head:wA,identity:D0t,includes:oS,indexOf:TU,isArguments:d0t,isArray:En,isArrayLike:_o,isBoolean:f0t,isDate:bU,isDecimal:JEt,isElement:SU,isEmpty:axe,isEqual:sd,isEqualWith:x0t,isError:h0t,isEven:WEt,isFinite:g0t,isFunction:Fn,isInteger:XEt,isMatch:HMe,isNegative:qEt,isNil:sr,isNull:p0t,isNumber:$n,isNumberEqual:BA,isObject:ns,isObjectLike:sS,isOdd:$Et,isPlainObject:yv,isPositive:e0t,isPrototype:exe,isRegExp:m0t,isString:jn,isType:Ll,isUndefined:E0t,keys:CU,last:Ns,lowerCase:l0t,lowerFirst:A0t,map:mA,mapValues:ixe,max:Ys,maxBy:t0t,measureTextWidth:T0,memoize:RU,min:Ls,minBy:r0t,mix:pa,mod:BU,noop:Qf,number2color:KEt,omit:R0t,parseRadius:VEt,pick:QU,pull:_Et,pullAt:JMe,reduce:WMe,remove:kEt,requestAnimationFrame:txe,set:b0t,size:WC,some:LEt,sortBy:PEt,startsWith:zEt,substitute:IU,throttle:T0t,toArray:Q0t,toDegree:a0t,toInteger:i0t,toRadian:MU,toString:em,union:OEt,uniq:XMe,uniqueId:oxe,upperCase:c0t,upperFirst:u2,values:xU,valuesOfKey:wU,wrapBehavior:GEt},Symbol.toStringTag,{value:"Module"})),Gt=Un(F0t);var u8={},Zae;function Pa(){return Zae||(Zae=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.COMPONENT_MAX_VIEW_PERCENTAGE=e.MIN_CHART_HEIGHT=e.MIN_CHART_WIDTH=e.FIELD_ORIGIN=e.GROUP_ATTRS=e.ELEMENT_STATE=e.PLOT_EVENTS=e.GEOMETRY_LIFE_CIRCLE=e.VIEW_LIFE_CIRCLE=e.GROUP_Z_INDEX=e.COMPONENT_TYPE=e.DIRECTION=e.LAYER=void 0,function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(e.LAYER||(e.LAYER={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(e.DIRECTION||(e.DIRECTION={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(e.COMPONENT_TYPE||(e.COMPONENT_TYPE={})),e.GROUP_Z_INDEX={FORE:3,MID:2,BG:1},function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(e.VIEW_LIFE_CIRCLE||(e.VIEW_LIFE_CIRCLE={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate"}(e.GEOMETRY_LIFE_CIRCLE||(e.GEOMETRY_LIFE_CIRCLE={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(e.PLOT_EVENTS||(e.PLOT_EVENTS={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(e.ELEMENT_STATE||(e.ELEMENT_STATE={})),e.GROUP_ATTRS=["color","shape","size"],e.FIELD_ORIGIN="_origin",e.MIN_CHART_WIDTH=1,e.MIN_CHART_HEIGHT=1,e.COMPONENT_MAX_VIEW_PERCENTAGE=.25}(u8)),u8}var d8={},ey=`	
\v\f\r   ᠎             　\u2028\u2029`,_0t=new RegExp("([a-z])["+ey+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+ey+"]*,?["+ey+"]*)+)","ig"),N0t=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+ey+"]*,?["+ey+"]*","ig"),Ip=function(e){if(!e)return null;if(En(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},r=[];return String(e).replace(_0t,function(n,a,i){var o=[],s=a.toLowerCase();if(i.replace(N0t,function(l,A){A&&o.push(+A)}),s==="m"&&o.length>2&&(r.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&r.push([a,o[0]]),s==="r")r.push([a].concat(o));else for(;o.length>=t[s]&&(r.push([a].concat(o.splice(0,t[s]))),!!t[s]););return e}),r},r3=function(e,t){for(var r=[],n=0,a=e.length;a-2*!t>n;n+=2){var i=[{x:+e[n-2],y:+e[n-1]},{x:+e[n],y:+e[n+1]},{x:+e[n+2],y:+e[n+3]},{x:+e[n+4],y:+e[n+5]}];t?n?a-4===n?i[3]={x:+e[0],y:+e[1]}:a-2===n&&(i[2]={x:+e[0],y:+e[1]},i[3]={x:+e[2],y:+e[3]}):i[0]={x:+e[a-2],y:+e[a-1]}:a-4===n?i[3]=i[2]:n||(i[0]={x:+e[n],y:+e[n+1]}),r.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return r},TB=function(e,t,r,n,a){var i=[];if(a===null&&n===null&&(n=r),e=+e,t=+t,r=+r,n=+n,a!==null){var o=Math.PI/180,s=e+r*Math.cos(-n*o),l=e+r*Math.cos(-a*o),A=t+r*Math.sin(-n*o),c=t+r*Math.sin(-a*o);i=[["M",s,A],["A",r,r,0,+(a-n>180),0,l,c]]}else i=[["M",e,t],["m",0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]];return i},n3=function(e){if(e=Ip(e),!e||!e.length)return[["M",0,0]];var t=[],r=0,n=0,a=0,i=0,o=0,s,l;e[0][0]==="M"&&(r=+e[0][1],n=+e[0][2],a=r,i=n,o++,t[0]=["M",r,n]);for(var A=e.length===3&&e[0][0]==="M"&&e[1][0].toUpperCase()==="R"&&e[2][0].toUpperCase()==="Z",c=void 0,u=void 0,d=o,f=e.length;d<f;d++){if(t.push(c=[]),u=e[d],s=u[0],s!==s.toUpperCase())switch(c[0]=s.toUpperCase(),c[0]){case"A":c[1]=u[1],c[2]=u[2],c[3]=u[3],c[4]=u[4],c[5]=u[5],c[6]=+u[6]+r,c[7]=+u[7]+n;break;case"V":c[1]=+u[1]+n;break;case"H":c[1]=+u[1]+r;break;case"R":l=[r,n].concat(u.slice(1));for(var h=2,g=l.length;h<g;h++)l[h]=+l[h]+r,l[++h]=+l[h]+n;t.pop(),t=t.concat(r3(l,A));break;case"O":t.pop(),l=TB(r,n,u[1],u[2]),l.push(l[0]),t=t.concat(l);break;case"U":t.pop(),t=t.concat(TB(r,n,u[1],u[2],u[3])),c=["U"].concat(t[t.length-1].slice(-2));break;case"M":a=+u[1]+r,i=+u[2]+n;break;default:for(var h=1,g=u.length;h<g;h++)c[h]=+u[h]+(h%2?r:n)}else if(s==="R")l=[r,n].concat(u.slice(1)),t.pop(),t=t.concat(r3(l,A)),c=["R"].concat(u.slice(-2));else if(s==="O")t.pop(),l=TB(r,n,u[1],u[2]),l.push(l[0]),t=t.concat(l);else if(s==="U")t.pop(),t=t.concat(TB(r,n,u[1],u[2],u[3])),c=["U"].concat(t[t.length-1].slice(-2));else for(var p=0,E=u.length;p<E;p++)c[p]=u[p];if(s=s.toUpperCase(),s!=="O")switch(c[0]){case"Z":r=+a,n=+i;break;case"H":r=c[1];break;case"V":n=c[1];break;case"M":a=c[c.length-2],i=c[c.length-1];break;default:r=c[c.length-2],n=c[c.length-1]}}return t},QB=function(e,t,r,n){return[e,t,r,n,r,n]},$ae=function(e,t,r,n,a,i){var o=.3333333333333333,s=2/3;return[o*e+s*r,o*t+s*n,o*a+s*r,o*i+s*n,a,i]},Axe=function(e,t,r,n,a,i,o,s,l,A){r===n&&(r+=1);var c=Math.PI*120/180,u=Math.PI/180*(+a||0),d=[],f,h,g,p,E,y=function(ee,ae,ne){var ce=ee*Math.cos(ne)-ae*Math.sin(ne),ue=ee*Math.sin(ne)+ae*Math.cos(ne);return{x:ce,y:ue}};if(A)h=A[0],g=A[1],p=A[2],E=A[3];else{f=y(e,t,-u),e=f.x,t=f.y,f=y(s,l,-u),s=f.x,l=f.y,e===s&&t===l&&(s+=1,l+=1);var C=(e-s)/2,w=(t-l)/2,B=C*C/(r*r)+w*w/(n*n);B>1&&(B=Math.sqrt(B),r=B*r,n=B*n);var M=r*r,I=n*n,S=(i===o?-1:1)*Math.sqrt(Math.abs((M*I-M*w*w-I*C*C)/(M*w*w+I*C*C)));p=S*r*w/n+(e+s)/2,E=S*-n*C/r+(t+l)/2,h=Math.asin(((t-E)/n).toFixed(9)),g=Math.asin(((l-E)/n).toFixed(9)),h=e<p?Math.PI-h:h,g=s<p?Math.PI-g:g,h<0&&(h=Math.PI*2+h),g<0&&(g=Math.PI*2+g),o&&h>g&&(h=h-Math.PI*2),!o&&g>h&&(g=g-Math.PI*2)}var R=g-h;if(Math.abs(R)>c){var b=g,Q=s,D=l;g=h+c*(o&&g>h?1:-1),s=p+r*Math.cos(g),l=E+n*Math.sin(g),d=Axe(s,l,r,n,a,0,o,Q,D,[g,b,p,E])}R=g-h;var F=Math.cos(h),N=Math.sin(h),k=Math.cos(g),O=Math.sin(g),P=Math.tan(R/4),z=4/3*r*P,j=4/3*n*P,V=[e,t],L=[e+z*N,t-j*F],K=[s+z*O,l-j*k],J=[s,l];if(L[0]=2*V[0]-L[0],L[1]=2*V[1]-L[1],A)return[L,K,J].concat(d);d=[L,K,J].concat(d).join().split(",");for(var Y=[],W=0,q=d.length;W<q;W++)Y[W]=W%2?y(d[W-1],d[W],u).y:y(d[W],d[W+1],u).x;return Y},a3=function(e,t){var r=n3(e),n=t&&n3(t),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=[],s=[],l="",A="",c,u=function(C,w,B){var M,I;if(!C)return["C",w.x,w.y,w.x,w.y,w.x,w.y];switch(!(C[0]in{T:1,Q:1})&&(w.qx=w.qy=null),C[0]){case"M":w.X=C[1],w.Y=C[2];break;case"A":C=["C"].concat(Axe.apply(0,[w.x,w.y].concat(C.slice(1))));break;case"S":B==="C"||B==="S"?(M=w.x*2-w.bx,I=w.y*2-w.by):(M=w.x,I=w.y),C=["C",M,I].concat(C.slice(1));break;case"T":B==="Q"||B==="T"?(w.qx=w.x*2-w.qx,w.qy=w.y*2-w.qy):(w.qx=w.x,w.qy=w.y),C=["C"].concat($ae(w.x,w.y,w.qx,w.qy,C[1],C[2]));break;case"Q":w.qx=C[1],w.qy=C[2],C=["C"].concat($ae(w.x,w.y,C[1],C[2],C[3],C[4]));break;case"L":C=["C"].concat(QB(w.x,w.y,C[1],C[2]));break;case"H":C=["C"].concat(QB(w.x,w.y,C[1],w.y));break;case"V":C=["C"].concat(QB(w.x,w.y,w.x,C[1]));break;case"Z":C=["C"].concat(QB(w.x,w.y,w.X,w.Y));break}return C},d=function(C,w){if(C[w].length>7){C[w].shift();for(var B=C[w];B.length;)o[w]="A",n&&(s[w]="A"),C.splice(w++,0,["C"].concat(B.splice(0,6)));C.splice(w,1),c=Math.max(r.length,n&&n.length||0)}},f=function(C,w,B,M,I){C&&w&&C[I][0]==="M"&&w[I][0]!=="M"&&(w.splice(I,0,["M",M.x,M.y]),B.bx=0,B.by=0,B.x=C[I][1],B.y=C[I][2],c=Math.max(r.length,n&&n.length||0))};c=Math.max(r.length,n&&n.length||0);for(var h=0;h<c;h++){r[h]&&(l=r[h][0]),l!=="C"&&(o[h]=l,h&&(A=o[h-1])),r[h]=u(r[h],a,A),o[h]!=="A"&&l==="C"&&(o[h]="C"),d(r,h),n&&(n[h]&&(l=n[h][0]),l!=="C"&&(s[h]=l,h&&(A=s[h-1])),n[h]=u(n[h],i,A),s[h]!=="A"&&l==="C"&&(s[h]="C"),d(n,h)),f(r,n,a,i,h),f(n,r,i,a,h);var g=r[h],p=n&&n[h],E=g.length,y=n&&p.length;a.x=g[E-2],a.y=g[E-1],a.bx=parseFloat(g[E-4])||a.x,a.by=parseFloat(g[E-3])||a.y,i.bx=n&&(parseFloat(p[y-4])||i.x),i.by=n&&(parseFloat(p[y-3])||i.y),i.x=n&&p[y-2],i.y=n&&p[y-1]}return n?[r,n]:r},k0t=/,?([a-z]),?/gi,cxe=function(e){return e.join(",").replace(k0t,"$1")},eie=function(e,t,r,n,a){var i=-3*t+9*r-9*n+3*a,o=e*i+6*t-12*r+6*n;return e*o-3*t+3*r},tie=function(e,t,r,n,a,i,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var A=l/2,c=12,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,h=0;h<c;h++){var g=A*u[h]+A,p=eie(g,e,r,a,o),E=eie(g,t,n,i,s),y=p*p+E*E;f+=d[h]*Math.sqrt(y)}return A*f},P0t=function(e,t,r,n,a,i,o,s){for(var l=[],A=[[],[]],c,u,d,f,h=0;h<2;++h){if(h===0?(u=6*e-12*r+6*a,c=-3*e+9*r-9*a+3*o,d=3*r-3*e):(u=6*t-12*n+6*i,c=-3*t+9*n-9*i+3*s,d=3*n-3*t),Math.abs(c)<1e-12){if(Math.abs(u)<1e-12)continue;f=-d/u,f>0&&f<1&&l.push(f);continue}var g=u*u-4*d*c,p=Math.sqrt(g);if(!(g<0)){var E=(-u+p)/(2*c);E>0&&E<1&&l.push(E);var y=(-u-p)/(2*c);y>0&&y<1&&l.push(y)}}for(var C=l.length,w=C,B;C--;)f=l[C],B=1-f,A[0][C]=B*B*B*e+3*B*B*f*r+3*B*f*f*a+f*f*f*o,A[1][C]=B*B*B*t+3*B*B*f*n+3*B*f*f*i+f*f*f*s;return A[0][w]=e,A[1][w]=t,A[0][w+1]=o,A[1][w+1]=s,A[0].length=A[1].length=w+2,{min:{x:Math.min.apply(0,A[0]),y:Math.min.apply(0,A[1])},max:{x:Math.max.apply(0,A[0]),y:Math.max.apply(0,A[1])}}},O0t=function(e,t,r,n,a,i,o,s){if(!(Math.max(e,r)<Math.min(a,o)||Math.min(e,r)>Math.max(a,o)||Math.max(t,n)<Math.min(i,s)||Math.min(t,n)>Math.max(i,s))){var l=(e*n-t*r)*(a-o)-(e-r)*(a*s-i*o),A=(e*n-t*r)*(i-s)-(t-n)*(a*s-i*o),c=(e-r)*(i-s)-(t-n)*(a-o);if(c){var u=l/c,d=A/c,f=+u.toFixed(2),h=+d.toFixed(2);if(!(f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,o).toFixed(2)||f>+Math.max(a,o).toFixed(2)||h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,s).toFixed(2)||h>+Math.max(i,s).toFixed(2)))return{x:u,y:d}}}},du=function(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height},uxe=function(e,t,r,n,a){if(a)return[["M",+e+ +a,t],["l",r-a*2,0],["a",a,a,0,0,1,a,a],["l",0,n-a*2],["a",a,a,0,0,1,-a,a],["l",a*2-r,0],["a",a,a,0,0,1,-a,-a],["l",0,a*2-n],["a",a,a,0,0,1,a,-a],["z"]];var i=[["M",e,t],["l",r,0],["l",0,n],["l",-r,0],["z"]];return i.parsePathArray=cxe,i},i3=function(e,t,r,n){return e===null&&(e=t=r=n=0),t===null&&(t=e.y,r=e.width,n=e.height,e=e.x),{x:e,y:t,width:r,w:r,height:n,h:n,x2:e+r,y2:t+n,cx:e+r/2,cy:t+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:uxe(e,t,r,n),vb:[e,t,r,n].join(" ")}},z0t=function(e,t){return e=i3(e),t=i3(t),du(t,e.x,e.y)||du(t,e.x2,e.y)||du(t,e.x,e.y2)||du(t,e.x2,e.y2)||du(e,t.x,t.y)||du(e,t.x2,t.y)||du(e,t.x,t.y2)||du(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)},rie=function(e,t,r,n,a,i,o,s){En(e)||(e=[e,t,r,n,a,i,o,s]);var l=P0t.apply(null,e);return i3(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},nie=function(e,t,r,n,a,i,o,s,l){var A=1-l,c=Math.pow(A,3),u=Math.pow(A,2),d=l*l,f=d*l,h=c*e+u*3*l*r+A*3*l*l*a+f*o,g=c*t+u*3*l*n+A*3*l*l*i+f*s,p=e+2*l*(r-e)+d*(a-2*r+e),E=t+2*l*(n-t)+d*(i-2*n+t),y=r+2*l*(a-r)+d*(o-2*a+r),C=n+2*l*(i-n)+d*(s-2*i+n),w=A*e+l*r,B=A*t+l*n,M=A*a+l*o,I=A*i+l*s,S=90-Math.atan2(p-y,E-C)*180/Math.PI;return{x:h,y:g,m:{x:p,y:E},n:{x:y,y:C},start:{x:w,y:B},end:{x:M,y:I},alpha:S}},j0t=function(e,t,r){var n=rie(e),a=rie(t);if(!z0t(n,a))return[];for(var i=tie.apply(0,e),o=tie.apply(0,t),s=~~(i/8),l=~~(o/8),A=[],c=[],u={},d=[],f=0;f<s+1;f++){var h=nie.apply(0,e.concat(f/s));A.push({x:h.x,y:h.y,t:f/s})}for(var f=0;f<l+1;f++){var h=nie.apply(0,t.concat(f/l));c.push({x:h.x,y:h.y,t:f/l})}for(var f=0;f<s;f++)for(var g=0;g<l;g++){var p=A[f],E=A[f+1],y=c[g],C=c[g+1],w=Math.abs(E.x-p.x)<.001?"y":"x",B=Math.abs(C.x-y.x)<.001?"y":"x",M=O0t(p.x,p.y,E.x,E.y,y.x,y.y,C.x,C.y);if(M){if(u[M.x.toFixed(4)]===M.y.toFixed(4))continue;u[M.x.toFixed(4)]=M.y.toFixed(4);var I=p.t+Math.abs((M[w]-p[w])/(E[w]-p[w]))*(E.t-p.t),S=y.t+Math.abs((M[B]-y[B])/(C[B]-y[B]))*(C.t-y.t);I>=0&&I<=1&&S>=0&&S<=1&&d.push({x:M.x,y:M.y,t1:I,t2:S})}}return d},Y0t=function(e,t,r){e=a3(e),t=a3(t);for(var n,a,i,o,s,l,A,c,u,d,f=r?0:[],h=0,g=e.length;h<g;h++){var p=e[h];if(p[0]==="M")n=s=p[1],a=l=p[2];else{p[0]==="C"?(u=[n,a].concat(p.slice(1)),n=u[6],a=u[7]):(u=[n,a,n,a,s,l,s,l],n=s,a=l);for(var E=0,y=t.length;E<y;E++){var C=t[E];if(C[0]==="M")i=A=C[1],o=c=C[2];else{C[0]==="C"?(d=[i,o].concat(C.slice(1)),i=d[6],o=d[7]):(d=[i,o,i,o,A,c,A,c],i=A,o=c);var w=j0t(u,d);{for(var B=0,M=w.length;B<M;B++)w[B].segment1=h,w[B].segment2=E,w[B].bez1=u,w[B].bez2=d;f=f.concat(w)}}}}}return f},L0t=function(e,t){return Y0t(e,t)};function U0t(e,t){var r=[],n=[];function a(i,o){if(i.length===1)r.push(i[0]),n.push(i[0]);else{for(var s=[],l=0;l<i.length-1;l++)l===0&&r.push(i[0]),l===i.length-2&&n.push(i[l+1]),s[l]=[(1-o)*i[l][0]+o*i[l+1][0],(1-o)*i[l][1]+o*i[l+1][1]];a(s,o)}}return e.length&&a(e,t),{left:r,right:n.reverse()}}function H0t(e,t,r){var n=[[e[1],e[2]]];r=r||2;var a=[];t[0]==="A"?(n.push(t[6]),n.push(t[7])):t[0]==="C"?(n.push([t[1],t[2]]),n.push([t[3],t[4]]),n.push([t[5],t[6]])):t[0]==="S"||t[0]==="Q"?(n.push([t[1],t[2]]),n.push([t[3],t[4]])):n.push([t[1],t[2]]);for(var i=n,o=1/r,s=0;s<r-1;s++){var l=o/(1-o*s),A=U0t(i,l);a.push(A.left),i=A.right}a.push(i);var c=a.map(function(u){var d=[];return u.length===4&&(d.push("C"),d=d.concat(u[2])),u.length>=3&&(u.length===3&&d.push("Q"),d=d.concat(u[1])),u.length===2&&d.push("L"),d=d.concat(u[u.length-1]),d});return c}var G0t=function(e,t,r){if(r===1)return[[].concat(e)];var n=[];if(t[0]==="L"||t[0]==="C"||t[0]==="Q")n=n.concat(H0t(e,t,r));else{var a=[].concat(e);a[0]==="M"&&(a[0]="L");for(var i=0;i<=r-1;i++)n.push(a)}return n},K0t=function(e,t){if(e.length===1)return e;var r=e.length-1,n=t.length-1,a=r/n,i=[];if(e.length===1&&e[0][0]==="M"){for(var o=0;o<n-r;o++)e.push(e[0]);return e}for(var o=0;o<n;o++){var s=Math.floor(a*o);i[s]=(i[s]||0)+1}var l=i.reduce(function(A,c,u){return u===r?A.concat(e[r]):A.concat(G0t(e[u],e[u+1],c))},[]);return l.unshift(e[0]),(t[n]==="Z"||t[n]==="z")&&l.push("Z"),l},V0t=function(e,t){if(e.length!==t.length)return!1;var r=!0;return Ht(e,function(n,a){if(n!==t[a])return r=!1,!1}),r};function J0t(e,t,r){var n=null,a=r;return t<a&&(a=t,n="add"),e<a&&(a=e,n="del"),{type:n,min:a}}var W0t=function(e,t){var r=e.length,n=t.length,a,i,o=0;if(r===0||n===0)return null;for(var s=[],l=0;l<=r;l++)s[l]=[],s[l][0]={min:l};for(var A=0;A<=n;A++)s[0][A]={min:A};for(var l=1;l<=r;l++){a=e[l-1];for(var A=1;A<=n;A++){i=t[A-1],V0t(a,i)?o=0:o=1;var c=s[l-1][A].min+1,u=s[l][A-1].min+1,d=s[l-1][A-1].min+o;s[l][A]=J0t(c,u,d)}}return s},dxe=function(e,t){var r=W0t(e,t),n=e.length,a=t.length,i=[],o=1,s=1;if(r[n][a].min!==n){for(var l=1;l<=n;l++){var A=r[l][l].min;s=l;for(var c=o;c<=a;c++)r[l][c].min<A&&(A=r[l][c].min,s=c);o=s,r[l][o].type&&i.push({index:l-1,type:r[l][o].type})}for(var l=i.length-1;l>=0;l--)o=i[l].index,i[l].type==="add"?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}n=e.length;var u=a-n;if(n<a)for(var l=0;l<u;l++)e[n-1][0]==="z"||e[n-1][0]==="Z"?e.splice(n-2,0,e[n-2]):e.push(e[n-1]),n+=1;return e};function f8(e,t,r){for(var n=[].concat(e),a,i=1/(r+1),o=fxe(t)[0],s=1;s<=r;s++)i*=s,a=Math.floor(e.length*i),a===0?n.unshift([o[0]*i+e[a][0]*(1-i),o[1]*i+e[a][1]*(1-i)]):n.splice(a,0,[o[0]*i+e[a][0]*(1-i),o[1]*i+e[a][1]*(1-i)]);return n}function fxe(e){var t=[];switch(e[0]){case"M":t.push([e[1],e[2]]);break;case"L":t.push([e[1],e[2]]);break;case"A":t.push([e[6],e[7]]);break;case"Q":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"T":t.push([e[1],e[2]]);break;case"C":t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case"S":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"H":t.push([e[1],e[1]]);break;case"V":t.push([e[1],e[1]]);break}return t}var o3=function(e,t){if(e.length<=1)return e;for(var r,n=0;n<t.length;n++)if(e[n][0]!==t[n][0])switch(r=fxe(e[n]),t[n][0]){case"M":e[n]=["M"].concat(r[0]);break;case"L":e[n]=["L"].concat(r[0]);break;case"A":e[n]=[].concat(t[n]),e[n][6]=r[0][0],e[n][7]=r[0][1];break;case"Q":if(r.length<2)if(n>0)r=f8(r,e[n-1],1);else{e[n]=t[n];break}e[n]=["Q"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"T":e[n]=["T"].concat(r[0]);break;case"C":if(r.length<3)if(n>0)r=f8(r,e[n-1],2);else{e[n]=t[n];break}e[n]=["C"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"S":if(r.length<2)if(n>0)r=f8(r,e[n-1],1);else{e[n]=t[n];break}e[n]=["S"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;default:e[n]=t[n]}return e};const DU=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:r3,fillPath:K0t,fillPathByDiff:dxe,formatPath:o3,intersection:L0t,parsePathArray:cxe,parsePathString:Ip,pathToAbsolute:n3,pathToCurve:a3,rectPath:uxe},Symbol.toStringTag,{value:"Module"}));var d2=function(){function e(t,r){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=r,this.timeStamp=r.timeStamp}return e.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},e.prototype.save=function(){},e.prototype.restore=function(){},e}(),X0t="*",hxe=function(){function e(){this._events={}}return e.prototype.on=function(t,r,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:r,once:!!n}),this},e.prototype.once=function(t,r){return this.on(t,r,!0)},e.prototype.emit=function(t){for(var r=this,n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];var i=this._events[t]||[],o=this._events[X0t]||[],s=function(l){for(var A=l.length,c=0;c<A;c++)if(l[c]){var u=l[c],d=u.callback,f=u.once;f&&(l.splice(c,1),l.length===0&&delete r._events[t],A--,c--),d.apply(r,n)}};s(i),s(o)},e.prototype.off=function(t,r){if(!t)this._events={};else if(!r)delete this._events[t];else{for(var n=this._events[t]||[],a=n.length,i=0;i<a;i++)n[i].callback===r&&(n.splice(i,1),a--,i--);n.length===0&&delete this._events[t]}return this},e.prototype.getEvents=function(){return this._events},e}();const q0t=Object.freeze(Object.defineProperty({__proto__:null,default:hxe},Symbol.toStringTag,{value:"Module"}));function gxe(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1)}var aie=typeof window<"u"&&typeof window.document<"u";function pxe(e,t){if(e.isCanvas())return!0;for(var r=t.getParent(),n=!1;r;){if(r===e){n=!0;break}r=r.getParent()}return n}function zy(e){return e.cfg.visible&&e.cfg.capture}var f2=function(e){Cr(t,e);function t(r){var n=e.call(this)||this;n.destroyed=!1;var a=n.getDefaultCfg();return n.cfg=pa(a,r),n}return t.prototype.getDefaultCfg=function(){return{}},t.prototype.get=function(r){return this.cfg[r]},t.prototype.set=function(r,n){this.cfg[r]=n},t.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},t}(hxe),iie=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},vxe=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}(),mxe=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}(),Exe=function(){function e(t,r,n,a){this.name=t,this.version=r,this.os=n,this.bot=a,this.type="bot-device"}return e}(),yxe=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),Cxe=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),Z0t=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,$0t=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,oie=3,eyt=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",Z0t]],sie=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function wxe(e){return e?s3(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Cxe:typeof navigator<"u"?s3(navigator.userAgent):xxe()}function Bxe(e){return e!==""&&eyt.reduce(function(t,r){var n=r[0],a=r[1];if(t)return t;var i=a.exec(e);return!!i&&[n,i]},!1)}function tyt(e){var t=Bxe(e);return t?t[0]:null}function s3(e){var t=Bxe(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new yxe;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.length<oie&&(a=iie(iie([],a,!0),ryt(oie-a.length),!0)):a=[];var i=a.join("."),o=Mxe(e),s=$0t.exec(e);return s&&s[1]?new Exe(r,i,o,s[1]):new vxe(r,i,o)}function Mxe(e){for(var t=0,r=sie.length;t<r;t++){var n=sie[t],a=n[0],i=n[1],o=i.exec(e);if(o)return a}return null}function xxe(){var e=typeof process<"u"&&process.version;return e?new mxe(process.version.slice(1)):null}function ryt(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}const nyt=Object.freeze(Object.defineProperty({__proto__:null,BotInfo:yxe,BrowserInfo:vxe,NodeInfo:mxe,ReactNativeInfo:Cxe,SearchBotDeviceInfo:Exe,browserName:tyt,detect:wxe,detectOS:Mxe,getNodeVersion:xxe,parseUserAgent:s3},Symbol.toStringTag,{value:"Module"}));var xo=1e-6,Us=typeof Float32Array<"u"?Float32Array:Array,l3=Math.random;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});function ayt(){var e=new Us(9);return Us!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function iyt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function oyt(e){var t=new Us(9);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function syt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function lyt(e,t,r,n,a,i,o,s,l){var A=new Us(9);return A[0]=e,A[1]=t,A[2]=r,A[3]=n,A[4]=a,A[5]=i,A[6]=o,A[7]=s,A[8]=l,A}function Ayt(e,t,r,n,a,i,o,s,l,A){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e[4]=i,e[5]=o,e[6]=s,e[7]=l,e[8]=A,e}function cyt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function uyt(e,t){if(e===t){var r=t[1],n=t[2],a=t[5];e[1]=t[3],e[2]=t[6],e[3]=r,e[5]=t[7],e[6]=n,e[7]=a}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e}function Ixe(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],A=t[7],c=t[8],u=c*o-s*A,d=-c*i+s*l,f=A*i-o*l,h=r*u+n*d+a*f;return h?(h=1/h,e[0]=u*h,e[1]=(-c*n+a*A)*h,e[2]=(s*n-a*o)*h,e[3]=d*h,e[4]=(c*r-a*l)*h,e[5]=(-s*r+a*i)*h,e[6]=f*h,e[7]=(-A*r+n*l)*h,e[8]=(o*r-n*i)*h,e):null}function dyt(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],A=t[7],c=t[8];return e[0]=o*c-s*A,e[1]=a*A-n*c,e[2]=n*s-a*o,e[3]=s*l-i*c,e[4]=r*c-a*l,e[5]=a*i-r*s,e[6]=i*A-o*l,e[7]=n*l-r*A,e[8]=r*o-n*i,e}function fyt(e){var t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],s=e[6],l=e[7],A=e[8];return t*(A*i-o*l)+r*(-A*a+o*s)+n*(l*a-i*s)}function tm(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],A=t[6],c=t[7],u=t[8],d=r[0],f=r[1],h=r[2],g=r[3],p=r[4],E=r[5],y=r[6],C=r[7],w=r[8];return e[0]=d*n+f*o+h*A,e[1]=d*a+f*s+h*c,e[2]=d*i+f*l+h*u,e[3]=g*n+p*o+E*A,e[4]=g*a+p*s+E*c,e[5]=g*i+p*l+E*u,e[6]=y*n+C*o+w*A,e[7]=y*a+C*s+w*c,e[8]=y*i+C*l+w*u,e}function hyt(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],A=t[6],c=t[7],u=t[8],d=r[0],f=r[1];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e[6]=d*n+f*o+A,e[7]=d*a+f*s+c,e[8]=d*i+f*l+u,e}function gyt(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],A=t[6],c=t[7],u=t[8],d=Math.sin(r),f=Math.cos(r);return e[0]=f*n+d*o,e[1]=f*a+d*s,e[2]=f*i+d*l,e[3]=f*o-d*n,e[4]=f*s-d*a,e[5]=f*l-d*i,e[6]=A,e[7]=c,e[8]=u,e}function pyt(e,t,r){var n=r[0],a=r[1];return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=a*t[3],e[4]=a*t[4],e[5]=a*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function bxe(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function Sxe(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=-r,e[4]=n,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function Rxe(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function vyt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e}function myt(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r+r,s=n+n,l=a+a,A=r*o,c=n*o,u=n*s,d=a*o,f=a*s,h=a*l,g=i*o,p=i*s,E=i*l;return e[0]=1-u-h,e[3]=c-E,e[6]=d+p,e[1]=c+E,e[4]=1-A-h,e[7]=f-g,e[2]=d-p,e[5]=f+g,e[8]=1-A-u,e}function Eyt(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],A=t[7],c=t[8],u=t[9],d=t[10],f=t[11],h=t[12],g=t[13],p=t[14],E=t[15],y=r*s-n*o,C=r*l-a*o,w=r*A-i*o,B=n*l-a*s,M=n*A-i*s,I=a*A-i*l,S=c*g-u*h,R=c*p-d*h,b=c*E-f*h,Q=u*p-d*g,D=u*E-f*g,F=d*E-f*p,N=y*F-C*D+w*Q+B*b-M*R+I*S;return N?(N=1/N,e[0]=(s*F-l*D+A*Q)*N,e[1]=(l*b-o*F-A*R)*N,e[2]=(o*D-s*b+A*S)*N,e[3]=(a*D-n*F-i*Q)*N,e[4]=(r*F-a*b+i*R)*N,e[5]=(n*b-r*D-i*S)*N,e[6]=(g*I-p*M+E*B)*N,e[7]=(p*w-h*I-E*C)*N,e[8]=(h*M-g*w+E*y)*N,e):null}function yyt(e,t,r){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/r,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e}function Cyt(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"}function wyt(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])}function Byt(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e}function Txe(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e}function Myt(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e}function xyt(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e}function Iyt(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]}function byt(e,t){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],A=e[7],c=e[8],u=t[0],d=t[1],f=t[2],h=t[3],g=t[4],p=t[5],E=t[6],y=t[7],C=t[8];return Math.abs(r-u)<=xo*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-d)<=xo*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(a-f)<=xo*Math.max(1,Math.abs(a),Math.abs(f))&&Math.abs(i-h)<=xo*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(o-g)<=xo*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-p)<=xo*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(l-E)<=xo*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(A-y)<=xo*Math.max(1,Math.abs(A),Math.abs(y))&&Math.abs(c-C)<=xo*Math.max(1,Math.abs(c),Math.abs(C))}var Syt=tm,Ryt=Txe;const Tyt=Object.freeze(Object.defineProperty({__proto__:null,add:Byt,adjoint:dyt,clone:oyt,copy:syt,create:ayt,determinant:fyt,equals:byt,exactEquals:Iyt,frob:wyt,fromMat2d:vyt,fromMat4:iyt,fromQuat:myt,fromRotation:Sxe,fromScaling:Rxe,fromTranslation:bxe,fromValues:lyt,identity:cyt,invert:Ixe,mul:Syt,multiply:tm,multiplyScalar:Myt,multiplyScalarAndAdd:xyt,normalFromMat4:Eyt,projection:yyt,rotate:gyt,scale:pyt,set:Ayt,str:Cyt,sub:Ryt,subtract:Txe,translate:hyt,transpose:uyt},Symbol.toStringTag,{value:"Module"}));function Qxe(){var e=new Us(3);return Us!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function Qyt(e){var t=new Us(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Dxe(e){var t=e[0],r=e[1],n=e[2];return Math.hypot(t,r,n)}function Dyt(e,t,r){var n=new Us(3);return n[0]=e,n[1]=t,n[2]=r,n}function Fyt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function _yt(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function Nyt(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function Fxe(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function _xe(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function Nxe(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function kyt(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e}function Pyt(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e}function Oyt(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function zyt(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function jyt(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e}function Yyt(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function Lyt(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function kxe(e,t){var r=t[0]-e[0],n=t[1]-e[1],a=t[2]-e[2];return Math.hypot(r,n,a)}function Pxe(e,t){var r=t[0]-e[0],n=t[1]-e[1],a=t[2]-e[2];return r*r+n*n+a*a}function Oxe(e){var t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function Uyt(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function Hyt(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function Gyt(e,t){var r=t[0],n=t[1],a=t[2],i=r*r+n*n+a*a;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function zxe(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Kyt(e,t,r){var n=t[0],a=t[1],i=t[2],o=r[0],s=r[1],l=r[2];return e[0]=a*l-i*s,e[1]=i*o-n*l,e[2]=n*s-a*o,e}function Vyt(e,t,r,n){var a=t[0],i=t[1],o=t[2];return e[0]=a+n*(r[0]-a),e[1]=i+n*(r[1]-i),e[2]=o+n*(r[2]-o),e}function Jyt(e,t,r,n,a,i){var o=i*i,s=o*(2*i-3)+1,l=o*(i-2)+i,A=o*(i-1),c=o*(3-2*i);return e[0]=t[0]*s+r[0]*l+n[0]*A+a[0]*c,e[1]=t[1]*s+r[1]*l+n[1]*A+a[1]*c,e[2]=t[2]*s+r[2]*l+n[2]*A+a[2]*c,e}function Wyt(e,t,r,n,a,i){var o=1-i,s=o*o,l=i*i,A=s*o,c=3*i*s,u=3*l*o,d=l*i;return e[0]=t[0]*A+r[0]*c+n[0]*u+a[0]*d,e[1]=t[1]*A+r[1]*c+n[1]*u+a[1]*d,e[2]=t[2]*A+r[2]*c+n[2]*u+a[2]*d,e}function Xyt(e,t){t=t||1;var r=l3()*2*Math.PI,n=l3()*2-1,a=Math.sqrt(1-n*n)*t;return e[0]=Math.cos(r)*a,e[1]=Math.sin(r)*a,e[2]=n*t,e}function qyt(e,t,r){var n=t[0],a=t[1],i=t[2],o=r[3]*n+r[7]*a+r[11]*i+r[15];return o=o||1,e[0]=(r[0]*n+r[4]*a+r[8]*i+r[12])/o,e[1]=(r[1]*n+r[5]*a+r[9]*i+r[13])/o,e[2]=(r[2]*n+r[6]*a+r[10]*i+r[14])/o,e}function Cv(e,t,r){var n=t[0],a=t[1],i=t[2];return e[0]=n*r[0]+a*r[3]+i*r[6],e[1]=n*r[1]+a*r[4]+i*r[7],e[2]=n*r[2]+a*r[5]+i*r[8],e}function Zyt(e,t,r){var n=r[0],a=r[1],i=r[2],o=r[3],s=t[0],l=t[1],A=t[2],c=a*A-i*l,u=i*s-n*A,d=n*l-a*s,f=a*d-i*u,h=i*c-n*d,g=n*u-a*c,p=o*2;return c*=p,u*=p,d*=p,f*=2,h*=2,g*=2,e[0]=s+c+f,e[1]=l+u+h,e[2]=A+d+g,e}function $yt(e,t,r,n){var a=[],i=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],i[0]=a[0],i[1]=a[1]*Math.cos(n)-a[2]*Math.sin(n),i[2]=a[1]*Math.sin(n)+a[2]*Math.cos(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e}function eCt(e,t,r,n){var a=[],i=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],i[0]=a[2]*Math.sin(n)+a[0]*Math.cos(n),i[1]=a[1],i[2]=a[2]*Math.cos(n)-a[0]*Math.sin(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e}function tCt(e,t,r,n){var a=[],i=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],i[0]=a[0]*Math.cos(n)-a[1]*Math.sin(n),i[1]=a[0]*Math.sin(n)+a[1]*Math.cos(n),i[2]=a[2],e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e}function rCt(e,t){var r=e[0],n=e[1],a=e[2],i=t[0],o=t[1],s=t[2],l=Math.sqrt(r*r+n*n+a*a),A=Math.sqrt(i*i+o*o+s*s),c=l*A,u=c&&zxe(e,t)/c;return Math.acos(Math.min(Math.max(u,-1),1))}function nCt(e){return e[0]=0,e[1]=0,e[2]=0,e}function aCt(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"}function iCt(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function oCt(e,t){var r=e[0],n=e[1],a=e[2],i=t[0],o=t[1],s=t[2];return Math.abs(r-i)<=xo*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-o)<=xo*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(a-s)<=xo*Math.max(1,Math.abs(a),Math.abs(s))}var sCt=Fxe,lCt=_xe,ACt=Nxe,cCt=kxe,uCt=Pxe,dCt=Dxe,fCt=Oxe,hCt=function(){var e=Qxe();return function(t,r,n,a,i,o){var s,l;for(r||(r=3),n||(n=0),a?l=Math.min(a*r+n,t.length):l=t.length,s=n;s<l;s+=r)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],i(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2];return t}}();const jxe=Object.freeze(Object.defineProperty({__proto__:null,add:Nyt,angle:rCt,bezier:Wyt,ceil:kyt,clone:Qyt,copy:Fyt,create:Qxe,cross:Kyt,dist:cCt,distance:kxe,div:ACt,divide:Nxe,dot:zxe,equals:oCt,exactEquals:iCt,floor:Pyt,forEach:hCt,fromValues:Dyt,hermite:Jyt,inverse:Hyt,len:dCt,length:Dxe,lerp:Vyt,max:zyt,min:Oyt,mul:lCt,multiply:_xe,negate:Uyt,normalize:Gyt,random:Xyt,rotateX:$yt,rotateY:eCt,rotateZ:tCt,round:jyt,scale:Yyt,scaleAndAdd:Lyt,set:_yt,sqrDist:uCt,sqrLen:fCt,squaredDistance:Pxe,squaredLength:Oxe,str:aCt,sub:sCt,subtract:Fxe,transformMat3:Cv,transformMat4:qyt,transformQuat:Zyt,zero:nCt},Symbol.toStringTag,{value:"Module"}));function Yxe(){var e=new Us(2);return Us!=Float32Array&&(e[0]=0,e[1]=0),e}function gCt(e){var t=new Us(2);return t[0]=e[0],t[1]=e[1],t}function pCt(e,t){var r=new Us(2);return r[0]=e,r[1]=t,r}function vCt(e,t){return e[0]=t[0],e[1]=t[1],e}function mCt(e,t,r){return e[0]=t,e[1]=r,e}function Q0(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function FU(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function Lxe(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function Uxe(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function ECt(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e}function yCt(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e}function xu(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Iu(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}function CCt(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e}function Nu(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function wCt(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function lS(e,t){var r=t[0]-e[0],n=t[1]-e[1];return Math.hypot(r,n)}function Hxe(e,t){var r=t[0]-e[0],n=t[1]-e[1];return r*r+n*n}function Lu(e){var t=e[0],r=e[1];return Math.hypot(t,r)}function Gxe(e){var t=e[0],r=e[1];return t*t+r*r}function BCt(e,t){return e[0]=-t[0],e[1]=-t[1],e}function MCt(e,t){return e[0]=1/t[0],e[1]=1/t[1],e}function _U(e,t){var r=t[0],n=t[1],a=r*r+n*n;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e}function Kxe(e,t){return e[0]*t[0]+e[1]*t[1]}function xCt(e,t,r){var n=t[0]*r[1]-t[1]*r[0];return e[0]=e[1]=0,e[2]=n,e}function ICt(e,t,r,n){var a=t[0],i=t[1];return e[0]=a+n*(r[0]-a),e[1]=i+n*(r[1]-i),e}function bCt(e,t){t=t||1;var r=l3()*2*Math.PI;return e[0]=Math.cos(r)*t,e[1]=Math.sin(r)*t,e}function SCt(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a,e[1]=r[1]*n+r[3]*a,e}function RCt(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function Vxe(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[3]*a+r[6],e[1]=r[1]*n+r[4]*a+r[7],e}function TCt(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[4]*a+r[12],e[1]=r[1]*n+r[5]*a+r[13],e}function QCt(e,t,r,n){var a=t[0]-r[0],i=t[1]-r[1],o=Math.sin(n),s=Math.cos(n);return e[0]=a*s-i*o+r[0],e[1]=a*o+i*s+r[1],e}function Jxe(e,t){var r=e[0],n=e[1],a=t[0],i=t[1],o=Math.sqrt(r*r+n*n)*Math.sqrt(a*a+i*i),s=o&&(r*a+n*i)/o;return Math.acos(Math.min(Math.max(s,-1),1))}function DCt(e){return e[0]=0,e[1]=0,e}function FCt(e){return"vec2("+e[0]+", "+e[1]+")"}function Wxe(e,t){return e[0]===t[0]&&e[1]===t[1]}function _Ct(e,t){var r=e[0],n=e[1],a=t[0],i=t[1];return Math.abs(r-a)<=xo*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-i)<=xo*Math.max(1,Math.abs(n),Math.abs(i))}var NCt=Lu,_I=FU,kCt=Lxe,PCt=Uxe,OCt=lS,zCt=Hxe,jCt=Gxe,YCt=function(){var e=Yxe();return function(t,r,n,a,i,o){var s,l;for(r||(r=2),n||(n=0),a?l=Math.min(a*r+n,t.length):l=t.length,s=n;s<l;s+=r)e[0]=t[s],e[1]=t[s+1],i(e,e,o),t[s]=e[0],t[s+1]=e[1];return t}}();const LCt=Object.freeze(Object.defineProperty({__proto__:null,add:Q0,angle:Jxe,ceil:ECt,clone:gCt,copy:vCt,create:Yxe,cross:xCt,dist:OCt,distance:lS,div:PCt,divide:Uxe,dot:Kxe,equals:_Ct,exactEquals:Wxe,floor:yCt,forEach:YCt,fromValues:pCt,inverse:MCt,len:NCt,length:Lu,lerp:ICt,max:Iu,min:xu,mul:kCt,multiply:Lxe,negate:BCt,normalize:_U,random:bCt,rotate:QCt,round:CCt,scale:Nu,scaleAndAdd:wCt,set:mCt,sqrDist:zCt,sqrLen:jCt,squaredDistance:Hxe,squaredLength:Gxe,str:FCt,sub:_I,subtract:FU,transformMat2:SCt,transformMat2d:RCt,transformMat3:Vxe,transformMat4:TCt,zero:DCt},Symbol.toStringTag,{value:"Module"}));function wf(e,t,r){var n=[0,0,0,0,0,0,0,0,0];return bxe(n,r),tm(e,n,t)}function h2(e,t,r){var n=[0,0,0,0,0,0,0,0,0];return Sxe(n,r),tm(e,n,t)}function NU(e,t,r){var n=[0,0,0,0,0,0,0,0,0];return Rxe(n,r),tm(e,n,t)}function UCt(e,t,r){return tm(e,r,t)}function XC(e,t){for(var r=e?[].concat(e):[1,0,0,0,1,0,0,0,1],n=0,a=t.length;n<a;n++){var i=t[n];switch(i[0]){case"t":wf(r,r,[i[1],i[2]]);break;case"s":NU(r,r,[i[1],i[2]]);break;case"r":h2(r,r,i[1]);break;case"m":UCt(r,r,i[1]);break}}return r}function Xxe(e,t){return e[0]*t[1]-t[0]*e[1]}function g2(e,t,r){var n=Jxe(e,t),a=Xxe(e,t)>=0;return r?a?Math.PI*2-n:n:a?n:Math.PI*2-n}function HCt(e,t,r){return r?(e[0]=t[1],e[1]=-1*t[0]):(e[0]=-1*t[1],e[1]=t[0]),e}const GCt=Object.freeze(Object.defineProperty({__proto__:null,angleTo:g2,direction:Xxe,leftRotate:h2,leftScale:NU,leftTranslate:wf,transform:XC,vertical:HCt},Symbol.toStringTag,{value:"Module"})),KCt=Object.freeze(Object.defineProperty({__proto__:null,ext:GCt,mat3:Tyt,vec2:LCt,vec3:jxe},Symbol.toStringTag,{value:"Module"}));function lie(e,t){var r=[],n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],l=e[5],A=e[6],c=e[7],u=e[8],d=t[0],f=t[1],h=t[2],g=t[3],p=t[4],E=t[5],y=t[6],C=t[7],w=t[8];return r[0]=d*n+f*o+h*A,r[1]=d*a+f*s+h*c,r[2]=d*i+f*l+h*u,r[3]=g*n+p*o+E*A,r[4]=g*a+p*s+E*c,r[5]=g*i+p*l+E*u,r[6]=y*n+C*o+w*A,r[7]=y*a+C*s+w*c,r[8]=y*i+C*l+w*u,r}function Mc(e,t){var r=[],n=t[0],a=t[1];return r[0]=e[0]*n+e[3]*a+e[6],r[1]=e[1]*n+e[4]*a+e[7],r}function p2(e){var t=[],r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],A=e[7],c=e[8],u=c*o-s*A,d=-c*i+s*l,f=A*i-o*l,h=r*u+n*d+a*f;return h?(h=1/h,t[0]=u*h,t[1]=(-c*n+a*A)*h,t[2]=(s*n-a*o)*h,t[3]=d*h,t[4]=(c*r-a*l)*h,t[5]=(-s*r+a*i)*h,t[6]=f*h,t[7]=(-A*r+n*l)*h,t[8]=(o*r-n*i)*h,t):null}var RE=XC,h8="matrix",VCt=["zIndex","capture","visible","type"],JCt=["repeat"],WCt=":",XCt="*";function qCt(e){for(var t=[],r=0;r<e.length;r++)En(e[r])?t.push([].concat(e[r])):t.push(e[r]);return t}function ZCt(e,t){var r={},n=t.attrs;for(var a in e)r[a]=n[a];return r}function $Ct(e,t){var r={},n=t.attr();return Ht(e,function(a,i){JCt.indexOf(i)===-1&&!sd(n[i],a)&&(r[i]=a)}),r}function e1t(e,t){if(t.onFrame)return e;var r=t.startTime,n=t.delay,a=t.duration,i=Object.prototype.hasOwnProperty;return Ht(e,function(o){r+n<o.startTime+o.delay+o.duration&&a>o.delay&&Ht(t.toAttrs,function(s,l){i.call(o.toAttrs,l)&&(delete o.toAttrs[l],delete o.fromAttrs[l])})}),e}var qxe=function(e){Cr(t,e);function t(r){var n=e.call(this,r)||this;n.attrs={};var a=n.getDefaultAttrs();return pa(a,r.attrs),n.attrs=a,n.initAttrs(a),n.initAnimate(),n}return t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(r){},t.prototype.initAttrs=function(r){},t.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get("parent")},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.attr=function(){for(var r,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var i=n[0],o=n[1];if(!i)return this.attrs;if(ns(i)){for(var s in i)this.setAttr(s,i[s]);return this.afterAttrsChange(i),this}return n.length===2?(this.setAttr(i,o),this.afterAttrsChange((r={},r[i]=o,r)),this):this.attrs[i]},t.prototype.isClipped=function(r,n){var a=this.getClip();return a&&!a.isHit(r,n)},t.prototype.setAttr=function(r,n){var a=this.attrs[r];a!==n&&(this.attrs[r]=n,this.onAttrChange(r,n,a))},t.prototype.onAttrChange=function(r,n,a){r==="matrix"&&this.set("totalMatrix",null)},t.prototype.afterAttrsChange=function(r){if(this.cfg.isClipShape){var n=this.cfg.applyTo;n&&n.onCanvasChange("clip")}else this.onCanvasChange("attr")},t.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},t.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},t.prototype.setZIndex=function(r){this.set("zIndex",r);var n=this.getParent();return n&&n.sort(),this},t.prototype.toFront=function(){var r=this.getParent();if(r){var n=r.getChildren();this.get("el");var a=n.indexOf(this);n.splice(a,1),n.push(this),this.onCanvasChange("zIndex")}},t.prototype.toBack=function(){var r=this.getParent();if(r){var n=r.getChildren();this.get("el");var a=n.indexOf(this);n.splice(a,1),n.unshift(this),this.onCanvasChange("zIndex")}},t.prototype.remove=function(r){r===void 0&&(r=!0);var n=this.getParent();n?(gxe(n.getChildren(),this),n.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),r&&this.destroy()},t.prototype.resetMatrix=function(){this.attr(h8,this.getDefaultMatrix()),this.onCanvasChange("matrix")},t.prototype.getMatrix=function(){return this.attr(h8)},t.prototype.setMatrix=function(r){this.attr(h8,r),this.onCanvasChange("matrix")},t.prototype.getTotalMatrix=function(){var r=this.cfg.totalMatrix;if(!r){var n=this.attr("matrix"),a=this.cfg.parentMatrix;a&&n?r=lie(a,n):r=n||a,this.set("totalMatrix",r)}return r},t.prototype.applyMatrix=function(r){var n=this.attr("matrix"),a=null;r&&n?a=lie(r,n):a=n||r,this.set("totalMatrix",a),this.set("parentMatrix",r)},t.prototype.getDefaultMatrix=function(){return null},t.prototype.applyToMatrix=function(r){var n=this.attr("matrix");return n?Mc(n,r):r},t.prototype.invertFromMatrix=function(r){var n=this.attr("matrix");if(n){var a=p2(n);if(a)return Mc(a,r)}return r},t.prototype.setClip=function(r){var n=this.getCanvas(),a=null;if(r){var i=this.getShapeBase(),o=u2(r.type),s=i[o];s&&(a=new s({type:r.type,isClipShape:!0,applyTo:this,attrs:r.attrs,canvas:n}))}return this.set("clipShape",a),this.onCanvasChange("clip"),a},t.prototype.getClip=function(){var r=this.cfg.clipShape;return r||null},t.prototype.clone=function(){var r=this,n=this.attrs,a={};Ht(n,function(s,l){En(n[l])?a[l]=qCt(n[l]):a[l]=n[l]});var i=this.constructor,o=new i({attrs:a});return Ht(VCt,function(s){o.set(s,r.get(s))}),o},t.prototype.destroy=function(){var r=this.destroyed;r||(this.attrs={},e.prototype.destroy.call(this))},t.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},t.prototype.animate=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(!(!this.get("timeline")&&!this.get("canvas"))){this.set("animating",!0);var a=this.get("timeline");a||(a=this.get("canvas").get("timeline"),this.set("timeline",a));var i=this.get("animations")||[];a.timer||a.initTimer();var o=r[0],s=r[1],l=r[2],A=l===void 0?"easeLinear":l,c=r[3],u=c===void 0?Qf:c,d=r[4],f=d===void 0?0:d,h,g,p,E,y;Fn(o)?(h=o,o={}):ns(o)&&o.onFrame&&(h=o.onFrame,g=o.repeat),ns(s)?(y=s,s=y.duration,A=y.easing||"easeLinear",f=y.delay||0,g=y.repeat||g||!1,u=y.callback||Qf,p=y.pauseCallback||Qf,E=y.resumeCallback||Qf):($n(u)&&(f=u,u=null),Fn(A)?(u=A,A="easeLinear"):A=A||"easeLinear");var C=$Ct(o,this),w={fromAttrs:ZCt(C,this),toAttrs:C,duration:s,easing:A,repeat:g,callback:u,pauseCallback:p,resumeCallback:E,delay:f,startTime:a.getTime(),id:oxe(),onFrame:h,pathFormatted:!1};i.length>0?i=e1t(i,w):a.addAnimator(this),i.push(w),this.set("animations",i),this.set("_pause",{isPaused:!1})}},t.prototype.stopAnimate=function(r){var n=this;r===void 0&&(r=!0);var a=this.get("animations");Ht(a,function(i){r&&(i.onFrame?n.attr(i.onFrame(1)):n.attr(i.toAttrs)),i.callback&&i.callback()}),this.set("animating",!1),this.set("animations",[])},t.prototype.pauseAnimate=function(){var r=this.get("timeline"),n=this.get("animations"),a=r.getTime();return Ht(n,function(i){i._paused=!0,i._pauseTime=a,i.pauseCallback&&i.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:a}),this},t.prototype.resumeAnimate=function(){var r=this.get("timeline"),n=r.getTime(),a=this.get("animations"),i=this.get("_pause").pauseTime;return Ht(a,function(o){o.startTime=o.startTime+(n-i),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",a),this},t.prototype.emitDelegation=function(r,n){var a=this,i=n.propagationPath;this.getEvents();var o;r==="mouseenter"?o=n.fromShape:r==="mouseleave"&&(o=n.toShape);for(var s=function(u){var d=i[u],f=d.get("name");if(f){if((d.isGroup()||d.isCanvas&&d.isCanvas())&&o&&pxe(d,o))return"break";En(f)?Ht(f,function(h){a.emitDelegateEvent(d,h,n)}):l.emitDelegateEvent(d,f,n)}},l=this,A=0;A<i.length;A++){var c=s(A);if(c==="break")break}},t.prototype.emitDelegateEvent=function(r,n,a){var i=this.getEvents(),o=n+WCt+a.type;(i[o]||i[XCt])&&(a.name=o,a.currentTarget=r,a.delegateTarget=this,a.delegateObject=r.get("delegateObject"),this.emit(o,a))},t.prototype.translate=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0);var a=this.getMatrix(),i=RE(a,[["t",r,n]]);return this.setMatrix(i),this},t.prototype.move=function(r,n){var a=this.attr("x")||0,i=this.attr("y")||0;return this.translate(r-a,n-i),this},t.prototype.moveTo=function(r,n){return this.move(r,n)},t.prototype.scale=function(r,n){var a=this.getMatrix(),i=RE(a,[["s",r,n||r]]);return this.setMatrix(i),this},t.prototype.rotate=function(r){var n=this.getMatrix(),a=RE(n,[["r",r]]);return this.setMatrix(a),this},t.prototype.rotateAtStart=function(r){var n=this.attr(),a=n.x,i=n.y,o=this.getMatrix(),s=RE(o,[["t",-a,-i],["r",r],["t",a,i]]);return this.setMatrix(s),this},t.prototype.rotateAtPoint=function(r,n,a){var i=this.getMatrix(),o=RE(i,[["t",-r,-n],["r",a],["t",r,n]]);return this.setMatrix(o),this},t}(f2),Aie={},A3="_INDEX";function Zxe(e,t){if(e.set("canvas",t),e.isGroup()){var r=e.get("children");r.length&&r.forEach(function(n){Zxe(n,t)})}}function $xe(e,t){if(e.set("timeline",t),e.isGroup()){var r=e.get("children");r.length&&r.forEach(function(n){$xe(n,t)})}}function t1t(e,t,r){t.set("parent",null),t.set("canvas",null),gxe(e.getChildren(),t)}function r1t(e){return function(t,r){var n=e(t,r);return n===0?t[A3]-r[A3]:n}}var eIe=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isCanvas=function(){return!1},t.prototype.getBBox=function(){var r=1/0,n=-1/0,a=1/0,i=-1/0,o=this.getChildren().filter(function(l){return l.get("visible")&&(!l.isGroup()||l.isGroup()&&l.getChildren().length>0)});o.length>0?Ht(o,function(l){var A=l.getBBox(),c=A.minX,u=A.maxX,d=A.minY,f=A.maxY;c<r&&(r=c),u>n&&(n=u),d<a&&(a=d),f>i&&(i=f)}):(r=0,n=0,a=0,i=0);var s={x:r,y:a,minX:r,minY:a,maxX:n,maxY:i,width:n-r,height:i-a};return s},t.prototype.getCanvasBBox=function(){var r=1/0,n=-1/0,a=1/0,i=-1/0,o=this.getChildren().filter(function(l){return l.get("visible")&&(!l.isGroup()||l.isGroup()&&l.getChildren().length>0)});o.length>0?Ht(o,function(l){var A=l.getCanvasBBox(),c=A.minX,u=A.maxX,d=A.minY,f=A.maxY;c<r&&(r=c),u>n&&(n=u),d<a&&(a=d),f>i&&(i=f)}):(r=0,n=0,a=0,i=0);var s={x:r,y:a,minX:r,minY:a,maxX:n,maxY:i,width:n-r,height:i-a};return s},t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return r.children=[],r},t.prototype.onAttrChange=function(r,n,a){if(e.prototype.onAttrChange.call(this,r,n,a),r==="matrix"){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},t.prototype.applyMatrix=function(r){var n=this.getTotalMatrix();e.prototype.applyMatrix.call(this,r);var a=this.getTotalMatrix();a!==n&&this._applyChildrenMarix(a)},t.prototype._applyChildrenMarix=function(r){var n=this.getChildren();Ht(n,function(a){a.applyMatrix(r)})},t.prototype.addShape=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=r[0],i=r[1];ns(a)?i=a:i.type=a;var o=Aie[i.type];o||(o=u2(i.type),Aie[i.type]=o);var s=this.getShapeBase(),l=new s[o](i);return this.add(l),l},t.prototype.addGroup=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=r[0],i=r[1],o;if(Fn(a))i?o=new a(i):o=new a({parent:this});else{var s=a||{},l=this.getGroupBase();o=new l(s)}return this.add(o),o},t.prototype.getCanvas=function(){var r;return this.isCanvas()?r=this:r=this.get("canvas"),r},t.prototype.getShape=function(r,n,a){if(!zy(this))return null;var i=this.getChildren(),o;if(this.isCanvas())o=this._findShape(i,r,n,a);else{var s=[r,n,1];s=this.invertFromMatrix(s),this.isClipped(s[0],s[1])||(o=this._findShape(i,s[0],s[1],a))}return o},t.prototype._findShape=function(r,n,a,i){for(var o=null,s=r.length-1;s>=0;s--){var l=r[s];if(zy(l)&&(l.isGroup()?o=l.getShape(n,a,i):l.isHit(n,a)&&(o=l)),o)break}return o},t.prototype.add=function(r){var n=this.getCanvas(),a=this.getChildren(),i=this.get("timeline"),o=r.getParent();o&&t1t(o,r),r.set("parent",this),n&&Zxe(r,n),i&&$xe(r,i),a.push(r),r.onCanvasChange("add"),this._applyElementMatrix(r)},t.prototype._applyElementMatrix=function(r){var n=this.getTotalMatrix();n&&r.applyMatrix(n)},t.prototype.getChildren=function(){return this.get("children")||[]},t.prototype.sort=function(){var r=this.getChildren();Ht(r,function(n,a){return n[A3]=a,n}),r.sort(r1t(function(n,a){return n.get("zIndex")-a.get("zIndex")})),this.onCanvasChange("sort")},t.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var r=this.getChildren(),n=r.length-1;n>=0;n--)r[n].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},t.prototype.destroy=function(){this.get("destroyed")||(this.clear(),e.prototype.destroy.call(this))},t.prototype.getFirst=function(){return this.getChildByIndex(0)},t.prototype.getLast=function(){var r=this.getChildren();return this.getChildByIndex(r.length-1)},t.prototype.getChildByIndex=function(r){var n=this.getChildren();return n[r]},t.prototype.getCount=function(){var r=this.getChildren();return r.length},t.prototype.contain=function(r){var n=this.getChildren();return n.indexOf(r)>-1},t.prototype.removeChild=function(r,n){n===void 0&&(n=!0),this.contain(r)&&r.remove(n)},t.prototype.findAll=function(r){var n=[],a=this.getChildren();return Ht(a,function(i){r(i)&&n.push(i),i.isGroup()&&(n=n.concat(i.findAll(r)))}),n},t.prototype.find=function(r){var n=null,a=this.getChildren();return Ht(a,function(i){if(r(i)?n=i:i.isGroup()&&(n=i.find(r)),n)return!1}),n},t.prototype.findById=function(r){return this.find(function(n){return n.get("id")===r})},t.prototype.findByClassName=function(r){return this.find(function(n){return n.get("className")===r})},t.prototype.findAllByName=function(r){return this.findAll(function(n){return n.get("name")===r})},t}(qxe),wv=0,D0=0,TE=0,tIe=1e3,AS,F0,cS=0,ch=0,v2=0,jy=typeof performance=="object"&&performance.now?performance:Date,rIe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function nIe(){return ch||(rIe(n1t),ch=jy.now()+v2)}function n1t(){ch=0}function c3(){this._call=this._time=this._next=null}c3.prototype=aIe.prototype={constructor:c3,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?nIe():+r)+(t==null?0:+t),!this._next&&F0!==this&&(F0?F0._next=this:AS=this,F0=this),this._call=e,this._time=r,u3()},stop:function(){this._call&&(this._call=null,this._time=1/0,u3())}};function aIe(e,t,r){var n=new c3;return n.restart(e,t,r),n}function a1t(){nIe(),++wv;for(var e=AS,t;e;)(t=ch-e._time)>=0&&e._call.call(null,t),e=e._next;--wv}function cie(){ch=(cS=jy.now())+v2,wv=D0=0;try{a1t()}finally{wv=0,o1t(),ch=0}}function i1t(){var e=jy.now(),t=e-cS;t>tIe&&(v2-=t,cS=e)}function o1t(){for(var e,t=AS,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:AS=r);F0=e,u3(n)}function u3(e){if(!wv){D0&&(D0=clearTimeout(D0));var t=e-ch;t>24?(e<1/0&&(D0=setTimeout(cie,e-jy.now()-v2)),TE&&(TE=clearInterval(TE))):(TE||(cS=jy.now(),TE=setInterval(i1t,tIe)),wv=1,rIe(cie))}}function kU(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function iIe(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function qC(){}var Yy=.7,uS=1/Yy,Hp="\\s*([+-]?\\d+)\\s*",Ly="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",MA="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s1t=/^#([0-9a-f]{3,8})$/,l1t=new RegExp(`^rgb\\(${Hp},${Hp},${Hp}\\)$`),A1t=new RegExp(`^rgb\\(${MA},${MA},${MA}\\)$`),c1t=new RegExp(`^rgba\\(${Hp},${Hp},${Hp},${Ly}\\)$`),u1t=new RegExp(`^rgba\\(${MA},${MA},${MA},${Ly}\\)$`),d1t=new RegExp(`^hsl\\(${Ly},${MA},${MA}\\)$`),f1t=new RegExp(`^hsla\\(${Ly},${MA},${MA},${Ly}\\)$`),uie={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};kU(qC,Uy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:die,formatHex:die,formatHex8:h1t,formatHsl:g1t,formatRgb:fie,toString:fie});function die(){return this.rgb().formatHex()}function h1t(){return this.rgb().formatHex8()}function g1t(){return oIe(this).formatHsl()}function fie(){return this.rgb().formatRgb()}function Uy(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=s1t.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?hie(t):r===3?new So(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?DB(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?DB(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=l1t.exec(e))?new So(t[1],t[2],t[3],1):(t=A1t.exec(e))?new So(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=c1t.exec(e))?DB(t[1],t[2],t[3],t[4]):(t=u1t.exec(e))?DB(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=d1t.exec(e))?vie(t[1],t[2]/100,t[3]/100,1):(t=f1t.exec(e))?vie(t[1],t[2]/100,t[3]/100,t[4]):uie.hasOwnProperty(e)?hie(uie[e]):e==="transparent"?new So(NaN,NaN,NaN,0):null}function hie(e){return new So(e>>16&255,e>>8&255,e&255,1)}function DB(e,t,r,n){return n<=0&&(e=t=r=NaN),new So(e,t,r,n)}function p1t(e){return e instanceof qC||(e=Uy(e)),e?(e=e.rgb(),new So(e.r,e.g,e.b,e.opacity)):new So}function d3(e,t,r,n){return arguments.length===1?p1t(e):new So(e,t,r,n??1)}function So(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}kU(So,d3,iIe(qC,{brighter(e){return e=e==null?uS:Math.pow(uS,e),new So(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yy:Math.pow(Yy,e),new So(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new So(Lf(this.r),Lf(this.g),Lf(this.b),dS(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gie,formatHex:gie,formatHex8:v1t,formatRgb:pie,toString:pie}));function gie(){return`#${Df(this.r)}${Df(this.g)}${Df(this.b)}`}function v1t(){return`#${Df(this.r)}${Df(this.g)}${Df(this.b)}${Df((isNaN(this.opacity)?1:this.opacity)*255)}`}function pie(){const e=dS(this.opacity);return`${e===1?"rgb(":"rgba("}${Lf(this.r)}, ${Lf(this.g)}, ${Lf(this.b)}${e===1?")":`, ${e})`}`}function dS(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Lf(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Df(e){return e=Lf(e),(e<16?"0":"")+e.toString(16)}function vie(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new yl(e,t,r,n)}function oIe(e){if(e instanceof yl)return new yl(e.h,e.s,e.l,e.opacity);if(e instanceof qC||(e=Uy(e)),!e)return new yl;if(e instanceof yl)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r<n)*6:r===i?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?i+a:2-i-a,o*=60):s=l>0&&l<1?0:o,new yl(o,s,l,e.opacity)}function m1t(e,t,r,n){return arguments.length===1?oIe(e):new yl(e,t,r,n??1)}function yl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}kU(yl,m1t,iIe(qC,{brighter(e){return e=e==null?uS:Math.pow(uS,e),new yl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yy:Math.pow(Yy,e),new yl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new So(g8(e>=240?e-240:e+120,a,n),g8(e,a,n),g8(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new yl(mie(this.h),FB(this.s),FB(this.l),dS(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=dS(this.opacity);return`${e===1?"hsl(":"hsla("}${mie(this.h)}, ${FB(this.s)*100}%, ${FB(this.l)*100}%${e===1?")":`, ${e})`}`}}));function mie(e){return e=(e||0)%360,e<0?e+360:e}function FB(e){return Math.max(0,Math.min(1,e||0))}function g8(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const PU=e=>()=>e;function E1t(e,t){return function(r){return e+r*t}}function y1t(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function C1t(e){return(e=+e)==1?sIe:function(t,r){return r-t?y1t(t,r,e):PU(isNaN(t)?r:t)}}function sIe(e,t){var r=t-e;return r?E1t(e,r):PU(isNaN(e)?t:e)}const Eie=function e(t){var r=C1t(t);function n(a,i){var o=r((a=d3(a)).r,(i=d3(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),A=sIe(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=s(c),a.b=l(c),a.opacity=A(c),a+""}}return n.gamma=e,n}(1);function lIe(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;a<r;++a)n[a]=e[a]*(1-i)+t[a]*i;return n}}function AIe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function w1t(e,t){return(AIe(t)?lIe:cIe)(e,t)}function cIe(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,a=new Array(n),i=new Array(r),o;for(o=0;o<n;++o)a[o]=fS(e[o],t[o]);for(;o<r;++o)i[o]=t[o];return function(s){for(o=0;o<n;++o)i[o]=a[o](s);return i}}function B1t(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function f3(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function M1t(e,t){var r={},n={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?r[a]=fS(e[a],t[a]):n[a]=t[a];return function(i){for(a in r)n[a]=r[a](i);return n}}var h3=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,p8=new RegExp(h3.source,"g");function x1t(e){return function(){return e}}function I1t(e){return function(t){return e(t)+""}}function b1t(e,t){var r=h3.lastIndex=p8.lastIndex=0,n,a,i,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=h3.exec(e))&&(a=p8.exec(t));)(i=a.index)>r&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:f3(n,a)})),r=p8.lastIndex;return r<t.length&&(i=t.slice(r),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?I1t(l[0].x):x1t(t):(t=l.length,function(A){for(var c=0,u;c<t;++c)s[(u=l[c]).i]=u.x(A);return s.join("")})}function fS(e,t){var r=typeof t,n;return t==null||r==="boolean"?PU(t):(r==="number"?f3:r==="string"?(n=Uy(t))?(t=n,Eie):b1t:t instanceof Uy?Eie:t instanceof Date?B1t:AIe(t)?lIe:Array.isArray(t)?cIe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?M1t:f3)(e,t)}function S1t(e){return+e}function R1t(e){return e*e}function T1t(e){return e*(2-e)}function yie(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function Q1t(e){return e*e*e}function D1t(e){return--e*e*e+1}function Cie(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var OU=3,F1t=function e(t){t=+t;function r(n){return Math.pow(n,t)}return r.exponent=e,r}(OU),_1t=function e(t){t=+t;function r(n){return 1-Math.pow(1-n,t)}return r.exponent=e,r}(OU),wie=function e(t){t=+t;function r(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return r.exponent=e,r}(OU),uIe=Math.PI,dIe=uIe/2;function N1t(e){return+e==1?1:1-Math.cos(e*dIe)}function k1t(e){return Math.sin(e*dIe)}function Bie(e){return(1-Math.cos(uIe*e))/2}function ld(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function P1t(e){return ld(1-+e)}function O1t(e){return 1-ld(e)}function Mie(e){return((e*=2)<=1?ld(1-e):2-ld(e-1))/2}function z1t(e){return 1-Math.sqrt(1-e*e)}function j1t(e){return Math.sqrt(1- --e*e)}function xie(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var g3=4/11,Y1t=6/11,L1t=8/11,U1t=3/4,H1t=9/11,G1t=10/11,K1t=15/16,V1t=21/22,J1t=63/64,_B=1/g3/g3;function W1t(e){return 1-Hy(1-e)}function Hy(e){return(e=+e)<g3?_B*e*e:e<L1t?_B*(e-=Y1t)*e+U1t:e<G1t?_B*(e-=H1t)*e+K1t:_B*(e-=V1t)*e+J1t}function X1t(e){return((e*=2)<=1?1-Hy(1-e):Hy(e-1)+1)/2}var zU=1.70158,q1t=function e(t){t=+t;function r(n){return(n=+n)*n*(t*(n-1)+n)}return r.overshoot=e,r}(zU),Z1t=function e(t){t=+t;function r(n){return--n*n*((n+1)*t+n)+1}return r.overshoot=e,r}(zU),Iie=function e(t){t=+t;function r(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return r.overshoot=e,r}(zU),Bv=2*Math.PI,jU=1,YU=.3,$1t=function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=Bv);function a(i){return t*ld(- --i)*Math.sin((n-i)/r)}return a.amplitude=function(i){return e(i,r*Bv)},a.period=function(i){return e(t,i)},a}(jU,YU),bie=function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=Bv);function a(i){return 1-t*ld(i=+i)*Math.sin((i+n)/r)}return a.amplitude=function(i){return e(i,r*Bv)},a.period=function(i){return e(t,i)},a}(jU,YU),ewt=function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=Bv);function a(i){return((i=i*2-1)<0?t*ld(-i)*Math.sin((n-i)/r):2-t*ld(i)*Math.sin((n+i)/r))/2}return a.amplitude=function(i){return e(i,r*Bv)},a.period=function(i){return e(t,i)},a}(jU,YU);const twt=Object.freeze(Object.defineProperty({__proto__:null,easeBack:Iie,easeBackIn:q1t,easeBackInOut:Iie,easeBackOut:Z1t,easeBounce:Hy,easeBounceIn:W1t,easeBounceInOut:X1t,easeBounceOut:Hy,easeCircle:xie,easeCircleIn:z1t,easeCircleInOut:xie,easeCircleOut:j1t,easeCubic:Cie,easeCubicIn:Q1t,easeCubicInOut:Cie,easeCubicOut:D1t,easeElastic:bie,easeElasticIn:$1t,easeElasticInOut:ewt,easeElasticOut:bie,easeExp:Mie,easeExpIn:P1t,easeExpInOut:Mie,easeExpOut:O1t,easeLinear:S1t,easePoly:wie,easePolyIn:F1t,easePolyInOut:wie,easePolyOut:_1t,easeQuad:yie,easeQuadIn:R1t,easeQuadInOut:yie,easeQuadOut:T1t,easeSin:Bie,easeSinIn:N1t,easeSinInOut:Bie,easeSinOut:k1t},Symbol.toStringTag,{value:"Module"}));var fIe={};function rwt(e){return fIe[e.toLowerCase()]||twt[e]}function hIe(e,t){fIe[e.toLowerCase()]=t}var nwt=function(e){return["fill","stroke","fillStyle","strokeStyle"].includes(e)},awt=function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)},Sie=[1,0,0,0,1,0,0,0,1];function iwt(e,t,r){var n={},a=t.fromAttrs,i=t.toAttrs;if(!e.destroyed){var o;for(var s in i)if(!sd(a[s],i[s]))if(s==="path"){var l=i[s],A=a[s];l.length>A.length?(l=Ip(i[s]),A=Ip(a[s]),A=dxe(A,l),A=o3(A,l),t.fromAttrs.path=A,t.toAttrs.path=l):t.pathFormatted||(l=Ip(i[s]),A=Ip(a[s]),A=o3(A,l),t.fromAttrs.path=A,t.toAttrs.path=l,t.pathFormatted=!0),n[s]=[];for(var c=0;c<l.length;c++){for(var u=l[c],d=A[c],f=[],h=0;h<u.length;h++)$n(u[h])&&d&&$n(d[h])?(o=fS(d[h],u[h]),f.push(o(r))):f.push(u[h]);n[s].push(f)}}else if(s==="matrix"){var g=w1t(a[s]||Sie,i[s]||Sie),p=g(r);n[s]=p}else nwt(s)&&awt(i[s])?n[s]=i[s]:Fn(i[s])||(o=fS(a[s],i[s]),n[s]=o(r));e.attr(n)}}function owt(e,t,r){var n=t.startTime,a=t.delay;if(r<n+a||t._paused)return!1;var i,o=t.duration,s=t.easing,l=rwt(s);if(r=r-n-t.delay,t.repeat)i=r%o/o,i=l(i);else if(i=r/o,i<1)i=l(i);else return t.onFrame?e.attr(t.onFrame(1)):e.attr(t.toAttrs),!0;if(t.onFrame){var A=t.onFrame(i);e.attr(A)}else iwt(e,t,i);return!1}var swt=function(){function e(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return e.prototype.initTimer=function(){var t=this,r=!1,n,a,i;this.timer=aIe(function(o){if(t.current=o,t.animators.length>0){for(var s=t.animators.length-1;s>=0;s--){if(n=t.animators[s],n.destroyed){t.removeAnimator(s);continue}if(!n.isAnimatePaused()){a=n.get("animations");for(var l=a.length-1;l>=0;l--)i=a[l],r=owt(n,i,o),r&&(a.splice(l,1),r=!1,i.callback&&i.callback())}a.length===0&&t.removeAnimator(s)}var A=t.canvas.get("autoDraw");A||t.canvas.draw()}})},e.prototype.addAnimator=function(t){this.animators.push(t)},e.prototype.removeAnimator=function(t){this.animators.splice(t,1)},e.prototype.isAnimating=function(){return!!this.animators.length},e.prototype.stop=function(){this.timer&&this.timer.stop()},e.prototype.stopAllAnimations=function(t){t===void 0&&(t=!0),this.animators.forEach(function(r){r.stopAnimate(t)}),this.animators=[],this.canvas.draw()},e.prototype.getTime=function(){return this.current},e}(),lwt=40,Rie=0,Tie=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Qie(e,t,r){r.name=t,r.target=e,r.currentTarget=e,r.delegateTarget=e,e.emit(t,r)}function Awt(e,t,r){if(r.bubbles){var n=void 0,a=!1;if(t==="mouseenter"?(n=r.fromShape,a=!0):t==="mouseleave"&&(a=!0,n=r.toShape),e.isCanvas()&&a)return;if(n&&pxe(e,n)){r.bubbles=!1;return}r.name=t,r.currentTarget=e,r.delegateTarget=e,e.emit(t,r)}}var cwt=function(){function e(t){var r=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(n){var a=n.type;r._triggerEvent(a,n)},this._onDocumentMove=function(n){var a=r.canvas,i=a.get("el");if(i!==n.target&&(r.dragging||r.currentShape)){var o=r._getPointInfo(n);r.dragging&&r._emitEvent("drag",n,o,r.draggingShape)}},this._onDocumentMouseUp=function(n){var a=r.canvas,i=a.get("el");if(i!==n.target&&r.dragging){var o=r._getPointInfo(n);r.draggingShape&&r._emitEvent("drop",n,o,null),r._emitEvent("dragend",n,o,r.draggingShape),r._afterDrag(r.draggingShape,o,n)}},this.canvas=t.canvas}return e.prototype.init=function(){this._bindEvents()},e.prototype._bindEvents=function(){var t=this,r=this.canvas.get("el");Ht(Tie,function(n){r.addEventListener(n,t._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._clearEvents=function(){var t=this,r=this.canvas.get("el");Ht(Tie,function(n){r.removeEventListener(n,t._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._getEventObj=function(t,r,n,a,i,o){var s=new d2(t,r);return s.fromShape=i,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(a),s},e.prototype._getShape=function(t,r){return this.canvas.getShape(t.x,t.y,r)},e.prototype._getPointInfo=function(t){var r=this.canvas,n=r.getClientByEvent(t),a=r.getPointByEvent(t);return{x:a.x,y:a.y,clientX:n.x,clientY:n.y}},e.prototype._triggerEvent=function(t,r){var n=this._getPointInfo(r),a=this._getShape(n,r),i=this["_on"+t],o=!1;if(i)i.call(this,n,a,r);else{var s=this.currentShape;t==="mouseenter"||t==="dragenter"||t==="mouseover"?(this._emitEvent(t,r,n,null,null,a),a&&this._emitEvent(t,r,n,a,null,a),t==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",r,n,null)):t==="mouseleave"||t==="dragleave"||t==="mouseout"?(o=!0,s&&this._emitEvent(t,r,n,s,s,null),this._emitEvent(t,r,n,null,s,null),t==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",r,n,null)):this._emitEvent(t,r,n,a,null,null)}if(o||(this.currentShape=a),a&&!a.get("destroyed")){var l=this.canvas,A=l.get("el");A.style.cursor=a.attr("cursor")||l.get("cursor")}},e.prototype._onmousedown=function(t,r,n){n.button===Rie&&(this.mousedownShape=r,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,r,null,null)},e.prototype._emitMouseoverEvents=function(t,r,n,a){var i=this.canvas.get("el");n!==a&&(n&&(this._emitEvent("mouseout",t,r,n,n,a),this._emitEvent("mouseleave",t,r,n,n,a),(!a||a.get("destroyed"))&&(i.style.cursor=this.canvas.get("cursor"))),a&&(this._emitEvent("mouseover",t,r,a,n,a),this._emitEvent("mouseenter",t,r,a,n,a)))},e.prototype._emitDragoverEvents=function(t,r,n,a,i){a?(a!==n&&(n&&this._emitEvent("dragleave",t,r,n,n,a),this._emitEvent("dragenter",t,r,a,n,a)),i||this._emitEvent("dragover",t,r,a)):n&&this._emitEvent("dragleave",t,r,n,n,a),i&&this._emitEvent("dragover",t,r,a)},e.prototype._afterDrag=function(t,r,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var a=this._getShape(r,n);a!==t&&this._emitMouseoverEvents(n,r,t,a),this.currentShape=a},e.prototype._onmouseup=function(t,r,n){if(n.button===Rie){var a=this.draggingShape;this.dragging?(a&&this._emitEvent("drop",n,t,r),this._emitEvent("dragend",n,t,a),this._afterDrag(a,t,n)):(this._emitEvent("mouseup",n,t,r),r===this.mousedownShape&&this._emitEvent("click",n,t,r),this.mousedownShape=null,this.mousedownPoint=null)}},e.prototype._ondragover=function(t,r,n){n.preventDefault();var a=this.currentShape;this._emitDragoverEvents(n,t,a,r,!0)},e.prototype._onmousemove=function(t,r,n){var a=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,r,!1),this._emitEvent("drag",n,t,o);else{var s=this.mousedownPoint;if(s){var l=this.mousedownShape,A=n.timeStamp,c=A-this.mousedownTimeStamp,u=s.clientX-t.clientX,d=s.clientY-t.clientY,f=u*u+d*d;c>120||f>lwt?l&&l.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!l&&a.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,r),this._emitEvent("mousemove",n,t,r)):(this._emitMouseoverEvents(n,t,i,r),this._emitEvent("mousemove",n,t,r))}else this._emitMouseoverEvents(n,t,i,r),this._emitEvent("mousemove",n,t,r)}},e.prototype._emitEvent=function(t,r,n,a,i,o){var s=this._getEventObj(t,r,n,a,i,o);if(a){s.shape=a,Qie(a,t,s);for(var l=a.getParent();l;)l.emitDelegation(t,s),s.propagationStopped||Awt(l,t,s),s.propagationPath.push(l),l=l.getParent()}else{var A=this.canvas;Qie(A,t,s)}},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e}(),Die="px",Fie=wxe(),uwt=Fie&&Fie.name==="firefox",LU=function(e){Cr(t,e);function t(r){var n=e.call(this,r)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return r.cursor="default",r.supportCSSTransform=!1,r},t.prototype.initContainer=function(){var r=this.get("container");jn(r)&&(r=document.getElementById(r),this.set("container",r))},t.prototype.initDom=function(){var r=this.createDom();this.set("el",r);var n=this.get("container");n.appendChild(r),this.setDOMSize(this.get("width"),this.get("height"))},t.prototype.initEvents=function(){var r=new cwt({canvas:this});r.init(),this.set("eventController",r)},t.prototype.initTimeline=function(){var r=new swt(this);this.set("timeline",r)},t.prototype.setDOMSize=function(r,n){var a=this.get("el");aie&&(a.style.width=r+Die,a.style.height=n+Die)},t.prototype.changeSize=function(r,n){this.setDOMSize(r,n),this.set("width",r),this.set("height",n),this.onCanvasChange("changeSize")},t.prototype.getRenderer=function(){return this.get("renderer")},t.prototype.getCursor=function(){return this.get("cursor")},t.prototype.setCursor=function(r){this.set("cursor",r);var n=this.get("el");aie&&n&&(n.style.cursor=r)},t.prototype.getPointByEvent=function(r){var n=this.get("supportCSSTransform");if(n){if(uwt&&!sr(r.layerX)&&r.layerX!==r.offsetX)return{x:r.layerX,y:r.layerY};if(!sr(r.offsetX))return{x:r.offsetX,y:r.offsetY}}var a=this.getClientByEvent(r),i=a.x,o=a.y;return this.getPointByClient(i,o)},t.prototype.getClientByEvent=function(r){var n=r;return r.touches&&(r.type==="touchend"?n=r.changedTouches[0]:n=r.touches[0]),{x:n.clientX,y:n.clientY}},t.prototype.getPointByClient=function(r,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:r-i.left,y:n-i.top}},t.prototype.getClientByPoint=function(r,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:r+i.left,y:n+i.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var r=this.get("el");r.parentNode.removeChild(r)},t.prototype.clearEvents=function(){var r=this.get("eventController");r.destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var r=this.get("timeline");this.get("destroyed")||(this.clear(),r&&r.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t}(eIe),UU=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isGroup=function(){return!0},t.prototype.isEntityGroup=function(){return!1},t.prototype.clone=function(){for(var r=e.prototype.clone.call(this),n=this.getChildren(),a=0;a<n.length;a++){var i=n[a];r.add(i.clone())}return r},t}(eIe),HU=function(e){Cr(t,e);function t(r){return e.call(this,r)||this}return t.prototype._isInBBox=function(r,n){var a=this.getBBox();return a.minX<=r&&a.maxX>=r&&a.minY<=n&&a.maxY>=n},t.prototype.afterAttrsChange=function(r){e.prototype.afterAttrsChange.call(this,r),this.clearCacheBBox()},t.prototype.getBBox=function(){var r=this.cfg.bbox;return r||(r=this.calculateBBox(),this.set("bbox",r)),r},t.prototype.getCanvasBBox=function(){var r=this.cfg.canvasBBox;return r||(r=this.calculateCanvasBBox(),this.set("canvasBBox",r)),r},t.prototype.applyMatrix=function(r){e.prototype.applyMatrix.call(this,r),this.set("canvasBBox",null)},t.prototype.calculateCanvasBBox=function(){var r=this.getBBox(),n=this.getTotalMatrix(),a=r.minX,i=r.minY,o=r.maxX,s=r.maxY;if(n){var l=Mc(n,[r.minX,r.minY]),A=Mc(n,[r.maxX,r.minY]),c=Mc(n,[r.minX,r.maxY]),u=Mc(n,[r.maxX,r.maxY]);a=Math.min(l[0],A[0],c[0],u[0]),o=Math.max(l[0],A[0],c[0],u[0]),i=Math.min(l[1],A[1],c[1],u[1]),s=Math.max(l[1],A[1],c[1],u[1])}var d=this.attrs;if(d.shadowColor){var f=d.shadowBlur,h=f===void 0?0:f,g=d.shadowOffsetX,p=g===void 0?0:g,E=d.shadowOffsetY,y=E===void 0?0:E,C=a-h+p,w=o+h+p,B=i-h+y,M=s+h+y;a=Math.min(a,C),o=Math.max(o,w),i=Math.min(i,B),s=Math.max(s,M)}return{x:a,y:i,minX:a,minY:i,maxX:o,maxY:s,width:o-a,height:s-i}},t.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},t.prototype.isClipShape=function(){return this.get("isClipShape")},t.prototype.isInShape=function(r,n){return!1},t.prototype.isOnlyHitBox=function(){return!1},t.prototype.isHit=function(r,n){var a=this.get("startArrowShape"),i=this.get("endArrowShape"),o=[r,n,1];o=this.invertFromMatrix(o);var s=o[0],l=o[1],A=this._isInBBox(s,l);return this.isOnlyHitBox()?A:!!(A&&!this.isClipped(s,l)&&(this.isInShape(s,l)||a&&a.isHit(s,l)||i&&i.isHit(s,l)))},t}(qxe),gIe=new Map;function Xs(e,t){gIe.set(e,t)}function GU(e){return gIe.get(e)}function pIe(e){var t=e.attr(),r=t.x,n=t.y,a=t.width,i=t.height;return{x:r,y:n,width:a,height:i}}function vIe(e){var t=e.attr(),r=t.x,n=t.y,a=t.r;return{x:r-a,y:n-a,width:a*2,height:a*2}}function Si(e,t,r,n){var a=e-r,i=t-n;return Math.sqrt(a*a+i*i)}function ty(e,t){return Math.abs(e-t)<.001}function kh(e,t){var r=Ls(e),n=Ls(t),a=Ys(e),i=Ys(t);return{x:r,y:n,width:a-r,height:i-n}}function dwt(e,t,r,n){return{minX:Ls([e,r]),maxX:Ys([e,r]),minY:Ls([t,n]),maxY:Ys([t,n])}}function ZC(e){return(e+Math.PI*2)%(Math.PI*2)}const fwt=Object.freeze(Object.defineProperty({__proto__:null,distance:Si,getBBoxByArray:kh,getBBoxRange:dwt,isNumberEqual:ty,piMod:ZC},Symbol.toStringTag,{value:"Module"})),io={box:function(e,t,r,n){return kh([e,r],[t,n])},length:function(e,t,r,n){return Si(e,t,r,n)},pointAt:function(e,t,r,n,a){return{x:(1-a)*e+a*r,y:(1-a)*t+a*n}},pointDistance:function(e,t,r,n,a,i){var o=(r-e)*(a-e)+(n-t)*(i-t);if(o<0)return Si(e,t,a,i);var s=(r-e)*(r-e)+(n-t)*(n-t);return o>s?Si(r,n,a,i):this.pointToLine(e,t,r,n,a,i)},pointToLine:function(e,t,r,n,a,i){var o=[r-e,n-t];if(Wxe(o,[0,0]))return Math.sqrt((a-e)*(a-e)+(i-t)*(i-t));var s=[-o[1],o[0]];_U(s,s);var l=[a-e,i-t];return Math.abs(Kxe(l,s))},tangentAngle:function(e,t,r,n){return Math.atan2(n-t,r-e)}};var hwt=1e-4;function mIe(e,t,r,n,a,i){var o,s=1/0,l=[r,n],A=20;i&&i>200&&(A=i/10);for(var c=1/A,u=c/10,d=0;d<=A;d++){var f=d*c,h=[a.apply(null,e.concat([f])),a.apply(null,t.concat([f]))],g=Si(l[0],l[1],h[0],h[1]);g<s&&(o=f,s=g)}if(o===0)return{x:e[0],y:t[0]};if(o===1){var p=e.length;return{x:e[p-1],y:t[p-1]}}s=1/0;for(var d=0;d<32&&!(u<hwt);d++){var E=o-u,y=o+u,h=[a.apply(null,e.concat([E])),a.apply(null,t.concat([E]))],g=Si(l[0],l[1],h[0],h[1]);if(E>=0&&g<s)o=E,s=g;else{var C=[a.apply(null,e.concat([y])),a.apply(null,t.concat([y]))],w=Si(l[0],l[1],C[0],C[1]);y<=1&&w<s?(o=y,s=w):u*=.5}}return{x:a.apply(null,e.concat([o])),y:a.apply(null,t.concat([o]))}}function gwt(e,t){for(var r=0,n=e.length,a=0;a<n;a++){var i=e[a],o=t[a],s=e[(a+1)%n],l=t[(a+1)%n];r+=Si(i,o,s,l)}return r/2}function Du(e,t,r,n){var a=1-n;return a*a*e+2*n*a*t+n*n*r}function _ie(e,t,r){var n=e+r-2*t;if(ty(n,0))return[.5];var a=(e-t)/n;return a<=1&&a>=0?[a]:[]}function Nie(e,t,r,n){return 2*(1-n)*(t-e)+2*n*(r-t)}function EIe(e,t,r,n,a,i,o){var s=Du(e,r,a,o),l=Du(t,n,i,o),A=io.pointAt(e,t,r,n,o),c=io.pointAt(r,n,a,i,o);return[[e,t,A.x,A.y,s,l],[s,l,c.x,c.y,a,i]]}function p3(e,t,r,n,a,i,o){if(o===0)return(Si(e,t,r,n)+Si(r,n,a,i)+Si(e,t,a,i))/2;var s=EIe(e,t,r,n,a,i,.5),l=s[0],A=s[1];return l.push(o-1),A.push(o-1),p3.apply(null,l)+p3.apply(null,A)}const KU={box:function(e,t,r,n,a,i){var o=_ie(e,r,a)[0],s=_ie(t,n,i)[0],l=[e,a],A=[t,i];return o!==void 0&&l.push(Du(e,r,a,o)),s!==void 0&&A.push(Du(t,n,i,s)),kh(l,A)},length:function(e,t,r,n,a,i){return p3(e,t,r,n,a,i,3)},nearestPoint:function(e,t,r,n,a,i,o,s){return mIe([e,r,a],[t,n,i],o,s,Du)},pointDistance:function(e,t,r,n,a,i,o,s){var l=this.nearestPoint(e,t,r,n,a,i,o,s);return Si(l.x,l.y,o,s)},interpolationAt:Du,pointAt:function(e,t,r,n,a,i,o){return{x:Du(e,r,a,o),y:Du(t,n,i,o)}},divide:function(e,t,r,n,a,i,o){return EIe(e,t,r,n,a,i,o)},tangentAngle:function(e,t,r,n,a,i,o){var s=Nie(e,r,a,o),l=Nie(t,n,i,o),A=Math.atan2(l,s);return ZC(A)}};function Fu(e,t,r,n,a){var i=1-a;return i*i*i*e+3*t*a*i*i+3*r*a*a*i+n*a*a*a}function kie(e,t,r,n,a){var i=1-a;return 3*(i*i*(t-e)+2*i*a*(r-t)+a*a*(n-r))}function v8(e,t,r,n){var a=-3*e+9*t-9*r+3*n,i=6*e-12*t+6*r,o=3*t-3*e,s=[],l,A,c;if(ty(a,0))ty(i,0)||(l=-o/i,l>=0&&l<=1&&s.push(l));else{var u=i*i-4*a*o;ty(u,0)?s.push(-i/(2*a)):u>0&&(c=Math.sqrt(u),l=(-i+c)/(2*a),A=(-i-c)/(2*a),l>=0&&l<=1&&s.push(l),A>=0&&A<=1&&s.push(A))}return s}function yIe(e,t,r,n,a,i,o,s,l){var A=Fu(e,r,a,o,l),c=Fu(t,n,i,s,l),u=io.pointAt(e,t,r,n,l),d=io.pointAt(r,n,a,i,l),f=io.pointAt(a,i,o,s,l),h=io.pointAt(u.x,u.y,d.x,d.y,l),g=io.pointAt(d.x,d.y,f.x,f.y,l);return[[e,t,u.x,u.y,h.x,h.y,A,c],[A,c,g.x,g.y,f.x,f.y,o,s]]}function v3(e,t,r,n,a,i,o,s,l){if(l===0)return gwt([e,r,a,o],[t,n,i,s]);var A=yIe(e,t,r,n,a,i,o,s,.5),c=A[0],u=A[1];return c.push(l-1),u.push(l-1),v3.apply(null,c)+v3.apply(null,u)}const Gp={extrema:v8,box:function(e,t,r,n,a,i,o,s){for(var l=[e,o],A=[t,s],c=v8(e,r,a,o),u=v8(t,n,i,s),d=0;d<c.length;d++)l.push(Fu(e,r,a,o,c[d]));for(var d=0;d<u.length;d++)A.push(Fu(t,n,i,s,u[d]));return kh(l,A)},length:function(e,t,r,n,a,i,o,s){return v3(e,t,r,n,a,i,o,s,3)},nearestPoint:function(e,t,r,n,a,i,o,s,l,A,c){return mIe([e,r,a,o],[t,n,i,s],l,A,Fu,c)},pointDistance:function(e,t,r,n,a,i,o,s,l,A,c){var u=this.nearestPoint(e,t,r,n,a,i,o,s,l,A,c);return Si(u.x,u.y,l,A)},interpolationAt:Fu,pointAt:function(e,t,r,n,a,i,o,s,l){return{x:Fu(e,r,a,o,l),y:Fu(t,n,i,s,l)}},divide:function(e,t,r,n,a,i,o,s,l){return yIe(e,t,r,n,a,i,o,s,l)},tangentAngle:function(e,t,r,n,a,i,o,s,l){var A=kie(e,r,a,o,l),c=kie(t,n,i,s,l);return ZC(Math.atan2(c,A))}};function Pie(e,t){var r=Math.abs(e);return t>0?r:r*-1}const pwt={box:function(e,t,r,n){return{x:e-r,y:t-n,width:r*2,height:n*2}},length:function(e,t,r,n){return Math.PI*(3*(r+n)-Math.sqrt((3*r+n)*(r+3*n)))},nearestPoint:function(e,t,r,n,a,i){var o=r,s=n;if(o===0||s===0)return{x:e,y:t};for(var l=a-e,A=i-t,c=Math.abs(l),u=Math.abs(A),d=o*o,f=s*s,h=Math.PI/4,g,p,E=0;E<4;E++){g=o*Math.cos(h),p=s*Math.sin(h);var y=(d-f)*Math.pow(Math.cos(h),3)/o,C=(f-d)*Math.pow(Math.sin(h),3)/s,w=g-y,B=p-C,M=c-y,I=u-C,S=Math.hypot(B,w),R=Math.hypot(I,M),b=S*Math.asin((w*I-B*M)/(S*R)),Q=b/Math.sqrt(d+f-g*g-p*p);h+=Q,h=Math.min(Math.PI/2,Math.max(0,h))}return{x:e+Pie(g,l),y:t+Pie(p,A)}},pointDistance:function(e,t,r,n,a,i){var o=this.nearestPoint(e,t,r,n,a,i);return Si(o.x,o.y,a,i)},pointAt:function(e,t,r,n,a){var i=2*Math.PI*a;return{x:e+r*Math.cos(i),y:t+n*Math.sin(i)}},tangentAngle:function(e,t,r,n,a){var i=2*Math.PI*a,o=Math.atan2(n*Math.cos(i),-r*Math.sin(i));return ZC(o)}};function vwt(e,t,r,n,a,i,o,s){return-1*r*Math.cos(a)*Math.sin(s)-n*Math.sin(a)*Math.cos(s)}function mwt(e,t,r,n,a,i,o,s){return-1*r*Math.sin(a)*Math.sin(s)+n*Math.cos(a)*Math.cos(s)}function Ewt(e,t,r){return Math.atan(-t/e*Math.tan(r))}function ywt(e,t,r){return Math.atan(t/(e*Math.tan(r)))}function Oie(e,t,r,n,a,i){return r*Math.cos(a)*Math.cos(i)-n*Math.sin(a)*Math.sin(i)+e}function zie(e,t,r,n,a,i){return r*Math.sin(a)*Math.cos(i)+n*Math.cos(a)*Math.sin(i)+t}function Cwt(e,t,r,n){var a=Math.atan2(n*e,r*t);return(a+Math.PI*2)%(Math.PI*2)}function jie(e,t,r){return{x:e*Math.cos(r),y:t*Math.sin(r)}}function Yie(e,t,r){var n=Math.cos(r),a=Math.sin(r);return[e*n-t*a,e*a+t*n]}const CIe={box:function(e,t,r,n,a,i,o){for(var s=Ewt(r,n,a),l=1/0,A=-1/0,c=[i,o],u=-Math.PI*2;u<=Math.PI*2;u+=Math.PI){var d=s+u;i<o?i<d&&d<o&&c.push(d):o<d&&d<i&&c.push(d)}for(var u=0;u<c.length;u++){var f=Oie(e,t,r,n,a,c[u]);f<l&&(l=f),f>A&&(A=f)}for(var h=ywt(r,n,a),g=1/0,p=-1/0,E=[i,o],u=-Math.PI*2;u<=Math.PI*2;u+=Math.PI){var y=h+u;i<o?i<y&&y<o&&E.push(y):o<y&&y<i&&E.push(y)}for(var u=0;u<E.length;u++){var C=zie(e,t,r,n,a,E[u]);C<g&&(g=C),C>p&&(p=C)}return{x:l,y:g,width:A-l,height:p-g}},length:function(e,t,r,n,a,i,o){},nearestPoint:function(e,t,r,n,a,i,o,s,l){var A=Yie(s-e,l-t,-a),c=A[0],u=A[1],d=pwt.nearestPoint(0,0,r,n,c,u),f=Cwt(r,n,d.x,d.y);f<i?d=jie(r,n,i):f>o&&(d=jie(r,n,o));var h=Yie(d.x,d.y,a);return{x:h[0]+e,y:h[1]+t}},pointDistance:function(e,t,r,n,a,i,o,s,l){var A=this.nearestPoint(e,t,r,n,s,l);return Si(A.x,A.y,s,l)},pointAt:function(e,t,r,n,a,i,o,s){var l=(o-i)*s+i;return{x:Oie(e,t,r,n,a,l),y:zie(e,t,r,n,a,l)}},tangentAngle:function(e,t,r,n,a,i,o,s){var l=(o-i)*s+i,A=vwt(e,t,r,n,a,i,o,l),c=mwt(e,t,r,n,a,i,o,l);return ZC(Math.atan2(c,A))}};function wIe(e){for(var t=0,r=[],n=0;n<e.length-1;n++){var a=e[n],i=e[n+1],o=Si(a[0],a[1],i[0],i[1]),s={from:a,to:i,length:o};r.push(s),t+=o}return{segments:r,totalLength:t}}function BIe(e){if(e.length<2)return 0;for(var t=0,r=0;r<e.length-1;r++){var n=e[r],a=e[r+1];t+=Si(n[0],n[1],a[0],a[1])}return t}function MIe(e,t){if(t>1||t<0||e.length<2)return null;var r=wIe(e),n=r.segments,a=r.totalLength;if(a===0)return{x:e[0][0],y:e[0][1]};for(var i=0,o=null,s=0;s<n.length;s++){var l=n[s],A=l.from,c=l.to,u=l.length/a;if(t>=i&&t<=i+u){var d=(t-i)/u;o=io.pointAt(A[0],A[1],c[0],c[1],d);break}i+=u}return o}function xIe(e,t){if(t>1||t<0||e.length<2)return 0;for(var r=wIe(e),n=r.segments,a=r.totalLength,i=0,o=0,s=0;s<n.length;s++){var l=n[s],A=l.from,c=l.to,u=l.length/a;if(t>=i&&t<=i+u){o=Math.atan2(c[1]-A[1],c[0]-A[0]);break}i+=u}return o}function IIe(e,t,r){for(var n=1/0,a=0;a<e.length-1;a++){var i=e[a],o=e[a+1],s=io.pointDistance(i[0],i[1],o[0],o[1],t,r);s<n&&(n=s)}return n}const VU={box:function(e){for(var t=[],r=[],n=0;n<e.length;n++){var a=e[n];t.push(a[0]),r.push(a[1])}return kh(t,r)},length:function(e){return BIe(e)},pointAt:function(e,t){return MIe(e,t)},pointDistance:function(e,t,r){return IIe(e,t,r)},tangentAngle:function(e,t){return xIe(e,t)}};function NB(e){var t=e.slice(0);return e.length&&t.push(e[0]),t}const wwt={box:function(e){return VU.box(e)},length:function(e){return BIe(NB(e))},pointAt:function(e,t){return MIe(NB(e),t)},pointDistance:function(e,t,r){return IIe(NB(e),t,r)},tangentAngle:function(e,t){return xIe(NB(e),t)}},Bwt=Object.freeze(Object.defineProperty({__proto__:null,Arc:CIe,Cubic:Gp,Line:io,Polygon:wwt,Polyline:VU,Quad:KU,Util:fwt},Symbol.toStringTag,{value:"Module"}));function Lie(e,t){return!e||!t?e||t:{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}}function JU(e,t){var r=e.get("startArrowShape"),n=e.get("endArrowShape"),a=null,i=null;return r&&(a=r.getCanvasBBox(),t=Lie(t,a)),n&&(i=n.getCanvasBBox(),t=Lie(t,i)),t}function Mwt(e){for(var t=e.attr(),r=t.points,n=[],a=[],i=0;i<r.length;i++){var o=r[i];n.push(o[0]),a.push(o[1])}var s=kh(n,a),l=s.x,A=s.y,c=s.width,u=s.height,d={minX:l,minY:A,maxX:l+c,maxY:A+u};return d=JU(e,d),{x:d.minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}}function xwt(e){for(var t=e.attr(),r=t.points,n=[],a=[],i=0;i<r.length;i++){var o=r[i];n.push(o[0]),a.push(o[1])}return kh(n,a)}var m8=null;function m2(){if(!m8){var e=document.createElement("canvas");e.width=1,e.height=1,m8=e.getContext("2d")}return m8}function E2(e,t,r){var n=1;if(jn(e)&&(n=e.split(`
`).length),n>1){var a=Iwt(t,r);return t*n+a*(n-1)}return t}function Iwt(e,t){return t?t-e:e*.14}function bwt(e,t){var r=m2(),n=0;if(sr(e)||e==="")return n;if(r.save(),r.font=t,jn(e)&&e.includes(`
`)){var a=e.split(`
`);Ht(a,function(i){var o=r.measureText(i).width;n<o&&(n=o)})}else n=r.measureText(e).width;return r.restore(),n}function y2(e){var t=e.fontSize,r=e.fontFamily,n=e.fontWeight,a=e.fontStyle,i=e.fontVariant;return[a,i,n,t+"px",r].join(" ").trim()}function Swt(e){var t=e.attr(),r=t.x,n=t.y,a=t.text,i=t.fontSize,o=t.lineHeight,s=t.font;s||(s=y2(t));var l=bwt(a,s),A;if(!l)A={x:r,y:n,width:0,height:0};else{var c=t.textAlign,u=t.textBaseline,d=E2(a,i,o),f={x:r,y:n-d};c&&(c==="end"||c==="right"?f.x-=l:c==="center"&&(f.x-=l/2)),u&&(u==="top"?f.y+=d:u==="middle"&&(f.y+=d/2)),A={x:f.x,y:f.y,width:l,height:d}}return A}var Rwt=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,Twt=/[^\s\,]+/ig;function bIe(e){var t=e||[];if(En(t))return t;if(jn(t))return t=t.match(Rwt),Ht(t,function(r,n){if(r=r.match(Twt),r[0].length>1){var a=r[0].charAt(0);r.splice(1,0,r[0].substr(1)),r[0]=a}Ht(r,function(i,o){isNaN(i)||(r[o]=+i)}),t[n]=r}),t}function Qwt(e,t,r,n){var a=[],i=!!n,o,s,l,A,c,u,d;if(i){l=n[0],A=n[1];for(var f=0,h=e.length;f<h;f+=1){var g=e[f];l=xu([0,0],l,g),A=Iu([0,0],A,g)}}for(var f=0,p=e.length;f<p;f+=1){var g=e[f];if(f===0&&!r)d=g;else if(f===p-1&&!r)u=g,a.push(d),a.push(u);else{var E=[f?f-1:p-1,f-1][r?0:1];o=e[E],s=e[r?(f+1)%p:f+1];var y=[0,0];y=_I(y,s,o),y=Nu(y,y,t);var C=lS(g,o),w=lS(g,s),B=C+w;B!==0&&(C/=B,w/=B);var M=Nu([0,0],y,-C),I=Nu([0,0],y,w);u=Q0([0,0],g,M),c=Q0([0,0],g,I),c=xu([0,0],c,Iu([0,0],s,g)),c=Iu([0,0],c,xu([0,0],s,g)),M=_I([0,0],c,g),M=Nu([0,0],M,-C/w),u=Q0([0,0],g,M),u=xu([0,0],u,Iu([0,0],o,g)),u=Iu([0,0],u,xu([0,0],o,g)),I=_I([0,0],g,u),I=Nu([0,0],I,w/C),c=Q0([0,0],g,I),i&&(u=Iu([0,0],u,l),u=xu([0,0],u,A),c=Iu([0,0],c,l),c=xu([0,0],c,A)),a.push(d),a.push(u),d=c}}return r&&a.push(a.shift()),a}function SIe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=[[0,0],[1,1]]);for(var n=!!t,a=[],i=0,o=e.length;i<o;i+=2)a.push([e[i],e[i+1]]);for(var s=Qwt(a,.4,n,r),l=a.length,A=[],c,u,d,i=0;i<l-1;i+=1)c=s[i*2],u=s[i*2+1],d=a[i+1],A.push(["C",c[0],c[1],u[0],u[1],d[0],d[1]]);return n&&(c=s[l],u=s[l+1],d=a[0],A.push(["C",c[0],c[1],u[0],u[1],d[0],d[1]])),A}function Dwt(e,t){var r=[],n=[];function a(i,o){if(i.length===1)r.push(i[0]),n.push(i[0]);else{for(var s=[],l=0;l<i.length-1;l++)l===0&&r.push(i[0]),l===i.length-2&&n.push(i[l+1]),s[l]=[(1-o)*i[l][0]+o*i[l+1][0],(1-o)*i[l][1]+o*i[l+1][1]];a(s,o)}}return e.length&&a(e,t),{left:r,right:n.reverse()}}function Fwt(e,t,r){var n=[[e[1],e[2]]];r=r||2;var a=[];t[0]==="A"?(n.push(t[6]),n.push(t[7])):t[0]==="C"?(n.push([t[1],t[2]]),n.push([t[3],t[4]]),n.push([t[5],t[6]])):t[0]==="S"||t[0]==="Q"?(n.push([t[1],t[2]]),n.push([t[3],t[4]])):n.push([t[1],t[2]]);for(var i=n,o=1/r,s=0;s<r-1;s++){var l=o/(1-o*s),A=Dwt(i,l);a.push(A.left),i=A.right}a.push(i);var c=a.map(function(u){var d=[];return u.length===4&&(d.push("C"),d=d.concat(u[2])),u.length>=3&&(u.length===3&&d.push("Q"),d=d.concat(u[1])),u.length===2&&d.push("L"),d=d.concat(u[u.length-1]),d});return c}function _wt(e,t,r){if(r===1)return[[].concat(e)];var n=[];if(t[0]==="L"||t[0]==="C"||t[0]==="Q")n=n.concat(Fwt(e,t,r));else{var a=[].concat(e);a[0]==="M"&&(a[0]="L");for(var i=0;i<=r-1;i++)n.push(a)}return n}function Nwt(e,t){if(e.length===1)return e;var r=e.length-1,n=t.length-1,a=r/n,i=[];if(e.length===1&&e[0][0]==="M"){for(var o=0;o<n-r;o++)e.push(e[0]);return e}for(var o=0;o<n;o++){var s=Math.floor(a*o);i[s]=(i[s]||0)+1}var l=i.reduce(function(A,c,u){return u===r?A.concat(e[r]):A.concat(_wt(e[u],e[u+1],c))},[]);return l.unshift(e[0]),(t[n]==="Z"||t[n]==="z")&&l.push("Z"),l}function kwt(e,t,r){var n=null,a=r;return t<a&&(a=t,n="add"),e<a&&(a=e,n="del"),{type:n,min:a}}var Pwt=function(e,t){var r=e.length,n=t.length,a,i,o=0;if(r===0||n===0)return null;for(var s=[],l=0;l<=r;l++)s[l]=[],s[l][0]={min:l};for(var A=0;A<=n;A++)s[0][A]={min:A};for(var l=1;l<=r;l++){a=e[l-1];for(var A=1;A<=n;A++){i=t[A-1],sd(a,i)?o=0:o=1;var c=s[l-1][A].min+1,u=s[l][A-1].min+1,d=s[l-1][A-1].min+o;s[l][A]=kwt(c,u,d)}}return s};function Owt(e,t){var r=Pwt(e,t),n=e.length,a=t.length,i=[],o=1,s=1;if(r[n][a]!==n){for(var l=1;l<=n;l++){var A=r[l][l].min;s=l;for(var c=o;c<=a;c++)r[l][c].min<A&&(A=r[l][c].min,s=c);o=s,r[l][o].type&&i.push({index:l-1,type:r[l][o].type})}for(var l=i.length-1;l>=0;l--)o=i[l].index,i[l].type==="add"?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}if(n=e.length,n<a)for(var l=0;l<a-n;l++)e[n-1][0]==="z"||e[n-1][0]==="Z"?e.splice(n-2,0,e[n-2]):e.push(e[n-1]);return e}function RIe(e){var t=[];switch(e[0]){case"M":t.push([e[1],e[2]]);break;case"L":t.push([e[1],e[2]]);break;case"A":t.push([e[6],e[7]]);break;case"Q":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"T":t.push([e[1],e[2]]);break;case"C":t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case"S":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"H":t.push([e[1],e[1]]);break;case"V":t.push([e[1],e[1]]);break}return t}function E8(e,t,r){for(var n=[].concat(e),a,i=1/(r+1),o=RIe(t)[0],s=1;s<=r;s++)i*=s,a=Math.floor(e.length*i),a===0?n.unshift([o[0]*i+e[a][0]*(1-i),o[1]*i+e[a][1]*(1-i)]):n.splice(a,0,[o[0]*i+e[a][0]*(1-i),o[1]*i+e[a][1]*(1-i)]);return n}function zwt(e,t){if(e.length<=1)return e;for(var r,n=0;n<t.length;n++)if(e[n][0]!==t[n][0])switch(r=RIe(e[n]),t[n][0]){case"M":e[n]=["M"].concat(r[0]);break;case"L":e[n]=["L"].concat(r[0]);break;case"A":e[n]=[].concat(t[n]),e[n][6]=r[0][0],e[n][7]=r[0][1];break;case"Q":if(r.length<2)if(n>0)r=E8(r,e[n-1],1);else{e[n]=t[n];break}e[n]=["Q"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"T":e[n]=["T"].concat(r[0]);break;case"C":if(r.length<3)if(n>0)r=E8(r,e[n-1],2);else{e[n]=t[n];break}e[n]=["C"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"S":if(r.length<2)if(n>0)r=E8(r,e[n-1],1);else{e[n]=t[n];break}e[n]=["S"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;default:e[n]=t[n]}return e}function TIe(e,t,r,n,a){return a?[["M",+e+ +a,t],["l",r-a*2,0],["a",a,a,0,0,1,a,a],["l",0,n-a*2],["a",a,a,0,0,1,-a,a],["l",a*2-r,0],["a",a,a,0,0,1,-a,-a],["l",0,a*2-n],["a",a,a,0,0,1,a,-a],["z"]]:[["M",e,t],["l",r,0],["l",0,n],["l",-r,0],["z"]]}var ry=`	
\v\f\r   ᠎             　\u2028\u2029`,jwt=new RegExp("([a-z])["+ry+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+ry+"]*,?["+ry+"]*)+)","ig"),Ywt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+ry+"]*,?["+ry+"]*","ig");function QIe(e){if(!e)return null;if(En(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},r=[];return String(e).replace(jwt,function(n,a,i){var o=[],s=a.toLowerCase();if(i.replace(Ywt,function(l,A){A&&o.push(+A)}),s==="m"&&o.length>2&&(r.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&r.push([a,o[0]]),s==="r")r.push([a].concat(o));else for(;o.length>=t[s]&&(r.push([a].concat(o.splice(0,t[s]))),!!t[s]););return""}),r}var Lwt=/[a-z]/;function Uie(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function C2(e){var t=QIe(e);if(!t||!t.length)return[["M",0,0]];for(var r=!1,n=0;n<t.length;n++){var a=t[n][0];if(Lwt.test(a)||["V","H","T","S"].indexOf(a)>=0){r=!0;break}}if(!r)return t;var i=[],o=0,s=0,l=0,A=0,c=0,u=t[0];(u[0]==="M"||u[0]==="m")&&(o=+u[1],s=+u[2],l=o,A=s,c++,i[0]=["M",o,s]);for(var n=c,d=t.length;n<d;n++){var f=t[n],h=i[n-1],g=[],a=f[0],p=a.toUpperCase();if(a!==p)switch(g[0]=p,p){case"A":g[1]=f[1],g[2]=f[2],g[3]=f[3],g[4]=f[4],g[5]=f[5],g[6]=+f[6]+o,g[7]=+f[7]+s;break;case"V":g[1]=+f[1]+s;break;case"H":g[1]=+f[1]+o;break;case"M":l=+f[1]+o,A=+f[2]+s,g[1]=l,g[2]=A;break;default:for(var E=1,y=f.length;E<y;E++)g[E]=+f[E]+(E%2?o:s)}else g=t[n];switch(p){case"Z":o=+l,s=+A;break;case"H":o=g[1],g=["L",o,s];break;case"V":s=g[1],g=["L",o,s];break;case"T":o=g[1],s=g[2];var C=Uie([h[1],h[2]],[h[3],h[4]]);g=["Q",C[0],C[1],o,s];break;case"S":o=g[g.length-2],s=g[g.length-1];var w=h.length,B=Uie([h[w-4],h[w-3]],[h[w-2],h[w-1]]);g=["C",B[0],B[1],g[1],g[2],o,s];break;case"M":l=g[g.length-2],A=g[g.length-1];break;default:o=g[g.length-2],s=g[g.length-1]}i.push(g)}return i}var ny=Math.PI*2,y8=function(e,t,r,n,a,i,o){var s=e.x,l=e.y;s*=t,l*=r;var A=n*s-a*l,c=a*s+n*l;return{x:A+i,y:c+o}},Uwt=function(e,t){var r=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),n=Math.cos(e),a=Math.sin(e),i=Math.cos(e+t),o=Math.sin(e+t);return[{x:n-a*r,y:a+n*r},{x:i+o*r,y:o-i*r},{x:i,y:o}]},Hie=function(e,t,r,n){var a=e*n-t*r<0?-1:1,i=e*r+t*n;return i>1&&(i=1),i<-1&&(i=-1),a*Math.acos(i)},Hwt=function(e,t,r,n,a,i,o,s,l,A,c,u){var d=Math.pow(a,2),f=Math.pow(i,2),h=Math.pow(c,2),g=Math.pow(u,2),p=d*f-d*g-f*h;p<0&&(p=0),p/=d*g+f*h,p=Math.sqrt(p)*(o===s?-1:1);var E=p*a/i*u,y=p*-i/a*c,C=A*E-l*y+(e+r)/2,w=l*E+A*y+(t+n)/2,B=(c-E)/a,M=(u-y)/i,I=(-c-E)/a,S=(-u-y)/i,R=Hie(1,0,B,M),b=Hie(B,M,I,S);return s===0&&b>0&&(b-=ny),s===1&&b<0&&(b+=ny),[C,w,R,b]},Gwt=function(e){var t=e.px,r=e.py,n=e.cx,a=e.cy,i=e.rx,o=e.ry,s=e.xAxisRotation,l=s===void 0?0:s,A=e.largeArcFlag,c=A===void 0?0:A,u=e.sweepFlag,d=u===void 0?0:u,f=[];if(i===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:n,y:a}];var h=Math.sin(l*ny/360),g=Math.cos(l*ny/360),p=g*(t-n)/2+h*(r-a)/2,E=-h*(t-n)/2+g*(r-a)/2;if(p===0&&E===0)return[{x1:0,y1:0,x2:0,y2:0,x:n,y:a}];i=Math.abs(i),o=Math.abs(o);var y=Math.pow(p,2)/Math.pow(i,2)+Math.pow(E,2)/Math.pow(o,2);y>1&&(i*=Math.sqrt(y),o*=Math.sqrt(y));var C=Hwt(t,r,n,a,i,o,c,d,h,g,p,E),w=C[0],B=C[1],M=C[2],I=C[3],S=Math.abs(I)/(ny/4);Math.abs(1-S)<1e-7&&(S=1);var R=Math.max(Math.ceil(S),1);I/=R;for(var b=0;b<R;b++)f.push(Uwt(M,I)),M+=I;return f.map(function(Q){var D=y8(Q[0],i,o,g,h,w,B),F=D.x,N=D.y,k=y8(Q[1],i,o,g,h,w,B),O=k.x,P=k.y,z=y8(Q[2],i,o,g,h,w,B),j=z.x,V=z.y;return{x1:F,y1:N,x2:O,y2:P,x:j,y:V}})};function Kwt(e,t,r,n,a,i,o,s,l){var A=Gwt({px:e,py:t,cx:s,cy:l,rx:r,ry:n,xAxisRotation:a,largeArcFlag:i,sweepFlag:o});return A.reduce(function(c,u){var d=u.x1,f=u.y1,h=u.x2,g=u.y2,p=u.x,E=u.y;return c.push(d,f,h,g,p,E),c},[])}function Vwt(e,t,r,n,a,i){var o=.3333333333333333,s=2/3;return[o*e+s*r,o*t+s*n,o*a+s*r,o*i+s*n,a,i]}function kB(e,t,r,n){return[e,t,r,n,r,n]}function Jwt(e,t){"TQ".indexOf(e[0])<0&&(t.qx=null,t.qy=null);var r=e.slice(1),n=r[0],a=r[1];switch(e[0]){case"M":return t.x=n,t.y=a,e;case"A":return["C"].concat(Kwt.apply(0,[t.x1,t.y1].concat(e.slice(1))));case"Q":return t.qx=n,t.qy=a,["C"].concat(Vwt.apply(0,[t.x1,t.y1].concat(e.slice(1))));case"L":return["C"].concat(kB(t.x1,t.y1,e[1],e[2]));case"H":return["C"].concat(kB(t.x1,t.y1,e[1],t.y1));case"V":return["C"].concat(kB(t.x1,t.y1,t.x1,e[1]));case"Z":return["C"].concat(kB(t.x1,t.y1,t.x,t.y))}return e}function m3(e,t){t===void 0&&(t=!1);for(var r=C2(e),n={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},a=[],i="",o=r.length,s,l,A=[],c=0;c<o;c+=1)r[c]&&(i=r[c][0]),a[c]=i,r[c]=Jwt(r[c],n),Wwt(r,a,c),o=r.length,i==="Z"&&A.push(c),s=r[c],l=s.length,n.x1=+s[l-2],n.y1=+s[l-1],n.x2=+s[l-4]||n.x1,n.y2=+s[l-3]||n.y1;return t?[r,A]:r}function Wwt(e,t,r){if(e[r].length>7){e[r].shift();for(var n=e[r],a=r;n.length;)t[r]="A",e.splice(a+=1,0,["C"].concat(n.splice(0,6)));e.splice(r,1)}}var Gie=function(e,t,r,n,a){var i=-3*t+9*r-9*n+3*a,o=e*i+6*t-12*r+6*n;return e*o-3*t+3*r},Kie=function(e,t,r,n,a,i,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var A=l/2,c=12,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,h=0;h<c;h++){var g=A*u[h]+A,p=Gie(g,e,r,a,o),E=Gie(g,t,n,i,s),y=p*p+E*E;f+=d[h]*Math.sqrt(y)}return A*f},Xwt=function(e,t,r,n,a,i,o,s){for(var l=[],A=[[],[]],c,u,d,f,h=0;h<2;++h){if(h===0?(u=6*e-12*r+6*a,c=-3*e+9*r-9*a+3*o,d=3*r-3*e):(u=6*t-12*n+6*i,c=-3*t+9*n-9*i+3*s,d=3*n-3*t),Math.abs(c)<1e-12){if(Math.abs(u)<1e-12)continue;f=-d/u,f>0&&f<1&&l.push(f);continue}var g=u*u-4*d*c,p=Math.sqrt(g);if(!(g<0)){var E=(-u+p)/(2*c);E>0&&E<1&&l.push(E);var y=(-u-p)/(2*c);y>0&&y<1&&l.push(y)}}for(var C=l.length,w=C,B;C--;)f=l[C],B=1-f,A[0][C]=B*B*B*e+3*B*B*f*r+3*B*f*f*a+f*f*f*o,A[1][C]=B*B*B*t+3*B*B*f*n+3*B*f*f*i+f*f*f*s;return A[0][w]=e,A[1][w]=t,A[0][w+1]=o,A[1][w+1]=s,A[0].length=A[1].length=w+2,{min:{x:Math.min.apply(0,A[0]),y:Math.min.apply(0,A[1])},max:{x:Math.max.apply(0,A[0]),y:Math.max.apply(0,A[1])}}},qwt=function(e,t,r,n,a,i,o,s){if(!(Math.max(e,r)<Math.min(a,o)||Math.min(e,r)>Math.max(a,o)||Math.max(t,n)<Math.min(i,s)||Math.min(t,n)>Math.max(i,s))){var l=(e*n-t*r)*(a-o)-(e-r)*(a*s-i*o),A=(e*n-t*r)*(i-s)-(t-n)*(a*s-i*o),c=(e-r)*(i-s)-(t-n)*(a-o);if(c){var u=l/c,d=A/c,f=+u.toFixed(2),h=+d.toFixed(2);if(!(f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,o).toFixed(2)||f>+Math.max(a,o).toFixed(2)||h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,s).toFixed(2)||h>+Math.max(i,s).toFixed(2)))return{x:u,y:d}}}},fu=function(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height},E3=function(e,t,r,n){return e===null&&(e=t=r=n=0),t===null&&(t=e.y,r=e.width,n=e.height,e=e.x),{x:e,y:t,width:r,w:r,height:n,h:n,x2:e+r,y2:t+n,cx:e+r/2,cy:t+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:TIe(e,t,r,n),vb:[e,t,r,n].join(" ")}},Zwt=function(e,t){return e=E3(e),t=E3(t),fu(t,e.x,e.y)||fu(t,e.x2,e.y)||fu(t,e.x,e.y2)||fu(t,e.x2,e.y2)||fu(e,t.x,t.y)||fu(e,t.x2,t.y)||fu(e,t.x,t.y2)||fu(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)},Vie=function(e,t,r,n,a,i,o,s){En(e)||(e=[e,t,r,n,a,i,o,s]);var l=Xwt.apply(null,e);return E3(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Jie=function(e,t,r,n,a,i,o,s,l){var A=1-l,c=Math.pow(A,3),u=Math.pow(A,2),d=l*l,f=d*l,h=c*e+u*3*l*r+A*3*l*l*a+f*o,g=c*t+u*3*l*n+A*3*l*l*i+f*s,p=e+2*l*(r-e)+d*(a-2*r+e),E=t+2*l*(n-t)+d*(i-2*n+t),y=r+2*l*(a-r)+d*(o-2*a+r),C=n+2*l*(i-n)+d*(s-2*i+n),w=A*e+l*r,B=A*t+l*n,M=A*a+l*o,I=A*i+l*s,S=90-Math.atan2(p-y,E-C)*180/Math.PI;return{x:h,y:g,m:{x:p,y:E},n:{x:y,y:C},start:{x:w,y:B},end:{x:M,y:I},alpha:S}},$wt=function(e,t,r){var n=Vie(e),a=Vie(t);if(!Zwt(n,a))return[];for(var i=Kie.apply(0,e),o=Kie.apply(0,t),s=~~(i/8),l=~~(o/8),A=[],c=[],u={},d=[],f=0;f<s+1;f++){var h=Jie.apply(0,e.concat(f/s));A.push({x:h.x,y:h.y,t:f/s})}for(var f=0;f<l+1;f++){var h=Jie.apply(0,t.concat(f/l));c.push({x:h.x,y:h.y,t:f/l})}for(var f=0;f<s;f++)for(var g=0;g<l;g++){var p=A[f],E=A[f+1],y=c[g],C=c[g+1],w=Math.abs(E.x-p.x)<.001?"y":"x",B=Math.abs(C.x-y.x)<.001?"y":"x",M=qwt(p.x,p.y,E.x,E.y,y.x,y.y,C.x,C.y);if(M){if(u[M.x.toFixed(4)]===M.y.toFixed(4))continue;u[M.x.toFixed(4)]=M.y.toFixed(4);var I=p.t+Math.abs((M[w]-p[w])/(E[w]-p[w]))*(E.t-p.t),S=y.t+Math.abs((M[B]-y[B])/(C[B]-y[B]))*(C.t-y.t);I>=0&&I<=1&&S>=0&&S<=1&&d.push({x:M.x,y:M.y,t1:I,t2:S})}}return d},eBt=function(e,t,r){e=m3(e),t=m3(t);for(var n,a,i,o,s,l,A,c,u,d,f=r?0:[],h=0,g=e.length;h<g;h++){var p=e[h];if(p[0]==="M")n=s=p[1],a=l=p[2];else{p[0]==="C"?(u=[n,a].concat(p.slice(1)),n=u[6],a=u[7]):(u=[n,a,n,a,s,l,s,l],n=s,a=l);for(var E=0,y=t.length;E<y;E++){var C=t[E];if(C[0]==="M")i=A=C[1],o=c=C[2];else{C[0]==="C"?(d=[i,o].concat(C.slice(1)),i=d[6],o=d[7]):(d=[i,o,i,o,A,c,A,c],i=A,o=c);var w=$wt(u,d);{for(var B=0,M=w.length;B<M;B++)w[B].segment1=h,w[B].segment2=E,w[B].bez1=u,w[B].bez2=d;f=f.concat(w)}}}}}return f};function tBt(e,t){return eBt(e,t)}var rBt=/,?([a-z]),?/gi;function nBt(e){return e.join(",").replace(rBt,"$1")}function PB(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function y3(e,t){return PB(e)*PB(t)?(e[0]*t[0]+e[1]*t[1])/(PB(e)*PB(t)):1}function Wie(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(y3(e,t))}function C3(e,t){return e[0]===t[0]&&e[1]===t[1]}function DIe(e,t){var r=t[1],n=t[2],a=BU(MU(t[3]),Math.PI*2),i=t[4],o=t[5],s=e[0],l=e[1],A=t[6],c=t[7],u=Math.cos(a)*(s-A)/2+Math.sin(a)*(l-c)/2,d=-1*Math.sin(a)*(s-A)/2+Math.cos(a)*(l-c)/2,f=u*u/(r*r)+d*d/(n*n);f>1&&(r*=Math.sqrt(f),n*=Math.sqrt(f));var h=r*r*(d*d)+n*n*(u*u),g=h?Math.sqrt((r*r*(n*n)-h)/h):1;i===o&&(g*=-1),isNaN(g)&&(g=0);var p=n?g*r*d/n:0,E=r?g*-n*u/r:0,y=(s+A)/2+Math.cos(a)*p-Math.sin(a)*E,C=(l+c)/2+Math.sin(a)*p+Math.cos(a)*E,w=[(u-p)/r,(d-E)/n],B=[(-1*u-p)/r,(-1*d-E)/n],M=Wie([1,0],w),I=Wie(w,B);return y3(w,B)<=-1&&(I=Math.PI),y3(w,B)>=1&&(I=0),o===0&&I>0&&(I=I-2*Math.PI),o===1&&I<0&&(I=I+2*Math.PI),{cx:y,cy:C,rx:C3(e,[A,c])?0:r,ry:C3(e,[A,c])?0:n,startAngle:M,endAngle:M+I,xRotation:a,arcFlag:i,sweepFlag:o}}function Xie(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function WU(e){e=bIe(e);for(var t=[],r=null,n=null,a=null,i=0,o=e.length,s=0;s<o;s++){var l=e[s];n=e[s+1];var A=l[0],c={command:A,prePoint:r,params:l,startTangent:null,endTangent:null};switch(A){case"M":a=[l[1],l[2]],i=s;break;case"A":var u=DIe(r,l);c.arcParams=u;break}if(A==="Z")r=a,n=e[i+1];else{var d=l.length;r=[l[d-2],l[d-1]]}n&&n[0]==="Z"&&(n=e[i],t[i]&&(t[i].prePoint=r)),c.currentPoint=r,t[i]&&C3(r,t[i].currentPoint)&&(t[i].prePoint=c.prePoint);var f=n?[n[n.length-2],n[n.length-1]]:null;c.nextPoint=f;var h=c.prePoint;if(["L","H","V"].includes(A))c.startTangent=[h[0]-r[0],h[1]-r[1]],c.endTangent=[r[0]-h[0],r[1]-h[1]];else if(A==="Q"){var g=[l[1],l[2]];c.startTangent=[h[0]-g[0],h[1]-g[1]],c.endTangent=[r[0]-g[0],r[1]-g[1]]}else if(A==="T"){var p=t[s-1],g=Xie(p.currentPoint,h);p.command==="Q"?(c.command="Q",c.startTangent=[h[0]-g[0],h[1]-g[1]],c.endTangent=[r[0]-g[0],r[1]-g[1]]):(c.command="TL",c.startTangent=[h[0]-r[0],h[1]-r[1]],c.endTangent=[r[0]-h[0],r[1]-h[1]])}else if(A==="C"){var E=[l[1],l[2]],y=[l[3],l[4]];c.startTangent=[h[0]-E[0],h[1]-E[1]],c.endTangent=[r[0]-y[0],r[1]-y[1]],c.startTangent[0]===0&&c.startTangent[1]===0&&(c.startTangent=[E[0]-y[0],E[1]-y[1]]),c.endTangent[0]===0&&c.endTangent[1]===0&&(c.endTangent=[y[0]-E[0],y[1]-E[1]])}else if(A==="S"){var p=t[s-1],E=Xie(p.currentPoint,h),y=[l[1],l[2]];p.command==="C"?(c.command="C",c.startTangent=[h[0]-E[0],h[1]-E[1]],c.endTangent=[r[0]-y[0],r[1]-y[1]]):(c.command="SQ",c.startTangent=[h[0]-y[0],h[1]-y[1]],c.endTangent=[r[0]-y[0],r[1]-y[1]])}else if(A==="A"){var C=.001,w=c.arcParams||{},B=w.cx,M=B===void 0?0:B,I=w.cy,S=I===void 0?0:I,R=w.rx,b=R===void 0?0:R,Q=w.ry,D=Q===void 0?0:Q,F=w.sweepFlag,N=F===void 0?0:F,k=w.startAngle,O=k===void 0?0:k,P=w.endAngle,z=P===void 0?0:P;N===0&&(C*=-1);var j=b*Math.cos(O-C)+M,V=D*Math.sin(O-C)+S;c.startTangent=[j-a[0],V-a[1]];var L=b*Math.cos(O+z+C)+M,K=D*Math.sin(O+z-C)+S;c.endTangent=[h[0]-L,h[1]-K]}t.push(c)}return t}var qie=function(e,t,r){return e>=t&&e<=r};function FIe(e,t,r,n){var a=.001,i={x:r.x-e.x,y:r.y-e.y},o={x:t.x-e.x,y:t.y-e.y},s={x:n.x-r.x,y:n.y-r.y},l=o.x*s.y-o.y*s.x,A=l*l,c=o.x*o.x+o.y*o.y,u=s.x*s.x+s.y*s.y,d=null;if(A>a*c*u){var f=(i.x*s.y-i.y*s.x)/l,h=(i.x*o.y-i.y*o.x)/l;qie(f,0,1)&&qie(h,0,1)&&(d={x:e.x+f*o.x,y:e.y+f*o.y})}return d}var aBt=1e-6;function C8(e){return Math.abs(e)<aBt?0:e<0?-1:1}function iBt(e,t,r){return(r[0]-e[0])*(t[1]-e[1])===(t[0]-e[0])*(r[1]-e[1])&&Math.min(e[0],t[0])<=r[0]&&r[0]<=Math.max(e[0],t[0])&&Math.min(e[1],t[1])<=r[1]&&r[1]<=Math.max(e[1],t[1])}function w3(e,t,r){var n=!1,a=e.length;if(a<=2)return!1;for(var i=0;i<a;i++){var o=e[i],s=e[(i+1)%a];if(iBt(o,s,[t,r]))return!0;C8(o[1]-r)>0!=C8(s[1]-r)>0&&C8(t-(r-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}function Zie(e){for(var t=[],r=e.length,n=0;n<r-1;n++){var a=e[n],i=e[n+1];t.push({from:{x:a[0],y:a[1]},to:{x:i[0],y:i[1]}})}if(t.length>1){var o=e[0],s=e[r-1];t.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return t}function oBt(e,t){var r=!1;return Ht(e,function(n){if(FIe(n.from,n.to,t.from,t.to))return r=!0,!1}),r}function $ie(e){var t=e.map(function(n){return n[0]}),r=e.map(function(n){return n[1]});return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,r),maxY:Math.max.apply(null,r)}}function sBt(e,t){return!(t.minX>e.maxX||t.maxX<e.minX||t.minY>e.maxY||t.maxY<e.minY)}function lBt(e,t){if(e.length<2||t.length<2)return!1;var r=$ie(e),n=$ie(t);if(!sBt(r,n))return!1;var a=!1;if(Ht(t,function(l){if(w3(e,l[0],l[1]))return a=!0,!1}),a||(Ht(e,function(l){if(w3(t,l[0],l[1]))return a=!0,!1}),a))return!0;var i=Zie(e),o=Zie(t),s=!1;return Ht(o,function(l){if(oBt(i,l))return s=!0,!1}),s}const ABt=Object.freeze(Object.defineProperty({__proto__:null,catmullRom2Bezier:SIe,fillPath:Nwt,fillPathByDiff:Owt,formatPath:zwt,getArcParams:DIe,getLineIntersect:FIe,isPointInPolygon:w3,isPolygonsIntersect:lBt,parsePath:bIe,parsePathArray:nBt,parsePathString:QIe,path2Absolute:C2,path2Curve:m3,path2Segments:WU,pathIntersection:tBt,reactPath:TIe},Symbol.toStringTag,{value:"Module"}));function cBt(e,t){for(var r=[],n=[],a=[],i=0;i<e.length;i++){var o=e[i],s=o.currentPoint,l=o.params,A=o.prePoint,c=void 0;switch(o.command){case"Q":c=KU.box(A[0],A[1],l[1],l[2],l[3],l[4]);break;case"C":c=Gp.box(A[0],A[1],l[1],l[2],l[3],l[4],l[5],l[6]);break;case"A":var u=o.arcParams;c=CIe.box(u.cx,u.cy,u.rx,u.ry,u.xRotation,u.startAngle,u.endAngle);break;default:r.push(s[0]),n.push(s[1]);break}c&&(o.box=c,r.push(c.x,c.x+c.width),n.push(c.y,c.y+c.height)),t&&(o.command==="L"||o.command==="M")&&o.prePoint&&o.nextPoint&&a.push(o)}r=r.filter(function(E){return!Number.isNaN(E)&&E!==1/0&&E!==-1/0}),n=n.filter(function(E){return!Number.isNaN(E)&&E!==1/0&&E!==-1/0});var d=Ls(r),f=Ls(n),h=Ys(r),g=Ys(n);if(a.length===0)return{x:d,y:f,width:h-d,height:g-f};for(var i=0;i<a.length;i++){var o=a[i],s=o.currentPoint,p=void 0;s[0]===d?(p=OB(o,t),d=d-p.xExtra):s[0]===h&&(p=OB(o,t),h=h+p.xExtra),s[1]===f?(p=OB(o,t),f=f-p.yExtra):s[1]===g&&(p=OB(o,t),g=g+p.yExtra)}return{x:d,y:f,width:h-d,height:g-f}}function OB(e,t){var r=e.prePoint,n=e.currentPoint,a=e.nextPoint,i=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),o=Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2),s=Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2),l=Math.acos((i+o-s)/(2*Math.sqrt(i)*Math.sqrt(o)));if(!l||Math.sin(l)===0||BA(l,0))return{xExtra:0,yExtra:0};var A=Math.abs(Math.atan2(a[1]-n[1],a[0]-n[0])),c=Math.abs(Math.atan2(a[0]-n[0],a[1]-n[1]));A=A>Math.PI/2?Math.PI-A:A,c=c>Math.PI/2?Math.PI-c:c;var u={xExtra:Math.cos(l/2-A)*(t/2*(1/Math.sin(l/2)))-t/2||0,yExtra:Math.cos(c-l/2)*(t/2*(1/Math.sin(l/2)))-t/2||0};return u}function uBt(e){var t=e.attr(),r=t.path,n=t.stroke,a=n?t.lineWidth:0,i=e.get("segments")||WU(r),o=cBt(i,a),s=o.x,l=o.y,A=o.width,c=o.height,u={minX:s,minY:l,maxX:s+A,maxY:l+c};return u=JU(e,u),{x:u.minX,y:u.minY,width:u.maxX-u.minX,height:u.maxY-u.minY}}function dBt(e){var t=e.attr(),r=t.x1,n=t.y1,a=t.x2,i=t.y2,o=Math.min(r,a),s=Math.max(r,a),l=Math.min(n,i),A=Math.max(n,i),c={minX:o,maxX:s,minY:l,maxY:A};return c=JU(e,c),{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}}function fBt(e){var t=e.attr(),r=t.x,n=t.y,a=t.rx,i=t.ry;return{x:r-a,y:n-i,width:a*2,height:i*2}}Xs("rect",pIe);Xs("image",pIe);Xs("circle",vIe);Xs("marker",vIe);Xs("polyline",Mwt);Xs("polygon",xwt);Xs("text",Swt);Xs("path",uBt);Xs("line",dBt);Xs("ellipse",fBt);var hBt="0.5.11";const gBt=Object.freeze(Object.defineProperty({__proto__:null,AbstractCanvas:LU,AbstractGroup:UU,AbstractShape:HU,Base:f2,Event:d2,PathUtil:DU,assembleFont:y2,getBBoxMethod:GU,getOffScreenContext:m2,getTextHeight:E2,invert:p2,isAllowCapture:zy,multiplyVec2:Mc,registerBBox:Xs,registerEasing:hIe,version:hBt},Symbol.toStringTag,{value:"Module"})),Ao=Un(gBt);var eoe=0,pBt=1/2,vBt=1/2,mBt=.05,$C=function(){function e(t){var r=t.xField,n=t.yField,a=t.adjustNames,i=a===void 0?["x","y"]:a,o=t.dimValuesMap;this.adjustNames=i,this.xField=r,this.yField=n,this.dimValuesMap=o}return e.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},e.prototype.getAdjustRange=function(t,r,n){var a=this.yField,i=n.indexOf(r),o=n.length,s,l;return!a&&this.isAdjust("y")?(s=0,l=1):o>1?(s=n[i===0?0:i-1],l=n[i===o-1?o-1:i+1],i!==0?s+=(r-s)/2:s-=(l-r)/2,i!==o-1?l-=(l-r)/2:l+=(r-n[o-2])/2):(s=r===0?0:r-.5,l=r===0?1:r+.5),{pre:s,next:l}},e.prototype.adjustData=function(t,r){var n=this,a=this.getDimValues(r);Ht(t,function(i,o){Ht(a,function(s,l){n.adjustDim(l,s,i,o)})})},e.prototype.groupData=function(t,r){return Ht(t,function(n){n[r]===void 0&&(n[r]=eoe)}),c2(t,r)},e.prototype.adjustDim=function(t,r,n,a){},e.prototype.getDimValues=function(t){var r=this,n=r.xField,a=r.yField,i=pa({},this.dimValuesMap),o=[];if(n&&this.isAdjust("x")&&o.push(n),a&&this.isAdjust("y")&&o.push(a),o.forEach(function(l){i&&i[l]||(i[l]=wU(t,l).sort(function(A,c){return A-c}))}),!a&&this.isAdjust("y")){var s="y";i[s]=[eoe,1]}return i},e}(),_Ie={},NIe=function(e){return _Ie[e.toLowerCase()]},e1=function(e,t){if(NIe(e))throw new Error("Adjust type '"+e+"' existed.");_Ie[e.toLowerCase()]=t};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var B3=function(e,t){return B3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)n.hasOwnProperty(a)&&(r[a]=n[a])},B3(e,t)};function w2(e,t){B3(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var EA=function(){return EA=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},EA.apply(this,arguments)},EBt=function(e){w2(t,e);function t(r){var n=e.call(this,r)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var a=r.marginRatio,i=a===void 0?pBt:a,o=r.dodgeRatio,s=o===void 0?vBt:o,l=r.dodgeBy,A=r.intervalPadding,c=r.dodgePadding,u=r.xDimensionLength,d=r.groupNum,f=r.defaultSize,h=r.maxColumnWidth,g=r.minColumnWidth,p=r.columnWidthRatio,E=r.customOffset;return n.marginRatio=i,n.dodgeRatio=s,n.dodgeBy=l,n.intervalPadding=A,n.dodgePadding=c,n.xDimensionLegenth=u,n.groupNum=d,n.defaultSize=f,n.maxColumnWidth=h,n.minColumnWidth=g,n.columnWidthRatio=p,n.customOffset=E,n}return t.prototype.process=function(r){var n=Ah(r),a=Oy(n),i=this.dodgeBy,o=i?ZMe(a,i):n;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=a,this.adjustData(o,a),this.adjustDataArray=[],this.mergeData=[],n},t.prototype.adjustDim=function(r,n,a,i){var o=this,s=this.customOffset,l=this.getDistribution(r),A=this.groupData(a,r);return Ht(A,function(c,u){var d;n.length===1?d={pre:n[0]-1,next:n[0]+1}:d=o.getAdjustRange(r,parseFloat(u),n),Ht(c,function(f){var h=f[r],g=l[h],p=g.indexOf(i);if(sr(s))f[r]=o.getDodgeOffset(d,p,g.length);else{var E=d.pre,y=d.next;f[r]=Fn(s)?s(f,d):(E+y)/2+s}})}),[]},t.prototype.getDodgeOffset=function(r,n,a){var i=this,o=i.dodgeRatio,s=i.marginRatio,l=i.intervalPadding,A=i.dodgePadding,c=r.pre,u=r.next,d=u-c,f;if(!sr(l)&&sr(A)&&l>=0){var h=this.getIntervalOnlyOffset(a,n);f=c+h}else if(!sr(A)&&sr(l)&&A>=0){var h=this.getDodgeOnlyOffset(a,n);f=c+h}else if(!sr(l)&&!sr(A)&&l>=0&&A>=0){var h=this.getIntervalAndDodgeOffset(a,n);f=c+h}else{var g=d*o/a,p=s*g,h=1/2*(d-a*g-(a-1)*p)+((n+1)*g+n*p)-1/2*g-1/2*d;f=(c+u)/2+h}return f},t.prototype.getIntervalOnlyOffset=function(r,n){var a=this,i=a.defaultSize,o=a.intervalPadding,s=a.xDimensionLegenth,l=a.groupNum,A=a.dodgeRatio,c=a.maxColumnWidth,u=a.minColumnWidth,d=a.columnWidthRatio,f=o/s,h=(1-(l-1)*f)/l*A/(r-1),g=((1-f*(l-1))/l-h*(r-1))/r;if(g=sr(d)?g:1/l/r*d,!sr(c)){var p=c/s;g=Math.min(g,p)}if(!sr(u)){var E=u/s;g=Math.max(g,E)}g=i?i/s:g,h=((1-(l-1)*f)/l-r*g)/(r-1);var y=((1/2+n)*g+n*h+1/2*f)*l-f/2;return y},t.prototype.getDodgeOnlyOffset=function(r,n){var a=this,i=a.defaultSize,o=a.dodgePadding,s=a.xDimensionLegenth,l=a.groupNum,A=a.marginRatio,c=a.maxColumnWidth,u=a.minColumnWidth,d=a.columnWidthRatio,f=o/s,h=1*A/(l-1),g=((1-h*(l-1))/l-f*(r-1))/r;if(g=d?1/l/r*d:g,!sr(c)){var p=c/s;g=Math.min(g,p)}if(!sr(u)){var E=u/s;g=Math.max(g,E)}g=i?i/s:g,h=(1-(g*r+f*(r-1))*l)/(l-1);var y=((1/2+n)*g+n*f+1/2*h)*l-h/2;return y},t.prototype.getIntervalAndDodgeOffset=function(r,n){var a=this,i=a.intervalPadding,o=a.dodgePadding,s=a.xDimensionLegenth,l=a.groupNum,A=i/s,c=o/s,u=((1-A*(l-1))/l-c*(r-1))/r,d=((1/2+n)*u+n*c+1/2*A)*l-A/2;return d},t.prototype.getDistribution=function(r){var n=this.adjustDataArray,a=this.cacheMap,i=a[r];return i||(i={},Ht(n,function(o,s){var l=wU(o,r);l.length||l.push(0),Ht(l,function(A){i[A]||(i[A]=[]),i[A].push(s)})}),a[r]=i),i},t}($C);function yBt(e,t){return(t-e)*Math.random()+e}var CBt=function(e){w2(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.process=function(r){var n=Ah(r),a=Oy(n);return this.adjustData(n,a),n},t.prototype.adjustDim=function(r,n,a){var i=this,o=this.groupData(a,r);return Ht(o,function(s,l){return i.adjustGroup(s,r,parseFloat(l),n)})},t.prototype.getAdjustOffset=function(r){var n=r.pre,a=r.next,i=(a-n)*mBt;return yBt(n+i,a-i)},t.prototype.adjustGroup=function(r,n,a,i){var o=this,s=this.getAdjustRange(n,a,i);return Ht(r,function(l){l[n]=o.getAdjustOffset(s)}),r},t}($C),w8=lxe,wBt=function(e){w2(t,e);function t(r){var n=e.call(this,r)||this,a=r.adjustNames,i=a===void 0?["y"]:a,o=r.height,s=o===void 0?NaN:o,l=r.size,A=l===void 0?10:l,c=r.reverseOrder,u=c===void 0?!1:c;return n.adjustNames=i,n.height=s,n.size=A,n.reverseOrder=u,n}return t.prototype.process=function(r){var n=this,a=n.yField,i=n.reverseOrder,o=a?this.processStack(r):this.processOneDimStack(r);return i?this.reverse(o):o},t.prototype.reverse=function(r){return r.slice(0).reverse()},t.prototype.processStack=function(r){var n=this,a=n.xField,i=n.yField,o=n.reverseOrder,s=o?this.reverse(r):r,l=new w8,A=new w8;return s.map(function(c){return c.map(function(u){var d,f=cn(u,a,0),h=cn(u,[i]),g=f.toString();if(h=En(h)?h[1]:h,!sr(h)){var p=h>=0?l:A;p.has(g)||p.set(g,0);var E=p.get(g),y=h+E;return p.set(g,y),EA(EA({},u),(d={},d[i]=[E,y],d))}return u})})},t.prototype.processOneDimStack=function(r){var n=this,a=this,i=a.xField,o=a.height,s=a.reverseOrder,l="y",A=s?this.reverse(r):r,c=new w8;return A.map(function(u){return u.map(function(d){var f,h=n.size,g=d[i],p=h*2/o;c.has(g)||c.set(g,p/2);var E=c.get(g);return c.set(g,E+p),EA(EA({},d),(f={},f[l]=E,f))})})},t}($C),BBt=function(e){w2(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.process=function(r){var n=Oy(r),a=this,i=a.xField,o=a.yField,s=this.getXValuesMaxMap(n),l=Math.max.apply(Math,Object.keys(s).map(function(A){return s[A]}));return mA(r,function(A){return mA(A,function(c){var u,d,f=c[o],h=c[i];if(En(f)){var g=(l-s[h])/2;return EA(EA({},c),(u={},u[o]=mA(f,function(E){return g+E}),u))}var p=(l-f)/2;return EA(EA({},c),(d={},d[o]=[p,f+p],d))})})},t.prototype.getXValuesMaxMap=function(r){var n=this,a=this,i=a.xField,o=a.yField,s=c2(r,function(l){return l[i]});return ixe(s,function(l){return n.getDimMaxValue(l,o)})},t.prototype.getDimMaxValue=function(r,n){var a=mA(r,function(o){return cn(o,n,[])}),i=Oy(a);return Math.max.apply(Math,i)},t}($C);e1("Dodge",EBt);e1("Jitter",CBt);e1("Stack",wBt);e1("Symmetric",BBt);const MBt=Object.freeze(Object.defineProperty({__proto__:null,Adjust:$C,getAdjust:NIe,registerAdjust:e1},Symbol.toStringTag,{value:"Module"})),kIe=Un(MBt);var toe=function(e,t){return jn(t)?t:e.invert(e.scale(t))},rm=function(){function e(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return e.prototype.mapping=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=r.map(function(i,o){return t._toOriginParam(i,t.scales[o])});return this.callback.apply(this,a)},e.prototype.getLinearValue=function(t){var r=this.values.length-1,n=Math.floor(r*t),a=r*t-n,i=this.values[n],o=n===r?i:this.values[n+1];return i+(o-i)*a},e.prototype.getNames=function(){for(var t=this.scales,r=this.names,n=Math.min(t.length,r.length),a=[],i=0;i<n;i+=1)a.push(r[i]);return a},e.prototype.getFields=function(){return this.scales.map(function(t){return t.field})},e.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},e.prototype.defaultCallback=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===0?this.values:r.map(function(a,i){var o=t.scales[i];return o.type==="identity"?o.values[0]:t._getAttributeValue(o,a)})},e.prototype._parseCfg=function(t){var r=this,n=t.type,a=n===void 0?"base":n,i=t.names,o=i===void 0?[]:i,s=t.scales,l=s===void 0?[]:s,A=t.values,c=A===void 0?[]:A,u=t.callback;this.type=a,this.scales=l,this.values=c,this.names=o,this.callback=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];if(u){var h=u.apply(void 0,d);if(!sr(h))return[h]}return r.defaultCallback.apply(r,d)}},e.prototype._getAttributeValue=function(t,r){if(t.isCategory&&!this.linear){var n=t.translate(r);return this.values[n%this.values.length]}var a=t.scale(r);return this.getLinearValue(a)},e.prototype._toOriginParam=function(t,r){return r.isLinear?t:En(t)?t.map(function(n){return toe(r,n)}):toe(r,t)},e}(),xBt=/rgba?\(([\s.,0-9]+)\)/,IBt=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,bBt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,SBt=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,RBt=function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)},TBt=function(){var e=document.createElement("i");return e.title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),e},B8=function(e,t,r,n){return e[n]+(t[n]-e[n])*r};function PIe(e){return"#"+M8(e[0])+M8(e[1])+M8(e[2])}var OIe=function(e){return[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)]},M8=function(e){var t=Math.round(e).toString(16);return t.length===1?"0"+t:t},QBt=function(e,t){var r=isNaN(Number(t))||t<0?0:t>1?1:Number(t),n=e.length-1,a=Math.floor(n*r),i=n*r-a,o=e[a],s=a===n?o:e[a+1];return PIe([B8(o,s,i,0),B8(o,s,i,1),B8(o,s,i,2)])},zB,zIe=function(e){if(e[0]==="#"&&e.length===7)return e;zB||(zB=TBt()),zB.style.color=e;var t=document.defaultView.getComputedStyle(zB,"").getPropertyValue("color"),r=xBt.exec(t),n=r[1].split(/\s*,\s*/).map(function(a){return Number(a)});return t=PIe(n),t},DBt=function(e){var t=jn(e)?e.split("-"):e,r=mA(t,function(n){return OIe(n.indexOf("#")===-1?zIe(n):n)});return function(n){return QBt(r,n)}},FBt=function(e){if(RBt(e)){var t,r=void 0;if(e[0]==="l"){var n=IBt.exec(e),a=+n[1]+90;r=n[2],t="linear-gradient("+a+"deg, "}else if(e[0]==="r"){t="radial-gradient(";var n=bBt.exec(e);r=n[4]}var i=r.match(SBt);return Ht(i,function(o,s){var l=o.split(":");t+=l[1]+" "+l[0]*100+"%",s!==i.length-1&&(t+=", ")}),t+=")",t}return e};const jIe={rgb2arr:OIe,gradient:DBt,toRGB:RU(zIe),toCSSGradient:FBt};var YIe=function(e){Cr(t,e);function t(r){var n=e.call(this,r)||this;return n.type="color",n.names=["color"],jn(n.values)&&(n.linear=!0),n.gradient=jIe.gradient(n.values),n}return t.prototype.getLinearValue=function(r){return this.gradient(r)},t}(rm),LIe=function(e){Cr(t,e);function t(r){var n=e.call(this,r)||this;return n.type="opacity",n.names=["opacity"],n}return t}(rm),UIe=function(e){Cr(t,e);function t(r){var n=e.call(this,r)||this;return n.names=["x","y"],n.type="position",n}return t.prototype.mapping=function(r,n){var a=this.scales,i=a[0],o=a[1];return sr(r)||sr(n)?[]:[En(r)?r.map(function(s){return i.scale(s)}):i.scale(r),En(n)?n.map(function(s){return o.scale(s)}):o.scale(n)]},t}(rm),HIe=function(e){Cr(t,e);function t(r){var n=e.call(this,r)||this;return n.type="shape",n.names=["shape"],n}return t.prototype.getLinearValue=function(r){var n=Math.round((this.values.length-1)*r);return this.values[n]},t}(rm),GIe=function(e){Cr(t,e);function t(r){var n=e.call(this,r)||this;return n.type="size",n.names=["size"],n}return t}(rm),KIe={};function VIe(e){return KIe[e]}function Ul(e,t){KIe[e]=t}var t1=function(){function e(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return e.prototype.translate=function(t){return t},e.prototype.change=function(t){pa(this.__cfg__,t),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var t=this;return mA(this.ticks,function(r,n){return ns(r)?r:{text:t.getText(r,n),tickValue:r,value:t.scale(r)}})},e.prototype.getText=function(t,r){var n=this.formatter,a=n?n(t,r):t;return sr(a)||!Fn(a.toString)?"":a.toString()},e.prototype.getConfig=function(t){return this.__cfg__[t]},e.prototype.init=function(){pa(this,this.__cfg__),this.setDomain(),axe(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var t=this.tickMethod,r=[];if(jn(t)){var n=VIe(t);if(!n)throw new Error("There is no method to to calculate ticks!");r=n(this)}else Fn(t)&&(r=t(this));return r},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(t,r,n){return $n(t)?(t-r)/(n-r):NaN},e.prototype.calcValue=function(t,r,n){return r+t*(n-r)},e}(),r1=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cat",r.isCategory=!0,r}return t.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var r=0;r<this.values.length;r++)this.translateIndexMap.set(this.values[r],r)}},t.prototype.translate=function(r){this.buildIndexMap();var n=this.translateIndexMap.get(r);return n===void 0&&(n=$n(r)?r:NaN),n},t.prototype.scale=function(r){var n=this.translate(r),a=this.calcPercent(n,this.min,this.max);return this.calcValue(a,this.rangeMin(),this.rangeMax())},t.prototype.invert=function(r){var n=this.max-this.min,a=this.calcPercent(r,this.rangeMin(),this.rangeMax()),i=Math.round(n*a)+this.min;return i<this.min||i>this.max?NaN:this.values[i]},t.prototype.getText=function(r){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];var i=r;return $n(r)&&!this.values.includes(r)&&(i=this.values[i]),e.prototype.getText.apply(this,lh([i],n))},t.prototype.initCfg=function(){this.tickMethod="cat"},t.prototype.setDomain=function(){if(sr(this.getConfig("min"))&&(this.min=0),sr(this.getConfig("max"))){var r=this.values.length;this.max=r>1?r-1:r}this.translateIndexMap&&(this.translateIndexMap=void 0)},t}(t1),JIe=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,bu="\\d\\d?",hu="\\d\\d",_Bt="\\d{3}",NBt="\\d{4}",ay="[^\\s]+",WIe=/\[([^]*?)\]/gm;function XIe(e,t){for(var r=[],n=0,a=e.length;n<a;n++)r.push(e[n].substr(0,t));return r}var roe=function(e){return function(t,r){var n=r[e].map(function(i){return i.toLowerCase()}),a=n.indexOf(t.toLowerCase());return a>-1?a:null}};function Ad(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,a=t;n<a.length;n++){var i=a[n];for(var o in i)e[o]=i[o]}return e}var qIe=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ZIe=["January","February","March","April","May","June","July","August","September","October","November","December"],kBt=XIe(ZIe,3),PBt=XIe(qIe,3),XU={dayNamesShort:PBt,dayNames:qIe,monthNamesShort:kBt,monthNames:ZIe,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},hS=Ad({},XU),$Ie=function(e){return hS=Ad(hS,e)},noe=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},mo=function(e,t){for(t===void 0&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},OBt={D:function(e){return String(e.getDate())},DD:function(e){return mo(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return mo(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return mo(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return mo(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return mo(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return mo(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return mo(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return mo(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return mo(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return mo(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return mo(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+mo(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+mo(Math.floor(Math.abs(t)/60),2)+":"+mo(Math.abs(t)%60,2)}},aoe=function(e){return+e-1},ioe=[null,bu],ooe=[null,ay],soe=["isPm",ay,function(e,t){var r=e.toLowerCase();return r===t.amPm[0]?0:r===t.amPm[1]?1:null}],loe=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var r=+t[1]*60+parseInt(t[2],10);return t[0]==="+"?r:-r}return 0}],zBt={D:["day",bu],DD:["day",hu],Do:["day",bu+ay,function(e){return parseInt(e,10)}],M:["month",bu,aoe],MM:["month",hu,aoe],YY:["year",hu,function(e){var t=new Date,r=+(""+t.getFullYear()).substr(0,2);return+(""+(+e>68?r-1:r)+e)}],h:["hour",bu,void 0,"isPm"],hh:["hour",hu,void 0,"isPm"],H:["hour",bu],HH:["hour",hu],m:["minute",bu],mm:["minute",hu],s:["second",bu],ss:["second",hu],YYYY:["year",NBt],S:["millisecond","\\d",function(e){return+e*100}],SS:["millisecond",hu,function(e){return+e*10}],SSS:["millisecond",_Bt],d:ioe,dd:ioe,ddd:ooe,dddd:ooe,MMM:["month",ay,roe("monthNamesShort")],MMMM:["month",ay,roe("monthNames")],a:soe,A:soe,ZZ:loe,Z:loe},gS={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},ebe=function(e){return Ad(gS,e)},tbe=function(e,t,r){if(t===void 0&&(t=gS.default),r===void 0&&(r={}),typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");t=gS[t]||t;var n=[];t=t.replace(WIe,function(i,o){return n.push(o),"@@@"});var a=Ad(Ad({},hS),r);return t=t.replace(JIe,function(i){return OBt[i](e,a)}),t.replace(/@@@/g,function(){return n.shift()})};function rbe(e,t,r){if(r===void 0&&(r={}),typeof t!="string")throw new Error("Invalid format in fecha parse");if(t=gS[t]||t,e.length>1e3)return null;var n=new Date,a={year:n.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],o=[],s=t.replace(WIe,function(w,B){return o.push(noe(B)),"@@@"}),l={},A={};s=noe(s).replace(JIe,function(w){var B=zBt[w],M=B[0],I=B[1],S=B[3];if(l[M])throw new Error("Invalid format. "+M+" specified twice in format");return l[M]=!0,S&&(A[S]=!0),i.push(B),"("+I+")"}),Object.keys(A).forEach(function(w){if(!l[w])throw new Error("Invalid format. "+w+" is required in specified format")}),s=s.replace(/@@@/g,function(){return o.shift()});var c=e.match(new RegExp(s,"i"));if(!c)return null;for(var u=Ad(Ad({},hS),r),d=1;d<c.length;d++){var f=i[d-1],h=f[0],g=f[2],p=g?g(c[d],u):+c[d];if(p==null)return null;a[h]=p}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var E;if(a.timezoneOffset==null){E=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var y=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],d=0,C=y.length;d<C;d++)if(l[y[d][0]]&&a[y[d][0]]!==E[y[d][1]]())return null}else if(E=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return E}var nbe={format:tbe,parse:rbe,defaultI18n:XU,setGlobalDateI18n:$Ie,setGlobalDateMasks:ebe};const jBt=Object.freeze(Object.defineProperty({__proto__:null,assign:Ad,default:nbe,defaultI18n:XU,format:tbe,parse:rbe,setGlobalDateI18n:$Ie,setGlobalDateMasks:ebe},Symbol.toStringTag,{value:"Module"}));function YBt(e){return function(t,r,n,a){for(var i=sr(n)?0:n,o=sr(a)?t.length:a;i<o;){var s=i+o>>>1;e(t[s])>r?o=s:i=s+1}return i}}var Aoe="format";function abe(e,t){var r=jBt[Aoe]||nbe[Aoe];return r(e,t)}function pS(e){return jn(e)&&(e.indexOf("T")>0?e=new Date(e).getTime():e=new Date(e.replace(/-/gi,"/")).getTime()),bU(e)&&(e=e.getTime()),e}var vl=1e3,Uf=60*vl,Hf=60*Uf,xc=24*Hf,iy=xc*31,coe=xc*365,QE=[["HH:mm:ss",vl],["HH:mm:ss",vl*10],["HH:mm:ss",vl*30],["HH:mm",Uf],["HH:mm",Uf*10],["HH:mm",Uf*30],["HH",Hf],["HH",Hf*6],["HH",Hf*12],["YYYY-MM-DD",xc],["YYYY-MM-DD",xc*4],["YYYY-WW",xc*7],["YYYY-MM",iy],["YYYY-MM",iy*4],["YYYY-MM",iy*6],["YYYY",xc*380]];function LBt(e,t,r){var n=(t-e)/r,a=YBt(function(o){return o[1]})(QE,n)-1,i=QE[a];return a<0?i=QE[0]:a>=QE.length&&(i=Ns(QE)),i}var ibe=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="timeCat",r}return t.prototype.translate=function(r){r=pS(r);var n=this.values.indexOf(r);return n===-1&&($n(r)&&r<this.values.length?n=r:n=NaN),n},t.prototype.getText=function(r,n){var a=this.translate(r);if(a>-1){var i=this.values[a],o=this.formatter;return i=o?o(i,n):abe(i,this.mask),i}return r},t.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},t.prototype.setDomain=function(){var r=this.values;Ht(r,function(n,a){r[a]=pS(n)}),r.sort(function(n,a){return n-a}),e.prototype.setDomain.call(this)},t}(r1),B2=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.isContinuous=!0,r}return t.prototype.scale=function(r){if(sr(r))return NaN;var n=this.rangeMin(),a=this.rangeMax(),i=this.max,o=this.min;if(i===o)return n;var s=this.getScalePercent(r);return n+s*(a-n)},t.prototype.init=function(){e.prototype.init.call(this);var r=this.ticks,n=wA(r),a=Ns(r);n<this.min&&(this.min=n),a>this.max&&(this.max=a),sr(this.minLimit)||(this.min=n),sr(this.maxLimit)||(this.max=a)},t.prototype.setDomain=function(){var r=KMe(this.values),n=r.min,a=r.max;sr(this.min)&&(this.min=n),sr(this.max)&&(this.max=a),this.min>this.max&&(this.min=n,this.max=a)},t.prototype.calculateTicks=function(){var r=this,n=e.prototype.calculateTicks.call(this);return this.nice||(n=$v(n,function(a){return a>=r.min&&a<=r.max})),n},t.prototype.getScalePercent=function(r){var n=this.max,a=this.min;return(r-a)/(n-a)},t.prototype.getInvertPercent=function(r){return(r-this.rangeMin())/(this.rangeMax()-this.rangeMin())},t}(t1),n1=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="linear",r.isLinear=!0,r}return t.prototype.invert=function(r){var n=this.getInvertPercent(r);return this.min+n*(this.max-this.min)},t.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},t}(B2);function _u(e,t){var r=Math.E,n;return t>=0?n=Math.pow(r,Math.log(t)/e):n=Math.pow(r,Math.log(-t)/e)*-1,n}function Ts(e,t){return e===1?1:Math.log(t)/Math.log(e)}function obe(e,t,r){sr(r)&&(r=Math.max.apply(null,e));var n=r;return Ht(e,function(a){a>0&&a<n&&(n=a)}),n===r&&(n=r/t),n>1&&(n=1),n}var sbe=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r}return t.prototype.invert=function(r){var n=this.base,a=Ts(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s,l=this.positiveMin;if(l){if(r===0)return 0;s=Ts(n,l/n);var A=1/(a-s)*o;if(r<A)return r/A*l}else s=Ts(n,this.min);var c=(r-i)/o,u=c*(a-s)+s;return Math.pow(n,u)},t.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},t.prototype.setDomain=function(){e.prototype.setDomain.call(this);var r=this.min;if(r<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");r===0&&(this.positiveMin=obe(this.values,this.base,this.max))},t.prototype.getScalePercent=function(r){var n=this.max,a=this.min;if(n===a||r<=0)return 0;var i=this.base,o=this.positiveMin;o&&(a=o*1/i);var s;return r<o?s=r/o/(Ts(i,n)-Ts(i,a)):s=(Ts(i,r)-Ts(i,a))/(Ts(i,n)-Ts(i,a)),s},t}(B2),lbe=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="pow",r}return t.prototype.invert=function(r){var n=this.getInvertPercent(r),a=this.exponent,i=_u(a,this.max),o=_u(a,this.min),s=n*(i-o)+o,l=s>=0?1:-1;return Math.pow(s,a)*l},t.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},t.prototype.getScalePercent=function(r){var n=this.max,a=this.min;if(n===a)return 0;var i=this.exponent,o=(_u(i,r)-_u(i,a))/(_u(i,n)-_u(i,a));return o},t}(B2),Abe=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="time",r}return t.prototype.getText=function(r,n){var a=this.translate(r),i=this.formatter;return i?i(a,n):abe(a,this.mask)},t.prototype.scale=function(r){var n=r;return(jn(n)||bU(n))&&(n=this.translate(n)),e.prototype.scale.call(this,n)},t.prototype.translate=function(r){return pS(r)},t.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},t.prototype.setDomain=function(){var r=this.values,n=this.getConfig("min"),a=this.getConfig("max");if((!sr(n)||!$n(n))&&(this.min=this.translate(this.min)),(!sr(a)||!$n(a))&&(this.max=this.translate(this.max)),r&&r.length){var i=[],o=1/0,s=o,l=0;Ht(r,function(A){var c=pS(A);if(isNaN(c))throw new TypeError("Invalid Time: "+A+" in time scale!");o>c?(s=o,o=c):s>c&&(s=c),l<c&&(l=c),i.push(c)}),r.length>1&&(this.minTickInterval=s-o),sr(n)&&(this.min=o),sr(a)&&(this.max=l)}},t}(n1),qU=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="quantize",r}return t.prototype.invert=function(r){var n=this.ticks,a=n.length,i=this.getInvertPercent(r),o=Math.floor(i*(a-1));if(o>=a-1)return Ns(n);if(o<0)return wA(n);var s=n[o],l=n[o+1],A=o/(a-1),c=(o+1)/(a-1);return s+(i-A)/(c-A)*(l-s)},t.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},t.prototype.calculateTicks=function(){var r=e.prototype.calculateTicks.call(this);return this.nice||(Ns(r)!==this.max&&r.push(this.max),wA(r)!==this.min&&r.unshift(this.min)),r},t.prototype.getScalePercent=function(r){var n=this.ticks;if(r<wA(n))return 0;if(r>Ns(n))return 1;var a=0;return Ht(n,function(i,o){if(r>=i)a=o;else return!1}),a/(n.length-1)},t}(B2),cbe=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="quantile",r}return t.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},t}(qU),ube={};function dbe(e){return ube[e]}function Hl(e,t){if(dbe(e))throw new Error("type '"+e+"' existed.");ube[e]=t}var fbe=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="identity",r.isIdentity=!0,r}return t.prototype.calculateTicks=function(){return this.values},t.prototype.scale=function(r){return this.values[0]!==r&&$n(r)?r:this.range[0]},t.prototype.invert=function(r){var n=this.range;return r<n[0]||r>n[1]?NaN:this.values[0]},t}(t1);function hbe(e){var t=e.values,r=e.tickInterval,n=e.tickCount,a=e.showLast;if($n(r)){var i=$v(t,function(h,g){return g%r===0}),o=Ns(t);return a&&Ns(i)!==o&&i.push(o),i}var s=t.length,l=e.min,A=e.max;if(sr(l)&&(l=0),sr(A)&&(A=t.length-1),!$n(n)||n>=s)return t.slice(l,A+1);if(n<=0||A<=0)return[];for(var c=n===1?s:Math.floor(s/(n-1)),u=[],d=l,f=0;f<n&&!(d>=A);f++)d=Math.min(l+f*c,A),f===n-1&&a?u.push(t[A]):u.push(t[d]);return u}function UBt(e){var t=e.min,r=e.max,n=e.nice,a=e.tickCount,i=new HBt;return i.domain([t,r]),n&&i.nice(a),i.ticks(a)}var x8=5,uoe=Math.sqrt(50),doe=Math.sqrt(10),foe=Math.sqrt(2),HBt=function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},e.prototype.nice=function(t){var r,n;t===void 0&&(t=x8);var a=this._domain.slice(),i=0,o=this._domain.length-1,s=this._domain[i],l=this._domain[o],A;return l<s&&(r=[l,s],s=r[0],l=r[1],n=[o,i],i=n[0],o=n[1]),A=NI(s,l,t),A>0?(s=Math.floor(s/A)*A,l=Math.ceil(l/A)*A,A=NI(s,l,t)):A<0&&(s=Math.ceil(s*A)/A,l=Math.floor(l*A)/A,A=NI(s,l,t)),A>0?(a[i]=Math.floor(s/A)*A,a[o]=Math.ceil(l/A)*A,this.domain(a)):A<0&&(a[i]=Math.ceil(s*A)/A,a[o]=Math.floor(l*A)/A,this.domain(a)),this},e.prototype.ticks=function(t){return t===void 0&&(t=x8),GBt(this._domain[0],this._domain[this._domain.length-1],t||x8)},e}();function GBt(e,t,r){var n,a=-1,i,o,s;if(t=+t,e=+e,r=+r,e===t&&r>0)return[e];if((n=t<e)&&(i=e,e=t,t=i),(s=NI(e,t,r))===0||!isFinite(s))return[];if(s>0)for(e=Math.ceil(e/s),t=Math.floor(t/s),o=new Array(i=Math.ceil(t-e+1));++a<i;)o[a]=(e+a)*s;else for(e=Math.floor(e*s),t=Math.ceil(t*s),o=new Array(i=Math.ceil(e-t+1));++a<i;)o[a]=(e-a)/s;return n&&o.reverse(),o}function NI(e,t,r){var n=(t-e)/Math.max(0,r),a=Math.floor(Math.log(n)/Math.LN10),i=n/Math.pow(10,a);return a>=0?(i>=uoe?10:i>=doe?5:i>=foe?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(i>=uoe?10:i>=doe?5:i>=foe?2:1)}function hoe(e,t,r){var n;return r==="ceil"?n=Math.ceil(e/t):r==="floor"?n=Math.floor(e/t):n=Math.round(e/t),n*t}function ZU(e,t,r){var n=hoe(e,r,"floor"),a=hoe(t,r,"ceil");n=FI(n,r),a=FI(a,r);for(var i=[],o=Math.max((a-n)/(Math.pow(2,12)-1),r),s=n;s<=a;s=s+o){var l=FI(s,o);i.push(l)}return{min:n,max:a,ticks:i}}function $U(e,t,r){var n,a=e.minLimit,i=e.maxLimit,o=e.min,s=e.max,l=e.tickCount,A=l===void 0?5:l,c=sr(a)?sr(t)?o:t:a,u=sr(i)?sr(r)?s:r:i;if(c>u&&(n=[c,u],u=n[0],c=n[1]),A<=2)return[c,u];for(var d=(u-c)/(A-1),f=[],h=0;h<A;h++)f.push(c+d*h);return f}function KBt(e){var t=e.min,r=e.max,n=e.tickInterval,a=e.minLimit,i=e.maxLimit,o=UBt(e);return!sr(a)||!sr(i)?$U(e,wA(o),Ns(o)):n?ZU(t,r,n).ticks:o}function gf(e){return Math.abs(e)<1e-15?e:parseFloat(e.toFixed(15))}var VBt=[1,5,2,2.5,4,3],goe=Number.EPSILON*100;function JBt(e,t){return(e%t+t)%t}function WBt(e){return Math.round(e*1e12)/1e12}function XBt(e,t,r,n,a,i){var o=WC(t),s=TU(t,e),l=0,A=JBt(n,i);return(A<goe||i-A<goe)&&n<=0&&a>=0&&(l=1),1-s/(o-1)-r+l}function qBt(e,t,r){var n=WC(t),a=TU(t,e),i=1;return 1-a/(n-1)-r+i}function ZBt(e,t,r,n,a,i){var o=(e-1)/(i-a),s=(t-1)/(Math.max(i,n)-Math.min(r,a));return 2-Math.max(o/s,s/o)}function $Bt(e,t){return e>=t?2-(e-1)/(t-1):1}function eMt(e,t,r,n){var a=t-e;return 1-.5*(Math.pow(t-n,2)+Math.pow(e-r,2))/Math.pow(.1*a,2)}function tMt(e,t,r){var n=t-e;if(r>n){var a=(r-n)/2;return 1-Math.pow(a,2)/Math.pow(.1*n,2)}return 1}function rMt(){return 1}function nMt(e,t,r,n,a,i){r===void 0&&(r=5),n===void 0&&(n=!0),a===void 0&&(a=VBt),i===void 0&&(i=[.25,.2,.5,.05]);var o=r<0?0:Math.round(r);if(Number.isNaN(e)||Number.isNaN(t)||typeof e!="number"||typeof t!="number"||!o)return{min:0,max:0,ticks:[]};if(t-e<1e-15||o===1)return{min:e,max:t,ticks:[e]};if(t-e>1e148){var s=r||5,l=(t-e)/s;return{min:e,max:t,ticks:Array(s).fill(null).map(function(L,K){return gf(e+l*K)})}}for(var A={score:-2,lmin:0,lmax:0,lstep:0},c=1;c<1/0;){for(var u=0;u<a.length;u+=1){var d=a[u],f=qBt(d,a,c);if(i[0]*f+i[1]+i[2]+i[3]<A.score){c=1/0;break}for(var h=2;h<1/0;){var g=$Bt(h,o);if(i[0]*f+i[1]+i[2]*g+i[3]<A.score)break;for(var p=(t-e)/(h+1)/c/d,E=Math.ceil(Math.log10(p));E<1/0;){var y=c*d*Math.pow(10,E),C=tMt(e,t,y*(h-1));if(i[0]*f+i[1]*C+i[2]*g+i[3]<A.score)break;var w=Math.floor(t/y)*c-(h-1)*c,B=Math.ceil(e/y)*c;if(w<=B)for(var s=B-w,M=0;M<=s;M+=1){var I=w+M,S=I*(y/c),R=S+y*(h-1),b=y,Q=XBt(d,a,c,S,R,b),D=eMt(e,t,S,R),F=ZBt(h,o,e,t,S,R),N=rMt(),k=i[0]*Q+i[1]*D+i[2]*F+i[3]*N;k>A.score&&(!n||S<=e&&R>=t)&&(A.lmin=S,A.lmax=R,A.lstep=b,A.score=k)}E+=1}h+=1}}c+=1}var O=gf(A.lmax),P=gf(A.lmin),z=gf(A.lstep),j=Math.floor(WBt((O-P)/z))+1,V=new Array(j);V[0]=gf(P);for(var u=1;u<j;u++)V[u]=gf(V[u-1]+z);return{min:Math.min(e,wA(V)),max:Math.max(t,Ns(V)),ticks:V}}function aMt(e){var t=e.min,r=e.max,n=e.tickCount,a=e.nice,i=e.tickInterval,o=e.minLimit,s=e.maxLimit,l=nMt(t,r,n,a).ticks;return!sr(o)||!sr(s)?$U(e,wA(l),Ns(l)):i?ZU(t,r,i).ticks:l}function iMt(e){var t=e.base,r=e.tickCount,n=e.min,a=e.max,i=e.values,o,s=Ts(t,a);if(n>0)o=Math.floor(Ts(t,n));else{var l=obe(i,t,a);o=Math.floor(Ts(t,l))}for(var A=s-o,c=Math.ceil(A/r),u=[],d=o;d<s+c;d=d+c)u.push(Math.pow(t,d));return n<=0&&u.unshift(0),u}function gbe(e,t,r){if(r===void 0&&(r=5),e===t)return{max:t,min:e,ticks:[e]};var n=r<0?0:Math.round(r);if(n===0)return{max:t,min:e,ticks:[]};var a=1.5,i=.5+1.5*a,o=t-e,s=o/n,l=Math.pow(10,Math.floor(Math.log10(s))),A=l;2*l-s<a*(s-A)&&(A=2*l,5*l-s<i*(s-A)&&(A=5*l,10*l-s<a*(s-A)&&(A=10*l)));for(var c=Math.ceil(t/A),u=Math.floor(e/A),d=Math.max(c*A,t),f=Math.min(u*A,e),h=Math.floor((d-f)/A)+1,g=new Array(h),p=0;p<h;p++)g[p]=gf(f+p*A);return{min:f,max:d,ticks:g}}function oMt(e){var t=e.exponent,r=e.tickCount,n=Math.ceil(_u(t,e.max)),a=Math.floor(_u(t,e.min)),i=gbe(a,n,r).ticks;return i.map(function(o){var s=o>=0?1:-1;return Math.pow(o,t)*s})}function sMt(e,t){var r=e.length*t;return t===1?e[e.length-1]:t===0?e[0]:r%1!==0?e[Math.ceil(r)-1]:e.length%2===0?(e[r-1]+e[r])/2:e[r]}function lMt(e){var t=e.tickCount,r=e.values;if(!r||!r.length)return[];for(var n=r.slice().sort(function(s,l){return s-l}),a=[],i=0;i<t;i++){var o=i/(t-1);a.push(sMt(n,o))}return a}function AMt(e){var t=e.min,r=e.max,n=e.tickCount,a=e.tickInterval,i=e.minLimit,o=e.maxLimit,s=gbe(t,r,n).ticks;return!sr(i)||!sr(o)?$U(e,wA(s),Ns(s)):a?ZU(t,r,a).ticks:s}function cMt(e){var t=e.min,r=e.max,n=e.minTickInterval,a=e.tickInterval,i=e.tickCount;if(a)i=Math.ceil((r-t)/a);else{a=LBt(t,r,i)[1];var o=(r-t)/a,s=o/i;s>1&&(a=a*Math.ceil(s)),n&&a<n&&(a=n)}a=Math.max(Math.floor((r-t)/(Math.pow(2,12)-1)),a);for(var l=[],A=t;A<r+a;A+=a)l.push(A);return l}function uMt(e){var t=hbe(Tt({showLast:!0},e));return t}function vS(e){return new Date(e).getFullYear()}function dMt(e){return new Date(e,0,1).getTime()}function M3(e){return new Date(e).getMonth()}function fMt(e,t){var r=vS(e),n=vS(t),a=M3(e),i=M3(t);return(n-r)*12+(i-a)%12}function hMt(e,t){return new Date(e,t,1).getTime()}function gMt(e,t){return Math.ceil((t-e)/xc)}function pMt(e,t){return Math.ceil((t-e)/Hf)}function vMt(e,t){return Math.ceil((t-e)/(60*1e3))}function mMt(e){var t=e.min,r=e.max,n=e.minTickInterval,a=e.tickCount,i=e.tickInterval,o=[];i||(i=(r-t)/a,n&&i<n&&(i=n)),i=Math.max(Math.floor((r-t)/(Math.pow(2,12)-1)),i);var s=vS(t);if(i>coe)for(var l=vS(r),A=Math.ceil(i/coe),c=s;c<=l+A;c=c+A)o.push(dMt(c));else if(i>iy)for(var u=Math.ceil(i/iy),d=M3(t),f=fMt(t,r),c=0;c<=f+u;c=c+u)o.push(hMt(s,c+d));else if(i>xc)for(var h=new Date(t),g=h.getFullYear(),p=h.getMonth(),E=h.getDate(),y=Math.ceil(i/xc),C=gMt(t,r),c=0;c<C+y;c=c+y)o.push(new Date(g,p,E+c).getTime());else if(i>Hf)for(var h=new Date(t),g=h.getFullYear(),p=h.getMonth(),y=h.getDate(),w=h.getHours(),B=Math.ceil(i/Hf),M=pMt(t,r),c=0;c<=M+B;c=c+B)o.push(new Date(g,p,y,w+c).getTime());else if(i>Uf)for(var I=vMt(t,r),S=Math.ceil(i/Uf),c=0;c<=I+S;c=c+S)o.push(t+c*Uf);else{var R=i;R<vl&&(R=vl);for(var b=Math.floor(t/vl)*vl,Q=Math.ceil((r-t)/vl),D=Math.ceil(R/vl),c=0;c<Q+D;c=c+D)o.push(b+c*vl)}return o.length>=512&&console.warn("Notice: current ticks length("+o.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+i+") is too small, increase the value to solve the problem!"),o}Ul("cat",hbe);Ul("time-cat",uMt);Ul("wilkinson-extended",aMt);Ul("r-pretty",AMt);Ul("time",cMt);Ul("time-pretty",mMt);Ul("log",iMt);Ul("pow",oMt);Ul("quantile",lMt);Ul("d3-linear",KBt);Hl("cat",r1);Hl("category",r1);Hl("identity",fbe);Hl("linear",n1);Hl("log",sbe);Hl("pow",lbe);Hl("time",Abe);Hl("timeCat",ibe);Hl("quantize",qU);Hl("quantile",cbe);const EMt=Object.freeze(Object.defineProperty({__proto__:null,Category:r1,Identity:fbe,Linear:n1,Log:sbe,Pow:lbe,Quantile:cbe,Quantize:qU,Scale:t1,Time:Abe,TimeCat:ibe,getScale:dbe,getTickMethod:VIe,registerScale:Hl,registerTickMethod:Ul},Symbol.toStringTag,{value:"Module"}));var pbe={},vbe=function(e){return pbe[e.toLowerCase()]},nm=function(e,t){if(vbe(e))throw new Error("Attribute type '".concat(e,"' existed."));pbe[e.toLowerCase()]=t};nm("Color",YIe);nm("Opacity",LIe);nm("Position",UIe);nm("Shape",HIe);nm("Size",GIe);const yMt=Object.freeze(Object.defineProperty({__proto__:null,Attribute:rm,Color:YIe,Opacity:LIe,Position:UIe,Scale:t1,Shape:HIe,Size:GIe,getAttribute:vbe,registerAttribute:nm},Symbol.toStringTag,{value:"Module"})),x3=Un(yMt);var M2=function(){function e(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var r=t.start,n=t.end,a=t.matrix,i=a===void 0?[1,0,0,0,1,0,0,0,1]:a,o=t.isTransposed,s=o===void 0?!1:o;this.start=r,this.end=n,this.matrix=i,this.originalMatrix=iS([],i),this.isTransposed=s}return e.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},e.prototype.update=function(t){pa(this,t),this.initial()},e.prototype.convertDim=function(t,r){var n,a=this[r],i=a.start,o=a.end;return this.isReflect(r)&&(n=[o,i],i=n[0],o=n[1]),i+t*(o-i)},e.prototype.invertDim=function(t,r){var n,a=this[r],i=a.start,o=a.end;return this.isReflect(r)&&(n=[o,i],i=n[0],o=n[1]),(t-i)/(o-i)},e.prototype.applyMatrix=function(t,r,n){n===void 0&&(n=0);var a=this.matrix,i=[t,r,n];return Cv(i,i,a),i},e.prototype.invertMatrix=function(t,r,n){n===void 0&&(n=0);var a=this.matrix,i=Ixe([0,0,0,0,0,0,0,0,0],a),o=[t,r,n];return i&&Cv(o,o,i),o},e.prototype.convert=function(t){var r=this.convertPoint(t),n=r.x,a=r.y,i=this.applyMatrix(n,a,1);return{x:i[0],y:i[1]}},e.prototype.invert=function(t){var r=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:r[0],y:r[1]})},e.prototype.rotate=function(t){var r=this.matrix,n=this.center;return wf(r,r,[-n.x,-n.y]),h2(r,r,t),wf(r,r,[n.x,n.y]),this},e.prototype.reflect=function(t){return t==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},e.prototype.scale=function(t,r){var n=this.matrix,a=this.center;return wf(n,n,[-a.x,-a.y]),NU(n,n,[t,r]),wf(n,n,[a.x,a.y]),this},e.prototype.translate=function(t,r){var n=this.matrix;return wf(n,n,[t,r]),this},e.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},e.prototype.getCenter=function(){return this.center},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRadius=function(){return this.radius},e.prototype.isReflect=function(t){return t==="x"?this.isReflectX:this.isReflectY},e.prototype.resetMatrix=function(t){this.matrix=t||iS([],this.originalMatrix)},e}(),mbe=function(e){Cr(t,e);function t(r){var n=e.call(this,r)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return t.prototype.initial=function(){e.prototype.initial.call(this);var r=this.start,n=this.end;this.x={start:r.x,end:n.x},this.y={start:r.y,end:n.y}},t.prototype.convertPoint=function(r){var n,a=r.x,i=r.y;return this.isTransposed&&(n=[i,a],a=n[0],i=n[1]),{x:this.convertDim(a,"x"),y:this.convertDim(i,"y")}},t.prototype.invertPoint=function(r){var n,a=this.invertDim(r.x,"x"),i=this.invertDim(r.y,"y");return this.isTransposed&&(n=[i,a],a=n[0],i=n[1]),{x:a,y:i}},t}(M2),CMt=function(e){Cr(t,e);function t(r){var n=e.call(this,r)||this;n.isHelix=!0,n.type="helix";var a=r.startAngle,i=a===void 0?1.25*Math.PI:a,o=r.endAngle,s=o===void 0?7.25*Math.PI:o,l=r.innerRadius,A=l===void 0?0:l,c=r.radius;return n.startAngle=i,n.endAngle=s,n.innerRadius=A,n.radius=c,n.initial(),n}return t.prototype.initial=function(){e.prototype.initial.call(this);var r=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n=n*this.radius),this.d=Math.floor(n*(1-this.innerRadius)/r),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+this.d*.99}},t.prototype.convertPoint=function(r){var n,a=r.x,i=r.y;this.isTransposed&&(n=[i,a],a=n[0],i=n[1]);var o=this.convertDim(a,"x"),s=this.a*o,l=this.convertDim(i,"y");return{x:this.center.x+Math.cos(o)*(s+l),y:this.center.y+Math.sin(o)*(s+l)}},t.prototype.invertPoint=function(r){var n,a=this.d+this.y.start,i=FU([0,0],[r.x,r.y],[this.center.x,this.center.y]),o=g2(i,[1,0],!0),s=o*this.a;Lu(i)<s&&(s=Lu(i));var l=Math.floor((Lu(i)-s)/a);o=2*l*Math.PI+o;var A=this.a*o,c=Lu(i)-A;c=BA(c,0)?0:c;var u=this.invertDim(o,"x"),d=this.invertDim(c,"y");return u=BA(u,0)?0:u,d=BA(d,0)?0:d,this.isTransposed&&(n=[d,u],u=n[0],d=n[1]),{x:u,y:d}},t}(M2),wMt=function(e){Cr(t,e);function t(r){var n=e.call(this,r)||this;n.isPolar=!0,n.type="polar";var a=r.startAngle,i=a===void 0?-Math.PI/2:a,o=r.endAngle,s=o===void 0?Math.PI*3/2:o,l=r.innerRadius,A=l===void 0?0:l,c=r.radius;return n.startAngle=i,n.endAngle=s,n.innerRadius=A,n.radius=c,n.initial(),n}return t.prototype.initial=function(){for(e.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=Math.PI*2;var r=this.getOneBox(),n=r.maxX-r.minX,a=r.maxY-r.minY,i=Math.abs(r.minX)/n,o=Math.abs(r.minY)/a,s;this.height/a>this.width/n?(s=this.width/n,this.circleCenter={x:this.center.x-(.5-i)*this.width,y:this.center.y-(.5-o)*s*a}):(s=this.height/a,this.circleCenter={x:this.center.x-(.5-i)*s*n,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=s*this.radius:(this.radius<=0||this.radius>s)&&(this.polarRadius=s):this.polarRadius=s,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},t.prototype.getRadius=function(){return this.polarRadius},t.prototype.convertPoint=function(r){var n,a=this.getCenter(),i=r.x,o=r.y;return this.isTransposed&&(n=[o,i],i=n[0],o=n[1]),i=this.convertDim(i,"x"),o=this.convertDim(o,"y"),{x:a.x+Math.cos(i)*o,y:a.y+Math.sin(i)*o}},t.prototype.invertPoint=function(r){var n,a=this.getCenter(),i=[r.x-a.x,r.y-a.y],o=this,s=o.startAngle,l=o.endAngle;this.isReflect("x")&&(n=[l,s],s=n[0],l=n[1]);var A=[1,0,0,0,1,0,0,0,1];h2(A,A,s);var c=[1,0,0];Cv(c,c,A);var u=[c[0],c[1]],d=g2(u,i,l<s);BA(d,Math.PI*2)&&(d=0);var f=Lu(i),h=d/(l-s);h=l-s>0?h:-h;var g=this.invertDim(f,"y"),p={x:0,y:0};return p.x=this.isTransposed?g:h,p.y=this.isTransposed?h:g,p},t.prototype.getCenter=function(){return this.circleCenter},t.prototype.getOneBox=function(){var r=this.startAngle,n=this.endAngle;if(Math.abs(n-r)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var a=[0,Math.cos(r),Math.cos(n)],i=[0,Math.sin(r),Math.sin(n)],o=Math.min(r,n);o<Math.max(r,n);o+=Math.PI/18)a.push(Math.cos(o)),i.push(Math.sin(o));return{minX:Math.min.apply(Math,a),maxX:Math.max.apply(Math,a),minY:Math.min.apply(Math,i),maxY:Math.max.apply(Math,i)}},t}(M2),Ebe={},BMt=function(e){return Ebe[e.toLowerCase()]},a1=function(e,t){Ebe[e.toLowerCase()]=t};a1("rect",mbe);a1("cartesian",mbe);a1("polar",wMt);a1("helix",CMt);const MMt=Object.freeze(Object.defineProperty({__proto__:null,Coordinate:M2,getCoordinate:BMt,registerCoordinate:a1},Symbol.toStringTag,{value:"Module"})),xMt=Un(MMt),e6=Un(EMt);function ybe(e,t,r){var n=new d2(t,r);n.target=e,n.propagationPath.push(e),e.emitDelegation(t,n);for(var a=e.getParent();a;)a.emitDelegation(t,n),n.propagationPath.push(a),a=a.getParent()}var Cbe=[1,0,0,0,1,0,0,0,1];function uh(e,t,r){if(r===void 0&&(r=Cbe),!t)return null;var n=XC(r,[["t",-e.x,-e.y],["r",t],["t",e.x,e.y]]);return n}function t6(e,t){return!e.x&&!e.y?null:XC(Cbe,[["t",e.x,e.y]])}function IMt(e){var t=[1,0,0],r=[0,0,0];return Cv(r,t,e),Math.atan2(r[1],r[0])}function jB(e,t){var r=[0,0];return Vxe(r,t,e),r}function bMt(e,t){var r=jB(e,[t.minX,t.minY]),n=jB(e,[t.maxX,t.minY]),a=jB(e,[t.minX,t.maxY]),i=jB(e,[t.maxX,t.maxY]),o=Math.min(r[0],n[0],a[0],i[0]),s=Math.max(r[0],n[0],a[0],i[0]),l=Math.min(r[1],n[1],a[1],i[1]),A=Math.max(r[1],n[1],a[1],i[1]);return{x:o,y:l,minX:o,minY:l,maxX:s,maxY:A,width:s-o,height:A-l}}function wbe(e,t,r,n){if(t){var a=uh({x:r,y:n},t,e.getMatrix());e.setMatrix(a)}}function r6(e,t,r){var n=t6({x:t,y:r});e.attr("matrix",n)}function mS(e){var t=0,r=0,n=0,a=0;return $n(e)?t=r=n=a=e:En(e)&&(t=e[0],n=sr(e[1])?e[0]:e[1],a=sr(e[2])?e[0]:e[2],r=sr(e[3])?n:e[3]),[t,n,a,r]}function n6(e){for(var t=e.childNodes,r=t.length,n=r-1;n>=0;n--)e.removeChild(t[n])}function SMt(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function Gy(e){var t=e.start,r=e.end,n=Math.min(t.x,r.x),a=Math.min(t.y,r.y),i=Math.max(t.x,r.x),o=Math.max(t.y,r.y);return{x:n,y:a,minX:n,minY:a,maxX:i,maxY:o,width:i-n,height:o-a}}function RMt(e){var t=e.map(function(s){return s.x}),r=e.map(function(s){return s.y}),n=Math.min.apply(Math,t),a=Math.min.apply(Math,r),i=Math.max.apply(Math,t),o=Math.max.apply(Math,r);return{x:n,y:a,minX:n,minY:a,maxX:i,maxY:o,width:i-n,height:o-a}}function x2(e,t,r,n){var a=e+r,i=t+n;return{x:e,y:t,width:r,height:n,minX:e,minY:t,maxX:isNaN(a)?0:a,maxY:isNaN(i)?0:i}}function Gf(e,t,r){return(1-r)*e+t*r}function Kp(e,t,r){return{x:e.x+Math.cos(r)*t,y:e.y+Math.sin(r)*t}}function TMt(e,t){var r=t.x-e.x,n=t.y-e.y;return Math.sqrt(r*r+n*n)}var ES=function(e,t,r){return r===void 0&&(r=Math.pow(Number.EPSILON,.5)),[e,t].includes(1/0)?Math.abs(e)===Math.abs(t):Math.abs(e-t)<r};function QMt(e,t){var r=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),a=Math.min(e.maxX,t.maxX),i=Math.min(e.maxY,t.maxY);return x2(r,n,a-r,i-n)}function Bbe(e){var t=e.getClip(),r=t&&t.getBBox(),n;if(!e.isGroup())n=e.getBBox();else{var a=1/0,i=-1/0,o=1/0,s=-1/0,l=e.getChildren();l.length>0?Ht(l,function(A){if(A.get("visible")){if(A.isGroup()&&A.get("children").length===0)return!0;var c=Bbe(A),u=A.applyToMatrix([c.minX,c.minY,1]),d=A.applyToMatrix([c.minX,c.maxY,1]),f=A.applyToMatrix([c.maxX,c.minY,1]),h=A.applyToMatrix([c.maxX,c.maxY,1]),g=Math.min(u[0],d[0],f[0],h[0]),p=Math.max(u[0],d[0],f[0],h[0]),E=Math.min(u[1],d[1],f[1],h[1]),y=Math.max(u[1],d[1],f[1],h[1]);g<a&&(a=g),p>i&&(i=p),E<o&&(o=E),y>s&&(s=y)}}):(a=0,i=0,o=0,s=0),n=x2(a,o,i-a,s-o)}return r?QMt(n,r):n}function DMt(e,t){if(!(!e.getClip()&&!t.getClip())){var r=t.getClip();if(!r){e.setClip(null);return}var n={type:r.get("type"),attrs:r.attr()};e.setClip(n)}}function Io(e){return e+"px"}function Mbe(e,t,r,n){var a=TMt(e,t),i=n/a,o=0;return r==="start"?o=0-i:r==="end"&&(o=1+i),{x:Gf(e.x,t.x,o),y:Gf(e.y,t.y,o)}}var FMt={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},a6=function(e){Cr(t,e);function t(r){var n=e.call(this,r)||this;return n.initCfg(),n}return t.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},t.prototype.clear=function(){},t.prototype.update=function(r){var n=this,a=this.get("defaultCfg")||{};Ht(r,function(i,o){var s=n.get(o),l=i;s!==i&&(ns(i)&&a[o]&&(l=Fc({},a[o],i)),n.set(o,l))}),this.updateInner(r),this.afterUpdate(r)},t.prototype.updateInner=function(r){},t.prototype.afterUpdate=function(r){od(r,"visible")&&(r.visible?this.show():this.hide()),od(r,"capture")&&this.setCapture(r.capture)},t.prototype.getLayoutBBox=function(){return this.getBBox()},t.prototype.getLocationType=function(){return this.get("locationType")},t.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},t.prototype.setOffset=function(r,n){this.update({offsetX:r,offsetY:n})},t.prototype.setLocation=function(r){var n=Tt({},r);this.update(n)},t.prototype.getLocation=function(){var r=this,n={},a=this.get("locationType"),i=FMt[a];return Ht(i,function(o){n[o]=r.get(o)}),n},t.prototype.isList=function(){return!1},t.prototype.isSlider=function(){return!1},t.prototype.init=function(){},t.prototype.initCfg=function(){var r=this,n=this.get("defaultCfg");Ht(n,function(a,i){var o=r.get(i);if(ns(o)){var s=Fc({},a,o);r.set(i,s)}})},t}(f2),Jd="update_status",_Mt=["visible","tip","delegateObject"],NMt=["container","group","shapesMap","isRegister","isUpdating","destroyed"],hi=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},t.prototype.remove=function(){this.clear();var r=this.get("group");r.remove()},t.prototype.clear=function(){var r=this.get("group");r.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},t.prototype.getChildComponentById=function(r){var n=this.getElementById(r),a=n&&n.get("component");return a},t.prototype.getElementById=function(r){return this.get("shapesMap")[r]},t.prototype.getElementByLocalId=function(r){var n=this.getElementId(r);return this.getElementById(n)},t.prototype.getElementsByName=function(r){var n=[];return Ht(this.get("shapesMap"),function(a){a.get("name")===r&&n.push(a)}),n},t.prototype.getContainer=function(){return this.get("container")},t.prototype.updateInner=function(r){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},t.prototype.render=function(){var r=this.get("offScreenGroup");r||(r=this.offScreenRender());var n=this.get("group");this.updateElements(r,n),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},t.prototype.show=function(){var r=this.get("group");r.show(),this.set("visible",!0)},t.prototype.hide=function(){var r=this.get("group");r.hide(),this.set("visible",!1)},t.prototype.setCapture=function(r){var n=this.get("group");n.set("capture",r),this.set("capture",r)},t.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},t.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},t.prototype.getLayoutBBox=function(){var r=this.get("group"),n=this.getInnerLayoutBBox(),a=r.getTotalMatrix();return a&&(n=bMt(a,n)),n},t.prototype.on=function(r,n,a){var i=this.get("group");return i.on(r,n,a),this},t.prototype.off=function(r,n){var a=this.get("group");return a&&a.off(r,n),this},t.prototype.emit=function(r,n){var a=this.get("group");a.emit(r,n)},t.prototype.init=function(){e.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},t.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},t.prototype.delegateEmit=function(r,n){var a=this.get("group");n.target=a,a.emit(r,n),ybe(a,r,n)},t.prototype.createOffScreenGroup=function(){var r=this.get("group"),n=r.getGroupBase(),a=new n({delegateObject:this.getDelegateObject()});return a},t.prototype.applyOffset=function(){var r=this.get("offsetX"),n=this.get("offsetY");this.moveElementTo(this.get("group"),{x:r,y:n})},t.prototype.initGroup=function(){var r=this.get("container");this.set("group",r.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},t.prototype.offScreenRender=function(){this.clearOffScreenCache();var r=this.createOffScreenGroup();return this.renderInner(r),this.set("offScreenGroup",r),this.set("offScreenBBox",Bbe(r)),r},t.prototype.addGroup=function(r,n){this.appendDelegateObject(r,n);var a=r.addGroup(n);return this.get("isRegister")&&this.registerElement(a),a},t.prototype.addShape=function(r,n){this.appendDelegateObject(r,n);var a=r.addShape(n);return this.get("isRegister")&&this.registerElement(a),a},t.prototype.addComponent=function(r,n){var a=n.id,i=n.component,o=Zv(n,["id","component"]),s=new i(Tt(Tt({},o),{id:a,container:r,updateAutoRender:this.get("updateAutoRender")}));return s.init(),s.render(),this.get("isRegister")&&this.registerElement(s.get("group")),s},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){var r=this.get("group");r.off()},t.prototype.getElementId=function(r){var n=this.get("id"),a=this.get("name");return n+"-"+a+"-"+r},t.prototype.registerElement=function(r){var n=r.get("id");this.get("shapesMap")[n]=r},t.prototype.unregisterElement=function(r){var n=r.get("id");delete this.get("shapesMap")[n]},t.prototype.moveElementTo=function(r,n){var a=t6(n);r.attr("matrix",a)},t.prototype.addAnimation=function(r,n,a){var i=n.attr("opacity");sr(i)&&(i=1),n.attr("opacity",0),n.animate({opacity:i},a)},t.prototype.removeAnimation=function(r,n,a){n.animate({opacity:0},a)},t.prototype.updateAnimation=function(r,n,a,i){n.animate(a,i)},t.prototype.updateElements=function(r,n){var a=this,i=this.get("animate"),o=this.get("animateOption"),s=r.getChildren().slice(0),l;Ht(s,function(A){var c=A.get("id"),u=a.getElementById(c),d=A.get("name");if(u)if(A.get("isComponent")){var f=A.get("component"),h=u.get("component"),g=QU(f.cfg,UMe(CU(f.cfg),NMt));h.update(g),u.set(Jd,"update")}else{var p=a.getReplaceAttrs(u,A);i&&o.update?a.updateAnimation(d,u,p,o.update):u.attr(p),A.isGroup()&&a.updateElements(A,u),Ht(_Mt,function(w){u.set(w,A.get(w))}),DMt(u,A),l=u,u.set(Jd,"update")}else{n.add(A);var E=n.getChildren();if(E.splice(E.length-1,1),l){var y=E.indexOf(l);E.splice(y+1,0,A)}else E.unshift(A);if(a.registerElement(A),A.set(Jd,"add"),A.get("isComponent")){var f=A.get("component");f.set("container",n)}else A.isGroup()&&a.registerNewGroup(A);if(l=A,i){var C=a.get("isInit")?o.appear:o.enter;C&&a.addAnimation(d,A,C)}}})},t.prototype.clearUpdateStatus=function(r){var n=r.getChildren();Ht(n,function(a){a.set(Jd,null)})},t.prototype.clearOffScreenCache=function(){var r=this.get("offScreenGroup");r&&r.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},t.prototype.getDelegateObject=function(){var r,n=this.get("name"),a=(r={},r[n]=this,r.component=this,r);return a},t.prototype.appendDelegateObject=function(r,n){var a=r.get("delegateObject");n.delegateObject||(n.delegateObject={}),pa(n.delegateObject,a)},t.prototype.getReplaceAttrs=function(r,n){var a=r.attr(),i=n.attr();return Ht(a,function(o,s){i[s]===void 0&&(i[s]=void 0)}),i},t.prototype.registerNewGroup=function(r){var n=this,a=r.getChildren();Ht(a,function(i){n.registerElement(i),i.set(Jd,"add"),i.isGroup()&&n.registerNewGroup(i)})},t.prototype.deleteElements=function(){var r=this,n=this.get("shapesMap"),a=[];Ht(n,function(s,l){!s.get(Jd)||s.destroyed?a.push([l,s]):s.set(Jd,null)});var i=this.get("animate"),o=this.get("animateOption");Ht(a,function(s){var l=s[0],A=s[1];if(!A.destroyed){var c=A.get("name");if(i&&o.leave){var u=pa({callback:function(){r.removeElement(A)}},o.leave);r.removeAnimation(c,A,u)}else r.removeElement(A)}delete n[l]})},t.prototype.removeElement=function(r){if(r.get("isGroup")){var n=r.get("component");n&&n.destroy()}r.remove()},t}(a6),I8="…";function kMt(e){for(var t=0,r=0;r<e.length;r++)t+=pf(e,r);return t}function pf(e,t){return e.charCodeAt(t)>0&&e.charCodeAt(t)<128?1:2}function PMt(e,t,r){r===void 0&&(r="tail");var n=e.length,a="";if(r==="tail"){for(var i=0,o=0;i<t;){var s=pf(e,o);if(i+s<=t)a+=e[o],i+=pf(e,o),o++;else break}a+=I8}else if(r==="head"){for(var i=0,o=n-1;i<t;){var s=pf(e,o);if(i+s<=t)a+=e[o],i+=pf(e,o),o--;else break}a=I8+a}else{for(var l="",A="",i=0,c=0,u=n-1;i<t;){var d=pf(e,c),f=!1;d+i<=t&&(l+=e[c],c++,i+=d,f=!0);var h=pf(e,u);if(h+i<=t&&(A=e[u]+A,i+=h,u--,f=!0),!f)break}a=l+I8+A}return a}var OMt="…",zMt=2,jMt=400;function YMt(e){for(var t=e.map(function(l){var A=l.attr("text");return sr(A)?"":""+A}),r=0,n=0,a=0;a<t.length;a+=1){for(var i=0,o=0;o<=t[a].length;o+=1){var s=t[a].charCodeAt(o);s>=19968&&s<=40869?i+=2:i+=1}i>r&&(r=i,n=a)}return e[n].getBBox().width}function I3(e){if(e.length>jMt)return YMt(e);var t=0;return Ht(e,function(r){var n=r.getBBox(),a=n.width;t<a&&(t=a)}),t}function LMt(e,t){var r=t.getCanvasBBox();return e?r.width:r.height}function oy(e,t,r,n){var a;n===void 0&&(n="tail");var i=(a=t.attr("text"))!==null&&a!==void 0?a:"";if(n==="tail"){var o=QU(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),s=sxe(i,r,o,"…");return i!==s?(t.attr("text",s),t.set("tip",i),!0):(t.set("tip",null),!1)}var l=LMt(e,t),A=kMt(i),c=!1;if(r<l){var u=Math.floor(r/l*A)-zMt,d=void 0;u>=0?d=PMt(i,u,n):d=OMt,d&&(t.attr("text",d),c=!0)}return c?t.set("tip",i):t.set("tip",null),c}function I2(e,t){var r=t.x,n=t.y,a=t.content,i=t.style,o=t.id,s=t.name,l=t.rotate,A=t.maxLength,c=t.autoEllipsis,u=t.isVertical,d=t.ellipsisPosition,f=t.background,h=e.addGroup({id:o+"-group",name:s+"-group",attrs:{x:r,y:n}}),g=h.addShape({type:"text",id:o,name:s,attrs:Tt({x:0,y:0,text:a},i)}),p=mS(cn(f,"padding",0));if(A&&c){var E=A-(p[1]+p[3]);oy(!u,g,E,d)}if(f){var y=cn(f,"style",{}),C=g.getCanvasBBox(),w=C.minX,B=C.minY,M=C.width,I=C.height,S=h.addShape("rect",{id:o+"-bg",name:o+"-bg",attrs:Tt({x:w-p[3],y:B-p[0],width:M+p[1]+p[3],height:I+p[0]+p[2]},y)});S.toBack()}r6(h,r,n),wbe(h,l,r,n)}const Zr={fontFamily:`
  BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",
  Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
  SimSun, "sans-serif"`,textColor:"#2C3542",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"};var UMt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:Zr.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:Zr.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:Zr.lineColor,lineWidth:1}}}})},t.prototype.renderInner=function(r){this.renderLine(r),this.get("text")&&this.renderLabel(r)},t.prototype.renderLine=function(r){var n=this.get("start"),a=this.get("end"),i=this.get("style");this.addShape(r,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Tt({x1:n.x,y1:n.y,x2:a.x,y2:a.y},i)})},t.prototype.getLabelPoint=function(r,n,a){var i;return a==="start"?i=0:a==="center"?i=.5:jn(a)&&a.indexOf("%")!==-1?i=parseInt(a,10)/100:$n(a)?i=a:i=1,(i>1||i<0)&&(i=1),{x:Gf(r.x,n.x,i),y:Gf(r.y,n.y,i)}},t.prototype.renderLabel=function(r){var n=this.get("text"),a=this.get("start"),i=this.get("end"),o=n.position,s=n.content,l=n.style,A=n.offsetX,c=n.offsetY,u=n.autoRotate,d=n.maxLength,f=n.autoEllipsis,h=n.ellipsisPosition,g=n.background,p=n.isVertical,E=p===void 0?!1:p,y=this.getLabelPoint(a,i,o),C=y.x+A,w=y.y+c,B={id:this.getElementId("line-text"),name:"annotation-line-text",x:C,y:w,content:s,style:l,maxLength:d,autoEllipsis:f,ellipsisPosition:h,background:g,isVertical:E};if(u){var M=[i.x-a.x,i.y-a.y];B.rotate=Math.atan2(M[1],M[0])}I2(r,B)},t}(hi),HMt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:Zr.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:Zr.fontFamily}}})},t.prototype.setLocation=function(r){this.set("x",r.x),this.set("y",r.y),this.resetLocation()},t.prototype.renderInner=function(r){var n=this.getLocation(),a=n.x,i=n.y,o=this.get("content"),s=this.get("style"),l=this.getElementId("text"),A=this.get("name")+"-text",c=this.get("maxLength"),u=this.get("autoEllipsis"),d=this.get("isVertical"),f=this.get("ellipsisPosition"),h=this.get("background"),g=this.get("rotate"),p={id:l,name:A,x:a,y:i,content:o,style:s,maxLength:c,autoEllipsis:u,isVertical:d,ellipsisPosition:f,background:h,rotate:g};I2(r,p)},t.prototype.resetLocation=function(){var r=this.getElementByLocalId("text-group");if(r){var n=this.getLocation(),a=n.x,i=n.y,o=this.get("rotate");r6(r,a,i),wbe(r,o,a,i)}},t}(hi),GMt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},t.prototype.renderInner=function(r){this.renderArc(r)},t.prototype.getArcPath=function(){var r=this.getLocation(),n=r.center,a=r.radius,i=r.startAngle,o=r.endAngle,s=Kp(n,a,i),l=Kp(n,a,o),A=o-i>Math.PI?1:0,c=[["M",s.x,s.y]];if(o-i===Math.PI*2){var u=Kp(n,a,i+Math.PI);c.push(["A",a,a,0,A,1,u.x,u.y]),c.push(["A",a,a,0,A,1,l.x,l.y])}else c.push(["A",a,a,0,A,1,l.x,l.y]);return c},t.prototype.renderArc=function(r){var n=this.getArcPath(),a=this.get("style");this.addShape(r,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:Tt({path:n},a)})},t}(hi),KMt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Zr.regionColor,opacity:.4}}})},t.prototype.renderInner=function(r){this.renderRegion(r)},t.prototype.renderRegion=function(r){var n=this.get("start"),a=this.get("end"),i=this.get("style"),o=Gy({start:n,end:a});this.addShape(r,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Tt({x:o.x,y:o.y,width:o.width,height:o.height},i)})},t}(hi),VMt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},t.prototype.renderInner=function(r){this.renderImage(r)},t.prototype.getImageAttrs=function(){var r=this.get("start"),n=this.get("end"),a=this.get("style"),i=Gy({start:r,end:n}),o=this.get("src");return Tt({x:i.x,y:i.y,img:o,width:i.width,height:i.height},a)},t.prototype.renderImage=function(r){this.addShape(r,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},t}(hi),JMt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:Zr.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:Zr.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:Zr.fontFamily}}}})},t.prototype.renderInner=function(r){cn(this.get("line"),"display")&&this.renderLine(r),cn(this.get("text"),"display")&&this.renderText(r),cn(this.get("point"),"display")&&this.renderPoint(r),this.get("autoAdjust")&&this.autoAdjust(r)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},t.prototype.renderPoint=function(r){var n=this.getShapeAttrs().point;this.addShape(r,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:n})},t.prototype.renderLine=function(r){var n=this.getShapeAttrs().line;this.addShape(r,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:n})},t.prototype.renderText=function(r){var n=this.getShapeAttrs().text,a=n.x,i=n.y,o=n.text,s=Zv(n,["x","y","text"]),l=this.get("text"),A=l.background,c=l.maxLength,u=l.autoEllipsis;l.isVertival;var d=l.ellipsisPosition,f={x:a,y:i,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:A,maxLength:c,autoEllipsis:u,ellipsisPosition:d};I2(r,f)},t.prototype.autoAdjust=function(r){var n=this.get("direction"),a=this.get("x"),i=this.get("y"),o=cn(this.get("line"),"length",0),s=this.get("coordinateBBox"),l=r.getBBox(),A=l.minX,c=l.maxX,u=l.minY,d=l.maxY,f=r.findById(this.getElementId("text-group")),h=r.findById(this.getElementId("text")),g=r.findById(this.getElementId("line"));if(s&&f){var p=f.attr("x"),E=f.attr("y"),y=h.getCanvasBBox(),C=y.width,w=y.height,B=0,M=0;if(a+A<=s.minX)if(n==="leftward")B=1;else{var I=s.minX-(a+A);p=f.attr("x")+I}else if(a+c>=s.maxX)if(n==="rightward")B=-1;else{var I=a+c-s.maxX;p=f.attr("x")-I}if(B&&(g&&g.attr("path",[["M",0,0],["L",o*B,0]]),p=(o+2+C)*B),i+u<=s.minY)if(n==="upward")M=1;else{var I=s.minY-(i+u);E=f.attr("y")+I}else if(i+d>=s.maxY)if(n==="downward")M=-1;else{var I=i+d-s.maxY;E=f.attr("y")-I}M&&(g&&g.attr("path",[["M",0,0],["L",0,o*M]]),E=(o+2+w)*M),(p!==f.attr("x")||E!==f.attr("y"))&&r6(f,p,E)}},t.prototype.getShapeAttrs=function(){var r=cn(this.get("line"),"display"),n=cn(this.get("point"),"style",{}),a=cn(this.get("line"),"style",{}),i=cn(this.get("text"),"style",{}),o=this.get("direction"),s=r?cn(this.get("line"),"length",0):0,l=0,A=0,c="top",u="start";switch(o){case"upward":A=-1,c="bottom";break;case"downward":A=1,c="top";break;case"leftward":l=-1,u="end";break;case"rightward":l=1,u="start";break}return{point:Tt({x:0,y:0},n),line:Tt({path:[["M",0,0],["L",s*l,s*A]]},a),text:Tt({x:(s+2)*l,y:(s+2)*A,text:cn(this.get("text"),"content",""),textBaseline:c,textAlign:u},i)}},t}(hi),WMt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Zr.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:Zr.textColor,fontFamily:Zr.fontFamily}}}})},t.prototype.renderInner=function(r){var n=cn(this.get("region"),"style",{});cn(this.get("text"),"style",{});var a=this.get("lineLength")||0,i=this.get("points");if(i.length){var o=RMt(i),s=[];s.push(["M",i[0].x,o.minY-a]),i.forEach(function(A){s.push(["L",A.x,A.y])}),s.push(["L",i[i.length-1].x,i[i.length-1].y-a]),this.addShape(r,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Tt({path:s},n)});var l=Tt({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-a},this.get("text"));I2(r,l)}},t}(hi),XMt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},t.prototype.renderInner=function(r){var n=this,a=this.get("start"),i=this.get("end"),o=this.addGroup(r,{id:this.getElementId("region-filter"),capture:!1});Ht(this.get("shapes"),function(l,A){var c=l.get("type"),u=Ah(l.attr());n.adjustShapeAttrs(u),n.addShape(o,{id:n.getElementId("shape-"+c+"-"+A),capture:!1,type:c,attrs:u})});var s=Gy({start:a,end:i});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},t.prototype.adjustShapeAttrs=function(r){var n=this.get("color");r.fill&&(r.fill=r.fillStyle=n),r.stroke=r.strokeStyle=n},t}(hi),qMt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"annotation",type:"shape",draw:Qf})},t.prototype.renderInner=function(r){var n=this.get("render");Fn(n)&&n(r)},t}(hi);function vf(e,t,r){if(e){if(typeof e.addEventListener=="function")return e.addEventListener(t,r,!1),{remove:function(){e.removeEventListener(t,r,!1)}};if(typeof e.attachEvent=="function")return e.attachEvent("on"+t,r),{remove:function(){e.detachEvent("on"+t,r)}}}}var _0,b8,xbe,b3;function ZMt(){_0=document.createElement("table"),b8=document.createElement("tr"),xbe=/^\s*<(\w+|!)[^>]*>/,b3={tr:document.createElement("tbody"),tbody:_0,thead:_0,tfoot:_0,td:b8,th:b8,"*":document.createElement("div")}}function Wu(e){_0||ZMt();var t=xbe.test(e)&&RegExp.$1;(!t||!(t in b3))&&(t="*");var r=b3[t];e=typeof e=="string"?e.replace(/(^\s*)|(\s*$)/g,""):e,r.innerHTML=""+e;var n=r.childNodes[0];return n&&r.contains(n)&&r.removeChild(n),n}function ro(e,t,r){var n;try{n=window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.style[t]}catch{}finally{n=n===void 0?r:n}return n}function Ibe(e,t){var r=ro(e,"height",t);return r==="auto"&&(r=e.offsetHeight),parseFloat(r)}function bbe(e,t){var r=Ibe(e,t),n=parseFloat(ro(e,"borderTopWidth"))||0,a=parseFloat(ro(e,"paddingTop"))||0,i=parseFloat(ro(e,"paddingBottom"))||0,o=parseFloat(ro(e,"borderBottomWidth"))||0,s=parseFloat(ro(e,"marginTop"))||0,l=parseFloat(ro(e,"marginBottom"))||0;return r+n+o+a+i+s+l}function Sbe(e,t){var r=ro(e,"width",t);return r==="auto"&&(r=e.offsetWidth),parseFloat(r)}function Rbe(e,t){var r=Sbe(e,t),n=parseFloat(ro(e,"borderLeftWidth"))||0,a=parseFloat(ro(e,"paddingLeft"))||0,i=parseFloat(ro(e,"paddingRight"))||0,o=parseFloat(ro(e,"borderRightWidth"))||0,s=parseFloat(ro(e,"marginRight"))||0,l=parseFloat(ro(e,"marginLeft"))||0;return r+n+o+a+i+l+s}function $Mt(){return window.devicePixelRatio?window.devicePixelRatio:2}function Li(e,t){if(e)for(var r in t)t.hasOwnProperty(r)&&(e.style[r]=t[r]);return e}const ext=Object.freeze(Object.defineProperty({__proto__:null,addEventListener:vf,createDom:Wu,getHeight:Ibe,getOuterHeight:bbe,getOuterWidth:Rbe,getRatio:$Mt,getStyle:ro,getWidth:Sbe,modifyCSS:Li},Symbol.toStringTag,{value:"Module"}));var b2=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.show=function(){var r=this.get("container");r.style.display="",this.set("visible",!0)},t.prototype.hide=function(){var r=this.get("container");r.style.display="none",this.set("visible",!1)},t.prototype.setCapture=function(r){var n=this.getContainer(),a=r?"auto":"none";n.style.pointerEvents=a,this.set("capture",r)},t.prototype.getBBox=function(){var r=this.getContainer(),n=parseFloat(r.style.left)||0,a=parseFloat(r.style.top)||0;return x2(n,a,r.clientWidth,r.clientHeight)},t.prototype.clear=function(){var r=this.get("container");n6(r)},t.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},t.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},t.prototype.initCapture=function(){this.setCapture(this.get("capture"))},t.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},t.prototype.initDom=function(){},t.prototype.initContainer=function(){var r=this.get("container");if(sr(r)){r=this.createDom();var n=this.get("parent");jn(n)&&(n=document.getElementById(n),this.set("parent",n)),n.appendChild(r),this.get("containerId")&&r.setAttribute("id",this.get("containerId")),this.set("container",r)}else jn(r)&&(r=document.getElementById(r),this.set("container",r));this.get("parent")||this.set("parent",r.parentNode)},t.prototype.resetStyles=function(){var r=this.get("domStyles"),n=this.get("defaultStyles");r?r=Fc({},n,r):r=n,this.set("domStyles",r)},t.prototype.applyStyles=function(){var r=this.get("domStyles");if(r){var n=this.getContainer();this.applyChildrenStyles(n,r);var a=this.get("containerClassName");if(a&&SMt(n,a)){var i=r[a];Li(n,i)}}},t.prototype.applyChildrenStyles=function(r,n){Ht(n,function(a,i){var o=r.getElementsByClassName(i);Ht(o,function(s){Li(s,a)})})},t.prototype.applyStyle=function(r,n){var a=this.get("domStyles");Li(n,a[r])},t.prototype.createDom=function(){var r=this.get("containerTpl");return Wu(r)},t.prototype.initEvent=function(){},t.prototype.removeDom=function(){var r=this.get("container");r&&r.parentNode&&r.parentNode.removeChild(r)},t.prototype.removeEvent=function(){},t.prototype.updateInner=function(r){od(r,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},t.prototype.resetPosition=function(){},t}(a6),txt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation" style="position:absolute"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},t.prototype.render=function(){var r=this.getContainer(),n=this.get("html");n6(r);var a=Fn(n)?n(r):n;if(SU(a))r.appendChild(a);else if(jn(a)||$n(a)){var i=Wu(""+a);i&&r.appendChild(i)}this.resetPosition()},t.prototype.resetPosition=function(){var r=this.getContainer(),n=this.getLocation(),a=n.x,i=n.y,o=this.get("alignX"),s=this.get("alignY"),l=this.get("offsetX"),A=this.get("offsetY"),c=Rbe(r),u=bbe(r),d={x:a,y:i};o==="middle"?d.x-=Math.round(c/2):o==="right"&&(d.x-=Math.round(c)),s==="middle"?d.y-=Math.round(u/2):s==="bottom"&&(d.y-=Math.round(u)),l&&(d.x+=l),A&&(d.y+=A),Li(r,{position:"absolute",left:d.x+"px",top:d.y+"px",zIndex:this.get("zIndex")})},t}(b2);const rxt=Object.freeze(Object.defineProperty({__proto__:null,Arc:GMt,DataMarker:JMt,DataRegion:WMt,Html:txt,Image:VMt,Line:UMt,Region:KMt,RegionFilter:XMt,Shape:qMt,Text:HMt},Symbol.toStringTag,{value:"Module"}));function N0(e,t,r){var n=t+"Style",a=null;return Ht(r,function(i,o){e[o]&&i[n]&&(a||(a={}),pa(a,i[n]))}),a}var i6=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Zr.lineColor}},tickLine:{style:{lineWidth:1,stroke:Zr.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Zr.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Zr.textColor,fontFamily:Zr.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:Zr.textColor,textBaseline:"middle",fontFamily:Zr.fontFamily,textAlign:"center"},iconStyle:{fill:Zr.descriptionIconFill,stroke:Zr.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Zr.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},t.prototype.renderInner=function(r){this.get("line")&&this.drawLine(r),this.drawTicks(r),this.get("title")&&this.drawTitle(r)},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get("ticks")},t.prototype.setItems=function(r){this.update({ticks:r})},t.prototype.updateItem=function(r,n){pa(r,n),this.clear(),this.render()},t.prototype.clearItems=function(){var r=this.getElementByLocalId("label-group");r&&r.clear()},t.prototype.setItemState=function(r,n,a){r[n]=a,this.updateTickStates(r)},t.prototype.hasState=function(r,n){return!!r[n]},t.prototype.getItemStates=function(r){var n=this.get("tickStates"),a=[];return Ht(n,function(i,o){r[o]&&a.push(o)}),a},t.prototype.clearItemsState=function(r){var n=this,a=this.getItemsByState(r);Ht(a,function(i){n.setItemState(i,r,!1)})},t.prototype.getItemsByState=function(r){var n=this,a=this.getItems();return $v(a,function(i){return n.hasState(i,r)})},t.prototype.getSidePoint=function(r,n){var a=this,i=a.getSideVector(n,r);return{x:r.x+i[0],y:r.y+i[1]}},t.prototype.getTextAnchor=function(r){var n;return BA(r[0],0)?n="center":r[0]>0?n="start":r[0]<0&&(n="end"),n},t.prototype.getTextBaseline=function(r){var n;return BA(r[1],0)?n="middle":r[1]>0?n="top":r[1]<0&&(n="bottom"),n},t.prototype.processOverlap=function(r){},t.prototype.drawLine=function(r){var n=this.getLinePath(),a=this.get("line");this.addShape(r,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:pa({path:n},a.style)})},t.prototype.getTickLineItems=function(r){var n=this,a=[],i=this.get("tickLine"),o=i.alignTick,s=i.length,l=1,A=r.length;return A>=2&&(l=r[1].value-r[0].value),Ht(r,function(c){var u=c.point;o||(u=n.getTickPoint(c.value-l/2));var d=n.getSidePoint(u,s);a.push({startPoint:u,tickValue:c.value,endPoint:d,tickId:c.id,id:"tickline-"+c.id})}),a},t.prototype.getSubTickLineItems=function(r){var n=[],a=this.get("subTickLine"),i=a.count,o=r.length;if(o>=2)for(var s=0;s<o-1;s++)for(var l=r[s],A=r[s+1],c=0;c<i;c++){var u=(c+1)/(i+1),d=(1-u)*l.tickValue+u*A.tickValue,f=this.getTickPoint(d),h=this.getSidePoint(f,a.length);n.push({startPoint:f,endPoint:h,tickValue:d,id:"sub-"+l.id+"-"+c})}return n},t.prototype.getTickLineAttrs=function(r,n,a,i){var o=this.get(n).style,s={points:[r.startPoint,r.endPoint]},l=cn(this.get("theme"),["tickLine","style"],{});o=Fn(o)?pa({},l,o(s,a,i)):o;var A=r.startPoint,c=r.endPoint;return Tt({x1:A.x,y1:A.y,x2:c.x,y2:c.y},o)},t.prototype.drawTick=function(r,n,a,i,o){this.addShape(n,{type:"line",id:this.getElementId(r.id),name:"axis-"+a,attrs:this.getTickLineAttrs(r,a,i,o)})},t.prototype.drawTickLines=function(r){var n=this,a=this.get("ticks"),i=this.get("subTickLine"),o=this.getTickLineItems(a),s=this.addGroup(r,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),l=this.get("tickLine");if(Ht(o,function(c,u){if(l.displayWithLabel){var d=n.getElementId("label-"+c.tickId);r.findById(d)&&n.drawTick(c,s,"tickLine",u,o)}else n.drawTick(c,s,"tickLine",u,o)}),i){var A=this.getSubTickLineItems(o);Ht(A,function(c,u){n.drawTick(c,s,"subTickLine",u,A)})}},t.prototype.processTicks=function(){var r=this,n=this.get("ticks");Ht(n,function(a){a.point=r.getTickPoint(a.value),sr(a.id)&&(a.id=a.name)})},t.prototype.drawTicks=function(r){var n=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(r),this.get("tickLine")&&this.drawTickLines(r);var a=this.get("ticks");Ht(a,function(i){n.applyTickStates(i,r)})},t.prototype.optimizeTicks=function(){var r=this.get("optimize"),n=this.get("ticks");if(r&&r.enable&&r.threshold>0){var a=WC(n);if(a>r.threshold){var i=Math.ceil(a/r.threshold),o=n.filter(function(s,l){return l%i===0});this.set("ticks",o),this.set("originalTicks",n)}}},t.prototype.getLabelAttrs=function(r,n,a){var i=this.get("label"),o=i.offset,s=i.offsetX,l=i.offsetY,A=i.rotate,c=i.formatter,u=this.getSidePoint(r.point,o),d=this.getSideVector(o,u),f=c?c(r.name,r,n):r.name,h=i.style;h=Fn(h)?cn(this.get("theme"),["label","style"],{}):h;var g=pa({x:u.x+s,y:u.y+l,text:f,textAlign:this.getTextAnchor(d),textBaseline:this.getTextBaseline(d)},h);return A&&(g.matrix=uh(u,A)),g},t.prototype.drawLabels=function(r){var n=this,a=this.get("ticks"),i=this.addGroup(r,{name:"axis-label-group",id:this.getElementId("label-group")});Ht(a,function(d,f){n.addShape(i,{type:"text",name:"axis-label",id:n.getElementId("label-"+d.id),attrs:n.getLabelAttrs(d,f,a),delegateObject:{tick:d,item:d,index:f}})}),this.processOverlap(i);var o=i.getChildren(),s=cn(this.get("theme"),["label","style"],{}),l=this.get("label"),A=l.style,c=l.formatter;if(Fn(A)){var u=o.map(function(d){return cn(d.get("delegateObject"),"tick")});Ht(o,function(d,f){var h=d.get("delegateObject").tick,g=c?c(h.name,h,f):h.name,p=pa({},s,A(g,f,u));d.attr(p)})}},t.prototype.getTitleAttrs=function(){var r=this.get("title"),n=r.style,a=r.position,i=r.offset,o=r.spacing,s=o===void 0?0:o,l=r.autoRotate,A=n.fontSize,c=.5;a==="start"?c=0:a==="end"&&(c=1);var u=this.getTickPoint(c),d=this.getSidePoint(u,i||s+A/2),f=pa({x:d.x,y:d.y,text:r.text},n),h=r.rotate,g=h;if(sr(h)&&l){var p=this.getAxisVector(u),E=[1,0];g=g2(p,E,!0)}if(g){var y=uh(d,g);f.matrix=y}return f},t.prototype.drawTitle=function(r){var n,a=this.getTitleAttrs(),i=this.addShape(r,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:a});!((n=this.get("title"))===null||n===void 0)&&n.description&&this.drawDescriptionIcon(r,i,a.matrix)},t.prototype.drawDescriptionIcon=function(r,n,a){var i=this.addGroup(r,{name:"axis-description",id:this.getElementById("description")}),o=n.getBBox(),s=o.maxX,l=o.maxY,A=o.height,c=this.get("title").iconStyle,u=4,d=A/2,f=d/6,h=s+u,g=l-A/2,p=[h+d,g-d],E=p[0],y=p[1],C=[E+d,y+d],w=C[0],B=C[1],M=[E,B+d],I=M[0],S=M[1],R=[h,y+d],b=R[0],Q=R[1],D=[h+d,g-A/4],F=D[0],N=D[1],k=[F,N+f],O=k[0],P=k[1],z=[O,P+f],j=z[0],V=z[1],L=[j,V+d*3/4],K=L[0],J=L[1];this.addShape(i,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:Tt({path:[["M",E,y],["A",d,d,0,0,1,w,B],["A",d,d,0,0,1,I,S],["A",d,d,0,0,1,b,Q],["A",d,d,0,0,1,E,y],["M",F,N],["L",O,P],["M",j,V],["L",K,J]],lineWidth:f,matrix:a},c)}),this.addShape(i,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:h,y:g-A/2,width:A,height:A,stroke:"#000",fill:"#000",opacity:0,matrix:a,cursor:"pointer"}})},t.prototype.applyTickStates=function(r,n){var a=this.getItemStates(r);if(a.length){var i=this.get("tickStates"),o=this.getElementId("label-"+r.id),s=n.findById(o);if(s){var l=N0(r,"label",i);l&&s.attr(l)}var A=this.getElementId("tickline-"+r.id),c=n.findById(A);if(c){var u=N0(r,"tickLine",i);u&&c.attr(u)}}},t.prototype.updateTickStates=function(r){var n=this.getItemStates(r),a=this.get("tickStates"),i=this.get("label"),o=this.getElementByLocalId("label-"+r.id),s=this.get("tickLine"),l=this.getElementByLocalId("tickline-"+r.id);if(n.length){if(o){var A=N0(r,"label",a);A&&o.attr(A)}if(l){var c=N0(r,"tickLine",a);c&&l.attr(c)}}else o&&o.attr(i.style),l&&l.attr(s.style)},t}(hi);function o6(e,t,r,n){var a=t.getChildren(),i=!1;return Ht(a,function(o){var s=oy(e,o,r,n);i=i||s}),i}function nxt(){return Tbe}function axt(e,t,r){return o6(e,t,r,"head")}function Tbe(e,t,r){return o6(e,t,r,"tail")}function ixt(e,t,r){return o6(e,t,r,"middle")}const oxt=Object.freeze(Object.defineProperty({__proto__:null,ellipsisHead:axt,ellipsisMiddle:ixt,ellipsisTail:Tbe,getDefault:nxt},Symbol.toStringTag,{value:"Module"}));function sxt(e){var t=e.attr("matrix");return t&&t[0]!==1}function Qbe(e){var t=sxt(e)?IMt(e.attr("matrix")):0;return t%360}function S3(e,t,r,n){var a=!1,i=Qbe(t),o=Math.abs(e?r.attr("y")-t.attr("y"):r.attr("x")-t.attr("x")),s=(e?r.attr("y")>t.attr("y"):r.attr("x")>t.attr("x"))?t.getBBox():r.getBBox();if(e){var l=Math.abs(Math.cos(i));ES(l,0,Math.PI/180)?a=s.width+n>o:a=s.height/l+n>o}else{var l=Math.abs(Math.sin(i));ES(l,0,Math.PI/180)?a=s.width+n>o:a=s.height/l+n>o}return a}function Ky(e,t,r,n){var a=(n==null?void 0:n.minGap)||0,i=t.getChildren().slice().filter(function(f){return f.get("visible")});if(!i.length)return!1;var o=!1;r&&i.reverse();for(var s=i.length,l=i[0],A=l,c=1;c<s;c++){var u=i[c];u.getBBox();var d=S3(e,A,u,a);d?(u.hide(),o=!0):A=u}return o}function Dbe(e,t,r){var n=(r==null?void 0:r.minGap)||0,a=t.getChildren().slice();if(a.length<2)return!1;var i=!1,o=a[0],s=o.getBBox(),l=a[1],A=a.length,c=Qbe(o),u=Math.abs(e?l.attr("y")-o.attr("y"):l.attr("x")-o.attr("x")),d=0;if(e){var f=Math.abs(Math.cos(c));if(ES(f,0,Math.PI/180)){var h=I3(a);d=(h+n)/u}else d=(s.height/f+n)/u}else{var f=Math.abs(Math.sin(c));if(ES(f,0,Math.PI/180)){var h=I3(a);d=(h+n)/u}else d=(s.height/f+n)/u}if(d>1){d=Math.ceil(d);for(var g=0;g<A;g++)g%d!==0&&(a[g].hide(),i=!0)}return i}function lxt(){return Fbe}function Axt(e,t,r,n){return Ky(e,t,!1,n)}function cxt(e,t,r,n){return Ky(e,t,!0,n)}function uxt(e,t,r,n){var a=(n==null?void 0:n.minGap)||0,i=t.getChildren().slice();if(i.length<=2)return!1;for(var o=!1,s=i.length,l=i[0],A=i[s-1],c=l,u=1;u<s-1;u++){var d=i[u];d.getBBox();var f=S3(e,c,d,a);f?(d.hide(),o=!0):c=d}var h=S3(e,c,A,a);return h&&(c.hide(),o=!0),o}function Fbe(e,t,r,n){var a=Dbe(e,t,n);return Ky(e,t,!1)&&(a=!0),a}function dxt(e,t,r,n){var a=t.getChildren().slice(),i=Dbe(e,t,n);if(a.length>2){var o=a[0],s=a[a.length-1];o.get("visible")||(o.show(),Ky(e,t,!1,n)&&(i=!0)),s.get("visible")||(s.show(),Ky(e,t,!0,n)&&(i=!0))}return i}const fxt=Object.freeze(Object.defineProperty({__proto__:null,equidistance:Fbe,equidistanceWithReverseBoth:dxt,getDefault:lxt,reserveBoth:uxt,reserveFirst:Axt,reserveLast:cxt},Symbol.toStringTag,{value:"Module"}));function hxt(e,t){Ht(e,function(r){var n=r.attr("x"),a=r.attr("y"),i=uh({x:n,y:a},t);r.attr("matrix",i)})}function _be(e,t,r,n){var a=t.getChildren();if(!a.length||!e&&a.length<2)return!1;var i=I3(a),o=!1;if(e)o=!!r&&i>r;else{var s=Math.abs(a[1].attr("x")-a[0].attr("x"));o=i>s}if(o){var l=n(r,i);hxt(a,l)}return o}function gxt(){return Nbe}function Nbe(e,t,r,n){return _be(e,t,r,function(){return $n(n)?n:e?Zr.verticalAxisRotate:Zr.horizontalAxisRotate})}function pxt(e,t,r){return _be(e,t,r,function(n,a){if(!n)return e?Zr.verticalAxisRotate:Zr.horizontalAxisRotate;if(e)return-Math.acos(n/a);var i=0;return n>a?i=Math.PI/4:(i=Math.asin(n/a),i>Math.PI/4&&(i=Math.PI/4)),i})}const vxt=Object.freeze(Object.defineProperty({__proto__:null,fixedAngle:Nbe,getDefault:gxt,unfixedAngle:pxt},Symbol.toStringTag,{value:"Module"})),kbe=Object.freeze(Object.defineProperty({__proto__:null,autoEllipsis:oxt,autoHide:fxt,autoRotate:vxt},Symbol.toStringTag,{value:"Module"}));var mxt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getLinePath=function(){var r=this.get("start"),n=this.get("end"),a=[];return a.push(["M",r.x,r.y]),a.push(["L",n.x,n.y]),a},t.prototype.getInnerLayoutBBox=function(){var r=this.get("start"),n=this.get("end"),a=e.prototype.getInnerLayoutBBox.call(this),i=Math.min(r.x,n.x,a.x),o=Math.min(r.y,n.y,a.y),s=Math.max(r.x,n.x,a.maxX),l=Math.max(r.y,n.y,a.maxY);return{x:i,y:o,minX:i,minY:o,maxX:s,maxY:l,width:s-i,height:l-o}},t.prototype.isVertical=function(){var r=this.get("start"),n=this.get("end");return BA(r.x,n.x)},t.prototype.isHorizontal=function(){var r=this.get("start"),n=this.get("end");return BA(r.y,n.y)},t.prototype.getTickPoint=function(r){var n=this,a=n.get("start"),i=n.get("end"),o=i.x-a.x,s=i.y-a.y;return{x:a.x+o*r,y:a.y+s*r}},t.prototype.getSideVector=function(r){var n=this.getAxisVector(),a=_U([0,0],n),i=this.get("verticalFactor"),o=[a[1],a[0]*-1];return Nu([0,0],o,r*i)},t.prototype.getAxisVector=function(){var r=this.get("start"),n=this.get("end");return[n.x-r.x,n.y-r.y]},t.prototype.processOverlap=function(r){var n=this,a=this.isVertical(),i=this.isHorizontal();if(!(!a&&!i)){var o=this.get("label"),s=this.get("title"),l=this.get("verticalLimitLength"),A=o.offset,c=l,u=0,d=0;s&&(u=s.style.fontSize,d=s.spacing),c&&(c=c-A-d-u);var f=this.get("overlapOrder");if(Ht(f,function(p){o[p]&&n.canProcessOverlap(p)&&n.autoProcessOverlap(p,o[p],r,c)}),s&&sr(s.offset)){var h=r.getCanvasBBox(),g=a?h.width:h.height;s.offset=A+g+d+u/2}}},t.prototype.canProcessOverlap=function(r){var n=this.get("label");return r==="autoRotate"?sr(n.rotate):!0},t.prototype.autoProcessOverlap=function(r,n,a,i){var o=this,s=this.isVertical(),l=!1,A=kbe[r];if(n===!0)this.get("label"),l=A.getDefault()(s,a,i);else if(Fn(n))l=n(s,a,i);else if(ns(n)){var c=n;A[c.type]&&(l=A[c.type](s,a,i,c.cfg))}else A[n]&&(l=A[n](s,a,i));if(r==="autoRotate"){if(l){var u=a.getChildren(),d=this.get("verticalFactor");Ht(u,function(h){var g=h.attr("textAlign");if(g==="center"){var p=d>0?"end":"start";h.attr("textAlign",p)}})}}else if(r==="autoHide"){var f=a.getChildren().slice(0);Ht(f,function(h){h.get("visible")||(o.get("isRegister")&&o.unregisterElement(h),h.remove())})}},t}(i6),Ext=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},t.prototype.getLinePath=function(){var r=this.get("center"),n=r.x,a=r.y,i=this.get("radius"),o=i,s=this.get("startAngle"),l=this.get("endAngle"),A=[];if(Math.abs(l-s)===Math.PI*2)A=[["M",n,a-o],["A",i,o,0,1,1,n,a+o],["A",i,o,0,1,1,n,a-o],["Z"]];else{var c=this.getCirclePoint(s),u=this.getCirclePoint(l),d=Math.abs(l-s)>Math.PI?1:0,f=s>l?0:1;A=[["M",n,a],["L",c.x,c.y],["A",i,o,0,d,f,u.x,u.y],["L",n,a]]}return A},t.prototype.getTickPoint=function(r){var n=this.get("startAngle"),a=this.get("endAngle"),i=n+(a-n)*r;return this.getCirclePoint(i)},t.prototype.getSideVector=function(r,n){var a=this.get("center"),i=[n.x-a.x,n.y-a.y],o=this.get("verticalFactor"),s=Lu(i);return Nu(i,i,o*r/s),i},t.prototype.getAxisVector=function(r){var n=this.get("center"),a=[r.x-n.x,r.y-n.y];return[a[1],-1*a[0]]},t.prototype.getCirclePoint=function(r,n){var a=this.get("center");return n=n||this.get("radius"),{x:a.x+Math.cos(r)*n,y:a.y+Math.sin(r)*n}},t.prototype.canProcessOverlap=function(r){var n=this.get("label");return r==="autoRotate"?sr(n.rotate):!0},t.prototype.processOverlap=function(r){var n=this,a=this.get("label"),i=this.get("title"),o=this.get("verticalLimitLength"),s=a.offset,l=o,A=0,c=0;i&&(A=i.style.fontSize,c=i.spacing),l&&(l=l-s-c-A);var u=this.get("overlapOrder");if(Ht(u,function(f){a[f]&&n.canProcessOverlap(f)&&n.autoProcessOverlap(f,a[f],r,l)}),i&&sr(i.offset)){var d=r.getCanvasBBox().height;i.offset=s+d+c+A/2}},t.prototype.autoProcessOverlap=function(r,n,a,i){var o=this,s=!1,l=kbe[r];if(i>0)if(n===!0)s=l.getDefault()(!1,a,i);else if(Fn(n))s=n(!1,a,i);else if(ns(n)){var A=n;l[A.type]&&(s=l[A.type](!1,a,i,A.cfg))}else l[n]&&(s=l[n](!1,a,i));if(r==="autoRotate"){if(s){var c=a.getChildren(),u=this.get("verticalFactor");Ht(c,function(f){var h=f.attr("textAlign");if(h==="center"){var g=u>0?"end":"start";f.attr("textAlign",g)}})}}else if(r==="autoHide"){var d=a.getChildren().slice(0);Ht(d,function(f){f.get("visible")||(o.get("isRegister")&&o.unregisterElement(f),f.remove())})}},t}(i6);const yxt=Object.freeze(Object.defineProperty({__proto__:null,Base:i6,Circle:Ext,Line:mxt},Symbol.toStringTag,{value:"Module"}));var s6=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Zr.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:Zr.textColor,textAlign:"center",textBaseline:"middle",fontFamily:Zr.fontFamily}},textBackground:{padding:5,style:{stroke:Zr.lineColor}}}})},t.prototype.renderInner=function(r){this.get("line")&&this.renderLine(r),this.get("text")&&(this.renderText(r),this.renderBackground(r))},t.prototype.renderText=function(r){var n=this.get("text"),a=n.style,i=n.autoRotate,o=n.content;if(!sr(o)){var s=this.getTextPoint(),l=null;if(i){var A=this.getRotateAngle();l=uh(s,A)}this.addShape(r,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Tt(Tt(Tt({},s),{text:o,matrix:l}),a)})}},t.prototype.renderLine=function(r){var n=this.getLinePath(),a=this.get("line"),i=a.style;this.addShape(r,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Tt({path:n},i)})},t.prototype.renderBackground=function(r){var n=this.getElementId("text"),a=r.findById(n),i=this.get("textBackground");if(i&&a){var o=a.getBBox(),s=mS(i.padding),l=i.style,A=this.addShape(r,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Tt({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:a.attr("matrix")},l)});A.toBack()}},t}(hi),Cxt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getRotateAngle=function(){var r=this.getLocation(),n=r.start,a=r.end,i=this.get("text").position,o=Math.atan2(a.y-n.y,a.x-n.x),s=i==="start"?o-Math.PI/2:o+Math.PI/2;return s},t.prototype.getTextPoint=function(){var r=this.getLocation(),n=r.start,a=r.end,i=this.get("text"),o=i.position,s=i.offset;return Mbe(n,a,o,s)},t.prototype.getLinePath=function(){var r=this.getLocation(),n=r.start,a=r.end;return[["M",n.x,n.y],["L",a.x,a.y]]},t}(s6),wxt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},t.prototype.getRotateAngle=function(){var r=this.getLocation(),n=r.startAngle,a=r.endAngle,i=this.get("text").position,o=i==="start"?n+Math.PI/2:a-Math.PI/2;return o},t.prototype.getTextPoint=function(){var r=this.get("text"),n=r.position,a=r.offset,i=this.getLocation(),o=i.center,s=i.radius,l=i.startAngle,A=i.endAngle,c=n==="start"?l:A,u=this.getRotateAngle()-Math.PI,d=Kp(o,s,c),f=Math.cos(u)*a,h=Math.sin(u)*a;return{x:d.x+f,y:d.y+h}},t.prototype.getLinePath=function(){var r=this.getLocation(),n=r.center,a=r.radius,i=r.startAngle,o=r.endAngle,s=null;if(o-i===Math.PI*2){var l=n.x,A=n.y;s=[["M",l,A-a],["A",a,a,0,1,1,l,A+a],["A",a,a,0,1,1,l,A-a],["Z"]]}else{var c=Kp(n,a,i),u=Kp(n,a,o),d=Math.abs(o-i)>Math.PI?1:0,f=i>o?0:1;s=[["M",c.x,c.y],["A",a,a,0,d,f,u.x,u.y]]}return s},t}(s6),Vy="g2-crosshair",R3=Vy+"-line",T3=Vy+"-text",DE;const Bxt=(DE={},DE[""+Vy]={position:"relative"},DE[""+R3]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},DE[""+T3]={position:"absolute",color:Zr.textColor,fontFamily:Zr.fontFamily},DE);var Mxt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+Vy+'"></div>',crosshairTpl:'<div class="'+R3+'"></div>',textTpl:'<span class="'+T3+'">{content}</span>',domStyles:null,containerClassName:Vy,defaultStyles:Bxt,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},t.prototype.render=function(){this.resetText(),this.resetPosition()},t.prototype.initCrossHair=function(){var r=this.getContainer(),n=this.get("crosshairTpl"),a=Wu(n);r.appendChild(a),this.applyStyle(R3,a),this.set("crosshairEl",a)},t.prototype.getTextPoint=function(){var r=this.getLocation(),n=r.start,a=r.end,i=this.get("text"),o=i.position,s=i.offset;return Mbe(n,a,o,s)},t.prototype.resetText=function(){var r=this.get("text"),n=this.get("textEl");if(r){var a=r.content;if(!n){var i=this.getContainer(),o=IU(this.get("textTpl"),r);n=Wu(o),i.appendChild(n),this.applyStyle(T3,n),this.set("textEl",n)}n.innerHTML=a}else n&&n.remove()},t.prototype.isVertical=function(r,n){return r.x===n.x},t.prototype.resetPosition=function(){var r=this.get("crosshairEl");r||(this.initCrossHair(),r=this.get("crosshairEl"));var n=this.get("start"),a=this.get("end"),i=Math.min(n.x,a.x),o=Math.min(n.y,a.y);this.isVertical(n,a)?Li(r,{width:"1px",height:Io(Math.abs(a.y-n.y))}):Li(r,{height:"1px",width:Io(Math.abs(a.x-n.x))}),Li(r,{top:Io(o),left:Io(i)}),this.alignText()},t.prototype.alignText=function(){var r=this.get("textEl");if(r){var n=this.get("text").align,a=r.clientWidth,i=this.getTextPoint();switch(n){case"center":i.x=i.x-a/2;break;case"right":i.x=i.x-a}Li(r,{top:Io(i.y),left:Io(i.x)})}},t.prototype.updateInner=function(r){od(r,"text")&&this.resetText(),e.prototype.updateInner.call(this,r)},t}(b2);const xxt=Object.freeze(Object.defineProperty({__proto__:null,Base:s6,Circle:wxt,Html:Mxt,Line:Cxt},Symbol.toStringTag,{value:"Module"}));var l6=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:Zr.lineColor}}}})},t.prototype.getLineType=function(){var r=this.get("line")||this.get("defaultCfg").line;return r.type},t.prototype.renderInner=function(r){this.drawGrid(r)},t.prototype.getAlternatePath=function(r,n){var a=this.getGridPath(r),i=n.slice(0).reverse(),o=this.getGridPath(i,!0),s=this.get("closed");return s?a=a.concat(o):(o[0][0]="L",a=a.concat(o),a.push(["Z"])),a},t.prototype.getPathStyle=function(){return this.get("line").style},t.prototype.drawGrid=function(r){var n=this,a=this.get("line"),i=this.get("items"),o=this.get("alternateColor"),s=null;Ht(i,function(l,A){var c=l.id||A;if(a){var u=n.getPathStyle();u=Fn(u)?u(l,A,i):u;var d=n.getElementId("line-"+c),f=n.getGridPath(l.points);n.addShape(r,{type:"path",name:"grid-line",id:d,attrs:pa({path:f},u)})}if(o&&A>0){var h=n.getElementId("region-"+c),g=A%2===0;if(jn(o))g&&n.drawAlternateRegion(h,r,s.points,l.points,o);else{var p=g?o[1]:o[0];n.drawAlternateRegion(h,r,s.points,l.points,p)}}s=l})},t.prototype.drawAlternateRegion=function(r,n,a,i,o){var s=this.getAlternatePath(a,i);this.addShape(n,{type:"path",id:r,name:"grid-region",attrs:{path:s,fill:o}})},t}(hi);function Ixt(e,t,r,n){var a=r-e,i=n-t;return Math.sqrt(a*a+i*i)}var bxt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{type:"circle",center:null,closed:!0})},t.prototype.getGridPath=function(r,n){var a=this.getLineType(),i=this.get("closed"),o=[];if(r.length)if(a==="circle"){var s=this.get("center"),l=r[0],A=Ixt(s.x,s.y,l.x,l.y),c=n?0:1;i?(o.push(["M",s.x,s.y-A]),o.push(["A",A,A,0,0,c,s.x,s.y+A]),o.push(["A",A,A,0,0,c,s.x,s.y-A]),o.push(["Z"])):Ht(r,function(u,d){d===0?o.push(["M",u.x,u.y]):o.push(["A",A,A,0,0,c,u.x,u.y])})}else Ht(r,function(u,d){d===0?o.push(["M",u.x,u.y]):o.push(["L",u.x,u.y])}),i&&o.push(["Z"]);return o},t}(l6),Sxt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{type:"line"})},t.prototype.getGridPath=function(r){var n=[];return Ht(r,function(a,i){i===0?n.push(["M",a.x,a.y]):n.push(["L",a.x,a.y])}),n},t}(l6);const Rxt=Object.freeze(Object.defineProperty({__proto__:null,Base:l6,Circle:bxt,Line:Sxt},Symbol.toStringTag,{value:"Module"}));var A6=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},t.prototype.getLayoutBBox=function(){var r=e.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),a=this.get("maxHeight"),i=r.width,o=r.height;return n&&(i=Math.min(i,n)),a&&(o=Math.min(o,a)),x2(r.minX,r.minY,i,o)},t.prototype.setLocation=function(r){this.set("x",r.x),this.set("y",r.y),this.resetLocation()},t.prototype.resetLocation=function(){var r=this.get("x"),n=this.get("y"),a=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:r+a,y:n+i})},t.prototype.applyOffset=function(){this.resetLocation()},t.prototype.getDrawPoint=function(){return this.get("currentPoint")},t.prototype.setDrawPoint=function(r){return this.set("currentPoint",r)},t.prototype.renderInner=function(r){this.resetDraw(),this.get("title")&&this.drawTitle(r),this.drawLegendContent(r),this.get("background")&&this.drawBackground(r)},t.prototype.drawBackground=function(r){var n=this.get("background"),a=r.getBBox(),i=mS(n.padding),o=Tt({x:0,y:0,width:a.width+i[1]+i[3],height:a.height+i[0]+i[2]},n.style),s=this.addShape(r,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});s.toBack()},t.prototype.drawTitle=function(r){var n=this.get("currentPoint"),a=this.get("title"),i=a.spacing,o=a.style,s=a.text,l=this.addShape(r,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Tt({text:s,x:n.x,y:n.y},o)}),A=l.getBBox();this.set("currentPoint",{x:n.x,y:A.maxY+i})},t.prototype.resetDraw=function(){var r=this.get("background"),n={x:0,y:0};if(r){var a=mS(r.padding);n.x=a[3],n.y=a[0]}this.set("currentPoint",n)},t}(hi),S8={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},YB={fill:Zr.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:Zr.fontFamily,fontWeight:"normal",lineHeight:12},R8="navigation-arrow-right",T8="navigation-arrow-left",poe={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},Txt=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.currentPageIndex=1,r.totalPagesCnt=1,r.pageWidth=0,r.pageHeight=0,r.startX=0,r.startY=0,r.onNavigationBack=function(){var n=r.getElementByLocalId("item-group");if(r.currentPageIndex>1){r.currentPageIndex-=1,r.updateNavigation();var a=r.getCurrentNavigationMatrix();r.get("animate")?n.animate({matrix:a},100):n.attr({matrix:a})}},r.onNavigationAfter=function(){var n=r.getElementByLocalId("item-group");if(r.currentPageIndex<r.totalPagesCnt){r.currentPageIndex+=1,r.updateNavigation();var a=r.getCurrentNavigationMatrix();r.get("animate")?n.animate({matrix:a},100):n.attr({matrix:a})}},r}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:Zr.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:Zr.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:S8,itemName:{spacing:16,style:YB},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:YB,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:Zr.uncheckedColor},markerStyle:{fill:Zr.uncheckedColor,stroke:Zr.uncheckedColor}},inactive:{nameStyle:{fill:Zr.uncheckedColor},markerStyle:{opacity:.2}}}}})},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get("items")},t.prototype.setItems=function(r){this.update({items:r})},t.prototype.updateItem=function(r,n){pa(r,n),this.clear(),this.render()},t.prototype.clearItems=function(){var r=this.getElementByLocalId("item-group");r&&r.clear()},t.prototype.setItemState=function(r,n,a){r[n]=a;var i=this.getElementByLocalId("item-"+r.id);if(i){var o=this.getItems(),s=o.indexOf(r),l=this.createOffScreenGroup(),A=this.drawItem(r,s,this.getItemHeight(),l);this.updateElements(A,i),this.clearUpdateStatus(i)}},t.prototype.hasState=function(r,n){return!!r[n]},t.prototype.getItemStates=function(r){var n=this.get("itemStates"),a=[];return Ht(n,function(i,o){r[o]&&a.push(o)}),a},t.prototype.clearItemsState=function(r){var n=this,a=this.getItemsByState(r);Ht(a,function(i){n.setItemState(i,r,!1)})},t.prototype.getItemsByState=function(r){var n=this,a=this.getItems();return $v(a,function(i){return n.hasState(i,r)})},t.prototype.drawLegendContent=function(r){this.processItems(),this.drawItems(r)},t.prototype.processItems=function(){var r=this.get("items");Ht(r,function(n){n.id||(n.id=n.name)})},t.prototype.drawItems=function(r){var n=this,a=this.addGroup(r,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),i=this.addGroup(a,{id:this.getElementId("item-group"),name:"legend-item-group"}),o=this.getItemHeight(),s=this.get("itemWidth"),l=this.get("itemSpacing"),A=this.get("itemMarginBottom"),c=this.get("currentPoint"),u=c.x,d=c.y,f=this.get("layout"),h=this.get("items"),g=!1,p=0,E=this.get("maxWidth"),y=this.get("maxHeight");Ht(h,function(C,w){var B=n.drawItem(C,w,o,i),M=B.getBBox(),I=s||M.width;I>p&&(p=I),f==="horizontal"?(E&&E<c.x+I-u&&(g=!0,c.x=u,c.y+=o+A),n.moveElementTo(B,c),c.x+=I+l):(y&&y<c.y+o+A-d&&(g=!0,c.x+=p+l,c.y=d,p=0),n.moveElementTo(B,c),c.y+=o+A)}),g&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=d,this.adjustNavigation(r,i))},t.prototype.getItemHeight=function(){var r=this.get("itemHeight");if(!r){var n=(this.get("itemName")||{}).style;if(Fn(n)){var a=this.getItems();a.forEach(function(i,o){var s=Tt(Tt({},YB),n(i,o,a)).fontSize;r<s&&(r=s)})}else n&&(r=n.fontSize)}return r},t.prototype.drawMarker=function(r,n,a,i){var o=Tt(Tt(Tt({x:0,y:i/2},n.style),{symbol:cn(a.marker,"symbol","circle")}),cn(a.marker,"style",{})),s=this.addShape(r,{type:"marker",id:this.getElementId("item-"+a.id+"-marker"),name:"legend-item-marker",attrs:o}),l=s.getBBox();s.attr("x",l.width/2);var A=s.attr(),c=A.stroke,u=A.fill;return c&&s.set("isStroke",!0),u&&s.set("isFill",!0),s},t.prototype.drawItemText=function(r,n,a,i,o,s,l){var A=a.formatter,c=a.style,u=Tt(Tt({x:s,y:o/2,text:A?A(i[n],i,l):i[n]},YB),Fn(c)?c(i,l,this.getItems()):c);return this.addShape(r,{type:"text",id:this.getElementId("item-"+i.id+"-"+n),name:"legend-item-"+n,attrs:u})},t.prototype.drawRadio=function(r,n,a,i,o){var s,l,A=n.style||{},c=(s=A.r)!==null&&s!==void 0?s:i/2,u=c*3.6/8,d=[o+c,i/2-c],f=d[0],h=d[1],g=[f+c,h+c],p=g[0],E=g[1],y=[f,E+c],C=y[0],w=y[1],B=[o,h+c],M=B[0],I=B[1],S=a.showRadio,R=Tt(Tt({path:[["M",f,h],["A",c,c,0,0,1,p,E],["L",p-u,E],["L",p,E],["A",c,c,0,0,1,C,w],["L",C,w-u],["L",C,w],["A",c,c,0,0,1,M,I],["L",M+u,I],["L",M,I],["A",c,c,0,0,1,f,h],["L",f,h+u]],stroke:"#000000",fill:"#ffffff"},A),{opacity:S?(l=A==null?void 0:A.opacity)!==null&&l!==void 0?l:.45:0}),b=this.addShape(r,{type:"path",id:this.getElementId("item-"+a.id+"-radio"),name:"legend-item-radio",attrs:R});return b.set("tip",n.tip),b},t.prototype.drawItem=function(r,n,a,i){var o="item-"+r.id,s=this.addGroup(i,{name:"legend-item-container",id:this.getElementId("item-container-"+o),delegateObject:{item:r,index:n}}),l=this.addGroup(s,{name:"legend-item",id:this.getElementId(o),delegateObject:{item:r,index:n}}),A=this.get("marker"),c=this.get("itemName"),u=this.get("itemValue"),d=this.get("itemBackground"),f=this.get("radio"),h=this.getLimitItemWidth(),g=0;if(A){var p=this.drawMarker(l,A,r,a),E=A.spacing,y=cn(r,["marker","spacing"]);$n(y)&&(E=y),g=p.getBBox().maxX+E}if(c){var C=this.drawItemText(l,"name",c,r,a,g,n);h&&oy(!0,C,Yi(h-g,0,h)),g=C.getBBox().maxX+c.spacing}if(u){var w=this.drawItemText(l,"value",u,r,a,g,n);h&&(u.alignRight?(w.attr({textAlign:"right",x:h}),oy(!0,w,Yi(h-g,0,h),"head")):oy(!0,w,Yi(h-g,0,h))),g=w.getBBox().maxX+u.spacing}if(f&&this.drawRadio(l,f,r,a,g),d){var B=l.getBBox(),M=this.addShape(l,{type:"rect",name:"legend-item-background",id:this.getElementId(o+"-background"),attrs:Tt({x:0,y:0,width:B.width,height:a},d.style)});M.toBack()}return this.applyItemStates(r,l),l},t.prototype.adjustNavigation=function(r,n){var a=this,i=this.startX,o=this.startY,s=this.get("layout"),l=n.findAll(function(D){return D.get("name")==="legend-item"}),A=this.get("maxWidth"),c=this.get("maxHeight"),u=this.get("itemWidth"),d=this.get("itemSpacing"),f=this.getItemHeight(),h=Fc({},S8,this.get("pageNavigator")),g=this.drawNavigation(r,s,"00/00",h),p=g.getBBox(),E={x:i,y:o},y=1,C=0,w=0,B=0,M=this.get("itemMarginBottom");function I(D,F){var N=D.getBBox(),k=u||N.width,O=F.x+k+d+p.width;return O>A}if(s==="horizontal"){var S=this.get("maxRow")||1,R=f+(S===1?0:M),b=A-d-p.width-p.minX;this.pageHeight=R*S,this.pageWidth=b,Ht(l,function(D){var F=D.getBBox(),N=u||F.width;(C&&C<E.x+N+d||I(D,E))&&(y===1&&(C=E.x+d,a.moveElementTo(g,{x:b,y:E.y+f/2-p.height/2-p.minY})),y+=1,E.x=i,E.y+=R),a.moveElementTo(D,E),D.getParent().setClip({type:"rect",attrs:{x:E.x,y:E.y,width:N+d,height:f}}),E.x+=N+d})}else{Ht(l,function(D){var F=D.getBBox();F.width>w&&(w=F.width)}),B=w,w+=d,A&&(w=Math.min(A,w),B=Math.min(A,B)),this.pageWidth=w,this.pageHeight=c-Math.max(p.height,f+M);var Q=Math.floor(this.pageHeight/(f+M));Ht(l,function(D,F){F!==0&&F%Q===0&&(y+=1,E.x+=w,E.y=o),a.moveElementTo(D,E),D.getParent().setClip({type:"rect",attrs:{x:E.x,y:E.y,width:w,height:f}}),E.y+=f+M}),this.totalPagesCnt=y,this.moveElementTo(g,{x:i+B/2-p.width/2-p.minX,y:c-p.height-p.minY})}this.pageHeight&&this.pageWidth&&n.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),s==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(y/this.get("maxRow")):this.totalPagesCnt=y,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),n.attr("matrix",this.getCurrentNavigationMatrix())},t.prototype.drawNavigation=function(r,n,a,i){var o={x:0,y:0},s=this.addGroup(r,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=cn(i.marker,"style",{}),A=l.size,c=A===void 0?12:A,u=Zv(l,["size"]),d=this.drawArrow(s,o,T8,n==="horizontal"?"up":"left",c,u);d.on("click",this.onNavigationBack);var f=d.getBBox();o.x+=f.width+2;var h=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:Tt({x:o.x,y:o.y+c/2,text:a,textBaseline:"middle"},cn(i.text,"style"))}),g=h.getBBox();o.x+=g.width+2;var p=this.drawArrow(s,o,R8,n==="horizontal"?"down":"right",c,u);return p.on("click",this.onNavigationAfter),s},t.prototype.updateNavigation=function(r){var n=Fc({},S8,this.get("pageNavigator")),a=n.marker.style,i=a.fill,o=a.opacity,s=a.inactiveFill,l=a.inactiveOpacity,A=this.currentPageIndex+"/"+this.totalPagesCnt,c=r?r.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=r?r.findById(this.getElementId(T8)):this.getElementByLocalId(T8),d=r?r.findById(this.getElementId(R8)):this.getElementByLocalId(R8);c.attr("text",A),u.attr("opacity",this.currentPageIndex===1?l:o),u.attr("fill",this.currentPageIndex===1?s:i),u.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),d.attr("opacity",this.currentPageIndex===this.totalPagesCnt?l:o),d.attr("fill",this.currentPageIndex===this.totalPagesCnt?s:i),d.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var f=u.getBBox().maxX+2;c.attr("x",f),f+=c.getBBox().width+2,this.updateArrowPath(d,{x:f,y:0})},t.prototype.drawArrow=function(r,n,a,i,o,s){var l=n.x,A=n.y,c=this.addShape(r,{type:"path",id:this.getElementId(a),name:a,attrs:Tt({size:o,direction:i,path:[["M",l+o/2,A],["L",l,A+o],["L",l+o,A+o],["Z"]],cursor:"pointer"},s)});return c.attr("matrix",uh({x:l+o/2,y:A+o/2},poe[i])),c},t.prototype.updateArrowPath=function(r,n){var a=n.x,i=n.y,o=r.attr(),s=o.size,l=o.direction,A=uh({x:a+s/2,y:i+s/2},poe[l]);r.attr("path",[["M",a+s/2,i],["L",a,i+s],["L",a+s,i+s],["Z"]]),r.attr("matrix",A)},t.prototype.getCurrentNavigationMatrix=function(){var r=this,n=r.currentPageIndex,a=r.pageWidth,i=r.pageHeight,o=this.get("layout"),s=o==="horizontal"?{x:0,y:i*(1-n)}:{x:a*(1-n),y:0};return t6(s)},t.prototype.applyItemStates=function(r,n){var a=this.getItemStates(r),i=a.length>0;if(i){var o=n.getChildren(),s=this.get("itemStates");Ht(o,function(l){var A=l.get("name"),c=A.split("-")[2],u=N0(r,c,s);u&&(l.attr(u),c==="marker"&&!(l.get("isStroke")&&l.get("isFill"))&&(l.get("isStroke")&&l.attr("fill",null),l.get("isFill")&&l.attr("stroke",null)))})}},t.prototype.getLimitItemWidth=function(){var r=this.get("itemWidth"),n=this.get("maxItemWidth");return n?r&&(n=r<=n?r:n):r&&(n=r),n},t}(A6),Qxt=1.4,voe=.4,Dxt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:Zr.textColor,textBaseline:"middle",fontFamily:Zr.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:Zr.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},t.prototype.isSlider=function(){return!0},t.prototype.getValue=function(){return this.getCurrentValue()},t.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},t.prototype.setRange=function(r,n){this.update({min:r,max:n})},t.prototype.setValue=function(r){var n=this.getValue();this.set("value",r);var a=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(a),this.delegateEmit("valuechanged",{originValue:n,value:r})},t.prototype.initEvent=function(){var r=this.get("group");this.bindSliderEvent(r),this.bindRailEvent(r),this.bindTrackEvent(r)},t.prototype.drawLegendContent=function(r){this.drawRail(r),this.drawLabels(r),this.fixedElements(r),this.resetTrack(r),this.resetTrackClip(r),this.get("slidable")&&this.resetHandlers(r)},t.prototype.bindSliderEvent=function(r){this.bindHandlersEvent(r)},t.prototype.bindHandlersEvent=function(r){var n=this;r.on("legend-handler-min:drag",function(a){var i=n.getValueByCanvasPoint(a.x,a.y),o=n.getCurrentValue(),s=o[1];s<i&&(s=i),n.setValue([i,s])}),r.on("legend-handler-max:drag",function(a){var i=n.getValueByCanvasPoint(a.x,a.y),o=n.getCurrentValue(),s=o[0];s>i&&(s=i),n.setValue([s,i])})},t.prototype.bindRailEvent=function(r){},t.prototype.bindTrackEvent=function(r){var n=this,a=null;r.on("legend-track:dragstart",function(i){a={x:i.x,y:i.y}}),r.on("legend-track:drag",function(i){if(a){var o=n.getValueByCanvasPoint(a.x,a.y),s=n.getValueByCanvasPoint(i.x,i.y),l=n.getCurrentValue(),A=l[1]-l[0],c=n.getRange(),u=s-o;u<0?l[0]+u>c.min?n.setValue([l[0]+u,l[1]+u]):n.setValue([c.min,c.min+A]):u>0&&(u>0&&l[1]+u<c.max?n.setValue([l[0]+u,l[1]+u]):n.setValue([c.max-A,c.max])),a={x:i.x,y:i.y}}}),r.on("legend-track:dragend",function(i){a=null})},t.prototype.drawLabels=function(r){this.drawLabel("min",r),this.drawLabel("max",r)},t.prototype.drawLabel=function(r,n){var a=this.get("label"),i=a.style,o=a.align,s=a.formatter,l=this.get(r),A=this.getLabelAlignAttrs(r,o),c="label-"+r;this.addShape(n,{type:"text",id:this.getElementId(c),name:"legend-label-"+r,attrs:Tt(Tt({x:0,y:0,text:Fn(s)?s(l):l},i),A)})},t.prototype.getLabelAlignAttrs=function(r,n){var a=this.isVertical(),i="center",o="middle";return a?(i="start",n!=="rail"?r==="min"?o="top":o="bottom":o="top"):n!=="rail"?(o="top",r==="min"?i="start":i="end"):(i="start",o="middle"),{textAlign:i,textBaseline:o}},t.prototype.getRailPath=function(r,n,a,i){var o=this.get("rail"),s=o.size,l=o.defaultLength,A=o.type,c=this.isVertical(),u=l,d=a,f=i;d||(d=c?s:u),f||(f=c?u:s);var h=[];return A==="color"?(h.push(["M",r,n]),h.push(["L",r+d,n]),h.push(["L",r+d,n+f]),h.push(["L",r,n+f]),h.push(["Z"])):(h.push(["M",r+d,n]),h.push(["L",r+d,n+f]),h.push(["L",r,n+f]),h.push(["Z"])),h},t.prototype.drawRail=function(r){var n=this.get("rail"),a=n.style;this.addShape(r,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:Tt({path:this.getRailPath(0,0)},a)})},t.prototype.getTrackColor=function(r){var n=r.length;if(!n)return null;if(n===1)return r[0];var a;this.isVertical()?a="l(90)":a="l(0)";for(var i=0;i<n;i++){var o=i/(n-1);a+=" "+o+":"+r[i]}return a},t.prototype.getTrackPath=function(r){var n=this.getRailShape(r),a=n.attr("path");return Ah(a)},t.prototype.getClipTrackAttrs=function(r){var n=this.getCurrentValue(),a=n[0],i=n[1],o=this.getRailBBox(r),s=this.getPointByValue(a,r),l=this.getPointByValue(i,r),A=this.isVertical(),c,u,d,f;return A?(c=o.minX,u=s.y,d=o.width,f=l.y-s.y):(c=s.x,u=o.minY,d=l.x-s.x,f=o.height),{x:c,y:u,width:d,height:f}},t.prototype.getTrackAttrs=function(r){var n=this.get("track"),a=this.get("colors"),i=this.getTrackPath(r);return pa({path:i,fill:this.getTrackColor(a)},n.style)},t.prototype.resetTrackClip=function(r){var n=r||this.get("group"),a=this.getElementId("track"),i=n.findById(a),o=i.getClip(),s=this.getClipTrackAttrs(r);o?o.attr(s):i.setClip({type:"rect",attrs:s})},t.prototype.resetTrack=function(r){var n=this.getElementId("track"),a=r.findById(n),i=this.getTrackAttrs(r);a?a.attr(i):this.addShape(r,{type:"path",id:n,draggable:this.get("slidable"),name:"legend-track",attrs:i})},t.prototype.getPointByValue=function(r,n){var a=this.getRange(),i=a.min,o=a.max,s=(r-i)/(o-i),l=this.getRailBBox(n),A=this.isVertical(),c={x:0,y:0};return A?(c.x=l.minX+l.width/2,c.y=Gf(l.minY,l.maxY,s)):(c.x=Gf(l.minX,l.maxX,s),c.y=l.minY+l.height/2),c},t.prototype.getRailShape=function(r){var n=r||this.get("group");return n.findById(this.getElementId("rail"))},t.prototype.getRailBBox=function(r){var n=this.getRailShape(r),a=n.getBBox();return a},t.prototype.getRailCanvasBBox=function(){var r=this.get("group"),n=r.findById(this.getElementId("rail")),a=n.getCanvasBBox();return a},t.prototype.isVertical=function(){return this.get("layout")==="vertical"},t.prototype.getValueByCanvasPoint=function(r,n){var a=this.getRange(),i=a.min,o=a.max,s=this.getRailCanvasBBox(),l=this.isVertical(),A=this.get("step"),c;l?c=(n-s.minY)/s.height:c=(r-s.minX)/s.width;var u=Gf(i,o,c);if(A){var d=Math.round((u-i)/A);u=i+d*A}return u>o&&(u=o),u<i&&(u=i),u},t.prototype.getCurrentValue=function(){var r=this.get("value");if(!r){var n=this.get("values");return n?[Math.max(Math.min.apply(Math,lh(n,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,lh(n,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return r},t.prototype.resetHandlers=function(r){var n=this.getCurrentValue(),a=n[0],i=n[1];this.resetHandler(r,"min",a),this.resetHandler(r,"max",i)},t.prototype.getHandlerPath=function(r,n){var a=this.isVertical(),i=[],o=r.size,s=n.x,l=n.y,A=o*Qxt,c=o/2,u=o/6;if(a){var d=s+A*voe;i.push(["M",s,l]),i.push(["L",d,l+c]),i.push(["L",s+A,l+c]),i.push(["L",s+A,l-c]),i.push(["L",d,l-c]),i.push(["Z"]),i.push(["M",d,l+u]),i.push(["L",s+A-2,l+u]),i.push(["M",d,l-u]),i.push(["L",s+A-2,l-u])}else{var f=l+A*voe;i.push(["M",s,l]),i.push(["L",s-c,f]),i.push(["L",s-c,l+A]),i.push(["L",s+c,l+A]),i.push(["L",s+c,f]),i.push(["Z"]),i.push(["M",s-u,f]),i.push(["L",s-u,l+A-2]),i.push(["M",s+u,f]),i.push(["L",s+u,l+A-2])}return i},t.prototype.resetHandler=function(r,n,a){var i=this.getPointByValue(a,r),o=this.get("handler"),s=this.getHandlerPath(o,i),l=this.getElementId("handler-"+n),A=r.findById(l),c=this.isVertical();A?A.attr("path",s):this.addShape(r,{type:"path",name:"legend-handler-"+n,draggable:!0,id:l,attrs:Tt(Tt({path:s},o.style),{cursor:c?"ns-resize":"ew-resize"})})},t.prototype.fixedElements=function(r){var n=r.findById(this.getElementId("rail")),a=r.findById(this.getElementId("label-min")),i=r.findById(this.getElementId("label-max")),o=this.getDrawPoint();this.isVertical()?this.fixedVertail(a,i,n,o):this.fixedHorizontal(a,i,n,o)},t.prototype.fitRailLength=function(r,n,a,i){var o=this.isVertical(),s=o?"height":"width",l=this.get("label"),A=l.align,c=l.spacing,u=this.get("max"+u2(s));if(u){var d=A==="rail"?a[s]+r[s]+n[s]+c*2:a[s],f=d-u;f>0&&this.changeRailLength(i,s,a[s]-f)}},t.prototype.changeRailLength=function(r,n,a){var i=r.getBBox(),o;n==="height"?o=this.getRailPath(i.x,i.y,i.width,a):o=this.getRailPath(i.x,i.y,a,i.height),r.attr("path",o)},t.prototype.changeRailPosition=function(r,n,a){var i=r.getBBox(),o=this.getRailPath(n,a,i.width,i.height);r.attr("path",o)},t.prototype.fixedHorizontal=function(r,n,a,i){var o=this.get("label"),s=o.align,l=o.spacing,A=a.getBBox(),c=r.getBBox(),u=n.getBBox(),d=A.height;this.fitRailLength(c,u,A,a),A=a.getBBox(),s==="rail"?(r.attr({x:i.x,y:i.y+d/2}),this.changeRailPosition(a,i.x+c.width+l,i.y),n.attr({x:i.x+c.width+A.width+l*2,y:i.y+d/2})):s==="top"?(r.attr({x:i.x,y:i.y}),n.attr({x:i.x+A.width,y:i.y}),this.changeRailPosition(a,i.x,i.y+c.height+l)):(this.changeRailPosition(a,i.x,i.y),r.attr({x:i.x,y:i.y+A.height+l}),n.attr({x:i.x+A.width,y:i.y+A.height+l}))},t.prototype.fixedVertail=function(r,n,a,i){var o=this.get("label"),s=o.align,l=o.spacing,A=a.getBBox(),c=r.getBBox(),u=n.getBBox();if(this.fitRailLength(c,u,A,a),A=a.getBBox(),s==="rail")r.attr({x:i.x,y:i.y}),this.changeRailPosition(a,i.x,i.y+c.height+l),n.attr({x:i.x,y:i.y+c.height+A.height+l*2});else if(s==="right")r.attr({x:i.x+A.width+l,y:i.y}),this.changeRailPosition(a,i.x,i.y),n.attr({x:i.x+A.width+l,y:i.y+A.height});else{var d=Math.max(c.width,u.width);r.attr({x:i.x,y:i.y}),this.changeRailPosition(a,i.x+d+l,i.y),n.attr({x:i.x,y:i.y+A.height})}},t}(A6);const Fxt=Object.freeze(Object.defineProperty({__proto__:null,Base:A6,Category:Txt,Continuous:Dxt},Symbol.toStringTag,{value:"Module"}));var yS="g2-tooltip",CS="g2-tooltip-title",wS="g2-tooltip-list",c6="g2-tooltip-list-item",u6="g2-tooltip-marker",d6="g2-tooltip-value",Pbe="g2-tooltip-name",f6="g2-tooltip-crosshair-x",h6="g2-tooltip-crosshair-y";const Obe=Object.freeze(Object.defineProperty({__proto__:null,CONTAINER_CLASS:yS,CROSSHAIR_X:f6,CROSSHAIR_Y:h6,LIST_CLASS:wS,LIST_ITEM_CLASS:c6,MARKER_CLASS:u6,NAME_CLASS:Pbe,TITLE_CLASS:CS,VALUE_CLASS:d6},Symbol.toStringTag,{value:"Module"}));var nA;const _xt=(nA={},nA[""+yS]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:Zr.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},nA[""+CS]={marginBottom:"4px"},nA[""+wS]={margin:"0px",listStyleType:"none",padding:"0px"},nA[""+c6]={listStyleType:"none",marginBottom:"4px"},nA[""+u6]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},nA[""+d6]={display:"inline-block",float:"right",marginLeft:"30px"},nA[""+f6]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},nA[""+h6]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},nA);function Nxt(e,t,r,n,a){var i={left:e<a.x,right:e+r>a.x+a.width,top:t<a.y,bottom:t+n>a.y+a.height};return i}function kxt(e,t,r,n,a,i){var o=e,s=t;switch(i){case"left":o=e-n-r,s=t-a/2;break;case"right":o=e+r,s=t-a/2;break;case"top":o=e-n/2,s=t-a-r;break;case"bottom":o=e-n/2,s=t+r;break;default:o=e+r,s=t-a-r;break}return{x:o,y:s}}function Pxt(e,t,r,n,a,i,o){var s=kxt(e,t,r,n,a,i);if(o){var l=Nxt(s.x,s.y,n,a,o);i==="auto"?(l.right&&(s.x=Math.max(0,e-n-r)),l.top&&(s.y=Math.max(0,t-a-r))):i==="top"||i==="bottom"?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-n),i==="top"&&l.top&&(s.y=t+r),i==="bottom"&&l.bottom&&(s.y=t-a-r)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-a),i==="left"&&l.left&&(s.x=e+r),i==="right"&&l.right&&(s.x=e-n-r))}return s}function Oxt(e,t){var r=!1;return Ht(t,function(n){if(od(e,n))return r=!0,!1}),r}var zxt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+yS+'"><div class="'+CS+'"></div><ul class="'+wS+'"></ul></div>',itemTpl:'<li class="'+c6+`" data-index={index}>
          <span class="`+u6+`" style="background:{color}"></span>
          <span class="`+Pbe+`">{name}</span>:
          <span class="`+d6+`">{value}</span>
        </li>`,xCrosshairTpl:'<div class="'+f6+'"></div>',yCrosshairTpl:'<div class="'+h6+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:yS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:_xt})},t.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},t.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},t.prototype.show=function(){var r=this.getContainer();!r||this.destroyed||(this.set("visible",!0),Li(r,{visibility:"visible"}),this.setCrossHairsVisible(!0))},t.prototype.hide=function(){var r=this.getContainer();!r||this.destroyed||(this.set("visible",!1),Li(r,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},t.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},t.prototype.setLocation=function(r){this.set("x",r.x),this.set("y",r.y),this.resetPosition()},t.prototype.setCrossHairsVisible=function(r){var n=r?"":"none",a=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");a&&Li(a,{display:n}),i&&Li(i,{display:n})},t.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var r=this.getHtmlContentNode();this.get("parent").appendChild(r),this.set("container",r),this.resetStyles(),this.applyStyles()}},t.prototype.updateInner=function(r){this.get("customContent")?this.renderCustomContent():(Oxt(r,["title","showTitle"])&&this.resetTitle(),od(r,"items")&&this.renderItems()),e.prototype.updateInner.call(this,r)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},t.prototype.resetPosition=function(){var r=this.get("x"),n=this.get("y"),a=this.get("offset"),i=this.getOffset(),o=i.offsetX,s=i.offsetY,l=this.get("position"),A=this.get("region"),c=this.getContainer(),u=this.getBBox(),d=u.width,f=u.height,h;A&&(h=Gy(A));var g=Pxt(r,n,a,d,f,l,h);Li(c,{left:Io(g.x+o),top:Io(g.y+s)}),this.resetCrosshairs()},t.prototype.renderCustomContent=function(){var r=this.getHtmlContentNode(),n=this.get("parent"),a=this.get("container");a&&a.parentNode===n?n.replaceChild(r,a):n.appendChild(r),this.set("container",r),this.resetStyles(),this.applyStyles()},t.prototype.getHtmlContentNode=function(){var r,n=this.get("customContent");if(n){var a=n(this.get("title"),this.get("items"));SU(a)?r=a:r=Wu(a)}return r},t.prototype.cacheDoms=function(){var r=this.getContainer(),n=r.getElementsByClassName(CS)[0],a=r.getElementsByClassName(wS)[0];this.set("titleDom",n),this.set("listDom",a)},t.prototype.resetTitle=function(){var r=this.get("title"),n=this.get("showTitle");n&&r?this.setTitle(r):this.setTitle("")},t.prototype.setTitle=function(r){var n=this.get("titleDom");n&&(n.innerText=r)},t.prototype.resetCrosshairs=function(){var r=this.get("crosshairsRegion"),n=this.get("crosshairs");if(!r||!n)this.clearCrosshairs();else{var a=Gy(r),i=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");n==="x"?(this.resetCrosshair("x",a),o&&(o.remove(),this.set("yCrosshairDom",null))):n==="y"?(this.resetCrosshair("y",a),i&&(i.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",a),this.resetCrosshair("y",a)),this.setCrossHairsVisible(this.get("visible"))}},t.prototype.resetCrosshair=function(r,n){var a=this.checkCrosshair(r),i=this.get(r);r==="x"?Li(a,{left:Io(i),top:Io(n.y),height:Io(n.height)}):Li(a,{top:Io(i),left:Io(n.x),width:Io(n.width)})},t.prototype.checkCrosshair=function(r){var n=r+"CrosshairDom",a=r+"CrosshairTpl",i="CROSSHAIR_"+r.toUpperCase(),o=Obe[i],s=this.get(n),l=this.get("parent");return s||(s=Wu(this.get(a)),this.applyStyle(o,s),l.appendChild(s),this.set(n,s)),s},t.prototype.renderItems=function(){this.clearItemDoms();var r=this.get("items"),n=this.get("itemTpl"),a=this.get("listDom");a&&(Ht(r,function(i){var o=jIe.toCSSGradient(i.color),s=Tt(Tt({},i),{color:o}),l=IU(n,s),A=Wu(l);a.appendChild(A)}),this.applyChildrenStyles(a,this.get("domStyles")))},t.prototype.clearItemDoms=function(){this.get("listDom")&&n6(this.get("listDom"))},t.prototype.clearCrosshairs=function(){var r=this.get("xCrosshairDom"),n=this.get("yCrosshairDom");r&&r.remove(),n&&n.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},t}(b2);const jxt=Object.freeze(Object.defineProperty({__proto__:null,Html:zxt},Symbol.toStringTag,{value:"Module"}));var Yxt={opacity:0},Lxt={stroke:"#C5C5C5",strokeOpacity:.85},Uxt={fill:"#CACED4",opacity:.85};function Hxt(e){return mA(e,function(t,r){var n=r===0?"M":"L",a=t[0],i=t[1];return[n,a,i]})}function zbe(e){return Hxt(e)}function Gxt(e){if(e.length<=2)return zbe(e);var t=[];Ht(e,function(o){sd(o,t.slice(t.length-2))||t.push(o[0],o[1])});var r=SIe(t,!1),n=wA(e),a=n[0],i=n[1];return r.unshift(["M",a,i]),r}function Kxt(e,t,r,n){n===void 0&&(n=!0);var a=new n1({values:e}),i=new r1({values:mA(e,function(s,l){return l})}),o=mA(e,function(s,l){return[i.scale(l)*t,r-a.scale(s)*r]});return n?Gxt(o):zbe(o)}function Vxt(e,t){var r=new n1({values:e}),n=r.max<0?r.max:Math.max(0,r.min);return t-r.scale(n)*t}function Jxt(e,t,r,n){var a=lh(e),i=Vxt(n,r);return a.push(["L",t,i]),a.push(["L",0,i]),a.push(["Z"]),a}var Wxt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:Yxt,lineStyle:Lxt,areaStyle:Uxt})},t.prototype.renderInner=function(r){var n=this.cfg,a=n.width,i=n.height,o=n.data,s=n.smooth,l=n.isArea,A=n.backgroundStyle,c=n.lineStyle,u=n.areaStyle;this.addShape(r,{id:this.getElementId("background"),type:"rect",attrs:Tt({x:0,y:0,width:a,height:i},A)});var d=Kxt(o,a,i,s);if(this.addShape(r,{id:this.getElementId("line"),type:"path",attrs:Tt({path:d},c)}),l){var f=Jxt(d,a,i,o);this.addShape(r,{id:this.getElementId("area"),type:"path",attrs:Tt({path:f},u)})}},t.prototype.applyOffset=function(){var r=this.cfg,n=r.x,a=r.y;this.moveElementTo(this.get("group"),{x:n,y:a})},t}(hi),jbe={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},moe=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"handler",x:0,y:0,width:10,height:24,style:jbe})},t.prototype.renderInner=function(r){var n=this.cfg,a=n.width,i=n.height,o=n.style,s=o.fill,l=o.stroke,A=o.radius,c=o.opacity,u=o.cursor;this.addShape(r,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:a,height:i,fill:s,stroke:l,radius:A,opacity:c,cursor:u}});var d=1/3*a,f=2/3*a,h=1/4*i,g=3/4*i;this.addShape(r,{id:this.getElementId("line-left"),type:"line",attrs:{x1:d,y1:h,x2:d,y2:g,stroke:l,cursor:u}}),this.addShape(r,{id:this.getElementId("line-right"),type:"line",attrs:{x1:f,y1:h,x2:f,y2:g,stroke:l,cursor:u}})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.bindEvents=function(){var r=this;this.get("group").on("mouseenter",function(){var n=r.get("style").highLightFill;r.getElementByLocalId("background").attr("fill",n),r.draw()}),this.get("group").on("mouseleave",function(){var n=r.get("style").fill;r.getElementByLocalId("background").attr("fill",n),r.draw()})},t.prototype.draw=function(){var r=this.get("container").get("canvas");r&&r.draw()},t}(hi),Xxt={fill:"#416180",opacity:.05},qxt={fill:"#5B8FF9",opacity:.15,cursor:"move"},kI=10,Zxt={width:kI,height:24},$xt={textBaseline:"middle",fill:"#000",opacity:.45},eIt="sliderchange",tIt=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.onMouseDown=function(n){return function(a){r.currentTarget=n;var i=a.originalEvent;i.stopPropagation(),i.preventDefault(),r.prevX=cn(i,"touches.0.pageX",i.pageX),r.prevY=cn(i,"touches.0.pageY",i.pageY);var o=r.getContainerDOM();o.addEventListener("mousemove",r.onMouseMove),o.addEventListener("mouseup",r.onMouseUp),o.addEventListener("mouseleave",r.onMouseUp),o.addEventListener("touchmove",r.onMouseMove),o.addEventListener("touchend",r.onMouseUp),o.addEventListener("touchcancel",r.onMouseUp)}},r.onMouseMove=function(n){var a=r.cfg.width,i=[r.get("start"),r.get("end")];n.stopPropagation(),n.preventDefault();var o=cn(n,"touches.0.pageX",n.pageX),s=cn(n,"touches.0.pageY",n.pageY),l=o-r.prevX,A=r.adjustOffsetRange(l/a);r.updateStartEnd(A),r.updateUI(r.getElementByLocalId("foreground"),r.getElementByLocalId("minText"),r.getElementByLocalId("maxText")),r.prevX=o,r.prevY=s,r.draw(),r.emit(eIt,[r.get("start"),r.get("end")].sort()),r.delegateEmit("valuechanged",{originValue:i,value:[r.get("start"),r.get("end")]})},r.onMouseUp=function(){r.currentTarget&&(r.currentTarget=void 0);var n=r.getContainerDOM();n&&(n.removeEventListener("mousemove",r.onMouseMove),n.removeEventListener("mouseup",r.onMouseUp),n.removeEventListener("mouseleave",r.onMouseUp),n.removeEventListener("touchmove",r.onMouseMove),n.removeEventListener("touchend",r.onMouseUp),n.removeEventListener("touchcancel",r.onMouseUp))},r}return t.prototype.setRange=function(r,n){this.set("minLimit",r),this.set("maxLimit",n);var a=this.get("start"),i=this.get("end"),o=Yi(a,r,n),s=Yi(i,r,n);!this.get("isInit")&&(a!==o||i!==s)&&this.setValue([o,s])},t.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},t.prototype.setValue=function(r){var n=this.getRange();if(En(r)&&r.length===2){var a=[this.get("start"),this.get("end")];this.update({start:Yi(r[0],n.min,n.max),end:Yi(r[1],n.min,n.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:a,value:r})}},t.prototype.getValue=function(){return[this.get("start"),this.get("end")]},t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:Xxt,foregroundStyle:qxt,handlerStyle:Zxt,textStyle:$xt}})},t.prototype.update=function(r){var n=r.start,a=r.end,i=Tt({},r);sr(n)||(i.start=Yi(n,0,1)),sr(a)||(i.end=Yi(a,0,1)),e.prototype.update.call(this,i),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},t.prototype.init=function(){this.set("start",Yi(this.get("start"),0,1)),this.set("end",Yi(this.get("end"),0,1)),e.prototype.init.call(this)},t.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},t.prototype.renderInner=function(r){var n=this.cfg;n.start,n.end;var a=n.width,i=n.height,o=n.trendCfg,s=o===void 0?{}:o,l=n.minText,A=n.maxText,c=n.backgroundStyle,u=c===void 0?{}:c,d=n.foregroundStyle,f=d===void 0?{}:d,h=n.textStyle,g=h===void 0?{}:h,p=Fc({},jbe,this.cfg.handlerStyle);WC(cn(s,"data"))&&(this.trend=this.addComponent(r,Tt({component:Wxt,id:this.getElementId("trend"),x:0,y:0,width:a,height:i},s))),this.addShape(r,{id:this.getElementId("background"),type:"rect",attrs:Tt({x:0,y:0,width:a,height:i},u)}),this.addShape(r,{id:this.getElementId("minText"),type:"text",attrs:Tt({y:i/2,textAlign:"right",text:l,silent:!1},g)}),this.addShape(r,{id:this.getElementId("maxText"),type:"text",attrs:Tt({y:i/2,textAlign:"left",text:A,silent:!1},g)}),this.addShape(r,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Tt({y:0,height:i},f)});var E=cn(p,"width",kI),y=cn(p,"height",24);this.minHandler=this.addComponent(r,{component:moe,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(i-y)/2,width:E,height:y,cursor:"ew-resize",style:p}),this.maxHandler=this.addComponent(r,{component:moe,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(i-y)/2,width:E,height:y,cursor:"ew-resize",style:p})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.updateUI=function(r,n,a){var i=this.cfg,o=i.start,s=i.end,l=i.width,A=i.minText,c=i.maxText,u=i.handlerStyle,d=i.height,f=o*l,h=s*l;this.trend&&(this.trend.update({width:l,height:d}),this.get("updateAutoRender")||this.trend.render()),r.attr("x",f),r.attr("width",h-f);var g=cn(u,"width",kI);n.attr("text",A),a.attr("text",c);var p=this._dodgeText([f,h],n,a),E=p[0],y=p[1];this.minHandler&&(this.minHandler.update({x:f-g/2}),this.get("updateAutoRender")||this.minHandler.render()),Ht(E,function(C,w){return n.attr(w,C)}),this.maxHandler&&(this.maxHandler.update({x:h-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),Ht(y,function(C,w){return a.attr(w,C)})},t.prototype.bindEvents=function(){var r=this.get("group");r.on("handler-min:mousedown",this.onMouseDown("minHandler")),r.on("handler-min:touchstart",this.onMouseDown("minHandler")),r.on("handler-max:mousedown",this.onMouseDown("maxHandler")),r.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var n=r.findById(this.getElementId("foreground"));n.on("mousedown",this.onMouseDown("foreground")),n.on("touchstart",this.onMouseDown("foreground"))},t.prototype.adjustOffsetRange=function(r){var n=this.cfg,a=n.start,i=n.end;switch(this.currentTarget){case"minHandler":{var o=0-a,s=1-a;return Math.min(s,Math.max(o,r))}case"maxHandler":{var o=0-i,s=1-i;return Math.min(s,Math.max(o,r))}case"foreground":{var o=0-a,s=1-i;return Math.min(s,Math.max(o,r))}}},t.prototype.updateStartEnd=function(r){var n=this.cfg,a=n.start,i=n.end;switch(this.currentTarget){case"minHandler":a+=r;break;case"maxHandler":i+=r;break;case"foreground":a+=r,i+=r;break}this.set("start",a),this.set("end",i)},t.prototype._dodgeText=function(r,n,a){var i,o,s=this.cfg,l=s.handlerStyle,A=s.width,c=2,u=cn(l,"width",kI),d=r[0],f=r[1],h=!1;d>f&&(i=[f,d],d=i[0],f=i[1],o=[a,n],n=o[0],a=o[1],h=!0);var g=n.getBBox(),p=a.getBBox(),E=g.width>d-c?{x:d+u/2+c,textAlign:"left"}:{x:d-u/2-c,textAlign:"right"},y=p.width>A-f-c?{x:f-u/2-c,textAlign:"right"}:{x:f+u/2+c,textAlign:"left"};return h?[y,E]:[E,y]},t.prototype.draw=function(){var r=this.get("container"),n=r&&r.get("canvas");n&&n.draw()},t.prototype.getContainerDOM=function(){var r=this.get("container"),n=r&&r.get("canvas");return n&&n.get("container")},t}(hi),rIt={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},Q8={default:rIt,hover:{thumbColor:"rgba(0,0,0,0.2)"}},nIt=function(e){Cr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.clearEvents=Qf,r.onStartEvent=function(n){return function(a){r.isMobile=n,a.originalEvent.preventDefault();var i=n?cn(a.originalEvent,"touches.0.clientX"):a.clientX,o=n?cn(a.originalEvent,"touches.0.clientY"):a.clientY;r.startPos=r.cfg.isHorizontal?i:o,r.bindLaterEvent()}},r.bindLaterEvent=function(){var n=r.getContainerDOM(),a=[];r.isMobile?a=[vf(n,"touchmove",r.onMouseMove),vf(n,"touchend",r.onMouseUp),vf(n,"touchcancel",r.onMouseUp)]:a=[vf(n,"mousemove",r.onMouseMove),vf(n,"mouseup",r.onMouseUp),vf(n,"mouseleave",r.onMouseUp)],r.clearEvents=function(){a.forEach(function(i){i.remove()})}},r.onMouseMove=function(n){var a=r.cfg,i=a.isHorizontal,o=a.thumbOffset;n.preventDefault();var s=r.isMobile?cn(n,"touches.0.clientX"):n.clientX,l=r.isMobile?cn(n,"touches.0.clientY"):n.clientY,A=i?s:l,c=A-r.startPos;r.startPos=A,r.updateThumbOffset(o+c)},r.onMouseUp=function(n){n.preventDefault(),r.clearEvents()},r.onTrackClick=function(n){var a=r.cfg,i=a.isHorizontal,o=a.x,s=a.y,l=a.thumbLen,A=r.getContainerDOM(),c=A.getBoundingClientRect(),u=n.clientX,d=n.clientY,f=i?u-c.left-o-l/2:d-c.top-s-l/2,h=r.validateRange(f);r.updateThumbOffset(h)},r.onThumbMouseOver=function(){var n=r.cfg.theme.hover.thumbColor;r.getElementByLocalId("thumb").attr("stroke",n),r.draw()},r.onThumbMouseOut=function(){var n=r.cfg.theme.default.thumbColor;r.getElementByLocalId("thumb").attr("stroke",n),r.draw()},r}return t.prototype.setRange=function(r,n){this.set("minLimit",r),this.set("maxLimit",n);var a=this.getValue(),i=Yi(a,r,n);a!==i&&!this.get("isInit")&&this.setValue(i)},t.prototype.getRange=function(){var r=this.get("minLimit")||0,n=this.get("maxLimit")||1;return{min:r,max:n}},t.prototype.setValue=function(r){var n=this.getRange(),a=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Yi(r,n.min,n.max)}),this.delegateEmit("valuechange",{originalValue:a,value:this.getValue()})},t.prototype.getValue=function(){return Yi(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return Tt(Tt({},r),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:Q8})},t.prototype.renderInner=function(r){this.renderTrackShape(r),this.renderThumbShape(r)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.renderTrackShape=function(r){var n=this.cfg,a=n.trackLen,i=n.theme,o=i===void 0?{default:{}}:i,s=Fc({},Q8,o).default,l=s.lineCap,A=s.trackColor,c=s.size,u=cn(this.cfg,"size",c),d=this.get("isHorizontal")?{x1:0+u/2,y1:u/2,x2:a-u/2,y2:u/2,lineWidth:u,stroke:A,lineCap:l}:{x1:u/2,y1:0+u/2,x2:u/2,y2:a-u/2,lineWidth:u,stroke:A,lineCap:l};return this.addShape(r,{id:this.getElementId("track"),name:"track",type:"line",attrs:d})},t.prototype.renderThumbShape=function(r){var n=this.cfg,a=n.thumbOffset,i=n.thumbLen,o=n.theme,s=Fc({},Q8,o).default,l=s.size,A=s.lineCap,c=s.thumbColor,u=cn(this.cfg,"size",l),d=this.get("isHorizontal")?{x1:a+u/2,y1:u/2,x2:a+i-u/2,y2:u/2,lineWidth:u,stroke:c,lineCap:A,cursor:"default"}:{x1:u/2,y1:a+u/2,x2:u/2,y2:a+i-u/2,lineWidth:u,stroke:c,lineCap:A,cursor:"default"};return this.addShape(r,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:d})},t.prototype.bindEvents=function(){var r=this.get("group");r.on("mousedown",this.onStartEvent(!1)),r.on("mouseup",this.onMouseUp),r.on("touchstart",this.onStartEvent(!0)),r.on("touchend",this.onMouseUp);var n=r.findById(this.getElementId("track"));n.on("click",this.onTrackClick);var a=r.findById(this.getElementId("thumb"));a.on("mouseover",this.onThumbMouseOver),a.on("mouseout",this.onThumbMouseOut)},t.prototype.getContainerDOM=function(){var r=this.get("container"),n=r&&r.get("canvas");return n&&n.get("container")},t.prototype.validateRange=function(r){var n=this.cfg,a=n.thumbLen,i=n.trackLen,o=r;return r+a>i?o=i-a:r+a<a&&(o=0),o},t.prototype.draw=function(){var r=this.get("container"),n=r&&r.get("canvas");n&&n.draw()},t.prototype.updateThumbOffset=function(r){var n=this.cfg,a=n.thumbOffset,i=n.isHorizontal,o=n.thumbLen,s=n.size,l=this.validateRange(r);if(l!==a){var A=this.getElementByLocalId("thumb");i?A.attr({x1:l+s/2,x2:l+o-s/2}):A.attr({y1:l+s/2,y2:l+o-s/2}),this.emitOffsetChange(l)}},t.prototype.emitOffsetChange=function(r){var n=this.cfg,a=n.thumbOffset,i=n.trackLen,o=n.thumbLen;this.cfg.thumbOffset=r,this.emit("scrollchange",{thumbOffset:r,ratio:Yi(r/(i-o),0,1)}),this.delegateEmit("valuechange",{originalValue:a,value:r})},t}(hi);const aIt=Object.freeze(Object.defineProperty({__proto__:null,Annotation:rxt,Axis:yxt,Component:a6,Crosshair:xxt,Grid:Rxt,GroupComponent:hi,HtmlComponent:b2,Legend:Fxt,Scrollbar:nIt,Slider:tIt,TOOLTIP_CSS_CONST:Obe,Tooltip:jxt,propagationDelegate:ybe},Symbol.toStringTag,{value:"Module"})),S2=Un(aIt);var Eoe;function wd(){return Eoe||(Eoe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.Slider=e.HtmlTooltip=e.ContinuousLegend=e.CategoryLegend=e.CircleGrid=e.LineGrid=e.CircleAxis=e.LineAxis=e.Annotation=e.Crosshair=e.Component=e.GroupComponent=e.HtmlComponent=e.Scale=e.registerScale=e.getScale=e.Coordinate=e.registerCoordinate=e.getCoordinate=e.Color=e.Attribute=e.getAttribute=e.Adjust=e.getAdjust=e.registerAdjust=e.AbstractShape=e.AbstractGroup=e.Event=void 0;var t=Ao;Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return t.Event}}),Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return t.AbstractGroup}}),Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return t.AbstractShape}});var r=kIe;Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return r.registerAdjust}}),Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return r.getAdjust}}),Object.defineProperty(e,"Adjust",{enumerable:!0,get:function(){return r.Adjust}});var n=x3;Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return n.getAttribute}}),Object.defineProperty(e,"Attribute",{enumerable:!0,get:function(){return n.Attribute}});var a=x3;Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return a.Color}});var i=xMt;Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return i.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return i.registerCoordinate}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return i.Coordinate}});var o=e6;Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return o.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return o.registerScale}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return o.Scale}});var s=S2;Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return s.Annotation}}),Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return s.Component}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return s.Crosshair}}),Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return s.GroupComponent}}),Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return s.HtmlComponent}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return s.Slider}}),Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return s.Scrollbar}});var l=s.Axis.Line,A=s.Axis.Circle;e.LineAxis=l,e.CircleAxis=A;var c=s.Grid.Line,u=s.Grid.Circle;e.LineGrid=c,e.CircleGrid=u;var d=s.Legend.Category,f=s.Legend.Continuous;e.CategoryLegend=d,e.ContinuousLegend=f;var h=s.Tooltip.Html;e.HtmlTooltip=h}(d8)),d8}var D8={},Wd={},yoe;function Ybe(){if(yoe)return Wd;yoe=1,Object.defineProperty(Wd,"__esModule",{value:!0}),Wd.registerAnimation=Wd.getAnimation=void 0;var e={};function t(n){return e[n.toLowerCase()]}Wd.getAnimation=t;function r(n,a){e[n.toLowerCase()]=a}return Wd.registerAnimation=r,Wd}var Coe;function Ph(){return Coe||(Coe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.doGroupAppearAnimate=e.doAnimate=e.getDefaultAnimateCfg=e.DEFAULT_ANIMATE_CFG=void 0;var t=Kt,r=Gt,n=Pa(),a=Ybe();e.DEFAULT_ANIMATE_CFG={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}};var i={interval:function(u){return{enter:{animation:u.isRect?u.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:u.isPolar&&u.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},o={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(u){var d;return u.isRect?d=u.isTransposed?"grow-in-x":"grow-in-y":(d="grow-in-xy",u.isPolar&&u.isTransposed&&(d="wave-in")),{animation:d}},schema:function(u){var d;return u.isRect?d=u.isTransposed?"grow-in-x":"grow-in-y":d="grow-in-xy",{animation:d}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function s(u,d){return{delay:(0,r.isFunction)(u.delay)?u.delay(d):u.delay,easing:(0,r.isFunction)(u.easing)?u.easing(d):u.easing,duration:(0,r.isFunction)(u.duration)?u.duration(d):u.duration,callback:u.callback,repeat:u.repeat}}function l(u,d,f){var h=i[u];return h&&((0,r.isFunction)(h)&&(h=h(d)),h=(0,r.deepMix)({},e.DEFAULT_ANIMATE_CFG,h),f)?h[f]:h}e.getDefaultAnimateCfg=l;function A(u,d,f){var h=(0,r.get)(u.get("origin"),"data",n.FIELD_ORIGIN),g=d.animation,p=s(d,h);if(g){var E=(0,a.getAnimation)(g);E&&E(u,p,f)}else u.animate(f.toAttrs,p)}e.doAnimate=A;function c(u,d,f,h,g){if(o[f]){var p=o[f](h),E=(0,a.getAnimation)((0,r.get)(p,"animation",""));if(E){var y=(0,t.__assign)((0,t.__assign)((0,t.__assign)({},e.DEFAULT_ANIMATE_CFG.appear),p),d);u.stopAnimate(),E(u,y,{coordinate:h,minYPoint:g,toAttrs:null})}}}e.doGroupAppearAnimate=c}(D8)),D8}var Vn={},Jo={},yi={},$i={},woe;function fs(){if(woe)return $i;woe=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.getReplaceAttrs=$i.getPolygonCentroid=$i.getAngle=$i.getArcPath=$i.getSectorPath=$i.polarToCartesian=void 0;var e=Gt;function t(c){if((0,e.isEmpty)(c))return null;var u=c[0].x,d=c[0].x,f=c[0].y,h=c[0].y;return(0,e.each)(c,function(g){u=u>g.x?g.x:u,d=d<g.x?g.x:d,f=f>g.y?g.y:f,h=h<g.y?g.y:h}),{minX:u,maxX:d,minY:f,maxY:h,centerX:(u+d)/2,centerY:(f+h)/2}}function r(c){return Array.from(new Set(c)).length===1}function n(c){return((0,e.min)(c)+(0,e.max)(c))/2}function a(c,u,d,f){return{x:c+d*Math.cos(f),y:u+d*Math.sin(f)}}$i.polarToCartesian=a;function i(c,u,d,f,h,g){g===void 0&&(g=0);var p=a(c,u,d,f),E=a(c,u,d,h),y=a(c,u,g,f),C=a(c,u,g,h);if(h-f===Math.PI*2){var w=a(c,u,d,f+Math.PI),B=a(c,u,g,f+Math.PI),M=[["M",p.x,p.y],["A",d,d,0,1,1,w.x,w.y],["A",d,d,0,1,1,E.x,E.y],["M",y.x,y.y]];return g&&(M.push(["A",g,g,0,1,0,B.x,B.y]),M.push(["A",g,g,0,1,0,C.x,C.y])),M.push(["M",p.x,p.y]),M.push(["Z"]),M}var I=h-f<=Math.PI?0:1,S=[["M",p.x,p.y],["A",d,d,0,I,1,E.x,E.y],["L",C.x,C.y]];return g&&S.push(["A",g,g,0,I,0,y.x,y.y]),S.push(["L",p.x,p.y]),S.push(["Z"]),S}$i.getSectorPath=i;function o(c,u,d,f,h){var g=a(c,u,d,f),p=a(c,u,d,h);if((0,e.isNumberEqual)(h-f,Math.PI*2)){var E=a(c,u,d,f+Math.PI);return[["M",g.x,g.y],["A",d,d,0,1,1,E.x,E.y],["A",d,d,0,1,1,g.x,g.y],["A",d,d,0,1,0,E.x,E.y],["A",d,d,0,1,0,g.x,g.y],["Z"]]}var y=h-f<=Math.PI?0:1;return[["M",g.x,g.y],["A",d,d,0,y,1,p.x,p.y]]}$i.getArcPath=o;function s(c,u){var d=c.points,f=t(d),h,g,p=u.startAngle,E=u.endAngle,y=E-p;return u.isTransposed?(h=f.maxY*y,g=f.minY*y):(h=f.maxX*y,g=f.minX*y),h+=p,g+=p,{startAngle:g,endAngle:h}}$i.getAngle=s;function l(c,u){if((0,e.isNumber)(c)&&(0,e.isNumber)(u))return[c,u];if(c=c,u=u,r(c)||r(u))return[n(c),n(u)];for(var d=-1,f=0,h=0,g,p=c.length-1,E,y=0;++d<c.length;)g=p,p=d,y+=E=c[g]*u[p]-c[p]*u[g],f+=(c[g]+c[p])*E,h+=(u[g]+u[p])*E;return y*=3,[f/y,h/y]}$i.getPolygonCentroid=l;function A(c,u){var d=c.attr(),f=u.attr();return(0,e.each)(d,function(h,g){f[g]===void 0&&(f[g]=void 0)}),f}return $i.getReplaceAttrs=A,$i}var rl={},Boe;function Oh(){if(Boe)return rl;Boe=1,Object.defineProperty(rl,"__esModule",{value:!0}),rl.uniq=rl.omit=rl.padEnd=rl.isBetween=void 0;var e=Gt;function t(i,o,s){var l=Math.min(o,s),A=Math.max(o,s);return i>=l&&i<=A}rl.isBetween=t;function r(i,o,s){if((0,e.isString)(i))return i.padEnd(o,s);if((0,e.isArray)(i)){var l=i.length;if(l<o)for(var A=o-l,c=0;c<A;c++)i.push(s)}return i}rl.padEnd=r;function n(i,o){return typeof i=="object"&&o.forEach(function(s){delete i[s]}),i}rl.omit=n;function a(i,o,s){o===void 0&&(o=[]),s===void 0&&(s=new Map);for(var l=0,A=i;l<A.length;l++){var c=A[l];s.has(c)||(o.push(c),s.set(c,!0))}return o}return rl.uniq=a,rl}var ac={},Moe;function am(){if(Moe)return ac;Moe=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.toPoints=ac.getRegionBBox=ac.BBox=void 0;var e=Gt,t=Pa(),r=function(){function i(o,s,l,A){o===void 0&&(o=0),s===void 0&&(s=0),l===void 0&&(l=0),A===void 0&&(A=0),this.x=o,this.y=s,this.height=A,this.width=l}return i.fromRange=function(o,s,l,A){return new i(o,s,l-o,A-s)},i.fromObject=function(o){return new i(o.minX,o.minY,o.width,o.height)},Object.defineProperty(i.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),i.prototype.isEqual=function(o){return this.x===o.x&&this.y===o.y&&this.width===o.width&&this.height===o.height},i.prototype.contains=function(o){return o.minX>=this.minX&&o.maxX<=this.maxX&&o.minY>=this.minY&&o.maxY<=this.maxY},i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height)},i.prototype.add=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var l=this.clone();return(0,e.each)(o,function(A){l.x=Math.min(A.x,l.x),l.y=Math.min(A.y,l.y),l.width=Math.max(A.maxX,l.maxX)-l.x,l.height=Math.max(A.maxY,l.maxY)-l.y}),l},i.prototype.merge=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var l=this.clone();return(0,e.each)(o,function(A){l.x=Math.max(A.x,l.x),l.y=Math.max(A.y,l.y),l.width=Math.min(A.maxX,l.maxX)-l.x,l.height=Math.min(A.maxY,l.maxY)-l.y}),l},i.prototype.cut=function(o,s){var l=o.width,A=o.height;switch(s){case t.DIRECTION.TOP:case t.DIRECTION.TOP_LEFT:case t.DIRECTION.TOP_RIGHT:return i.fromRange(this.minX,this.minY+A,this.maxX,this.maxY);case t.DIRECTION.RIGHT:case t.DIRECTION.RIGHT_TOP:case t.DIRECTION.RIGHT_BOTTOM:return i.fromRange(this.minX,this.minY,this.maxX-l,this.maxY);case t.DIRECTION.BOTTOM:case t.DIRECTION.BOTTOM_LEFT:case t.DIRECTION.BOTTOM_RIGHT:return i.fromRange(this.minX,this.minY,this.maxX,this.maxY-A);case t.DIRECTION.LEFT:case t.DIRECTION.LEFT_TOP:case t.DIRECTION.LEFT_BOTTOM:return i.fromRange(this.minX+l,this.minY,this.maxX,this.maxY);default:return this}},i.prototype.shrink=function(o){var s=o[0],l=o[1],A=o[2],c=o[3];return new i(this.x+c,this.y+s,this.width-c-l,this.height-s-A)},i.prototype.expand=function(o){var s=o[0],l=o[1],A=o[2],c=o[3];return new i(this.x-c,this.y-s,this.width+c+l,this.height+s+A)},i.prototype.exceed=function(o){return[Math.max(-this.minY+o.minY,0),Math.max(this.maxX-o.maxX,0),Math.max(this.maxY-o.maxY,0),Math.max(-this.minX+o.minX,0)]},i.prototype.collide=function(o){return this.minX<o.maxX&&this.maxX>o.minX&&this.minY<o.maxY&&this.maxY>o.minY},i.prototype.size=function(){return this.width*this.height},i.prototype.isPointIn=function(o){return o.x>=this.minX&&o.x<=this.maxX&&o.y>=this.minY&&o.y<=this.maxY},i}();ac.BBox=r;var n=function(i,o){var s=o.start,l=o.end;return new r(i.x+i.width*s.x,i.y+i.height*s.y,i.width*Math.abs(l.x-s.x),i.height*Math.abs(l.y-s.y))};ac.getRegionBBox=n;function a(i){return[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return ac.toPoints=a,ac}var xoe;function _l(){if(xoe)return yi;xoe=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.getCoordinateBBox=yi.getCoordinateClipCfg=yi.getAngleByPoint=yi.isPointInCoordinate=yi.getDistanceToCenter=yi.isFullCircle=yi.getXDimensionLength=void 0;var e=fs(),t=Oh(),r=am();function n(c){if(c.isPolar&&!c.isTransposed)return(c.endAngle-c.startAngle)*c.getRadius();var u=c.convert({x:0,y:0}),d=c.convert({x:1,y:0});return Math.sqrt(Math.pow(d.x-u.x,2)+Math.pow(d.y-u.y,2))}yi.getXDimensionLength=n;function a(c){if(c.isPolar){var u=c.startAngle,d=c.endAngle;return d-u===Math.PI*2}return!1}yi.isFullCircle=a;function i(c,u){var d=c.getCenter();return Math.sqrt(Math.pow(u.x-d.x,2)+Math.pow(u.y-d.y,2))}yi.getDistanceToCenter=i;function o(c,u){var d=!1;if(c)if(c.type==="theta"){var f=c.start,h=c.end;d=(0,t.isBetween)(u.x,f.x,h.x)&&(0,t.isBetween)(u.y,f.y,h.y)}else{var g=c.invert(u);d=(0,t.isBetween)(g.x,0,1)&&(0,t.isBetween)(g.y,0,1)}return d}yi.isPointInCoordinate=o;function s(c,u){var d=c.getCenter();return Math.atan2(u.y-d.y,u.x-d.x)}yi.getAngleByPoint=s;function l(c,u){u===void 0&&(u=0);var d=c.start,f=c.end,h=c.getWidth(),g=c.getHeight();if(c.isPolar){var p=c.startAngle,E=c.endAngle,y=c.getCenter(),C=c.getRadius();return{type:"path",startState:{path:(0,e.getSectorPath)(y.x,y.y,C+u,p,p)},endState:function(B){var M=(E-p)*B+p,I=(0,e.getSectorPath)(y.x,y.y,C+u,p,M);return{path:I}},attrs:{path:(0,e.getSectorPath)(y.x,y.y,C+u,p,E)}}}var w;return c.isTransposed?w={height:g+u*2}:w={width:h+u*2},{type:"rect",startState:{x:d.x-u,y:f.y-u,width:c.isTransposed?h+u*2:0,height:c.isTransposed?0:g+u*2},endState:w,attrs:{x:d.x-u,y:f.y-u,width:h+u*2,height:g+u*2}}}yi.getCoordinateClipCfg=l;function A(c,u){u===void 0&&(u=0);var d=c.start,f=c.end,h=c.getWidth(),g=c.getHeight(),p=Math.min(d.x,f.x),E=Math.min(d.y,f.y);return r.BBox.fromRange(p-u,E-u,p+h+u,E+g+u)}return yi.getCoordinateBBox=A,yi}var Ioe;function im(){if(Ioe)return Jo;Ioe=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.getMaxScale=Jo.getDefaultCategoryScaleRange=Jo.getName=Jo.syncScale=Jo.createScaleByField=void 0;var e=Kt,t=Gt,r=wd(),n=_l(),a=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function i(u){var d="linear";return a.test(u)?d="timeCat":(0,t.isString)(u)&&(d="cat"),d}function o(u,d,f){var h=d||[];if((0,t.isNumber)(u)||(0,t.isNil)((0,t.firstValue)(h,u))&&(0,t.isEmpty)(f)){var g=(0,r.getScale)("identity");return new g({field:u.toString(),values:[u]})}var p=(0,t.valuesOfKey)(h,u),E=(0,t.get)(f,"type",i(p[0])),y=(0,r.getScale)(E);return new y((0,e.__assign)({field:u,values:p},f))}Jo.createScaleByField=o;function s(u,d){if(u.type!=="identity"&&d.type!=="identity"){var f={};for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(f[h]=d[h]);u.change(f)}}Jo.syncScale=s;function l(u){return u.alias||u.field}Jo.getName=l;function A(u,d,f){var h=u.values,g=h.length,p;if(g===1)p=[.5,1];else{var E=1,y=0;(0,n.isFullCircle)(d)?d.isTransposed?(E=(0,t.get)(f,"widthRatio.multiplePie",1/1.3),y=1/g*E,p=[y/2,1-y/2]):p=[0,1-1/g]:(y=1/g/2,p=[y,1-y])}return p}Jo.getDefaultCategoryScaleRange=A;function c(u){var d=u.values.filter(function(f){return!(0,t.isNil)(f)&&!isNaN(f)});return Math.max.apply(Math,(0,e.__spreadArray)((0,e.__spreadArray)([],d,!1),[(0,t.isNil)(u.max)?-1/0:u.max],!1))}return Jo.getMaxScale=c,Jo}const Bd=Un(KCt);var boe;function Q3(){if(boe)return Vn;boe=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.getAxisTitleText=Vn.getAxisDirection=Vn.getAxisOption=Vn.getCircleAxisCenterRadius=Vn.getAxisTitleOptions=Vn.getAxisThemeCfg=Vn.getAxisFactorByRegion=Vn.isVertical=Vn.getAxisFactor=Vn.getAxisRegion=Vn.getCircleAxisRelativeRegion=Vn.getLineAxisRelativeRegion=void 0;var e=Gt,t=Pa(),r=im(),n=Bd;function a(p){var E,y;switch(p){case t.DIRECTION.TOP:E={x:0,y:1},y={x:1,y:1};break;case t.DIRECTION.RIGHT:E={x:1,y:0},y={x:1,y:1};break;case t.DIRECTION.BOTTOM:E={x:0,y:0},y={x:1,y:0};break;case t.DIRECTION.LEFT:E={x:0,y:0},y={x:0,y:1};break;default:E=y={x:0,y:0}}return{start:E,end:y}}Vn.getLineAxisRelativeRegion=a;function i(p){var E,y;return p.isTransposed?(E={x:0,y:0},y={x:1,y:0}):(E={x:0,y:0},y={x:0,y:1}),{start:E,end:y}}Vn.getCircleAxisRelativeRegion=i;function o(p,E){var y={start:{x:0,y:0},end:{x:0,y:0}};p.isRect?y=a(E):p.isPolar&&(y=i(p));var C=y.start,w=y.end;return{start:p.convert(C),end:p.convert(w)}}Vn.getAxisRegion=o;function s(p,E){if(p.isRect)return p.isTransposed?[t.DIRECTION.RIGHT,t.DIRECTION.BOTTOM].includes(E)?1:-1:[t.DIRECTION.BOTTOM,t.DIRECTION.RIGHT].includes(E)?-1:1;if(p.isPolar){var y=p.x.start;return y<0?-1:1}return 1}Vn.getAxisFactor=s;function l(p){var E=p.start,y=p.end;return E.x===y.x}Vn.isVertical=l;function A(p,E){var y=p.start,C=p.end,w=l(p);return w?(y.y-C.y)*(E.x-y.x)>0?1:-1:(C.x-y.x)*(y.y-E.y)>0?-1:1}Vn.getAxisFactorByRegion=A;function c(p,E){var y=(0,e.get)(p,["components","axis"],{});return(0,e.deepMix)({},(0,e.get)(y,["common"],{}),(0,e.deepMix)({},(0,e.get)(y,[E],{})))}Vn.getAxisThemeCfg=c;function u(p,E,y){var C=(0,e.get)(p,["components","axis"],{});return(0,e.deepMix)({},(0,e.get)(C,["common","title"],{}),(0,e.deepMix)({},(0,e.get)(C,[E,"title"],{})),y)}Vn.getAxisTitleOptions=u;function d(p){var E=p.x,y=p.y,C=p.circleCenter,w=y.start>y.end,B=p.isTransposed?p.convert({x:w?0:1,y:0}):p.convert({x:0,y:w?0:1}),M=[B.x-C.x,B.y-C.y],I=[1,0],S=B.y>C.y?n.vec2.angle(M,I):n.vec2.angle(M,I)*-1,R=S+(E.end-E.start),b=Math.sqrt(Math.pow(B.x-C.x,2)+Math.pow(B.y-C.y,2));return{center:C,radius:b,startAngle:S,endAngle:R}}Vn.getCircleAxisCenterRadius=d;function f(p,E){return(0,e.isBoolean)(p)?p===!1?!1:{}:(0,e.get)(p,[E])}Vn.getAxisOption=f;function h(p,E){return(0,e.get)(p,"position",E)}Vn.getAxisDirection=h;function g(p,E){return(0,e.get)(E,["title","text"],(0,r.getName)(p))}return Vn.getAxisTitleText=g,Vn}var nl={},Soe;function iIt(){if(Soe)return nl;Soe=1,Object.defineProperty(nl,"__esModule",{value:!0}),nl.showGrid=nl.getCircleGridItems=nl.getLineGridItems=nl.getGridThemeCfg=void 0;var e=Gt;function t(i,o){var s=(0,e.deepMix)({},(0,e.get)(i,["components","axis","common"]),(0,e.get)(i,["components","axis",o]));return(0,e.get)(s,["grid"],{})}nl.getGridThemeCfg=t;function r(i,o,s,l){var A=[],c=o.getTicks();return i.isPolar&&c.push({value:1,text:"",tickValue:""}),c.reduce(function(u,d,f){var h=d.value;if(l)A.push({points:[i.convert(s==="y"?{x:0,y:h}:{x:h,y:0}),i.convert(s==="y"?{x:1,y:h}:{x:h,y:1})]});else if(f){var g=u.value,p=(g+h)/2;A.push({points:[i.convert(s==="y"?{x:0,y:p}:{x:p,y:0}),i.convert(s==="y"?{x:1,y:p}:{x:p,y:1})]})}return d},c[0]),A}nl.getLineGridItems=r;function n(i,o,s,l,A){var c=o.values.length,u=[],d=s.getTicks();return d.reduce(function(f,h){var g=f?f.value:h.value,p=h.value,E=(g+p)/2;return A==="x"?u.push({points:[i.convert({x:l?p:E,y:0}),i.convert({x:l?p:E,y:1})]}):u.push({points:(0,e.map)(Array(c+1),function(y,C){return i.convert({x:C/c,y:l?p:E})})}),h},d[0]),u}nl.getCircleGridItems=n;function a(i,o){var s=(0,e.get)(o,"grid");if(s===null)return!1;var l=(0,e.get)(i,"grid");return!(s===void 0&&l===null)}return nl.showGrid=a,nl}var FE={},Roe;function R2(){if(Roe)return FE;Roe=1,Object.defineProperty(FE,"__esModule",{value:!0}),FE.Controller=void 0;var e=Gt,t=function(){function r(n){this.visible=!0,this.components=[],this.view=n}return r.prototype.clear=function(n){(0,e.each)(this.components,function(a){a.component.destroy()}),this.components=[]},r.prototype.destroy=function(){this.clear()},r.prototype.getComponents=function(){return this.components},r.prototype.changeVisible=function(n){this.visible!==n&&(this.components.forEach(function(a){n?a.component.show():a.component.hide()}),this.visible=n)},r}();return FE.Controller=t,FE}var Toe;function oIt(){if(Toe)return bB;Toe=1,Object.defineProperty(bB,"__esModule",{value:!0});var e=Kt,t=Gt,r=Pa(),n=wd(),a=Ph(),i=Q3(),o=Q3(),s=iIt(),l=Oh(),A=R2(),c=["container"],u=(0,e.__assign)((0,e.__assign)({},a.DEFAULT_ANIMATE_CFG),{appear:null}),d=function(f){(0,e.__extends)(h,f);function h(g){var p=f.call(this,g)||this;return p.cache=new Map,p.gridContainer=p.view.getLayer(r.LAYER.BG).addGroup(),p.gridForeContainer=p.view.getLayer(r.LAYER.FORE).addGroup(),p.axisContainer=p.view.getLayer(r.LAYER.BG).addGroup(),p.axisForeContainer=p.view.getLayer(r.LAYER.FORE).addGroup(),p}return Object.defineProperty(h.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),h.prototype.init=function(){},h.prototype.render=function(){this.update()},h.prototype.layout=function(){var g=this,p=this.view.getCoordinate();(0,t.each)(this.getComponents(),function(E){var y=E.component,C=E.direction,w=E.type,B=E.extra,M=B.dim,I=B.scale,S=B.alignTick,R;if(w===r.COMPONENT_TYPE.AXIS)p.isPolar?M==="x"?R=p.isTransposed?(0,i.getAxisRegion)(p,C):(0,i.getCircleAxisCenterRadius)(p):M==="y"&&(R=p.isTransposed?(0,i.getCircleAxisCenterRadius)(p):(0,i.getAxisRegion)(p,C)):R=(0,i.getAxisRegion)(p,C);else if(w===r.COMPONENT_TYPE.GRID)if(p.isPolar){var b=void 0;p.isTransposed?b=M==="x"?(0,s.getCircleGridItems)(p,g.view.getYScales()[0],I,S,M):(0,s.getLineGridItems)(p,I,M,S):b=M==="x"?(0,s.getLineGridItems)(p,I,M,S):(0,s.getCircleGridItems)(p,g.view.getXScale(),I,S,M),R={items:b,center:g.view.getCoordinate().getCenter()}}else R={items:(0,s.getLineGridItems)(p,I,M,S)};y.update(R)})},h.prototype.update=function(){this.option=this.view.getOptions().axes;var g=new Map;this.updateXAxes(g),this.updateYAxes(g);var p=new Map;this.cache.forEach(function(E,y){g.has(y)?p.set(y,E):E.component.destroy()}),this.cache=p},h.prototype.clear=function(){f.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},h.prototype.destroy=function(){f.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},h.prototype.getComponents=function(){var g=[];return this.cache.forEach(function(p){g.push(p)}),g},h.prototype.updateXAxes=function(g){var p=this.view.getXScale();if(!(!p||p.isIdentity)){var E=(0,o.getAxisOption)(this.option,p.field);if(E!==!1){var y=(0,i.getAxisDirection)(E,r.DIRECTION.BOTTOM),C=r.LAYER.BG,w="x",B=this.view.getCoordinate(),M=this.getId("axis",p.field),I=this.getId("grid",p.field);if(B.isRect){var S=this.cache.get(M);if(S){var R=this.getLineAxisCfg(p,E,y);(0,l.omit)(R,c),S.component.update(R),g.set(M,S)}else S=this.createLineAxis(p,E,C,y,w),this.cache.set(M,S),g.set(M,S);var b=this.cache.get(I);if(b){var R=this.getLineGridCfg(p,E,y,w);(0,l.omit)(R,c),b.component.update(R),g.set(I,b)}else b=this.createLineGrid(p,E,C,y,w),b&&(this.cache.set(I,b),g.set(I,b))}else if(B.isPolar){var S=this.cache.get(M);if(S){var R=B.isTransposed?this.getLineAxisCfg(p,E,r.DIRECTION.RADIUS):this.getCircleAxisCfg(p,E,y);(0,l.omit)(R,c),S.component.update(R),g.set(M,S)}else{if(B.isTransposed){if((0,t.isUndefined)(E))return;S=this.createLineAxis(p,E,C,r.DIRECTION.RADIUS,w)}else S=this.createCircleAxis(p,E,C,y,w);this.cache.set(M,S),g.set(M,S)}var b=this.cache.get(I);if(b){var R=B.isTransposed?this.getCircleGridCfg(p,E,r.DIRECTION.RADIUS,w):this.getLineGridCfg(p,E,r.DIRECTION.CIRCLE,w);(0,l.omit)(R,c),b.component.update(R),g.set(I,b)}else{if(B.isTransposed){if((0,t.isUndefined)(E))return;b=this.createCircleGrid(p,E,C,r.DIRECTION.RADIUS,w)}else b=this.createLineGrid(p,E,C,r.DIRECTION.CIRCLE,w);b&&(this.cache.set(I,b),g.set(I,b))}}}}},h.prototype.updateYAxes=function(g){var p=this,E=this.view.getYScales();(0,t.each)(E,function(y,C){if(!(!y||y.isIdentity)){var w=y.field,B=(0,o.getAxisOption)(p.option,w);if(B!==!1){var M=r.LAYER.BG,I="y",S=p.getId("axis",w),R=p.getId("grid",w),b=p.view.getCoordinate();if(b.isRect){var Q=(0,i.getAxisDirection)(B,C===0?r.DIRECTION.LEFT:r.DIRECTION.RIGHT),D=p.cache.get(S);if(D){var F=p.getLineAxisCfg(y,B,Q);(0,l.omit)(F,c),D.component.update(F),g.set(S,D)}else D=p.createLineAxis(y,B,M,Q,I),p.cache.set(S,D),g.set(S,D);var N=p.cache.get(R);if(N){var F=p.getLineGridCfg(y,B,Q,I);(0,l.omit)(F,c),N.component.update(F),g.set(R,N)}else N=p.createLineGrid(y,B,M,Q,I),N&&(p.cache.set(R,N),g.set(R,N))}else if(b.isPolar){var D=p.cache.get(S);if(D){var F=b.isTransposed?p.getCircleAxisCfg(y,B,r.DIRECTION.CIRCLE):p.getLineAxisCfg(y,B,r.DIRECTION.RADIUS);(0,l.omit)(F,c),D.component.update(F),g.set(S,D)}else{if(b.isTransposed){if((0,t.isUndefined)(B))return;D=p.createCircleAxis(y,B,M,r.DIRECTION.CIRCLE,I)}else D=p.createLineAxis(y,B,M,r.DIRECTION.RADIUS,I);p.cache.set(S,D),g.set(S,D)}var N=p.cache.get(R);if(N){var F=b.isTransposed?p.getLineGridCfg(y,B,r.DIRECTION.CIRCLE,I):p.getCircleGridCfg(y,B,r.DIRECTION.RADIUS,I);(0,l.omit)(F,c),N.component.update(F),g.set(R,N)}else{if(b.isTransposed){if((0,t.isUndefined)(B))return;N=p.createLineGrid(y,B,M,r.DIRECTION.CIRCLE,I)}else N=p.createCircleGrid(y,B,M,r.DIRECTION.RADIUS,I);N&&(p.cache.set(R,N),g.set(R,N))}}}}})},h.prototype.createLineAxis=function(g,p,E,y,C){var w={component:new n.LineAxis(this.getLineAxisCfg(g,p,y)),layer:E,direction:y===r.DIRECTION.RADIUS?r.DIRECTION.NONE:y,type:r.COMPONENT_TYPE.AXIS,extra:{dim:C,scale:g}};return w.component.set("field",g.field),w.component.init(),w},h.prototype.createLineGrid=function(g,p,E,y,C){var w=this.getLineGridCfg(g,p,y,C);if(w){var B={component:new n.LineGrid(w),layer:E,direction:r.DIRECTION.NONE,type:r.COMPONENT_TYPE.GRID,extra:{dim:C,scale:g,alignTick:(0,t.get)(w,"alignTick",!0)}};return B.component.init(),B}},h.prototype.createCircleAxis=function(g,p,E,y,C){var w={component:new n.CircleAxis(this.getCircleAxisCfg(g,p,y)),layer:E,direction:y,type:r.COMPONENT_TYPE.AXIS,extra:{dim:C,scale:g}};return w.component.set("field",g.field),w.component.init(),w},h.prototype.createCircleGrid=function(g,p,E,y,C){var w=this.getCircleGridCfg(g,p,y,C);if(w){var B={component:new n.CircleGrid(w),layer:E,direction:r.DIRECTION.NONE,type:r.COMPONENT_TYPE.GRID,extra:{dim:C,scale:g,alignTick:(0,t.get)(w,"alignTick",!0)}};return B.component.init(),B}},h.prototype.getLineAxisCfg=function(g,p,E){var y=(0,t.get)(p,["top"])?this.axisForeContainer:this.axisContainer,C=this.view.getCoordinate(),w=(0,i.getAxisRegion)(C,E),B=(0,i.getAxisTitleText)(g,p),M=(0,i.getAxisThemeCfg)(this.view.getTheme(),E),I=(0,t.get)(p,["title"])?(0,t.deepMix)({title:{style:{text:B}}},{title:(0,i.getAxisTitleOptions)(this.view.getTheme(),E,p.title)},p):p,S=(0,t.deepMix)((0,e.__assign)((0,e.__assign)({container:y},w),{ticks:g.getTicks().map(function(O){return{id:""+O.tickValue,name:O.text,value:O.value}}),verticalFactor:C.isPolar?(0,i.getAxisFactorByRegion)(w,C.getCenter())*-1:(0,i.getAxisFactorByRegion)(w,C.getCenter()),theme:M}),M,I),R=this.getAnimateCfg(S),b=R.animate,Q=R.animateOption;S.animateOption=Q,S.animate=b;var D=(0,i.isVertical)(w),F=(0,t.get)(S,"verticalLimitLength",D?1/3:1/2);if(F<=1){var N=this.view.getCanvas().get("width"),k=this.view.getCanvas().get("height");S.verticalLimitLength=F*(D?N:k)}return S},h.prototype.getLineGridCfg=function(g,p,E,y){if((0,s.showGrid)((0,i.getAxisThemeCfg)(this.view.getTheme(),E),p)){var C=(0,s.getGridThemeCfg)(this.view.getTheme(),E),w=(0,t.deepMix)({container:(0,t.get)(p,["top"])?this.gridForeContainer:this.gridContainer},C,(0,t.get)(p,"grid"),this.getAnimateCfg(p));return w.items=(0,s.getLineGridItems)(this.view.getCoordinate(),g,y,(0,t.get)(w,"alignTick",!0)),w}},h.prototype.getCircleAxisCfg=function(g,p,E){var y=(0,t.get)(p,["top"])?this.axisForeContainer:this.axisContainer,C=this.view.getCoordinate(),w=g.getTicks().map(function(D){return{id:""+D.tickValue,name:D.text,value:D.value}});!g.isCategory&&Math.abs(C.endAngle-C.startAngle)===Math.PI*2&&w.pop();var B=(0,i.getAxisTitleText)(g,p),M=(0,i.getAxisThemeCfg)(this.view.getTheme(),r.DIRECTION.CIRCLE),I=(0,t.get)(p,["title"])?(0,t.deepMix)({title:{style:{text:B}}},{title:(0,i.getAxisTitleOptions)(this.view.getTheme(),E,p.title)},p):p,S=(0,t.deepMix)((0,e.__assign)((0,e.__assign)({container:y},(0,i.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:w,verticalFactor:1,theme:M}),M,I),R=this.getAnimateCfg(S),b=R.animate,Q=R.animateOption;return S.animate=b,S.animateOption=Q,S},h.prototype.getCircleGridCfg=function(g,p,E,y){if((0,s.showGrid)((0,i.getAxisThemeCfg)(this.view.getTheme(),E),p)){var C=(0,s.getGridThemeCfg)(this.view.getTheme(),r.DIRECTION.RADIUS),w=(0,t.deepMix)({container:(0,t.get)(p,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},C,(0,t.get)(p,"grid"),this.getAnimateCfg(p)),B=(0,t.get)(w,"alignTick",!0),M=y==="x"?this.view.getYScales()[0]:this.view.getXScale();return w.items=(0,s.getCircleGridItems)(this.view.getCoordinate(),M,g,B,y),w}},h.prototype.getId=function(g,p){var E=this.view.getCoordinate();return g+"-"+p+"-"+E.type},h.prototype.getAnimateCfg=function(g){return{animate:this.view.getOptions().animate&&(0,t.get)(g,"animate"),animateOption:g&&g.animateOption?(0,t.deepMix)({},u,g.animateOption):u}},h}(A.Controller);return bB.default=d,bB}var jg={},aA={},Qoe;function i1(){if(Qoe)return aA;Qoe=1;var e=aA&&aA.__assign||function(){return e=Object.assign||function(o){for(var s,l=1,A=arguments.length;l<A;l++){s=arguments[l];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(o[c]=s[c])}return o},e.apply(this,arguments)},t=aA&&aA.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(aA,"__esModule",{value:!0}),aA.withView=void 0;var r=t(cr()),n=r.default.createContext(null);n.displayName="ChartViewContext";var a=n.Consumer;function i(o){return function(s){return r.default.createElement(a,null,function(l){return r.default.createElement(o,e({chartView:l},s))})}}return aA.withView=i,aA.default=n,aA}var Doe;function T2(){if(Doe)return jg;Doe=1;var e=jg&&jg.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(jg,"__esModule",{value:!0});var t=e(cr()),r=e(i1());function n(){return t.default.useContext(r.default)}return jg.default=n,jg}var Yg={},LB={},UB={},HB={},Foe;function Q2(){if(Foe)return HB;Foe=1,Object.defineProperty(HB,"__esModule",{value:!0});var e={}.toString,t=function(r,n){return e.call(r)==="[object "+n+"]"};return HB.default=t,HB}var _oe;function Hc(){if(_oe)return UB;_oe=1,Object.defineProperty(UB,"__esModule",{value:!0});var e=Q2();return UB.default=function(t){return Array.isArray?Array.isArray(t):e.default(t,"Array")},UB}var Noe;function sIt(){if(Noe)return LB;Noe=1,Object.defineProperty(LB,"__esModule",{value:!0});var e=Hc(),t=function(r){if(typeof r!="object"||r===null)return r;var n;if(e.default(r)){n=[];for(var a=0,i=r.length;a<i;a++)typeof r[a]=="object"&&r[a]!=null?n[a]=t(r[a]):n[a]=r[a]}else{n={};for(var o in r)typeof r[o]=="object"&&r[o]!=null?n[o]=t(r[o]):n[o]=r[o]}return n};return LB.default=t,LB}var koe;function lIt(){if(koe)return Yg;koe=1;var e=Yg&&Yg.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Yg,"__esModule",{value:!0});var t=e(sIt());return Yg.default=function(r,n){var a=(0,t.default)(r);return n.forEach(function(i){a[i]===!0?a[i]={}:a[i]===!1&&(a[i]=null)}),a},Yg}var al={},F8={},_8={},GB={},N8={},Poe;function Po(){return Poe||(Poe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=e.mergeRegion=e.intersectRect=e.inBox=e.distance=e.getPixelRatio=void 0;function t(){return window?window.devicePixelRatio:1}e.getPixelRatio=t;function r(l,A,c,u){var d=l-c,f=A-u;return Math.sqrt(d*d+f*f)}e.distance=r;function n(l,A,c,u,d,f){return d>=l&&d<=l+c&&f>=A&&f<=A+u}e.inBox=n;function a(l,A){return!(A.minX>l.maxX||A.maxX<l.minX||A.minY>l.maxY||A.maxY<l.minY)}e.intersectRect=a;function i(l,A){return!l||!A?l||A:{minX:Math.min(l.minX,A.minX),minY:Math.min(l.minY,A.minY),maxX:Math.max(l.maxX,A.maxX),maxY:Math.max(l.maxY,A.maxY)}}e.mergeRegion=i;function o(l,A){return l[0]===A[0]&&l[1]===A[1]}e.isSamePoint=o;var s=Gt;Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return s.isNil}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return s.isString}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return s.isFunction}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return s.isArray}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return s.each}}),Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return s.toRadian}}),Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return s.mod}}),Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return s.isNumberEqual}}),Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return s.requestAnimationFrame}}),Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return s.clearAnimationFrame}})}(N8)),N8}var Ca={},Wo={},Ooe;function Lbe(){if(Ooe)return Wo;Ooe=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.parseRadius=Wo.parseStyle=Wo.parsePattern=Wo.parseRadialGradient=Wo.parseLineGradient=void 0;var e=Po(),t=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,r=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,n=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function i(u,d){var f=u.match(a);e.each(f,function(h){var g=h.split(":");d.addColorStop(g[0],g[1])})}function o(u,d,f){var h=t.exec(f),g=parseFloat(h[1])%360*(Math.PI/180),p=h[2],E=d.getBBox(),y,C;g>=0&&g<1/2*Math.PI?(y={x:E.minX,y:E.minY},C={x:E.maxX,y:E.maxY}):1/2*Math.PI<=g&&g<Math.PI?(y={x:E.maxX,y:E.minY},C={x:E.minX,y:E.maxY}):Math.PI<=g&&g<3/2*Math.PI?(y={x:E.maxX,y:E.maxY},C={x:E.minX,y:E.minY}):(y={x:E.minX,y:E.maxY},C={x:E.maxX,y:E.minY});var w=Math.tan(g),B=w*w,M=(C.x-y.x+w*(C.y-y.y))/(B+1)+y.x,I=w*(C.x-y.x+w*(C.y-y.y))/(B+1)+y.y,S=u.createLinearGradient(y.x,y.y,M,I);return i(p,S),S}Wo.parseLineGradient=o;function s(u,d,f){var h=r.exec(f),g=parseFloat(h[1]),p=parseFloat(h[2]),E=parseFloat(h[3]),y=h[4];if(E===0){var C=y.match(a);return C[C.length-1].split(":")[1]}var w=d.getBBox(),B=w.maxX-w.minX,M=w.maxY-w.minY,I=Math.sqrt(B*B+M*M)/2,S=u.createRadialGradient(w.minX+B*g,w.minY+M*p,0,w.minX+B/2,w.minY+M/2,E*I);return i(y,S),S}Wo.parseRadialGradient=s;function l(u,d,f){if(d.get("patternSource")&&d.get("patternSource")===f)return d.get("pattern");var h,g,p=n.exec(f),E=p[1],y=p[2];function C(){h=u.createPattern(g,E),d.set("pattern",h),d.set("patternSource",f)}switch(E){case"a":E="repeat";break;case"x":E="repeat-x";break;case"y":E="repeat-y";break;case"n":E="no-repeat";break;default:E="no-repeat"}return g=new Image,y.match(/^data:/i)||(g.crossOrigin="Anonymous"),g.src=y,g.complete?C():(g.onload=C,g.src=g.src),h}Wo.parsePattern=l;function A(u,d,f){var h=d.getBBox();if(isNaN(h.x)||isNaN(h.y)||isNaN(h.width)||isNaN(h.height))return f;if(e.isString(f)){if(f[1]==="("||f[2]==="("){if(f[0]==="l")return o(u,d,f);if(f[0]==="r")return s(u,d,f);if(f[0]==="p")return l(u,d,f)}return f}if(f instanceof CanvasPattern)return f}Wo.parseStyle=A;function c(u){var d=0,f=0,h=0,g=0;return e.isArray(u)?u.length===1?d=f=h=g=u[0]:u.length===2?(d=h=u[0],f=g=u[1]):u.length===3?(d=u[0],f=g=u[1],h=u[2]):(d=u[0],f=u[1],h=u[2],g=u[3]):d=f=h=g=u,[d,f,h,g]}return Wo.parseRadius=c,Wo}var KB={},zoe;function Ube(){if(zoe)return KB;zoe=1,Object.defineProperty(KB,"__esModule",{value:!0});var e=Po();function t(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function r(i,o){return t(i)*t(o)?(i[0]*o[0]+i[1]*o[1])/(t(i)*t(o)):1}function n(i,o){return(i[0]*o[1]<i[1]*o[0]?-1:1)*Math.acos(r(i,o))}function a(i,o){var s=o[1],l=o[2],A=e.mod(e.toRadian(o[3]),Math.PI*2),c=o[4],u=o[5],d=i[0],f=i[1],h=o[6],g=o[7],p=Math.cos(A)*(d-h)/2+Math.sin(A)*(f-g)/2,E=-1*Math.sin(A)*(d-h)/2+Math.cos(A)*(f-g)/2,y=p*p/(s*s)+E*E/(l*l);y>1&&(s*=Math.sqrt(y),l*=Math.sqrt(y));var C=s*s*(E*E)+l*l*(p*p),w=C?Math.sqrt((s*s*(l*l)-C)/C):1;c===u&&(w*=-1),isNaN(w)&&(w=0);var B=l?w*s*E/l:0,M=s?w*-l*p/s:0,I=(d+h)/2+Math.cos(A)*B-Math.sin(A)*M,S=(f+g)/2+Math.sin(A)*B+Math.cos(A)*M,R=[(p-B)/s,(E-M)/l],b=[(-1*p-B)/s,(-1*E-M)/l],Q=n([1,0],R),D=n(R,b);return r(R,b)<=-1&&(D=Math.PI),r(R,b)>=1&&(D=0),u===0&&D>0&&(D=D-2*Math.PI),u===1&&D<0&&(D=D+2*Math.PI),{cx:I,cy:S,rx:e.isSamePoint(i,[h,g])?0:s,ry:e.isSamePoint(i,[h,g])?0:l,startAngle:Q,endAngle:Q+D,xRotation:A,arcFlag:c,sweepFlag:u}}return KB.default=a,KB}var ic={},joe;function D2(){if(joe)return ic;joe=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.addEndArrow=ic.addStartArrow=ic.getShortenOffset=void 0;var e=Kt,t=s1(),r=Math.sin,n=Math.cos,a=Math.atan2,i=Math.PI;function o(u,d,f,h,g,p,E){var y=d.stroke,C=d.lineWidth,w=f-g,B=h-p,M=a(B,w),I=new t.Path({type:"path",canvas:u.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*n(i/6)+","+10*r(i/6)+" L0,0 L"+10*n(i/6)+",-"+10*r(i/6),stroke:y,lineWidth:C}});I.translate(g,p),I.rotateAtPoint(g,p,M),u.set(E?"startArrowShape":"endArrowShape",I)}function s(u,d,f,h,g,p,E){var y=d.startArrow,C=d.endArrow,w=d.stroke,B=d.lineWidth,M=E?y:C,I=M.d,S=M.fill,R=M.stroke,b=M.lineWidth,Q=e.__rest(M,["d","fill","stroke","lineWidth"]),D=f-g,F=h-p,N=a(F,D);I&&(g=g-n(N)*I,p=p-r(N)*I);var k=new t.Path({type:"path",canvas:u.get("canvas"),isArrowShape:!0,attrs:e.__assign(e.__assign({},Q),{stroke:R||w,lineWidth:b||B,fill:S})});k.translate(g,p),k.rotateAtPoint(g,p,N),u.set(E?"startArrowShape":"endArrowShape",k)}function l(u,d,f,h,g){var p=a(h-d,f-u);return{dx:n(p)*g,dy:r(p)*g}}ic.getShortenOffset=l;function A(u,d,f,h,g,p){typeof d.startArrow=="object"?s(u,d,f,h,g,p,!0):d.startArrow?o(u,d,f,h,g,p,!0):u.set("startArrowShape",null)}ic.addStartArrow=A;function c(u,d,f,h,g,p){typeof d.endArrow=="object"?s(u,d,f,h,g,p,!1):d.endArrow?o(u,d,f,h,g,p,!1):u.set("startArrowShape",null)}return ic.addEndArrow=c,ic}var Yoe;function o1(){if(Yoe)return Ca;Yoe=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.mergeView=Ca.getMergedRegion=Ca.getRefreshRegion=Ca.refreshElement=Ca.drawPath=Ca.clearChanged=Ca.checkChildrenRefresh=Ca.checkRefresh=Ca.drawChildren=Ca.applyAttrsToContext=void 0;var e=Gt,t=Lbe(),r=Ube(),n=Po(),a=D2(),i={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function o(y,C){var w=C.attr();for(var B in w){var M=w[B],I=i[B]?i[B]:B;I==="matrix"&&M?y.transform(M[0],M[1],M[3],M[4],M[6],M[7]):I==="lineDash"&&y.setLineDash?e.isArray(M)&&y.setLineDash(M):(I==="strokeStyle"||I==="fillStyle"?M=t.parseStyle(y,C,M):I==="globalAlpha"&&(M=M*y.globalAlpha),y[I]=M)}}Ca.applyAttrsToContext=o;function s(y,C,w){for(var B=0;B<C.length;B++){var M=C[B];M.cfg.visible?M.draw(y,w):M.skipDraw()}}Ca.drawChildren=s;function l(y,C,w){var B=y.get("refreshElements");e.each(B,function(M){if(M!==y)for(var I=M.cfg.parent;I&&I!==y&&!I.cfg.refresh;)I.cfg.refresh=!0,I=I.cfg.parent}),B[0]===y?u(C):A(C,w)}Ca.checkRefresh=l;function A(y,C){for(var w=0;w<y.length;w++){var B=y[w];if(B.cfg.visible)if(B.cfg.hasChanged)B.cfg.refresh=!0,B.isGroup()&&u(B.cfg.children);else if(B.cfg.refresh)B.isGroup()&&A(B.cfg.children,C);else{var M=d(B,C);B.cfg.refresh=M,M&&B.isGroup()&&A(B.cfg.children,C)}}}Ca.checkChildrenRefresh=A;function c(y){for(var C=0;C<y.length;C++){var w=y[C];w.cfg.hasChanged=!1,w.isGroup()&&!w.destroyed&&c(w.cfg.children)}}Ca.clearChanged=c;function u(y,C){for(var w=0;w<y.length;w++){var B=y[w];B.cfg.visible&&(B.cfg.refresh=!0,B.isGroup()&&u(B.get("children")))}}function d(y,C){var w=y.cfg.cacheCanvasBBox,B=y.cfg.isInView&&w&&n.intersectRect(w,C);return B}function f(y,C,w,B){var M=w.path,I=w.startArrow,S=w.endArrow;if(M){var R=[0,0],b=[0,0],Q={dx:0,dy:0};C.beginPath();for(var D=0;D<M.length;D++){var F=M[D],N=F[0];if(D===0&&I&&I.d){var k=y.getStartTangent();Q=a.getShortenOffset(k[0][0],k[0][1],k[1][0],k[1][1],I.d)}else if(D===M.length-2&&M[D+1][0]==="Z"&&S&&S.d){var O=M[D+1];if(O[0]==="Z"){var k=y.getEndTangent();Q=a.getShortenOffset(k[0][0],k[0][1],k[1][0],k[1][1],S.d)}}else if(D===M.length-1&&S&&S.d&&M[0]!=="Z"){var k=y.getEndTangent();Q=a.getShortenOffset(k[0][0],k[0][1],k[1][0],k[1][1],S.d)}var P=Q.dx,z=Q.dy;switch(N){case"M":C.moveTo(F[1]-P,F[2]-z),b=[F[1],F[2]];break;case"L":C.lineTo(F[1]-P,F[2]-z);break;case"Q":C.quadraticCurveTo(F[1],F[2],F[3]-P,F[4]-z);break;case"C":C.bezierCurveTo(F[1],F[2],F[3],F[4],F[5]-P,F[6]-z);break;case"A":{var j=void 0;B?(j=B[D],j||(j=r.default(R,F),B[D]=j)):j=r.default(R,F);var V=j.cx,L=j.cy,K=j.rx,J=j.ry,Y=j.startAngle,W=j.endAngle,q=j.xRotation,ee=j.sweepFlag;if(C.ellipse)C.ellipse(V,L,K,J,q,Y,W,1-ee);else{var ae=K>J?K:J,ne=K>J?1:K/J,ce=K>J?J/K:1;C.translate(V,L),C.rotate(q),C.scale(ne,ce),C.arc(0,0,ae,Y,W,1-ee),C.scale(1/ne,1/ce),C.rotate(-q),C.translate(-V,-L)}break}case"Z":C.closePath();break}if(N==="Z")R=b;else{var ue=F.length;R=[F[ue-2],F[ue-1]]}}}}Ca.drawPath=f;function h(y,C){var w=y.get("canvas");w&&(C==="remove"&&(y._cacheCanvasBBox=y.get("cacheCanvasBBox")),y.get("hasChanged")||(y.set("hasChanged",!0),y.cfg.parent&&y.cfg.parent.get("hasChanged")||(w.refreshElement(y,C,w),w.get("autoDraw")&&w.draw())))}Ca.refreshElement=h;function g(y){var C;if(y.destroyed)C=y._cacheCanvasBBox;else{var w=y.get("cacheCanvasBBox"),B=w&&!!(w.width&&w.height),M=y.getCanvasBBox(),I=M&&!!(M.width&&M.height);B&&I?C=n.mergeRegion(w,M):B?C=w:I&&(C=M)}return C}Ca.getRefreshRegion=g;function p(y){if(!y.length)return null;var C=[],w=[],B=[],M=[];return e.each(y,function(I){var S=g(I);S&&(C.push(S.minX),w.push(S.minY),B.push(S.maxX),M.push(S.maxY))}),{minX:e.min(C),minY:e.min(w),maxX:e.max(B),maxY:e.max(M)}}Ca.getMergedRegion=p;function E(y,C){return!y||!C||!n.intersectRect(y,C)?null:{minX:Math.max(y.minX,C.minX),minY:Math.max(y.minY,C.minY),maxX:Math.min(y.maxX,C.maxX),maxY:Math.min(y.maxY,C.maxY)}}return Ca.mergeView=E,Ca}var VB={},Loe;function g6(){if(Loe)return VB;Loe=1,Object.defineProperty(VB,"__esModule",{value:!0});var e=Kt,t=Ao,r=s1(),n=o1(),a=Gt,i=Po(),o=function(s){e.__extends(l,s);function l(){return s!==null&&s.apply(this,arguments)||this}return l.prototype.onCanvasChange=function(A){n.refreshElement(this,A)},l.prototype.getShapeBase=function(){return r},l.prototype.getGroupBase=function(){return l},l.prototype._applyClip=function(A,c){c&&(A.save(),n.applyAttrsToContext(A,c),c.createPath(A),A.restore(),A.clip(),c._afterDraw())},l.prototype.cacheCanvasBBox=function(){var A=this.cfg.children,c=[],u=[];a.each(A,function(C){var w=C.cfg.cacheCanvasBBox;w&&C.cfg.isInView&&(c.push(w.minX,w.maxX),u.push(w.minY,w.maxY))});var d=null;if(c.length){var f=a.min(c),h=a.max(c),g=a.min(u),p=a.max(u);d={minX:f,minY:g,x:f,y:g,maxX:h,maxY:p,width:h-f,height:p-g};var E=this.cfg.canvas;if(E){var y=E.getViewRange();this.set("isInView",i.intersectRect(d,y))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",d)},l.prototype.draw=function(A,c){var u=this.cfg.children,d=c?this.cfg.refresh:!0;u.length&&d&&(A.save(),n.applyAttrsToContext(A,this),this._applyClip(A,this.getClip()),n.drawChildren(A,u,c),A.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},l.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},l}(t.AbstractGroup);return VB.default=o,VB}var Uoe;function Gl(){if(Uoe)return GB;Uoe=1,Object.defineProperty(GB,"__esModule",{value:!0});var e=Kt,t=Ao,r=Po(),n=o1(),a=Ao,i=s1(),o=g6(),s=function(l){e.__extends(A,l);function A(){return l!==null&&l.apply(this,arguments)||this}return A.prototype.getDefaultAttrs=function(){var c=l.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},c),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},A.prototype.getShapeBase=function(){return i},A.prototype.getGroupBase=function(){return o.default},A.prototype.onCanvasChange=function(c){n.refreshElement(this,c)},A.prototype.calculateBBox=function(){var c=this.get("type"),u=this.getHitLineWidth(),d=a.getBBoxMethod(c),f=d(this),h=u/2,g=f.x-h,p=f.y-h,E=f.x+f.width+h,y=f.y+f.height+h;return{x:g,minX:g,y:p,minY:p,width:f.width+u,height:f.height+u,maxX:E,maxY:y}},A.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},A.prototype.isStroke=function(){return!!this.attrs.stroke},A.prototype._applyClip=function(c,u){u&&(c.save(),n.applyAttrsToContext(c,u),u.createPath(c),c.restore(),c.clip(),u._afterDraw())},A.prototype.draw=function(c,u){var d=this.cfg.clipShape;if(u){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var f=this.getCanvasBBox();if(!r.intersectRect(u,f)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}c.save(),n.applyAttrsToContext(c,this),this._applyClip(c,d),this.drawPath(c),c.restore(),this._afterDraw()},A.prototype.getCanvasViewBox=function(){var c=this.cfg.canvas;return c?c.getViewRange():null},A.prototype.cacheCanvasBBox=function(){var c=this.getCanvasViewBox();if(c){var u=this.getCanvasBBox(),d=r.intersectRect(u,c);this.set("isInView",d),d?this.set("cacheCanvasBBox",u):this.set("cacheCanvasBBox",null)}},A.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},A.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},A.prototype.drawPath=function(c){this.createPath(c),this.strokeAndFill(c),this.afterDrawPath(c)},A.prototype.fill=function(c){c.fill()},A.prototype.stroke=function(c){c.stroke()},A.prototype.strokeAndFill=function(c){var u=this.attrs,d=u.lineWidth,f=u.opacity,h=u.strokeOpacity,g=u.fillOpacity;this.isFill()&&(!r.isNil(g)&&g!==1?(c.globalAlpha=g,this.fill(c),c.globalAlpha=f):this.fill(c)),this.isStroke()&&d>0&&(!r.isNil(h)&&h!==1&&(c.globalAlpha=h),this.stroke(c)),this.afterDrawPath(c)},A.prototype.createPath=function(c){},A.prototype.afterDrawPath=function(c){},A.prototype.isInShape=function(c,u){var d=this.isStroke(),f=this.isFill(),h=this.getHitLineWidth();return this.isInStrokeOrPath(c,u,d,f,h)},A.prototype.isInStrokeOrPath=function(c,u,d,f,h){return!1},A.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var c=this.attrs;return c.lineWidth+c.lineAppendWidth},A}(t.AbstractShape);return GB.default=s,GB}var JB={},Hoe;function AIt(){if(Hoe)return JB;Hoe=1,Object.defineProperty(JB,"__esModule",{value:!0});var e=Kt,t=Gl(),r=Po(),n=function(a){e.__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var o=a.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},o),{x:0,y:0,r:0})},i.prototype.isInStrokeOrPath=function(o,s,l,A,c){var u=this.attr(),d=u.x,f=u.y,h=u.r,g=c/2,p=r.distance(d,f,o,s);return A&&l?p<=h+g:A?p<=h:l?p>=h-g&&p<=h+g:!1},i.prototype.createPath=function(o){var s=this.attr(),l=s.x,A=s.y,c=s.r;o.beginPath(),o.arc(l,A,c,0,Math.PI*2,!1),o.closePath()},i}(t.default);return JB.default=n,JB}var WB={},Goe;function cIt(){if(Goe)return WB;Goe=1,Object.defineProperty(WB,"__esModule",{value:!0});var e=Kt,t=Gl();function r(a,i,o,s){return a/(o*o)+i/(s*s)}var n=function(a){e.__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var o=a.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},o),{x:0,y:0,rx:0,ry:0})},i.prototype.isInStrokeOrPath=function(o,s,l,A,c){var u=this.attr(),d=c/2,f=u.x,h=u.y,g=u.rx,p=u.ry,E=(o-f)*(o-f),y=(s-h)*(s-h);return A&&l?r(E,y,g+d,p+d)<=1:A?r(E,y,g,p)<=1:l?r(E,y,g-d,p-d)>=1&&r(E,y,g+d,p+d)<=1:!1},i.prototype.createPath=function(o){var s=this.attr(),l=s.x,A=s.y,c=s.rx,u=s.ry;if(o.beginPath(),o.ellipse)o.ellipse(l,A,c,u,0,0,Math.PI*2,!1);else{var d=c>u?c:u,f=c>u?1:c/u,h=c>u?u/c:1;o.save(),o.translate(l,A),o.scale(f,h),o.arc(0,0,d,0,Math.PI*2),o.restore(),o.closePath()}},i}(t.default);return WB.default=n,WB}var XB={},Koe;function uIt(){if(Koe)return XB;Koe=1,Object.defineProperty(XB,"__esModule",{value:!0});var e=Kt,t=Gl(),r=Po();function n(i){return i instanceof HTMLElement&&r.isString(i.nodeName)&&i.nodeName.toUpperCase()==="CANVAS"}var a=function(i){e.__extends(o,i);function o(){return i!==null&&i.apply(this,arguments)||this}return o.prototype.getDefaultAttrs=function(){var s=i.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},s),{x:0,y:0,width:0,height:0})},o.prototype.initAttrs=function(s){this._setImage(s.img)},o.prototype.isStroke=function(){return!1},o.prototype.isOnlyHitBox=function(){return!0},o.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var s=this.get("canvas");s?s.draw():this.createPath(this.get("context"))}},o.prototype._setImage=function(s){var l=this,A=this.attrs;if(r.isString(s)){var c=new Image;c.onload=function(){if(l.destroyed)return!1;l.attr("img",c),l.set("loading",!1),l._afterLoading();var u=l.get("callback");u&&u.call(l)},c.crossOrigin="Anonymous",c.src=s,this.set("loading",!0)}else s instanceof Image?(A.width||(A.width=s.width),A.height||(A.height=s.height)):n(s)&&(A.width||(A.width=Number(s.getAttribute("width"))),A.height||(A.height,Number(s.getAttribute("height"))))},o.prototype.onAttrChange=function(s,l,A){i.prototype.onAttrChange.call(this,s,l,A),s==="img"&&this._setImage(l)},o.prototype.createPath=function(s){if(this.get("loading")){this.set("toDraw",!0),this.set("context",s);return}var l=this.attr(),A=l.x,c=l.y,u=l.width,d=l.height,f=l.sx,h=l.sy,g=l.swidth,p=l.sheight,E=l.img;(E instanceof Image||n(E))&&(!r.isNil(f)&&!r.isNil(h)&&!r.isNil(g)&&!r.isNil(p)?s.drawImage(E,f,h,g,p,A,c,u,d):s.drawImage(E,A,c,u,d))},o}(t.default);return XB.default=a,XB}var qB={};const TA=Un(Bwt);var ZB={},Voe;function F2(){if(Voe)return ZB;Voe=1,Object.defineProperty(ZB,"__esModule",{value:!0});var e=TA;function t(r,n,a,i,o,s,l){var A=Math.min(r,a),c=Math.max(r,a),u=Math.min(n,i),d=Math.max(n,i),f=o/2;return s>=A-f&&s<=c+f&&l>=u-f&&l<=d+f?e.Line.pointToLine(r,n,a,i,s,l)<=o/2:!1}return ZB.default=t,ZB}var Joe;function dIt(){if(Joe)return qB;Joe=1,Object.defineProperty(qB,"__esModule",{value:!0});var e=Kt,t=TA,r=Gl(),n=F2(),a=D2(),i=function(o){e.__extends(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.getDefaultAttrs=function(){var l=o.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},l),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},s.prototype.initAttrs=function(l){this.setArrow()},s.prototype.onAttrChange=function(l,A,c){o.prototype.onAttrChange.call(this,l,A,c),this.setArrow()},s.prototype.setArrow=function(){var l=this.attr(),A=l.x1,c=l.y1,u=l.x2,d=l.y2,f=l.startArrow,h=l.endArrow;f&&a.addStartArrow(this,l,u,d,A,c),h&&a.addEndArrow(this,l,A,c,u,d)},s.prototype.isInStrokeOrPath=function(l,A,c,u,d){if(!c||!d)return!1;var f=this.attr(),h=f.x1,g=f.y1,p=f.x2,E=f.y2;return n.default(h,g,p,E,d,l,A)},s.prototype.createPath=function(l){var A=this.attr(),c=A.x1,u=A.y1,d=A.x2,f=A.y2,h=A.startArrow,g=A.endArrow,p={dx:0,dy:0},E={dx:0,dy:0};h&&h.d&&(p=a.getShortenOffset(c,u,d,f,A.startArrow.d)),g&&g.d&&(E=a.getShortenOffset(c,u,d,f,A.endArrow.d)),l.beginPath(),l.moveTo(c+p.dx,u+p.dy),l.lineTo(d-E.dx,f-E.dy)},s.prototype.afterDrawPath=function(l){var A=this.get("startArrowShape"),c=this.get("endArrowShape");A&&A.draw(l),c&&c.draw(l)},s.prototype.getTotalLength=function(){var l=this.attr(),A=l.x1,c=l.y1,u=l.x2,d=l.y2;return t.Line.length(A,c,u,d)},s.prototype.getPoint=function(l){var A=this.attr(),c=A.x1,u=A.y1,d=A.x2,f=A.y2;return t.Line.pointAt(c,u,d,f,l)},s}(r.default);return qB.default=i,qB}var $B={};const _2=Un(ABt);var Woe;function fIt(){if(Woe)return $B;Woe=1,Object.defineProperty($B,"__esModule",{value:!0});var e=Kt,t=Gt,r=_2,n=Gl(),a=Po(),i=o1(),o={circle:function(l,A,c){return[["M",l-c,A],["A",c,c,0,1,0,l+c,A],["A",c,c,0,1,0,l-c,A]]},square:function(l,A,c){return[["M",l-c,A-c],["L",l+c,A-c],["L",l+c,A+c],["L",l-c,A+c],["Z"]]},diamond:function(l,A,c){return[["M",l-c,A],["L",l,A-c],["L",l+c,A],["L",l,A+c],["Z"]]},triangle:function(l,A,c){var u=c*Math.sin(.3333333333333333*Math.PI);return[["M",l-c,A+u],["L",l,A-u],["L",l+c,A+u],["Z"]]},"triangle-down":function(l,A,c){var u=c*Math.sin(.3333333333333333*Math.PI);return[["M",l-c,A-u],["L",l+c,A-u],["L",l,A+u],["Z"]]}},s=function(l){e.__extends(A,l);function A(){return l!==null&&l.apply(this,arguments)||this}return A.prototype.initAttrs=function(c){this._resetParamsCache()},A.prototype._resetParamsCache=function(){this.set("paramsCache",{})},A.prototype.onAttrChange=function(c,u,d){l.prototype.onAttrChange.call(this,c,u,d),["symbol","x","y","r","radius"].indexOf(c)!==-1&&this._resetParamsCache()},A.prototype.isOnlyHitBox=function(){return!0},A.prototype._getR=function(c){return t.isNil(c.r)?c.radius:c.r},A.prototype._getPath=function(){var c=this.attr(),u=c.x,d=c.y,f=c.symbol||"circle",h=this._getR(c),g,p;if(a.isFunction(f))g=f,p=g(u,d,h),p=r.path2Absolute(p);else{if(g=A.Symbols[f],!g)return console.warn(f+" marker is not supported."),null;p=g(u,d,h)}return p},A.prototype.createPath=function(c){var u=this._getPath(),d=this.get("paramsCache");i.drawPath(this,c,{path:u},d)},A.Symbols=o,A}(n.default);return $B.default=s,$B}var eM={},tM={},Xoe;function Hbe(){if(Xoe)return tM;Xoe=1,Object.defineProperty(tM,"__esModule",{value:!0});var e=Ao;function t(r,n,a){var i=e.getOffScreenContext();return r.createPath(i),i.isPointInPath(n,a)}return tM.default=t,tM}var rM={},qoe;function Gbe(){if(qoe)return rM;qoe=1,Object.defineProperty(rM,"__esModule",{value:!0});var e=1e-6;function t(a){return Math.abs(a)<e?0:a<0?-1:1}function r(a,i,o){return(o[0]-a[0])*(i[1]-a[1])===(i[0]-a[0])*(o[1]-a[1])&&Math.min(a[0],i[0])<=o[0]&&o[0]<=Math.max(a[0],i[0])&&Math.min(a[1],i[1])<=o[1]&&o[1]<=Math.max(a[1],i[1])}function n(a,i,o){var s=!1,l=a.length;if(l<=2)return!1;for(var A=0;A<l;A++){var c=a[A],u=a[(A+1)%l];if(r(c,u,[i,o]))return!0;t(c[1]-o)>0!=t(u[1]-o)>0&&t(i-(o-c[1])*(c[0]-u[0])/(c[1]-u[1])-c[0])<0&&(s=!s)}return s}return rM.default=n,rM}var nM={};const hIt=Un(jxe);var aM={},Zoe;function Kbe(){if(Zoe)return aM;Zoe=1,Object.defineProperty(aM,"__esModule",{value:!0});var e=Po();function t(r,n,a,i,o,s,l,A){var c=(Math.atan2(A-n,l-r)+Math.PI*2)%(Math.PI*2);if(c<i||c>o)return!1;var u={x:r+a*Math.cos(c),y:n+a*Math.sin(c)};return e.distance(u.x,u.y,l,A)<=s/2}return aM.default=t,aM}var $oe;function gIt(){if($oe)return nM;$oe=1,Object.defineProperty(nM,"__esModule",{value:!0});var e=Kt,t=Ao,r=TA,n=TA,a=Bd,i=hIt,o=Po(),s=F2(),l=Kbe(),A=a.ext.transform;function c(f){for(var h=!1,g=f.length,p=0;p<g;p++){var E=f[p],y=E[0];if(y==="C"||y==="A"||y==="Q"){h=!0;break}}return h}function u(f,h,g,p,E){for(var y=!1,C=h/2,w=0;w<f.length;w++){var B=f[w],M=B.currentPoint,I=B.params,S=B.prePoint,R=B.box;if(!(R&&!o.inBox(R.x-C,R.y-C,R.width+h,R.height+h,g,p))){switch(B.command){case"L":case"Z":y=s.default(S[0],S[1],M[0],M[1],h,g,p);break;case"Q":var b=r.Quad.pointDistance(S[0],S[1],I[1],I[2],I[3],I[4],g,p);y=b<=h/2;break;case"C":var Q=n.Cubic.pointDistance(S[0],S[1],I[1],I[2],I[3],I[4],I[5],I[6],g,p,E);y=Q<=h/2;break;case"A":var D=B.arcParams,F=D.cx,N=D.cy,k=D.rx,O=D.ry,P=D.startAngle,z=D.endAngle,j=D.xRotation,V=[g,p,1],L=k>O?k:O,K=k>O?1:k/O,J=k>O?O/k:1,Y=A(null,[["t",-F,-N],["r",-j],["s",1/K,1/J]]);i.transformMat3(V,V,Y),y=l.default(0,0,L,P,z,h,V[0],V[1]);break}if(y)break}}return y}function d(f){for(var h=f.length,g=[],p=[],E=[],y=0;y<h;y++){var C=f[y],w=C[0];w==="M"?(E.length&&(p.push(E),E=[]),E.push([C[1],C[2]])):w==="Z"?E.length&&(g.push(E),E=[]):E.push([C[1],C[2]])}return E.length>0&&p.push(E),{polygons:g,polylines:p}}return nM.default=e.__assign({hasArc:c,extractPolygons:d,isPointInStroke:u},t.PathUtil),nM}var ese;function pIt(){if(ese)return eM;ese=1,Object.defineProperty(eM,"__esModule",{value:!0});var e=Kt,t=TA,r=Gt,n=Gl(),a=_2,i=o1(),o=Hbe(),s=Gbe(),l=gIt(),A=D2();function c(d,f,h){for(var g=!1,p=0;p<d.length;p++){var E=d[p];if(g=s.default(E,f,h),g)break}return g}var u=function(d){e.__extends(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.prototype.getDefaultAttrs=function(){var h=d.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},h),{startArrow:!1,endArrow:!1})},f.prototype.initAttrs=function(h){this._setPathArr(h.path),this.setArrow()},f.prototype.onAttrChange=function(h,g,p){d.prototype.onAttrChange.call(this,h,g,p),h==="path"&&this._setPathArr(g),this.setArrow()},f.prototype._setPathArr=function(h){this.attrs.path=a.path2Absolute(h);var g=l.default.hasArc(h);this.set("hasArc",g),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},f.prototype.getSegments=function(){var h=this.get("segements");return h||(h=a.path2Segments(this.attr("path")),this.set("segments",h)),h},f.prototype.setArrow=function(){var h=this.attr(),g=h.startArrow,p=h.endArrow;if(g){var E=this.getStartTangent();A.addStartArrow(this,h,E[0][0],E[0][1],E[1][0],E[1][1])}if(p){var E=this.getEndTangent();A.addEndArrow(this,h,E[0][0],E[0][1],E[1][0],E[1][1])}},f.prototype.isInStrokeOrPath=function(h,g,p,E,y){var C=this.getSegments(),w=this.get("hasArc"),B=!1;if(p){var M=this.getTotalLength();B=l.default.isPointInStroke(C,y,h,g,M)}if(!B&&E)if(w)B=o.default(this,h,g);else{var I=this.attr("path"),S=l.default.extractPolygons(I);B=c(S.polygons,h,g)||c(S.polylines,h,g)}return B},f.prototype.createPath=function(h){var g=this.attr(),p=this.get("paramsCache");i.drawPath(this,h,g,p)},f.prototype.afterDrawPath=function(h){var g=this.get("startArrowShape"),p=this.get("endArrowShape");g&&g.draw(h),p&&p.draw(h)},f.prototype.getTotalLength=function(){var h=this.get("totalLength");return r.isNil(h)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):h},f.prototype.getPoint=function(h){var g=this.get("tCache");g||(this._calculateCurve(),this._setTcache(),g=this.get("tCache"));var p,E,y=this.get("curve");if(!g||g.length===0)return y?{x:y[0][1],y:y[0][2]}:null;r.each(g,function(M,I){h>=M[0]&&h<=M[1]&&(p=(h-M[0])/(M[1]-M[0]),E=I)});var C=y[E];if(r.isNil(C)||r.isNil(E))return null;var w=C.length,B=y[E+1];return t.Cubic.pointAt(C[w-2],C[w-1],B[1],B[2],B[3],B[4],B[5],B[6],p)},f.prototype._calculateCurve=function(){var h=this.attr().path;this.set("curve",l.default.pathToCurve(h))},f.prototype._setTcache=function(){var h=0,g=0,p=[],E,y,C,w,B=this.get("curve");if(B){if(r.each(B,function(M,I){C=B[I+1],w=M.length,C&&(h+=t.Cubic.length(M[w-2],M[w-1],C[1],C[2],C[3],C[4],C[5],C[6])||0)}),this.set("totalLength",h),h===0){this.set("tCache",[]);return}r.each(B,function(M,I){C=B[I+1],w=M.length,C&&(E=[],E[0]=g/h,y=t.Cubic.length(M[w-2],M[w-1],C[1],C[2],C[3],C[4],C[5],C[6]),g+=y||0,E[1]=g/h,p.push(E))}),this.set("tCache",p)}},f.prototype.getStartTangent=function(){var h=this.getSegments(),g;if(h.length>1){var p=h[0].currentPoint,E=h[1].currentPoint,y=h[1].startTangent;g=[],y?(g.push([p[0]-y[0],p[1]-y[1]]),g.push([p[0],p[1]])):(g.push([E[0],E[1]]),g.push([p[0],p[1]]))}return g},f.prototype.getEndTangent=function(){var h=this.getSegments(),g=h.length,p;if(g>1){var E=h[g-2].currentPoint,y=h[g-1].currentPoint,C=h[g-1].endTangent;p=[],C?(p.push([y[0]-C[0],y[1]-C[1]]),p.push([y[0],y[1]])):(p.push([E[0],E[1]]),p.push([y[0],y[1]]))}return p},f}(n.default);return eM.default=u,eM}var iM={},oM={},tse;function Vbe(){if(tse)return oM;tse=1,Object.defineProperty(oM,"__esModule",{value:!0});var e=F2();function t(r,n,a,i,o){var s=r.length;if(s<2)return!1;for(var l=0;l<s-1;l++){var A=r[l][0],c=r[l][1],u=r[l+1][0],d=r[l+1][1];if(e.default(A,c,u,d,n,a,i))return!0}if(o){var f=r[0],h=r[s-1];if(e.default(f[0],f[1],h[0],h[1],n,a,i))return!0}return!1}return oM.default=t,oM}var rse;function vIt(){if(rse)return iM;rse=1,Object.defineProperty(iM,"__esModule",{value:!0});var e=Kt,t=Gl(),r=Vbe(),n=Gbe(),a=function(i){e.__extends(o,i);function o(){return i!==null&&i.apply(this,arguments)||this}return o.prototype.isInStrokeOrPath=function(s,l,A,c,u){var d=this.attr().points,f=!1;return A&&(f=r.default(d,u,s,l,!0)),!f&&c&&(f=n.default(d,s,l)),f},o.prototype.createPath=function(s){var l=this.attr(),A=l.points;if(!(A.length<2)){s.beginPath();for(var c=0;c<A.length;c++){var u=A[c];c===0?s.moveTo(u[0],u[1]):s.lineTo(u[0],u[1])}s.closePath()}},o}(t.default);return iM.default=a,iM}var sM={},nse;function mIt(){if(nse)return sM;nse=1,Object.defineProperty(sM,"__esModule",{value:!0});var e=Kt,t=TA,r=TA,n=Gt,a=Gl(),i=Vbe(),o=D2(),s=function(l){e.__extends(A,l);function A(){return l!==null&&l.apply(this,arguments)||this}return A.prototype.getDefaultAttrs=function(){var c=l.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},c),{startArrow:!1,endArrow:!1})},A.prototype.initAttrs=function(c){this.setArrow()},A.prototype.onAttrChange=function(c,u,d){l.prototype.onAttrChange.call(this,c,u,d),this.setArrow(),["points"].indexOf(c)!==-1&&this._resetCache()},A.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},A.prototype.setArrow=function(){var c=this.attr(),u=this.attrs,d=u.points,f=u.startArrow,h=u.endArrow,g=d.length,p=d[0][0],E=d[0][1],y=d[g-1][0],C=d[g-1][1];f&&o.addStartArrow(this,c,d[1][0],d[1][1],p,E),h&&o.addEndArrow(this,c,d[g-2][0],d[g-2][1],y,C)},A.prototype.isFill=function(){return!1},A.prototype.isInStrokeOrPath=function(c,u,d,f,h){if(!d||!h)return!1;var g=this.attr().points;return i.default(g,h,c,u,!1)},A.prototype.isStroke=function(){return!0},A.prototype.createPath=function(c){var u=this.attr(),d=u.points,f=u.startArrow,h=u.endArrow,g=d.length;if(!(d.length<2)){var p=d[0][0],E=d[0][1],y=d[g-1][0],C=d[g-1][1];if(f&&f.d){var w=o.getShortenOffset(p,E,d[1][0],d[1][1],f.d);p+=w.dx,E+=w.dy}if(h&&h.d){var w=o.getShortenOffset(d[g-2][0],d[g-2][1],y,C,h.d);y-=w.dx,C-=w.dy}c.beginPath(),c.moveTo(p,E);for(var B=0;B<g-1;B++){var M=d[B];c.lineTo(M[0],M[1])}c.lineTo(y,C)}},A.prototype.afterDrawPath=function(c){var u=this.get("startArrowShape"),d=this.get("endArrowShape");u&&u.draw(c),d&&d.draw(c)},A.prototype.getTotalLength=function(){var c=this.attr().points,u=this.get("totalLength");return n.isNil(u)?(this.set("totalLength",r.Polyline.length(c)),this.get("totalLength")):u},A.prototype.getPoint=function(c){var u=this.attr().points,d=this.get("tCache");d||(this._setTcache(),d=this.get("tCache"));var f,h;return n.each(d,function(g,p){c>=g[0]&&c<=g[1]&&(f=(c-g[0])/(g[1]-g[0]),h=p)}),t.Line.pointAt(u[h][0],u[h][1],u[h+1][0],u[h+1][1],f)},A.prototype._setTcache=function(){var c=this.attr().points;if(!(!c||c.length===0)){var u=this.getTotalLength();if(!(u<=0)){var d=0,f=[],h,g;n.each(c,function(p,E){c[E+1]&&(h=[],h[0]=d/u,g=t.Line.length(p[0],p[1],c[E+1][0],c[E+1][1]),d+=g,h[1]=d/u,f.push(h))}),this.set("tCache",f)}}},A.prototype.getStartTangent=function(){var c=this.attr().points,u=[];return u.push([c[1][0],c[1][1]]),u.push([c[0][0],c[0][1]]),u},A.prototype.getEndTangent=function(){var c=this.attr().points,u=c.length-1,d=[];return d.push([c[u-1][0],c[u-1][1]]),d.push([c[u][0],c[u][1]]),d},A}(a.default);return sM.default=s,sM}var lM={},AM={},ase;function EIt(){if(ase)return AM;ase=1,Object.defineProperty(AM,"__esModule",{value:!0});var e=Po();function t(r,n,a,i,o,s,l){var A=o/2;return e.inBox(r-A,n-A,a,o,s,l)||e.inBox(r+a-A,n-A,o,i,s,l)||e.inBox(r+A,n+i-A,a,o,s,l)||e.inBox(r-A,n+A,o,i,s,l)}return AM.default=t,AM}var cM={},ise;function yIt(){if(ise)return cM;ise=1,Object.defineProperty(cM,"__esModule",{value:!0});var e=F2(),t=Kbe();function r(n,a,i,o,s,l,A,c){return e.default(n+s,a,n+i-s,a,l,A,c)||e.default(n+i,a+s,n+i,a+o-s,l,A,c)||e.default(n+i-s,a+o,n+s,a+o,l,A,c)||e.default(n,a+o-s,n,a+s,l,A,c)||t.default(n+i-s,a+s,s,1.5*Math.PI,2*Math.PI,l,A,c)||t.default(n+i-s,a+o-s,s,0,.5*Math.PI,l,A,c)||t.default(n+s,a+o-s,s,.5*Math.PI,Math.PI,l,A,c)||t.default(n+s,a+s,s,Math.PI,1.5*Math.PI,l,A,c)}return cM.default=r,cM}var ose;function CIt(){if(ose)return lM;ose=1,Object.defineProperty(lM,"__esModule",{value:!0});var e=Kt,t=Gl(),r=Lbe(),n=Po(),a=EIt(),i=yIt(),o=Hbe(),s=function(l){e.__extends(A,l);function A(){return l!==null&&l.apply(this,arguments)||this}return A.prototype.getDefaultAttrs=function(){var c=l.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},c),{x:0,y:0,width:0,height:0,radius:0})},A.prototype.isInStrokeOrPath=function(c,u,d,f,h){var g=this.attr(),p=g.x,E=g.y,y=g.width,C=g.height,w=g.radius;if(w){var M=!1;return d&&(M=i.default(p,E,y,C,w,h,c,u)),!M&&f&&(M=o.default(this,c,u)),M}else{var B=h/2;if(f&&d)return n.inBox(p-B,E-B,y+B,C+B,c,u);if(f)return n.inBox(p,E,y,C,c,u);if(d)return a.default(p,E,y,C,h,c,u)}},A.prototype.createPath=function(c){var u=this.attr(),d=u.x,f=u.y,h=u.width,g=u.height,p=u.radius;if(c.beginPath(),p===0)c.rect(d,f,h,g);else{var E=r.parseRadius(p),y=E[0],C=E[1],w=E[2],B=E[3];c.moveTo(d+y,f),c.lineTo(d+h-C,f),C!==0&&c.arc(d+h-C,f+C,C,-Math.PI/2,0),c.lineTo(d+h,f+g-w),w!==0&&c.arc(d+h-w,f+g-w,w,0,Math.PI/2),c.lineTo(d+B,f+g),B!==0&&c.arc(d+B,f+g-B,B,Math.PI/2,Math.PI),c.lineTo(d,f+y),y!==0&&c.arc(d+y,f+y,y,Math.PI,Math.PI*1.5),c.closePath()}},A}(t.default);return lM.default=s,lM}var uM={},sse;function wIt(){if(sse)return uM;sse=1,Object.defineProperty(uM,"__esModule",{value:!0});var e=Kt,t=Gl(),r=Po(),n=Ao,a=function(i){e.__extends(o,i);function o(){return i!==null&&i.apply(this,arguments)||this}return o.prototype.getDefaultAttrs=function(){var s=i.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},s),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},o.prototype.isOnlyHitBox=function(){return!0},o.prototype.initAttrs=function(s){this._assembleFont(),s.text&&this._setText(s.text)},o.prototype._assembleFont=function(){var s=this.attrs;s.font=n.assembleFont(s)},o.prototype._setText=function(s){var l=null;r.isString(s)&&s.indexOf(`
`)!==-1&&(l=s.split(`
`)),this.set("textArr",l)},o.prototype.onAttrChange=function(s,l,A){i.prototype.onAttrChange.call(this,s,l,A),s.startsWith("font")&&this._assembleFont(),s==="text"&&this._setText(l)},o.prototype._getSpaceingY=function(){var s=this.attrs,l=s.lineHeight,A=s.fontSize*1;return l?l-A:A*.14},o.prototype._drawTextArr=function(s,l,A){var c=this.attrs,u=c.textBaseline,d=c.x,f=c.y,h=c.fontSize*1,g=this._getSpaceingY(),p=n.getTextHeight(c.text,c.fontSize,c.lineHeight),E;r.each(l,function(y,C){E=f+C*(g+h)-p+h,u==="middle"&&(E+=p-h-(p-h)/2),u==="top"&&(E+=p-h),r.isNil(y)||(A?s.fillText(y,d,E):s.strokeText(y,d,E))})},o.prototype._drawText=function(s,l){var A=this.attr(),c=A.x,u=A.y,d=this.get("textArr");if(d)this._drawTextArr(s,d,l);else{var f=A.text;r.isNil(f)||(l?s.fillText(f,c,u):s.strokeText(f,c,u))}},o.prototype.strokeAndFill=function(s){var l=this.attrs,A=l.lineWidth,c=l.opacity,u=l.strokeOpacity,d=l.fillOpacity;this.isStroke()&&A>0&&(!r.isNil(u)&&u!==1&&(s.globalAlpha=c),this.stroke(s)),this.isFill()&&(!r.isNil(d)&&d!==1?(s.globalAlpha=d,this.fill(s),s.globalAlpha=c):this.fill(s)),this.afterDrawPath(s)},o.prototype.fill=function(s){this._drawText(s,!0)},o.prototype.stroke=function(s){this._drawText(s,!1)},o}(t.default);return uM.default=a,uM}var lse;function s1(){return lse||(lse=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Gl();Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return t.default}});var r=AIt();Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r.default}});var n=cIt();Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return n.default}});var a=uIt();Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return a.default}});var i=dIt();Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return i.default}});var o=fIt();Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return o.default}});var s=pIt();Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return s.default}});var l=vIt();Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return l.default}});var A=mIt();Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return A.default}});var c=CIt();Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return c.default}});var u=wIt();Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return u.default}})}(_8)),_8}var dM={},_E={},Ase;function BIt(){if(Ase)return _E;Ase=1,Object.defineProperty(_E,"__esModule",{value:!0}),_E.getShape=void 0;var e=Ao;function t(i,o){if(o){var s=e.invert(o);return e.multiplyVec2(s,i)}return i}function r(i,o,s){var l=i.getTotalMatrix();if(l){var A=t([o,s,1],l),c=A[0],u=A[1];return[c,u]}return[o,s]}function n(i,o,s){if(i.isCanvas&&i.isCanvas())return!0;if(!e.isAllowCapture(i)||i.cfg.isInView===!1)return!1;if(i.cfg.clipShape){var l=r(i,o,s),A=l[0],c=l[1];if(i.isClipped(A,c))return!1}var u=i.cfg.cacheCanvasBBox||i.getCanvasBBox();return o>=u.minX&&o<=u.maxX&&s>=u.minY&&s<=u.maxY}function a(i,o,s){if(!n(i,o,s))return null;for(var l=null,A=i.getChildren(),c=A.length,u=c-1;u>=0;u--){var d=A[u];if(d.isGroup())l=a(d,o,s);else if(n(d,o,s)){var f=d,h=r(d,o,s),g=h[0],p=h[1];f.isInShape(g,p)&&(l=d)}if(l)break}return l}return _E.getShape=a,_E}var cse;function MIt(){if(cse)return dM;cse=1,Object.defineProperty(dM,"__esModule",{value:!0});var e=Kt,t=Ao,r=BIt(),n=s1(),a=g6(),i=Po(),o=o1(),s=function(l){e.__extends(A,l);function A(){return l!==null&&l.apply(this,arguments)||this}return A.prototype.getDefaultCfg=function(){var c=l.prototype.getDefaultCfg.call(this);return c.renderer="canvas",c.autoDraw=!0,c.localRefresh=!0,c.refreshElements=[],c.clipView=!0,c.quickHit=!1,c},A.prototype.onCanvasChange=function(c){(c==="attr"||c==="sort"||c==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},A.prototype.getShapeBase=function(){return n},A.prototype.getGroupBase=function(){return a.default},A.prototype.getPixelRatio=function(){var c=this.get("pixelRatio")||i.getPixelRatio();return c>=1?Math.ceil(c):1},A.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},A.prototype.createDom=function(){var c=document.createElement("canvas"),u=c.getContext("2d");return this.set("context",u),c},A.prototype.setDOMSize=function(c,u){l.prototype.setDOMSize.call(this,c,u);var d=this.get("context"),f=this.get("el"),h=this.getPixelRatio();f.width=h*c,f.height=h*u,h>1&&d.scale(h,h)},A.prototype.clear=function(){l.prototype.clear.call(this),this._clearFrame();var c=this.get("context"),u=this.get("el");c.clearRect(0,0,u.width,u.height)},A.prototype.getShape=function(c,u){var d;return this.get("quickHit")?d=r.getShape(this,c,u):d=l.prototype.getShape.call(this,c,u,null),d},A.prototype._getRefreshRegion=function(){var c=this.get("refreshElements"),u=this.getViewRange(),d;if(c.length&&c[0]===this)d=u;else if(d=o.getMergedRegion(c),d){d.minX=Math.floor(d.minX),d.minY=Math.floor(d.minY),d.maxX=Math.ceil(d.maxX),d.maxY=Math.ceil(d.maxY),d.maxY+=1;var f=this.get("clipView");f&&(d=o.mergeView(d,u))}return d},A.prototype.refreshElement=function(c){var u=this.get("refreshElements");u.push(c)},A.prototype._clearFrame=function(){var c=this.get("drawFrame");c&&(i.clearAnimationFrame(c),this.set("drawFrame",null),this.set("refreshElements",[]))},A.prototype.draw=function(){var c=this.get("drawFrame");this.get("autoDraw")&&c||this._startDraw()},A.prototype._drawAll=function(){var c=this.get("context"),u=this.get("el"),d=this.getChildren();c.clearRect(0,0,u.width,u.height),o.applyAttrsToContext(c,this),o.drawChildren(c,d),this.set("refreshElements",[])},A.prototype._drawRegion=function(){var c=this.get("context"),u=this.get("refreshElements"),d=this.getChildren(),f=this._getRefreshRegion();f?(c.clearRect(f.minX,f.minY,f.maxX-f.minX,f.maxY-f.minY),c.save(),c.beginPath(),c.rect(f.minX,f.minY,f.maxX-f.minX,f.maxY-f.minY),c.clip(),o.applyAttrsToContext(c,this),o.checkRefresh(this,d,f),o.drawChildren(c,d,f),c.restore()):u.length&&o.clearChanged(u),i.each(u,function(h){h.get("hasChanged")&&h.set("hasChanged",!1)}),this.set("refreshElements",[])},A.prototype._startDraw=function(){var c=this,u=this.get("drawFrame"),d=this.get("drawFrameCallback");u||(u=i.requestAnimationFrame(function(){c.get("localRefresh")?c._drawRegion():c._drawAll(),c.set("drawFrame",null),d&&d()}),this.set("drawFrame",u))},A.prototype.skipDraw=function(){},A.prototype.removeDom=function(){var c=this.get("el");c.width=0,c.height=0,c.parentNode.removeChild(c)},A}(t.AbstractCanvas);return dM.default=s,dM}var use;function xIt(){return use||(use=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=void 0;var t=Kt,r=s1();e.Shape=r,t.__exportStar(Ao,e);var n=MIt();Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return n.default}});var a=g6();Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return a.default}});var i=Ube();Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return i.default}}),e.version="0.5.12"}(F8)),F8}var k8={},P8={},fM={},oc={},il={},sc={},dse;function Oo(){return dse||(dse=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.EVENTS=sc.SVG_ATTR_MAP=sc.SHAPE_TO_TAGS=void 0,sc.SHAPE_TO_TAGS={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},sc.SVG_ATTR_MAP={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},sc.EVENTS=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]),sc}var fse;function Kl(){if(fse)return il;fse=1,Object.defineProperty(il,"__esModule",{value:!0}),il.moveTo=il.sortDom=il.createDom=il.createSVGElement=void 0;var e=Gt,t=Oo();function r(o){return document.createElementNS("http://www.w3.org/2000/svg",o)}il.createSVGElement=r;function n(o){var s=t.SHAPE_TO_TAGS[o.type],l=o.getParent();if(!s)throw new Error("the type "+o.type+" is not supported by svg");var A=r(s);if(o.get("id")&&(A.id=o.get("id")),o.set("el",A),o.set("attrs",{}),l){var c=l.get("el");c||(c=l.createDom(),l.set("el",c)),c.appendChild(A)}return A}il.createDom=n;function a(o,s){var l=o.get("el"),A=e.toArray(l.children).sort(s),c=document.createDocumentFragment();A.forEach(function(u){c.appendChild(u)}),l.appendChild(c)}il.sortDom=a;function i(o,s){var l=o.parentNode,A=Array.from(l.childNodes).filter(function(f){return f.nodeType===1&&f.nodeName.toLowerCase()!=="defs"}),c=A[s],u=A.indexOf(o);if(c){if(u>s)l.insertBefore(o,c);else if(u<s){var d=A[s+1];d?l.insertBefore(o,d):l.appendChild(o)}}else l.appendChild(o)}return il.moveTo=i,il}var hse;function l1(){if(hse)return oc;hse=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.setClip=oc.setTransform=oc.setShadow=void 0;var e=Kl();function t(a,i){var o=a.cfg.el,s=a.attr(),l={dx:s.shadowOffsetX,dy:s.shadowOffsetY,blur:s.shadowBlur,color:s.shadowColor};if(!l.dx&&!l.dy&&!l.blur&&!l.color)o.removeAttribute("filter");else{var A=i.find("filter",l);A||(A=i.addShadow(l)),o.setAttribute("filter","url(#"+A+")")}}oc.setShadow=t;function r(a){var i=a.attr().matrix;if(i){for(var o=a.cfg.el,s=[],l=0;l<9;l+=3)s.push(i[l]+","+i[l+1]);s=s.join(","),s.indexOf("NaN")===-1?o.setAttribute("transform","matrix("+s+")"):console.warn("invalid matrix:",i)}}oc.setTransform=r;function n(a,i){var o=a.getClip(),s=a.get("el");if(!o)s.removeAttribute("clip-path");else if(o&&!s.hasAttribute("clip-path")){e.createDom(o),o.createPath(i);var l=i.addClip(o);s.setAttribute("clip-path","url(#"+l+")")}}return oc.setClip=n,oc}var Xd={},gse;function p6(){if(gse)return Xd;gse=1,Object.defineProperty(Xd,"__esModule",{value:!0}),Xd.refreshElement=Xd.drawChildren=void 0;var e=l1(),t=Kl();function r(a,i){i.forEach(function(o){o.draw(a)})}Xd.drawChildren=r;function n(a,i){var o=a.get("canvas");if(o&&o.get("autoDraw")){var s=o.get("context"),l=a.getParent(),A=l?l.getChildren():[o],c=a.get("el");if(i==="remove"){var u=a.get("isClipShape");if(u){var d=c&&c.parentNode,f=d&&d.parentNode;d&&f&&f.removeChild(d)}else c&&c.parentNode&&c.parentNode.removeChild(c)}else if(i==="show")c.setAttribute("visibility","visible");else if(i==="hide")c.setAttribute("visibility","hidden");else if(i==="zIndex")t.moveTo(c,A.indexOf(a));else if(i==="sort"){var h=a.get("children");h&&h.length&&t.sortDom(a,function(g,p){return h.indexOf(g)-h.indexOf(p)?1:0})}else i==="clear"?c&&(c.innerHTML=""):i==="matrix"?e.setTransform(a):i==="clip"?e.setClip(a,s):i==="attr"||i==="add"&&a.draw(s)}}return Xd.refreshElement=n,Xd}var hM={},pse;function v6(){if(pse)return hM;pse=1,Object.defineProperty(hM,"__esModule",{value:!0});var e=Kt,t=Ao,r=Gt,n=N2(),a=p6(),i=l1(),o=Oo(),s=Kl(),l=function(A){e.__extends(c,A);function c(){return A!==null&&A.apply(this,arguments)||this}return c.prototype.isEntityGroup=function(){return!0},c.prototype.createDom=function(){var u=s.createSVGElement("g");this.set("el",u);var d=this.getParent();if(d){var f=d.get("el");f||(f=d.createDom(),d.set("el",f)),f.appendChild(u)}return u},c.prototype.afterAttrsChange=function(u){A.prototype.afterAttrsChange.call(this,u);var d=this.get("canvas");if(d&&d.get("autoDraw")){var f=d.get("context");this.createPath(f,u)}},c.prototype.onCanvasChange=function(u){a.refreshElement(this,u)},c.prototype.getShapeBase=function(){return n},c.prototype.getGroupBase=function(){return c},c.prototype.draw=function(u){var d=this.getChildren(),f=this.get("el");this.get("destroyed")?f&&f.parentNode.removeChild(f):(f||this.createDom(),i.setClip(this,u),this.createPath(u),d.length&&a.drawChildren(u,d))},c.prototype.createPath=function(u,d){var f=this.attr(),h=this.get("el");r.each(d||f,function(g,p){o.SVG_ATTR_MAP[p]&&h.setAttribute(o.SVG_ATTR_MAP[p],g)}),i.setTransform(this)},c}(t.AbstractGroup);return hM.default=l,hM}var vse;function qs(){if(vse)return fM;vse=1,Object.defineProperty(fM,"__esModule",{value:!0});var e=Kt,t=Ao,r=l1(),n=Kl(),a=p6(),i=Oo(),o=N2(),s=v6(),l=Ao,A=function(c){e.__extends(u,c);function u(){var d=c!==null&&c.apply(this,arguments)||this;return d.type="svg",d.canFill=!1,d.canStroke=!1,d}return u.prototype.getDefaultAttrs=function(){var d=c.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},d),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},u.prototype.afterAttrsChange=function(d){c.prototype.afterAttrsChange.call(this,d);var f=this.get("canvas");if(f&&f.get("autoDraw")){var h=f.get("context");this.draw(h,d)}},u.prototype.getShapeBase=function(){return o},u.prototype.getGroupBase=function(){return s.default},u.prototype.onCanvasChange=function(d){a.refreshElement(this,d)},u.prototype.calculateBBox=function(){var d=this.get("el"),f=null;if(d)f=d.getBBox();else{var h=l.getBBoxMethod(this.get("type"));h&&(f=h(this))}if(f){var g=f.x,p=f.y,E=f.width,y=f.height,C=this.getHitLineWidth(),w=C/2,B=g-w,M=p-w,I=g+E+w,S=p+y+w;return{x:B,y:M,minX:B,minY:M,maxX:I,maxY:S,width:E+C,height:y+C}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},u.prototype.isFill=function(){var d=this.attr(),f=d.fill,h=d.fillStyle;return(f||h||this.isClipShape())&&this.canFill},u.prototype.isStroke=function(){var d=this.attr(),f=d.stroke,h=d.strokeStyle;return(f||h)&&this.canStroke},u.prototype.draw=function(d,f){var h=this.get("el");this.get("destroyed")?h&&h.parentNode.removeChild(h):(h||n.createDom(this),r.setClip(this,d),this.createPath(d,f),this.shadow(d,f),this.strokeAndFill(d,f),this.transform(f))},u.prototype.createPath=function(d,f){},u.prototype.strokeAndFill=function(d,f){var h=f||this.attr(),g=h.fill,p=h.fillStyle,E=h.stroke,y=h.strokeStyle,C=h.fillOpacity,w=h.strokeOpacity,B=h.lineWidth,M=this.get("el");this.canFill&&(f?"fill"in h?this._setColor(d,"fill",g):"fillStyle"in h&&this._setColor(d,"fill",p):this._setColor(d,"fill",g||p),C&&M.setAttribute(i.SVG_ATTR_MAP.fillOpacity,C)),this.canStroke&&B>0&&(f?"stroke"in h?this._setColor(d,"stroke",E):"strokeStyle"in h&&this._setColor(d,"stroke",y):this._setColor(d,"stroke",E||y),w&&M.setAttribute(i.SVG_ATTR_MAP.strokeOpacity,w),B&&M.setAttribute(i.SVG_ATTR_MAP.lineWidth,B))},u.prototype._setColor=function(d,f,h){var g=this.get("el");if(!h){g.setAttribute(i.SVG_ATTR_MAP[f],"none");return}if(h=h.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(h)){var p=d.find("gradient",h);p||(p=d.addGradient(h)),g.setAttribute(i.SVG_ATTR_MAP[f],"url(#"+p+")")}else if(/^[p,P]{1}[\s]*\(/.test(h)){var p=d.find("pattern",h);p||(p=d.addPattern(h)),g.setAttribute(i.SVG_ATTR_MAP[f],"url(#"+p+")")}else g.setAttribute(i.SVG_ATTR_MAP[f],h)},u.prototype.shadow=function(d,f){var h=this.attr(),g=f||h,p=g.shadowOffsetX,E=g.shadowOffsetY,y=g.shadowBlur,C=g.shadowColor;(p||E||y||C)&&r.setShadow(this,d)},u.prototype.transform=function(d){var f=this.attr(),h=(d||f).matrix;h&&r.setTransform(this)},u.prototype.isInShape=function(d,f){return this.isPointInPath(d,f)},u.prototype.isPointInPath=function(d,f){var h=this.get("el"),g=this.get("canvas"),p=g.get("el").getBoundingClientRect(),E=d+p.left,y=f+p.top,C=document.elementFromPoint(E,y);return!!(C&&C.isEqualNode(h))},u.prototype.getHitLineWidth=function(){var d=this.attrs,f=d.lineWidth,h=d.lineAppendWidth;return this.isStroke()?f+h:0},u}(t.AbstractShape);return fM.default=A,fM}var gM={},mse;function IIt(){if(mse)return gM;mse=1,Object.defineProperty(gM,"__esModule",{value:!0});var e=Kt,t=Gt,r=Oo(),n=qs(),a=function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="circle",s.canFill=!0,s.canStroke=!0,s}return o.prototype.getDefaultAttrs=function(){var s=i.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},s),{x:0,y:0,r:0})},o.prototype.createPath=function(s,l){var A=this.attr(),c=this.get("el");t.each(l||A,function(u,d){d==="x"||d==="y"?c.setAttribute("c"+d,u):r.SVG_ATTR_MAP[d]&&c.setAttribute(r.SVG_ATTR_MAP[d],u)})},o}(n.default);return gM.default=a,gM}var pM={},Ese;function bIt(){if(Ese)return pM;Ese=1,Object.defineProperty(pM,"__esModule",{value:!0});var e=Kt,t=Gt,r=Oo(),n=qs(),a=function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="dom",s.canFill=!1,s.canStroke=!1,s}return o.prototype.createPath=function(s,l){var A=this.attr(),c=this.get("el");if(t.each(l||A,function(h,g){r.SVG_ATTR_MAP[g]&&c.setAttribute(r.SVG_ATTR_MAP[g],h)}),typeof A.html=="function"){var u=A.html.call(this,A);if(u instanceof Element||u instanceof HTMLDocument){for(var d=c.childNodes,f=d.length-1;f>=0;f--)c.removeChild(d[f]);c.appendChild(u)}else c.innerHTML=u}else c.innerHTML=A.html},o}(n.default);return pM.default=a,pM}var vM={},yse;function SIt(){if(yse)return vM;yse=1,Object.defineProperty(vM,"__esModule",{value:!0});var e=Kt,t=Gt,r=Oo(),n=qs(),a=function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="ellipse",s.canFill=!0,s.canStroke=!0,s}return o.prototype.getDefaultAttrs=function(){var s=i.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},s),{x:0,y:0,rx:0,ry:0})},o.prototype.createPath=function(s,l){var A=this.attr(),c=this.get("el");t.each(l||A,function(u,d){d==="x"||d==="y"?c.setAttribute("c"+d,u):r.SVG_ATTR_MAP[d]&&c.setAttribute(r.SVG_ATTR_MAP[d],u)})},o}(n.default);return vM.default=a,vM}var mM={},Cse;function RIt(){if(Cse)return mM;Cse=1,Object.defineProperty(mM,"__esModule",{value:!0});var e=Kt,t=Gt,r=Oo(),n=qs(),a=function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="image",s.canFill=!1,s.canStroke=!1,s}return o.prototype.getDefaultAttrs=function(){var s=i.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},s),{x:0,y:0,width:0,height:0})},o.prototype.createPath=function(s,l){var A=this,c=this.attr(),u=this.get("el");t.each(l||c,function(d,f){f==="img"?A._setImage(c.img):r.SVG_ATTR_MAP[f]&&u.setAttribute(r.SVG_ATTR_MAP[f],d)})},o.prototype.setAttr=function(s,l){this.attrs[s]=l,s==="img"&&this._setImage(l)},o.prototype._setImage=function(s){var l=this.attr(),A=this.get("el");if(t.isString(s))A.setAttribute("href",s);else if(s instanceof window.Image)l.width||(A.setAttribute("width",s.width),this.attr("width",s.width)),l.height||(A.setAttribute("height",s.height),this.attr("height",s.height)),A.setAttribute("href",s.src);else if(s instanceof HTMLElement&&t.isString(s.nodeName)&&s.nodeName.toUpperCase()==="CANVAS")A.setAttribute("href",s.toDataURL());else if(s instanceof ImageData){var c=document.createElement("canvas");c.setAttribute("width",""+s.width),c.setAttribute("height",""+s.height),c.getContext("2d").putImageData(s,0,0),l.width||(A.setAttribute("width",""+s.width),this.attr("width",s.width)),l.height||(A.setAttribute("height",""+s.height),this.attr("height",s.height)),A.setAttribute("href",c.toDataURL())}},o}(n.default);return mM.default=a,mM}var EM={},wse;function TIt(){if(wse)return EM;wse=1,Object.defineProperty(EM,"__esModule",{value:!0});var e=Kt,t=TA,r=Gt,n=Oo(),a=qs(),i=function(o){e.__extends(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.type="line",l.canFill=!1,l.canStroke=!0,l}return s.prototype.getDefaultAttrs=function(){var l=o.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},l),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},s.prototype.createPath=function(l,A){var c=this.attr(),u=this.get("el");r.each(A||c,function(d,f){if(f==="startArrow"||f==="endArrow")if(d){var h=r.isObject(d)?l.addArrow(c,n.SVG_ATTR_MAP[f]):l.getDefaultArrow(c,n.SVG_ATTR_MAP[f]);u.setAttribute(n.SVG_ATTR_MAP[f],"url(#"+h+")")}else u.removeAttribute(n.SVG_ATTR_MAP[f]);else n.SVG_ATTR_MAP[f]&&u.setAttribute(n.SVG_ATTR_MAP[f],d)})},s.prototype.getTotalLength=function(){var l=this.attr(),A=l.x1,c=l.y1,u=l.x2,d=l.y2;return t.Line.length(A,c,u,d)},s.prototype.getPoint=function(l){var A=this.attr(),c=A.x1,u=A.y1,d=A.x2,f=A.y2;return t.Line.pointAt(c,u,d,f,l)},s}(a.default);return EM.default=i,EM}var yM={},CM={},Bse;function QIt(){if(Bse)return CM;Bse=1,Object.defineProperty(CM,"__esModule",{value:!0});var e={circle:function(t,r,n){return[["M",t,r],["m",-n,0],["a",n,n,0,1,0,n*2,0],["a",n,n,0,1,0,-n*2,0]]},square:function(t,r,n){return[["M",t-n,r-n],["L",t+n,r-n],["L",t+n,r+n],["L",t-n,r+n],["Z"]]},diamond:function(t,r,n){return[["M",t-n,r],["L",t,r-n],["L",t+n,r],["L",t,r+n],["Z"]]},triangle:function(t,r,n){var a=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,r+a],["L",t,r-a],["L",t+n,r+a],["z"]]},triangleDown:function(t,r,n){var a=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,r-a],["L",t+n,r-a],["L",t,r+a],["Z"]]}};return CM.default={get:function(t){return e[t]},register:function(t,r){e[t]=r},remove:function(t){delete e[t]},getAll:function(){return e}},CM}var Mse;function DIt(){if(Mse)return yM;Mse=1,Object.defineProperty(yM,"__esModule",{value:!0});var e=Kt,t=Gt,r=qs(),n=QIt(),a=function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="marker",s.canFill=!0,s.canStroke=!0,s}return o.prototype.createPath=function(s){var l=this.get("el");l.setAttribute("d",this._assembleMarker())},o.prototype._assembleMarker=function(){var s=this._getPath();return t.isArray(s)?s.map(function(l){return l.join(" ")}).join(""):s},o.prototype._getPath=function(){var s=this.attr(),l=s.x,A=s.y,c=s.r||s.radius,u=s.symbol||"circle",d;return t.isFunction(u)?d=u:d=n.default.get(u),d?d(l,A,c):(console.warn(d+" symbol is not exist."),null)},o.symbolsFactory=n.default,o}(r.default);return yM.default=a,yM}var wM={},xse;function FIt(){if(xse)return wM;xse=1,Object.defineProperty(wM,"__esModule",{value:!0});var e=Kt,t=Gt,r=Oo(),n=qs(),a=function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="path",s.canFill=!0,s.canStroke=!0,s}return o.prototype.getDefaultAttrs=function(){var s=i.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},s),{startArrow:!1,endArrow:!1})},o.prototype.createPath=function(s,l){var A=this,c=this.attr(),u=this.get("el");t.each(l||c,function(d,f){if(f==="path"&&t.isArray(d))u.setAttribute("d",A._formatPath(d));else if(f==="startArrow"||f==="endArrow")if(d){var h=t.isObject(d)?s.addArrow(c,r.SVG_ATTR_MAP[f]):s.getDefaultArrow(c,r.SVG_ATTR_MAP[f]);u.setAttribute(r.SVG_ATTR_MAP[f],"url(#"+h+")")}else u.removeAttribute(r.SVG_ATTR_MAP[f]);else r.SVG_ATTR_MAP[f]&&u.setAttribute(r.SVG_ATTR_MAP[f],d)})},o.prototype._formatPath=function(s){var l=s.map(function(A){return A.join(" ")}).join("");return~l.indexOf("NaN")?"":l},o.prototype.getTotalLength=function(){var s=this.get("el");return s?s.getTotalLength():null},o.prototype.getPoint=function(s){var l=this.get("el"),A=this.getTotalLength();if(A===0)return null;var c=l?l.getPointAtLength(s*A):null;return c?{x:c.x,y:c.y}:null},o}(n.default);return wM.default=a,wM}var BM={},Ise;function _It(){if(Ise)return BM;Ise=1,Object.defineProperty(BM,"__esModule",{value:!0});var e=Kt,t=Gt,r=Oo(),n=qs(),a=function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="polygon",s.canFill=!0,s.canStroke=!0,s}return o.prototype.createPath=function(s,l){var A=this.attr(),c=this.get("el");t.each(l||A,function(u,d){d==="points"&&t.isArray(u)&&u.length>=2?c.setAttribute("points",u.map(function(f){return f[0]+","+f[1]}).join(" ")):r.SVG_ATTR_MAP[d]&&c.setAttribute(r.SVG_ATTR_MAP[d],u)})},o}(n.default);return BM.default=a,BM}var MM={},bse;function NIt(){if(bse)return MM;bse=1,Object.defineProperty(MM,"__esModule",{value:!0});var e=Kt,t=TA,r=TA,n=Gt,a=Oo(),i=qs(),o=function(s){e.__extends(l,s);function l(){var A=s!==null&&s.apply(this,arguments)||this;return A.type="polyline",A.canFill=!0,A.canStroke=!0,A}return l.prototype.getDefaultAttrs=function(){var A=s.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},A),{startArrow:!1,endArrow:!1})},l.prototype.onAttrChange=function(A,c,u){s.prototype.onAttrChange.call(this,A,c,u),["points"].indexOf(A)!==-1&&this._resetCache()},l.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},l.prototype.createPath=function(A,c){var u=this.attr(),d=this.get("el");n.each(c||u,function(f,h){h==="points"&&n.isArray(f)&&f.length>=2?d.setAttribute("points",f.map(function(g){return g[0]+","+g[1]}).join(" ")):a.SVG_ATTR_MAP[h]&&d.setAttribute(a.SVG_ATTR_MAP[h],f)})},l.prototype.getTotalLength=function(){var A=this.attr().points,c=this.get("totalLength");return n.isNil(c)?(this.set("totalLength",t.Polyline.length(A)),this.get("totalLength")):c},l.prototype.getPoint=function(A){var c=this.attr().points,u=this.get("tCache");u||(this._setTcache(),u=this.get("tCache"));var d,f;return n.each(u,function(h,g){A>=h[0]&&A<=h[1]&&(d=(A-h[0])/(h[1]-h[0]),f=g)}),r.Line.pointAt(c[f][0],c[f][1],c[f+1][0],c[f+1][1],d)},l.prototype._setTcache=function(){var A=this.attr().points;if(!(!A||A.length===0)){var c=this.getTotalLength();if(!(c<=0)){var u=0,d=[],f,h;n.each(A,function(g,p){A[p+1]&&(f=[],f[0]=u/c,h=r.Line.length(g[0],g[1],A[p+1][0],A[p+1][1]),u+=h,f[1]=u/c,d.push(f))}),this.set("tCache",d)}}},l.prototype.getStartTangent=function(){var A=this.attr().points,c=[];return c.push([A[1][0],A[1][1]]),c.push([A[0][0],A[0][1]]),c},l.prototype.getEndTangent=function(){var A=this.attr().points,c=A.length-1,u=[];return u.push([A[c-1][0],A[c-1][1]]),u.push([A[c][0],A[c][1]]),u},l}(i.default);return MM.default=o,MM}var xM={},qd={},Sse;function kIt(){if(Sse)return qd;Sse=1,Object.defineProperty(qd,"__esModule",{value:!0}),qd.parsePath=qd.parseRadius=void 0;var e=Gt,t=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,r=/[^\s,]+/gi;function n(i){var o=0,s=0,l=0,A=0;return e.isArray(i)?i.length===1?o=s=l=A=i[0]:i.length===2?(o=l=i[0],s=A=i[1]):i.length===3?(o=i[0],s=A=i[1],l=i[2]):(o=i[0],s=i[1],l=i[2],A=i[3]):o=s=l=A=i,{r1:o,r2:s,r3:l,r4:A}}qd.parseRadius=n;function a(i){if(i=i||[],e.isArray(i))return i;if(e.isString(i))return i=i.match(t),e.each(i,function(o,s){if(o=o.match(r),o[0].length>1){var l=o[0].charAt(0);o.splice(1,0,o[0].substr(1)),o[0]=l}e.each(o,function(A,c){isNaN(A)||(o[c]=+A)}),i[s]=o}),i}return qd.parsePath=a,qd}var Rse;function PIt(){if(Rse)return xM;Rse=1,Object.defineProperty(xM,"__esModule",{value:!0});var e=Kt,t=Gt,r=qs(),n=Oo(),a=kIt(),i=function(o){e.__extends(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.type="rect",l.canFill=!0,l.canStroke=!0,l}return s.prototype.getDefaultAttrs=function(){var l=o.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},l),{x:0,y:0,width:0,height:0,radius:0})},s.prototype.createPath=function(l,A){var c=this,u=this.attr(),d=this.get("el"),f=!1,h=["x","y","width","height","radius"];t.each(A||u,function(g,p){h.indexOf(p)!==-1&&!f?(d.setAttribute("d",c._assembleRect(u)),f=!0):h.indexOf(p)===-1&&n.SVG_ATTR_MAP[p]&&d.setAttribute(n.SVG_ATTR_MAP[p],g)})},s.prototype._assembleRect=function(l){var A=l.x,c=l.y,u=l.width,d=l.height,f=l.radius;if(!f)return"M "+A+","+c+" l "+u+",0 l 0,"+d+" l"+-u+" 0 z";var h=a.parseRadius(f);t.isArray(f)?f.length===1?h.r1=h.r2=h.r3=h.r4=f[0]:f.length===2?(h.r1=h.r3=f[0],h.r2=h.r4=f[1]):f.length===3?(h.r1=f[0],h.r2=h.r4=f[1],h.r3=f[2]):(h.r1=f[0],h.r2=f[1],h.r3=f[2],h.r4=f[3]):h.r1=h.r2=h.r3=h.r4=f;var g=[["M "+(A+h.r1)+","+c],["l "+(u-h.r1-h.r2)+",0"],["a "+h.r2+","+h.r2+",0,0,1,"+h.r2+","+h.r2],["l 0,"+(d-h.r2-h.r3)],["a "+h.r3+","+h.r3+",0,0,1,"+-h.r3+","+h.r3],["l "+(h.r3+h.r4-u)+",0"],["a "+h.r4+","+h.r4+",0,0,1,"+-h.r4+","+-h.r4],["l 0,"+(h.r4+h.r1-d)],["a "+h.r1+","+h.r1+",0,0,1,"+h.r1+","+-h.r1],["z"]];return g.join(" ")},s}(r.default);return xM.default=i,xM}var IM={};const OIt=Un(nyt);var Tse;function zIt(){if(Tse)return IM;Tse=1,Object.defineProperty(IM,"__esModule",{value:!0});var e=Kt,t=Gt,r=OIt,n=l1(),a=Oo(),i=qs(),o=.3,s={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},l={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},A={left:"left",start:"left",center:"middle",right:"end",end:"end"},c=function(u){e.__extends(d,u);function d(){var f=u!==null&&u.apply(this,arguments)||this;return f.type="text",f.canFill=!0,f.canStroke=!0,f}return d.prototype.getDefaultAttrs=function(){var f=u.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},f),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},d.prototype.createPath=function(f,h){var g=this,p=this.attr(),E=this.get("el");this._setFont(),t.each(h||p,function(y,C){C==="text"?g._setText(""+y):C==="matrix"&&y?n.setTransform(g):a.SVG_ATTR_MAP[C]&&E.setAttribute(a.SVG_ATTR_MAP[C],y)}),E.setAttribute("paint-order","stroke"),E.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},d.prototype._setFont=function(){var f=this.get("el"),h=this.attr(),g=h.textBaseline,p=h.textAlign,E=r.detect();E&&E.name==="firefox"?f.setAttribute("dominant-baseline",l[g]||"alphabetic"):f.setAttribute("alignment-baseline",s[g]||"baseline"),f.setAttribute("text-anchor",A[p]||"left")},d.prototype._setText=function(f){var h=this.get("el"),g=this.attr(),p=g.x,E=g.textBaseline,y=E===void 0?"bottom":E;if(!f)h.innerHTML="";else if(~f.indexOf(`
`)){var C=f.split(`
`),w=C.length-1,B="";t.each(C,function(M,I){I===0?y==="alphabetic"?B+='<tspan x="'+p+'" dy="'+-w+'em">'+M+"</tspan>":y==="top"?B+='<tspan x="'+p+'" dy="0.9em">'+M+"</tspan>":y==="middle"?B+='<tspan x="'+p+'" dy="'+-(w-1)/2+'em">'+M+"</tspan>":y==="bottom"?B+='<tspan x="'+p+'" dy="-'+(w+o)+'em">'+M+"</tspan>":y==="hanging"&&(B+='<tspan x="'+p+'" dy="'+(-(w-1)-o)+'em">'+M+"</tspan>"):B+='<tspan x="'+p+'" dy="1em">'+M+"</tspan>"}),h.innerHTML=B}else h.innerHTML=f},d}(i.default);return IM.default=c,IM}var Qse;function N2(){return Qse||(Qse=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=qs();Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return t.default}});var r=IIt();Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r.default}});var n=bIt();Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return n.default}});var a=SIt();Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return a.default}});var i=RIt();Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return i.default}});var o=TIt();Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return o.default}});var s=DIt();Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return s.default}});var l=FIt();Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return l.default}});var A=_It();Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return A.default}});var c=NIt();Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return c.default}});var u=PIt();Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return u.default}});var d=zIt();Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return d.default}})}(P8)),P8}var bM={},SM={},RM={},Dse;function jIt(){if(Dse)return RM;Dse=1,Object.defineProperty(RM,"__esModule",{value:!0});var e=Gt,t=Kl(),r=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,n=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function i(A){var c=A.match(a);if(!c)return"";var u="";return c.sort(function(d,f){return d=d.split(":"),f=f.split(":"),Number(d[0])-Number(f[0])}),e.each(c,function(d){d=d.split(":"),u+='<stop offset="'+d[0]+'" stop-color="'+d[1]+'"></stop>'}),u}function o(A,c){var u=r.exec(A),d=e.mod(e.toRadian(parseFloat(u[1])),Math.PI*2),f=u[2],h,g;d>=0&&d<.5*Math.PI?(h={x:0,y:0},g={x:1,y:1}):.5*Math.PI<=d&&d<Math.PI?(h={x:1,y:0},g={x:0,y:1}):Math.PI<=d&&d<1.5*Math.PI?(h={x:1,y:1},g={x:0,y:0}):(h={x:0,y:1},g={x:1,y:0});var p=Math.tan(d),E=p*p,y=(g.x-h.x+p*(g.y-h.y))/(E+1)+h.x,C=p*(g.x-h.x+p*(g.y-h.y))/(E+1)+h.y;c.setAttribute("x1",h.x),c.setAttribute("y1",h.y),c.setAttribute("x2",y),c.setAttribute("y2",C),c.innerHTML=i(f)}function s(A,c){var u=n.exec(A),d=parseFloat(u[1]),f=parseFloat(u[2]),h=parseFloat(u[3]),g=u[4];c.setAttribute("cx",d),c.setAttribute("cy",f),c.setAttribute("r",h),c.innerHTML=i(g)}var l=function(){function A(c){this.cfg={};var u=null,d=e.uniqueId("gradient_");return c.toLowerCase()[0]==="l"?(u=t.createSVGElement("linearGradient"),o(c,u)):(u=t.createSVGElement("radialGradient"),s(c,u)),u.setAttribute("id",d),this.el=u,this.id=d,this.cfg=c,this}return A.prototype.match=function(c,u){return this.cfg===u},A}();return RM.default=l,RM}var TM={},Fse;function YIt(){if(Fse)return TM;Fse=1,Object.defineProperty(TM,"__esModule",{value:!0});var e=Gt,t=Kl(),r={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},n={x:"-40%",y:"-40%",width:"200%",height:"200%"},a=function(){function i(o){this.type="filter",this.cfg={},this.type="filter";var s=t.createSVGElement("filter");return e.each(n,function(l,A){s.setAttribute(A,l)}),this.el=s,this.id=e.uniqueId("filter_"),this.el.id=this.id,this.cfg=o,this._parseShadow(o,s),this}return i.prototype.match=function(o,s){if(this.type!==o)return!1;var l=!0,A=this.cfg;return e.each(Object.keys(A),function(c){if(A[c]!==s[c])return l=!1,!1}),l},i.prototype.update=function(o,s){var l=this.cfg;return l[r[o]]=s,this._parseShadow(l,this.el),this},i.prototype._parseShadow=function(o,s){var l=`<feDropShadow
      dx="`+(o.dx||0)+`"
      dy="`+(o.dy||0)+`"
      stdDeviation="`+(o.blur?o.blur/10:0)+`"
      flood-color="`+(o.color?o.color:"#000")+`"
      flood-opacity="`+(o.opacity?o.opacity:1)+`"
      />`;s.innerHTML=l},i}();return TM.default=a,TM}var QM={},_se;function LIt(){if(_se)return QM;_se=1,Object.defineProperty(QM,"__esModule",{value:!0});var e=Gt,t=Kl(),r=function(){function n(a,i){this.cfg={};var o=t.createSVGElement("marker"),s=e.uniqueId("marker_");o.setAttribute("id",s);var l=t.createSVGElement("path");l.setAttribute("stroke",a.stroke||"none"),l.setAttribute("fill",a.fill||"none"),o.appendChild(l),o.setAttribute("overflow","visible"),o.setAttribute("orient","auto-start-reverse"),this.el=o,this.child=l,this.id=s;var A=a[i==="marker-start"?"startArrow":"endArrow"];return this.stroke=a.stroke||"#000",A===!0?this._setDefaultPath(i,l):(this.cfg=A,this._setMarker(a.lineWidth,l)),this}return n.prototype.match=function(){return!1},n.prototype._setDefaultPath=function(a,i){var o=this.el;i.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),o.setAttribute("refX",""+10*Math.cos(Math.PI/6)),o.setAttribute("refY","5")},n.prototype._setMarker=function(a,i){var o=this.el,s=this.cfg.path,l=this.cfg.d;e.isArray(s)&&(s=s.map(function(A){return A.join(" ")}).join("")),i.setAttribute("d",s),o.appendChild(i),l&&o.setAttribute("refX",""+l/a)},n.prototype.update=function(a){var i=this.child;i.attr?i.attr("fill",a):i.setAttribute("fill",a)},n}();return QM.default=r,QM}var DM={},Nse;function UIt(){if(Nse)return DM;Nse=1,Object.defineProperty(DM,"__esModule",{value:!0});var e=Gt,t=Kl(),r=function(){function n(a){this.type="clip",this.cfg={};var i=t.createSVGElement("clipPath");this.el=i,this.id=e.uniqueId("clip_"),i.id=this.id;var o=a.cfg.el;return i.appendChild(o),this.cfg=a,this}return n.prototype.match=function(){return!1},n.prototype.remove=function(){var a=this.el;a.parentNode.removeChild(a)},n}();return DM.default=r,DM}var FM={},kse;function HIt(){if(kse)return FM;kse=1,Object.defineProperty(FM,"__esModule",{value:!0});var e=Gt,t=Kl(),r=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,n=function(){function a(i){this.cfg={};var o=t.createSVGElement("pattern");o.setAttribute("patternUnits","userSpaceOnUse");var s=t.createSVGElement("image");o.appendChild(s);var l=e.uniqueId("pattern_");o.id=l,this.el=o,this.id=l,this.cfg=i;var A=r.exec(i),c=A[2];s.setAttribute("href",c);var u=new Image;c.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=c;function d(){o.setAttribute("width",""+u.width),o.setAttribute("height",""+u.height)}return u.complete?d():(u.onload=d,u.src=u.src),this}return a.prototype.match=function(i,o){return this.cfg===o},a}();return FM.default=n,FM}var Pse;function GIt(){if(Pse)return SM;Pse=1,Object.defineProperty(SM,"__esModule",{value:!0});var e=Gt,t=jIt(),r=YIt(),n=LIt(),a=UIt(),i=HIt(),o=Kl(),s=function(){function l(A){var c=o.createSVGElement("defs"),u=e.uniqueId("defs_");c.id=u,A.appendChild(c),this.children=[],this.defaultArrow={},this.el=c,this.canvas=A}return l.prototype.find=function(A,c){for(var u=this.children,d=null,f=0;f<u.length;f++)if(u[f].match(A,c)){d=u[f].id;break}return d},l.prototype.findById=function(A){for(var c=this.children,u=null,d=0;d<c.length;d++)if(c[d].id===A){u=c[d];break}return u},l.prototype.add=function(A){this.children.push(A),A.canvas=this.canvas,A.parent=this},l.prototype.getDefaultArrow=function(A,c){var u=A.stroke||A.strokeStyle;if(this.defaultArrow[u])return this.defaultArrow[u].id;var d=new n.default(A,c);return this.defaultArrow[u]=d,this.el.appendChild(d.el),this.add(d),d.id},l.prototype.addGradient=function(A){var c=new t.default(A);return this.el.appendChild(c.el),this.add(c),c.id},l.prototype.addArrow=function(A,c){var u=new n.default(A,c);return this.el.appendChild(u.el),this.add(u),u.id},l.prototype.addShadow=function(A){var c=new r.default(A);return this.el.appendChild(c.el),this.add(c),c.id},l.prototype.addPattern=function(A){var c=new i.default(A);return this.el.appendChild(c.el),this.add(c),c.id},l.prototype.addClip=function(A){var c=new a.default(A);return this.el.appendChild(c.el),this.add(c),c.id},l}();return SM.default=s,SM}var Ose;function KIt(){if(Ose)return bM;Ose=1,Object.defineProperty(bM,"__esModule",{value:!0});var e=Kt,t=Ao,r=Oo(),n=p6(),a=l1(),i=Kl(),o=N2(),s=v6(),l=GIt(),A=function(c){e.__extends(u,c);function u(d){return c.call(this,e.__assign(e.__assign({},d),{autoDraw:!0,renderer:"svg"}))||this}return u.prototype.getShapeBase=function(){return o},u.prototype.getGroupBase=function(){return s.default},u.prototype.getShape=function(d,f,h){var g=h.target||h.srcElement;if(!r.SHAPE_TO_TAGS[g.tagName]){for(var p=g.parentNode;p&&!r.SHAPE_TO_TAGS[p.tagName];)p=p.parentNode;g=p}return this.find(function(E){return E.get("el")===g})},u.prototype.createDom=function(){var d=i.createSVGElement("svg"),f=new l.default(d);return d.setAttribute("width",""+this.get("width")),d.setAttribute("height",""+this.get("height")),this.set("context",f),d},u.prototype.onCanvasChange=function(d){var f=this.get("context"),h=this.get("el");if(d==="sort"){var g=this.get("children");g&&g.length&&i.sortDom(this,function(E,y){return g.indexOf(E)-g.indexOf(y)?1:0})}else if(d==="clear"){if(h){h.innerHTML="";var p=f.el;p.innerHTML="",h.appendChild(p)}}else d==="matrix"?a.setTransform(this):d==="clip"?a.setClip(this,f):d==="changeSize"&&(h.setAttribute("width",""+this.get("width")),h.setAttribute("height",""+this.get("height")))},u.prototype.draw=function(){var d=this.get("context"),f=this.getChildren();a.setClip(this,d),f.length&&n.drawChildren(d,f)},u}(t.AbstractCanvas);return bM.default=A,bM}var zse;function VIt(){return zse||(zse=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=void 0;var t=Kt,r=N2();e.Shape=r,t.__exportStar(Ao,e);var n=KIt();Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return n.default}});var a=v6();Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return a.default}}),e.version="0.5.6"}(k8)),k8}var O8={},NE={},_M={},Zd={},jse;function Jbe(){if(jse)return Zd;jse=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.registerEngine=Zd.getEngine=void 0;var e={};function t(n){var a=e[n];if(!a)throw new Error("G engine '"+n+"' is not exist, please register it at first.");return a}Zd.getEngine=t;function r(n,a){e[n]=a}return Zd.registerEngine=r,Zd}var z8={};const JIt=Un(ext);var Yse;function Wbe(){return Yse||(Yse=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.createDom=e.removeDom=e.getChartSize=void 0;var t=Pa();function r(s){var l=getComputedStyle(s);return{width:(s.clientWidth||parseInt(l.width,10))-parseInt(l.paddingLeft,10)-parseInt(l.paddingRight,10),height:(s.clientHeight||parseInt(l.height,10))-parseInt(l.paddingTop,10)-parseInt(l.paddingBottom,10)}}function n(s){return typeof s=="number"&&!isNaN(s)}function a(s,l,A,c){var u=A,d=c;if(l){var f=r(s);u=f.width?f.width:u,d=f.height?f.height:d}return{width:Math.max(n(u)?u:t.MIN_CHART_WIDTH,t.MIN_CHART_WIDTH),height:Math.max(n(d)?d:t.MIN_CHART_HEIGHT,t.MIN_CHART_HEIGHT)}}e.getChartSize=a;function i(s){var l=s.parentNode;l&&l.removeChild(s)}e.removeDom=i;var o=JIt;Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return o.createDom}}),Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return o.modifyCSS}})}(z8)),z8}var gu={},NM={};const Xbe=Un(q0t);var Lse;function m6(){if(Lse)return NM;Lse=1,Object.defineProperty(NM,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(Xbe),r=function(n){(0,e.__extends)(a,n);function a(i){var o=n.call(this)||this;o.destroyed=!1;var s=i.visible,l=s===void 0?!0:s;return o.visible=l,o}return a.prototype.show=function(){var i=this.visible;i||this.changeVisible(!0)},a.prototype.hide=function(){var i=this.visible;i&&this.changeVisible(!1)},a.prototype.destroy=function(){this.off(),this.destroyed=!0},a.prototype.changeVisible=function(i){this.visible!==i&&(this.visible=i)},a}(t.default);return NM.default=r,NM}var j8={},kE={},Use;function WIt(){if(Use)return kE;Use=1,Object.defineProperty(kE,"__esModule",{value:!0}),kE.Facet=void 0;var e=Gt,t=Pa(),r=Q3(),n=function(){function a(i,o){this.destroyed=!1,this.facets=[],this.view=i,this.cfg=(0,e.deepMix)({},this.getDefaultCfg(),o)}return a.prototype.init=function(){this.container||(this.container=this.createContainer());var i=this.view.getData();this.facets=this.generateFacets(i)},a.prototype.render=function(){this.renderViews()},a.prototype.update=function(){},a.prototype.clear=function(){this.clearFacetViews()},a.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},a.prototype.facetToView=function(i){var o=i.region,s=i.data,l=i.padding,A=l===void 0?this.cfg.padding:l,c=this.view.createView({region:o,padding:A});c.data(s||[]),i.view=c,this.beforeEachView(c,i);var u=this.cfg.eachView;return u&&u(c,i),this.afterEachView(c,i),c},a.prototype.createContainer=function(){var i=this.view.getLayer(t.LAYER.FORE);return i.addGroup()},a.prototype.renderViews=function(){this.createFacetViews()},a.prototype.createFacetViews=function(){var i=this;return this.facets.map(function(o){return i.facetToView(o)})},a.prototype.clearFacetViews=function(){var i=this;(0,e.each)(this.facets,function(o){o.view&&(i.view.removeView(o.view),o.view=void 0)})},a.prototype.parseSpacing=function(){var i=this.view.viewBBox,o=i.width,s=i.height,l=this.cfg.spacing;return l.map(function(A,c){return(0,e.isNumber)(A)?A/(c===0?o:s):parseFloat(A)/100})},a.prototype.getFieldValues=function(i,o){var s=[],l={};return(0,e.each)(i,function(A){var c=A[o];!(0,e.isNil)(c)&&!l[c]&&(s.push(c),l[c]=!0)}),s},a.prototype.getRegion=function(i,o,s,l){var A=this.parseSpacing(),c=A[0],u=A[1],d=(1+c)/(o===0?1:o)-c,f=(1+u)/(i===0?1:i)-u,h={x:(d+c)*s,y:(f+u)*l},g={x:h.x+d,y:h.y+f};return{start:h,end:g}},a.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},a.prototype.getDefaultTitleCfg=function(){var i=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:i}}},a.prototype.processAxis=function(i,o){var s=i.getOptions(),l=s.coordinate,A=i.geometries,c=(0,e.get)(l,"type","rect");if(c==="rect"&&A.length){(0,e.isNil)(s.axes)&&(s.axes={});var u=s.axes,d=A[0].getXYFields(),f=d[0],h=d[1],g=(0,r.getAxisOption)(u,f),p=(0,r.getAxisOption)(u,h);g!==!1&&(s.axes[f]=this.getXAxisOption(f,u,g,o)),p!==!1&&(s.axes[h]=this.getYAxisOption(h,u,p,o))}},a.prototype.getFacetDataFilter=function(i){return function(o){return(0,e.every)(i,function(s){var l=s.field,A=s.value;return!(0,e.isNil)(A)&&l?o[l]===A:!0})}},a}();return kE.Facet=n,kE}var Hse;function D3(){return Hse||(Hse=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.registerFacet=e.getFacet=e.Facet=void 0;var t=Gt,r=WIt();Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return r.Facet}});var n={},a=function(o){return n[(0,t.lowerCase)(o)]};e.getFacet=a;var i=function(o,s){n[(0,t.lowerCase)(o)]=s};e.registerFacet=i}(j8)),j8}var Y8={},Lg={},Xo={},kM={},PM={},Gse;function Vl(){if(Gse)return PM;Gse=1,Object.defineProperty(PM,"__esModule",{value:!0});var e=Gt,t=function(){function r(n,a){this.context=n,this.cfg=a,n.addAction(this)}return r.prototype.applyCfg=function(n){(0,e.assign)(this,n)},r.prototype.init=function(){this.applyCfg(this.cfg)},r.prototype.destroy=function(){this.context.removeAction(this),this.context=null},r}();return PM.default=t,PM}var Kse;function XIt(){if(Kse)return kM;Kse=1,Object.defineProperty(kM,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(Vl()),r=function(n){(0,e.__extends)(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.execute=function(){this.callback&&this.callback(this.context)},a.prototype.destroy=function(){n.prototype.destroy.call(this),this.callback=null},a}(t.default);return kM.default=r,kM}var Vse;function E6(){if(Vse)return Xo;Vse=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.createCallbackAction=Xo.unregisterAction=Xo.registerAction=Xo.getActionClass=Xo.createAction=void 0;var e=Kt,t=(0,e.__importDefault)(XIt()),r=Gt,n={};function a(A,c){var u=n[A],d=null;if(u){var f=u.ActionClass,h=u.cfg;d=new f(c,h),d.name=A,d.init()}return d}Xo.createAction=a;function i(A){var c=n[A];return(0,r.get)(c,"ActionClass")}Xo.getActionClass=i;function o(A,c,u){n[A]={ActionClass:c,cfg:u}}Xo.registerAction=o;function s(A){delete n[A]}Xo.unregisterAction=s;function l(A,c){var u=new t.default(c);return u.callback=A,u.name="callback",u}return Xo.createCallbackAction=l,Xo}var OM={},Ur={},L8={},Jse;function k2(){return Jse||(Jse=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.convertPolarPath=e.convertNormalPath=e.getSplinePath=e.getLinePath=e.catmullRom2bezier=e.smoothBezier=void 0;var t=Bd,r=Gt,n=_l();function a(g,p){var E=[];if(g.length){E.push(["M",g[0].x,g[0].y]);for(var y=1,C=g.length;y<C;y+=1){var w=g[y];E.push(["L",w.x,w.y])}p&&E.push(["Z"])}return E}function i(g,p){for(var E=[g[0]],y=1,C=g.length;y<C;y=y+2){var w=p.convert({x:g[y],y:g[y+1]});E.push(w.x,w.y)}return E}function o(g,p){var E=p.isTransposed,y=g[1],C=g[6],w=g[7],B=p.convert({x:C,y:w}),M=E?0:1;return["A",y,y,0,0,M,B.x,B.y]}function s(g,p,E){var y=E.isTransposed,C=E.startAngle,w=E.endAngle,B=g[0].toLowerCase()==="a"?{x:g[6],y:g[7]}:{x:g[1],y:g[2]},M={x:p[1],y:p[2]},I=[],S=y?"y":"x",R=Math.abs(M[S]-B[S])*(w-C),b=M[S]>=B[S]?1:0,Q=R>Math.PI?1:0,D=E.convert(M),F=(0,n.getDistanceToCenter)(E,D);if(F>=.5)if(R===Math.PI*2){var N={x:(M.x+B.x)/2,y:(M.y+B.y)/2},k=E.convert(N);I.push(["A",F,F,0,Q,b,k.x,k.y]),I.push(["A",F,F,0,Q,b,D.x,D.y])}else I.push(["A",F,F,0,Q,b,D.x,D.y]);return I}function l(g){(0,r.each)(g,function(p,E){var y=p;if(y[0].toLowerCase()==="a"){var C=g[E-1],w=g[E+1];w&&w[0].toLowerCase()==="a"?C&&C[0].toLowerCase()==="l"&&(C[0]="M"):C&&C[0].toLowerCase()==="a"&&w&&w[0].toLowerCase()==="l"&&(w[0]="M")}})}var A=function(g,p,E,y){var C=[],w=!!y,B,M,I,S,R,b,Q;if(w){I=y[0],S=y[1];for(var D=0,F=g.length;D<F;D++){var N=g[D];I=t.vec2.min([0,0],I,N),S=t.vec2.max([0,0],S,N)}}for(var D=0,k=g.length;D<k;D++){var N=g[D];if(D===0&&!E)Q=N;else if(D===k-1&&!E)b=N,C.push(Q),C.push(b);else{B=g[E?D?D-1:k-1:D-1],M=g[E?(D+1)%k:D+1];var O=[0,0];O=t.vec2.sub(O,M,B),O=t.vec2.scale(O,O,p);var P=t.vec2.distance(N,B),z=t.vec2.distance(N,M),j=P+z;j!==0&&(P/=j,z/=j);var V=t.vec2.scale([0,0],O,-P),L=t.vec2.scale([0,0],O,z);b=t.vec2.add([0,0],N,V),R=t.vec2.add([0,0],N,L),R=t.vec2.min([0,0],R,t.vec2.max([0,0],M,N)),R=t.vec2.max([0,0],R,t.vec2.min([0,0],M,N)),V=t.vec2.sub([0,0],R,N),V=t.vec2.scale([0,0],V,-P/z),b=t.vec2.add([0,0],N,V),b=t.vec2.min([0,0],b,t.vec2.max([0,0],B,N)),b=t.vec2.max([0,0],b,t.vec2.min([0,0],B,N)),L=t.vec2.sub([0,0],N,b),L=t.vec2.scale([0,0],L,z/P),R=t.vec2.add([0,0],N,L),w&&(b=t.vec2.max([0,0],b,I),b=t.vec2.min([0,0],b,S),R=t.vec2.max([0,0],R,I),R=t.vec2.min([0,0],R,S)),C.push(Q),C.push(b),Q=R}}return E&&C.push(C.shift()),C};e.smoothBezier=A;function c(g,p,E){for(var y=!!p,C=[],w=0,B=g.length;w<B;w+=2)C.push([g[w],g[w+1]]);for(var M=(0,e.smoothBezier)(C,.4,y,E),I=C.length,S=[],R,b,Q,w=0;w<I-1;w++)R=M[w*2],b=M[w*2+1],Q=C[w+1],S.push(["C",R[0],R[1],b[0],b[1],Q[0],Q[1]]);return y&&(R=M[I],b=M[I+1],Q=C[0],S.push(["C",R[0],R[1],b[0],b[1],Q[0],Q[1]])),S}e.catmullRom2bezier=c;function u(g,p){return a(g,p)}e.getLinePath=u;function d(g,p,E){var y=[],C=g[0],w=null;if(g.length<=2)return u(g,p);for(var B=0,M=g.length;B<M;B++){var I=g[B];(!w||!(w.x===I.x&&w.y===I.y))&&(y.push(I.x),y.push(I.y),w=I)}var S=E||[[0,0],[1,1]],R=c(y,p,S);return R.unshift(["M",C.x,C.y]),R}e.getSplinePath=d;function f(g,p){var E=[];return(0,r.each)(p,function(y){var C=y[0];switch(C.toLowerCase()){case"m":case"l":case"c":E.push(i(y,g));break;case"a":E.push(o(y,g));break;case"z":default:E.push(y);break}}),E}e.convertNormalPath=f;function h(g,p){var E=[],y,C,w,B;return(0,r.each)(p,function(M,I){var S=M[0];switch(S.toLowerCase()){case"m":case"c":case"q":E.push(i(M,g));break;case"l":y=p[I-1],C=M,w=g.isTransposed,B=w?y[y.length-2]===C[1]:y[y.length-1]===C[2],B?E=E.concat(s(y,C,g)):E.push(i(M,g));break;case"a":E.push(o(M,g));break;case"z":default:E.push(M);break}}),l(E),E}e.convertPolarPath=h}(L8)),L8}var Wse;function Ki(){if(Wse)return Ur;Wse=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.getScaleByField=Ur.isInRecords=Ur.getSiblingPoint=Ur.getSilbings=Ur.isInBox=Ur.getSpline=Ur.distance=Ur.getComponents=Ur.getElementsByPath=Ur.getIntersectElements=Ur.intersectRect=Ur.getElementValue=Ur.getElementsByState=Ur.getElementsByField=Ur.getElements=Ur.getSiblingMaskElements=Ur.getMaskedElements=Ur.isMask=Ur.isSlider=Ur.isList=Ur.isElementChange=Ur.getDelegationObject=Ur.getCurrentElement=void 0;var e=Gt,t=k2(),r=am(),n=_2;function a(k,O){var P=k.event,z=P.target,j=z.getCanvasBBox();return j.width>=O||j.height>=O?j:null}function i(k,O){var P=k.event,z=P.target,j=z.getCanvasBBox();return j.width>=O||j.height>=O?z.attr("path"):null}function o(k){var O=k.event,P,z=O.target;return z&&(P=z.get("element")),P}Ur.getCurrentElement=o;function s(k){var O=k.event,P=O.target,z;return P&&(z=P.get("delegateObject")),z}Ur.getDelegationObject=s;function l(k){var O=k.event.gEvent;return!(O&&O.fromShape&&O.toShape&&O.fromShape.get("element")===O.toShape.get("element"))}Ur.isElementChange=l;function A(k){return k&&k.component&&k.component.isList()}Ur.isList=A;function c(k){return k&&k.component&&k.component.isSlider()}Ur.isSlider=c;function u(k){var O=k.event,P=O.target;return P&&P.get("name")==="mask"}Ur.isMask=u;function d(k,O){var P=k.event.target;if(P.get("type")==="path"){var z=i(k,O);return z?B(k.view,z):void 0}var j=a(k,O);return j?C(k.view,j):null}Ur.getMaskedElements=d;function f(k,O,P){var z=a(k,P);if(!z)return null;var j=k.view,V=D(j,O,{x:z.x,y:z.y}),L=D(j,O,{x:z.maxX,y:z.maxY}),K={minX:V.x,minY:V.y,maxX:L.x,maxY:L.y};return C(O,K)}Ur.getSiblingMaskElements=f;function h(k){var O=k.geometries,P=[];return(0,e.each)(O,function(z){var j=z.elements;P=P.concat(j)}),k.views&&k.views.length&&(0,e.each)(k.views,function(z){P=P.concat(h(z))}),P}Ur.getElements=h;function g(k,O,P){var z=h(k);return z.filter(function(j){return E(j,O)===P})}Ur.getElementsByField=g;function p(k,O){var P=k.geometries,z=[];return(0,e.each)(P,function(j){var V=j.getElementsBy(function(L){return L.hasState(O)});z=z.concat(V)}),z}Ur.getElementsByState=p;function E(k,O){var P=k.getModel(),z=P.data,j;return(0,e.isArray)(z)?j=z[0][O]:j=z[O],j}Ur.getElementValue=E;function y(k,O){return!(O.minX>k.maxX||O.maxX<k.minX||O.minY>k.maxY||O.maxY<k.minY)}Ur.intersectRect=y;function C(k,O){var P=h(k),z=[];return(0,e.each)(P,function(j){var V=j.shape,L=V.getCanvasBBox();y(O,L)&&z.push(j)}),z}Ur.getIntersectElements=C;function w(k){var O=[];return(0,e.each)(k,function(P){var z=P[0];if(z!=="A")for(var j=1;j<P.length;j=j+2)O.push([P[j],P[j+1]]);else{var V=P.length;O.push([P[V-2],P[V-1]])}}),O}function B(k,O){var P=h(k),z=w(O),j=P.filter(function(V){var L=V.shape,K;if(L.get("type")==="path")K=w(L.attr("path"));else{var J=L.getCanvasBBox();K=(0,r.toPoints)(J)}return(0,n.isPolygonsIntersect)(z,K)});return j}Ur.getElementsByPath=B;function M(k){return k.getComponents().map(function(O){return O.component})}Ur.getComponents=M;function I(k,O){var P=O.x-k.x,z=O.y-k.y;return Math.sqrt(P*P+z*z)}Ur.distance=I;function S(k,O){if(k.length<=2)return(0,t.getLinePath)(k,!1);var P=k[0],z=[];(0,e.each)(k,function(V){z.push(V.x),z.push(V.y)});var j=(0,t.catmullRom2bezier)(z,O,null);return j.unshift(["M",P.x,P.y]),j}Ur.getSpline=S;function R(k,O){return k.x<=O.x&&k.maxX>=O.x&&k.y<=O.y&&k.maxY>O.y}Ur.isInBox=R;function b(k){var O=k.parent,P=null;return O&&(P=O.views.filter(function(z){return z!==k})),P}Ur.getSilbings=b;function Q(k,O){var P=k.getCoordinate();return P.invert(O)}function D(k,O,P){var z=Q(k,P);return O.getCoordinate().convert(z)}Ur.getSiblingPoint=D;function F(k,O,P,z){var j=!1;return(0,e.each)(k,function(V){if(V[P]===O[P]&&V[z]===O[z])return j=!0,!1}),j}Ur.isInRecords=F;function N(k,O){var P=k.getScaleByField(O);return!P&&k.views&&(0,e.each)(k.views,function(z){if(P=N(z,O),P)return!1}),P}return Ur.getScaleByField=N,Ur}var Xse;function qIt(){if(Xse)return OM;Xse=1,Object.defineProperty(OM,"__esModule",{value:!0});var e=Gt,t=Ki(),r=function(){function n(a){this.actions=[],this.event=null,this.cacheMap={},this.view=a}return n.prototype.cache=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(a.length===1)return this.cacheMap[a[0]];a.length===2&&(this.cacheMap[a[0]]=a[1])},n.prototype.getAction=function(a){return this.actions.find(function(i){return i.name===a})},n.prototype.addAction=function(a){this.actions.push(a)},n.prototype.removeAction=function(a){var i=this.actions,o=this.actions.indexOf(a);o>=0&&i.splice(o,1)},n.prototype.getCurrentPoint=function(){var a=this.event;if(a)if(a.target instanceof HTMLElement){var i=this.view.getCanvas(),o=i.getPointByClient(a.clientX,a.clientY);return o}else return{x:a.x,y:a.y};return null},n.prototype.getCurrentShape=function(){return(0,e.get)(this.event,["gEvent","shape"])},n.prototype.isInPlot=function(){var a=this.getCurrentPoint();return a?this.view.isPointInPlot(a):!1},n.prototype.isInShape=function(a){var i=this.getCurrentShape();return i?i.get("name")===a:!1},n.prototype.isInComponent=function(a){var i=(0,t.getComponents)(this.view),o=this.getCurrentPoint();return o?!!i.find(function(s){var l=s.getBBox();return a?s.get("name")===a&&(0,t.isInBox)(l,o):(0,t.isInBox)(l,o)}):!1},n.prototype.destroy=function(){(0,e.each)(this.actions.slice(),function(a){a.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},n}();return OM.default=r,OM}var zM={},qse;function qbe(){if(qse)return zM;qse=1,Object.defineProperty(zM,"__esModule",{value:!0});var e=function(){function t(r,n){this.view=r,this.cfg=n}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();return zM.default=e,zM}var Zse;function ZIt(){if(Zse)return Lg;Zse=1,Object.defineProperty(Lg,"__esModule",{value:!0}),Lg.parseAction=void 0;var e=Kt,t=Gt,r=E6(),n=(0,e.__importDefault)(qIt()),a=(0,e.__importDefault)(qbe());function i(A,c,u){var d=A.split(":"),f=d[0],h=c.getAction(f)||(0,r.createAction)(f,c);if(!h)throw new Error("There is no action named "+f);var g=d[1];return{action:h,methodName:g,arg:u}}Lg.parseAction=i;function o(A){var c=A.action,u=A.methodName,d=A.arg;if(c[u])c[u](d);else throw new Error("Action("+c.name+") doesn't have a method called "+u)}var s={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},l=function(A){(0,e.__extends)(c,A);function c(u,d){var f=A.call(this,u,d)||this;return f.callbackCaches={},f.emitCaches={},f.steps=d,f}return c.prototype.init=function(){this.initContext(),A.prototype.init.call(this)},c.prototype.destroy=function(){A.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},c.prototype.initEvents=function(){var u=this;(0,t.each)(this.steps,function(d,f){(0,t.each)(d,function(h){var g=u.getActionCallback(f,h);g&&u.bindEvent(h.trigger,g)})})},c.prototype.clearEvents=function(){var u=this;(0,t.each)(this.steps,function(d,f){(0,t.each)(d,function(h){var g=u.getActionCallback(f,h);g&&u.offEvent(h.trigger,g)})})},c.prototype.initContext=function(){var u=this.view,d=new n.default(u);this.context=d;var f=this.steps;(0,t.each)(f,function(h){(0,t.each)(h,function(g){if((0,t.isFunction)(g.action))g.actionObject={action:(0,r.createCallbackAction)(g.action,d),methodName:"execute"};else if((0,t.isString)(g.action))g.actionObject=i(g.action,d,g.arg);else if((0,t.isArray)(g.action)){var p=g.action,E=(0,t.isArray)(g.arg)?g.arg:[g.arg];g.actionObject=[],(0,t.each)(p,function(y,C){g.actionObject.push(i(y,d,E[C]))})}})})},c.prototype.isAllowStep=function(u){var d=this.currentStepName,f=this.steps;if(d===u||u===s.SHOW_ENABLE)return!0;if(u===s.PROCESSING)return d===s.START;if(u===s.START)return d!==s.PROCESSING;if(u===s.END)return d===s.PROCESSING||d===s.START;if(u===s.ROLLBACK){if(f[s.END])return d===s.END;if(d===s.START)return!0}return!1},c.prototype.isAllowExecute=function(u,d){if(this.isAllowStep(u)){var f=this.getKey(u,d);return d.once&&this.emitCaches[f]?!1:d.isEnable?d.isEnable(this.context):!0}return!1},c.prototype.enterStep=function(u){this.currentStepName=u,this.emitCaches={}},c.prototype.afterExecute=function(u,d){u!==s.SHOW_ENABLE&&this.currentStepName!==u&&this.enterStep(u);var f=this.getKey(u,d);this.emitCaches[f]=!0},c.prototype.getKey=function(u,d){return u+d.trigger+d.action},c.prototype.getActionCallback=function(u,d){var f=this,h=this.context,g=this.callbackCaches,p=d.actionObject;if(d.action&&p){var E=this.getKey(u,d);if(!g[E]){var y=function(C){h.event=C,f.isAllowExecute(u,d)?((0,t.isArray)(p)?(0,t.each)(p,function(w){h.event=C,o(w)}):(h.event=C,o(p)),f.afterExecute(u,d),d.callback&&(h.event=C,d.callback(h))):h.event=null};d.debounce?g[E]=(0,t.debounce)(y,d.debounce.wait,d.debounce.immediate):d.throttle?g[E]=(0,t.throttle)(y,d.throttle.wait,{leading:d.throttle.leading,trailing:d.throttle.trailing}):g[E]=y}return g[E]}return null},c.prototype.bindEvent=function(u,d){var f=u.split(":");f[0]==="window"?window.addEventListener(f[1],d):f[0]==="document"?document.addEventListener(f[1],d):this.view.on(u,d)},c.prototype.offEvent=function(u,d){var f=u.split(":");f[0]==="window"?window.removeEventListener(f[1],d):f[0]==="document"?document.removeEventListener(f[1],d):this.view.off(u,d)},c}(a.default);return Lg.default=l,Lg}var PE={},$se;function $It(){return $se||($se=1,function(e){var t=PE&&PE.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.createAction=e.Action=void 0;var r=Vl();Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return t(r).default}});var n=E6();Object.defineProperty(e,"createAction",{enumerable:!0,get:function(){return n.createAction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return n.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return n.getActionClass}})}(PE)),PE}var ele;function F3(){return ele||(ele=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.Action=e.Interaction=e.createInteraction=e.registerInteraction=e.getInteraction=void 0;var t=Kt,r=Gt,n=(0,t.__importDefault)(ZIt()),a={};function i(c){return a[(0,r.lowerCase)(c)]}e.getInteraction=i;function o(c,u){a[(0,r.lowerCase)(c)]=u}e.registerInteraction=o;function s(c,u,d){var f=i(c);if(!f)return null;if((0,r.isPlainObject)(f)){var h=(0,r.mix)((0,r.clone)(f),d);return new n.default(u,h)}else{var g=f;return new g(u,d)}}e.createInteraction=s;var l=qbe();Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return(0,t.__importDefault)(l).default}});var A=$It();Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return A.Action}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return A.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return A.getActionClass}})}(Y8)),Y8}var $d={},U8={},OE={},zE={},tle;function Zbe(){if(tle)return zE;tle=1,Object.defineProperty(zE,"__esModule",{value:!0}),zE.createThemeByStyleSheet=void 0;var e=Kt,t=S2,r=Bd,n=Gt,a=fs();function i(l){return{title:{autoRotate:!0,position:"center",spacing:l.axisTitleSpacing,style:{fill:l.axisTitleTextFillColor,fontSize:l.axisTitleTextFontSize,lineHeight:l.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:l.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:l.axisLabelOffset,style:{fill:l.axisLabelFillColor,fontSize:l.axisLabelFontSize,lineHeight:l.axisLabelLineHeight,fontFamily:l.fontFamily}},line:{style:{lineWidth:l.axisLineBorder,stroke:l.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:l.axisGridBorderColor,lineWidth:l.axisGridBorder,lineDash:l.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:l.axisTickLineBorder,stroke:l.axisTickLineBorderColor},alignTick:!0,length:l.axisTickLineLength},subTickLine:null,animate:!0}}function o(l){return{title:null,marker:{symbol:"circle",spacing:l.legendMarkerSpacing,style:{r:l.legendCircleMarkerSize,fill:l.legendMarkerColor}},itemName:{spacing:5,style:{fill:l.legendItemNameFillColor,fontFamily:l.fontFamily,fontSize:l.legendItemNameFontSize,lineHeight:l.legendItemNameLineHeight,fontWeight:l.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:l.legendPageNavigatorMarkerSize,inactiveFill:l.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:l.legendPageNavigatorMarkerInactiveFillOpacity,fill:l.legendPageNavigatorMarkerFillColor,opacity:l.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:l.legendPageNavigatorTextFillColor,fontSize:l.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:l.legendItemSpacing,itemMarginBottom:l.legendItemMarginBottom,padding:l.legendPadding}}function s(l){var A,c={point:{default:{fill:l.pointFillColor,r:l.pointSize,stroke:l.pointBorderColor,lineWidth:l.pointBorder,fillOpacity:l.pointFillOpacity},active:{stroke:l.pointActiveBorderColor,lineWidth:l.pointActiveBorder},selected:{stroke:l.pointSelectedBorderColor,lineWidth:l.pointSelectedBorder},inactive:{fillOpacity:l.pointInactiveFillOpacity,strokeOpacity:l.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:l.hollowPointFillColor,lineWidth:l.hollowPointBorder,stroke:l.hollowPointBorderColor,strokeOpacity:l.hollowPointBorderOpacity,r:l.hollowPointSize},active:{stroke:l.hollowPointActiveBorderColor,strokeOpacity:l.hollowPointActiveBorderOpacity},selected:{lineWidth:l.hollowPointSelectedBorder,stroke:l.hollowPointSelectedBorderColor,strokeOpacity:l.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:l.hollowPointInactiveBorderOpacity}},area:{default:{fill:l.areaFillColor,fillOpacity:l.areaFillOpacity,stroke:null},active:{fillOpacity:l.areaActiveFillOpacity},selected:{fillOpacity:l.areaSelectedFillOpacity},inactive:{fillOpacity:l.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:l.hollowAreaBorderColor,lineWidth:l.hollowAreaBorder,strokeOpacity:l.hollowAreaBorderOpacity},active:{fill:null,lineWidth:l.hollowAreaActiveBorder},selected:{fill:null,lineWidth:l.hollowAreaSelectedBorder},inactive:{strokeOpacity:l.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:l.intervalFillColor,fillOpacity:l.intervalFillOpacity},active:{stroke:l.intervalActiveBorderColor,lineWidth:l.intervalActiveBorder},selected:{stroke:l.intervalSelectedBorderColor,lineWidth:l.intervalSelectedBorder},inactive:{fillOpacity:l.intervalInactiveFillOpacity,strokeOpacity:l.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:l.hollowIntervalFillColor,stroke:l.hollowIntervalBorderColor,lineWidth:l.hollowIntervalBorder,strokeOpacity:l.hollowIntervalBorderOpacity},active:{stroke:l.hollowIntervalActiveBorderColor,lineWidth:l.hollowIntervalActiveBorder,strokeOpacity:l.hollowIntervalActiveBorderOpacity},selected:{stroke:l.hollowIntervalSelectedBorderColor,lineWidth:l.hollowIntervalSelectedBorder,strokeOpacity:l.hollowIntervalSelectedBorderOpacity},inactive:{stroke:l.hollowIntervalInactiveBorderColor,lineWidth:l.hollowIntervalInactiveBorder,strokeOpacity:l.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:l.lineBorderColor,lineWidth:l.lineBorder,strokeOpacity:l.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:l.lineActiveBorder},selected:{lineWidth:l.lineSelectedBorder},inactive:{strokeOpacity:l.lineInactiveBorderOpacity}}},u=i(l),d=o(l);return{background:l.backgroundColor,defaultColor:l.brandColor,subColor:l.subColor,semanticRed:l.paletteSemanticRed,semanticGreen:l.paletteSemanticGreen,padding:"auto",fontFamily:l.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:l.paletteQualitative10,colors20:l.paletteQualitative20,sequenceColors:l.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:c.interval.default},active:{style:c.interval.active},inactive:{style:c.interval.inactive},selected:{style:function(f){var h=f.geometry.coordinate;if(h.isPolar&&h.isTransposed){var g=(0,a.getAngle)(f.getModel(),h),p=g.startAngle,E=g.endAngle,y=(p+E)/2,C=7.5,w=C*Math.cos(y),B=C*Math.sin(y);return{matrix:r.ext.transform(null,[["t",w,B]])}}return c.interval.selected}}},"hollow-rect":{default:{style:c.hollowInterval.default},active:{style:c.hollowInterval.active},inactive:{style:c.hollowInterval.inactive},selected:{style:c.hollowInterval.selected}},line:{default:{style:c.hollowInterval.default},active:{style:c.hollowInterval.active},inactive:{style:c.hollowInterval.inactive},selected:{style:c.hollowInterval.selected}},tick:{default:{style:c.hollowInterval.default},active:{style:c.hollowInterval.active},inactive:{style:c.hollowInterval.inactive},selected:{style:c.hollowInterval.selected}},funnel:{default:{style:c.interval.default},active:{style:c.interval.active},inactive:{style:c.interval.inactive},selected:{style:c.interval.selected}},pyramid:{default:{style:c.interval.default},active:{style:c.interval.active},inactive:{style:c.interval.inactive},selected:{style:c.interval.selected}}},line:{line:{default:{style:c.line.default},active:{style:c.line.active},inactive:{style:c.line.inactive},selected:{style:c.line.selected}},dot:{default:{style:(0,e.__assign)((0,e.__assign)({},c.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,e.__assign)((0,e.__assign)({},c.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,e.__assign)((0,e.__assign)({},c.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,e.__assign)((0,e.__assign)({},c.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,e.__assign)((0,e.__assign)({},c.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,e.__assign)((0,e.__assign)({},c.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,e.__assign)((0,e.__assign)({},c.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,e.__assign)((0,e.__assign)({},c.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:c.line.default},active:{style:c.line.active},inactive:{style:c.line.inactive},selected:{style:c.line.selected}},hv:{default:{style:c.line.default},active:{style:c.line.active},inactive:{style:c.line.inactive},selected:{style:c.line.selected}},vh:{default:{style:c.line.default},active:{style:c.line.active},inactive:{style:c.line.inactive},selected:{style:c.line.selected}},hvh:{default:{style:c.line.default},active:{style:c.line.active},inactive:{style:c.line.inactive},selected:{style:c.line.selected}},vhv:{default:{style:c.line.default},active:{style:c.line.active},inactive:{style:c.line.inactive},selected:{style:c.line.selected}}},polygon:{polygon:{default:{style:c.interval.default},active:{style:c.interval.active},inactive:{style:c.interval.inactive},selected:{style:c.interval.selected}}},point:{circle:{default:{style:c.point.default},active:{style:c.point.active},inactive:{style:c.point.inactive},selected:{style:c.point.selected}},square:{default:{style:c.point.default},active:{style:c.point.active},inactive:{style:c.point.inactive},selected:{style:c.point.selected}},bowtie:{default:{style:c.point.default},active:{style:c.point.active},inactive:{style:c.point.inactive},selected:{style:c.point.selected}},diamond:{default:{style:c.point.default},active:{style:c.point.active},inactive:{style:c.point.inactive},selected:{style:c.point.selected}},hexagon:{default:{style:c.point.default},active:{style:c.point.active},inactive:{style:c.point.inactive},selected:{style:c.point.selected}},triangle:{default:{style:c.point.default},active:{style:c.point.active},inactive:{style:c.point.inactive},selected:{style:c.point.selected}},"triangle-down":{default:{style:c.point.default},active:{style:c.point.active},inactive:{style:c.point.inactive},selected:{style:c.point.selected}},"hollow-circle":{default:{style:c.hollowPoint.default},active:{style:c.hollowPoint.active},inactive:{style:c.hollowPoint.inactive},selected:{style:c.hollowPoint.selected}},"hollow-square":{default:{style:c.hollowPoint.default},active:{style:c.hollowPoint.active},inactive:{style:c.hollowPoint.inactive},selected:{style:c.hollowPoint.selected}},"hollow-bowtie":{default:{style:c.hollowPoint.default},active:{style:c.hollowPoint.active},inactive:{style:c.hollowPoint.inactive},selected:{style:c.hollowPoint.selected}},"hollow-diamond":{default:{style:c.hollowPoint.default},active:{style:c.hollowPoint.active},inactive:{style:c.hollowPoint.inactive},selected:{style:c.hollowPoint.selected}},"hollow-hexagon":{default:{style:c.hollowPoint.default},active:{style:c.hollowPoint.active},inactive:{style:c.hollowPoint.inactive},selected:{style:c.hollowPoint.selected}},"hollow-triangle":{default:{style:c.hollowPoint.default},active:{style:c.hollowPoint.active},inactive:{style:c.hollowPoint.inactive},selected:{style:c.hollowPoint.selected}},"hollow-triangle-down":{default:{style:c.hollowPoint.default},active:{style:c.hollowPoint.active},inactive:{style:c.hollowPoint.inactive},selected:{style:c.hollowPoint.selected}},cross:{default:{style:c.hollowPoint.default},active:{style:c.hollowPoint.active},inactive:{style:c.hollowPoint.inactive},selected:{style:c.hollowPoint.selected}},tick:{default:{style:c.hollowPoint.default},active:{style:c.hollowPoint.active},inactive:{style:c.hollowPoint.inactive},selected:{style:c.hollowPoint.selected}},plus:{default:{style:c.hollowPoint.default},active:{style:c.hollowPoint.active},inactive:{style:c.hollowPoint.inactive},selected:{style:c.hollowPoint.selected}},hyphen:{default:{style:c.hollowPoint.default},active:{style:c.hollowPoint.active},inactive:{style:c.hollowPoint.inactive},selected:{style:c.hollowPoint.selected}},line:{default:{style:c.hollowPoint.default},active:{style:c.hollowPoint.active},inactive:{style:c.hollowPoint.inactive},selected:{style:c.hollowPoint.selected}}},area:{area:{default:{style:c.area.default},active:{style:c.area.active},inactive:{style:c.area.inactive},selected:{style:c.area.selected}},smooth:{default:{style:c.area.default},active:{style:c.area.active},inactive:{style:c.area.inactive},selected:{style:c.area.selected}},line:{default:{style:c.hollowArea.default},active:{style:c.hollowArea.active},inactive:{style:c.hollowArea.inactive},selected:{style:c.hollowArea.selected}},"smooth-line":{default:{style:c.hollowArea.default},active:{style:c.hollowArea.active},inactive:{style:c.hollowArea.inactive},selected:{style:c.hollowArea.selected}}},schema:{candle:{default:{style:c.hollowInterval.default},active:{style:c.hollowInterval.active},inactive:{style:c.hollowInterval.inactive},selected:{style:c.hollowInterval.selected}},box:{default:{style:c.hollowInterval.default},active:{style:c.hollowInterval.active},inactive:{style:c.hollowInterval.inactive},selected:{style:c.hollowInterval.selected}}},edge:{line:{default:{style:c.line.default},active:{style:c.line.active},inactive:{style:c.line.inactive},selected:{style:c.line.selected}},vhv:{default:{style:c.line.default},active:{style:c.line.active},inactive:{style:c.line.inactive},selected:{style:c.line.selected}},smooth:{default:{style:c.line.default},active:{style:c.line.active},inactive:{style:c.line.inactive},selected:{style:c.line.selected}},arc:{default:{style:c.line.default},active:{style:c.line.active},inactive:{style:c.line.inactive},selected:{style:c.line.selected}}},violin:{violin:{default:{style:c.line.default},active:{style:c.line.active},inactive:{style:c.line.inactive},selected:{style:c.line.selected}},smooth:{default:{style:c.line.default},active:{style:c.line.active},inactive:{style:c.line.inactive},selected:{style:c.line.selected}},hollow:{default:{style:c.hollowArea.default},active:{style:c.hollowArea.active},inactive:{style:c.hollowArea.inactive},selected:{style:c.hollowArea.selected}},"hollow-smooth":{default:{style:c.hollowArea.default},active:{style:c.hollowArea.active},inactive:{style:c.hollowArea.inactive},selected:{style:c.hollowArea.selected}}}},components:{axis:{common:u,top:{position:"top",grid:null,title:null,verticalLimitLength:1/2},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:1/2},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,n.deepMix)({},u.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,n.deepMix)({},u.grid,{line:{type:"circle"}})}},legend:{common:d,right:{layout:"vertical",padding:l.legendVerticalPadding},left:{layout:"vertical",padding:l.legendVerticalPadding},top:{layout:"horizontal",padding:l.legendHorizontalPadding},bottom:{layout:"horizontal",padding:l.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:l.sliderRailHeight,defaultLength:l.sliderRailWidth,style:{fill:l.sliderRailFillColor,stroke:l.sliderRailBorderColor,lineWidth:l.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:l.sliderLabelTextFillColor,fontSize:l.sliderLabelTextFontSize,lineHeight:l.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:l.fontFamily}},handler:{size:l.sliderHandlerWidth,style:{fill:l.sliderHandlerFillColor,stroke:l.sliderHandlerBorderColor}},slidable:!0,padding:d.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:l.tooltipCrosshairsBorderColor,lineWidth:l.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(A={},A[""+t.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:l.tooltipContainerFillColor,opacity:l.tooltipContainerFillOpacity,boxShadow:l.tooltipContainerShadow,borderRadius:l.tooltipContainerBorderRadius+"px",color:l.tooltipTextFillColor,fontSize:l.tooltipTextFontSize+"px",fontFamily:l.fontFamily,lineHeight:l.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},A[""+t.TOOLTIP_CSS_CONST.TITLE_CLASS]={marginBottom:"12px",marginTop:"12px"},A[""+t.TOOLTIP_CSS_CONST.LIST_CLASS]={margin:0,listStyleType:"none",padding:0},A[""+t.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},A[""+t.TOOLTIP_CSS_CONST.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},A[""+t.TOOLTIP_CSS_CONST.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},A)},annotation:{arc:{style:{stroke:l.annotationArcBorderColor,lineWidth:l.annotationArcBorder},animate:!0},line:{style:{stroke:l.annotationLineBorderColor,lineDash:l.annotationLineDash,lineWidth:l.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:l.annotationTextFillColor,stroke:l.annotationTextBorderColor,lineWidth:l.annotationTextBorder,fontSize:l.annotationTextFontSize,textAlign:"start",fontFamily:l.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:l.annotationTextFillColor,stroke:l.annotationTextBorderColor,lineWidth:l.annotationTextBorder,fontSize:l.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:l.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:l.annotationRegionBorder,stroke:l.annotationRegionBorderColor,fill:l.annotationRegionFillColor,fillOpacity:l.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:l.brandColor,lineWidth:2}},line:{style:{stroke:l.annotationLineBorderColor,lineWidth:l.annotationLineBorder},length:l.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:l.annotationTextFillColor,stroke:l.annotationTextBorderColor,lineWidth:l.annotationTextBorder,fontSize:l.annotationTextFontSize,fontFamily:l.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:l.annotationRegionFillColor,fillOpacity:l.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:l.annotationTextFillColor,stroke:l.annotationTextBorderColor,lineWidth:l.annotationTextBorder,fontSize:l.annotationTextFontSize,fontFamily:l.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:l.cSliderBackgroundFillColor,opacity:l.cSliderBackgroundFillOpacity},foregroundStyle:{fill:l.cSliderForegroundFillColor,opacity:l.cSliderForegroundFillOpacity},handlerStyle:{width:l.cSliderHandlerWidth,height:l.cSliderHandlerHeight,fill:l.cSliderHandlerFillColor,opacity:l.cSliderHandlerFillOpacity,stroke:l.cSliderHandlerBorderColor,lineWidth:l.cSliderHandlerBorder,radius:l.cSliderHandlerBorderRadius,highLightFill:l.cSliderHandlerHighlightFillColor},textStyle:{fill:l.cSliderTextFillColor,opacity:l.cSliderTextFillOpacity,fontSize:l.cSliderTextFontSize,lineHeight:l.cSliderTextLineHeight,fontWeight:l.cSliderTextFontWeight,stroke:l.cSliderTextBorderColor,lineWidth:l.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:l.scrollbarTrackFillColor,thumbColor:l.scrollbarThumbFillColor}},hover:{style:{thumbColor:l.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:l.labelFillColor,fontSize:l.labelFontSize,fontFamily:l.fontFamily,stroke:l.labelBorderColor,lineWidth:l.labelBorder},fillColorDark:l.labelFillColorDark,fillColorLight:l.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:l.innerLabelFillColor,fontSize:l.innerLabelFontSize,fontFamily:l.fontFamily,stroke:l.innerLabelBorderColor,lineWidth:l.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:l.overflowLabelFillColor,fontSize:l.overflowLabelFontSize,fontFamily:l.fontFamily,stroke:l.overflowLabelBorderColor,lineWidth:l.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:l.labelLineBorder}},autoRotate:!0}}}return zE.createThemeByStyleSheet=s,zE}var H8={},rle;function $be(){return rle||(rle=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.antvLight=e.createLightStyleSheet=void 0;var t={100:"#000",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},r={100:"#FFFFFF"},n=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],a=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],i=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],o=function(s){s===void 0&&(s={});var l=s.backgroundColor,A=l===void 0?"transparent":l,c=s.subColor,u=c===void 0?"rgba(0,0,0,0.05)":c,d=s.paletteQualitative10,f=d===void 0?n:d,h=s.paletteQualitative20,g=h===void 0?a:h,p=s.paletteSemanticRed,E=p===void 0?"#F4664A":p,y=s.paletteSemanticGreen,C=y===void 0?"#30BF78":y,w=s.paletteSemanticYellow,B=w===void 0?"#FAAD14":w,M=s.paletteSequence,I=M===void 0?i:M,S=s.fontFamily,R=S===void 0?`"Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji"`:S,b=s.brandColor,Q=b===void 0?f[0]:b;return{backgroundColor:A,brandColor:Q,subColor:u,paletteQualitative10:f,paletteQualitative20:g,paletteSemanticRed:E,paletteSemanticGreen:C,paletteSemanticYellow:B,paletteSequence:I,fontFamily:R,axisLineBorderColor:t[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:t[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:t[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:t[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:t[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:t[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:t[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:Q,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:t[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:t[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:t[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:t[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:t[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:t[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:t[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:t[25],annotationArcBorderColor:t[15],annotationArcBorder:1,annotationLineBorderColor:t[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:t[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:t[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:t[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:t[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:t[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:r[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:t[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:r[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:t[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:Q,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:r[100],pointBorderOpacity:1,pointActiveBorderColor:t[100],pointSelectedBorder:2,pointSelectedBorderColor:t[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:Q,hollowPointBorderOpacity:.95,hollowPointFillColor:r[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:t[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:t[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:Q,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:Q,areaFillOpacity:.25,areaActiveFillColor:Q,areaActiveFillOpacity:.5,areaSelectedFillColor:Q,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:Q,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:t[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:t[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:Q,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:t[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:t[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:Q,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:r[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:t[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:t[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};e.createLightStyleSheet=o,e.antvLight=(0,e.createLightStyleSheet)()}(H8)),H8}var nle;function ebt(){if(nle)return OE;nle=1,Object.defineProperty(OE,"__esModule",{value:!0}),OE.createTheme=void 0;var e=Kt,t=Gt,r=Zbe(),n=$be();function a(i){var o=i.styleSheet,s=o===void 0?{}:o,l=(0,e.__rest)(i,["styleSheet"]),A=(0,n.createLightStyleSheet)(s);return(0,t.deepMix)({},(0,r.createThemeByStyleSheet)(A),l)}return OE.createTheme=a,OE}var ale;function eSe(){return ale||(ale=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var t=ebt();Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return t.createTheme}})}(U8)),U8}var ile;function y6(){if(ile)return $d;ile=1,Object.defineProperty($d,"__esModule",{value:!0}),$d.registerTheme=$d.getTheme=void 0;var e=Gt,t=eSe(),r=(0,t.createTheme)({}),n={default:r};function a(o){return(0,e.get)(n,(0,e.lowerCase)(o),n.default)}$d.getTheme=a;function i(o,s){n[(0,e.lowerCase)(o)]=(0,t.createTheme)(s)}return $d.registerTheme=i,$d}var ol={},ole;function P2(){if(ole)return ol;ole=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.findItemsFromViewRecurisive=ol.findItemsFromView=ol.getTooltipItems=ol.findDataByPoint=void 0;var e=Kt,t=Gt,r=Pa(),n=im();function a(C,w,B){var M=B.translate(C),I=B.translate(w);return(0,t.isNumberEqual)(M,I)}function i(C,w){var B=w.coordinate,M=w.getXScale(),I=M.range,S=I[I.length-1],R=I[0],b=B.invert(C),Q=b.x;return B.isPolar&&Q>(1+S)/2&&(Q=R),M.translate(M.invert(Q))}function o(C,w,B){var M=B.coordinate,I=B.getYScale(),S=I.field,R=M.invert(w),b=I.invert(R.y),Q=(0,t.find)(C,function(D){var F=D[r.FIELD_ORIGIN];return F[S][0]<=b&&F[S][1]>=b});return Q||C[C.length-1]}var s=(0,t.memoize)(function(C){if(C.isCategory)return 1;for(var w=C.values,B=w.length,M=C.translate(w[0]),I=M,S=0;S<B;S++){var R=w[S],b=C.translate(R);b<M&&(M=b),b>I&&(I=b)}return(I-M)/(B-1)});function l(C,w,B){var M=w.getAttribute("position"),I=M.getFields(),S=w.scales,R=(0,t.isFunction)(B)||!B?I[0]:B,b=S[R],Q=b?b.getText(C[R]):C[R]||R;return(0,t.isFunction)(B)?B(Q,C):Q}function A(C){var w=(0,t.values)(C.attributes);return(0,t.filter)(w,function(B){return(0,t.contains)(r.GROUP_ATTRS,B.type)})}function c(C){for(var w=A(C),B,M=0,I=w;M<I.length;M++){var S=I[M],R=S.getScale(S.type);if(R&&R.isLinear){B=R;break}}var b=C.getXScale(),Q=C.getYScale();return B||Q||b}function u(C,w){var B=w.field,M=C[B];if((0,t.isArray)(M)){var I=M.map(function(S){return w.getText(S)});return I.join("-")}return w.getText(M)}function d(C,w){var B,M=w.getGroupScales();if(M.length&&(B=M[0]),B){var I=B.field;return B.getText(C[I])}var S=c(w);return(0,n.getName)(S)}function f(C,w,B){if(w.length===0)return null;var M=B.type,I=B.getXScale(),S=B.getYScale(),R=I.field,b=S.field,Q=null;if(M==="heatmap"||M==="point"){for(var D=B.coordinate,F=D.invert(C),N=I.invert(F.x),k=S.invert(F.y),O=1/0,P=0;P<w.length;P++){var z=w[P],j=z[r.FIELD_ORIGIN],V=Math.pow(j[R]-N,2)+Math.pow(j[b]-k,2);V<O&&(O=V,Q=z)}return Q}var L=w[0],K=w[w.length-1],J=i(C,B),Y=L[r.FIELD_ORIGIN][R],W=L[r.FIELD_ORIGIN][b],q=K[r.FIELD_ORIGIN][R],ee=S.isLinear&&(0,t.isArray)(W);if((0,t.isArray)(Y)){for(var P=0;P<w.length;P++){var ae=w[P],j=ae[r.FIELD_ORIGIN];if(I.translate(j[R][0])<=J&&I.translate(j[R][1])>=J)if(ee)(0,t.isArray)(Q)||(Q=[]),Q.push(ae);else{Q=ae;break}}(0,t.isArray)(Q)&&(Q=o(Q,C,B))}else{var ne=void 0;if(!I.isLinear&&I.type!=="timeCat"){for(var P=0;P<w.length;P++){var ae=w[P],j=ae[r.FIELD_ORIGIN];if(a(j[R],J,I))if(ee)(0,t.isArray)(Q)||(Q=[]),Q.push(ae);else{Q=ae;break}else I.translate(j[R])<=J&&(K=ae,ne=w[P+1])}(0,t.isArray)(Q)&&(Q=o(Q,C,B))}else{if((J>I.translate(q)||J<I.translate(Y))&&(J>I.max||J<I.min))return null;for(var ce=0,ue=w.length-1,ge=void 0;ce<=ue;){ge=Math.floor((ce+ue)/2);var Se=w[ge][r.FIELD_ORIGIN][R];if(a(Se,J,I))return w[ge];I.translate(Se)<=I.translate(J)?(ce=ge+1,K=w[ge],ne=w[ge+1]):(ue===0&&(K=w[0]),ue=ge-1)}}K&&ne&&Math.abs(I.translate(K[r.FIELD_ORIGIN][R])-J)>Math.abs(I.translate(ne[r.FIELD_ORIGIN][R])-J)&&(K=ne)}var ye=s(B.getXScale());return!Q&&Math.abs(I.translate(K[r.FIELD_ORIGIN][R])-J)<=ye/2&&(Q=K),Q}ol.findDataByPoint=f;function h(C,w,B,M){B===void 0&&(B=""),M===void 0&&(M=!1);var I=C[r.FIELD_ORIGIN],S=l(I,w,B),R=w.tooltipOption,b=w.theme.defaultColor,Q=[],D,F;function N(q,ee){if(M||!(0,t.isNil)(ee)&&ee!==""){var ae={title:S,data:I,mappingData:C,name:q,value:ee,color:C.color||b,marker:!0};Q.push(ae)}}if((0,t.isObject)(R)){var k=R.fields,O=R.callback;if(O){var P=k.map(function(q){return C[r.FIELD_ORIGIN][q]}),z=O.apply(void 0,P),j=(0,e.__assign)({data:C[r.FIELD_ORIGIN],mappingData:C,title:S,color:C.color||b,marker:!0},z);Q.push(j)}else for(var V=w.scales,L=0,K=k;L<K.length;L++){var J=K[L];if(!(0,t.isNil)(I[J])){var Y=V[J];D=(0,n.getName)(Y),F=Y.getText(I[J]),N(D,F)}}}else{var W=c(w);F=u(I,W),D=d(I,w),N(D,F)}return Q}ol.getTooltipItems=h;function g(C,w,B,M){var I=M.showNil,S=[],R=C.dataArray;if(!(0,t.isEmpty)(R)){C.sort(R);for(var b=0,Q=R;b<Q.length;b++){var D=Q[b],F=f(w,D,C);if(F){var N=C.getElementId(F),k=C.elementsMap[N];if(C.type==="heatmap"||k.visible){var O=h(F,C,B,I);O.length&&S.push(O)}}}}return S}function p(C,w,B,M){var I=M.showNil,S=[],R=C.container,b=R.getShape(w.x,w.y);if(b&&b.get("visible")&&b.get("origin")){var Q=b.get("origin").mappingData,D=h(Q,C,B,I);D.length&&S.push(D)}return S}function E(C,w,B){for(var M=[],I=C.geometries,S=B.shared,R=B.title,b=B.reversed,Q=0,D=I;Q<D.length;Q++){var F=D[Q];if(F.visible&&F.tooltipOption!==!1){var N=F.type,k=void 0;["point","edge","polygon"].includes(N)?k=p(F,w,R,B):["area","line","path","heatmap"].includes(N)||S!==!1?k=g(F,w,R,B):k=p(F,w,R,B),k.length&&(b&&k.reverse(),M.push(k))}}return M}ol.findItemsFromView=E;function y(C,w,B){for(var M=E(C,w,B),I=0,S=C.views;I<S.length;I++){var R=S[I];M=M.concat(E(R,w,B))}return M}return ol.findItemsFromViewRecurisive=y,ol}var ef={},sle;function tSe(){if(sle)return ef;sle=1,Object.defineProperty(ef,"__esModule",{value:!0}),ef.parsePadding=ef.isAutoPadding=void 0;var e=Kt,t=Gt;function r(a){return!(0,t.isNumber)(a)&&!(0,t.isArray)(a)}ef.isAutoPadding=r;function n(a){a===void 0&&(a=0);var i=(0,t.isArray)(a)?a:[a];switch(i.length){case 0:i=[0,0,0,0];break;case 1:i=new Array(4).fill(i[0]);break;case 2:i=(0,e.__spreadArray)((0,e.__spreadArray)([],i,!0),i,!0);break;case 3:i=(0,e.__spreadArray)((0,e.__spreadArray)([],i,!0),[i[1]],!1);break;default:i=i.slice(0,4);break}return i}return ef.parsePadding=n,ef}var sl={},lle;function rSe(){if(lle)return sl;lle=1,Object.defineProperty(sl,"__esModule",{value:!0}),sl.getComponentController=sl.getComponentControllerNames=sl.unregisterComponentController=sl.registerComponentController=void 0;var e={};function t(i,o){e[i]=o}sl.registerComponentController=t;function r(i){delete e[i]}sl.unregisterComponentController=r;function n(){return Object.keys(e)}sl.getComponentControllerNames=n;function a(i){return e[i]}return sl.getComponentController=a,sl}var jM={},Ale;function tbt(){if(Ale)return jM;Ale=1,Object.defineProperty(jM,"__esModule",{value:!0});var e=Kt,t=Gt,r=wd(),n=function(){function a(i){this.option=this.wrapperOption(i)}return a.prototype.update=function(i){return this.option=this.wrapperOption(i),this},a.prototype.hasAction=function(i){var o=this.option.actions;return(0,t.some)(o,function(s){return s[0]===i})},a.prototype.create=function(i,o){var s=this.option,l=s.type,A=s.cfg,c=l==="theta",u=(0,e.__assign)({start:i,end:o},A),d=(0,r.getCoordinate)(c?"polar":l);return this.coordinate=new d(u),this.coordinate.type=l,c&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},a.prototype.adjust=function(i,o){return this.coordinate.update({start:i,end:o}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},a.prototype.rotate=function(i){return this.option.actions.push(["rotate",i]),this},a.prototype.reflect=function(i){return this.option.actions.push(["reflect",i]),this},a.prototype.scale=function(i,o){return this.option.actions.push(["scale",i,o]),this},a.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},a.prototype.getOption=function(){return this.option},a.prototype.getCoordinate=function(){return this.coordinate},a.prototype.wrapperOption=function(i){return(0,e.__assign)({type:"rect",actions:[],cfg:{}},i)},a.prototype.execActions=function(i){var o=this,s=this.option.actions;(0,t.each)(s,function(l){var A,c=l[0],u=l.slice(1),d=(0,t.isNil)(i)?!0:i.includes(c);d&&(A=o.coordinate)[c].apply(A,u)})},a}();return jM.default=n,jM}var YM={},cle;function C6(){if(cle)return YM;cle=1,Object.defineProperty(YM,"__esModule",{value:!0});var e=wd(),t=function(){function r(n,a,i){this.view=n,this.gEvent=a,this.data=i,this.type=a.type}return r.fromData=function(n,a,i){return new r(n,new e.Event(a,{}),i)},Object.defineProperty(r.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),r.prototype.toString=function(){return"[Event (type="+this.type+")]"},r.prototype.clone=function(){return new r(this.view,this.gEvent,this.data)},r}();return YM.default=t,YM}var LM={},ule;function rbt(){if(ule)return LM;ule=1,Object.defineProperty(LM,"__esModule",{value:!0});function e(t){var r=t.getController("axis"),n=t.getController("legend"),a=t.getController("annotation"),i=t.getController("slider"),o=t.getController("scrollbar");[r,i,o,n,a].forEach(function(s){s&&s.layout()})}return LM.default=e,LM}var jE={},dle;function nbt(){if(dle)return jE;dle=1,Object.defineProperty(jE,"__esModule",{value:!0}),jE.ScalePool=void 0;var e=Gt,t=im(),r=function(){function n(){this.scales=new Map,this.syncScales=new Map}return n.prototype.createScale=function(a,i,o,s){var l=o,A=this.getScaleMeta(s);if(i.length===0&&A){var c=A.scale,u={type:c.type};c.isCategory&&(u.values=c.values),l=(0,e.deepMix)(u,A.scaleDef,o)}var d=(0,t.createScaleByField)(a,i,l);return this.cacheScale(d,o,s),d},n.prototype.sync=function(a,i){var o=this;this.syncScales.forEach(function(s,l){var A=Number.MAX_SAFE_INTEGER,c=Number.MIN_SAFE_INTEGER,u=[];(0,e.each)(s,function(d){var f=o.getScale(d);c=(0,e.isNumber)(f.max)?Math.max(c,f.max):c,A=(0,e.isNumber)(f.min)?Math.min(A,f.min):A,(0,e.each)(f.values,function(h){u.includes(h)||u.push(h)})}),(0,e.each)(s,function(d){var f=o.getScale(d);if(f.isContinuous)f.change({min:A,max:c,values:u});else if(f.isCategory){var h=f.range,g=o.getScaleMeta(d);u&&!(0,e.get)(g,["scaleDef","range"])&&(h=(0,t.getDefaultCategoryScaleRange)((0,e.deepMix)({},f,{values:u}),a,i)),f.change({values:u,range:h})}})})},n.prototype.cacheScale=function(a,i,o){var s=this.getScaleMeta(o);s&&s.scale.type===a.type?((0,t.syncScale)(s.scale,a),s.scaleDef=i):(s={key:o,scale:a,scaleDef:i},this.scales.set(o,s));var l=this.getSyncKey(s);if(s.syncKey=l,this.removeFromSyncScales(o),l){var A=this.syncScales.get(l);A||(A=[],this.syncScales.set(l,A)),A.push(o)}},n.prototype.getScale=function(a){var i=this.getScaleMeta(a);if(!i){var o=(0,e.last)(a.split("-")),s=this.syncScales.get(o);s&&s.length&&(i=this.getScaleMeta(s[0]))}return i&&i.scale},n.prototype.deleteScale=function(a){var i=this.getScaleMeta(a);if(i){var o=i.syncKey,s=this.syncScales.get(o);if(s&&s.length){var l=s.indexOf(a);l!==-1&&s.splice(l,1)}}this.scales.delete(a)},n.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},n.prototype.removeFromSyncScales=function(a){var i=this;this.syncScales.forEach(function(o,s){var l=o.indexOf(a);if(l!==-1)return o.splice(l,1),o.length===0&&i.syncScales.delete(s),!1})},n.prototype.getSyncKey=function(a){var i=a.scale,o=a.scaleDef,s=i.field,l=(0,e.get)(o,["sync"]);return l===!0?s:l===!1?void 0:l},n.prototype.getScaleMeta=function(a){return this.scales.get(a)},n}();return jE.ScalePool=r,jE}var YE={},fle;function nSe(){if(fle)return YE;fle=1,Object.defineProperty(YE,"__esModule",{value:!0}),YE.PaddingCal=void 0;var e=Kt,t=Pa(),r=function(){function n(a,i,o,s){a===void 0&&(a=0),i===void 0&&(i=0),o===void 0&&(o=0),s===void 0&&(s=0),this.top=a,this.right=i,this.bottom=o,this.left=s}return n.instance=function(a,i,o,s){return a===void 0&&(a=0),i===void 0&&(i=0),o===void 0&&(o=0),s===void 0&&(s=0),new n(a,i,o,s)},n.prototype.max=function(a){var i=a[0],o=a[1],s=a[2],l=a[3];return this.top=Math.max(this.top,i),this.right=Math.max(this.right,o),this.bottom=Math.max(this.bottom,s),this.left=Math.max(this.left,l),this},n.prototype.shrink=function(a){var i=a[0],o=a[1],s=a[2],l=a[3];return this.top+=i,this.right+=o,this.bottom+=s,this.left+=l,this},n.prototype.inc=function(a,i){var o=a.width,s=a.height;switch(i){case t.DIRECTION.TOP:case t.DIRECTION.TOP_LEFT:case t.DIRECTION.TOP_RIGHT:this.top+=s;break;case t.DIRECTION.RIGHT:case t.DIRECTION.RIGHT_TOP:case t.DIRECTION.RIGHT_BOTTOM:this.right+=o;break;case t.DIRECTION.BOTTOM:case t.DIRECTION.BOTTOM_LEFT:case t.DIRECTION.BOTTOM_RIGHT:this.bottom+=s;break;case t.DIRECTION.LEFT:case t.DIRECTION.LEFT_TOP:case t.DIRECTION.LEFT_BOTTOM:this.left+=o;break}return this},n.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},n.prototype.clone=function(){return new(n.bind.apply(n,(0,e.__spreadArray)([void 0],this.getPadding(),!1)))},n}();return YE.PaddingCal=r,YE}var LE={},hle;function abt(){if(hle)return LE;hle=1,Object.defineProperty(LE,"__esModule",{value:!0}),LE.calculatePadding=void 0;var e=Kt,t=Gt,r=Pa(),n=am(),a=tSe(),i=nSe();function o(s){var l=s.padding;if(!(0,a.isAutoPadding)(l))return new(i.PaddingCal.bind.apply(i.PaddingCal,(0,e.__spreadArray)([void 0],(0,a.parsePadding)(l),!1)));var A=s.viewBBox,c=new i.PaddingCal,u=[],d=[],f=[];return(0,t.each)(s.getComponents(),function(h){var g=h.type;g===r.COMPONENT_TYPE.AXIS?u.push(h):[r.COMPONENT_TYPE.LEGEND,r.COMPONENT_TYPE.SLIDER,r.COMPONENT_TYPE.SCROLLBAR].includes(g)?d.push(h):g!==r.COMPONENT_TYPE.GRID&&g!==r.COMPONENT_TYPE.TOOLTIP&&f.push(h)}),(0,t.each)(u,function(h){var g=h.component,p=g.getLayoutBBox(),E=new n.BBox(p.x,p.y,p.width,p.height),y=E.exceed(A);c.max(y)}),(0,t.each)(d,function(h){var g=h.component,p=h.direction,E=g.getLayoutBBox(),y=g.get("padding"),C=new n.BBox(E.x,E.y,E.width,E.height).expand(y);c.inc(C,p)}),(0,t.each)(f,function(h){var g=h.component,p=h.direction,E=g.getLayoutBBox(),y=new n.BBox(E.x,E.y,E.width,E.height);c.inc(y,p)}),c}return LE.calculatePadding=o,LE}var UE={},gle;function ibt(){if(gle)return UE;gle=1,Object.defineProperty(UE,"__esModule",{value:!0}),UE.defaultSyncViewPadding=void 0;function e(t,r,n){var a=n.instance();r.forEach(function(i){i.autoPadding=a.max(i.autoPadding.getPadding())})}return UE.defaultSyncViewPadding=e,UE}var ple;function aSe(){if(ple)return gu;ple=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.registerGeometry=gu.View=void 0;var e=Kt,t=Gt,r=Pa(),n=(0,e.__importDefault)(m6()),a=D3(),i=F3(),o=y6(),s=am(),l=_l(),A=Oh(),c=P2(),u=tSe(),d=im(),f=eSe(),h=rSe(),g=(0,e.__importDefault)(tbt()),p=(0,e.__importDefault)(C6()),E=(0,e.__importDefault)(rbt()),y=nbt(),C=nSe(),w=abt(),B=ibt(),M=function(S){(0,e.__extends)(R,S);function R(b){var Q=S.call(this,{visible:b.visible})||this;Q.views=[],Q.geometries=[],Q.controllers=[],Q.interactions={},Q.limitInPlot=!1,Q.options={data:[],animate:!0},Q.usedControllers=(0,h.getComponentControllerNames)(),Q.scalePool=new y.ScalePool,Q.layoutFunc=E.default,Q.isPreMouseInPlot=!1,Q.isDataChanged=!1,Q.isCoordinateChanged=!1,Q.createdScaleKeys=new Map,Q.onCanvasEvent=function(ee){var ae=ee.name;if(!ae.includes(":")){var ne=Q.createViewEvent(ee);Q.doPlotEvent(ne),Q.emit(ae,ne)}},Q.onDelegateEvents=function(ee){var ae=ee.name;if(ae.includes(":")){var ne=Q.createViewEvent(ee);Q.emit(ae,ne)}};var D=b.id,F=D===void 0?(0,t.uniqueId)("view"):D,N=b.parent,k=b.canvas,O=b.backgroundGroup,P=b.middleGroup,z=b.foregroundGroup,j=b.region,V=j===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:j,L=b.padding,K=b.appendPadding,J=b.theme,Y=b.options,W=b.limitInPlot,q=b.syncViewPadding;return Q.parent=N,Q.canvas=k,Q.backgroundGroup=O,Q.middleGroup=P,Q.foregroundGroup=z,Q.region=V,Q.padding=L,Q.appendPadding=K,Q.options=(0,e.__assign)((0,e.__assign)({},Q.options),Y),Q.limitInPlot=W,Q.id=F,Q.syncViewPadding=q,Q.themeObject=(0,t.isObject)(J)?(0,t.deepMix)({},(0,o.getTheme)("default"),(0,f.createTheme)(J)):(0,o.getTheme)(J),Q.init(),Q}return R.prototype.setLayout=function(b){this.layoutFunc=b},R.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},R.prototype.render=function(b,Q){b===void 0&&(b=!1),this.emit(r.VIEW_LIFE_CIRCLE.BEFORE_RENDER,p.default.fromData(this,r.VIEW_LIFE_CIRCLE.BEFORE_RENDER,Q)),this.paint(b),this.emit(r.VIEW_LIFE_CIRCLE.AFTER_RENDER,p.default.fromData(this,r.VIEW_LIFE_CIRCLE.AFTER_RENDER,Q)),this.visible===!1&&this.changeVisible(!1)},R.prototype.clear=function(){var b=this;this.emit(r.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var Q=this.geometries,D=0;D<Q.length;D++)Q[D].clear(),Q[D].container.remove(!0),Q[D].labelsContainer.remove(!0);this.geometries=[];for(var F=this.controllers,D=0;D<F.length;D++)F[D].name==="annotation"?F[D].clear(!0):F[D].clear();this.createdScaleKeys.forEach(function(k,O){b.getRootView().scalePool.deleteScale(O)}),this.createdScaleKeys.clear();for(var N=this.views,D=0;D<N.length;D++)N[D].clear();this.emit(r.VIEW_LIFE_CIRCLE.AFTER_CLEAR)},R.prototype.destroy=function(){this.emit(r.VIEW_LIFE_CIRCLE.BEFORE_DESTROY);var b=this.interactions;(0,t.each)(b,function(k){k&&k.destroy()}),this.clear();for(var Q=this.controllers,D=0,F=Q.length;D<F;D++){var N=Q[D];N.destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),S.prototype.destroy.call(this)},R.prototype.changeVisible=function(b){S.prototype.changeVisible.call(this,b);for(var Q=this.geometries,D=0,F=Q.length;D<F;D++){var N=Q[D];N.changeVisible(b)}for(var k=this.controllers,D=0,F=k.length;D<F;D++){var O=k[D];O.changeVisible(b)}return this.foregroundGroup.set("visible",b),this.middleGroup.set("visible",b),this.backgroundGroup.set("visible",b),this.getCanvas().draw(),this},R.prototype.data=function(b){return(0,t.set)(this.options,"data",b),this.isDataChanged=!0,this},R.prototype.source=function(b){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(b)},R.prototype.filter=function(b,Q){return(0,t.isFunction)(Q)?((0,t.set)(this.options,["filters",b],Q),this):(!Q&&(0,t.get)(this.options,["filters",b])&&delete this.options.filters[b],this)},R.prototype.axis=function(b,Q){return(0,t.isBoolean)(b)?(0,t.set)(this.options,["axes"],b):(0,t.set)(this.options,["axes",b],Q),this},R.prototype.legend=function(b,Q){return(0,t.isBoolean)(b)?(0,t.set)(this.options,["legends"],b):(0,t.isString)(b)?((0,t.set)(this.options,["legends",b],Q),(0,t.isPlainObject)(Q)&&(Q!=null&&Q.selected)&&(0,t.set)(this.options,["filters",b],function(D){var F;return(F=Q==null?void 0:Q.selected[D])!==null&&F!==void 0?F:!0})):(0,t.set)(this.options,["legends"],b),this},R.prototype.scale=function(b,Q){var D=this;return(0,t.isString)(b)?(0,t.set)(this.options,["scales",b],Q):(0,t.isObject)(b)&&(0,t.each)(b,function(F,N){(0,t.set)(D.options,["scales",N],F)}),this},R.prototype.tooltip=function(b){return(0,t.set)(this.options,"tooltip",b),this},R.prototype.annotation=function(){return this.getController("annotation")},R.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},R.prototype.coordinate=function(b,Q){return(0,t.isString)(b)?(0,t.set)(this.options,"coordinate",{type:b,cfg:Q}):(0,t.set)(this.options,"coordinate",b),this.coordinateController.update(this.options.coordinate),this.coordinateController},R.prototype.coord=function(b,Q){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(b,Q)},R.prototype.facet=function(b,Q){this.facetInstance&&this.facetInstance.destroy();var D=(0,a.getFacet)(b);if(!D)throw new Error("facet '"+b+"' is not exist!");return this.facetInstance=new D(this,(0,e.__assign)((0,e.__assign)({},Q),{type:b})),this},R.prototype.animate=function(b){return(0,t.set)(this.options,"animate",b),this},R.prototype.updateOptions=function(b){return this.clear(),(0,t.mix)(this.options,b),this.views.forEach(function(Q){return Q.destroy()}),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},R.prototype.option=function(b,Q){if(R.prototype[b])throw new Error(`Can't use built in variable name "`+b+'", please change another one.');return(0,t.set)(this.options,b,Q),this},R.prototype.theme=function(b){return this.themeObject=(0,t.isObject)(b)?(0,t.deepMix)({},this.themeObject,(0,f.createTheme)(b)):(0,o.getTheme)(b),this},R.prototype.interaction=function(b,Q){var D=this.interactions[b];D&&D.destroy();var F=(0,i.createInteraction)(b,this,Q);return F&&(F.init(),this.interactions[b]=F),this},R.prototype.removeInteraction=function(b){var Q=this.interactions[b];Q&&(Q.destroy(),this.interactions[b]=void 0)},R.prototype.changeData=function(b){this.isDataChanged=!0,this.emit(r.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,p.default.fromData(this,r.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.data(b),this.paint(!0);for(var Q=this.views,D=0,F=Q.length;D<F;D++){var N=Q[D];N.changeData(b)}this.emit(r.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,p.default.fromData(this,r.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},R.prototype.createView=function(b){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var Q={data:this.options.data,scales:(0,t.clone)(this.options.scales),axes:(0,t.clone)(this.options.axes),coordinate:(0,t.clone)(this.coordinateController.getOption()),tooltip:(0,t.clone)(this.options.tooltip),legends:(0,t.clone)(this.options.legends),animate:this.options.animate,visible:this.visible},D=new R((0,e.__assign)((0,e.__assign)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:r.GROUP_Z_INDEX.BG}),middleGroup:this.middleGroup.addGroup({zIndex:r.GROUP_Z_INDEX.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:r.GROUP_Z_INDEX.FORE}),theme:this.themeObject,padding:this.padding},b),{options:(0,e.__assign)((0,e.__assign)({},Q),(0,t.get)(b,"options",{}))}));return this.views.push(D),D},R.prototype.view=function(b){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(b)},R.prototype.removeView=function(b){var Q=(0,t.remove)(this.views,function(D){return D===b})[0];return Q&&Q.destroy(),Q},R.prototype.getCoordinate=function(){return this.coordinateInstance},R.prototype.getTheme=function(){return this.themeObject},R.prototype.getXScale=function(){var b=this.geometries[0];return b?b.getXScale():null},R.prototype.getYScales=function(){var b={},Q=[];return this.geometries.forEach(function(D){var F=D.getYScale(),N=F.field;b[N]||(b[N]=!0,Q.push(F))}),Q},R.prototype.getScalesByDim=function(b){for(var Q=this.geometries,D={},F=0,N=Q.length;F<N;F++){var k=Q[F],O=b==="x"?k.getXScale():k.getYScale();O&&!D[O.field]&&(D[O.field]=O)}return D},R.prototype.getScale=function(b,Q){var D=Q||this.getScaleKey(b);return this.getRootView().scalePool.getScale(D)},R.prototype.getScaleByField=function(b,Q){return this.getScale(b,Q)},R.prototype.getOptions=function(){return this.options},R.prototype.getData=function(){return this.filteredData},R.prototype.getOriginalData=function(){return this.options.data},R.prototype.getPadding=function(){return this.autoPadding.getPadding()},R.prototype.getGeometries=function(){return this.geometries},R.prototype.getElements=function(){return(0,t.reduce)(this.geometries,function(b,Q){return b.concat(Q.getElements())},[])},R.prototype.getElementsBy=function(b){return this.getElements().filter(function(Q){return b(Q)})},R.prototype.getLayer=function(b){return b===r.LAYER.BG?this.backgroundGroup:b===r.LAYER.MID?this.middleGroup:b===r.LAYER.FORE?this.foregroundGroup:this.foregroundGroup},R.prototype.isPointInPlot=function(b){return(0,l.isPointInCoordinate)(this.getCoordinate(),b)},R.prototype.getLegendAttributes=function(){return(0,t.flatten)(this.geometries.map(function(b){return b.getGroupAttributes()}))},R.prototype.getGroupScales=function(){var b=this.geometries.map(function(Q){return Q.getGroupScales()});return(0,A.uniq)((0,t.flatten)(b))},R.prototype.getCanvas=function(){return this.getRootView().canvas},R.prototype.getRootView=function(){for(var b=this;;){if(b.parent){b=b.parent;continue}break}return b},R.prototype.getXY=function(b){var Q=this.getCoordinate(),D=this.getScalesByDim("x"),F=this.getScalesByDim("y"),N,k;if((0,t.each)(b,function(O,P){D[P]&&(N=D[P].scale(O)),F[P]&&(k=F[P].scale(O))}),!(0,t.isNil)(N)&&!(0,t.isNil)(k))return Q.convert({x:N,y:k})},R.prototype.getController=function(b){return(0,t.find)(this.controllers,function(Q){return Q.name===b})},R.prototype.showTooltip=function(b){var Q=this.getController("tooltip");return Q&&Q.showTooltip(b),this},R.prototype.hideTooltip=function(){var b=this.getController("tooltip");return b&&b.hideTooltip(),this},R.prototype.lockTooltip=function(){var b=this.getController("tooltip");return b&&b.lockTooltip(),this},R.prototype.unlockTooltip=function(){var b=this.getController("tooltip");return b&&b.unlockTooltip(),this},R.prototype.isTooltipLocked=function(){var b=this.getController("tooltip");return b&&b.isTooltipLocked()},R.prototype.getTooltipItems=function(b){var Q=this.getController("tooltip");return Q?Q.getTooltipItems(b):[]},R.prototype.getSnapRecords=function(b){for(var Q=this.geometries,D=[],F=0,N=Q.length;F<N;F++){var k=Q[F],O=k.dataArray;k.sort(O);for(var P=void 0,z=0,j=O.length;z<j;z++){var V=O[z];P=(0,c.findDataByPoint)(b,V,k),P&&D.push(P)}}for(var L=this.views,F=0,N=L.length;F<N;F++){var K=L[F],J=K.getSnapRecords(b);D=D.concat(J)}return D},R.prototype.getComponents=function(){for(var b=[],Q=this.controllers,D=0,F=Q.length;D<F;D++){var N=Q[D];b=b.concat(N.getComponents())}return b},R.prototype.filterData=function(b){var Q=this.options.filters;return(0,t.size)(Q)===0?b:(0,t.filter)(b,function(D,F){var N=Object.keys(Q);return N.every(function(k){var O=Q[k];return O(D[k],D,F)})})},R.prototype.filterFieldData=function(b,Q){var D=this.options.filters,F=(0,t.get)(D,b);return(0,t.isUndefined)(F)?Q:Q.filter(function(N,k){return F(N[b],N,k)})},R.prototype.adjustCoordinate=function(){var b=this.getCoordinate(),Q=b.start,D=b.end,F=this.coordinateBBox.bl,N=this.coordinateBBox.tr;if((0,t.isEqual)(Q,F)&&(0,t.isEqual)(D,N)){this.isCoordinateChanged=!1;return}this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(F,N)},R.prototype.paint=function(b){this.renderDataRecursive(b),this.syncScale(),this.emit(r.VIEW_LIFE_CIRCLE.BEFORE_PAINT),this.renderPaddingRecursive(b),this.renderLayoutRecursive(b),this.renderBackgroundStyleShape(),this.renderPaintRecursive(b),this.emit(r.VIEW_LIFE_CIRCLE.AFTER_PAINT),this.isDataChanged=!1},R.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var b=(0,t.get)(this.themeObject,"background");if(b){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var Q=this.viewBBox,D=Q.x,F=Q.y,N=Q.width,k=Q.height;this.backgroundStyleRectShape.attr({fill:b,x:D,y:F,width:N,height:k})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},R.prototype.renderPaddingRecursive=function(b){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(b),this.autoPadding=(0,w.calculatePadding)(this).shrink((0,u.parsePadding)(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var Q=this.views,D=0,F=Q.length;D<F;D++){var N=Q[D];N.renderPaddingRecursive(b)}},R.prototype.renderLayoutRecursive=function(b){var Q=this.syncViewPadding===!0?B.defaultSyncViewPadding:(0,t.isFunction)(this.syncViewPadding)?this.syncViewPadding:void 0;Q&&(Q(this,this.views,C.PaddingCal),this.views.forEach(function(O){O.coordinateBBox=O.viewBBox.shrink(O.autoPadding.getPadding()),O.adjustCoordinate()})),this.doLayout();for(var D=this.views,F=0,N=D.length;F<N;F++){var k=D[F];k.renderLayoutRecursive(b)}},R.prototype.renderPaintRecursive=function(b){var Q=this.middleGroup;if(this.limitInPlot){var D=(0,l.getCoordinateClipCfg)(this.coordinateInstance),F=D.type,N=D.attrs;Q.setClip({type:F,attrs:N})}else Q.setClip(void 0);this.paintGeometries(b),this.renderComponents(b);for(var k=this.views,O=0,P=k.length;O<P;O++){var z=k[O];z.renderPaintRecursive(b)}},R.prototype.createScale=function(b,Q,D,F){var N=(0,t.get)(this.options.scales,[b]),k=(0,e.__assign)((0,e.__assign)({},N),D);return this.parent?this.parent.createScale(b,Q,k,F):this.scalePool.createScale(b,Q,k,F)},R.prototype.renderDataRecursive=function(b){this.doFilterData(),this.createCoordinate(),this.initGeometries(b),this.renderFacet(b);for(var Q=this.views,D=0,F=Q.length;D<F;D++){var N=Q[D];N.renderDataRecursive(b)}},R.prototype.calculateViewBBox=function(){var b,Q,D,F;if(this.parent){var N=this.parent.coordinateBBox;b=N.x,Q=N.y,D=N.width,F=N.height}else b=0,Q=0,D=this.canvas.get("width"),F=this.canvas.get("height");var k=this.region,O=k.start,P=k.end,z=new s.BBox(b+D*O.x,Q+F*O.y,D*(P.x-O.x),F*(P.y-O.y));(!this.viewBBox||!this.viewBBox.isEqual(z))&&(this.viewBBox=new s.BBox(b+D*O.x,Q+F*O.y,D*(P.x-O.x),F*(P.y-O.y))),this.coordinateBBox=this.viewBBox},R.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},R.prototype.initComponentController=function(){for(var b=this.usedControllers,Q=0,D=b.length;Q<D;Q++){var F=b[Q],N=(0,h.getComponentController)(F);N&&this.controllers.push(new N(this))}},R.prototype.createViewEvent=function(b){var Q=b.shape,D=b.name,F=Q?Q.get("origin"):null,N=new p.default(this,b,F);return N.type=D,N},R.prototype.doPlotEvent=function(b){var Q=b.type,D=b.x,F=b.y,N={x:D,y:F},k=["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"];if(k.includes(Q)){var O=this.isPointInPlot(N),P=b.clone();if(O){var z="plot:"+Q;P.type=z,this.emit(z,P),(Q==="mouseleave"||Q==="touchend")&&(this.isPreMouseInPlot=!1)}Q==="mousemove"||Q==="touchmove"?(this.isPreMouseInPlot&&!O?(Q==="mousemove"&&(P.type=r.PLOT_EVENTS.MOUSE_LEAVE,this.emit(r.PLOT_EVENTS.MOUSE_LEAVE,P)),P.type=r.PLOT_EVENTS.LEAVE,this.emit(r.PLOT_EVENTS.LEAVE,P)):!this.isPreMouseInPlot&&O&&(Q==="mousemove"&&(P.type=r.PLOT_EVENTS.MOUSE_ENTER,this.emit(r.PLOT_EVENTS.MOUSE_ENTER,P)),P.type=r.PLOT_EVENTS.ENTER,this.emit(r.PLOT_EVENTS.ENTER,P)),this.isPreMouseInPlot=O):(Q==="mouseleave"||Q==="touchend")&&this.isPreMouseInPlot&&(Q==="mouseleave"&&(P.type=r.PLOT_EVENTS.MOUSE_LEAVE,this.emit(r.PLOT_EVENTS.MOUSE_LEAVE,P)),P.type=r.PLOT_EVENTS.LEAVE,this.emit(r.PLOT_EVENTS.LEAVE,P),this.isPreMouseInPlot=!1)}},R.prototype.doFilterData=function(){var b=this.options.data;this.filteredData=this.filterData(b)},R.prototype.initGeometries=function(b){this.createOrUpdateScales();for(var Q=this.getCoordinate(),D=(0,t.get)(this.options,"scales",{}),F=this.geometries,N=0,k=F.length;N<k;N++){var O=F[N];O.scales=this.getGeometryScales();var P={coordinate:Q,scaleDefs:D,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};b?O.update(P):O.init(P)}this.adjustScales()},R.prototype.createOrUpdateScales=function(){for(var b=this.getScaleFields(),Q=this.getGroupedFields(),D=this.getOptions(),F=D.data,N=D.scales,k=N===void 0?{}:N,O=this.filteredData,P=0,z=b.length;P<z;P++){var j=b[P],V=k[j],L=this.getScaleKey(j);this.createScale(j,Q.includes(j)?F:O,V,L),this.createdScaleKeys.set(L,!0)}},R.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},R.prototype.getGeometryScales=function(){for(var b=this.getScaleFields(),Q={},D=0;D<b.length;D++){var F=b[D];Q[F]=this.getScaleByField(F)}return Q},R.prototype.getScaleFields=function(){for(var b=[],Q=new Map,D=this.geometries,F=0;F<D.length;F++){var N=D[F],k=N.getScaleFields();(0,A.uniq)(k,b,Q)}return b},R.prototype.getGroupedFields=function(){for(var b=[],Q=new Map,D=this.geometries,F=0;F<D.length;F++){var N=D[F],k=N.getGroupFields();(0,A.uniq)(k,b,Q)}return b},R.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},R.prototype.adjustCategoryScaleRange=function(){var b=this,Q=(0,e.__spreadArray)([this.getXScale()],this.getYScales(),!0).filter(function(N){return!!N}),D=this.getCoordinate(),F=this.options.scales;(0,t.each)(Q,function(N){var k=N.field,O=N.values,P=N.isCategory,z=N.isIdentity;(P||z)&&O&&!(0,t.get)(F,[k,"range"])&&(N.range=(0,d.getDefaultCategoryScaleRange)(N,D,b.theme))})},R.prototype.initComponents=function(b){for(var Q=this.controllers,D=0;D<Q.length;D++){var F=Q[D];b?F.update():(F.clear(),F.render())}},R.prototype.doLayout=function(){this.layoutFunc(this)},R.prototype.createCoordinate=function(){var b=this.coordinateBBox.bl,Q=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(b,Q)},R.prototype.paintGeometries=function(b){for(var Q=this.options.animate,D=this.getCoordinate(),F={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},N=this.geometries,k=0;k<N.length;k++){var O=N[k];O.coordinate=D,O.canvasRegion=F,Q||O.animate(!1),O.paint(b)}},R.prototype.renderComponents=function(b){for(var Q=0;Q<this.getComponents().length;Q++){var D=this.getComponents()[Q];D.component.render()}},R.prototype.renderFacet=function(b){this.facetInstance&&(b?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},R.prototype.initOptions=function(){var b=this,Q=this.options,D=Q.geometries,F=D===void 0?[]:D,N=Q.interactions,k=N===void 0?[]:N,O=Q.views,P=O===void 0?[]:O,z=Q.annotations,j=z===void 0?[]:z,V=Q.coordinate,L=Q.events,K=Q.facets;this.coordinateController?V&&this.coordinateController.update(V):this.coordinateController=new g.default(V);for(var J=0;J<F.length;J++){var Y=F[J];this.createGeometry(Y)}for(var W=0;W<k.length;W++){var q=k[W],ee=q.type,ae=q.cfg;this.interaction(ee,ae)}for(var ne=0;ne<P.length;ne++){var ce=P[ne];this.createView(ce)}for(var ue=this.getController("annotation"),ge=0;ge<j.length;ge++){var Se=j[ge];ue.annotation(Se)}L&&(0,t.each)(L,function(ye,pe){b.on(pe,ye)}),K&&(0,t.each)(K,function(ye){var pe=ye.type,Qe=(0,e.__rest)(ye,["type"]);b.facet(pe,Qe)})},R.prototype.createGeometry=function(b){var Q=b.type,D=b.cfg,F=D===void 0?{}:D;if(this[Q]){var N=this[Q](F);(0,t.each)(b,function(k,O){(0,t.isFunction)(N[O])&&N[O](k)})}},R.prototype.getScaleKey=function(b){return this.id+"-"+b},R}(n.default);gu.View=M;function I(S,R){M.prototype[S.toLowerCase()]=function(b){b===void 0&&(b={});var Q=(0,e.__assign)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},b),D=new R(Q);return this.geometries.push(D),D}}return gu.registerGeometry=I,gu.default=M,gu}var vle;function obt(){if(vle)return _M;vle=1,Object.defineProperty(_M,"__esModule",{value:!0});var e=Kt,t=Gt,r=Pa(),n=Jbe(),a=Wbe(),i=(0,e.__importDefault)(aSe()),o=function(s){(0,e.__extends)(l,s);function l(A){var c=this,u=A.container,d=A.width,f=A.height,h=A.autoFit,g=h===void 0?!1:h,p=A.padding,E=A.appendPadding,y=A.renderer,C=y===void 0?"canvas":y,w=A.pixelRatio,B=A.localRefresh,M=B===void 0?!0:B,I=A.visible,S=I===void 0?!0:I,R=A.supportCSSTransform,b=R===void 0?!1:R,Q=A.defaultInteractions,D=Q===void 0?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:Q,F=A.options,N=A.limitInPlot,k=A.theme,O=A.syncViewPadding,P=(0,t.isString)(u)?document.getElementById(u):u,z=(0,a.createDom)('<div style="position:relative;"></div>');P.appendChild(z);var j=(0,a.getChartSize)(P,g,d,f),V=(0,n.getEngine)(C),L=new V.Canvas((0,e.__assign)({container:z,pixelRatio:w,localRefresh:M,supportCSSTransform:b},j));return c=s.call(this,{parent:null,canvas:L,backgroundGroup:L.addGroup({zIndex:r.GROUP_Z_INDEX.BG}),middleGroup:L.addGroup({zIndex:r.GROUP_Z_INDEX.MID}),foregroundGroup:L.addGroup({zIndex:r.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:E,visible:S,options:F,limitInPlot:N,theme:k,syncViewPadding:O})||this,c.onResize=(0,t.debounce)(function(){c.forceFit()},300),c.ele=P,c.canvas=L,c.width=j.width,c.height=j.height,c.autoFit=g,c.localRefresh=M,c.renderer=C,c.wrapperElement=z,c.updateCanvasStyle(),c.bindAutoFit(),c.initDefaultInteractions(D),c}return l.prototype.initDefaultInteractions=function(A){var c=this;(0,t.each)(A,function(u){c.interaction(u)})},l.prototype.aria=function(A){var c="aria-label";A===!1?this.ele.removeAttribute(c):this.ele.setAttribute(c,A.label)},l.prototype.changeSize=function(A,c){return this.width===A&&this.height===c?this:(this.emit(r.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=A,this.height=c,this.canvas.changeSize(A,c),this.render(!0),this.emit(r.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE),this)},l.prototype.clear=function(){s.prototype.clear.call(this),this.aria(!1)},l.prototype.destroy=function(){s.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(0,a.removeDom)(this.wrapperElement),this.wrapperElement=null},l.prototype.changeVisible=function(A){return s.prototype.changeVisible.call(this,A),this.wrapperElement.style.display=A?"":"none",this},l.prototype.forceFit=function(){if(!this.destroyed){var A=(0,a.getChartSize)(this.ele,!0,this.width,this.height),c=A.width,u=A.height;this.changeSize(c,u)}},l.prototype.updateCanvasStyle=function(){(0,a.modifyCSS)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},l.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},l.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},l}(i.default);return _M.default=o,_M}var mle;function PI(){return mle||(mle=1,function(e){var t=NE&&NE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.registerComponentController=e.Event=e.registerGeometry=e.View=e.Chart=void 0;var r=obt();Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return t(r).default}});var n=aSe();Object.defineProperty(e,"View",{enumerable:!0,get:function(){return t(n).default}}),Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return n.registerGeometry}});var a=C6();Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return t(a).default}});var i=rSe();Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return i.registerComponentController}})}(NE)),NE}var UM={},Ele;function iSe(){if(Ele)return UM;Ele=1,Object.defineProperty(UM,"__esModule",{value:!0});var e=Kt,t=Gt,r=wd(),n=_l(),a=fs(),i=P2(),o=am(),s=R2(),l=(0,e.__importDefault)(C6());function A(u){for(var d=[],f=function(g){var p=u[g],E=(0,t.find)(d,function(y){return y.color===p.color&&y.name===p.name&&y.value===p.value&&y.title===p.title});E||d.push(p)},h=0;h<u.length;h++)f(h);return d}var c=function(u){(0,e.__extends)(d,u);function d(){var f=u!==null&&u.apply(this,arguments)||this;return f.isLocked=!1,f}return Object.defineProperty(d.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),d.prototype.init=function(){},d.prototype.isVisible=function(){var f=this.view.getOptions().tooltip;return f!==!1},d.prototype.render=function(){},d.prototype.showTooltip=function(f){if(this.point=f,!!this.isVisible()){var h=this.view,g=this.getTooltipItems(f);if(!g.length){this.hideTooltip();return}var p=this.getTitle(g),E={x:g[0].x,y:g[0].y};h.emit("tooltip:show",l.default.fromData(h,"tooltip:show",(0,e.__assign)({items:g,title:p},f)));var y=this.getTooltipCfg(),C=y.follow,w=y.showMarkers,B=y.showCrosshairs,M=y.showContent,I=y.marker,S=this.items,R=this.title;if(!(0,t.isEqual)(R,p)||!(0,t.isEqual)(S,g)?(h.emit("tooltip:change",l.default.fromData(h,"tooltip:change",(0,e.__assign)({items:g,title:p},f))),((0,t.isFunction)(M)?M(g):M)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,t.mix)({},y,{items:this.getItemsAfterProcess(g),title:p},C?f:{})),this.tooltip.show()),w&&this.renderTooltipMarkers(g,I)):(this.tooltip&&C&&(this.tooltip.update(f),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()),this.items=g,this.title=p,B){var b=(0,t.get)(y,["crosshairs","follow"],!1);this.renderCrosshairs(b?f:E,y)}}},d.prototype.hideTooltip=function(){var f=this.getTooltipCfg().follow;if(!f){this.point=null;return}var h=this.tooltipMarkersGroup;h&&h.hide();var g=this.xCrosshair,p=this.yCrosshair;g&&g.hide(),p&&p.hide();var E=this.tooltip;E&&E.hide(),this.view.emit("tooltip:hide",l.default.fromData(this.view,"tooltip:hide",{})),this.point=null},d.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},d.prototype.unlockTooltip=function(){this.isLocked=!1;var f=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(f.capture)},d.prototype.isTooltipLocked=function(){return this.isLocked},d.prototype.clear=function(){var f=this,h=f.tooltip,g=f.xCrosshair,p=f.yCrosshair,E=f.tooltipMarkersGroup;h&&(h.hide(),h.clear()),g&&g.clear(),p&&p.clear(),E&&E.clear(),h!=null&&h.get("customContent")&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},d.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},d.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},d.prototype.changeVisible=function(f){if(this.visible!==f){var h=this,g=h.tooltip,p=h.tooltipMarkersGroup,E=h.xCrosshair,y=h.yCrosshair;f?(g&&g.show(),p&&p.show(),E&&E.show(),y&&y.show()):(g&&g.hide(),p&&p.hide(),E&&E.hide(),y&&y.hide()),this.visible=f}},d.prototype.getTooltipItems=function(f){var h=this.findItemsFromView(this.view,f);if(h.length){h=(0,t.flatten)(h);for(var g=0,p=h;g<p.length;g++)for(var E=p[g],y=0,C=E;y<C.length;y++){var w=C[y],B=w.mappingData,M=B.x,I=B.y;w.x=(0,t.isArray)(M)?M[M.length-1]:M,w.y=(0,t.isArray)(I)?I[I.length-1]:I}var S=this.getTooltipCfg().shared;if(S===!1&&h.length>1){for(var R=h[0],b=Math.abs(f.y-R[0].y),Q=0,D=h;Q<D.length;Q++){var F=D[Q],N=Math.abs(f.y-F[0].y);N<=b&&(R=F,b=N)}h=[R]}return A((0,t.flatten)(h))}return[]},d.prototype.layout=function(){},d.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var f=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:f.get("width"),y:f.get("height")}})}},d.prototype.isCursorEntered=function(f){if(this.tooltip){var h=this.tooltip.getContainer(),g=this.tooltip.get("capture");if(h&&g){var p=h.getBoundingClientRect(),E=p.x,y=p.y,C=p.width,w=p.height;return new o.BBox(E,y,C,w).isPointIn(f)}}return!1},d.prototype.getTooltipCfg=function(){var f=this.view,h=f.getOptions().tooltip,g=this.processCustomContent(h),p=f.getTheme(),E=(0,t.get)(p,["components","tooltip"],{}),y=(0,t.get)(g,"enterable",E.enterable);return(0,t.deepMix)({},E,g,{capture:!!(y||this.isLocked)})},d.prototype.processCustomContent=function(f){if((0,t.isBoolean)(f)||!(0,t.get)(f,"customContent"))return f;var h=f.customContent,g=function(p,E){var y=h(p,E)||"";return(0,t.isString)(y)?'<div class="g2-tooltip">'+y+"</div>":y};return(0,e.__assign)((0,e.__assign)({},f),{customContent:g})},d.prototype.getTitle=function(f){var h=f[0].title||f[0].name;return this.title=h,h},d.prototype.renderTooltip=function(){var f=this.view.getCanvas(),h={start:{x:0,y:0},end:{x:f.get("width"),y:f.get("height")}},g=this.getTooltipCfg(),p=new r.HtmlTooltip((0,e.__assign)((0,e.__assign)({parent:f.get("el").parentNode,region:h},g),{visible:!1,crosshairs:null}));p.init(),this.tooltip=p},d.prototype.renderTooltipMarkers=function(f,h){for(var g=this.getTooltipMarkersGroup(),p=0,E=f;p<E.length;p++){var y=E[p],C=y.x,w=y.y,B=(0,e.__assign)((0,e.__assign)({fill:y.color,symbol:"circle",shadowColor:y.color},h),{x:C,y:w});g.addShape("marker",{attrs:B})}},d.prototype.renderCrosshairs=function(f,h){var g=(0,t.get)(h,["crosshairs","type"],"x");g==="x"?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(f,h)):g==="y"?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(f,h)):g==="xy"&&(this.renderXCrosshairs(f,h),this.renderYCrosshairs(f,h))},d.prototype.renderXCrosshairs=function(f,h){var g=this.getViewWithGeometry(this.view).getCoordinate();if((0,n.isPointInCoordinate)(g,f)){var p,E;if(g.isRect)g.isTransposed?(p={x:g.start.x,y:f.y},E={x:g.end.x,y:f.y}):(p={x:f.x,y:g.end.y},E={x:f.x,y:g.start.y});else{var y=(0,n.getAngleByPoint)(g,f),C=g.getCenter(),w=g.getRadius();E=(0,a.polarToCartesian)(C.x,C.y,w,y),p=C}var B=(0,t.deepMix)({start:p,end:E,container:this.getTooltipCrosshairsGroup()},(0,t.get)(h,"crosshairs",{}),this.getCrosshairsText("x",f,h));delete B.type;var M=this.xCrosshair;M?M.update(B):(M=new r.Crosshair.Line(B),M.init()),M.render(),M.show(),this.xCrosshair=M}},d.prototype.renderYCrosshairs=function(f,h){var g=this.getViewWithGeometry(this.view).getCoordinate();if((0,n.isPointInCoordinate)(g,f)){var p,E;if(g.isRect){var y=void 0,C=void 0;g.isTransposed?(y={x:f.x,y:g.end.y},C={x:f.x,y:g.start.y}):(y={x:g.start.x,y:f.y},C={x:g.end.x,y:f.y}),p={start:y,end:C},E="Line"}else p={center:g.getCenter(),radius:(0,n.getDistanceToCenter)(g,f),startAngle:g.startAngle,endAngle:g.endAngle},E="Circle";p=(0,t.deepMix)({container:this.getTooltipCrosshairsGroup()},p,(0,t.get)(h,"crosshairs",{}),this.getCrosshairsText("y",f,h)),delete p.type;var w=this.yCrosshair;w?g.isRect&&w.get("type")==="circle"||!g.isRect&&w.get("type")==="line"?(w=new r.Crosshair[E](p),w.init()):w.update(p):(w=new r.Crosshair[E](p),w.init()),w.render(),w.show(),this.yCrosshair=w}},d.prototype.getCrosshairsText=function(f,h,g){var p=(0,t.get)(g,["crosshairs","text"]),E=(0,t.get)(g,["crosshairs","follow"]),y=this.items;if(p){var C=this.getViewWithGeometry(this.view),w=y[0],B=C.getXScale(),M=C.getYScales()[0],I=void 0,S=void 0;if(E){var R=this.view.getCoordinate().invert(h);I=B.invert(R.x),S=M.invert(R.y)}else I=w.data[B.field],S=w.data[M.field];var b=f==="x"?I:S;return(0,t.isFunction)(p)?p=p(f,b,y,h):p.content=b,{text:p}}},d.prototype.getGuideGroup=function(){if(!this.guideGroup){var f=this.view.foregroundGroup;this.guideGroup=f.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},d.prototype.getTooltipMarkersGroup=function(){var f=this.tooltipMarkersGroup;return f&&!f.destroyed?(f.clear(),f.show()):(f=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),f.toFront(),this.tooltipMarkersGroup=f),f},d.prototype.getTooltipCrosshairsGroup=function(){var f=this.tooltipCrosshairsGroup;return f||(f=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),f.toBack(),this.tooltipCrosshairsGroup=f),f},d.prototype.findItemsFromView=function(f,h){if(f.getOptions().tooltip===!1)return[];for(var g=this.getTooltipCfg(),p=(0,i.findItemsFromView)(f,h,g),E=0,y=f.views;E<y.length;E++){var C=y[E];p=p.concat(this.findItemsFromView(C,h))}return p},d.prototype.getViewWithGeometry=function(f){var h=this;return f.geometries.length?f:(0,t.find)(f.views,function(g){return h.getViewWithGeometry(g)})},d.prototype.getItemsAfterProcess=function(f){var h=this.getTooltipCfg().customItems,g=h||function(p){return p};return g(f)},d}(s.Controller);return UM.default=c,UM}var HM={},GM={},HE={},yle;function w6(){return yle||(yle=1,Object.defineProperty(HE,"__esModule",{value:!0}),HE.BACKGROUND_SHAPE=void 0,HE.BACKGROUND_SHAPE="element-background"),HE}var Cle;function B6(){if(Cle)return GM;Cle=1,Object.defineProperty(GM,"__esModule",{value:!0});var e=Kt,t=Gt,r=S2,n=Ph(),a=(0,e.__importDefault)(m6()),i=fs(),o=Pa(),s=w6(),l=function(A){(0,e.__extends)(c,A);function c(u){var d=A.call(this,u)||this;d.states=[];var f=u.shapeFactory,h=u.container,g=u.offscreenGroup,p=u.elementIndex,E=u.visible,y=E===void 0?!0:E;return d.shapeFactory=f,d.container=h,d.offscreenGroup=g,d.visible=y,d.elementIndex=p,d}return c.prototype.draw=function(u,d){d===void 0&&(d=!1),this.model=u,this.data=u.data,this.shapeType=this.getShapeType(u),this.drawShape(u,d),this.visible===!1&&this.changeVisible(!1)},c.prototype.update=function(u){var d=this,f=d.shapeFactory,h=d.shape;if(h){this.model=u,this.data=u.data,this.shapeType=this.getShapeType(u),this.setShapeInfo(h,u);var g=this.getOffscreenGroup(),p=f.drawShape(this.shapeType,u,g);p.cfg.data=this.data,p.cfg.origin=u,p.cfg.element=this,this.syncShapeStyle(h,p,this.getStates(),this.getAnimateCfg("update"))}},c.prototype.destroy=function(){var u=this,d=u.shapeFactory,f=u.shape;if(f){var h=this.getAnimateCfg("leave");h?(0,n.doAnimate)(f,h,{coordinate:d.coordinate,toAttrs:(0,e.__assign)({},f.attr())}):f.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,A.prototype.destroy.call(this)},c.prototype.changeVisible=function(u){A.prototype.changeVisible.call(this,u),u?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(d){d.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(d){d.hide()}))},c.prototype.setState=function(u,d){var f=this,h=f.states,g=f.shapeFactory,p=f.model,E=f.shape,y=f.shapeType,C=h.indexOf(u);if(d){if(C>-1)return;h.push(u),(u==="active"||u==="selected")&&(E==null||E.toFront())}else{if(C===-1)return;h.splice(C,1),(u==="active"||u==="selected")&&(this.geometry.zIndexReversed?E.setZIndex(this.geometry.elements.length-this.elementIndex):E.setZIndex(this.elementIndex))}var w=g.drawShape(y,p,this.getOffscreenGroup());h.length?this.syncShapeStyle(E,w,h,null):this.syncShapeStyle(E,w,["reset"],null),w.remove(!0);var B={state:u,stateStatus:d,element:this,target:this.container};this.container.emit("statechange",B),(0,r.propagationDelegate)(this.shape,"statechange",B)},c.prototype.clearStates=function(){var u=this,d=this.states;(0,t.each)(d,function(f){u.setState(f,!1)}),this.states=[]},c.prototype.hasState=function(u){return this.states.includes(u)},c.prototype.getStates=function(){return this.states},c.prototype.getData=function(){return this.data},c.prototype.getModel=function(){return this.model},c.prototype.getBBox=function(){var u=this,d=u.shape,f=u.labelShape,h={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return d&&(h=d.getCanvasBBox()),f&&f.forEach(function(g){var p=g.getCanvasBBox();h.x=Math.min(p.x,h.x),h.y=Math.min(p.y,h.y),h.minX=Math.min(p.minX,h.minX),h.minY=Math.min(p.minY,h.minY),h.maxX=Math.max(p.maxX,h.maxX),h.maxY=Math.max(p.maxY,h.maxY)}),h.width=h.maxX-h.minX,h.height=h.maxY-h.minY,h},c.prototype.getStatesStyle=function(){if(!this.statesStyle){var u=this,d=u.shapeType,f=u.geometry,h=u.shapeFactory,g=f.stateOption,p=h.defaultShapeType,E=h.theme[d]||h.theme[p];this.statesStyle=(0,t.deepMix)({},E,g)}return this.statesStyle},c.prototype.getStateStyle=function(u,d){var f=this.getStatesStyle(),h=(0,t.get)(f,[u,"style"],{}),g=h[d]||h;return(0,t.isFunction)(g)?g(this):g},c.prototype.getAnimateCfg=function(u){var d=this,f=this.animate;if(f){var h=f[u];return h&&(0,e.__assign)((0,e.__assign)({},h),{callback:function(){var g;(0,t.isFunction)(h.callback)&&h.callback(),(g=d.geometry)===null||g===void 0||g.emit(o.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}})}return null},c.prototype.drawShape=function(u,d){var f;d===void 0&&(d=!1);var h=this,g=h.shapeFactory,p=h.container,E=h.shapeType;if(this.shape=g.drawShape(E,u,p),this.shape){this.setShapeInfo(this.shape,u);var y=this.shape.cfg.name;y?(0,t.isString)(y)&&(this.shape.cfg.name=["element",y]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var C=d?"enter":"appear",w=this.getAnimateCfg(C);w&&((f=this.geometry)===null||f===void 0||f.emit(o.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,n.doAnimate)(this.shape,w,{coordinate:g.coordinate,toAttrs:(0,e.__assign)({},this.shape.attr())}))}},c.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var u=this.container.getGroupBase();this.offscreenGroup=new u({})}return this.offscreenGroup},c.prototype.setShapeInfo=function(u,d){var f=this;if(u.cfg.origin=d,u.cfg.element=this,u.isGroup()){var h=u.get("children");h.forEach(function(g){f.setShapeInfo(g,d)})}},c.prototype.syncShapeStyle=function(u,d,f,h,g){var p=this,E;if(f===void 0&&(f=[]),g===void 0&&(g=0),!(!u||!d)){var y=u.get("clipShape"),C=d.get("clipShape");if(this.syncShapeStyle(y,C,f,h),u.isGroup())for(var w=u.get("children"),B=d.get("children"),M=0;M<w.length;M++)this.syncShapeStyle(w[M],B[M],f,h,g+M);else{if(!(0,t.isEmpty)(f)&&!(0,t.isEqual)(f,["reset"])){var I=u.get("name");(0,t.isArray)(I)&&(I=I[1]),(0,t.each)(f,function(R){if(d.get("name")!==s.BACKGROUND_SHAPE){var b=p.getStateStyle(R,I||g);d.attr(b)}})}var S=(0,i.getReplaceAttrs)(u,d);this.animate?h?((E=this.geometry)===null||E===void 0||E.emit(o.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,n.doAnimate)(u,h,{coordinate:this.shapeFactory.coordinate,toAttrs:S,shapeModel:this.model})):(0,t.isEmpty)(f)?u.attr(S):(u.stopAnimate(),u.animate(S,{duration:300})):u.attr(S)}}},c.prototype.getShapeType=function(u){var d=(0,t.get)(u,"shape");return(0,t.isArray)(d)?d[0]:d},c}(a.default);return GM.default=l,GM}var ll={},wle;function M6(){if(wle)return ll;wle=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.registerGeometryLabelLayout=ll.getGeometryLabelLayout=ll.registerGeometryLabel=ll.getGeometryLabel=void 0;var e={},t={};function r(o){return e[o.toLowerCase()]}ll.getGeometryLabel=r;function n(o,s){e[o.toLowerCase()]=s}ll.registerGeometryLabel=n;function a(o){return t[o.toLowerCase()]}ll.getGeometryLabelLayout=a;function i(o,s){t[o.toLowerCase()]=s}return ll.registerGeometryLabelLayout=i,ll}var lc={},Ble;function zo(){if(Ble)return lc;Ble=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.getShapeFactory=lc.registerShape=lc.registerShapeFactory=void 0;var e=Kt,t=_2,r=Gt,n=k2(),a={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(c,u){var d=this.getShape(c);return d.getPoints?d.getPoints(u):this.getDefaultPoints(u)},getShape:function(c){var u=this[c]||this[this.defaultShapeType];return u.coordinate=this.coordinate,u},getDefaultPoints:function(){return[]},getDefaultStyle:function(c){return(0,r.get)(c,[this.defaultShapeType,"default","style"],{})},getMarker:function(c,u){var d=this.getShape(c);if(!d.getMarker){var f=this.defaultShapeType;d=this.getShape(f)}var h=this.theme,g=(0,r.get)(h,[c,"default"],{}),p=d.getMarker(u);return(0,r.deepMix)({},g,p)},drawShape:function(c,u,d){var f=this.getShape(c);return f.draw(u,d)}},i={coordinate:null,parsePath:function(c){var u=this.coordinate,d=(0,t.parsePathString)(c);return u.isPolar?d=(0,n.convertPolarPath)(u,d):d=(0,n.convertNormalPath)(u,d),d},parsePoint:function(c){var u=this.coordinate;return u.convert(c)},parsePoints:function(c){var u=this.coordinate;return c.map(function(d){return u.convert(d)})},draw:function(c,u){}},o={};function s(c,u){var d=(0,r.upperFirst)(c),f=(0,e.__assign)((0,e.__assign)((0,e.__assign)({},a),u),{geometryType:c});return o[d]=f,f}lc.registerShapeFactory=s;function l(c,u,d){var f=(0,r.upperFirst)(c),h=o[f],g=(0,e.__assign)((0,e.__assign)({},i),d);return h[u]=g,g}lc.registerShape=l;function A(c){var u=(0,r.upperFirst)(c);return o[u]}return lc.getShapeFactory=A,lc}var GE={},Mle;function sbt(){if(Mle)return GE;Mle=1,Object.defineProperty(GE,"__esModule",{value:!0}),GE.group=void 0;var e=Gt;function t(r,n,a){if(a===void 0&&(a={}),!n)return[r];var i=(0,e.groupToMap)(r,n),o=[];if(n.length===1&&a[n[0]])for(var s=a[n[0]],l=0,A=s;l<A.length;l++){var c=A[l],u=i["_"+c];u&&o.push(u)}else for(var d in i)if(i.hasOwnProperty(d)){var f=i[d];o.push(f)}return o}return GE.group=t,GE}var KE={},xle;function oSe(){if(xle)return KE;xle=1,Object.defineProperty(KE,"__esModule",{value:!0}),KE.isModelChange=void 0;var e=Gt;function t(r,n){return(0,e.some)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],function(a){return!(0,e.isEqual)(r[a],n[a])})}return KE.isModelChange=t,KE}var VE={},Ile;function lbt(){if(Ile)return VE;Ile=1,Object.defineProperty(VE,"__esModule",{value:!0}),VE.parseFields=void 0;var e=Gt;function t(r){return(0,e.isArray)(r)?r:r.split("*")}return VE.parseFields=t,VE}var JE={},ble;function sSe(){if(ble)return JE;ble=1,Object.defineProperty(JE,"__esModule",{value:!0}),JE.diff=void 0;function e(t,r){for(var n=[],a=[],i=[],o=new Map,s=0;s<r.length;s++){var l=r[s];t[l]?a.push(l):n.push(l),o.set(l,!0)}return Object.keys(t).forEach(function(A){o.has(A)||i.push(A)}),{added:n,updated:a,removed:i}}return JE.diff=e,JE}var Sle;function O2(){if(Sle)return HM;Sle=1,Object.defineProperty(HM,"__esModule",{value:!0});var e=Kt,t=kIe,r=x3,n=Gt,a=Ph(),i=(0,e.__importDefault)(m6()),o=Pa(),s=Oh(),l=(0,e.__importDefault)(B6()),A=M6(),c=zo(),u=sbt(),d=oSe(),f=lbt(),h=sSe(),g=_l();function p(y,C){var w=[];return(0,n.each)(C,function(B,M){var I=M.split(" ")[0];I===y&&w.push(B)}),w}var E=function(y){(0,e.__extends)(C,y);function C(w){var B=y.call(this,w)||this;B.type="base",B.attributes={},B.elements=[],B.elementsMap={},B.animateOption=!0,B.attributeOption={},B.lastElementsMap={},B.generatePoints=!1,B.beforeMappingData=null,B.adjusts={},B.idFields=[],B.hasSorted=!1,B.isCoordinateChanged=!1;var M=w.container,I=w.labelsContainer,S=w.coordinate,R=w.data,b=w.sortable,Q=b===void 0?!1:b,D=w.visible,F=D===void 0?!0:D,N=w.theme,k=w.scales,O=k===void 0?{}:k,P=w.scaleDefs,z=P===void 0?{}:P,j=w.intervalPadding,V=w.dodgePadding,L=w.maxColumnWidth,K=w.minColumnWidth,J=w.columnWidthRatio,Y=w.roseWidthRatio,W=w.multiplePieWidthRatio,q=w.zIndexReversed;return B.container=M,B.labelsContainer=I,B.coordinate=S,B.data=R,B.sortable=Q,B.visible=F,B.userTheme=N,B.scales=O,B.scaleDefs=z,B.intervalPadding=j,B.dodgePadding=V,B.maxColumnWidth=L,B.minColumnWidth=K,B.columnWidthRatio=J,B.roseWidthRatio=Y,B.multiplePieWidthRatio=W,B.zIndexReversed=q,B}return C.prototype.position=function(w){var B=w;(0,n.isPlainObject)(w)||(B={fields:(0,f.parseFields)(w)});var M=(0,n.get)(B,"fields");return M.length===1&&(M.unshift("1"),(0,n.set)(B,"fields",M)),(0,n.set)(this.attributeOption,"position",B),this},C.prototype.color=function(w,B){return this.createAttrOption("color",w,B),this},C.prototype.shape=function(w,B){return this.createAttrOption("shape",w,B),this},C.prototype.size=function(w,B){return this.createAttrOption("size",w,B),this},C.prototype.adjust=function(w){var B=w;return((0,n.isString)(w)||(0,n.isPlainObject)(w))&&(B=[w]),(0,n.each)(B,function(M,I){(0,n.isObject)(M)||(B[I]={type:M})}),this.adjustOption=B,this},C.prototype.style=function(w,B){if((0,n.isString)(w)){var M=(0,f.parseFields)(w);this.styleOption={fields:M,callback:B}}else{var I=w,M=I.fields,S=I.callback,R=I.cfg;M||S||R?this.styleOption=w:this.styleOption={cfg:w}}return this},C.prototype.tooltip=function(w,B){if((0,n.isString)(w)){var M=(0,f.parseFields)(w);this.tooltipOption={fields:M,callback:B}}else this.tooltipOption=w;return this},C.prototype.animate=function(w){return this.animateOption=w,this},C.prototype.label=function(w,B,M){if((0,n.isString)(w)){var I={},S=(0,f.parseFields)(w);I.fields=S,(0,n.isFunction)(B)?I.callback=B:(0,n.isPlainObject)(B)&&(I.cfg=B),M&&(I.cfg=M),this.labelOption=I}else this.labelOption=w;return this},C.prototype.state=function(w){return this.stateOption=w,this},C.prototype.customInfo=function(w){return this.customOption=w,this},C.prototype.init=function(w){w===void 0&&(w={}),this.setCfg(w),this.initAttributes(),this.processData(this.data),this.adjustScale()},C.prototype.update=function(w){w===void 0&&(w={});var B=w.data,M=w.isDataChanged,I=w.isCoordinateChanged,S=this,R=S.attributeOption,b=S.lastAttributeOption;(0,n.isEqual)(R,b)?B&&(M||!(0,n.isEqual)(B,this.data))?(this.setCfg(w),this.initAttributes(),this.processData(B)):this.setCfg(w):this.init(w),this.adjustScale(),this.isCoordinateChanged=I},C.prototype.paint=function(w){w===void 0&&(w=!1),this.animateOption&&(this.animateOption=(0,n.deepMix)({},(0,a.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[];var B=this.getOffscreenGroup();B.clear();var M=this.beforeMappingData,I=this.beforeMapping(M);this.dataArray=new Array(I.length);for(var S=0;S<I.length;S++){var R=I[S];this.dataArray[S]=this.mapping(R)}if(this.updateElements(this.dataArray,w),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(w)){var b=this.container,Q=this.type,D=this.coordinate,F=(0,n.get)(this.animateOption,"appear"),N=this.getYScale(),k=D.convert({x:0,y:N.scale(this.getYMinValue())});(0,a.doGroupAppearAnimate)(b,F,Q,D,k)}this.labelOption&&this.renderLabels((0,n.flatten)(this.dataArray),w),this.lastAttributeOption=(0,e.__assign)({},this.attributeOption),this.visible===!1&&this.changeVisible(!1)},C.prototype.clear=function(){var w=this,B=w.container,M=w.geometryLabel,I=w.offscreenGroup;B&&B.clear(),M&&M.clear(),I&&I.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},C.prototype.destroy=function(){this.clear();var w=this.container;w.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,y.prototype.destroy.call(this)},C.prototype.getGroupScales=function(){return this.groupScales},C.prototype.getAttribute=function(w){return this.attributes[w]},C.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},C.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},C.prototype.getGroupAttributes=function(){var w=[];return(0,n.each)(this.attributes,function(B){o.GROUP_ATTRS.includes(B.type)&&w.push(B)}),w},C.prototype.getDefaultValue=function(w){var B,M=this.getAttribute(w);return M&&(0,n.isEmpty)(M.scales)&&(B=M.values[0]),B},C.prototype.getAttributeValues=function(w,B){for(var M=[],I=w.scales,S=0,R=I.length;S<R;S++){var b=I[S],Q=b.field;b.isIdentity?M.push(b.values):M.push(B[Q])}return w.mapping.apply(w,M)},C.prototype.getAdjust=function(w){return this.adjusts[w]},C.prototype.getCoordinate=function(){return this.coordinate},C.prototype.getData=function(){return this.data},C.prototype.getShapeMarker=function(w,B){var M=this.getShapeFactory();return M.getMarker(w,B)},C.prototype.getElementsBy=function(w){return this.elements.filter(function(B){return w(B)})},C.prototype.getElements=function(){return this.elements},C.prototype.getElementId=function(w){w=(0,n.isArray)(w)?w[0]:w;var B=w[o.FIELD_ORIGIN];if(this.idFields.length){for(var M=B[this.idFields[0]],I=1;I<this.idFields.length;I++)M+="-"+B[this.idFields[I]];return M}var S=this.type,R=this.getXScale(),b=this.getYScale(),Q=R.field||"x",D=b.field||"y",F=B[D],N;R.type==="identity"?N=R.values[0]:N=B[Q];var k;S==="interval"||S==="schema"?k=""+N:S==="line"||S==="area"||S==="path"?k=S:k=N+"-"+F;var O=this.groupScales;(0,n.isEmpty)(O)&&(O=(0,n.get)(this.getAttribute("color"),"scales",[]));for(var I=0,P=O.length;I<P;I++){var z=O[I],j=z.field;k=k+"-"+B[j]}var V=this.getAdjust("dodge");if(V){var L=V.dodgeBy;L&&(k=k+"-"+B[L])}return this.getAdjust("jitter")&&(k=k+"-"+w.x+"-"+w.y),k},C.prototype.getScaleFields=function(){var w=[],B=new Map,M=this,I=M.attributeOption,S=M.labelOption,R=M.tooltipOption;for(var b in I)if(I.hasOwnProperty(b)){var Q=I[b];Q.fields?(0,s.uniq)(Q.fields,w,B):Q.values&&(0,s.uniq)(Q.values,w,B)}return S&&S.fields&&(0,s.uniq)(S.fields,w,B),(0,n.isObject)(R)&&R.fields&&(0,s.uniq)(R.fields,w,B),w},C.prototype.changeVisible=function(w){y.prototype.changeVisible.call(this,w);for(var B=this.elements,M=0,I=B.length;M<I;M++){var S=B[M];S.changeVisible(w)}w?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},C.prototype.getFields=function(){var w=new Map,B=[];return Object.values(this.attributeOption).forEach(function(M){var I=(M==null?void 0:M.fields)||[];I.forEach(function(S){w.has(S)||B.push(S),w.set(S,!0)})},[]),B},C.prototype.getGroupFields=function(){for(var w=[],B=new Map,M=0,I=o.GROUP_ATTRS.length;M<I;M++){var S=o.GROUP_ATTRS[M],R=this.attributeOption[S];R&&R.fields&&(0,s.uniq)(R.fields,w,B)}return w},C.prototype.getXYFields=function(){var w=this.attributeOption.position.fields,B=w[0],M=w[1];return[B,M]},C.prototype.getXField=function(){return(0,n.get)(this.getXYFields(),[0])},C.prototype.getYField=function(){return(0,n.get)(this.getXYFields(),[1])},C.prototype.getShapes=function(){return this.elements.map(function(w){return w.shape})},C.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var w=this.container.getGroupBase();this.offscreenGroup=new w({})}return this.offscreenGroup},C.prototype.sort=function(w){if(!this.hasSorted)for(var B=this.getXScale(),M=B.field,I=0;I<w.length;I++){var S=w[I];S.sort(function(R,b){return B.translate(R[o.FIELD_ORIGIN][M])-B.translate(b[o.FIELD_ORIGIN][M])})}this.hasSorted=!0},C.prototype.adjustScale=function(){var w=this.getYScale();w&&this.getAdjust("stack")&&this.updateStackRange(w,this.beforeMappingData)},C.prototype.getShapeFactory=function(){var w=this.shapeType;if((0,c.getShapeFactory)(w))return this.shapeFactory||(this.shapeFactory=(0,n.clone)((0,c.getShapeFactory)(w))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[w]||{},this.shapeFactory},C.prototype.createShapePointsCfg=function(w){var B=this.getXScale(),M=this.getYScale(),I=this.normalizeValues(w[B.field],B),S;return M?S=this.normalizeValues(w[M.field],M):S=w.y?w.y:.1,{x:I,y:S,y0:M?M.scale(this.getYMinValue()):void 0}},C.prototype.createElement=function(w,B,M){M===void 0&&(M=!1);var I=this.container,S=this.getDrawCfg(w),R=this.getShapeFactory(),b=new l.default({shapeFactory:R,container:I,offscreenGroup:this.getOffscreenGroup(),elementIndex:B});return b.animate=this.animateOption,b.geometry=this,b.draw(S,M),b},C.prototype.getDrawCfg=function(w){var B=w[o.FIELD_ORIGIN],M={mappingData:w,data:B,x:w.x,y:w.y,color:w.color,size:w.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},I=w.shape;!I&&this.getShapeFactory()&&(I=this.getShapeFactory().defaultShapeType),M.shape=I;var S=this.theme.geometries[this.shapeType];M.defaultStyle=(0,n.get)(S,[I,"default"],{}).style,!M.defaultStyle&&this.getShapeFactory()&&(M.defaultStyle=this.getShapeFactory().getDefaultStyle(S));var R=this.styleOption;return R&&(M.style=this.getStyleCfg(R,B)),this.generatePoints&&(M.points=w.points,M.nextPoints=w.nextPoints),M},C.prototype.updateElements=function(w,B){B===void 0&&(B=!1);for(var M=new Map,I=[],S=new Map,R=0,b=0;b<w.length;b++)for(var Q=w[b],D=0;D<Q.length;D++){var F=Q[D],N=this.getElementId(F),k=M.has(N)?N+"-"+b+"-"+D:N;I.push(k),M.set(k,F),S.set(k,R),R++}this.elements=new Array(R);for(var O=(0,h.diff)(this.lastElementsMap,I),P=O.added,z=O.updated,j=O.removed,V=0,L=P;V<L.length;V++){var N=L[V],F=M.get(N),b=S.get(N),K=this.createElement(F,b,B);this.elements[b]=K,this.elementsMap[N]=K,K.shape&&K.shape.setZIndex(this.zIndexReversed?this.elements.length-b:b)}for(var J=0,Y=z;J<Y.length;J++){var N=Y[J],K=this.lastElementsMap[N],F=M.get(N),W=this.getDrawCfg(F),q=K.getModel(),b=S.get(N);(this.isCoordinateChanged||(0,d.isModelChange)(W,q))&&(K.animate=this.animateOption,K.update(W)),this.elements[b]=K,this.elementsMap[N]=K,K.shape&&K.shape.setZIndex(this.zIndexReversed?this.elements.length-b:b)}for(var ee=0,ae=j;ee<ae.length;ee++){var N=ae[ee],K=this.lastElementsMap[N];K.animate=this.animateOption,K.destroy()}},C.prototype.getLabelType=function(){var w=this,B=w.labelOption,M=w.coordinate,I=w.type,S=M.type,R=M.isTransposed,b=(0,n.get)(B,["cfg","type"]);return b||(S==="polar"?b=R?"pie":"polar":S==="theta"?b="pie":I==="interval"||I==="polygon"?b="interval":b="base"),b},C.prototype.getYMinValue=function(){var w=this.getYScale(),B=w.min,M=w.max,I;return B>=0?I=B:M<=0?I=M:I=0,I},C.prototype.createAttrOption=function(w,B,M){if((0,n.isNil)(B)||(0,n.isObject)(B))(0,n.isObject)(B)&&(0,n.isEqual)(Object.keys(B),["values"])?(0,n.set)(this.attributeOption,w,{fields:B.values}):(0,n.set)(this.attributeOption,w,B);else{var I={};(0,n.isNumber)(B)?I.values=[B]:I.fields=(0,f.parseFields)(B),M&&((0,n.isFunction)(M)?I.callback=M:I.values=M),(0,n.set)(this.attributeOption,w,I)}},C.prototype.initAttributes=function(){var w=this,B=this,M=B.attributes,I=B.attributeOption,S=B.theme,R=B.shapeType;this.groupScales=[];var b={},Q=function(N){if(I.hasOwnProperty(N)){var k=I[N];if(!k)return{value:void 0};var O=(0,e.__assign)({},k),P=O.callback,z=O.values,j=O.fields,V=j===void 0?[]:j,L=V.map(function(J){var Y=w.scales[J];return Y.isCategory&&!b[J]&&o.GROUP_ATTRS.includes(N)&&(w.groupScales.push(Y),b[J]=!0),Y});O.scales=L,N!=="position"&&L.length===1&&L[0].type==="identity"?O.values=L[0].values:!P&&!z&&(N==="size"?O.values=S.sizes:N==="shape"?O.values=S.shapes[R]||[]:N==="color"&&(L.length?O.values=L[0].values.length<=10?S.colors10:S.colors20:O.values=S.colors10));var K=(0,r.getAttribute)(N);M[N]=new K(O)}};for(var D in I){var F=Q(D);if(typeof F=="object")return F.value}},C.prototype.processData=function(w){this.hasSorted=!1;for(var B=this.getAttribute("position").scales,M=B.filter(function(J){return J.isCategory}),I=this.groupData(w),S=[],R=0,b=I.length;R<b;R++){for(var Q=I[R],D=[],F=0,N=Q.length;F<N;F++){var k=Q[F],O={};for(var P in k)O[P]=k[P];O[o.FIELD_ORIGIN]=k;for(var z=0,j=M;z<j.length;z++){var V=j[z],L=V.field;O[L]=V.translate(O[L])}D.push(O)}S.push(D)}var K=this.adjustData(S);return this.beforeMappingData=K,K},C.prototype.adjustData=function(w){var B=this.adjustOption,M=this,I=M.intervalPadding,S=M.dodgePadding,R=M.theme,b=this.maxColumnWidth||R.maxColumnWidth,Q=this.minColumnWidth||R.minColumnWidth,D=this.columnWidthRatio||R.columnWidthRatio,F=w;if(B){var N=this.getXScale(),k=this.getYScale(),O=N.field,P=k?k.field:null,z=(0,g.getXDimensionLength)(this.coordinate),j=N.values.length,V=this.getAttribute("size"),L=void 0;V&&(L=V.values[0]);for(var K=0,J=B.length;K<J;K++){var Y=B[K],W=(0,e.__assign)({xField:O,yField:P,intervalPadding:I,dodgePadding:S,xDimensionLength:z,groupNum:j,defaultSize:L,maxColumnWidth:b,minColumnWidth:Q,columnWidthRatio:D},Y),q=Y.type;if(q==="dodge"){var ee=[];if(N.isCategory||N.type==="identity")ee.push("x");else if(!k)ee.push("y");else throw new Error("dodge is not support linear attribute, please use category attribute!");W.adjustNames=ee,W.dodgeRatio=D}else if(q==="stack"){var ae=this.coordinate;if(!k){W.height=ae.getHeight();var ne=this.getDefaultValue("size")||3;W.size=ne}!ae.isTransposed&&(0,n.isNil)(W.reverseOrder)&&(W.reverseOrder=!0)}var ce=(0,t.getAdjust)(q),ue=new ce(W);F=ue.process(F),this.adjusts[q]=ue}}return F},C.prototype.groupData=function(w){for(var B=this.getGroupScales(),M=this.scaleDefs,I={},S=[],R=0;R<B.length;R++){var b=B[R],Q=b.field;S.push(Q),(0,n.get)(M,[Q,"values"])&&(I[Q]=M[Q].values)}return(0,u.group)(w,S,I)},C.prototype.updateStackRange=function(w,B){for(var M=(0,n.flatten)(B),I=w.field,S=w.min,R=w.max,b=0;b<M.length;b++){var Q=M[b],D=Math.min.apply(null,Q[I]),F=Math.max.apply(null,Q[I]);D<S&&(S=D),F>R&&(R=F)}var N=this.scaleDefs,k={};S<w.min&&!(0,n.get)(N,[I,"min"])&&(k.min=S),R>w.max&&!(0,n.get)(N,[I,"max"])&&(k.max=R),w.change(k)},C.prototype.beforeMapping=function(w){var B=w;if(this.sortable&&this.sort(B),this.generatePoints)for(var M=0,I=B.length;M<I;M++){var S=B[M];this.generateShapePoints(S);var R=B[M+1];R&&(this.generateShapePoints(R),S[0].nextPoints=R[0].points)}return B},C.prototype.generateShapePoints=function(w){for(var B=this.getShapeFactory(),M=this.getAttribute("shape"),I=0;I<w.length;I++){var S=w[I],R=this.createShapePointsCfg(S),b=M?this.getAttributeValues(M,S):null,Q=B.getShapePoints(b,R);S.points=Q}},C.prototype.normalizeValues=function(w,B){var M=[];if((0,n.isArray)(w))for(var I=0;I<w.length;I++){var S=w[I];M.push(B.scale(S))}else M=B.scale(w);return M},C.prototype.mapping=function(w){for(var B=this.attributes,M=[],I=0;I<w.length;I++){var S=w[I],R={_origin:S[o.FIELD_ORIGIN],points:S.points,nextPoints:S.nextPoints};for(var b in B)if(B.hasOwnProperty(b)){var Q=B[b],D=Q.names,F=this.getAttributeValues(Q,S);if(D.length>1)for(var N=0;N<F.length;N+=1){var k=F[N],O=D[N];R[O]=(0,n.isArray)(k)&&k.length===1?k[0]:k}else R[D[0]]=F.length===1?F[0]:F}this.convertPoint(R),M.push(R)}return M},C.prototype.convertPoint=function(w){var B=w.x,M=w.y,I,S,R,b=this.coordinate;if((0,n.isArray)(B)&&(0,n.isArray)(M)){I=[],S=[];for(var Q=0,D=0,F=B.length,N=M.length;Q<F&&D<N;Q+=1,D+=1)R=b.convert({x:B[Q],y:M[D]}),I.push(R.x),S.push(R.y)}else if((0,n.isArray)(M)){S=[];for(var k=0;k<M.length;k++){var O=M[k];R=b.convert({x:B,y:O}),I&&I!==R.x?((0,n.isArray)(I)||(I=[I]),I.push(R.x)):I=R.x,S.push(R.y)}}else if((0,n.isArray)(B)){I=[];for(var k=0;k<B.length;k++){var P=B[k];R=b.convert({x:P,y:M}),S&&S!==R.y?((0,n.isArray)(S)||(S=[S]),S.push(R.y)):S=R.y,I.push(R.x)}}else{var z=b.convert({x:B,y:M});I=z.x,S=z.y}w.x=I,w.y=S},C.prototype.getStyleCfg=function(w,B){var M=w.fields,I=M===void 0?[]:M,S=w.callback,R=w.cfg;if(R)return R;var b=I.map(function(Q){return B[Q]});return S.apply(void 0,b)},C.prototype.setCfg=function(w){var B=this,M=w.coordinate,I=w.data,S=w.theme,R=w.scaleDefs;M&&(this.coordinate=M),I&&(this.data=I),R&&(this.scaleDefs=R,this.idFields=[],(0,n.each)(R,function(b,Q){b&&b.key&&B.idFields.push(Q)})),S&&(this.theme=this.userTheme?(0,n.deepMix)({},S,this.userTheme):S)},C.prototype.renderLabels=function(w,B){B===void 0&&(B=!1);var M=this.geometryLabel;if(!M){var I=this.getLabelType(),S=(0,A.getGeometryLabel)(I);M=new S(this),this.geometryLabel=M}M.render(w,B);var R=M.labelsRenderer.shapesMap;(0,n.each)(this.elementsMap,function(b,Q){var D=p(Q,R);if(D.length){b.labelShape=D;for(var F=0;F<D.length;F++)for(var N=D[F],k=N.getChildren(),O=0;O<k.length;O++){var P=k[O];P.cfg.name=["element","label"],P.cfg.element=b}}})},C.prototype.canDoGroupAnimation=function(w){return!w&&this.animateOption&&((0,n.get)(this.animateOption,"appear")===void 0||(0,n.get)(this.animateOption,"appear")&&(0,n.get)(this.animateOption,["appear","animation"])===void 0)},C}(i.default);return HM.default=E,HM}var KM={},VM={},Al={},eo={},Rle;function z2(){if(Rle)return eo;Rle=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.zoom=eo.getIdentityMatrix=eo.rotate=eo.getRotateMatrix=eo.translate=eo.transform=void 0;var e=Bd,t=e.ext.transform;eo.transform=t;function r(s,l,A){var c=t(s.getMatrix(),[["t",l,A]]);s.setMatrix(c)}eo.translate=r;function n(s,l){var A=s.attr(),c=A.x,u=A.y,d=t(s.getMatrix(),[["t",-c,-u],["r",l],["t",c,u]]);return d}eo.getRotateMatrix=n;function a(s,l){var A=n(s,l);s.setMatrix(A)}eo.rotate=a;function i(){return[1,0,0,0,1,0,0,0,1]}eo.getIdentityMatrix=i;function o(s,l){var A=s.getBBox(),c=(A.minX+A.maxX)/2,u=(A.minY+A.maxY)/2;s.applyToMatrix([c,u,1]);var d=t(s.getMatrix(),[["t",-c,-u],["s",l,l],["t",c,u]]);s.setMatrix(d)}return eo.zoom=o,eo}var Tle;function Abt(){if(Tle)return Al;Tle=1,Object.defineProperty(Al,"__esModule",{value:!0}),Al.checkShapeOverlap=Al.getOverlapArea=Al.getlLabelBackgroundInfo=Al.findLabelTextShape=void 0;var e=Gt,t=z2();function r(o){return o.find(function(s){return s.get("type")==="text"})}Al.findLabelTextShape=r;function n(o,s,l){l===void 0&&(l=[0,0,0,0]);var A=o.getChildren()[0];if(A){var c=A.clone();s!=null&&s.rotate&&(0,t.rotate)(c,-s.rotate);var u=c.getCanvasBBox(),d=u.x,f=u.y,h=u.width,g=u.height;c.destroy();var p=l;return(0,e.isNil)(p)?p=[2,2,2,2]:(0,e.isNumber)(p)&&(p=new Array(4).fill(p)),{x:d-p[3],y:f-p[0],width:h+p[1]+p[3],height:g+p[0]+p[2],rotation:(s==null?void 0:s.rotate)||0}}}Al.getlLabelBackgroundInfo=n;function a(o,s,l){l===void 0&&(l=0);var A=Math.max(0,Math.min(o.x+o.width+l,s.x+s.width+l)-Math.max(o.x-l,s.x-l)),c=Math.max(0,Math.min(o.y+o.height+l,s.y+s.height+l)-Math.max(o.y-l,s.y-l));return A*c}Al.getOverlapArea=a;function i(o,s){var l=o.getBBox();return(0,e.some)(s,function(A){var c=A.getBBox();return a(l,c,2)>0})}return Al.checkShapeOverlap=i,Al}var WE={},Qle;function cbt(){if(Qle)return WE;Qle=1,Object.defineProperty(WE,"__esModule",{value:!0}),WE.updateLabel=void 0;var e=Gt,t=Ph(),r=fs();function n(a,i,o){var s=o.data,l=o.origin,A=o.animateCfg,c=o.coordinate,u=(0,e.get)(A,"update");a.set("data",s),a.set("origin",l),a.set("animateCfg",A),a.set("coordinate",c),a.set("visible",i.get("visible")),a.getChildren().forEach(function(d,f){var h=i.getChildByIndex(f);if(!h)a.removeChild(d),d.remove(!0);else{d.set("data",s),d.set("origin",l),d.set("animateCfg",A),d.set("coordinate",c);var g=(0,r.getReplaceAttrs)(d,h);u?(0,t.doAnimate)(d,u,{toAttrs:g,coordinate:c}):d.attr(g),h.isGroup()&&n(d,h,o)}}),(0,e.each)(i.getChildren(),function(d,f){f>=a.getCount()&&(d.destroyed||a.add(d))})}return WE.updateLabel=n,WE}var Dle;function ubt(){if(Dle)return VM;Dle=1,Object.defineProperty(VM,"__esModule",{value:!0});var e=Kt,t=Gt,r=Ph(),n=M6(),a=Abt(),i=fs(),o=z2(),s=Pa(),l=cbt(),A=function(){function c(u){this.shapesMap={},this.lastShapesMap={};var d=u.layout,f=u.container;this.layout=d,this.container=f}return c.prototype.render=function(u,d,f){var h=this;f===void 0&&(f=!1),this.shapesMap={};var g=this.container,p=this.createOffscreenGroup();if(u.length){for(var E=0,y=u;E<y.length;E++){var C=y[E];C&&this.renderLabel(C,p)}this.doLayout(u,d),this.renderLabelLine(u),this.renderLabelBackground(u),this.adjustLabel(u)}var w=this.lastShapesMap,B=this.shapesMap;(0,t.each)(B,function(M,I){if(M.destroyed)delete B[I];else{if(w[I]){var S=M.get("data"),R=M.get("origin"),b=M.get("coordinate"),Q=M.get("animateCfg"),D=w[I];(0,l.updateLabel)(D,B[I],{data:S,origin:R,animateCfg:Q,coordinate:b}),h.shapesMap[I]=D}else{g.add(M);var F=(0,t.get)(M.get("animateCfg"),f?"enter":"appear");F&&(0,r.doAnimate)(M,F,{toAttrs:(0,e.__assign)({},M.attr()),coordinate:M.get("coordinate")})}delete w[I]}}),(0,t.each)(w,function(M){var I=(0,t.get)(M.get("animateCfg"),"leave");I?(0,r.doAnimate)(M,I,{toAttrs:null,coordinate:M.get("coordinate")}):M.remove(!0)}),this.lastShapesMap=B,p.destroy()},c.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},c.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},c.prototype.renderLabel=function(u,d){var f=u.id,h=u.elementId,g=u.data,p=u.mappingData,E=u.coordinate,y=u.animate,C=u.content,w={id:f,elementId:h,data:g,origin:(0,e.__assign)((0,e.__assign)({},p),{data:p[s.FIELD_ORIGIN]}),coordinate:E},B=d.addGroup((0,e.__assign)({name:"label",animateCfg:this.animate===!1||y===null||y===!1?!1:(0,t.deepMix)({},this.animate,y)},w)),M;if(C.isGroup&&C.isGroup()||C.isShape&&C.isShape()){var I=C.getCanvasBBox(),S=I.width,R=I.height,b=(0,t.get)(u,"textAlign","left"),Q=u.x,D=u.y-R/2;b==="center"?Q=Q-S/2:(b==="right"||b==="end")&&(Q=Q-S),(0,o.translate)(C,Q,D),M=C,B.add(C)}else{var F=(0,t.get)(u,["style","fill"]);M=B.addShape("text",(0,e.__assign)({attrs:(0,e.__assign)((0,e.__assign)({x:u.x,y:u.y,textAlign:u.textAlign,textBaseline:(0,t.get)(u,"textBaseline","middle"),text:u.content},u.style),{fill:(0,t.isNull)(F)?u.color:F})},w))}u.rotate&&(0,o.rotate)(M,u.rotate),this.shapesMap[f]=B},c.prototype.doLayout=function(u,d){var f=this;if(this.layout){var h=(0,t.isArray)(this.layout)?this.layout:[this.layout];(0,t.each)(h,function(g){var p=(0,n.getGeometryLabelLayout)((0,t.get)(g,"type",""));if(p){var E=[],y=[];(0,t.each)(f.shapesMap,function(C,w){E.push(C),y.push(d[C.get("elementId")])}),p(u,E,y,f.region,g.cfg)}})}},c.prototype.renderLabelLine=function(u){var d=this;(0,t.each)(u,function(f){var h=(0,t.get)(f,"coordinate");if(!(!f||!h)){var g=h.getCenter(),p=h.getRadius();if(f.labelLine){var E=(0,t.get)(f,"labelLine",{}),y=f.id,C=E.path;if(!C){var w=(0,i.polarToCartesian)(g.x,g.y,p,f.angle);C=[["M",w.x,w.y],["L",f.x,f.y]]}var B=d.shapesMap[y];B.destroyed||B.addShape("path",{capture:!1,attrs:(0,e.__assign)({path:C,stroke:f.color?f.color:(0,t.get)(f,["style","fill"],"#000"),fill:null},E.style),id:y,origin:f.mappingData,data:f.data,coordinate:f.coordinate})}}})},c.prototype.renderLabelBackground=function(u){var d=this;(0,t.each)(u,function(f){var h=(0,t.get)(f,"coordinate"),g=(0,t.get)(f,"background");if(!(!g||!h)){var p=f.id,E=d.shapesMap[p];if(!E.destroyed){var y=E.getChildren()[0];if(y){var C=(0,a.getlLabelBackgroundInfo)(E,f,g.padding),w=C.rotation,B=(0,e.__rest)(C,["rotation"]),M=E.addShape("rect",{attrs:(0,e.__assign)((0,e.__assign)({},B),g.style||{}),id:p,origin:f.mappingData,data:f.data,coordinate:f.coordinate});if(M.setZIndex(-1),w){var I=y.getMatrix();M.setMatrix(I)}}}}})},c.prototype.createOffscreenGroup=function(){var u=this.container,d=u.getGroupBase(),f=new d({});return f},c.prototype.adjustLabel=function(u){var d=this;(0,t.each)(u,function(f){if(f){var h=f.id,g=d.shapesMap[h];if(!g.destroyed){var p=g.findAll(function(E){return E.get("type")!=="path"});(0,t.each)(p,function(E){E&&(f.offsetX&&E.attr("x",E.attr("x")+f.offsetX),f.offsetY&&E.attr("y",E.attr("y")+f.offsetY))})}}})},c}();return VM.default=A,VM}var Fle;function A1(){if(Fle)return KM;Fle=1,Object.defineProperty(KM,"__esModule",{value:!0});var e=Kt,t=Gt,r=Pa(),n=Ph(),a=fs(),i=(0,e.__importDefault)(ubt());function o(l){var A=0;return(0,t.each)(l,function(c){A+=c}),A/l.length}var s=function(){function l(A){this.geometry=A}return l.prototype.getLabelItems=function(A){var c=this,u=[],d=this.getLabelCfgs(A);return(0,t.each)(A,function(f,h){var g=d[h];if(!g||(0,t.isNil)(f.x)||(0,t.isNil)(f.y)){u.push(null);return}var p=(0,t.isArray)(g.content)?g.content:[g.content];g.content=p;var E=p.length;(0,t.each)(p,function(y,C){if((0,t.isNil)(y)||y===""){u.push(null);return}var w=(0,e.__assign)((0,e.__assign)({},g),c.getLabelPoint(g,f,C));w.textAlign||(w.textAlign=c.getLabelAlign(w,C,E)),w.offset<=0&&(w.labelLine=null),u.push(w)})}),u},l.prototype.render=function(A,c){c===void 0&&(c=!1);var u=this.getLabelItems(A),d=this.getLabelsRenderer(),f=this.getGeometryShapes();d.render(u,f,c)},l.prototype.clear=function(){var A=this.labelsRenderer;A&&A.clear()},l.prototype.destroy=function(){var A=this.labelsRenderer;A&&A.destroy(),this.labelsRenderer=null},l.prototype.getCoordinate=function(){return this.geometry.coordinate},l.prototype.getDefaultLabelCfg=function(A,c){var u=this.geometry,d=u.type,f=u.theme;return d==="polygon"||d==="interval"&&c==="middle"||A<0&&!["line","point","path"].includes(d)?(0,t.get)(f,"innerLabels",{}):(0,t.get)(f,"labels",{})},l.prototype.getThemedLabelCfg=function(A){var c=this.geometry,u=this.getDefaultLabelCfg(),d=c.type,f=c.theme,h;return d==="polygon"||A.offset<0&&!["line","point","path"].includes(d)?h=(0,t.deepMix)({},u,f.innerLabels,A):h=(0,t.deepMix)({},u,f.labels,A),h},l.prototype.setLabelPosition=function(A,c,u,d){},l.prototype.getLabelOffset=function(A){var c=this.getCoordinate(),u=this.getOffsetVector(A);return c.isTransposed?u[0]:u[1]},l.prototype.getLabelOffsetPoint=function(A,c,u){var d=A.offset,f=this.getCoordinate(),h=f.isTransposed,g=h?"x":"y",p=h?1:-1,E={x:0,y:0};return c>0||u===1?E[g]=d*p:E[g]=d*p*-1,E},l.prototype.getLabelPoint=function(A,c,u){var d=this.getCoordinate(),f=A.content.length;function h(S,R,b){b===void 0&&(b=!1);var Q=S;return(0,t.isArray)(Q)&&(A.content.length===1?b?Q=o(Q):Q.length<=2?Q=Q[S.length-1]:Q=o(Q):Q=Q[R]),Q}var g={content:A.content[u],x:0,y:0,start:{x:0,y:0},color:"#fff"},p=(0,t.isArray)(c.shape)?c.shape[0]:c.shape,E=p==="funnel"||p==="pyramid";if(this.geometry.type==="polygon"){var y=(0,a.getPolygonCentroid)(c.x,c.y);g.x=y[0],g.y=y[1]}else this.geometry.type==="interval"&&!E?(g.x=h(c.x,u,!0),g.y=h(c.y,u)):(g.x=h(c.x,u),g.y=h(c.y,u));if(E){var C=(0,t.get)(c,"nextPoints"),w=(0,t.get)(c,"points");if(C){var B=d.convert(w[1]),M=d.convert(C[1]);g.x=(B.x+M.x)/2,g.y=(B.y+M.y)/2}else if(p==="pyramid"){var B=d.convert(w[1]),M=d.convert(w[2]);g.x=(B.x+M.x)/2,g.y=(B.y+M.y)/2}}A.position&&this.setLabelPosition(g,c,u,A.position);var I=this.getLabelOffsetPoint(A,u,f);return g.start={x:g.x,y:g.y},g.x+=I.x,g.y+=I.y,g.color=c.color,g},l.prototype.getLabelAlign=function(A,c,u){var d="center",f=this.getCoordinate();if(f.isTransposed){var h=A.offset;h<0?d="right":h===0?d="center":d="left",u>1&&c===0&&(d==="right"?d="left":d==="left"&&(d="right"))}return d},l.prototype.getLabelId=function(A){var c=this.geometry,u=c.type,d=c.getXScale(),f=c.getYScale(),h=A[r.FIELD_ORIGIN],g=c.getElementId(A);return u==="line"||u==="area"?g+=" "+h[d.field]:u==="path"&&(g+=" "+h[d.field]+"-"+h[f.field]),g},l.prototype.getLabelsRenderer=function(){var A=this.geometry,c=A.labelsContainer,u=A.labelOption,d=A.canvasRegion,f=A.animateOption,h=this.geometry.coordinate,g=this.labelsRenderer;return g||(g=new i.default({container:c,layout:(0,t.get)(u,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=g),g.region=d,g.animate=f?(0,n.getDefaultAnimateCfg)("label",h):!1,g},l.prototype.getLabelCfgs=function(A){var c=this,u=this.geometry,d=u.labelOption,f=u.scales,h=u.coordinate,g=d,p=g.fields,E=g.callback,y=g.cfg,C=p.map(function(B){return f[B]}),w=[];return(0,t.each)(A,function(B,M){var I=B[r.FIELD_ORIGIN],S=c.getLabelText(I,C),R;if(E){var b=p.map(function(k){return I[k]});if(R=E.apply(void 0,b),(0,t.isNil)(R)){w.push(null);return}}var Q=(0,e.__assign)((0,e.__assign)({id:c.getLabelId(B),elementId:c.geometry.getElementId(B),data:I,mappingData:B,coordinate:h},y),R);(0,t.isFunction)(Q.position)&&(Q.position=Q.position(I,B,M));var D=c.getLabelOffset(Q.offset||0),F=c.getDefaultLabelCfg(D,Q.position);Q=(0,t.deepMix)({},F,Q),Q.offset=c.getLabelOffset(Q.offset||0);var N=Q.content;(0,t.isFunction)(N)?Q.content=N(I,B,M):(0,t.isUndefined)(N)&&(Q.content=S[0]),w.push(Q)}),w},l.prototype.getLabelText=function(A,c){var u=[];return(0,t.each)(c,function(d){var f=A[d.field];(0,t.isArray)(f)?f=f.map(function(h){return d.getText(h)}):f=d.getText(f),(0,t.isNil)(f)||f===""?u.push(null):u.push(f)}),u},l.prototype.getOffsetVector=function(A){A===void 0&&(A=0);var c=this.getCoordinate(),u=0;return(0,t.isNumber)(A)&&(u=A),c.isTransposed?c.applyMatrix(u,0):c.applyMatrix(0,u)},l.prototype.getGeometryShapes=function(){var A=this.geometry,c={};return(0,t.each)(A.elementsMap,function(u,d){c[d]=u.shape}),(0,t.each)(A.getOffscreenGroup().getChildren(),function(u){var d=A.getElementId(u.get("origin").mappingData);c[d]=u}),c},l}();return KM.default=s,KM}var G8={},_le;function dbt(){return _le||(_le=1,Object.defineProperty(G8,"__esModule",{value:!0})),G8}var XE={},Nle;function lSe(){if(Nle)return XE;Nle=1,Object.defineProperty(XE,"__esModule",{value:!0}),XE.getMappingValue=void 0;var e=Kt;function t(r,n,a){if(!r)return a;var i;if(r.callback&&r.callback.length>1){var o=Array(r.callback.length-1).fill("");i=r.mapping.apply(r,(0,e.__spreadArray)([n],o,!1)).join("")}else i=r.mapping(n).join("");return i||a}return XE.getMappingValue=t,XE}var cl={},qE={},kle;function c1(){return kle||(kle=1,Object.defineProperty(qE,"__esModule",{value:!0}),qE.MarkerSymbols=void 0,qE.MarkerSymbols={hexagon:function(e,t,r){var n=r/2*Math.sqrt(3);return[["M",e,t-r],["L",e+n,t-r/2],["L",e+n,t+r/2],["L",e,t+r],["L",e-n,t+r/2],["L",e-n,t-r/2],["Z"]]},bowtie:function(e,t,r){var n=r-1.5;return[["M",e-r,t-n],["L",e+r,t+n],["L",e+r,t-n],["L",e-r,t+n],["Z"]]},cross:function(e,t,r){return[["M",e-r,t-r],["L",e+r,t+r],["M",e+r,t-r],["L",e-r,t+r]]},tick:function(e,t,r){return[["M",e-r/2,t-r],["L",e+r/2,t-r],["M",e,t-r],["L",e,t+r],["M",e-r/2,t+r],["L",e+r/2,t+r]]},plus:function(e,t,r){return[["M",e-r,t],["L",e+r,t],["M",e,t-r],["L",e,t+r]]},hyphen:function(e,t,r){return[["M",e-r,t],["L",e+r,t]]},line:function(e,t,r){return[["M",e,t-r],["L",e,t+r]]}}),qE}var Ple;function ASe(){if(Ple)return cl;Ple=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.getLegendThemeCfg=cl.getCustomLegendItems=cl.getLegendItems=cl.getLegendLayout=void 0;var e=Kt,t=Gt,r=Pa(),n=lSe(),a=Oh(),i=c1(),o=["line","cross","tick","plus","hyphen"];function s(h,g){return(0,t.isFunction)(g)?g(h):(0,t.deepMix)({},h,g)}function l(h,g){var p=h.symbol;if((0,t.isString)(p)&&o.indexOf(p)!==-1){var E=(0,t.get)(h,"style",{}),y=(0,t.get)(E,"lineWidth",1),C=E.stroke||E.fill||g;h.style=(0,t.deepMix)({},h.style,{lineWidth:y,stroke:C,fill:null})}}function A(h){var g=h.symbol;(0,t.isString)(g)&&i.MarkerSymbols[g]&&(h.symbol=i.MarkerSymbols[g])}function c(h){return h.startsWith(r.DIRECTION.LEFT)||h.startsWith(r.DIRECTION.RIGHT)?"vertical":"horizontal"}cl.getLegendLayout=c;function u(h,g,p,E,y){var C=p.getScale(p.type);if(C.isCategory){var w=C.field,B=g.getAttribute("color"),M=g.getAttribute("shape"),I=h.getTheme().defaultColor,S=g.coordinate.isPolar;return C.getTicks().map(function(R,b){var Q,D=R.text,F=R.value,N=D,k=C.invert(F),O=h.filterFieldData(w,[(Q={},Q[w]=k,Q)]).length===0;(0,t.each)(h.views,function(L){var K;L.filterFieldData(w,[(K={},K[w]=k,K)]).length||(O=!0)});var P=(0,n.getMappingValue)(B,k,I),z=(0,n.getMappingValue)(M,k,"point"),j=g.getShapeMarker(z,{color:P,isInPolar:S}),V=y;return(0,t.isFunction)(V)&&(V=V(N,b,(0,e.__assign)({name:N,value:k},(0,t.deepMix)({},E,j)))),j=(0,t.deepMix)({},E,j,(0,a.omit)((0,e.__assign)({},V),["style"])),l(j,P),V&&V.style&&(j.style=s(j.style,V.style)),A(j),{id:k,name:N,value:k,marker:j,unchecked:O}})}return[]}cl.getLegendItems=u;function d(h,g,p){return p.map(function(E,y){var C=g;(0,t.isFunction)(C)&&(C=C(E.name,y,(0,t.deepMix)({},h,E)));var w=(0,t.isFunction)(E.marker)?E.marker(E.name,y,(0,t.deepMix)({},h,E)):E.marker,B=(0,t.deepMix)({},h,C,w);return A(B),E.marker=B,E})}cl.getCustomLegendItems=d;function f(h,g){var p=(0,t.get)(h,["components","legend"],{});return(0,t.deepMix)({},(0,t.get)(p,["common"],{}),(0,t.deepMix)({},(0,t.get)(p,[g],{})))}return cl.getLegendThemeCfg=f,cl}var Ole;function _3(){return Ole||(Ole=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Scale=e.Coordinate=e.DIRECTION=e.LAYER=e.getAnimation=e.registerAnimation=e.getEngine=e.registerEngine=e.registerTheme=e.getTheme=e.registerFacet=e.getFacet=e.getActionClass=e.registerAction=e.registerInteraction=e.getInteraction=e.getGeometryLabelLayout=e.getGeometryLabel=e.registerGeometryLabelLayout=e.registerGeometryLabel=e.getShapeFactory=e.registerShapeFactory=e.registerShape=e.registerGeometry=e.registerComponentController=e.InteractionAction=e.Facet=e.Action=e.Interaction=e.GeometryLabel=e.Element=e.Geometry=e.TooltipController=e.ComponentController=e.Event=e.View=e.Chart=e.VERSION=void 0;var t=Kt;e.VERSION="4.1.32";var r=PI();Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return r.Chart}}),Object.defineProperty(e,"View",{enumerable:!0,get:function(){return r.View}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.Event}});var n=R2();Object.defineProperty(e,"ComponentController",{enumerable:!0,get:function(){return n.Controller}});var a=iSe();Object.defineProperty(e,"TooltipController",{enumerable:!0,get:function(){return(0,t.__importDefault)(a).default}});var i=O2();Object.defineProperty(e,"Geometry",{enumerable:!0,get:function(){return(0,t.__importDefault)(i).default}});var o=B6();Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return(0,t.__importDefault)(o).default}});var s=A1();Object.defineProperty(e,"GeometryLabel",{enumerable:!0,get:function(){return(0,t.__importDefault)(s).default}});var l=F3();Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return l.Interaction}}),Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return l.Action}});var A=D3();Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return A.Facet}});var c=Vl();Object.defineProperty(e,"InteractionAction",{enumerable:!0,get:function(){return(0,t.__importDefault)(c).default}});var u=PI();Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return u.registerComponentController}});var d=PI();Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return d.registerGeometry}});var f=zo();Object.defineProperty(e,"registerShape",{enumerable:!0,get:function(){return f.registerShape}}),Object.defineProperty(e,"registerShapeFactory",{enumerable:!0,get:function(){return f.registerShapeFactory}}),Object.defineProperty(e,"getShapeFactory",{enumerable:!0,get:function(){return f.getShapeFactory}});var h=M6();Object.defineProperty(e,"registerGeometryLabel",{enumerable:!0,get:function(){return h.registerGeometryLabel}}),Object.defineProperty(e,"registerGeometryLabelLayout",{enumerable:!0,get:function(){return h.registerGeometryLabelLayout}}),Object.defineProperty(e,"getGeometryLabel",{enumerable:!0,get:function(){return h.getGeometryLabel}}),Object.defineProperty(e,"getGeometryLabelLayout",{enumerable:!0,get:function(){return h.getGeometryLabelLayout}});var g=F3();Object.defineProperty(e,"getInteraction",{enumerable:!0,get:function(){return g.getInteraction}}),Object.defineProperty(e,"registerInteraction",{enumerable:!0,get:function(){return g.registerInteraction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return g.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return g.getActionClass}});var p=D3();Object.defineProperty(e,"getFacet",{enumerable:!0,get:function(){return p.getFacet}}),Object.defineProperty(e,"registerFacet",{enumerable:!0,get:function(){return p.registerFacet}});var E=y6();Object.defineProperty(e,"getTheme",{enumerable:!0,get:function(){return E.getTheme}}),Object.defineProperty(e,"registerTheme",{enumerable:!0,get:function(){return E.registerTheme}});var y=Jbe();Object.defineProperty(e,"registerEngine",{enumerable:!0,get:function(){return y.registerEngine}}),Object.defineProperty(e,"getEngine",{enumerable:!0,get:function(){return y.getEngine}});var C=Ybe();Object.defineProperty(e,"registerAnimation",{enumerable:!0,get:function(){return C.registerAnimation}}),Object.defineProperty(e,"getAnimation",{enumerable:!0,get:function(){return C.getAnimation}});var w=Pa();Object.defineProperty(e,"LAYER",{enumerable:!0,get:function(){return w.LAYER}}),Object.defineProperty(e,"DIRECTION",{enumerable:!0,get:function(){return w.DIRECTION}}),(0,t.__importStar)(dbt());var B=wd();Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return B.Coordinate}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return B.Scale}});var M=lSe(),I=ASe(),S=fs(),R=z2(),b=P2(),Q=Ki();e.Util={getLegendItems:I.getLegendItems,translate:R.translate,rotate:R.rotate,zoom:R.zoom,transform:R.transform,getAngle:S.getAngle,getSectorPath:S.getSectorPath,polarToCartesian:S.polarToCartesian,getDelegationObject:Q.getDelegationObject,getTooltipItems:b.getTooltipItems,getMappingValue:M.getMappingValue}}(O8)),O8}var K8={},zle;function fbt(){return zle||(zle=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.setGlobal=e.GLOBAL=void 0;var t=Gt;e.GLOBAL={locale:"en-US"};function r(n){t.each(n,function(a,i){return e.GLOBAL[i]=a})}e.setGlobal=r}(K8)),K8}var pu={},JM={},jle;function hbt(){if(jle)return JM;jle=1,Object.defineProperty(JM,"__esModule",{value:!0});var e=[1,1.2,1.5,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],t=5;JM.default=function(A){var c=A||{},u=c.tickCount,d=c.tickInterval,f=A||{},h=f.min,g=f.max;h=isNaN(h)?0:h,g=isNaN(g)?0:g;var p=u&&u>=2?u:t,E=d||a({tickCount:p,max:g,min:h}),y=Math.floor(h/E)*E;if(d){var C=Math.abs(Math.ceil((g-y)/d))+1;p=Math.max(p,C)}for(var w=[],B=0,M=s(E);B<p;)w.push(l(y+B*E,M)),B++;return w};var r=12;function n(A){A=Math.abs(A);var c=1;if(A===0)return c;if(A<1){for(var u=0;A<1;)c=c/10,A=A*10,u++;return c.toString().length>r&&(c=parseFloat(c.toFixed(u))),c}for(;A>10;)c=c*10,A=A/10;return c}function a(A){var c=A.tickCount,u=A.min,d=A.max;if(u===d)return 1*n(d);for(var f=(d-u)/(c-1),h=n(f),g=f/h,p=d/h,E=u/h,y=0,C=0;C<e.length;C++){var w=e[C];if(g<=w){y=C;break}}var B=i(y,c,E,p),M=s(B)+s(h);return l(B*h,M)}function i(A,c,u,d){for(var f=!1,h=e[A],g=A;g<e.length;g++)if(o({interval:e[g],tickCount:c,max:d,min:u})){h=e[g],f=!0;break}return f?h:10*i(0,c,u/10,d/10)}function o(A){var c=A.interval,u=A.tickCount,d=A.max,f=A.min,h=Math.floor(f/c)*c;return h+(u-1)*c>=d}function s(A){var c=A.toString(),u=c.indexOf("."),d=c.indexOf("e-"),f=d>=0?parseInt(c.substr(d+2),10):c.substr(u+1).length;return f>20&&(f=20),f}function l(A,c){return parseFloat(A.toFixed(c))}return JM}var Yle;function gbt(){if(Yle)return pu;Yle=1;var e=pu&&pu.__extends||function(){var i=function(o,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,A){l.__proto__=A}||function(l,A){for(var c in A)Object.prototype.hasOwnProperty.call(A,c)&&(l[c]=A[c])},i(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(o,s);function l(){this.constructor=o}o.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),t=pu&&pu.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(pu,"__esModule",{value:!0});var r=e6,n=t(hbt());(0,r.registerTickMethod)("linear-strict-tick-method",n.default);var a=function(i){e(o,i);function o(s){var l=i.call(this,s)||this;return l.type="linear-strict",l}return o.prototype.initCfg=function(){i.prototype.initCfg.call(this),this.tickMethod="linear-strict-tick-method"},o.prototype.calculateTicks=function(){var s=this.nice;this.nice=!0;var l=i.prototype.calculateTicks.call(this);return this.nice=s,l.length&&(this.min=l[0],this.max=l[l.length-1]),l},o}(r.Linear);return pu.default=a,(0,r.getScale)("linear-strict")||(0,r.registerScale)("linear-strict",a),pu}var V8={},tf={},Lle;function pbt(){if(Lle)return tf;Lle=1,Object.defineProperty(tf,"__esModule",{value:!0}),tf.fadeOut=tf.fadeIn=void 0;var e=Gt;function t(n,a,i){var o={fillOpacity:(0,e.isNil)(n.attr("fillOpacity"))?1:n.attr("fillOpacity"),strokeOpacity:(0,e.isNil)(n.attr("strokeOpacity"))?1:n.attr("strokeOpacity"),opacity:(0,e.isNil)(n.attr("opacity"))?1:n.attr("opacity")};n.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),n.animate(o,a)}tf.fadeIn=t;function r(n,a,i){var o={fillOpacity:0,strokeOpacity:0,opacity:0},s=a.easing,l=a.duration,A=a.delay;n.animate(o,l,s,function(){n.remove(!0)},A)}return tf.fadeOut=r,tf}var Ac={},rf={},Ule;function vbt(){if(Ule)return rf;Ule=1,Object.defineProperty(rf,"__esModule",{value:!0}),rf.doScaleAnimate=rf.transformShape=void 0;var e=Bd;function t(n,a,i){var o,s=a[0],l=a[1];return n.applyToMatrix([s,l,1]),i==="x"?(n.setMatrix(e.ext.transform(n.getMatrix(),[["t",-s,-l],["s",.01,1],["t",s,l]])),o=e.ext.transform(n.getMatrix(),[["t",-s,-l],["s",100,1],["t",s,l]])):i==="y"?(n.setMatrix(e.ext.transform(n.getMatrix(),[["t",-s,-l],["s",1,.01],["t",s,l]])),o=e.ext.transform(n.getMatrix(),[["t",-s,-l],["s",1,100],["t",s,l]])):i==="xy"&&(n.setMatrix(e.ext.transform(n.getMatrix(),[["t",-s,-l],["s",.01,.01],["t",s,l]])),o=e.ext.transform(n.getMatrix(),[["t",-s,-l],["s",100,100],["t",s,l]])),o}rf.transformShape=t;function r(n,a,i,o,s){var l=i.start,A=i.end,c=i.getWidth(),u=i.getHeight(),d,f;s==="y"?(d=l.x+c/2,f=o.y<l.y?o.y:l.y):s==="x"?(d=o.x>l.x?o.x:l.x,f=l.y+u/2):s==="xy"&&(i.isPolar?(d=i.getCenter().x,f=i.getCenter().y):(d=(l.x+A.x)/2,f=(l.y+A.y)/2));var h=t(n,[d,f],s);n.animate({matrix:h},a)}return rf.doScaleAnimate=r,rf}var Hle;function mbt(){if(Hle)return Ac;Hle=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.growInXY=Ac.growInY=Ac.growInX=void 0;var e=vbt();function t(a,i,o){var s=o.coordinate,l=o.minYPoint;(0,e.doScaleAnimate)(a,i,s,l,"x")}Ac.growInX=t;function r(a,i,o){var s=o.coordinate,l=o.minYPoint;(0,e.doScaleAnimate)(a,i,s,l,"y")}Ac.growInY=r;function n(a,i,o){var s=o.coordinate,l=o.minYPoint;(0,e.doScaleAnimate)(a,i,s,l,"xy")}return Ac.growInXY=n,Ac}var ZE={},Gle;function Ebt(){if(Gle)return ZE;Gle=1,Object.defineProperty(ZE,"__esModule",{value:!0}),ZE.pathIn=void 0;function e(t,r,n){var a=t.getTotalLength();t.attr("lineDash",[a]),t.animate(function(i){return{lineDashOffset:(1-i)*a}},r)}return ZE.pathIn=e,ZE}var $E={},Kle;function ybt(){if(Kle)return $E;Kle=1,Object.defineProperty($E,"__esModule",{value:!0}),$E.positionUpdate=void 0;function e(t,r,n){var a=n.toAttrs,i=a.x,o=a.y;delete a.x,delete a.y,t.attr(a),t.animate({x:i,y:o},r)}return $E.positionUpdate=e,$E}var nf={},Vle;function Cbt(){if(Vle)return nf;Vle=1,Object.defineProperty(nf,"__esModule",{value:!0}),nf.scaleInY=nf.scaleInX=void 0;var e=Bd;function t(n,a,i){var o=n.getBBox(),s=n.get("origin").mappingData,l=s.points,A=l[0].y-l[1].y>0?o.maxX:o.minX,c=(o.minY+o.maxY)/2;n.applyToMatrix([A,c,1]);var u=e.ext.transform(n.getMatrix(),[["t",-A,-c],["s",.01,1],["t",A,c]]);n.setMatrix(u),n.animate({matrix:e.ext.transform(n.getMatrix(),[["t",-A,-c],["s",100,1],["t",A,c]])},a)}nf.scaleInX=t;function r(n,a,i){var o=n.getBBox(),s=n.get("origin").mappingData,l=(o.minX+o.maxX)/2,A=s.points,c=A[0].y-A[1].y<=0?o.maxY:o.minY;n.applyToMatrix([l,c,1]);var u=e.ext.transform(n.getMatrix(),[["t",-l,-c],["s",1,.01],["t",l,c]]);n.setMatrix(u),n.animate({matrix:e.ext.transform(n.getMatrix(),[["t",-l,-c],["s",1,100],["t",l,c]])},a)}return nf.scaleInY=r,nf}var e0={};function wbt(){return window?window.devicePixelRatio:1}function cSe(e,t,r,n){var a=e-r,i=t-n;return Math.sqrt(a*a+i*i)}function Ff(e,t,r,n,a,i){return a>=e&&a<=e+r&&i>=t&&i<=t+n}function Jy(e,t){return!(t.minX>e.maxX||t.maxX<e.minX||t.minY>e.maxY||t.maxY<e.minY)}function Bbt(e,t){return!e||!t?e||t:{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}}function Jle(e,t){return e[0]===t[0]&&e[1]===t[1]}var Mbt=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,xbt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Ibt=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,uSe=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function dSe(e,t){var r=e.match(uSe);Ht(r,function(n){var a=n.split(":");t.addColorStop(a[0],a[1])})}function bbt(e,t,r){var n=Mbt.exec(r),a=parseFloat(n[1])%360*(Math.PI/180),i=n[2],o=t.getBBox(),s,l;a>=0&&a<1/2*Math.PI?(s={x:o.minX,y:o.minY},l={x:o.maxX,y:o.maxY}):1/2*Math.PI<=a&&a<Math.PI?(s={x:o.maxX,y:o.minY},l={x:o.minX,y:o.maxY}):Math.PI<=a&&a<3/2*Math.PI?(s={x:o.maxX,y:o.maxY},l={x:o.minX,y:o.minY}):(s={x:o.minX,y:o.maxY},l={x:o.maxX,y:o.minY});var A=Math.tan(a),c=A*A,u=(l.x-s.x+A*(l.y-s.y))/(c+1)+s.x,d=A*(l.x-s.x+A*(l.y-s.y))/(c+1)+s.y,f=e.createLinearGradient(s.x,s.y,u,d);return dSe(i,f),f}function Sbt(e,t,r){var n=xbt.exec(r),a=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),s=n[4];if(o===0){var l=s.match(uSe);return l[l.length-1].split(":")[1]}var A=t.getBBox(),c=A.maxX-A.minX,u=A.maxY-A.minY,d=Math.sqrt(c*c+u*u)/2,f=e.createRadialGradient(A.minX+c*a,A.minY+u*i,0,A.minX+c/2,A.minY+u/2,o*d);return dSe(s,f),f}function Rbt(e,t,r){if(t.get("patternSource")&&t.get("patternSource")===r)return t.get("pattern");var n,a,i=Ibt.exec(r),o=i[1],s=i[2];function l(){n=e.createPattern(a,o),t.set("pattern",n),t.set("patternSource",r)}switch(o){case"a":o="repeat";break;case"x":o="repeat-x";break;case"y":o="repeat-y";break;case"n":o="no-repeat";break;default:o="no-repeat"}return a=new Image,s.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=s,a.complete?l():(a.onload=l,a.src=a.src),n}function Tbt(e,t,r){var n=t.getBBox();if(isNaN(n.x)||isNaN(n.y)||isNaN(n.width)||isNaN(n.height))return r;if(jn(r)){if(r[1]==="("||r[2]==="("){if(r[0]==="l")return bbt(e,t,r);if(r[0]==="r")return Sbt(e,t,r);if(r[0]==="p")return Rbt(e,t,r)}return r}if(r instanceof CanvasPattern)return r}function Qbt(e){var t=0,r=0,n=0,a=0;return En(e)?e.length===1?t=r=n=a=e[0]:e.length===2?(t=n=e[0],r=a=e[1]):e.length===3?(t=e[0],r=a=e[1],n=e[2]):(t=e[0],r=e[1],n=e[2],a=e[3]):t=r=n=a=e,[t,r,n,a]}function WM(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function N3(e,t){return WM(e)*WM(t)?(e[0]*t[0]+e[1]*t[1])/(WM(e)*WM(t)):1}function Wle(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(N3(e,t))}function k3(e,t){var r=t[1],n=t[2],a=BU(MU(t[3]),Math.PI*2),i=t[4],o=t[5],s=e[0],l=e[1],A=t[6],c=t[7],u=Math.cos(a)*(s-A)/2+Math.sin(a)*(l-c)/2,d=-1*Math.sin(a)*(s-A)/2+Math.cos(a)*(l-c)/2,f=u*u/(r*r)+d*d/(n*n);f>1&&(r*=Math.sqrt(f),n*=Math.sqrt(f));var h=r*r*(d*d)+n*n*(u*u),g=h?Math.sqrt((r*r*(n*n)-h)/h):1;i===o&&(g*=-1),isNaN(g)&&(g=0);var p=n?g*r*d/n:0,E=r?g*-n*u/r:0,y=(s+A)/2+Math.cos(a)*p-Math.sin(a)*E,C=(l+c)/2+Math.sin(a)*p+Math.cos(a)*E,w=[(u-p)/r,(d-E)/n],B=[(-1*u-p)/r,(-1*d-E)/n],M=Wle([1,0],w),I=Wle(w,B);return N3(w,B)<=-1&&(I=Math.PI),N3(w,B)>=1&&(I=0),o===0&&I>0&&(I=I-2*Math.PI),o===1&&I<0&&(I=I+2*Math.PI),{cx:y,cy:C,rx:Jle(e,[A,c])?0:r,ry:Jle(e,[A,c])?0:n,startAngle:M,endAngle:M+I,xRotation:a,arcFlag:i,sweepFlag:o}}var BS=Math.sin,MS=Math.cos,x6=Math.atan2,XM=Math.PI;function fSe(e,t,r,n,a,i,o){var s=t.stroke,l=t.lineWidth,A=r-a,c=n-i,u=x6(c,A),d=new T6({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*MS(XM/6)+","+10*BS(XM/6)+" L0,0 L"+10*MS(XM/6)+",-"+10*BS(XM/6),stroke:s,lineWidth:l}});d.translate(a,i),d.rotateAtPoint(a,i,u),e.set(o?"startArrowShape":"endArrowShape",d)}function hSe(e,t,r,n,a,i,o){var s=t.startArrow,l=t.endArrow,A=t.stroke,c=t.lineWidth,u=o?s:l,d=u.d,f=u.fill,h=u.stroke,g=u.lineWidth,p=Zv(u,["d","fill","stroke","lineWidth"]),E=r-a,y=n-i,C=x6(y,E);d&&(a=a-MS(C)*d,i=i-BS(C)*d);var w=new T6({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:Tt(Tt({},p),{stroke:h||A,lineWidth:g||c,fill:f})});w.translate(a,i),w.rotateAtPoint(a,i,C),e.set(o?"startArrowShape":"endArrowShape",w)}function Kf(e,t,r,n,a){var i=x6(n-t,r-e);return{dx:MS(i)*a,dy:BS(i)*a}}function I6(e,t,r,n,a,i){typeof t.startArrow=="object"?hSe(e,t,r,n,a,i,!0):t.startArrow?fSe(e,t,r,n,a,i,!0):e.set("startArrowShape",null)}function b6(e,t,r,n,a,i){typeof t.endArrow=="object"?hSe(e,t,r,n,a,i,!1):t.endArrow?fSe(e,t,r,n,a,i,!1):e.set("startArrowShape",null)}var Xle={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function Mv(e,t){var r=t.attr();for(var n in r){var a=r[n],i=Xle[n]?Xle[n]:n;i==="matrix"&&a?e.transform(a[0],a[1],a[3],a[4],a[6],a[7]):i==="lineDash"&&e.setLineDash?En(a)&&e.setLineDash(a):(i==="strokeStyle"||i==="fillStyle"?a=Tbt(e,t,a):i==="globalAlpha"&&(a=a*e.globalAlpha),e[i]=a)}}function P3(e,t,r){for(var n=0;n<t.length;n++){var a=t[n];a.cfg.visible?a.draw(e,r):a.skipDraw()}}function Dbt(e,t,r){var n=e.get("refreshElements");Ht(n,function(a){if(a!==e)for(var i=a.cfg.parent;i&&i!==e&&!i.cfg.refresh;)i.cfg.refresh=!0,i=i.cfg.parent}),n[0]===e?S6(t):O3(t,r)}function O3(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.cfg.visible)if(n.cfg.hasChanged)n.cfg.refresh=!0,n.isGroup()&&S6(n.cfg.children);else if(n.cfg.refresh)n.isGroup()&&O3(n.cfg.children,t);else{var a=Fbt(n,t);n.cfg.refresh=a,a&&n.isGroup()&&O3(n.cfg.children,t)}}}function gSe(e){for(var t=0;t<e.length;t++){var r=e[t];r.cfg.hasChanged=!1,r.isGroup()&&!r.destroyed&&gSe(r.cfg.children)}}function S6(e,t){for(var r=0;r<e.length;r++){var n=e[r];n.cfg.visible&&(n.cfg.refresh=!0,n.isGroup()&&S6(n.get("children")))}}function Fbt(e,t){var r=e.cfg.cacheCanvasBBox,n=e.cfg.isInView&&r&&Jy(r,t);return n}function pSe(e,t,r,n){var a=r.path,i=r.startArrow,o=r.endArrow;if(a){var s=[0,0],l=[0,0],A={dx:0,dy:0};t.beginPath();for(var c=0;c<a.length;c++){var u=a[c],d=u[0];if(c===0&&i&&i.d){var f=e.getStartTangent();A=Kf(f[0][0],f[0][1],f[1][0],f[1][1],i.d)}else if(c===a.length-2&&a[c+1][0]==="Z"&&o&&o.d){var h=a[c+1];if(h[0]==="Z"){var f=e.getEndTangent();A=Kf(f[0][0],f[0][1],f[1][0],f[1][1],o.d)}}else if(c===a.length-1&&o&&o.d&&a[0]!=="Z"){var f=e.getEndTangent();A=Kf(f[0][0],f[0][1],f[1][0],f[1][1],o.d)}var g=A.dx,p=A.dy;switch(d){case"M":t.moveTo(u[1]-g,u[2]-p),l=[u[1],u[2]];break;case"L":t.lineTo(u[1]-g,u[2]-p);break;case"Q":t.quadraticCurveTo(u[1],u[2],u[3]-g,u[4]-p);break;case"C":t.bezierCurveTo(u[1],u[2],u[3],u[4],u[5]-g,u[6]-p);break;case"A":{var E=void 0;n?(E=n[c],E||(E=k3(s,u),n[c]=E)):E=k3(s,u);var y=E.cx,C=E.cy,w=E.rx,B=E.ry,M=E.startAngle,I=E.endAngle,S=E.xRotation,R=E.sweepFlag;if(t.ellipse)t.ellipse(y,C,w,B,S,M,I,1-R);else{var b=w>B?w:B,Q=w>B?1:w/B,D=w>B?B/w:1;t.translate(y,C),t.rotate(S),t.scale(Q,D),t.arc(0,0,b,M,I,1-R),t.scale(1/Q,1/D),t.rotate(-S),t.translate(-y,-C)}break}case"Z":t.closePath();break}if(d==="Z")s=l;else{var F=u.length;s=[u[F-2],u[F-1]]}}}}function vSe(e,t){var r=e.get("canvas");r&&(t==="remove"&&(e._cacheCanvasBBox=e.get("cacheCanvasBBox")),e.get("hasChanged")||(e.set("hasChanged",!0),e.cfg.parent&&e.cfg.parent.get("hasChanged")||(r.refreshElement(e,t,r),r.get("autoDraw")&&r.draw())))}function _bt(e){var t;if(e.destroyed)t=e._cacheCanvasBBox;else{var r=e.get("cacheCanvasBBox"),n=r&&!!(r.width&&r.height),a=e.getCanvasBBox(),i=a&&!!(a.width&&a.height);n&&i?t=Bbt(r,a):n?t=r:i&&(t=a)}return t}function Nbt(e){if(!e.length)return null;var t=[],r=[],n=[],a=[];return Ht(e,function(i){var o=_bt(i);o&&(t.push(o.minX),r.push(o.minY),n.push(o.maxX),a.push(o.maxY))}),{minX:Ls(t),minY:Ls(r),maxX:Ys(n),maxY:Ys(a)}}function kbt(e,t){return!e||!t||!Jy(e,t)?null:{minX:Math.max(e.minX,t.minX),minY:Math.max(e.minY,t.minY),maxX:Math.min(e.maxX,t.maxX),maxY:Math.min(e.maxY,t.maxY)}}var R6=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onCanvasChange=function(r){vSe(this,r)},t.prototype.getShapeBase=function(){return xS},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(r,n){n&&(r.save(),Mv(r,n),n.createPath(r),r.restore(),r.clip(),n._afterDraw())},t.prototype.cacheCanvasBBox=function(){var r=this.cfg.children,n=[],a=[];Ht(r,function(d){var f=d.cfg.cacheCanvasBBox;f&&d.cfg.isInView&&(n.push(f.minX,f.maxX),a.push(f.minY,f.maxY))});var i=null;if(n.length){var o=Ls(n),s=Ys(n),l=Ls(a),A=Ys(a);i={minX:o,minY:l,x:o,y:l,maxX:s,maxY:A,width:s-o,height:A-l};var c=this.cfg.canvas;if(c){var u=c.getViewRange();this.set("isInView",Jy(i,u))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},t.prototype.draw=function(r,n){var a=this.cfg.children,i=n?this.cfg.refresh:!0;a.length&&i&&(r.save(),Mv(r,this),this._applyClip(r,this.getClip()),P3(r,a,n),r.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},t}(UU),Jl=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return Tt(Tt({},r),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return xS},t.prototype.getGroupBase=function(){return R6},t.prototype.onCanvasChange=function(r){vSe(this,r)},t.prototype.calculateBBox=function(){var r=this.get("type"),n=this.getHitLineWidth(),a=GU(r),i=a(this),o=n/2,s=i.x-o,l=i.y-o,A=i.x+i.width+o,c=i.y+i.height+o;return{x:s,minX:s,y:l,minY:l,width:i.width+n,height:i.height+n,maxX:A,maxY:c}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(r,n){n&&(r.save(),Mv(r,n),n.createPath(r),r.restore(),r.clip(),n._afterDraw())},t.prototype.draw=function(r,n){var a=this.cfg.clipShape;if(n){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var i=this.getCanvasBBox();if(!Jy(n,i)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}r.save(),Mv(r,this),this._applyClip(r,a),this.drawPath(r),r.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var r=this.cfg.canvas;return r?r.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var r=this.getCanvasViewBox();if(r){var n=this.getCanvasBBox(),a=Jy(n,r);this.set("isInView",a),a?this.set("cacheCanvasBBox",n):this.set("cacheCanvasBBox",null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},t.prototype.drawPath=function(r){this.createPath(r),this.strokeAndFill(r),this.afterDrawPath(r)},t.prototype.fill=function(r){r.fill()},t.prototype.stroke=function(r){r.stroke()},t.prototype.strokeAndFill=function(r){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isFill()&&(!sr(s)&&s!==1?(r.globalAlpha=s,this.fill(r),r.globalAlpha=i):this.fill(r)),this.isStroke()&&a>0&&(!sr(o)&&o!==1&&(r.globalAlpha=o),this.stroke(r)),this.afterDrawPath(r)},t.prototype.createPath=function(r){},t.prototype.afterDrawPath=function(r){},t.prototype.isInShape=function(r,n){var a=this.isStroke(),i=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(r,n,a,i,o)},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var r=this.attrs;return r.lineWidth+r.lineAppendWidth},t}(HU),Pbt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return Tt(Tt({},r),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),l=s.x,A=s.y,c=s.r,u=o/2,d=cSe(l,A,r,n);return i&&a?d<=c+u:i?d<=c:a?d>=c-u&&d<=c+u:!1},t.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.r;r.beginPath(),r.arc(a,i,o,0,Math.PI*2,!1),r.closePath()},t}(Jl);function qM(e,t,r,n){return e/(r*r)+t/(n*n)}var Obt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return Tt(Tt({},r),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),l=o/2,A=s.x,c=s.y,u=s.rx,d=s.ry,f=(r-A)*(r-A),h=(n-c)*(n-c);return i&&a?qM(f,h,u+l,d+l)<=1:i?qM(f,h,u,d)<=1:a?qM(f,h,u-l,d-l)>=1&&qM(f,h,u+l,d+l)<=1:!1},t.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.rx,s=n.ry;if(r.beginPath(),r.ellipse)r.ellipse(a,i,o,s,0,0,Math.PI*2,!1);else{var l=o>s?o:s,A=o>s?1:o/s,c=o>s?s/o:1;r.save(),r.translate(a,i),r.scale(A,c),r.arc(0,0,l,0,Math.PI*2),r.restore(),r.closePath()}},t}(Jl);function qle(e){return e instanceof HTMLElement&&jn(e.nodeName)&&e.nodeName.toUpperCase()==="CANVAS"}var zbt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return Tt(Tt({},r),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(r){this._setImage(r.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var r=this.get("canvas");r?r.draw():this.createPath(this.get("context"))}},t.prototype._setImage=function(r){var n=this,a=this.attrs;if(jn(r)){var i=new Image;i.onload=function(){if(n.destroyed)return!1;n.attr("img",i),n.set("loading",!1),n._afterLoading();var o=n.get("callback");o&&o.call(n)},i.crossOrigin="Anonymous",i.src=r,this.set("loading",!0)}else r instanceof Image?(a.width||(a.width=r.width),a.height||(a.height=r.height)):qle(r)&&(a.width||(a.width=Number(r.getAttribute("width"))),a.height||(a.height,Number(r.getAttribute("height"))))},t.prototype.onAttrChange=function(r,n,a){e.prototype.onAttrChange.call(this,r,n,a),r==="img"&&this._setImage(n)},t.prototype.createPath=function(r){if(this.get("loading")){this.set("toDraw",!0),this.set("context",r);return}var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,l=n.sx,A=n.sy,c=n.swidth,u=n.sheight,d=n.img;(d instanceof Image||qle(d))&&(!sr(l)&&!sr(A)&&!sr(c)&&!sr(u)?r.drawImage(d,l,A,c,u,a,i,o,s):r.drawImage(d,a,i,o,s))},t}(Jl);function Uu(e,t,r,n,a,i,o){var s=Math.min(e,r),l=Math.max(e,r),A=Math.min(t,n),c=Math.max(t,n),u=a/2;return i>=s-u&&i<=l+u&&o>=A-u&&o<=c+u?io.pointToLine(e,t,r,n,i,o)<=a/2:!1}var jbt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return Tt(Tt({},r),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(r){this.setArrow()},t.prototype.onAttrChange=function(r,n,a){e.prototype.onAttrChange.call(this,r,n,a),this.setArrow()},t.prototype.setArrow=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2,s=r.startArrow,l=r.endArrow;s&&I6(this,r,i,o,n,a),l&&b6(this,r,n,a,i,o)},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){if(!a||!o)return!1;var s=this.attr(),l=s.x1,A=s.y1,c=s.x2,u=s.y2;return Uu(l,A,c,u,o,r,n)},t.prototype.createPath=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.startArrow,A=n.endArrow,c={dx:0,dy:0},u={dx:0,dy:0};l&&l.d&&(c=Kf(a,i,o,s,n.startArrow.d)),A&&A.d&&(u=Kf(a,i,o,s,n.endArrow.d)),r.beginPath(),r.moveTo(a+c.dx,i+c.dy),r.lineTo(o-u.dx,s-u.dy)},t.prototype.afterDrawPath=function(r){var n=this.get("startArrowShape"),a=this.get("endArrowShape");n&&n.draw(r),a&&a.draw(r)},t.prototype.getTotalLength=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2;return io.length(n,a,i,o)},t.prototype.getPoint=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2;return io.pointAt(a,i,o,s,r)},t}(Jl),Ybt={circle:function(e,t,r){return[["M",e-r,t],["A",r,r,0,1,0,e+r,t],["A",r,r,0,1,0,e-r,t]]},square:function(e,t,r){return[["M",e-r,t-r],["L",e+r,t-r],["L",e+r,t+r],["L",e-r,t+r],["Z"]]},diamond:function(e,t,r){return[["M",e-r,t],["L",e,t-r],["L",e+r,t],["L",e,t+r],["Z"]]},triangle:function(e,t,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",e-r,t+n],["L",e,t-n],["L",e+r,t+n],["Z"]]},"triangle-down":function(e,t,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",e-r,t-n],["L",e+r,t-n],["L",e,t+n],["Z"]]}},Lbt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.initAttrs=function(r){this._resetParamsCache()},t.prototype._resetParamsCache=function(){this.set("paramsCache",{})},t.prototype.onAttrChange=function(r,n,a){e.prototype.onAttrChange.call(this,r,n,a),["symbol","x","y","r","radius"].indexOf(r)!==-1&&this._resetParamsCache()},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._getR=function(r){return sr(r.r)?r.radius:r.r},t.prototype._getPath=function(){var r=this.attr(),n=r.x,a=r.y,i=r.symbol||"circle",o=this._getR(r),s,l;if(Fn(i))s=i,l=s(n,a,o),l=C2(l);else{if(s=t.Symbols[i],!s)return console.warn(i+" marker is not supported."),null;l=s(n,a,o)}return l},t.prototype.createPath=function(r){var n=this._getPath(),a=this.get("paramsCache");pSe(this,r,{path:n},a)},t.Symbols=Ybt,t}(Jl);function mSe(e,t,r){var n=m2();return e.createPath(n),n.isPointInPath(t,r)}var Ubt=1e-6;function J8(e){return Math.abs(e)<Ubt?0:e<0?-1:1}function Hbt(e,t,r){return(r[0]-e[0])*(t[1]-e[1])===(t[0]-e[0])*(r[1]-e[1])&&Math.min(e[0],t[0])<=r[0]&&r[0]<=Math.max(e[0],t[0])&&Math.min(e[1],t[1])<=r[1]&&r[1]<=Math.max(e[1],t[1])}function ESe(e,t,r){var n=!1,a=e.length;if(a<=2)return!1;for(var i=0;i<a;i++){var o=e[i],s=e[(i+1)%a];if(Hbt(o,s,[t,r]))return!0;J8(o[1]-r)>0!=J8(s[1]-r)>0&&J8(t-(r-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}function k0(e,t,r,n,a,i,o,s){var l=(Math.atan2(s-t,o-e)+Math.PI*2)%(Math.PI*2);if(l<n||l>a)return!1;var A={x:e+r*Math.cos(l),y:t+r*Math.sin(l)};return cSe(A.x,A.y,o,s)<=i/2}var Gbt=XC;function Kbt(e){for(var t=!1,r=e.length,n=0;n<r;n++){var a=e[n],i=a[0];if(i==="C"||i==="A"||i==="Q"){t=!0;break}}return t}function Vbt(e,t,r,n,a){for(var i=!1,o=t/2,s=0;s<e.length;s++){var l=e[s],A=l.currentPoint,c=l.params,u=l.prePoint,d=l.box;if(!(d&&!Ff(d.x-o,d.y-o,d.width+t,d.height+t,r,n))){switch(l.command){case"L":case"Z":i=Uu(u[0],u[1],A[0],A[1],t,r,n);break;case"Q":var f=KU.pointDistance(u[0],u[1],c[1],c[2],c[3],c[4],r,n);i=f<=t/2;break;case"C":var h=Gp.pointDistance(u[0],u[1],c[1],c[2],c[3],c[4],c[5],c[6],r,n,a);i=h<=t/2;break;case"A":var g=l.arcParams,p=g.cx,E=g.cy,y=g.rx,C=g.ry,w=g.startAngle,B=g.endAngle,M=g.xRotation,I=[r,n,1],S=y>C?y:C,R=y>C?1:y/C,b=y>C?C/y:1,Q=Gbt(null,[["t",-p,-E],["r",-M],["s",1/R,1/b]]);Cv(I,I,Q),i=k0(0,0,S,w,B,t,I[0],I[1]);break}if(i)break}}return i}function Jbt(e){for(var t=e.length,r=[],n=[],a=[],i=0;i<t;i++){var o=e[i],s=o[0];s==="M"?(a.length&&(n.push(a),a=[]),a.push([o[1],o[2]])):s==="Z"?a.length&&(r.push(a),a=[]):a.push([o[1],o[2]])}return a.length>0&&n.push(a),{polygons:r,polylines:n}}const ZM=Tt({hasArc:Kbt,extractPolygons:Jbt,isPointInStroke:Vbt},DU);function Zle(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];if(n=ESe(i,t,r),n)break}return n}var T6=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return Tt(Tt({},r),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(r){this._setPathArr(r.path),this.setArrow()},t.prototype.onAttrChange=function(r,n,a){e.prototype.onAttrChange.call(this,r,n,a),r==="path"&&this._setPathArr(n),this.setArrow()},t.prototype._setPathArr=function(r){this.attrs.path=C2(r);var n=ZM.hasArc(r);this.set("hasArc",n),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},t.prototype.getSegments=function(){var r=this.get("segements");return r||(r=WU(this.attr("path")),this.set("segments",r)),r},t.prototype.setArrow=function(){var r=this.attr(),n=r.startArrow,a=r.endArrow;if(n){var i=this.getStartTangent();I6(this,r,i[0][0],i[0][1],i[1][0],i[1][1])}if(a){var i=this.getEndTangent();b6(this,r,i[0][0],i[0][1],i[1][0],i[1][1])}},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.getSegments(),l=this.get("hasArc"),A=!1;if(a){var c=this.getTotalLength();A=ZM.isPointInStroke(s,o,r,n,c)}if(!A&&i)if(l)A=mSe(this,r,n);else{var u=this.attr("path"),d=ZM.extractPolygons(u);A=Zle(d.polygons,r,n)||Zle(d.polylines,r,n)}return A},t.prototype.createPath=function(r){var n=this.attr(),a=this.get("paramsCache");pSe(this,r,n,a)},t.prototype.afterDrawPath=function(r){var n=this.get("startArrowShape"),a=this.get("endArrowShape");n&&n.draw(r),a&&a.draw(r)},t.prototype.getTotalLength=function(){var r=this.get("totalLength");return sr(r)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):r},t.prototype.getPoint=function(r){var n=this.get("tCache");n||(this._calculateCurve(),this._setTcache(),n=this.get("tCache"));var a,i,o=this.get("curve");if(!n||n.length===0)return o?{x:o[0][1],y:o[0][2]}:null;Ht(n,function(c,u){r>=c[0]&&r<=c[1]&&(a=(r-c[0])/(c[1]-c[0]),i=u)});var s=o[i];if(sr(s)||sr(i))return null;var l=s.length,A=o[i+1];return Gp.pointAt(s[l-2],s[l-1],A[1],A[2],A[3],A[4],A[5],A[6],a)},t.prototype._calculateCurve=function(){var r=this.attr().path;this.set("curve",ZM.pathToCurve(r))},t.prototype._setTcache=function(){var r=0,n=0,a=[],i,o,s,l,A=this.get("curve");if(A){if(Ht(A,function(c,u){s=A[u+1],l=c.length,s&&(r+=Gp.length(c[l-2],c[l-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",r),r===0){this.set("tCache",[]);return}Ht(A,function(c,u){s=A[u+1],l=c.length,s&&(i=[],i[0]=n/r,o=Gp.length(c[l-2],c[l-1],s[1],s[2],s[3],s[4],s[5],s[6]),n+=o||0,i[1]=n/r,a.push(i))}),this.set("tCache",a)}},t.prototype.getStartTangent=function(){var r=this.getSegments(),n;if(r.length>1){var a=r[0].currentPoint,i=r[1].currentPoint,o=r[1].startTangent;n=[],o?(n.push([a[0]-o[0],a[1]-o[1]]),n.push([a[0],a[1]])):(n.push([i[0],i[1]]),n.push([a[0],a[1]]))}return n},t.prototype.getEndTangent=function(){var r=this.getSegments(),n=r.length,a;if(n>1){var i=r[n-2].currentPoint,o=r[n-1].currentPoint,s=r[n-1].endTangent;a=[],s?(a.push([o[0]-s[0],o[1]-s[1]]),a.push([o[0],o[1]])):(a.push([i[0],i[1]]),a.push([o[0],o[1]]))}return a},t}(Jl);function ySe(e,t,r,n,a){var i=e.length;if(i<2)return!1;for(var o=0;o<i-1;o++){var s=e[o][0],l=e[o][1],A=e[o+1][0],c=e[o+1][1];if(Uu(s,l,A,c,t,r,n))return!0}if(a){var u=e[0],d=e[i-1];if(Uu(u[0],u[1],d[0],d[1],t,r,n))return!0}return!1}var Wbt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr().points,l=!1;return a&&(l=ySe(s,o,r,n,!0)),!l&&i&&(l=ESe(s,r,n)),l},t.prototype.createPath=function(r){var n=this.attr(),a=n.points;if(!(a.length<2)){r.beginPath();for(var i=0;i<a.length;i++){var o=a[i];i===0?r.moveTo(o[0],o[1]):r.lineTo(o[0],o[1])}r.closePath()}},t}(Jl),Xbt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return Tt(Tt({},r),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(r){this.setArrow()},t.prototype.onAttrChange=function(r,n,a){e.prototype.onAttrChange.call(this,r,n,a),this.setArrow(),["points"].indexOf(r)!==-1&&this._resetCache()},t.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},t.prototype.setArrow=function(){var r=this.attr(),n=this.attrs,a=n.points,i=n.startArrow,o=n.endArrow,s=a.length,l=a[0][0],A=a[0][1],c=a[s-1][0],u=a[s-1][1];i&&I6(this,r,a[1][0],a[1][1],l,A),o&&b6(this,r,a[s-2][0],a[s-2][1],c,u)},t.prototype.isFill=function(){return!1},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){if(!a||!o)return!1;var s=this.attr().points;return ySe(s,o,r,n,!1)},t.prototype.isStroke=function(){return!0},t.prototype.createPath=function(r){var n=this.attr(),a=n.points,i=n.startArrow,o=n.endArrow,s=a.length;if(!(a.length<2)){var l=a[0][0],A=a[0][1],c=a[s-1][0],u=a[s-1][1];if(i&&i.d){var d=Kf(l,A,a[1][0],a[1][1],i.d);l+=d.dx,A+=d.dy}if(o&&o.d){var d=Kf(a[s-2][0],a[s-2][1],c,u,o.d);c-=d.dx,u-=d.dy}r.beginPath(),r.moveTo(l,A);for(var f=0;f<s-1;f++){var h=a[f];r.lineTo(h[0],h[1])}r.lineTo(c,u)}},t.prototype.afterDrawPath=function(r){var n=this.get("startArrowShape"),a=this.get("endArrowShape");n&&n.draw(r),a&&a.draw(r)},t.prototype.getTotalLength=function(){var r=this.attr().points,n=this.get("totalLength");return sr(n)?(this.set("totalLength",VU.length(r)),this.get("totalLength")):n},t.prototype.getPoint=function(r){var n=this.attr().points,a=this.get("tCache");a||(this._setTcache(),a=this.get("tCache"));var i,o;return Ht(a,function(s,l){r>=s[0]&&r<=s[1]&&(i=(r-s[0])/(s[1]-s[0]),o=l)}),io.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],i)},t.prototype._setTcache=function(){var r=this.attr().points;if(!(!r||r.length===0)){var n=this.getTotalLength();if(!(n<=0)){var a=0,i=[],o,s;Ht(r,function(l,A){r[A+1]&&(o=[],o[0]=a/n,s=io.length(l[0],l[1],r[A+1][0],r[A+1][1]),a+=s,o[1]=a/n,i.push(o))}),this.set("tCache",i)}}},t.prototype.getStartTangent=function(){var r=this.attr().points,n=[];return n.push([r[1][0],r[1][1]]),n.push([r[0][0],r[0][1]]),n},t.prototype.getEndTangent=function(){var r=this.attr().points,n=r.length-1,a=[];return a.push([r[n-1][0],r[n-1][1]]),a.push([r[n][0],r[n][1]]),a},t}(Jl);function qbt(e,t,r,n,a,i,o){var s=a/2;return Ff(e-s,t-s,r,a,i,o)||Ff(e+r-s,t-s,a,n,i,o)||Ff(e+s,t+n-s,r,a,i,o)||Ff(e-s,t+s,a,n,i,o)}function Zbt(e,t,r,n,a,i,o,s){return Uu(e+a,t,e+r-a,t,i,o,s)||Uu(e+r,t+a,e+r,t+n-a,i,o,s)||Uu(e+r-a,t+n,e+a,t+n,i,o,s)||Uu(e,t+n-a,e,t+a,i,o,s)||k0(e+r-a,t+a,a,1.5*Math.PI,2*Math.PI,i,o,s)||k0(e+r-a,t+n-a,a,0,.5*Math.PI,i,o,s)||k0(e+a,t+n-a,a,.5*Math.PI,Math.PI,i,o,s)||k0(e+a,t+a,a,Math.PI,1.5*Math.PI,i,o,s)}var $bt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return Tt(Tt({},r),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),l=s.x,A=s.y,c=s.width,u=s.height,d=s.radius;if(d){var h=!1;return a&&(h=Zbt(l,A,c,u,d,o,r,n)),!h&&i&&(h=mSe(this,r,n)),h}else{var f=o/2;if(i&&a)return Ff(l-f,A-f,c+f,u+f,r,n);if(i)return Ff(l,A,c,u,r,n);if(a)return qbt(l,A,c,u,o,r,n)}},t.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,l=n.radius;if(r.beginPath(),l===0)r.rect(a,i,o,s);else{var A=Qbt(l),c=A[0],u=A[1],d=A[2],f=A[3];r.moveTo(a+c,i),r.lineTo(a+o-u,i),u!==0&&r.arc(a+o-u,i+u,u,-Math.PI/2,0),r.lineTo(a+o,i+s-d),d!==0&&r.arc(a+o-d,i+s-d,d,0,Math.PI/2),r.lineTo(a+f,i+s),f!==0&&r.arc(a+f,i+s-f,f,Math.PI/2,Math.PI),r.lineTo(a,i+c),c!==0&&r.arc(a+c,i+c,c,Math.PI,Math.PI*1.5),r.closePath()}},t}(Jl),eSt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return Tt(Tt({},r),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(r){this._assembleFont(),r.text&&this._setText(r.text)},t.prototype._assembleFont=function(){var r=this.attrs;r.font=y2(r)},t.prototype._setText=function(r){var n=null;jn(r)&&r.indexOf(`
`)!==-1&&(n=r.split(`
`)),this.set("textArr",n)},t.prototype.onAttrChange=function(r,n,a){e.prototype.onAttrChange.call(this,r,n,a),r.startsWith("font")&&this._assembleFont(),r==="text"&&this._setText(n)},t.prototype._getSpaceingY=function(){var r=this.attrs,n=r.lineHeight,a=r.fontSize*1;return n?n-a:a*.14},t.prototype._drawTextArr=function(r,n,a){var i=this.attrs,o=i.textBaseline,s=i.x,l=i.y,A=i.fontSize*1,c=this._getSpaceingY(),u=E2(i.text,i.fontSize,i.lineHeight),d;Ht(n,function(f,h){d=l+h*(c+A)-u+A,o==="middle"&&(d+=u-A-(u-A)/2),o==="top"&&(d+=u-A),sr(f)||(a?r.fillText(f,s,d):r.strokeText(f,s,d))})},t.prototype._drawText=function(r,n){var a=this.attr(),i=a.x,o=a.y,s=this.get("textArr");if(s)this._drawTextArr(r,s,n);else{var l=a.text;sr(l)||(n?r.fillText(l,i,o):r.strokeText(l,i,o))}},t.prototype.strokeAndFill=function(r){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isStroke()&&a>0&&(!sr(o)&&o!==1&&(r.globalAlpha=i),this.stroke(r)),this.isFill()&&(!sr(s)&&s!==1?(r.globalAlpha=s,this.fill(r),r.globalAlpha=i):this.fill(r)),this.afterDrawPath(r)},t.prototype.fill=function(r){this._drawText(r,!0)},t.prototype.stroke=function(r){this._drawText(r,!1)},t}(Jl);function tSt(e,t){if(t){var r=p2(t);return Mc(r,e)}return e}function CSe(e,t,r){var n=e.getTotalMatrix();if(n){var a=tSt([t,r,1],n),i=a[0],o=a[1];return[i,o]}return[t,r]}function $le(e,t,r){if(e.isCanvas&&e.isCanvas())return!0;if(!zy(e)||e.cfg.isInView===!1)return!1;if(e.cfg.clipShape){var n=CSe(e,t,r),a=n[0],i=n[1];if(e.isClipped(a,i))return!1}var o=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=o.minX&&t<=o.maxX&&r>=o.minY&&r<=o.maxY}function wSe(e,t,r){if(!$le(e,t,r))return null;for(var n=null,a=e.getChildren(),i=a.length,o=i-1;o>=0;o--){var s=a[o];if(s.isGroup())n=wSe(s,t,r);else if($le(s,t,r)){var l=s,A=CSe(s,t,r),c=A[0],u=A[1];l.isInShape(c,u)&&(n=s)}if(n)break}return n}var rSt=function(e){Cr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return r.renderer="canvas",r.autoDraw=!0,r.localRefresh=!0,r.refreshElements=[],r.clipView=!0,r.quickHit=!1,r},t.prototype.onCanvasChange=function(r){(r==="attr"||r==="sort"||r==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},t.prototype.getShapeBase=function(){return xS},t.prototype.getGroupBase=function(){return R6},t.prototype.getPixelRatio=function(){var r=this.get("pixelRatio")||wbt();return r>=1?Math.ceil(r):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var r=document.createElement("canvas"),n=r.getContext("2d");return this.set("context",n),r},t.prototype.setDOMSize=function(r,n){e.prototype.setDOMSize.call(this,r,n);var a=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*r,i.height=o*n,o>1&&a.scale(o,o)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var r=this.get("context"),n=this.get("el");r.clearRect(0,0,n.width,n.height)},t.prototype.getShape=function(r,n){var a;return this.get("quickHit")?a=wSe(this,r,n):a=e.prototype.getShape.call(this,r,n,null),a},t.prototype._getRefreshRegion=function(){var r=this.get("refreshElements"),n=this.getViewRange(),a;if(r.length&&r[0]===this)a=n;else if(a=Nbt(r),a){a.minX=Math.floor(a.minX),a.minY=Math.floor(a.minY),a.maxX=Math.ceil(a.maxX),a.maxY=Math.ceil(a.maxY),a.maxY+=1;var i=this.get("clipView");i&&(a=kbt(a,n))}return a},t.prototype.refreshElement=function(r){var n=this.get("refreshElements");n.push(r)},t.prototype._clearFrame=function(){var r=this.get("drawFrame");r&&(rxe(r),this.set("drawFrame",null),this.set("refreshElements",[]))},t.prototype.draw=function(){var r=this.get("drawFrame");this.get("autoDraw")&&r||this._startDraw()},t.prototype._drawAll=function(){var r=this.get("context"),n=this.get("el"),a=this.getChildren();r.clearRect(0,0,n.width,n.height),Mv(r,this),P3(r,a),this.set("refreshElements",[])},t.prototype._drawRegion=function(){var r=this.get("context"),n=this.get("refreshElements"),a=this.getChildren(),i=this._getRefreshRegion();i?(r.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),r.save(),r.beginPath(),r.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),r.clip(),Mv(r,this),Dbt(this,a,i),P3(r,a,i),r.restore()):n.length&&gSe(n),Ht(n,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},t.prototype._startDraw=function(){var r=this,n=this.get("drawFrame"),a=this.get("drawFrameCallback");n||(n=txe(function(){r.get("localRefresh")?r._drawRegion():r._drawAll(),r.set("drawFrame",null),a&&a()}),this.set("drawFrame",n))},t.prototype.skipDraw=function(){},t.prototype.removeDom=function(){var r=this.get("el");r.width=0,r.height=0,r.parentNode.removeChild(r)},t}(LU),nSt="0.5.12";const aSt=Object.freeze(Object.defineProperty({__proto__:null,AbstractCanvas:LU,AbstractGroup:UU,AbstractShape:HU,Base:f2,Canvas:rSt,Event:d2,Group:R6,PathUtil:DU,Shape:xS,assembleFont:y2,getArcParams:k3,getBBoxMethod:GU,getOffScreenContext:m2,getTextHeight:E2,invert:p2,isAllowCapture:zy,multiplyVec2:Mc,registerBBox:Xs,registerEasing:hIe,version:nSt},Symbol.toStringTag,{value:"Module"})),iSt=Un(aSt);var eAe;function oSt(){if(eAe)return e0;eAe=1,Object.defineProperty(e0,"__esModule",{value:!0}),e0.sectorPathUpdate=void 0;var e=Kt,t=iSt,r=Gt,n=fs();function a(l,A){var c,u=(0,t.getArcParams)(l,A),d=u.startAngle,f=u.endAngle;return!(0,r.isNumberEqual)(d,-Math.PI*.5)&&d<-Math.PI*.5&&(d+=Math.PI*2),!(0,r.isNumberEqual)(f,-Math.PI*.5)&&f<-Math.PI*.5&&(f+=Math.PI*2),A[5]===0&&(c=[f,d],d=c[0],f=c[1]),(0,r.isNumberEqual)(d,Math.PI*1.5)&&(d=Math.PI*-.5),(0,r.isNumberEqual)(f,Math.PI*-.5)&&(f=Math.PI*1.5),{startAngle:d,endAngle:f}}function i(l){var A;return l[0]==="M"||l[0]==="L"?A=[l[1],l[2]]:(l[0]==="a"||l[0]==="A"||l[0]==="C")&&(A=[l[l.length-2],l[l.length-1]]),A}function o(l){var A,c,u,d=l.filter(function(Q){return Q[0]==="A"||Q[0]==="a"});if(d.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var f=d[0],h=d.length>1?d[1]:d[0],g=l.indexOf(f),p=l.indexOf(h),E=i(l[g-1]),y=i(l[p-1]),C=a(E,f),w=C.startAngle,B=C.endAngle,M=a(y,h),I=M.startAngle,S=M.endAngle;(0,r.isNumberEqual)(w,I)&&(0,r.isNumberEqual)(B,S)?(c=w,u=B):(c=Math.min(w,I),u=Math.max(B,S));var R=f[1],b=d[d.length-1][1];return R<b?(A=[b,R],R=A[0],b=A[1]):R===b&&(b=0),{startAngle:c,endAngle:u,radius:R,innerRadius:b}}function s(l,A,c){var u=c.toAttrs,d=c.coordinate,f=u.path||[],h=f.map(function(b){return b[0]});if(!(f.length<1)){var g=o(f),p=g.startAngle,E=g.endAngle,y=g.radius,C=g.innerRadius,w=o(l.attr("path")),B=w.startAngle,M=w.endAngle,I=d.getCenter(),S=p-B,R=E-M;if(S===0&&R===0){l.attr("path",f);return}l.animate(function(b){var Q=B+b*S,D=M+b*R;return(0,e.__assign)((0,e.__assign)({},u),{path:(0,r.isEqual)(h,["M","A","A","Z"])?(0,n.getArcPath)(I.x,I.y,y,Q,D):(0,n.getSectorPath)(I.x,I.y,y,Q,D,C)})},(0,e.__assign)((0,e.__assign)({},A),{callback:function(){l.attr("path",f)}}))}}return e0.sectorPathUpdate=s,e0}var t0={},tAe;function sSt(){if(tAe)return t0;tAe=1,Object.defineProperty(t0,"__esModule",{value:!0}),t0.waveIn=void 0;var e=Kt,t=_l();function r(n,a,i){var o=(0,t.getCoordinateClipCfg)(i.coordinate,20),s=o.type,l=o.startState,A=o.endState,c=n.setClip({type:s,attrs:l});c.animate(A,(0,e.__assign)((0,e.__assign)({},a),{callback:function(){n&&!n.get("destroyed")&&n.set("clipShape",null),c.remove(!0)}}))}return t0.waveIn=r,t0}var af={},rAe;function lSt(){if(rAe)return af;rAe=1,Object.defineProperty(af,"__esModule",{value:!0}),af.zoomOut=af.zoomIn=void 0;var e=Kt,t=Bd,r=Gt;function n(o,s,l){if(o.isGroup())(0,r.each)(o.getChildren(),function(f){n(f,s,l)});else{var A=o.getBBox(),c=(A.minX+A.maxX)/2,u=(A.minY+A.maxY)/2;if(o.applyToMatrix([c,u,1]),l==="zoomIn"){var d=t.ext.transform(o.getMatrix(),[["t",-c,-u],["s",.01,.01],["t",c,u]]);o.setMatrix(d),o.animate({matrix:t.ext.transform(o.getMatrix(),[["t",-c,-u],["s",100,100],["t",c,u]])},s)}else o.animate({matrix:t.ext.transform(o.getMatrix(),[["t",-c,-u],["s",.01,.01],["t",c,u]])},(0,e.__assign)((0,e.__assign)({},s),{callback:function(){o.remove(!0)}}))}}function a(o,s,l){n(o,s,"zoomIn")}af.zoomIn=a;function i(o,s,l){n(o,s,"zoomOut")}return af.zoomOut=i,af}var nAe;function ASt(){if(nAe)return V8;nAe=1,Object.defineProperty(V8,"__esModule",{value:!0});var e=pbt(),t=mbt(),r=Ebt(),n=ybt(),a=Cbt(),i=oSt(),o=sSt(),s=lSt(),l=_3();return(0,l.registerAnimation)("fade-in",e.fadeIn),(0,l.registerAnimation)("fade-out",e.fadeOut),(0,l.registerAnimation)("grow-in-x",t.growInX),(0,l.registerAnimation)("grow-in-xy",t.growInXY),(0,l.registerAnimation)("grow-in-y",t.growInY),(0,l.registerAnimation)("scale-in-x",a.scaleInX),(0,l.registerAnimation)("scale-in-y",a.scaleInY),(0,l.registerAnimation)("wave-in",o.waveIn),(0,l.registerAnimation)("zoom-in",s.zoomIn),(0,l.registerAnimation)("zoom-out",s.zoomOut),(0,l.registerAnimation)("position-update",n.positionUpdate),(0,l.registerAnimation)("sector-path-update",i.sectorPathUpdate),(0,l.registerAnimation)("path-in",r.pathIn),V8}var W8={},X8={},aAe;function cSt(){return aAe||(aAe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.antvDark=e.createDarkStyleSheet=void 0;var t={100:"#000",25:"#BFBFBF",6:"#F0F0F0"},r={100:"#FFFFFF",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626"},n=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],a=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],i=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],o=function(s){s===void 0&&(s={});var l=s.backgroundColor,A=l===void 0?"#141414":l,c=s.subColor,u=c===void 0?"rgba(255,255,255,0.05)":c,d=s.paletteQualitative10,f=d===void 0?n:d,h=s.paletteQualitative20,g=h===void 0?a:h,p=s.paletteSemanticRed,E=p===void 0?"#F4664A":p,y=s.paletteSemanticGreen,C=y===void 0?"#30BF78":y,w=s.paletteSemanticYellow,B=w===void 0?"#FAAD14":w,M=s.paletteSequence,I=M===void 0?i:M,S=s.fontFamily,R=S===void 0?`"Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji"`:S,b=s.brandColor,Q=b===void 0?f[0]:b;return{backgroundColor:A,brandColor:Q,subColor:u,paletteQualitative10:f,paletteQualitative20:g,paletteSemanticRed:E,paletteSemanticGreen:C,paletteSemanticYellow:B,paletteSequence:I,fontFamily:R,axisLineBorderColor:r[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:r[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:r[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:r[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:r[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:r[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:r[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:n[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:r[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:r[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:r[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:r[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:r[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:r[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:t[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:t[25],annotationArcBorderColor:r[15],annotationArcBorder:1,annotationLineBorderColor:r[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:r[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:r[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:r[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:r[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:r[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:t[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:r[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:t[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:r[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:n[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:t[100],pointBorderOpacity:1,pointActiveBorderColor:r[100],pointSelectedBorder:2,pointSelectedBorderColor:r[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:n[0],hollowPointBorderOpacity:.95,hollowPointFillColor:t[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:r[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:r[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:n[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:n[0],areaFillOpacity:.25,areaActiveFillColor:n[0],areaActiveFillOpacity:.5,areaSelectedFillColor:n[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:n[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:r[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:r[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:n[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:r[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:r[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:n[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:t[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:r[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:r[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};e.createDarkStyleSheet=o,e.antvDark=(0,e.createDarkStyleSheet)()}(X8)),X8}var iAe;function uSt(){return iAe||(iAe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.antvDark=e.antvLight=e.createThemeByStyleSheet=void 0;var t=cSt();Object.defineProperty(e,"antvDark",{enumerable:!0,get:function(){return t.antvDark}});var r=$be();Object.defineProperty(e,"antvLight",{enumerable:!0,get:function(){return r.antvLight}});var n=Zbe();Object.defineProperty(e,"createThemeByStyleSheet",{enumerable:!0,get:function(){return n.createThemeByStyleSheet}});var a=y6();(0,a.registerTheme)("dark",(0,n.createThemeByStyleSheet)(t.antvDark)),(0,a.registerTheme)("default",(0,n.createThemeByStyleSheet)(r.antvLight)),(0,a.registerTheme)("light",(0,n.createThemeByStyleSheet)(r.antvLight))}(W8)),W8}var iA={},P0={exports:{}},dSt=P0.exports,oAe;function fSt(){return oAe||(oAe=1,function(e,t){(function(r,n){n(t,cr())})(dSt,function(r,n){function a(d){return d&&typeof d=="object"&&"default"in d?d:{default:d}}var i=a(n);function o(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,d.__proto__=f}var s=function(d,f){return d===void 0&&(d=[]),f===void 0&&(f=[]),d.length!==f.length||d.some(function(h,g){return!Object.is(h,f[g])})},l={error:null},A=function(d){o(f,d);function f(){for(var g,p=arguments.length,E=new Array(p),y=0;y<p;y++)E[y]=arguments[y];return g=d.call.apply(d,[this].concat(E))||this,g.state=l,g.updatedWithError=!1,g.resetErrorBoundary=function(){for(var C,w=arguments.length,B=new Array(w),M=0;M<w;M++)B[M]=arguments[M];g.props.onReset==null||(C=g.props).onReset.apply(C,B),g.reset()},g}f.getDerivedStateFromError=function(p){return{error:p}};var h=f.prototype;return h.reset=function(){this.updatedWithError=!1,this.setState(l)},h.componentDidCatch=function(p,E){var y,C;(y=(C=this.props).onError)==null||y.call(C,p,E)},h.componentDidUpdate=function(p){var E=this.state.error,y=this.props.resetKeys;if(E!==null&&!this.updatedWithError){this.updatedWithError=!0;return}if(E!==null&&s(p.resetKeys,y)){var C,w;(C=(w=this.props).onResetKeysChange)==null||C.call(w,p.resetKeys,y),this.reset()}},h.render=function(){var p=this.state.error,E=this.props,y=E.fallbackRender,C=E.FallbackComponent,w=E.fallback;if(p!==null){var B={error:p,resetErrorBoundary:this.resetErrorBoundary};if(i.default.isValidElement(w))return w;if(typeof y=="function")return y(B);if(C)return i.default.createElement(C,B);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},f}(i.default.Component);function c(d,f){function h(p){return i.default.createElement(A,f,i.default.createElement(d,p))}var g=d.displayName||d.name||"Unknown";return h.displayName="withErrorBoundary("+g+")",h}function u(d){var f=i.default.useState(null),h=f[0],g=f[1];if(d)throw d;if(h)throw h;return g}r.ErrorBoundary=A,r.useErrorHandler=u,r.withErrorBoundary=c,Object.defineProperty(r,"__esModule",{value:!0})})}(P0,P0.exports)),P0.exports}var sAe;function BSe(){if(sAe)return iA;sAe=1;var e=iA&&iA.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(iA,"__esModule",{value:!0}),iA.setDefaultErrorFallback=iA.ErrorFallback=void 0;var t=e(cr()),r=fSt(),n=function(o){var s=o.error;return t.default.createElement("div",{className:"bizcharts-error",role:"alert"},t.default.createElement("p",null,"BizCharts something went wrong:"),t.default.createElement("pre",null,s.message))};function a(o){return n(o)}iA.ErrorFallback=a;var i=function(o){n=o};return iA.setDefaultErrorFallback=i,iA.default=r.ErrorBoundary,iA}var lAe;function jo(){return lAe||(lAe=1,function(e){var t=al&&al.__createBinding||(Object.create?function(d,f,h,g){g===void 0&&(g=h);var p=Object.getOwnPropertyDescriptor(f,h);(!p||("get"in p?!f.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return f[h]}}),Object.defineProperty(d,g,p)}:function(d,f,h,g){g===void 0&&(g=h),d[g]=f[h]}),r=al&&al.__setModuleDefault||(Object.create?function(d,f){Object.defineProperty(d,"default",{enumerable:!0,value:f})}:function(d,f){d.default=f}),n=al&&al.__importStar||function(d){if(d&&d.__esModule)return d;var f={};if(d!=null)for(var h in d)h!=="default"&&Object.prototype.hasOwnProperty.call(d,h)&&t(f,d,h);return r(f,d),f},a=al&&al.__exportStar||function(d,f){for(var h in d)h!=="default"&&!Object.prototype.hasOwnProperty.call(f,h)&&t(f,d,h)};Object.defineProperty(e,"__esModule",{value:!0}),e.setDefaultErrorFallback=e.VERSION=e.GLOBAL=e.setGlobal=e.registerTickMethod=e.getScale=e.registerScale=void 0;var i=n(xIt()),o=n(VIt()),s=_3(),l=e6;Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return l.registerScale}}),Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return l.getScale}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return l.registerTickMethod}});var A=fbt();Object.defineProperty(e,"setGlobal",{enumerable:!0,get:function(){return A.setGlobal}}),Object.defineProperty(e,"GLOBAL",{enumerable:!0,get:function(){return A.GLOBAL}}),gbt(),ASt(),a(uSt(),e),(0,s.registerEngine)("canvas",i),(0,s.registerEngine)("svg",o),a(_3(),e),e.VERSION="4.1.22";var c=i.Canvas.prototype.getPointByClient;i.Canvas.prototype.getPointByClient=function(d,f){var h=c.call(this,d,f),g=this.get("el"),p=g.getBoundingClientRect(),E=this.get("width"),y=this.get("height"),C=p.width,w=p.height;return{x:h.x/(C/E),y:h.y/(w/y)}};var u=BSe();Object.defineProperty(e,"setDefaultErrorFallback",{enumerable:!0,get:function(){return u.setDefaultErrorFallback}})}(al)),al}var AAe;function hSt(){if(AAe)return uu;AAe=1;var e=uu&&uu.__rest||function(A,c){var u={};for(var d in A)Object.prototype.hasOwnProperty.call(A,d)&&c.indexOf(d)<0&&(u[d]=A[d]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,d=Object.getOwnPropertySymbols(A);f<d.length;f++)c.indexOf(d[f])<0&&Object.prototype.propertyIsEnumerable.call(A,d[f])&&(u[d[f]]=A[d[f]]);return u},t=uu&&uu.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(uu,"__esModule",{value:!0});var r=t(oIt()),n=t(T2()),a=t(lIt()),i=jo();(0,i.registerComponentController)("axis",r.default);var o=function(A){return A===void 0},s=function(A){return(0,a.default)(A,["title","line","tickLine","subTickLine","label","grid"])};function l(A){var c=A.name,u=A.visible,d=u===void 0?!0:u,f=e(A,["name","visible"]),h=(0,n.default)(),g=s(f);return d?o(c)?h.axis(!0):h.axis(c,g):o(c)?h.axis(!1):h.axis(c,!1),null}return uu.default=l,uu}var gSt=hSt();const Hs=Nr(gSt);var oi={},$M={},cAe;function pSt(){if(cAe)return $M;cAe=1,Object.defineProperty($M,"__esModule",{value:!0});function e(t,r,n){var a;return function(){var i=this,o=arguments,s=function(){a=null,n||t.apply(i,o)},l=n&&!a;clearTimeout(a),a=setTimeout(s,r),l&&t.apply(i,o)}}return $M.default=e,$M}var Vf=[],vSt=function(){return Vf.some(function(e){return e.activeTargets.length>0})},mSt=function(){return Vf.some(function(e){return e.skippedTargets.length>0})},uAe="ResizeObserver loop completed with undelivered notifications.",ESt=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:uAe}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=uAe),window.dispatchEvent(e)},Wy;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Wy||(Wy={}));var Jf=function(e){return Object.freeze(e)},MSe=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Jf(this)}return e}(),xSe=function(){function e(t,r,n,a){return this.x=t,this.y=r,this.width=n,this.height=a,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Jf(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,a=t.top,i=t.right,o=t.bottom,s=t.left,l=t.width,A=t.height;return{x:r,y:n,top:a,right:i,bottom:o,left:s,width:l,height:A}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Q6=function(e){return e instanceof SVGElement&&"getBBox"in e},ISe=function(e){if(Q6(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var a=e,i=a.offsetWidth,o=a.offsetHeight;return!(i||o||e.getClientRects().length)},dAe=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},ySt=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},sy=typeof window<"u"?window:{},ex=new WeakMap,fAe=/auto|scroll/,CSt=/^tb|vertical/,wSt=/msie|trident/i.test(sy.navigator&&sy.navigator.userAgent),oA=function(e){return parseFloat(e||"0")},Vp=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new MSe((r?t:e)||0,(r?e:t)||0)},hAe=Jf({devicePixelContentBoxSize:Vp(),borderBoxSize:Vp(),contentBoxSize:Vp(),contentRect:new xSe(0,0,0,0)}),bSe=function(e,t){if(t===void 0&&(t=!1),ex.has(e)&&!t)return ex.get(e);if(ISe(e))return ex.set(e,hAe),hAe;var r=getComputedStyle(e),n=Q6(e)&&e.ownerSVGElement&&e.getBBox(),a=!wSt&&r.boxSizing==="border-box",i=CSt.test(r.writingMode||""),o=!n&&fAe.test(r.overflowY||""),s=!n&&fAe.test(r.overflowX||""),l=n?0:oA(r.paddingTop),A=n?0:oA(r.paddingRight),c=n?0:oA(r.paddingBottom),u=n?0:oA(r.paddingLeft),d=n?0:oA(r.borderTopWidth),f=n?0:oA(r.borderRightWidth),h=n?0:oA(r.borderBottomWidth),g=n?0:oA(r.borderLeftWidth),p=u+A,E=l+c,y=g+f,C=d+h,w=s?e.offsetHeight-C-e.clientHeight:0,B=o?e.offsetWidth-y-e.clientWidth:0,M=a?p+y:0,I=a?E+C:0,S=n?n.width:oA(r.width)-M-B,R=n?n.height:oA(r.height)-I-w,b=S+p+B+y,Q=R+E+w+C,D=Jf({devicePixelContentBoxSize:Vp(Math.round(S*devicePixelRatio),Math.round(R*devicePixelRatio),i),borderBoxSize:Vp(b,Q,i),contentBoxSize:Vp(S,R,i),contentRect:new xSe(u,l,S,R)});return ex.set(e,D),D},SSe=function(e,t,r){var n=bSe(e,r),a=n.borderBoxSize,i=n.contentBoxSize,o=n.devicePixelContentBoxSize;switch(t){case Wy.DEVICE_PIXEL_CONTENT_BOX:return o;case Wy.BORDER_BOX:return a;default:return i}},RSe=function(){function e(t){var r=bSe(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Jf([r.borderBoxSize]),this.contentBoxSize=Jf([r.contentBoxSize]),this.devicePixelContentBoxSize=Jf([r.devicePixelContentBoxSize])}return e}(),TSe=function(e){if(ISe(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},BSt=function(){var e=1/0,t=[];Vf.forEach(function(o){if(o.activeTargets.length!==0){var s=[];o.activeTargets.forEach(function(A){var c=new RSe(A.target),u=TSe(A.target);s.push(c),A.lastReportedSize=SSe(A.target,A.observedBox),u<e&&(e=u)}),t.push(function(){o.callback.call(o.observer,s,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var a=n[r];a()}return e},gAe=function(e){Vf.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(a){a.isActive()&&(TSe(a.target)>e?r.activeTargets.push(a):r.skippedTargets.push(a))})})},MSt=function(){var e=0;for(gAe(e);vSt();)e=BSt(),gAe(e);return mSt()&&ESt(),e>0},q8,QSe=[],xSt=function(){return QSe.splice(0).forEach(function(e){return e()})},ISt=function(e){if(!q8){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return xSt()}).observe(r,n),q8=function(){r.textContent="".concat(t?t--:t++)}}QSe.push(e),q8()},bSt=function(e){ISt(function(){requestAnimationFrame(e)})},OI=0,SSt=function(){return!!OI},RSt=250,TSt={attributes:!0,characterData:!0,childList:!0,subtree:!0},pAe=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],vAe=function(e){return e===void 0&&(e=0),Date.now()+e},Z8=!1,QSt=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=RSt),!Z8){Z8=!0;var n=vAe(t);bSt(function(){var a=!1;try{a=MSt()}finally{if(Z8=!1,t=n-vAe(),!SSt())return;a?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,TSt)};document.body?r():sy.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),pAe.forEach(function(r){return sy.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),pAe.forEach(function(r){return sy.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),z3=new QSt,mAe=function(e){!OI&&e>0&&z3.start(),OI+=e,!OI&&z3.stop()},DSt=function(e){return!Q6(e)&&!ySt(e)&&getComputedStyle(e).display==="inline"},FSt=function(){function e(t,r){this.target=t,this.observedBox=r||Wy.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=SSe(this.target,this.observedBox,!0);return DSt(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),_St=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),tx=new WeakMap,EAe=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},rx=function(){function e(){}return e.connect=function(t,r){var n=new _St(t,r);tx.set(t,n)},e.observe=function(t,r,n){var a=tx.get(t),i=a.observationTargets.length===0;EAe(a.observationTargets,r)<0&&(i&&Vf.push(a),a.observationTargets.push(new FSt(r,n&&n.box)),mAe(1),z3.schedule())},e.unobserve=function(t,r){var n=tx.get(t),a=EAe(n.observationTargets,r),i=n.observationTargets.length===1;a>=0&&(i&&Vf.splice(Vf.indexOf(n),1),n.observationTargets.splice(a,1),mAe(-1))},e.disconnect=function(t){var r=this,n=tx.get(t);n.observationTargets.slice().forEach(function(a){return r.unobserve(t,a.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),NSt=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");rx.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!dAe(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");rx.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!dAe(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");rx.unobserve(this,t)},e.prototype.disconnect=function(){rx.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const kSt=Object.freeze(Object.defineProperty({__proto__:null,ResizeObserver:NSt,ResizeObserverEntry:RSe,ResizeObserverSize:MSe},Symbol.toStringTag,{value:"Module"})),PSt=Un(kSt);var Eo={},yAe;function OSt(){if(yAe)return Eo;yAe=1;var e=Eo&&Eo.__assign||function(){return e=Object.assign||function(s){for(var l,A=1,c=arguments.length;A<c;A++){l=arguments[A];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(s[u]=l[u])}return s},e.apply(this,arguments)},t=Eo&&Eo.__createBinding||(Object.create?function(s,l,A,c){c===void 0&&(c=A);var u=Object.getOwnPropertyDescriptor(l,A);(!u||("get"in u?!l.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return l[A]}}),Object.defineProperty(s,c,u)}:function(s,l,A,c){c===void 0&&(c=A),s[c]=l[A]}),r=Eo&&Eo.__setModuleDefault||(Object.create?function(s,l){Object.defineProperty(s,"default",{enumerable:!0,value:l})}:function(s,l){s.default=l}),n=Eo&&Eo.__importStar||function(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var A in s)A!=="default"&&Object.prototype.hasOwnProperty.call(s,A)&&t(l,s,A);return r(l,s),l},a=Eo&&Eo.__rest||function(s,l){var A={};for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&l.indexOf(c)<0&&(A[c]=s[c]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,c=Object.getOwnPropertySymbols(s);u<c.length;u++)l.indexOf(c[u])<0&&Object.prototype.propertyIsEnumerable.call(s,c[u])&&(A[c[u]]=s[c[u]]);return A};Object.defineProperty(Eo,"__esModule",{value:!0});var i=n(cr());function o(s,l){l===void 0&&(l="ChartContainer");var A=i.default.forwardRef(function(c,u){var d=(0,i.useRef)(),f=(0,i.useState)(!1),h=f[0],g=f[1],p=c,E=p.className,y=E===void 0?"bizcharts":E,C=p.containerStyle,w=a(p,["className","containerStyle"]);return(0,i.useEffect)(function(){g(!0)},[]),i.default.createElement("div",{ref:d,className:y,style:e({position:"relative",height:c.height||"100%",width:c.width||"100%"},C)},h?i.default.createElement(s,e({ref:u,container:d.current},w)):i.default.createElement(i.default.Fragment,null))});return A.displayName=l||s.name,A}return Eo.default=o,Eo}var sA={},CAe;function DSe(){if(CAe)return sA;CAe=1;var e=sA&&sA.__assign||function(){return e=Object.assign||function(i){for(var o,s=1,l=arguments.length;s<l;s++){o=arguments[s];for(var A in o)Object.prototype.hasOwnProperty.call(o,A)&&(i[A]=o[A])}return i},e.apply(this,arguments)},t=sA&&sA.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(sA,"__esModule",{value:!0}),sA.withChartInstance=void 0;var r=t(cr()),n=r.default.createContext(null);n.displayName="RootChartContext";function a(i){var o=r.default.forwardRef(function(s,l){return r.default.createElement(n.Consumer,null,function(A){return r.default.createElement(i,e({ref:l},A,s))})});return o.displayName=i.name,o}return sA.withChartInstance=a,sA.default=n,sA}var lA={},wAe;function zSt(){if(wAe)return lA;wAe=1;var e=lA&&lA.__assign||function(){return e=Object.assign||function(i){for(var o,s=1,l=arguments.length;s<l;s++){o=arguments[s];for(var A in o)Object.prototype.hasOwnProperty.call(o,A)&&(i[A]=o[A])}return i},e.apply(this,arguments)},t=lA&&lA.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(lA,"__esModule",{value:!0}),lA.withGroupContext=void 0;var r=t(cr()),n=r.default.createContext(null);n.displayName="GroupContext";function a(i){var o=r.default.forwardRef(function(s,l){return r.default.createElement(n.Consumer,null,function(A){return r.default.createElement(i,e({ref:l,group:A},s))})});return o.displayName=i.name,o}return lA.withGroupContext=a,lA.default=n,lA}var yo={},nx={},BAe;function FSe(){if(BAe)return nx;BAe=1,Object.defineProperty(nx,"__esModule",{value:!0});var e={};return nx.default=function(t){return t=t||"g",e[t]?e[t]+=1:e[t]=1,t+e[t]},nx}var ax={},ix={},MAe;function _Se(){return MAe||(MAe=1,Object.defineProperty(ix,"__esModule",{value:!0}),ix.default=function(e){var t=typeof e;return e!==null&&t==="object"||t==="function"}),ix}var xAe;function om(){if(xAe)return ax;xAe=1,Object.defineProperty(ax,"__esModule",{value:!0});var e=Hc(),t=_Se();function r(n,a){if(n){var i;if(e.default(n))for(var o=0,s=n.length;o<s&&(i=a(n[o],o),i!==!1);o++);else if(t.default(n)){for(var l in n)if(n.hasOwnProperty(l)&&(i=a(n[l],l),i===!1))break}}}return ax.default=r,ax}var ox={},IAe;function u1(){if(IAe)return ox;IAe=1,Object.defineProperty(ox,"__esModule",{value:!0});var e=Q2();return ox.default=function(t){return e.default(t,"Function")},ox}var sx={},lx={},bAe;function NSe(){if(bAe)return lx;bAe=1,Object.defineProperty(lx,"__esModule",{value:!0});var e=function(t){return typeof t=="object"&&t!==null};return lx.default=e,lx}var Ax={},SAe;function jSt(){if(SAe)return Ax;SAe=1,Object.defineProperty(Ax,"__esModule",{value:!0});var e=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)};return Ax.default=e,Ax}var cx={},RAe;function d1(){if(RAe)return cx;RAe=1,Object.defineProperty(cx,"__esModule",{value:!0});var e=Q2();return cx.default=function(t){return e.default(t,"String")},cx}var TAe;function YSt(){if(TAe)return sx;TAe=1,Object.defineProperty(sx,"__esModule",{value:!0});var e=NSe(),t=jSt(),r=d1(),n=function(a,i){if(a===i)return!0;if(!a||!i||r.default(a)||r.default(i))return!1;if(t.default(a)||t.default(i)){if(a.length!==i.length)return!1;for(var o=!0,s=0;s<a.length&&(o=n(a[s],i[s]),!!o);s++);return o}if(e.default(a)||e.default(i)){var l=Object.keys(a),A=Object.keys(i);if(l.length!==A.length)return!1;for(var o=!0,s=0;s<l.length&&(o=n(a[l[s]],i[l[s]]),!!o);s++);return o}return!1};return sx.default=n,sx}var $8,QAe;function j2(){if(QAe)return $8;QAe=1;var e=function(){};return $8=e,$8}var Ug={},DAe;function D6(){if(DAe)return Ug;DAe=1;var e=Ug&&Ug.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ug,"__esModule",{value:!0});var t=e(om()),r=e(Hc()),n=e(_Se());function a(s,l){return s===l?s!==0||l!==0||1/s===1/l:s!==s&&l!==l}function i(s){return(0,r.default)(s)?s.length:(0,n.default)(s)?Object.keys(s).length:0}function o(s,l){if(a(s,l))return!0;if(typeof s!="object"||s===null||typeof l!="object"||l===null||(0,r.default)(s)!==(0,r.default)(l)||i(s)!==i(l))return!1;var A=!0;return(0,t.default)(s,function(c,u){return a(c,l[u])?!0:(A=!1,A)}),A}return Ug.default=o,Ug}var Hg={},FAe;function LSt(){if(FAe)return Hg;FAe=1;var e=Hg&&Hg.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Hg,"__esModule",{value:!0});var t=e(om()),r=e(d1()),n=function(a,i){var o={};return(0,t.default)(a,function(s,l){var A=!1;i.forEach(function(c){((0,r.default)(c)&&c===l||c instanceof RegExp&&l.match(c))&&(A=!0)}),A||(o[l]=s)}),o};return Hg.default=n,Hg}var Gg={},ux={},_Ae;function kSe(){if(_Ae)return ux;_Ae=1,Object.defineProperty(ux,"__esModule",{value:!0});var e=om();return ux.default=e.default,ux}var NAe;function PSe(){if(NAe)return Gg;NAe=1;var e=Gg&&Gg.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Gg,"__esModule",{value:!0});var t=e(Hc()),r=e(kSe()),n=function(a){var i=[],o=function(s){if(i.push(s),i.includes(s)||typeof s!="object"||s===null)return s;var l;if((0,t.default)(s)){l=[];for(var A=0,c=s.length;A<c;A++)typeof s[A]=="object"&&s[A]!=null?l[A]=o(s[A]):l[A]=s[A]}else l={},(0,r.default)(s,function(u,d){typeof u=="object"&&u!=null?l[d]=o(u):l[d]=u});return l};return o(a)};return Gg.default=n,Gg}var Kg={},kAe;function USt(){return kAe||(kAe=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.REACT_PIVATE_PROPS=void 0,Kg.REACT_PIVATE_PROPS=["children","hooks","ref"],Kg.default={}),Kg}var Jn={},PAe;function HSt(){if(PAe)return Jn;PAe=1;var e=Jn&&Jn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.TOOLTIP_EVENT=Jn.ANNOTATION_EVENT_TARGET=Jn.AXIS_EVENT_TARGET=Jn.LEGEND_EVENT=Jn.GEOM_NAME=Jn.LEGEND_EVENT_TARGETS=Jn.LIFE_CIRCLE_NAMES=Jn.MOBILE_EVENT_NAMES=Jn.DRAG_EVENT_NAMES=Jn.pickEventName=Jn.BASE_EVENT_NAMES=void 0;var t=e(kSe());Jn.BASE_EVENT_NAMES=["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave","contextmenu","click"];var r=["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave","contextmenu","click","show","hide","change"],n=new RegExp("^on(.*)(?=(".concat(r.map(function(i){return i.replace(/^\S/,function(o){return o.toUpperCase()})}).join("|"),"))")),a=function(i){var o=[];return(0,t.default)(i,function(s,l){var A=l.match(/^on(.*)/);if(A){var c=l.match(n);if(c){var u=c[1].replace(/([A-Z])/g,"-$1").toLowerCase();u=u.replace("column","interval"),u?o.push([l,"".concat(u.replace("-",""),":").concat(c[2].toLowerCase())]):o.push([l,c[2].toLowerCase()])}else o.push([l,A[1].toLowerCase()])}}),o};return Jn.pickEventName=a,Jn.DRAG_EVENT_NAMES=["dragstart","drag","dragend","dragover","dragenter","dragleave","drop"],Jn.MOBILE_EVENT_NAMES=["touchstart","touchmove","touchend"],Jn.LIFE_CIRCLE_NAMES=["beforerender","afterrender","beforepaint","afterpaint","beforechangedata","afterchangedata","beforeclear","afterclear","beforedestroy"],Jn.LEGEND_EVENT_TARGETS=["legend","legend-title","legend-item","legend-item-name","legend-item-Maker","legend-item-value"],Jn.GEOM_NAME=["line","area","point","interval","polygon","edge","schema"],Jn.LEGEND_EVENT=["legend:valuechanged"],Jn.AXIS_EVENT_TARGET=["axis-label","axis-line","axis-tick","axis-title"],Jn.ANNOTATION_EVENT_TARGET=["annotation","annotation-line","annotation-line-text","annotation-image","annotation-region","annotation-text"],Jn.TOOLTIP_EVENT=["tooltip:show","tooltip:hide","tooltip:change"],Jn}var OAe;function GSt(){if(OAe)return yo;OAe=1;var e=yo&&yo.__extends||function(){var B=function(M,I){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,R){S.__proto__=R}||function(S,R){for(var b in R)Object.prototype.hasOwnProperty.call(R,b)&&(S[b]=R[b])},B(M,I)};return function(M,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");B(M,I);function S(){this.constructor=M}M.prototype=I===null?Object.create(I):(S.prototype=I.prototype,new S)}}(),t=yo&&yo.__assign||function(){return t=Object.assign||function(B){for(var M,I=1,S=arguments.length;I<S;I++){M=arguments[I];for(var R in M)Object.prototype.hasOwnProperty.call(M,R)&&(B[R]=M[R])}return B},t.apply(this,arguments)},r=yo&&yo.__rest||function(B,M){var I={};for(var S in B)Object.prototype.hasOwnProperty.call(B,S)&&M.indexOf(S)<0&&(I[S]=B[S]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,S=Object.getOwnPropertySymbols(B);R<S.length;R++)M.indexOf(S[R])<0&&Object.prototype.propertyIsEnumerable.call(B,S[R])&&(I[S[R]]=B[S[R]]);return I},n=yo&&yo.__spreadArray||function(B,M,I){if(I||arguments.length===2)for(var S=0,R=M.length,b;S<R;S++)(b||!(S in M))&&(b||(b=Array.prototype.slice.call(M,0,S)),b[S]=M[S]);return B.concat(b||Array.prototype.slice.call(M))},a=yo&&yo.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(yo,"__esModule",{value:!0});var i=a(FSe()),o=a(om()),s=a(u1()),l=a(Hc()),A=a(YSt()),c=jo(),u=a(j2()),d=a(D6()),f=a(LSt()),h=a(PSe()),g=USt(),p=Pa(),E=a(Xbe),y=HSt(),C=function(B){return B&&B.rows?B.rows:B},w=function(B){e(M,B);function M(){var I=B!==null&&B.apply(this,arguments)||this;return I.config={},I}return M.prototype.createInstance=function(I){this.chart=new c.Chart(t({},I)),this.key=(0,i.default)("bx-chart"),this.chart.emit("initialed"),this.isNewInstance=!0,this.extendGroup={isChartCanvas:!0,chart:this.chart}},M.prototype.render=function(){if(this.chart)try{this.isNewInstance?(this.chart.render(),this.onGetG2Instance(),this.chart.unbindAutoFit(),this.isNewInstance=!1):this.chart.forceReRender?this.chart.render():this.chart.render(!0),this.chart.emit("processElemens")}catch(I){this.emit("renderError",I),this.destory(),console&&console.error(I==null?void 0:I.stack)}},M.prototype.onGetG2Instance=function(){(0,s.default)(this.config.onGetG2Instance)&&this.config.onGetG2Instance(this.chart)},M.prototype.shouldReCreateInstance=function(I){if(!this.chart||I.forceUpdate)return!0;var S=this.config,R=S.data,b=r(S,["data"]),Q=I.data,D=r(I,["data"]);if((0,l.default)(this.config.data)&&R.length===0&&(0,l.default)(Q)&&Q.length!==0)return!0;var F=n(n([],g.REACT_PIVATE_PROPS,!0),["scale","width","height","container","_container","_interactions","placeholder",/^on/,/^\_on/],!1);return!(0,A.default)((0,f.default)(b,n([],F,!0)),(0,f.default)(D,n([],F,!0)))},M.prototype.update=function(I){var S=this,R=(0,h.default)(this.adapterOptions(I));this.shouldReCreateInstance(R)&&(this.destory(),this.createInstance(R)),R.pure&&(this.chart.axis(!1),this.chart.tooltip(!1),this.chart.legend(!1),this.chart.isPure=!0);var b=(0,y.pickEventName)(this.config),Q=(0,y.pickEventName)(R),D=R.data,F=R.interactions,N=r(R,["data","interactions"]),k=this.config,O=k.data,P=k.interactions,z=P===void 0?[]:P;if(this.isNewInstance||b.forEach(function(Y){S.chart.off(Y[1],S.config["_".concat(Y[0])])}),Q.forEach(function(Y){R["_".concat(Y[0])]=function(W){R[Y[0]](W,S.chart)},S.chart.on(Y[1],R["_".concat(Y[0])])}),(0,l.default)(O)&&O.length){var j=!0;if(R.notCompareData&&(j=!1),O.length!==D.length?j=!1:O.forEach(function(Y,W){(0,d.default)(Y,D[W])||(j=!1)}),!j){this.chart.isDataChanged=!0,this.chart.emit(p.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA),this.chart.data(D);for(var V=this.chart.views,L=0,K=V.length;L<K;L++){var J=V[L];J.changeData(D)}this.chart.emit(p.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA)}}else this.chart.data(D);this.chart.scale(N.scale),N.animate===!1?this.chart.animate(!1):this.chart.animate(!0),z.forEach(function(Y){S.chart.removeInteraction(Y)}),F.forEach(function(Y){S.chart.interaction(Y)}),(0,o.default)(this.config.filter,function(Y,W){(0,l.default)(Y)?S.chart.filter(Y[0],null):S.chart.filter(W,null)}),(0,o.default)(R.filter,function(Y,W){(0,l.default)(Y)?S.chart.filter(Y[0],Y[1]):S.chart.filter(W,Y)}),this.chart.theme(R.theme),this.config=R},M.prototype.adapterOptions=function(I){var S=I.data,R=r(I,["data"]),b=(0,f.default)(R,n([],g.REACT_PIVATE_PROPS,!0));return b.forceFit&&(0,u.default)(!1,"forceFit 已废弃，请使用`autoFit`替代"),b.data=C(S)||[],b},M.prototype.destory=function(){if(this.chart){this.extendGroup=null;var I=this.chart;I.destroy(),I=null,this.chart=null,this.config={}}},M}(E.default);return yo.default=w,yo}var zAe;function KSt(){if(zAe)return oi;zAe=1;var e=oi&&oi.__extends||function(){var y=function(C,w){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,M){B.__proto__=M}||function(B,M){for(var I in M)Object.prototype.hasOwnProperty.call(M,I)&&(B[I]=M[I])},y(C,w)};return function(C,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");y(C,w);function B(){this.constructor=C}C.prototype=w===null?Object.create(w):(B.prototype=w.prototype,new B)}}(),t=oi&&oi.__assign||function(){return t=Object.assign||function(y){for(var C,w=1,B=arguments.length;w<B;w++){C=arguments[w];for(var M in C)Object.prototype.hasOwnProperty.call(C,M)&&(y[M]=C[M])}return y},t.apply(this,arguments)},r=oi&&oi.__createBinding||(Object.create?function(y,C,w,B){B===void 0&&(B=w);var M=Object.getOwnPropertyDescriptor(C,w);(!M||("get"in M?!C.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return C[w]}}),Object.defineProperty(y,B,M)}:function(y,C,w,B){B===void 0&&(B=w),y[B]=C[w]}),n=oi&&oi.__setModuleDefault||(Object.create?function(y,C){Object.defineProperty(y,"default",{enumerable:!0,value:C})}:function(y,C){y.default=C}),a=oi&&oi.__importStar||function(y){if(y&&y.__esModule)return y;var C={};if(y!=null)for(var w in y)w!=="default"&&Object.prototype.hasOwnProperty.call(y,w)&&r(C,y,w);return n(C,y),C},i=oi&&oi.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(oi,"__esModule",{value:!0}),oi.Chart=void 0;var o=i(cr()),s=i(pSt()),l=Wbe(),A=PSt,c=a(BSe()),u=i(OSt()),d=i(DSe()),f=i(i1()),h=i(zSt()),g=i(GSt()),p=Gt,E=oi.Chart=function(y){e(C,y);function C(w){var B=y.call(this,w)||this;return B.isRootView=!0,B.resize=(0,s.default)(function(){var M,I=B.chartHelper.chart;if(B.props.autoFit&&B.chartHelper.chart){var S=(M=(0,l.getChartSize)(B.props.container,B.props.autoFit,I.width,I.height),M.width),R=M.height;(I.width!==S||I.height!==R)&&(I.changeSize(S,R),I.emit("resize"))}},300),B.resizeObserver=new A.ResizeObserver(B.resize),B.resizeObserver.observe(w.container),B.chartHelper=new g.default,B}return C.prototype.componentDidMount=function(){this.isError?this.chartHelper.destory():this.chartHelper.render()},C.prototype.componentDidUpdate=function(){var w;if(this.isError){this.chartHelper.destory();return}var B=(w=this.props,w.width),M=w.height,I=w.autoFit;if(!I&&this.chartHelper.chart)if(B>=0&&B!==this.chartHelper.chart.width||M>=0&&M!==this.chartHelper.chart.height){var S=B||this.chartHelper.chart.width,R=M||this.chartHelper.chart.height;this.chartHelper.chart.changeSize(S,R),this.chartHelper.chart.emit("resize")}else this.chartHelper.render();else this.chartHelper.render()},C.prototype.componentWillUnmount=function(){this.chartHelper.destory(),this.resizeObserver.unobserve(this.props.container)},C.prototype.getG2Instance=function(){return this.chartHelper.chart},C.prototype.render=function(){var w,B=this,M=(w=this.props,w.placeholder),I=w.data,S=w.errorContent,R=this.props.ErrorBoundaryProps;if((I===void 0||I.length===0)&&M){this.chartHelper.destory();var b=M===!0?o.default.createElement("div",{style:{position:"relative",top:"48%",color:"#aaa",textAlign:"center"}},"暂无数据"):M;return o.default.createElement(c.default,t({},R),b)}return this.chartHelper.update(this.props),S?R=t({fallback:S},R):R={FallbackComponent:c.ErrorFallback},o.default.createElement(c.default,t({},R,{key:this.chartHelper.key,onError:function(){for(var Q=[],D=0;D<arguments.length;D++)Q[D]=arguments[D];B.isError=!0,(0,p.isFunction)(R.onError)&&R.onError.apply(R,Q)},onReset:function(){for(var Q=[],D=0;D<arguments.length;D++)Q[D]=arguments[D];B.isError=!1,(0,p.isFunction)(R.onReset)&&R.onReset.apply(R,Q)},resetKeys:[this.chartHelper.key],fallback:S}),o.default.createElement(d.default.Provider,{value:this.chartHelper},o.default.createElement(f.default.Provider,{value:this.chartHelper.chart},o.default.createElement(h.default.Provider,{value:this.chartHelper.extendGroup},this.props.children))))},C.defaultProps={placeholder:!1,visible:!0,interactions:[],filter:[]},C}(o.default.Component);return oi.default=(0,u.default)(E),oi}var VSt=KSt();const zh=Nr(VSt);var vu={},dx={},of={},jAe;function JSt(){if(jAe)return of;jAe=1,Object.defineProperty(of,"__esModule",{value:!0}),of.getTranslateDirection=of.directionToPosition=void 0;var e=Pa();function t(l,A,c){return c===e.DIRECTION.TOP?[l.minX+l.width/2-A.width/2,l.minY]:c===e.DIRECTION.BOTTOM?[l.minX+l.width/2-A.width/2,l.maxY-A.height]:c===e.DIRECTION.LEFT?[l.minX,l.minY+l.height/2-A.height/2]:c===e.DIRECTION.RIGHT?[l.maxX-A.width,l.minY+l.height/2-A.height/2]:c===e.DIRECTION.TOP_LEFT||c===e.DIRECTION.LEFT_TOP?[l.tl.x,l.tl.y]:c===e.DIRECTION.TOP_RIGHT||c===e.DIRECTION.RIGHT_TOP?[l.tr.x-A.width,l.tr.y]:c===e.DIRECTION.BOTTOM_LEFT||c===e.DIRECTION.LEFT_BOTTOM?[l.bl.x,l.bl.y-A.height]:c===e.DIRECTION.BOTTOM_RIGHT||c===e.DIRECTION.RIGHT_BOTTOM?[l.br.x-A.width,l.br.y-A.height]:[0,0]}of.directionToPosition=t;function r(l,A){if(A.isTransposed)switch(l){case e.DIRECTION.BOTTOM:return e.DIRECTION.LEFT;case e.DIRECTION.LEFT:return e.DIRECTION.BOTTOM;case e.DIRECTION.RIGHT:return e.DIRECTION.TOP;case e.DIRECTION.TOP:return e.DIRECTION.RIGHT}return l}function n(l){return l===e.DIRECTION.LEFT?e.DIRECTION.RIGHT:l===e.DIRECTION.RIGHT?e.DIRECTION.LEFT:l}function a(l){return l===e.DIRECTION.TOP?e.DIRECTION.BOTTOM:l===e.DIRECTION.BOTTOM?e.DIRECTION.TOP:l}function i(l,A){var c=A.matrix[0],u=A.matrix[4],d=l;return c<0&&(d=n(d)),u<0&&(d=a(d)),d}function o(l,A){var c=l;return A.isReflect("x")&&(c=n(c)),A.isReflect("y")&&(c=a(c)),c}function s(l,A){var c=l;return c=r(c,A),c=i(c,A),c=o(c,A),c}return of.getTranslateDirection=s,of}var YAe;function WSt(){if(YAe)return dx;YAe=1,Object.defineProperty(dx,"__esModule",{value:!0});var e=Kt,t=Gt,r=Pa(),n=wd(),a=Ph(),i=am(),o=JSt(),s=Oh(),l=ASe(),A=im(),c=R2();function u(h,g){return(0,t.isBoolean)(h)?h===!1?!1:{}:(0,t.get)(h,[g],h)}function d(h){return(0,t.get)(h,"position",r.DIRECTION.BOTTOM)}var f=function(h){(0,e.__extends)(g,h);function g(p){var E=h.call(this,p)||this;return E.container=E.view.getLayer(r.LAYER.FORE).addGroup(),E}return Object.defineProperty(g.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),g.prototype.init=function(){},g.prototype.render=function(){this.update()},g.prototype.layout=function(){var p=this;this.layoutBBox=this.view.viewBBox,(0,t.each)(this.components,function(E){var y=E.component,C=E.direction,w=(0,l.getLegendLayout)(C),B=y.get("maxWidthRatio"),M=y.get("maxHeightRatio"),I=p.getCategoryLegendSizeCfg(w,B,M),S=y.get("maxWidth"),R=y.get("maxHeight");y.update({maxWidth:Math.min(I.maxWidth,S||0),maxHeight:Math.min(I.maxHeight,R||0)});var b=y.get("padding"),Q=y.getLayoutBBox(),D=new i.BBox(Q.x,Q.y,Q.width,Q.height).expand(b),F=(0,o.directionToPosition)(p.view.viewBBox,D,C),N=F[0],k=F[1],O=(0,o.directionToPosition)(p.layoutBBox,D,C),P=O[0],z=O[1],j=0,V=0;C.startsWith("top")||C.startsWith("bottom")?(j=N,V=z):(j=P,V=k),y.setLocation({x:j+b[3],y:V+b[0]}),p.layoutBBox=p.layoutBBox.cut(D,C)})},g.prototype.update=function(){var p=this;this.option=this.view.getOptions().legends;var E={},y=function(b,Q,D){var F=p.getId(D.field),N=p.getComponentById(F);if(N){var k=void 0,O=u(p.option,D.field);O!==!1&&((0,t.get)(O,"custom")?k=p.getCategoryCfg(b,Q,D,O,!0):D.isLinear?k=p.getContinuousCfg(b,Q,D,O):D.isCategory&&(k=p.getCategoryCfg(b,Q,D,O))),k&&((0,s.omit)(k,["container"]),N.direction=d(O),N.component.update(k),E[F]=!0)}else{var P=p.createFieldLegend(b,Q,D);P&&(P.component.init(),p.components.push(P),E[F]=!0)}};if((0,t.get)(this.option,"custom")){var C="global-custom",w=this.getComponentById(C);if(w){var B=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);(0,s.omit)(B,["container"]),w.component.update(B),E[C]=!0}else{var M=this.createCustomLegend(void 0,void 0,void 0,this.option);if(M){M.init();var I=r.LAYER.FORE,S=d(this.option);this.components.push({id:C,component:M,layer:I,direction:S,type:r.COMPONENT_TYPE.LEGEND,extra:void 0}),E[C]=!0}}}else this.loopLegends(y);var R=[];(0,t.each)(this.getComponents(),function(b){E[b.id]?R.push(b):b.component.destroy()}),this.components=R},g.prototype.clear=function(){h.prototype.clear.call(this),this.container.clear()},g.prototype.destroy=function(){h.prototype.destroy.call(this),this.container.remove(!0)},g.prototype.getGeometries=function(p){var E=this,y=p.geometries;return(0,t.each)(p.views,function(C){y=y.concat(E.getGeometries(C))}),y},g.prototype.loopLegends=function(p){var E=this.view.getRootView()===this.view;if(E){var y=this.getGeometries(this.view),C={};(0,t.each)(y,function(w){var B=w.getGroupAttributes();(0,t.each)(B,function(M){var I=M.getScale(M.type);!I||I.type==="identity"||C[I.field]||(p(w,M,I),C[I.field]=!0)})})}},g.prototype.createFieldLegend=function(p,E,y){var C,w=u(this.option,y.field),B=r.LAYER.FORE,M=d(w);if(w!==!1&&((0,t.get)(w,"custom")?C=this.createCustomLegend(p,E,y,w):y.isLinear?C=this.createContinuousLegend(p,E,y,w):y.isCategory&&(C=this.createCategoryLegend(p,E,y,w))),C)return C.set("field",y.field),{id:this.getId(y.field),component:C,layer:B,direction:M,type:r.COMPONENT_TYPE.LEGEND,extra:{scale:y}}},g.prototype.createCustomLegend=function(p,E,y,C){var w=this.getCategoryCfg(p,E,y,C,!0);return new n.CategoryLegend(w)},g.prototype.createContinuousLegend=function(p,E,y,C){var w=this.getContinuousCfg(p,E,y,(0,s.omit)(C,["value"]));return new n.ContinuousLegend(w)},g.prototype.createCategoryLegend=function(p,E,y,C){var w=this.getCategoryCfg(p,E,y,C);return new n.CategoryLegend(w)},g.prototype.getContinuousCfg=function(p,E,y,C){var w=y.getTicks(),B=(0,t.find)(w,function(F){return F.value===0}),M=(0,t.find)(w,function(F){return F.value===1}),I=w.map(function(F){var N=F.value,k=F.tickValue,O=E.mapping(y.invert(N)).join("");return{value:k,attrValue:O,color:O,scaleValue:N}});B||I.push({value:y.min,attrValue:E.mapping(y.invert(0)).join(""),color:E.mapping(y.invert(0)).join(""),scaleValue:0}),M||I.push({value:y.max,attrValue:E.mapping(y.invert(1)).join(""),color:E.mapping(y.invert(1)).join(""),scaleValue:1}),I.sort(function(F,N){return F.value-N.value});var S={min:(0,t.head)(I).value,max:(0,t.last)(I).value,colors:[],rail:{type:E.type},track:{}};E.type==="size"&&(S.track={style:{fill:E.type==="size"?this.view.getTheme().defaultColor:void 0}}),E.type==="color"&&(S.colors=I.map(function(F){return F.attrValue}));var R=this.container,b=d(C),Q=(0,l.getLegendLayout)(b),D=(0,t.get)(C,"title");return D&&(D=(0,t.deepMix)({text:(0,A.getName)(y)},D)),S.container=R,S.layout=Q,S.title=D,S.animateOption=a.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(S,C,"continuous")},g.prototype.getCategoryCfg=function(p,E,y,C,w){var B=this.container,M=(0,t.get)(C,"position",r.DIRECTION.BOTTOM),I=(0,l.getLegendThemeCfg)(this.view.getTheme(),M),S=(0,t.get)(I,["marker"]),R=(0,t.get)(C,"marker"),b=(0,l.getLegendLayout)(M),Q=(0,t.get)(I,["pageNavigator"]),D=(0,t.get)(C,"pageNavigator"),F=w?(0,l.getCustomLegendItems)(S,R,C.items):(0,l.getLegendItems)(this.view,p,E,S,R),N=(0,t.get)(C,"title");N&&(N=(0,t.deepMix)({text:y?(0,A.getName)(y):""},N));var k=(0,t.get)(C,"maxWidthRatio"),O=(0,t.get)(C,"maxHeightRatio"),P=this.getCategoryLegendSizeCfg(b,k,O);P.container=B,P.layout=b,P.items=F,P.title=N,P.animateOption=a.DEFAULT_ANIMATE_CFG,P.pageNavigator=(0,t.deepMix)({},Q,D);var z=this.mergeLegendCfg(P,C,M);z.reversed&&z.items.reverse();var j=(0,t.get)(z,"maxItemWidth");return j&&j<=1&&(z.maxItemWidth=this.view.viewBBox.width*j),z},g.prototype.mergeLegendCfg=function(p,E,y){var C=y.split("-")[0],w=(0,l.getLegendThemeCfg)(this.view.getTheme(),C);return(0,t.deepMix)({},w,p,E)},g.prototype.getId=function(p){return this.name+"-"+p},g.prototype.getComponentById=function(p){return(0,t.find)(this.components,function(E){return E.id===p})},g.prototype.getCategoryLegendSizeCfg=function(p,E,y){E===void 0&&(E=r.COMPONENT_MAX_VIEW_PERCENTAGE),y===void 0&&(y=r.COMPONENT_MAX_VIEW_PERCENTAGE);var C=this.view.viewBBox,w=C.width,B=C.height;return p==="vertical"?{maxWidth:w*E,maxHeight:B}:{maxWidth:w,maxHeight:B*y}},g}(c.Controller);return dx.default=f,dx}var r0={},fx={},n0={},LAe;function XSt(){if(LAe)return n0;LAe=1,Object.defineProperty(n0,"__esModule",{value:!0}),n0.clearList=void 0;var e=Gt,t="inactive",r="active";function n(a){var i=a.getItems();(0,e.each)(i,function(o){a.hasState(o,r)&&a.setItemState(o,r,!1),a.hasState(o,t)&&a.setItemState(o,t,!1)})}return n0.clearList=n,n0}var hx={},UAe;function Y2(){if(UAe)return hx;UAe=1,Object.defineProperty(hx,"__esModule",{value:!0});var e=Kt,t=Gt,r=(0,e.__importDefault)(Vl()),n=Ki(),a=Ki(),i=function(o){(0,e.__extends)(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.stateName="",l.ignoreItemStates=[],l}return s.prototype.getTriggerListInfo=function(){var l=(0,a.getDelegationObject)(this.context),A=null;return(0,a.isList)(l)&&(A={item:l.item,list:l.component}),A},s.prototype.getAllowComponents=function(){var l=this,A=this.context.view,c=(0,n.getComponents)(A),u=[];return(0,t.each)(c,function(d){d.isList()&&l.allowSetStateByElement(d)&&u.push(d)}),u},s.prototype.hasState=function(l,A){return l.hasState(A,this.stateName)},s.prototype.clearAllComponentsState=function(){var l=this,A=this.getAllowComponents();(0,t.each)(A,function(c){c.clearItemsState(l.stateName)})},s.prototype.allowSetStateByElement=function(l){var A=l.get("field");if(!A)return!1;if(this.cfg&&this.cfg.componentNames){var c=l.get("name");if(this.cfg.componentNames.indexOf(c)===-1)return!1}var u=this.context.view,d=(0,a.getScaleByField)(u,A);return d&&d.isCategory},s.prototype.allowSetStateByItem=function(l,A){var c=this.ignoreItemStates;if(c.length){var u=c.filter(function(d){return A.hasState(l,d)});return u.length===0}return!0},s.prototype.setStateByElement=function(l,A,c){var u=l.get("field"),d=this.context.view,f=(0,a.getScaleByField)(d,u),h=(0,a.getElementValue)(A,u),g=f.getText(h);this.setItemsState(l,g,c)},s.prototype.setStateEnable=function(l){var A=this,c=(0,a.getCurrentElement)(this.context);if(c){var u=this.getAllowComponents();(0,t.each)(u,function(g){A.setStateByElement(g,c,l)})}else{var d=(0,a.getDelegationObject)(this.context);if((0,a.isList)(d)){var f=d.item,h=d.component;this.allowSetStateByElement(h)&&this.allowSetStateByItem(f,h)&&this.setItemState(h,f,l)}}},s.prototype.setItemsState=function(l,A,c){var u=this,d=l.getItems();(0,t.each)(d,function(f){f.name===A&&u.setItemState(l,f,c)})},s.prototype.setItemState=function(l,A,c){l.setItemState(A,this.stateName,c)},s.prototype.setState=function(){this.setStateEnable(!0)},s.prototype.reset=function(){this.setStateEnable(!1)},s.prototype.toggle=function(){var l=this.getTriggerListInfo();if(l&&l.item){var A=l.list,c=l.item,u=this.hasState(A,c);this.setItemState(A,c,!u)}},s.prototype.clear=function(){var l=this.getTriggerListInfo();l?l.list.clearItemsState(this.stateName):this.clearAllComponentsState()},s}(r.default);return hx.default=i,hx}var HAe;function qSt(){if(HAe)return fx;HAe=1,Object.defineProperty(fx,"__esModule",{value:!0});var e=Kt,t=Gt,r=XSt(),n=(0,e.__importDefault)(Y2()),a="inactive",i="active",o=function(s){(0,e.__extends)(l,s);function l(){var A=s!==null&&s.apply(this,arguments)||this;return A.stateName=i,A.ignoreItemStates=["unchecked"],A}return l.prototype.setItemsState=function(A,c,u){this.setHighlightBy(A,function(d){return d.name===c},u)},l.prototype.setItemState=function(A,c,u){A.getItems(),this.setHighlightBy(A,function(d){return d===c},u)},l.prototype.setHighlightBy=function(A,c,u){var d=A.getItems();if(u)(0,t.each)(d,function(g){c(g)?(A.hasState(g,a)&&A.setItemState(g,a,!1),A.setItemState(g,i,!0)):A.hasState(g,i)||A.setItemState(g,a,!0)});else{var f=A.getItemsByState(i),h=!0;(0,t.each)(f,function(g){if(!c(g))return h=!1,!1}),h?this.clear():(0,t.each)(d,function(g){c(g)&&(A.hasState(g,i)&&A.setItemState(g,i,!1),A.setItemState(g,a,!0))})}},l.prototype.highlight=function(){this.setState()},l.prototype.clear=function(){var A=this.getTriggerListInfo();if(A)(0,r.clearList)(A.list);else{var c=this.getAllowComponents();(0,t.each)(c,function(u){u.clearItemsState(i),u.clearItemsState(a)})}},l}(n.default);return fx.default=o,fx}var gx={},GAe;function ZSt(){if(GAe)return gx;GAe=1,Object.defineProperty(gx,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(Y2()),r=function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="active",i}return a.prototype.active=function(){this.setState()},a}(t.default);return gx.default=r,gx}var px={},KAe;function $St(){if(KAe)return px;KAe=1,Object.defineProperty(px,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(Y2()),r=function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="unchecked",i}return a.prototype.unchecked=function(){this.setState()},a}(t.default);return px.default=r,px}var vx={},VAe;function eRt(){if(VAe)return vx;VAe=1,Object.defineProperty(vx,"__esModule",{value:!0});var e=Kt,t=Gt,r=(0,e.__importDefault)(Vl()),n=Ki(),a=function(i){(0,e.__extends)(o,i);function o(){return i!==null&&i.apply(this,arguments)||this}return o.prototype.filterView=function(s,l,A){var c=this;s.getScaleByField(l)&&s.filter(l,A),s.views&&s.views.length&&(0,t.each)(s.views,function(u){c.filterView(u,l,A)})},o.prototype.filter=function(){var s=(0,n.getDelegationObject)(this.context);if(s){var l=this.context.view,A=s.component,c=A.get("field");if((0,n.isList)(s)){if(c){var u=A.getItemsByState("unchecked"),d=(0,n.getScaleByField)(l,c),f=u.map(function(E){return E.name});f.length?this.filterView(l,c,function(E){var y=d.getText(E);return!f.includes(y)}):this.filterView(l,c,null),l.render(!0)}}else if((0,n.isSlider)(s)){var h=A.getValue(),g=h[0],p=h[1];this.filterView(l,c,function(E){return E>=g&&E<=p}),l.render(!0)}}},o}(r.default);return vx.default=a,vx}var mx={},JAe;function tRt(){if(JAe)return mx;JAe=1,Object.defineProperty(mx,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(Y2()),r=function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="selected",i}return a.prototype.selected=function(){this.setState()},a}(t.default);return mx.default=r,mx}var WAe;function rRt(){if(WAe)return r0;WAe=1;var e=r0&&r0.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(r0,"__esModule",{value:!0});var t=e(qSt()),r=e(ZSt()),n=e($St()),a=e(eRt()),i=e(tRt()),o=jo();return(0,o.registerAction)("list-active",r.default),(0,o.registerAction)("list-selected",i.default),(0,o.registerAction)("list-highlight",t.default),(0,o.registerAction)("list-unchecked",n.default),(0,o.registerAction)("data-filter",a.default),(0,o.registerAction)("legend-item-highlight",t.default,{componentNames:["legend"]}),(0,o.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),(0,o.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),(0,o.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:"list-unchecked:toggle"},{trigger:"legend-item:click",action:"data-filter:filter"}]}),r0}var XAe;function nRt(){if(XAe)return vu;XAe=1;var e=vu&&vu.__rest||function(A,c){var u={};for(var d in A)Object.prototype.hasOwnProperty.call(A,d)&&c.indexOf(d)<0&&(u[d]=A[d]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,d=Object.getOwnPropertySymbols(A);f<d.length;f++)c.indexOf(d[f])<0&&Object.prototype.propertyIsEnumerable.call(A,d[f])&&(u[d[f]]=A[d[f]]);return u},t=vu&&vu.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(vu,"__esModule",{value:!0});var r=cr(),n=t(WSt()),a=t(u1()),i=jo(),o=t(T2());rRt(),(0,i.registerComponentController)("legend",n.default);var s=function(A){return A===void 0};function l(A){var c=A.name,u=A.visible,d=u===void 0?!0:u;A.onChange;var f=A.filter,h=e(A,["name","visible","onChange","filter"]),g=(0,o.default)();return s(c)?d?g.legend(h):g.legend(!1):d?g.legend(c,h):g.legend(c,!1),(0,a.default)(f)&&c&&g.filter(c,f),(0,r.useEffect)(function(){g.on("legend:valuechanged",function(p){(0,a.default)(A.onChange)&&A.onChange(p,g)}),g.on("legend-item:click",function(p){if((0,a.default)(A.onChange)){var E=p.target,y=E.get("delegateObject"),C=y.item;p.item=C,A.onChange(p,g)}})},[]),null}return vu.default=l,vu}var aRt=nRt();const jh=Nr(aRt);var mu={},Ex={},yx={},sf={},qAe;function GA(){if(qAe)return sf;qAe=1,Object.defineProperty(sf,"__esModule",{value:!0}),sf.getBackgroundRectStyle=sf.getStyle=void 0;var e=Kt,t=Gt;function r(a,i,o,s){s===void 0&&(s="");var l=a.style,A=l===void 0?{}:l,c=a.defaultStyle,u=a.color,d=a.size,f=(0,e.__assign)((0,e.__assign)({},c),A);return u&&(i&&(A.stroke||(f.stroke=u)),o&&(A.fill||(f.fill=u))),s&&(0,t.isNil)(A[s])&&!(0,t.isNil)(d)&&(f[s]=d),f}sf.getStyle=r;function n(a){return(0,t.deepMix)({},{fill:"#CCD6EC",fillOpacity:.3},(0,t.get)(a,["background","style"]))}return sf.getBackgroundRectStyle=n,sf}var Ci={},ZAe;function f1(){if(ZAe)return Ci;ZAe=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.getRectWithCornerRadius=Ci.getFunnelPath=Ci.getIntervalRectPath=Ci.getBackgroundRectPath=Ci.parseRadius=Ci.getRectPath=Ci.getRectPoints=void 0;var e=Gt,t=fs();function r(A){var c=A.x,u=A.y,d=A.y0,f=A.size,h,g;(0,e.isArray)(u)?(h=u[0],g=u[1]):(h=d,g=u);var p,E;(0,e.isArray)(c)?(p=c[0],E=c[1]):(p=c-f/2,E=c+f/2);var y=[{x:p,y:h},{x:p,y:g}];return y.push({x:E,y:g},{x:E,y:h}),y}Ci.getRectPoints=r;function n(A,c){c===void 0&&(c=!0);var u=[],d=A[0];u.push(["M",d.x,d.y]);for(var f=1,h=A.length;f<h;f++)u.push(["L",A[f].x,A[f].y]);return c&&(u.push(["L",d.x,d.y]),u.push(["z"])),u}Ci.getRectPath=n;function a(A,c){var u=0,d=0,f=0,h=0;return(0,e.isArray)(A)?A.length===1?u=d=f=h=A[0]:A.length===2?(u=f=A[0],d=h=A[1]):A.length===3?(u=A[0],d=h=A[1],f=A[2]):(u=A[0],d=A[1],f=A[2],h=A[3]):u=d=f=h=A,u+d>c&&(u=u?c/(1+d/u):0,d=c-u),f+h>c&&(f=f?c/(1+h/f):0,h=c-f),[u||0,d||0,f||0,h||0]}Ci.parseRadius=a;function i(A,c,u){var d=[];if(u.isRect){var f=u.isTransposed?{x:u.start.x,y:c[0].y}:{x:c[0].x,y:u.start.y},h=u.isTransposed?{x:u.end.x,y:c[2].y}:{x:c[3].x,y:u.end.y},g=(0,e.get)(A,["background","style","radius"]);if(g){var p=u.isTransposed?Math.abs(c[0].y-c[2].y):c[2].x-c[1].x,E=u.isTransposed?u.getWidth():u.getHeight(),y=a(g,Math.min(p,E)),C=y[0],w=y[1],B=y[2],M=y[3];d.push(["M",f.x,h.y+C]),C!==0&&d.push(["A",C,C,0,0,1,f.x+C,h.y]),d.push(["L",h.x-w,h.y]),w!==0&&d.push(["A",w,w,0,0,1,h.x,h.y+w]),d.push(["L",h.x,f.y-B]),B!==0&&d.push(["A",B,B,0,0,1,h.x-B,f.y]),d.push(["L",f.x+M,f.y]),M!==0&&d.push(["A",M,M,0,0,1,f.x,f.y-M])}else d.push(["M",f.x,f.y]),d.push(["L",h.x,f.y]),d.push(["L",h.x,h.y]),d.push(["L",f.x,h.y]),d.push(["L",f.x,f.y]);d.push(["z"])}if(u.isPolar){var I=u.getCenter(),S=(0,t.getAngle)(A,u),R=S.startAngle,b=S.endAngle;if(u.type!=="theta"&&!u.isTransposed)d=(0,t.getSectorPath)(I.x,I.y,u.getRadius(),R,b);else{var Q=function(N){return Math.pow(N,2)},C=Math.sqrt(Q(I.x-c[0].x)+Q(I.y-c[0].y)),w=Math.sqrt(Q(I.x-c[2].x)+Q(I.y-c[2].y));d=(0,t.getSectorPath)(I.x,I.y,C,u.startAngle,u.endAngle,w)}}return d}Ci.getBackgroundRectPath=i;function o(A,c,u){var d=u.getWidth(),f=u.getHeight(),h=u.type==="rect",g=[],p=(A[2].x-A[1].x)/2,E=u.isTransposed?p*f/d:p*d/f;return c==="round"?(h?(g.push(["M",A[0].x,A[0].y+E]),g.push(["L",A[1].x,A[1].y-E]),g.push(["A",p,p,0,0,1,A[2].x,A[2].y-E]),g.push(["L",A[3].x,A[3].y+E]),g.push(["A",p,p,0,0,1,A[0].x,A[0].y+E])):(g.push(["M",A[0].x,A[0].y]),g.push(["L",A[1].x,A[1].y]),g.push(["A",p,p,0,0,1,A[2].x,A[2].y]),g.push(["L",A[3].x,A[3].y]),g.push(["A",p,p,0,0,1,A[0].x,A[0].y])),g.push(["z"])):g=n(A),g}Ci.getIntervalRectPath=o;function s(A,c,u){var d=[];return(0,e.isNil)(c)?u?d.push(["M",A[0].x,A[0].y],["L",A[1].x,A[1].y],["L",(A[2].x+A[3].x)/2,(A[2].y+A[3].y)/2],["Z"]):d.push(["M",A[0].x,A[0].y],["L",A[1].x,A[1].y],["L",A[2].x,A[2].y],["L",A[3].x,A[3].y],["Z"]):d.push(["M",A[0].x,A[0].y],["L",A[1].x,A[1].y],["L",c[1].x,c[1].y],["L",c[0].x,c[0].y],["Z"]),d}Ci.getFunnelPath=s;function l(A,c,u){var d,f,h,g,p=A[0],E=A[1],y=A[2],C=A[3],w=[0,0,0,0],B=w[0],M=w[1],I=w[2],S=w[3];p.y<E.y?(E=A[0],p=A[1],C=A[2],y=A[3],d=a(u,Math.min(C.x-p.x,p.y-E.y)),S=d[0],I=d[1],M=d[2],B=d[3]):(f=a(u,Math.min(C.x-p.x,p.y-E.y)),B=f[0],M=f[1],I=f[2],S=f[3]),c.isTransposed&&(p=A[0],C=A[1],y=A[2],E=A[3],A[0].x>A[1].x?(C=A[0],p=A[1],E=A[2],y=A[3],h=a(u,Math.min(C.x-p.x,p.y-E.y)),B=h[0],S=h[1],I=h[2],M=h[3]):(g=a(u,Math.min(C.x-p.x,p.y-E.y)),M=g[0],I=g[1],S=g[2],B=g[3]));var R=[];return R.push(["M",E.x,E.y+B]),B!==0&&R.push(["A",B,B,0,0,1,E.x+B,E.y]),R.push(["L",y.x-M,y.y]),M!==0&&R.push(["A",M,M,0,0,1,y.x,y.y+M]),R.push(["L",C.x,C.y-I]),I!==0&&R.push(["A",I,I,0,0,1,C.x-I,C.y]),R.push(["L",p.x+S,p.y]),S!==0&&R.push(["A",S,S,0,0,1,p.x,p.y-S]),R.push(["L",E.x,E.y+B]),R.push(["z"]),R}return Ci.getRectWithCornerRadius=l,Ci}var $Ae;function iRt(){if($Ae)return yx;$Ae=1,Object.defineProperty(yx,"__esModule",{value:!0});var e=Kt,t=zo(),r=w6(),n=GA(),a=f1(),i=(0,t.registerShapeFactory)("interval",{defaultShapeType:"rect",getDefaultPoints:function(o){return(0,a.getRectPoints)(o)}});return(0,t.registerShape)("interval","rect",{draw:function(o,s){var l=(0,n.getStyle)(o,!1,!0),A=s,c=o==null?void 0:o.background;if(c){A=s.addGroup();var u=(0,n.getBackgroundRectStyle)(o),d=(0,a.getBackgroundRectPath)(o,this.parsePoints(o.points),this.coordinate);A.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},u),{path:d}),zIndex:-1,name:r.BACKGROUND_SHAPE})}var f;l.radius&&this.coordinate.isRect?f=(0,a.getRectWithCornerRadius)(this.parsePoints(o.points),this.coordinate,l.radius):f=this.parsePath((0,a.getIntervalRectPath)(o.points,l.lineCap,this.coordinate));var h=A.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},l),{path:f}),name:"interval"});return c?A:h},getMarker:function(o){var s=o.color,l=o.isInPolar;return l?{symbol:"circle",style:{r:4.5,fill:s}}:{symbol:"square",style:{r:4,fill:s}}}}),yx.default=i,yx}var a0={},ece;function oRt(){if(ece)return a0;ece=1,Object.defineProperty(a0,"__esModule",{value:!0}),a0.getDefaultSize=void 0;var e=Gt,t=_l();function r(i,o){var s=i.length,l=i;(0,e.isString)(l[0])&&(l=i.map(function(d){return o.translate(d)}));for(var A=l[1]-l[0],c=2;c<s;c++){var u=l[c]-l[c-1];A>u&&(A=u)}return A}function n(i,o){if(o){var s=(0,e.flatten)(i),l=(0,e.valuesOfKey)(s,o);return l.length}return i.length}function a(i){var o=i.theme,s=i.coordinate,l=i.getXScale(),A=l.values,c=i.beforeMappingData,u=A.length,d=(0,t.getXDimensionLength)(i.coordinate),f=i.intervalPadding,h=i.dodgePadding,g=i.maxColumnWidth||o.maxColumnWidth,p=i.minColumnWidth||o.minColumnWidth,E=i.columnWidthRatio||o.columnWidthRatio,y=i.multiplePieWidthRatio||o.multiplePieWidthRatio,C=i.roseWidthRatio||o.roseWidthRatio;if(l.isLinear&&A.length>1){A.sort();var w=r(A,l);u=(l.max-l.min)/w,A.length>u&&(u=A.length)}var B=l.range,M=1/u,I=1;if(s.isPolar?s.isTransposed&&u>1?I=y:I=C:(l.isLinear&&(M*=B[1]-B[0]),I=E),!(0,e.isNil)(f)&&f>=0){var S=f/d;M=(1-(u-1)*S)/u}else M*=I;if(i.getAdjust("dodge")){var R=i.getAdjust("dodge"),b=R.dodgeBy,Q=n(c,b);if(!(0,e.isNil)(h)&&h>=0){var D=h/d;M=(M-D*(Q-1))/Q}else!(0,e.isNil)(f)&&f>=0&&(M*=I),M=M/Q;M=M>=0?M:0}if(!(0,e.isNil)(g)&&g>=0){var F=g/d;M>F&&(M=F)}if(!(0,e.isNil)(p)&&p>=0){var N=p/d;M<N&&(M=N)}return M}return a0.getDefaultSize=a,a0}var tce;function sRt(){if(tce)return Ex;tce=1,Object.defineProperty(Ex,"__esModule",{value:!0});var e=Kt,t=Gt,r=_l(),n=(0,e.__importDefault)(O2());iRt();var a=oRt(),i=im(),o=function(s){(0,e.__extends)(l,s);function l(A){var c=s.call(this,A)||this;c.type="interval",c.shapeType="interval",c.generatePoints=!0;var u=A.background;return c.background=u,c}return l.prototype.createShapePointsCfg=function(A){var c=s.prototype.createShapePointsCfg.call(this,A),u,d=this.getAttribute("size");if(d){u=this.getAttributeValues(d,A)[0];var f=this.coordinate,h=(0,r.getXDimensionLength)(f);u=u/h}else this.defaultSize||(this.defaultSize=(0,a.getDefaultSize)(this)),u=this.defaultSize;return c.size=u,c},l.prototype.adjustScale=function(){s.prototype.adjustScale.call(this);var A=this.getYScale();if(this.coordinate.type==="theta")A.change({nice:!1,min:0,max:(0,i.getMaxScale)(A)});else{var c=this.scaleDefs,u=A.field,d=A.min,f=A.max,h=A.type;h!=="time"&&(d>0&&!(0,t.get)(c,[u,"min"])&&A.change({min:0}),f<=0&&!(0,t.get)(c,[u,"max"])&&A.change({max:0}))}},l.prototype.getDrawCfg=function(A){var c=s.prototype.getDrawCfg.call(this,A);return c.background=this.background,c},l}(n.default);return Ex.default=o,Ex}var Cx={},rce;function OSe(){if(rce)return Cx;rce=1,Object.defineProperty(Cx,"__esModule",{value:!0});var e=Kt,t=Gt,r=(0,e.__importDefault)(A1()),n=function(a){(0,e.__extends)(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.getLabelValueDir=function(o){var s="y",l=o.points;return l[0][s]<=l[2][s]?1:-1},i.prototype.getLabelOffsetPoint=function(o,s,l,A){var c,u=a.prototype.getLabelOffsetPoint.call(this,o,s,l),d=this.getCoordinate(),f=d.isTransposed,h=f?"x":"y",g=this.getLabelValueDir(o.mappingData);return u=(0,e.__assign)((0,e.__assign)({},u),(c={},c[h]=u[h]*g,c)),d.isReflect("x")&&(u=(0,e.__assign)((0,e.__assign)({},u),{x:u.x*-1})),d.isReflect("y")&&(u=(0,e.__assign)((0,e.__assign)({},u),{y:u.y*-1})),u},i.prototype.getThemedLabelCfg=function(o){var s=this.geometry,l=this.getDefaultLabelCfg(),A=s.theme;return(0,t.deepMix)({},l,A.labels,o.position==="middle"?{offset:0}:{},o)},i.prototype.setLabelPosition=function(o,s,l,A){var c=this.getCoordinate(),u=c.isTransposed,d=s.points,f=c.convert(d[0]),h=c.convert(d[2]),g=this.getLabelValueDir(s),p,E,y,C,w=(0,t.isArray)(s.shape)?s.shape[0]:s.shape;if(w==="funnel"||w==="pyramid"){var B=(0,t.get)(s,"nextPoints"),M=(0,t.get)(s,"points");if(B){var I=c.convert(M[0]),S=c.convert(M[1]),R=c.convert(B[0]),b=c.convert(B[1]);u?(p=Math.min(R.y,I.y),y=Math.max(R.y,I.y),E=(S.x+b.x)/2,C=(I.x+R.x)/2):(p=Math.min((S.y+b.y)/2,(I.y+R.y)/2),y=Math.max((S.y+b.y)/2,(I.y+R.y)/2),E=b.x,C=I.x)}else p=Math.min(h.y,f.y),y=Math.max(h.y,f.y),E=h.x,C=f.x}else p=Math.min(h.y,f.y),y=Math.max(h.y,f.y),E=h.x,C=f.x;switch(A){case"right":o.x=E,o.y=(p+y)/2,o.textAlign=(0,t.get)(o,"textAlign",g>0?"left":"right");break;case"left":o.x=C,o.y=(p+y)/2,o.textAlign=(0,t.get)(o,"textAlign",g>0?"left":"right");break;case"bottom":u&&(o.x=(E+C)/2),o.y=y,o.textAlign=(0,t.get)(o,"textAlign","center"),o.textBaseline=(0,t.get)(o,"textBaseline",g>0?"bottom":"top");break;case"middle":u&&(o.x=(E+C)/2),o.y=(p+y)/2,o.textAlign=(0,t.get)(o,"textAlign","center"),o.textBaseline=(0,t.get)(o,"textBaseline","middle");break;case"top":u&&(o.x=(E+C)/2),o.y=p,o.textAlign=(0,t.get)(o,"textAlign","center"),o.textBaseline=(0,t.get)(o,"textBaseline",g>0?"bottom":"top");break}},i}(r.default);return Cx.default=n,Cx}var wx={},Bx={},nce;function zSe(){if(nce)return Bx;nce=1,Object.defineProperty(Bx,"__esModule",{value:!0});var e=Kt,t=Gt,r=_l(),n=_l(),a=(0,e.__importDefault)(A1()),i=Math.PI/2,o=function(s){(0,e.__extends)(l,s);function l(){return s!==null&&s.apply(this,arguments)||this}return l.prototype.getLabelOffset=function(A){var c=this.getCoordinate(),u=0;if((0,t.isNumber)(A))u=A;else if((0,t.isString)(A)&&A.indexOf("%")!==-1){var d=c.getRadius();c.innerRadius>0&&(d=d*(1-c.innerRadius)),u=parseFloat(A)*.01*d}return u},l.prototype.getLabelItems=function(A){var c=s.prototype.getLabelItems.call(this,A),u=this.geometry.getYScale();return(0,t.map)(c,function(d){if(d&&u){var f=u.scale((0,t.get)(d.data,u.field));return(0,e.__assign)((0,e.__assign)({},d),{percent:f})}return d})},l.prototype.getLabelAlign=function(A){var c=this.getCoordinate(),u;if(A.labelEmit)u=A.angle<=Math.PI/2&&A.angle>=-Math.PI/2?"left":"right";else if(!c.isTransposed)u="center";else{var d=c.getCenter(),f=A.offset;Math.abs(A.x-d.x)<1?u="center":A.angle>Math.PI||A.angle<=0?u=f>0?"left":"right":u=f>0?"right":"left"}return u},l.prototype.getLabelPoint=function(A,c,u){var d=1,f,h=A.content[u];this.isToMiddle(c)?f=this.getMiddlePoint(c.points):(A.content.length===1&&u===0?u=1:u===0&&(d=-1),f=this.getArcPoint(c,u));var g=A.offset*d,p=this.getPointAngle(f),E=A.labelEmit,y=this.getCirclePoint(p,g,f,E);return y.r===0?y.content="":(y.content=h,y.angle=p,y.color=c.color),y.rotate=A.autoRotate?this.getLabelRotate(p,g,E):A.rotate,y.start={x:f.x,y:f.y},y},l.prototype.getArcPoint=function(A,c){return c===void 0&&(c=0),!(0,t.isArray)(A.x)&&!(0,t.isArray)(A.y)?{x:A.x,y:A.y}:{x:(0,t.isArray)(A.x)?A.x[c]:A.x,y:(0,t.isArray)(A.y)?A.y[c]:A.y}},l.prototype.getPointAngle=function(A){return(0,n.getAngleByPoint)(this.getCoordinate(),A)},l.prototype.getCirclePoint=function(A,c,u,d){var f=this.getCoordinate(),h=f.getCenter(),g=(0,r.getDistanceToCenter)(f,u);if(g===0)return(0,e.__assign)((0,e.__assign)({},h),{r:g});var p=A;if(f.isTransposed&&g>c&&!d){var E=Math.asin(c/(2*g));p=A+E*2}else g=g+c;return{x:h.x+g*Math.cos(p),y:h.y+g*Math.sin(p),r:g}},l.prototype.getLabelRotate=function(A,c,u){var d=A+i;return u&&(d-=i),d&&(d>i?d=d-Math.PI:d<-i&&(d=d+Math.PI)),d},l.prototype.getMiddlePoint=function(A){var c=this.getCoordinate(),u=A.length,d={x:0,y:0};return(0,t.each)(A,function(f){d.x+=f.x,d.y+=f.y}),d.x/=u,d.y/=u,d=c.convert(d),d},l.prototype.isToMiddle=function(A){return A.x.length>2},l}(a.default);return Bx.default=o,Bx}var ace;function jSe(){if(ace)return wx;ace=1,Object.defineProperty(wx,"__esModule",{value:!0});var e=Kt,t=Gt,r=_l(),n=fs(),a=(0,e.__importDefault)(zSe()),i=function(o){(0,e.__extends)(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.defaultLayout="distribute",l}return s.prototype.getDefaultLabelCfg=function(l,A){var c=o.prototype.getDefaultLabelCfg.call(this,l,A);return(0,t.deepMix)({},c,(0,t.get)(this.geometry.theme,"pieLabels",{}))},s.prototype.getLabelOffset=function(l){return o.prototype.getLabelOffset.call(this,l)||0},s.prototype.getLabelRotate=function(l,A,c){var u;return A<0&&(u=l,u>Math.PI/2&&(u=u-Math.PI),u<-Math.PI/2&&(u=u+Math.PI)),u},s.prototype.getLabelAlign=function(l){var A=this.getCoordinate(),c=A.getCenter(),u;return l.angle<=Math.PI/2&&l.x>=c.x?u="left":u="right",l.offset<=0&&(u==="right"?u="left":u="right"),u},s.prototype.getArcPoint=function(l){return l},s.prototype.getPointAngle=function(l){var A=this.getCoordinate(),c={x:(0,t.isArray)(l.x)?l.x[0]:l.x,y:l.y[0]},u={x:(0,t.isArray)(l.x)?l.x[1]:l.x,y:l.y[1]},d,f=(0,r.getAngleByPoint)(A,c);if(l.points&&l.points[0].y===l.points[1].y)d=f;else{var h=(0,r.getAngleByPoint)(A,u);f>=h&&(h=h+Math.PI*2),d=f+(h-f)/2}return d},s.prototype.getCirclePoint=function(l,A){var c=this.getCoordinate(),u=c.getCenter(),d=c.getRadius()+A;return(0,e.__assign)((0,e.__assign)({},(0,n.polarToCartesian)(u.x,u.y,d,l)),{angle:l,r:d})},s}(a.default);return wx.default=i,wx}var Eu={},Vg={},ice;function lRt(){if(ice)return Vg;ice=1;var e=Vg&&Vg.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Vg,"__esModule",{value:!0});var t=e(om()),r=e(Hc()),n=e(D6());return Vg.default=function(a,i,o,s){if(a===null){(0,t.default)(o,function(c){var u=i[c];u!==void 0&&((0,r.default)(u)||(u=[u]),s(u,c))});return}var l,A;(0,t.default)(o,function(c){l=a[c],A=i[c],(0,n.default)(A,l)||((0,r.default)(A)||(A=[A]),s(A,c))})},Vg}var yu={},i0={},oce;function ARt(){if(oce)return i0;oce=1,Object.defineProperty(i0,"__esModule",{value:!0}),i0.distribute=void 0;var e=Gt,t=fs(),r=4;function n(i,o,s,l,A,c){var u=!0,d=l.start,f=l.end,h=Math.min(d.y,f.y),g=Math.abs(d.y-f.y),p,E=0,y=Number.MIN_VALUE,C=o.map(function(b){return b.y>E&&(E=b.y),b.y<y&&(y=b.y),{size:s,targets:[b.y-h]}});for(y-=h,E-h>g&&(g=E-h);u;)for(C.forEach(function(b){var Q=(Math.min.apply(y,b.targets)+Math.max.apply(y,b.targets))/2;b.pos=Math.min(Math.max(y,Q-b.size/2),g-b.size)}),u=!1,p=C.length;p--;)if(p>0){var w=C[p-1],B=C[p];w.pos+w.size>B.pos&&(w.size+=B.size,w.targets=w.targets.concat(B.targets),w.pos+w.size>g&&(w.pos=g-w.size),C.splice(p,1),u=!0)}p=0,C.forEach(function(b){var Q=h+s/2;b.targets.forEach(function(){o[p].y=b.pos+Q,Q+=s,p++})});for(var M={},I=0,S=i;I<S.length;I++){var R=S[I];M[R.get("id")]=R}o.forEach(function(b){var Q=b.r*b.r,D=Math.pow(Math.abs(b.y-A.y),2);if(Q<D)b.x=A.x;else{var F=Math.sqrt(Q-D);c?b.x=A.x+F:b.x=A.x-F}var N=M[b.id];N.attr("x",b.x),N.attr("y",b.y);var k=(0,e.find)(N.getChildren(),function(O){return O.get("type")==="text"});k&&(k.attr("y",b.y),k.attr("x",b.x))})}function a(i,o,s,l){if(!(!i.length||!o.length)){var A=i[0]?i[0].offset:0,c=o[0].get("coordinate"),u=c.getRadius(),d=c.getCenter();if(A>0){var f=14,h=u+A,g=h*2+f*2,p={start:c.start,end:c.end},E=[[],[]];i.forEach(function(y){y&&(y.textAlign==="right"?E[0].push(y):E[1].push(y))}),E.forEach(function(y,C){var w=g/f;y.length>w&&(y.sort(function(B,M){return M["..percent"]-B["..percent"]}),y.splice(w,y.length-w)),y.sort(function(B,M){return B.y-M.y}),n(o,y,f,p,d,C)})}(0,e.each)(i,function(y){if(y&&y.labelLine){var C=y.offset,w=y.angle,B=(0,t.polarToCartesian)(d.x,d.y,u,w),M=(0,t.polarToCartesian)(d.x,d.y,u+C/2,w),I=y.x+(0,e.get)(y,"offsetX",0),S=y.y+(0,e.get)(y,"offsetY",0),R={x:I-Math.cos(w)*r,y:S-Math.sin(w)*r};(0,e.isObject)(y.labelLine)||(y.labelLine={}),y.labelLine.path=["M "+B.x,B.y+" Q"+M.x,M.y+" "+R.x,R.y].join(",")}})}}return i0.distribute=a,i0}var o0={},sce;function cRt(){if(sce)return o0;sce=1,Object.defineProperty(o0,"__esModule",{value:!0}),o0.limitInCanvas=void 0;var e=Gt,t=z2();function r(n,a,i,o){(0,e.each)(a,function(s){var l=o.minX,A=o.minY,c=o.maxX,u=o.maxY,d=s.getCanvasBBox(),f=d.minX,h=d.minY,g=d.maxX,p=d.maxY,E=d.x,y=d.y,C=d.width,w=d.height,B=E,M=y;(f<l||g<l)&&(B=l),(h<A||p<A)&&(M=A),f>c?B=c-C:g>c&&(B=B-(g-c)),h>u?M=u-w:p>u&&(M=M-(p-u)),(B!==E||M!==y)&&(0,t.translate)(s,B-E,M-y)})}return o0.limitInCanvas=r,o0}var s0={},lce;function uRt(){if(lce)return s0;lce=1,Object.defineProperty(s0,"__esModule",{value:!0}),s0.limitInShape=void 0;var e=Gt;function t(r,n,a,i){(0,e.each)(n,function(o,s){var l=o.getCanvasBBox(),A=a[s].getBBox();(l.minX<A.minX||l.minY<A.minY||l.maxX>A.maxX||l.maxY>A.maxY)&&o.remove(!0)})}return s0.limitInShape=t,s0}var lf={},Ace;function dRt(){if(Ace)return lf;Ace=1,Object.defineProperty(lf,"__esModule",{value:!0}),lf.overlap=lf.fixedOverlap=void 0;var e=Gt,t=100,r=function(){function s(l){l===void 0&&(l={}),this.bitmap={};var A=l.xGap,c=A===void 0?1:A,u=l.yGap,d=u===void 0?8:u;this.xGap=c,this.yGap=d}return s.prototype.hasGap=function(l){for(var A=!0,c=this.bitmap,u=Math.round(l.minX),d=Math.round(l.maxX),f=Math.round(l.minY),h=Math.round(l.maxY),g=u;g<=d;g+=1){if(!c[g]){c[g]={};continue}if(g===u||g===d){for(var p=f;p<=h;p++)if(c[g][p]){A=!1;break}}else if(c[g][f]||c[g][h]){A=!1;break}}return A},s.prototype.fillGap=function(l){for(var A=this.bitmap,c=Math.round(l.minX),u=Math.round(l.maxX),d=Math.round(l.minY),f=Math.round(l.maxY),h=c;h<=u;h+=1)A[h]||(A[h]={});for(var h=c;h<=u;h+=this.xGap){for(var g=d;g<=f;g+=this.yGap)A[h][g]=!0;A[h][f]=!0}if(this.yGap!==1)for(var h=d;h<=f;h+=1)A[c][h]=!0,A[u][h]=!0;if(this.xGap!==1)for(var h=c;h<=u;h+=1)A[h][d]=!0,A[h][f]=!0},s.prototype.destroy=function(){this.bitmap={}},s}();function n(s,l,A){A===void 0&&(A=t);var c=-1,u=s.attr(),d=u.x,f=u.y,h=s.getCanvasBBox(),g=Math.sqrt(h.width*h.width+h.height*h.height),p,E=-c,y=0,C=0,w=function(S){var R=S*.1;return[R*Math.cos(R),R*Math.sin(R)]};if(l.hasGap(h))return l.fillGap(h),!0;for(var B=!1,M=0,I={};Math.min(Math.abs(y),Math.abs(C))<g&&M<A;)if(p=w(E+=c),y=~~p[0],C=~~p[1],!(!y&&!C||I[y+"-"+C])&&(s.attr({x:d+y,y:f+C}),y+C<0&&s.attr("textAlign","right"),M++,l.hasGap(s.getCanvasBBox()))){l.fillGap(s.getCanvasBBox()),B=!0,I[y+"-"+C]=!0;break}return B}function a(s,l,A,c){var u=s.getCanvasBBox(),d=u.width,f=u.height,h={x:l,y:A,textAlign:"center"};switch(c){case 0:h.y-=f+1,h.x+=1,h.textAlign="left";break;case 1:h.y-=f+1,h.x-=1,h.textAlign="right";break;case 2:h.y+=f+1,h.x-=1,h.textAlign="right";break;case 3:h.y+=f+1,h.x+=1,h.textAlign="left";break;case 5:h.y-=f*2+2;break;case 6:h.y+=f*2+2;break;case 7:h.x+=d+1,h.textAlign="left";break;case 8:h.x-=d+1,h.textAlign="right";break}return s.attr(h),s.getCanvasBBox()}function i(s,l,A,c){var u=new r;(0,e.each)(l,function(d){var f=d.find(function(h){return h.get("type")==="text"});n(f,u)||d.remove(!0)}),u.destroy()}lf.fixedOverlap=i;function o(s,l,A,c){var u=new r;(0,e.each)(l,function(d){for(var f=d.find(function(w){return w.get("type")==="text"}),h=f.attr(),g=h.x,p=h.y,E=!1,y=0;y<=8;y++){var C=a(f,g,p,y);if(u.hasGap(C)){u.fillGap(C),E=!0;break}}E||d.remove(!0)}),u.destroy()}return lf.overlap=o,lf}var cce;function fRt(){if(cce)return yu;cce=1;var e=yu&&yu.__rest||function(h,g){var p={};for(var E in h)Object.prototype.hasOwnProperty.call(h,E)&&g.indexOf(E)<0&&(p[E]=h[E]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,E=Object.getOwnPropertySymbols(h);y<E.length;y++)g.indexOf(E[y])<0&&Object.prototype.propertyIsEnumerable.call(h,E[y])&&(p[E[y]]=h[E[y]]);return p},t=yu&&yu.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(yu,"__esModule",{value:!0});var r=t(cr()),n=t(A1()),a=t(OSe()),i=t(jSe()),o=t(zSe()),s=ARt(),l=cRt(),A=uRt(),c=dRt(),u=jo(),d=t(j2());(0,u.registerGeometryLabel)("base",n.default),(0,u.registerGeometryLabel)("interval",a.default),(0,u.registerGeometryLabel)("pie",i.default),(0,u.registerGeometryLabel)("polar",o.default),(0,u.registerGeometryLabelLayout)("overlap",c.overlap),(0,u.registerGeometryLabelLayout)("distribute",s.distribute),(0,u.registerGeometryLabelLayout)("fixed-overlap",c.fixedOverlap),(0,u.registerGeometryLabelLayout)("limit-in-shape",A.limitInShape),(0,u.registerGeometryLabelLayout)("limit-in-canvas",l.limitInCanvas);function f(h){var g=h.parentInstance,p=h.content,E=e(h,["parentInstance","content"]);return(0,d.default)(!1,"Label组件即将被取消，请使用图形组件的label属性进行配置"),g.label(!1),g.label(p,E),r.default.createElement(r.default.Fragment,null)}return yu.default=f,yu}var l0={},Mx={},xx={},Ix={},uce;function F6(){if(uce)return Ix;uce=1,Object.defineProperty(Ix,"__esModule",{value:!0});var e=Kt,t=Gt,r=(0,e.__importDefault)(Vl()),n=Ki(),a=function(i){(0,e.__extends)(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.stateName="",s}return o.prototype.hasState=function(s){return s.hasState(this.stateName)},o.prototype.setElementState=function(s,l){s.setState(this.stateName,l)},o.prototype.setState=function(){this.setStateEnable(!0)},o.prototype.clear=function(){var s=this.context.view;this.clearViewState(s)},o.prototype.clearViewState=function(s){var l=this,A=(0,n.getElementsByState)(s,this.stateName);(0,t.each)(A,function(c){l.setElementState(c,!1)})},o}(r.default);return Ix.default=a,Ix}var dce;function _6(){if(dce)return xx;dce=1,Object.defineProperty(xx,"__esModule",{value:!0});var e=Kt,t=Gt,r=Ki(),n=(0,e.__importDefault)(F6());function a(o){return(0,t.get)(o.get("delegateObject"),"item")}var i=function(o){(0,e.__extends)(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.ignoreListItemStates=["unchecked"],l}return s.prototype.isItemIgnore=function(l,A){var c=this.ignoreListItemStates,u=c.filter(function(d){return A.hasState(l,d)});return!!u.length},s.prototype.setStateByComponent=function(l,A,c){var u=this.context.view,d=l.get("field"),f=(0,r.getElements)(u);this.setElementsStateByItem(f,d,A,c)},s.prototype.setStateByElement=function(l,A){this.setElementState(l,A)},s.prototype.isMathItem=function(l,A,c){var u=this.context.view,d=(0,r.getScaleByField)(u,A),f=(0,r.getElementValue)(l,A);return!(0,t.isNil)(f)&&c.name===d.getText(f)},s.prototype.setElementsStateByItem=function(l,A,c,u){var d=this;(0,t.each)(l,function(f){d.isMathItem(f,A,c)&&f.setState(d.stateName,u)})},s.prototype.setStateEnable=function(l){var A=(0,r.getCurrentElement)(this.context);if(A)(0,r.isElementChange)(this.context)&&this.setStateByElement(A,l);else{var c=(0,r.getDelegationObject)(this.context);if((0,r.isList)(c)){var u=c.item,d=c.component;if(u&&d&&!this.isItemIgnore(u,d)){var f=this.context.event.gEvent;if(f&&f.fromShape&&f.toShape&&a(f.fromShape)===a(f.toShape))return;this.setStateByComponent(d,u,l)}}}},s.prototype.toggle=function(){var l=(0,r.getCurrentElement)(this.context);if(l){var A=l.hasState(this.stateName);this.setElementState(l,!A)}},s.prototype.reset=function(){this.setStateEnable(!1)},s}(n.default);return xx.default=i,xx}var fce;function hRt(){if(fce)return Mx;fce=1,Object.defineProperty(Mx,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(_6()),r=function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="active",i}return a.prototype.active=function(){this.setState()},a}(t.default);return Mx.default=r,Mx}var bx={},hce;function gRt(){if(hce)return bx;hce=1,Object.defineProperty(bx,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(Vl()),r=Ki(),n=Gt,a=function(i){(0,e.__extends)(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.cache={},s}return o.prototype.getColorScale=function(s,l){var A=l.geometry.getAttribute("color");if(!A)return null;var c=s.getScaleByField(A.getFields()[0]);return c},o.prototype.getLinkPath=function(s,l){var A=this.context.view,c=A.getCoordinate().isTransposed,u=s.shape.getCanvasBBox(),d=l.shape.getCanvasBBox(),f=c?[["M",u.minX,u.minY],["L",d.minX,d.maxY],["L",d.maxX,d.maxY],["L",u.maxX,u.minY],["Z"]]:[["M",u.maxX,u.minY],["L",d.minX,d.minY],["L",d.minX,d.maxY],["L",u.maxX,u.maxY],["Z"]];return f},o.prototype.addLinkShape=function(s,l,A,c){var u={opacity:.4,fill:l.shape.attr("fill")};s.addShape({type:"path",attrs:(0,e.__assign)((0,e.__assign)({},(0,n.deepMix)({},u,(0,n.isFunction)(c)?c(u,l):c)),{path:this.getLinkPath(l,A)})})},o.prototype.linkByElement=function(s,l){var A=this,c=this.context.view,u=this.getColorScale(c,s);if(u){var d=(0,r.getElementValue)(s,u.field);if(!this.cache[d]){var f=(0,r.getElementsByField)(c,u.field,d),h=this.linkGroup,g=h.addGroup();this.cache[d]=g;var p=f.length;(0,n.each)(f,function(E,y){if(y<p-1){var C=f[y+1];A.addLinkShape(g,E,C,l)}})}}},o.prototype.removeLink=function(s){var l=this.getColorScale(this.context.view,s);if(l){var A=(0,r.getElementValue)(s,l.field);this.cache[A]&&(this.cache[A].remove(),this.cache[A]=null)}},o.prototype.link=function(s){var l=this.context;this.linkGroup||(this.linkGroup=l.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var A=(0,r.getCurrentElement)(l);A&&this.linkByElement(A,s==null?void 0:s.style)},o.prototype.unlink=function(){var s=(0,r.getCurrentElement)(this.context);s&&this.removeLink(s)},o.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},o.prototype.destroy=function(){i.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},o}(t.default);return bx.default=a,bx}var Sx={},Rx={},gce;function N6(){if(gce)return Rx;gce=1,Object.defineProperty(Rx,"__esModule",{value:!0});var e=Kt,t=Gt,r=Ki(),n=(0,e.__importDefault)(F6()),a=function(i){(0,e.__extends)(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.startPoint=null,s.endPoint=null,s.isStarted=!1,s.effectSiblings=!1,s.effectByRecord=!1,s}return o.prototype.getCurrentPoint=function(){var s=this.context.event;return{x:s.x,y:s.y}},o.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},o.prototype.getIntersectElements=function(){var s=null;if((0,r.isMask)(this.context))s=(0,r.getMaskedElements)(this.context,10);else{var l=this.startPoint,A=this.isStarted?this.getCurrentPoint():this.endPoint;if(!l||!A)return;var c={minX:Math.min(l.x,A.x),minY:Math.min(l.y,A.y),maxX:Math.max(l.x,A.x),maxY:Math.max(l.y,A.y)},u=this.context.view;s=(0,r.getIntersectElements)(u,c)}return s},o.prototype.setStateEnable=function(s){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(s);else{var l=(0,r.getElements)(this.context.view),A=this.getIntersectElements();A&&A.length?this.effectByRecord?this.setSiblingsStateByRecord(A,s):this.setElementsState(A,s,l):this.clear()}},o.prototype.setSiblingsStateByRecord=function(s,l){var A=this,c=this.context.view,u=(0,r.getSilbings)(c),d=s.map(function(g){return g.getModel().data}),f=c.getXScale().field,h=c.getYScales()[0].field;(0,t.each)(u,function(g){var p=(0,r.getElements)(g),E=p.filter(function(y){var C=y.getModel().data;return(0,r.isInRecords)(d,C,f,h)});A.setElementsState(E,l,p)})},o.prototype.setSiblingsState=function(s){var l=this,A=this.context.view,c=(0,r.getSilbings)(A);(0,r.isMask)(this.context)&&(0,t.each)(c,function(u){var d=(0,r.getElements)(u),f=(0,r.getSiblingMaskElements)(l.context,u,10);f&&f.length?l.setElementsState(f,s,d):l.clearViewState(u)})},o.prototype.setElementsState=function(s,l,A){var c=this;(0,t.each)(A,function(u){s.includes(u)?c.setElementState(u,l):c.setElementState(u,!1)})},o.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},o.prototype.clear=function(){var s=this,l=this.context.view;if(this.effectSiblings){var A=(0,r.getSilbings)(l);(0,t.each)(A,function(c){s.clearViewState(c)})}else this.clearViewState(l)},o}(n.default);return Rx.default=a,Rx}var pce;function pRt(){if(pce)return Sx;pce=1,Object.defineProperty(Sx,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(N6()),r=function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="active",i}return a.prototype.active=function(){this.setState()},a}(t.default);return Sx.default=r,Sx}var Tx={},Qx={},vce;function k6(){if(vce)return Qx;vce=1,Object.defineProperty(Qx,"__esModule",{value:!0});var e=Kt,t=Ki(),r=(0,e.__importDefault)(F6()),n=function(a){(0,e.__extends)(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.setStateEnable=function(o){var s=(0,t.getCurrentElement)(this.context);if(s){if(!(0,t.isElementChange)(this.context))return;o?(this.clear(),this.setElementState(s,!0)):this.hasState(s)&&this.setElementState(s,!1)}},i.prototype.toggle=function(){var o=(0,t.getCurrentElement)(this.context);if(o){var s=this.hasState(o);s||this.clear(),this.setElementState(o,!s)}},i.prototype.reset=function(){this.setStateEnable(!1)},i}(r.default);return Qx.default=n,Qx}var mce;function vRt(){if(mce)return Tx;mce=1,Object.defineProperty(Tx,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(k6()),r=function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="active",i}return a.prototype.active=function(){this.setState()},a}(t.default);return Tx.default=r,Tx}var eO={},Af={},Ece;function P6(){if(Ece)return Af;Ece=1,Object.defineProperty(Af,"__esModule",{value:!0}),Af.setHighlightBy=Af.clearHighlight=void 0;var e=Gt,t=Ki(),r="inactive",n="active";function a(o){var s=(0,t.getElements)(o);(0,e.each)(s,function(l){l.hasState(n)&&l.setState(n,!1),l.hasState(r)&&l.setState(r,!1)})}Af.clearHighlight=a;function i(o,s,l){(0,e.each)(o,function(A){s(A)?(A.hasState(r)&&A.setState(r,!1),A.setState(n,l)):(A.hasState(n)&&A.setState(n,!1),A.setState(r,l))})}return Af.setHighlightBy=i,Af}var yce;function O6(){return yce||(yce=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.STATUS_ACTIVE=e.STATUS_UNACTIVE=void 0;var t=Kt,r=Gt,n=Ki(),a=P6(),i=(0,t.__importDefault)(_6()),o=Pa();e.STATUS_UNACTIVE=o.ELEMENT_STATE.INACTIVE,e.STATUS_ACTIVE=o.ELEMENT_STATE.ACTIVE;var s=function(l){(0,t.__extends)(A,l);function A(){var c=l!==null&&l.apply(this,arguments)||this;return c.stateName=e.STATUS_ACTIVE,c}return A.prototype.setElementsStateByItem=function(c,u,d,f){var h=this,g=function(p){return h.isMathItem(p,u,d)};this.setHighlightBy(c,g,f)},A.prototype.setElementHighlight=function(c,u){u(c)?(c.hasState(e.STATUS_UNACTIVE)&&c.setState(e.STATUS_UNACTIVE,!1),c.setState(e.STATUS_ACTIVE,!0)):c.hasState(e.STATUS_ACTIVE)||c.setState(e.STATUS_UNACTIVE,!0)},A.prototype.setHighlightBy=function(c,u,d){var f=this;if(d)(0,r.each)(c,function(p){f.setElementHighlight(p,u)});else{var h=(0,n.getElementsByState)(this.context.view,e.STATUS_ACTIVE),g=!0;(0,r.each)(h,function(p){if(!u(p))return g=!1,!1}),g?this.clear():(0,r.each)(c,function(p){u(p)&&(p.hasState(e.STATUS_ACTIVE)&&p.setState(e.STATUS_ACTIVE,!1),p.setState(e.STATUS_UNACTIVE,!0))})}},A.prototype.setElementState=function(c,u){var d=this.context.view,f=(0,n.getElements)(d);this.setHighlightBy(f,function(h){return c===h},u)},A.prototype.highlight=function(){this.setState()},A.prototype.clear=function(){var c=this.context.view;(0,a.clearHighlight)(c)},A}(i.default);e.default=s}(eO)),eO}var Dx={},Cce;function mRt(){if(Cce)return Dx;Cce=1,Object.defineProperty(Dx,"__esModule",{value:!0});var e=Kt,t=Ki(),r=(0,e.__importStar)(O6()),n=function(a){(0,e.__extends)(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.setElementHighlight=function(o,s){s(o)?(o.hasState(r.STATUS_UNACTIVE)&&o.setState(r.STATUS_UNACTIVE,!1),o.setState(r.STATUS_ACTIVE,!0)):(o.setState(r.STATUS_UNACTIVE,!0),o.hasState(r.STATUS_ACTIVE)&&o.setState(r.STATUS_ACTIVE,!1))},i.prototype.setStateByElement=function(o,s){var l=this.context.view,A=l.getXScale(),c=(0,t.getElementValue)(o,A.field),u=(0,t.getElements)(l),d=u.filter(function(f){return(0,t.getElementValue)(f,A.field)===c});this.setHighlightBy(u,function(f){return d.includes(f)},s)},i.prototype.toggle=function(){var o=(0,t.getCurrentElement)(this.context);if(o){var s=o.hasState(this.stateName);this.setStateByElement(o,!s)}},i}(r.default);return Dx.default=n,Dx}var Fx={},wce;function ERt(){if(wce)return Fx;wce=1,Object.defineProperty(Fx,"__esModule",{value:!0});var e=Kt,t=Ki(),r=(0,e.__importDefault)(O6()),n=function(a){(0,e.__extends)(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.setStateByElement=function(o,s){var l=this.context.view,A=o.geometry.getAttribute("color");if(A){var c=l.getScaleByField(A.getFields()[0]),u=(0,t.getElementValue)(o,c.field),d=(0,t.getElements)(l),f=d.filter(function(h){return(0,t.getElementValue)(h,c.field)===u});this.setHighlightBy(d,function(h){return f.includes(h)},s)}},i}(r.default);return Fx.default=n,Fx}var _x={},Bce;function yRt(){if(Bce)return _x;Bce=1,Object.defineProperty(_x,"__esModule",{value:!0});var e=Kt,t=Ki(),r=P6(),n=(0,e.__importDefault)(k6()),a=function(i){(0,e.__extends)(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.stateName="active",s}return o.prototype.highlight=function(){this.setState()},o.prototype.setElementState=function(s,l){var A=this.context.view,c=(0,t.getElements)(A);(0,r.setHighlightBy)(c,function(u){return s===u},l)},o.prototype.clear=function(){var s=this.context.view;(0,r.clearHighlight)(s)},o}(n.default);return _x.default=a,_x}var Jg={},Mce;function CRt(){if(Mce)return Jg;Mce=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.ELEMENT_RANGE_HIGHLIGHT_EVENTS=void 0;var e=Kt,t=PI(),r=P6(),n=(0,e.__importDefault)(N6()),a;(function(o){o.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",o.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",o.BEFORE_CLEAR="element-range-highlight:beforeclear",o.AFTER_CLEAR="element-range-highlight:afterclear"})(a||(a={})),Jg.ELEMENT_RANGE_HIGHLIGHT_EVENTS=a;var i=function(o){(0,e.__extends)(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.stateName="active",l}return s.prototype.clearViewState=function(l){(0,r.clearHighlight)(l)},s.prototype.highlight=function(){var l=this.context,A=l.view,c=l.event,u=this.getIntersectElements(),d={view:A,event:c,highlightElements:u};A.emit(a.BEFORE_HIGHLIGHT,t.Event.fromData(A,a.BEFORE_HIGHLIGHT,d)),this.setState(),A.emit(a.AFTER_HIGHLIGHT,t.Event.fromData(A,a.AFTER_HIGHLIGHT,d))},s.prototype.clear=function(){var l=this.context.view;l.emit(a.BEFORE_CLEAR,t.Event.fromData(l,a.BEFORE_CLEAR,{})),o.prototype.clear.call(this),l.emit(a.AFTER_CLEAR,t.Event.fromData(l,a.AFTER_CLEAR,{}))},s.prototype.setElementsState=function(l,A,c){(0,r.setHighlightBy)(c,function(u){return l.indexOf(u)>=0},A)},s}(n.default);return Jg.default=i,Jg}var Nx={},xce;function wRt(){if(xce)return Nx;xce=1,Object.defineProperty(Nx,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(_6()),r=function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="selected",i}return a.prototype.selected=function(){this.setState()},a}(t.default);return Nx.default=r,Nx}var kx={},Ice;function BRt(){if(Ice)return kx;Ice=1,Object.defineProperty(kx,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(k6()),r=function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="selected",i}return a.prototype.selected=function(){this.setState()},a}(t.default);return kx.default=r,kx}var Px={},bce;function MRt(){if(bce)return Px;bce=1,Object.defineProperty(Px,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(N6()),r=function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="selected",i}return a.prototype.selected=function(){this.setState()},a}(t.default);return Px.default=r,Px}var Ox={},Sce;function xRt(){if(Sce)return Ox;Sce=1,Object.defineProperty(Ox,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(Vl()),r=function(n){(0,e.__extends)(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.setCursor=function(i){var o=this.context.view;o.getCanvas().setCursor(i)},a.prototype.default=function(){this.setCursor("default")},a.prototype.pointer=function(){this.setCursor("pointer")},a.prototype.move=function(){this.setCursor("move")},a.prototype.crosshair=function(){this.setCursor("crosshair")},a.prototype.wait=function(){this.setCursor("wait")},a.prototype.help=function(){this.setCursor("help")},a.prototype.text=function(){this.setCursor("text")},a.prototype.eResize=function(){this.setCursor("e-resize")},a.prototype.wResize=function(){this.setCursor("w-resize")},a.prototype.nResize=function(){this.setCursor("n-resize")},a.prototype.sResize=function(){this.setCursor("s-resize")},a.prototype.neResize=function(){this.setCursor("ne-resize")},a.prototype.nwResize=function(){this.setCursor("nw-resize")},a.prototype.seResize=function(){this.setCursor("se-resize")},a.prototype.swResize=function(){this.setCursor("sw-resize")},a.prototype.nsResize=function(){this.setCursor("ns-resize")},a.prototype.ewResize=function(){this.setCursor("ew-resize")},a}(t.default);return Ox.default=r,Ox}var Rce;function IRt(){if(Rce)return l0;Rce=1;var e=l0&&l0.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(l0,"__esModule",{value:!0});var t=e(hRt()),r=e(gRt()),n=e(pRt()),a=e(vRt()),i=e(O6()),o=e(mRt()),s=e(ERt()),l=e(yRt()),A=e(CRt()),c=e(wRt()),u=e(BRt()),d=e(MRt()),f=e(xRt()),h=jo();return(0,h.registerAction)("cursor",f.default),(0,h.registerAction)("element-active",t.default),(0,h.registerAction)("element-single-active",a.default),(0,h.registerAction)("element-range-active",n.default),(0,h.registerAction)("element-highlight",i.default),(0,h.registerAction)("element-highlight-by-x",o.default),(0,h.registerAction)("element-highlight-by-color",s.default),(0,h.registerAction)("element-single-highlight",l.default),(0,h.registerAction)("element-range-highlight",A.default),(0,h.registerAction)("element-sibling-highlight",A.default,{effectSiblings:!0,effectByRecord:!0}),(0,h.registerAction)("element-selected",c.default),(0,h.registerAction)("element-single-selected",u.default),(0,h.registerAction)("element-range-selected",d.default),(0,h.registerAction)("element-link-by-color",r.default),(0,h.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),(0,h.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),(0,h.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),(0,h.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),(0,h.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),l0}var Tce;function z6(){if(Tce)return Eu;Tce=1;var e=Eu&&Eu.__extends||function(){var h=function(g,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,y){E.__proto__=y}||function(E,y){for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(E[C]=y[C])},h(g,p)};return function(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");h(g,p);function E(){this.constructor=g}g.prototype=p===null?Object.create(p):(E.prototype=p.prototype,new E)}}(),t=Eu&&Eu.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(Eu,"__esModule",{value:!0});var r=t(cr()),n=t(d1()),a=t(u1()),i=t(A1()),o=t(i1()),s=jo(),l=t(lRt()),A=t(j2());fRt(),IRt();var c=t(PSe());(0,s.registerGeometryLabel)("base",i.default);var u=["line","area"],d=function(){function h(){this.config={}}return h.prototype.setView=function(g){this.view=g,this.rootChart=g.rootChart||g},h.prototype.createGeomInstance=function(g,p){this.geom=this.view[g](p);var E=p.sortable;this.geom.__beforeMapping=this.geom.beforeMapping,this.geom.beforeMapping=function(y){var C=this.getXScale();return E!==!1&&y&&y[0]&&u.includes(g)&&["time","timeCat"].includes(C.type)&&this.sort(y),this.__beforeMapping(y)},this.GemoBaseClassName=g},h.prototype.update=function(g,p){var E=this;this.geom||(this.setView(p.context),this.createGeomInstance(p.GemoBaseClassName,g),this.interactionTypes=p.interactionTypes),(0,l.default)(this.config,g,["position","shape","color","label","style","tooltip","size","animate","state","customInfo"],function(y,C){var w;(0,A.default)(!(C==="label"&&y[0]===!0),"label 值类型错误，应为false | LabelOption | FieldString"),(w=E.geom)[C].apply(w,y)}),(0,l.default)(this.config,g,["adjust"],function(y,C){(0,n.default)(y[0])?E.geom[C](y[0]):E.geom[C](y)}),this.geom.state(g.state||{}),this.rootChart.on("processElemens",function(){(0,a.default)(g.setElements)&&g.setElements(E.geom.elements)}),(0,l.default)(this.config,g,this.interactionTypes,function(y,C){y[0]?E.rootChart.interaction(C):E.rootChart.removeInteraction(C)}),this.config=(0,c.default)(g)},h.prototype.destroy=function(){this.geom&&(this.geom.destroy(),this.geom=null),this.config={}},h}(),f=function(h){e(g,h);function g(p){var E=h.call(this,p)||this;return E.interactionTypes=[],E.geomHelper=new d,E}return g.prototype.componentWillUnmount=function(){this.geomHelper.destroy()},g.prototype.render=function(){var p=this;return this.geomHelper.update(this.props,this),r.default.createElement(r.default.Fragment,null,r.default.Children.map(this.props.children,function(E){return r.default.isValidElement(E)?r.default.cloneElement(E,{parentInstance:p.geomHelper.geom}):r.default.createElement(r.default.Fragment,null)}))},g}(r.default.Component);return f.contextType=o.default,Eu.default=f,Eu}var tO={},Qce;function bRt(){if(Qce)return tO;Qce=1,Object.defineProperty(tO,"__esModule",{value:!0});var e=Kt,t=zo(),r=GA(),n=f1();return(0,t.registerShape)("interval","funnel",{getPoints:function(a){return a.size=a.size*2,(0,n.getRectPoints)(a)},draw:function(a,i){var o=(0,r.getStyle)(a,!1,!0),s=this.parsePath((0,n.getFunnelPath)(a.points,a.nextPoints,!1)),l=i.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},o),{path:s}),name:"interval"});return l},getMarker:function(a){var i=a.color;return{symbol:"square",style:{r:4,fill:i}}}}),tO}var rO={},Dce;function SRt(){if(Dce)return rO;Dce=1,Object.defineProperty(rO,"__esModule",{value:!0});var e=Kt,t=zo(),r=w6(),n=GA(),a=f1();return(0,t.registerShape)("interval","hollow-rect",{draw:function(i,o){var s=(0,n.getStyle)(i,!0,!1),l=o,A=i==null?void 0:i.background;if(A){l=o.addGroup();var c=(0,n.getBackgroundRectStyle)(i),u=(0,a.getBackgroundRectPath)(i,this.parsePoints(i.points),this.coordinate);l.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},c),{path:u}),zIndex:-1,name:r.BACKGROUND_SHAPE})}var d=this.parsePath((0,a.getRectPath)(i.points)),f=l.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},s),{path:d}),name:"interval"});return A?l:f},getMarker:function(i){var o=i.color,s=i.isInPolar;return s?{symbol:"circle",style:{r:4.5,stroke:o,fill:null}}:{symbol:"square",style:{r:4,stroke:o,fill:null}}}}),rO}var nO={},Fce;function RRt(){if(Fce)return nO;Fce=1,Object.defineProperty(nO,"__esModule",{value:!0});var e=Kt,t=Gt,r=zo(),n=GA(),a=f1(),i=Oh();function o(s){var l=s.x,A=s.y,c=s.y0;return(0,t.isArray)(A)?A.map(function(u,d){return{x:(0,t.isArray)(l)?l[d]:l,y:u}}):[{x:l,y:c},{x:l,y:A}]}return(0,r.registerShape)("interval","line",{getPoints:function(s){return o(s)},draw:function(s,l){var A=(0,n.getStyle)(s,!0,!1,"lineWidth"),c=(0,i.omit)((0,e.__assign)({},A),["fill"]),u=this.parsePath((0,a.getRectPath)(s.points,!1)),d=l.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},c),{path:u}),name:"interval"});return d},getMarker:function(s){var l=s.color;return{symbol:function(A,c,u){return[["M",A,c-u],["L",A,c+u]]},style:{r:5,stroke:l}}}}),nO}var aO={},_ce;function TRt(){if(_ce)return aO;_ce=1,Object.defineProperty(aO,"__esModule",{value:!0});var e=Kt,t=zo(),r=GA(),n=f1();return(0,t.registerShape)("interval","pyramid",{getPoints:function(a){return a.size=a.size*2,(0,n.getRectPoints)(a)},draw:function(a,i){var o=(0,r.getStyle)(a,!1,!0),s=this.parsePath((0,n.getFunnelPath)(a.points,a.nextPoints,!0)),l=i.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},o),{path:s}),name:"interval"});return l},getMarker:function(a){var i=a.color;return{symbol:"square",style:{r:4,fill:i}}}}),aO}var iO={},Nce;function QRt(){if(Nce)return iO;Nce=1,Object.defineProperty(iO,"__esModule",{value:!0});var e=Kt,t=Gt,r=zo(),n=GA();function a(o){var s=o.x,l=o.y,A=o.y0,c=o.size,u,d;(0,t.isArray)(l)?(u=l[0],d=l[1]):(u=A,d=l);var f=s+c/2,h=s-c/2;return[{x:s,y:u},{x:s,y:d},{x:h,y:u},{x:f,y:u},{x:h,y:d},{x:f,y:d}]}function i(o){return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y]]}return(0,r.registerShape)("interval","tick",{getPoints:function(o){return a(o)},draw:function(o,s){var l=(0,n.getStyle)(o,!0,!1),A=this.parsePath(i(o.points)),c=s.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},l),{path:A}),name:"interval"});return c},getMarker:function(o){var s=o.color;return{symbol:function(l,A,c){return[["M",l-c/2,A-c],["L",l+c/2,A-c],["M",l,A-c],["L",l,A+c],["M",l-c/2,A+c],["L",l+c/2,A+c]]},style:{r:5,stroke:s}}}}),iO}var kce;function DRt(){if(kce)return mu;kce=1;var e=mu&&mu.__extends||function(){var l=function(A,c){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(u[f]=d[f])},l(A,c)};return function(A,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");l(A,c);function u(){this.constructor=A}A.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}(),t=mu&&mu.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(mu,"__esModule",{value:!0});var r=t(sRt()),n=t(OSe()),a=t(jSe()),i=t(z6()),o=jo();(0,o.registerGeometry)("Interval",r.default),(0,o.registerGeometryLabel)("interval",n.default),(0,o.registerGeometryLabel)("pie",a.default),bRt(),SRt(),RRt(),TRt(),QRt(),(0,o.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]});var s=function(l){e(A,l);function A(){var c=l!==null&&l.apply(this,arguments)||this;return c.interactionTypes=["active-region","element-highlight"],c.GemoBaseClassName="interval",c}return A}(i.default);return mu.default=s,mu}var FRt=DRt();const sm=Nr(FRt),j6=({data:e,xFieldName:t="name",yFieldName:r="value",options:n,title:a,dodgeBy:i="type"})=>{const o=Ye(y=>y.cti.ui.graphColors.columnChart),s=Ye(y=>y.cti.ui.generatePDF),l=Ye(y=>y.cti.ui.pdfSize),A=Pr(),c=y=>{y.data.data.indicateur_condition_id&&A(xhe(y.data.data.indicateur_condition_id[0]))};let u=o;const d=Object.keys(lo(e,y=>y.type)),f=te.useCallback((y,C)=>{const w=Array.isArray(y)?C:y,B=d.indexOf(w);return u[B]},[u,n,d]);let h=d;h.includes("undefined")&&a&&(h=[a]),h=h.map((y,C)=>{const w=f(y);return{id:C,name:y,marker:{style:{fill:w},symbol:"square"}}});const g=(y,C,w)=>{if(!n||!n.labelView)return y;const B=e.find(M=>M.category===y);return n.labelView===0||y==="Autres"?y:B?B.label_code:"Pas de code"},p={[r]:{formatter:y=>{let C=e.find(w=>w[r]===y);return C&&C.formattedValue?C.formattedValue:y}}};if(!e.length)return null;const E=({width:y,height:C})=>v.jsxs(zh,{height:C,width:y,data:e,onIntervalClick:c,padding:"auto",scale:p,children:[v.jsx(jh,{custom:!0,items:h,visible:!0,itemName:{style:{fill:"rgba(0,0,0,0.85)"}}}),v.jsx(Hs,{name:t,label:{style:{fill:"rgba(0,0,0,0.85)"},formatter:g}}),v.jsx(Hs,{name:r,label:{style:{fill:"rgba(0,0,0,0.85)"}},formatter:w=>Math.round(w)===w?w:w.toFixed(2)}),v.jsx(sm,{adjust:[{type:"dodge",dodgeBy:i,marginRatio:0}],color:["type*name",(w,B)=>f(w,B)],position:`${t}*${r}`})]});return v.jsx("div",{className:"graph-wrapper",children:s===!1?v.jsx(Dl,{children:({width:y,height:C})=>v.jsx(E,{width:y,height:C})}):v.jsx(E,{width:l.width,height:l.height})})};j6.propTypes={data:U.arrayOf(U.object).isRequired,xFieldName:U.string,yFieldName:U.string,options:U.object,title:U.string};j6.defaultProps={xFieldName:"name",yFieldName:"value",percent:!1};const _Rt=te.memo(j6,id);var AA={},zx={},Pce;function NRt(){if(Pce)return zx;Pce=1,Object.defineProperty(zx,"__esModule",{value:!0});var e=function(t){return t==null};return zx.default=e,zx}var Oce;function kRt(){if(Oce)return AA;Oce=1;var e=AA&&AA.__assign||function(){return e=Object.assign||function(s){for(var l,A=1,c=arguments.length;A<c;A++){l=arguments[A];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(s[u]=l[u])}return s},e.apply(this,arguments)},t=AA&&AA.__rest||function(s,l){var A={};for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&l.indexOf(c)<0&&(A[c]=s[c]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,c=Object.getOwnPropertySymbols(s);u<c.length;u++)l.indexOf(c[u])<0&&Object.prototype.propertyIsEnumerable.call(s,c[u])&&(A[c[u]]=s[c[u]]);return A},r=AA&&AA.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(AA,"__esModule",{value:!0});var n=r(NRt()),a=r(u1()),i=r(T2());function o(s){var l=s.type,A=s.transpose,c=s.rotate,u=s.scale,d=s.reflect,f=s.actions,h=t(s,["type","transpose","rotate","scale","reflect","actions"]),g=(0,i.default)(),p=g.coordinate();return p.update({}),l?g.coordinate(l,e({},h)):g.coordinate("rect",e({},h)),c&&p.rotate(c),u&&p.scale.apply(p,u),(0,n.default)(d)||p.reflect(d),A&&p.transpose(),(0,a.default)(f)&&f(p),null}return AA.default=o,AA}var PRt=kRt();const Y6=Nr(PRt);var zi={},bs={},jx={},zce;function ORt(){if(zce)return jx;zce=1,Object.defineProperty(jx,"__esModule",{value:!0});var e=d1();return jx.default=function(t,r,n){for(var a=0,i=e.default(r)?r.split("."):r;t&&a<i.length;)t=t[i[a++]];return t===void 0||a<i.length?n:t},jx}var Yx={},jce;function zRt(){if(jce)return Yx;jce=1,Object.defineProperty(Yx,"__esModule",{value:!0});function e(t,r){if(t)for(var n in r)r.hasOwnProperty(n)&&(t.style[n]=r[n]);return t}return Yx.default=e,Yx}var Yce;function jRt(){if(Yce)return bs;Yce=1;var e=bs&&bs.__extends||function(){var d=function(f,h){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,p){g.__proto__=p}||function(g,p){for(var E in p)Object.prototype.hasOwnProperty.call(p,E)&&(g[E]=p[E])},d(f,h)};return function(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");d(f,h);function g(){this.constructor=f}f.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),t=bs&&bs.__assign||function(){return t=Object.assign||function(d){for(var f,h=1,g=arguments.length;h<g;h++){f=arguments[h];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])}return d},t.apply(this,arguments)},r=bs&&bs.__rest||function(d,f){var h={};for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&f.indexOf(g)<0&&(h[g]=d[g]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,g=Object.getOwnPropertySymbols(d);p<g.length;p++)f.indexOf(g[p])<0&&Object.prototype.propertyIsEnumerable.call(d,g[p])&&(h[g[p]]=d[g[p]]);return h},n=bs&&bs.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(bs,"__esModule",{value:!0});var a=n(cr()),i=n(j3()),o=n(ORt()),s=n(zRt()),l=i1(),A=jo(),c="g2-tooltip",u=function(d){e(f,d);function f(){var h=d!==null&&d.apply(this,arguments)||this;return h.renderInnder=function(g){var p=g.data,E=p.title,y=p.items,C=p.x,w=p.y;i.default.render(h.props.children(E,y,C,w,g),h.getElement())},h}return f.prototype.componentWillUnmount=function(){var h=this.props.chartView;this.element&&this.element.remove(),h.getController("tooltip").clear(),h.off("tooltip:change",this.renderInnder)},f.prototype.getElement=function(){return this.element||(this.element=document.createElement("div"),this.element.classList.add("bizcharts-tooltip"),this.element.classList.add("g2-tooltip"),this.element.style.width="auto",this.element.style.height="auto"),this.element},f.prototype.overwriteCfg=function(){var h=this,g=this.props,p=g.chartView;g.children;var E=g.domStyles,y=E===void 0?{}:E,C=r(g,["chartView","children","domStyles"]);p.tooltip(t(t({inPlot:!1,domStyles:y},C),{customContent:function(){return h.getElement()}})),p.on("tooltip:change",this.renderInnder);var w=(0,o.default)((0,A.getTheme)(),["components","tooltip","domStyles",c],{});(0,s.default)(this.element,t(t({},w),y[c]))},f.prototype.render=function(){return this.overwriteCfg(),null},f}(a.default.Component);return bs.default=(0,l.withView)(u),bs}var Ss={},Lx={},Lce;function L6(){if(Lce)return Lx;Lce=1,Object.defineProperty(Lx,"__esModule",{value:!0});var e=Kt,t=Gt,r=(0,e.__importDefault)(Vl()),n=function(a){(0,e.__extends)(i,a);function i(){var o=a!==null&&a.apply(this,arguments)||this;return o.timeStamp=0,o}return i.prototype.show=function(){var o=this.context,s=o.event,l=o.view,A=l.isTooltipLocked();if(!A){var c=this.timeStamp,u=+new Date,d=(0,t.get)(o.view.getOptions(),"tooltip.showDelay",16);if(u-c>d){var f=this.location,h={x:s.x,y:s.y};(!f||!(0,t.isEqual)(f,h))&&this.showTooltip(l,h),this.timeStamp=u,this.location=h}}},i.prototype.hide=function(){var o=this.context.view,s=o.getController("tooltip"),l=this.context.event,A=l.clientX,c=l.clientY;s.isCursorEntered({x:A,y:c})||o.isTooltipLocked()||(this.hideTooltip(o),this.location=null)},i.prototype.showTooltip=function(o,s){o.showTooltip(s)},i.prototype.hideTooltip=function(o){o.hideTooltip()},i}(r.default);return Lx.default=n,Lx}var Uce;function YRt(){if(Uce)return Ss;Uce=1;var e=Ss&&Ss.__extends||function(){var c=function(u,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])},c(u,d)};return function(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");c(u,d);function f(){this.constructor=u}u.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}(),t=Ss&&Ss.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.registerConnector=Ss.Connector=void 0;var r=E6(),n=t(L6()),a=Gt,i=jo(),o={},s=function(){function c(u){this.cfg={shared:!0},this.chartMap={},this.state={},this.id=(0,a.uniqueId)("bx-action"),this.type=u||"tooltip"}return c.prototype.connect=function(u,d,f){return this.chartMap[u]={chart:d,pointFinder:f},d.interaction("connect-".concat(this.type,"-").concat(this.id)),this.type==="tooltip"&&this.cfg.shared&&(0,a.get)(d,["options","tooltip","shared"])===void 0&&(0,a.set)(d,["options","tooltip","shared"],!0),this},c.prototype.unConnect=function(u){this.chartMap[u].chart.removeInteraction("connect-".concat(this.type,"-").concat(this.id)),delete this.chartMap[u]},c.prototype.destroy=function(){(0,r.unregisterAction)("connect-".concat(this.type,"-").concat(this.id))},c}();Ss.Connector=s;var l=function(){var c=new s("tooltip");return(0,i.registerAction)("connect-tooltip-".concat(c.id),function(u){e(d,u);function d(){var f=u!==null&&u.apply(this,arguments)||this;return f.CM=c,f}return d.prototype.showTooltip=function(f,h){var g=f.getTooltipItems(h)||h;(0,a.forIn)(this.CM.chartMap,function(p){var E=p.chart,y=p.pointFinder;if(!(E.destroyed||!E.visible))if(y){var C=y(g,E);C&&E.showTooltip(C)}else E.showTooltip(h)})},d.prototype.hideTooltip=function(){(0,a.forIn)(this.CM.chartMap,function(f){var h=f.chart;return h.hideTooltip()})},d}(n.default)),(0,i.registerInteraction)("connect-tooltip-".concat(c.id),{start:[{trigger:"plot:mousemove",action:"connect-tooltip-".concat(c.id,":show")}],end:[{trigger:"plot:mouseleave",action:"connect-tooltip-".concat(c.id,":hide")}]}),c},A=function(c,u,d,f,h){var g=o[c];if(d===null&&g){g.unConnect(u);return}g?g.connect(u,d,h):(o[c]=l(),o[c].cfg.shared=!!f,o[c].connect(u,d,h))};return Ss.registerConnector=A,Ss.default=l,Ss}var A0={},Wg={},Hce;function LRt(){if(Hce)return Wg;Hce=1,Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.getItemsOfView=void 0;var e=Kt,t=Gt,r=P2(),n=fs(),a=(0,e.__importDefault)(Vl()),i={fill:"#CCD6EC",opacity:.3};function o(l,A,c){var u=(0,r.findItemsFromViewRecurisive)(l,A,c);if(u.length){u=(0,t.flatten)(u);for(var d=0,f=u;d<f.length;d++)for(var h=f[d],g=0,p=h;g<p.length;g++){var E=p[g],y=E.mappingData,C=y.x,w=y.y;E.x=(0,t.isArray)(C)?C[C.length-1]:C,E.y=(0,t.isArray)(w)?w[w.length-1]:w}var B=c.shared;if(B===!1&&u.length>1){for(var M=u[0],I=Math.abs(A.y-M[0].y),S=0,R=u;S<R.length;S++){var b=R[S],Q=Math.abs(A.y-b[0].y);Q<=I&&(M=b,I=Q)}u=[M]}return(0,t.uniq)((0,t.flatten)(u))}return[]}Wg.getItemsOfView=o;var s=function(l){(0,e.__extends)(A,l);function A(){return l!==null&&l.apply(this,arguments)||this}return A.prototype.show=function(c){var u=this.context.view,d=this.context.event,f=u.getController("tooltip").getTooltipCfg(),h=o(u,{x:d.x,y:d.y},f);if(!(0,t.isEqual)(h,this.items)&&(this.items=h,h.length)){var g=u.getXScale().field,p=h[0].data[g],E=[],y=u.geometries;if((0,t.each)(y,function(q){if(q.type==="interval"||q.type==="schema"){var ee=q.getElementsBy(function(ae){var ne=ae.getData();return ne[g]===p});E=E.concat(ee)}}),E.length){var C=u.getCoordinate(),w=E[0].shape.getCanvasBBox(),B=E[0].shape.getCanvasBBox(),M=w;(0,t.each)(E,function(q){var ee=q.shape.getCanvasBBox();C.isTransposed?(ee.minY<w.minY&&(w=ee),ee.maxY>B.maxY&&(B=ee)):(ee.minX<w.minX&&(w=ee),ee.maxX>B.maxX&&(B=ee)),M.x=Math.min(ee.minX,M.minX),M.y=Math.min(ee.minY,M.minY),M.width=Math.max(ee.maxX,M.maxX)-M.x,M.height=Math.max(ee.maxY,M.maxY)-M.y});var I=u.backgroundGroup,S=u.coordinateBBox,R=void 0;if(C.isRect){var b=u.getXScale(),Q=c||{},D=Q.appendRatio,F=Q.appendWidth;(0,t.isNil)(F)&&(D=(0,t.isNil)(D)?b.isLinear?0:.25:D,F=C.isTransposed?D*B.height:D*w.width);var N=void 0,k=void 0,O=void 0,P=void 0;C.isTransposed?(N=S.minX,k=Math.min(B.minY,w.minY)-F,O=S.width,P=M.height+F*2):(N=Math.min(w.minX,B.minX)-F,k=S.minY,O=M.width+F*2,P=S.height),R=[["M",N,k],["L",N+O,k],["L",N+O,k+P],["L",N,k+P],["Z"]]}else{var z=(0,t.head)(E),j=(0,t.last)(E),V=(0,n.getAngle)(z.getModel(),C).startAngle,L=(0,n.getAngle)(j.getModel(),C).endAngle,K=C.getCenter(),J=C.getRadius(),Y=C.innerRadius*J;R=(0,n.getSectorPath)(K.x,K.y,J,V,L,Y)}if(this.regionPath)this.regionPath.attr("path",R),this.regionPath.show();else{var W=(0,t.get)(c,"style",i);this.regionPath=I.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,e.__assign)((0,e.__assign)({},W),{path:R})})}}}},A.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},A.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),l.prototype.destroy.call(this)},A}(a.default);return Wg.default=s,Wg}var Ux={},Gce;function URt(){if(Gce)return Ux;Gce=1,Object.defineProperty(Ux,"__esModule",{value:!0});var e=Kt,t=Gt,r=Ki(),n=(0,e.__importDefault)(L6()),a=function(i){(0,e.__extends)(o,i);function o(){return i!==null&&i.apply(this,arguments)||this}return o.prototype.showTooltip=function(s,l){var A=(0,r.getSilbings)(s);(0,t.each)(A,function(c){var u=(0,r.getSiblingPoint)(s,c,l);c.showTooltip(u)})},o.prototype.hideTooltip=function(s){var l=(0,r.getSilbings)(s);(0,t.each)(l,function(A){A.hideTooltip()})},o}(n.default);return Ux.default=a,Ux}var Hx={},Kce;function HRt(){if(Kce)return Hx;Kce=1,Object.defineProperty(Hx,"__esModule",{value:!0});var e=Kt,t=Gt,r=S2,n=(0,e.__importDefault)(Vl()),a=wd(),i=function(o){(0,e.__extends)(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.timeStamp=0,l}return s.prototype.destroy=function(){o.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},s.prototype.show=function(){var l=this.context,A=l.event,c=this.timeStamp,u=+new Date;if(u-c>16){var d=this.location,f={x:A.x,y:A.y};(!d||!(0,t.isEqual)(d,f))&&this.showTooltip(f),this.timeStamp=u,this.location=f}},s.prototype.hide=function(){this.hideTooltip(),this.location=null},s.prototype.showTooltip=function(l){var A=this.context,c=A.event,u=c.target;if(u&&u.get("tip")){this.tooltip||this.renderTooltip();var d=u.get("tip");this.tooltip.update((0,e.__assign)({title:d},l)),this.tooltip.show()}},s.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},s.prototype.renderTooltip=function(){var l,A=this.context.view,c=A.canvas,u={start:{x:0,y:0},end:{x:c.get("width"),y:c.get("height")}},d=A.getTheme(),f=(0,t.get)(d,["components","tooltip","domStyles"],{}),h=new a.HtmlTooltip({parent:c.get("el").parentNode,region:u,visible:!1,crosshairs:null,domStyles:(0,e.__assign)({},(0,t.deepMix)({},f,(l={},l[r.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},l[r.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},l)))});h.init(),h.setCapture(!1),this.tooltip=h},s}(n.default);return Hx.default=i,Hx}var Vce;function GRt(){if(Vce)return A0;Vce=1;var e=A0&&A0.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(A0,"__esModule",{value:!0});var t=e(LRt()),r=e(URt()),n=e(L6()),a=e(HRt()),i=jo();(0,i.registerAction)("tooltip",n.default),(0,i.registerAction)("sibling-tooltip",r.default),(0,i.registerAction)("active-region",t.default),(0,i.registerAction)("ellipsis-text",a.default),(0,i.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),(0,i.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),(0,i.registerInteraction)("tooltip-click",{start:[{trigger:"plot:click",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchstart",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:leave",action:"tooltip:hide"}]});var o=function(s){var l=s.view.isTooltipLocked();l?s.view.unlockTooltip():s.view.lockTooltip()};return(0,i.registerInteraction)("tooltip-lock",{start:[{trigger:"plot:click",action:o},{trigger:"plot:touchstart",action:o},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:mousemove",action:"tooltip:show"}],end:[{trigger:"plot:click",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),(0,i.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),A0}var Jce;function KRt(){if(Jce)return zi;Jce=1;var e=zi&&zi.__assign||function(){return e=Object.assign||function(C){for(var w,B=1,M=arguments.length;B<M;B++){w=arguments[B];for(var I in w)Object.prototype.hasOwnProperty.call(w,I)&&(C[I]=w[I])}return C},e.apply(this,arguments)},t=zi&&zi.__createBinding||(Object.create?function(C,w,B,M){M===void 0&&(M=B);var I=Object.getOwnPropertyDescriptor(w,B);(!I||("get"in I?!w.__esModule:I.writable||I.configurable))&&(I={enumerable:!0,get:function(){return w[B]}}),Object.defineProperty(C,M,I)}:function(C,w,B,M){M===void 0&&(M=B),C[M]=w[B]}),r=zi&&zi.__setModuleDefault||(Object.create?function(C,w){Object.defineProperty(C,"default",{enumerable:!0,value:w})}:function(C,w){C.default=w}),n=zi&&zi.__importStar||function(C){if(C&&C.__esModule)return C;var w={};if(C!=null)for(var B in C)B!=="default"&&Object.prototype.hasOwnProperty.call(C,B)&&t(w,C,B);return r(w,C),w},a=zi&&zi.__rest||function(C,w){var B={};for(var M in C)Object.prototype.hasOwnProperty.call(C,M)&&w.indexOf(M)<0&&(B[M]=C[M]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,M=Object.getOwnPropertySymbols(C);I<M.length;I++)w.indexOf(M[I])<0&&Object.prototype.propertyIsEnumerable.call(C,M[I])&&(B[M[I]]=C[M[I]]);return B},i=zi&&zi.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(zi,"__esModule",{value:!0});var o=n(cr()),s=i(u1()),l=i(iSe()),A=i(FSe()),c=i(Hc()),u=i(d1()),d=jo(),f=i(T2()),h=i(jRt()),g=YRt();GRt(),(0,d.registerComponentController)("tooltip",l.default);var p=function(C){var w=C.visible,B=w===void 0?!0:w,M=C.children;return B&&(0,s.default)(M)},E=function(C){var w=C.visible,B=w===void 0?!0:w;C.children;var M=a(C,["visible","children"]),I=(0,f.default)();return I.getController("tooltip").clear(),B===!0?I.tooltip(e({customContent:null,showMarkers:!1},M)):I.tooltip(!1),null};function y(C){var w=C.children,B=C.triggerOn,M=C.onShow,I=C.onChange,S=C.onHide,R=C.lock,b=C.linkage,Q=a(C,["children","triggerOn","onShow","onChange","onHide","lock","linkage"]),D=(0,f.default)();D.removeInteraction("tooltip"),D.removeInteraction("tooltip-click"),D.removeInteraction("tooltip-lock"),B==="click"?D.interaction("tooltip-click"):R?D.interaction("tooltip-lock"):D.interaction("tooltip");var F=(0,o.useRef)((0,A.default)("tooltip"));(0,o.useEffect)(function(){(0,c.default)(b)?(0,g.registerConnector)(b[0],F.current,D,Q.shared,b[1]):(0,u.default)(b)&&(0,g.registerConnector)(b,F.current,D,Q.shared)},[b,D]);var N=(0,o.useCallback)(function(P){(0,s.default)(M)&&M(P,D)},[]),k=(0,o.useCallback)(function(P){(0,s.default)(I)&&I(P,D)},[]),O=(0,o.useCallback)(function(P){(0,s.default)(S)&&S(P,D)},[]);return D.off("tooltip:show",N),D.on("tooltip:show",N),D.off("tooltip:change",k),D.on("tooltip:change",k),D.off("tooltip:hide",O),D.on("tooltip:hide",O),p(C)?o.default.createElement(h.default,e({},Q),w):o.default.createElement(E,e({},C))}return zi.default=y,y.defaultProps={showMarkers:!1,triggerOn:"hover"},zi}var VRt=KRt();const Xy=Nr(VRt);var cA={},uA={},Gx={},Kx={},Wce;function JRt(){if(Wce)return Kx;Wce=1,Object.defineProperty(Kx,"__esModule",{value:!0});var e=NSe(),t=Q2(),r=function(n){if(!e.default(n)||!t.default(n,"Object"))return!1;if(Object.getPrototypeOf(n)===null)return!0;for(var a=n;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(n)===a};return Kx.default=r,Kx}var Xce;function WRt(){if(Xce)return Gx;Xce=1,Object.defineProperty(Gx,"__esModule",{value:!0});var e=Hc(),t=JRt(),r=5;function n(i,o,s,l){s=s||0,l=l||r;for(var A in o)if(o.hasOwnProperty(A)){var c=o[A];c!==null&&t.default(c)?(t.default(i[A])||(i[A]={}),s<l?n(i[A],c,s+1,l):i[A]=o[A]):e.default(c)?(i[A]=[],i[A]=i[A].concat(c)):c!==void 0&&(i[A]=c)}}var a=function(i){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];for(var l=0;l<o.length;l+=1)n(i,o[l]);return i};return Gx.default=a,Gx}var qce;function XRt(){if(qce)return uA;qce=1;var e=uA&&uA.__assign||function(){return e=Object.assign||function(A){for(var c,u=1,d=arguments.length;u<d;u++){c=arguments[u];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(A[f]=c[f])}return A},e.apply(this,arguments)},t=uA&&uA.__rest||function(A,c){var u={};for(var d in A)Object.prototype.hasOwnProperty.call(A,d)&&c.indexOf(d)<0&&(u[d]=A[d]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,d=Object.getOwnPropertySymbols(A);f<d.length;f++)c.indexOf(d[f])<0&&Object.prototype.propertyIsEnumerable.call(A,d[f])&&(u[d[f]]=A[d[f]]);return u},r=uA&&uA.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(uA,"__esModule",{value:!0});var n=r(Hc()),a=r(WRt()),i=r(om()),o=r(j2()),s=r(D6()),l=function(){function A(c){this.config={},this.isRootView=!1,this.chart=c}return A.prototype.creatViewInstance=function(c){this.view=this.chart.createView(this.processOptions(c)),this.view.rootChart=this.chart},A.prototype.getView=function(){return this.view},A.prototype.update=function(c){var u=this,d=this.config.data,f=c.scale,h=c.animate,g=c.filter,p=c.visible,E=c.data,y=E===void 0?[]:E;if(y.rows&&((0,o.default)(!y.rows,"bizcharts@4不支持 dataset数据格式，请使用data={dv.rows}"),y=y.rows),(!this.view||(0,n.default)(d)&&d.length===0)&&(this.destroy(),this.creatViewInstance(c)),(0,n.default)(d)){this.view.changeData(y);var C=!0;d.length!==y.length?C=!1:d.forEach(function(w,B){(0,s.default)(w,y[B])||(C=!1)}),C||this.view.changeData(y)}else this.view.data(y);this.view.scale(f),this.view.animate(h),(0,i.default)(this.config.filter,function(w,B){(0,n.default)(w)?u.view.filter(w[0],null):u.view.filter(B,null)}),(0,i.default)(g,function(w,B){(0,n.default)(w)?u.view.filter(w[0],w[1]):u.view.filter(B,w)}),p?this.view.show():this.view.hide(),this.config=e(e({},c),{data:y})},A.prototype.destroy=function(){this.view&&(this.view.destroy(),this.view=null),this.config={}},A.prototype.processOptions=function(c){var u=c.region,d=c.start,f=c.end,h=t(c,["region","start","end"]);(0,o.default)(!d,"start 属性将在5.0后废弃，请使用 region={{ start: {x:0,y:0}}} 替代"),(0,o.default)(!f,"end 属性将在5.0后废弃，请使用 region={{ end: {x:0,y:0}}} 替代");var g=(0,a.default)({start:{x:0,y:0},end:{x:1,y:1}},{start:d,end:f},u);return e(e({},h),{region:g})},A}();return uA.default=l,uA}var Zce;function qRt(){if(Zce)return cA;Zce=1;var e=cA&&cA.__extends||function(){var s=function(l,A){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(c[d]=u[d])},s(l,A)};return function(l,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");s(l,A);function c(){this.constructor=l}l.prototype=A===null?Object.create(A):(c.prototype=A.prototype,new c)}}(),t=cA&&cA.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(cA,"__esModule",{value:!0}),cA.View=void 0;var r=t(cr()),n=t(DSe()),a=t(i1()),i=t(XRt()),o=cA.View=function(s){e(l,s);function l(){var A=s!==null&&s.apply(this,arguments)||this;return A.name="view",A}return l.prototype.componentWillUnmount=function(){this.viewHelper.destroy(),this.viewHelper=null},l.prototype.render=function(){return this.viewHelper||(this.viewHelper=new i.default(this.context.chart)),this.viewHelper.update(this.props),r.default.createElement(a.default.Provider,{value:this.viewHelper.view},r.default.createElement(r.default.Fragment,null,this.props.children))},l.defaultProps={visible:!0,preInteractions:[],filter:[]},l}(r.default.Component);return o.contextType=n.default,cA.default=o,cA}var ZRt=qRt();const U6=Nr(ZRt),H6=({data:e,xFieldName:t="name",yFieldName:r="value"})=>{const n=Ye(A=>A.cti.ui.graphColors.pieChart),a=Ye(A=>A.cti.ui.generatePDF),i=Ye(A=>A.cti.ui.pdfSize),o={[r]:{formatter:A=>{let c=e.find(u=>u[r]===A);return c&&c.formattedValue?c.formattedValue:A}}},s=lo(e,A=>A.type),l=({width:A,height:c,noLegend:u,dataSet:d,title:f})=>v.jsxs(zh,{data:d,width:A,height:c-50,padding:"auto",scale:o,children:[v.jsx("h3",{className:"graph-title graph__doublePieChart-title",children:f}),v.jsx(jh,{name:t,position:"right",visible:!u}),v.jsx(Xy,{showTitle:!1}),v.jsxs(U6,{data:d,animate:!0,children:[v.jsx(Y6,{type:"theta",radius:.85}),v.jsx(Hs,{visible:!1}),v.jsx(sm,{adjust:"stack",style:{lineWidth:1,stroke:"#f0f2f5"},position:r,color:[t,[...n]]}),v.jsx(Xy,{shared:!0})]})]});return v.jsxs("div",{className:"graph-wrapper",children:[a===!1?v.jsx(Dl,{children:({width:A,height:c})=>v.jsx(l,{width:A/2,height:c,noLegend:!0,dataSet:Object.values(s)[0],title:Object.keys(s)[0]})}):v.jsx(l,{width:i.width/2,height:i.height-200,noLegend:!0,dataSet:Object.values(s)[0],title:Object.keys(s)[0]}),a===!1?v.jsx(Dl,{children:({width:A,height:c})=>v.jsx(l,{width:A/2,height:c,dataSet:Object.values(s)[1],title:Object.keys(s)[1]})}):v.jsx(l,{width:i.width/2,height:i.height-200,noLegend:!0,dataSet:Object.values(s)[1],title:Object.keys(s)[1]})]})};H6.propTypes={data:U.arrayOf(U.object).isRequired,xFieldName:U.string,yFieldName:U.string};H6.defaultProps={xFieldName:"name",yFieldName:"value"};var Cu={},Vx={},Jx={},Wx={},cc={},$ce;function YSe(){if($ce)return cc;$ce=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.getSmoothViolinPath=cc.getViolinPath=cc.getPathPoints=void 0;var e=Gt,t=k2();function r(s){return s?!1:s==null||isNaN(s)}function n(s){if((0,e.isArray)(s))return r(s[1].y);var l=s.y;return(0,e.isArray)(l)?r(l[0]):r(l)}function a(s,l,A){if(l===void 0&&(l=!1),A===void 0&&(A=!0),!s.length||s.length===1&&!A)return[];if(l){for(var c=[],u=0,d=s.length;u<d;u++){var f=s[u];n(f)||c.push(f)}return[c]}for(var h=[],g=[],u=0,d=s.length;u<d;u++){var f=s[u];n(f)?g.length&&(g.length===1&&!A||h.push(g),g=[]):g.push(f)}return g.length&&h.push(g),h}cc.getPathPoints=a;function i(s){for(var l=[],A=0;A<s.length;A++){var c=s[A];if(c){var u=A===0?"M":"L";l.push([u,c.x,c.y])}}var d=s[0];return d&&(l.push(["L",d.x,d.y]),l.push(["z"])),l}cc.getViolinPath=i;function o(s){for(var l=s.length/2,A=[],c=[],u=0;u<s.length;u++)u<l?A.push(s[u]):c.push(s[u]);var d=(0,t.getSplinePath)(A,!1),f=(0,t.getSplinePath)(c,!1);c.length&&d.push(["L",c[0].x,c[0].y]),f.shift();var h=d.concat(f);return A.length&&h.push(["L",A[0].x,A[0].y]),h.push(["z"]),h}return cc.getSmoothViolinPath=o,cc}var c0={},eue;function LSe(){if(eue)return c0;eue=1,Object.defineProperty(c0,"__esModule",{value:!0}),c0.splitPoints=void 0;var e=Gt;function t(r){var n=r.x,a=(0,e.isArray)(r.y)?r.y:[r.y];return a.map(function(i,o){return{x:(0,e.isArray)(n)?n[o]:n,y:i}})}return c0.splitPoints=t,c0}var u0={},tue;function USe(){if(tue)return u0;tue=1,Object.defineProperty(u0,"__esModule",{value:!0}),u0.getLineMarker=void 0;var e={line:function(r,n,a){return[["M",r-a,n],["L",r+a,n]]},dot:function(r,n,a){return[["M",r-a,n],["L",r+a,n]]},dash:function(r,n,a){return[["M",r-a,n],["L",r+a,n]]},smooth:function(r,n,a){return[["M",r-a,n],["A",a/2,a/2,0,1,1,r,n],["A",a/2,a/2,0,1,0,r+a,n]]},hv:function(r,n,a){return[["M",r-a-1,n-2.5],["L",r,n-2.5],["L",r,n+2.5],["L",r+a+1,n+2.5]]},vh:function(r,n,a){return[["M",r-a-1,n+2.5],["L",r,n+2.5],["L",r,n-2.5],["L",r+a+1,n-2.5]]},hvh:function(r,n,a){return[["M",r-(a+1),n+2.5],["L",r-a/2,n+2.5],["L",r-a/2,n-2.5],["L",r+a/2,n-2.5],["L",r+a/2,n+2.5],["L",r+a+1,n+2.5]]},vhv:function(r,n){return[["M",r-5,n+2.5],["L",r-5,n],["L",r,n],["L",r,n-3],["L",r,n+3],["L",r+6.5,n+3]]}};function t(r,n){var a=r.color;return{symbol:e[n],style:{lineWidth:2,r:6,stroke:a}}}return u0.getLineMarker=t,u0}var rue;function HSe(){if(rue)return Wx;rue=1,Object.defineProperty(Wx,"__esModule",{value:!0});var e=Gt,t=zo(),r=YSe(),n=GA(),a=k2(),i=LSe(),o=USe();function s(d,f,h){for(var g=d.isStack,p=d.connectNulls,E=d.isInCircle,y=d.showSinglePoint,C=(0,n.getStyle)(d,!0,!1,"lineWidth"),w=(0,r.getPathPoints)(d.points,p,y),B=[],M=0,I=w.length;M<I;M++){var S=w[M];B=B.concat(c(S,E,g,f,h,C))}return C.path=B,C}function l(d,f,h,g,p){if(d.length===1)return[["M",d[0].x,d[0].y-p.lineWidth/2],["L",d[0].x,d[0].y],["L",d[0].x,d[0].y+p.lineWidth/2]];var E;return h?(f&&d.length&&d.push({x:d[0].x,y:d[0].y}),E=(0,a.getSplinePath)(d,!1,g)):(E=(0,a.getLinePath)(d,!1),f&&E.push(["Z"])),E}function A(d,f,h,g,p,E){var y=[],C=[];(0,e.each)(d,function(M){var I=(0,i.splitPoints)(M);y.push(I[1]),C.push(I[0])});var w=l(y,f,g,p,E),B=l(C,f,g,p,E);return h?w:w.concat(B)}function c(d,f,h,g,p,E){if(d.length){var y=d[0];return(0,e.isArray)(y.y)?A(d,f,h,g,p,E):l(d,f,g,p,E)}return[]}var u=(0,t.registerShapeFactory)("line",{defaultShapeType:"line"});return(0,e.each)(["line","dot","dash","smooth"],function(d){(0,t.registerShape)("line",d,{draw:function(f,h){var g=d==="smooth",p;if(g){var E=this.coordinate,y=E.start,C=E.end;p=[[y.x,C.y],[C.x,y.y]]}var w=s(f,g,p),B=h.addShape({type:"path",attrs:w,name:"line",capture:!g});return B},getMarker:function(f){return(0,o.getLineMarker)(f,d)}})}),Wx.default=u,Wx}var nue;function $Rt(){if(nue)return Jx;nue=1,Object.defineProperty(Jx,"__esModule",{value:!0});var e=Kt,t=Pa(),r=(0,e.__importDefault)(O2()),n=(0,e.__importDefault)(B6());HSe();var a=oSe(),i=sSe(),o=function(s){(0,e.__extends)(l,s);function l(A){var c=s.call(this,A)||this;c.type="path",c.shapeType="line";var u=A.connectNulls,d=u===void 0?!1:u,f=A.showSinglePoint,h=f===void 0?!0:f;return c.connectNulls=d,c.showSinglePoint=h,c}return l.prototype.updateElements=function(A,c){c===void 0&&(c=!1);for(var u=new Map,d=new Map,f=[],h=0,g=0;g<A.length;g++){var p=A[g],E=this.getElementId(p);f.push(E),u.set(E,p),d.set(E,h),h++}this.elements=new Array(h);for(var y=(0,i.diff)(this.lastElementsMap,f),C=y.added,w=y.updated,B=y.removed,M=0,I=C;M<I.length;M++){var E=I[M],p=u.get(E),S=this.getShapeFactory(),R=this.getShapeInfo(p),g=d.get(E),b=new n.default({shapeFactory:S,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:g});b.geometry=this,b.animate=this.animateOption,b.draw(R,c),this.elementsMap[E]=b,this.elements[g]=b}for(var Q=0,D=w;Q<D.length;Q++){var E=D[Q],p=u.get(E),b=this.lastElementsMap[E],g=d.get(E),R=this.getShapeInfo(p),F=b.getModel();(this.isCoordinateChanged||(0,a.isModelChange)(F,R))&&(b.animate=this.animateOption,b.update(R)),this.elementsMap[E]=b,this.elements[g]=b}for(var N=0,k=B;N<k.length;N++){var E=k[N],b=this.lastElementsMap[E];b.animate=this.animateOption,b.destroy()}},l.prototype.getPointsAndData=function(A){for(var c=[],u=[],d=0,f=A.length;d<f;d++){var h=A[d];c.push({x:h.x,y:h.y}),u.push(h[t.FIELD_ORIGIN])}return{points:c,data:u}},l.prototype.getShapeInfo=function(A){var c=this.getDrawCfg(A[0]),u=this.getPointsAndData(A),d=u.points,f=u.data;return c.mappingData=A,c.data=f,c.isStack=!!this.getAdjust("stack"),c.points=d,c.connectNulls=this.connectNulls,c.showSinglePoint=this.showSinglePoint,c},l}(r.default);return Jx.default=o,Jx}var aue;function e2t(){if(aue)return Vx;aue=1,Object.defineProperty(Vx,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)($Rt());HSe();var r=function(n){(0,e.__extends)(a,n);function a(i){var o=n.call(this,i)||this;o.type="line";var s=i.sortable,l=s===void 0?!1:s;return o.sortable=l,o}return a}(t.default);return Vx.default=r,Vx}var oO={},iue;function oue(){if(iue)return oO;iue=1,Object.defineProperty(oO,"__esModule",{value:!0});var e=Kt,t=Gt,r=zo(),n=YSe(),a=GA(),i=USe(),o=function(c,u,d){var f=c.x,h=c.y,g=u.x,p=u.y,E;switch(d){case"hv":E=[{x:g,y:h}];break;case"vh":E=[{x:f,y:p}];break;case"hvh":var y=(g+f)/2;E=[{x:y,y:h},{x:y,y:p}];break;case"vhv":var C=(h+p)/2;E=[{x:f,y:C},{x:g,y:C}];break}return E};function s(c,u){var d=[];return(0,t.each)(c,function(f,h){var g=c[h+1];if(d.push(f),g){var p=o(f,g,u);d=d.concat(p)}}),d}function l(c){return c.map(function(u,d){return d===0?["M",u.x,u.y]:["L",u.x,u.y]})}function A(c,u){var d=(0,n.getPathPoints)(c.points,c.connectNulls,c.showSinglePoint),f=[];return(0,t.each)(d,function(h){var g=s(h,u);f=f.concat(l(g))}),(0,e.__assign)((0,e.__assign)({},(0,a.getStyle)(c,!0,!1,"lineWidth")),{path:f})}return(0,t.each)(["hv","vh","hvh","vhv"],function(c){(0,r.registerShape)("line",c,{draw:function(u,d){var f=A(u,c),h=d.addShape({type:"path",attrs:f,name:"line"});return h},getMarker:function(u){return(0,i.getLineMarker)(u,c)}})}),oO}var sue;function t2t(){if(sue)return Cu;sue=1;var e=Cu&&Cu.__extends||function(){var o=function(s,l){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,c){A.__proto__=c}||function(A,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(A[u]=c[u])},o(s,l)};return function(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");o(s,l);function A(){this.constructor=s}s.prototype=l===null?Object.create(l):(A.prototype=l.prototype,new A)}}(),t=Cu&&Cu.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Cu,"__esModule",{value:!0});var r=t(e2t());oue();var n=t(z6()),a=jo();oue(),(0,a.registerGeometry)("Line",r.default);var i=function(o){e(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.GemoBaseClassName="line",l}return s}(n.default);return Cu.default=i,Cu}var r2t=t2t();const GSe=Nr(r2t);var wu={},Xx={},qx={},uc={},lue;function G6(){if(lue)return uc;lue=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.drawPoints=uc.HOLLOW_SHAPES=uc.SHAPES=void 0;var e=Kt,t=c1(),r=GA();uc.SHAPES=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],uc.HOLLOW_SHAPES=["cross","tick","plus","hyphen","line"];function n(a,i,o,s,l){var A=(0,r.getStyle)(i,l,!l,"r"),c=a.parsePoints(i.points),u=c[0];if(i.isStack)u=c[1];else if(c.length>1){for(var d=o.addGroup(),f=0,h=c;f<h.length;f++){var g=h[f];d.addShape({type:"marker",attrs:(0,e.__assign)((0,e.__assign)((0,e.__assign)({},A),{symbol:t.MarkerSymbols[s]||s}),g)})}return d}return o.addShape({type:"marker",attrs:(0,e.__assign)((0,e.__assign)((0,e.__assign)({},A),{symbol:t.MarkerSymbols[s]||s}),u)})}return uc.drawPoints=n,uc}var Aue;function n2t(){if(Aue)return qx;Aue=1,Object.defineProperty(qx,"__esModule",{value:!0});var e=Gt,t=c1(),r=zo(),n=LSe(),a=G6(),i=(0,r.registerShapeFactory)("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(o){return(0,n.splitPoints)(o)}});return(0,e.each)(a.SHAPES,function(o){(0,r.registerShape)("point","hollow-"+o,{draw:function(s,l){return(0,a.drawPoints)(this,s,l,o,!0)},getMarker:function(s){var l=s.color;return{symbol:t.MarkerSymbols[o]||o,style:{r:4.5,stroke:l,fill:null}}}})}),qx.default=i,qx}var cue;function a2t(){if(cue)return Xx;cue=1,Object.defineProperty(Xx,"__esModule",{value:!0});var e=Kt,t=(0,e.__importDefault)(O2());n2t();var r=function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.type="point",i.shapeType="point",i.generatePoints=!0,i}return a.prototype.getDrawCfg=function(i){var o=n.prototype.getDrawCfg.call(this,i);return(0,e.__assign)((0,e.__assign)({},o),{isStack:!!this.getAdjust("stack")})},a}(t.default);return Xx.default=r,Xx}var sO={},uue;function i2t(){if(uue)return sO;uue=1,Object.defineProperty(sO,"__esModule",{value:!0});var e=Gt,t=c1(),r=zo(),n=G6();return(0,e.each)(n.HOLLOW_SHAPES,function(a){(0,r.registerShape)("point",a,{draw:function(i,o){return(0,n.drawPoints)(this,i,o,a,!0)},getMarker:function(i){var o=i.color;return{symbol:t.MarkerSymbols[a],style:{r:4.5,stroke:o,fill:null}}}})}),sO}var lO={},due;function o2t(){if(due)return lO;due=1,Object.defineProperty(lO,"__esModule",{value:!0});var e=zo(),t=GA();return(0,e.registerShape)("point","image",{draw:function(r,n){var a=(0,t.getStyle)(r,!1,!1,"r").r,i=this.parsePoints(r.points),o=i[0];if(r.isStack)o=i[1];else if(i.length>1){for(var s=n.addGroup(),l=0,A=i;l<A.length;l++){var c=A[l];s.addShape("image",{attrs:{x:c.x-a/2,y:c.y-a,width:a,height:a,img:r.shape[1]}})}return s}return n.addShape("image",{attrs:{x:o.x-a/2,y:o.y-a,width:a,height:a,img:r.shape[1]}})},getMarker:function(r){var n=r.color;return{symbol:"circle",style:{r:4.5,fill:n}}}}),lO}var AO={},fue;function s2t(){if(fue)return AO;fue=1,Object.defineProperty(AO,"__esModule",{value:!0});var e=Gt,t=c1(),r=zo(),n=G6();return(0,e.each)(n.SHAPES,function(a){(0,r.registerShape)("point",a,{draw:function(i,o){return(0,n.drawPoints)(this,i,o,a,!1)},getMarker:function(i){var o=i.color;return{symbol:t.MarkerSymbols[a]||a,style:{r:4.5,fill:o}}}})}),AO}var hue;function l2t(){if(hue)return wu;hue=1;var e=wu&&wu.__extends||function(){var o=function(s,l){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,c){A.__proto__=c}||function(A,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(A[u]=c[u])},o(s,l)};return function(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");o(s,l);function A(){this.constructor=s}s.prototype=l===null?Object.create(l):(A.prototype=l.prototype,new A)}}(),t=wu&&wu.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(wu,"__esModule",{value:!0});var r=t(a2t()),n=t(z6()),a=jo();i2t(),o2t(),s2t(),(0,a.registerGeometry)("Point",r.default);var i=function(o){e(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.GemoBaseClassName="point",l}return s}(n.default);return wu.default=i,wu}var A2t=l2t();const KSe=Nr(A2t),K6=({data:e,xFieldName:t="name",yFieldName:r="value",options:n,title:a,series:i})=>{const o=Ye(S=>S.cti.ui.graphColors.pieChart),s=Ye(S=>S.cti.ui.generatePDF),l=Ye(S=>S.cti.ui.pdfSize);let A=o;const c=Object.keys(lo(e,S=>S.type)),u=te.useCallback(S=>{const R=Array.isArray(S)?S[0].replace(/"/gm,""):S,b=c.indexOf(R);return A[b]},[A,n,c]);let d=c;d.includes("undefined")&&a&&(d=[a]),d=d.map((S,R)=>{const b=u(S);return{id:R,name:S,marker:{style:{fill:b},symbol:"square"}}});const f=(S,R,b)=>{if(!n||!n.labelView)return S;const Q=e.find(D=>D.category===S);return n.labelView===0||S==="Autres"?S:Q?Q.label_code:"Pas de code"};let h=[],g=[],p=[],E=[];Object.values(i).forEach(S=>{g.push(S.displayName),S.type==="line"?p.push(S.displayName):E.push(S.displayName)});const y=lo(e,S=>S.name);for(let S in y){let R={name:S};const b=y[S];g.forEach(Q=>{const D=b.find(F=>F.type===Q);D&&(R[Q]=D.value,R[`${Q}_formatted`]=D.formattedValue)}),h.push(R)}const C=e.map(S=>S.value),w=Math.max(...C)*1.1,B=Math.min(...C)*.9;let M={};if(g.forEach(S=>{M[S]={min:B,max:w,formatter:R=>{let b=h.find(Q=>Q[S]===R);return b?b[`${S}_formatted`]??R:R}}}),!e.length)return null;const I=({width:S,height:R})=>v.jsxs(zh,{height:R,width:S,data:h,padding:"auto",scale:M,children:[v.jsx(Zn,{shared:!0}),v.jsx(jh,{custom:!0,items:d,visible:!0,itemName:{style:{fill:"rgba(0,0,0,0.85)"}}}),v.jsx(Hs,{name:t,label:{style:{fill:"rgba(0,0,0,0.85)"},formatter:f}}),v.jsx(Hs,{name:r,label:{style:{fill:"rgba(0,0,0,0.85)"}},formatter:b=>Math.round(b)===b?b:b.toFixed(2)}),E.map(b=>v.jsx(sm,{color:[`"${b}"`,Q=>u(Q)],position:`${t}*${b}`},b)),p.map(b=>v.jsxs("div",{children:[v.jsx(GSe,{position:`${t}*${b}`,color:[`"${b}"`,Q=>u(Q)],size:3,shape:"smooth"}),v.jsx(KSe,{color:[`"${b}"`,Q=>u(Q)],position:`${t}*${b}`,size:3,shape:"smooth"})]},b))]});return v.jsx("div",{className:"graph-wrapper",children:s===!1?v.jsx(Dl,{children:({width:S,height:R})=>v.jsx(I,{width:S,height:R})}):v.jsx(I,{width:l.width,height:l.height})})};K6.propTypes={data:U.arrayOf(U.object).isRequired,xFieldName:U.string,yFieldName:U.string,options:U.object,title:U.string,serie:U.object};K6.defaultProps={xFieldName:"name",yFieldName:"value",percent:!1};const c2t=te.memo(K6,id);let VSe;const JSe=["F - Féminin","Féminin","féminin","Feminin","feminin","F"],WSe=["M","Masculin","masculin","M - Masculin"],u2t=WSe.concat(JSe);VSe={men:WSe,women:JSe,all:u2t};const ly=VSe,d2t=(e,t)=>t.filter(function(n){const a=new Date(n.date_reference);return a.getFullYear()===e.getFullYear()&&a.getMonth()<=e.getMonth()}),V6=({data:e,xFieldName:t="name",yFieldName:r="value"})=>{let n=Ye(c=>c.cti.ui.graphColors.pieChart),a=Ye(c=>c.cti.ui.graphColors.sexChart);e.length===2&&ly.all.includes(e[0].name)&&(n=[],e.forEach(c=>{ly.men.includes(c.name)&&n.push(a[0]),ly.women.includes(c.name)&&n.push(a[1])}));const i=Ye(c=>c.cti.ui.generatePDF),o=Ye(c=>c.cti.ui.pdfSize);let s=n;const l={[r]:{formatter:c=>{let u=e.find(d=>d[r]===c);return u&&u.formattedValue?u.formattedValue:c}}},A=({width:c,height:u})=>v.jsxs(zh,{data:e,width:c,height:u,padding:"auto",scale:l,children:[v.jsx(jh,{name:t,position:"right"}),v.jsx(Xy,{showTitle:!1}),v.jsxs(U6,{data:e,animate:!0,children:[v.jsx(Y6,{type:"theta",radius:.85}),v.jsx(Hs,{visible:!1}),v.jsx(sm,{adjust:"stack",style:{lineWidth:1,stroke:"#f0f2f5"},position:r,color:[t,[...s]]}),v.jsx(Xy,{shared:!0,title:(d,f)=>f.tooltipLabel??d})]})]});return v.jsx("div",{className:"graph-wrapper",children:i===!1?v.jsx(Dl,{children:({width:c,height:u})=>v.jsx(A,{width:c,height:u})}):v.jsx(A,{width:o.width,height:o.height})})};V6.propTypes={data:U.arrayOf(U.object).isRequired,xFieldName:U.string,yFieldName:U.string};V6.defaultProps={xFieldName:"name",yFieldName:"value"};const J6=({data:e,xFieldName:t="name",yFieldName:r="value",includeSeries:n=[]})=>{let a=Ye(y=>y.cti.ui.graphColors.lineChart),i=Ye(y=>y.cti.ui.graphColors.sexChart);const o=Ye(y=>y.cti.ui.generatePDF),s=Ye(y=>y.cti.ui.pdfSize),l=Ye(y=>y.cti.eis.date);let A=e.map(y=>y.value),c=a,u,d;const f=Object.keys(lo(e,y=>y.type));let h=e.map(y=>({...y}));if(n.length){h=h.filter(C=>n.includes(Number(C.serie)));const y=new Date(l);h=d2t(y,h),A=h.map(C=>C.value),d=Math.max(...A)*1.1,u=Math.min(...A)*.9}else d=Math.max(...A)*1.1,u=Math.min(...A)*.9;const g=y=>{if(ly.men.includes(y))return i[0];if(ly.women.includes(y))return i[1];let C=f.indexOf(y);return C===-1&&(C=0),c[C]},p={[r]:{formatter:y=>{let C=h.find(w=>w[r]===y);return C&&C.formattedValue?C.formattedValue:y},min:u,max:d}},E=({width:y,height:C})=>v.jsxs(zh,{data:h,width:y,height:C,padding:"auto",scale:p,children:[v.jsx(jh,{}),v.jsx(Hs,{name:t}),v.jsx(Hs,{name:r}),v.jsx(GSe,{type:"line",shape:"smooth",position:`${t}*${r}`,size:2,color:["type",w=>g(w)]}),v.jsx(KSe,{position:`${t}*${r}`,size:4,shape:"circle",color:["type",w=>g(w)],style:{stroke:"#fff",lineWidth:1}})]});return v.jsx("div",{className:"graph-wrapper",children:o===!1?v.jsx(Dl,{children:({width:y,height:C})=>v.jsx(E,{width:y,height:C})}):v.jsx(E,{width:s.width,height:s.height})})};J6.propTypes={data:U.arrayOf(U.object).isRequired,xFieldName:U.string,yFieldName:U.string,includeSeries:U.arrayOf(U.number)};J6.defaultProps={xFieldName:"name",yFieldName:"value"};const f2t=te.memo(J6,id),W6=({data:e,xFieldName:t="name",yFieldName:r="value",options:n})=>{const a=Ye(h=>h.cti.ui.graphColors.columnChart),i=Ye(h=>h.cti.ui.generatePDF),o=Ye(h=>h.cti.ui.pdfSize),[s,l]=m.useState(0),A=Object.keys(lo(e,h=>h.type));m.useEffect(()=>{const h=e.map(y=>y.value);let g=Math.max(...h),p=Math.min(...h),E=Math.max(g,Math.abs(p));l(E)},[e]);const c=h=>{const g=A.indexOf(h);return a[g]},u=(h,g,p)=>{if(!n||!n.labelView)return h;const E=e.find(y=>y.category===h);return n.labelView===0||h==="Autres"?h:E?E.label_code:"Pas de code"},d={[t]:{formatter:h=>h<0?-h:h,nice:!0,min:-s,max:s}};if(!e.length)return null;const f=({width:h,height:g})=>v.jsxs(zh,{height:g,width:h,data:e,autoFit:!0,children:[v.jsx(jh,{itemName:{style:{fill:"rgba(0,0,0,0.85)"}}}),v.jsxs(U6,{data:e,scale:d,animate:!0,children:[v.jsx(Hs,{name:r,label:{offset:12,formatter:u,style:{fill:"rgba(0,0,0,0.85)"}}}),v.jsx(Hs,{name:"value",label:{style:{fill:"rgba(0,0,0,0.85)"}}}),v.jsx(Y6,{transpose:!0}),v.jsx(sm,{adjust:[{type:"stack"}],color:["type",p=>c(p)],position:`${r}*${t}`})]})]});return v.jsx("div",{className:"graph-wrapper",children:i===!1?v.jsx(Dl,{children:({width:h,height:g})=>v.jsx(f,{width:h,height:g})}):v.jsx(f,{width:o.width,height:o.height})})};W6.propTypes={data:U.arrayOf(U.object).isRequired,xFieldName:U.string,yFieldName:U.string,options:U.object};W6.defaultProps={xFieldName:"name",yFieldName:"value"};const h2t=te.memo(W6,id),X6=({data:e,xFieldName:t="name",yFieldName:r="value",options:n,title:a})=>{const i=Ye(E=>E.cti.ui.graphColors.columnChart),o=Ye(E=>E.cti.ui.generatePDF),s=Ye(E=>E.cti.ui.pdfSize),l=Pr(),A=E=>{E.data.data.indicateur_condition_id&&l(xhe(E.data.data.indicateur_condition_id[0]))};let c=i;const u=Object.keys(lo(e,E=>E.type)),d=te.useCallback((E,y)=>{const C=Array.isArray(E)?y:E,w=u.indexOf(C);return c[w]},[c,n,u]);let f=u;f.includes("undefined")&&a&&(f=[a]),f=f.map((E,y)=>{const C=d(E);return{id:y,name:E,marker:{style:{fill:C},symbol:"square"}}});const h=(E,y,C)=>{if(!n||!n.labelView)return E;const w=e.find(B=>B.category===E);return n.labelView===0||E==="Autres"?E:w?w.label_code:"Pas de code"},g={[r]:{formatter:E=>{let y=e.find(C=>C[r]===E);return y&&y.formattedValue?y.formattedValue:E}}};if(!e.length)return null;const p=({width:E,height:y})=>v.jsxs(zh,{height:y,width:E,data:e,onIntervalClick:A,padding:"auto",scale:g,children:[v.jsx(jh,{custom:!0,items:f,visible:!0,itemName:{style:{fill:"rgba(0,0,0,0.85)"}}}),v.jsx(Hs,{name:t,label:{style:{fill:"rgba(0,0,0,0.85)"},formatter:h}}),v.jsx(Hs,{name:r,label:{style:{fill:"rgba(0,0,0,0.85)"}},formatter:C=>Math.round(C)===C?C:C.toFixed(2)}),v.jsx(sm,{adjust:[{type:"stack"}],color:["type*name",(C,w)=>d(C,w)],position:`${t}*${r}`}),v.jsx(Xy,{shared:!0,title:(C,w)=>w.tooltipLabel??C})]});return v.jsx("div",{className:"graph-wrapper",children:o===!1?v.jsx(Dl,{children:({width:E,height:y})=>v.jsx(p,{width:E,height:y})}):v.jsx(p,{width:s.width,height:s.height})})};X6.propTypes={data:U.arrayOf(U.object).isRequired,xFieldName:U.string,yFieldName:U.string,options:U.object,title:U.string};X6.defaultProps={xFieldName:"name",yFieldName:"value",percent:!1};const gue=te.memo(X6,id),g2t=({charts:e,data:t,view:r,tabName:n,similiTabName:a,height:i})=>{function o(g,p=!1){return t?g.map((E,y)=>{if(E.subCharts){const C=Object.values(E.subCharts).filter(w=>w.visibleCondition?Cn(w.visibleCondition,r):!0);return v.jsx("div",{style:{height:"100%"},children:v.jsx("div",{className:"graphs",tabname:Ka(n),similitabname:Ka(a),rendertypechart:"filteredSubcharts",carousel:p?"true":null,children:s(C,t)})},y)}else{let C;if(E.serieIsCategory&&E.serieIsCategory==="true"){const w=Object.values(E.series);C=l(t,w,E)}else C=A(t,E);return!C||C.length<1?null:v.jsx("div",{style:{height:"100%"},children:v.jsx("div",{className:"graphs",tabname:Ka(n),similitabname:Ka(a),rendertypechart:"chart",carousel:p?"true":null,children:d(E,C)})},y)}}):null}function s(g,p){return g.map((E,y)=>{const C=Object.values(E.series);let w;return E.serieIsCategory!==void 0&&E.serieIsCategory==="true"?w=l(p,C,E):w=A(p,E),!w||w.length<1?null:d(E,w,y)})}function l(g,p,E){let[y,C]=g,w=[],B;E.condition&&(B=E.condition);let M=y;B&&(M=y.filter(S=>{try{return Cn(B,r,S)}catch(R){return console.log(B),console.log(R),!0}}));let I=M;if(E.sortField&&E.sortField&&I.every(S=>S[E.sortField])){let S=E.sortSeq==="D"?"desc":"asc";I=Ic(I,E.sortField,S)}return E.fromTotal==="true"&&(I=C),E.maxItems&&(I=I.slice(0,Number(E.maxItems))),I.forEach((S,R)=>{p.forEach(b=>{var k,O,P;let Q={};Q.name=b.displayName,b.displayNameCalc&&b.displayNameCalc==="true"&&(Q.name=Cn(b.displayName,r));let D=b.field;Q.value=c(D,[S],E,C),Q.formattedValue=Q.value;const F=r.run.data[n];if(F){const z=F.datagrid.columns[b.field];if(z){let j=z.outputFormat;if(j&&j!==""){let V=z.outputFormat.trim();/^=/gm.test(V)&&(V=Cn(V,r)),Q.formattedValue=VI({type:z.type,format:V,data:Q.value})}}}let N=E.categories[0].field;N==="CODTXT"&&((k=S.COD)!=null&&k.sanitizedText)&&((O=S.TXT)!=null&&O.sanitizedText)?Q.type=`${S.COD.sanitizedText}-${S.TXT.sanitizedText}`:Q.type=(P=S[N])==null?void 0:P.sanitizedText,Q.type||(Q.type=E.title),w.push(Q)})}),w=w.filter(S=>!(S.name===""&&S.value===0)),w}function A(g,p){const[E]=g,y=Object.values(p.series).filter(b=>b.visible!=="false");let C=[],w;p.condition&&(w=p.condition);let B=E;w&&(B=E.filter(b=>{let Q={};if(b&&Object.values(b).some(D=>D.text))for(let D in b)Q[D]=b[D].text?b[D].text:b[D];return Cn(w,r,Q)})),B=f(B,p);let M=[],I=[],S=[],R={};if(p.categories[0].items)M=p.categories[0].items.map(b=>b.field),I=p.categories[0].items.map(b=>b.displayNameCalc==="true"?Cn(b.displayName,r):b.displayName),M.forEach(b=>R[b]=B);else{let b=p.categories[0].field;const Q=b==="CODTXT"?"COD":b;R=lo(B,D=>D[Q].sanitizedText?D[Q].sanitizedText:D[Q]),b==="CODTXT"?(b="COD",I=Object.values(R).map(D=>{if(D[0].COD&&D[0].TXT){let F=D[0].COD.sanitizedText??D[0].COD,N=D[0].TXT.sanitizedText??D[0].TXT;return`${F} - ${N}`}else return D[0].TXT.sanitizedText??D[0].TXT})):(I=Object.values(R).map(D=>D[0][b].sanitizedText?D[0][b].sanitizedText:D[0][b]),S=Object.values(R).map(D=>{var F,N;if(D[0].COD&&D[0].TXT){let k=D[0].COD.sanitizedText??D[0].COD,O=D[0].TXT.sanitizedText??D[0].TXT;return`${k} - ${O}`}else return((N=(F=D[0])==null?void 0:F.TXT)==null?void 0:N.sanitizedText)??D[0].TXT})),M=Object.keys(R)}if(M.forEach((b,Q)=>{y.forEach(D=>{let F=R[b];D.condition&&(F=F.filter(j=>{try{return Cn(D.condition,r,j)}catch(V){return console.log(D.condition),console.log(V),!0}}));let N=D.displayName;D.displayNameCalc&&D.displayNameCalc==="true"&&(N=Cn(N,r));let k=c(D.field??b,F,p),O=k;const P=r.run.data[n];if(P){const j=P.datagrid.columns[D.field];if(j){let V=j.outputFormat;if(V&&V!==""){let L=j.outputFormat.trim();/^=/gm.test(L)&&(L=Cn(L,r)),O=VI({type:j.type,format:L,data:k})}}}let z={name:I[Q],tooltipLabel:S[Q]??null,type:N,value:c(D.field??b,F,p),formattedValue:O};(p==null?void 0:p.sortField)!==""&&R[b].length===1?z[p.sortField]=R[b][0][p.sortField]:R[b].length===1&&(z.COD=R[b][0].COD),C.push(z)})}),p.sortField&&p.softField!==""){let b,Q=p.sortField;if(Q&&C.every(D=>D[Q])){let D=p.sortSeq==="D"?"desc":"asc";b=Ic(C,Q,D)}else b=u(C);C=b}return C}function c(g,p,E,y=[]){const C=r.run.data[n].datagrid.columns,w=Object.values(C).find(I=>I.dataField===g);let B=!1;E.fromTotal&&E.fromTotal==="true"&&(B=!0);let M=0;if(B){const I=y.find(S=>S.OID==="-9999999");I&&I[g]&&!isNaN(parseFloat(I[g].text))?(M=parseFloat(I[g].text),w&&w.outputFormat&&(M=M.toFixed(mK(w.outputFormat)),M=Number(M))):I[g]&&!isNaN(parseFloat(I[g]))&&(M=parseFloat(I[g]),w&&w.outputFormat&&(M=M.toFixed(mK(w.outputFormat)),M=Number(M)))}else M=0,p.forEach(I=>{I[g]&&!isNaN(Number(I[g].text))?M+=Number(I[g].text):I[g]&&!isNaN(Number(I[g]))&&(M+=Number(I[g]))});return Math.round(M)===M?M:Number(M.toFixed(2))}function u(g){let p=lo(g,C=>C.name);p=Object.values(p).map(C=>({name:C[0].name,total:C.reduce((w,B)=>B.value+w,0)}));let E=Object.values(M1e(p,C=>C.total).reverse());return E=E.map(C=>C.name),g.sort((C,w)=>E.indexOf(C.name)-E.indexOf(w.name))}function d(g,p,E=0){let y=p;switch(g.type){case"mixedChart":return v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(c2t,{data:y,title:g.title,series:g.series},E)]},E);case"columnChart":return g.subType&&g.subType==="stacked"?v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(gue,{data:y,title:g.title},E)]},E):v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(_Rt,{data:y,title:g.title},E)]},E);case"pieChart":return v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(V6,{data:y,title:g.title},E)]},E);case"pieChart2":return v.jsx("div",{className:"sub-graph",children:v.jsx(H6,{data:y,title:g.title},E)},E);case"lineChart":return v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(f2t,{data:y,title:g.title},E)]},E);case"barChart":return g.subType==="overlaid"?v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(h2t,{data:y,title:g.title,yFieldName:"name",xFieldName:"value"},E)]},E):v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(gue,{data:y,title:g.title},E)]},E);default:return v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx("h2",{children:"Type de graphique non disponible"})]},E)}}function f(g,p){let E=[...g],y="COD";if(p.sortField!==""?y=p.sortField:p.maxItemsSortOn!==""&&(y=p.maxItemsSortOn),y&&E.every(C=>C[y])){let C=p.sortSeq==="D"?"desc":"asc",w=Ic(E,y,C);if(p.maxItems)w=w.slice(0,Number(p.maxItems));else switch(p.type){case"piechart":return w=w.slice(0,12);case"linechart":return w=w.slice(0,5);default:return w=w.slice(0,20)}return w}else return u(E)}if(!t)return null;let h=e.filter(g=>g.visibleCondition?Cn(g.visibleCondition,r):!0);if(i===0)return null;if(t&&h.length>1)return v.jsx(MWe,{tabPosition:"right",forceRender:!0,autoplay:!1,autoplaySpeed:7e3,isCarousel:!0,children:o(h,!0)});if(t&&h.length===1){let g=h[0];if(g.subCharts){const p=Object.values(g.subCharts).filter(E=>E.visibleCondition?Cn(E.visibleCondition,r):!0);return v.jsx("div",{className:"graphs",tabname:Ka(n),similitabname:Ka(a),rendertypechart:"filteredChart",children:s(p,t)})}else{let p;if(g.serieIsCategory==="true"){const E=Object.values(g.series);p=l(t,E,g)}else p=A(t,g);return!p||p.length<1?null:v.jsx("div",{className:"graphs",tabname:Ka(n),similitabname:Ka(a),rendertypechart:"formattedChart",children:d(g,p)})}}else return null},p2t=te.memo(g2t),v2t=({view:e})=>{const t=e.run.viewFilters.map((r,n)=>r&&r.trim()!==""?v.jsx("div",{dangerouslySetInnerHTML:{__html:"<p>"+r+"</p>"}},n):null);return v.jsx("div",{className:"view-filters",children:t})},m2t=te.memo(v2t),cO=te.memo(({tableData:e,totalData:t,graphData:r,columns:n,charts:a,similiTabName:i,tabName:o,view:s})=>{const[l,A]=m.useState(300),[c,u]=m.useState("block"),d=Ye(h=>h.cti.settings.user.showGraphs);m.useEffect(()=>{d==="hidden"&&A(0),(!a||a.length===0||d==="never"||e.length===0)&&u("none")},[d,a]);const f=(h,g,p,E)=>{E.height<20?l>20&&A(0):A(l+E.height)};return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"cti-view-data-content",children:[v.jsx(m2t,{view:s}),v.jsx(bh,{className:"view-data-graphs",axis:"x",style:{display:c,filter:"none"},handleComponent:{bottom:v.jsx("div",{className:"resize-handle",children:v.jsx("span",{children:"…"})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:"100%",height:l},grid:[20,20],onResizeStop:f,children:v.jsx(p2t,{charts:a,data:r,tabName:o,view:s,similiTabName:i,height:l})}),v.jsx("div",{className:"view-data-table",ref:m.useRef(),children:v.jsx(xut,{tableData:e,totalData:t,columns:n,similitabName:i,tabName:o,view:s})})]})})}),{Option:E2t}=Ir,y2t=({similiTabs:e,parentTabIndex:t,columns:r,charts:n,tabName:a,view:i,handleSetSelectedSimiliTab:o})=>{const s=Ye(C=>C.cti.menu),l=Ye(C=>C.cti.dynamicSelects),A=Pr();function c(C,w){let M=Object.values(C).filter(I=>I.visible).map(I=>(w.excelLabel==="Essentiel"&&(I.headerText=I.headerText.toUpperCase(),I.titleText=I.titleText.toUpperCase()),{...I,dataGetter:f,hidden:I.hidden?I.hidden:!Cn(I.visibleCondition,i)})).sort((I,S)=>I.order===-1?!1:I.order-S.order);return[{dataKey:"EXPAND",width:20,key:"EXPAND",description:"",hidden:!1,frozen:"left",titleText:"",printable:"false"},...M]}const u=(C,w)=>{const B=l.map(I=>({...I}));let M=B.find(I=>I.name===w.fieldname);M.value=C,A($p(B))},d=C=>{const w=C.selections;if(!(w!=null&&w.length))return null;const B=w.map((M,I)=>{const S=M.options.map((R,b)=>v.jsx(E2t,{value:R.data,fieldname:M.name,children:R.label},b));return v.jsx(Ir,{style:{width:120},size:"small",defaultValue:M.value,onChange:u,children:S},I)});return v.jsx("div",{className:"view-dynamic-select",children:B})};function f({columns:C,column:w,columnIndex:B,rowData:M,rowIndex:I}){var S,R,b;if(M[w.dataKey]){if(w.type==="Viewlink"){const N=Object.keys(KI).find(O=>M.VIEWLINK.toLowerCase().includes(O.toLowerCase())),k=KI[N];return M.VIEWLINK!==""?v.jsx("div",{className:(S=M[w.dataKey])==null?void 0:S.class,style:{padding:0,display:"flex",alignItems:"center"},children:M[w.dataKey].sanitizedText&&M[w.dataKey].sanitizedText.startsWith("+++")?v.jsx(Zn,{title:M[w.dataKey].sanitizedText.substring(3),children:v.jsx(nt,{type:"primary",style:{fontSize:"12px",lineHeight:"0px",textAlign:"center",backgroundColor:"gray",height:"18px",borderColor:"gray"},disabled:M.VIEWLINK==="1"||M.VIEWLINK==="2"||M.VIEWLINK==="",onClick:()=>rS(M.VIEWLINK,M.VIEWLINK_PARAM,A,i,s,null,null,null,k),children:v.jsx("span",{style:{textAlign:"left"},children:"Détail"})})}):v.jsx(nt,{type:"link",style:{lineHeight:"0px",textAlign:"center"},disabled:M.VIEWLINK==="1"||M.VIEWLINK==="2"||M.VIEWLINK==="",onClick:()=>rS(M.VIEWLINK,M.VIEWLINK_PARAM,A,i,s,null,null,null,k),children:v.jsx("span",{className:"link-essentiel-cell",children:M[w.dataKey].sanitizedText})})}):null}let Q;M[w.dataKey]&&M[w.dataKey].symbol&&(Q=v.jsx("span",{style:M[w.dataKey].symbol.style,dangerouslySetInnerHTML:{__html:M[w.dataKey].symbol.html}}));let D=w.description&&w.description!==""?w.description:w.titleText,F="";return(w==null?void 0:w.tooltipId)!==""&&M[w.tooltipId]&&(F=`<br>${M[w.tooltipId]}`),v.jsx(EMe,{className:(R=M[w.dataKey])==null?void 0:R.class,text:((b=M[w.dataKey])==null?void 0:b.sanitizedText)??"",description:D,complement:F,symbol:Q})}else return""}const h=(C,w)=>{let B=[];const M=Xae.StyleSheet.create(C.styles);return B=C.data.map(I=>I.map((S,R)=>{const b=Object.values(w.datagrid.columns),Q=b.length;for(let D=0;D<Q;D++){const F=b[D];if(F.visible===!0){const N=Xae.css(M[S[F.dataKey].class]);N!==""&&(S[F.dataKey].class=N),w.excelLabel==="Essentiel"&&(F.headerText=F.headerText.toUpperCase(),F.titleText=F.titleText.toUpperCase())}}return S})),[B[0],B[1]]},g=(C,w)=>{let B=C;const M=i.run.data[a];return M.inputSelections&&M.inputSelections.forEach(I=>{const S=I.condition;S&&(B=C.filter(R=>Cn(S,i,R)))}),B};function p(C,w){return C.sort((M,I)=>Number(M.id)<Number(I.id)?-1:1).map((M,I)=>{let[S,R]=h(M,i.run.data[a]);return S=g(S),R=g(R),{label:M.name,key:`${t}_${I}`,children:v.jsx(cO,{tableData:S,totalData:R,graphData:M.data,columns:w,charts:n,similiTabName:M.name,tabName:a,view:i})}})}let E=Object.values(e);const y=c(r,i.run.data[a]);if(E.length===0)return v.jsx(v.Fragment,{children:v.jsx(cO,{tableData:[],columns:y,charts:n,tabName:a,view:i})});if(E.length>1)return v.jsxs(v.Fragment,{children:[d(i.run.data[a]),v.jsx(xa,{onTabClick:C=>o(C),items:p(E,y)})]});if(E.length===1){let[C,w]=h(E[0],i.run.data[a]);return C=g(C,E[0]),w=g(w,E[0]),v.jsxs(v.Fragment,{children:[d(i.run.data[a]),v.jsx(cO,{tableData:C,totalData:w,graphData:E[0].data,columns:y,charts:n,similiTabName:E[0].name,tabName:a,view:i})]})}},pue=te.memo(y2t),C2t=({view:e,handleSetSelectedSimiliTab:t})=>{const r=e.run.data,n=Pr();m.useEffect(()=>{n(JG("0"))},[n]);const a=A=>{n(JG(A))};function i(A){let c=A.map((u,d)=>{const f=u.datagrid.columns;return{label:u.label,key:String(d),disabled:u.similitabs.length===0,forceRender:!0,children:v.jsx(pue,{parentTabIndex:String(d),similiTabs:u.similitabs,columns:f,charts:Object.values(u.charts),tabName:u.label,view:e,handleSetSelectedSimiliTab:t})}});return v.jsx(xa,{defaultActiveKey:"0",onChange:a,items:c})}function o(A){const c=A.datagrid.columns;return v.jsx(pue,{similiTabs:A.similitabs,columns:c,charts:Object.values(A.charts),tabName:A.label,view:e,handleSetSelectedSimiliTab:t})}const l=Object.values(r).filter(A=>A.visible);return(l==null?void 0:l.length)>1?i(l):o(l[0])},w2t=te.memo(C2t),B2t=({view:e,contentName:t})=>{let r=e.run.title?e.run.title:t;return v.jsxs(v.Fragment,{children:[v.jsx(ka,{children:v.jsxs("title",{children:["iCTI | ",r]})}),v.jsx("div",{className:"view-header-title",children:r})]})},uO={desc:{selections:void 0,attributes:void 0,viewlinks:void 0,onglets:{charts:void 0,columns:void 0}},run:{executed:!1,forceServer:!1,args:void 0,properties:void 0,data:void 0}};/*!
 * hotkeys-js v3.8.1
 * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
 * 
 * Copyright (c) 2020 kenny wong <wowohoo@qq.com>
 * http://jaywcjlove.github.io/hotkeys
 * 
 * Licensed under the MIT license.
 */var dO=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function fO(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent&&e.attachEvent("on".concat(t),function(){r(window.event)})}function XSe(e,t){for(var r=t.slice(0,t.length-1),n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function qSe(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),r=t.lastIndexOf("");r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function M2t(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,a=!0,i=0;i<r.length;i++)n.indexOf(r[i])===-1&&(a=!1);return a}var ZSe={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,"⇪":20,",":188,".":190,"/":191,"`":192,"-":dO?173:189,"=":dO?61:187,";":dO?59:186,"'":222,"[":219,"]":221,"\\":220},dh={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},vue={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Bi={16:!1,18:!1,17:!1,91:!1},li={};for(var Zx=1;Zx<20;Zx++)ZSe["f".concat(Zx)]=111+Zx;var ua=[],$Se="all",eRe=[],L2=function(t){return ZSe[t.toLowerCase()]||dh[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function tRe(e){$Se=e||"all"}function qy(){return $Se||"all"}function x2t(){return ua.slice(0)}function I2t(e){var t=e.target||e.srcElement,r=t.tagName,n=!0;return(t.isContentEditable||(r==="INPUT"||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(n=!1),n}function b2t(e){return typeof e=="string"&&(e=L2(e)),ua.indexOf(e)!==-1}function S2t(e,t){var r,n;e||(e=qy());for(var a in li)if(Object.prototype.hasOwnProperty.call(li,a))for(r=li[a],n=0;n<r.length;)r[n].scope===e?r.splice(n,1):n++;qy()===e&&tRe(t||"all")}function R2t(e){var t=e.keyCode||e.which||e.charCode,r=ua.indexOf(t);if(r>=0&&ua.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&ua.splice(0,ua.length),(t===93||t===224)&&(t=91),t in Bi){Bi[t]=!1;for(var n in dh)dh[n]===t&&(Fs[n]=!1)}}function T2t(e){if(!e)Object.keys(li).forEach(function(o){return delete li[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&hO(o)});else if(typeof e=="object")e.key&&hO(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=r[0],i=r[1];typeof a=="function"&&(i=a,a=""),hO({key:e,scope:a,method:i,splitKey:"+"})}}var hO=function(t){var r=t.key,n=t.scope,a=t.method,i=t.splitKey,o=i===void 0?"+":i,s=qSe(r);s.forEach(function(l){var A=l.split(o),c=A.length,u=A[c-1],d=u==="*"?"*":L2(u);if(li[d]){n||(n=qy());var f=c>1?XSe(dh,A):[];li[d]=li[d].map(function(h){var g=a?h.method===a:!0;return g&&h.scope===n&&M2t(h.mods,f)?{}:h})}})};function mue(e,t,r){var n;if(t.scope===r||t.scope==="all"){n=t.mods.length>0;for(var a in Bi)Object.prototype.hasOwnProperty.call(Bi,a)&&(!Bi[a]&&t.mods.indexOf(+a)>-1||Bi[a]&&t.mods.indexOf(+a)===-1)&&(n=!1);(t.mods.length===0&&!Bi[16]&&!Bi[18]&&!Bi[17]&&!Bi[91]||n||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function Eue(e){var t=li["*"],r=e.keyCode||e.which||e.charCode;if(Fs.filter.call(this,e)){if((r===93||r===224)&&(r=91),ua.indexOf(r)===-1&&r!==229&&ua.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(f){var h=vue[f];e[f]&&ua.indexOf(h)===-1?ua.push(h):!e[f]&&ua.indexOf(h)>-1?ua.splice(ua.indexOf(h),1):f==="metaKey"&&e[f]&&ua.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ua=ua.slice(ua.indexOf(h))))}),r in Bi){Bi[r]=!0;for(var n in dh)dh[n]===r&&(Fs[n]=!0);if(!t)return}for(var a in Bi)Object.prototype.hasOwnProperty.call(Bi,a)&&(Bi[a]=e[vue[a]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ua.indexOf(17)===-1&&ua.push(17),ua.indexOf(18)===-1&&ua.push(18),Bi[17]=!0,Bi[18]=!0);var i=qy();if(t)for(var o=0;o<t.length;o++)t[o].scope===i&&(e.type==="keydown"&&t[o].keydown||e.type==="keyup"&&t[o].keyup)&&mue(e,t[o],i);if(r in li){for(var s=0;s<li[r].length;s++)if((e.type==="keydown"&&li[r][s].keydown||e.type==="keyup"&&li[r][s].keyup)&&li[r][s].key){for(var l=li[r][s],A=l.splitKey,c=l.key.split(A),u=[],d=0;d<c.length;d++)u.push(L2(c[d]));u.sort().join("")===ua.sort().join("")&&mue(e,l,i)}}}}function Q2t(e){return eRe.indexOf(e)>-1}function Fs(e,t,r){ua=[];var n=qSe(e),a=[],i="all",o=document,s=0,l=!1,A=!0,c="+";for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(l=t.keyup),t.keydown!==void 0&&(A=t.keydown),typeof t.splitKey=="string"&&(c=t.splitKey)),typeof t=="string"&&(i=t);s<n.length;s++)e=n[s].split(c),a=[],e.length>1&&(a=XSe(dh,e)),e=e[e.length-1],e=e==="*"?"*":L2(e),e in li||(li[e]=[]),li[e].push({keyup:l,keydown:A,scope:i,mods:a,shortcut:n[s],method:r,key:n[s],splitKey:c});typeof o<"u"&&!Q2t(o)&&window&&(eRe.push(o),fO(o,"keydown",function(u){Eue(u)}),fO(window,"focus",function(){ua=[]}),fO(o,"keyup",function(u){Eue(u),R2t(u)}))}var gO={setScope:tRe,getScope:qy,deleteScope:S2t,getPressedKeyCodes:x2t,isPressed:b2t,filter:I2t,unbind:T2t};for(var pO in gO)Object.prototype.hasOwnProperty.call(gO,pO)&&(Fs[pO]=gO[pO]);if(typeof window<"u"){var D2t=window.hotkeys;Fs.noConflict=function(e){return e&&window.hotkeys===Fs&&(window.hotkeys=D2t),Fs},window.hotkeys=Fs}function rRe(e,t,r,n){r instanceof Array&&(n=r,r=void 0);var a=r||{},i=a.enableOnTags,o=a.filter,s=a.keyup,l=a.keydown,A=m.useRef(null),c=m.useCallback(function(u,d){return A.current===null||document.activeElement===A.current?(t(u,d),!0):!1},n?[A].concat(n):[A]);return m.useEffect(function(){return r&&r.enableOnTags&&(Fs.filter=function(u){var d=u.target,f=u.srcElement,h=d&&d.tagName||f&&f.tagName;return!!(h&&i&&i.includes(h))}),o&&(Fs.filter=o),s&&l!==!0&&(r.keydown=!1),Fs(e,r||{},c),function(){return Fs.unbind(e,c)}},[c,r,i,o,e]),A}const F2t=()=>{const e=Pr(),t=_c(),[r,n]=m.useState(uO),[a,i]=m.useState({desc:null,run:null}),[o,s]=m.useState(0),[l,A]=m.useState(!0),[c]=m.useState("0"),u=Ye(b=>b.cti.content),d=Ye(b=>b.cti.view),f=Ye(b=>b.cti.ui.filters.visible),h=Ye(b=>b.cti.history.views),g=Ye(b=>b.cti.view.errors),p=Ye(b=>b.cti.view.gettingRun),E=Ye(b=>b.cti.view.rendering),y=Ye(b=>b.cti.ui.devMode),C=Ye(b=>b.cti.menu.selectedModuleKey),w=t.location.search.substring(3);async function B(b){if($$[C]&&!b.desc.includes($$[C])&&!b.desc.includes("FAVORI")){Fa(8403,"");return}A(!0);let Q,D;if(b.desc&&(Q=await Na.getItem(b.desc)),b.run&&(D=await Na.getItem(b.run)),D&&(D=JSON.parse(Do.inflate(D,{to:"string"}))),Q){if(Q=JSON.parse(Do.inflate(Q,{to:"string"})),Q.selections&&!Object.keys(Q.selections).length){const F=await vv(Q.attributes.name+".XML",D.args,0),{viewData:N}=await pv(F,0);D=N.run,Q.viewRefs||(Q.viewRefs=[])}Q&&D&&(n({desc:Q,run:D}),d.gettingRun===!1&&A(!1))}}m.useEffect(()=>{C&&a.desc&&(a.desc.includes("JUSTIF")||(i({desc:null,run:null}),n(uO)))},[C,a.desc]),m.useEffect(()=>{if(d.isLoading===!1){const b={desc:d.descRef,run:d.runRef};d.descRef&&d.runRef&&i(b)}},[d.descRef,d.runRef,d.isLoading]),m.useEffect(()=>{d.isLoading===!0&&l===!1&&A(!0)},[d.isLoading]),m.useEffect(()=>{a.desc!==null&&a.run!==null?B(a):n(uO)},[a]),m.useEffect(()=>{if(!u.viewlink){const b=t.location.pathname;e(Lp(b,w,h))}},[u.pathname,u.viewlink]),m.useEffect(()=>{if(t.action==="POP"&&t.location.search&&a.run){const b=t.location.pathname;a.run.split("_")[2].startsWith(w)||e(Lp(b,w,h))}},[t.action,t.location,e,a.run,h]),m.useEffect(()=>{g.length&&(e(kS(!0)),ei.unstable_batchedUpdates(()=>{e(ph(!1)),e(OO(!1))}),A(!1))},[g,e]),rRe("e",()=>{var b,Q;(Q=(b=r.desc)==null?void 0:b.attributes)!=null&&Q.name&&e(Lp(r.desc.attributes.name,w,h,!0))},{},[w,h]);const M=()=>{e(Idt())},I=te.useCallback(b=>{s(b)},[]),S=()=>{e(Xf(!1))};y&&console.log("     VIEW RENDER",r,l);const R=()=>!r.run.data&&!l?v.jsxs("div",{style:{paddingLeft:"20px",paddingTop:"20px"},children:["Lors du premier appel d'une vue, les seules options disponibles sont:",v.jsxs("ul",{children:[v.jsx("li",{children:"l'exécution de la requête"}),v.jsx("li",{children:"la création de favoris"})]}),"Sélectionner les filtres depuis le panneau pour affiner votre requête."]}):r.run.data?v.jsxs(te.Fragment,{children:[v.jsx(EEt,{view:r,TAB:c,selectedSimiliTab:o}),E&&v.jsx(uMe,{}),v.jsx(NC,{className:"view-data-tabs",children:v.jsx(Ih,{in:!0,classNames:"page-fade",appear:!0,timeout:300,children:v.jsx(w2t,{view:r,handleSetSelectedSimiliTab:I})},r.desc.attributes.name)})]}):v.jsxs("div",{className:"loading-wrapper",children:[v.jsx(Ya,{style:{height:"auto"}}),p?v.jsx(nt,{type:"link",style:{height:"20px"},onClick:M,children:"Arrêter la requête"}):v.jsx("div",{style:{height:"20px"}})]});return v.jsxs(te.Fragment,{children:[v.jsx(pMe,{errors:g}),v.jsxs("div",{className:"cti-view",children:[v.jsxs("div",{className:"cti-view-header",children:[v.jsx(B2t,{view:r,contentName:u.name}),v.jsx(gMe,{loading:l})]}),v.jsxs("div",{className:"cti-view-data",children:[R(),r.desc.selections&&v.jsx(JEe,{title:null,footer:v.jsx(hEt,{}),placement:"right",closeIcon:null,open:f,getContainer:!1,className:"drawer-filters",style:{pointerEvents:f?"auto":"none"},bodyStyle:{padding:"0px"},width:800,onClose:S,children:v.jsx(fEt,{view:r,loading:l})})]})]})]})},_2t=te.memo(F2t),N2t=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",xmlSpace:"preserve",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2},viewBox:"0 0 5209 871",...e,children:[v.jsx("use",{xlinkHref:"#cti-logo_long_grey_with_pyramide_svg__a",width:1188,height:195,opacity:.2,transform:"matrix(4.16382 0 0 4.16578 157.013 27.865)"}),v.jsx("defs",{children:v.jsx("image",{xlinkHref:"data:image/png;base64,[encoded data, 25840 characters]",id:"cti-logo_long_grey_with_pyramide_svg__a",width:1188,height:195})})]}),k2t=te.memo(({handleCollapseSider:e,siderIsCollapsed:t})=>{const r={top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},[n,a]=m.useState(300),[i,o]=m.useState(300),s=m.useRef(),l=Ye(E=>E.cti.content.type),A=Ye(E=>E.cti.content.moduleId),c=Ye(E=>E.cti.content.name),u=Ye(E=>E.cti.menu.item),d=Ye(E=>E.cti.ui.showMenus),f=Ye(E=>E.cti.ui.menuMode);m.useEffect(()=>{a(t?0:i)},[t,i]);const h=E=>{switch(E){case"view":return v.jsx(_2t,{});case"component":return v.jsx(aMe,{componentName:c,module:A,item:u});case"page":return v.jsx(Ict,{pageName:c,module:A})}},g=te.useCallback((E,y,C,w)=>{n>200&&n+w.width<=200?e():n<200&&n+w.width>200?(e(),a(n+w.width)):(o(n+w.width),a(n+w.width))},[n,e]),p=te.useMemo(()=>({width:n}),[n]);return v.jsxs(v.Fragment,{children:[v.jsx(tEt,{handleCollapseSider:e,siderIsCollapsed:t}),v.jsxs("div",{className:"cti-sider-and-content",ref:s,children:[f===mp?v.jsx(bh,{handleWrapperClass:"handle-wrappers-menu",minWidth:0,maxWidth:500,enable:r,size:d===!0?p:{width:0},onResizeStop:g,className:"collapsable-sider",children:v.jsx(Pae,{siderIsCollapsed:t})}):v.jsx(JEe,{forceRender:!0,open:!t,placement:"left",getContainer:!1,width:300,closable:!1,className:"menu-drawer",onClose:()=>e(),children:v.jsx(Pae,{siderIsCollapsed:t,handleCollapseSider:e})}),v.jsx($rt,{children:v.jsx(Ih,{in:!0,classNames:"content-fade",appear:!0,timeout:2e3,unmountOnExit:!0,children:v.jsxs("div",{className:"Content",style:{display:"flex",justifyContent:"center"},children:[!l||l==="page"&&v.jsx(N2t,{style:{width:"1000px"}}),h(l)]})})})]})]})}),P2t=()=>{var h,g;const e=Pr(),t=_c(),r=Ye(p=>p.cti.licences),n=Ye(p=>p.cti.settings.data.environment),[a,i]=m.useState(0),o=Ye(p=>p.cti.settings.loading),s=Ye(p=>p.cti.settings.data.session),l=Ye(p=>p.router.location.pathname),A=Ye(p=>p.cti.settings.data.environment),c=Ye(p=>p.cti.ui.siderIsCollapsed);(g=(h=t==null?void 0:t.location)==null?void 0:h.search)!=null&&g.includes("m=false")&&e(RNe(!1)),m.useEffect(()=>{window.addEventListener("click",d),A!=null&&A.OPTSYSTEM_INACTIVESESSIONDLY&&i(Number(A.OPTSYSTEM_INACTIVESESSIONDLY)*6e4)},[A]),m.useEffect(()=>{!s&&o!==!0&&e(yye())},[s]),m.useEffect(()=>{e(npt())},[e]);let u=null;function d(){a!==0&&(clearTimeout(u),u=setTimeout(()=>{Cye()},a))}const f=te.useCallback(()=>{Na.setItem("sider",!c),e(Sp(!c))},[c,e]);if(s){if(s.CONNECTEDUSER.trim()==="")return v.jsx(Rp,{to:{pathname:"/login",state:{referrer:l}}});if(r.data)return v.jsxs("div",{className:"Main",children:[v.jsxs(ka,{children:[v.jsx("title",{children:(n==null?void 0:n.ENVIRONMENT)||"iCTI"}),v.jsx("meta",{name:"description",content:"Helmet application"})]}),v.jsx(k2t,{handleCollapseSider:f,siderIsCollapsed:c})]})}return v.jsx("div",{className:"main__loader",children:v.jsx(Ya,{})})},O2t=te.memo(P2t);var vO={},mO={},d0={},yue;function z2t(){if(yue)return d0;yue=1,Object.defineProperty(d0,"__esModule",{value:!0}),d0.default=void 0;var e={items_per_page:"/ page",jump_to:"Aller à",jump_to_confirm:"confirmer",page:"Page",prev_page:"Page précédente",next_page:"Page suivante",prev_5:"5 Pages précédentes",next_5:"5 Pages suivantes",prev_3:"3 Pages précédentes",next_3:"3 Pages suivantes",page_size:"taille de la page"};return d0.default=e,d0}var EO={},yO={},f0={},Cue;function j2t(){if(Cue)return f0;Cue=1,Object.defineProperty(f0,"__esModule",{value:!0}),f0.default=void 0;var e={locale:"fr_FR",today:"Aujourd'hui",now:"Maintenant",backToToday:"Aujourd'hui",ok:"OK",clear:"Rétablir",month:"Mois",year:"Année",timeSelect:"Sélectionner l'heure",dateSelect:"Sélectionner la date",monthSelect:"Choisissez un mois",yearSelect:"Choisissez une année",decadeSelect:"Choisissez une décennie",yearFormat:"YYYY",dateFormat:"DD/MM/YYYY",dayFormat:"DD",dateTimeFormat:"DD/MM/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mois précédent (PageUp)",nextMonth:"Mois suivant (PageDown)",previousYear:"Année précédente (Ctrl + gauche)",nextYear:"Année prochaine (Ctrl + droite)",previousDecade:"Décennie précédente",nextDecade:"Décennie suivante",previousCentury:"Siècle précédent",nextCentury:"Siècle suivant"},t=e;return f0.default=t,f0}var CO={},wue;function nRe(){return wue||(wue=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={placeholder:"Sélectionner l'heure",rangePlaceholder:["Heure de début","Heure de fin"]};e.default=t}(CO)),CO}var Bue;function aRe(){return Bue||(Bue=1,function(e){var t=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Kn()),n=t(j2t()),a=t(nRe()),i={lang:(0,r.default)({placeholder:"Sélectionner une date",yearPlaceholder:"Sélectionner une année",quarterPlaceholder:"Sélectionner un trimestre",monthPlaceholder:"Sélectionner un mois",weekPlaceholder:"Sélectionner une semaine",rangePlaceholder:["Date de début","Date de fin"],rangeYearPlaceholder:["Année de début","Année de fin"],rangeMonthPlaceholder:["Mois de début","Mois de fin"],rangeWeekPlaceholder:["Semaine de début","Semaine de fin"]},n.default),timePickerLocale:(0,r.default)({},a.default)};e.default=i}(yO)),yO}var Mue;function Y2t(){return Mue||(Mue=1,function(e){var t=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(aRe());e.default=r.default}(EO)),EO}var xue;function L2t(){return xue||(xue=1,function(e){var t=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(z2t()),n=t(Y2t()),a=t(aRe()),i=t(nRe()),o="La valeur du champ ${label} n'est pas valide pour le type ${type}",s={locale:"fr",Pagination:r.default,DatePicker:a.default,TimePicker:i.default,Calendar:n.default,Table:{filterTitle:"Filtrer",filterConfirm:"OK",filterReset:"Réinitialiser",filterEmptyText:"Aucun filtre",filterCheckall:"Tout sélectionner",filterSearchPlaceholder:"Chercher dans les filtres",emptyText:"Aucune donnée",selectAll:"Sélectionner la page actuelle",selectInvert:"Inverser la sélection de la page actuelle",selectNone:"Désélectionner toutes les données",selectionAll:"Sélectionner toutes les données",sortTitle:"Trier",expand:"Développer la ligne",collapse:"Réduire la ligne",triggerDesc:"Trier par ordre décroissant",triggerAsc:"Trier par ordre croissant",cancelSort:"Annuler le tri"},Modal:{okText:"OK",cancelText:"Annuler",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Annuler"},Transfer:{titles:["",""],searchPlaceholder:"Rechercher",itemUnit:"élément",itemsUnit:"éléments",remove:"Désélectionner",selectCurrent:"Sélectionner la page actuelle",removeCurrent:"Désélectionner la page actuelle",selectAll:"Sélectionner toutes les données",removeAll:"Désélectionner toutes les données",selectInvert:"Inverser la sélection de la page actuelle"},Upload:{uploading:"Téléchargement...",removeFile:"Effacer le fichier",uploadError:"Erreur de téléchargement",previewFile:"Fichier de prévisualisation",downloadFile:"Télécharger un fichier"},Empty:{description:"Aucune donnée"},Icon:{icon:"icône"},Text:{edit:"Éditer",copy:"Copier",copied:"Copie effectuée",expand:"Développer"},PageHeader:{back:"Retour"},Form:{optional:"(optionnel)",defaultValidateMessages:{default:"Erreur de validation pour le champ ${label}",required:"Le champ ${label} est obligatoire",enum:"La valeur du champ ${label} doit être parmi [${enum}]",whitespace:"La valeur du champ ${label} ne peut pas être vide",date:{format:"La valeur du champ ${label} n'est pas au format date",parse:"La valeur du champ ${label} ne peut pas être convertie vers une date",invalid:"La valeur du champ ${label} n'est pas une date valide"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"La taille du champ ${label} doit être de ${len} caractères",min:"La taille du champ ${label} doit être au minimum de ${min} caractères",max:"La taille du champ ${label} doit être au maximum de ${max} caractères",range:"La taille du champ ${label} doit être entre ${min} et ${max} caractères"},number:{len:"La valeur du champ ${label} doit être égale à ${len}",min:"La valeur du champ ${label} doit être plus grande que ${min}",max:"La valeur du champ ${label} doit être plus petit que ${max}",range:"La valeur du champ ${label} doit être entre ${min} et ${max}"},array:{len:"La taille du tableau ${label} doit être de ${len}",min:"La taille du tableau ${label} doit être au minimum de ${min}",max:"La taille du tableau ${label} doit être au maximum de ${max}",range:"La taille du tableau ${label} doit être entre ${min}-${max}"},pattern:{mismatch:"La valeur du champ ${label} ne correspond pas au modèle ${pattern}"}}},Image:{preview:"Aperçu"}};e.default=s}(mO)),mO}var Iue;function U2t(){return Iue||(Iue=1,function(e){var t=mr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(L2t());e.default=r.default}(vO)),vO}var H2t=U2t();const G2t=Nr(H2t),K2t=function(){return null},V2t={defaultOptions:{queries:{retry:2,staleTime:1e3*60*60*12,cacheTime:1e3*60*60*12,refetchOnWindowFocus:!1,refetchOnMount:!0,refetchOnReconnect:!0},mutations:{retry:0}}},iRe=({children:e})=>{const t=Ye(a=>a.cti.ui.filters.visible),r=Pr(),n=Ye(a=>a.cti.ui.primaryColor);return m.useEffect(()=>{document.documentElement.style.setProperty("--primary-color",n),document.documentElement.style.setProperty("--ant-primary-color",n)},[n]),rRe("f",()=>{document.querySelector(".cti-view")&&r(Xf(!t))},{},[t]),m.useEffect(()=>{(async()=>{let i=await Na.getItem("menuMode"),o=await Na.getItem("sider");i&&r(_de(i)),o&&r(Sp(o))})()},[r]),e};iRe.propTypes={children:U.object};const J2t=new jht(V2t),W2t=()=>v.jsx(m.StrictMode,{children:v.jsx(yh,{locale:G2t,children:v.jsx(vke,{store:so,children:v.jsxs(Jht,{client:J2t,children:[v.jsx(iRe,{children:v.jsx(dPe,{history:jO,children:v.jsxs(Afe,{children:[v.jsx(vp,{path:"/login",component:Urt}),v.jsx(vp,{render:()=>v.jsx(O2t,{})})]})})}),v.jsx(K2t,{initialIsOpen:!1})]})})})}),X2t=()=>{bo.render(v.jsx(W2t,{}),document.getElementById("root"))};X2t();export{Xt as _,Ai as a,Un as b,sw as c,Fy as d,hd as e,X as f,Nr as g};
