feat(logs): add initial log loading and tab management improvements
- Implement fetchLastLines API to load initial log entries - Add addInitialLogs function to useSSE hook for prepending logs - Improve tab handling with better closable behavior and state management - Add backend support for fetching last N lines from log files
This commit is contained in:
1 parent
ac4f232e5e
commit
dfe9b10bb8
7 files changed
+383
-14
No files matched your search
+276
@@ -0,0 +1,276 @@
|
||||
function rb(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function _m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ob={exports:{}},dc={},ib={exports:{}},dt={};/**
|
||||
* @license React
|
||||
* 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 Zl=Symbol.for("react.element"),Ax=Symbol.for("react.portal"),jx=Symbol.for("react.fragment"),Dx=Symbol.for("react.strict_mode"),Bx=Symbol.for("react.profiler"),kx=Symbol.for("react.provider"),Hx=Symbol.for("react.context"),Vx=Symbol.for("react.forward_ref"),Wx=Symbol.for("react.suspense"),Ux=Symbol.for("react.memo"),Kx=Symbol.for("react.lazy"),bg=Symbol.iterator;function Gx(e){return e===null||typeof e!="object"?null:(e=bg&&e[bg]||e["@@iterator"],typeof e=="function"?e:null)}var ab={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lb=Object.assign,sb={};function Ia(e,t,n){this.props=e,this.context=t,this.refs=sb,this.updater=n||ab}Ia.prototype.isReactComponent={};Ia.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ia.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ub(){}ub.prototype=Ia.prototype;function Mm(e,t,n){this.props=e,this.context=t,this.refs=sb,this.updater=n||ab}var Nm=Mm.prototype=new ub;Nm.constructor=Mm;lb(Nm,Ia.prototype);Nm.isPureReactComponent=!0;var Sg=Array.isArray,cb=Object.prototype.hasOwnProperty,Lm={current:null},db={key:!0,ref:!0,__self:!0,__source:!0};function fb(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)cb.call(t,r)&&!db.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Zl,type:e,key:i,ref:a,props:o,_owner:Lm.current}}function qx(e,t){return{$$typeof:Zl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Fm(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zl}function Xx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Cg=/\/+/g;function wd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xx(""+e.key):t.toString(36)}function Qs(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Zl:case Ax:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+wd(a,0):r,Sg(o)?(n="",e!=null&&(n=e.replace(Cg,"$&/")+"/"),Qs(o,t,n,"",function(c){return c})):o!=null&&(Fm(o)&&(o=qx(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Cg,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Sg(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+wd(i,l);a+=Qs(i,t,n,s,o)}else if(s=Gx(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+wd(i,l++),a+=Qs(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function xs(e,t,n){if(e==null)return e;var r=[],o=0;return Qs(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Qx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var kn={current:null},Ys={transition:null},Yx={ReactCurrentDispatcher:kn,ReactCurrentBatchConfig:Ys,ReactCurrentOwner:Lm};function vb(){throw Error("act(...) is not supported in production builds of React.")}dt.Children={map:xs,forEach:function(e,t,n){xs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return xs(e,function(){t++}),t},toArray:function(e){return xs(e,function(t){return t})||[]},only:function(e){if(!Fm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};dt.Component=Ia;dt.Fragment=jx;dt.Profiler=Bx;dt.PureComponent=Mm;dt.StrictMode=Dx;dt.Suspense=Wx;dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yx;dt.act=vb;dt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=lb({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Lm.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)cb.call(t,s)&&!db.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:Zl,type:e.type,key:o,ref:i,props:r,_owner:a}};dt.createContext=function(e){return e={$$typeof:Hx,_currentValue:e,_currentValue2:e,_threadCountLine truncated
|
||||
* @license React
|
||||
* 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 Jx=u,Zx=Symbol.for("react.element"),eE=Symbol.for("react.fragment"),tE=Object.prototype.hasOwnProperty,nE=Jx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rE={key:!0,ref:!0,__self:!0,__source:!0};function mb(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)tE.call(t,r)&&!rE.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Zx,type:e,key:i,ref:a,props:o,_owner:nE.current}}dc.Fragment=eE;dc.jsx=mb;dc.jsxs=mb;ob.exports=dc;var xt=ob.exports,If={},pb={exports:{}},mr={},gb={exports:{}},hb={};/**
|
||||
* @license React
|
||||
* 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.
|
||||
*/(function(e){function t(_,B){var z=_.length;_.push(B);e:for(;0<z;){var H=z-1>>>1,V=_[H];if(0<o(V,B))_[H]=B,_[z]=V,z=H;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var B=_[0],z=_.pop();if(z!==B){_[0]=z;e:for(var H=0,V=_.length,W=V>>>1;H<W;){var D=2*(H+1)-1,k=_[D],K=D+1,Z=_[K];if(0>o(k,z))K<V&&0>o(Z,k)?(_[H]=Z,_[K]=z,H=K):(_[H]=k,_[D]=z,H=D);else if(K<V&&0>o(Z,z))_[H]=Z,_[K]=z,H=K;else break e}}return B}function o(_,B){var z=_.sortIndex-B.sortIndex;return z!==0?z:_.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],c=[],d=1,f=null,v=3,g=!1,m=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(_){for(var B=n(c);B!==null;){if(B.callback===null)r(c);else if(B.startTime<=_)r(c),B.sortIndex=B.expirationTime,t(s,B);else break;B=n(c)}}function C(_){if(y=!1,S(_),!m)if(n(s)!==null)m=!0,L(w);else{var B=n(c);B!==null&&A(C,B.startTime-_)}}function w(_,B){m=!1,y&&(y=!1,h($),$=-1),g=!0;var z=v;try{for(S(B),f=n(s);f!==null&&(!(f.expirationTime>B)||_&&!P());){var H=f.callback;if(typeof H=="function"){f.callback=null,v=f.priorityLevel;var V=H(f.expirationTime<=B);B=e.unstable_now(),typeof V=="function"?f.callback=V:f===n(s)&&r(s),S(B)}else r(s);f=n(s)}if(f!==null)var W=!0;else{var D=n(c);D!==null&&A(C,D.startTime-B),W=!1}return W}finally{f=null,v=z,g=!1}}var x=!1,E=null,$=-1,R=5,O=-1;function P(){return!(e.unstable_now()-O<R)}function I(){if(E!==null){var _=e.unstable_now();O=_;var B=!0;try{B=E(!0,_)}finally{B?T():(x=!1,E=null)}}else x=!1}var T;if(typeof p=="function")T=function(){p(I)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,j=N.port2;N.port1.onmessage=I,T=function(){j.postMessage(null)}}else T=function(){b(I,0)};function L(_){E=_,x||(x=!0,T())}function A(_,B){$=b(function(){_(e.unstable_now())},B)}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(_){_.callback=null},e.unstable_continueExecution=function(){m||g||(m=!0,L(w))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(_){switch(v){case 1:case 2:case 3:var B=3;break;default:B=v}var z=v;v=B;try{return _()}finally{v=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,B){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var z=v;v=_;try{return B()}finally{v=z}},e.unstable_scheduleCallback=function(_,B,z){var H=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?H+z:H):z=H,_){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=z+V,_={id:d++,callback:B,priorityLevel:_,startTime:z,expirationTime:V,sortIndex:-1},z>H?(_.sortIndex=z,t(c,_),n(s)===null&&_===n(c)&&(y?(h($),$=-1):y=!0,A(C,z-H))):(_.sortIndex=V,t(s,_),m||g||(m=!0,L(w))),_},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(_){var B=v;return function(){var z=v;v=B;try{return _.apply(this,arguments)}finally{v=z}}}})(hb);gb.exports=hb;var oE=gb.exports;/**
|
||||
* @license React
|
||||
* 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 iE=u,vr=oE;function ve(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var yb=new Set,Cl={};function Si(e,t){fa(e,t),fa(e+"Capture",t)}function fa(e,t){for(Cl[e]=t,e=0;e<t.length;e++)yb.add(t[e])}var fo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tf=Object.prototype.hasOwnProperty,aE=/^[: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]*$/,wg={},xg={};function lE(e){return Tf.call(xg,e)?!0:Tf.call(wg,e)?!1:aE.test(e)?xg[e]=!0:(wg[e]=!0,!1)}function sE(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function uE(e,t,n,r){if(t===null||typeof t>"u"||sE(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Hn(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var xn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xn[e]=new Hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xn[t]=new Hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xn[e]=new Hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xn[e]=new Hn(e,2,!1,e,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(e){xn[e]=new Hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xn[e]=new Hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xn[e]=new Hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xn[e]=new Hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xn[e]=new Hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var zm=/[\-:]([a-z])/g;function Am(e){return e[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(e){var t=e.replace(zm,Am);xn[t]=new Hn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zm,Am);xn[t]=new Hn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zm,Am);xn[t]=new Hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xn[e]=new Hn(e,1,!1,e.toLowerCase(),null,!1,!1)});xn.xlinkHref=new Hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xn[e]=new Hn(e,1,!1,e.toLowerCase(),null,!0,!0)});function jm(e,t,n,r){var o=xn.hasOwnProperty(t)?xn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!==
Line truncated
|
||||
`+xd+e}var Ed=!1;function $d(e,t){if(!e||Ed)return"";Ed=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
|
||||
`),i=r.stack.split(`
|
||||
`),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var s=`
|
||||
`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Ed=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?nl(e):""}function cE(e){switch(e.tag){case 5:return nl(e.type);case 16:return nl("Lazy");case 13:return nl("Suspense");case 19:return nl("SuspenseList");case 0:case 2:case 15:return e=$d(e.type,!1),e;case 11:return e=$d(e.type.render,!1),e;case 1:return e=$d(e.type,!0),e;default:return""}}function Lf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Hi:return"Fragment";case ki:return"Portal";case _f:return"Profiler";case Dm:return"StrictMode";case Mf:return"Suspense";case Nf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sb:return(e.displayName||"Context")+".Consumer";case bb:return(e._context.displayName||"Context")+".Provider";case Bm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case km:return t=e.displayName||null,t!==null?t:Lf(e.type)||"Memo";case Po:t=e._payload,e=e._init;try{return Lf(e(t))}catch{}}return null}function dE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Lf(t);case 8:return t===Dm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Uo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fE(e){var t=wb(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $s(e){e._valueTracker||(e._valueTracker=fE(e))}function xb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ff(e,t){var n=t.checked;return Qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $g(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Uo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Eb(e,t){t=t.checked,t!=null&&jm(e,"checked",t,!1)}function zf(e,t){Eb(e,t);var n=Uo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Af(e,t.type,n):t.hasOwnProperty("defaultValue")&&Af(e,t.type,Uo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Af(e,t,n){(t!=="number"||xu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var rl=Array.isArray;function ra(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Uo(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function jf(e,t){if(t.dan
Line truncated
|
||||
`).replace(w$,"")}function Ns(e,t,n){if(t=Xg(t),Xg(e)!==t&&n)throw Error(ve(425))}function _u(){}var Yf=null,Jf=null;function Zf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ev=typeof setTimeout=="function"?setTimeout:void 0,x$=typeof clearTimeout=="function"?clearTimeout:void 0,Qg=typeof Promise=="function"?Promise:void 0,E$=typeof queueMicrotask=="function"?queueMicrotask:typeof Qg<"u"?function(e){return Qg.resolve(null).then(e).catch($$)}:ev;function $$(e){setTimeout(function(){throw e})}function jd(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Rl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Rl(t)}function Bo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Yg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var _a=Math.random().toString(36).slice(2),Xr="__reactFiber$"+_a,_l="__reactProps$"+_a,vo="__reactContainer$"+_a,tv="__reactEvents$"+_a,R$="__reactListeners$"+_a,O$="__reactHandles$"+_a;function oi(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vo]||n[Xr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Yg(e);e!==null;){if(n=e[Xr])return n;e=Yg(e)}return t}e=n,n=e.parentNode}return null}function ns(e){return e=e[Xr]||e[vo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ki(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ve(33))}function hc(e){return e[_l]||null}var nv=[],Gi=-1;function Xo(e){return{current:e}}function Bt(e){0>Gi||(e.current=nv[Gi],nv[Gi]=null,Gi--)}function Lt(e,t){Gi++,nv[Gi]=e.current,e.current=t}var Ko={},Mn=Xo(Ko),Yn=Xo(!1),mi=Ko;function va(e,t){var n=e.type.contextTypes;if(!n)return Ko;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Jn(e){return e=e.childContextTypes,e!=null}function Mu(){Bt(Yn),Bt(Mn)}function Jg(e,t,n){if(Mn.current!==Ko)throw Error(ve(168));Lt(Mn,t),Lt(Yn,n)}function fS(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ve(108,dE(e)||"Unknown",o));return Qt({},n,r)}function Nu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ko,mi=Mn.current,Lt(Mn,e),Lt(Yn,Yn.current),!0}function Zg(e,t,n){var r=e.stateNode;if(!r)throw Error(ve(169));n?(e=fS(e,t,mi),r.__reactInternalMemoizedMergedChildContext=e,Bt(Yn),Bt(Mn),Lt(Mn,e)):Bt(Yn),Lt(Yn,n)}var io=null,yc=!1,Dd=!1;function vS(e){io===null?io=[e]:io.push(e)}function P$(e){yc=!0,vS(e)}function Qo(){if(!Dd&&io!==null){Dd=!0;var e=0,t=Ot;try{var n=io;for(Ot=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}io=null,yc=!1}catch(o){throw io!==null&&(io=io.slice(e+1)),jb(Vm,Qo),o}finally{Ot=t,Dd=!1}}return null}var qi=[],Xi=0,Lu=null,Fu=0,Sr=[],Cr=0,pi=null,ao=1,lo="";function ei(e,t){qi[Xi++]=Fu,qi[Xi++]=Lu,Lu=e,Fu=t}function mS(e,t,n){Sr[Cr++]=ao,Sr[Cr++]=lo,Sr[Cr++]=pi,pi=e;var r=ao;e=lo;var o=32-Fr(r)-1;r&=~(1<<o),n+=1;var i=32-Fr(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,ao=1<<32-Fr(t)+o|n<<o|r,lo=i+e}else ao=1<<i|n<<o|r,lo=e}function Jm(e){e.return!==null&&(ei(e,1),mS(e,1,0))}function Zm(e){for(;e===Lu;)Lu=qi[--Xi],qi[Xi]=null,Fu=qi[--Xi],qi[Xi]=null;for(;e===pi;)pi=Sr[--Cr],Sr[Cr]=null,lo=Sr[--Cr],Sr[Cr]=null,ao=Sr[--Cr],Sr[Cr]=null}var dr=null,ur=null,Wt=!1,Lr=null;function pS(e,t){var n=wr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function eh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,dr=e,ur=Bo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,dr=e,ur=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=pi!==null?{id:ao,overflow:lo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=wr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,dr=e,ur=null,!0):!1;default:return!1}}function rv(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ov(e){if(Wt){var t=ur;if(t){var n=t;if(!eh(e,t)){if(rv(e))throw Error(ve(418));t=Bo(n.nextSibling);var r=dr;t&&eh(e,t)?pS(r,n):(e.flags=e.flags&-4097|2,Wt=!1,dr=e)}}else{if(rv(e))throw Error(ve(418));e.flags=e.flags&-4097|2,Wt=!1,dr=e}}}function th(e){
Line truncated
|
||||
Error generating stack: `+i.message+`
|
||||
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Wd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function sv(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var A$=typeof WeakMap=="function"?WeakMap:Map;function HS(e,t,n){n=uo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vu||(Vu=!0,yv=r),sv(e,t)},n}function VS(e,t,n){n=uo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){sv(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){sv(e,t),typeof r!="function"&&(Ho===null?Ho=new Set([this]):Ho.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function uh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new A$;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Y$.bind(null,e,t,n),t.then(e,e))}function ch(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function dh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=uo(-1,1),t.tag=2,ko(n,t,1))),n.lanes|=1),e)}var j$=yo.ReactCurrentOwner,Qn=!1;function Dn(e,t,n,r){t.child=e===null?yS(t,null,n,r):pa(t,e.child,n,r)}function fh(e,t,n,r,o){n=n.render;var i=t.ref;return la(t,o),r=cp(e,t,n,r,i,o),n=dp(),e!==null&&!Qn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,po(e,t,o)):(Wt&&n&&Jm(t),t.flags|=1,Dn(e,t,r,o),t.child)}function vh(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Cp(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,WS(e,t,i,r,o)):(e=lu(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Pl,n(a,r)&&e.ref===t.ref)return po(e,t,o)}return t.flags|=1,e=Wo(i,r),e.ref=t.ref,e.return=t,t.child=e}function WS(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Pl(i,r)&&e.ref===t.ref)if(Qn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Qn=!0);else return t.lanes=e.lanes,po(e,t,o)}return uv(e,t,n,r,o)}function US(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lt(Ji,sr),sr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Lt(Ji,sr),sr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Lt(Ji,sr),sr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Lt(Ji,sr),sr|=r;return Dn(e,t,o,n),t.child}function KS(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function uv(e,t,n,r,o){var i=Jn(n)?mi:Mn.current;return i=va(t,i),la(t,o),n=cp(e,t,n,r,i,o),r=dp(),e!==null&&!Qn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,po(e,t,o)):(Wt&&r&&Jm(t),t.flags|=1,Dn(e,t,n,o),t.child)}function mh(e,t,n,r,o){if(Jn(n)){var i=!0;Nu(t)}else i=!1;if(la(t,o),t.stateNode===null)ou(e,t),kS(t,n,r),lv(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Er(c):(c=Jn(n)?mi:Mn.current,c=va(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==c)&&sh(t,a,r,c),Io=!1;var v=t.memoizedState;a.state=v,ju(t,r,a,o),s=t.memoizedState,l!==r||v!==s||Yn.current||Io?(typeof d=="function"&&(av(t,n,d,r),s=t.memoizedState),(l=Io||lh(t,n,l,r,v,s,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,SS(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Tr(t.type,l),a.props=c,f=t.pendingProps,v=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Er(s):(s=Jn(n)?mi:Mn.current,s=va(t,s));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==f||v!==s)&&sh(t,a,r,s),Io=!1,v=t.memoizedState,a.state=v,ju(t,r,a,o);var m=t.memoizedS
Line truncated
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var l in i)t.call(i,l)&&i[l]&&(a=o(a,l));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(gC);var u2=gC.exports;const X=_m(u2);function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(null,arguments)}function Be(e){"@babel/helpers - typeof";return Be=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},Be(e)}var c2=Symbol.for("react.element"),d2=Symbol.for("react.transitional.element"),f2=Symbol.for("react.fragment");function hC(e){return e&&Be(e)==="object"&&(e.$$typeof===c2||e.$$typeof===d2)&&e.type===f2}function eo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ne.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(eo(r)):hC(r)&&r.props?n=n.concat(eo(r.props.children,t)):n.push(r))}),n}var xv={},v2=function(t){};function m2(e,t){}function p2(e,t){}function g2(){xv={}}function yC(e,t,n){!t&&!xv[n]&&(e(!1,n),xv[n]=!0)}function _n(e,t){yC(m2,e,t)}function h2(e,t){yC(p2,e,t)}_n.preMessage=v2;_n.resetWarned=g2;_n.noteOnce=h2;function y2(e,t){if(Be(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Be(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bC(e){var t=y2(e,"string");return Be(t)=="symbol"?t:t+""}function M(e,t,n){return(t=bC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ph(Object(n),!0).forEach(function(r){M(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ph(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jl(e){return e instanceof HTMLElement||e instanceof SVGElement}function b2(e){return e&&Be(e)==="object"&&jl(e.nativeElement)?e.nativeElement:jl(e)?e:null}function su(e){var t=b2(e);if(t)return t;if(e instanceof ne.Component){var n;return(n=wv.findDOMNode)===null||n===void 0?void 0:n.call(wv,e)}return null}var SC={exports:{}},Pt={};/**
|
||||
* @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 Rp=Symbol.for("react.element"),Op=Symbol.for("react.portal"),Pc=Symbol.for("react.fragment"),Ic=Symbol.for("react.strict_mode"),Tc=Symbol.for("react.profiler"),_c=Symbol.for("react.provider"),Mc=Symbol.for("react.context"),S2=Symbol.for("react.server_context"),Nc=Symbol.for("react.forward_ref"),Lc=Symbol.for("react.suspense"),Fc=Symbol.for("react.suspense_list"),zc=Symbol.for("react.memo"),Ac=Symbol.for("react.lazy"),C2=Symbol.for("react.offscreen"),CC;CC=Symbol.for("react.module.reference");function Or(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Rp:switch(e=e.type,e){case Pc:case Tc:case Ic:case Lc:case Fc:return e;default:switch(e=e&&e.$$typeof,e){case S2:case Mc:case Nc:case Ac:case zc:case _c:return e;default:return t}}case Op:return t}}}Pt.ContextConsumer=Mc;Pt.ContextProvider=_c;Pt.Element=Rp;Pt.ForwardRef=Nc;Pt.Fragment=Pc;Pt.Lazy=Ac;Pt.Memo=zc;Pt.Portal=Op;Pt.Profiler=Tc;Pt.StrictMode=Ic;Pt.Suspense=Lc;Pt.SuspenseList=Fc;Pt.isAsyncMode=function(){return!1};Pt.isConcurrentMode=function(){return!1};Pt.isContextConsumer=function(e){return Or(e)===Mc};Pt.isContextProvider=function(e){return Or(e)===_c};Pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Rp};Pt.isForwardRef=function(e){return Or(e)===Nc};Pt.isFragment=function(e){return Or(e)===Pc};Pt.isLazy=function(e){return Or(e)===Ac};Pt.isMemo=function(e){return Or(e)===zc};Pt.isPortal=function(e){return Or(e)===Op};Pt.isProfiler=function(e){return Or(e)===Tc};Pt.isStrictMode=function(e){return Or(e)===Ic};Pt.isSuspense=function(e){return Or(e)===Lc};Pt.isSuspenseList=function(e){return Or(e)===Fc};Pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pc||e===Tc||e===Ic||e===Lc||e===Fc||e===C2||typeof e=="object"&&e!==null&&(e.$$typeof===Ac||e.$$typeof===zc||e.$$typeof===_c||e.$$typeof===Mc||e.$$typeof===Nc||e.$$typeof===CC||e.getModuleId!==void 0)};Pt.typeOf=Or;SC.exports=Pt;var qd=SC.exports;function os(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var w2=Number(u.version.split(".")[0]),Pp=function(t,n){typeof t=="function"?t(n):Be(t)==="object"&&t&&"current"in t&&(t.current=n)},no=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(i){n.forEach(function(a){Pp(a,i)})}},wi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return os(function(){return no.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,l){return a!==i[l]})})},xi=function(t){var n,r;if(!t)return!1;if(wC(t)&&w2>=19)return!0;var o=qd.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==qd.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==qd.ForwardRef)};function wC(e){return u.isValidElement(e)&&!hC(e)}var Ma=function(t){if(t&&wC(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Ev=u.createContext(null);function x2(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),o=u.useRef([]),i=u.useContext(Ev),a=u.useCallback(function(l,s,c){r.current+=1;var d=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,s,c)},[n,i]);return u.createElement(Ev.Provider,{value:a},t)}var xC=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}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(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),$v=typeof window<"u"&&typeof document<"u"&&window.document===document,Gu=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")()}(),E2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Gu):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),$2=2;function R2(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){E2(i)}function l(){var s=Date.now();if(n){if(s-o<$2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=s}return l}vaLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ce(e){return Y2(e)||IC(e)||Tp(e)||J2()}var TC=function(t){return+setTimeout(t,16)},_C=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(TC=function(t){return window.requestAnimationFrame(t)},_C=function(t){return window.cancelAnimationFrame(t)});var _h=0,_p=new Map;function MC(e){_p.delete(e)}var Rt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;_h+=1;var r=_h;function o(i){if(i===0)MC(r),t();else{var a=TC(function(){o(i-1)});_p.set(r,a)}}return o(n),r};Rt.cancel=function(e){var t=_p.get(e);return MC(e),_C(t)};function NC(e){if(Array.isArray(e))return e}function Z2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){c=!0,o=d}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function LC(){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 U(e,t){return NC(e)||Z2(e,t)||Tp(e,t)||LC()}function kl(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function nr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function eR(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Mh="data-rc-order",Nh="data-rc-priority",tR="rc-util-key",Ov=new Map;function FC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):tR}function Dc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function nR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Mp(e){return Array.from((Ov.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function zC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!nr())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=nR(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(Mh,a),l&&i&&s.setAttribute(Nh,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=Dc(t),d=c.firstChild;if(r){if(l){var f=(t.styles||Mp(c)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Mh)))return!1;var g=Number(v.getAttribute(Nh)||0);return i>=g});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,d)}else c.appendChild(s);return s}function AC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Dc(t);return(t.styles||Mp(n)).find(function(r){return r.getAttribute(FC(t))===e})}function Hl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=AC(e,t);if(n){var r=Dc(t);r.removeChild(n)}}function rR(e,t){var n=Ov.get(e);if(!n||!eR(document,n)){var r=zC("",t),o=r.parentNode;Ov.set(e,o),e.removeChild(r)}}function co(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Dc(n),o=Mp(r),i=F(F({},n),{},{styles:o});rR(r,i);var a=AC(t,i);if(a){var l,s;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var d=zC(e,i);return d.setAttribute(FC(i),t),d}function oR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Je(e,t){if(e==null)return{};var n,r,o=oR(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(_n(!s,"Warning: There may be circular references"),s)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var c=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var d=0;d<i.length;d++)if(!o(i[d],a[d],c))return!1;return!0}if(i&&a&&Be(i)==="object"&&Be(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(v){return o(i[v],a[v],c)})}return!1}return o(e,t)}var iR="%";function Pv(e){return e.join(iR)}var aR=function(){function e(t){sn(this,e),M(this,"instanceId",void 0),M(this,"cache",new Map),M(this,"extracted",new Set),this.instanceId=t}return un(e,[{key:"get",value:function(n){return this.opGet(Pv(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Pv(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),Sa="data-token-hash",jr="data-css-hash",Fo="__cssinjs_instance__";function lR(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(jr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Fo]=o[Fo]||e,o[Fo]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(jr,"]"))).forEach(function(o){var i=o.getAttribute(jr);if(r[i]){if(o[Fo]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new aR(e)}var is=u.createContext({hashPrior
Line truncated
|
||||
`);else if(p._keyframe)m(p);else{var S=f.reduce(function(C,w){var x;return(w==null||(x=w.visit)===null||x===void 0?void 0:x.call(w,C))||C},p);Object.keys(S).forEach(function(C){var w=S[C];if(Be(w)==="object"&&w&&(C!=="animationName"||!w._keyframe)&&!YR(w)){var x=!1,E=C.trim(),$=!1;(o||i)&&l?E.startsWith("@")?x=!0:E==="&"?E=Hh("",l,c):E=Hh(C,l,c):o&&!l&&(E==="&"||E==="")&&(E="",$=!0);var R=e(w,n,{root:$,injectHash:x,parentSelectors:[].concat(Ce(a),[E])}),O=U(R,2),P=O[0],I=O[1];g=F(F({},g),I),v+="".concat(E).concat(P)}else{let j=function(L,A){var _=L.replace(/[A-Z]/g,function(z){return"-".concat(z.toLowerCase())}),B=A;!IR[L]&&typeof B=="number"&&B!==0&&(B="".concat(B,"px")),L==="animationName"&&A!==null&&A!==void 0&&A._keyframe&&(m(A),B=A.getName(l)),v+="".concat(_,":").concat(B,";")};var T,N=(T=w==null?void 0:w.value)!==null&&T!==void 0?T:w;Be(w)==="object"&&w!==null&&w!==void 0&&w[XC]&&Array.isArray(N)?N.forEach(function(L){j(C,L)}):j(C,N)}})}}),o?s&&(v&&(v="@layer ".concat(s.name," {").concat(v,"}")),s.dependencies&&(g["@layer ".concat(s.name)]=s.dependencies.map(function(h){return"@layer ".concat(h,", ").concat(s.name,";")}).join(`
|
||||
`))):v="{".concat(v,"}"),[v,g]};function QC(e,t){return kl("".concat(e.join("%")).concat(t))}function ZR(){return null}var YC="style";function Lv(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,d=u.useContext(is),f=d.autoClear;d.mock;var v=d.defaultCache,g=d.hashPriority,m=d.container,y=d.ssrInline,b=d.transformers,h=d.linters,p=d.cache,S=d.layer,C=n._tokenKey,w=[C];S&&w.push("layer"),w.push.apply(w,Ce(r));var x=Tv,E=Lp(YC,w,function(){var I=w.join("|");if(qR(I)){var T=XR(I),N=U(T,2),j=N[0],L=N[1];if(j)return[j,C,L,{},l,c]}var A=t(),_=JR(A,{hashId:o,hashPriority:g,layer:S?i:void 0,path:r.join("-"),transformers:b,linters:h}),B=U(_,2),z=B[0],H=B[1],V=vu(z),W=QC(w,V);return[V,C,W,H,l,c]},function(I,T){var N=U(I,3),j=N[2];(T||f)&&Tv&&Hl(j,{mark:jr,attachTo:m})},function(I){var T=U(I,4),N=T[0];T[1];var j=T[2],L=T[3];if(x&&N!==GC){var A={mark:jr,prepend:S?!1:"queue",attachTo:m,priority:c},_=typeof a=="function"?a():a;_&&(A.csp={nonce:_});var B=[],z=[];Object.keys(L).forEach(function(V){V.startsWith("@layer")?B.push(V):z.push(V)}),B.forEach(function(V){co(vu(L[V]),"_layer-".concat(V),F(F({},A),{},{prepend:!0}))});var H=co(N,j,A);H[Fo]=p.instanceId,H.setAttribute(Sa,C),z.forEach(function(V){co(vu(L[V]),"_effect-".concat(V),A)})}}),$=U(E,3),R=$[0],O=$[1],P=$[2];return function(I){var T;return!y||x||!v?T=u.createElement(ZR,null):T=u.createElement("style",we({},M(M({},Sa,O),jr,P),{dangerouslySetInnerHTML:{__html:R}})),u.createElement(u.Fragment,null,T,I)}}var eO=function(t,n,r){var o=U(t,6),i=o[0],a=o[1],l=o[2],s=o[3],c=o[4],d=o[5],f=r||{},v=f.plain;if(c)return null;var g=i,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=Xu(i,a,l,m,v),s&&Object.keys(s).forEach(function(y){if(!n[y]){n[y]=!0;var b=vu(s[y]),h=Xu(b,a,"_effect-".concat(y),m,v);y.startsWith("@layer")?g=h+g:g+=h}}),[d,l,g]},JC="cssVar",tO=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,s=t.scope,c=s===void 0?"":s,d=u.useContext(is),f=d.cache.instanceId,v=d.container,g=l._tokenKey,m=[].concat(Ce(t.path),[r,c,g]),y=Lp(JC,m,function(){var b=n(),h=DC(b,r,{prefix:o,unitless:i,ignore:a,scope:c}),p=U(h,2),S=p[0],C=p[1],w=QC(m,C);return[S,C,w,r]},function(b){var h=U(b,3),p=h[2];Tv&&Hl(p,{mark:jr,attachTo:v})},function(b){var h=U(b,3),p=h[1],S=h[2];if(p){var C=co(p,S,{mark:jr,prepend:"queue",attachTo:v,priority:-999});C[Fo]=f,C.setAttribute(Sa,r)}});return y},nO=function(t,n,r){var o=U(t,4),i=o[1],a=o[2],l=o[3],s=r||{},c=s.plain;if(!i)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=Xu(i,l,a,f,c);return[d,a,v]};M(M(M({},YC,eO),BC,PR),JC,nO);var vn=function(){function e(t,n){sn(this,e),M(this,"name",void 0),M(this,"style",void 0),M(this,"_keyframe",!0),this.name=t,this.style=n}return un(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Mi(e){return e.notSplit=!0,e}Mi(["borderTop","borderBottom"]),Mi(["borderTop"]),Mi(["borderBottom"]),Mi(["borderLeft","borderRight"]),Mi(["borderLeft"]),Mi(["borderRight"]);var Ap=u.createContext({});function ZC(e){return NC(e)||IC(e)||Tp(e)||LC()}function Qr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function e1(e,t,n,r){if(!t.length)return n;var o=ZC(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=Ce(e):l=F({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=e1(l[i],a,n,r),l}function Mr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Qr(e,t.slice(0,-1))?e:e1(e,t,n,r)}function rO(e){return Be(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Vh(e){return Array.isArray(e)?[]:{}}var oO=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Zi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Vh(t[0]);return t.forEach(function(o){function i(a,l){var s=new Set(l),c=Qr(o,a),d=Array.isArray(c);if(d||rO(c)){if(!s.has(c)){s.add(c);var f=Qr(r,a);d?r=Mr(r,a,[]):(!f||Be(f)!=="object")&&(r=Mr(r,a,Vh(c))),oO(c).forEach(function(v){i([].concat(Ce(a),[v]),s)})}}else r=Mr(r,a,c)}i([])}),r}const iO=u.createContext({}),aO=u.createContext(void 0);var lO={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"},sO={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},uO=F(F({},sO),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:
Line truncated
|
||||
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||||
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),gn=Math.round;function Jd(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Kh=(e,t,n)=>n===0?e:e/100;function Qa(e,t){const n=t||255;return e>n?n:e<0?0:e}class Mt{constructor(t){M(this,"isValid",!0),M(this,"r",0),M(this,"g",0),M(this,"b",0),M(this,"a",1),M(this,"_h",void 0),M(this,"_s",void 0),M(this,"_l",void 0),M(this,"_v",void 0),M(this,"_max",void 0),M(this,"_min",void 0),M(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let i=function(a){return o.startsWith(a)};var r=i;const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):i("rgb")?this.fromRgbString(o):i("hsl")?this.fromHslString(o):(i("hsv")||i("hsb"))&&this.fromHsvString(o)}else if(t instanceof Mt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Qa(t.r),this.g=Qa(t.g),this.b=Qa(t.b),this.a=typeof t.a=="number"?Qa(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=gn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=l=>(r[l]-this[l])*o+this[l],a={r:gn(i("r")),g:gn(i("g")),b:gn(i("b")),a:gn(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>gn((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=gn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=gn(this.getSaturation()*100),r=gn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Qa(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&
Line truncated
|
||||
:root {
|
||||
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
||||
`)}
|
||||
}
|
||||
`.trim()}function _O(e,t){const n=TO(e,t);nr()&&co(n,`${IO}-dynamic-theme`)}const Go=u.createContext(!1),MO=({children:e,disabled:t})=>{const n=u.useContext(Go);return u.createElement(Go.Provider,{value:t??n},e)},Ea=u.createContext(void 0),NO=({children:e,size:t})=>{const n=u.useContext(Ea);return u.createElement(Ea.Provider,{value:t||n},e)};function LO(){const e=u.useContext(Go),t=u.useContext(Ea);return{componentDisabled:e,componentSize:t}}var l1=un(function e(){sn(this,e)}),s1="CALC_UNIT",FO=new RegExp(s1,"g");function tf(e){return typeof e=="number"?"".concat(e).concat(s1):e}var zO=function(e){bo(n,e);var t=So(n);function n(r,o){var i;sn(this,n),i=t.call(this),M(st(i),"result",""),M(st(i),"unitlessCssVar",void 0),M(st(i),"lowPriority",void 0);var a=Be(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=tf(r):a==="string"&&(i.result=r),i}return un(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(tf(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(tf(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},l=a.unit,s=!0;return typeof l=="boolean"?s=l:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(s=!1),this.result=this.result.replace(FO,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(l1),AO=function(e){bo(n,e);var t=So(n);function n(r){var o;return sn(this,n),o=t.call(this),M(st(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return un(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(l1),jO=function(t,n){var r=t==="css"?zO:AO;return function(o){return new r(o,n)}},Jh=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function an(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function Gl(e){var t=u.useRef(!1),n=u.useState(e),r=U(n,2),o=r[0],i=r[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,s){s&&t.current||i(l)}return[o,a]}function nf(e){return e!==void 0}function fr(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=Gl(function(){return nf(o)?o:nf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=U(l,2),c=s[0],d=s[1],f=o!==void 0?o:c,v=a?a(f):f,g=an(i),m=Gl([f]),y=U(m,2),b=y[0],h=y[1];_v(function(){var S=b[0];c!==S&&g(c,S)},[b]),_v(function(){nf(o)||d(o)},[o]);var p=an(function(S,C){d(S,C),h([f],C)});return[v,p]}function Zh(e,t,n,r){var o=F({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(l){var s=U(l,2),c=s[0],d=s[1];if(o!=null&&o[c]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[c])}})}var a=F(F({},n),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var u1=typeof CSSINJS_STATISTIC<"u",qv=!0;function Yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!u1)return Object.assign.apply(Object,[{}].concat(t));qv=!1;var r={};return t.forEach(function(o){if(Be(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),qv=!0,r}var e0={};function DO(){}var BO=function(t){var n,r=t,o=DO;return
Line truncated
|
||||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||||
`,boxShadowSecondary:`
|
||||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||||
`,boxShadowTertiary:`
|
||||
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
||||
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
||||
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
||||
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
||||
0 1px 2px -2px ${new Mt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
||||
0 3px 6px 0 ${new Mt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
||||
0 5px 12px 4px ${new Mt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
||||
`,boxShadowDrawerRight:`
|
||||
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||||
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||||
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||||
`,boxShadowDrawerLeft:`
|
||||
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||||
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||||
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||||
`,boxShadowDrawerUp:`
|
||||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||||
`,boxShadowDrawerDown:`
|
||||
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
||||
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
||||
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
||||
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var r0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const d1={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},XO={motionBase:!0,motionUnit:!0},QO={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},f1=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=r0(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=c1(a),i&&Object.entries(i).forEach(([l,s])=>{const{theme:c}=s,d=r0(s,["theme"]);let f=d;c&&(f=f1(Object.assign(Object.assign({},a),d),{override:d},c)),a[l]=f}),a};function ro(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=ne.useContext(a1),i=`${GO}-${t||""}`,a=n||i1,[l,s,c]=OR(a,[Ul,e],{salt:i,override:r,getComputedToken:f1,formatToken:c1,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:d1,ignore:XO,preserve:QO}});return[a,c,t?s:"",l,o]}const $a={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Co=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Vc=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Wc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),YO=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),JO=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},kp=(e,t)=>({outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ju=(e,t)=>({"&:focus-visible":kp(e,t)}),v1=e=>({[`.${e}`]:Object.assign(Object.assign({},Vc()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:Ln,genComponentStyleHook:ZO,genSubStyleComponent:eP}=KO({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=u.useContext(ct);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=ro();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=u.useContext(ct);return e??{}},getResetStyles:(e,t)=>{var n;const r=YO(e);return[r,{"&":r},v1((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Hc)]},getCommonStyle:JO,getCompUnitless:()=>d1}),tP=(e,t)=>{const[n,r]=ro();return Lv({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>v1(e))},nP=Object.assign({},fc),{useId:o0}=nP,rP=()=>"",oP=typeof o0>"u"?rP:o0;function iP(e,t,n){var r;const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},Gv),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Gv.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=oP();return os(()=>{var l,s;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(v=>{c[v]=Object.assign(Object.assign({},c[v]),e.components[v])});const d=`css-var-${a.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((s=o.cssVar)===null||s===void 0?void 0:s.key)||d});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Objec
Line truncated
|
||||
.anticon {
|
||||
display: inline-flex;
|
||||
align-items: 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);
|
||||
}
|
||||
}
|
||||
`,HP=function(t){var n=u.useContext(Ap),r=n.csp,o=n.prefixCls,i=n.layer,a=kP;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
|
||||
`).concat(a,`
|
||||
}`)),u.useEffect(function(){var l=t.current,s=ec(l);co(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:s})},[])},VP=["icon","className","onClick","style","primaryColor","secondaryColor"],bl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function WP(e){var t=e.primaryColor,n=e.secondaryColor;bl.primaryColor=t,bl.secondaryColor=n||P1(t),bl.calculated=!!n}function UP(){return F({},bl)}var La=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=Je(t,VP),c=u.useRef(),d=bl;if(a&&(d={primaryColor:a,secondaryColor:l||P1(a)}),HP(c),BP(d0(n),"icon should be icon definiton, but got ".concat(n)),!d0(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=F(F({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),Zv(f.icon,"svg-".concat(f.name),F(F({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};La.displayName="IconReact";La.getTwoToneColors=UP;La.setTwoToneColors=WP;function T1(e){var t=I1(e),n=U(t,2),r=n[0],o=n[1];return La.setTwoToneColors({primaryColor:r,secondaryColor:o})}function KP(){var e=La.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var GP=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];T1(Qu.primary);var pn=u.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=Je(e,GP),d=u.useContext(Ap),f=d.prefixCls,v=f===void 0?"anticon":f,g=d.rootClassName,m=X(g,v,M(M({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!o||r.name==="loading"),n),y=a;y===void 0&&l&&(y=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,h=I1(s),p=U(h,2),S=p[0],C=p[1];return u.createElement("span",we({role:"img","aria-label":r.name},c,{ref:t,tabIndex:y,onClick:l,className:m}),u.createElement(La,{icon:r,primaryColor:S,secondaryColor:C,style:b}))});pn.displayName="AntdIcon";pn.getTwoToneColor=KP;pn.setTwoToneColor=T1;var qP=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:AP}))},XP=u.forwardRef(qP),QP={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"},YP=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:QP}))},Vp=u.forwardRef(YP),JP={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"},ZP=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:JP}))},Wp=u.forwardRef(ZP),eI={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"},tI=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:eI}))},nI=u.forwardRef(tI),rI={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"},oI=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:rI}))},iI=u.forwardRef(oI),aI=`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`,lI=`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`,sI="".concat(aI," ").concat(lI).split(/[\s\n]+/),uI="aria-",cI="data-";function v0(e,t){return e.indexOf(t)===0}function Ra(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=F({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||v0(o,uI))||n.data&&v0(o,cI)||n.attr&&sI.includes(o))&&(r[o]=e[o])}),r}function dI(e){return e&&ne.isValidElement(e)&&e.type===ne.Fragment}const fI=(e,t,n)=>ne.isValidElement(e)?ne.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function tc(e,t){return fI(e,e,t)}const Fa=e=>{const[,,,,t]=ro();return t?`${e}-css-var`:""};var De={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,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},_1=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,l=e.showProgress,s=e.pauseOnHover,c=s===void 0?!0:s,d=e.eventKey,f=e.content,v=e.closable,g=e.closeIcon,m=g===void 0?"x":g,y=e.props,b=e.onClick,h=e.onNoticeClose,p=e.times,S=e.hovering,C=u.useState(!1),w=U(C,2),x=w[0],E=w[1],$=u.useState(0),R=U($,2),O=R[0],P=R[1],I=u.useState(0),T=U(I,2),N=T[0],j=T[1],L=S||x,A=a>0&&l,_=function(){h(d)},B=function(k){(k.key==="Enter"||k.code==="Enter"||k.keyCode===De.ENTER)&&_()};u.useEffect(function(){if(!L&&a>0){var D=Date.now()-N,k=setTimeout(function(){_()},a*1e3-N);return function(){c&&clearTimeout(k),j(Date.now()-D)}}},[a,L,p]),u.useEffect(function(){if(!L&&A&&(c||N===0)){var D=performance.now(),k,K=function Z(){cancelAnimationFrame(k),k=requestAnimationFrame(function(q){var Y=q+N-D,de=Math.min(Y/(a*1e3),1);P(de*100),de<1&&Z()})};return K(),function(){c&&cancelAnimationFrame(k)}}},[a,N,L,A,p]);var z=u.useMemo(function(){return Be(v)==="object"&&v!==null?v:v?{closeIcon:m}:{}},[v,m]),H=Ra(z,!0),V=100-(!O||O<0?0:O>100?100:O),W="".concat(n,"-notice");return u.createElement("div",we({},y,{ref:t,className:X(W,o,M({},"".concat(W,"-closable"),v)),style:r,onMouseEnter:function(k){var K;E(!0),y==null||(K=y.onMouseEnter)===null||K===void 0||K.call(y,k)},onMouseLeave:function(k){var K;E(!1),y==null||(K=y.onMouseLeave)===null||K===void 0||K.call(y,k)},onClick:b}),u.createElement("div",{className:"".concat(W,"-content")},f),v&&u.createElement("a",we({tabIndex:0,className:"".concat(W,"-close"),onKeyDown:B,"aria-label":"Close"},H,{onClick:function(k){k.preventDefault(),k.stopPropagation(),_()}}),z.closeIcon),A&&u.createElement("progress",{className:"".concat(W,"-progress"),max:"100",value:V},V+"%"))}),M1=ne.createContext({}),vI=function(t){var n=t.children,r=t.classNames;return ne.createElement(M1.Provider,{value:{classNames:r}},n)},m0=8,p0=3,g0=16,mI=function(t){var n={offset:m0,threshold:p0,gap:g0};if(t&&Be(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:m0,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:p0,n.gap=(i=t.gap)!==null&&i!==void 0?i:g0}return[!!t,n]},pI=["className","style","classNames","styles"],gI=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,l=t.motion,s=t.onAllNoticeRemoved,c=t.onNoticeClose,d=t.stack,f=u.useContext(M1),v=f.classNames,g=u.useRef({}),m=u.useState(null),y=U(m,2),b=y[0],h=y[1],p=u.useState([]),S=U(p,2),C=S[0],w=S[1],x=n.map(function(L){return{config:L,key:String(L.key)}}),E=mI(d),$=U(E,2),R=$[0],O=$[1],P=O.offset,I=O.threshold,T=O.gap,N=R&&(C.length>0||x.length<=I),j=typeof l=="function"?l(r):l;return u.useEffect(function(){R&&C.length>1&&w(function(L){return L.filter(function(A){return x.some(function(_){var B=_.key;return A===B})})})},[C,x,R]),u.useEffect(function(){var L;if(R&&g.current[(L=x[x.length-1])===null||L===void 0?void 0:L.key]){var A;h(g.current[(A=x[x.length-1])===null||A===void 0?void 0:A.key])}},[x,R]),ne.createElement(OP,we({key:r,className:X(o,"".concat(o,"-").concat(r),v==null?void 0:v.list,i,M(M({},"".concat(o,"-stack"),!!R),"".concat(o,"-stack-expanded"),N)),style:a,keys:x,motionAppear:!0},j,{onAllRemoved:function(){s(r)}}),function(L,A){var _=L.config,B=L.className,z=L.style,H=L.index,V=_,W=V.key,D=V.times,k=String(W),K=_,Z=K.className,q=K.style,Y=K.classNames,de=K.styles,ee=Je(K,pI),Q=x.findIndex(function(le){return le.key===k}),ie={};if(R){var J=x.length-1-(Q>-1?Q:H-1),re=r==="top"||r==="bottom"?"-50%":"0";if(J>0){var te,ce,ue;ie.height=N?(te=g.current[k])===null||te===void 0?void 0:te.offsetHeight:b==null?void 0:b.offsetHeight;for(var pe=0,be=0;be<J;be++){var fe;pe+=((fe=g.current[x[x.length-1-be].key])===null||fe===void 0?void 0:fe.offsetHeight)+T}var xe=(N?pe:J*P)*(r.startsWith("top")?1:-1),ge=!N&&b!==null&&b!==void 0&&b.offsetWidth&&(ce=g.current[k])!==null&&ce
Line truncated
|
||||
${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},Co(e)),{color:o,position:"fixed",top:v,width:"100%",pointerEvents:"none",zIndex:y,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
||||
${t}-move-up-appear,
|
||||
${t}-move-up-enter
|
||||
`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
|
||||
${t}-move-up-appear${t}-move-up-appear-active,
|
||||
${t}-move-up-enter${t}-move-up-enter-active
|
||||
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${p}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},_I=e=>({zIndexPopup:e.zIndexPopupBase+RI+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),L1=Ln("Message",e=>{const t=Yt(e,{height:150});return TI(t)},_I);var MI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const NI={info:u.createElement(iI,null),success:u.createElement(XP,null),error:u.createElement(Vp,null),warning:u.createElement(nI,null),loading:u.createElement(Up,null)},F1=({prefixCls:e,type:t,icon:n,children:r})=>u.createElement("div",{className:X(`${e}-custom-content`,`${e}-${t}`)},n||NI[t],u.createElement("span",null,r)),LI=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=MI(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=u.useContext(ct),s=t||l("message"),c=Fa(s),[d,f,v]=L1(s,c);return d(u.createElement(_1,Object.assign({},a,{prefixCls:s,className:X(n,f,`${s}-notice-pure-panel`,v,c),eventKey:"pure",duration:null,content:u.createElement(F1,{prefixCls:s,type:r,icon:o},i)})))};function FI(e,t){return{motionName:t??`${e}-move-up`}}function Kp(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var zI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AI=8,jI=3,DI=({children:e,prefixCls:t})=>{const n=Fa(t),[r,o,i]=L1(t,n);return r(u.createElement(vI,{classNames:{list:X(o,i,n)}},e))},BI=(e,{prefixCls:t,key:n})=>u.createElement(DI,{prefixCls:t,key:n},e),kI=u.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=jI,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:d,getPopupContainer:f,message:v,direction:g}=u.useContext(ct),m=r||d("message"),y=()=>({left:"50%",transform:"translateX(-50%)",top:n??AI}),b=()=>X({[`${m}-rtl`]:l??g==="rtl"}),h=()=>FI(m,s),p=u.createElement("span",{className:`${m}-close-x`},u.createElement(Wp,{className:`${m}-close-icon`})),[S,C]=CI({prefixCls:m,style:y,className:b,motion:h,closable:!1,closeIcon:p,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:BI});return u.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:m,message:v})),C});let y0=0;function z1(e){const t=u.useRef(null);return[u.useMemo(()=>{const r=s=>{var c;(c=t.current)===null||c===void 0||c.close(s)},o=s=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:c,prefixCls:d,message:f}=t.current,v=`${d}-notice`,{content:g,icon:m,type:y,key:b,className:h,style:p,onClose:S}=s,C=zI(s,["content","icon","type","key","className","style","onClose"]);let w=b;return w==null&&(y0+=1,w=`antd-message-${y0}`),Kp(x=>(c(Object.assign(Object.assign({},C),{key:w,content:u.createElement(F1,{prefixCls:d,type:y,icon:m},g),placement:"top",className:X(y&&`${v}-${y}`,h,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),p),onClose:()=>{S==null||S(),x()}})),()=>{r(w)}))},a={open:o,destroy:s=>{var c;s!==void 0?r(s):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const c=(d,f,v)=>{let g;d&&typeof d=="object"&&"content"in d?g=d:g={content:d};let m,y;typeof f=="function"?y=f:(m=f,y=v);const b=Object.assign(Object.assign({onClose:y,duration:m},g),{type:s});return o(b)};a[s]=c}),a},[]),u.createElement(kI,Object.assign({key:"message-holder"},e,{ref:t}))]}function HI(e){return z1(e)}function A1(e,t){this.v=e,this.k=t}function On(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}On=function(a,l,s,c){function d(f,v){On(a,f,function(g){return this._invoke(f,v,g)})}l?o?o(a,l,{value:s,enumerable:!c,configurable:!c,writable:!c}):a[l]=s:(d("next",0),d("throw",1),d("return",2))},On(e,t,n,r)}function Gp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStri
Line truncated
|
||||
${i}${e}-enter,
|
||||
${i}${e}-appear
|
||||
`]:Object.assign(Object.assign({},TT(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},_T(r)),{animationPlayState:"paused"}),[`
|
||||
${i}${e}-enter${e}-enter-active,
|
||||
${i}${e}-appear${e}-appear-active
|
||||
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},MT=new vn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),NT=new vn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),LT=new vn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),FT=new vn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zT=new vn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),AT=new vn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),jT=new vn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),DT=new vn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),BT={"move-up":{inKeyframes:jT,outKeyframes:DT},"move-down":{inKeyframes:MT,outKeyframes:NT},"move-left":{inKeyframes:LT,outKeyframes:FT},"move-right":{inKeyframes:zT,outKeyframes:AT}},O0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=BT[t];return[W1(r,o,i,e.motionDurationMid),{[`
|
||||
${r}-enter,
|
||||
${r}-appear
|
||||
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},U1=new vn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),K1=new vn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),G1=new vn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),q1=new vn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),kT=new vn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),HT=new vn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),VT=new vn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),WT=new vn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),UT={"slide-up":{inKeyframes:U1,outKeyframes:K1},"slide-down":{inKeyframes:G1,outKeyframes:q1},"slide-left":{inKeyframes:kT,outKeyframes:HT},"slide-right":{inKeyframes:VT,outKeyframes:WT}},oc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=UT[t];return[W1(r,o,i,e.motionDurationMid),{[`
|
||||
${r}-enter,
|
||||
${r}-appear
|
||||
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},KT=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new ql(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},X1=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Yt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Q1=e=>{var t,n,r,o,i,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:pu(l),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:pu(s),v=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:pu(c),g=KT(new OT(e.colorBgSolid),"#fff")?"#000":"#fff",m=Bp.reduce((y,b)=>Object.assign(Object.assign({},y),{[`${b}ShadowColor`]:`0 ${oe(e.controlOutlineWidth)} 0 ${al(e[`${b}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},m),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*v)/2-e.lineWidth,0)})},GT=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Vc(),"> a":{color:"currentColor"},"&:not(:disabled)":Ju(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},Y1=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),qT=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),XT=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Gc=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Y1(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),QT=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},XT(e))}),YT=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowe
Line truncated
|
||||
#`.concat(t,`::-webkit-scrollbar {
|
||||
`).concat(d,`
|
||||
`).concat(f,`
|
||||
}`),t)}catch(m){console.error(m),o=s,i=c}}document.body.appendChild(n);var v=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,g=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Hl(t),{width:v,height:g}}function x_(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:w_(e)}function E_(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var $_="rc-util-locker-".concat(Date.now()),I0=0;function R_(e){var t=!!e,n=u.useState(function(){return I0+=1,"".concat($_,"_").concat(I0)}),r=U(n,1),o=r[0];Dt(function(){if(t){var i=x_(document.body).width,a=E_();co(`
|
||||
html body {
|
||||
overflow-y: hidden;
|
||||
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
||||
}`),o)}else Hl(o);return function(){Hl(o)}},[t,o])}var O_=!1;function P_(e){return O_}var T0=function(t){return t===!1?!1:!nr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Z1=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,l=e.children,s=u.useState(n),c=U(s,2),d=c[0],f=c[1],v=d||n;u.useEffect(function(){(a||n)&&f(n)},[n,a]);var g=u.useState(function(){return T0(o)}),m=U(g,2),y=m[0],b=m[1];u.useEffect(function(){var P=T0(o);b(P??null)});var h=C_(v&&!y),p=U(h,2),S=p[0],C=p[1],w=y??S;R_(r&&n&&nr()&&(w===S||w===document.body));var x=null;if(l&&xi(l)&&t){var E=l;x=E.ref}var $=wi(x,t);if(!v||!nr()||y===void 0)return null;var R=w===!1||P_(),O=l;return t&&(O=u.cloneElement(l,{ref:$})),u.createElement(J1.Provider,{value:C},R?O:go.createPortal(O,w))});function I_(){var e=F({},fc);return e.useId}var _0=0,M0=I_();const T_=M0?function(t){var n=M0();return t||n}:function(t){var n=u.useState("ssr-id"),r=U(n,2),o=r[0],i=r[1];return u.useEffect(function(){var a=_0;_0+=1,i("rc_unique_".concat(a))},[]),t||o};var li="RC_FORM_INTERNAL_HOOKS",Tt=function(){_n(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Oa=u.createContext({getFieldValue:Tt,getFieldsValue:Tt,getFieldError:Tt,getFieldWarning:Tt,getFieldsError:Tt,isFieldsTouched:Tt,isFieldTouched:Tt,isFieldValidating:Tt,isFieldsValidating:Tt,resetFields:Tt,setFields:Tt,setFieldValue:Tt,setFieldsValue:Tt,validateFields:Tt,submit:Tt,getInternalHooks:function(){return Tt(),{dispatch:Tt,initEntityValue:Tt,registerField:Tt,useSubscribe:Tt,setInitialValues:Tt,destroyForm:Tt,setCallbacks:Tt,registerWatch:Tt,getFields:Tt,setValidateMessages:Tt,setPreserve:Tt,getInitialValue:Tt}}}),ic=u.createContext(null);function om(e){return e==null?[]:Array.isArray(e)?e:[e]}function __(e){return e&&!!e._init}function im(){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 am=im();function M_(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function N_(e,t,n){if(Ip())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Dl(o,n.prototype),o}function lm(e){var t=typeof Map=="function"?new Map:void 0;return lm=function(r){if(r===null||!M_(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return N_(r,arguments,Bl(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Dl(o,r)},lm(e)}var L_=/%[sdj%]/g,F_=function(){};function sm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function cr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(L_,function(l){if(l==="%%")return"%";if(o>=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function z_(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function mn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||z_(t)&&typeof e=="string"&&!e)}function A_(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,Ce(l||[])),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function N0(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<o?t(e[l],i):n([])}i([])}function j_(e){var t=[];return Object.keys(e).forEa
Line truncated
|
||||
${r},
|
||||
${o} > li,
|
||||
${n},
|
||||
${i},
|
||||
${a},
|
||||
${l}
|
||||
`]:Object.assign({},PM(e))}}},LM=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Aa=Ln("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Yt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return NM(r)},LM,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),FM=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=u.useContext(ct),s=l("skeleton",t),[c,d,f]=Aa(s),v=rr(e,["prefixCls","className"]),g=X(s,`${s}-element`,{[`${s}-active`]:o},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(ed,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},v))))},zM=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=u.useContext(ct),s=l("skeleton",t),[c,d,f]=Aa(s),v=rr(e,["prefixCls"]),g=X(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(ed,Object.assign({prefixCls:`${s}-button`,size:a},v))))},AM="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",jM=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=u.useContext(ct),l=a("skeleton",t),[s,c,d]=Aa(l),f=X(l,`${l}-element`,{[`${l}-active`]:i},n,r,c,d);return s(u.createElement("div",{className:f},u.createElement("div",{className:X(`${l}-image`,n),style:o},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},u.createElement("title",null,"Image placeholder"),u.createElement("path",{d:AM,className:`${l}-image-path`})))))},DM=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=u.useContext(ct),s=l("skeleton",t),[c,d,f]=Aa(s),v=rr(e,["prefixCls"]),g=X(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(ed,Object.assign({prefixCls:`${s}-input`,size:a},v))))},BM=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=u.useContext(ct),s=l("skeleton",t),[c,d,f]=Aa(s),v=X(s,`${s}-element`,{[`${s}-active`]:i},d,n,r,f);return c(u.createElement("div",{className:v},u.createElement("div",{className:X(`${s}-image`,n),style:o},a)))},kM=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},HM=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((a,l)=>u.createElement("li",{key:l,style:{width:kM(l,e)}}));return u.createElement("ul",{className:X(t,n),style:r},i)},VM=({prefixCls:e,className:t,width:n,style:r})=>u.createElement("h3",{className:X(e,t),style:Object.assign({width:n},r)});function yf(e){return e&&typeof e=="object"?e:{}}function WM(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function UM(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function KM(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ja=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:s=!0,paragraph:c=!0,active:d,round:f}=e,{getPrefixCls:v,direction:g,className:m,style:y}=Yo("skeleton"),b=v("skeleton",t),[h,p,S]=Aa(b);if(n||!("loading"in e)){const C=!!l,w=!!s,x=!!c;let E;if(C){const O=Object.assign(Object.assign({prefixCls:`${b}-avatar`},WM(w,x)),yf(l));E=u.createElement("div",{className:`${b}-header`},u.createElement(ed,Object.assign({},O)))}let $;if(w||x){let O;if(w){const I=Object.assign(Object.assign({prefixCls:`${b}-title`},UM(C,x)),yf(s))
Line truncated
|
||||
`,`\r
|
||||
`].includes(_e)})},[j]),ae=u.useContext(Zp)||{},me=ae.maxCount,Ne=ae.rawValues,Oe=function($e,ht,St){if(!(pe&&gm(me)&&(Ne==null?void 0:Ne.size)>=me)){var It=!0,At=$e;R==null||R(null);var Fn=VN($e,j,gm(me)?me-Ne.size:void 0),Sn=St?null:Fn;return b!=="combobox"&&Sn&&(At="",N==null||N(Sn),Se(!1),It=!1),T&&He!==At&&T(At,{source:ht?"typing":"effect"}),It}},it=function($e){!$e||!$e.trim()||T($e,{source:"submit"})};u.useEffect(function(){!Te&&!pe&&b!=="combobox"&&Oe("",!1,!1)},[Te]),u.useEffect(function(){Ct&&h&&pt(!1),h&&!Ue.current&&Ie(!1)},[h]);var at=lw(),lt=U(at,2),ft=lt[0],kt=lt[1],Ft=u.useRef(!1),Gt=function($e){var ht=ft(),St=$e.key,It=St==="Enter";if(It&&(b!=="combobox"&&$e.preventDefault(),Te||Se(!0)),kt(!!He),St==="Backspace"&&!ht&&pe&&!He&&d.length){for(var At=Ce(d),Fn=null,Sn=At.length-1;Sn>=0;Sn-=1){var zn=At[Sn];if(!zn.disabled){At.splice(Sn,1),Fn=zn;break}}Fn&&f(At,{type:"remove",values:[Fn]})}for(var En=arguments.length,An=new Array(En>1?En-1:0),Wr=1;Wr<En;Wr++)An[Wr-1]=arguments[Wr];if(Te&&(!It||!Ft.current)){var jn;It&&(Ft.current=!0),(jn=We.current)===null||jn===void 0||jn.onKeyDown.apply(jn,[$e].concat(An))}te==null||te.apply(void 0,[$e].concat(An))},cn=function($e){for(var ht=arguments.length,St=new Array(ht>1?ht-1:0),It=1;It<ht;It++)St[It-1]=arguments[It];if(Te){var At;(At=We.current)===null||At===void 0||At.onKeyUp.apply(At,[$e].concat(St))}$e.key==="Enter"&&(Ft.current=!1),re==null||re.apply(void 0,[$e].concat(St))},$t=function($e){var ht=d.filter(function(St){return St!==$e});f(ht,{type:"remove",values:[$e]})},_t=function(){Ft.current=!1},ye=u.useRef(!1),Ee=function(){Ie(!0),h||(ie&&!ye.current&&ie.apply(void 0,arguments),Q.includes("focus")&&Se(!0)),ye.current=!0},Qe=function(){Ue.current=!0,Ie(!1,function(){ye.current=!1,Ue.current=!1,Se(!1)}),!h&&(He&&(b==="tags"?T(He,{source:"submit"}):b==="multiple"&&T("",{source:"blur"})),J&&J.apply(void 0,arguments))},nt=[];u.useEffect(function(){return function(){nt.forEach(function(_e){return clearTimeout(_e)}),nt.splice(0,nt.length)}},[]);var Ae=function($e){var ht,St=$e.target,It=(ht=ze.current)===null||ht===void 0?void 0:ht.getPopupElement();if(It&&It.contains(St)){var At=setTimeout(function(){var En=nt.indexOf(At);if(En!==-1&&nt.splice(En,1),qe(),!le&&!It.contains(document.activeElement)){var An;(An=Re.current)===null||An===void 0||An.focus()}});nt.push(At)}for(var Fn=arguments.length,Sn=new Array(Fn>1?Fn-1:0),zn=1;zn<Fn;zn++)Sn[zn-1]=arguments[zn];ce==null||ce.apply(void 0,[$e].concat(Sn))},Me=u.useState({}),Ge=U(Me,2),ut=Ge[1];function gt(){ut({})}var wt;mt&&(wt=function($e){Se($e)}),ZM(function(){var _e;return[Fe.current,(_e=ze.current)===null||_e===void 0?void 0:_e.getPopupElement()]},Ze,Se,!!mt);var zt=u.useMemo(function(){return F(F({},e),{},{notFoundContent:m,open:Te,triggerOpen:Ze,id:r,showSearch:be,multiple:pe,toggleOpen:Se})},[e,m,Ze,Te,r,be,pe,Se]),or=!!_||p,Vn;or&&(Vn=u.createElement(nd,{className:X("".concat(o,"-arrow"),M({},"".concat(o,"-arrow-loading"),p)),customizeIcon:_,customizeIconProps:{loading:p,searchValue:He,open:Te,focused:he,showSearch:be}}));var Wn=function(){var $e;y==null||y(),($e=Re.current)===null||$e===void 0||$e.focus(),f([],{type:"clear",values:d}),Oe("",!1,!1)},Un=QM(o,Wn,d,L,B,h,He,b),bn=Un.allowClear,Kn=Un.clearIcon,Gn=u.createElement(z,{ref:We}),gr=X(o,i,M(M(M(M(M(M(M(M(M(M({},"".concat(o,"-focused"),he),"".concat(o,"-multiple"),pe),"".concat(o,"-single"),!pe),"".concat(o,"-allow-clear"),L),"".concat(o,"-show-arrow"),or),"".concat(o,"-disabled"),h),"".concat(o,"-loading"),p),"".concat(o,"-open"),Te),"".concat(o,"-customize-input"),rt),"".concat(o,"-show-search"),be)),Vr=u.createElement(kN,{ref:ze,disabled:h,prefixCls:o,visible:Ze,popupElement:Gn,animation:H,transitionName:V,dropdownStyle:W,dropdownClassName:D,direction:s,dropdownMatchSelectWidth:k,dropdownRender:K,dropdownAlign:Z,placement:q,builtinPlacements:Y,getPopupContainer:de,empty:v,getTriggerDOMNode:function($e){return Ve.current||$e},onPopupVisibleChange:wt,onPopupMouseEnter:gt},mt?u.cloneElement(mt,{ref:rn}):u.createElement(EN,we({},e,{domRef:Ve,prefixCls:o,inputElement:rt,ref:Re,id:r,prefix:A,showSearch:be,autoClearSearchValue:I,mode:b,activeDescendantId:O,tagRender:l,values:d,open:Te,onToggleOpen:Se,activeValue:$,searchValue:He,onSearch:Oe,onSearchSubmit:it,onRemove:$t,tokenWithEnter:se,onInputBlur:_t}))),Et;return mt?Et=Vr:Et=u.createElement("div",we({className:gr},fe,{ref:Fe,onMouseDown:Ae,onKeyDown:Gt,onKeyUp:cn,onFocus:Ee,onBlur:Qe}),u.createElement(WN,{visible:he&&!Te,values:d}),Vr,Vn,bn&&Kn),u.createElement(aw.Provider,{value:zt},Et)}),eg=function(){return null};eg.isSelectOptGroup=!0;var tg=function(){return null};tg.isSelectOption=!0;var pw=u.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,l=e.onInnerResize,s=e.innerProps,c=e.rtl,d=e.extra,f={},v={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},v=F(F({},v),{},M(M(M(M(M({transform:"t
Line truncated
|
||||
${o}${l}bottomLeft,
|
||||
${i}${l}bottomLeft
|
||||
`]:{animationName:U1},[`
|
||||
${o}${l}topLeft,
|
||||
${i}${l}topLeft,
|
||||
${o}${l}topRight,
|
||||
${i}${l}topRight
|
||||
`]:{animationName:G1},[`${a}${l}bottomLeft`]:{animationName:K1},[`
|
||||
${a}${l}topLeft,
|
||||
${a}${l}topRight
|
||||
`]:{animationName:q1},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},uy(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},$a),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},uy(e)),{color:e.colorTextDisabled})}),[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},oc(e,"slide-up"),oc(e,"slide-down"),O0(e,"move-up"),O0(e,"move-down")]},A4=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:oe(t),itemLineHeight:oe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},j4=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},D4=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Vc()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},B4=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=j4(e),l=t?`${n}-${t}`:"",s=A4(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},D4(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${oe(r)} 0`,lineHeight:oe(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:oe(s.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:oe(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${o}-item + ${o}-item,
|
||||
${n}-prefix + ${n}-selection-wrap
|
||||
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:oe(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Sf(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
||||
&${n}-show-arrow ${n}-selector,
|
||||
&${n}-allow-clear ${n}-selector
|
||||
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[B4(e,t),o]}const k4=e=>{const{componentCls:t}=e,n=Yt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Yt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Sf(e),Sf(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Sf(r,"lg")]};function Cf(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Co(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:oe(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
||||
${n}-selection-item,
|
||||
${n}-selection-placeholder
|
||||
`]:{display:"block",padding:0,lineHeight:oe(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
||||
&${n}-show-arrow ${n}-selection-item,
|
||||
&${n}-show-arrow ${n}-selection-search,
|
||||
&${n}-show-arrow ${n}-selection-placeholder
|
||||
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${oe(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:oe(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${oe(r)}`,"&:after":{display:"none"}}}}}}}function H4(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Cf(e),Cf(Yt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${oe(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
||||
&${t}-show-arrow ${t}-selection-item,
|
||||
&${t}-show-arrow ${t}-selection-placeholder
|
||||
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Cf(Yt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const V4=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:d,fontWeightStrong:f,controlItemBgActive:v,controlItemBgHover:g,colorBgContainer:m,colorFillSecondary:y,colorBgContainerDisabled:b,colorTextDisabled:h,colorPrimaryHover:p,colorPrimary:S,controlOutline:C}=e,w=l*2,x=r*2,E=Math.min(o-w,o-x),$=Math.min(i-w,i-x),R=Math.min(a-w,a-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:v,optionActiveBg:g,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:y,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:$,multipleItemHeightLG:R,multipleSelectorBgDisabled:b,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:S,activeOutlineColor:C,selectAffixPadding:l}},Cw=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${oe(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${oe(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},cy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Cw(e,t))}),W4=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Cw(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),cy(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),cy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ww=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${oe(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},dy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ww(e,t))}),U4=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ww(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),dy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),dy(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),K4=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),xw=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${oe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparentLine truncated
|
||||
& > ${t}-affix-wrapper,
|
||||
& > ${t}-number-affix-wrapper,
|
||||
& > ${n}-picker-range
|
||||
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
||||
& > ${n}-select-auto-complete ${t},
|
||||
& > ${n}-cascader-picker ${t},
|
||||
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
||||
& > ${n}-select:first-child > ${n}-select-selector,
|
||||
& > ${n}-select-auto-complete:first-child ${t},
|
||||
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
||||
& > ${n}-select:last-child > ${n}-select-selector,
|
||||
& > ${n}-cascader-picker:last-child ${t},
|
||||
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},PF=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Co(e)),Qw(e)),SF(e)),xF(e)),wF(e)),$F(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},IF=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${oe(e.inputAffixPadding)}`}}}},TF=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Qw(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),IF(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},_F=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Co(e)),OF(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},CF(e)),EF(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},MF=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rt
Line truncated
|
||||
> ${t},
|
||||
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},NF=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Yw=Ln(["Input","Shared"],e=>{const t=Yt(e,ld(e));return[PF(t),TF(t)]},sd,{resetFont:!1}),Jw=Ln(["Input","Component"],e=>{const t=Yt(e,ld(e));return[_F(t),MF(t),NF(t),Zc(t)]},sd,{resetFont:!1});var LF={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"},FF=function(t,n){return u.createElement(pn,we({},t,{ref:n,icon:LF}))},zF=u.forwardRef(FF);const ud=u.createContext(null);var AF=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,l=a.size,s=a.align,c=s===void 0?"center":s,d=u.useState(),f=U(d,2),v=f[0],g=f[1],m=u.useRef(),y=ne.useCallback(function(h){return typeof l=="function"?l(h):typeof l=="number"?l:h},[l]);function b(){Rt.cancel(m.current)}return u.useEffect(function(){var h={};if(n)if(r){h.width=y(n.width);var p=o?"right":"left";c==="start"&&(h[p]=n[p]),c==="center"&&(h[p]=n[p]+n.width/2,h.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(h[p]=n[p]+n.width,h.transform="translateX(-100%)")}else h.height=y(n.height),c==="start"&&(h.top=n.top),c==="center"&&(h.top=n.top+n.height/2,h.transform="translateY(-50%)"),c==="end"&&(h.top=n.top+n.height,h.transform="translateY(-100%)");return b(),m.current=Rt(function(){var S=v&&h&&Object.keys(h).every(function(C){var w=h[C],x=v[C];return typeof w=="number"&&typeof x=="number"?Math.round(w)===Math.round(x):w===x});S||g(h)}),b},[JSON.stringify(n),r,o,c,y]),{style:v}},Ry={width:0,height:0,left:0,top:0};function jF(e,t,n){return u.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Ry,a=i.left+i.width,l=0;l<e.length;l+=1){var s=e[l].key,c=t.get(s);if(!c){var d;c=t.get((d=e[l-1])===null||d===void 0?void 0:d.key)||Ry}var f=o.get(s)||F({},c);f.right=a-f.left-f.width,o.set(s,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Oy(e,t){var n=u.useRef(e),r=u.useState({}),o=U(r,2),i=o[1];function a(l){var s=typeof l=="function"?l(n.current):l;s!==n.current&&t(s,n.current),n.current=s,i({})}return[n.current,a]}var DF=.1,Py=.01,bu=20,Iy=Math.pow(.995,bu);function BF(e,t){var n=u.useState(),r=U(n,2),o=r[0],i=r[1],a=u.useState(0),l=U(a,2),s=l[0],c=l[1],d=u.useState(0),f=U(d,2),v=f[0],g=f[1],m=u.useState(),y=U(m,2),b=y[0],h=y[1],p=u.useRef();function S(R){var O=R.touches[0],P=O.screenX,I=O.screenY;i({x:P,y:I}),window.clearInterval(p.current)}function C(R){if(o){var O=R.touches[0],P=O.screenX,I=O.screenY;i({x:P,y:I});var T=P-o.x,N=I-o.y;t(T,N);var j=Date.now();c(j),g(j-s),h({x:T,y:N})}}function w(){if(o&&(i(null),h(null),b)){var R=b.x/v,O=b.y/v,P=Math.abs(R),I=Math.abs(O);if(Math.max(P,I)<DF)return;var T=R,N=O;p.current=window.setInterval(function(){if(Math.abs(T)<Py&&Math.abs(N)<Py){window.clearInterval(p.current);return}T*=Iy,N*=Iy,t(T*bu,N*bu)},bu)}}var x=u.useRef();function E(R){var O=R.deltaX,P=R.deltaY,I=0,T=Math.abs(O),N=Math.abs(P);T===N?I=x.current==="x"?O:P:T>N?(I=O,x.current="x"):(I=P,x.current="y"),t(-I,-I)&&R.preventDefault()}var $=u.useRef(null);$.current={onTouchStart:S,onTouchMove:C,onTouchEnd:w,onWheel:E},u.useEffect(function(){function R(T){$.current.onTouchStart(T)}function O(T){$.current.onTouchMove(T)}function P(T){$.current.onTouchEnd(T)}function I(T){$.current.onWheel(T)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",P,{passive:!0}),e.current.addEventListener("touchstart",R,{passive:!0}),e.current.addEventListener("wheel",I,{passive:!1}),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",P)}},[])}function Zw(e){var t=u.useState(0),n=U(t,2),r=n[0],o=n[1],i=u.useRef(0),a=u.useRef();return a.current=e,_v(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function kF(e){var t=u.useRef([]),n=u.useState({}),r=U(n,2),o=r[1],i=u.useRef(typeof e=="function"?e():e),a=Zw(function(){var s=i.current;t.current.forEach(function(c){s=c(s)}),t.current=[],i.current=s,o({})});function l(s){t.current.push(s),a()}return[i.current,l]}var Ty={width:0,height:0,left:0,top:0,right:0};function HF(e,t,n,r,o,i,a){var l=a.tabs,s=a.tabPosition,c=a.rtl,d,f,v;return["top","bottom"].includes(s)?(d="width",f=c?"right":"left",v=Math.abs(n)):(d="height",f="top",v=-n),u.useMemo(function(){if(!l.length)return[0,0];for(var g=l.length,m=g,y=0;y<g;y+=1){var b=e.get(l[y].key)||Ty;if(Math.floor(b[f]+b[d])>Math.floor(v+t)){m=y-1;break}}for(var h=0,p=g-1;p>=0;p-=1){var S=e.get(l[p].key)||Ty;if(S[f]<v){h=p+1;break}}return h>m?[0,-1]:[h,m]},[e,t,r,o,
Line truncated
|
||||
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
||||
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:oe(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},dz=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${oe(e.borderRadius)} ${oe(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${oe(e.borderRadius)} ${oe(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${oe(e.borderRadius)} ${oe(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${oe(e.borderRadius)} 0 0 ${oe(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},fz=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Ju(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn:focus-visible`]:kp(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},vz=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:oe(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:oe(e.marginXS)},marginLeft:{_skip_check_:!0,value:oe(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-rLine truncated
|
||||
> ${n}-typography,
|
||||
> ${n}-typography-edit-content
|
||||
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},wz=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
||||
${oe(o)} 0 0 0 ${n},
|
||||
0 ${oe(o)} 0 0 ${n},
|
||||
${oe(o)} ${oe(o)} 0 0 ${n},
|
||||
${oe(o)} 0 0 0 ${n} inset,
|
||||
0 ${oe(o)} 0 0 ${n} inset;
|
||||
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},xz=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},Wc()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:oe(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:oe(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${i}`}}})},Ez=e=>Object.assign(Object.assign({margin:`${oe(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Wc()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},$a),"&-description":{color:e.colorTextDescription}}),$z=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${oe(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${oe(e.padding)} ${oe(o)}`}}},Rz=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Oz=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},Co(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:Cz(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},[`${t}-grid`]:wz(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:xz(e),[`${t}-meta`]:Ez(e)}),[`${t}-bordered`]:{border:`${oe(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:$z(e),[`${t}-loading`]:Rz(e),[`${t}-rtl`]:{direction:"rtl"}}},Pz=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${oe(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Iz=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},Tz=Ln("Card",e=>{const t=Yt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Oz(t),Pz(t)]},Iz);var Fy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _z=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return u.createElement("ul",{className:t,style:r},n.map((o,i)=>{const a=`action-${i}`;return u.createElement("li",{style:{width:`${100/n.length}%`},key:a},u.createElement("span",null,o))}))},Mz=u.forwardRef((e,t)=>{const
Line truncated
|
||||
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;
|
||||
`,SA=["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","white-space"],wf={},lr;function CA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&wf[n])return wf[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=SA.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(wf[n]=s),s}function wA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;lr||(lr=document.createElement("textarea"),lr.setAttribute("tab-index","-1"),lr.setAttribute("aria-hidden","true"),lr.setAttribute("name","hiddenTextarea"),document.body.appendChild(lr)),e.getAttribute("wrap")?lr.setAttribute("wrap",e.getAttribute("wrap")):lr.removeAttribute("wrap");var o=CA(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;lr.setAttribute("style","".concat(s,";").concat(bA)),lr.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,v=lr.scrollHeight;if(l==="border-box"?v+=a:l==="content-box"&&(v-=i),n!==null||r!==null){lr.value=" ";var g=lr.scrollHeight-i;n!==null&&(c=g*n,l==="border-box"&&(c=c+i+a),v=Math.max(c,v)),r!==null&&(d=g*r,l==="border-box"&&(d=d+i+a),f=v>d?"":"hidden",v=Math.min(d,v))}var m={height:v,overflowY:f,resize:"none"};return c&&(m.minHeight=c),d&&(m.maxHeight=d),m}var xA=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],xf=0,Ef=1,$f=2,EA=u.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var v=Je(n,xA),g=fr(o,{value:i,postState:function(W){return W??""}}),m=U(g,2),y=m[0],b=m[1],h=function(W){b(W.target.value),f==null||f(W)},p=u.useRef();u.useImperativeHandle(t,function(){return{textArea:p.current}});var S=u.useMemo(function(){return a&&Be(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),C=U(S,2),w=C[0],x=C[1],E=!!a,$=u.useState($f),R=U($,2),O=R[0],P=R[1],I=u.useState(),T=U(I,2),N=T[0],j=T[1],L=function(){P(xf)};Dt(function(){E&&L()},[i,w,x,E]),Dt(function(){if(O===xf)P(Ef);else if(O===Ef){var V=wA(p.current,!1,w,x);P($f),j(V)}},[O]);var A=u.useRef(),_=function(){Rt.cancel(A.current)},B=function(W){O===$f&&(l==null||l(W),a&&(_(),A.current=Rt(function(){L()})))};u.useEffect(function(){return _},[]);var z=E?N:null,H=F(F({},c),z);return(O===xf||O===Ef)&&(H.overflowY="hidden",H.overflowX="hidden"),u.createElement(Ar,{onResize:B,disabled:!(a||l)},u.createElement("textarea",we({},v,{ref:p,style:H,className:X(r,s,M({},"".concat(r,"-disabled"),d)),disabled:d,value:y,onChange:h})))}),$A=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],RA=ne.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,g=e.prefixCls,m=g===void 0?"rc-textarea":g,y=e.showCount,b=e.count,h=e.className,p=e.style,S=e.disabled,C=e.hidden,w=e.classNames,x=e.styles,E=e.onResize,$=e.onClear,R=e.onPressEnter,O=e.readOnly,P=e.autoSize,I=e.onKeyDown,T=Je(e,$A),N=fr(r,{value:o,defaultValue:r}),j=U(N,2),L=j[0],A=j[1],_=L==null?"":String(L),B=ne.useState(!1),z=U(B,2),H=z[0],V=z[1],W=ne.useRef(!1),D=ne.useState(null),k=U(D,2),K=k[0],Z=k[1],q=u.useRef(null),Y=u.useRef(null),de=function(){var he;return(he=Y.current)===null||he===void 0?void 0:he.textArea},ee=function(){de().focus()};u.useImperativeHandle(t,function(){var ke;return{resizableTextArea:Y.current,focus:ee,blur:function(){de().blur()},nativeElement:((ke=q.current)===null||ke===void 0?void 0:ke.nativeElement)||de()}}),u.useEffect(function(){V(function(ke){return!S&&ke})},[S]);var Q=ne.useState(null),ie=U(Q,2),J=ie[0],re=ie[1];ne.useEffect(function(){if(J){var ke;(ke=de()).setSelectionRange.apply(ke,Ce(J))}},[J]);var te=ax(b,y),ce=(n=te.max)!==null&&n!==void 0?n:c,ue=Number(ce)>0,pe=te.strategy(_),be=!!ce&&pe>ce,fe=function(he,Ie){var qe=Ie;!W.current&&te.exceedFormatter&&te.max&&te.strategy(Ie)>te.max&&(qe=te.exceedFormatter(Ie,{max:te.max
Line truncated
|
||||
&-allow-clear > ${t},
|
||||
&-affix-wrapper${r}-has-feedback ${t}
|
||||
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},PA=Ln(["Input","TextArea"],e=>{const t=Yt(e,ld(e));return OA(t)},sd,{resetFont:!1});var IA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const TA=u.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:s,classNames:c,rootClassName:d,className:f,style:v,styles:g,variant:m,showCount:y,onMouseDown:b,onResize:h}=e,p=IA(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:S,direction:C,allowClear:w,autoComplete:x,className:E,style:$,classNames:R,styles:O}=Yo("textArea"),P=u.useContext(Go),I=a??P,{status:T,hasFeedback:N,feedbackIcon:j}=u.useContext(ho),L=rd(T,l),A=u.useRef(null);u.useImperativeHandle(t,()=>{var te;return{resizableTextArea:(te=A.current)===null||te===void 0?void 0:te.resizableTextArea,focus:ce=>{var ue,pe;ox((pe=(ue=A.current)===null||ue===void 0?void 0:ue.resizableTextArea)===null||pe===void 0?void 0:pe.textArea,ce)},blur:()=>{var ce;return(ce=A.current)===null||ce===void 0?void 0:ce.blur()}}});const _=S("input",r),B=Fa(_),[z,H,V]=Yw(_,d),[W]=PA(_,B),{compactSize:D,compactItemClassnames:k}=za(_,C),K=wo(te=>{var ce;return(ce=i??D)!==null&&ce!==void 0?ce:te}),[Z,q]=od("textArea",m,o),Y=lx(s??w),[de,ee]=u.useState(!1),[Q,ie]=u.useState(!1),J=te=>{ee(!0),b==null||b(te);const ce=()=>{ee(!1),document.removeEventListener("mouseup",ce)};document.addEventListener("mouseup",ce)},re=te=>{var ce,ue;if(h==null||h(te),de&&typeof getComputedStyle=="function"){const pe=(ue=(ce=A.current)===null||ce===void 0?void 0:ce.nativeElement)===null||ue===void 0?void 0:ue.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&ie(!0)}};return z(W(u.createElement(RA,Object.assign({autoComplete:x},p,{style:Object.assign(Object.assign({},$),v),styles:Object.assign(Object.assign({},O),g),disabled:I,allowClear:Y,className:X(V,B,f,d,k,E,Q&&`${_}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),R),{textarea:X({[`${_}-sm`]:K==="small",[`${_}-lg`]:K==="large"},H,c==null?void 0:c.textarea,R.textarea,de&&`${_}-mouse-active`),variant:X({[`${_}-${Z}`]:q},lc(_,L)),affixWrapper:X(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:C==="rtl",[`${_}-affix-wrapper-sm`]:K==="small",[`${_}-affix-wrapper-lg`]:K==="large",[`${_}-textarea-show-count`]:y||((n=e.count)===null||n===void 0?void 0:n.show)},H)}),prefixCls:_,suffix:N&&u.createElement("span",{className:`${_}-textarea-suffix`},j),showCount:y,ref:A,onResize:re,onMouseDown:J}))))}),Oi=dd;Oi.Group=nA;Oi.Search=yA;Oi.TextArea=TA;Oi.Password=gA;Oi.OTP=uA;function _A(e,t,n){return typeof n=="boolean"?n:e.length?!0:eo(t).some(o=>o.type===Ww)}var cx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function fd({suffixCls:e,tagName:t,displayName:n}){return r=>u.forwardRef((i,a)=>u.createElement(r,Object.assign({ref:a,suffixCls:e,tagName:t},i)))}const fg=u.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=cx(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=u.useContext(ct),s=l("layout",n),[c,d,f]=Hw(s),v=r?`${s}-${r}`:s;return c(u.createElement(i,Object.assign({className:X(n||v,o,d,f),ref:t},a)))}),MA=u.forwardRef((e,t)=>{const{direction:n}=u.useContext(ct),[r,o]=u.useState([]),{prefixCls:i,className:a,rootClassName:l,children:s,hasSider:c,tagName:d,style:f}=e,v=cx(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=rr(v,["suffixCls"]),{getPrefixCls:m,className:y,style:b}=Yo("layout"
Line truncated
|
||||
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&X3[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Uy=Symbol("internals");function tl(e){return e&&String(e).trim().toLowerCase()}function Cu(e){return e===!1||e==null?e:G.isArray(e)?e.map(Cu):String(e)}function Y3(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const J3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rf(e,t,n,r,o){if(G.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!G.isString(t)){if(G.isString(r))return t.indexOf(r)!==-1;if(G.isRegExp(r))return r.test(t)}}function Z3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ej(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let tr=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,s,c){const d=tl(s);if(!d)throw new Error("header name must be a non-empty string");const f=G.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||s]=Cu(l))}const a=(l,s)=>G.forEach(l,(c,d)=>i(c,d,s));if(G.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(G.isString(t)&&(t=t.trim())&&!J3(t))a(Q3(t),n);else if(G.isObject(t)&&G.isIterable(t)){let l={},s,c;for(const d of t){if(!G.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[c=d[0]]=(s=l[c])?G.isArray(s)?[...s,d[1]]:[s,d[1]]:d[1]}a(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=tl(t),t){const r=G.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Y3(o);if(G.isFunction(n))return n.call(this,o,r);if(G.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=tl(t),t){const r=G.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Rf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=tl(a),a){const l=G.findKey(r,a);l&&(!n||Rf(r,r[l],l,n))&&(delete r[l],o=!0)}}return G.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Rf(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return G.forEach(this,(o,i)=>{const a=G.findKey(r,i);if(a){n[a]=Cu(o),delete n[i];return}const l=t?Z3(i):String(i).trim();l!==i&&delete n[i],n[l]=Cu(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return G.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&G.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Uy]=this[Uy]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=tl(a);r[l]||(ej(o,a),r[l]=!0)}return G.isArray(t)?t.forEach(i):i(t),this}};tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(tr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});G.freezeMethods(tr);function Of(e,t){const n=this||hs,r=t||n,o=tr.from(r.headers);let i=r.data;return G.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ox(e){return!!(e&&e.__CANCEL__)}function Ba(e,t,n){tt.call(this,e??"canceled",tt.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(Ba,tt,{__CANCEL__:!0});function Px(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new tt("Request failed with status code "+n.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function tj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function nj(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const c=Date.now(),d=r[i];a||(a=c),n[o]=s,r[o]=c;let f=i,v=0;for(;f!==o;)v+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a<t)return;const g=d&&c-d;return g?Math.round(v*1e3/g):void 0}}function rj(e,t){let n=0,r=1e3/t,o,i;const a=(c,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=r?a(c,d):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const cc=(e,t,n=3)=>{let r=0;const o=nj(50,250);return rj(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,s=a-r,c=o(s),d=a<=l;r=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:s,rate:c||void 0,estimated:c&&l&&d?(l-a)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},Ky=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Gy=e=>(...t)=>G.asap(()=>e(...t)),oj=Tn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Tn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Tn.origin),Tn.navigator&&/(msie|trident)/i.test(Tn.navigator.userAgent)):()=>!0,ij=Tn.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];G.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),G.isString(r)&&l.push(`path=${r}`),G.isString(o)&&l.push(`domain=${o}`),i===!0&&l.push("secure"),G.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function aj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lj(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ix(e,t,n){let r=!aj(t);return e&&(r||n==!1)?lj(e,t):t}const qy=e=>e instanceof tr?{...e}:e;function bi(e,t){t=t||{};const n={};function r(c,d,f,v){return G.isPlainObject(c)&&G.isPlainObject(d)?G.merge.call({caseless:v},c,d):G.isPlainObject(d)?G.merge({},d):G.isArray(d)?d.slice():d}function o(c,d,f,v){if(G.isUndefined(d)){if(!G.isUndefined(c))return r(void 0,c,f,v)}else return r(c,d,f,v)}function i(c,d){if(!G.isUndefined(d))return r(void 0,d)}function a(c,d){if(G.isUndefined(d)){if(!G.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function l(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(c,d,f)=>o(qy(c),qy(d),f,!0)};return G.forEach(Object.keys({...e,...t}),function(d){const f=s[d]||o,v=f(e[d],t[d],d);G.isUndefined(v)&&f!==l||(n[d]=v)}),n}const Tx=e=>{const t=bi({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;if(t.headers=a=tr.from(a),t.url=Ex(Ix(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),G.isFormData(n)){if(Tn.hasStandardBrowserEnv||Tn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(G.isFunction(n.getHeaders)){const s=n.getHeaders(),c=["content-type","content-length"];Object.entries(s).forEach(([d,f])=>{c.inclu
Line truncated
|
||||
`+a.map(eb).join(`
|
||||
`):" "+eb(a[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const Mx={getAdapter:yj,adapters:gg};function Pf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ba(null,e)}function tb(e){return Pf(e),e.headers=tr.from(e.headers),e.data=Of.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mx.getAdapter(e.adapter||hs.adapter,e)(e).then(function(r){return Pf(e),r.data=Of.call(e,e.transformResponse,r),r.headers=tr.from(r.headers),r},function(r){return Ox(r)||(Pf(e),r&&r.response&&(r.response.data=Of.call(e,e.transformResponse,r.response),r.response.headers=tr.from(r.response.headers))),Promise.reject(r)})}const Nx="1.13.2",yd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const nb={};yd.transitional=function(t,n,r){function o(i,a){return"[Axios v"+Nx+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new tt(o(a," has been removed"+(n?" in "+n:"")),tt.ERR_DEPRECATED);return n&&!nb[a]&&(nb[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};yd.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function bj(e,t,n){if(typeof e!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new tt("option "+i+" must be "+s,tt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tt("Unknown option "+i,tt.ERR_BAD_OPTION)}}const wu={assertOptions:bj,validators:yd},Kr=wu.validators;let vi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Wy,response:new Wy}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||||
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=bi(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&wu.assertOptions(r,{silentJSONParsing:Kr.transitional(Kr.boolean),forcedJSONParsing:Kr.transitional(Kr.boolean),clarifyTimeoutError:Kr.transitional(Kr.boolean)},!1),o!=null&&(G.isFunction(o)?n.paramsSerializer={serialize:o}:wu.assertOptions(o,{encode:Kr.function,serialize:Kr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),wu.assertOptions(n,{baseUrl:Kr.spelling("baseURL"),withXsrfToken:Kr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&G.merge(i.common,i[n.method]);i&&G.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=tr.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(s=s&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let d,f=0,v;if(!s){const m=[tb.bind(this),void 0];for(m.unshift(...l),m.push(...c),v=m.length,d=Promise.resolve(n);f<v;)d=d.then(m[f++],m[f++]);return d}v=l.length;let g=n;for(;f<v;){const m=l[f++],y=l[f++];try{g=m(g)}catch(b){y.call(this,b);break}}try{d=tb.call(this,g)}catch(m){return Promise.reject(m)}for(f=0,v=c.length;f<v;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=bi(this.defaults,t);const n=Ix(t.baseURL,t.url,t.allowAbsoluteUrls);return Ex(n,t.params,t.paramsSerializer)}};G.forEach(["delete","get","head","options"],function(t){vi.prototype[t]=function(n,r){return this.request(bi(r||{},{method:t,url:n,data:(r||{}).data}))}});G.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(bi(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}vi.prototype[t]=n(),vi.prototype[t+"Form"]=n(!0)});let Sj=class Lx{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new Ba(i,a,l),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Lx(function(o){t=o}),cancel:t}}};function Cj(e){return function(n){return e.apply(null,n)}}function wj(e){return G.isObject(e)&&e.isAxiosError===!0}const Tm={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Tm).forEach(([e,t])=>{Tm[t]=e});function Fx(e){const t=new vi(e),n=fx(vi.prototype.request,t);return G.extend(n,vi.prototype,t,{allOwnKeys:!0}),G.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Fx(bi(e,o))},n}const nn=Fx(hs);nn.Axios=vi;nn.CanceledError=Ba;nn.CancelToken=Sj;nn.isCancel=Ox;nn.VERSION=Nx;nn.toFormData=hd;nn.AxiosError=tt;nn.Cancel=nn.CanceledError;nn.all=function(t){return Promise.all(t)};nn.spread=Cj;nn.isAxiosError=wj;nn.mergeConfig=bi;nn.AxiosH
Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#141414}.log-output{height:calc(100vh - 180px);overflow-y:auto;background-color:#1e1e1e;font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;white-space:pre-wrap;word-wrap:break-word;padding:8px}.log-line{padding:2px 0;border-bottom:1px solid #333}.log-level-info{color:#4fc3f7;font-weight:700}.log-level-warn{color:#ffb74d;font-weight:700}.log-level-error{color:#f48fb1;font-weight:700}.json-key{color:#9cdcfe}.json-value{color:#ce9178}.log-ip{color:#9cdcfe}.log-time{color:#ce9178}.log-method{color:#569cd6;font-weight:700}.log-path{color:#dcdcaa}.log-status-200,.log-status-201{color:#4ec9b0}.log-status-404,.log-status-500{color:#f48fb1;font-weight:700}
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
<!doctype html>
|
||||
<html lang="pt-BR">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Web Tail Pro</title>
|
||||
<script type="module" crossorigin src="./assets/index-GvmfrMPc.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-I4JcZQqc.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>␍
|
||||
</body>
|
||||
</html>
|
||||
+16
-10
@@ -5,7 +5,7 @@ import { AppstoreOutlined, PlusOutlined } from '@ant-design/icons';
|
||||
import { useSSE, LogEntry } from './hooks/useSSE';
|
||||
import { LogPanel } from './components/LogPanel';
|
||||
import { MergedLogPanel } from './components/MergedLogPanel';
|
||||
import { fetchLogFiles } from './api';
|
||||
import { fetchLogFiles, fetchLastLines } from './api';
|
||||
|
||||
const { Header, Content } = Layout;
|
||||
|
||||
@@ -17,20 +17,20 @@ interface TabItem {
|
||||
}
|
||||
|
||||
const App: React.FC = () => {
|
||||
const { logs, isConnected } = useSSE('/logs');
|
||||
const { logs, isConnected, addInitialLogs } = useSSE('/logs');
|
||||
const [availableFiles, setAvailableFiles] = useState<string[]>([]);
|
||||
const [activeTabKey, setActiveTabKey] = useState('1');
|
||||
const [tabItems, setTabItems] = useState<TabItem[]>([]);
|
||||
|
||||
useEffect(() => {
|
||||
fetchLogFiles().then(res => {
|
||||
fetchLogFiles().then(async res => {
|
||||
const files = res.data;
|
||||
setAvailableFiles(files);
|
||||
const initialTabs = files.map((file, index) => ({
|
||||
key: String(index + 1),
|
||||
label: file,
|
||||
children: <LogPanel title={file} logs={logs} filename={file} />,
|
||||
closable: files.length > 1,
|
||||
closable: true,
|
||||
}));
|
||||
initialTabs.push({
|
||||
key: 'merged',
|
||||
@@ -39,7 +39,13 @@ const App: React.FC = () => {
|
||||
closable: false,
|
||||
});
|
||||
setTabItems(initialTabs);
|
||||
}).catch(err => message.error("Falha ao buscar lista de arquivos de log."));
|
||||
for (const file of files) {
|
||||
try {
|
||||
const resp = await fetchLastLines(file, 200);
|
||||
addInitialLogs(resp.data);
|
||||
} catch {}
|
||||
}
|
||||
}).catch(() => message.error("Falha ao buscar lista de arquivos de log."));
|
||||
}, []);
|
||||
|
||||
const addTab = () => {
|
||||
@@ -55,13 +61,13 @@ const App: React.FC = () => {
|
||||
setActiveTabKey(newKey);
|
||||
};
|
||||
|
||||
const onEdit: TabsProps['onEdit'] = (action, info) => {
|
||||
const onEdit: TabsProps['onEdit'] = (key, action) => {
|
||||
if (action === 'add') {
|
||||
addTab();
|
||||
} else {
|
||||
const key = String((info as any).key);
|
||||
const newTabs = tabItems.filter(item => item.key !== key);
|
||||
if (newTabs.length && activeTabKey === key) {
|
||||
} else if (action === 'remove') {
|
||||
const k = String(key);
|
||||
const newTabs = tabItems.filter(item => item.key !== k);
|
||||
if (newTabs.length && activeTabKey === k) {
|
||||
setActiveTabKey(newTabs[newTabs.length - 1].key);
|
||||
}
|
||||
setTabItems(newTabs);
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
import axios from 'axios';
|
||||
import type { LogEntry } from './hooks/useSSE';
|
||||
|
||||
export const apiClient = axios.create({});
|
||||
|
||||
export const fetchLogFiles = () => apiClient.get<string[]>('/api/files');
|
||||
export const fetchLogFiles = () => apiClient.get<string[]>('/api/files');
|
||||
export const fetchLastLines = (file: string, n = 200) => apiClient.get<LogEntry[]>(`/api/last`, { params: { file, n } });
|
||||
@@ -59,5 +59,9 @@ export const useSSE = (url: string) => {
|
||||
};
|
||||
}, [url]);
|
||||
|
||||
return { logs, isConnected };
|
||||
const addInitialLogs = (entries: LogEntry[]) => {
|
||||
setLogs(prev => [...entries, ...prev].slice(-MAX_LOG_ENTRIES));
|
||||
};
|
||||
|
||||
return { logs, isConnected, addInitialLogs };
|
||||
};
|
||||
Reference in new issue
Block a user