From 5f8932138fe1832c8752ad4762ecef5059ba6782 Mon Sep 17 00:00:00 2001 From: vsdudakov Date: Fri, 3 Jan 2025 13:59:49 +0300 Subject: [PATCH] Fix for is_pk --- fastadmin/static/index.min.js | 476 +++++++++++++++++----------------- frontend/yarn.lock | 359 +++++++++++++------------ poetry.lock | 72 ++--- 3 files changed, 469 insertions(+), 438 deletions(-) diff --git a/fastadmin/static/index.min.js b/fastadmin/static/index.min.js index ddfdd59..b4dac3e 100644 --- a/fastadmin/static/index.min.js +++ b/fastadmin/static/index.min.js @@ -1,4 +1,4 @@ -(function(dn){typeof define=="function"&&define.amd?define(dn):dn()})(function(){"use strict";var eMt=Object.defineProperty,tMt=Object.defineProperties;var nMt=Object.getOwnPropertyDescriptors;var pM=Object.getOwnPropertySymbols;var kxe=Object.prototype.hasOwnProperty,Txe=Object.prototype.propertyIsEnumerable;var Sy=(dn,Ft)=>(Ft=Symbol[dn])?Ft:Symbol.for("Symbol."+dn),JF=dn=>{throw TypeError(dn)},Xa=Math.pow,QF=(dn,Ft,rn)=>Ft in dn?eMt(dn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:rn}):dn[Ft]=rn,Ye=(dn,Ft)=>{for(var rn in Ft||(Ft={}))kxe.call(Ft,rn)&&QF(dn,rn,Ft[rn]);if(pM)for(var rn of pM(Ft))Txe.call(Ft,rn)&&QF(dn,rn,Ft[rn]);return dn},Rn=(dn,Ft)=>tMt(dn,nMt(Ft));var oc=(dn,Ft)=>{var rn={};for(var Tr in dn)kxe.call(dn,Tr)&&Ft.indexOf(Tr)<0&&(rn[Tr]=dn[Tr]);if(dn!=null&&pM)for(var Tr of pM(dn))Ft.indexOf(Tr)<0&&Txe.call(dn,Tr)&&(rn[Tr]=dn[Tr]);return rn};var Wu=(dn,Ft,rn)=>QF(dn,typeof Ft!="symbol"?Ft+"":Ft,rn),eB=(dn,Ft,rn)=>Ft.has(dn)||JF("Cannot "+rn);var Fe=(dn,Ft,rn)=>(eB(dn,Ft,"read from private field"),rn?rn.call(dn):Ft.get(dn)),An=(dn,Ft,rn)=>Ft.has(dn)?JF("Cannot add the same private member more than once"):Ft instanceof WeakSet?Ft.add(dn):Ft.set(dn,rn),sn=(dn,Ft,rn,Tr)=>(eB(dn,Ft,"write to private field"),Tr?Tr.call(dn,rn):Ft.set(dn,rn),rn),cr=(dn,Ft,rn)=>(eB(dn,Ft,"access private method"),rn);var vM=(dn,Ft,rn,Tr)=>({set _(Di){sn(dn,Ft,Di,rn)},get _(){return Fe(dn,Ft,Tr)}});var la=(dn,Ft,rn)=>new Promise((Tr,Di)=>{var Fi=ua=>{try{ca(rn.next(ua))}catch(Ls){Di(Ls)}},On=ua=>{try{ca(rn.throw(ua))}catch(Ls){Di(Ls)}},ca=ua=>ua.done?Tr(ua.value):Promise.resolve(ua.value).then(Fi,On);ca((rn=rn.apply(dn,Ft)).next())}),Uv=function(dn,Ft){this[0]=dn,this[1]=Ft},tB=(dn,Ft,rn)=>{var Tr=(On,ca,ua,Ls)=>{try{var bS=rn[On](ca),xS=(ca=bS.value)instanceof Uv,yM=bS.done;Promise.resolve(xS?ca[0]:ca).then(Gc=>xS?Tr(On==="return"?On:"next",ca[1]?{done:Gc.done,value:Gc.value}:Gc,ua,Ls):ua({value:Gc,done:yM})).catch(Gc=>Tr("throw",Gc,ua,Ls))}catch(Gc){Ls(Gc)}},Di=On=>Fi[On]=ca=>new Promise((ua,Ls)=>Tr(On,ca,ua,Ls)),Fi={};return rn=rn.apply(dn,Ft),Fi[Sy("asyncIterator")]=()=>Fi,Di("next"),Di("throw"),Di("return"),Fi},gM=dn=>{var Ft=dn[Sy("asyncIterator")],rn=!1,Tr,Di={};return Ft==null?(Ft=dn[Sy("iterator")](),Tr=Fi=>Di[Fi]=On=>Ft[Fi](On)):(Ft=Ft.call(dn),Tr=Fi=>Di[Fi]=On=>{if(rn){if(rn=!1,Fi==="throw")throw On;return On}return rn=!0,{done:!1,value:new Uv(new Promise(ca=>{var ua=Ft[Fi](On);ua instanceof Object||JF("Object expected"),ca(ua)}),1)}}),Di[Sy("iterator")]=()=>Di,Tr("next"),"throw"in Ft?Tr("throw"):Di.throw=Fi=>{throw Fi},"return"in Ft&&Tr("return"),Di},Rxe=(dn,Ft,rn)=>(Ft=dn[Sy("asyncIterator")])?Ft.call(dn):(dn=dn[Sy("iterator")](),Ft={},rn=(Tr,Di)=>(Di=dn[Tr])&&(Ft[Tr]=Fi=>new Promise((On,ca,ua)=>(Fi=Di.call(dn,Fi),ua=Fi.done,Promise.resolve(Fi.value).then(Ls=>On({value:Ls,done:ua}),ca)))),rn("next"),rn("return"),Ft);var Mv,Oh,K0,h1e,Y0,_h,X0,p1e,kv,v1e,Z0,Q0,Zl,Wo,Y2,Tv,zc,Qf,g1e,Lu,m1e,ju,ls,Rv,Du,Wh,y1e,rl,X2,b1e,aa,$h,Ph,J0,ey,Mh,ty,ny,x1e,ks,wr,Z2,cs,Iv,ry,kh,Fu,Q2,iy,ay,Av,Nv,Th,oy,qr,yS,nB,rB,iB,aB,oB,sB,lB,Ixe,S1e,Rh,Ih,Ts,zf,Hf,mM,cB,w1e,Lv,U9;function dn(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Ft=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tr={exports:{}},Di={},Fi={exports:{}},On={};/** +(function(hn){typeof define=="function"&&define.amd?define(hn):hn()})(function(){"use strict";var eMt=Object.defineProperty,tMt=Object.defineProperties;var nMt=Object.getOwnPropertyDescriptors;var dM=Object.getOwnPropertySymbols;var Pxe=Object.prototype.hasOwnProperty,Mxe=Object.prototype.propertyIsEnumerable;var Sy=(hn,Ft)=>(Ft=Symbol[hn])?Ft:Symbol.for("Symbol."+hn),XF=hn=>{throw TypeError(hn)},Xa=Math.pow,YF=(hn,Ft,rn)=>Ft in hn?eMt(hn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:rn}):hn[Ft]=rn,Ke=(hn,Ft)=>{for(var rn in Ft||(Ft={}))Pxe.call(Ft,rn)&&YF(hn,rn,Ft[rn]);if(dM)for(var rn of dM(Ft))Mxe.call(Ft,rn)&&YF(hn,rn,Ft[rn]);return hn},Rn=(hn,Ft)=>tMt(hn,nMt(Ft));var oc=(hn,Ft)=>{var rn={};for(var Rr in hn)Pxe.call(hn,Rr)&&Ft.indexOf(Rr)<0&&(rn[Rr]=hn[Rr]);if(hn!=null&&dM)for(var Rr of dM(hn))Ft.indexOf(Rr)<0&&Mxe.call(hn,Rr)&&(rn[Rr]=hn[Rr]);return rn};var Wu=(hn,Ft,rn)=>YF(hn,typeof Ft!="symbol"?Ft+"":Ft,rn),ZF=(hn,Ft,rn)=>Ft.has(hn)||XF("Cannot "+rn);var De=(hn,Ft,rn)=>(ZF(hn,Ft,"read from private field"),rn?rn.call(hn):Ft.get(hn)),Nn=(hn,Ft,rn)=>Ft.has(hn)?XF("Cannot add the same private member more than once"):Ft instanceof WeakSet?Ft.add(hn):Ft.set(hn,rn),ln=(hn,Ft,rn,Rr)=>(ZF(hn,Ft,"write to private field"),Rr?Rr.call(hn,rn):Ft.set(hn,rn),rn),ur=(hn,Ft,rn)=>(ZF(hn,Ft,"access private method"),rn);var hM=(hn,Ft,rn,Rr)=>({set _(Di){ln(hn,Ft,Di,rn)},get _(){return De(hn,Ft,Rr)}});var la=(hn,Ft,rn)=>new Promise((Rr,Di)=>{var Fi=ua=>{try{ca(rn.next(ua))}catch(Ls){Di(Ls)}},En=ua=>{try{ca(rn.throw(ua))}catch(Ls){Di(Ls)}},ca=ua=>ua.done?Rr(ua.value):Promise.resolve(ua.value).then(Fi,En);ca((rn=rn.apply(hn,Ft)).next())}),Kv=function(hn,Ft){this[0]=hn,this[1]=Ft},QF=(hn,Ft,rn)=>{var Rr=(En,ca,ua,Ls)=>{try{var bS=rn[En](ca),xS=(ca=bS.value)instanceof Kv,gM=bS.done;Promise.resolve(xS?ca[0]:ca).then(Gc=>xS?Rr(En==="return"?En:"next",ca[1]?{done:Gc.done,value:Gc.value}:Gc,ua,Ls):ua({value:Gc,done:gM})).catch(Gc=>Rr("throw",Gc,ua,Ls))}catch(Gc){Ls(Gc)}},Di=En=>Fi[En]=ca=>new Promise((ua,Ls)=>Rr(En,ca,ua,Ls)),Fi={};return rn=rn.apply(hn,Ft),Fi[Sy("asyncIterator")]=()=>Fi,Di("next"),Di("throw"),Di("return"),Fi},pM=hn=>{var Ft=hn[Sy("asyncIterator")],rn=!1,Rr,Di={};return Ft==null?(Ft=hn[Sy("iterator")](),Rr=Fi=>Di[Fi]=En=>Ft[Fi](En)):(Ft=Ft.call(hn),Rr=Fi=>Di[Fi]=En=>{if(rn){if(rn=!1,Fi==="throw")throw En;return En}return rn=!0,{done:!1,value:new Kv(new Promise(ca=>{var ua=Ft[Fi](En);ua instanceof Object||XF("Object expected"),ca(ua)}),1)}}),Di[Sy("iterator")]=()=>Di,Rr("next"),"throw"in Ft?Rr("throw"):Di.throw=Fi=>{throw Fi},"return"in Ft&&Rr("return"),Di},kxe=(hn,Ft,rn)=>(Ft=hn[Sy("asyncIterator")])?Ft.call(hn):(hn=hn[Sy("iterator")](),Ft={},rn=(Rr,Di)=>(Di=hn[Rr])&&(Ft[Rr]=Fi=>new Promise((En,ca,ua)=>(Fi=Di.call(hn,Fi),ua=Fi.done,Promise.resolve(Fi.value).then(Ls=>En({value:Ls,done:ua}),ca)))),rn("next"),rn("return"),Ft);var Tv,_h,K0,f1e,Y0,$h,X0,d1e,Rv,h1e,Z0,Q0,Zl,Wo,Y2,Iv,zc,Qf,p1e,Lu,v1e,ju,ls,Av,Du,Vh,g1e,rl,X2,m1e,aa,Ph,Mh,J0,ey,kh,ty,ny,y1e,ks,wr,Z2,cs,Nv,ry,Th,Fu,Q2,iy,ay,Lv,jv,Rh,oy,qr,yS,JF,eB,tB,nB,rB,iB,aB,Txe,b1e,Ih,Ah,Ts,zf,Hf,vM,oB,x1e,Dv,W9;function hn(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Ft=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rr={exports:{}},Di={},Fi={exports:{}},En={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ca=Symbol.for("react.element"),ua=Symbol.for("react.portal"),Ls=Symbol.for("react.fragment"),bS=Symbol.for("react.strict_mode"),xS=Symbol.for("react.profiler"),yM=Symbol.for("react.provider"),Gc=Symbol.for("react.context"),Gxe=Symbol.for("react.forward_ref"),Kxe=Symbol.for("react.suspense"),Yxe=Symbol.for("react.memo"),Xxe=Symbol.for("react.lazy"),uB=Symbol.iterator;function Zxe(e){return e===null||typeof e!="object"?null:(e=uB&&e[uB]||e["@@iterator"],typeof e=="function"?e:null)}var fB={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dB=Object.assign,hB={};function Gv(e,t,n){this.props=e,this.context=t,this.refs=hB,this.updater=n||fB}Gv.prototype.isReactComponent={},Gv.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")},Gv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pB(){}pB.prototype=Gv.prototype;function bM(e,t,n){this.props=e,this.context=t,this.refs=hB,this.updater=n||fB}var xM=bM.prototype=new pB;xM.constructor=bM,dB(xM,Gv.prototype),xM.isPureReactComponent=!0;var vB=Array.isArray,gB=Object.prototype.hasOwnProperty,SM={current:null},mB={key:!0,ref:!0,__self:!0,__source:!0};function yB(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)gB.call(t,r)&&!mB.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Vh=typeof window=="undefined"||"Deno"in globalThis;function ul(){}function l2e(e,t){return typeof e=="function"?e(t):e}function EM(e){return typeof e=="number"&&e>=0&&e!==1/0}function wB(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yv(e,t){return typeof e=="function"?e(t):e}function sc(e,t){return typeof e=="function"?e(t):e}function CB(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==OM(o,t.options))return!1}else if(!Cy(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function EB(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(qh(t.options.mutationKey)!==qh(a))return!1}else if(!Cy(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function OM(e,t){return((t==null?void 0:t.queryKeyHashFn)||qh)(e)}function qh(e){return JSON.stringify(e,(t,n)=>_M(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Cy(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Cy(e[n],t[n])):!1}function OB(e,t){if(e===t)return e;const n=_B(e)&&_B(t);if(n||_M(e)&&_M(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function $M(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?OB(e,t):t}function u2e(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function f2e(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var PM=Symbol();function PB(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===PM?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var d2e=(h1e=class extends Kv{constructor(){super();An(this,Mv);An(this,Oh);An(this,K0);sn(this,K0,t=>{if(!Vh&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Fe(this,Oh)||this.setEventListener(Fe(this,K0))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,Oh))==null||t.call(this),sn(this,Oh,void 0))}setEventListener(t){var n;sn(this,K0,t),(n=Fe(this,Oh))==null||n.call(this),sn(this,Oh,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Fe(this,Mv)!==t&&(sn(this,Mv,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Fe(this,Mv)=="boolean"?Fe(this,Mv):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Mv=new WeakMap,Oh=new WeakMap,K0=new WeakMap,h1e),MM=new d2e,h2e=(p1e=class extends Kv{constructor(){super();An(this,Y0,!0);An(this,_h);An(this,X0);sn(this,X0,t=>{if(!Vh&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Fe(this,_h)||this.setEventListener(Fe(this,X0))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,_h))==null||t.call(this),sn(this,_h,void 0))}setEventListener(t){var n;sn(this,X0,t),(n=Fe(this,_h))==null||n.call(this),sn(this,_h,t(this.setOnline.bind(this)))}setOnline(t){Fe(this,Y0)!==t&&(sn(this,Y0,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Fe(this,Y0)}},Y0=new WeakMap,_h=new WeakMap,X0=new WeakMap,p1e),OS=new h2e;function kM(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function p2e(e){return Math.min(1e3*Xa(2,e),3e4)}function MB(e){return(e!=null?e:"online")==="online"?OS.isOnline():!0}var kB=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function TM(e){return e instanceof kB}function TB(e){let t=!1,n=0,r=!1,i;const a=kM(),o=g=>{var v;r||(d(new kB(g)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>MM.isFocused()&&(e.networkMode==="always"||OS.isOnline())&&e.canRun(),u=()=>MB(e.networkMode)&&e.canRun(),f=g=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,g),i==null||i(),a.resolve(g))},d=g=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,g),i==null||i(),a.reject(g))},h=()=>new Promise(g=>{var v;i=m=>{(r||c())&&g(m)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),p=()=>{if(r)return;let g;const v=n===0?e.initialPromise:void 0;try{g=v!=null?v:e.fn()}catch(m){g=Promise.reject(m)}Promise.resolve(g).then(f).catch(m=>{var C,E,O;if(r)return;const y=(C=e.retry)!=null?C:Vh?0:3,x=(E=e.retryDelay)!=null?E:p2e,S=typeof x=="function"?x(n,m):x,w=y===!0||typeof y=="number"&&nc()?void 0:h()).then(()=>{t?d(m):p()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?p():h().then(p),a)}}function v2e(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const a=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Aa=v2e(),RB=(v1e=class{constructor(){An(this,kv)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),EM(this.gcTime)&&sn(this,kv,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:Vh?1/0:5*60*1e3)}clearGcTimeout(){Fe(this,kv)&&(clearTimeout(Fe(this,kv)),sn(this,kv,void 0))}},kv=new WeakMap,v1e),g2e=(g1e=class extends RB{constructor(t){var n;super();An(this,zc);An(this,Z0);An(this,Q0);An(this,Zl);An(this,Wo);An(this,Y2);An(this,Tv);sn(this,Tv,!1),sn(this,Y2,t.defaultOptions),this.setOptions(t.options),this.observers=[],sn(this,Zl,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,sn(this,Z0,m2e(this.options)),this.state=(n=t.state)!=null?n:Fe(this,Z0),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Fe(this,Wo))==null?void 0:t.promise}setOptions(t){this.options=Ye(Ye({},Fe(this,Y2)),t),this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Fe(this,Zl).remove(this)}setData(t,n){const r=$M(this.state.data,t,this.options);return cr(this,zc,Qf).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){cr(this,zc,Qf).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Fe(this,Wo))==null?void 0:r.promise;return(i=Fe(this,Wo))==null||i.cancel(t),n?n.then(ul).catch(ul):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Fe(this,Z0))}isActive(){return this.observers.some(t=>sc(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===PM||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!wB(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,Wo))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,Wo))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Fe(this,Zl).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Fe(this,Wo)&&(Fe(this,Tv)?Fe(this,Wo).cancel({revert:!0}):Fe(this,Wo).cancelRetry()),this.scheduleGc()),Fe(this,Zl).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||cr(this,zc,Qf).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Fe(this,Wo))return Fe(this,Wo).continueRetry(),Fe(this,Wo).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(sn(this,Tv,!0),r.signal)})},a=()=>{const f=PB(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return i(d),sn(this,Tv,!1),this.options.persister?this.options.persister(f,d,this):f(d)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),sn(this,Q0,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&cr(this,zc,Qf).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const s=f=>{var d,h,p,g;TM(f)&&f.silent||cr(this,zc,Qf).call(this,{type:"error",error:f}),TM(f)||((h=(d=Fe(this,Zl).config).onError)==null||h.call(d,f,this),(g=(p=Fe(this,Zl).config).onSettled)==null||g.call(p,this.state.data,f,this)),this.scheduleGc()};return sn(this,Wo,TB({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var d,h,p,g;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){s(v);return}(h=(d=Fe(this,Zl).config).onSuccess)==null||h.call(d,f,this),(g=(p=Fe(this,Zl).config).onSettled)==null||g.call(p,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,d)=>{cr(this,zc,Qf).call(this,{type:"failed",failureCount:f,error:d})},onPause:()=>{cr(this,zc,Qf).call(this,{type:"pause"})},onContinue:()=>{cr(this,zc,Qf).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),Fe(this,Wo).start()}},Z0=new WeakMap,Q0=new WeakMap,Zl=new WeakMap,Wo=new WeakMap,Y2=new WeakMap,Tv=new WeakMap,zc=new WeakSet,Qf=function(t){const n=r=>{var i,a;switch(t.type){case"failed":return Rn(Ye({},r),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return Rn(Ye({},r),{fetchStatus:"paused"});case"continue":return Rn(Ye({},r),{fetchStatus:"fetching"});case"fetch":return Rn(Ye(Ye({},r),IB(r.data,this.options)),{fetchMeta:(i=t.meta)!=null?i:null});case"success":return Ye(Rn(Ye({},r),{data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const o=t.error;return TM(o)&&o.revert&&Fe(this,Q0)?Rn(Ye({},Fe(this,Q0)),{fetchStatus:"idle"}):Rn(Ye({},r),{error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"});case"invalidate":return Rn(Ye({},r),{isInvalidated:!0});case"setState":return Ye(Ye({},r),t.state)}};this.state=n(this.state),Aa.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Fe(this,Zl).notify({query:this,type:"updated",action:t})})},g1e);function IB(e,t){return Ye({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:MB(t.networkMode)?"fetching":"paused"},e===void 0&&{error:null,status:"pending"})}function m2e(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var y2e=(m1e=class extends Kv{constructor(t={}){super();An(this,Lu);this.config=t,sn(this,Lu,new Map)}build(t,n,r){var s;const i=n.queryKey,a=(s=n.queryHash)!=null?s:OM(i,n);let o=this.get(a);return o||(o=new g2e({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){Fe(this,Lu).has(t.queryHash)||(Fe(this,Lu).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Fe(this,Lu).get(t.queryHash);n&&(t.destroy(),n===t&&Fe(this,Lu).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Aa.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Fe(this,Lu).get(t)}getAll(){return[...Fe(this,Lu).values()]}find(t){const n=Ye({exact:!0},t);return this.getAll().find(r=>CB(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>CB(t,r)):n}notify(t){Aa.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Aa.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Aa.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Lu=new WeakMap,m1e),b2e=(y1e=class extends RB{constructor(t){super();An(this,Du);An(this,ju);An(this,ls);An(this,Rv);this.mutationId=t.mutationId,sn(this,ls,t.mutationCache),sn(this,ju,[]),this.state=t.state||AB(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Fe(this,ju).includes(t)||(Fe(this,ju).push(t),this.clearGcTimeout(),Fe(this,ls).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){sn(this,ju,Fe(this,ju).filter(n=>n!==t)),this.scheduleGc(),Fe(this,ls).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Fe(this,ju).length||(this.state.status==="pending"?this.scheduleGc():Fe(this,ls).remove(this))}continue(){var t,n;return(n=(t=Fe(this,Rv))==null?void 0:t.continue())!=null?n:this.execute(this.state.variables)}execute(t){return la(this,null,function*(){var i,a,o,s,l,c,u,f,d,h,p,g,v,m,y,x,S,w,C,E,O;sn(this,Rv,TB({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:($,P)=>{cr(this,Du,Wh).call(this,{type:"failed",failureCount:$,error:P})},onPause:()=>{cr(this,Du,Wh).call(this,{type:"pause"})},onContinue:()=>{cr(this,Du,Wh).call(this,{type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Fe(this,ls).canRun(this)}));const n=this.state.status==="pending",r=!Fe(this,Rv).canStart();try{if(!n){cr(this,Du,Wh).call(this,{type:"pending",variables:t,isPaused:r}),yield(o=(a=Fe(this,ls).config).onMutate)==null?void 0:o.call(a,t,this);const P=yield(l=(s=this.options).onMutate)==null?void 0:l.call(s,t);P!==this.state.context&&cr(this,Du,Wh).call(this,{type:"pending",context:P,variables:t,isPaused:r})}const $=yield Fe(this,Rv).start();return yield(u=(c=Fe(this,ls).config).onSuccess)==null?void 0:u.call(c,$,t,this.state.context,this),yield(d=(f=this.options).onSuccess)==null?void 0:d.call(f,$,t,this.state.context),yield(p=(h=Fe(this,ls).config).onSettled)==null?void 0:p.call(h,$,null,this.state.variables,this.state.context,this),yield(v=(g=this.options).onSettled)==null?void 0:v.call(g,$,null,t,this.state.context),cr(this,Du,Wh).call(this,{type:"success",data:$}),$}catch($){try{throw yield(y=(m=Fe(this,ls).config).onError)==null?void 0:y.call(m,$,t,this.state.context,this),yield(S=(x=this.options).onError)==null?void 0:S.call(x,$,t,this.state.context),yield(C=(w=Fe(this,ls).config).onSettled)==null?void 0:C.call(w,void 0,$,this.state.variables,this.state.context,this),yield(O=(E=this.options).onSettled)==null?void 0:O.call(E,void 0,$,t,this.state.context),$}finally{cr(this,Du,Wh).call(this,{type:"error",error:$})}}finally{Fe(this,ls).runNext(this)}})}},ju=new WeakMap,ls=new WeakMap,Rv=new WeakMap,Du=new WeakSet,Wh=function(t){const n=r=>{switch(t.type){case"failed":return Rn(Ye({},r),{failureCount:t.failureCount,failureReason:t.error});case"pause":return Rn(Ye({},r),{isPaused:!0});case"continue":return Rn(Ye({},r),{isPaused:!1});case"pending":return Rn(Ye({},r),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()});case"success":return Rn(Ye({},r),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return Rn(Ye({},r),{data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"})}};this.state=n(this.state),Aa.batch(()=>{Fe(this,ju).forEach(r=>{r.onMutationUpdate(t)}),Fe(this,ls).notify({mutation:this,type:"updated",action:t})})},y1e);function AB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var x2e=(b1e=class extends Kv{constructor(t={}){super();An(this,rl);An(this,X2);this.config=t,sn(this,rl,new Map),sn(this,X2,Date.now())}build(t,n,r){const i=new b2e({mutationCache:this,mutationId:++vM(this,X2)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){var i;const n=_S(t),r=(i=Fe(this,rl).get(n))!=null?i:[];r.push(t),Fe(this,rl).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=_S(t);if(Fe(this,rl).has(n)){const i=(r=Fe(this,rl).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?Fe(this,rl).delete(n):Fe(this,rl).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Fe(this,rl).get(_S(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r,i;const n=(r=Fe(this,rl).get(_S(t)))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(i=n==null?void 0:n.continue())!=null?i:Promise.resolve()}clear(){Aa.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Fe(this,rl).values()].flat()}find(t){const n=Ye({exact:!0},t);return this.getAll().find(r=>EB(n,r))}findAll(t={}){return this.getAll().filter(n=>EB(t,n))}notify(t){Aa.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Aa.batch(()=>Promise.all(t.map(n=>n.continue().catch(ul))))}},rl=new WeakMap,X2=new WeakMap,b1e);function _S(e){var t,n;return(n=(t=e.options.scope)==null?void 0:t.id)!=null?n:String(e.mutationId)}function NB(e){return{onFetch:(t,n)=>{var u,f,d,h,p;const r=t.options,i=(d=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,a=((h=t.state.data)==null?void 0:h.pages)||[],o=((p=t.state.data)==null?void 0:p.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=()=>la(this,null,function*(){var x;let g=!1;const v=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},m=PB(t.options,t.fetchOptions),y=(S,w,C)=>la(this,null,function*(){if(g)return Promise.reject();if(w==null&&S.pages.length)return Promise.resolve(S);const E={queryKey:t.queryKey,pageParam:w,direction:C?"backward":"forward",meta:t.options.meta};v(E);const O=yield m(E),{maxPages:$}=t.options,P=C?f2e:u2e;return{pages:P(S.pages,O,$),pageParams:P(S.pageParams,w,$)}});if(i&&a.length){const S=i==="backward",w=S?S2e:LB,C={pages:a,pageParams:o},E=w(r,C);s=yield y(C,E,S)}else{const S=e!=null?e:a.length;do{const w=l===0?(x=o[0])!=null?x:r.initialPageParam:LB(r,s);if(l>0&&w==null)break;s=yield y(s,w),l++}while(l{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function LB(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function S2e(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var w2e=(x1e=class{constructor(e={}){An(this,aa);An(this,$h);An(this,Ph);An(this,J0);An(this,ey);An(this,Mh);An(this,ty);An(this,ny);sn(this,aa,e.queryCache||new y2e),sn(this,$h,e.mutationCache||new x2e),sn(this,Ph,e.defaultOptions||{}),sn(this,J0,new Map),sn(this,ey,new Map),sn(this,Mh,0)}mount(){vM(this,Mh)._++,Fe(this,Mh)===1&&(sn(this,ty,MM.subscribe(e=>la(this,null,function*(){e&&(yield this.resumePausedMutations(),Fe(this,aa).onFocus())}))),sn(this,ny,OS.subscribe(e=>la(this,null,function*(){e&&(yield this.resumePausedMutations(),Fe(this,aa).onOnline())}))))}unmount(){var e,t;vM(this,Mh)._--,Fe(this,Mh)===0&&((e=Fe(this,ty))==null||e.call(this),sn(this,ty,void 0),(t=Fe(this,ny))==null||t.call(this),sn(this,ny,void 0))}isFetching(e){return Fe(this,aa).findAll(Rn(Ye({},e),{fetchStatus:"fetching"})).length}isMutating(e){return Fe(this,$h).findAll(Rn(Ye({},e),{status:"pending"})).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Fe(this,aa).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Fe(this,aa).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Yv(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Fe(this,aa).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Fe(this,aa).get(r.queryHash),a=i==null?void 0:i.state.data,o=l2e(t,a);if(o!==void 0)return Fe(this,aa).build(this,r).setData(o,Rn(Ye({},n),{manual:!0}))}setQueriesData(e,t,n){return Aa.batch(()=>Fe(this,aa).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Fe(this,aa).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Fe(this,aa);Aa.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Fe(this,aa),r=Ye({type:"active"},e);return Aa.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n=Ye({revert:!0},t),r=Aa.batch(()=>Fe(this,aa).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(ul).catch(ul)}invalidateQueries(e,t={}){return Aa.batch(()=>{var r,i;if(Fe(this,aa).findAll(e).forEach(a=>{a.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n=Rn(Ye({},e),{type:(i=(r=e==null?void 0:e.refetchType)!=null?r:e==null?void 0:e.type)!=null?i:"active"});return this.refetchQueries(n,t)})}refetchQueries(e,t={}){var i;const n=Rn(Ye({},t),{cancelRefetch:(i=t.cancelRefetch)!=null?i:!0}),r=Aa.batch(()=>Fe(this,aa).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(ul)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(ul)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Fe(this,aa).build(this,t);return n.isStaleByTime(Yv(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ul).catch(ul)}fetchInfiniteQuery(e){return e.behavior=NB(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ul).catch(ul)}ensureInfiniteQueryData(e){return e.behavior=NB(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return OS.isOnline()?Fe(this,$h).resumePausedMutations():Promise.resolve()}getQueryCache(){return Fe(this,aa)}getMutationCache(){return Fe(this,$h)}getDefaultOptions(){return Fe(this,Ph)}setDefaultOptions(e){sn(this,Ph,e)}setQueryDefaults(e,t){Fe(this,J0).set(qh(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Fe(this,J0).values()],n={};return t.forEach(r=>{Cy(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){Fe(this,ey).set(qh(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Fe(this,ey).values()];let n={};return t.forEach(r=>{Cy(e,r.mutationKey)&&(n=Ye(Ye({},n),r.defaultOptions))}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t=Rn(Ye(Ye(Ye({},Fe(this,Ph).queries),this.getQueryDefaults(e.queryKey)),e),{_defaulted:!0});return t.queryHash||(t.queryHash=OM(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===PM&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:Rn(Ye(Ye(Ye({},Fe(this,Ph).mutations),(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{_defaulted:!0})}clear(){Fe(this,aa).clear(),Fe(this,$h).clear()}},aa=new WeakMap,$h=new WeakMap,Ph=new WeakMap,J0=new WeakMap,ey=new WeakMap,Mh=new WeakMap,ty=new WeakMap,ny=new WeakMap,x1e),C2e=(S1e=class extends Kv{constructor(t,n){super();An(this,qr);An(this,ks);An(this,wr);An(this,Z2);An(this,cs);An(this,Iv);An(this,ry);An(this,kh);An(this,Fu);An(this,Q2);An(this,iy);An(this,ay);An(this,Av);An(this,Nv);An(this,Th);An(this,oy,new Set);this.options=n,sn(this,ks,t),sn(this,Fu,null),sn(this,kh,kM()),this.options.experimental_prefetchInRender||Fe(this,kh).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Fe(this,wr).addObserver(this),jB(Fe(this,wr),this.options)?cr(this,qr,yS).call(this):this.updateResult(),cr(this,qr,aB).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return RM(Fe(this,wr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return RM(Fe(this,wr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,cr(this,qr,oB).call(this),cr(this,qr,sB).call(this),Fe(this,wr).removeObserver(this)}setOptions(t,n){const r=this.options,i=Fe(this,wr);if(this.options=Fe(this,ks).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sc(this.options.enabled,Fe(this,wr))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");cr(this,qr,lB).call(this),Fe(this,wr).setOptions(this.options),r._defaulted&&!ES(this.options,r)&&Fe(this,ks).getQueryCache().notify({type:"observerOptionsUpdated",query:Fe(this,wr),observer:this});const a=this.hasListeners();a&&DB(Fe(this,wr),i,this.options,r)&&cr(this,qr,yS).call(this),this.updateResult(n),a&&(Fe(this,wr)!==i||sc(this.options.enabled,Fe(this,wr))!==sc(r.enabled,Fe(this,wr))||Yv(this.options.staleTime,Fe(this,wr))!==Yv(r.staleTime,Fe(this,wr)))&&cr(this,qr,nB).call(this);const o=cr(this,qr,rB).call(this);a&&(Fe(this,wr)!==i||sc(this.options.enabled,Fe(this,wr))!==sc(r.enabled,Fe(this,wr))||o!==Fe(this,Th))&&cr(this,qr,iB).call(this,o)}getOptimisticResult(t){const n=Fe(this,ks).getQueryCache().build(Fe(this,ks),t),r=this.createResult(n,t);return O2e(this,r)&&(sn(this,cs,r),sn(this,ry,this.options),sn(this,Iv,Fe(this,wr).state)),r}getCurrentResult(){return Fe(this,cs)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){Fe(this,oy).add(t)}getCurrentQuery(){return Fe(this,wr)}refetch(n={}){var t=oc(n,[]);return this.fetch(Ye({},t))}fetchOptimistic(t){const n=Fe(this,ks).defaultQueryOptions(t),r=Fe(this,ks).getQueryCache().build(Fe(this,ks),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return cr(this,qr,yS).call(this,Rn(Ye({},t),{cancelRefetch:(n=t.cancelRefetch)!=null?n:!0})).then(()=>(this.updateResult(),Fe(this,cs)))}createResult(t,n){var O;const r=Fe(this,wr),i=this.options,a=Fe(this,cs),o=Fe(this,Iv),s=Fe(this,ry),c=t!==r?t.state:Fe(this,Z2),{state:u}=t;let f=Ye({},u),d=!1,h;if(n._optimisticResults){const $=this.hasListeners(),P=!$&&jB(t,n),M=$&&DB(t,r,n,i);(P||M)&&(f=Ye(Ye({},f),IB(u.data,t.options))),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:g,status:v}=f;if(n.select&&f.data!==void 0)if(a&&f.data===(o==null?void 0:o.data)&&n.select===Fe(this,Q2))h=Fe(this,iy);else try{sn(this,Q2,n.select),h=n.select(f.data),h=$M(a==null?void 0:a.data,h,n),sn(this,iy,h),sn(this,Fu,null)}catch($){sn(this,Fu,$)}else h=f.data;if(n.placeholderData!==void 0&&h===void 0&&v==="pending"){let $;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))$=a.data;else if($=typeof n.placeholderData=="function"?n.placeholderData((O=Fe(this,ay))==null?void 0:O.state.data,Fe(this,ay)):n.placeholderData,n.select&&$!==void 0)try{$=n.select($),sn(this,Fu,null)}catch(P){sn(this,Fu,P)}$!==void 0&&(v="success",h=$M(a==null?void 0:a.data,$,n),d=!0)}Fe(this,Fu)&&(p=Fe(this,Fu),h=Fe(this,iy),g=Date.now(),v="error");const m=f.fetchStatus==="fetching",y=v==="pending",x=v==="error",S=y&&m,w=h!==void 0,E={status:v,fetchStatus:f.fetchStatus,isPending:y,isSuccess:v==="success",isError:x,isInitialLoading:S,isLoading:S,data:h,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:x&&!w,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:x&&w,isStale:IM(t,n),refetch:this.refetch,promise:Fe(this,kh)};if(this.options.experimental_prefetchInRender){const $=k=>{E.status==="error"?k.reject(E.error):E.data!==void 0&&k.resolve(E.data)},P=()=>{const k=sn(this,kh,E.promise=kM());$(k)},M=Fe(this,kh);switch(M.status){case"pending":t.queryHash===r.queryHash&&$(M);break;case"fulfilled":(E.status==="error"||E.data!==M.value)&&P();break;case"rejected":(E.status!=="error"||E.error!==M.reason)&&P();break}}return E}updateResult(t){const n=Fe(this,cs),r=this.createResult(Fe(this,wr),this.options);if(sn(this,Iv,Fe(this,wr).state),sn(this,ry,this.options),Fe(this,Iv).data!==void 0&&sn(this,ay,Fe(this,wr)),ES(r,n))return;sn(this,cs,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!Fe(this,oy).size)return!0;const l=new Set(s!=null?s:Fe(this,oy));return this.options.throwOnError&&l.add("error"),Object.keys(Fe(this,cs)).some(c=>{const u=c;return Fe(this,cs)[u]!==n[u]&&l.has(u)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),cr(this,qr,Ixe).call(this,Ye(Ye({},i),t))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&cr(this,qr,aB).call(this)}},ks=new WeakMap,wr=new WeakMap,Z2=new WeakMap,cs=new WeakMap,Iv=new WeakMap,ry=new WeakMap,kh=new WeakMap,Fu=new WeakMap,Q2=new WeakMap,iy=new WeakMap,ay=new WeakMap,Av=new WeakMap,Nv=new WeakMap,Th=new WeakMap,oy=new WeakMap,qr=new WeakSet,yS=function(t){cr(this,qr,lB).call(this);let n=Fe(this,wr).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ul)),n},nB=function(){cr(this,qr,oB).call(this);const t=Yv(this.options.staleTime,Fe(this,wr));if(Vh||Fe(this,cs).isStale||!EM(t))return;const r=wB(Fe(this,cs).dataUpdatedAt,t)+1;sn(this,Av,setTimeout(()=>{Fe(this,cs).isStale||this.updateResult()},r))},rB=function(){var t;return(t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Fe(this,wr)):this.options.refetchInterval)!=null?t:!1},iB=function(t){cr(this,qr,sB).call(this),sn(this,Th,t),!(Vh||sc(this.options.enabled,Fe(this,wr))===!1||!EM(Fe(this,Th))||Fe(this,Th)===0)&&sn(this,Nv,setInterval(()=>{(this.options.refetchIntervalInBackground||MM.isFocused())&&cr(this,qr,yS).call(this)},Fe(this,Th)))},aB=function(){cr(this,qr,nB).call(this),cr(this,qr,iB).call(this,cr(this,qr,rB).call(this))},oB=function(){Fe(this,Av)&&(clearTimeout(Fe(this,Av)),sn(this,Av,void 0))},sB=function(){Fe(this,Nv)&&(clearInterval(Fe(this,Nv)),sn(this,Nv,void 0))},lB=function(){const t=Fe(this,ks).getQueryCache().build(Fe(this,ks),this.options);if(t===Fe(this,wr))return;const n=Fe(this,wr);sn(this,wr,t),sn(this,Z2,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Ixe=function(t){Aa.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Fe(this,cs))}),Fe(this,ks).getQueryCache().notify({query:Fe(this,wr),type:"observerResultsUpdated"})})},S1e);function E2e(e,t){return sc(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function jB(e,t){return E2e(e,t)||e.state.data!==void 0&&RM(e,t,t.refetchOnMount)}function RM(e,t,n){if(sc(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&IM(e,t)}return!1}function DB(e,t,n,r){return(e!==t||sc(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&IM(e,n)}function IM(e,t){return sc(t.enabled,e)!==!1&&e.isStaleByTime(Yv(t.staleTime,e))}function O2e(e,t){return!ES(e.getCurrentResult(),t)}var _2e=(w1e=class extends Kv{constructor(n,r){super();An(this,Hf);An(this,Rh);An(this,Ih);An(this,Ts);An(this,zf);sn(this,Rh,n),this.setOptions(r),this.bindMethods(),cr(this,Hf,mM).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=Fe(this,Rh).defaultMutationOptions(n),ES(this.options,r)||Fe(this,Rh).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Fe(this,Ts),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&qh(r.mutationKey)!==qh(this.options.mutationKey)?this.reset():((i=Fe(this,Ts))==null?void 0:i.state.status)==="pending"&&Fe(this,Ts).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Fe(this,Ts))==null||n.removeObserver(this)}onMutationUpdate(n){cr(this,Hf,mM).call(this),cr(this,Hf,cB).call(this,n)}getCurrentResult(){return Fe(this,Ih)}reset(){var n;(n=Fe(this,Ts))==null||n.removeObserver(this),sn(this,Ts,void 0),cr(this,Hf,mM).call(this),cr(this,Hf,cB).call(this)}mutate(n,r){var i;return sn(this,zf,r),(i=Fe(this,Ts))==null||i.removeObserver(this),sn(this,Ts,Fe(this,Rh).getMutationCache().build(Fe(this,Rh),this.options)),Fe(this,Ts).addObserver(this),Fe(this,Ts).execute(n)}},Rh=new WeakMap,Ih=new WeakMap,Ts=new WeakMap,zf=new WeakMap,Hf=new WeakSet,mM=function(){var r,i;const n=(i=(r=Fe(this,Ts))==null?void 0:r.state)!=null?i:AB();sn(this,Ih,Rn(Ye({},n),{isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}))},cB=function(n){Aa.batch(()=>{var r,i,a,o,s,l,c,u;if(Fe(this,zf)&&this.hasListeners()){const f=Fe(this,Ih).variables,d=Fe(this,Ih).context;(n==null?void 0:n.type)==="success"?((i=(r=Fe(this,zf)).onSuccess)==null||i.call(r,n.data,f,d),(o=(a=Fe(this,zf)).onSettled)==null||o.call(a,n.data,null,f,d)):(n==null?void 0:n.type)==="error"&&((l=(s=Fe(this,zf)).onError)==null||l.call(s,n.error,f,d),(u=(c=Fe(this,zf)).onSettled)==null||u.call(c,void 0,n.error,f,d))}this.listeners.forEach(f=>{f(Fe(this,Ih))})})},w1e),FB=b.createContext(void 0),$S=e=>{const t=b.useContext(FB);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},$2e=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ve.jsx(FB.Provider,{value:e,children:t})),BB=b.createContext(!1),P2e=()=>b.useContext(BB);BB.Provider;function M2e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var k2e=b.createContext(M2e()),T2e=()=>b.useContext(k2e);function zB(e,t){return typeof e=="function"?e(...t):!!e}function AM(){}var R2e=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},I2e=e=>{b.useEffect(()=>{e.clearReset()},[e])},A2e=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&zB(n,[e.error,r]),N2e=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},L2e=(e,t)=>e.isLoading&&e.isFetching&&!t,j2e=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,HB=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function D2e(e,t,n){var u,f,d,h,p;const r=$S(),i=P2e(),a=T2e(),o=r.defaultQueryOptions(e);(f=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||f.call(u,o),o._optimisticResults=i?"isRestoring":"optimistic",N2e(o),R2e(o,a),I2e(a);const s=!r.getQueryCache().get(o.queryHash),[l]=b.useState(()=>new t(r,o)),c=l.getOptimisticResult(o);if(b.useSyncExternalStore(b.useCallback(g=>{const v=i?AM:l.subscribe(Aa.batchCalls(g));return l.updateResult(),v},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),b.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),j2e(o,c))throw HB(o,l,a);if(A2e({result:c,errorResetBoundary:a,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw c.error;if((h=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_afterQuery)==null||h.call(d,o,c),o.experimental_prefetchInRender&&!Vh&&L2e(c,i)){const g=s?HB(o,l,a):(p=r.getQueryCache().get(o.queryHash))==null?void 0:p.promise;g==null||g.catch(AM).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?c:l.trackResult(c)}function Kc(e,t){return D2e(e,C2e)}function Oo(e,t){const n=$S(),[r]=b.useState(()=>new _2e(n,e));b.useEffect(()=>{r.setOptions(e)},[r,e]);const i=b.useSyncExternalStore(b.useCallback(o=>r.subscribe(Aa.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=b.useCallback((o,s)=>{r.mutate(o,s).catch(AM)},[r]);if(i.error&&zB(r.options.throwOnError,[i.error]))throw i.error;return Rn(Ye({},i),{mutate:a,mutateAsync:i.mutate})}var WB={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"};function Bt(e){"@babel/helpers - typeof";return Bt=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},Bt(e)}function F2e(e,t){if(Bt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VB(e){var t=F2e(e,"string");return Bt(t)=="symbol"?t:t+""}function Z(e,t,n){return(t=VB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ae(e){for(var t=1;ttypeof e=="string",Ey=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},GB=e=>e==null?"":""+e,H2e=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},W2e=/###/g,KB=e=>e&&e.indexOf("###")>-1?e.replace(W2e,"."):e,YB=e=>!e||qn(e),Oy=(e,t,n)=>{const r=qn(t)?t.split("."):t;let i=0;for(;i{const{obj:r,k:i}=Oy(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Oy(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Oy(e,o,Object),s&&s.obj&&typeof s.obj[`${s.k}.${a}`]!="undefined"&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},V2e=(e,t,n,r)=>{const{obj:i,k:a}=Oy(e,t,Object);i[a]=i[a]||[],i[a].push(n)},MS=(e,t)=>{const{obj:n,k:r}=Oy(e,t);if(n)return n[r]},q2e=(e,t,n)=>{const r=MS(e,n);return r!==void 0?r:MS(t,n)},ZB=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?qn(e[r])||e[r]instanceof String||qn(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ZB(e[r],t[r],n):e[r]=t[r]);return e},Xv=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var U2e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const G2e=e=>qn(e)?e.replace(/[&<>"'\/]/g,t=>U2e[t]):e;class K2e{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Y2e=[" ",",","?","!",";"],X2e=new K2e(20),Z2e=(e,t,n)=>{t=t||"",n=n||"";const r=Y2e.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=X2e.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(e);if(!a){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a},NM=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let a=0;a-1&&le&&e.replace("_","-"),Q2e={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class TS{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Q2e,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[s,l]=o;for(let c=0;c{let[s,l]=o;for(let c=0;c1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):qn(r)&&a?s.push(...r.split(a)):s.push(r)));const l=MS(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!o||!qn(r)?l:NM(this.data&&this.data[t]&&this.data[t][n],r,a)}addResource(t,n,r,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split("."),i=n,n=s[1]),this.addNamespaces(n),XB(this.data,s,i),a.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in r)(qn(r[a])||Array.isArray(r[a]))&&this.addResource(t,n,a,r[a],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let l=MS(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?ZB(l,r,a):l=Ye(Ye({},l),r),XB(this.data,s,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ye({},this.getResource(t,n)):this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var JB={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,r,i))}),t}};const ez={};class IS extends RS{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),H2e(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Yc.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Z2e(t,r,i);if(o&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:qn(a)?[a]:a};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(a=c.shift()),t=c.join(i)}return{key:t,namespaces:qn(a)?[a]:a}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n=Ye({},n)),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),l=s[s.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const S=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${S}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${S}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const f=this.resolve(t,n);let d=f&&f.res;const h=f&&f.usedKey||o,p=f&&f.exactUsedKey||o,g=Object.prototype.toString.apply(d),v=["[object Number]","[object Function]","[object RegExp]"],m=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,x=!qn(d)&&typeof d!="boolean"&&typeof d!="number";if(y&&d&&x&&v.indexOf(g)<0&&!(qn(m)&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,Rn(Ye({},n),{ns:s})):`key '${o} (${this.language})' returned an object instead of string.`;return i?(f.res=S,f.usedParams=this.getUsedParamsDetails(n),f):S}if(a){const S=Array.isArray(d),w=S?[]:{},C=S?p:h;for(const E in d)if(Object.prototype.hasOwnProperty.call(d,E)){const O=`${C}${a}${E}`;w[E]=this.translate(O,Rn(Ye({},n),{joinArrays:!1,ns:s})),w[E]===O&&(w[E]=d[E])}d=w}}else if(y&&qn(m)&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,t,n,r));else{let S=!1,w=!1;const C=n.count!==void 0&&!qn(n.count),E=IS.hasDefaultValue(n),O=C?this.pluralResolver.getSuffix(c,n.count,n):"",$=n.ordinal&&C?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",P=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),M=P&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${O}`]||n[`defaultValue${$}`]||n.defaultValue;!this.isValidLookup(d)&&E&&(S=!0,d=M),this.isValidLookup(d)||(w=!0,d=o);const T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:d,R=E&&M!==d&&this.options.updateMissing;if(w||S||R){if(this.logger.log(R?"updateKey":"missingKey",c,l,o,R?M:d),a){const j=this.resolve(o,Rn(Ye({},n),{keySeparator:!1}));j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let A=[];const N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&N&&N[0])for(let j=0;j{const D=E&&B!==d?B:T;this.options.missingKeyHandler?this.options.missingKeyHandler(j,l,F,D,R,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(j,l,F,D,R,n),this.emit("missingKey",j,l,F,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?A.forEach(j=>{const F=this.pluralResolver.getSuffixes(j,n);P&&n[`defaultValue${this.options.pluralSeparator}zero`]&&F.indexOf(`${this.options.pluralSeparator}zero`)<0&&F.push(`${this.options.pluralSeparator}zero`),F.forEach(B=>{L([j],o+B,n[`defaultValue${B}`]||M)})}):L(A,o,M))}d=this.extendTranslation(d,t,n,f,r),w&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${o}`),(w||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,S?d:void 0):d=this.options.parseMissingKeyHandler(d))}return i?(f.res=d,f.usedParams=this.getUsedParamsDetails(n),f):d}extendTranslation(t,n,r,i,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,Ye(Ye({},this.options.interpolation.defaultVariables),r),r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(Rn(Ye({},r),{interpolation:Ye(Ye({},this.options.interpolation),r.interpolation)}));const c=qn(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const d=t.match(this.interpolator.nestingRegexp);u=d&&d.length}let f=r.replace&&!qn(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(f=Ye(Ye({},this.options.interpolation.defaultVariables),f)),t=this.interpolator.interpolate(t,f,r.lng||this.language||i.usedLng,r),c){const d=t.match(this.interpolator.nestingRegexp),h=d&&d.length;u1&&arguments[1]!==void 0?arguments[1]:{},r,i,a,o,s;return qn(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;i=u;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=n.count!==void 0&&!qn(n.count),h=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(qn(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(v=>{this.isValidLookup(r)||(s=v,!ez[`${g[0]}-${v}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(ez[`${g[0]}-${v}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(m=>{if(this.isValidLookup(r))return;o=m;const y=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(y,u,m,v,n);else{let S;d&&(S=this.pluralResolver.getSuffix(m,n.count,n));const w=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(y.push(u+S),n.ordinal&&S.indexOf(C)===0&&y.push(u+S.replace(C,this.options.pluralSeparator)),h&&y.push(u+w)),p){const E=`${u}${this.options.contextSeparator}${n.context}`;y.push(E),d&&(y.push(E+S),n.ordinal&&S.indexOf(C)===0&&y.push(E+S.replace(C,this.options.pluralSeparator)),h&&y.push(E+w))}}let x;for(;x=y.pop();)this.isValidLookup(r)||(a=x,r=this.getResource(m,v,x,n))}))})}),{res:r,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!qn(t.replace);let i=r?t.replace:t;if(r&&typeof t.count!="undefined"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i=Ye(Ye({},this.options.interpolation.defaultVariables),i)),!r){i=Ye({},i);for(const a of n)delete i[a]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const LM=e=>e.charAt(0).toUpperCase()+e.slice(1);class tz{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Yc.create("languageUtils")}getScriptPartFromCode(t){if(t=kS(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=kS(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(qn(t)&&t.indexOf("-")>-1){if(typeof Intl!="undefined"&&typeof Intl.getCanonicalLocales!="undefined")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch(i){}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=LM(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=LM(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=LM(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),qn(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return qn(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):qn(t)&&a(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}let J2e=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],eSe={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const tSe=["v1","v2","v3"],nSe=["v4"],nz={zero:0,one:1,two:2,few:3,many:4,other:5},rSe=()=>{const e={};return J2e.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:eSe[t.fc]}})}),e};class iSe{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Yc.create("pluralResolver"),(!this.options.compatibilityJSON||nSe.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=rSe(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=kS(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(r,{type:i})}catch(s){if(!t.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,n)}return this.pluralRulesCache[a]=o,o}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,a)=>nz[i]-nz[a]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const a=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!tSe.includes(this.options.compatibilityJSON)}}const rz=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=q2e(e,t,n);return!a&&i&&qn(n)&&(a=NM(e,n,r),a===void 0&&(a=NM(t,n,r))),a},jM=e=>e.replace(/\$/g,"$$$$");class aSe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yc.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:v,maxReplaces:m,alwaysFormat:y}=t.interpolation;this.escape=n!==void 0?n:G2e,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?Xv(a):o||"{{",this.suffix=s?Xv(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?Xv(d):h||Xv("$t("),this.nestingSuffix=p?Xv(p):g||Xv(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=m||1e3,this.alwaysFormat=y!==void 0?y:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let a,o,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=h=>{if(h.indexOf(this.formatSeparator)<0){const m=rz(n,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,Rn(Ye(Ye({},i),n),{interpolationkey:h})):m}const p=h.split(this.formatSeparator),g=p.shift().trim(),v=p.join(this.formatSeparator).trim();return this.format(rz(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),v,r,Rn(Ye(Ye({},i),n),{interpolationkey:g}))};this.resetRegExp();const u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>jM(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?jM(this.escape(h)):jM(h)}].forEach(h=>{for(s=0;a=h.regex.exec(t);){const p=a[1].trim();if(o=c(p),o===void 0)if(typeof u=="function"){const v=u(t,a,i);o=qn(v)?v:""}else if(i&&Object.prototype.hasOwnProperty.call(i,p))o="";else if(f){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${t}`),o="";else!qn(o)&&!this.useRawValueToEscape&&(o=GB(o));const g=h.safeValue(o);if(t=t.replace(a[0],g),f?(h.regex.lastIndex+=o.length,h.regex.lastIndex-=a[0].length):h.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const f=l.split(new RegExp(`${u}[ ]*{`));let d=`{${f[1]}`;l=f[0],d=this.interpolate(d,o);const h=d.match(/'/g),p=d.match(/"/g);(h&&h.length%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),c&&(o=Ye(Ye({},c),o))}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${u}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];o=Ye({},r),o=o.replace&&!qn(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const u=i[1].split(this.formatSeparator).map(f=>f.trim());i[1]=u.shift(),l=u,c=!0}if(a=n(s.call(this,i[1].trim(),o),o),a&&i[0]===t&&!qn(a))return a;qn(a)||(a=GB(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),a=""),c&&(a=l.reduce((u,f)=>this.format(u,f,r.lng,Rn(Ye({},r),{interpolationkey:i[1].trim()})),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}}const oSe=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[s,...l]=o.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},Zv=e=>{const t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a=Rn(Ye({},a),{[i.interpolationkey]:void 0}));const o=r+JSON.stringify(a);let s=t[o];return s||(s=e(kS(r),i),t[o]=s),s(n)}};class sSe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yc.create("formatter"),this.options=t,this.formats={number:Zv((n,r)=>{const i=new Intl.NumberFormat(n,Ye({},r));return a=>i.format(a)}),currency:Zv((n,r)=>{const i=new Intl.NumberFormat(n,Rn(Ye({},r),{style:"currency"}));return a=>i.format(a)}),datetime:Zv((n,r)=>{const i=new Intl.DateTimeFormat(n,Ye({},r));return a=>i.format(a)}),relativetime:Zv((n,r)=>{const i=new Intl.RelativeTimeFormat(n,Ye({},r));return a=>i.format(a,r.range||"day")}),list:Zv((n,r)=>{const i=new Intl.ListFormat(n,Ye({},r));return a=>i.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Zv(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(s=>s.indexOf(")")>-1)){const s=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,s)].join(this.formatSeparator)}return a.reduce((s,l)=>{const{formatName:c,formatOptions:u}=oSe(l);if(this.formats[c]){let f=s;try{const d=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},h=d.locale||d.lng||i.locale||i.lng||r;f=this.formats[c](s,h,Ye(Ye(Ye({},u),i),d))}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}const lSe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};let cSe=class extends RS{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Yc.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const a={},o={},s={},l={};return t.forEach(c=>{let u=!0;n.forEach(f=>{const d=`${c}|${f}`;!r.reload&&this.store.hasResourceBundle(c,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,u=!1,o[d]===void 0&&(o[d]=!0),a[d]===void 0&&(a[d]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(s[c]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),a=i[0],o=i[1];n&&this.emit("failedLoading",a,o,n),!n&&r&&this.store.addResourceBundle(a,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{V2e(l.loaded,[a],o),lSe(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(f=>{s[c][f]===void 0&&(s[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:a,callback:o});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&u&&i{this.read.call(this,t,n,r,i+1,a*2,o)},a);return}o(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();qn(t)&&(t=this.languageUtils.toResolveHierarchy(t)),qn(n)&&(n=[n]);const a=this.queueLoad(t,n,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,o),!o&&s&&this.logger.log(`${n}loaded namespace ${a} for language ${i}`,s),this.loaded(t,o,s)})}saveMissing(t,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l=Rn(Ye({},o),{isUpdate:a}),c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,n,r,i,l):u=c(t,n,r,i),u&&typeof u.then=="function"?u.then(f=>s(null,f)).catch(s):s(null,u)}catch(u){s(u)}else c(t,n,r,i,s,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}};const iz=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),qn(e[1])&&(t.defaultValue=e[1]),qn(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),az=e=>(qn(e.ns)&&(e.ns=[e.ns]),qn(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),qn(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),AS=()=>{},uSe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class _y extends RS{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=az(t),this.services={},this.logger=Yc,this.modules={external:[]},uSe(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(qn(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=iz();this.options=Ye(Ye(Ye({},i),this.options),az(n)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ye(Ye({},i.interpolation),this.options.interpolation)),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const a=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Yc.init(a(this.modules.logger),this.options):Yc.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl!="undefined"&&(u=sSe);const f=new tz(this.options);this.store=new QB(this.options.resources,this.options);const d=this.services;d.logger=Yc,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new iSe(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=a(u),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new aSe(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new cSe(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v1?p-1:0),v=1;v{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=AS),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=Ey(),c=()=>{const u=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(d),r(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:AS;const i=qn(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],o=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&a.indexOf(c)<0&&a.push(c)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(s=>o(s)),this.services.backendConnector.load(a,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const i=Ey();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=AS),this.services.backendConnector.reload(t,n,a=>{i.resolve(),r(a)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&JB.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=Ey();this.emit("languageChanging",t);const a=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,c)=>{c?(a(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=qn(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||a(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{o(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,r){var i=this;const a=function(o,s){let l;if(typeof s!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),f=2;f`${l.keyPrefix}${d}${p}`):h=l.keyPrefix?`${l.keyPrefix}${d}${o}`:o,i.t(h,l)};return qn(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(a,t)))}loadNamespaces(t,n){const r=Ey();return this.options.ns?(qn(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Ey();qn(t)&&(t=[t]);const i=this.options.preload||[],a=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=i.concat(a),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new tz(iz());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new _y(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:AS;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i=Rn(Ye(Ye({},this.options),t),{isClone:!0}),a=new _y(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(s=>{a[s]=this[s]}),a.services=Ye({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new QB(this.store.data,i),a.services.resourceStore=a.store),a.translator=new IS(a.services,i),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},qh=typeof window=="undefined"||"Deno"in globalThis;function ul(){}function o2e(e,t){return typeof e=="function"?e(t):e}function wM(e){return typeof e=="number"&&e>=0&&e!==1/0}function bB(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zv(e,t){return typeof e=="function"?e(t):e}function sc(e,t){return typeof e=="function"?e(t):e}function xB(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==CM(o,t.options))return!1}else if(!Cy(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function SB(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Uh(t.options.mutationKey)!==Uh(a))return!1}else if(!Cy(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function CM(e,t){return((t==null?void 0:t.queryKeyHashFn)||Uh)(e)}function Uh(e){return JSON.stringify(e,(t,n)=>EM(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Cy(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Cy(e[n],t[n])):!1}function wB(e,t){if(e===t)return e;const n=CB(e)&&CB(t);if(n||EM(e)&&EM(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function OM(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?wB(e,t):t}function l2e(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function c2e(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var _M=Symbol();function OB(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===_M?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var u2e=(f1e=class extends Xv{constructor(){super();Nn(this,Tv);Nn(this,_h);Nn(this,K0);ln(this,K0,t=>{if(!qh&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){De(this,_h)||this.setEventListener(De(this,K0))}onUnsubscribe(){var t;this.hasListeners()||((t=De(this,_h))==null||t.call(this),ln(this,_h,void 0))}setEventListener(t){var n;ln(this,K0,t),(n=De(this,_h))==null||n.call(this),ln(this,_h,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){De(this,Tv)!==t&&(ln(this,Tv,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof De(this,Tv)=="boolean"?De(this,Tv):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tv=new WeakMap,_h=new WeakMap,K0=new WeakMap,f1e),$M=new u2e,f2e=(d1e=class extends Xv{constructor(){super();Nn(this,Y0,!0);Nn(this,$h);Nn(this,X0);ln(this,X0,t=>{if(!qh&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){De(this,$h)||this.setEventListener(De(this,X0))}onUnsubscribe(){var t;this.hasListeners()||((t=De(this,$h))==null||t.call(this),ln(this,$h,void 0))}setEventListener(t){var n;ln(this,X0,t),(n=De(this,$h))==null||n.call(this),ln(this,$h,t(this.setOnline.bind(this)))}setOnline(t){De(this,Y0)!==t&&(ln(this,Y0,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return De(this,Y0)}},Y0=new WeakMap,$h=new WeakMap,X0=new WeakMap,d1e),OS=new f2e;function PM(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function d2e(e){return Math.min(1e3*Xa(2,e),3e4)}function _B(e){return(e!=null?e:"online")==="online"?OS.isOnline():!0}var $B=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function MM(e){return e instanceof $B}function PB(e){let t=!1,n=0,r=!1,i;const a=PM(),o=v=>{var g;r||(d(new $B(v)),(g=e.abort)==null||g.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>$M.isFocused()&&(e.networkMode==="always"||OS.isOnline())&&e.canRun(),u=()=>_B(e.networkMode)&&e.canRun(),f=v=>{var g;r||(r=!0,(g=e.onSuccess)==null||g.call(e,v),i==null||i(),a.resolve(v))},d=v=>{var g;r||(r=!0,(g=e.onError)==null||g.call(e,v),i==null||i(),a.reject(v))},h=()=>new Promise(v=>{var g;i=m=>{(r||c())&&v(m)},(g=e.onPause)==null||g.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),p=()=>{if(r)return;let v;const g=n===0?e.initialPromise:void 0;try{v=g!=null?g:e.fn()}catch(m){v=Promise.reject(m)}Promise.resolve(v).then(f).catch(m=>{var C,E,O;if(r)return;const y=(C=e.retry)!=null?C:qh?0:3,x=(E=e.retryDelay)!=null?E:d2e,S=typeof x=="function"?x(n,m):x,w=y===!0||typeof y=="number"&&nc()?void 0:h()).then(()=>{t?d(m):p()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?p():h().then(p),a)}}function h2e(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const a=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Aa=h2e(),MB=(h1e=class{constructor(){Nn(this,Rv)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wM(this.gcTime)&&ln(this,Rv,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:qh?1/0:5*60*1e3)}clearGcTimeout(){De(this,Rv)&&(clearTimeout(De(this,Rv)),ln(this,Rv,void 0))}},Rv=new WeakMap,h1e),p2e=(p1e=class extends MB{constructor(t){var n;super();Nn(this,zc);Nn(this,Z0);Nn(this,Q0);Nn(this,Zl);Nn(this,Wo);Nn(this,Y2);Nn(this,Iv);ln(this,Iv,!1),ln(this,Y2,t.defaultOptions),this.setOptions(t.options),this.observers=[],ln(this,Zl,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ln(this,Z0,v2e(this.options)),this.state=(n=t.state)!=null?n:De(this,Z0),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=De(this,Wo))==null?void 0:t.promise}setOptions(t){this.options=Ke(Ke({},De(this,Y2)),t),this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&De(this,Zl).remove(this)}setData(t,n){const r=OM(this.state.data,t,this.options);return ur(this,zc,Qf).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ur(this,zc,Qf).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=De(this,Wo))==null?void 0:r.promise;return(i=De(this,Wo))==null||i.cancel(t),n?n.then(ul).catch(ul):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(De(this,Z0))}isActive(){return this.observers.some(t=>sc(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_M||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!bB(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=De(this,Wo))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=De(this,Wo))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),De(this,Zl).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(De(this,Wo)&&(De(this,Iv)?De(this,Wo).cancel({revert:!0}):De(this,Wo).cancelRetry()),this.scheduleGc()),De(this,Zl).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ur(this,zc,Qf).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(De(this,Wo))return De(this,Wo).continueRetry(),De(this,Wo).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ln(this,Iv,!0),r.signal)})},a=()=>{const f=OB(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return i(d),ln(this,Iv,!1),this.options.persister?this.options.persister(f,d,this):f(d)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),ln(this,Q0,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&ur(this,zc,Qf).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const s=f=>{var d,h,p,v;MM(f)&&f.silent||ur(this,zc,Qf).call(this,{type:"error",error:f}),MM(f)||((h=(d=De(this,Zl).config).onError)==null||h.call(d,f,this),(v=(p=De(this,Zl).config).onSettled)==null||v.call(p,this.state.data,f,this)),this.scheduleGc()};return ln(this,Wo,PB({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var d,h,p,v;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(g){s(g);return}(h=(d=De(this,Zl).config).onSuccess)==null||h.call(d,f,this),(v=(p=De(this,Zl).config).onSettled)==null||v.call(p,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,d)=>{ur(this,zc,Qf).call(this,{type:"failed",failureCount:f,error:d})},onPause:()=>{ur(this,zc,Qf).call(this,{type:"pause"})},onContinue:()=>{ur(this,zc,Qf).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),De(this,Wo).start()}},Z0=new WeakMap,Q0=new WeakMap,Zl=new WeakMap,Wo=new WeakMap,Y2=new WeakMap,Iv=new WeakMap,zc=new WeakSet,Qf=function(t){const n=r=>{var i,a;switch(t.type){case"failed":return Rn(Ke({},r),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return Rn(Ke({},r),{fetchStatus:"paused"});case"continue":return Rn(Ke({},r),{fetchStatus:"fetching"});case"fetch":return Rn(Ke(Ke({},r),kB(r.data,this.options)),{fetchMeta:(i=t.meta)!=null?i:null});case"success":return Ke(Rn(Ke({},r),{data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const o=t.error;return MM(o)&&o.revert&&De(this,Q0)?Rn(Ke({},De(this,Q0)),{fetchStatus:"idle"}):Rn(Ke({},r),{error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"});case"invalidate":return Rn(Ke({},r),{isInvalidated:!0});case"setState":return Ke(Ke({},r),t.state)}};this.state=n(this.state),Aa.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),De(this,Zl).notify({query:this,type:"updated",action:t})})},p1e);function kB(e,t){return Ke({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_B(t.networkMode)?"fetching":"paused"},e===void 0&&{error:null,status:"pending"})}function v2e(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var g2e=(v1e=class extends Xv{constructor(t={}){super();Nn(this,Lu);this.config=t,ln(this,Lu,new Map)}build(t,n,r){var s;const i=n.queryKey,a=(s=n.queryHash)!=null?s:CM(i,n);let o=this.get(a);return o||(o=new p2e({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){De(this,Lu).has(t.queryHash)||(De(this,Lu).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=De(this,Lu).get(t.queryHash);n&&(t.destroy(),n===t&&De(this,Lu).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Aa.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return De(this,Lu).get(t)}getAll(){return[...De(this,Lu).values()]}find(t){const n=Ke({exact:!0},t);return this.getAll().find(r=>xB(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>xB(t,r)):n}notify(t){Aa.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Aa.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Aa.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Lu=new WeakMap,v1e),m2e=(g1e=class extends MB{constructor(t){super();Nn(this,Du);Nn(this,ju);Nn(this,ls);Nn(this,Av);this.mutationId=t.mutationId,ln(this,ls,t.mutationCache),ln(this,ju,[]),this.state=t.state||TB(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){De(this,ju).includes(t)||(De(this,ju).push(t),this.clearGcTimeout(),De(this,ls).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ln(this,ju,De(this,ju).filter(n=>n!==t)),this.scheduleGc(),De(this,ls).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){De(this,ju).length||(this.state.status==="pending"?this.scheduleGc():De(this,ls).remove(this))}continue(){var t,n;return(n=(t=De(this,Av))==null?void 0:t.continue())!=null?n:this.execute(this.state.variables)}execute(t){return la(this,null,function*(){var i,a,o,s,l,c,u,f,d,h,p,v,g,m,y,x,S,w,C,E,O;ln(this,Av,PB({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:($,P)=>{ur(this,Du,Vh).call(this,{type:"failed",failureCount:$,error:P})},onPause:()=>{ur(this,Du,Vh).call(this,{type:"pause"})},onContinue:()=>{ur(this,Du,Vh).call(this,{type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>De(this,ls).canRun(this)}));const n=this.state.status==="pending",r=!De(this,Av).canStart();try{if(!n){ur(this,Du,Vh).call(this,{type:"pending",variables:t,isPaused:r}),yield(o=(a=De(this,ls).config).onMutate)==null?void 0:o.call(a,t,this);const P=yield(l=(s=this.options).onMutate)==null?void 0:l.call(s,t);P!==this.state.context&&ur(this,Du,Vh).call(this,{type:"pending",context:P,variables:t,isPaused:r})}const $=yield De(this,Av).start();return yield(u=(c=De(this,ls).config).onSuccess)==null?void 0:u.call(c,$,t,this.state.context,this),yield(d=(f=this.options).onSuccess)==null?void 0:d.call(f,$,t,this.state.context),yield(p=(h=De(this,ls).config).onSettled)==null?void 0:p.call(h,$,null,this.state.variables,this.state.context,this),yield(g=(v=this.options).onSettled)==null?void 0:g.call(v,$,null,t,this.state.context),ur(this,Du,Vh).call(this,{type:"success",data:$}),$}catch($){try{throw yield(y=(m=De(this,ls).config).onError)==null?void 0:y.call(m,$,t,this.state.context,this),yield(S=(x=this.options).onError)==null?void 0:S.call(x,$,t,this.state.context),yield(C=(w=De(this,ls).config).onSettled)==null?void 0:C.call(w,void 0,$,this.state.variables,this.state.context,this),yield(O=(E=this.options).onSettled)==null?void 0:O.call(E,void 0,$,t,this.state.context),$}finally{ur(this,Du,Vh).call(this,{type:"error",error:$})}}finally{De(this,ls).runNext(this)}})}},ju=new WeakMap,ls=new WeakMap,Av=new WeakMap,Du=new WeakSet,Vh=function(t){const n=r=>{switch(t.type){case"failed":return Rn(Ke({},r),{failureCount:t.failureCount,failureReason:t.error});case"pause":return Rn(Ke({},r),{isPaused:!0});case"continue":return Rn(Ke({},r),{isPaused:!1});case"pending":return Rn(Ke({},r),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()});case"success":return Rn(Ke({},r),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return Rn(Ke({},r),{data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"})}};this.state=n(this.state),Aa.batch(()=>{De(this,ju).forEach(r=>{r.onMutationUpdate(t)}),De(this,ls).notify({mutation:this,type:"updated",action:t})})},g1e);function TB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var y2e=(m1e=class extends Xv{constructor(t={}){super();Nn(this,rl);Nn(this,X2);this.config=t,ln(this,rl,new Map),ln(this,X2,Date.now())}build(t,n,r){const i=new m2e({mutationCache:this,mutationId:++hM(this,X2)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){var i;const n=_S(t),r=(i=De(this,rl).get(n))!=null?i:[];r.push(t),De(this,rl).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=_S(t);if(De(this,rl).has(n)){const i=(r=De(this,rl).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?De(this,rl).delete(n):De(this,rl).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=De(this,rl).get(_S(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r,i;const n=(r=De(this,rl).get(_S(t)))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(i=n==null?void 0:n.continue())!=null?i:Promise.resolve()}clear(){Aa.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...De(this,rl).values()].flat()}find(t){const n=Ke({exact:!0},t);return this.getAll().find(r=>SB(n,r))}findAll(t={}){return this.getAll().filter(n=>SB(t,n))}notify(t){Aa.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Aa.batch(()=>Promise.all(t.map(n=>n.continue().catch(ul))))}},rl=new WeakMap,X2=new WeakMap,m1e);function _S(e){var t,n;return(n=(t=e.options.scope)==null?void 0:t.id)!=null?n:String(e.mutationId)}function RB(e){return{onFetch:(t,n)=>{var u,f,d,h,p;const r=t.options,i=(d=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,a=((h=t.state.data)==null?void 0:h.pages)||[],o=((p=t.state.data)==null?void 0:p.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=()=>la(this,null,function*(){var x;let v=!1;const g=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},m=OB(t.options,t.fetchOptions),y=(S,w,C)=>la(this,null,function*(){if(v)return Promise.reject();if(w==null&&S.pages.length)return Promise.resolve(S);const E={queryKey:t.queryKey,pageParam:w,direction:C?"backward":"forward",meta:t.options.meta};g(E);const O=yield m(E),{maxPages:$}=t.options,P=C?c2e:l2e;return{pages:P(S.pages,O,$),pageParams:P(S.pageParams,w,$)}});if(i&&a.length){const S=i==="backward",w=S?b2e:IB,C={pages:a,pageParams:o},E=w(r,C);s=yield y(C,E,S)}else{const S=e!=null?e:a.length;do{const w=l===0?(x=o[0])!=null?x:r.initialPageParam:IB(r,s);if(l>0&&w==null)break;s=yield y(s,w),l++}while(l{var v,g;return(g=(v=t.options).persister)==null?void 0:g.call(v,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function IB(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function b2e(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var x2e=(y1e=class{constructor(e={}){Nn(this,aa);Nn(this,Ph);Nn(this,Mh);Nn(this,J0);Nn(this,ey);Nn(this,kh);Nn(this,ty);Nn(this,ny);ln(this,aa,e.queryCache||new g2e),ln(this,Ph,e.mutationCache||new y2e),ln(this,Mh,e.defaultOptions||{}),ln(this,J0,new Map),ln(this,ey,new Map),ln(this,kh,0)}mount(){hM(this,kh)._++,De(this,kh)===1&&(ln(this,ty,$M.subscribe(e=>la(this,null,function*(){e&&(yield this.resumePausedMutations(),De(this,aa).onFocus())}))),ln(this,ny,OS.subscribe(e=>la(this,null,function*(){e&&(yield this.resumePausedMutations(),De(this,aa).onOnline())}))))}unmount(){var e,t;hM(this,kh)._--,De(this,kh)===0&&((e=De(this,ty))==null||e.call(this),ln(this,ty,void 0),(t=De(this,ny))==null||t.call(this),ln(this,ny,void 0))}isFetching(e){return De(this,aa).findAll(Rn(Ke({},e),{fetchStatus:"fetching"})).length}isMutating(e){return De(this,Ph).findAll(Rn(Ke({},e),{status:"pending"})).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=De(this,aa).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=De(this,aa).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Zv(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return De(this,aa).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=De(this,aa).get(r.queryHash),a=i==null?void 0:i.state.data,o=o2e(t,a);if(o!==void 0)return De(this,aa).build(this,r).setData(o,Rn(Ke({},n),{manual:!0}))}setQueriesData(e,t,n){return Aa.batch(()=>De(this,aa).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=De(this,aa).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=De(this,aa);Aa.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=De(this,aa),r=Ke({type:"active"},e);return Aa.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n=Ke({revert:!0},t),r=Aa.batch(()=>De(this,aa).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(ul).catch(ul)}invalidateQueries(e,t={}){return Aa.batch(()=>{var r,i;if(De(this,aa).findAll(e).forEach(a=>{a.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n=Rn(Ke({},e),{type:(i=(r=e==null?void 0:e.refetchType)!=null?r:e==null?void 0:e.type)!=null?i:"active"});return this.refetchQueries(n,t)})}refetchQueries(e,t={}){var i;const n=Rn(Ke({},t),{cancelRefetch:(i=t.cancelRefetch)!=null?i:!0}),r=Aa.batch(()=>De(this,aa).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(ul)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(ul)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=De(this,aa).build(this,t);return n.isStaleByTime(Zv(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ul).catch(ul)}fetchInfiniteQuery(e){return e.behavior=RB(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ul).catch(ul)}ensureInfiniteQueryData(e){return e.behavior=RB(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return OS.isOnline()?De(this,Ph).resumePausedMutations():Promise.resolve()}getQueryCache(){return De(this,aa)}getMutationCache(){return De(this,Ph)}getDefaultOptions(){return De(this,Mh)}setDefaultOptions(e){ln(this,Mh,e)}setQueryDefaults(e,t){De(this,J0).set(Uh(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...De(this,J0).values()],n={};return t.forEach(r=>{Cy(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){De(this,ey).set(Uh(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...De(this,ey).values()];let n={};return t.forEach(r=>{Cy(e,r.mutationKey)&&(n=Ke(Ke({},n),r.defaultOptions))}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t=Rn(Ke(Ke(Ke({},De(this,Mh).queries),this.getQueryDefaults(e.queryKey)),e),{_defaulted:!0});return t.queryHash||(t.queryHash=CM(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===_M&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:Rn(Ke(Ke(Ke({},De(this,Mh).mutations),(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{_defaulted:!0})}clear(){De(this,aa).clear(),De(this,Ph).clear()}},aa=new WeakMap,Ph=new WeakMap,Mh=new WeakMap,J0=new WeakMap,ey=new WeakMap,kh=new WeakMap,ty=new WeakMap,ny=new WeakMap,y1e),S2e=(b1e=class extends Xv{constructor(t,n){super();Nn(this,qr);Nn(this,ks);Nn(this,wr);Nn(this,Z2);Nn(this,cs);Nn(this,Nv);Nn(this,ry);Nn(this,Th);Nn(this,Fu);Nn(this,Q2);Nn(this,iy);Nn(this,ay);Nn(this,Lv);Nn(this,jv);Nn(this,Rh);Nn(this,oy,new Set);this.options=n,ln(this,ks,t),ln(this,Fu,null),ln(this,Th,PM()),this.options.experimental_prefetchInRender||De(this,Th).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(De(this,wr).addObserver(this),AB(De(this,wr),this.options)?ur(this,qr,yS).call(this):this.updateResult(),ur(this,qr,nB).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return kM(De(this,wr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return kM(De(this,wr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ur(this,qr,rB).call(this),ur(this,qr,iB).call(this),De(this,wr).removeObserver(this)}setOptions(t,n){const r=this.options,i=De(this,wr);if(this.options=De(this,ks).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sc(this.options.enabled,De(this,wr))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ur(this,qr,aB).call(this),De(this,wr).setOptions(this.options),r._defaulted&&!ES(this.options,r)&&De(this,ks).getQueryCache().notify({type:"observerOptionsUpdated",query:De(this,wr),observer:this});const a=this.hasListeners();a&&NB(De(this,wr),i,this.options,r)&&ur(this,qr,yS).call(this),this.updateResult(n),a&&(De(this,wr)!==i||sc(this.options.enabled,De(this,wr))!==sc(r.enabled,De(this,wr))||Zv(this.options.staleTime,De(this,wr))!==Zv(r.staleTime,De(this,wr)))&&ur(this,qr,JF).call(this);const o=ur(this,qr,eB).call(this);a&&(De(this,wr)!==i||sc(this.options.enabled,De(this,wr))!==sc(r.enabled,De(this,wr))||o!==De(this,Rh))&&ur(this,qr,tB).call(this,o)}getOptimisticResult(t){const n=De(this,ks).getQueryCache().build(De(this,ks),t),r=this.createResult(n,t);return C2e(this,r)&&(ln(this,cs,r),ln(this,ry,this.options),ln(this,Nv,De(this,wr).state)),r}getCurrentResult(){return De(this,cs)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){De(this,oy).add(t)}getCurrentQuery(){return De(this,wr)}refetch(n={}){var t=oc(n,[]);return this.fetch(Ke({},t))}fetchOptimistic(t){const n=De(this,ks).defaultQueryOptions(t),r=De(this,ks).getQueryCache().build(De(this,ks),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return ur(this,qr,yS).call(this,Rn(Ke({},t),{cancelRefetch:(n=t.cancelRefetch)!=null?n:!0})).then(()=>(this.updateResult(),De(this,cs)))}createResult(t,n){var O;const r=De(this,wr),i=this.options,a=De(this,cs),o=De(this,Nv),s=De(this,ry),c=t!==r?t.state:De(this,Z2),{state:u}=t;let f=Ke({},u),d=!1,h;if(n._optimisticResults){const $=this.hasListeners(),P=!$&&AB(t,n),M=$&&NB(t,r,n,i);(P||M)&&(f=Ke(Ke({},f),kB(u.data,t.options))),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:v,status:g}=f;if(n.select&&f.data!==void 0)if(a&&f.data===(o==null?void 0:o.data)&&n.select===De(this,Q2))h=De(this,iy);else try{ln(this,Q2,n.select),h=n.select(f.data),h=OM(a==null?void 0:a.data,h,n),ln(this,iy,h),ln(this,Fu,null)}catch($){ln(this,Fu,$)}else h=f.data;if(n.placeholderData!==void 0&&h===void 0&&g==="pending"){let $;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))$=a.data;else if($=typeof n.placeholderData=="function"?n.placeholderData((O=De(this,ay))==null?void 0:O.state.data,De(this,ay)):n.placeholderData,n.select&&$!==void 0)try{$=n.select($),ln(this,Fu,null)}catch(P){ln(this,Fu,P)}$!==void 0&&(g="success",h=OM(a==null?void 0:a.data,$,n),d=!0)}De(this,Fu)&&(p=De(this,Fu),h=De(this,iy),v=Date.now(),g="error");const m=f.fetchStatus==="fetching",y=g==="pending",x=g==="error",S=y&&m,w=h!==void 0,E={status:g,fetchStatus:f.fetchStatus,isPending:y,isSuccess:g==="success",isError:x,isInitialLoading:S,isLoading:S,data:h,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:v,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:x&&!w,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:x&&w,isStale:TM(t,n),refetch:this.refetch,promise:De(this,Th)};if(this.options.experimental_prefetchInRender){const $=k=>{E.status==="error"?k.reject(E.error):E.data!==void 0&&k.resolve(E.data)},P=()=>{const k=ln(this,Th,E.promise=PM());$(k)},M=De(this,Th);switch(M.status){case"pending":t.queryHash===r.queryHash&&$(M);break;case"fulfilled":(E.status==="error"||E.data!==M.value)&&P();break;case"rejected":(E.status!=="error"||E.error!==M.reason)&&P();break}}return E}updateResult(t){const n=De(this,cs),r=this.createResult(De(this,wr),this.options);if(ln(this,Nv,De(this,wr).state),ln(this,ry,this.options),De(this,Nv).data!==void 0&&ln(this,ay,De(this,wr)),ES(r,n))return;ln(this,cs,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!De(this,oy).size)return!0;const l=new Set(s!=null?s:De(this,oy));return this.options.throwOnError&&l.add("error"),Object.keys(De(this,cs)).some(c=>{const u=c;return De(this,cs)[u]!==n[u]&&l.has(u)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),ur(this,qr,Txe).call(this,Ke(Ke({},i),t))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ur(this,qr,nB).call(this)}},ks=new WeakMap,wr=new WeakMap,Z2=new WeakMap,cs=new WeakMap,Nv=new WeakMap,ry=new WeakMap,Th=new WeakMap,Fu=new WeakMap,Q2=new WeakMap,iy=new WeakMap,ay=new WeakMap,Lv=new WeakMap,jv=new WeakMap,Rh=new WeakMap,oy=new WeakMap,qr=new WeakSet,yS=function(t){ur(this,qr,aB).call(this);let n=De(this,wr).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ul)),n},JF=function(){ur(this,qr,rB).call(this);const t=Zv(this.options.staleTime,De(this,wr));if(qh||De(this,cs).isStale||!wM(t))return;const r=bB(De(this,cs).dataUpdatedAt,t)+1;ln(this,Lv,setTimeout(()=>{De(this,cs).isStale||this.updateResult()},r))},eB=function(){var t;return(t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(De(this,wr)):this.options.refetchInterval)!=null?t:!1},tB=function(t){ur(this,qr,iB).call(this),ln(this,Rh,t),!(qh||sc(this.options.enabled,De(this,wr))===!1||!wM(De(this,Rh))||De(this,Rh)===0)&&ln(this,jv,setInterval(()=>{(this.options.refetchIntervalInBackground||$M.isFocused())&&ur(this,qr,yS).call(this)},De(this,Rh)))},nB=function(){ur(this,qr,JF).call(this),ur(this,qr,tB).call(this,ur(this,qr,eB).call(this))},rB=function(){De(this,Lv)&&(clearTimeout(De(this,Lv)),ln(this,Lv,void 0))},iB=function(){De(this,jv)&&(clearInterval(De(this,jv)),ln(this,jv,void 0))},aB=function(){const t=De(this,ks).getQueryCache().build(De(this,ks),this.options);if(t===De(this,wr))return;const n=De(this,wr);ln(this,wr,t),ln(this,Z2,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Txe=function(t){Aa.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(De(this,cs))}),De(this,ks).getQueryCache().notify({query:De(this,wr),type:"observerResultsUpdated"})})},b1e);function w2e(e,t){return sc(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function AB(e,t){return w2e(e,t)||e.state.data!==void 0&&kM(e,t,t.refetchOnMount)}function kM(e,t,n){if(sc(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&TM(e,t)}return!1}function NB(e,t,n,r){return(e!==t||sc(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&TM(e,n)}function TM(e,t){return sc(t.enabled,e)!==!1&&e.isStaleByTime(Zv(t.staleTime,e))}function C2e(e,t){return!ES(e.getCurrentResult(),t)}var E2e=(x1e=class extends Xv{constructor(n,r){super();Nn(this,Hf);Nn(this,Ih);Nn(this,Ah);Nn(this,Ts);Nn(this,zf);ln(this,Ih,n),this.setOptions(r),this.bindMethods(),ur(this,Hf,vM).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=De(this,Ih).defaultMutationOptions(n),ES(this.options,r)||De(this,Ih).getMutationCache().notify({type:"observerOptionsUpdated",mutation:De(this,Ts),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Uh(r.mutationKey)!==Uh(this.options.mutationKey)?this.reset():((i=De(this,Ts))==null?void 0:i.state.status)==="pending"&&De(this,Ts).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=De(this,Ts))==null||n.removeObserver(this)}onMutationUpdate(n){ur(this,Hf,vM).call(this),ur(this,Hf,oB).call(this,n)}getCurrentResult(){return De(this,Ah)}reset(){var n;(n=De(this,Ts))==null||n.removeObserver(this),ln(this,Ts,void 0),ur(this,Hf,vM).call(this),ur(this,Hf,oB).call(this)}mutate(n,r){var i;return ln(this,zf,r),(i=De(this,Ts))==null||i.removeObserver(this),ln(this,Ts,De(this,Ih).getMutationCache().build(De(this,Ih),this.options)),De(this,Ts).addObserver(this),De(this,Ts).execute(n)}},Ih=new WeakMap,Ah=new WeakMap,Ts=new WeakMap,zf=new WeakMap,Hf=new WeakSet,vM=function(){var r,i;const n=(i=(r=De(this,Ts))==null?void 0:r.state)!=null?i:TB();ln(this,Ah,Rn(Ke({},n),{isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}))},oB=function(n){Aa.batch(()=>{var r,i,a,o,s,l,c,u;if(De(this,zf)&&this.hasListeners()){const f=De(this,Ah).variables,d=De(this,Ah).context;(n==null?void 0:n.type)==="success"?((i=(r=De(this,zf)).onSuccess)==null||i.call(r,n.data,f,d),(o=(a=De(this,zf)).onSettled)==null||o.call(a,n.data,null,f,d)):(n==null?void 0:n.type)==="error"&&((l=(s=De(this,zf)).onError)==null||l.call(s,n.error,f,d),(u=(c=De(this,zf)).onSettled)==null||u.call(c,void 0,n.error,f,d))}this.listeners.forEach(f=>{f(De(this,Ah))})})},x1e),LB=b.createContext(void 0),$S=e=>{const t=b.useContext(LB);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},O2e=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ve.jsx(LB.Provider,{value:e,children:t})),jB=b.createContext(!1),_2e=()=>b.useContext(jB);jB.Provider;function $2e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var P2e=b.createContext($2e()),M2e=()=>b.useContext(P2e);function DB(e,t){return typeof e=="function"?e(...t):!!e}function RM(){}var k2e=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},T2e=e=>{b.useEffect(()=>{e.clearReset()},[e])},R2e=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&DB(n,[e.error,r]),I2e=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},A2e=(e,t)=>e.isLoading&&e.isFetching&&!t,N2e=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,FB=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function L2e(e,t,n){var u,f,d,h,p;const r=$S(),i=_2e(),a=M2e(),o=r.defaultQueryOptions(e);(f=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||f.call(u,o),o._optimisticResults=i?"isRestoring":"optimistic",I2e(o),k2e(o,a),T2e(a);const s=!r.getQueryCache().get(o.queryHash),[l]=b.useState(()=>new t(r,o)),c=l.getOptimisticResult(o);if(b.useSyncExternalStore(b.useCallback(v=>{const g=i?RM:l.subscribe(Aa.batchCalls(v));return l.updateResult(),g},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),b.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),N2e(o,c))throw FB(o,l,a);if(R2e({result:c,errorResetBoundary:a,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw c.error;if((h=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_afterQuery)==null||h.call(d,o,c),o.experimental_prefetchInRender&&!qh&&A2e(c,i)){const v=s?FB(o,l,a):(p=r.getQueryCache().get(o.queryHash))==null?void 0:p.promise;v==null||v.catch(RM).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?c:l.trackResult(c)}function Kc(e,t){return L2e(e,S2e)}function Oo(e,t){const n=$S(),[r]=b.useState(()=>new E2e(n,e));b.useEffect(()=>{r.setOptions(e)},[r,e]);const i=b.useSyncExternalStore(b.useCallback(o=>r.subscribe(Aa.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=b.useCallback((o,s)=>{r.mutate(o,s).catch(RM)},[r]);if(i.error&&DB(r.options.throwOnError,[i.error]))throw i.error;return Rn(Ke({},i),{mutate:a,mutateAsync:i.mutate})}var BB={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"};function Bt(e){"@babel/helpers - typeof";return Bt=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},Bt(e)}function j2e(e,t){if(Bt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zB(e){var t=j2e(e,"string");return Bt(t)=="symbol"?t:t+""}function Z(e,t,n){return(t=zB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ae(e){for(var t=1;ttypeof e=="string",Ey=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},VB=e=>e==null?"":""+e,B2e=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},z2e=/###/g,qB=e=>e&&e.indexOf("###")>-1?e.replace(z2e,"."):e,UB=e=>!e||qn(e),Oy=(e,t,n)=>{const r=qn(t)?t.split("."):t;let i=0;for(;i{const{obj:r,k:i}=Oy(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Oy(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Oy(e,o,Object),s&&s.obj&&typeof s.obj[`${s.k}.${a}`]!="undefined"&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},H2e=(e,t,n,r)=>{const{obj:i,k:a}=Oy(e,t,Object);i[a]=i[a]||[],i[a].push(n)},MS=(e,t)=>{const{obj:n,k:r}=Oy(e,t);if(n)return n[r]},W2e=(e,t,n)=>{const r=MS(e,n);return r!==void 0?r:MS(t,n)},KB=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?qn(e[r])||e[r]instanceof String||qn(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):KB(e[r],t[r],n):e[r]=t[r]);return e},Qv=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var V2e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const q2e=e=>qn(e)?e.replace(/[&<>"'\/]/g,t=>V2e[t]):e;class U2e{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const G2e=[" ",",","?","!",";"],K2e=new U2e(20),Y2e=(e,t,n)=>{t=t||"",n=n||"";const r=G2e.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=K2e.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(e);if(!a){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a},IM=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let a=0;a-1&&le&&e.replace("_","-"),X2e={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class TS{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||X2e,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[s,l]=o;for(let c=0;c{let[s,l]=o;for(let c=0;c1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):qn(r)&&a?s.push(...r.split(a)):s.push(r)));const l=MS(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!o||!qn(r)?l:IM(this.data&&this.data[t]&&this.data[t][n],r,a)}addResource(t,n,r,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split("."),i=n,n=s[1]),this.addNamespaces(n),GB(this.data,s,i),a.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in r)(qn(r[a])||Array.isArray(r[a]))&&this.addResource(t,n,a,r[a],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let l=MS(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?KB(l,r,a):l=Ke(Ke({},l),r),GB(this.data,s,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ke({},this.getResource(t,n)):this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var XB={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,r,i))}),t}};const ZB={};class IS extends RS{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),B2e(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Yc.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Y2e(t,r,i);if(o&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:qn(a)?[a]:a};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(a=c.shift()),t=c.join(i)}return{key:t,namespaces:qn(a)?[a]:a}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n=Ke({},n)),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),l=s[s.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const S=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${S}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${S}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const f=this.resolve(t,n);let d=f&&f.res;const h=f&&f.usedKey||o,p=f&&f.exactUsedKey||o,v=Object.prototype.toString.apply(d),g=["[object Number]","[object Function]","[object RegExp]"],m=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,x=!qn(d)&&typeof d!="boolean"&&typeof d!="number";if(y&&d&&x&&g.indexOf(v)<0&&!(qn(m)&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,Rn(Ke({},n),{ns:s})):`key '${o} (${this.language})' returned an object instead of string.`;return i?(f.res=S,f.usedParams=this.getUsedParamsDetails(n),f):S}if(a){const S=Array.isArray(d),w=S?[]:{},C=S?p:h;for(const E in d)if(Object.prototype.hasOwnProperty.call(d,E)){const O=`${C}${a}${E}`;w[E]=this.translate(O,Rn(Ke({},n),{joinArrays:!1,ns:s})),w[E]===O&&(w[E]=d[E])}d=w}}else if(y&&qn(m)&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,t,n,r));else{let S=!1,w=!1;const C=n.count!==void 0&&!qn(n.count),E=IS.hasDefaultValue(n),O=C?this.pluralResolver.getSuffix(c,n.count,n):"",$=n.ordinal&&C?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",P=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),M=P&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${O}`]||n[`defaultValue${$}`]||n.defaultValue;!this.isValidLookup(d)&&E&&(S=!0,d=M),this.isValidLookup(d)||(w=!0,d=o);const T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:d,R=E&&M!==d&&this.options.updateMissing;if(w||S||R){if(this.logger.log(R?"updateKey":"missingKey",c,l,o,R?M:d),a){const j=this.resolve(o,Rn(Ke({},n),{keySeparator:!1}));j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let A=[];const N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&N&&N[0])for(let j=0;j{const D=E&&B!==d?B:T;this.options.missingKeyHandler?this.options.missingKeyHandler(j,l,F,D,R,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(j,l,F,D,R,n),this.emit("missingKey",j,l,F,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?A.forEach(j=>{const F=this.pluralResolver.getSuffixes(j,n);P&&n[`defaultValue${this.options.pluralSeparator}zero`]&&F.indexOf(`${this.options.pluralSeparator}zero`)<0&&F.push(`${this.options.pluralSeparator}zero`),F.forEach(B=>{L([j],o+B,n[`defaultValue${B}`]||M)})}):L(A,o,M))}d=this.extendTranslation(d,t,n,f,r),w&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${o}`),(w||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,S?d:void 0):d=this.options.parseMissingKeyHandler(d))}return i?(f.res=d,f.usedParams=this.getUsedParamsDetails(n),f):d}extendTranslation(t,n,r,i,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,Ke(Ke({},this.options.interpolation.defaultVariables),r),r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(Rn(Ke({},r),{interpolation:Ke(Ke({},this.options.interpolation),r.interpolation)}));const c=qn(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const d=t.match(this.interpolator.nestingRegexp);u=d&&d.length}let f=r.replace&&!qn(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(f=Ke(Ke({},this.options.interpolation.defaultVariables),f)),t=this.interpolator.interpolate(t,f,r.lng||this.language||i.usedLng,r),c){const d=t.match(this.interpolator.nestingRegexp),h=d&&d.length;u1&&arguments[1]!==void 0?arguments[1]:{},r,i,a,o,s;return qn(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;i=u;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=n.count!==void 0&&!qn(n.count),h=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(qn(n.context)||typeof n.context=="number")&&n.context!=="",v=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(g=>{this.isValidLookup(r)||(s=g,!ZB[`${v[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(ZB[`${v[0]}-${g}`]=!0,this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(m=>{if(this.isValidLookup(r))return;o=m;const y=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(y,u,m,g,n);else{let S;d&&(S=this.pluralResolver.getSuffix(m,n.count,n));const w=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(y.push(u+S),n.ordinal&&S.indexOf(C)===0&&y.push(u+S.replace(C,this.options.pluralSeparator)),h&&y.push(u+w)),p){const E=`${u}${this.options.contextSeparator}${n.context}`;y.push(E),d&&(y.push(E+S),n.ordinal&&S.indexOf(C)===0&&y.push(E+S.replace(C,this.options.pluralSeparator)),h&&y.push(E+w))}}let x;for(;x=y.pop();)this.isValidLookup(r)||(a=x,r=this.getResource(m,g,x,n))}))})}),{res:r,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!qn(t.replace);let i=r?t.replace:t;if(r&&typeof t.count!="undefined"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i=Ke(Ke({},this.options.interpolation.defaultVariables),i)),!r){i=Ke({},i);for(const a of n)delete i[a]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const AM=e=>e.charAt(0).toUpperCase()+e.slice(1);class QB{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Yc.create("languageUtils")}getScriptPartFromCode(t){if(t=kS(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=kS(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(qn(t)&&t.indexOf("-")>-1){if(typeof Intl!="undefined"&&typeof Intl.getCanonicalLocales!="undefined")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch(i){}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=AM(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=AM(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=AM(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),qn(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return qn(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):qn(t)&&a(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}let Z2e=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Q2e={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const J2e=["v1","v2","v3"],eSe=["v4"],JB={zero:0,one:1,two:2,few:3,many:4,other:5},tSe=()=>{const e={};return Z2e.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Q2e[t.fc]}})}),e};class nSe{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Yc.create("pluralResolver"),(!this.options.compatibilityJSON||eSe.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=tSe(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=kS(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(r,{type:i})}catch(s){if(!t.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,n)}return this.pluralRulesCache[a]=o,o}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,a)=>JB[i]-JB[a]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const a=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!J2e.includes(this.options.compatibilityJSON)}}const ez=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=W2e(e,t,n);return!a&&i&&qn(n)&&(a=IM(e,n,r),a===void 0&&(a=IM(t,n,r))),a},NM=e=>e.replace(/\$/g,"$$$$");class rSe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yc.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:v,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:y}=t.interpolation;this.escape=n!==void 0?n:q2e,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?Qv(a):o||"{{",this.suffix=s?Qv(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?Qv(d):h||Qv("$t("),this.nestingSuffix=p?Qv(p):v||Qv(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=y!==void 0?y:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let a,o,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=h=>{if(h.indexOf(this.formatSeparator)<0){const m=ez(n,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,Rn(Ke(Ke({},i),n),{interpolationkey:h})):m}const p=h.split(this.formatSeparator),v=p.shift().trim(),g=p.join(this.formatSeparator).trim();return this.format(ez(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,Rn(Ke(Ke({},i),n),{interpolationkey:v}))};this.resetRegExp();const u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>NM(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?NM(this.escape(h)):NM(h)}].forEach(h=>{for(s=0;a=h.regex.exec(t);){const p=a[1].trim();if(o=c(p),o===void 0)if(typeof u=="function"){const g=u(t,a,i);o=qn(g)?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,p))o="";else if(f){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${t}`),o="";else!qn(o)&&!this.useRawValueToEscape&&(o=VB(o));const v=h.safeValue(o);if(t=t.replace(a[0],v),f?(h.regex.lastIndex+=o.length,h.regex.lastIndex-=a[0].length):h.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const f=l.split(new RegExp(`${u}[ ]*{`));let d=`{${f[1]}`;l=f[0],d=this.interpolate(d,o);const h=d.match(/'/g),p=d.match(/"/g);(h&&h.length%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),c&&(o=Ke(Ke({},c),o))}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,v),`${l}${u}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];o=Ke({},r),o=o.replace&&!qn(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const u=i[1].split(this.formatSeparator).map(f=>f.trim());i[1]=u.shift(),l=u,c=!0}if(a=n(s.call(this,i[1].trim(),o),o),a&&i[0]===t&&!qn(a))return a;qn(a)||(a=VB(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),a=""),c&&(a=l.reduce((u,f)=>this.format(u,f,r.lng,Rn(Ke({},r),{interpolationkey:i[1].trim()})),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}}const iSe=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[s,...l]=o.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},Jv=e=>{const t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a=Rn(Ke({},a),{[i.interpolationkey]:void 0}));const o=r+JSON.stringify(a);let s=t[o];return s||(s=e(kS(r),i),t[o]=s),s(n)}};class aSe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yc.create("formatter"),this.options=t,this.formats={number:Jv((n,r)=>{const i=new Intl.NumberFormat(n,Ke({},r));return a=>i.format(a)}),currency:Jv((n,r)=>{const i=new Intl.NumberFormat(n,Rn(Ke({},r),{style:"currency"}));return a=>i.format(a)}),datetime:Jv((n,r)=>{const i=new Intl.DateTimeFormat(n,Ke({},r));return a=>i.format(a)}),relativetime:Jv((n,r)=>{const i=new Intl.RelativeTimeFormat(n,Ke({},r));return a=>i.format(a,r.range||"day")}),list:Jv((n,r)=>{const i=new Intl.ListFormat(n,Ke({},r));return a=>i.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Jv(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(s=>s.indexOf(")")>-1)){const s=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,s)].join(this.formatSeparator)}return a.reduce((s,l)=>{const{formatName:c,formatOptions:u}=iSe(l);if(this.formats[c]){let f=s;try{const d=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},h=d.locale||d.lng||i.locale||i.lng||r;f=this.formats[c](s,h,Ke(Ke(Ke({},u),i),d))}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}const oSe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};let sSe=class extends RS{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Yc.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const a={},o={},s={},l={};return t.forEach(c=>{let u=!0;n.forEach(f=>{const d=`${c}|${f}`;!r.reload&&this.store.hasResourceBundle(c,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,u=!1,o[d]===void 0&&(o[d]=!0),a[d]===void 0&&(a[d]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(s[c]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),a=i[0],o=i[1];n&&this.emit("failedLoading",a,o,n),!n&&r&&this.store.addResourceBundle(a,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{H2e(l.loaded,[a],o),oSe(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(f=>{s[c][f]===void 0&&(s[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:a,callback:o});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&u&&i{this.read.call(this,t,n,r,i+1,a*2,o)},a);return}o(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();qn(t)&&(t=this.languageUtils.toResolveHierarchy(t)),qn(n)&&(n=[n]);const a=this.queueLoad(t,n,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,o),!o&&s&&this.logger.log(`${n}loaded namespace ${a} for language ${i}`,s),this.loaded(t,o,s)})}saveMissing(t,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l=Rn(Ke({},o),{isUpdate:a}),c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,n,r,i,l):u=c(t,n,r,i),u&&typeof u.then=="function"?u.then(f=>s(null,f)).catch(s):s(null,u)}catch(u){s(u)}else c(t,n,r,i,s,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}};const tz=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),qn(e[1])&&(t.defaultValue=e[1]),qn(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),nz=e=>(qn(e.ns)&&(e.ns=[e.ns]),qn(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),qn(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),AS=()=>{},lSe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class _y extends RS{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=nz(t),this.services={},this.logger=Yc,this.modules={external:[]},lSe(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(qn(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=tz();this.options=Ke(Ke(Ke({},i),this.options),nz(n)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ke(Ke({},i.interpolation),this.options.interpolation)),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const a=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Yc.init(a(this.modules.logger),this.options):Yc.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl!="undefined"&&(u=aSe);const f=new QB(this.options);this.store=new YB(this.options.resources,this.options);const d=this.services;d.logger=Yc,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new nSe(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=a(u),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new rSe(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new sSe(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),g=1;g1?p-1:0),g=1;g{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=AS),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=Ey(),c=()=>{const u=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(d),r(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:AS;const i=qn(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],o=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&a.indexOf(c)<0&&a.push(c)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(s=>o(s)),this.services.backendConnector.load(a,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const i=Ey();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=AS),this.services.backendConnector.reload(t,n,a=>{i.resolve(),r(a)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&XB.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=Ey();this.emit("languageChanging",t);const a=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,c)=>{c?(a(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=qn(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||a(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{o(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,r){var i=this;const a=function(o,s){let l;if(typeof s!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),f=2;f`${l.keyPrefix}${d}${p}`):h=l.keyPrefix?`${l.keyPrefix}${d}${o}`:o,i.t(h,l)};return qn(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(a,t)))}loadNamespaces(t,n){const r=Ey();return this.options.ns?(qn(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Ey();qn(t)&&(t=[t]);const i=this.options.preload||[],a=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=i.concat(a),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new QB(tz());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new _y(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:AS;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i=Rn(Ke(Ke({},this.options),t),{isClone:!0}),a=new _y(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(s=>{a[s]=this[s]}),a.services=Ke({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new YB(this.store.data,i),a.services.resourceStore=a.store),a.translator=new IS(a.services,i),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u>>1,z=j[D];if(0>>1;Di(H,B))Ui(G,H)?(j[D]=G,j[U]=B,D=U):(j[D]=H,j[q]=B,D=q);else if(Ui(G,B))j[D]=G,j[U]=B,D=U;else break e}}return F}function i(j,F){var B=j.sortIndex-F.sortIndex;return B!==0?B:j.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,f=null,d=3,h=!1,p=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(j){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=j)r(c),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(c)}}function S(j){if(g=!1,x(j),!p)if(n(l)!==null)p=!0,N(w);else{var F=n(c);F!==null&&L(S,F.startTime-j)}}function w(j,F){p=!1,g&&(g=!1,m(O),O=-1),h=!0;var B=d;try{for(x(F),f=n(l);f!==null&&(!(f.expirationTime>F)||j&&!M());){var D=f.callback;if(typeof D=="function"){f.callback=null,d=f.priorityLevel;var z=D(f.expirationTime<=F);F=e.unstable_now(),typeof z=="function"?f.callback=z:f===n(l)&&r(l),x(F)}else r(l);f=n(l)}if(f!==null)var W=!0;else{var q=n(c);q!==null&&L(S,q.startTime-F),W=!1}return W}finally{f=null,d=B,h=!1}}var C=!1,E=null,O=-1,$=5,P=-1;function M(){return!(e.unstable_now()-P<$)}function k(){if(E!==null){var j=e.unstable_now();P=j;var F=!0;try{F=E(!0,j)}finally{F?T():(C=!1,E=null)}}else C=!1}var T;if(typeof y=="function")T=function(){y(k)};else if(typeof MessageChannel!="undefined"){var R=new MessageChannel,A=R.port2;R.port1.onmessage=k,T=function(){A.postMessage(null)}}else T=function(){v(k,0)};function N(j){E=j,C||(C=!0,T())}function L(j,F){O=v(function(){j(e.unstable_now())},F)}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(j){j.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,N(w))},e.unstable_forceFrameRate=function(j){0>j||125D?(j.sortIndex=B,t(c,j),n(l)===null&&j===n(c)&&(g?(m(O),O=-1):g=!0,L(S,B-D))):(j.sortIndex=z,t(l,j),p||h||(p=!0,N(w))),j},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(j){var F=d;return function(){var B=d;d=F;try{return j.apply(this,arguments)}finally{d=B}}}})(lz),sz.exports=lz;var fSe=sz.exports;/** + */(function(e){function t(j,F){var B=j.length;j.push(F);e:for(;0>>1,z=j[D];if(0>>1;Di(H,B))Ui(G,H)?(j[D]=G,j[U]=B,D=U):(j[D]=H,j[q]=B,D=q);else if(Ui(G,B))j[D]=G,j[U]=B,D=U;else break e}}return F}function i(j,F){var B=j.sortIndex-F.sortIndex;return B!==0?B:j.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,f=null,d=3,h=!1,p=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(j){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=j)r(c),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(c)}}function S(j){if(v=!1,x(j),!p)if(n(l)!==null)p=!0,N(w);else{var F=n(c);F!==null&&L(S,F.startTime-j)}}function w(j,F){p=!1,v&&(v=!1,m(O),O=-1),h=!0;var B=d;try{for(x(F),f=n(l);f!==null&&(!(f.expirationTime>F)||j&&!M());){var D=f.callback;if(typeof D=="function"){f.callback=null,d=f.priorityLevel;var z=D(f.expirationTime<=F);F=e.unstable_now(),typeof z=="function"?f.callback=z:f===n(l)&&r(l),x(F)}else r(l);f=n(l)}if(f!==null)var W=!0;else{var q=n(c);q!==null&&L(S,q.startTime-F),W=!1}return W}finally{f=null,d=B,h=!1}}var C=!1,E=null,O=-1,$=5,P=-1;function M(){return!(e.unstable_now()-P<$)}function k(){if(E!==null){var j=e.unstable_now();P=j;var F=!0;try{F=E(!0,j)}finally{F?T():(C=!1,E=null)}}else C=!1}var T;if(typeof y=="function")T=function(){y(k)};else if(typeof MessageChannel!="undefined"){var R=new MessageChannel,A=R.port2;R.port1.onmessage=k,T=function(){A.postMessage(null)}}else T=function(){g(k,0)};function N(j){E=j,C||(C=!0,T())}function L(j,F){O=g(function(){j(e.unstable_now())},F)}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(j){j.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,N(w))},e.unstable_forceFrameRate=function(j){0>j||125D?(j.sortIndex=B,t(c,j),n(l)===null&&j===n(c)&&(v?(m(O),O=-1):v=!0,L(S,B-D))):(j.sortIndex=z,t(l,j),p||h||(p=!0,N(w))),j},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(j){var F=d;return function(){var B=d;d=F;try{return j.apply(this,arguments)}finally{d=B}}}})(az),iz.exports=az;var cSe=iz.exports;/** * @license React * react-dom.production.min.js * @@ -30,18 +30,18 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var dSe=b,Fs=fSe;function Dt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function Go(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var uo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){uo[e]=new Go(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];uo[t]=new Go(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){uo[e]=new Go(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){uo[e]=new Go(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){uo[e]=new Go(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){uo[e]=new Go(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){uo[e]=new Go(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){uo[e]=new Go(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){uo[e]=new Go(e,5,!1,e.toLowerCase(),null,!1,!1)});var BM=/[\-:]([a-z])/g;function zM(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(BM,zM);uo[t]=new Go(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(BM,zM);uo[t]=new Go(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(BM,zM);uo[t]=new Go(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){uo[e]=new Go(e,1,!1,e.toLowerCase(),null,!1,!1)}),uo.xlinkHref=new Go("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){uo[e]=new Go(e,1,!1,e.toLowerCase(),null,!0,!0)});function HM(e,t,n,r){var i=uo.hasOwnProperty(t)?uo[t]:null;(i!==null?i.type!==0:r||!(2t}return!1}function Go(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var uo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){uo[e]=new Go(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];uo[t]=new Go(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){uo[e]=new Go(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){uo[e]=new Go(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){uo[e]=new Go(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){uo[e]=new Go(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){uo[e]=new Go(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){uo[e]=new Go(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){uo[e]=new Go(e,5,!1,e.toLowerCase(),null,!1,!1)});var DM=/[\-:]([a-z])/g;function FM(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(DM,FM);uo[t]=new Go(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(DM,FM);uo[t]=new Go(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(DM,FM);uo[t]=new Go(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){uo[e]=new Go(e,1,!1,e.toLowerCase(),null,!1,!1)}),uo.xlinkHref=new Go("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){uo[e]=new Go(e,1,!1,e.toLowerCase(),null,!0,!0)});function BM(e,t,n,r){var i=uo.hasOwnProperty(t)?uo[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{XM=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?My(e):""}function mSe(e){switch(e.tag){case 5:return My(e.type);case 16:return My("Lazy");case 13:return My("Suspense");case 19:return My("SuspenseList");case 0:case 2:case 15:return e=ZM(e.type,!1),e;case 11:return e=ZM(e.type.render,!1),e;case 1:return e=ZM(e.type,!0),e;default:return""}}function QM(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 eg:return"Fragment";case Jv:return"Portal";case VM:return"Profiler";case WM:return"StrictMode";case UM:return"Suspense";case GM:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hz:return(e.displayName||"Context")+".Consumer";case dz:return(e._context.displayName||"Context")+".Provider";case qM: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:QM(e.type)||"Memo";case Jf:t=e._payload,e=e._init;try{return QM(e(t))}catch(n){}}return null}function ySe(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 QM(t);case 8:return t===WM?"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 ed(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gz(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bSe(e){var t=gz(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function LS(e){e._valueTracker||(e._valueTracker=bSe(e))}function mz(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gz(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function jS(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function JM(e,t){var n=t.checked;return Bi({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function yz(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ed(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 bz(e,t){t=t.checked,t!=null&&HM(e,"checked",t,!1)}function ek(e,t){bz(e,t);var n=ed(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")?tk(e,t.type,n):t.hasOwnProperty("defaultValue")&&tk(e,t.type,ed(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xz(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 tk(e,t,n){(t!=="number"||jS(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ky=Array.isArray;function tg(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=DS.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ty(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ry={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xSe=["Webkit","ms","Moz","O"];Object.keys(Ry).forEach(function(e){xSe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ry[t]=Ry[e]})});function _z(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ry.hasOwnProperty(e)&&Ry[e]?(""+t).trim():t+"px"}function $z(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=_z(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var SSe=Bi({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ik(e,t){if(t){if(SSe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Dt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Dt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Dt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Dt(62))}}function ak(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ok=null;function sk(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lk=null,ng=null,rg=null;function Pz(e){if(e=e1(e)){if(typeof lk!="function")throw Error(Dt(280));var t=e.stateNode;t&&(t=sw(t),lk(e.stateNode,e.type,t))}}function Mz(e){ng?rg?rg.push(e):rg=[e]:ng=e}function kz(){if(ng){var e=ng,t=rg;if(rg=ng=null,Pz(e),t)for(e=0;e>>=0,e===0?32:31-(RSe(e)/ISe|0)|0}var WS=64,VS=4194304;function Ly(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qS(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Ly(s):(a&=o,a!==0&&(r=Ly(a)))}else o=n&~i,o!==0?r=Ly(o):a!==0&&(r=Ly(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function jy(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lc(t),e[t]=n}function jSe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=qy),iH=" ",aH=!1;function oH(e,t){switch(e){case"keyup":return fwe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sH(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var og=!1;function hwe(e,t){switch(e){case"compositionend":return sH(t);case"keypress":return t.which!==32?null:(aH=!0,iH);case"textInput":return e=t.data,e===iH&&aH?null:e;default:return null}}function pwe(e,t){if(og)return e==="compositionend"||!_k&&oH(e,t)?(e=Qz(),XS=xk=ad=null,og=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pH(n)}}function gH(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gH(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mH(){for(var e=window,t=jS();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=jS(e.document)}return t}function Mk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Cwe(e){var t=mH(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gH(n.ownerDocument.documentElement,n)){if(r!==null&&Mk(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=vH(n,a);var o=vH(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,sg=null,kk=null,Yy=null,Tk=!1;function yH(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tk||sg==null||sg!==jS(r)||(r=sg,"selectionStart"in r&&Mk(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yy&&Ky(Yy,r)||(Yy=r,r=iw(kk,"onSelect"),0dg||(e.current=Wk[dg],Wk[dg]=null,dg--)}function vi(e,t){dg++,Wk[dg]=e.current,e.current=t}var cd={},$o=ld(cd),hs=ld(!1),Yh=cd;function hg(e,t){var n=e.type.contextTypes;if(!n)return cd;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ps(e){return e=e.childContextTypes,e!=null}function lw(){Ei(hs),Ei($o)}function IH(e,t,n){if($o.current!==cd)throw Error(Dt(168));vi($o,t),vi(hs,n)}function AH(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Dt(108,ySe(e)||"Unknown",i));return Bi({},n,r)}function cw(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cd,Yh=$o.current,vi($o,e),vi(hs,hs.current),!0}function NH(e,t,n){var r=e.stateNode;if(!r)throw Error(Dt(169));n?(e=AH(e,t,Yh),r.__reactInternalMemoizedMergedChildContext=e,Ei(hs),Ei($o),vi($o,e)):Ei(hs),vi(hs,n)}var Gu=null,uw=!1,Vk=!1;function LH(e){Gu===null?Gu=[e]:Gu.push(e)}function Nwe(e){uw=!0,LH(e)}function ud(){if(!Vk&&Gu!==null){Vk=!0;var e=0,t=Kr;try{var n=Gu;for(Kr=1;e>=o,i-=o,Ku=1<<32-lc(t)+i|n<O?($=E,E=null):$=E.sibling;var P=d(m,E,x[O],S);if(P===null){E===null&&(E=$);break}e&&E&&P.alternate===null&&t(m,E),y=a(P,y,O),C===null?w=P:C.sibling=P,C=P,E=$}if(O===x.length)return n(m,E),ki&&Zh(m,O),w;if(E===null){for(;OO?($=E,E=null):$=E.sibling;var M=d(m,E,P.value,S);if(M===null){E===null&&(E=$);break}e&&E&&M.alternate===null&&t(m,E),y=a(M,y,O),C===null?w=M:C.sibling=M,C=M,E=$}if(P.done)return n(m,E),ki&&Zh(m,O),w;if(E===null){for(;!P.done;O++,P=x.next())P=f(m,P.value,S),P!==null&&(y=a(P,y,O),C===null?w=P:C.sibling=P,C=P);return ki&&Zh(m,O),w}for(E=r(m,E);!P.done;O++,P=x.next())P=h(E,m,O,P.value,S),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?O:P.key),y=a(P,y,O),C===null?w=P:C.sibling=P,C=P);return e&&E.forEach(function(k){return t(m,k)}),ki&&Zh(m,O),w}function v(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===eg&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case NS:e:{for(var w=x.key,C=y;C!==null;){if(C.key===w){if(w=x.type,w===eg){if(C.tag===7){n(m,C.sibling),y=i(C,x.props.children),y.return=m,m=y;break e}}else if(C.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Jf&&HH(w)===C.type){n(m,C.sibling),y=i(C,x.props),y.ref=t1(m,C,x),y.return=m,m=y;break e}n(m,C);break}else t(m,C);C=C.sibling}x.type===eg?(y=ap(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Dw(x.type,x.key,x.props,null,m.mode,S),S.ref=t1(m,y,x),S.return=m,m=S)}return o(m);case Jv:e:{for(C=x.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(m,y.sibling),y=i(y,x.children||[]),y.return=m,m=y;break e}else{n(m,y);break}else t(m,y);y=y.sibling}y=z4(x,m.mode,S),y.return=m,m=y}return o(m);case Jf:return C=x._init,v(m,y,C(x._payload),S)}if(ky(x))return p(m,y,x,S);if(Py(x))return g(m,y,x,S);pw(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(m,y.sibling),y=i(y,x),y.return=m,m=y):(n(m,y),y=B4(x,m.mode,S),y.return=m,m=y),o(m)):n(m,y)}return v}var mg=WH(!0),VH=WH(!1),vw=ld(null),gw=null,yg=null,Xk=null;function Zk(){Xk=yg=gw=null}function Qk(e){var t=vw.current;Ei(vw),e._currentValue=t}function Jk(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function bg(e,t){gw=e,Xk=yg=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vs=!0),e.firstContext=null)}function hl(e){var t=e._currentValue;if(Xk!==e)if(e={context:e,memoizedValue:t,next:null},yg===null){if(gw===null)throw Error(Dt(308));yg=e,gw.dependencies={lanes:0,firstContext:e}}else yg=yg.next=e;return t}var Qh=null;function e4(e){Qh===null?Qh=[e]:Qh.push(e)}function qH(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,e4(t)):(n.next=i.next,i.next=n),t.interleaved=n,Xu(e,r)}function Xu(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var fd=!1;function t4(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function UH(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Zu(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dd(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pr&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Xu(e,n)}return i=r.interleaved,i===null?(t.next=t,e4(r)):(t.next=i.next,i.next=t),r.interleaved=t,Xu(e,n)}function mw(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vk(e,n)}}function GH(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function yw(e,t,n,r){var i=e.updateQueue;fd=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,u=c=l=null,s=a;do{var d=s.lane,h=s.eventTime;if((r&d)===d){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(d=t,h=n,g.tag){case 1:if(p=g.payload,typeof p=="function"){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,d=typeof p=="function"?p.call(h,f,d):p,d==null)break e;f=Bi({},f,d);break e;case 2:fd=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=h,l=f):u=u.next=h,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);tp|=o,e.lanes=o,e.memoizedState=f}}function KH(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=o4.transition;o4.transition={};try{e(!1),t()}finally{Kr=n,o4.transition=r}}function hW(){return pl().memoizedState}function Fwe(e,t,n){var r=gd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},pW(e))vW(t,n);else if(n=qH(e,t,n,r),n!==null){var i=Yo();pc(n,e,r,i),gW(n,t,r)}}function Bwe(e,t,n){var r=gd(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(pW(e))vW(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,cc(s,o)){var l=t.interleaved;l===null?(i.next=i,e4(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch(c){}finally{}n=qH(e,t,i,r),n!==null&&(i=Yo(),pc(n,e,r,i),gW(n,t,r))}}function pW(e){var t=e.alternate;return e===Hi||t!==null&&t===Hi}function vW(e,t){a1=Sw=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gW(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vk(e,n)}}var Ew={readContext:hl,useCallback:Po,useContext:Po,useEffect:Po,useImperativeHandle:Po,useInsertionEffect:Po,useLayoutEffect:Po,useMemo:Po,useReducer:Po,useRef:Po,useState:Po,useDebugValue:Po,useDeferredValue:Po,useTransition:Po,useMutableSource:Po,useSyncExternalStore:Po,useId:Po,unstable_isNewReconciler:!1},zwe={readContext:hl,useCallback:function(e,t){return Jc().memoizedState=[e,t===void 0?null:t],e},useContext:hl,useEffect:aW,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ww(4194308,4,lW.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ww(4194308,4,e,t)},useInsertionEffect:function(e,t){return ww(4,2,e,t)},useMemo:function(e,t){var n=Jc();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jc();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fwe.bind(null,Hi,e),[r.memoizedState,e]},useRef:function(e){var t=Jc();return e={current:e},t.memoizedState=e},useState:rW,useDebugValue:h4,useDeferredValue:function(e){return Jc().memoizedState=e},useTransition:function(){var e=rW(!1),t=e[0];return e=Dwe.bind(null,e[1]),Jc().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Hi,i=Jc();if(ki){if(n===void 0)throw Error(Dt(407));n=n()}else{if(n=t(),Qa===null)throw Error(Dt(349));ep&30||QH(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,aW(eW.bind(null,r,a,e),[e]),r.flags|=2048,l1(9,JH.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Jc(),t=Qa.identifierPrefix;if(ki){var n=Yu,r=Ku;n=(r&~(1<<32-lc(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=o1++,0")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{KM=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?My(e):""}function vSe(e){switch(e.tag){case 5:return My(e.type);case 16:return My("Lazy");case 13:return My("Suspense");case 19:return My("SuspenseList");case 0:case 2:case 15:return e=YM(e.type,!1),e;case 11:return e=YM(e.type.render,!1),e;case 1:return e=YM(e.type,!0),e;default:return""}}function XM(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 ng:return"Fragment";case tg:return"Portal";case HM:return"Profiler";case zM:return"StrictMode";case VM:return"Suspense";case qM:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uz:return(e.displayName||"Context")+".Consumer";case cz:return(e._context.displayName||"Context")+".Provider";case WM:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case UM:return t=e.displayName||null,t!==null?t:XM(e.type)||"Memo";case Jf:t=e._payload,e=e._init;try{return XM(e(t))}catch(n){}}return null}function gSe(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 XM(t);case 8:return t===zM?"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 ed(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hz(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mSe(e){var t=hz(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function LS(e){e._valueTracker||(e._valueTracker=mSe(e))}function pz(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hz(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function jS(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ZM(e,t){var n=t.checked;return Bi({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function vz(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ed(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 gz(e,t){t=t.checked,t!=null&&BM(e,"checked",t,!1)}function QM(e,t){gz(e,t);var n=ed(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")?JM(e,t.type,n):t.hasOwnProperty("defaultValue")&&JM(e,t.type,ed(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mz(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 JM(e,t,n){(t!=="number"||jS(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ky=Array.isArray;function rg(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=DS.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ty(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ry={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ySe=["Webkit","ms","Moz","O"];Object.keys(Ry).forEach(function(e){ySe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ry[t]=Ry[e]})});function Cz(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ry.hasOwnProperty(e)&&Ry[e]?(""+t).trim():t+"px"}function Ez(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Cz(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var bSe=Bi({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nk(e,t){if(t){if(bSe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Dt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Dt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Dt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Dt(62))}}function rk(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ik=null;function ak(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ok=null,ig=null,ag=null;function Oz(e){if(e=e1(e)){if(typeof ok!="function")throw Error(Dt(280));var t=e.stateNode;t&&(t=sw(t),ok(e.stateNode,e.type,t))}}function _z(e){ig?ag?ag.push(e):ag=[e]:ig=e}function $z(){if(ig){var e=ig,t=ag;if(ag=ig=null,Oz(e),t)for(e=0;e>>=0,e===0?32:31-(kSe(e)/TSe|0)|0}var WS=64,VS=4194304;function Ly(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qS(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Ly(s):(a&=o,a!==0&&(r=Ly(a)))}else o=n&~i,o!==0?r=Ly(o):a!==0&&(r=Ly(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function jy(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lc(t),e[t]=n}function NSe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=qy),tH=" ",nH=!1;function rH(e,t){switch(e){case"keyup":return cwe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iH(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lg=!1;function fwe(e,t){switch(e){case"compositionend":return iH(t);case"keypress":return t.which!==32?null:(nH=!0,tH);case"textInput":return e=t.data,e===tH&&nH?null:e;default:return null}}function dwe(e,t){if(lg)return e==="compositionend"||!Ek&&rH(e,t)?(e=Yz(),XS=yk=ad=null,lg=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fH(n)}}function hH(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hH(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pH(){for(var e=window,t=jS();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=jS(e.document)}return t}function $k(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Swe(e){var t=pH(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hH(n.ownerDocument.documentElement,n)){if(r!==null&&$k(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=dH(n,a);var o=dH(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,cg=null,Pk=null,Yy=null,Mk=!1;function vH(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mk||cg==null||cg!==jS(r)||(r=cg,"selectionStart"in r&&$k(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yy&&Ky(Yy,r)||(Yy=r,r=iw(Pk,"onSelect"),0pg||(e.current=zk[pg],zk[pg]=null,pg--)}function vi(e,t){pg++,zk[pg]=e.current,e.current=t}var cd={},$o=ld(cd),hs=ld(!1),Xh=cd;function vg(e,t){var n=e.type.contextTypes;if(!n)return cd;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ps(e){return e=e.childContextTypes,e!=null}function lw(){Ei(hs),Ei($o)}function kH(e,t,n){if($o.current!==cd)throw Error(Dt(168));vi($o,t),vi(hs,n)}function TH(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Dt(108,gSe(e)||"Unknown",i));return Bi({},n,r)}function cw(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cd,Xh=$o.current,vi($o,e),vi(hs,hs.current),!0}function RH(e,t,n){var r=e.stateNode;if(!r)throw Error(Dt(169));n?(e=TH(e,t,Xh),r.__reactInternalMemoizedMergedChildContext=e,Ei(hs),Ei($o),vi($o,e)):Ei(hs),vi(hs,n)}var Gu=null,uw=!1,Hk=!1;function IH(e){Gu===null?Gu=[e]:Gu.push(e)}function Iwe(e){uw=!0,IH(e)}function ud(){if(!Hk&&Gu!==null){Hk=!0;var e=0,t=Kr;try{var n=Gu;for(Kr=1;e>=o,i-=o,Ku=1<<32-lc(t)+i|n<O?($=E,E=null):$=E.sibling;var P=d(m,E,x[O],S);if(P===null){E===null&&(E=$);break}e&&E&&P.alternate===null&&t(m,E),y=a(P,y,O),C===null?w=P:C.sibling=P,C=P,E=$}if(O===x.length)return n(m,E),ki&&Qh(m,O),w;if(E===null){for(;OO?($=E,E=null):$=E.sibling;var M=d(m,E,P.value,S);if(M===null){E===null&&(E=$);break}e&&E&&M.alternate===null&&t(m,E),y=a(M,y,O),C===null?w=M:C.sibling=M,C=M,E=$}if(P.done)return n(m,E),ki&&Qh(m,O),w;if(E===null){for(;!P.done;O++,P=x.next())P=f(m,P.value,S),P!==null&&(y=a(P,y,O),C===null?w=P:C.sibling=P,C=P);return ki&&Qh(m,O),w}for(E=r(m,E);!P.done;O++,P=x.next())P=h(E,m,O,P.value,S),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?O:P.key),y=a(P,y,O),C===null?w=P:C.sibling=P,C=P);return e&&E.forEach(function(k){return t(m,k)}),ki&&Qh(m,O),w}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===ng&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case NS:e:{for(var w=x.key,C=y;C!==null;){if(C.key===w){if(w=x.type,w===ng){if(C.tag===7){n(m,C.sibling),y=i(C,x.props.children),y.return=m,m=y;break e}}else if(C.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Jf&&FH(w)===C.type){n(m,C.sibling),y=i(C,x.props),y.ref=t1(m,C,x),y.return=m,m=y;break e}n(m,C);break}else t(m,C);C=C.sibling}x.type===ng?(y=op(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Dw(x.type,x.key,x.props,null,m.mode,S),S.ref=t1(m,y,x),S.return=m,m=S)}return o(m);case tg:e:{for(C=x.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(m,y.sibling),y=i(y,x.children||[]),y.return=m,m=y;break e}else{n(m,y);break}else t(m,y);y=y.sibling}y=F4(x,m.mode,S),y.return=m,m=y}return o(m);case Jf:return C=x._init,g(m,y,C(x._payload),S)}if(ky(x))return p(m,y,x,S);if(Py(x))return v(m,y,x,S);pw(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(m,y.sibling),y=i(y,x),y.return=m,m=y):(n(m,y),y=D4(x,m.mode,S),y.return=m,m=y),o(m)):n(m,y)}return g}var bg=BH(!0),zH=BH(!1),vw=ld(null),gw=null,xg=null,Kk=null;function Yk(){Kk=xg=gw=null}function Xk(e){var t=vw.current;Ei(vw),e._currentValue=t}function Zk(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sg(e,t){gw=e,Kk=xg=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vs=!0),e.firstContext=null)}function hl(e){var t=e._currentValue;if(Kk!==e)if(e={context:e,memoizedValue:t,next:null},xg===null){if(gw===null)throw Error(Dt(308));xg=e,gw.dependencies={lanes:0,firstContext:e}}else xg=xg.next=e;return t}var Jh=null;function Qk(e){Jh===null?Jh=[e]:Jh.push(e)}function HH(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Qk(t)):(n.next=i.next,i.next=n),t.interleaved=n,Xu(e,r)}function Xu(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var fd=!1;function Jk(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function WH(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Zu(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dd(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Mr&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Xu(e,n)}return i=r.interleaved,i===null?(t.next=t,Qk(r)):(t.next=i.next,i.next=t),r.interleaved=t,Xu(e,n)}function mw(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hk(e,n)}}function VH(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function yw(e,t,n,r){var i=e.updateQueue;fd=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,u=c=l=null,s=a;do{var d=s.lane,h=s.eventTime;if((r&d)===d){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(d=t,h=n,v.tag){case 1:if(p=v.payload,typeof p=="function"){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=v.payload,d=typeof p=="function"?p.call(h,f,d):p,d==null)break e;f=Bi({},f,d);break e;case 2:fd=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=h,l=f):u=u.next=h,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);np|=o,e.lanes=o,e.memoizedState=f}}function qH(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=i4.transition;i4.transition={};try{e(!1),t()}finally{Kr=n,i4.transition=r}}function uW(){return pl().memoizedState}function jwe(e,t,n){var r=gd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fW(e))dW(t,n);else if(n=HH(e,t,n,r),n!==null){var i=Yo();pc(n,e,r,i),hW(n,t,r)}}function Dwe(e,t,n){var r=gd(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fW(e))dW(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,cc(s,o)){var l=t.interleaved;l===null?(i.next=i,Qk(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch(c){}finally{}n=HH(e,t,i,r),n!==null&&(i=Yo(),pc(n,e,r,i),hW(n,t,r))}}function fW(e){var t=e.alternate;return e===Hi||t!==null&&t===Hi}function dW(e,t){a1=Sw=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hW(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hk(e,n)}}var Ew={readContext:hl,useCallback:Po,useContext:Po,useEffect:Po,useImperativeHandle:Po,useInsertionEffect:Po,useLayoutEffect:Po,useMemo:Po,useReducer:Po,useRef:Po,useState:Po,useDebugValue:Po,useDeferredValue:Po,useTransition:Po,useMutableSource:Po,useSyncExternalStore:Po,useId:Po,unstable_isNewReconciler:!1},Fwe={readContext:hl,useCallback:function(e,t){return Jc().memoizedState=[e,t===void 0?null:t],e},useContext:hl,useEffect:nW,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ww(4194308,4,aW.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ww(4194308,4,e,t)},useInsertionEffect:function(e,t){return ww(4,2,e,t)},useMemo:function(e,t){var n=Jc();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jc();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=jwe.bind(null,Hi,e),[r.memoizedState,e]},useRef:function(e){var t=Jc();return e={current:e},t.memoizedState=e},useState:eW,useDebugValue:f4,useDeferredValue:function(e){return Jc().memoizedState=e},useTransition:function(){var e=eW(!1),t=e[0];return e=Lwe.bind(null,e[1]),Jc().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Hi,i=Jc();if(ki){if(n===void 0)throw Error(Dt(407));n=n()}else{if(n=t(),Qa===null)throw Error(Dt(349));tp&30||YH(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,nW(ZH.bind(null,r,a,e),[e]),r.flags|=2048,l1(9,XH.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Jc(),t=Qa.identifierPrefix;if(ki){var n=Yu,r=Ku;n=(r&~(1<<32-lc(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=o1++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Zc]=t,e[Jy]=r,LW(e,t,!1,!1),t.stateNode=e;e:{switch(o=ak(n,r),n){case"dialog":Ci("cancel",e),Ci("close",e),i=r;break;case"iframe":case"object":case"embed":Ci("load",e),i=r;break;case"video":case"audio":for(i=0;iEg&&(t.flags|=128,r=!0,c1(a,!1),t.lanes=4194304)}else{if(!r)if(e=bw(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),c1(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!ki)return Mo(t),null}else 2*fa()-a.renderingStartTime>Eg&&n!==1073741824&&(t.flags|=128,r=!0,c1(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=fa(),t.sibling=null,n=zi.current,vi(zi,r?n&1|2:n&1),t):(Mo(t),null);case 22:case 23:return j4(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ws&1073741824&&(Mo(t),t.subtreeFlags&6&&(t.flags|=8192)):Mo(t),null;case 24:return null;case 25:return null}throw Error(Dt(156,t.tag))}function Ywe(e,t){switch(Uk(t),t.tag){case 1:return ps(t.type)&&lw(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xg(),Ei(hs),Ei($o),a4(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return r4(t),null;case 13:if(Ei(zi),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Dt(340));gg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ei(zi),null;case 4:return xg(),null;case 10:return Qk(t.type._context),null;case 22:case 23:return j4(),null;case 24:return null;default:return null}}var Pw=!1,ko=!1,Xwe=typeof WeakSet=="function"?WeakSet:Set,hn=null;function wg(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ea(e,t,r)}else n.current=null}function O4(e,t,n){try{n()}catch(r){ea(e,t,r)}}var FW=!1;function Zwe(e,t){if(jk=KS,e=mH(),Mk(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(S){n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++c===i&&(s=o),d===a&&++u===r&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dk={focusedElem:e,selectionRange:n},KS=!1,hn=t;hn!==null;)if(t=hn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,hn=e;else for(;hn!==null;){t=hn;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,v=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:fc(t.type,g),v);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Dt(163))}}catch(S){ea(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,hn=e;break}hn=t.return}return p=FW,FW=!1,p}function u1(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&O4(t,n,a)}i=i.next}while(i!==r)}}function Mw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _4(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function BW(e){var t=e.alternate;t!==null&&(e.alternate=null,BW(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zc],delete t[Jy],delete t[Hk],delete t[Iwe],delete t[Awe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function zW(e){return e.tag===5||e.tag===3||e.tag===4}function HW(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zW(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $4(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ow));else if(r!==4&&(e=e.child,e!==null))for($4(e,t,n),e=e.sibling;e!==null;)$4(e,t,n),e=e.sibling}function P4(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(P4(e,t,n),e=e.sibling;e!==null;)P4(e,t,n),e=e.sibling}var fo=null,dc=!1;function hd(e,t,n){for(n=n.child;n!==null;)WW(e,t,n),n=n.sibling}function WW(e,t,n){if(Xc&&typeof Xc.onCommitFiberUnmount=="function")try{Xc.onCommitFiberUnmount(HS,n)}catch(s){}switch(n.tag){case 5:ko||wg(n,t);case 6:var r=fo,i=dc;fo=null,hd(e,t,n),fo=r,dc=i,fo!==null&&(dc?(e=fo,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fo.removeChild(n.stateNode));break;case 18:fo!==null&&(dc?(e=fo,n=n.stateNode,e.nodeType===8?zk(e.parentNode,n):e.nodeType===1&&zk(e,n),Hy(e)):zk(fo,n.stateNode));break;case 4:r=fo,i=dc,fo=n.stateNode.containerInfo,dc=!0,hd(e,t,n),fo=r,dc=i;break;case 0:case 11:case 14:case 15:if(!ko&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&O4(n,t,o),i=i.next}while(i!==r)}hd(e,t,n);break;case 1:if(!ko&&(wg(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ea(n,t,s)}hd(e,t,n);break;case 21:hd(e,t,n);break;case 22:n.mode&1?(ko=(r=ko)||n.memoizedState!==null,hd(e,t,n),ko=r):hd(e,t,n);break;default:hd(e,t,n)}}function VW(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Xwe),t.forEach(function(r){var i=oCe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function hc(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=fa()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Jwe(r/1960))-r,10e?16:e,vd===null)var r=!1;else{if(e=vd,vd=null,Aw=0,Pr&6)throw Error(Dt(331));var i=Pr;for(Pr|=4,hn=e.current;hn!==null;){var a=hn,o=a.child;if(hn.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lfa()-T4?rp(e,0):k4|=n),ms(e,t)}function rV(e,t){t===0&&(e.mode&1?(t=VS,VS<<=1,!(VS&130023424)&&(VS=4194304)):t=1);var n=Yo();e=Xu(e,t),e!==null&&(jy(e,t,n),ms(e,n))}function aCe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rV(e,n)}function oCe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Dt(314))}r!==null&&r.delete(t),rV(e,n)}var iV;iV=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||hs.current)vs=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vs=!1,Gwe(e,t,n);vs=!!(e.flags&131072)}else vs=!1,ki&&t.flags&1048576&&jH(t,dw,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$w(e,t),e=t.pendingProps;var i=hg(t,$o.current);bg(t,n),i=l4(null,t,r,e,i,n);var a=c4();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ps(r)?(a=!0,cw(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,t4(t),i.updater=Ow,t.stateNode=i,i._reactInternals=t,v4(t,r,e,n),t=b4(null,t,r,!0,a,n)):(t.tag=0,ki&&a&&qk(t),Ko(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch($w(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=lCe(r),e=fc(r,e),i){case 0:t=y4(null,t,r,e,n);break e;case 1:t=kW(null,t,r,e,n);break e;case 11:t=OW(null,t,r,e,n);break e;case 14:t=_W(null,t,r,fc(r.type,e),n);break e}throw Error(Dt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fc(r,i),y4(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fc(r,i),kW(e,t,r,i,n);case 3:e:{if(TW(t),e===null)throw Error(Dt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,UH(e,t),yw(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Sg(Error(Dt(423)),t),t=RW(e,t,r,n,i);break e}else if(r!==i){i=Sg(Error(Dt(424)),t),t=RW(e,t,r,n,i);break e}else for(Hs=sd(t.stateNode.containerInfo.firstChild),zs=t,ki=!0,uc=null,n=VH(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(gg(),r===i){t=Qu(e,t,n);break e}Ko(e,t,r,n)}t=t.child}return t;case 5:return YH(t),e===null&&Kk(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Fk(r,i)?o=null:a!==null&&Fk(r,a)&&(t.flags|=32),MW(e,t),Ko(e,t,o,n),t.child;case 6:return e===null&&Kk(t),null;case 13:return IW(e,t,n);case 4:return n4(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mg(t,null,r,n):Ko(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fc(r,i),OW(e,t,r,i,n);case 7:return Ko(e,t,t.pendingProps,n),t.child;case 8:return Ko(e,t,t.pendingProps.children,n),t.child;case 12:return Ko(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,vi(vw,r._currentValue),r._currentValue=o,a!==null)if(cc(a.value,o)){if(a.children===i.children&&!hs.current){t=Qu(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Zu(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Jk(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Dt(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Jk(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ko(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,bg(t,n),i=hl(i),r=r(i),t.flags|=1,Ko(e,t,r,n),t.child;case 14:return r=t.type,i=fc(r,t.pendingProps),i=fc(r.type,i),_W(e,t,r,i,n);case 15:return $W(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fc(r,i),$w(e,t),t.tag=1,ps(r)?(e=!0,cw(t)):e=!1,bg(t,n),yW(t,r,i),v4(t,r,i,n),b4(null,t,r,!0,e,n);case 19:return NW(e,t,n);case 22:return PW(e,t,n)}throw Error(Dt(156,t.tag))};function aV(e,t){return Dz(e,t)}function sCe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gl(e,t,n,r){return new sCe(e,t,n,r)}function F4(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lCe(e){if(typeof e=="function")return F4(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qM)return 11;if(e===KM)return 14}return 2}function yd(e,t){var n=e.alternate;return n===null?(n=gl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dw(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")F4(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case eg:return ap(n.children,i,a,t);case WM:o=8,i|=8;break;case VM:return e=gl(12,n,t,i|2),e.elementType=VM,e.lanes=a,e;case UM:return e=gl(13,n,t,i),e.elementType=UM,e.lanes=a,e;case GM:return e=gl(19,n,t,i),e.elementType=GM,e.lanes=a,e;case pz:return Fw(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dz:o=10;break e;case hz:o=9;break e;case qM:o=11;break e;case KM:o=14;break e;case Jf:o=16,r=null;break e}throw Error(Dt(130,e==null?e:typeof e,""))}return t=gl(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function ap(e,t,n,r){return e=gl(7,e,r,t),e.lanes=n,e}function Fw(e,t,n,r){return e=gl(22,e,r,t),e.elementType=pz,e.lanes=n,e.stateNode={isHidden:!1},e}function B4(e,t,n){return e=gl(6,e,null,t),e.lanes=n,e}function z4(e,t,n){return t=gl(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cCe(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pk(0),this.expirationTimes=pk(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pk(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function H4(e,t,n,r,i,a,o,s,l){return e=new cCe(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=gl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},t4(a),e}function uCe(e,t,n){var r=3<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Zc]=t,e[Jy]=r,IW(e,t,!1,!1),t.stateNode=e;e:{switch(o=rk(n,r),n){case"dialog":Ci("cancel",e),Ci("close",e),i=r;break;case"iframe":case"object":case"embed":Ci("load",e),i=r;break;case"video":case"audio":for(i=0;i_g&&(t.flags|=128,r=!0,c1(a,!1),t.lanes=4194304)}else{if(!r)if(e=bw(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),c1(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!ki)return Mo(t),null}else 2*fa()-a.renderingStartTime>_g&&n!==1073741824&&(t.flags|=128,r=!0,c1(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=fa(),t.sibling=null,n=zi.current,vi(zi,r?n&1|2:n&1),t):(Mo(t),null);case 22:case 23:return N4(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ws&1073741824&&(Mo(t),t.subtreeFlags&6&&(t.flags|=8192)):Mo(t),null;case 24:return null;case 25:return null}throw Error(Dt(156,t.tag))}function Gwe(e,t){switch(Vk(t),t.tag){case 1:return ps(t.type)&&lw(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wg(),Ei(hs),Ei($o),r4(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return t4(t),null;case 13:if(Ei(zi),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Dt(340));yg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ei(zi),null;case 4:return wg(),null;case 10:return Xk(t.type._context),null;case 22:case 23:return N4(),null;case 24:return null;default:return null}}var Pw=!1,ko=!1,Kwe=typeof WeakSet=="function"?WeakSet:Set,pn=null;function Eg(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ea(e,t,r)}else n.current=null}function C4(e,t,n){try{n()}catch(r){ea(e,t,r)}}var LW=!1;function Ywe(e,t){if(Nk=KS,e=pH(),$k(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(S){n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++c===i&&(s=o),d===a&&++u===r&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lk={focusedElem:e,selectionRange:n},KS=!1,pn=t;pn!==null;)if(t=pn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pn=e;else for(;pn!==null;){t=pn;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,g=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:fc(t.type,v),g);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Dt(163))}}catch(S){ea(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,pn=e;break}pn=t.return}return p=LW,LW=!1,p}function u1(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&C4(t,n,a)}i=i.next}while(i!==r)}}function Mw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function E4(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jW(e){var t=e.alternate;t!==null&&(e.alternate=null,jW(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zc],delete t[Jy],delete t[Bk],delete t[Twe],delete t[Rwe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function DW(e){return e.tag===5||e.tag===3||e.tag===4}function FW(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||DW(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function O4(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ow));else if(r!==4&&(e=e.child,e!==null))for(O4(e,t,n),e=e.sibling;e!==null;)O4(e,t,n),e=e.sibling}function _4(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_4(e,t,n),e=e.sibling;e!==null;)_4(e,t,n),e=e.sibling}var fo=null,dc=!1;function hd(e,t,n){for(n=n.child;n!==null;)BW(e,t,n),n=n.sibling}function BW(e,t,n){if(Xc&&typeof Xc.onCommitFiberUnmount=="function")try{Xc.onCommitFiberUnmount(HS,n)}catch(s){}switch(n.tag){case 5:ko||Eg(n,t);case 6:var r=fo,i=dc;fo=null,hd(e,t,n),fo=r,dc=i,fo!==null&&(dc?(e=fo,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fo.removeChild(n.stateNode));break;case 18:fo!==null&&(dc?(e=fo,n=n.stateNode,e.nodeType===8?Fk(e.parentNode,n):e.nodeType===1&&Fk(e,n),Hy(e)):Fk(fo,n.stateNode));break;case 4:r=fo,i=dc,fo=n.stateNode.containerInfo,dc=!0,hd(e,t,n),fo=r,dc=i;break;case 0:case 11:case 14:case 15:if(!ko&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&C4(n,t,o),i=i.next}while(i!==r)}hd(e,t,n);break;case 1:if(!ko&&(Eg(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ea(n,t,s)}hd(e,t,n);break;case 21:hd(e,t,n);break;case 22:n.mode&1?(ko=(r=ko)||n.memoizedState!==null,hd(e,t,n),ko=r):hd(e,t,n);break;default:hd(e,t,n)}}function zW(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kwe),t.forEach(function(r){var i=iCe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function hc(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=fa()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zwe(r/1960))-r,10e?16:e,vd===null)var r=!1;else{if(e=vd,vd=null,Aw=0,Mr&6)throw Error(Dt(331));var i=Mr;for(Mr|=4,pn=e.current;pn!==null;){var a=pn,o=a.child;if(pn.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lfa()-M4?ip(e,0):P4|=n),ms(e,t)}function eV(e,t){t===0&&(e.mode&1?(t=VS,VS<<=1,!(VS&130023424)&&(VS=4194304)):t=1);var n=Yo();e=Xu(e,t),e!==null&&(jy(e,t,n),ms(e,n))}function rCe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eV(e,n)}function iCe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Dt(314))}r!==null&&r.delete(t),eV(e,n)}var tV;tV=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||hs.current)vs=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vs=!1,qwe(e,t,n);vs=!!(e.flags&131072)}else vs=!1,ki&&t.flags&1048576&&AH(t,dw,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$w(e,t),e=t.pendingProps;var i=vg(t,$o.current);Sg(t,n),i=o4(null,t,r,e,i,n);var a=s4();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ps(r)?(a=!0,cw(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Jk(t),i.updater=Ow,t.stateNode=i,i._reactInternals=t,h4(t,r,e,n),t=m4(null,t,r,!0,a,n)):(t.tag=0,ki&&a&&Wk(t),Ko(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch($w(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=oCe(r),e=fc(r,e),i){case 0:t=g4(null,t,r,e,n);break e;case 1:t=$W(null,t,r,e,n);break e;case 11:t=wW(null,t,r,e,n);break e;case 14:t=CW(null,t,r,fc(r.type,e),n);break e}throw Error(Dt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fc(r,i),g4(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fc(r,i),$W(e,t,r,i,n);case 3:e:{if(PW(t),e===null)throw Error(Dt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,WH(e,t),yw(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Cg(Error(Dt(423)),t),t=MW(e,t,r,n,i);break e}else if(r!==i){i=Cg(Error(Dt(424)),t),t=MW(e,t,r,n,i);break e}else for(Hs=sd(t.stateNode.containerInfo.firstChild),zs=t,ki=!0,uc=null,n=zH(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yg(),r===i){t=Qu(e,t,n);break e}Ko(e,t,r,n)}t=t.child}return t;case 5:return UH(t),e===null&&Uk(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,jk(r,i)?o=null:a!==null&&jk(r,a)&&(t.flags|=32),_W(e,t),Ko(e,t,o,n),t.child;case 6:return e===null&&Uk(t),null;case 13:return kW(e,t,n);case 4:return e4(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bg(t,null,r,n):Ko(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fc(r,i),wW(e,t,r,i,n);case 7:return Ko(e,t,t.pendingProps,n),t.child;case 8:return Ko(e,t,t.pendingProps.children,n),t.child;case 12:return Ko(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,vi(vw,r._currentValue),r._currentValue=o,a!==null)if(cc(a.value,o)){if(a.children===i.children&&!hs.current){t=Qu(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Zu(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Zk(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Dt(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Zk(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ko(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Sg(t,n),i=hl(i),r=r(i),t.flags|=1,Ko(e,t,r,n),t.child;case 14:return r=t.type,i=fc(r,t.pendingProps),i=fc(r.type,i),CW(e,t,r,i,n);case 15:return EW(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fc(r,i),$w(e,t),t.tag=1,ps(r)?(e=!0,cw(t)):e=!1,Sg(t,n),vW(t,r,i),h4(t,r,i,n),m4(null,t,r,!0,e,n);case 19:return RW(e,t,n);case 22:return OW(e,t,n)}throw Error(Dt(156,t.tag))};function nV(e,t){return Nz(e,t)}function aCe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gl(e,t,n,r){return new aCe(e,t,n,r)}function j4(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oCe(e){if(typeof e=="function")return j4(e)?1:0;if(e!=null){if(e=e.$$typeof,e===WM)return 11;if(e===UM)return 14}return 2}function yd(e,t){var n=e.alternate;return n===null?(n=gl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dw(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")j4(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ng:return op(n.children,i,a,t);case zM:o=8,i|=8;break;case HM:return e=gl(12,n,t,i|2),e.elementType=HM,e.lanes=a,e;case VM:return e=gl(13,n,t,i),e.elementType=VM,e.lanes=a,e;case qM:return e=gl(19,n,t,i),e.elementType=qM,e.lanes=a,e;case fz:return Fw(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cz:o=10;break e;case uz:o=9;break e;case WM:o=11;break e;case UM:o=14;break e;case Jf:o=16,r=null;break e}throw Error(Dt(130,e==null?e:typeof e,""))}return t=gl(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function op(e,t,n,r){return e=gl(7,e,r,t),e.lanes=n,e}function Fw(e,t,n,r){return e=gl(22,e,r,t),e.elementType=fz,e.lanes=n,e.stateNode={isHidden:!1},e}function D4(e,t,n){return e=gl(6,e,null,t),e.lanes=n,e}function F4(e,t,n){return t=gl(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sCe(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dk(0),this.expirationTimes=dk(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dk(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function B4(e,t,n,r,i,a,o,s,l){return e=new sCe(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=gl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jk(a),e}function lCe(e,t,n){var r=31&&arguments[1]!==void 0?arguments[1]:{},n=[];return we.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(da(r)):vV(r)&&r.props?n=n.concat(da(r.props.children,t)):n.push(r))}),n}var U4={},yCe=function(t){};function bCe(e,t){}function xCe(e,t){}function SCe(){U4={}}function gV(e,t,n){!t&&!U4[n]&&(e(!1,n),U4[n]=!0)}function zr(e,t){gV(bCe,e,t)}function wCe(e,t){gV(xCe,e,t)}zr.preMessage=yCe,zr.resetWarned=SCe,zr.noteOnce=wCe;function g1(e){return e instanceof HTMLElement||e instanceof SVGElement}function G4(e){return e&&Bt(e)==="object"&&g1(e.nativeElement)?e.nativeElement:g1(e)?e:null}function m1(e){var t=G4(e);if(t)return t;if(e instanceof we.Component){var n;return(n=v1.findDOMNode)===null||n===void 0?void 0:n.call(v1,e)}return null}var mV={exports:{}},Yr={};/** +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o1&&arguments[1]!==void 0?arguments[1]:{},n=[];return we.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(da(r)):dV(r)&&r.props?n=n.concat(da(r.props.children,t)):n.push(r))}),n}var V4={},gCe=function(t){};function mCe(e,t){}function yCe(e,t){}function bCe(){V4={}}function hV(e,t,n){!t&&!V4[n]&&(e(!1,n),V4[n]=!0)}function zr(e,t){hV(mCe,e,t)}function xCe(e,t){hV(yCe,e,t)}zr.preMessage=gCe,zr.resetWarned=bCe,zr.noteOnce=xCe;function g1(e){return e instanceof HTMLElement||e instanceof SVGElement}function q4(e){return e&&Bt(e)==="object"&&g1(e.nativeElement)?e.nativeElement:g1(e)?e:null}function m1(e){var t=q4(e);if(t)return t;if(e instanceof we.Component){var n;return(n=v1.findDOMNode)===null||n===void 0?void 0:n.call(v1,e)}return null}var pV={exports:{}},Yr={};/** * @license React * react-is.production.min.js * @@ -49,18 +49,18 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var K4=Symbol.for("react.element"),Y4=Symbol.for("react.portal"),Uw=Symbol.for("react.fragment"),Gw=Symbol.for("react.strict_mode"),Kw=Symbol.for("react.profiler"),Yw=Symbol.for("react.provider"),Xw=Symbol.for("react.context"),CCe=Symbol.for("react.server_context"),Zw=Symbol.for("react.forward_ref"),Qw=Symbol.for("react.suspense"),Jw=Symbol.for("react.suspense_list"),eC=Symbol.for("react.memo"),tC=Symbol.for("react.lazy"),ECe=Symbol.for("react.offscreen"),yV;yV=Symbol.for("react.module.reference");function ml(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case K4:switch(e=e.type,e){case Uw:case Kw:case Gw:case Qw:case Jw:return e;default:switch(e=e&&e.$$typeof,e){case CCe:case Xw:case Zw:case tC:case eC:case Yw:return e;default:return t}}case Y4:return t}}}Yr.ContextConsumer=Xw,Yr.ContextProvider=Yw,Yr.Element=K4,Yr.ForwardRef=Zw,Yr.Fragment=Uw,Yr.Lazy=tC,Yr.Memo=eC,Yr.Portal=Y4,Yr.Profiler=Kw,Yr.StrictMode=Gw,Yr.Suspense=Qw,Yr.SuspenseList=Jw,Yr.isAsyncMode=function(){return!1},Yr.isConcurrentMode=function(){return!1},Yr.isContextConsumer=function(e){return ml(e)===Xw},Yr.isContextProvider=function(e){return ml(e)===Yw},Yr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===K4},Yr.isForwardRef=function(e){return ml(e)===Zw},Yr.isFragment=function(e){return ml(e)===Uw},Yr.isLazy=function(e){return ml(e)===tC},Yr.isMemo=function(e){return ml(e)===eC},Yr.isPortal=function(e){return ml(e)===Y4},Yr.isProfiler=function(e){return ml(e)===Kw},Yr.isStrictMode=function(e){return ml(e)===Gw},Yr.isSuspense=function(e){return ml(e)===Qw},Yr.isSuspenseList=function(e){return ml(e)===Jw},Yr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Uw||e===Kw||e===Gw||e===Qw||e===Jw||e===ECe||typeof e=="object"&&e!==null&&(e.$$typeof===tC||e.$$typeof===eC||e.$$typeof===Yw||e.$$typeof===Xw||e.$$typeof===Zw||e.$$typeof===yV||e.getModuleId!==void 0)},Yr.typeOf=ml,mV.exports=Yr;var X4=mV.exports;function op(e,t,n){var r=b.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var y1=function(t,n){typeof t=="function"?t(n):Bt(t)==="object"&&t&&"current"in t&&(t.current=n)},po=function(){for(var t=arguments.length,n=new Array(t),r=0;r0},e.prototype.connect_=function(){!J4||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),RCe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!J4||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=TCe.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),xV=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),CV=typeof WeakMap!="undefined"?new WeakMap:new bV,EV=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ICe.getInstance(),r=new WCe(t,n,this);CV.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){EV.prototype[e]=function(){var t;return(t=CV.get(this))[e].apply(t,arguments)}});var VCe=function(){return typeof nC.ResizeObserver!="undefined"?nC.ResizeObserver:EV}(),xd=new Map;function qCe(e){e.forEach(function(t){var n,r=t.target;(n=xd.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var OV=new VCe(qCe);function UCe(e,t){xd.has(e)||(xd.set(e,new Set),OV.observe(e)),xd.get(e).add(t)}function GCe(e,t){xd.has(e)&&(xd.get(e).delete(t),xd.get(e).size||(OV.unobserve(e),xd.delete(e)))}function rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _V(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;TV+=1;var r=TV;function i(a){if(a===0)RV(r),t();else{var o=MV(function(){i(a-1)});tT.set(r,o)}}return i(n),r};bn.cancel=function(e){var t=tT.get(e);return RV(e),kV(t)};function IV(e){if(Array.isArray(e))return e}function tEe(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function AV(){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 he(e,t){return IV(e)||tEe(e,t)||oC(e,t)||AV()}function x1(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 Ja(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function nT(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 NV="data-rc-order",LV="data-rc-priority",nEe="rc-util-key",rT=new Map;function jV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):nEe}function sC(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function rEe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function iT(e){return Array.from((rT.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function DV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ja())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=rEe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(NV,o),s&&a&&l.setAttribute(LV,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=sC(t),u=c.firstChild;if(r){if(s){var f=(t.styles||iT(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(NV)))return!1;var h=Number(d.getAttribute(LV)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function FV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=sC(t);return(t.styles||iT(n)).find(function(r){return r.getAttribute(jV(t))===e})}function S1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=FV(e,t);if(n){var r=sC(t);r.removeChild(n)}}function iEe(e,t){var n=rT.get(e);if(!n||!nT(document,n)){var r=DV("",t),i=r.parentNode;rT.set(e,i),e.removeChild(r)}}function nf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=sC(n),i=iT(r),a=ae(ae({},n),{},{styles:i});iEe(r,a);var o=FV(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=DV(e,a);return u.setAttribute(jV(a),t),u}function aEe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Vt(e,t){if(e==null)return{};var n,r,i=aEe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(zr(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var f=he(c,2),d=f[1];return i.internalGet(u)[1]0,void 0),BV+=1}return it(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),sT=new oT;function w1(e){var t=Array.isArray(e)?e:[e];return sT.has(t)||sT.set(t,new zV(t)),sT.get(t)}var uEe=new WeakMap,lT={};function fEe(e,t){for(var n=uEe,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=ae(ae({},i),{},(r={},Z(r,$g,t),Z(r,gc,n),r)),s=Object.keys(o).map(function(l){var c=o[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var uC=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},dEe=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=he(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},VV=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var s,l,c=he(o,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var d,h=uC(u,r==null?void 0:r.prefix);i[h]=typeof f=="number"&&!(r!=null&&(d=r.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(h,")")}}),[a,dEe(i,n,{scope:r==null?void 0:r.scope})]},qV=Ja()?b.useLayoutEffect:b.useEffect,Nn=function(t,n){var r=b.useRef(!0);qV(function(){return t(r.current)},n),qV(function(){return r.current=!1,function(){r.current=!0}},[])},sp=function(t,n){Nn(function(r){if(!r)return t()},n)},hEe=ae({},wy),UV=hEe.useInsertionEffect,pEe=function(t,n,r){b.useMemo(t,r),Nn(function(){return n(!0)},r)},vEe=UV?function(e,t,n){return UV(function(){return e(),t()},n)}:pEe,gEe=ae({},wy),mEe=gEe.useInsertionEffect,yEe=function(t){var n=[],r=!1;function i(a){r||n.push(a)}return b.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},bEe=function(){return function(t){t()}},xEe=typeof mEe!="undefined"?yEe:bEe;function uT(e,t,n,r,i){var a=b.useContext(lC),o=a.cache,s=[e].concat(Ne(t)),l=aT(s),c=xEe([l]),u=function(p){o.opUpdate(l,function(g){var v=g||[void 0,void 0],m=he(v,2),y=m[0],x=y===void 0?0:y,S=m[1],w=S,C=w||n(),E=[x,C];return p?p(E):E})};b.useMemo(function(){u()},[l]);var f=o.opGet(l),d=f[1];return vEe(function(){i==null||i(d)},function(h){return u(function(p){var g=he(p,2),v=g[0],m=g[1];return h&&v===0&&(i==null||i(d)),[v+1,m]}),function(){o.opUpdate(l,function(p){var g=p||[],v=he(g,2),m=v[0],y=m===void 0?0:m,x=v[1],S=y-1;return S===0?(c(function(){(h||!o.opGet(l))&&(r==null||r(x,!1))}),null):[y-1,x]})}},[l]),d}var SEe={},wEe="css",lp=new Map;function CEe(e){lp.set(e,(lp.get(e)||0)+1)}function EEe(e,t){if(typeof document!="undefined"){var n=document.querySelectorAll("style[".concat($g,'="').concat(e,'"]'));n.forEach(function(r){if(r[Sd]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var OEe=0;function _Ee(e,t){lp.set(e,(lp.get(e)||0)-1);var n=Array.from(lp.keys()),r=n.filter(function(i){var a=lp.get(i)||0;return a<=0});n.length-r.length>OEe&&r.forEach(function(i){EEe(i,t),lp.delete(i)})}var GV=function(t,n,r,i){var a=r.getDerivativeToken(t),o=ae(ae({},a),n);return i&&(o=i(o)),o},KV="token";function $Ee(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=b.useContext(lC),i=r.cache.instanceId,a=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,c=l===void 0?SEe:l,u=n.formatToken,f=n.getComputedToken,d=n.cssVar,h=fEe(function(){return Object.assign.apply(Object,[{}].concat(Ne(t)))},t),p=C1(h),g=C1(c),v=d?C1(d):"",m=uT(KV,[s,e.id,p,g,v],function(){var y,x=f?f(h,c,e):GV(h,c,e,u),S=ae({},x),w="";if(d){var C=VV(x,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),E=he(C,2);x=E[0],w=E[1]}var O=WV(x,s);x._tokenKey=O,S._tokenKey=WV(S,s);var $=(y=d==null?void 0:d.key)!==null&&y!==void 0?y:O;x._themeKey=$,CEe($);var P="".concat(wEe,"-").concat(x1(O));return x._hashId=P,[x,P,S,w,(d==null?void 0:d.key)||""]},function(y){_Ee(y[0]._themeKey,i)},function(y){var x=he(y,4),S=x[0],w=x[3];if(d&&w){var C=nf(w,x1("css-variables-".concat(S._themeKey)),{mark:gc,prepend:"queue",attachTo:a,priority:-999});C[Sd]=i,C.setAttribute($g,S._themeKey)}});return m}var PEe=function(t,n,r){var i=he(t,5),a=i[2],o=i[3],s=i[4],l=r||{},c=l.plain;if(!o)return null;var u=a._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=cC(o,s,u,d,c);return[f,u,h]},MEe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},YV="comm",XV="rule",ZV="decl",kEe="@import",TEe="@keyframes",REe="@layer",QV=Math.abs,fT=String.fromCharCode;function JV(e){return e.trim()}function fC(e,t,n){return e.replace(t,n)}function IEe(e,t,n){return e.indexOf(t,n)}function E1(e,t){return e.charCodeAt(t)|0}function Pg(e,t,n){return e.slice(t,n)}function tu(e){return e.length}function AEe(e){return e.length}function dC(e,t){return t.push(e),e}var hC=1,Mg=1,eq=0,bl=0,$a=0,kg="";function dT(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:hC,column:Mg,length:o,return:"",siblings:s}}function NEe(){return $a}function LEe(){return $a=bl>0?E1(kg,--bl):0,Mg--,$a===10&&(Mg=1,hC--),$a}function mc(){return $a=bl2||O1($a)>3?"":" "}function BEe(e,t){for(;--t&&mc()&&!($a<48||$a>102||$a>57&&$a<65||$a>70&&$a<97););return vC(e,pC()+(t<6&&wd()==32&&mc()==32))}function pT(e){for(;mc();)switch($a){case e:return bl;case 34:case 39:e!==34&&e!==39&&pT($a);break;case 40:e===41&&pT(e);break;case 92:mc();break}return bl}function zEe(e,t){for(;mc()&&e+$a!==57;)if(e+$a===84&&wd()===47)break;return"/*"+vC(t,bl-1)+"*"+fT(e===47?e:mc())}function HEe(e){for(;!O1(wd());)mc();return vC(e,bl)}function WEe(e){return DEe(gC("",null,null,null,[""],e=jEe(e),0,[0],e))}function gC(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,d=0,h=0,p=0,g=1,v=1,m=1,y=0,x="",S=i,w=a,C=r,E=x;v;)switch(p=y,y=mc()){case 40:if(p!=108&&E1(E,f-1)==58){IEe(E+=fC(hT(y),"&","&\f"),"&\f",QV(c?s[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:E+=hT(y);break;case 9:case 10:case 13:case 32:E+=FEe(p);break;case 92:E+=BEe(pC()-1,7);continue;case 47:switch(wd()){case 42:case 47:dC(VEe(zEe(mc(),pC()),t,n,l),l),(O1(p||1)==5||O1(wd()||1)==5)&&tu(E)&&Pg(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*g:s[c++]=tu(E)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:m==-1&&(E=fC(E,/\f/g,"")),h>0&&(tu(E)-f||g===0&&p===47)&&dC(h>32?nq(E+";",r,n,f-1,l):nq(fC(E," ","")+";",r,n,f-2,l),l);break;case 59:E+=";";default:if(dC(C=tq(E,t,n,c,u,i,s,x,S=[],w=[],f,a),a),y===123)if(u===0)gC(E,t,C,C,S,a,f,s,w);else switch(d===99&&E1(E,3)===110?100:d){case 100:case 108:case 109:case 115:gC(e,C,C,r&&dC(tq(e,C,C,0,0,i,s,x,i,S=[],f,w),w),i,w,f,s,r?S:w);break;default:gC(E,C,C,C,[""],w,0,s,w)}}c=u=h=0,g=m=1,x=E="",f=o;break;case 58:f=1+tu(E),h=p;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&LEe()==125)continue}switch(E+=fT(y),y*g){case 38:m=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(tu(E)-1)*m,m=1;break;case 64:wd()===45&&(E+=hT(mc())),d=wd(),u=f=tu(x=E+=HEe(pC())),y++;break;case 45:p===45&&tu(E)==2&&(g=0)}}return a}function tq(e,t,n,r,i,a,o,s,l,c,u,f){for(var d=i-1,h=i===0?a:[""],p=AEe(h),g=0,v=0,m=0;g0?h[y]+" "+x:fC(x,/&\f/g,h[y])))&&(l[m++]=S);return dT(e,t,n,i===0?XV:s,l,c,u,f)}function VEe(e,t,n,r){return dT(e,t,n,YV,fT(NEe()),Pg(e,2,-2),0,r)}function nq(e,t,n,r,i){return dT(e,t,n,ZV,Pg(e,0,r),Pg(e,r+1,-1),r,i)}function vT(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var d="",h={};function p(m){var y=m.getName(s);if(!h[y]){var x=e(m.style,n,{root:!1,parentSelectors:o}),S=he(x,1),w=S[0];h[y]="@keyframes ".concat(m.getName(s)).concat(w)}}function g(m){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(function(x){Array.isArray(x)?g(x,y):x&&y.push(x)}),y}var v=g(Array.isArray(t)?t:[t]);return v.forEach(function(m){var y=typeof m=="string"&&!i?{}:m;if(typeof y=="string")d+="".concat(y,` -`);else if(y._keyframe)p(y);else{var x=f.reduce(function(S,w){var C;return(w==null||(C=w.visit)===null||C===void 0?void 0:C.call(w,S))||S},y);Object.keys(x).forEach(function(S){var w=x[S];if(Bt(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!XEe(w)){var C=!1,E=S.trim(),O=!1;(i||a)&&s?E.startsWith("@")?C=!0:E==="&"?E=sq("",s,c):E=sq(S,s,c):i&&!s&&(E==="&"||E==="")&&(E="",O=!0);var $=e(w,n,{root:O,injectHash:C,parentSelectors:[].concat(Ne(o),[E])}),P=he($,2),M=P[0],k=P[1];h=ae(ae({},h),k),d+="".concat(E).concat(M)}else{let A=function(N,L){var j=N.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),F=L;!MEe[N]&&typeof F=="number"&&F!==0&&(F="".concat(F,"px")),N==="animationName"&&L!==null&&L!==void 0&&L._keyframe&&(p(L),F=L.getName(s)),d+="".concat(j,":").concat(F,";")};var T,R=(T=w==null?void 0:w.value)!==null&&T!==void 0?T:w;Bt(w)==="object"&&w!==null&&w!==void 0&&w[oq]&&Array.isArray(R)?R.forEach(function(N){A(S,N)}):A(S,R)}})}}),i?l&&(d&&(d="@layer ".concat(l.name," {").concat(d,"}")),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(m){return"@layer ".concat(m,", ").concat(l.name,";")}).join(` -`))):d="{".concat(d,"}"),[d,h]};function lq(e,t){return x1("".concat(e.join("%")).concat(t))}function QEe(){return null}var cq="style";function gT(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=b.useContext(lC),f=u.autoClear;u.mock;var d=u.defaultCache,h=u.hashPriority,p=u.container,g=u.ssrInline,v=u.transformers,m=u.linters,y=u.cache,x=u.layer,S=n._tokenKey,w=[S];x&&w.push("layer"),w.push.apply(w,Ne(r));var C=cT,E=uT(cq,w,function(){var k=w.join("|");if(GEe(k)){var T=KEe(k),R=he(T,2),A=R[0],N=R[1];if(A)return[A,S,N,{},s,c]}var L=t(),j=ZEe(L,{hashId:i,hashPriority:h,layer:x?a:void 0,path:r.join("-"),transformers:v,linters:m}),F=he(j,2),B=F[0],D=F[1],z=mC(B),W=lq(w,z);return[z,S,W,D,s,c]},function(k,T){var R=he(k,3),A=R[2];(T||f)&&cT&&S1(A,{mark:gc})},function(k){var T=he(k,4),R=T[0];T[1];var A=T[2],N=T[3];if(C&&R!==iq){var L={mark:gc,prepend:x?!1:"queue",attachTo:p,priority:c},j=typeof o=="function"?o():o;j&&(L.csp={nonce:j});var F=[],B=[];Object.keys(N).forEach(function(z){z.startsWith("@layer")?F.push(z):B.push(z)}),F.forEach(function(z){nf(mC(N[z]),"_layer-".concat(z),ae(ae({},L),{},{prepend:!0}))});var D=nf(R,A,L);D[Sd]=y.instanceId,D.setAttribute($g,S),B.forEach(function(z){nf(mC(N[z]),"_effect-".concat(z),L)})}}),O=he(E,3),$=O[0],P=O[1],M=O[2];return function(k){var T;if(!g||C||!d)T=b.createElement(QEe,null);else{var R;T=b.createElement("style",Le({},(R={},Z(R,$g,P),Z(R,gc,M),R),{dangerouslySetInnerHTML:{__html:$}}))}return b.createElement(b.Fragment,null,T,k)}}var JEe=function(t,n,r){var i=he(t,6),a=i[0],o=i[1],s=i[2],l=i[3],c=i[4],u=i[5],f=r||{},d=f.plain;if(c)return null;var h=a,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=cC(a,o,s,p,d),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var v=mC(l[g]),m=cC(v,o,"_effect-".concat(g),p,d);g.startsWith("@layer")?h=m+h:h+=m}}),[u,s,h]},uq="cssVar",eOe=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=b.useContext(lC),f=u.cache.instanceId,d=u.container,h=s._tokenKey,p=[].concat(Ne(t.path),[r,c,h]),g=uT(uq,p,function(){var v=n(),m=VV(v,r,{prefix:i,unitless:a,ignore:o,scope:c}),y=he(m,2),x=y[0],S=y[1],w=lq(p,S);return[x,S,w,r]},function(v){var m=he(v,3),y=m[2];cT&&S1(y,{mark:gc})},function(v){var m=he(v,3),y=m[1],x=m[2];if(y){var S=nf(y,x,{mark:gc,prepend:"queue",attachTo:d,priority:-999});S[Sd]=f,S.setAttribute($g,r)}});return g},tOe=function(t,n,r){var i=he(t,4),a=i[1],o=i[2],s=i[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=cC(a,s,o,f,c);return[u,o,d]},_1;_1={},Z(_1,cq,JEe),Z(_1,KV,PEe),Z(_1,uq,tOe);var ur=function(){function e(t,n){rt(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=t,this.style=n}return it(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 Tg(e){return e.notSplit=!0,e}Tg(["borderTop","borderBottom"]),Tg(["borderTop"]),Tg(["borderBottom"]),Tg(["borderLeft","borderRight"]),Tg(["borderLeft"]),Tg(["borderRight"]);var mT=b.createContext({});function fq(e){return IV(e)||PV(e)||oC(e)||AV()}function Xo(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Xo(e,t.slice(0,-1))?e:dq(e,t,n,r)}function nOe(e){return Bt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function hq(e){return Array.isArray(e)?[]:{}}var rOe=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Rg(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=iOe,e},pq=b.createContext(void 0);let yC=Object.assign({},_o.Modal),bC=[];const vq=()=>bC.reduce((e,t)=>Object.assign(Object.assign({},e),t),_o.Modal);function oOe(e){if(e){const t=Object.assign({},e);return bC.push(t),yC=vq(),()=>{bC=bC.filter(n=>n!==t),yC=vq()}}yC=Object.assign({},_o.Modal)}function gq(){return yC}const yT=b.createContext(void 0),Zo=(e,t)=>{const n=b.useContext(yT),r=b.useMemo(()=>{var a;const o=t||_o[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=b.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?_o.locale:a},[n]);return[r,i]},sOe="internalMark",lOe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;b.useEffect(()=>oOe(t==null?void 0:t.Modal),[t]);const i=b.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return b.createElement(yT.Provider,{value:i},n)};function go(e,t){cOe(e)&&(e="100%");var n=uOe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function xC(e){return Math.min(1,Math.max(0,e))}function cOe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function uOe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function mq(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function SC(e){return e<=1?"".concat(Number(e)*100,"%"):e}function up(e){return e.length===1?"0"+e:String(e)}function fOe(e,t,n){return{r:go(e,255)*255,g:go(t,255)*255,b:go(n,255)*255}}function yq(e,t,n){e=go(e,255),t=go(t,255),n=go(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dOe(e,t,n){var r,i,a;if(e=go(e,360),t=go(t,100),n=go(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=bT(s,o,e+1/3),i=bT(s,o,e),a=bT(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function xT(e,t,n){e=go(e,255),t=go(t,255),n=go(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,l=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var wT={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ig(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=bOe(e)),typeof e=="object"&&(rf(e.r)&&rf(e.g)&&rf(e.b)?(t=fOe(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):rf(e.h)&&rf(e.s)&&rf(e.v)?(r=SC(e.s),i=SC(e.v),t=hOe(e.h,r,i),o=!0,s="hsv"):rf(e.h)&&rf(e.s)&&rf(e.l)&&(r=SC(e.s),a=SC(e.l),t=dOe(e.h,r,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=mq(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var mOe="[-\\+]?\\d+%?",yOe="[-\\+]?\\d*\\.\\d+%?",Ed="(?:".concat(yOe,")|(?:").concat(mOe,")"),CT="[\\s|\\(]+(".concat(Ed,")[,|\\s]+(").concat(Ed,")[,|\\s]+(").concat(Ed,")\\s*\\)?"),ET="[\\s|\\(]+(".concat(Ed,")[,|\\s]+(").concat(Ed,")[,|\\s]+(").concat(Ed,")[,|\\s]+(").concat(Ed,")\\s*\\)?"),yc={CSS_UNIT:new RegExp(Ed),rgb:new RegExp("rgb"+CT),rgba:new RegExp("rgba"+ET),hsl:new RegExp("hsl"+CT),hsla:new RegExp("hsla"+ET),hsv:new RegExp("hsv"+CT),hsva:new RegExp("hsva"+ET),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function bOe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(wT[e])e=wT[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=yc.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=yc.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=yc.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=yc.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=yc.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=yc.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=yc.hex8.exec(e),n?{r:qs(n[1]),g:qs(n[2]),b:qs(n[3]),a:bq(n[4]),format:t?"name":"hex8"}:(n=yc.hex6.exec(e),n?{r:qs(n[1]),g:qs(n[2]),b:qs(n[3]),format:t?"name":"hex"}:(n=yc.hex4.exec(e),n?{r:qs(n[1]+n[1]),g:qs(n[2]+n[2]),b:qs(n[3]+n[3]),a:bq(n[4]+n[4]),format:t?"name":"hex8"}:(n=yc.hex3.exec(e),n?{r:qs(n[1]+n[1]),g:qs(n[2]+n[2]),b:qs(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function rf(e){return!!yc.CSS_UNIT.exec(String(e))}var Un=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=gOe(t)),this.originalInput=t;var i=Ig(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=mq(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=xT(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=xT(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=yq(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=yq(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),ST(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),pOe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(go(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(go(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+ST(this.r,this.g,this.b,!1),n=0,r=Object.entries(wT);n=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=xC(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=xC(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=xC(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=xC(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-wC*t:Math.round(e.h)+wC*t:r=n?Math.round(e.h)+wC*t:Math.round(e.h)-wC*t,r<0?r+=360:r>=360&&(r-=360),r}function Oq(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-xq*t:t===wq?r=e.s+xq:r=e.s+xOe*t,r>1&&(r=1),n&&t===Sq&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function _q(e,t,n){var r;return n?r=e.v+SOe*t:r=e.v-wOe*t,r>1&&(r=1),Number(r.toFixed(2))}function fp(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ig(e),i=Sq;i>0;i-=1){var a=Cq(r),o=CC(Ig({h:Eq(a,i,!0),s:Oq(a,i,!0),v:_q(a,i,!0)}));n.push(o)}n.push(CC(r));for(var s=1;s<=wq;s+=1){var l=Cq(r),c=CC(Ig({h:Eq(l,s),s:Oq(l,s),v:_q(l,s)}));n.push(c)}return t.theme==="dark"?COe.map(function(u){var f=u.index,d=u.opacity,h=CC(EOe(Ig(t.backgroundColor||"#141414"),Ig(n[f]),d*100));return h}):n}var Ag={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},OT=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];OT.primary=OT[5];var _T=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];_T.primary=_T[5];var $T=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];$T.primary=$T[5];var EC=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];EC.primary=EC[5];var PT=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];PT.primary=PT[5];var MT=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];MT.primary=MT[5];var kT=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];kT.primary=kT[5];var TT=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];TT.primary=TT[5];var Ng=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ng.primary=Ng[5];var RT=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];RT.primary=RT[5];var IT=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];IT.primary=IT[5];var AT=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];AT.primary=AT[5];var NT=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];NT.primary=NT[5];var LT={red:OT,volcano:_T,orange:$T,gold:EC,yellow:PT,lime:MT,green:kT,cyan:TT,blue:Ng,geekblue:RT,purple:IT,magenta:AT,grey:NT};const jT={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Lg=Object.assign(Object.assign({},jT),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + */var U4=Symbol.for("react.element"),G4=Symbol.for("react.portal"),Uw=Symbol.for("react.fragment"),Gw=Symbol.for("react.strict_mode"),Kw=Symbol.for("react.profiler"),Yw=Symbol.for("react.provider"),Xw=Symbol.for("react.context"),SCe=Symbol.for("react.server_context"),Zw=Symbol.for("react.forward_ref"),Qw=Symbol.for("react.suspense"),Jw=Symbol.for("react.suspense_list"),eC=Symbol.for("react.memo"),tC=Symbol.for("react.lazy"),wCe=Symbol.for("react.offscreen"),vV;vV=Symbol.for("react.module.reference");function ml(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case U4:switch(e=e.type,e){case Uw:case Kw:case Gw:case Qw:case Jw:return e;default:switch(e=e&&e.$$typeof,e){case SCe:case Xw:case Zw:case tC:case eC:case Yw:return e;default:return t}}case G4:return t}}}Yr.ContextConsumer=Xw,Yr.ContextProvider=Yw,Yr.Element=U4,Yr.ForwardRef=Zw,Yr.Fragment=Uw,Yr.Lazy=tC,Yr.Memo=eC,Yr.Portal=G4,Yr.Profiler=Kw,Yr.StrictMode=Gw,Yr.Suspense=Qw,Yr.SuspenseList=Jw,Yr.isAsyncMode=function(){return!1},Yr.isConcurrentMode=function(){return!1},Yr.isContextConsumer=function(e){return ml(e)===Xw},Yr.isContextProvider=function(e){return ml(e)===Yw},Yr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===U4},Yr.isForwardRef=function(e){return ml(e)===Zw},Yr.isFragment=function(e){return ml(e)===Uw},Yr.isLazy=function(e){return ml(e)===tC},Yr.isMemo=function(e){return ml(e)===eC},Yr.isPortal=function(e){return ml(e)===G4},Yr.isProfiler=function(e){return ml(e)===Kw},Yr.isStrictMode=function(e){return ml(e)===Gw},Yr.isSuspense=function(e){return ml(e)===Qw},Yr.isSuspenseList=function(e){return ml(e)===Jw},Yr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Uw||e===Kw||e===Gw||e===Qw||e===Jw||e===wCe||typeof e=="object"&&e!==null&&(e.$$typeof===tC||e.$$typeof===eC||e.$$typeof===Yw||e.$$typeof===Xw||e.$$typeof===Zw||e.$$typeof===vV||e.getModuleId!==void 0)},Yr.typeOf=ml,pV.exports=Yr;var K4=pV.exports;function sp(e,t,n){var r=b.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var y1=function(t,n){typeof t=="function"?t(n):Bt(t)==="object"&&t&&"current"in t&&(t.current=n)},po=function(){for(var t=arguments.length,n=new Array(t),r=0;r0},e.prototype.connect_=function(){!Z4||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),kCe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Z4||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=MCe.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),mV=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),xV=typeof WeakMap!="undefined"?new WeakMap:new gV,SV=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=TCe.getInstance(),r=new zCe(t,n,this);xV.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){SV.prototype[e]=function(){var t;return(t=xV.get(this))[e].apply(t,arguments)}});var HCe=function(){return typeof nC.ResizeObserver!="undefined"?nC.ResizeObserver:SV}(),xd=new Map;function WCe(e){e.forEach(function(t){var n,r=t.target;(n=xd.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var wV=new HCe(WCe);function VCe(e,t){xd.has(e)||(xd.set(e,new Set),wV.observe(e)),xd.get(e).add(t)}function qCe(e,t){xd.has(e)&&(xd.get(e).delete(t),xd.get(e).size||(wV.unobserve(e),xd.delete(e)))}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CV(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;PV+=1;var r=PV;function i(a){if(a===0)MV(r),t();else{var o=_V(function(){i(a-1)});J4.set(r,o)}}return i(n),r};Sn.cancel=function(e){var t=J4.get(e);return MV(e),$V(t)};function kV(e){if(Array.isArray(e))return e}function JCe(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function TV(){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 he(e,t){return kV(e)||JCe(e,t)||oC(e,t)||TV()}function x1(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 Ja(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function eT(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 RV="data-rc-order",IV="data-rc-priority",eEe="rc-util-key",tT=new Map;function AV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):eEe}function sC(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function tEe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function nT(e){return Array.from((tT.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function NV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ja())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=tEe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(RV,o),s&&a&&l.setAttribute(IV,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=sC(t),u=c.firstChild;if(r){if(s){var f=(t.styles||nT(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(RV)))return!1;var h=Number(d.getAttribute(IV)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function LV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=sC(t);return(t.styles||nT(n)).find(function(r){return r.getAttribute(AV(t))===e})}function S1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=LV(e,t);if(n){var r=sC(t);r.removeChild(n)}}function nEe(e,t){var n=tT.get(e);if(!n||!eT(document,n)){var r=NV("",t),i=r.parentNode;tT.set(e,i),e.removeChild(r)}}function nf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=sC(n),i=nT(r),a=ae(ae({},n),{},{styles:i});nEe(r,a);var o=LV(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=NV(e,a);return u.setAttribute(AV(a),t),u}function rEe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function qt(e,t){if(e==null)return{};var n,r,i=rEe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(zr(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var f=he(c,2),d=f[1];return i.internalGet(u)[1]0,void 0),jV+=1}return at(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),aT=new iT;function w1(e){var t=Array.isArray(e)?e:[e];return aT.has(t)||aT.set(t,new DV(t)),aT.get(t)}var lEe=new WeakMap,oT={};function cEe(e,t){for(var n=lEe,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=ae(ae({},i),{},(r={},Z(r,Mg,t),Z(r,gc,n),r)),s=Object.keys(o).map(function(l){var c=o[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var uC=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},uEe=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=he(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},zV=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var s,l,c=he(o,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var d,h=uC(u,r==null?void 0:r.prefix);i[h]=typeof f=="number"&&!(r!=null&&(d=r.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(h,")")}}),[a,uEe(i,n,{scope:r==null?void 0:r.scope})]},HV=Ja()?b.useLayoutEffect:b.useEffect,Ln=function(t,n){var r=b.useRef(!0);HV(function(){return t(r.current)},n),HV(function(){return r.current=!1,function(){r.current=!0}},[])},lp=function(t,n){Ln(function(r){if(!r)return t()},n)},fEe=ae({},wy),WV=fEe.useInsertionEffect,dEe=function(t,n,r){b.useMemo(t,r),Ln(function(){return n(!0)},r)},hEe=WV?function(e,t,n){return WV(function(){return e(),t()},n)}:dEe,pEe=ae({},wy),vEe=pEe.useInsertionEffect,gEe=function(t){var n=[],r=!1;function i(a){r||n.push(a)}return b.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},mEe=function(){return function(t){t()}},yEe=typeof vEe!="undefined"?gEe:mEe;function lT(e,t,n,r,i){var a=b.useContext(lC),o=a.cache,s=[e].concat(Ne(t)),l=rT(s),c=yEe([l]),u=function(p){o.opUpdate(l,function(v){var g=v||[void 0,void 0],m=he(g,2),y=m[0],x=y===void 0?0:y,S=m[1],w=S,C=w||n(),E=[x,C];return p?p(E):E})};b.useMemo(function(){u()},[l]);var f=o.opGet(l),d=f[1];return hEe(function(){i==null||i(d)},function(h){return u(function(p){var v=he(p,2),g=v[0],m=v[1];return h&&g===0&&(i==null||i(d)),[g+1,m]}),function(){o.opUpdate(l,function(p){var v=p||[],g=he(v,2),m=g[0],y=m===void 0?0:m,x=g[1],S=y-1;return S===0?(c(function(){(h||!o.opGet(l))&&(r==null||r(x,!1))}),null):[y-1,x]})}},[l]),d}var bEe={},xEe="css",cp=new Map;function SEe(e){cp.set(e,(cp.get(e)||0)+1)}function wEe(e,t){if(typeof document!="undefined"){var n=document.querySelectorAll("style[".concat(Mg,'="').concat(e,'"]'));n.forEach(function(r){if(r[Sd]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var CEe=0;function EEe(e,t){cp.set(e,(cp.get(e)||0)-1);var n=Array.from(cp.keys()),r=n.filter(function(i){var a=cp.get(i)||0;return a<=0});n.length-r.length>CEe&&r.forEach(function(i){wEe(i,t),cp.delete(i)})}var VV=function(t,n,r,i){var a=r.getDerivativeToken(t),o=ae(ae({},a),n);return i&&(o=i(o)),o},qV="token";function OEe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=b.useContext(lC),i=r.cache.instanceId,a=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,c=l===void 0?bEe:l,u=n.formatToken,f=n.getComputedToken,d=n.cssVar,h=cEe(function(){return Object.assign.apply(Object,[{}].concat(Ne(t)))},t),p=C1(h),v=C1(c),g=d?C1(d):"",m=lT(qV,[s,e.id,p,v,g],function(){var y,x=f?f(h,c,e):VV(h,c,e,u),S=ae({},x),w="";if(d){var C=zV(x,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),E=he(C,2);x=E[0],w=E[1]}var O=BV(x,s);x._tokenKey=O,S._tokenKey=BV(S,s);var $=(y=d==null?void 0:d.key)!==null&&y!==void 0?y:O;x._themeKey=$,SEe($);var P="".concat(xEe,"-").concat(x1(O));return x._hashId=P,[x,P,S,w,(d==null?void 0:d.key)||""]},function(y){EEe(y[0]._themeKey,i)},function(y){var x=he(y,4),S=x[0],w=x[3];if(d&&w){var C=nf(w,x1("css-variables-".concat(S._themeKey)),{mark:gc,prepend:"queue",attachTo:a,priority:-999});C[Sd]=i,C.setAttribute(Mg,S._themeKey)}});return m}var _Ee=function(t,n,r){var i=he(t,5),a=i[2],o=i[3],s=i[4],l=r||{},c=l.plain;if(!o)return null;var u=a._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=cC(o,s,u,d,c);return[f,u,h]},$Ee={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},UV="comm",GV="rule",KV="decl",PEe="@import",MEe="@keyframes",kEe="@layer",YV=Math.abs,cT=String.fromCharCode;function XV(e){return e.trim()}function fC(e,t,n){return e.replace(t,n)}function TEe(e,t,n){return e.indexOf(t,n)}function E1(e,t){return e.charCodeAt(t)|0}function kg(e,t,n){return e.slice(t,n)}function tu(e){return e.length}function REe(e){return e.length}function dC(e,t){return t.push(e),e}var hC=1,Tg=1,ZV=0,bl=0,$a=0,Rg="";function uT(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:hC,column:Tg,length:o,return:"",siblings:s}}function IEe(){return $a}function AEe(){return $a=bl>0?E1(Rg,--bl):0,Tg--,$a===10&&(Tg=1,hC--),$a}function mc(){return $a=bl2||O1($a)>3?"":" "}function DEe(e,t){for(;--t&&mc()&&!($a<48||$a>102||$a>57&&$a<65||$a>70&&$a<97););return vC(e,pC()+(t<6&&wd()==32&&mc()==32))}function dT(e){for(;mc();)switch($a){case e:return bl;case 34:case 39:e!==34&&e!==39&&dT($a);break;case 40:e===41&&dT(e);break;case 92:mc();break}return bl}function FEe(e,t){for(;mc()&&e+$a!==57;)if(e+$a===84&&wd()===47)break;return"/*"+vC(t,bl-1)+"*"+cT(e===47?e:mc())}function BEe(e){for(;!O1(wd());)mc();return vC(e,bl)}function zEe(e){return LEe(gC("",null,null,null,[""],e=NEe(e),0,[0],e))}function gC(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,d=0,h=0,p=0,v=1,g=1,m=1,y=0,x="",S=i,w=a,C=r,E=x;g;)switch(p=y,y=mc()){case 40:if(p!=108&&E1(E,f-1)==58){TEe(E+=fC(fT(y),"&","&\f"),"&\f",YV(c?s[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:E+=fT(y);break;case 9:case 10:case 13:case 32:E+=jEe(p);break;case 92:E+=DEe(pC()-1,7);continue;case 47:switch(wd()){case 42:case 47:dC(HEe(FEe(mc(),pC()),t,n,l),l),(O1(p||1)==5||O1(wd()||1)==5)&&tu(E)&&kg(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*v:s[c++]=tu(E)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:m==-1&&(E=fC(E,/\f/g,"")),h>0&&(tu(E)-f||v===0&&p===47)&&dC(h>32?JV(E+";",r,n,f-1,l):JV(fC(E," ","")+";",r,n,f-2,l),l);break;case 59:E+=";";default:if(dC(C=QV(E,t,n,c,u,i,s,x,S=[],w=[],f,a),a),y===123)if(u===0)gC(E,t,C,C,S,a,f,s,w);else switch(d===99&&E1(E,3)===110?100:d){case 100:case 108:case 109:case 115:gC(e,C,C,r&&dC(QV(e,C,C,0,0,i,s,x,i,S=[],f,w),w),i,w,f,s,r?S:w);break;default:gC(E,C,C,C,[""],w,0,s,w)}}c=u=h=0,v=m=1,x=E="",f=o;break;case 58:f=1+tu(E),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&AEe()==125)continue}switch(E+=cT(y),y*v){case 38:m=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(tu(E)-1)*m,m=1;break;case 64:wd()===45&&(E+=fT(mc())),d=wd(),u=f=tu(x=E+=BEe(pC())),y++;break;case 45:p===45&&tu(E)==2&&(v=0)}}return a}function QV(e,t,n,r,i,a,o,s,l,c,u,f){for(var d=i-1,h=i===0?a:[""],p=REe(h),v=0,g=0,m=0;v0?h[y]+" "+x:fC(x,/&\f/g,h[y])))&&(l[m++]=S);return uT(e,t,n,i===0?GV:s,l,c,u,f)}function HEe(e,t,n,r){return uT(e,t,n,UV,cT(IEe()),kg(e,2,-2),0,r)}function JV(e,t,n,r,i){return uT(e,t,n,KV,kg(e,0,r),kg(e,r+1,-1),r,i)}function hT(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var d="",h={};function p(m){var y=m.getName(s);if(!h[y]){var x=e(m.style,n,{root:!1,parentSelectors:o}),S=he(x,1),w=S[0];h[y]="@keyframes ".concat(m.getName(s)).concat(w)}}function v(m){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(function(x){Array.isArray(x)?v(x,y):x&&y.push(x)}),y}var g=v(Array.isArray(t)?t:[t]);return g.forEach(function(m){var y=typeof m=="string"&&!i?{}:m;if(typeof y=="string")d+="".concat(y,` +`);else if(y._keyframe)p(y);else{var x=f.reduce(function(S,w){var C;return(w==null||(C=w.visit)===null||C===void 0?void 0:C.call(w,S))||S},y);Object.keys(x).forEach(function(S){var w=x[S];if(Bt(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!KEe(w)){var C=!1,E=S.trim(),O=!1;(i||a)&&s?E.startsWith("@")?C=!0:E==="&"?E=iq("",s,c):E=iq(S,s,c):i&&!s&&(E==="&"||E==="")&&(E="",O=!0);var $=e(w,n,{root:O,injectHash:C,parentSelectors:[].concat(Ne(o),[E])}),P=he($,2),M=P[0],k=P[1];h=ae(ae({},h),k),d+="".concat(E).concat(M)}else{let A=function(N,L){var j=N.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),F=L;!$Ee[N]&&typeof F=="number"&&F!==0&&(F="".concat(F,"px")),N==="animationName"&&L!==null&&L!==void 0&&L._keyframe&&(p(L),F=L.getName(s)),d+="".concat(j,":").concat(F,";")};var T,R=(T=w==null?void 0:w.value)!==null&&T!==void 0?T:w;Bt(w)==="object"&&w!==null&&w!==void 0&&w[rq]&&Array.isArray(R)?R.forEach(function(N){A(S,N)}):A(S,R)}})}}),i?l&&(d&&(d="@layer ".concat(l.name," {").concat(d,"}")),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(m){return"@layer ".concat(m,", ").concat(l.name,";")}).join(` +`))):d="{".concat(d,"}"),[d,h]};function aq(e,t){return x1("".concat(e.join("%")).concat(t))}function XEe(){return null}var oq="style";function pT(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=b.useContext(lC),f=u.autoClear;u.mock;var d=u.defaultCache,h=u.hashPriority,p=u.container,v=u.ssrInline,g=u.transformers,m=u.linters,y=u.cache,x=u.layer,S=n._tokenKey,w=[S];x&&w.push("layer"),w.push.apply(w,Ne(r));var C=sT,E=lT(oq,w,function(){var k=w.join("|");if(qEe(k)){var T=UEe(k),R=he(T,2),A=R[0],N=R[1];if(A)return[A,S,N,{},s,c]}var L=t(),j=YEe(L,{hashId:i,hashPriority:h,layer:x?a:void 0,path:r.join("-"),transformers:g,linters:m}),F=he(j,2),B=F[0],D=F[1],z=mC(B),W=aq(w,z);return[z,S,W,D,s,c]},function(k,T){var R=he(k,3),A=R[2];(T||f)&&sT&&S1(A,{mark:gc})},function(k){var T=he(k,4),R=T[0];T[1];var A=T[2],N=T[3];if(C&&R!==tq){var L={mark:gc,prepend:x?!1:"queue",attachTo:p,priority:c},j=typeof o=="function"?o():o;j&&(L.csp={nonce:j});var F=[],B=[];Object.keys(N).forEach(function(z){z.startsWith("@layer")?F.push(z):B.push(z)}),F.forEach(function(z){nf(mC(N[z]),"_layer-".concat(z),ae(ae({},L),{},{prepend:!0}))});var D=nf(R,A,L);D[Sd]=y.instanceId,D.setAttribute(Mg,S),B.forEach(function(z){nf(mC(N[z]),"_effect-".concat(z),L)})}}),O=he(E,3),$=O[0],P=O[1],M=O[2];return function(k){var T;if(!v||C||!d)T=b.createElement(XEe,null);else{var R;T=b.createElement("style",Le({},(R={},Z(R,Mg,P),Z(R,gc,M),R),{dangerouslySetInnerHTML:{__html:$}}))}return b.createElement(b.Fragment,null,T,k)}}var ZEe=function(t,n,r){var i=he(t,6),a=i[0],o=i[1],s=i[2],l=i[3],c=i[4],u=i[5],f=r||{},d=f.plain;if(c)return null;var h=a,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=cC(a,o,s,p,d),l&&Object.keys(l).forEach(function(v){if(!n[v]){n[v]=!0;var g=mC(l[v]),m=cC(g,o,"_effect-".concat(v),p,d);v.startsWith("@layer")?h=m+h:h+=m}}),[u,s,h]},sq="cssVar",QEe=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=b.useContext(lC),f=u.cache.instanceId,d=u.container,h=s._tokenKey,p=[].concat(Ne(t.path),[r,c,h]),v=lT(sq,p,function(){var g=n(),m=zV(g,r,{prefix:i,unitless:a,ignore:o,scope:c}),y=he(m,2),x=y[0],S=y[1],w=aq(p,S);return[x,S,w,r]},function(g){var m=he(g,3),y=m[2];sT&&S1(y,{mark:gc})},function(g){var m=he(g,3),y=m[1],x=m[2];if(y){var S=nf(y,x,{mark:gc,prepend:"queue",attachTo:d,priority:-999});S[Sd]=f,S.setAttribute(Mg,r)}});return v},JEe=function(t,n,r){var i=he(t,4),a=i[1],o=i[2],s=i[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=cC(a,s,o,f,c);return[u,o,d]},_1;_1={},Z(_1,oq,ZEe),Z(_1,qV,_Ee),Z(_1,sq,JEe);var fr=function(){function e(t,n){it(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=t,this.style=n}return at(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 Ig(e){return e.notSplit=!0,e}Ig(["borderTop","borderBottom"]),Ig(["borderTop"]),Ig(["borderBottom"]),Ig(["borderLeft","borderRight"]),Ig(["borderLeft"]),Ig(["borderRight"]);var vT=b.createContext({});function lq(e){return kV(e)||OV(e)||oC(e)||TV()}function Xo(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Xo(e,t.slice(0,-1))?e:cq(e,t,n,r)}function eOe(e){return Bt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function uq(e){return Array.isArray(e)?[]:{}}var tOe=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Ag(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=nOe,e},fq=b.createContext(void 0);let yC=Object.assign({},_o.Modal),bC=[];const dq=()=>bC.reduce((e,t)=>Object.assign(Object.assign({},e),t),_o.Modal);function iOe(e){if(e){const t=Object.assign({},e);return bC.push(t),yC=dq(),()=>{bC=bC.filter(n=>n!==t),yC=dq()}}yC=Object.assign({},_o.Modal)}function hq(){return yC}const gT=b.createContext(void 0),Zo=(e,t)=>{const n=b.useContext(gT),r=b.useMemo(()=>{var a;const o=t||_o[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=b.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?_o.locale:a},[n]);return[r,i]},aOe="internalMark",oOe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;b.useEffect(()=>iOe(t==null?void 0:t.Modal),[t]);const i=b.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return b.createElement(gT.Provider,{value:i},n)},eo=Math.round;function mT(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const pq=(e,t,n)=>n===0?e:e/100;function $1(e,t){const n=t||255;return e>n?n:e<0?0:e}class Ed{constructor(t){Z(this,"isValid",!0),Z(this,"r",0),Z(this,"g",0),Z(this,"b",0),Z(this,"a",1),Z(this,"_h",void 0),Z(this,"_s",void 0),Z(this,"_l",void 0),Z(this,"_v",void 0),Z(this,"_max",void 0),Z(this,"_min",void 0),Z(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(a){return r.startsWith(a)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof Ed)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=$1(t.r),this.g=$1(t.g),this.b=$1(t.b),this.a=typeof t.a=="number"?$1(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(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h=="undefined"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=eo(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=s=>(r[s]-this[s])*i+this[s],o={r:eo(a("r")),g:eo(a("g")),b:eo(a("b")),a:eo(a("a")*100)/100};return this._c(o)}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),i=a=>eo((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("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 i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=eo(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=eo(this.getSaturation()*100),r=eo(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 i=this.clone();return i[t]=$1(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max=="undefined"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min=="undefined"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const d=eo(r*255);this.r=d,this.g=d,this.b=d}let a=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,o=u):l>=1&&l<2?(a=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=r-c/2;this.r=eo((a+f)*255),this.g=eo((o+f)*255),this.b=eo((s+f)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=eo(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=eo(r*(1-n)*255),u=eo(r*(1-n*l)*255),f=eo(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=mT(t,pq);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=mT(t,pq);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=mT(t,(r,i)=>i.includes("%")?eo(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var xC=2,vq=.16,sOe=.05,lOe=.05,cOe=.15,gq=5,mq=4,uOe=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function yq(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-xC*t:Math.round(e.h)+xC*t:r=n?Math.round(e.h)+xC*t:Math.round(e.h)-xC*t,r<0?r+=360:r>=360&&(r-=360),r}function bq(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-vq*t:t===mq?r=e.s+vq:r=e.s+sOe*t,r>1&&(r=1),n&&t===gq&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function xq(e,t,n){var r;return n?r=e.v+lOe*t:r=e.v-cOe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function fp(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Ed(e),i=r.toHsv(),a=gq;a>0;a-=1){var o=new Ed({h:yq(i,a,!0),s:bq(i,a,!0),v:xq(i,a,!0)});n.push(o)}n.push(r);for(var s=1;s<=mq;s+=1){var l=new Ed({h:yq(i,s),s:bq(i,s),v:xq(i,s)});n.push(l)}return t.theme==="dark"?uOe.map(function(c){var u=c.index,f=c.amount;return new Ed(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var Ng={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},yT=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];yT.primary=yT[5];var bT=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];bT.primary=bT[5];var xT=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];xT.primary=xT[5];var SC=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];SC.primary=SC[5];var ST=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ST.primary=ST[5];var wT=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];wT.primary=wT[5];var CT=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];CT.primary=CT[5];var ET=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ET.primary=ET[5];var Lg=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Lg.primary=Lg[5];var OT=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];OT.primary=OT[5];var _T=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];_T.primary=_T[5];var $T=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];$T.primary=$T[5];var PT=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];PT.primary=PT[5];var MT={red:yT,volcano:bT,orange:xT,gold:SC,yellow:ST,lime:wT,green:CT,cyan:ET,blue:Lg,geekblue:OT,purple:_T,magenta:$T,grey:PT};const kT={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},jg=Object.assign(Object.assign({},kT),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, '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});function $q(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),d=n(i),h=n(a),p=n(o),g=n(s),v=r(c,u),m=e.colorLink||e.colorInfo,y=n(m),x=new Un(p[1]).mix(new Un(p[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:x,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Un("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const OOe=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function _Oe(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},OOe(r))}const Pq=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function OC(e){return(e+8)/e}function $Oe(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:OC(n)}))}const Mq=e=>{const t=$Oe(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function POe(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Sl=(e,t)=>new Un(e).setAlpha(t).toRgbString(),$1=(e,t)=>new Un(e).darken(t).toHexString(),MOe=e=>{const t=fp(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},kOe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Sl(r,.88),colorTextSecondary:Sl(r,.65),colorTextTertiary:Sl(r,.45),colorTextQuaternary:Sl(r,.25),colorFill:Sl(r,.15),colorFillSecondary:Sl(r,.06),colorFillTertiary:Sl(r,.04),colorFillQuaternary:Sl(r,.02),colorBgSolid:Sl(r,1),colorBgSolidHover:Sl(r,.75),colorBgSolidActive:Sl(r,.95),colorBgLayout:$1(n,4),colorBgContainer:$1(n,0),colorBgElevated:$1(n,0),colorBgSpotlight:Sl(r,.85),colorBgBlur:"transparent",colorBorder:$1(n,15),colorBorderSecondary:$1(n,6)}};function P1(e){Ag.pink=Ag.magenta,LT.pink=LT.magenta;const t=Object.keys(jT).map(n=>{const r=e[n]===Ag[n]?LT[n]:fp(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),$q(e,{generateColorPalettes:MOe,generateNeutralColorPalettes:kOe})),Mq(e.fontSize)),POe(e)),Pq(e)),_Oe(e))}const kq=w1(P1),M1={token:Lg,override:{override:Lg},hashed:!0},DT=we.createContext(M1),k1="ant",_C="anticon",TOe=["outlined","borderless","filled"],ROe=(e,t)=>t||(e?`${k1}-${e}`:k1),Lt=b.createContext({getPrefixCls:ROe,iconPrefixCls:_C}),IOe=`-ant-${Date.now()}-${Math.random()}`;function AOe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new Un(o),c=fp(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new Un(t.primaryColor),s=fp(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setAlpha(c.getAlpha()*.12));const l=new Un(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` +'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});function go(e,t){fOe(e)&&(e="100%");var n=dOe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function wC(e){return Math.min(1,Math.max(0,e))}function fOe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function dOe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Sq(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function CC(e){return e<=1?"".concat(Number(e)*100,"%"):e}function dp(e){return e.length===1?"0"+e:String(e)}function hOe(e,t,n){return{r:go(e,255)*255,g:go(t,255)*255,b:go(n,255)*255}}function wq(e,t,n){e=go(e,255),t=go(t,255),n=go(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pOe(e,t,n){var r,i,a;if(e=go(e,360),t=go(t,100),n=go(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=TT(s,o,e+1/3),i=TT(s,o,e),a=TT(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Cq(e,t,n){e=go(e,255),t=go(t,255),n=go(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,l=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var RT={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function bOe(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=wOe(e)),typeof e=="object"&&(rf(e.r)&&rf(e.g)&&rf(e.b)?(t=hOe(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):rf(e.h)&&rf(e.s)&&rf(e.v)?(r=CC(e.s),i=CC(e.v),t=vOe(e.h,r,i),o=!0,s="hsv"):rf(e.h)&&rf(e.s)&&rf(e.l)&&(r=CC(e.s),a=CC(e.l),t=pOe(e.h,r,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Sq(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var xOe="[-\\+]?\\d+%?",SOe="[-\\+]?\\d*\\.\\d+%?",Od="(?:".concat(SOe,")|(?:").concat(xOe,")"),IT="[\\s|\\(]+(".concat(Od,")[,|\\s]+(").concat(Od,")[,|\\s]+(").concat(Od,")\\s*\\)?"),AT="[\\s|\\(]+(".concat(Od,")[,|\\s]+(").concat(Od,")[,|\\s]+(").concat(Od,")[,|\\s]+(").concat(Od,")\\s*\\)?"),yc={CSS_UNIT:new RegExp(Od),rgb:new RegExp("rgb"+IT),rgba:new RegExp("rgba"+AT),hsl:new RegExp("hsl"+IT),hsla:new RegExp("hsla"+AT),hsv:new RegExp("hsv"+IT),hsva:new RegExp("hsva"+AT),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function wOe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(RT[e])e=RT[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=yc.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=yc.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=yc.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=yc.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=yc.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=yc.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=yc.hex8.exec(e),n?{r:qs(n[1]),g:qs(n[2]),b:qs(n[3]),a:Oq(n[4]),format:t?"name":"hex8"}:(n=yc.hex6.exec(e),n?{r:qs(n[1]),g:qs(n[2]),b:qs(n[3]),format:t?"name":"hex"}:(n=yc.hex4.exec(e),n?{r:qs(n[1]+n[1]),g:qs(n[2]+n[2]),b:qs(n[3]+n[3]),a:Oq(n[4]+n[4]),format:t?"name":"hex8"}:(n=yc.hex3.exec(e),n?{r:qs(n[1]+n[1]),g:qs(n[2]+n[2]),b:qs(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function rf(e){return!!yc.CSS_UNIT.exec(String(e))}var Un=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=yOe(t)),this.originalInput=t;var i=bOe(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Sq(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Cq(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Cq(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=wq(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=wq(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Eq(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),gOe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(go(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(go(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Eq(this.r,this.g,this.b,!1),n=0,r=Object.entries(RT);n=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=wC(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=wC(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=wC(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=wC(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function EOe(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},COe(r))}const $q=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function EC(e){return(e+8)/e}function OOe(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:EC(n)}))}const Pq=e=>{const t=OOe(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function _Oe(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Sl=(e,t)=>new Un(e).setAlpha(t).toRgbString(),P1=(e,t)=>new Un(e).darken(t).toHexString(),$Oe=e=>{const t=fp(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},POe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Sl(r,.88),colorTextSecondary:Sl(r,.65),colorTextTertiary:Sl(r,.45),colorTextQuaternary:Sl(r,.25),colorFill:Sl(r,.15),colorFillSecondary:Sl(r,.06),colorFillTertiary:Sl(r,.04),colorFillQuaternary:Sl(r,.02),colorBgSolid:Sl(r,1),colorBgSolidHover:Sl(r,.75),colorBgSolidActive:Sl(r,.95),colorBgLayout:P1(n,4),colorBgContainer:P1(n,0),colorBgElevated:P1(n,0),colorBgSpotlight:Sl(r,.85),colorBgBlur:"transparent",colorBorder:P1(n,15),colorBorderSecondary:P1(n,6)}};function M1(e){Ng.pink=Ng.magenta,MT.pink=MT.magenta;const t=Object.keys(kT).map(n=>{const r=e[n]===Ng[n]?MT[n]:fp(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),_q(e,{generateColorPalettes:$Oe,generateNeutralColorPalettes:POe})),Pq(e.fontSize)),_Oe(e)),$q(e)),EOe(e))}const Mq=w1(M1),k1={token:jg,override:{override:jg},hashed:!0},NT=we.createContext(k1),T1="ant",OC="anticon",MOe=["outlined","borderless","filled"],kOe=(e,t)=>t||(e?`${T1}-${e}`:T1),At=b.createContext({getPrefixCls:kOe,iconPrefixCls:OC}),TOe=`-ant-${Date.now()}-${Math.random()}`;function ROe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new Un(o),c=fp(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new Un(t.primaryColor),s=fp(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setAlpha(c.getAlpha()*.12));const l=new Un(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` :root { ${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(` `)} } - `.trim()}function NOe(e,t){const n=AOe(e,t);Ja()&&nf(n,`${IOe}-dynamic-theme`)}const mo=b.createContext(!1),FT=e=>{let{children:t,disabled:n}=e;const r=b.useContext(mo);return b.createElement(mo.Provider,{value:n!=null?n:r},t)},dp=b.createContext(void 0),LOe=e=>{let{children:t,size:n}=e;const r=b.useContext(dp);return b.createElement(dp.Provider,{value:n||r},t)};function jOe(){const e=b.useContext(mo),t=b.useContext(dp);return{componentDisabled:e,componentSize:t}}var Tq=it(function e(){rt(this,e)}),Rq="CALC_UNIT",DOe=new RegExp(Rq,"g");function BT(e){return typeof e=="number"?"".concat(e).concat(Rq):e}var FOe=function(e){Sn(n,e);var t=Vs(n);function n(r,i){var a;rt(this,n),a=t.call(this),Z(ut(a),"result",""),Z(ut(a),"unitlessCssVar",void 0),Z(ut(a),"lowPriority",void 0);var o=Bt(r);return a.unitlessCssVar=i,r instanceof n?a.result="(".concat(r.result,")"):o==="number"?a.result=BT(r):o==="string"&&(a.result=r),a}return it(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(BT(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(BT(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,o=i||{},s=o.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(DOe,l?"px":""),typeof this.lowPriority!="undefined"?"calc(".concat(this.result,")"):this.result}}]),n}(Tq),BOe=function(e){Sn(n,e);var t=Vs(n);function n(r){var i;return rt(this,n),i=t.call(this),Z(ut(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return it(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(Tq),zOe=function(t,n){var r=t==="css"?FOe:BOe;return function(i){return new r(i,n)}},Iq=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 _n(e){var t=b.useRef();t.current=e;var n=b.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>qOe&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),Dq=new UOe;function GOe(e,t){return we.useMemo(function(){var n=Dq.get(t);if(n)return n;var r=e();return Dq.set(t,r),r},t)}var KOe=function(){return{}};function YOe(e){var t=e.useCSP,n=t===void 0?KOe:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(d,h,p,g){var v=Array.isArray(d)?d[0]:d;function m(O){return"".concat(String(v)).concat(O.slice(0,1).toUpperCase()).concat(O.slice(1))}var y=(g==null?void 0:g.unitless)||{},x=typeof s=="function"?s(d):{},S=ae(ae({},x),{},Z({},m("zIndexPopup"),!0));Object.keys(y).forEach(function(O){S[m(O)]=y[O]});var w=ae(ae({},g),{},{unitless:S,prefixToken:m}),C=u(d,h,p,w),E=c(v,p,w);return function(O){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,P=C(O,$),M=he(P,2),k=M[1],T=E($),R=he(T,2),A=R[0],N=R[1];return[A,k,N]}}function c(d,h,p){var g=p.unitless,v=p.injectStyle,m=v===void 0?!0:v,y=p.prefixToken,x=p.ignore,S=function(E){var O=E.rootCls,$=E.cssVar,P=$===void 0?{}:$,M=r(),k=M.realToken;return eOe({path:[d],prefix:P.prefix,key:P.key,unitless:g,ignore:x,token:k,scope:O},function(){var T=jq(d,k,h),R=Aq(d,k,T,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(T).forEach(function(A){R[y(A)]=R[A],delete R[A]}),R}),null},w=function(E){var O=r(),$=O.cssVar;return[function(P){return m&&$?we.createElement(we.Fragment,null,we.createElement(S,{rootCls:E,cssVar:$,component:d}),P):P},$==null?void 0:$.key]};return w}function u(d,h,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(d)?d:[d,d],m=he(v,1),y=m[0],x=v.join("-"),S=e.layer||{name:"antd"};return function(w){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,E=r(),O=E.theme,$=E.realToken,P=E.hashId,M=E.token,k=E.cssVar,T=i(),R=T.rootPrefixCls,A=T.iconPrefixCls,N=n(),L=k?"css":"js",j=GOe(function(){var q=new Set;return k&&Object.keys(g.unitless||{}).forEach(function(H){q.add(uC(H,k.prefix)),q.add(uC(H,Iq(y,k.prefix)))}),zOe(L,q)},[L,y,k==null?void 0:k.prefix]),F=VOe(L),B=F.max,D=F.min,z={theme:O,token:M,hashId:P,nonce:function(){return N.nonce},clientOnly:g.clientOnly,layer:S,order:g.order||-999};typeof a=="function"&&gT(ae(ae({},z),{},{clientOnly:!1,path:["Shared",R]}),function(){return a(M,{prefix:{rootPrefixCls:R,iconPrefixCls:A},csp:N})});var W=gT(ae(ae({},z),{},{path:[x,w,A]}),function(){if(g.injectStyle===!1)return[];var q=WOe(M),H=q.token,U=q.flush,G=jq(y,$,p),K=".".concat(w),X=Aq(y,$,G,{deprecatedTokens:g.deprecatedTokens});k&&G&&Bt(G)==="object"&&Object.keys(G).forEach(function(te){G[te]="var(".concat(uC(te,Iq(y,k.prefix)),")")});var Q=$n(H,{componentCls:K,prefixCls:w,iconCls:".".concat(A),antCls:".".concat(R),calc:j,max:B,min:D},k?G:X),ee=h(Q,{hashId:P,prefixCls:w,rootPrefixCls:R,iconPrefixCls:A});U(y,X);var ne=typeof o=="function"?o(Q,w,C,g.resetFont):null;return[g.resetStyle===!1?null:ne,ee]});return[W,P]}}function f(d,h,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(d,h,p,ae({resetStyle:!1,order:-998},g)),m=function(x){var S=x.prefixCls,w=x.rootCls,C=w===void 0?S:w;return v(S,C),null};return m}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const T1=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],XOe="5.22.7";function WT(e){return e>=0&&e<=255}function $C(e,t){const{r:n,g:r,b:i,a}=new Un(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new Un(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),f=Math.round((r-s*(1-c))/c),d=Math.round((i-l*(1-c))/c);if(WT(u)&&WT(f)&&WT(d))return new Un({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new Un({r:n,g:r,b:i,a:1}).toRgbString()}var ZOe=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 i=0,r=Object.getOwnPropertySymbols(e);i{delete r[d]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const d="0s";i.motionDurationFast=d,i.motionDurationMid=d,i.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:$C(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:$C(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:$C(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:$C(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` + `.trim()}function IOe(e,t){const n=ROe(e,t);Ja()&&nf(n,`${TOe}-dynamic-theme`)}const mo=b.createContext(!1),LT=e=>{let{children:t,disabled:n}=e;const r=b.useContext(mo);return b.createElement(mo.Provider,{value:n!=null?n:r},t)},hp=b.createContext(void 0),AOe=e=>{let{children:t,size:n}=e;const r=b.useContext(hp);return b.createElement(hp.Provider,{value:n||r},t)};function NOe(){const e=b.useContext(mo),t=b.useContext(hp);return{componentDisabled:e,componentSize:t}}var kq=at(function e(){it(this,e)}),Tq="CALC_UNIT",LOe=new RegExp(Tq,"g");function jT(e){return typeof e=="number"?"".concat(e).concat(Tq):e}var jOe=function(e){xn(n,e);var t=Vs(n);function n(r,i){var a;it(this,n),a=t.call(this),Z(ft(a),"result",""),Z(ft(a),"unitlessCssVar",void 0),Z(ft(a),"lowPriority",void 0);var o=Bt(r);return a.unitlessCssVar=i,r instanceof n?a.result="(".concat(r.result,")"):o==="number"?a.result=jT(r):o==="string"&&(a.result=r),a}return at(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(jT(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(jT(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,o=i||{},s=o.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(LOe,l?"px":""),typeof this.lowPriority!="undefined"?"calc(".concat(this.result,")"):this.result}}]),n}(kq),DOe=function(e){xn(n,e);var t=Vs(n);function n(r){var i;return it(this,n),i=t.call(this),Z(ft(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return at(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(kq),FOe=function(t,n){var r=t==="css"?jOe:DOe;return function(i){return new r(i,n)}},Rq=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 On(e){var t=b.useRef();t.current=e;var n=b.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>WOe&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),jq=new VOe;function qOe(e,t){return we.useMemo(function(){var n=jq.get(t);if(n)return n;var r=e();return jq.set(t,r),r},t)}var UOe=function(){return{}};function GOe(e){var t=e.useCSP,n=t===void 0?UOe:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(d,h,p,v){var g=Array.isArray(d)?d[0]:d;function m(O){return"".concat(String(g)).concat(O.slice(0,1).toUpperCase()).concat(O.slice(1))}var y=(v==null?void 0:v.unitless)||{},x=typeof s=="function"?s(d):{},S=ae(ae({},x),{},Z({},m("zIndexPopup"),!0));Object.keys(y).forEach(function(O){S[m(O)]=y[O]});var w=ae(ae({},v),{},{unitless:S,prefixToken:m}),C=u(d,h,p,w),E=c(g,p,w);return function(O){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,P=C(O,$),M=he(P,2),k=M[1],T=E($),R=he(T,2),A=R[0],N=R[1];return[A,k,N]}}function c(d,h,p){var v=p.unitless,g=p.injectStyle,m=g===void 0?!0:g,y=p.prefixToken,x=p.ignore,S=function(E){var O=E.rootCls,$=E.cssVar,P=$===void 0?{}:$,M=r(),k=M.realToken;return QEe({path:[d],prefix:P.prefix,key:P.key,unitless:v,ignore:x,token:k,scope:O},function(){var T=Lq(d,k,h),R=Iq(d,k,T,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(T).forEach(function(A){R[y(A)]=R[A],delete R[A]}),R}),null},w=function(E){var O=r(),$=O.cssVar;return[function(P){return m&&$?we.createElement(we.Fragment,null,we.createElement(S,{rootCls:E,cssVar:$,component:d}),P):P},$==null?void 0:$.key]};return w}function u(d,h,p){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(d)?d:[d,d],m=he(g,1),y=m[0],x=g.join("-"),S=e.layer||{name:"antd"};return function(w){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,E=r(),O=E.theme,$=E.realToken,P=E.hashId,M=E.token,k=E.cssVar,T=i(),R=T.rootPrefixCls,A=T.iconPrefixCls,N=n(),L=k?"css":"js",j=qOe(function(){var q=new Set;return k&&Object.keys(v.unitless||{}).forEach(function(H){q.add(uC(H,k.prefix)),q.add(uC(H,Rq(y,k.prefix)))}),FOe(L,q)},[L,y,k==null?void 0:k.prefix]),F=HOe(L),B=F.max,D=F.min,z={theme:O,token:M,hashId:P,nonce:function(){return N.nonce},clientOnly:v.clientOnly,layer:S,order:v.order||-999};typeof a=="function"&&pT(ae(ae({},z),{},{clientOnly:!1,path:["Shared",R]}),function(){return a(M,{prefix:{rootPrefixCls:R,iconPrefixCls:A},csp:N})});var W=pT(ae(ae({},z),{},{path:[x,w,A]}),function(){if(v.injectStyle===!1)return[];var q=zOe(M),H=q.token,U=q.flush,G=Lq(y,$,p),K=".".concat(w),X=Iq(y,$,G,{deprecatedTokens:v.deprecatedTokens});k&&G&&Bt(G)==="object"&&Object.keys(G).forEach(function(te){G[te]="var(".concat(uC(te,Rq(y,k.prefix)),")")});var Q=_n(H,{componentCls:K,prefixCls:w,iconCls:".".concat(A),antCls:".".concat(R),calc:j,max:B,min:D},k?G:X),ee=h(Q,{hashId:P,prefixCls:w,rootPrefixCls:R,iconPrefixCls:A});U(y,X);var ne=typeof o=="function"?o(Q,w,C,v.resetFont):null;return[v.resetStyle===!1?null:ne,ee]});return[W,P]}}function f(d,h,p){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=u(d,h,p,ae({resetStyle:!1,order:-998},v)),m=function(x){var S=x.prefixCls,w=x.rootCls,C=w===void 0?S:w;return g(S,C),null};return m}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const R1=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],KOe="5.22.7";function BT(e){return e>=0&&e<=255}function _C(e,t){const{r:n,g:r,b:i,a}=new Un(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new Un(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),f=Math.round((r-s*(1-c))/c),d=Math.round((i-l*(1-c))/c);if(BT(u)&&BT(f)&&BT(d))return new Un({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new Un({r:n,g:r,b:i,a:1}).toRgbString()}var YOe=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 i=0,r=Object.getOwnPropertySymbols(e);i{delete r[d]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const d="0s";i.motionDurationFast=d,i.motionDurationMid=d,i.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:_C(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:_C(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:_C(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:_C(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` 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) @@ -92,7 +92,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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 Fq=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 i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=Fq(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=VT(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=Fq(c,["theme"]);let d=f;u&&(d=zq(Object.assign(Object.assign({},o),f),{override:f},u)),o[l]=d}),o};function eo(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=we.useContext(DT),a=`${XOe}-${t||""}`,o=n||kq,[s,l,c]=$Ee(o,[Lg,e],{salt:a,override:r,getComputedToken:zq,formatToken:VT,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Bq,ignore:QOe,preserve:JOe}});return[o,c,t?l:"",s,i]}const Qo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},er=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Od=()=>({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"}}),bc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),e_e=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"}}}),t_e=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},_d=e=>({outline:`${fe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),nu=e=>({"&:focus-visible":Object.assign({},_d(e))}),Hq=e=>({[`.${e}`]:Object.assign(Object.assign({},Od()),{[`.${e} .${e}-icon`]:{display:"block"}})}),PC=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},nu(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:tr,genComponentStyleHook:n_e,genSubStyleComponent:jg}=YOe({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=b.useContext(Lt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=eo();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=b.useContext(Lt);return e!=null?e:{}},getResetStyles:(e,t)=>{var n;return[{"&":e_e(e)},Hq((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:_C)]},getCommonStyle:t_e,getCompUnitless:()=>Bq});function Wq(e,t){return T1.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}const r_e=(e,t)=>{const[n,r]=eo();return gT({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[Hq(e)])},i_e=Object.assign({},wy),{useId:Vq}=i_e,a_e=typeof Vq=="undefined"?()=>"":Vq;function o_e(e,t,n){var r;Cd();const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},M1),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:M1.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=a_e();return op(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(d=>{c[d]=Object.assign(Object.assign({},c[d]),e.components[d])});const u=`css-var-${o.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:c,cssVar:f})},[i,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!yl(c,f,!0)}))}var s_e=["children"],qq=b.createContext({});function l_e(e){var t=e.children,n=Vt(e,s_e);return b.createElement(qq.Provider,{value:n},t)}var c_e=function(e){Sn(n,e);var t=Vs(n);function n(){return rt(this,n),t.apply(this,arguments)}return it(n,[{key:"render",value:function(){return this.props.children}}]),n}(b.Component);function u_e(e){var t=b.useReducer(function(s){return s+1},0),n=he(t,2),r=n[1],i=b.useRef(e),a=_n(function(){return i.current}),o=_n(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[a,o]}var $d="none",MC="appear",kC="enter",TC="leave",Uq="none",xc="prepare",Dg="start",Fg="active",qT="end",Gq="prepared";function Kq(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function f_e(e,t){var n={animationend:Kq("Animation","AnimationEnd"),transitionend:Kq("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var d_e=f_e(Ja(),typeof window!="undefined"?window:{}),Yq={};if(Ja()){var h_e=document.createElement("div");Yq=h_e.style}var RC={};function Xq(e){if(RC[e])return RC[e];var t=d_e[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var a=bn(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return b.useEffect(function(){return function(){t()}},[]),[n,t]};var g_e=[xc,Dg,Fg,qT],m_e=[xc,Gq],iU=!1,y_e=!0;function aU(e){return e===Fg||e===qT}const b_e=function(e,t,n){var r=hp(Uq),i=he(r,2),a=i[0],o=i[1],s=v_e(),l=he(s,2),c=l[0],u=l[1];function f(){o(xc,!0)}var d=t?m_e:g_e;return rU(function(){if(a!==Uq&&a!==qT){var h=d.indexOf(a),p=d[h+1],g=n(a);g===iU?o(p,!0):p&&c(function(v){function m(){v.isCanceled()||o(p,!0)}g===!0?m():Promise.resolve(g).then(m)})}},[e,a]),b.useEffect(function(){return function(){u()}},[]),[f,a]};function x_e(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,d=r.onAppearPrepare,h=r.onEnterPrepare,p=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,m=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,S=r.onLeaveActive,w=r.onAppearEnd,C=r.onEnterEnd,E=r.onLeaveEnd,O=r.onVisibleChanged,$=hp(),P=he($,2),M=P[0],k=P[1],T=u_e($d),R=he(T,2),A=R[0],N=R[1],L=hp(null),j=he(L,2),F=j[0],B=j[1],D=A(),z=b.useRef(!1),W=b.useRef(null);function q(){return n()}var H=b.useRef(!1);function U(){N($d),B(null,!0)}var G=_n(function(de){var pe=A();if(pe!==$d){var ue=q();if(!(de&&!de.deadline&&de.target!==ue)){var Se=H.current,Oe;pe===MC&&Se?Oe=w==null?void 0:w(ue,de):pe===kC&&Se?Oe=C==null?void 0:C(ue,de):pe===TC&&Se&&(Oe=E==null?void 0:E(ue,de)),Se&&Oe!==!1&&U()}}}),K=p_e(G),X=he(K,1),Q=X[0],ee=function(pe){switch(pe){case MC:return Z(Z(Z({},xc,d),Dg,g),Fg,y);case kC:return Z(Z(Z({},xc,h),Dg,v),Fg,x);case TC:return Z(Z(Z({},xc,p),Dg,m),Fg,S);default:return{}}},ne=b.useMemo(function(){return ee(D)},[D]),te=b_e(D,!e,function(de){if(de===xc){var pe=ne[xc];return pe?pe(q()):iU}if(le in ne){var ue;B(((ue=ne[le])===null||ue===void 0?void 0:ue.call(ne,q(),null))||null)}return le===Fg&&D!==$d&&(Q(q()),u>0&&(clearTimeout(W.current),W.current=setTimeout(function(){G({deadline:!0})},u))),le===Gq&&U(),y_e}),ie=he(te,2),J=ie[0],le=ie[1],oe=aU(le);H.current=oe;var re=b.useRef(null);rU(function(){if(!(z.current&&re.current===t)){k(t);var de=z.current;z.current=!0;var pe;!de&&t&&s&&(pe=MC),de&&t&&a&&(pe=kC),(de&&!t&&c||!de&&f&&!t&&c)&&(pe=TC);var ue=ee(pe);pe&&(e||ue[xc])?(N(pe),J()):N($d),re.current=t}},[t]),b.useEffect(function(){(D===MC&&!s||D===kC&&!a||D===TC&&!c)&&N($d)},[s,a,c]),b.useEffect(function(){return function(){z.current=!1,clearTimeout(W.current)}},[]);var se=b.useRef(!1);b.useEffect(function(){M&&(se.current=!0),M!==void 0&&D===$d&&((se.current||M)&&(O==null||O(M)),se.current=!0)},[M,D]);var ge=F;return ne[xc]&&le===Dg&&(ge=ae({transition:"none"},ge)),[D,le,ge,M!=null?M:t]}function S_e(e){var t=e;Bt(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=b.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,f=i.children,d=i.motionName,h=i.leavedClassName,p=i.eventProps,g=b.useContext(qq),v=g.motion,m=n(i,v),y=b.useRef(),x=b.useRef();function S(){try{return y.current instanceof HTMLElement?y.current:m1(x.current)}catch(j){return null}}var w=x_e(m,s,S,i),C=he(w,4),E=C[0],O=C[1],$=C[2],P=C[3],M=b.useRef(P);P&&(M.current=!0);var k=b.useCallback(function(j){y.current=j,y1(a,j)},[a]),T,R=ae(ae({},p),{},{visible:s});if(!f)T=null;else if(E===$d)P?T=f(ae({},R),k):!c&&M.current&&h?T=f(ae(ae({},R),{},{className:h}),k):u||!c&&!h?T=f(ae(ae({},R),{},{style:{display:"none"}}),k):T=null;else{var A;O===xc?A="prepare":aU(O)?A="active":O===Dg&&(A="start");var N=nU(d,"".concat(E,"-").concat(A));T=f(ae(ae({},R),{},{className:me(nU(d,E),Z(Z({},N,N&&A),d,typeof d=="string")),style:$}),k)}if(b.isValidElement(T)&&vc(T)){var L=bd(T);L||(T=b.cloneElement(T,{ref:k}))}return b.createElement(c_e,{ref:x},T)});return r.displayName="CSSMotion",r}const Jo=S_e(Jq);var UT="add",GT="keep",KT="remove",YT="removed";function w_e(e){var t;return e&&Bt(e)==="object"&&"key"in e?t=e:t={key:e},ae(ae({},t),{},{key:String(t.key)})}function XT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(w_e)}function C_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=XT(e),o=XT(t);a.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==KT}),n.forEach(function(u){u.key===c&&(u.status=GT)})}),n}var E_e=["component","children","onVisibleChanged","onAllRemoved"],O_e=["status"],__e=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function $_e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jo,n=function(r){Sn(a,r);var i=Vs(a);function a(){var o;rt(this,a);for(var s=arguments.length,l=new Array(s),c=0;cnull;var k_e=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 i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const A_e=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(IC=t),n!==void 0&&(oU=n),"holderRender"in e&&(lU=i),r&&(I_e(r)?NOe(AC(),r):sU=r)},cU=()=>({getPrefixCls:(e,t)=>t||(e?`${AC()}-${e}`:AC()),getIconPrefixCls:R_e,getRootPrefixCls:()=>IC||AC(),getTheme:()=>sU,holderRender:lU}),N_e=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:o,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:d,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:g,legacyLocale:v,parentContext:m,iconPrefixCls:y,theme:x,componentDisabled:S,segmented:w,statistic:C,spin:E,calendar:O,carousel:$,cascader:P,collapse:M,typography:k,checkbox:T,descriptions:R,divider:A,drawer:N,skeleton:L,steps:j,image:F,layout:B,list:D,mentions:z,modal:W,progress:q,result:H,slider:U,breadcrumb:G,menu:K,pagination:X,input:Q,textArea:ee,empty:ne,badge:te,radio:ie,rate:J,switch:le,transfer:oe,avatar:re,message:se,tag:ge,table:de,card:pe,tabs:ue,timeline:Se,timePicker:Oe,upload:_e,notification:Te,tree:je,colorPicker:Be,datePicker:Pe,rangePicker:He,flex:Ue,wave:ke,dropdown:Ce,warning:Re,tour:Ae,floatButtonGroup:$e,variant:Ve,inputNumber:et,treeSelect:Tt}=e,Mt=b.useCallback((Xe,Je)=>{const{prefixCls:bt}=e;if(Je)return Je;const Rt=bt||m.getPrefixCls("");return Xe?`${Rt}-${Xe}`:Rt},[m.getPrefixCls,e.prefixCls]),at=y||m.iconPrefixCls||_C,ht=n||m.csp;r_e(at,ht);const Ot=o_e(x,m.theme,{prefixCls:Mt("")}),vt={csp:ht,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:s||v,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:p!=null?p:h,popupOverflow:g,getPrefixCls:Mt,iconPrefixCls:at,theme:Ot,segmented:w,statistic:C,spin:E,calendar:O,carousel:$,cascader:P,collapse:M,typography:k,checkbox:T,descriptions:R,divider:A,drawer:N,skeleton:L,steps:j,image:F,input:Q,textArea:ee,layout:B,list:D,mentions:z,modal:W,progress:q,result:H,slider:U,breadcrumb:G,menu:K,pagination:X,empty:ne,badge:te,radio:ie,rate:J,switch:le,transfer:oe,avatar:re,message:se,tag:ge,table:de,card:pe,tabs:ue,timeline:Se,timePicker:Oe,upload:_e,notification:Te,tree:je,colorPicker:Be,datePicker:Pe,rangePicker:He,flex:Ue,wave:ke,dropdown:Ce,warning:Re,tour:Ae,floatButtonGroup:$e,variant:Ve,inputNumber:et,treeSelect:Tt},$t=Object.assign({},m);Object.keys(vt).forEach(Xe=>{vt[Xe]!==void 0&&($t[Xe]=vt[Xe])}),T_e.forEach(Xe=>{const Je=e[Xe];Je&&($t[Xe]=Je)}),typeof r!="undefined"&&($t.button=Object.assign({autoInsertSpace:r},$t.button));const gt=op(()=>$t,$t,(Xe,Je)=>{const bt=Object.keys(Xe),Rt=Object.keys(Je);return bt.length!==Rt.length||bt.some(Xt=>Xe[Xt]!==Je[Xt])}),st=b.useMemo(()=>({prefixCls:at,csp:ht}),[at,ht]);let tt=b.createElement(b.Fragment,null,b.createElement(M_e,{dropdownMatchSelectWidth:h}),t);const ot=b.useMemo(()=>{var Xe,Je,bt,Rt;return Rg(((Xe=_o.Form)===null||Xe===void 0?void 0:Xe.defaultValidateMessages)||{},((bt=(Je=gt.locale)===null||Je===void 0?void 0:Je.Form)===null||bt===void 0?void 0:bt.defaultValidateMessages)||{},((Rt=gt.form)===null||Rt===void 0?void 0:Rt.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[gt,o==null?void 0:o.validateMessages]);Object.keys(ot).length>0&&(tt=b.createElement(pq.Provider,{value:ot},tt)),s&&(tt=b.createElement(lOe,{locale:s,_ANT_MARK__:sOe},tt)),tt=b.createElement(mT.Provider,{value:st},tt),l&&(tt=b.createElement(LOe,{size:l},tt)),tt=b.createElement(P_e,null,tt);const Pt=b.useMemo(()=>{const Xe=Ot||{},{algorithm:Je,token:bt,components:Rt,cssVar:Xt}=Xe,Qt=k_e(Xe,["algorithm","token","components","cssVar"]),Gt=Je&&(!Array.isArray(Je)||Je.length>0)?w1(Je):kq,wt={};Object.entries(Rt||{}).forEach(Nt=>{let[Zt,vn]=Nt;const an=Object.assign({},vn);"algorithm"in an&&(an.algorithm===!0?an.theme=Gt:(Array.isArray(an.algorithm)||typeof an.algorithm=="function")&&(an.theme=w1(an.algorithm)),delete an.algorithm),wt[Zt]=an});const _t=Object.assign(Object.assign({},Lg),bt);return Object.assign(Object.assign({},Qt),{theme:Gt,token:_t,components:wt,override:Object.assign({override:_t},wt),cssVar:Xt})},[Ot]);return x&&(tt=b.createElement(DT.Provider,{value:Pt},tt)),gt.warning&&(tt=b.createElement(aOe.Provider,{value:gt.warning},tt)),S!==void 0&&(tt=b.createElement(FT,{disabled:S},tt)),b.createElement(Lt.Provider,{value:gt},tt)},Sc=e=>{const t=b.useContext(Lt),n=b.useContext(yT);return b.createElement(N_e,Object.assign({parentContext:t,legacyLocale:n},e))};Sc.ConfigContext=Lt,Sc.SizeContext=dp,Sc.config=A_e,Sc.useConfig=jOe,Object.defineProperty(Sc,"SizeContext",{get:()=>dp});var L_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function uU(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function j_e(e){return uU(e)instanceof ShadowRoot}function NC(e){return j_e(e)?uU(e):null}function D_e(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function F_e(e,t){zr(e,"[@ant-design/icons] ".concat(t))}function fU(e){return Bt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Bt(e.icon)==="object"||typeof e.icon=="function")}function dU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[D_e(n)]=r}return t},{})}function QT(e,t,n){return n?we.createElement(e.tag,ae(ae({key:t},dU(e.attrs)),n),(e.children||[]).map(function(r,i){return QT(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):we.createElement(e.tag,ae({key:t},dU(e.attrs)),(e.children||[]).map(function(r,i){return QT(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function hU(e){return fp(e)[0]}function pU(e){return e?Array.isArray(e)?e:[e]:[]}var B_e=` + `,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 Dq=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 i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=Dq(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=zT(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=Dq(c,["theme"]);let d=f;u&&(d=Bq(Object.assign(Object.assign({},o),f),{override:f},u)),o[l]=d}),o};function to(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=we.useContext(NT),a=`${KOe}-${t||""}`,o=n||Mq,[s,l,c]=OEe(o,[jg,e],{salt:a,override:r,getComputedToken:Bq,formatToken:zT,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Fq,ignore:XOe,preserve:ZOe}});return[o,c,t?l:"",s,i]}const Qo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},er=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},_d=()=>({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"}}),bc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),QOe=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"}}}),JOe=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},$d=e=>({outline:`${ue(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),nu=e=>({"&:focus-visible":Object.assign({},$d(e))}),zq=e=>({[`.${e}`]:Object.assign(Object.assign({},_d()),{[`.${e} .${e}-icon`]:{display:"block"}})}),$C=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},nu(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:tr,genComponentStyleHook:e_e,genSubStyleComponent:Dg}=GOe({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=b.useContext(At);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=to();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=b.useContext(At);return e!=null?e:{}},getResetStyles:(e,t)=>{var n;return[{"&":QOe(e)},zq((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:OC)]},getCommonStyle:JOe,getCompUnitless:()=>Fq});function Hq(e,t){return R1.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}const t_e=(e,t)=>{const[n,r]=to();return pT({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[zq(e)])},n_e=Object.assign({},wy),{useId:Wq}=n_e,r_e=typeof Wq=="undefined"?()=>"":Wq;function i_e(e,t,n){var r;Cd();const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},k1),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:k1.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=r_e();return sp(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(d=>{c[d]=Object.assign(Object.assign({},c[d]),e.components[d])});const u=`css-var-${o.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:c,cssVar:f})},[i,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!yl(c,f,!0)}))}var a_e=["children"],Vq=b.createContext({});function o_e(e){var t=e.children,n=qt(e,a_e);return b.createElement(Vq.Provider,{value:n},t)}var s_e=function(e){xn(n,e);var t=Vs(n);function n(){return it(this,n),t.apply(this,arguments)}return at(n,[{key:"render",value:function(){return this.props.children}}]),n}(b.Component);function l_e(e){var t=b.useReducer(function(s){return s+1},0),n=he(t,2),r=n[1],i=b.useRef(e),a=On(function(){return i.current}),o=On(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[a,o]}var Pd="none",PC="appear",MC="enter",kC="leave",qq="none",xc="prepare",Fg="start",Bg="active",HT="end",Uq="prepared";function Gq(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function c_e(e,t){var n={animationend:Gq("Animation","AnimationEnd"),transitionend:Gq("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var u_e=c_e(Ja(),typeof window!="undefined"?window:{}),Kq={};if(Ja()){var f_e=document.createElement("div");Kq=f_e.style}var TC={};function Yq(e){if(TC[e])return TC[e];var t=u_e[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Sn(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return b.useEffect(function(){return function(){t()}},[]),[n,t]};var p_e=[xc,Fg,Bg,HT],v_e=[xc,Uq],rU=!1,g_e=!0;function iU(e){return e===Bg||e===HT}const m_e=function(e,t,n){var r=pp(qq),i=he(r,2),a=i[0],o=i[1],s=h_e(),l=he(s,2),c=l[0],u=l[1];function f(){o(xc,!0)}var d=t?v_e:p_e;return nU(function(){if(a!==qq&&a!==HT){var h=d.indexOf(a),p=d[h+1],v=n(a);v===rU?o(p,!0):p&&c(function(g){function m(){g.isCanceled()||o(p,!0)}v===!0?m():Promise.resolve(v).then(m)})}},[e,a]),b.useEffect(function(){return function(){u()}},[]),[f,a]};function y_e(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,d=r.onAppearPrepare,h=r.onEnterPrepare,p=r.onLeavePrepare,v=r.onAppearStart,g=r.onEnterStart,m=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,S=r.onLeaveActive,w=r.onAppearEnd,C=r.onEnterEnd,E=r.onLeaveEnd,O=r.onVisibleChanged,$=pp(),P=he($,2),M=P[0],k=P[1],T=l_e(Pd),R=he(T,2),A=R[0],N=R[1],L=pp(null),j=he(L,2),F=j[0],B=j[1],D=A(),z=b.useRef(!1),W=b.useRef(null);function q(){return n()}var H=b.useRef(!1);function U(){N(Pd),B(null,!0)}var G=On(function(de){var pe=A();if(pe!==Pd){var fe=q();if(!(de&&!de.deadline&&de.target!==fe)){var xe=H.current,Oe;pe===PC&&xe?Oe=w==null?void 0:w(fe,de):pe===MC&&xe?Oe=C==null?void 0:C(fe,de):pe===kC&&xe&&(Oe=E==null?void 0:E(fe,de)),xe&&Oe!==!1&&U()}}}),K=d_e(G),X=he(K,1),Q=X[0],ee=function(pe){switch(pe){case PC:return Z(Z(Z({},xc,d),Fg,v),Bg,y);case MC:return Z(Z(Z({},xc,h),Fg,g),Bg,x);case kC:return Z(Z(Z({},xc,p),Fg,m),Bg,S);default:return{}}},ne=b.useMemo(function(){return ee(D)},[D]),te=m_e(D,!e,function(de){if(de===xc){var pe=ne[xc];return pe?pe(q()):rU}if(le in ne){var fe;B(((fe=ne[le])===null||fe===void 0?void 0:fe.call(ne,q(),null))||null)}return le===Bg&&D!==Pd&&(Q(q()),u>0&&(clearTimeout(W.current),W.current=setTimeout(function(){G({deadline:!0})},u))),le===Uq&&U(),g_e}),ie=he(te,2),J=ie[0],le=ie[1],oe=iU(le);H.current=oe;var re=b.useRef(null);nU(function(){if(!(z.current&&re.current===t)){k(t);var de=z.current;z.current=!0;var pe;!de&&t&&s&&(pe=PC),de&&t&&a&&(pe=MC),(de&&!t&&c||!de&&f&&!t&&c)&&(pe=kC);var fe=ee(pe);pe&&(e||fe[xc])?(N(pe),J()):N(Pd),re.current=t}},[t]),b.useEffect(function(){(D===PC&&!s||D===MC&&!a||D===kC&&!c)&&N(Pd)},[s,a,c]),b.useEffect(function(){return function(){z.current=!1,clearTimeout(W.current)}},[]);var se=b.useRef(!1);b.useEffect(function(){M&&(se.current=!0),M!==void 0&&D===Pd&&((se.current||M)&&(O==null||O(M)),se.current=!0)},[M,D]);var ge=F;return ne[xc]&&le===Fg&&(ge=ae({transition:"none"},ge)),[D,le,ge,M!=null?M:t]}function b_e(e){var t=e;Bt(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=b.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,f=i.children,d=i.motionName,h=i.leavedClassName,p=i.eventProps,v=b.useContext(Vq),g=v.motion,m=n(i,g),y=b.useRef(),x=b.useRef();function S(){try{return y.current instanceof HTMLElement?y.current:m1(x.current)}catch(j){return null}}var w=y_e(m,s,S,i),C=he(w,4),E=C[0],O=C[1],$=C[2],P=C[3],M=b.useRef(P);P&&(M.current=!0);var k=b.useCallback(function(j){y.current=j,y1(a,j)},[a]),T,R=ae(ae({},p),{},{visible:s});if(!f)T=null;else if(E===Pd)P?T=f(ae({},R),k):!c&&M.current&&h?T=f(ae(ae({},R),{},{className:h}),k):u||!c&&!h?T=f(ae(ae({},R),{},{style:{display:"none"}}),k):T=null;else{var A;O===xc?A="prepare":iU(O)?A="active":O===Fg&&(A="start");var N=tU(d,"".concat(E,"-").concat(A));T=f(ae(ae({},R),{},{className:me(tU(d,E),Z(Z({},N,N&&A),d,typeof d=="string")),style:$}),k)}if(b.isValidElement(T)&&vc(T)){var L=bd(T);L||(T=b.cloneElement(T,{ref:k}))}return b.createElement(s_e,{ref:x},T)});return r.displayName="CSSMotion",r}const Jo=b_e(Qq);var WT="add",VT="keep",qT="remove",UT="removed";function x_e(e){var t;return e&&Bt(e)==="object"&&"key"in e?t=e:t={key:e},ae(ae({},t),{},{key:String(t.key)})}function GT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(x_e)}function S_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=GT(e),o=GT(t);a.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==qT}),n.forEach(function(u){u.key===c&&(u.status=VT)})}),n}var w_e=["component","children","onVisibleChanged","onAllRemoved"],C_e=["status"],E_e=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function O_e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jo,n=function(r){xn(a,r);var i=Vs(a);function a(){var o;it(this,a);for(var s=arguments.length,l=new Array(s),c=0;cnull;var P_e=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 i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const R_e=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(RC=t),n!==void 0&&(aU=n),"holderRender"in e&&(sU=i),r&&(T_e(r)?IOe(IC(),r):oU=r)},lU=()=>({getPrefixCls:(e,t)=>t||(e?`${IC()}-${e}`:IC()),getIconPrefixCls:k_e,getRootPrefixCls:()=>RC||IC(),getTheme:()=>oU,holderRender:sU}),I_e=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:o,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:d,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:v,legacyLocale:g,parentContext:m,iconPrefixCls:y,theme:x,componentDisabled:S,segmented:w,statistic:C,spin:E,calendar:O,carousel:$,cascader:P,collapse:M,typography:k,checkbox:T,descriptions:R,divider:A,drawer:N,skeleton:L,steps:j,image:F,layout:B,list:D,mentions:z,modal:W,progress:q,result:H,slider:U,breadcrumb:G,menu:K,pagination:X,input:Q,textArea:ee,empty:ne,badge:te,radio:ie,rate:J,switch:le,transfer:oe,avatar:re,message:se,tag:ge,table:de,card:pe,tabs:fe,timeline:xe,timePicker:Oe,upload:_e,notification:Te,tree:Fe,colorPicker:Be,datePicker:Pe,rangePicker:ze,flex:Ue,wave:ke,dropdown:Ee,warning:Ie,tour:Ae,floatButtonGroup:$e,variant:He,inputNumber:ot,treeSelect:Ot}=e,Wt=b.useCallback((Ye,Je)=>{const{prefixCls:mt}=e;if(Je)return Je;const Tt=mt||m.getPrefixCls("");return Ye?`${Tt}-${Ye}`:Tt},[m.getPrefixCls,e.prefixCls]),et=y||m.iconPrefixCls||OC,ht=n||m.csp;t_e(et,ht);const Et=i_e(x,m.theme,{prefixCls:Wt("")}),gt={csp:ht,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:s||g,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:p!=null?p:h,popupOverflow:v,getPrefixCls:Wt,iconPrefixCls:et,theme:Et,segmented:w,statistic:C,spin:E,calendar:O,carousel:$,cascader:P,collapse:M,typography:k,checkbox:T,descriptions:R,divider:A,drawer:N,skeleton:L,steps:j,image:F,input:Q,textArea:ee,layout:B,list:D,mentions:z,modal:W,progress:q,result:H,slider:U,breadcrumb:G,menu:K,pagination:X,empty:ne,badge:te,radio:ie,rate:J,switch:le,transfer:oe,avatar:re,message:se,tag:ge,table:de,card:pe,tabs:fe,timeline:xe,timePicker:Oe,upload:_e,notification:Te,tree:Fe,colorPicker:Be,datePicker:Pe,rangePicker:ze,flex:Ue,wave:ke,dropdown:Ee,warning:Ie,tour:Ae,floatButtonGroup:$e,variant:He,inputNumber:ot,treeSelect:Ot},Pt=Object.assign({},m);Object.keys(gt).forEach(Ye=>{gt[Ye]!==void 0&&(Pt[Ye]=gt[Ye])}),M_e.forEach(Ye=>{const Je=e[Ye];Je&&(Pt[Ye]=Je)}),typeof r!="undefined"&&(Pt.button=Object.assign({autoInsertSpace:r},Pt.button));const wt=sp(()=>Pt,Pt,(Ye,Je)=>{const mt=Object.keys(Ye),Tt=Object.keys(Je);return mt.length!==Tt.length||mt.some(Xt=>Ye[Xt]!==Je[Xt])}),st=b.useMemo(()=>({prefixCls:et,csp:ht}),[et,ht]);let nt=b.createElement(b.Fragment,null,b.createElement($_e,{dropdownMatchSelectWidth:h}),t);const lt=b.useMemo(()=>{var Ye,Je,mt,Tt;return Ag(((Ye=_o.Form)===null||Ye===void 0?void 0:Ye.defaultValidateMessages)||{},((mt=(Je=wt.locale)===null||Je===void 0?void 0:Je.Form)===null||mt===void 0?void 0:mt.defaultValidateMessages)||{},((Tt=wt.form)===null||Tt===void 0?void 0:Tt.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[wt,o==null?void 0:o.validateMessages]);Object.keys(lt).length>0&&(nt=b.createElement(fq.Provider,{value:lt},nt)),s&&(nt=b.createElement(oOe,{locale:s,_ANT_MARK__:aOe},nt)),nt=b.createElement(vT.Provider,{value:st},nt),l&&(nt=b.createElement(AOe,{size:l},nt)),nt=b.createElement(__e,null,nt);const Mt=b.useMemo(()=>{const Ye=Et||{},{algorithm:Je,token:mt,components:Tt,cssVar:Xt}=Ye,Jt=P_e(Ye,["algorithm","token","components","cssVar"]),Gt=Je&&(!Array.isArray(Je)||Je.length>0)?w1(Je):Mq,St={};Object.entries(Tt||{}).forEach(Nt=>{let[Zt,gn]=Nt;const an=Object.assign({},gn);"algorithm"in an&&(an.algorithm===!0?an.theme=Gt:(Array.isArray(an.algorithm)||typeof an.algorithm=="function")&&(an.theme=w1(an.algorithm)),delete an.algorithm),St[Zt]=an});const $t=Object.assign(Object.assign({},jg),mt);return Object.assign(Object.assign({},Jt),{theme:Gt,token:$t,components:St,override:Object.assign({override:$t},St),cssVar:Xt})},[Et]);return x&&(nt=b.createElement(NT.Provider,{value:Mt},nt)),wt.warning&&(nt=b.createElement(rOe.Provider,{value:wt.warning},nt)),S!==void 0&&(nt=b.createElement(LT,{disabled:S},nt)),b.createElement(At.Provider,{value:wt},nt)},Sc=e=>{const t=b.useContext(At),n=b.useContext(gT);return b.createElement(I_e,Object.assign({parentContext:t,legacyLocale:n},e))};Sc.ConfigContext=At,Sc.SizeContext=hp,Sc.config=R_e,Sc.useConfig=NOe,Object.defineProperty(Sc,"SizeContext",{get:()=>hp});var A_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function cU(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function N_e(e){return cU(e)instanceof ShadowRoot}function AC(e){return N_e(e)?cU(e):null}function L_e(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function j_e(e,t){zr(e,"[@ant-design/icons] ".concat(t))}function uU(e){return Bt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Bt(e.icon)==="object"||typeof e.icon=="function")}function fU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[L_e(n)]=r}return t},{})}function YT(e,t,n){return n?we.createElement(e.tag,ae(ae({key:t},fU(e.attrs)),n),(e.children||[]).map(function(r,i){return YT(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):we.createElement(e.tag,ae({key:t},fU(e.attrs)),(e.children||[]).map(function(r,i){return YT(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function dU(e){return fp(e)[0]}function hU(e){return e?Array.isArray(e)?e:[e]:[]}var D_e=` .anticon { display: inline-flex; align-items: center; @@ -147,7 +147,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,z_e=function(t){var n=b.useContext(mT),r=n.csp,i=n.prefixCls,a=B_e;i&&(a=a.replace(/anticon/g,i)),b.useEffect(function(){var o=t.current,s=NC(o);nf(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},H_e=["icon","className","onClick","style","primaryColor","secondaryColor"],R1={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function W_e(e){var t=e.primaryColor,n=e.secondaryColor;R1.primaryColor=t,R1.secondaryColor=n||hU(t),R1.calculated=!!n}function V_e(){return ae({},R1)}var Bg=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=Vt(t,H_e),c=b.useRef(),u=R1;if(o&&(u={primaryColor:o,secondaryColor:s||hU(o)}),z_e(c),F_e(fU(n),"icon should be icon definiton, but got ".concat(n)),!fU(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=ae(ae({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),QT(f.icon,"svg-".concat(f.name),ae(ae({className:r,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Bg.displayName="IconReact",Bg.getTwoToneColors=V_e,Bg.setTwoToneColors=W_e;function vU(e){var t=pU(e),n=he(t,2),r=n[0],i=n[1];return Bg.setTwoToneColors({primaryColor:r,secondaryColor:i})}function q_e(){var e=Bg.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var U_e=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];vU(Ng.primary);var xn=b.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Vt(e,U_e),u=b.useContext(mT),f=u.prefixCls,d=f===void 0?"anticon":f,h=u.rootClassName,p=me(h,d,Z(Z({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!i||r.name==="loading"),n),g=o;g===void 0&&s&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,m=pU(l),y=he(m,2),x=y[0],S=y[1];return b.createElement("span",Le({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:p}),b.createElement(Bg,{icon:r,primaryColor:x,secondaryColor:S,style:v}))});xn.displayName="AntdIcon",xn.getTwoToneColor=q_e,xn.setTwoToneColor=vU;var G_e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:L_e}))},I1=b.forwardRef(G_e),K_e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Y_e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:K_e}))},pp=b.forwardRef(Y_e),X_e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Z_e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:X_e}))},Pd=b.forwardRef(Z_e),Q_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},J_e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:Q_e}))},zg=b.forwardRef(J_e),e$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 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"},t$e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:e$e}))},gU=b.forwardRef(t$e),n$e=`accept acceptCharset accessKey action allowFullScreen allowTransparency +`,F_e=function(t){var n=b.useContext(vT),r=n.csp,i=n.prefixCls,a=D_e;i&&(a=a.replace(/anticon/g,i)),b.useEffect(function(){var o=t.current,s=AC(o);nf(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},B_e=["icon","className","onClick","style","primaryColor","secondaryColor"],I1={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function z_e(e){var t=e.primaryColor,n=e.secondaryColor;I1.primaryColor=t,I1.secondaryColor=n||dU(t),I1.calculated=!!n}function H_e(){return ae({},I1)}var zg=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=qt(t,B_e),c=b.useRef(),u=I1;if(o&&(u={primaryColor:o,secondaryColor:s||dU(o)}),F_e(c),j_e(uU(n),"icon should be icon definiton, but got ".concat(n)),!uU(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=ae(ae({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),YT(f.icon,"svg-".concat(f.name),ae(ae({className:r,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};zg.displayName="IconReact",zg.getTwoToneColors=H_e,zg.setTwoToneColors=z_e;function pU(e){var t=hU(e),n=he(t,2),r=n[0],i=n[1];return zg.setTwoToneColors({primaryColor:r,secondaryColor:i})}function W_e(){var e=zg.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var V_e=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];pU(Lg.primary);var bn=b.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=qt(e,V_e),u=b.useContext(vT),f=u.prefixCls,d=f===void 0?"anticon":f,h=u.rootClassName,p=me(h,d,Z(Z({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!i||r.name==="loading"),n),v=o;v===void 0&&s&&(v=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,m=hU(l),y=he(m,2),x=y[0],S=y[1];return b.createElement("span",Le({role:"img","aria-label":r.name},c,{ref:t,tabIndex:v,onClick:s,className:p}),b.createElement(zg,{icon:r,primaryColor:x,secondaryColor:S,style:g}))});bn.displayName="AntdIcon",bn.getTwoToneColor=W_e,bn.setTwoToneColor=pU;var q_e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:A_e}))},A1=b.forwardRef(q_e),U_e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},G_e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:U_e}))},vp=b.forwardRef(G_e),K_e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Y_e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:K_e}))},Md=b.forwardRef(Y_e),X_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Z_e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:X_e}))},Hg=b.forwardRef(Z_e),Q_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},J_e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:Q_e}))},vU=b.forwardRef(J_e),e$e=`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 @@ -158,121 +158,121 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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`,r$e=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + summary tabIndex target title type useMap value width wmode wrap`,t$e=`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`,i$e="".concat(n$e," ").concat(r$e).split(/[\s\n]+/),a$e="aria-",o$e="data-";function mU(e,t){return e.indexOf(t)===0}function ta(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=ae({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||mU(i,a$e))||n.data&&mU(i,o$e)||n.attr&&i$e.includes(i))&&(r[i]=e[i])}),r}function yU(e){return e&&we.isValidElement(e)&&e.type===we.Fragment}const bU=(e,t,n)=>we.isValidElement(e)?we.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Pa(e,t){return bU(e,e,t)}function Xn(e,t,n){return t=tf(t),$V(e,aC()?Reflect.construct(t,n||[],tf(e).constructor):t.apply(e,n))}const xU=e=>typeof e=="object"&&e!=null&&e.nodeType===1,SU=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",JT=(e,t)=>{if(e.clientHeight{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch(o){return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,s$e=e=>{const t=e.parentElement;return t==null?e.getRootNode().host||null:t},wU=(e,t)=>{var n,r,i,a;if(typeof document=="undefined")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:N=>N!==c;if(!xU(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,h=[];let p=e;for(;xU(p)&&f(p);){if(p=s$e(p),p===d){h.push(p);break}p!=null&&p===document.body&&JT(p)&&!JT(document.documentElement)||p!=null&&JT(p,u)&&h.push(p)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:m,scrollY:y}=window,{height:x,width:S,top:w,right:C,bottom:E,left:O}=e.getBoundingClientRect(),{top:$,right:P,bottom:M,left:k}=(N=>{const L=window.getComputedStyle(N);return{top:parseFloat(L.scrollMarginTop)||0,right:parseFloat(L.scrollMarginRight)||0,bottom:parseFloat(L.scrollMarginBottom)||0,left:parseFloat(L.scrollMarginLeft)||0}})(e);let T=s==="start"||s==="nearest"?w-$:s==="end"?E+M:w+x/2-$+M,R=l==="center"?O+S/2-k+P:l==="end"?C+P:O-k;const A=[];for(let N=0;N=0&&O>=0&&E<=v&&C<=g&&w>=B&&E<=z&&O>=W&&C<=D)return A;const q=getComputedStyle(L),H=parseInt(q.borderLeftWidth,10),U=parseInt(q.borderTopWidth,10),G=parseInt(q.borderRightWidth,10),K=parseInt(q.borderBottomWidth,10);let X=0,Q=0;const ee="offsetWidth"in L?L.offsetWidth-L.clientWidth-H-G:0,ne="offsetHeight"in L?L.offsetHeight-L.clientHeight-U-K:0,te="offsetWidth"in L?L.offsetWidth===0?0:F/L.offsetWidth:0,ie="offsetHeight"in L?L.offsetHeight===0?0:j/L.offsetHeight:0;if(d===L)X=s==="start"?T:s==="end"?T-v:s==="nearest"?LC(y,y+v,v,U,K,y+T,y+T+x,x):T-v/2,Q=l==="start"?R:l==="center"?R-g/2:l==="end"?R-g:LC(m,m+g,g,H,G,m+R,m+R+S,S),X=Math.max(0,X+y),Q=Math.max(0,Q+m);else{X=s==="start"?T-B-U:s==="end"?T-z+K+ne:s==="nearest"?LC(B,z,j,U,K+ne,T,T+x,x):T-(B+j/2)+ne/2,Q=l==="start"?R-W-H:l==="center"?R-(W+F/2)+ee/2:l==="end"?R-D+G+ee:LC(W,D,F,H,G+ee,R,R+S,S);const{scrollLeft:J,scrollTop:le}=L;X=ie===0?0:Math.max(0,Math.min(le+X/ie,L.scrollHeight-j/ie+ne)),Q=te===0?0:Math.max(0,Math.min(J+Q/te,L.scrollWidth-F/te+ee)),T+=le-X,R+=J-Q}A.push({el:L,top:X,left:Q})}return A},l$e=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function c$e(e,t){if(!e.isConnected||!(i=>{let a=i;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(i=>{const a=window.getComputedStyle(i);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(wU(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:a,left:o}of wU(e,l$e(t))){const s=a-n.top+n.bottom,l=o-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}function eR(e){return e!=null&&e===e.window}const u$e=e=>{var t,n;if(typeof window=="undefined")return 0;let r=0;return eR(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!eR(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function f$e(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function d$e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=u$e(a),s=Date.now(),l=()=>{const u=Date.now()-s,f=f$e(u>i?i:u,o,e,i);eR(a)?a.scrollTo(window.pageXOffset,f):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=f:a.scrollTop=f,u{const[,,,,t]=eo();return t?`${e}-css-var`:""};var Ze={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Ze.F1&&n<=Ze.F12)return!1;switch(n){case Ze.ALT:case Ze.CAPS_LOCK:case Ze.CONTEXT_MENU:case Ze.CTRL:case Ze.DOWN:case Ze.END:case Ze.ESC:case Ze.HOME:case Ze.INSERT:case Ze.LEFT:case Ze.MAC_FF_META:case Ze.META:case Ze.NUMLOCK:case Ze.NUM_CENTER:case Ze.PAGE_DOWN:case Ze.PAGE_UP:case Ze.PAUSE:case Ze.PRINT_SCREEN:case Ze.RIGHT:case Ze.SHIFT:case Ze.UP:case Ze.WIN_KEY:case Ze.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Ze.ZERO&&t<=Ze.NINE||t>=Ze.NUM_ZERO&&t<=Ze.NUM_MULTIPLY||t>=Ze.A&&t<=Ze.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Ze.SPACE:case Ze.QUESTION_MARK:case Ze.NUM_PLUS:case Ze.NUM_MINUS:case Ze.NUM_PERIOD:case Ze.NUM_DIVISION:case Ze.SEMICOLON:case Ze.DASH:case Ze.EQUALS:case Ze.COMMA:case Ze.PERIOD:case Ze.SLASH:case Ze.APOSTROPHE:case Ze.SINGLE_QUOTE:case Ze.OPEN_SQUARE_BRACKET:case Ze.BACKSLASH:case Ze.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},CU=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,o=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,d=e.closable,h=e.closeIcon,p=h===void 0?"x":h,g=e.props,v=e.onClick,m=e.onNoticeClose,y=e.times,x=e.hovering,S=b.useState(!1),w=he(S,2),C=w[0],E=w[1],O=b.useState(0),$=he(O,2),P=$[0],M=$[1],k=b.useState(0),T=he(k,2),R=T[0],A=T[1],N=x||C,L=o>0&&s,j=function(){m(u)},F=function(H){(H.key==="Enter"||H.code==="Enter"||H.keyCode===Ze.ENTER)&&j()};b.useEffect(function(){if(!N&&o>0){var q=Date.now()-R,H=setTimeout(function(){j()},o*1e3-R);return function(){c&&clearTimeout(H),A(Date.now()-q)}}},[o,N,y]),b.useEffect(function(){if(!N&&L&&(c||R===0)){var q=performance.now(),H,U=function G(){cancelAnimationFrame(H),H=requestAnimationFrame(function(K){var X=K+R-q,Q=Math.min(X/(o*1e3),1);M(Q*100),Q<1&&G()})};return U(),function(){c&&cancelAnimationFrame(H)}}},[o,R,N,L,y]);var B=b.useMemo(function(){return Bt(d)==="object"&&d!==null?d:d?{closeIcon:p}:{}},[d,p]),D=ta(B,!0),z=100-(!P||P<0?0:P>100?100:P),W="".concat(n,"-notice");return b.createElement("div",Le({},g,{ref:t,className:me(W,i,Z({},"".concat(W,"-closable"),d)),style:r,onMouseEnter:function(H){var U;E(!0),g==null||(U=g.onMouseEnter)===null||U===void 0||U.call(g,H)},onMouseLeave:function(H){var U;E(!1),g==null||(U=g.onMouseLeave)===null||U===void 0||U.call(g,H)},onClick:v}),b.createElement("div",{className:"".concat(W,"-content")},f),d&&b.createElement("a",Le({tabIndex:0,className:"".concat(W,"-close"),onKeyDown:F,"aria-label":"Close"},D,{onClick:function(H){H.preventDefault(),H.stopPropagation(),j()}}),B.closeIcon),L&&b.createElement("progress",{className:"".concat(W,"-progress"),max:"100",value:z},z+"%"))}),EU=we.createContext({}),h$e=function(t){var n=t.children,r=t.classNames;return we.createElement(EU.Provider,{value:{classNames:r}},n)},OU=8,_U=3,$U=16,p$e=function(t){var n={offset:OU,threshold:_U,gap:$U};if(t&&Bt(t)==="object"){var r,i,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:OU,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:_U,n.gap=(a=t.gap)!==null&&a!==void 0?a:$U}return[!!t,n]},v$e=["className","style","classNames","styles"],g$e=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,a=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=b.useContext(EU),d=f.classNames,h=b.useRef({}),p=b.useState(null),g=he(p,2),v=g[0],m=g[1],y=b.useState([]),x=he(y,2),S=x[0],w=x[1],C=n.map(function(N){return{config:N,key:String(N.key)}}),E=p$e(u),O=he(E,2),$=O[0],P=O[1],M=P.offset,k=P.threshold,T=P.gap,R=$&&(S.length>0||C.length<=k),A=typeof s=="function"?s(r):s;return b.useEffect(function(){$&&S.length>1&&w(function(N){return N.filter(function(L){return C.some(function(j){var F=j.key;return L===F})})})},[S,C,$]),b.useEffect(function(){var N;if($&&h.current[(N=C[C.length-1])===null||N===void 0?void 0:N.key]){var L;m(h.current[(L=C[C.length-1])===null||L===void 0?void 0:L.key])}},[C,$]),we.createElement(ZT,Le({key:r,className:me(i,"".concat(i,"-").concat(r),d==null?void 0:d.list,a,Z(Z({},"".concat(i,"-stack"),!!$),"".concat(i,"-stack-expanded"),R)),style:o,keys:C,motionAppear:!0},A,{onAllRemoved:function(){l(r)}}),function(N,L){var j=N.config,F=N.className,B=N.style,D=N.index,z=j,W=z.key,q=z.times,H=String(W),U=j,G=U.className,K=U.style,X=U.classNames,Q=U.styles,ee=Vt(U,v$e),ne=C.findIndex(function(Se){return Se.key===H}),te={};if($){var ie=C.length-1-(ne>-1?ne:D-1),J=r==="top"||r==="bottom"?"-50%":"0";if(ie>0){var le,oe,re;te.height=R?(le=h.current[H])===null||le===void 0?void 0:le.offsetHeight:v==null?void 0:v.offsetHeight;for(var se=0,ge=0;ge-1?h.current[H]=Oe:delete h.current[H]},prefixCls:i,classNames:X,styles:Q,className:me(G,d==null?void 0:d.notice),style:K,times:q,key:W,eventKey:W,onNoticeClose:c,hovering:$&&S.length>0})))})},m$e=b.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,a=e.motion,o=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,d=b.useState([]),h=he(d,2),p=h[0],g=h[1],v=function($){var P,M=p.find(function(k){return k.key===$});M==null||(P=M.onClose)===null||P===void 0||P.call(M),g(function(k){return k.filter(function(T){return T.key!==$})})};b.useImperativeHandle(t,function(){return{open:function($){g(function(P){var M=Ne(P),k=M.findIndex(function(A){return A.key===$.key}),T=ae({},$);if(k>=0){var R;T.times=(((R=P[k])===null||R===void 0?void 0:R.times)||0)+1,M[k]=T}else T.times=0,M.push(T);return o>0&&M.length>o&&(M=M.slice(-o)),M})},close:function($){v($)},destroy:function(){g([])}}});var m=b.useState({}),y=he(m,2),x=y[0],S=y[1];b.useEffect(function(){var O={};p.forEach(function($){var P=$.placement,M=P===void 0?"topRight":P;M&&(O[M]=O[M]||[],O[M].push($))}),Object.keys(x).forEach(function($){O[$]=O[$]||[]}),S(O)},[p]);var w=function($){S(function(P){var M=ae({},P),k=M[$]||[];return k.length||delete M[$],M})},C=b.useRef(!1);if(b.useEffect(function(){Object.keys(x).length>0?C.current=!0:C.current&&(c==null||c(),C.current=!1)},[x]),!i)return null;var E=Object.keys(x);return ys.createPortal(b.createElement(b.Fragment,null,E.map(function(O){var $=x[O],P=b.createElement(g$e,{key:O,configList:$,placement:O,prefixCls:r,className:s==null?void 0:s(O),style:l==null?void 0:l(O),motion:a,onNoticeClose:v,onAllNoticeRemoved:w,stack:u});return f?f(P,{prefixCls:r,key:O}):P})),i)}),y$e=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],b$e=function(){return document.body},PU=0;function x$e(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?b$e:t,r=e.motion,i=e.prefixCls,a=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=Vt(e,y$e),d=b.useState(),h=he(d,2),p=h[0],g=h[1],v=b.useRef(),m=b.createElement(m$e,{container:p,ref:v,prefixCls:i,motion:r,maxCount:a,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=b.useState([]),x=he(y,2),S=x[0],w=x[1],C=b.useMemo(function(){return{open:function(O){var $=x$e(f,O);($.key===null||$.key===void 0)&&($.key="rc-notification-".concat(PU),PU+=1),w(function(P){return[].concat(Ne(P),[{type:"open",config:$}])})},close:function(O){w(function($){return[].concat(Ne($),[{type:"close",key:O}])})},destroy:function(){w(function(O){return[].concat(Ne(O),[{type:"destroy"}])})}}},[]);return b.useEffect(function(){g(n())}),b.useEffect(function(){v.current&&S.length&&(S.forEach(function(E){switch(E.type){case"open":v.current.open(E.config);break;case"close":v.current.close(E.key);break;case"destroy":v.current.destroy();break}}),w(function(E){return E.filter(function(O){return!S.includes(O)})}))},[S]),[C,m]}var w$e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},C$e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:w$e}))},af=b.forwardRef(C$e);const jC=we.createContext(void 0),Md=100,MU=Md*10,kU={Modal:Md,Drawer:Md,Popover:Md,Popconfirm:Md,Tooltip:Md,Tour:Md,FloatButton:Md},E$e={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function O$e(e){return e in kU}const of=(e,t)=>{const[,n]=eo(),r=we.useContext(jC),i=O$e(e);let a;if(t!==void 0)a=[t,t];else{let o=r!=null?r:0;i?o+=(r?0:n.zIndexPopupBase)+kU[e]:o+=E$e[e],a=[r===void 0?t:o,o]}return a},_$e=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:h,borderRadiusLG:p,zIndexPopup:g,contentPadding:v,contentBg:m}=e,y=`${t}-notice`,x=new ur("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),S=new ur("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:d,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:v,background:m,borderRadius:p,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, - ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},er(e)),{color:i,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,n$e="".concat(e$e," ").concat(t$e).split(/[\s\n]+/),r$e="aria-",i$e="data-";function gU(e,t){return e.indexOf(t)===0}function ta(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=ae({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||gU(i,r$e))||n.data&&gU(i,i$e)||n.attr&&n$e.includes(i))&&(r[i]=e[i])}),r}function mU(e){return e&&we.isValidElement(e)&&e.type===we.Fragment}const yU=(e,t,n)=>we.isValidElement(e)?we.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Pa(e,t){return yU(e,e,t)}function Xn(e,t,n){return t=tf(t),EV(e,aC()?Reflect.construct(t,n||[],tf(e).constructor):t.apply(e,n))}const bU=e=>typeof e=="object"&&e!=null&&e.nodeType===1,xU=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",XT=(e,t)=>{if(e.clientHeight{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch(o){return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,a$e=e=>{const t=e.parentElement;return t==null?e.getRootNode().host||null:t},SU=(e,t)=>{var n,r,i,a;if(typeof document=="undefined")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:N=>N!==c;if(!bU(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,h=[];let p=e;for(;bU(p)&&f(p);){if(p=a$e(p),p===d){h.push(p);break}p!=null&&p===document.body&&XT(p)&&!XT(document.documentElement)||p!=null&&XT(p,u)&&h.push(p)}const v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:m,scrollY:y}=window,{height:x,width:S,top:w,right:C,bottom:E,left:O}=e.getBoundingClientRect(),{top:$,right:P,bottom:M,left:k}=(N=>{const L=window.getComputedStyle(N);return{top:parseFloat(L.scrollMarginTop)||0,right:parseFloat(L.scrollMarginRight)||0,bottom:parseFloat(L.scrollMarginBottom)||0,left:parseFloat(L.scrollMarginLeft)||0}})(e);let T=s==="start"||s==="nearest"?w-$:s==="end"?E+M:w+x/2-$+M,R=l==="center"?O+S/2-k+P:l==="end"?C+P:O-k;const A=[];for(let N=0;N=0&&O>=0&&E<=g&&C<=v&&w>=B&&E<=z&&O>=W&&C<=D)return A;const q=getComputedStyle(L),H=parseInt(q.borderLeftWidth,10),U=parseInt(q.borderTopWidth,10),G=parseInt(q.borderRightWidth,10),K=parseInt(q.borderBottomWidth,10);let X=0,Q=0;const ee="offsetWidth"in L?L.offsetWidth-L.clientWidth-H-G:0,ne="offsetHeight"in L?L.offsetHeight-L.clientHeight-U-K:0,te="offsetWidth"in L?L.offsetWidth===0?0:F/L.offsetWidth:0,ie="offsetHeight"in L?L.offsetHeight===0?0:j/L.offsetHeight:0;if(d===L)X=s==="start"?T:s==="end"?T-g:s==="nearest"?NC(y,y+g,g,U,K,y+T,y+T+x,x):T-g/2,Q=l==="start"?R:l==="center"?R-v/2:l==="end"?R-v:NC(m,m+v,v,H,G,m+R,m+R+S,S),X=Math.max(0,X+y),Q=Math.max(0,Q+m);else{X=s==="start"?T-B-U:s==="end"?T-z+K+ne:s==="nearest"?NC(B,z,j,U,K+ne,T,T+x,x):T-(B+j/2)+ne/2,Q=l==="start"?R-W-H:l==="center"?R-(W+F/2)+ee/2:l==="end"?R-D+G+ee:NC(W,D,F,H,G+ee,R,R+S,S);const{scrollLeft:J,scrollTop:le}=L;X=ie===0?0:Math.max(0,Math.min(le+X/ie,L.scrollHeight-j/ie+ne)),Q=te===0?0:Math.max(0,Math.min(J+Q/te,L.scrollWidth-F/te+ee)),T+=le-X,R+=J-Q}A.push({el:L,top:X,left:Q})}return A},o$e=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function s$e(e,t){if(!e.isConnected||!(i=>{let a=i;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(i=>{const a=window.getComputedStyle(i);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(SU(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:a,left:o}of SU(e,o$e(t))){const s=a-n.top+n.bottom,l=o-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}function ZT(e){return e!=null&&e===e.window}const l$e=e=>{var t,n;if(typeof window=="undefined")return 0;let r=0;return ZT(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!ZT(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function c$e(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function u$e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=l$e(a),s=Date.now(),l=()=>{const u=Date.now()-s,f=c$e(u>i?i:u,o,e,i);ZT(a)?a.scrollTo(window.pageXOffset,f):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=f:a.scrollTop=f,u{const[,,,,t]=to();return t?`${e}-css-var`:""};var Ze={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Ze.F1&&n<=Ze.F12)return!1;switch(n){case Ze.ALT:case Ze.CAPS_LOCK:case Ze.CONTEXT_MENU:case Ze.CTRL:case Ze.DOWN:case Ze.END:case Ze.ESC:case Ze.HOME:case Ze.INSERT:case Ze.LEFT:case Ze.MAC_FF_META:case Ze.META:case Ze.NUMLOCK:case Ze.NUM_CENTER:case Ze.PAGE_DOWN:case Ze.PAGE_UP:case Ze.PAUSE:case Ze.PRINT_SCREEN:case Ze.RIGHT:case Ze.SHIFT:case Ze.UP:case Ze.WIN_KEY:case Ze.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Ze.ZERO&&t<=Ze.NINE||t>=Ze.NUM_ZERO&&t<=Ze.NUM_MULTIPLY||t>=Ze.A&&t<=Ze.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Ze.SPACE:case Ze.QUESTION_MARK:case Ze.NUM_PLUS:case Ze.NUM_MINUS:case Ze.NUM_PERIOD:case Ze.NUM_DIVISION:case Ze.SEMICOLON:case Ze.DASH:case Ze.EQUALS:case Ze.COMMA:case Ze.PERIOD:case Ze.SLASH:case Ze.APOSTROPHE:case Ze.SINGLE_QUOTE:case Ze.OPEN_SQUARE_BRACKET:case Ze.BACKSLASH:case Ze.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},wU=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,o=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,d=e.closable,h=e.closeIcon,p=h===void 0?"x":h,v=e.props,g=e.onClick,m=e.onNoticeClose,y=e.times,x=e.hovering,S=b.useState(!1),w=he(S,2),C=w[0],E=w[1],O=b.useState(0),$=he(O,2),P=$[0],M=$[1],k=b.useState(0),T=he(k,2),R=T[0],A=T[1],N=x||C,L=o>0&&s,j=function(){m(u)},F=function(H){(H.key==="Enter"||H.code==="Enter"||H.keyCode===Ze.ENTER)&&j()};b.useEffect(function(){if(!N&&o>0){var q=Date.now()-R,H=setTimeout(function(){j()},o*1e3-R);return function(){c&&clearTimeout(H),A(Date.now()-q)}}},[o,N,y]),b.useEffect(function(){if(!N&&L&&(c||R===0)){var q=performance.now(),H,U=function G(){cancelAnimationFrame(H),H=requestAnimationFrame(function(K){var X=K+R-q,Q=Math.min(X/(o*1e3),1);M(Q*100),Q<1&&G()})};return U(),function(){c&&cancelAnimationFrame(H)}}},[o,R,N,L,y]);var B=b.useMemo(function(){return Bt(d)==="object"&&d!==null?d:d?{closeIcon:p}:{}},[d,p]),D=ta(B,!0),z=100-(!P||P<0?0:P>100?100:P),W="".concat(n,"-notice");return b.createElement("div",Le({},v,{ref:t,className:me(W,i,Z({},"".concat(W,"-closable"),d)),style:r,onMouseEnter:function(H){var U;E(!0),v==null||(U=v.onMouseEnter)===null||U===void 0||U.call(v,H)},onMouseLeave:function(H){var U;E(!1),v==null||(U=v.onMouseLeave)===null||U===void 0||U.call(v,H)},onClick:g}),b.createElement("div",{className:"".concat(W,"-content")},f),d&&b.createElement("a",Le({tabIndex:0,className:"".concat(W,"-close"),onKeyDown:F,"aria-label":"Close"},D,{onClick:function(H){H.preventDefault(),H.stopPropagation(),j()}}),B.closeIcon),L&&b.createElement("progress",{className:"".concat(W,"-progress"),max:"100",value:z},z+"%"))}),CU=we.createContext({}),f$e=function(t){var n=t.children,r=t.classNames;return we.createElement(CU.Provider,{value:{classNames:r}},n)},EU=8,OU=3,_U=16,d$e=function(t){var n={offset:EU,threshold:OU,gap:_U};if(t&&Bt(t)==="object"){var r,i,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:EU,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:OU,n.gap=(a=t.gap)!==null&&a!==void 0?a:_U}return[!!t,n]},h$e=["className","style","classNames","styles"],p$e=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,a=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=b.useContext(CU),d=f.classNames,h=b.useRef({}),p=b.useState(null),v=he(p,2),g=v[0],m=v[1],y=b.useState([]),x=he(y,2),S=x[0],w=x[1],C=n.map(function(N){return{config:N,key:String(N.key)}}),E=d$e(u),O=he(E,2),$=O[0],P=O[1],M=P.offset,k=P.threshold,T=P.gap,R=$&&(S.length>0||C.length<=k),A=typeof s=="function"?s(r):s;return b.useEffect(function(){$&&S.length>1&&w(function(N){return N.filter(function(L){return C.some(function(j){var F=j.key;return L===F})})})},[S,C,$]),b.useEffect(function(){var N;if($&&h.current[(N=C[C.length-1])===null||N===void 0?void 0:N.key]){var L;m(h.current[(L=C[C.length-1])===null||L===void 0?void 0:L.key])}},[C,$]),we.createElement(KT,Le({key:r,className:me(i,"".concat(i,"-").concat(r),d==null?void 0:d.list,a,Z(Z({},"".concat(i,"-stack"),!!$),"".concat(i,"-stack-expanded"),R)),style:o,keys:C,motionAppear:!0},A,{onAllRemoved:function(){l(r)}}),function(N,L){var j=N.config,F=N.className,B=N.style,D=N.index,z=j,W=z.key,q=z.times,H=String(W),U=j,G=U.className,K=U.style,X=U.classNames,Q=U.styles,ee=qt(U,h$e),ne=C.findIndex(function(xe){return xe.key===H}),te={};if($){var ie=C.length-1-(ne>-1?ne:D-1),J=r==="top"||r==="bottom"?"-50%":"0";if(ie>0){var le,oe,re;te.height=R?(le=h.current[H])===null||le===void 0?void 0:le.offsetHeight:g==null?void 0:g.offsetHeight;for(var se=0,ge=0;ge-1?h.current[H]=Oe:delete h.current[H]},prefixCls:i,classNames:X,styles:Q,className:me(G,d==null?void 0:d.notice),style:K,times:q,key:W,eventKey:W,onNoticeClose:c,hovering:$&&S.length>0})))})},v$e=b.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,a=e.motion,o=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,d=b.useState([]),h=he(d,2),p=h[0],v=h[1],g=function($){var P,M=p.find(function(k){return k.key===$});M==null||(P=M.onClose)===null||P===void 0||P.call(M),v(function(k){return k.filter(function(T){return T.key!==$})})};b.useImperativeHandle(t,function(){return{open:function($){v(function(P){var M=Ne(P),k=M.findIndex(function(A){return A.key===$.key}),T=ae({},$);if(k>=0){var R;T.times=(((R=P[k])===null||R===void 0?void 0:R.times)||0)+1,M[k]=T}else T.times=0,M.push(T);return o>0&&M.length>o&&(M=M.slice(-o)),M})},close:function($){g($)},destroy:function(){v([])}}});var m=b.useState({}),y=he(m,2),x=y[0],S=y[1];b.useEffect(function(){var O={};p.forEach(function($){var P=$.placement,M=P===void 0?"topRight":P;M&&(O[M]=O[M]||[],O[M].push($))}),Object.keys(x).forEach(function($){O[$]=O[$]||[]}),S(O)},[p]);var w=function($){S(function(P){var M=ae({},P),k=M[$]||[];return k.length||delete M[$],M})},C=b.useRef(!1);if(b.useEffect(function(){Object.keys(x).length>0?C.current=!0:C.current&&(c==null||c(),C.current=!1)},[x]),!i)return null;var E=Object.keys(x);return ys.createPortal(b.createElement(b.Fragment,null,E.map(function(O){var $=x[O],P=b.createElement(p$e,{key:O,configList:$,placement:O,prefixCls:r,className:s==null?void 0:s(O),style:l==null?void 0:l(O),motion:a,onNoticeClose:g,onAllNoticeRemoved:w,stack:u});return f?f(P,{prefixCls:r,key:O}):P})),i)}),g$e=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],m$e=function(){return document.body},$U=0;function y$e(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?m$e:t,r=e.motion,i=e.prefixCls,a=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=qt(e,g$e),d=b.useState(),h=he(d,2),p=h[0],v=h[1],g=b.useRef(),m=b.createElement(v$e,{container:p,ref:g,prefixCls:i,motion:r,maxCount:a,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=b.useState([]),x=he(y,2),S=x[0],w=x[1],C=b.useMemo(function(){return{open:function(O){var $=y$e(f,O);($.key===null||$.key===void 0)&&($.key="rc-notification-".concat($U),$U+=1),w(function(P){return[].concat(Ne(P),[{type:"open",config:$}])})},close:function(O){w(function($){return[].concat(Ne($),[{type:"close",key:O}])})},destroy:function(){w(function(O){return[].concat(Ne(O),[{type:"destroy"}])})}}},[]);return b.useEffect(function(){v(n())}),b.useEffect(function(){g.current&&S.length&&(S.forEach(function(E){switch(E.type){case"open":g.current.open(E.config);break;case"close":g.current.close(E.key);break;case"destroy":g.current.destroy();break}}),w(function(E){return E.filter(function(O){return!S.includes(O)})}))},[S]),[C,m]}var x$e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},S$e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:x$e}))},af=b.forwardRef(S$e);const LC=we.createContext(void 0),kd=100,PU=kd*10,MU={Modal:kd,Drawer:kd,Popover:kd,Popconfirm:kd,Tooltip:kd,Tour:kd,FloatButton:kd},w$e={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function C$e(e){return e in MU}const of=(e,t)=>{const[,n]=to(),r=we.useContext(LC),i=C$e(e);let a;if(t!==void 0)a=[t,t];else{let o=r!=null?r:0;i?o+=(r?0:n.zIndexPopupBase)+MU[e]:o+=w$e[e],a=[r===void 0?t:o,o]}return a},E$e=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:h,borderRadiusLG:p,zIndexPopup:v,contentPadding:g,contentBg:m}=e,y=`${t}-notice`,x=new fr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),S=new fr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:d,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:g,background:m,borderRadius:p,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, + ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},er(e)),{color:i,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[` ${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:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},TU=tr("Message",e=>{const t=$n(e,{height:150});return[_$e(t)]},e=>({zIndexPopup:e.zIndexPopupBase+MU+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var $$e=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 i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,type:n,icon:r,children:i}=e;return b.createElement("div",{className:me(`${t}-custom-content`,`${t}-${n}`)},r||P$e[n],b.createElement("span",null,i))},M$e=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,o=$$e(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=b.useContext(Lt),l=t||s("message"),c=Ti(l),[u,f,d]=TU(l,c);return u(b.createElement(CU,Object.assign({},o,{prefixCls:l,className:me(n,f,`${l}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:b.createElement(RU,{prefixCls:l,type:r,icon:i},a)})))};function k$e(e,t){return{motionName:t!=null?t:`${e}-move-up`}}function tR(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,a)=>n.then(i,a),r.promise=n,r}var T$e=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 i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=Ti(n),[i,a,o]=TU(n,r);return i(b.createElement(h$e,{classNames:{list:me(a,o,r)}},t))},N$e=(e,t)=>{let{prefixCls:n,key:r}=t;return b.createElement(A$e,{prefixCls:n,key:r},e)},L$e=b.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=I$e,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:d,direction:h}=b.useContext(Lt),p=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n!=null?n:R$e}),v=()=>me({[`${p}-rtl`]:s!=null?s:h==="rtl"}),m=()=>k$e(p,l),y=b.createElement("span",{className:`${p}-close-x`},b.createElement(Pd,{className:`${p}-close-icon`})),[x,S]=S$e({prefixCls:p,style:g,className:v,motion:m,closable:!1,closeIcon:y,duration:o,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:N$e});return b.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:p,message:d})),S});let IU=0;function AU(e){const t=b.useRef(null);return Cd(),[b.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const C=()=>{};return C.then=()=>{},C}const{open:c,prefixCls:u,message:f}=t.current,d=`${u}-notice`,{content:h,icon:p,type:g,key:v,className:m,style:y,onClose:x}=l,S=T$e(l,["content","icon","type","key","className","style","onClose"]);let w=v;return w==null&&(IU+=1,w=`antd-message-${IU}`),tR(C=>(c(Object.assign(Object.assign({},S),{key:w,content:b.createElement(RU,{prefixCls:u,type:g,icon:p},h),placement:"top",className:me(g&&`${d}-${g}`,m,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{x==null||x(),C()}})),()=>{r(w)}))},o={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,d)=>{let h;u&&typeof u=="object"&&"content"in u?h=u:h={content:u};let p,g;typeof f=="function"?g=f:(p=f,g=d);const v=Object.assign(Object.assign({onClose:g,duration:p},h),{type:l});return i(v)};o[l]=c}),o},[]),b.createElement(L$e,Object.assign({key:"message-holder"},e,{ref:t}))]}function j$e(e){return AU(e)}function D$e(){const[e,t]=b.useState([]),n=b.useCallback(r=>(t(i=>[].concat(Ne(i),[r])),()=>{t(i=>i.filter(a=>a!==r))}),[]);return[e,n]}function Zn(){Zn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(N,L,j){N[L]=j.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(N,L,j){return Object.defineProperty(N,L,{value:j,enumerable:!0,configurable:!0,writable:!0}),N[L]}try{c({},"")}catch(N){c=function(j,F,B){return j[F]=B}}function u(N,L,j,F){var B=L&&L.prototype instanceof m?L:m,D=Object.create(B.prototype),z=new R(F||[]);return i(D,"_invoke",{value:P(N,j,z)}),D}function f(N,L,j){try{return{type:"normal",arg:N.call(L,j)}}catch(F){return{type:"throw",arg:F}}}t.wrap=u;var d="suspendedStart",h="suspendedYield",p="executing",g="completed",v={};function m(){}function y(){}function x(){}var S={};c(S,o,function(){return this});var w=Object.getPrototypeOf,C=w&&w(w(A([])));C&&C!==n&&r.call(C,o)&&(S=C);var E=x.prototype=m.prototype=Object.create(S);function O(N){["next","throw","return"].forEach(function(L){c(N,L,function(j){return this._invoke(L,j)})})}function $(N,L){function j(B,D,z,W){var q=f(N[B],N,D);if(q.type!=="throw"){var H=q.arg,U=H.value;return U&&Bt(U)=="object"&&r.call(U,"__await")?L.resolve(U.__await).then(function(G){j("next",G,z,W)},function(G){j("throw",G,z,W)}):L.resolve(U).then(function(G){H.value=G,z(H)},function(G){return j("throw",G,z,W)})}W(q.arg)}var F;i(this,"_invoke",{value:function(D,z){function W(){return new L(function(q,H){j(D,z,q,H)})}return F=F?F.then(W,W):W()}})}function P(N,L,j){var F=d;return function(B,D){if(F===p)throw Error("Generator is already running");if(F===g){if(B==="throw")throw D;return{value:e,done:!0}}for(j.method=B,j.arg=D;;){var z=j.delegate;if(z){var W=M(z,j);if(W){if(W===v)continue;return W}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(F===d)throw F=g,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);F=p;var q=f(N,L,j);if(q.type==="normal"){if(F=j.done?g:h,q.arg===v)continue;return{value:q.arg,done:j.done}}q.type==="throw"&&(F=g,j.method="throw",j.arg=q.arg)}}}function M(N,L){var j=L.method,F=N.iterator[j];if(F===e)return L.delegate=null,j==="throw"&&N.iterator.return&&(L.method="return",L.arg=e,M(N,L),L.method==="throw")||j!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+j+"' method")),v;var B=f(F,N.iterator,L.arg);if(B.type==="throw")return L.method="throw",L.arg=B.arg,L.delegate=null,v;var D=B.arg;return D?D.done?(L[N.resultName]=D.value,L.next=N.nextLoc,L.method!=="return"&&(L.method="next",L.arg=e),L.delegate=null,v):D:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,v)}function k(N){var L={tryLoc:N[0]};1 in N&&(L.catchLoc=N[1]),2 in N&&(L.finallyLoc=N[2],L.afterLoc=N[3]),this.tryEntries.push(L)}function T(N){var L=N.completion||{};L.type="normal",delete L.arg,N.completion=L}function R(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(k,this),this.reset(!0)}function A(N){if(N||N===""){var L=N[o];if(L)return L.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var j=-1,F=function B(){for(;++j=0;--B){var D=this.tryEntries[B],z=D.completion;if(D.tryLoc==="root")return F("end");if(D.tryLoc<=this.prev){var W=r.call(D,"catchLoc"),q=r.call(D,"finallyLoc");if(W&&q){if(this.prev=0;--F){var B=this.tryEntries[F];if(B.tryLoc<=this.prev&&r.call(B,"finallyLoc")&&this.prev=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===L)return this.complete(F.completion,F.afterLoc),T(F),v}},catch:function(L){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===L){var B=F.completion;if(B.type==="throw"){var D=B.arg;T(F)}return D}}throw Error("illegal catch attempt")},delegateYield:function(L,j,F){return this.delegate={iterator:A(L),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=e),v}},t}function NU(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function ha(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){NU(a,r,i,o,s,"next",l)}function s(l){NU(a,r,i,o,s,"throw",l)}o(void 0)})}}var A1=ae({},dV),F$e=A1.version,nR=A1.render,B$e=A1.unmountComponentAtNode,DC;try{var z$e=Number((F$e||"").split(".")[0]);z$e>=18&&(DC=A1.createRoot)}catch(e){}function LU(e){var t=A1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Bt(t)==="object"&&(t.usingClientEntryPoint=e)}var FC="__rc_react_root__";function H$e(e,t){LU(!0);var n=t[FC]||DC(t);LU(!1),n.render(e),t[FC]=n}function W$e(e,t){nR==null||nR(e,t)}function V$e(e,t){if(DC){H$e(e,t);return}W$e(e,t)}function q$e(e){return rR.apply(this,arguments)}function rR(){return rR=ha(Zn().mark(function e(t){return Zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[FC])===null||i===void 0||i.unmount(),delete t[FC]}));case 1:case"end":return r.stop()}},e)})),rR.apply(this,arguments)}function U$e(e){B$e(e)}function G$e(e){return iR.apply(this,arguments)}function iR(){return iR=ha(Zn().mark(function e(t){return Zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(DC===void 0){r.next=2;break}return r.abrupt("return",q$e(t));case 2:U$e(t);case 3:case"end":return r.stop()}},e)})),iR.apply(this,arguments)}let K$e=(e,t)=>(V$e(e,t),()=>G$e(t));function aR(){return K$e}const oR=()=>({height:0,opacity:0}),jU=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Y$e=e=>({height:e?e.offsetHeight:0}),sR=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Hg=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:k1}-motion-collapse`,onAppearStart:oR,onEnterStart:oR,onAppearActive:jU,onEnterActive:jU,onLeaveStart:Y$e,onLeaveActive:oR,onAppearEnd:sR,onEnterEnd:sR,onLeaveEnd:sR,motionDeadline:500}},wl=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Wg=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},X$e=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Z$e=n_e("Wave",e=>[X$e(e)]),BC=`${k1}-wave-target`;function lR(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Q$e(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return lR(t)?t:lR(n)?n:lR(r)?r:null}function cR(e){return Number.isNaN(e)?0:e}const J$e=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,a=b.useRef(null),o=b.useRef(null);b.useEffect(()=>{o.current=i()},[]);const[s,l]=b.useState(null),[c,u]=b.useState([]),[f,d]=b.useState(0),[h,p]=b.useState(0),[g,v]=b.useState(0),[m,y]=b.useState(0),[x,S]=b.useState(!1),w={left:f,top:h,width:g,height:m,borderRadius:c.map(O=>`${O}px`).join(" ")};s&&(w["--wave-color"]=s);function C(){const O=getComputedStyle(n);l(Q$e(n));const $=O.position==="static",{borderLeftWidth:P,borderTopWidth:M}=O;d($?n.offsetLeft:cR(-parseFloat(P))),p($?n.offsetTop:cR(-parseFloat(M))),v(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:k,borderTopRightRadius:T,borderBottomLeftRadius:R,borderBottomRightRadius:A}=O;u([k,T,A,R].map(N=>cR(parseFloat(N))))}if(b.useEffect(()=>{if(n){const O=bn(()=>{C(),S(!0)});let $;return typeof ResizeObserver!="undefined"&&($=new ResizeObserver(C),$.observe(n)),()=>{bn.cancel(O),$==null||$.disconnect()}}},[]),!x)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(BC));return b.createElement(Jo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,$)=>{var P,M;if($.deadline||$.propertyName==="opacity"){const k=(P=a.current)===null||P===void 0?void 0:P.parentElement;(M=o.current)===null||M===void 0||M.call(o).then(()=>{k==null||k.remove()})}return!1}},(O,$)=>{let{className:P}=O;return b.createElement("div",{ref:po(a,$),className:me(t,P,{"wave-quick":E}),style:w})})},ePe=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const a=aR();let o=null;function s(){return o}o=a(b.createElement(J$e,Object.assign({},t,{target:e,registerUnmount:s})),i)},tPe=(e,t,n)=>{const{wave:r}=b.useContext(Lt),[,i,a]=eo(),o=_n(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${BC}`)||u,{showEffect:d}=r||{};(d||ePe)(f,{className:t,token:i,component:n,event:c,hashId:a})}),s=b.useRef(null);return c=>{bn.cancel(s.current),s.current=bn(()=>{o(c)})}},N1=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=b.useContext(Lt),a=b.useRef(null),o=i("wave"),[,s]=Z$e(o),l=tPe(a,me(o,s),r);if(we.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const f=d=>{!Wg(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(d)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!we.isValidElement(t))return t!=null?t:null;const c=vc(t)?po(bd(t),a):a;return Pa(t,{ref:c})},ja=e=>{const t=we.useContext(dp);return we.useMemo(()=>e?typeof e=="string"?e!=null?e:t:e instanceof Function?e(t):t:t,[e,t])},nPe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},rPe=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},iPe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},DU=tr("Space",e=>{const t=$n(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[rPe(t),iPe(t),nPe(t)]},()=>({}),{resetStyle:!1});var FU=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 i=0,r=Object.getOwnPropertySymbols(e);i{const n=b.useContext(zC),r=b.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=n,s=i==="vertical"?"-vertical-":"-";return me(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},aPe=e=>{let{children:t}=e;return b.createElement(zC.Provider,{value:null},t)},oPe=e=>{var{children:t}=e,n=FU(e,["children"]);return b.createElement(zC.Provider,{value:n},t)},sPe=e=>{const{getPrefixCls:t,direction:n}=b.useContext(Lt),{size:r,direction:i,block:a,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=FU(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=ja(x=>r!=null?r:x),d=t("space-compact",o),[h,p]=DU(d),g=me(d,p,{[`${d}-rtl`]:n==="rtl",[`${d}-block`]:a,[`${d}-vertical`]:i==="vertical"},s,l),v=b.useContext(zC),m=da(c),y=b.useMemo(()=>m.map((x,S)=>{const w=(x==null?void 0:x.key)||`${d}-item-${S}`;return b.createElement(oPe,{key:w,compactSize:f,compactDirection:i,isFirstItem:S===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:S===m.length-1&&(!v||(v==null?void 0:v.isLastItem))},x)}),[r,m,v]);return m.length===0?null:h(b.createElement("div",Object.assign({className:g},u),y))};var lPe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=b.useContext(Lt),{prefixCls:r,size:i,className:a}=e,o=lPe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=eo();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=me(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return b.createElement(BU.Provider,{value:i},b.createElement("div",Object.assign({},o,{className:u})))},zU=/^[\u4E00-\u9FA5]{2}$/,uR=zU.test.bind(zU);function fR(e){return e==="danger"?{danger:!0}:{type:e}}function HU(e){return typeof e=="string"}function dR(e){return e==="text"||e==="link"}function uPe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&HU(e.type)&&uR(e.props.children)?Pa(e,{children:e.props.children.split("").join(n)}):HU(e)?uR(e)?we.createElement("span",null,e.split("").join(n)):we.createElement("span",null,e):yU(e)?we.createElement("span",null,e):e}function fPe(e,t){let n=!1;const r=[];return we.Children.forEach(e,i=>{const a=typeof i,o=a==="string"||a==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=o}),we.Children.map(r,i=>uPe(i,t))}const WU=b.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,o=me(`${a}-icon`,n);return we.createElement("span",{ref:t,className:o,style:r},i)}),VU=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=me(`${n}-loading-icon`,r);return we.createElement(WU,{prefixCls:n,className:o,style:i,ref:t},we.createElement(af,{className:a}))}),hR=()=>({width:0,opacity:0,transform:"scale(0)"}),pR=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),dPe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?we.createElement(VU,{prefixCls:t,className:i,style:a}):we.createElement(Jo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:hR,onAppearActive:pR,onEnterStart:hR,onEnterActive:pR,onLeaveStart:pR,onLeaveActive:hR},(l,c)=>{let{className:u,style:f}=l;const d=Object.assign(Object.assign({},a),f);return we.createElement(VU,{prefixCls:t,className:me(i,u),style:d,ref:c})})},qU=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),hPe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},qU(`${t}-primary`,i),qU(`${t}-danger`,a)]}},to=Math.round;function vR(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const UU=(e,t,n)=>n===0?e:e/100;function L1(e,t){const n=t||255;return e>n?n:e<0?0:e}class HC{constructor(t){Z(this,"isValid",!0),Z(this,"r",0),Z(this,"g",0),Z(this,"b",0),Z(this,"a",1),Z(this,"_h",void 0),Z(this,"_s",void 0),Z(this,"_l",void 0),Z(this,"_v",void 0),Z(this,"_max",void 0),Z(this,"_min",void 0),Z(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(a){return r.startsWith(a)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof HC)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=L1(t.r),this.g=L1(t.g),this.b=L1(t.b),this.a=typeof t.a=="number"?L1(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(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h=="undefined"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=to(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=s=>(r[s]-this[s])*i+this[s],o={r:to(a("r")),g:to(a("g")),b:to(a("b")),a:to(a("a")*100)/100};return this._c(o)}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),i=a=>to((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("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 i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=to(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=to(this.getSaturation()*100),r=to(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 i=this.clone();return i[t]=L1(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max=="undefined"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min=="undefined"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const d=to(r*255);this.r=d,this.g=d,this.b=d}let a=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,o=u):l>=1&&l<2?(a=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=r-c/2;this.r=to((a+f)*255),this.g=to((o+f)*255),this.b=to((s+f)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=to(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=to(r*(1-n)*255),u=to(r*(1-n*l)*255),f=to(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=vR(t,UU);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=vR(t,UU);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=vR(t,(r,i)=>i.includes("%")?to(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var pPe=["b"],vPe=["v"],gR=function(t){return Math.round(Number(t||0))},gPe=function(t){if(t instanceof HC)return t;if(t&&Bt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=Vt(n,pPe);return ae(ae({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},j1=function(e){Sn(n,e);var t=Vs(n);function n(r){return rt(this,n),t.call(this,gPe(r))}return it(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),a=gR(i.s*100),o=gR(i.b*100),s=gR(i.h),l=i.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(o,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),a=i.v,o=Vt(i,vPe);return ae(ae({},o),{},{b:a,a:this.a})}}]),n}(HC),mPe=function(t){return t instanceof j1?t:new j1(t)};mPe("#1677ff");const yPe=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",bPe=(e,t)=>e?yPe(e,t):"";let xPe=function(){function e(t){rt(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:a,percent:o}=i;return{color:new e(a),percent:o}}),this.metaColor=new j1(this.colors[0].color.metaColor)):this.metaColor=new j1(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return it(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return bPe(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const a=n.colors[i];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var SPe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},wPe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:SPe}))},sf=b.forwardRef(wPe),GU=we.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,a=e.style,o=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,f=we.useState(s||r),d=he(f,2),h=d[0],p=d[1];return we.useEffect(function(){(r||s)&&p(!0)},[r,s]),h?we.createElement("div",{ref:t,className:me("".concat(n,"-content"),Z(Z({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:a,role:l},we.createElement("div",{className:me("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},o)):null});GU.displayName="PanelContent";var CPe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],KU=we.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,a=e.isActive,o=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,f=e.styles,d=f===void 0?{}:f,h=e.prefixCls,p=e.collapsible,g=e.accordion,v=e.panelKey,m=e.extra,y=e.header,x=e.expandIcon,S=e.openMotion,w=e.destroyInactivePanel,C=e.children,E=Vt(e,CPe),O=p==="disabled",$=m!=null&&typeof m!="boolean",P=Z(Z(Z({onClick:function(){o==null||o(v)},onKeyDown:function(L){(L.key==="Enter"||L.keyCode===Ze.ENTER||L.which===Ze.ENTER)&&(o==null||o(v))},role:g?"tab":"button"},"aria-expanded",a),"aria-disabled",O),"tabIndex",O?-1:0),M=typeof x=="function"?x(e):we.createElement("i",{className:"arrow"}),k=M&&we.createElement("div",Le({className:"".concat(h,"-expand-icon")},["header","icon"].includes(p)?P:{}),M),T=me("".concat(h,"-item"),Z(Z({},"".concat(h,"-item-active"),a),"".concat(h,"-item-disabled"),O),l),R=me(i,"".concat(h,"-header"),Z({},"".concat(h,"-collapsible-").concat(p),!!p),u.header),A=ae({className:R,style:d.header},["header","icon"].includes(p)?{}:P);return we.createElement("div",Le({},E,{ref:t,className:T}),we.createElement("div",A,r&&k,we.createElement("span",Le({className:"".concat(h,"-header-text")},p==="header"?P:{}),y),$&&we.createElement("div",{className:"".concat(h,"-extra")},m)),we.createElement(Jo,Le({visible:a,leavedClassName:"".concat(h,"-content-hidden")},S,{forceRender:s,removeOnLeave:w}),function(N,L){var j=N.className,F=N.style;return we.createElement(GU,{ref:L,prefixCls:h,className:j,classNames:u,style:F,styles:d,isActive:a,forceRender:s,role:g?"tabpanel":void 0},C)}))}),EPe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],OPe=function(t,n){var r=n.prefixCls,i=n.accordion,a=n.collapsible,o=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(f,d){var h=f.children,p=f.label,g=f.key,v=f.collapsible,m=f.onItemClick,y=f.destroyInactivePanel,x=Vt(f,EPe),S=String(g!=null?g:d),w=v!=null?v:a,C=y!=null?y:o,E=function(P){w!=="disabled"&&(s(P),m==null||m(P))},O=!1;return i?O=l[0]===S:O=l.indexOf(S)>-1,we.createElement(KU,Le({},x,{prefixCls:r,key:S,panelKey:S,isActive:O,accordion:i,openMotion:c,expandIcon:u,header:p,collapsible:w,onItemClick:E,destroyInactivePanel:C}),h)})},_Pe=function(t,n,r){if(!t)return null;var i=r.prefixCls,a=r.accordion,o=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,f=r.expandIcon,d=t.key||String(n),h=t.props,p=h.header,g=h.headerClass,v=h.destroyInactivePanel,m=h.collapsible,y=h.onItemClick,x=!1;a?x=c[0]===d:x=c.indexOf(d)>-1;var S=m!=null?m:o,w=function(O){S!=="disabled"&&(l(O),y==null||y(O))},C={key:d,panelKey:d,header:p,headerClass:g,isActive:x,prefixCls:i,destroyInactivePanel:v!=null?v:s,openMotion:u,accordion:a,children:t.props.children,onItemClick:w,expandIcon:f,collapsible:S};return typeof t.type=="string"?t:(Object.keys(C).forEach(function(E){typeof C[E]=="undefined"&&delete C[E]}),we.cloneElement(t,C))};function $Pe(e,t,n){return Array.isArray(e)?OPe(e,n):da(t).map(function(r,i){return _Pe(r,i,n)})}function PPe(e){var t=e;if(!Array.isArray(t)){var n=Bt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var MPe=we.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,a=i===void 0?!1:i,o=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,f=e.openMotion,d=e.expandIcon,h=e.activeKey,p=e.defaultActiveKey,g=e.onChange,v=e.items,m=me(r,l),y=Yn([],{value:h,onChange:function($){return g==null?void 0:g($)},defaultValue:p,postState:PPe}),x=he(y,2),S=x[0],w=x[1],C=function($){return w(function(){if(s)return S[0]===$?[]:[$];var P=S.indexOf($),M=P>-1;return M?S.filter(function(k){return k!==$}):[].concat(Ne(S),[$])})};zr(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var E=$Pe(v,c,{prefixCls:r,accordion:s,openMotion:f,expandIcon:d,collapsible:u,destroyInactivePanel:a,onItemClick:C,activeKey:S});return we.createElement("div",Le({ref:t,className:m,style:o,role:s?"tablist":void 0},ta(e,{aria:!0,data:!0})),E)});const mR=Object.assign(MPe,{Panel:KU});mR.Panel;const kPe=b.forwardRef((e,t)=>{const{getPrefixCls:n}=b.useContext(Lt),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n("collapse",r),s=me({[`${o}-no-arrow`]:!a},i);return b.createElement(mR.Panel,Object.assign({ref:t},e,{prefixCls:o,className:s}))}),D1=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},kU=tr("Message",e=>{const t=_n(e,{height:150});return[E$e(t)]},e=>({zIndexPopup:e.zIndexPopupBase+PU+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var O$e=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 i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,type:n,icon:r,children:i}=e;return b.createElement("div",{className:me(`${t}-custom-content`,`${t}-${n}`)},r||_$e[n],b.createElement("span",null,i))},$$e=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,o=O$e(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=b.useContext(At),l=t||s("message"),c=Ti(l),[u,f,d]=kU(l,c);return u(b.createElement(wU,Object.assign({},o,{prefixCls:l,className:me(n,f,`${l}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:b.createElement(TU,{prefixCls:l,type:r,icon:i},a)})))};function P$e(e,t){return{motionName:t!=null?t:`${e}-move-up`}}function QT(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,a)=>n.then(i,a),r.promise=n,r}var M$e=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 i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=Ti(n),[i,a,o]=kU(n,r);return i(b.createElement(f$e,{classNames:{list:me(a,o,r)}},t))},I$e=(e,t)=>{let{prefixCls:n,key:r}=t;return b.createElement(R$e,{prefixCls:n,key:r},e)},A$e=b.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=T$e,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:d,direction:h}=b.useContext(At),p=r||u("message"),v=()=>({left:"50%",transform:"translateX(-50%)",top:n!=null?n:k$e}),g=()=>me({[`${p}-rtl`]:s!=null?s:h==="rtl"}),m=()=>P$e(p,l),y=b.createElement("span",{className:`${p}-close-x`},b.createElement(Md,{className:`${p}-close-icon`})),[x,S]=b$e({prefixCls:p,style:v,className:g,motion:m,closable:!1,closeIcon:y,duration:o,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:I$e});return b.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:p,message:d})),S});let RU=0;function IU(e){const t=b.useRef(null);return Cd(),[b.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const C=()=>{};return C.then=()=>{},C}const{open:c,prefixCls:u,message:f}=t.current,d=`${u}-notice`,{content:h,icon:p,type:v,key:g,className:m,style:y,onClose:x}=l,S=M$e(l,["content","icon","type","key","className","style","onClose"]);let w=g;return w==null&&(RU+=1,w=`antd-message-${RU}`),QT(C=>(c(Object.assign(Object.assign({},S),{key:w,content:b.createElement(TU,{prefixCls:u,type:v,icon:p},h),placement:"top",className:me(v&&`${d}-${v}`,m,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{x==null||x(),C()}})),()=>{r(w)}))},o={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,d)=>{let h;u&&typeof u=="object"&&"content"in u?h=u:h={content:u};let p,v;typeof f=="function"?v=f:(p=f,v=d);const g=Object.assign(Object.assign({onClose:v,duration:p},h),{type:l});return i(g)};o[l]=c}),o},[]),b.createElement(A$e,Object.assign({key:"message-holder"},e,{ref:t}))]}function N$e(e){return IU(e)}function L$e(){const[e,t]=b.useState([]),n=b.useCallback(r=>(t(i=>[].concat(Ne(i),[r])),()=>{t(i=>i.filter(a=>a!==r))}),[]);return[e,n]}function Zn(){Zn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(N,L,j){N[L]=j.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(N,L,j){return Object.defineProperty(N,L,{value:j,enumerable:!0,configurable:!0,writable:!0}),N[L]}try{c({},"")}catch(N){c=function(j,F,B){return j[F]=B}}function u(N,L,j,F){var B=L&&L.prototype instanceof m?L:m,D=Object.create(B.prototype),z=new R(F||[]);return i(D,"_invoke",{value:P(N,j,z)}),D}function f(N,L,j){try{return{type:"normal",arg:N.call(L,j)}}catch(F){return{type:"throw",arg:F}}}t.wrap=u;var d="suspendedStart",h="suspendedYield",p="executing",v="completed",g={};function m(){}function y(){}function x(){}var S={};c(S,o,function(){return this});var w=Object.getPrototypeOf,C=w&&w(w(A([])));C&&C!==n&&r.call(C,o)&&(S=C);var E=x.prototype=m.prototype=Object.create(S);function O(N){["next","throw","return"].forEach(function(L){c(N,L,function(j){return this._invoke(L,j)})})}function $(N,L){function j(B,D,z,W){var q=f(N[B],N,D);if(q.type!=="throw"){var H=q.arg,U=H.value;return U&&Bt(U)=="object"&&r.call(U,"__await")?L.resolve(U.__await).then(function(G){j("next",G,z,W)},function(G){j("throw",G,z,W)}):L.resolve(U).then(function(G){H.value=G,z(H)},function(G){return j("throw",G,z,W)})}W(q.arg)}var F;i(this,"_invoke",{value:function(D,z){function W(){return new L(function(q,H){j(D,z,q,H)})}return F=F?F.then(W,W):W()}})}function P(N,L,j){var F=d;return function(B,D){if(F===p)throw Error("Generator is already running");if(F===v){if(B==="throw")throw D;return{value:e,done:!0}}for(j.method=B,j.arg=D;;){var z=j.delegate;if(z){var W=M(z,j);if(W){if(W===g)continue;return W}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(F===d)throw F=v,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);F=p;var q=f(N,L,j);if(q.type==="normal"){if(F=j.done?v:h,q.arg===g)continue;return{value:q.arg,done:j.done}}q.type==="throw"&&(F=v,j.method="throw",j.arg=q.arg)}}}function M(N,L){var j=L.method,F=N.iterator[j];if(F===e)return L.delegate=null,j==="throw"&&N.iterator.return&&(L.method="return",L.arg=e,M(N,L),L.method==="throw")||j!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+j+"' method")),g;var B=f(F,N.iterator,L.arg);if(B.type==="throw")return L.method="throw",L.arg=B.arg,L.delegate=null,g;var D=B.arg;return D?D.done?(L[N.resultName]=D.value,L.next=N.nextLoc,L.method!=="return"&&(L.method="next",L.arg=e),L.delegate=null,g):D:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,g)}function k(N){var L={tryLoc:N[0]};1 in N&&(L.catchLoc=N[1]),2 in N&&(L.finallyLoc=N[2],L.afterLoc=N[3]),this.tryEntries.push(L)}function T(N){var L=N.completion||{};L.type="normal",delete L.arg,N.completion=L}function R(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(k,this),this.reset(!0)}function A(N){if(N||N===""){var L=N[o];if(L)return L.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var j=-1,F=function B(){for(;++j=0;--B){var D=this.tryEntries[B],z=D.completion;if(D.tryLoc==="root")return F("end");if(D.tryLoc<=this.prev){var W=r.call(D,"catchLoc"),q=r.call(D,"finallyLoc");if(W&&q){if(this.prev=0;--F){var B=this.tryEntries[F];if(B.tryLoc<=this.prev&&r.call(B,"finallyLoc")&&this.prev=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===L)return this.complete(F.completion,F.afterLoc),T(F),g}},catch:function(L){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===L){var B=F.completion;if(B.type==="throw"){var D=B.arg;T(F)}return D}}throw Error("illegal catch attempt")},delegateYield:function(L,j,F){return this.delegate={iterator:A(L),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=e),g}},t}function AU(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function ha(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){AU(a,r,i,o,s,"next",l)}function s(l){AU(a,r,i,o,s,"throw",l)}o(void 0)})}}var N1=ae({},cV),j$e=N1.version,JT=N1.render,D$e=N1.unmountComponentAtNode,jC;try{var F$e=Number((j$e||"").split(".")[0]);F$e>=18&&(jC=N1.createRoot)}catch(e){}function NU(e){var t=N1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Bt(t)==="object"&&(t.usingClientEntryPoint=e)}var DC="__rc_react_root__";function B$e(e,t){NU(!0);var n=t[DC]||jC(t);NU(!1),n.render(e),t[DC]=n}function z$e(e,t){JT==null||JT(e,t)}function H$e(e,t){if(jC){B$e(e,t);return}z$e(e,t)}function W$e(e){return eR.apply(this,arguments)}function eR(){return eR=ha(Zn().mark(function e(t){return Zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[DC])===null||i===void 0||i.unmount(),delete t[DC]}));case 1:case"end":return r.stop()}},e)})),eR.apply(this,arguments)}function V$e(e){D$e(e)}function q$e(e){return tR.apply(this,arguments)}function tR(){return tR=ha(Zn().mark(function e(t){return Zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(jC===void 0){r.next=2;break}return r.abrupt("return",W$e(t));case 2:V$e(t);case 3:case"end":return r.stop()}},e)})),tR.apply(this,arguments)}let U$e=(e,t)=>(H$e(e,t),()=>q$e(t));function nR(){return U$e}const rR=()=>({height:0,opacity:0}),LU=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},G$e=e=>({height:e?e.offsetHeight:0}),iR=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Wg=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:T1}-motion-collapse`,onAppearStart:rR,onEnterStart:rR,onAppearActive:LU,onEnterActive:LU,onLeaveStart:G$e,onLeaveActive:rR,onAppearEnd:iR,onEnterEnd:iR,onLeaveEnd:iR,motionDeadline:500}},wl=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Vg=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},K$e=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Y$e=e_e("Wave",e=>[K$e(e)]),FC=`${T1}-wave-target`;function aR(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function X$e(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return aR(t)?t:aR(n)?n:aR(r)?r:null}function oR(e){return Number.isNaN(e)?0:e}const Z$e=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,a=b.useRef(null),o=b.useRef(null);b.useEffect(()=>{o.current=i()},[]);const[s,l]=b.useState(null),[c,u]=b.useState([]),[f,d]=b.useState(0),[h,p]=b.useState(0),[v,g]=b.useState(0),[m,y]=b.useState(0),[x,S]=b.useState(!1),w={left:f,top:h,width:v,height:m,borderRadius:c.map(O=>`${O}px`).join(" ")};s&&(w["--wave-color"]=s);function C(){const O=getComputedStyle(n);l(X$e(n));const $=O.position==="static",{borderLeftWidth:P,borderTopWidth:M}=O;d($?n.offsetLeft:oR(-parseFloat(P))),p($?n.offsetTop:oR(-parseFloat(M))),g(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:k,borderTopRightRadius:T,borderBottomLeftRadius:R,borderBottomRightRadius:A}=O;u([k,T,A,R].map(N=>oR(parseFloat(N))))}if(b.useEffect(()=>{if(n){const O=Sn(()=>{C(),S(!0)});let $;return typeof ResizeObserver!="undefined"&&($=new ResizeObserver(C),$.observe(n)),()=>{Sn.cancel(O),$==null||$.disconnect()}}},[]),!x)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(FC));return b.createElement(Jo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,$)=>{var P,M;if($.deadline||$.propertyName==="opacity"){const k=(P=a.current)===null||P===void 0?void 0:P.parentElement;(M=o.current)===null||M===void 0||M.call(o).then(()=>{k==null||k.remove()})}return!1}},(O,$)=>{let{className:P}=O;return b.createElement("div",{ref:po(a,$),className:me(t,P,{"wave-quick":E}),style:w})})},Q$e=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const a=nR();let o=null;function s(){return o}o=a(b.createElement(Z$e,Object.assign({},t,{target:e,registerUnmount:s})),i)},J$e=(e,t,n)=>{const{wave:r}=b.useContext(At),[,i,a]=to(),o=On(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${FC}`)||u,{showEffect:d}=r||{};(d||Q$e)(f,{className:t,token:i,component:n,event:c,hashId:a})}),s=b.useRef(null);return c=>{Sn.cancel(s.current),s.current=Sn(()=>{o(c)})}},L1=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=b.useContext(At),a=b.useRef(null),o=i("wave"),[,s]=Y$e(o),l=J$e(a,me(o,s),r);if(we.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const f=d=>{!Vg(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(d)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!we.isValidElement(t))return t!=null?t:null;const c=vc(t)?po(bd(t),a):a;return Pa(t,{ref:c})},ja=e=>{const t=we.useContext(hp);return we.useMemo(()=>e?typeof e=="string"?e!=null?e:t:e instanceof Function?e(t):t:t,[e,t])},ePe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},tPe=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},nPe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},jU=tr("Space",e=>{const t=_n(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[tPe(t),nPe(t),ePe(t)]},()=>({}),{resetStyle:!1});var DU=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 i=0,r=Object.getOwnPropertySymbols(e);i{const n=b.useContext(BC),r=b.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=n,s=i==="vertical"?"-vertical-":"-";return me(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},rPe=e=>{let{children:t}=e;return b.createElement(BC.Provider,{value:null},t)},iPe=e=>{var{children:t}=e,n=DU(e,["children"]);return b.createElement(BC.Provider,{value:n},t)},aPe=e=>{const{getPrefixCls:t,direction:n}=b.useContext(At),{size:r,direction:i,block:a,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=DU(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=ja(x=>r!=null?r:x),d=t("space-compact",o),[h,p]=jU(d),v=me(d,p,{[`${d}-rtl`]:n==="rtl",[`${d}-block`]:a,[`${d}-vertical`]:i==="vertical"},s,l),g=b.useContext(BC),m=da(c),y=b.useMemo(()=>m.map((x,S)=>{const w=(x==null?void 0:x.key)||`${d}-item-${S}`;return b.createElement(iPe,{key:w,compactSize:f,compactDirection:i,isFirstItem:S===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:S===m.length-1&&(!g||(g==null?void 0:g.isLastItem))},x)}),[r,m,g]);return m.length===0?null:h(b.createElement("div",Object.assign({className:v},u),y))};var oPe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=b.useContext(At),{prefixCls:r,size:i,className:a}=e,o=oPe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=to();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=me(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return b.createElement(FU.Provider,{value:i},b.createElement("div",Object.assign({},o,{className:u})))},BU=/^[\u4E00-\u9FA5]{2}$/,sR=BU.test.bind(BU);function lR(e){return e==="danger"?{danger:!0}:{type:e}}function zU(e){return typeof e=="string"}function cR(e){return e==="text"||e==="link"}function lPe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&zU(e.type)&&sR(e.props.children)?Pa(e,{children:e.props.children.split("").join(n)}):zU(e)?sR(e)?we.createElement("span",null,e.split("").join(n)):we.createElement("span",null,e):mU(e)?we.createElement("span",null,e):e}function cPe(e,t){let n=!1;const r=[];return we.Children.forEach(e,i=>{const a=typeof i,o=a==="string"||a==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=o}),we.Children.map(r,i=>lPe(i,t))}const HU=b.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,o=me(`${a}-icon`,n);return we.createElement("span",{ref:t,className:o,style:r},i)}),WU=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=me(`${n}-loading-icon`,r);return we.createElement(HU,{prefixCls:n,className:o,style:i,ref:t},we.createElement(af,{className:a}))}),uR=()=>({width:0,opacity:0,transform:"scale(0)"}),fR=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),uPe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?we.createElement(WU,{prefixCls:t,className:i,style:a}):we.createElement(Jo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:uR,onAppearActive:fR,onEnterStart:uR,onEnterActive:fR,onLeaveStart:fR,onLeaveActive:uR},(l,c)=>{let{className:u,style:f}=l;const d=Object.assign(Object.assign({},a),f);return we.createElement(WU,{prefixCls:t,className:me(i,u),style:d,ref:c})})},VU=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),fPe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},VU(`${t}-primary`,i),VU(`${t}-danger`,a)]}};var dPe=["b"],hPe=["v"],dR=function(t){return Math.round(Number(t||0))},pPe=function(t){if(t instanceof Ed)return t;if(t&&Bt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=qt(n,dPe);return ae(ae({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},j1=function(e){xn(n,e);var t=Vs(n);function n(r){return it(this,n),t.call(this,pPe(r))}return at(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),a=dR(i.s*100),o=dR(i.b*100),s=dR(i.h),l=i.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(o,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),a=i.v,o=qt(i,hPe);return ae(ae({},o),{},{b:a,a:this.a})}}]),n}(Ed),vPe=function(t){return t instanceof j1?t:new j1(t)};vPe("#1677ff");const gPe=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",mPe=(e,t)=>e?gPe(e,t):"";let yPe=function(){function e(t){it(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:a,percent:o}=i;return{color:new e(a),percent:o}}),this.metaColor=new j1(this.colors[0].color.metaColor)):this.metaColor=new j1(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return at(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return mPe(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const a=n.colors[i];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var bPe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},xPe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:bPe}))},sf=b.forwardRef(xPe),qU=we.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,a=e.style,o=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,f=we.useState(s||r),d=he(f,2),h=d[0],p=d[1];return we.useEffect(function(){(r||s)&&p(!0)},[r,s]),h?we.createElement("div",{ref:t,className:me("".concat(n,"-content"),Z(Z({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:a,role:l},we.createElement("div",{className:me("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},o)):null});qU.displayName="PanelContent";var SPe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],UU=we.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,a=e.isActive,o=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,f=e.styles,d=f===void 0?{}:f,h=e.prefixCls,p=e.collapsible,v=e.accordion,g=e.panelKey,m=e.extra,y=e.header,x=e.expandIcon,S=e.openMotion,w=e.destroyInactivePanel,C=e.children,E=qt(e,SPe),O=p==="disabled",$=m!=null&&typeof m!="boolean",P=Z(Z(Z({onClick:function(){o==null||o(g)},onKeyDown:function(L){(L.key==="Enter"||L.keyCode===Ze.ENTER||L.which===Ze.ENTER)&&(o==null||o(g))},role:v?"tab":"button"},"aria-expanded",a),"aria-disabled",O),"tabIndex",O?-1:0),M=typeof x=="function"?x(e):we.createElement("i",{className:"arrow"}),k=M&&we.createElement("div",Le({className:"".concat(h,"-expand-icon")},["header","icon"].includes(p)?P:{}),M),T=me("".concat(h,"-item"),Z(Z({},"".concat(h,"-item-active"),a),"".concat(h,"-item-disabled"),O),l),R=me(i,"".concat(h,"-header"),Z({},"".concat(h,"-collapsible-").concat(p),!!p),u.header),A=ae({className:R,style:d.header},["header","icon"].includes(p)?{}:P);return we.createElement("div",Le({},E,{ref:t,className:T}),we.createElement("div",A,r&&k,we.createElement("span",Le({className:"".concat(h,"-header-text")},p==="header"?P:{}),y),$&&we.createElement("div",{className:"".concat(h,"-extra")},m)),we.createElement(Jo,Le({visible:a,leavedClassName:"".concat(h,"-content-hidden")},S,{forceRender:s,removeOnLeave:w}),function(N,L){var j=N.className,F=N.style;return we.createElement(qU,{ref:L,prefixCls:h,className:j,classNames:u,style:F,styles:d,isActive:a,forceRender:s,role:v?"tabpanel":void 0},C)}))}),wPe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],CPe=function(t,n){var r=n.prefixCls,i=n.accordion,a=n.collapsible,o=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(f,d){var h=f.children,p=f.label,v=f.key,g=f.collapsible,m=f.onItemClick,y=f.destroyInactivePanel,x=qt(f,wPe),S=String(v!=null?v:d),w=g!=null?g:a,C=y!=null?y:o,E=function(P){w!=="disabled"&&(s(P),m==null||m(P))},O=!1;return i?O=l[0]===S:O=l.indexOf(S)>-1,we.createElement(UU,Le({},x,{prefixCls:r,key:S,panelKey:S,isActive:O,accordion:i,openMotion:c,expandIcon:u,header:p,collapsible:w,onItemClick:E,destroyInactivePanel:C}),h)})},EPe=function(t,n,r){if(!t)return null;var i=r.prefixCls,a=r.accordion,o=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,f=r.expandIcon,d=t.key||String(n),h=t.props,p=h.header,v=h.headerClass,g=h.destroyInactivePanel,m=h.collapsible,y=h.onItemClick,x=!1;a?x=c[0]===d:x=c.indexOf(d)>-1;var S=m!=null?m:o,w=function(O){S!=="disabled"&&(l(O),y==null||y(O))},C={key:d,panelKey:d,header:p,headerClass:v,isActive:x,prefixCls:i,destroyInactivePanel:g!=null?g:s,openMotion:u,accordion:a,children:t.props.children,onItemClick:w,expandIcon:f,collapsible:S};return typeof t.type=="string"?t:(Object.keys(C).forEach(function(E){typeof C[E]=="undefined"&&delete C[E]}),we.cloneElement(t,C))};function OPe(e,t,n){return Array.isArray(e)?CPe(e,n):da(t).map(function(r,i){return EPe(r,i,n)})}function _Pe(e){var t=e;if(!Array.isArray(t)){var n=Bt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var $Pe=we.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,a=i===void 0?!1:i,o=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,f=e.openMotion,d=e.expandIcon,h=e.activeKey,p=e.defaultActiveKey,v=e.onChange,g=e.items,m=me(r,l),y=Yn([],{value:h,onChange:function($){return v==null?void 0:v($)},defaultValue:p,postState:_Pe}),x=he(y,2),S=x[0],w=x[1],C=function($){return w(function(){if(s)return S[0]===$?[]:[$];var P=S.indexOf($),M=P>-1;return M?S.filter(function(k){return k!==$}):[].concat(Ne(S),[$])})};zr(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var E=OPe(g,c,{prefixCls:r,accordion:s,openMotion:f,expandIcon:d,collapsible:u,destroyInactivePanel:a,onItemClick:C,activeKey:S});return we.createElement("div",Le({ref:t,className:m,style:o,role:s?"tablist":void 0},ta(e,{aria:!0,data:!0})),E)});const hR=Object.assign($Pe,{Panel:UU});hR.Panel;const PPe=b.forwardRef((e,t)=>{const{getPrefixCls:n}=b.useContext(At),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n("collapse",r),s=me({[`${o}-no-arrow`]:!a},i);return b.createElement(hR.Panel,Object.assign({ref:t},e,{prefixCls:o,className:s}))}),D1=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),TPe=e=>({animationDuration:e,animationFillMode:"both"}),RPe=e=>({animationDuration:e,animationFillMode:"both"}),WC=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),MPe=e=>({animationDuration:e,animationFillMode:"both"}),kPe=e=>({animationDuration:e,animationFillMode:"both"}),zC=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${a}${e}-enter, ${a}${e}-appear - `]:Object.assign(Object.assign({},TPe(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},RPe(r)),{animationPlayState:"paused"}),[` + `]:Object.assign(Object.assign({},MPe(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},kPe(r)),{animationPlayState:"paused"}),[` ${a}${e}-enter${e}-enter-active, ${a}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},IPe=new ur("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),APe=new ur("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),yR=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[WC(r,IPe,APe,e.motionDurationMid,t),{[` + `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},TPe=new fr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),RPe=new fr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),pR=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[zC(r,TPe,RPe,e.motionDurationMid,t),{[` ${i}${r}-enter, ${i}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},NPe=new ur("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),LPe=new ur("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),jPe=new ur("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),DPe=new ur("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),FPe=new ur("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),BPe=new ur("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zPe=new ur("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),HPe=new ur("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),WPe={"move-up":{inKeyframes:zPe,outKeyframes:HPe},"move-down":{inKeyframes:NPe,outKeyframes:LPe},"move-left":{inKeyframes:jPe,outKeyframes:DPe},"move-right":{inKeyframes:FPe,outKeyframes:BPe}},Vg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=WPe[t];return[WC(r,i,a,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},IPe=new fr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),APe=new fr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),NPe=new fr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),LPe=new fr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),jPe=new fr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),DPe=new fr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),FPe=new fr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),BPe=new fr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),zPe={"move-up":{inKeyframes:FPe,outKeyframes:BPe},"move-down":{inKeyframes:IPe,outKeyframes:APe},"move-left":{inKeyframes:NPe,outKeyframes:LPe},"move-right":{inKeyframes:jPe,outKeyframes:DPe}},qg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=zPe[t];return[zC(r,i,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},VC=new ur("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),qC=new ur("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),UC=new ur("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),GC=new ur("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),VPe=new ur("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),qPe=new ur("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),UPe=new ur("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),GPe=new ur("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),KPe={"slide-up":{inKeyframes:VC,outKeyframes:qC},"slide-down":{inKeyframes:UC,outKeyframes:GC},"slide-left":{inKeyframes:VPe,outKeyframes:qPe},"slide-right":{inKeyframes:UPe,outKeyframes:GPe}},ru=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=KPe[t];return[WC(r,i,a,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},HC=new fr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),WC=new fr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),VC=new fr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),qC=new fr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),HPe=new fr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),WPe=new fr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),VPe=new fr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),qPe=new fr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),UPe={"slide-up":{inKeyframes:HC,outKeyframes:WC},"slide-down":{inKeyframes:VC,outKeyframes:qC},"slide-left":{inKeyframes:HPe,outKeyframes:WPe},"slide-right":{inKeyframes:VPe,outKeyframes:qPe}},ru=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=UPe[t];return[zC(r,i,a,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}}]},bR=new ur("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),YPe=new ur("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),YU=new ur("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),XU=new ur("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),XPe=new ur("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ZPe=new ur("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),QPe=new ur("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),JPe=new ur("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),e3e=new ur("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),t3e=new ur("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),n3e=new ur("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),r3e=new ur("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),i3e={zoom:{inKeyframes:bR,outKeyframes:YPe},"zoom-big":{inKeyframes:YU,outKeyframes:XU},"zoom-big-fast":{inKeyframes:YU,outKeyframes:XU},"zoom-left":{inKeyframes:QPe,outKeyframes:JPe},"zoom-right":{inKeyframes:e3e,outKeyframes:t3e},"zoom-up":{inKeyframes:XPe,outKeyframes:ZPe},"zoom-down":{inKeyframes:n3e,outKeyframes:r3e}},qg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=i3e[t];return[WC(r,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},vR=new fr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),GPe=new fr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),GU=new fr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),KU=new fr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),KPe=new fr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),YPe=new fr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),XPe=new fr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ZPe=new fr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),QPe=new fr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),JPe=new fr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),e3e=new fr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),t3e=new fr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),n3e={zoom:{inKeyframes:vR,outKeyframes:GPe},"zoom-big":{inKeyframes:GU,outKeyframes:KU},"zoom-big-fast":{inKeyframes:GU,outKeyframes:KU},"zoom-left":{inKeyframes:XPe,outKeyframes:ZPe},"zoom-right":{inKeyframes:QPe,outKeyframes:JPe},"zoom-up":{inKeyframes:KPe,outKeyframes:YPe},"zoom-down":{inKeyframes:e3e,outKeyframes:t3e}},Ug=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=n3e[t];return[zC(r,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},a3e=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:f,colorText:d,colorTextHeading:h,colorTextDisabled:p,fontSizeLG:g,lineHeight:v,lineHeightLG:m,marginSM:y,paddingSM:x,paddingLG:S,paddingXS:w,motionDurationSlow:C,fontSizeIcon:E,contentPadding:O,fontHeight:$,fontHeightLG:P}=e,M=`${fe(c)} ${u} ${f}`;return{[t]:Object.assign(Object.assign({},er(e)),{backgroundColor:i,border:M,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:M,"&:last-child":{[` + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},r3e=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:f,colorText:d,colorTextHeading:h,colorTextDisabled:p,fontSizeLG:v,lineHeight:g,lineHeightLG:m,marginSM:y,paddingSM:x,paddingLG:S,paddingXS:w,motionDurationSlow:C,fontSizeIcon:E,contentPadding:O,fontHeight:$,fontHeightLG:P}=e,M=`${ue(c)} ${u} ${f}`;return{[t]:Object.assign(Object.assign({},er(e)),{backgroundColor:i,border:M,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:M,"&:last-child":{[` &, - & > ${t}-header`]:{borderRadius:`0 0 ${fe(l)} ${fe(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:v,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},Od()),{fontSize:E,transition:`transform ${C}`,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:M,[`& > ${t}-content-box`]:{padding:O},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:w,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub(w).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:m,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:P,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${fe(l)} ${fe(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:p,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},o3e=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},s3e=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[` + & > ${t}-header`]:{borderRadius:`0 0 ${ue(l)} ${ue(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:g,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},_d()),{fontSize:E,transition:`transform ${C}`,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:M,[`& > ${t}-content-box`]:{padding:O},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:w,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub(w).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:v,lineHeight:m,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:P,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${ue(l)} ${ue(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:p,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},i3e=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},a3e=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},l3e=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},c3e=tr("Collapse",e=>{const t=$n(e,{collapseHeaderPaddingSM:`${fe(e.paddingXS)} ${fe(e.paddingSM)}`,collapseHeaderPaddingLG:`${fe(e.padding)} ${fe(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[a3e(t),s3e(t),l3e(t),o3e(t),D1(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})),u3e=Object.assign(b.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=b.useContext(Lt),{prefixCls:a,className:o,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:f,expandIconPosition:d="start",children:h,expandIcon:p}=e,g=ja(M=>{var k;return(k=f!=null?f:M)!==null&&k!==void 0?k:"middle"}),v=n("collapse",a),m=n(),[y,x,S]=c3e(v),w=b.useMemo(()=>d==="left"?"start":d==="right"?"end":d,[d]),C=p!=null?p:i==null?void 0:i.expandIcon,E=b.useCallback(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const k=typeof C=="function"?C(M):b.createElement(sf,{rotate:M.isActive?90:void 0,"aria-label":M.isActive?"expanded":"collapsed"});return Pa(k,()=>{var T;return{className:me((T=k==null?void 0:k.props)===null||T===void 0?void 0:T.className,`${v}-arrow`)}})},[C,v]),O=me(`${v}-icon-position-${w}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!u,[`${v}-${g}`]:g!=="middle"},i==null?void 0:i.className,o,s,x,S),$=Object.assign(Object.assign({},Hg(m)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),P=b.useMemo(()=>h?da(h).map((M,k)=>{var T,R;const A=M.props;if(A!=null&&A.disabled){const N=(T=M.key)!==null&&T!==void 0?T:String(k),L=Object.assign(Object.assign({},Or(M.props,["disabled"])),{key:N,collapsible:(R=A.collapsible)!==null&&R!==void 0?R:"disabled"});return Pa(M,L)}return M}):null,[h]);return y(b.createElement(mR,Object.assign({ref:t,openMotion:$},Or(e,["rootClassName"]),{expandIcon:E,prefixCls:v,className:O,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),P))}),{Panel:kPe}),f3e=(e,t)=>{const{r:n,g:r,b:i,a}=e.toRgb(),o=new j1(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},ZU=e=>{const{paddingInline:t,onlyIconSize:n}=e;return $n(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},QU=e=>{var t,n,r,i,a,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:OC(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:OC(l),d=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:OC(c),h=f3e(new xPe(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,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:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,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:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*d)/2-e.lineWidth,0)}},d3e=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${fe(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`]:Od(),"> a":{color:"currentColor"},"&:not(:disabled)":nu(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}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${o}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},JU=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),h3e=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),p3e=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),v3e=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),xR=(e,t,n,r,i,a,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},JU(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),g3e=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},v3e(e))}),m3e=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),KC=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?m3e:g3e;return Object.assign(Object.assign({},a(e)),JU(e.componentCls,t,n))},SR=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},KC(e,r,i))}),wR=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},KC(e,r,i))}),CR=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ER=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},KC(e,n,r))}),Ug=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},KC(e,r,i,n))}),y3e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},SR(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),CR(e)),ER(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Ug(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),xR(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),b3e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},wR(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),CR(e)),ER(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Ug(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),xR(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),x3e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},SR(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),wR(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),CR(e)),ER(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Ug(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ug(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),xR(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),S3e=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:y3e(e),[`${t}-color-primary`]:b3e(e),[`${t}-color-dangerous`]:x3e(e)}},w3e=e=>Object.assign(Object.assign(Object.assign(Object.assign({},wR(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ug(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),SR(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ug(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),OR=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${fe(l)} ${fe(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${n}${n}-circle${t}`]:h3e(e)},{[`${n}${n}-round${t}`]:p3e(e)}]},C3e=e=>{const t=$n(e,{fontSize:e.contentFontSize});return OR(t,e.componentCls)},E3e=e=>{const t=$n(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return OR(t,`${e.componentCls}-sm`)},O3e=e=>{const t=$n(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return OR(t,`${e.componentCls}-lg`)},_3e=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},$3e=tr("Button",e=>{const t=ZU(e);return[d3e(t),C3e(t),E3e(t),O3e(t),_3e(t),S3e(t),w3e(t),hPe(t)]},QU,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function P3e(e,t,n){const{focusElCls:r,focus:i,borderElCls:a}=n,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function M3e(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function F1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},P3e(e,r,t)),M3e(n,r,t))}}function k3e(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function T3e(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function R3e(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},k3e(e,t)),T3e(e.componentCls,t))}}const I3e=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,a=i(r).mul(-1).equal(),o=s=>({[`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}});return Object.assign(Object.assign({},o()),o(!0))},A3e=jg(["Button","compact"],e=>{const t=ZU(e);return[F1(t),R3e(t),I3e(t)]},QU);var N3e=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a;const{loading:o=!1,prefixCls:s,color:l,variant:c,type:u,danger:f=!1,shape:d="default",size:h,styles:p,disabled:g,className:v,rootClassName:m,children:y,icon:x,iconPosition:S="start",ghost:w=!1,block:C=!1,htmlType:E="button",classNames:O,style:$={},autoInsertSpace:P,autoFocus:M}=e,k=N3e(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),T=u||"default",[R,A]=b.useMemo(()=>{if(l&&c)return[l,c];const ke=j3e[T]||[];return f?["danger",ke[1]]:ke},[u,l,c,f]),L=R==="danger"?"dangerous":R,{getPrefixCls:j,direction:F,button:B}=b.useContext(Lt),D=(n=P!=null?P:B==null?void 0:B.autoInsertSpace)!==null&&n!==void 0?n:!0,z=j("btn",s),[W,q,H]=$3e(z),U=b.useContext(mo),G=g!=null?g:U,K=b.useContext(BU),X=b.useMemo(()=>L3e(o),[o]),[Q,ee]=b.useState(X.loading),[ne,te]=b.useState(!1),ie=b.useRef(null),J=ef(t,ie),le=b.Children.count(y)===1&&!x&&!dR(A),oe=b.useRef(!0);we.useEffect(()=>(oe.current=!1,()=>{oe.current=!0}),[]),b.useEffect(()=>{let ke=null;X.delay>0?ke=setTimeout(()=>{ke=null,ee(!0)},X.delay):ee(X.loading);function Ce(){ke&&(clearTimeout(ke),ke=null)}return Ce},[X]),b.useEffect(()=>{if(!ie.current||!D)return;const ke=ie.current.textContent||"";le&&uR(ke)?ne||te(!0):ne&&te(!1)}),b.useEffect(()=>{M&&ie.current&&ie.current.focus()},[]);const re=we.useCallback(ke=>{var Ce;if(Q||G){ke.preventDefault();return}(Ce=e.onClick)===null||Ce===void 0||Ce.call(e,ke)},[e.onClick,Q,G]),{compactSize:se,compactItemClassnames:ge}=kd(z,F),de={large:"lg",small:"sm",middle:void 0},pe=ja(ke=>{var Ce,Re;return(Re=(Ce=h!=null?h:se)!==null&&Ce!==void 0?Ce:K)!==null&&Re!==void 0?Re:ke}),ue=pe&&(r=de[pe])!==null&&r!==void 0?r:"",Se=Q?"loading":x,Oe=Or(k,["navigate"]),_e=me(z,q,H,{[`${z}-${d}`]:d!=="default"&&d,[`${z}-${T}`]:T,[`${z}-dangerous`]:f,[`${z}-color-${L}`]:L,[`${z}-variant-${A}`]:A,[`${z}-${ue}`]:ue,[`${z}-icon-only`]:!y&&y!==0&&!!Se,[`${z}-background-ghost`]:w&&!dR(A),[`${z}-loading`]:Q,[`${z}-two-chinese-chars`]:ne&&D&&!Q,[`${z}-block`]:C,[`${z}-rtl`]:F==="rtl",[`${z}-icon-end`]:S==="end"},ge,v,m,B==null?void 0:B.className),Te=Object.assign(Object.assign({},B==null?void 0:B.style),$),je=me(O==null?void 0:O.icon,(i=B==null?void 0:B.classNames)===null||i===void 0?void 0:i.icon),Be=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),((a=B==null?void 0:B.styles)===null||a===void 0?void 0:a.icon)||{}),Pe=x&&!Q?we.createElement(WU,{prefixCls:z,className:je,style:Be},x):we.createElement(dPe,{existIcon:!!x,prefixCls:z,loading:Q,mount:oe.current}),He=y||y===0?fPe(y,le&&D):null;if(Oe.href!==void 0)return W(we.createElement("a",Object.assign({},Oe,{className:me(_e,{[`${z}-disabled`]:G}),href:G?void 0:Oe.href,style:Te,onClick:re,ref:J,tabIndex:G?-1:0}),Pe,He));let Ue=we.createElement("button",Object.assign({},k,{type:E,className:_e,style:Te,onClick:re,disabled:G,ref:J}),Pe,He,ge&&we.createElement(A3e,{prefixCls:z}));return dR(A)||(Ue=we.createElement(N1,{component:"Button",disabled:Q},Ue)),W(Ue)});zn.Group=cPe,zn.__ANT_BUTTON=!0;function _R(e){return!!(e!=null&&e.then)}const $R=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=b.useRef(!1),d=b.useRef(null),[h,p]=hp(!1),g=function(){a==null||a.apply(void 0,arguments)};b.useEffect(()=>{let y=null;return o&&(y=setTimeout(()=>{var x;(x=d.current)===null||x===void 0||x.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[]);const v=y=>{_R(y)&&(p(!0),y.then(function(){p(!1,!0),g.apply(void 0,arguments),f.current=!1},x=>{if(p(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(x)}))},m=y=>{if(f.current)return;if(f.current=!0,!u){g();return}let x;if(s){if(x=u(y),c&&!_R(x)){f.current=!1,g(y);return}}else if(u.length)x=u(a),f.current=!1;else if(x=u(),!_R(x)){g();return}v(x)};return b.createElement(zn,Object.assign({},fR(t),{onClick:m,loading:h,prefixCls:r},i,{ref:d}),n)},B1=we.createContext({}),{Provider:eG}=B1,tG=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:l}=b.useContext(B1);return i?we.createElement($R,{isSilent:r,actionFn:s,close:function(){o==null||o.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},nG=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:l}=b.useContext(B1);return we.createElement($R,{isSilent:n,type:o||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},a)};var rG=b.createContext(null),iG=[];function D3e(e,t){var n=b.useState(function(){if(!Ja())return null;var p=document.createElement("div");return p}),r=he(n,1),i=r[0],a=b.useRef(!1),o=b.useContext(rG),s=b.useState(iG),l=he(s,2),c=l[0],u=l[1],f=o||(a.current?void 0:function(p){u(function(g){var v=[p].concat(Ne(g));return v})});function d(){i.parentElement||document.body.appendChild(i),a.current=!0}function h(){var p;(p=i.parentElement)===null||p===void 0||p.removeChild(i),a.current=!1}return Nn(function(){return e?o?o(d):d():h(),h},[e]),Nn(function(){c.length&&(c.forEach(function(p){return p()}),u(iG))},[c]),[i,f]}var PR;function aG(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";nf(` + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},o3e=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},s3e=tr("Collapse",e=>{const t=_n(e,{collapseHeaderPaddingSM:`${ue(e.paddingXS)} ${ue(e.paddingSM)}`,collapseHeaderPaddingLG:`${ue(e.padding)} ${ue(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[r3e(t),a3e(t),o3e(t),i3e(t),D1(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})),l3e=Object.assign(b.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=b.useContext(At),{prefixCls:a,className:o,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:f,expandIconPosition:d="start",children:h,expandIcon:p}=e,v=ja(M=>{var k;return(k=f!=null?f:M)!==null&&k!==void 0?k:"middle"}),g=n("collapse",a),m=n(),[y,x,S]=s3e(g),w=b.useMemo(()=>d==="left"?"start":d==="right"?"end":d,[d]),C=p!=null?p:i==null?void 0:i.expandIcon,E=b.useCallback(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const k=typeof C=="function"?C(M):b.createElement(sf,{rotate:M.isActive?90:void 0,"aria-label":M.isActive?"expanded":"collapsed"});return Pa(k,()=>{var T;return{className:me((T=k==null?void 0:k.props)===null||T===void 0?void 0:T.className,`${g}-arrow`)}})},[C,g]),O=me(`${g}-icon-position-${w}`,{[`${g}-borderless`]:!c,[`${g}-rtl`]:r==="rtl",[`${g}-ghost`]:!!u,[`${g}-${v}`]:v!=="middle"},i==null?void 0:i.className,o,s,x,S),$=Object.assign(Object.assign({},Wg(m)),{motionAppear:!1,leavedClassName:`${g}-content-hidden`}),P=b.useMemo(()=>h?da(h).map((M,k)=>{var T,R;const A=M.props;if(A!=null&&A.disabled){const N=(T=M.key)!==null&&T!==void 0?T:String(k),L=Object.assign(Object.assign({},Or(M.props,["disabled"])),{key:N,collapsible:(R=A.collapsible)!==null&&R!==void 0?R:"disabled"});return Pa(M,L)}return M}):null,[h]);return y(b.createElement(hR,Object.assign({ref:t,openMotion:$},Or(e,["rootClassName"]),{expandIcon:E,prefixCls:g,className:O,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),P))}),{Panel:PPe}),c3e=(e,t)=>{const{r:n,g:r,b:i,a}=e.toRgb(),o=new j1(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},YU=e=>{const{paddingInline:t,onlyIconSize:n}=e;return _n(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},XU=e=>{var t,n,r,i,a,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:EC(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:EC(l),d=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:EC(c),h=c3e(new yPe(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,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:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,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:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*d)/2-e.lineWidth,0)}},u3e=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ue(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`]:_d(),"> a":{color:"currentColor"},"&:not(:disabled)":nu(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}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${o}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},ZU=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),f3e=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),d3e=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),h3e=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),gR=(e,t,n,r,i,a,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},ZU(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),p3e=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},h3e(e))}),v3e=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),UC=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?v3e:p3e;return Object.assign(Object.assign({},a(e)),ZU(e.componentCls,t,n))},mR=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},UC(e,r,i))}),yR=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},UC(e,r,i))}),bR=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),xR=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},UC(e,n,r))}),Gg=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},UC(e,r,i,n))}),g3e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},mR(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),bR(e)),xR(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Gg(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),gR(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),m3e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},yR(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),bR(e)),xR(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Gg(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),gR(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),y3e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},mR(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),yR(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bR(e)),xR(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Gg(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Gg(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),gR(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),b3e=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:g3e(e),[`${t}-color-primary`]:m3e(e),[`${t}-color-dangerous`]:y3e(e)}},x3e=e=>Object.assign(Object.assign(Object.assign(Object.assign({},yR(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Gg(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),mR(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Gg(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),SR=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${ue(l)} ${ue(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${n}${n}-circle${t}`]:f3e(e)},{[`${n}${n}-round${t}`]:d3e(e)}]},S3e=e=>{const t=_n(e,{fontSize:e.contentFontSize});return SR(t,e.componentCls)},w3e=e=>{const t=_n(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return SR(t,`${e.componentCls}-sm`)},C3e=e=>{const t=_n(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return SR(t,`${e.componentCls}-lg`)},E3e=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},O3e=tr("Button",e=>{const t=YU(e);return[u3e(t),S3e(t),w3e(t),C3e(t),E3e(t),b3e(t),x3e(t),fPe(t)]},XU,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function _3e(e,t,n){const{focusElCls:r,focus:i,borderElCls:a}=n,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function $3e(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function F1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},_3e(e,r,t)),$3e(n,r,t))}}function P3e(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function M3e(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function k3e(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},P3e(e,t)),M3e(e.componentCls,t))}}const T3e=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,a=i(r).mul(-1).equal(),o=s=>({[`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}});return Object.assign(Object.assign({},o()),o(!0))},R3e=Dg(["Button","compact"],e=>{const t=YU(e);return[F1(t),k3e(t),T3e(t)]},XU);var I3e=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a;const{loading:o=!1,prefixCls:s,color:l,variant:c,type:u,danger:f=!1,shape:d="default",size:h,styles:p,disabled:v,className:g,rootClassName:m,children:y,icon:x,iconPosition:S="start",ghost:w=!1,block:C=!1,htmlType:E="button",classNames:O,style:$={},autoInsertSpace:P,autoFocus:M}=e,k=I3e(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),T=u||"default",[R,A]=b.useMemo(()=>{if(l&&c)return[l,c];const ke=N3e[T]||[];return f?["danger",ke[1]]:ke},[u,l,c,f]),L=R==="danger"?"dangerous":R,{getPrefixCls:j,direction:F,button:B}=b.useContext(At),D=(n=P!=null?P:B==null?void 0:B.autoInsertSpace)!==null&&n!==void 0?n:!0,z=j("btn",s),[W,q,H]=O3e(z),U=b.useContext(mo),G=v!=null?v:U,K=b.useContext(FU),X=b.useMemo(()=>A3e(o),[o]),[Q,ee]=b.useState(X.loading),[ne,te]=b.useState(!1),ie=b.useRef(null),J=ef(t,ie),le=b.Children.count(y)===1&&!x&&!cR(A),oe=b.useRef(!0);we.useEffect(()=>(oe.current=!1,()=>{oe.current=!0}),[]),b.useEffect(()=>{let ke=null;X.delay>0?ke=setTimeout(()=>{ke=null,ee(!0)},X.delay):ee(X.loading);function Ee(){ke&&(clearTimeout(ke),ke=null)}return Ee},[X]),b.useEffect(()=>{if(!ie.current||!D)return;const ke=ie.current.textContent||"";le&&sR(ke)?ne||te(!0):ne&&te(!1)}),b.useEffect(()=>{M&&ie.current&&ie.current.focus()},[]);const re=we.useCallback(ke=>{var Ee;if(Q||G){ke.preventDefault();return}(Ee=e.onClick)===null||Ee===void 0||Ee.call(e,ke)},[e.onClick,Q,G]),{compactSize:se,compactItemClassnames:ge}=Td(z,F),de={large:"lg",small:"sm",middle:void 0},pe=ja(ke=>{var Ee,Ie;return(Ie=(Ee=h!=null?h:se)!==null&&Ee!==void 0?Ee:K)!==null&&Ie!==void 0?Ie:ke}),fe=pe&&(r=de[pe])!==null&&r!==void 0?r:"",xe=Q?"loading":x,Oe=Or(k,["navigate"]),_e=me(z,q,H,{[`${z}-${d}`]:d!=="default"&&d,[`${z}-${T}`]:T,[`${z}-dangerous`]:f,[`${z}-color-${L}`]:L,[`${z}-variant-${A}`]:A,[`${z}-${fe}`]:fe,[`${z}-icon-only`]:!y&&y!==0&&!!xe,[`${z}-background-ghost`]:w&&!cR(A),[`${z}-loading`]:Q,[`${z}-two-chinese-chars`]:ne&&D&&!Q,[`${z}-block`]:C,[`${z}-rtl`]:F==="rtl",[`${z}-icon-end`]:S==="end"},ge,g,m,B==null?void 0:B.className),Te=Object.assign(Object.assign({},B==null?void 0:B.style),$),Fe=me(O==null?void 0:O.icon,(i=B==null?void 0:B.classNames)===null||i===void 0?void 0:i.icon),Be=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),((a=B==null?void 0:B.styles)===null||a===void 0?void 0:a.icon)||{}),Pe=x&&!Q?we.createElement(HU,{prefixCls:z,className:Fe,style:Be},x):we.createElement(uPe,{existIcon:!!x,prefixCls:z,loading:Q,mount:oe.current}),ze=y||y===0?cPe(y,le&&D):null;if(Oe.href!==void 0)return W(we.createElement("a",Object.assign({},Oe,{className:me(_e,{[`${z}-disabled`]:G}),href:G?void 0:Oe.href,style:Te,onClick:re,ref:J,tabIndex:G?-1:0}),Pe,ze));let Ue=we.createElement("button",Object.assign({},k,{type:E,className:_e,style:Te,onClick:re,disabled:G,ref:J}),Pe,ze,ge&&we.createElement(R3e,{prefixCls:z}));return cR(A)||(Ue=we.createElement(L1,{component:"Button",disabled:Q},Ue)),W(Ue)});Hn.Group=sPe,Hn.__ANT_BUTTON=!0;function wR(e){return!!(e!=null&&e.then)}const CR=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=b.useRef(!1),d=b.useRef(null),[h,p]=pp(!1),v=function(){a==null||a.apply(void 0,arguments)};b.useEffect(()=>{let y=null;return o&&(y=setTimeout(()=>{var x;(x=d.current)===null||x===void 0||x.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[]);const g=y=>{wR(y)&&(p(!0),y.then(function(){p(!1,!0),v.apply(void 0,arguments),f.current=!1},x=>{if(p(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(x)}))},m=y=>{if(f.current)return;if(f.current=!0,!u){v();return}let x;if(s){if(x=u(y),c&&!wR(x)){f.current=!1,v(y);return}}else if(u.length)x=u(a),f.current=!1;else if(x=u(),!wR(x)){v();return}g(x)};return b.createElement(Hn,Object.assign({},lR(t),{onClick:m,loading:h,prefixCls:r},i,{ref:d}),n)},B1=we.createContext({}),{Provider:QU}=B1,JU=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:l}=b.useContext(B1);return i?we.createElement(CR,{isSilent:r,actionFn:s,close:function(){o==null||o.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},eG=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:l}=b.useContext(B1);return we.createElement(CR,{isSilent:n,type:o||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},a)};var tG=b.createContext(null),nG=[];function L3e(e,t){var n=b.useState(function(){if(!Ja())return null;var p=document.createElement("div");return p}),r=he(n,1),i=r[0],a=b.useRef(!1),o=b.useContext(tG),s=b.useState(nG),l=he(s,2),c=l[0],u=l[1],f=o||(a.current?void 0:function(p){u(function(v){var g=[p].concat(Ne(v));return g})});function d(){i.parentElement||document.body.appendChild(i),a.current=!0}function h(){var p;(p=i.parentElement)===null||p===void 0||p.removeChild(i),a.current=!1}return Ln(function(){return e?o?o(d):d():h(),h},[e]),Ln(function(){c.length&&(c.forEach(function(p){return p()}),u(nG))},[c]),[i,f]}var ER;function rG(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";nf(` #`.concat(t,`::-webkit-scrollbar { `).concat(u,` `).concat(f,` -}`),t)}catch(p){console.error(p),i=l,a=c}}document.body.appendChild(n);var d=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,h=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),S1(t),{width:d,height:h}}function oG(e){return typeof document=="undefined"?0:(PR===void 0&&(PR=aG()),PR.width)}function MR(e){return typeof document=="undefined"||!e||!(e instanceof Element)?{width:0,height:0}:aG(e)}function F3e(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var B3e="rc-util-locker-".concat(Date.now()),sG=0;function z3e(e){var t=!!e,n=b.useState(function(){return sG+=1,"".concat(B3e,"_").concat(sG)}),r=he(n,1),i=r[0];Nn(function(){if(t){var a=MR(document.body).width,o=F3e();nf(` +}`),t)}catch(p){console.error(p),i=l,a=c}}document.body.appendChild(n);var d=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,h=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),S1(t),{width:d,height:h}}function iG(e){return typeof document=="undefined"?0:(ER===void 0&&(ER=rG()),ER.width)}function OR(e){return typeof document=="undefined"||!e||!(e instanceof Element)?{width:0,height:0}:rG(e)}function j3e(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var D3e="rc-util-locker-".concat(Date.now()),aG=0;function F3e(e){var t=!!e,n=b.useState(function(){return aG+=1,"".concat(D3e,"_").concat(aG)}),r=he(n,1),i=r[0];Ln(function(){if(t){var a=OR(document.body).width,o=j3e();nf(` html body { overflow-y: hidden; `.concat(o?"width: calc(100% - ".concat(a,"px);"):"",` -}`),i)}else S1(i);return function(){S1(i)}},[t,i])}var H3e=!1;function W3e(e){return H3e}var lG=function(t){return t===!1?!1:!Ja()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},YC=b.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,o=a===void 0?!0:a,s=e.children,l=b.useState(n),c=he(l,2),u=c[0],f=c[1],d=u||n;b.useEffect(function(){(o||n)&&f(n)},[n,o]);var h=b.useState(function(){return lG(i)}),p=he(h,2),g=p[0],v=p[1];b.useEffect(function(){var M=lG(i);v(M!=null?M:null)});var m=D3e(d&&!g),y=he(m,2),x=y[0],S=y[1],w=g!=null?g:x;z3e(r&&n&&Ja()&&(w===x||w===document.body));var C=null;if(s&&vc(s)&&t){var E=s;C=E.ref}var O=ef(C,t);if(!d||!Ja()||g===void 0)return null;var $=w===!1||W3e(),P=s;return t&&(P=b.cloneElement(s,{ref:O})),b.createElement(rG.Provider,{value:S},$?P:ys.createPortal(P,w))}),cG=b.createContext({});function V3e(){var e=ae({},wy);return e.useId}var uG=0,fG=V3e();const dG=fG?function(t){var n=fG();return t||n}:function(t){var n=b.useState("ssr-id"),r=he(n,2),i=r[0],a=r[1];return b.useEffect(function(){var o=uG;uG+=1,a("rc_unique_".concat(o))},[]),t||i};function hG(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function pG(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function q3e(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=pG(i),n.top+=pG(i,!0),n}const U3e=b.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var G3e={width:0,height:0,overflow:"hidden",outline:"none"},K3e={outline:"none"},vG=we.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,d=e.bodyStyle,h=e.bodyProps,p=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,m=e.holderRef,y=e.visible,x=e.forceRender,S=e.width,w=e.height,C=e.classNames,E=e.styles,O=we.useContext(cG),$=O.panel,P=ef(m,$),M=b.useRef(),k=b.useRef();we.useImperativeHandle(t,function(){return{focus:function(){var z;(z=M.current)===null||z===void 0||z.focus({preventScroll:!0})},changeActive:function(z){var W=document,q=W.activeElement;z&&q===k.current?M.current.focus({preventScroll:!0}):!z&&q===M.current&&k.current.focus({preventScroll:!0})}}});var T={};S!==void 0&&(T.width=S),w!==void 0&&(T.height=w);var R=s?we.createElement("div",{className:me("".concat(n,"-footer"),C==null?void 0:C.footer),style:ae({},E==null?void 0:E.footer)},s):null,A=a?we.createElement("div",{className:me("".concat(n,"-header"),C==null?void 0:C.header),style:ae({},E==null?void 0:E.header)},we.createElement("div",{className:"".concat(n,"-title"),id:o},a)):null,N=b.useMemo(function(){return Bt(l)==="object"&&l!==null?l:l?{closeIcon:c!=null?c:we.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),L=ta(N,!0),j=Bt(l)==="object"&&l.disabled,F=l?we.createElement("button",Le({type:"button",onClick:u,"aria-label":"Close"},L,{className:"".concat(n,"-close"),disabled:j}),N.closeIcon):null,B=we.createElement("div",{className:me("".concat(n,"-content"),C==null?void 0:C.content),style:E==null?void 0:E.content},F,A,we.createElement("div",Le({className:me("".concat(n,"-body"),C==null?void 0:C.body),style:ae(ae({},d),E==null?void 0:E.body)},h),f),R);return we.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?o:null,"aria-modal":"true",ref:P,style:ae(ae({},i),T),className:me(n,r),onMouseDown:g,onMouseUp:v},we.createElement("div",{ref:M,tabIndex:0,style:K3e},we.createElement(U3e,{shouldUpdate:y||x},p?p(B):B)),we.createElement("div",{tabIndex:0,ref:k,style:G3e}))}),gG=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,a=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,d=e.mousePosition,h=b.useRef(),p=b.useState(),g=he(p,2),v=g[0],m=g[1],y={};v&&(y.transformOrigin=v);function x(){var S=q3e(h.current);m(d&&(d.x||d.y)?"".concat(d.x-S.left,"px ").concat(d.y-S.top,"px"):"")}return b.createElement(Jo,{visible:o,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:s,motionName:c,removeOnLeave:l,ref:h},function(S,w){var C=S.className,E=S.style;return b.createElement(vG,Le({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:w,style:ae(ae(ae({},E),i),y),className:me(a,C)}))})});gG.displayName="Content";var Y3e=function(t){var n=t.prefixCls,r=t.style,i=t.visible,a=t.maskProps,o=t.motionName,s=t.className;return b.createElement(Jo,{key:"mask",visible:i,motionName:o,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return b.createElement("div",Le({ref:c,style:ae(ae({},f),r),className:me("".concat(n,"-mask"),u,s)},a))})},X3e=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,a=t.visible,o=a===void 0?!1:a,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,d=t.wrapClassName,h=t.wrapProps,p=t.onClose,g=t.afterOpenChange,v=t.afterClose,m=t.transitionName,y=t.animation,x=t.closable,S=x===void 0?!0:x,w=t.mask,C=w===void 0?!0:w,E=t.maskTransitionName,O=t.maskAnimation,$=t.maskClosable,P=$===void 0?!0:$,M=t.maskStyle,k=t.maskProps,T=t.rootClassName,R=t.classNames,A=t.styles,N=b.useRef(),L=b.useRef(),j=b.useRef(),F=b.useState(o),B=he(F,2),D=B[0],z=B[1],W=dG();function q(){nT(L.current,document.activeElement)||(N.current=document.activeElement)}function H(){if(!nT(L.current,document.activeElement)){var J;(J=j.current)===null||J===void 0||J.focus()}}function U(J){if(J)H();else{if(z(!1),C&&N.current&&u){try{N.current.focus({preventScroll:!0})}catch(le){}N.current=null}D&&(v==null||v())}g==null||g(J)}function G(J){p==null||p(J)}var K=b.useRef(!1),X=b.useRef(),Q=function(){clearTimeout(X.current),K.current=!0},ee=function(){X.current=setTimeout(function(){K.current=!1})},ne=null;P&&(ne=function(le){K.current?K.current=!1:L.current===le.target&&G(le)});function te(J){if(l&&J.keyCode===Ze.ESC){J.stopPropagation(),G(J);return}o&&J.keyCode===Ze.TAB&&j.current.changeActive(!J.shiftKey)}b.useEffect(function(){o&&(z(!0),q())},[o]),b.useEffect(function(){return function(){clearTimeout(X.current)}},[]);var ie=ae(ae(ae({zIndex:i},f),A==null?void 0:A.wrapper),{},{display:D?null:"none"});return b.createElement("div",Le({className:me("".concat(r,"-root"),T)},ta(t,{data:!0})),b.createElement(Y3e,{prefixCls:r,visible:C&&o,motionName:hG(r,E,O),style:ae(ae({zIndex:i},M),A==null?void 0:A.mask),maskProps:k,className:R==null?void 0:R.mask}),b.createElement("div",Le({tabIndex:-1,onKeyDown:te,className:me("".concat(r,"-wrap"),d,R==null?void 0:R.wrapper),ref:L,onClick:ne,style:ie},h),b.createElement(gG,Le({},t,{onMouseDown:Q,onMouseUp:ee,ref:j,closable:S,ariaId:W,prefixCls:r,visible:o&&D,onClose:G,onVisibleChanged:U,motionName:hG(r,m,y)}))))},kR=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,a=t.destroyOnClose,o=a===void 0?!1:a,s=t.afterClose,l=t.panelRef,c=b.useState(n),u=he(c,2),f=u[0],d=u[1],h=b.useMemo(function(){return{panel:l}},[l]);return b.useEffect(function(){n&&d(!0)},[n]),!i&&o&&!f?null:b.createElement(cG.Provider,{value:h},b.createElement(YC,{open:n||i||f,autoDestroy:!1,getContainer:r,autoLock:n||f},b.createElement(X3e,Le({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),d(!1)}}))))};kR.displayName="Dialog";var vp="RC_FORM_INTERNAL_HOOKS",ai=function(){zr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},gp=b.createContext({getFieldValue:ai,getFieldsValue:ai,getFieldError:ai,getFieldWarning:ai,getFieldsError:ai,isFieldsTouched:ai,isFieldTouched:ai,isFieldValidating:ai,isFieldsValidating:ai,resetFields:ai,setFields:ai,setFieldValue:ai,setFieldsValue:ai,validateFields:ai,submit:ai,getInternalHooks:function(){return ai(),{dispatch:ai,initEntityValue:ai,registerField:ai,useSubscribe:ai,setInitialValues:ai,destroyForm:ai,setCallbacks:ai,registerWatch:ai,getFields:ai,setValidateMessages:ai,setPreserve:ai,getInitialValue:ai}}}),z1=b.createContext(null);function TR(e){return e==null?[]:Array.isArray(e)?e:[e]}function Z3e(e){return e&&!!e._init}function RR(){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 IR=RR();function Q3e(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}function J3e(e,t,n){if(aC())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&b1(i,n.prototype),i}function AR(e){var t=typeof Map=="function"?new Map:void 0;return AR=function(r){if(r===null||!Q3e(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,i)}function i(){return J3e(r,arguments,tf(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),b1(i,r)},AR(e)}var eMe=/%[sdj%]/g,tMe=function(){};typeof process!="undefined"&&process.env;function NR(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 Us(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(l){return"[Circular]"}break;default:return s}});return o}return e}function nMe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Da(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||nMe(t)&&typeof e=="string"&&!e)}function rMe(e,t,n){var r=[],i=0,a=e.length;function o(s){r.push.apply(r,Ne(s||[])),i++,i===a&&n(r)}e.forEach(function(s){t(s,o)})}function mG(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,st.max?i.push(Us(a.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(Us(a.messages[f].range,t.fullField,t.min,t.max))},SG=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||Da(n,o||t.type))&&i.push(Us(a.messages.required,t.fullField))},XC;const fMe=function(){if(XC)return XC;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),u=function(C){return C&&C.exact?s:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(o).concat(t(C),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(o).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,p=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(h,"|").concat(p,"|").concat(g).concat(v).concat(m,")").concat(y).concat(x);return XC=new RegExp("(?:^".concat(S,"$)"),"i"),XC};var wG={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},H1={integer:function(t){return H1.number(t)&&parseInt(t,10)===t},float:function(t){return H1.number(t)&&!H1.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Bt(t)==="object"&&!H1.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(wG.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(fMe())},hex:function(t){return typeof t=="string"&&!!t.match(wG.hex)}},dMe=function(t,n,r,i,a){if(t.required&&n===void 0){SG(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?H1[s](n)||i.push(Us(a.messages.types[s],t.fullField,t.type)):s&&Bt(n)!==t.type&&i.push(Us(a.messages.types[s],t.fullField,t.type))},hMe=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(Us(a.messages.whitespace,t.fullField))};const br={required:SG,whitespace:hMe,type:dMe,range:uMe,enum:lMe,pattern:cMe};var pMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a)}r(o)},vMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();br.required(t,n,i,o,a,"array"),n!=null&&(br.type(t,n,i,o,a),br.range(t,n,i,o,a))}r(o)},gMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&br.type(t,n,i,o,a)}r(o)},mMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n,"date")&&!t.required)return r();if(br.required(t,n,i,o,a),!Da(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),br.type(t,l,i,o,a),l&&br.range(t,l.getTime(),i,o,a)}}r(o)},yMe="enum",bMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&br[yMe](t,n,i,o,a)}r(o)},xMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&(br.type(t,n,i,o,a),br.range(t,n,i,o,a))}r(o)},SMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&(br.type(t,n,i,o,a),br.range(t,n,i,o,a))}r(o)},wMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&br.type(t,n,i,o,a)}r(o)},CMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&(br.type(t,n,i,o,a),br.range(t,n,i,o,a))}r(o)},EMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&br.type(t,n,i,o,a)}r(o)},OMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n,"string")&&!t.required)return r();br.required(t,n,i,o,a),Da(n,"string")||br.pattern(t,n,i,o,a)}r(o)},_Me=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),Da(n)||br.type(t,n,i,o,a)}r(o)},$Me=function(t,n,r,i,a){var o=[],s=Array.isArray(n)?"array":Bt(n);br.required(t,n,i,o,a,s),r(o)},PMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n,"string")&&!t.required)return r();br.required(t,n,i,o,a,"string"),Da(n,"string")||(br.type(t,n,i,o,a),br.range(t,n,i,o,a),br.pattern(t,n,i,o,a),t.whitespace===!0&&br.whitespace(t,n,i,o,a))}r(o)},LR=function(t,n,r,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Da(n,o)&&!t.required)return r();br.required(t,n,i,s,a,o),Da(n,o)||br.type(t,n,i,s,a)}r(s)};const W1={string:PMe,method:wMe,number:CMe,boolean:gMe,regexp:_Me,integer:SMe,float:xMe,array:vMe,object:EMe,enum:bMe,pattern:OMe,date:mMe,url:LR,hex:LR,email:LR,required:$Me,any:pMe};var V1=function(){function e(t){rt(this,e),Z(this,"rules",null),Z(this,"_messages",IR),this.define(t)}return it(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Bt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=xG(RR(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=i,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(p){var g=[],v={};function m(x){if(Array.isArray(x)){var S;g=(S=g).concat.apply(S,Ne(x))}else g.push(x)}for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:[],O=Array.isArray(E)?E:[E];!s.suppressWarning&&O.length&&e.warning("async-validator:",O),O.length&&v.message!==void 0&&(O=[].concat(v.message));var $=O.map(bG(v,o));if(s.first&&$.length)return h[v.field]=1,g($);if(!m)g($);else{if(v.required&&!p.value)return v.message!==void 0?$=[].concat(v.message).map(bG(v,o)):s.error&&($=[s.error(v,Us(s.messages.required,v.field))]),g($);var P={};v.defaultField&&Object.keys(p.value).map(function(T){P[T]=v.defaultField}),P=ae(ae({},P),p.rule.fields);var M={};Object.keys(P).forEach(function(T){var R=P[T],A=Array.isArray(R)?R:[R];M[T]=A.map(y.bind(null,T))});var k=new e(M);k.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),k.validate(p.value,p.rule.options||s,function(T){var R=[];$&&$.length&&R.push.apply(R,Ne($)),T&&T.length&&R.push.apply(R,Ne(T)),g(R.length?R:null)})}}var S;if(v.asyncValidator)S=v.asyncValidator(v,p.value,x,p.source,s);else if(v.validator){try{S=v.validator(v,p.value,x,p.source,s)}catch(E){var w,C;(w=(C=console).error)===null||w===void 0||w.call(C,E),s.suppressValidatorError||setTimeout(function(){throw E},0),x(E.message)}S===!0?x():S===!1?x(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):S instanceof Array?x(S):S instanceof Error&&x(S.message)}S&&S.then&&S.then(function(){return x()},function(E){return x(E)})},function(p){c(p)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!W1.hasOwnProperty(n.type))throw new Error(Us("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?W1.required:W1[this.getType(n)]||void 0}}]),e}();Z(V1,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");W1[t]=n}),Z(V1,"warning",tMe),Z(V1,"messages",IR),Z(V1,"validators",W1);var Gs="'${name}' is not a valid ${type}",CG={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Gs,method:Gs,array:Gs,object:Gs,number:Gs,date:Gs,boolean:Gs,integer:Gs,float:Gs,regexp:Gs,email:Gs,url:Gs,hex:Gs},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},EG=V1;function MMe(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var OG="CODE_LOGIC_ERROR";function jR(e,t,n,r,i){return DR.apply(this,arguments)}function DR(){return DR=ha(Zn().mark(function e(t,n,r,i,a){var o,s,l,c,u,f,d,h,p;return Zn().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=ae({},r),delete o.ruleIndex,EG.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(OG)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new EG(Z({},t,[o])),u=Rg(CG,i.validateMessages),c.messages(u),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(Z({},t,n),ae({},i)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(m,y){var x=m.message,S=x===OG?u.default:x;return b.isValidElement(S)?b.cloneElement(S,{key:"error_".concat(y)}):S}));case 18:if(!(!f.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(m,y){return jR("".concat(t,".").concat(y),m,l,i,a)}));case 21:return d=v.sent,v.abrupt("return",d.reduce(function(m,y){return[].concat(Ne(m),Ne(y))},[]));case 23:return h=ae(ae({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),p=f.map(function(m){return typeof m=="string"?MMe(m,h):m}),v.abrupt("return",p);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),DR.apply(this,arguments)}function kMe(e,t,n,r,i,a){var o=e.join("."),s=n.map(function(u,f){var d=u.validator,h=ae(ae({},u),{},{ruleIndex:f});return d&&(h.validator=function(p,g,v){var m=!1,y=function(){for(var w=arguments.length,C=new Array(w),E=0;E2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return $G(t,r,n)})}function $G(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function IMe(e,t){if(e===t)return!0;if(!e&&t||!t||!e||!t||Bt(e)!=="object"||Bt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return Ne(i).every(function(a){var o=e[a],s=t[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function AMe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Bt(t.target)==="object"&&e in t.target?t.target[e]:t}function PG(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(Ne(e.slice(0,n)),[i],Ne(e.slice(n,t)),Ne(e.slice(t+1,r))):a<0?[].concat(Ne(e.slice(0,t)),Ne(e.slice(t+1,n+1)),[i],Ne(e.slice(n+1,r))):e}var NMe=["name"],Cl=[];function zR(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var HR=function(e){Sn(n,e);var t=Vs(n);function n(r){var i;if(rt(this,n),i=t.call(this,r),Z(ut(i),"state",{resetCount:0}),Z(ut(i),"cancelRegisterFunc",null),Z(ut(i),"mounted",!1),Z(ut(i),"touched",!1),Z(ut(i),"dirty",!1),Z(ut(i),"validatePromise",void 0),Z(ut(i),"prevValidating",void 0),Z(ut(i),"errors",Cl),Z(ut(i),"warnings",Cl),Z(ut(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,pa(f)),i.cancelRegisterFunc=null}),Z(ut(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(Ne(d),Ne(c)):[]}),Z(ut(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),Z(ut(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),Z(ut(i),"metaCache",null),Z(ut(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=ae(ae({},i.getMeta()),{},{destroy:l});yl(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),Z(ut(i),"onStoreChange",function(l,c,u){var f=i.props,d=f.shouldUpdate,h=f.dependencies,p=h===void 0?[]:h,g=f.onReset,v=u.store,m=i.getNamePath(),y=i.getValue(l),x=i.getValue(v),S=c&&Kg(c,m);switch(u.type==="valueUpdate"&&u.source==="external"&&!yl(y,x)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Cl,i.warnings=Cl,i.triggerMetaEvent()),u.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Cl,i.warnings=Cl,i.triggerMetaEvent(),g==null||g(),i.refresh();return}break;case"remove":{if(d&&zR(d,l,v,y,x,u)){i.reRender();return}break}case"setField":{var w=u.data;if(S){"touched"in w&&(i.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(i.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(i.errors=w.errors||Cl),"warnings"in w&&(i.warnings=w.warnings||Cl),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in w&&Kg(c,m,!0)){i.reRender();return}if(d&&!m.length&&zR(d,l,v,y,x,u)){i.reRender();return}break}case"dependenciesUpdate":{var C=p.map(pa);if(C.some(function(E){return Kg(u.relatedFields,E)})){i.reRender();return}break}default:if(S||(!p.length||m.length||d)&&zR(d,l,v,y,x,u)){i.reRender();return}break}d===!0&&i.reRender()}),Z(ut(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),f=l||{},d=f.triggerName,h=f.validateOnly,p=h===void 0?!1:h,g=Promise.resolve().then(ha(Zn().mark(function v(){var m,y,x,S,w,C,E;return Zn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(i.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(m=i.props,y=m.validateFirst,x=y===void 0?!1:y,S=m.messageVariables,w=m.validateDebounce,C=i.getRules(),d&&(C=C.filter(function(P){return P}).filter(function(P){var M=P.validateTrigger;if(!M)return!0;var k=TR(M);return k.includes(d)})),!(w&&d)){$.next=10;break}return $.next=8,new Promise(function(P){setTimeout(P,w)});case 8:if(i.validatePromise===g){$.next=10;break}return $.abrupt("return",[]);case 10:return E=kMe(c,u,C,l,x,S),E.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cl;if(i.validatePromise===g){var M;i.validatePromise=null;var k=[],T=[];(M=P.forEach)===null||M===void 0||M.call(P,function(R){var A=R.rule.warningOnly,N=R.errors,L=N===void 0?Cl:N;A?T.push.apply(T,Ne(L)):k.push.apply(k,Ne(L))}),i.errors=k,i.warnings=T,i.triggerMetaEvent(),i.reRender()}}),$.abrupt("return",E);case 13:case"end":return $.stop()}},v)})));return p||(i.validatePromise=g,i.dirty=!0,i.errors=Cl,i.warnings=Cl,i.triggerMetaEvent(),i.reRender()),g}),Z(ut(i),"isFieldValidating",function(){return!!i.validatePromise}),Z(ut(i),"isFieldTouched",function(){return i.touched}),Z(ut(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(vp),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),Z(ut(i),"getErrors",function(){return i.errors}),Z(ut(i),"getWarnings",function(){return i.warnings}),Z(ut(i),"isListField",function(){return i.props.isListField}),Z(ut(i),"isList",function(){return i.props.isList}),Z(ut(i),"isPreserve",function(){return i.props.preserve}),Z(ut(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),Z(ut(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return ae(ae({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=da(l);return u.length!==1||!b.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),Z(ut(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return Xo(l||c(!0),u)}),Z(ut(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,f=c.trigger,d=c.validateTrigger,h=c.getValueFromEvent,p=c.normalize,g=c.valuePropName,v=c.getValueProps,m=c.fieldContext,y=d!==void 0?d:m.validateTrigger,x=i.getNamePath(),S=m.getInternalHooks,w=m.getFieldsValue,C=S(vp),E=C.dispatch,O=i.getValue(),$=v||function(R){return Z({},g,R)},P=l[f],M=u!==void 0?$(O):{},k=ae(ae({},l),M);k[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var R,A=arguments.length,N=new Array(A),L=0;L=0&&P<=M.length?(u.keys=[].concat(Ne(u.keys.slice(0,P)),[u.id],Ne(u.keys.slice(P))),x([].concat(Ne(M.slice(0,P)),[$],Ne(M.slice(P))))):(u.keys=[].concat(Ne(u.keys),[u.id]),x([].concat(Ne(M),[$]))),u.id+=1},remove:function($){var P=w(),M=new Set(Array.isArray($)?$:[$]);M.size<=0||(u.keys=u.keys.filter(function(k,T){return!M.has(T)}),x(P.filter(function(k,T){return!M.has(T)})))},move:function($,P){if($!==P){var M=w();$<0||$>=M.length||P<0||P>=M.length||(u.keys=PG(u.keys,$,P),x(PG(M,$,P)))}}},E=y||[];return Array.isArray(E)||(E=[]),r(E.map(function(O,$){var P=u.keys[$];return P===void 0&&(u.keys[$]=u.id,P=u.keys[$],u.id+=1),{name:$,key:P,isListField:!0}}),C,v)})))}function LMe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var kG="__@field_split__";function VR(e){return e.map(function(t){return"".concat(Bt(t),":").concat(t)}).join(kG)}var Yg=function(){function e(){rt(this,e),Z(this,"kvs",new Map)}return it(e,[{key:"set",value:function(n,r){this.kvs.set(VR(n),r)}},{key:"get",value:function(n){return this.kvs.get(VR(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(VR(n))}},{key:"map",value:function(n){return Ne(this.kvs.entries()).map(function(r){var i=he(r,2),a=i[0],o=i[1],s=a.split(kG);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=he(c,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),jMe=["name"],DMe=it(function e(t){var n=this;rt(this,e),Z(this,"formHooked",!1),Z(this,"forceRootUpdate",void 0),Z(this,"subscribable",!0),Z(this,"store",{}),Z(this,"fieldEntities",[]),Z(this,"initialValues",{}),Z(this,"callbacks",{}),Z(this,"validateMessages",null),Z(this,"preserve",null),Z(this,"lastValidatePromise",null),Z(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),Z(this,"getInternalHooks",function(r){return r===vp?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(zr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Z(this,"useSubscribe",function(r){n.subscribable=r}),Z(this,"prevWithoutPreserves",null),Z(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=Rg(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;o=xl(o,l,Xo(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),Z(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new Yg;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),Z(this,"getInitialValue",function(r){var i=Xo(n.initialValues,r);return r.length?Rg(i):i}),Z(this,"setCallbacks",function(r){n.callbacks=r}),Z(this,"setValidateMessages",function(r){n.validateMessages=r}),Z(this,"setPreserve",function(r){n.preserve=r}),Z(this,"watchList",[]),Z(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),Z(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),Z(this,"timeoutId",null),Z(this,"warningUnhooked",function(){}),Z(this,"updateStore",function(r){n.store=r}),Z(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),Z(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Yg;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),Z(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=pa(a);return i.get(o)||{INVALIDATE_NAME_PATH:pa(a)}})}),Z(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,s;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&Bt(r)==="object"&&(s=r.strict,o=r.filter),a===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,d,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var p,g;if((p=(g=u).isList)!==null&&p!==void 0&&p.call(g))return}else if(!a&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!o)c.push(h);else{var v="getMeta"in u?u.getMeta():null;o(v)&&c.push(h)}}),_G(n.store,c.map(pa))}),Z(this,"getFieldValue",function(r){n.warningUnhooked();var i=pa(r);return Xo(n.store,i)}),Z(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:pa(r[o]),errors:[],warnings:[]}})}),Z(this,"getFieldError",function(r){n.warningUnhooked();var i=pa(r),a=n.getFieldsError([i])[0];return a.errors}),Z(this,"getFieldWarning",function(r){n.warningUnhooked();var i=pa(r),a=n.getFieldsError([i])[0];return a.warnings}),Z(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},i=new Yg,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=i.get(u)||new Set;f.add({entity:l,value:c}),i.set(u,f)}});var o=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),h=n.getInitialValue(d);if(h!==void 0)zr(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var p=i.get(d);if(p&&p.size>1)zr(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var g=n.getFieldValue(d),v=u.isListField();!v&&(!r.skipExist||g===void 0)&&n.updateStore(xl(n.store,d,Ne(p)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,Ne(Ne(c).map(function(f){return f.entity})))}})):s=a,o(s)}),Z(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Rg(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(pa);a.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(xl(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),Z(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var s=o.name,l=Vt(o,jMe),c=pa(s);a.push(c),"value"in l&&n.updateStore(xl(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:o})}),n.notifyWatch(a)}),Z(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),s=a.getMeta(),l=ae(ae({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),Z(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=Xo(n.store,a);o===void 0&&n.updateStore(xl(n.store,a,i))}}),Z(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i!=null?i:!0}),Z(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!$G(f.getNamePath(),i)})){var u=n.store;n.updateStore(xl(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),Z(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),Z(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=ae(ae({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,o)})}else n.forceRootUpdate()}),Z(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(Ne(a))}),a}),Z(this,"updateValue",function(r,i){var a=pa(r),o=n.store;n.updateStore(xl(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(o,a),l=n.callbacks.onValuesChange;if(l){var c=_G(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Ne(s)))}),Z(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=Rg(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Z(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),Z(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new Yg;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=pa(u);o.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(a.push(d),l(d))}})};return s(r),a}),Z(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var s=new Yg;i.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return Kg(r,u)});l.length&&a(l,o)}}),Z(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var s=!!a,l=s?a.map(pa):[],c=[],u=String(Date.now()),f=new Set,d=o||{},h=d.recursive,p=d.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(p&&!y.isFieldDirty())){var x=y.getNamePath();if(f.add(x.join(u)),!s||Kg(l,x,h)){var S=y.validateRules(ae({validateMessages:ae(ae({},CG),n.validateMessages)},o));c.push(S.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(w){var C,E=[],O=[];return(C=w.forEach)===null||C===void 0||C.call(w,function($){var P=$.rule.warningOnly,M=$.errors;P?O.push.apply(O,Ne(M)):E.push.apply(E,Ne(M))}),E.length?Promise.reject({name:x,errors:E,warnings:O}):{name:x,errors:E,warnings:O}}))}}});var g=LMe(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var x=y.map(function(S){var w=S.name;return w});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,y)});var v=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var x=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==g})});v.catch(function(y){return y});var m=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(m),v}),Z(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function qR(e){var t=b.useRef(),n=b.useState({}),r=he(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new DMe(a);t.current=o.getForm()}return[t.current]}var UR=b.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),TG=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=b.useContext(UR),s=b.useRef({});return b.createElement(UR.Provider,{value:ae(ae({},o),{},{validateMessages:ae(ae({},o.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=ae(ae({},s.current),{},Z({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=ae({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},a)},FMe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],BMe=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,d=t.validateTrigger,h=d===void 0?"onChange":d,p=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,m=t.onFinishFailed,y=t.clearOnDestroy,x=Vt(t,FMe),S=b.useRef(null),w=b.useContext(UR),C=qR(o),E=he(C,1),O=E[0],$=O.getInternalHooks(vp),P=$.useSubscribe,M=$.setInitialValues,k=$.setCallbacks,T=$.setValidateMessages,R=$.setPreserve,A=$.destroyForm;b.useImperativeHandle(n,function(){return ae(ae({},O),{},{nativeElement:S.current})}),b.useEffect(function(){return w.registerForm(r,O),function(){w.unregisterForm(r)}},[w,O,r]),T(ae(ae({},w.validateMessages),f)),k({onValuesChange:p,onFieldsChange:function(q){if(w.triggerFormChange(r,q),g){for(var H=arguments.length,U=new Array(H>1?H-1:0),G=1;G{}}),AG=b.createContext(null),NG=e=>{const t=Or(e,["prefixCls"]);return b.createElement(TG,Object.assign({},t))},GR=b.createContext({prefixCls:""}),Fa=b.createContext({}),HMe=e=>{let{children:t,status:n,override:r}=e;const i=b.useContext(Fa),a=b.useMemo(()=>{const o=Object.assign({},i);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,i]);return b.createElement(Fa.Provider,{value:a},t)},LG=b.createContext(void 0),cf=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=we.createElement(HMe,{override:!0,status:!0},i)),t&&(i=we.createElement(aPe,null,i)),i};function ZC(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function jG(e){const{closable:t,closeIcon:n}=e||{};return we.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function DG(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{i&&Object.keys(i).forEach(a=>{i[a]!==void 0&&(e[a]=i[a])})}),e}const WMe={};function FG(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:WMe;const r=jG(e),i=jG(t),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,o=we.useMemo(()=>Object.assign({closeIcon:we.createElement(Pd,null)},n),[n]),s=we.useMemo(()=>r===!1?!1:r?DG(o,i,r):i===!1?!1:i?DG(o,i):o.closable?o:!1,[r,i,o]);return we.useMemo(()=>{if(s===!1)return[!1,null,a];const{closeIconRender:l}=o,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const f=ta(s,!0);Object.keys(f).length&&(u=we.isValidElement(u)?we.cloneElement(u,f):we.createElement("span",Object.assign({},f),u))}return[!0,u,a]},[s,o])}var BG=function(t){if(Ja()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},VMe=function(t,n){if(!BG(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function KR(e,t){return!Array.isArray(e)&&t!==void 0?VMe(e,t):BG(e)}const qMe=()=>Ja()&&window.document.documentElement,QC=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=me({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=me({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),l=b.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return b.createElement("span",{className:me(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},UMe=new ur("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),JC=e=>({height:e,lineHeight:fe(e)}),Zg=e=>Object.assign({width:e},JC(e)),GMe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:UMe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),YR=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},JC(e)),KMe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Zg(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Zg(i)),[`${t}${t}-sm`]:Object.assign({},Zg(a))}},YMe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},YR(t,s)),[`${r}-lg`]:Object.assign({},YR(i,s)),[`${r}-sm`]:Object.assign({},YR(a,s))}},zG=e=>Object.assign({width:e},JC(e)),XMe=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},zG(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},zG(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},XR=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},ZR=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},JC(e)),ZMe=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},ZR(r,s))},XR(e,r,n)),{[`${n}-lg`]:Object.assign({},ZR(i,s))}),XR(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},ZR(a,s))}),XR(e,a,`${n}-sm`))},QMe=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:d,marginSM:h,borderRadius:p,titleHeight:g,blockRadius:v,paragraphLiHeight:m,controlHeightXS:y,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Zg(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Zg(c)),[`${n}-sm`]:Object.assign({},Zg(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:f,borderRadius:v,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:m,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ZMe(e)),KMe(e)),YMe(e)),XMe(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[` +}`),i)}else S1(i);return function(){S1(i)}},[t,i])}var B3e=!1;function z3e(e){return B3e}var oG=function(t){return t===!1?!1:!Ja()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},GC=b.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,o=a===void 0?!0:a,s=e.children,l=b.useState(n),c=he(l,2),u=c[0],f=c[1],d=u||n;b.useEffect(function(){(o||n)&&f(n)},[n,o]);var h=b.useState(function(){return oG(i)}),p=he(h,2),v=p[0],g=p[1];b.useEffect(function(){var M=oG(i);g(M!=null?M:null)});var m=L3e(d&&!v),y=he(m,2),x=y[0],S=y[1],w=v!=null?v:x;F3e(r&&n&&Ja()&&(w===x||w===document.body));var C=null;if(s&&vc(s)&&t){var E=s;C=E.ref}var O=ef(C,t);if(!d||!Ja()||v===void 0)return null;var $=w===!1||z3e(),P=s;return t&&(P=b.cloneElement(s,{ref:O})),b.createElement(tG.Provider,{value:S},$?P:ys.createPortal(P,w))}),sG=b.createContext({});function H3e(){var e=ae({},wy);return e.useId}var lG=0,cG=H3e();const uG=cG?function(t){var n=cG();return t||n}:function(t){var n=b.useState("ssr-id"),r=he(n,2),i=r[0],a=r[1];return b.useEffect(function(){var o=lG;lG+=1,a("rc_unique_".concat(o))},[]),t||i};function fG(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function dG(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function W3e(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=dG(i),n.top+=dG(i,!0),n}const V3e=b.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var q3e={width:0,height:0,overflow:"hidden",outline:"none"},U3e={outline:"none"},hG=we.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,d=e.bodyStyle,h=e.bodyProps,p=e.modalRender,v=e.onMouseDown,g=e.onMouseUp,m=e.holderRef,y=e.visible,x=e.forceRender,S=e.width,w=e.height,C=e.classNames,E=e.styles,O=we.useContext(sG),$=O.panel,P=ef(m,$),M=b.useRef(),k=b.useRef();we.useImperativeHandle(t,function(){return{focus:function(){var z;(z=M.current)===null||z===void 0||z.focus({preventScroll:!0})},changeActive:function(z){var W=document,q=W.activeElement;z&&q===k.current?M.current.focus({preventScroll:!0}):!z&&q===M.current&&k.current.focus({preventScroll:!0})}}});var T={};S!==void 0&&(T.width=S),w!==void 0&&(T.height=w);var R=s?we.createElement("div",{className:me("".concat(n,"-footer"),C==null?void 0:C.footer),style:ae({},E==null?void 0:E.footer)},s):null,A=a?we.createElement("div",{className:me("".concat(n,"-header"),C==null?void 0:C.header),style:ae({},E==null?void 0:E.header)},we.createElement("div",{className:"".concat(n,"-title"),id:o},a)):null,N=b.useMemo(function(){return Bt(l)==="object"&&l!==null?l:l?{closeIcon:c!=null?c:we.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),L=ta(N,!0),j=Bt(l)==="object"&&l.disabled,F=l?we.createElement("button",Le({type:"button",onClick:u,"aria-label":"Close"},L,{className:"".concat(n,"-close"),disabled:j}),N.closeIcon):null,B=we.createElement("div",{className:me("".concat(n,"-content"),C==null?void 0:C.content),style:E==null?void 0:E.content},F,A,we.createElement("div",Le({className:me("".concat(n,"-body"),C==null?void 0:C.body),style:ae(ae({},d),E==null?void 0:E.body)},h),f),R);return we.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?o:null,"aria-modal":"true",ref:P,style:ae(ae({},i),T),className:me(n,r),onMouseDown:v,onMouseUp:g},we.createElement("div",{ref:M,tabIndex:0,style:U3e},we.createElement(V3e,{shouldUpdate:y||x},p?p(B):B)),we.createElement("div",{tabIndex:0,ref:k,style:q3e}))}),pG=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,a=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,d=e.mousePosition,h=b.useRef(),p=b.useState(),v=he(p,2),g=v[0],m=v[1],y={};g&&(y.transformOrigin=g);function x(){var S=W3e(h.current);m(d&&(d.x||d.y)?"".concat(d.x-S.left,"px ").concat(d.y-S.top,"px"):"")}return b.createElement(Jo,{visible:o,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:s,motionName:c,removeOnLeave:l,ref:h},function(S,w){var C=S.className,E=S.style;return b.createElement(hG,Le({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:w,style:ae(ae(ae({},E),i),y),className:me(a,C)}))})});pG.displayName="Content";var G3e=function(t){var n=t.prefixCls,r=t.style,i=t.visible,a=t.maskProps,o=t.motionName,s=t.className;return b.createElement(Jo,{key:"mask",visible:i,motionName:o,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return b.createElement("div",Le({ref:c,style:ae(ae({},f),r),className:me("".concat(n,"-mask"),u,s)},a))})},K3e=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,a=t.visible,o=a===void 0?!1:a,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,d=t.wrapClassName,h=t.wrapProps,p=t.onClose,v=t.afterOpenChange,g=t.afterClose,m=t.transitionName,y=t.animation,x=t.closable,S=x===void 0?!0:x,w=t.mask,C=w===void 0?!0:w,E=t.maskTransitionName,O=t.maskAnimation,$=t.maskClosable,P=$===void 0?!0:$,M=t.maskStyle,k=t.maskProps,T=t.rootClassName,R=t.classNames,A=t.styles,N=b.useRef(),L=b.useRef(),j=b.useRef(),F=b.useState(o),B=he(F,2),D=B[0],z=B[1],W=uG();function q(){eT(L.current,document.activeElement)||(N.current=document.activeElement)}function H(){if(!eT(L.current,document.activeElement)){var J;(J=j.current)===null||J===void 0||J.focus()}}function U(J){if(J)H();else{if(z(!1),C&&N.current&&u){try{N.current.focus({preventScroll:!0})}catch(le){}N.current=null}D&&(g==null||g())}v==null||v(J)}function G(J){p==null||p(J)}var K=b.useRef(!1),X=b.useRef(),Q=function(){clearTimeout(X.current),K.current=!0},ee=function(){X.current=setTimeout(function(){K.current=!1})},ne=null;P&&(ne=function(le){K.current?K.current=!1:L.current===le.target&&G(le)});function te(J){if(l&&J.keyCode===Ze.ESC){J.stopPropagation(),G(J);return}o&&J.keyCode===Ze.TAB&&j.current.changeActive(!J.shiftKey)}b.useEffect(function(){o&&(z(!0),q())},[o]),b.useEffect(function(){return function(){clearTimeout(X.current)}},[]);var ie=ae(ae(ae({zIndex:i},f),A==null?void 0:A.wrapper),{},{display:D?null:"none"});return b.createElement("div",Le({className:me("".concat(r,"-root"),T)},ta(t,{data:!0})),b.createElement(G3e,{prefixCls:r,visible:C&&o,motionName:fG(r,E,O),style:ae(ae({zIndex:i},M),A==null?void 0:A.mask),maskProps:k,className:R==null?void 0:R.mask}),b.createElement("div",Le({tabIndex:-1,onKeyDown:te,className:me("".concat(r,"-wrap"),d,R==null?void 0:R.wrapper),ref:L,onClick:ne,style:ie},h),b.createElement(pG,Le({},t,{onMouseDown:Q,onMouseUp:ee,ref:j,closable:S,ariaId:W,prefixCls:r,visible:o&&D,onClose:G,onVisibleChanged:U,motionName:fG(r,m,y)}))))},_R=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,a=t.destroyOnClose,o=a===void 0?!1:a,s=t.afterClose,l=t.panelRef,c=b.useState(n),u=he(c,2),f=u[0],d=u[1],h=b.useMemo(function(){return{panel:l}},[l]);return b.useEffect(function(){n&&d(!0)},[n]),!i&&o&&!f?null:b.createElement(sG.Provider,{value:h},b.createElement(GC,{open:n||i||f,autoDestroy:!1,getContainer:r,autoLock:n||f},b.createElement(K3e,Le({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),d(!1)}}))))};_R.displayName="Dialog";var gp="RC_FORM_INTERNAL_HOOKS",ai=function(){zr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},mp=b.createContext({getFieldValue:ai,getFieldsValue:ai,getFieldError:ai,getFieldWarning:ai,getFieldsError:ai,isFieldsTouched:ai,isFieldTouched:ai,isFieldValidating:ai,isFieldsValidating:ai,resetFields:ai,setFields:ai,setFieldValue:ai,setFieldsValue:ai,validateFields:ai,submit:ai,getInternalHooks:function(){return ai(),{dispatch:ai,initEntityValue:ai,registerField:ai,useSubscribe:ai,setInitialValues:ai,destroyForm:ai,setCallbacks:ai,registerWatch:ai,getFields:ai,setValidateMessages:ai,setPreserve:ai,getInitialValue:ai}}}),z1=b.createContext(null);function $R(e){return e==null?[]:Array.isArray(e)?e:[e]}function Y3e(e){return e&&!!e._init}function PR(){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 MR=PR();function X3e(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}function Z3e(e,t,n){if(aC())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&b1(i,n.prototype),i}function kR(e){var t=typeof Map=="function"?new Map:void 0;return kR=function(r){if(r===null||!X3e(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,i)}function i(){return Z3e(r,arguments,tf(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),b1(i,r)},kR(e)}var Q3e=/%[sdj%]/g,J3e=function(){};typeof process!="undefined"&&process.env;function TR(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 Us(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(l){return"[Circular]"}break;default:return s}});return o}return e}function eMe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Da(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||eMe(t)&&typeof e=="string"&&!e)}function tMe(e,t,n){var r=[],i=0,a=e.length;function o(s){r.push.apply(r,Ne(s||[])),i++,i===a&&n(r)}e.forEach(function(s){t(s,o)})}function vG(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,st.max?i.push(Us(a.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(Us(a.messages[f].range,t.fullField,t.min,t.max))},bG=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||Da(n,o||t.type))&&i.push(Us(a.messages.required,t.fullField))},KC;const cMe=function(){if(KC)return KC;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),u=function(C){return C&&C.exact?s:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(o).concat(t(C),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(o).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,p=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(h,"|").concat(p,"|").concat(v).concat(g).concat(m,")").concat(y).concat(x);return KC=new RegExp("(?:^".concat(S,"$)"),"i"),KC};var xG={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},H1={integer:function(t){return H1.number(t)&&parseInt(t,10)===t},float:function(t){return H1.number(t)&&!H1.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Bt(t)==="object"&&!H1.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(xG.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cMe())},hex:function(t){return typeof t=="string"&&!!t.match(xG.hex)}},uMe=function(t,n,r,i,a){if(t.required&&n===void 0){bG(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?H1[s](n)||i.push(Us(a.messages.types[s],t.fullField,t.type)):s&&Bt(n)!==t.type&&i.push(Us(a.messages.types[s],t.fullField,t.type))},fMe=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(Us(a.messages.whitespace,t.fullField))};const br={required:bG,whitespace:fMe,type:uMe,range:lMe,enum:oMe,pattern:sMe};var dMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a)}r(o)},hMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();br.required(t,n,i,o,a,"array"),n!=null&&(br.type(t,n,i,o,a),br.range(t,n,i,o,a))}r(o)},pMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&br.type(t,n,i,o,a)}r(o)},vMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n,"date")&&!t.required)return r();if(br.required(t,n,i,o,a),!Da(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),br.type(t,l,i,o,a),l&&br.range(t,l.getTime(),i,o,a)}}r(o)},gMe="enum",mMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&br[gMe](t,n,i,o,a)}r(o)},yMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&(br.type(t,n,i,o,a),br.range(t,n,i,o,a))}r(o)},bMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&(br.type(t,n,i,o,a),br.range(t,n,i,o,a))}r(o)},xMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&br.type(t,n,i,o,a)}r(o)},SMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&(br.type(t,n,i,o,a),br.range(t,n,i,o,a))}r(o)},wMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),n!==void 0&&br.type(t,n,i,o,a)}r(o)},CMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n,"string")&&!t.required)return r();br.required(t,n,i,o,a),Da(n,"string")||br.pattern(t,n,i,o,a)}r(o)},EMe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n)&&!t.required)return r();br.required(t,n,i,o,a),Da(n)||br.type(t,n,i,o,a)}r(o)},OMe=function(t,n,r,i,a){var o=[],s=Array.isArray(n)?"array":Bt(n);br.required(t,n,i,o,a,s),r(o)},_Me=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Da(n,"string")&&!t.required)return r();br.required(t,n,i,o,a,"string"),Da(n,"string")||(br.type(t,n,i,o,a),br.range(t,n,i,o,a),br.pattern(t,n,i,o,a),t.whitespace===!0&&br.whitespace(t,n,i,o,a))}r(o)},RR=function(t,n,r,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Da(n,o)&&!t.required)return r();br.required(t,n,i,s,a,o),Da(n,o)||br.type(t,n,i,s,a)}r(s)};const W1={string:_Me,method:xMe,number:SMe,boolean:pMe,regexp:EMe,integer:bMe,float:yMe,array:hMe,object:wMe,enum:mMe,pattern:CMe,date:vMe,url:RR,hex:RR,email:RR,required:OMe,any:dMe};var V1=function(){function e(t){it(this,e),Z(this,"rules",null),Z(this,"_messages",MR),this.define(t)}return at(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Bt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=yG(PR(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=i,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(p){var v=[],g={};function m(x){if(Array.isArray(x)){var S;v=(S=v).concat.apply(S,Ne(x))}else v.push(x)}for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:[],O=Array.isArray(E)?E:[E];!s.suppressWarning&&O.length&&e.warning("async-validator:",O),O.length&&g.message!==void 0&&(O=[].concat(g.message));var $=O.map(mG(g,o));if(s.first&&$.length)return h[g.field]=1,v($);if(!m)v($);else{if(g.required&&!p.value)return g.message!==void 0?$=[].concat(g.message).map(mG(g,o)):s.error&&($=[s.error(g,Us(s.messages.required,g.field))]),v($);var P={};g.defaultField&&Object.keys(p.value).map(function(T){P[T]=g.defaultField}),P=ae(ae({},P),p.rule.fields);var M={};Object.keys(P).forEach(function(T){var R=P[T],A=Array.isArray(R)?R:[R];M[T]=A.map(y.bind(null,T))});var k=new e(M);k.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),k.validate(p.value,p.rule.options||s,function(T){var R=[];$&&$.length&&R.push.apply(R,Ne($)),T&&T.length&&R.push.apply(R,Ne(T)),v(R.length?R:null)})}}var S;if(g.asyncValidator)S=g.asyncValidator(g,p.value,x,p.source,s);else if(g.validator){try{S=g.validator(g,p.value,x,p.source,s)}catch(E){var w,C;(w=(C=console).error)===null||w===void 0||w.call(C,E),s.suppressValidatorError||setTimeout(function(){throw E},0),x(E.message)}S===!0?x():S===!1?x(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):S instanceof Array?x(S):S instanceof Error&&x(S.message)}S&&S.then&&S.then(function(){return x()},function(E){return x(E)})},function(p){c(p)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!W1.hasOwnProperty(n.type))throw new Error(Us("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?W1.required:W1[this.getType(n)]||void 0}}]),e}();Z(V1,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");W1[t]=n}),Z(V1,"warning",J3e),Z(V1,"messages",MR),Z(V1,"validators",W1);var Gs="'${name}' is not a valid ${type}",SG={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Gs,method:Gs,array:Gs,object:Gs,number:Gs,date:Gs,boolean:Gs,integer:Gs,float:Gs,regexp:Gs,email:Gs,url:Gs,hex:Gs},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},wG=V1;function $Me(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var CG="CODE_LOGIC_ERROR";function IR(e,t,n,r,i){return AR.apply(this,arguments)}function AR(){return AR=ha(Zn().mark(function e(t,n,r,i,a){var o,s,l,c,u,f,d,h,p;return Zn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=ae({},r),delete o.ruleIndex,wG.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(CG)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new wG(Z({},t,[o])),u=Ag(SG,i.validateMessages),c.messages(u),f=[],g.prev=10,g.next=13,Promise.resolve(c.validate(Z({},t,n),ae({},i)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(m,y){var x=m.message,S=x===CG?u.default:x;return b.isValidElement(S)?b.cloneElement(S,{key:"error_".concat(y)}):S}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(m,y){return IR("".concat(t,".").concat(y),m,l,i,a)}));case 21:return d=g.sent,g.abrupt("return",d.reduce(function(m,y){return[].concat(Ne(m),Ne(y))},[]));case 23:return h=ae(ae({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),p=f.map(function(m){return typeof m=="string"?$Me(m,h):m}),g.abrupt("return",p);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),AR.apply(this,arguments)}function PMe(e,t,n,r,i,a){var o=e.join("."),s=n.map(function(u,f){var d=u.validator,h=ae(ae({},u),{},{ruleIndex:f});return d&&(h.validator=function(p,v,g){var m=!1,y=function(){for(var w=arguments.length,C=new Array(w),E=0;E2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return OG(t,r,n)})}function OG(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function TMe(e,t){if(e===t)return!0;if(!e&&t||!t||!e||!t||Bt(e)!=="object"||Bt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return Ne(i).every(function(a){var o=e[a],s=t[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function RMe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Bt(t.target)==="object"&&e in t.target?t.target[e]:t}function _G(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(Ne(e.slice(0,n)),[i],Ne(e.slice(n,t)),Ne(e.slice(t+1,r))):a<0?[].concat(Ne(e.slice(0,t)),Ne(e.slice(t+1,n+1)),[i],Ne(e.slice(n+1,r))):e}var IMe=["name"],Cl=[];function jR(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var DR=function(e){xn(n,e);var t=Vs(n);function n(r){var i;if(it(this,n),i=t.call(this,r),Z(ft(i),"state",{resetCount:0}),Z(ft(i),"cancelRegisterFunc",null),Z(ft(i),"mounted",!1),Z(ft(i),"touched",!1),Z(ft(i),"dirty",!1),Z(ft(i),"validatePromise",void 0),Z(ft(i),"prevValidating",void 0),Z(ft(i),"errors",Cl),Z(ft(i),"warnings",Cl),Z(ft(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,pa(f)),i.cancelRegisterFunc=null}),Z(ft(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(Ne(d),Ne(c)):[]}),Z(ft(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),Z(ft(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),Z(ft(i),"metaCache",null),Z(ft(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=ae(ae({},i.getMeta()),{},{destroy:l});yl(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),Z(ft(i),"onStoreChange",function(l,c,u){var f=i.props,d=f.shouldUpdate,h=f.dependencies,p=h===void 0?[]:h,v=f.onReset,g=u.store,m=i.getNamePath(),y=i.getValue(l),x=i.getValue(g),S=c&&Yg(c,m);switch(u.type==="valueUpdate"&&u.source==="external"&&!yl(y,x)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Cl,i.warnings=Cl,i.triggerMetaEvent()),u.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Cl,i.warnings=Cl,i.triggerMetaEvent(),v==null||v(),i.refresh();return}break;case"remove":{if(d&&jR(d,l,g,y,x,u)){i.reRender();return}break}case"setField":{var w=u.data;if(S){"touched"in w&&(i.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(i.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(i.errors=w.errors||Cl),"warnings"in w&&(i.warnings=w.warnings||Cl),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in w&&Yg(c,m,!0)){i.reRender();return}if(d&&!m.length&&jR(d,l,g,y,x,u)){i.reRender();return}break}case"dependenciesUpdate":{var C=p.map(pa);if(C.some(function(E){return Yg(u.relatedFields,E)})){i.reRender();return}break}default:if(S||(!p.length||m.length||d)&&jR(d,l,g,y,x,u)){i.reRender();return}break}d===!0&&i.reRender()}),Z(ft(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),f=l||{},d=f.triggerName,h=f.validateOnly,p=h===void 0?!1:h,v=Promise.resolve().then(ha(Zn().mark(function g(){var m,y,x,S,w,C,E;return Zn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(i.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(m=i.props,y=m.validateFirst,x=y===void 0?!1:y,S=m.messageVariables,w=m.validateDebounce,C=i.getRules(),d&&(C=C.filter(function(P){return P}).filter(function(P){var M=P.validateTrigger;if(!M)return!0;var k=$R(M);return k.includes(d)})),!(w&&d)){$.next=10;break}return $.next=8,new Promise(function(P){setTimeout(P,w)});case 8:if(i.validatePromise===v){$.next=10;break}return $.abrupt("return",[]);case 10:return E=PMe(c,u,C,l,x,S),E.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cl;if(i.validatePromise===v){var M;i.validatePromise=null;var k=[],T=[];(M=P.forEach)===null||M===void 0||M.call(P,function(R){var A=R.rule.warningOnly,N=R.errors,L=N===void 0?Cl:N;A?T.push.apply(T,Ne(L)):k.push.apply(k,Ne(L))}),i.errors=k,i.warnings=T,i.triggerMetaEvent(),i.reRender()}}),$.abrupt("return",E);case 13:case"end":return $.stop()}},g)})));return p||(i.validatePromise=v,i.dirty=!0,i.errors=Cl,i.warnings=Cl,i.triggerMetaEvent(),i.reRender()),v}),Z(ft(i),"isFieldValidating",function(){return!!i.validatePromise}),Z(ft(i),"isFieldTouched",function(){return i.touched}),Z(ft(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(gp),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),Z(ft(i),"getErrors",function(){return i.errors}),Z(ft(i),"getWarnings",function(){return i.warnings}),Z(ft(i),"isListField",function(){return i.props.isListField}),Z(ft(i),"isList",function(){return i.props.isList}),Z(ft(i),"isPreserve",function(){return i.props.preserve}),Z(ft(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),Z(ft(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return ae(ae({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=da(l);return u.length!==1||!b.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),Z(ft(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return Xo(l||c(!0),u)}),Z(ft(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,f=c.trigger,d=c.validateTrigger,h=c.getValueFromEvent,p=c.normalize,v=c.valuePropName,g=c.getValueProps,m=c.fieldContext,y=d!==void 0?d:m.validateTrigger,x=i.getNamePath(),S=m.getInternalHooks,w=m.getFieldsValue,C=S(gp),E=C.dispatch,O=i.getValue(),$=g||function(R){return Z({},v,R)},P=l[f],M=u!==void 0?$(O):{},k=ae(ae({},l),M);k[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var R,A=arguments.length,N=new Array(A),L=0;L=0&&P<=M.length?(u.keys=[].concat(Ne(u.keys.slice(0,P)),[u.id],Ne(u.keys.slice(P))),x([].concat(Ne(M.slice(0,P)),[$],Ne(M.slice(P))))):(u.keys=[].concat(Ne(u.keys),[u.id]),x([].concat(Ne(M),[$]))),u.id+=1},remove:function($){var P=w(),M=new Set(Array.isArray($)?$:[$]);M.size<=0||(u.keys=u.keys.filter(function(k,T){return!M.has(T)}),x(P.filter(function(k,T){return!M.has(T)})))},move:function($,P){if($!==P){var M=w();$<0||$>=M.length||P<0||P>=M.length||(u.keys=_G(u.keys,$,P),x(_G(M,$,P)))}}},E=y||[];return Array.isArray(E)||(E=[]),r(E.map(function(O,$){var P=u.keys[$];return P===void 0&&(u.keys[$]=u.id,P=u.keys[$],u.id+=1),{name:$,key:P,isListField:!0}}),C,g)})))}function AMe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var PG="__@field_split__";function BR(e){return e.map(function(t){return"".concat(Bt(t),":").concat(t)}).join(PG)}var Xg=function(){function e(){it(this,e),Z(this,"kvs",new Map)}return at(e,[{key:"set",value:function(n,r){this.kvs.set(BR(n),r)}},{key:"get",value:function(n){return this.kvs.get(BR(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(BR(n))}},{key:"map",value:function(n){return Ne(this.kvs.entries()).map(function(r){var i=he(r,2),a=i[0],o=i[1],s=a.split(PG);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=he(c,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),NMe=["name"],LMe=at(function e(t){var n=this;it(this,e),Z(this,"formHooked",!1),Z(this,"forceRootUpdate",void 0),Z(this,"subscribable",!0),Z(this,"store",{}),Z(this,"fieldEntities",[]),Z(this,"initialValues",{}),Z(this,"callbacks",{}),Z(this,"validateMessages",null),Z(this,"preserve",null),Z(this,"lastValidatePromise",null),Z(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),Z(this,"getInternalHooks",function(r){return r===gp?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(zr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Z(this,"useSubscribe",function(r){n.subscribable=r}),Z(this,"prevWithoutPreserves",null),Z(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=Ag(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;o=xl(o,l,Xo(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),Z(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new Xg;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),Z(this,"getInitialValue",function(r){var i=Xo(n.initialValues,r);return r.length?Ag(i):i}),Z(this,"setCallbacks",function(r){n.callbacks=r}),Z(this,"setValidateMessages",function(r){n.validateMessages=r}),Z(this,"setPreserve",function(r){n.preserve=r}),Z(this,"watchList",[]),Z(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),Z(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),Z(this,"timeoutId",null),Z(this,"warningUnhooked",function(){}),Z(this,"updateStore",function(r){n.store=r}),Z(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),Z(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Xg;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),Z(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=pa(a);return i.get(o)||{INVALIDATE_NAME_PATH:pa(a)}})}),Z(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,s;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&Bt(r)==="object"&&(s=r.strict,o=r.filter),a===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,d,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var p,v;if((p=(v=u).isList)!==null&&p!==void 0&&p.call(v))return}else if(!a&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!o)c.push(h);else{var g="getMeta"in u?u.getMeta():null;o(g)&&c.push(h)}}),EG(n.store,c.map(pa))}),Z(this,"getFieldValue",function(r){n.warningUnhooked();var i=pa(r);return Xo(n.store,i)}),Z(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:pa(r[o]),errors:[],warnings:[]}})}),Z(this,"getFieldError",function(r){n.warningUnhooked();var i=pa(r),a=n.getFieldsError([i])[0];return a.errors}),Z(this,"getFieldWarning",function(r){n.warningUnhooked();var i=pa(r),a=n.getFieldsError([i])[0];return a.warnings}),Z(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},i=new Xg,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=i.get(u)||new Set;f.add({entity:l,value:c}),i.set(u,f)}});var o=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),h=n.getInitialValue(d);if(h!==void 0)zr(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var p=i.get(d);if(p&&p.size>1)zr(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var v=n.getFieldValue(d),g=u.isListField();!g&&(!r.skipExist||v===void 0)&&n.updateStore(xl(n.store,d,Ne(p)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,Ne(Ne(c).map(function(f){return f.entity})))}})):s=a,o(s)}),Z(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Ag(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(pa);a.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(xl(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),Z(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var s=o.name,l=qt(o,NMe),c=pa(s);a.push(c),"value"in l&&n.updateStore(xl(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:o})}),n.notifyWatch(a)}),Z(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),s=a.getMeta(),l=ae(ae({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),Z(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=Xo(n.store,a);o===void 0&&n.updateStore(xl(n.store,a,i))}}),Z(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i!=null?i:!0}),Z(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!OG(f.getNamePath(),i)})){var u=n.store;n.updateStore(xl(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),Z(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),Z(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=ae(ae({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,o)})}else n.forceRootUpdate()}),Z(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(Ne(a))}),a}),Z(this,"updateValue",function(r,i){var a=pa(r),o=n.store;n.updateStore(xl(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(o,a),l=n.callbacks.onValuesChange;if(l){var c=EG(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Ne(s)))}),Z(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=Ag(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Z(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),Z(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new Xg;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=pa(u);o.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(a.push(d),l(d))}})};return s(r),a}),Z(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var s=new Xg;i.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return Yg(r,u)});l.length&&a(l,o)}}),Z(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var s=!!a,l=s?a.map(pa):[],c=[],u=String(Date.now()),f=new Set,d=o||{},h=d.recursive,p=d.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(p&&!y.isFieldDirty())){var x=y.getNamePath();if(f.add(x.join(u)),!s||Yg(l,x,h)){var S=y.validateRules(ae({validateMessages:ae(ae({},SG),n.validateMessages)},o));c.push(S.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(w){var C,E=[],O=[];return(C=w.forEach)===null||C===void 0||C.call(w,function($){var P=$.rule.warningOnly,M=$.errors;P?O.push.apply(O,Ne(M)):E.push.apply(E,Ne(M))}),E.length?Promise.reject({name:x,errors:E,warnings:O}):{name:x,errors:E,warnings:O}}))}}});var v=AMe(c);n.lastValidatePromise=v,v.catch(function(y){return y}).then(function(y){var x=y.map(function(S){var w=S.name;return w});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,y)});var g=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var x=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==v})});g.catch(function(y){return y});var m=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(m),g}),Z(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function zR(e){var t=b.useRef(),n=b.useState({}),r=he(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new LMe(a);t.current=o.getForm()}return[t.current]}var HR=b.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),MG=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=b.useContext(HR),s=b.useRef({});return b.createElement(HR.Provider,{value:ae(ae({},o),{},{validateMessages:ae(ae({},o.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=ae(ae({},s.current),{},Z({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=ae({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},a)},jMe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],DMe=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,d=t.validateTrigger,h=d===void 0?"onChange":d,p=t.onValuesChange,v=t.onFieldsChange,g=t.onFinish,m=t.onFinishFailed,y=t.clearOnDestroy,x=qt(t,jMe),S=b.useRef(null),w=b.useContext(HR),C=zR(o),E=he(C,1),O=E[0],$=O.getInternalHooks(gp),P=$.useSubscribe,M=$.setInitialValues,k=$.setCallbacks,T=$.setValidateMessages,R=$.setPreserve,A=$.destroyForm;b.useImperativeHandle(n,function(){return ae(ae({},O),{},{nativeElement:S.current})}),b.useEffect(function(){return w.registerForm(r,O),function(){w.unregisterForm(r)}},[w,O,r]),T(ae(ae({},w.validateMessages),f)),k({onValuesChange:p,onFieldsChange:function(q){if(w.triggerFormChange(r,q),v){for(var H=arguments.length,U=new Array(H>1?H-1:0),G=1;G{}}),RG=b.createContext(null),IG=e=>{const t=Or(e,["prefixCls"]);return b.createElement(MG,Object.assign({},t))},WR=b.createContext({prefixCls:""}),Fa=b.createContext({}),BMe=e=>{let{children:t,status:n,override:r}=e;const i=b.useContext(Fa),a=b.useMemo(()=>{const o=Object.assign({},i);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,i]);return b.createElement(Fa.Provider,{value:a},t)},AG=b.createContext(void 0),cf=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=we.createElement(BMe,{override:!0,status:!0},i)),t&&(i=we.createElement(rPe,null,i)),i};function YC(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function NG(e){const{closable:t,closeIcon:n}=e||{};return we.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function LG(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{i&&Object.keys(i).forEach(a=>{i[a]!==void 0&&(e[a]=i[a])})}),e}const zMe={};function jG(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zMe;const r=NG(e),i=NG(t),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,o=we.useMemo(()=>Object.assign({closeIcon:we.createElement(Md,null)},n),[n]),s=we.useMemo(()=>r===!1?!1:r?LG(o,i,r):i===!1?!1:i?LG(o,i):o.closable?o:!1,[r,i,o]);return we.useMemo(()=>{if(s===!1)return[!1,null,a];const{closeIconRender:l}=o,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const f=ta(s,!0);Object.keys(f).length&&(u=we.isValidElement(u)?we.cloneElement(u,f):we.createElement("span",Object.assign({},f),u))}return[!0,u,a]},[s,o])}var DG=function(t){if(Ja()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},HMe=function(t,n){if(!DG(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function VR(e,t){return!Array.isArray(e)&&t!==void 0?HMe(e,t):DG(e)}const WMe=()=>Ja()&&window.document.documentElement,XC=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=me({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=me({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),l=b.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return b.createElement("span",{className:me(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},VMe=new fr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ZC=e=>({height:e,lineHeight:ue(e)}),Qg=e=>Object.assign({width:e},ZC(e)),qMe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:VMe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),qR=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},ZC(e)),UMe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Qg(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Qg(i)),[`${t}${t}-sm`]:Object.assign({},Qg(a))}},GMe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},qR(t,s)),[`${r}-lg`]:Object.assign({},qR(i,s)),[`${r}-sm`]:Object.assign({},qR(a,s))}},FG=e=>Object.assign({width:e},ZC(e)),KMe=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},FG(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},FG(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},UR=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},GR=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},ZC(e)),YMe=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},GR(r,s))},UR(e,r,n)),{[`${n}-lg`]:Object.assign({},GR(i,s))}),UR(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},GR(a,s))}),UR(e,a,`${n}-sm`))},XMe=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:d,marginSM:h,borderRadius:p,titleHeight:v,blockRadius:g,paragraphLiHeight:m,controlHeightXS:y,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Qg(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Qg(c)),[`${n}-sm`]:Object.assign({},Qg(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:v,background:f,borderRadius:g,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:m,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},YMe(e)),UMe(e)),GMe(e)),KMe(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${i} > li, ${n}, ${a}, ${o}, ${s} - `]:Object.assign({},GMe(e))}}},Qg=tr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=$n(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[QMe(r)]},e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),JMe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:o="default"}=e,{getPrefixCls:s}=b.useContext(Lt),l=s("skeleton",t),[c,u,f]=Qg(l),d=Or(e,["prefixCls","className"]),h=me(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,f);return c(b.createElement("div",{className:h},b.createElement(QC,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:o},d))))},eke=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:o="default"}=e,{getPrefixCls:s}=b.useContext(Lt),l=s("skeleton",t),[c,u,f]=Qg(l),d=Or(e,["prefixCls"]),h=me(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,f);return c(b.createElement("div",{className:h},b.createElement(QC,Object.assign({prefixCls:`${l}-button`,size:o},d))))},tke="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",nke=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:o}=b.useContext(Lt),s=o("skeleton",t),[l,c,u]=Qg(s),f=me(s,`${s}-element`,{[`${s}-active`]:a},n,r,c,u);return l(b.createElement("div",{className:f},b.createElement("div",{className:me(`${s}-image`,n),style:i},b.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},b.createElement("title",null,"Image placeholder"),b.createElement("path",{d:tke,className:`${s}-image-path`})))))},rke=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:o="default"}=e,{getPrefixCls:s}=b.useContext(Lt),l=s("skeleton",t),[c,u,f]=Qg(l),d=Or(e,["prefixCls"]),h=me(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,f);return c(b.createElement("div",{className:h},b.createElement(QC,Object.assign({prefixCls:`${l}-input`,size:o},d))))},ike=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:o}=e,{getPrefixCls:s}=b.useContext(Lt),l=s("skeleton",t),[c,u,f]=Qg(l),d=me(l,`${l}-element`,{[`${l}-active`]:a},u,n,r,f);return c(b.createElement("div",{className:d},b.createElement("div",{className:me(`${l}-image`,n),style:i},o)))},ake=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},oke=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=Ne(new Array(i)).map((o,s)=>b.createElement("li",{key:s,style:{width:ake(s,e)}}));return b.createElement("ul",{className:me(t,n),style:r},a)},ske=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return b.createElement("h3",{className:me(t,n),style:Object.assign({width:r},i)})};function QR(e){return e&&typeof e=="object"?e:{}}function lke(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function cke(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function uke(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Td=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:d,direction:h,skeleton:p}=b.useContext(Lt),g=d("skeleton",t),[v,m,y]=Qg(g);if(n||!("loading"in e)){const x=!!s,S=!!l,w=!!c;let C;if(x){const $=Object.assign(Object.assign({prefixCls:`${g}-avatar`},lke(S,w)),QR(s));C=b.createElement("div",{className:`${g}-header`},b.createElement(QC,Object.assign({},$)))}let E;if(S||w){let $;if(S){const M=Object.assign(Object.assign({prefixCls:`${g}-title`},cke(x,w)),QR(l));$=b.createElement(ske,Object.assign({},M))}let P;if(w){const M=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},uke(x,S)),QR(c));P=b.createElement(oke,Object.assign({},M))}E=b.createElement("div",{className:`${g}-content`},$,P)}const O=me(g,{[`${g}-with-avatar`]:x,[`${g}-active`]:u,[`${g}-rtl`]:h==="rtl",[`${g}-round`]:f},p==null?void 0:p.className,r,i,m,y);return v(b.createElement("div",{className:O,style:Object.assign(Object.assign({},p==null?void 0:p.style),a)},C,E))}return o!=null?o:null};Td.Button=eke,Td.Avatar=JMe,Td.Input=rke,Td.Image=nke,Td.Node=ike;function HG(){}const fke=b.createContext({add:HG,remove:HG});function dke(e){const t=b.useContext(fke),n=b.useRef(null);return _n(i=>{if(i){const a=e?i.querySelector(e):i;t.add(a),n.current=a}else t.remove(n.current)})}const WG=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=b.useContext(B1);return we.createElement(zn,Object.assign({onClick:n},e),t)},VG=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=b.useContext(B1);return we.createElement(zn,Object.assign({},fR(n),{loading:e,onClick:i},t),r)};function qG(e,t){return we.createElement("span",{className:`${e}-close-x`},t||we.createElement(Pd,{className:`${e}-close-icon`}))}const UG=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Zo("Modal",gq()),f=t||(u==null?void 0:u.okText),d=r||(u==null?void 0:u.cancelText),h={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:d,okType:n,onOk:a,onCancel:o},p=we.useMemo(()=>h,Ne(Object.values(h)));let g;return typeof c=="function"||typeof c=="undefined"?(g=we.createElement(we.Fragment,null,we.createElement(WG,null),we.createElement(VG,null)),typeof c=="function"&&(g=c(g,{OkBtn:VG,CancelBtn:WG})),g=we.createElement(eG,{value:p},g)):g=c,we.createElement(FT,{disabled:!1},g)};function GG(e){return{position:e,inset:0}}const KG=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},GG("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},GG("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:yR(e)}]},hke=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${fe(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},er(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${fe(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:fe(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},nu(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${fe(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + `]:Object.assign({},qMe(e))}}},Jg=tr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=_n(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[XMe(r)]},e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ZMe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:o="default"}=e,{getPrefixCls:s}=b.useContext(At),l=s("skeleton",t),[c,u,f]=Jg(l),d=Or(e,["prefixCls","className"]),h=me(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,f);return c(b.createElement("div",{className:h},b.createElement(XC,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:o},d))))},QMe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:o="default"}=e,{getPrefixCls:s}=b.useContext(At),l=s("skeleton",t),[c,u,f]=Jg(l),d=Or(e,["prefixCls"]),h=me(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,f);return c(b.createElement("div",{className:h},b.createElement(XC,Object.assign({prefixCls:`${l}-button`,size:o},d))))},JMe="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",eke=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:o}=b.useContext(At),s=o("skeleton",t),[l,c,u]=Jg(s),f=me(s,`${s}-element`,{[`${s}-active`]:a},n,r,c,u);return l(b.createElement("div",{className:f},b.createElement("div",{className:me(`${s}-image`,n),style:i},b.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},b.createElement("title",null,"Image placeholder"),b.createElement("path",{d:JMe,className:`${s}-image-path`})))))},tke=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:o="default"}=e,{getPrefixCls:s}=b.useContext(At),l=s("skeleton",t),[c,u,f]=Jg(l),d=Or(e,["prefixCls"]),h=me(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,f);return c(b.createElement("div",{className:h},b.createElement(XC,Object.assign({prefixCls:`${l}-input`,size:o},d))))},nke=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:o}=e,{getPrefixCls:s}=b.useContext(At),l=s("skeleton",t),[c,u,f]=Jg(l),d=me(l,`${l}-element`,{[`${l}-active`]:a},u,n,r,f);return c(b.createElement("div",{className:d},b.createElement("div",{className:me(`${l}-image`,n),style:i},o)))},rke=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},ike=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=Ne(new Array(i)).map((o,s)=>b.createElement("li",{key:s,style:{width:rke(s,e)}}));return b.createElement("ul",{className:me(t,n),style:r},a)},ake=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return b.createElement("h3",{className:me(t,n),style:Object.assign({width:r},i)})};function KR(e){return e&&typeof e=="object"?e:{}}function oke(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ske(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function lke(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Rd=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:d,direction:h,skeleton:p}=b.useContext(At),v=d("skeleton",t),[g,m,y]=Jg(v);if(n||!("loading"in e)){const x=!!s,S=!!l,w=!!c;let C;if(x){const $=Object.assign(Object.assign({prefixCls:`${v}-avatar`},oke(S,w)),KR(s));C=b.createElement("div",{className:`${v}-header`},b.createElement(XC,Object.assign({},$)))}let E;if(S||w){let $;if(S){const M=Object.assign(Object.assign({prefixCls:`${v}-title`},ske(x,w)),KR(l));$=b.createElement(ake,Object.assign({},M))}let P;if(w){const M=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},lke(x,S)),KR(c));P=b.createElement(ike,Object.assign({},M))}E=b.createElement("div",{className:`${v}-content`},$,P)}const O=me(v,{[`${v}-with-avatar`]:x,[`${v}-active`]:u,[`${v}-rtl`]:h==="rtl",[`${v}-round`]:f},p==null?void 0:p.className,r,i,m,y);return g(b.createElement("div",{className:O,style:Object.assign(Object.assign({},p==null?void 0:p.style),a)},C,E))}return o!=null?o:null};Rd.Button=QMe,Rd.Avatar=ZMe,Rd.Input=tke,Rd.Image=eke,Rd.Node=nke;function BG(){}const cke=b.createContext({add:BG,remove:BG});function uke(e){const t=b.useContext(cke),n=b.useRef(null);return On(i=>{if(i){const a=e?i.querySelector(e):i;t.add(a),n.current=a}else t.remove(n.current)})}const zG=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=b.useContext(B1);return we.createElement(Hn,Object.assign({onClick:n},e),t)},HG=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=b.useContext(B1);return we.createElement(Hn,Object.assign({},lR(n),{loading:e,onClick:i},t),r)};function WG(e,t){return we.createElement("span",{className:`${e}-close-x`},t||we.createElement(Md,{className:`${e}-close-icon`}))}const VG=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Zo("Modal",hq()),f=t||(u==null?void 0:u.okText),d=r||(u==null?void 0:u.cancelText),h={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:d,okType:n,onOk:a,onCancel:o},p=we.useMemo(()=>h,Ne(Object.values(h)));let v;return typeof c=="function"||typeof c=="undefined"?(v=we.createElement(we.Fragment,null,we.createElement(zG,null),we.createElement(HG,null)),typeof c=="function"&&(v=c(v,{OkBtn:HG,CancelBtn:zG})),v=we.createElement(QU,{value:p},v)):v=c,we.createElement(LT,{disabled:!1},v)};function qG(e){return{position:e,inset:0}}const UG=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},qG("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},qG("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:pR(e)}]},fke=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ue(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},er(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ue(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ue(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},nu(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ue(e.borderRadiusLG)} ${ue(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${ue(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},pke=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},YG=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return $n(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},XG=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${fe(e.paddingMD)} ${fe(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${fe(e.padding)} ${fe(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${fe(e.paddingXS)} ${fe(e.padding)}`:0,footerBorderTop:e.wireframe?`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${fe(e.padding*2)} ${fe(e.padding*2)} ${fe(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),ZG=tr("Modal",e=>{const t=YG(e);return[hke(t),pke(t),KG(t),qg(t,"zoom")]},XG,{unitless:{titleLineHeight:!0}});var vke=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 i=0,r=Object.getOwnPropertySymbols(e);i{JR={x:e.pageX,y:e.pageY},setTimeout(()=>{JR=null},100)};qMe()&&document.documentElement.addEventListener("click",gke,!0);const QG=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:a}=b.useContext(Lt),o=W=>{const{onCancel:q}=e;q==null||q(W)},s=W=>{const{onOk:q}=e;q==null||q(W)},{prefixCls:l,className:c,rootClassName:u,open:f,wrapClassName:d,centered:h,getContainer:p,focusTriggerAfterClose:g=!0,style:v,visible:m,width:y=520,footer:x,classNames:S,styles:w,children:C,loading:E}=e,O=vke(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=r("modal",l),P=r(),M=Ti($),[k,T,R]=ZG($,M),A=me(d,{[`${$}-centered`]:!!h,[`${$}-wrap-rtl`]:i==="rtl"}),N=x!==null&&!E?b.createElement(UG,Object.assign({},e,{onOk:s,onCancel:o})):null,[L,j,F]=FG(ZC(e),ZC(a),{closable:!0,closeIcon:b.createElement(Pd,{className:`${$}-close-icon`}),closeIconRender:W=>qG($,W)}),B=dke(`.${$}-content`),[D,z]=of("Modal",O.zIndex);return k(b.createElement(cf,{form:!0,space:!0},b.createElement(jC.Provider,{value:z},b.createElement(kR,Object.assign({width:y},O,{zIndex:D,getContainer:p===void 0?n:p,prefixCls:$,rootClassName:me(T,u,R,M),footer:N,visible:f!=null?f:m,mousePosition:(t=O.mousePosition)!==null&&t!==void 0?t:JR,onClose:o,closable:L&&{disabled:F,closeIcon:j},closeIcon:j,focusTriggerAfterClose:g,transitionName:wl(P,"zoom",e.transitionName),maskTransitionName:wl(P,"fade",e.maskTransitionName),className:me(T,c,a==null?void 0:a.className),style:Object.assign(Object.assign({},a==null?void 0:a.style),v),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),S),{wrapper:me(A,S==null?void 0:S.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),w),panelRef:B}),E?b.createElement(Td,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):C))))},mke=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},bc()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${fe(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${fe(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, - ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},yke=jg(["Modal","confirm"],e=>{const t=YG(e);return[mke(t)]},XG,{order:-1e3});var bke=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 i=0,r=Object.getOwnPropertySymbols(e);iy,Ne(Object.values(y))),S=b.createElement(b.Fragment,null,b.createElement(tG,null),b.createElement(nG,null)),w=e.title!==void 0&&e.title!==null,C=`${a}-body`;return b.createElement("div",{className:`${a}-body-wrapper`},b.createElement("div",{className:me(C,{[`${C}-has-title`]:w})},f,b.createElement("div",{className:`${a}-paragraph`},w&&b.createElement("span",{className:`${a}-title`},e.title),b.createElement("div",{className:`${a}-content`},e.content))),l===void 0||typeof l=="function"?b.createElement(eG,{value:x},b.createElement("div",{className:`${a}-btns`},typeof l=="function"?l(S,{OkBtn:nG,CancelBtn:tG}):S)):l,b.createElement(yke,{prefixCls:t}))}const xke=e=>{const{close:t,zIndex:n,afterClose:r,open:i,keyboard:a,centered:o,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:f,rootPrefixCls:d,bodyStyle:h,closable:p=!1,closeIcon:g,modalRender:v,focusTriggerAfterClose:m,onConfirm:y,styles:x}=e,S=`${u}-confirm`,w=e.width||416,C=e.style||{},E=e.mask===void 0?!0:e.mask,O=e.maskClosable===void 0?!1:e.maskClosable,$=me(S,`${S}-${e.type}`,{[`${S}-rtl`]:c==="rtl"},e.className),[,P]=eo(),M=b.useMemo(()=>n!==void 0?n:P.zIndexPopupBase+MU,[n,P]);return b.createElement(QG,{prefixCls:u,className:$,wrapClassName:me({[`${S}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),y==null||y(!1)},open:i,title:"",footer:null,transitionName:wl(d||"","zoom",e.transitionName),maskTransitionName:wl(d||"","fade",e.maskTransitionName),mask:E,maskClosable:O,style:C,styles:Object.assign({body:h,mask:l},x),width:w,zIndex:M,afterClose:r,keyboard:a,centered:o,getContainer:s,closable:p,closeIcon:g,modalRender:v,focusTriggerAfterClose:m},b.createElement(JG,Object.assign({},e,{confirmPrefixCls:S})))},eK=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return b.createElement(Sc,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},b.createElement(xke,Object.assign({},e)))},mp=[];let tK="";function nK(){return tK}const Ske=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:a}=e,o=gq(),s=b.useContext(Lt),l=nK()||s.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),we.createElement(eK,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a!=null?a:s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:o,getContainer:u}))};function q1(e){const t=cU(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,a;function o(){for(var u,f=arguments.length,d=new Array(f),h=0;hv==null?void 0:v.triggerCancel)){var g;(u=e.onCancel)===null||u===void 0||(g=u).call.apply(g,[e,()=>{}].concat(Ne(d.slice(1))))}for(let v=0;v{const f=t.getPrefixCls(void 0,nK()),d=t.getIconPrefixCls(),h=t.getTheme(),p=we.createElement(Ske,Object.assign({},u));a=aR()(we.createElement(Sc,{prefixCls:f,iconPrefixCls:d,theme:h},t.holderRender?t.holderRender(p):p),n)})}function l(){for(var u=arguments.length,f=new Array(u),d=0;d{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,f)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),mp.push(l),{destroy:l,update:c}}function rK(e){return Object.assign(Object.assign({},e),{type:"warning"})}function iK(e){return Object.assign(Object.assign({},e),{type:"info"})}function aK(e){return Object.assign(Object.assign({},e),{type:"success"})}function oK(e){return Object.assign(Object.assign({},e),{type:"error"})}function sK(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function wke(e){let{rootPrefixCls:t}=e;tK=t}var Cke=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,{afterClose:r,config:i}=e,a=Cke(e,["afterClose","config"]);const[o,s]=b.useState(!0),[l,c]=b.useState(i),{direction:u,getPrefixCls:f}=b.useContext(Lt),d=f("modal"),h=f(),p=()=>{var y;r(),(y=l.afterClose)===null||y===void 0||y.call(l)},g=function(){var y;s(!1);for(var x=arguments.length,S=new Array(x),w=0;wO==null?void 0:O.triggerCancel)){var E;(y=l.onCancel)===null||y===void 0||(E=y).call.apply(E,[l,()=>{}].concat(Ne(S.slice(1))))}};b.useImperativeHandle(t,()=>({destroy:g,update:y=>{c(x=>Object.assign(Object.assign({},x),y))}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[m]=Zo("Modal",_o.Modal);return b.createElement(eK,Object.assign({prefixCls:d,rootPrefixCls:h},l,{close:g,open:o,afterClose:p,okText:l.okText||(v?m==null?void 0:m.okText:m==null?void 0:m.justOkText),direction:l.direction||u,cancelText:l.cancelText||(m==null?void 0:m.cancelText)},a))},Oke=b.forwardRef(Eke);let lK=0;const _ke=b.memo(b.forwardRef((e,t)=>{const[n,r]=D$e();return b.useImperativeHandle(t,()=>({patchElement:r}),[]),b.createElement(b.Fragment,null,n)}));function $ke(){const e=b.useRef(null),[t,n]=b.useState([]);b.useEffect(()=>{t.length&&(Ne(t).forEach(o=>{o()}),n([]))},[t]);const r=b.useCallback(a=>function(s){var l;lK+=1;const c=b.createRef();let u;const f=new Promise(v=>{u=v});let d=!1,h;const p=b.createElement(Oke,{key:`modal-${lK}`,config:a(s),ref:c,afterClose:()=>{h==null||h()},isSilent:()=>d,onConfirm:v=>{u(v)}});return h=(l=e.current)===null||l===void 0?void 0:l.patchElement(p),h&&mp.push(h),{destroy:()=>{function v(){var m;(m=c.current)===null||m===void 0||m.destroy()}c.current?v():n(m=>[].concat(Ne(m),[v]))},update:v=>{function m(){var y;(y=c.current)===null||y===void 0||y.update(v)}c.current?m():n(y=>[].concat(Ne(y),[m]))},then:v=>(d=!0,f.then(v))}},[]);return[b.useMemo(()=>({info:r(iK),success:r(aK),error:r(oK),warning:r(rK),confirm:r(sK)}),[]),b.createElement(_ke,{key:"modal-holder",ref:e})]}const Pke=we.createContext({});function cK(e){return t=>b.createElement(Sc,{theme:{token:{motion:!1,zIndexPopupBase:0}}},b.createElement(e,Object.assign({},t)))}const U1=(e,t,n,r)=>cK(a=>{const{prefixCls:o,style:s}=a,l=b.useRef(null),[c,u]=b.useState(0),[f,d]=b.useState(0),[h,p]=Yn(!1,{value:a.open}),{getPrefixCls:g}=b.useContext(Lt),v=g(t||"select",o);b.useEffect(()=>{if(p(!0),typeof ResizeObserver!="undefined"){const x=new ResizeObserver(w=>{const C=w[0].target;u(C.offsetHeight+8),d(C.offsetWidth)}),S=setInterval(()=>{var w;const C=n?`.${n(v)}`:`.${v}-dropdown`,E=(w=l.current)===null||w===void 0?void 0:w.querySelector(C);E&&(clearInterval(S),x.observe(E))},10);return()=>{clearInterval(S),x.disconnect()}}},[]);let m=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current});r&&(m=r(m));const y={paddingBottom:c,position:"relative",minWidth:f};return b.createElement("div",{ref:l,style:y},b.createElement(e,Object.assign({},m)))}),eE=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var tE=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,a=t.children,o=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return b.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),o==null||o(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:b.createElement("span",{className:me(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},a))},Mke=function(t,n,r,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=we.useMemo(function(){if(Bt(i)==="object")return i.clearIcon;if(a)return a},[i,a]),u=we.useMemo(function(){return!!(!o&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,o,r.length,s,l]);return{allowClear:u,clearIcon:we.createElement(tE,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},uK=b.createContext(null);function kke(){return b.useContext(uK)}function Tke(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=b.useState(!1),n=he(t,2),r=n[0],i=n[1],a=b.useRef(null),o=function(){window.clearTimeout(a.current)};b.useEffect(function(){return o},[]);var s=function(c,u){o(),a.current=window.setTimeout(function(){i(c),u&&u()},e)};return[r,s,o]}function fK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=b.useRef(null),n=b.useRef(null);b.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Rke(e,t,n,r){var i=b.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},b.useEffect(function(){function a(o){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function Ike(e){return e&&![Ze.ESC,Ze.SHIFT,Ze.BACKSPACE,Ze.TAB,Ze.WIN_KEY,Ze.ALT,Ze.META,Ze.WIN_KEY_RIGHT,Ze.CTRL,Ze.SEMICOLON,Ze.EQUALS,Ze.CAPS_LOCK,Ze.CONTEXT_MENU,Ze.F1,Ze.F2,Ze.F3,Ze.F4,Ze.F5,Ze.F6,Ze.F7,Ze.F8,Ze.F9,Ze.F10,Ze.F11,Ze.F12].includes(e)}var Ake=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Jg=void 0;function Nke(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,d=e.children,h=e.display,p=e.order,g=e.component,v=g===void 0?"div":g,m=Vt(e,Ake),y=o&&!h;function x(O){l(c,O)}b.useEffect(function(){return function(){x(null)}},[]);var S=a&&i!==Jg?a(i):d,w;r||(w={opacity:y?0:1,height:y?0:Jg,overflowY:y?"hidden":Jg,order:o?p:Jg,pointerEvents:y?"none":Jg,position:y?"absolute":Jg});var C={};y&&(C["aria-hidden"]=!0);var E=b.createElement(v,Le({className:me(!r&&n,u),style:ae(ae({},w),f)},C,m,{ref:t}),S);return o&&(E=b.createElement(vo,{onResize:function($){var P=$.offsetWidth;x(P)},disabled:s},E)),E}var G1=b.forwardRef(Nke);G1.displayName="Item";function Lke(e){if(typeof MessageChannel=="undefined")bn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function jke(){var e=b.useRef(null),t=function(r){e.current||(e.current=[],Lke(function(){ys.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function K1(e,t){var n=b.useState(t),r=he(n,2),i=r[0],a=r[1],o=_n(function(s){e(function(){a(s)})});return[i,o]}var nE=we.createContext(null),Dke=["component"],Fke=["className"],Bke=["className"],zke=function(t,n){var r=b.useContext(nE);if(!r){var i=t.component,a=i===void 0?"div":i,o=Vt(t,Dke);return b.createElement(a,Le({},o,{ref:n}))}var s=r.className,l=Vt(r,Fke),c=t.className,u=Vt(t,Bke);return b.createElement(nE.Provider,{value:null},b.createElement(G1,Le({ref:n,className:me(s,c)},l,u)))},dK=b.forwardRef(zke);dK.displayName="RawItem";var Hke=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],hK="responsive",pK="invalidate";function Wke(e){return"+ ".concat(e.length," ...")}function Vke(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,a=i===void 0?[]:i,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,d=e.style,h=e.className,p=e.maxCount,g=e.renderRest,v=e.renderRawRest,m=e.suffix,y=e.component,x=y===void 0?"div":y,S=e.itemComponent,w=e.onVisibleChange,C=Vt(e,Hke),E=f==="full",O=jke(),$=K1(O,null),P=he($,2),M=P[0],k=P[1],T=M||0,R=K1(O,new Map),A=he(R,2),N=A[0],L=A[1],j=K1(O,0),F=he(j,2),B=F[0],D=F[1],z=K1(O,0),W=he(z,2),q=W[0],H=W[1],U=K1(O,0),G=he(U,2),K=G[0],X=G[1],Q=b.useState(null),ee=he(Q,2),ne=ee[0],te=ee[1],ie=b.useState(null),J=he(ie,2),le=J[0],oe=J[1],re=b.useMemo(function(){return le===null&&E?Number.MAX_SAFE_INTEGER:le||0},[le,M]),se=b.useState(!1),ge=he(se,2),de=ge[0],pe=ge[1],ue="".concat(r,"-item"),Se=Math.max(B,q),Oe=p===hK,_e=a.length&&Oe,Te=p===pK,je=_e||typeof p=="number"&&a.length>p,Be=b.useMemo(function(){var gt=a;return _e?M===null&&E?gt=a:gt=a.slice(0,Math.min(a.length,T/u)):typeof p=="number"&&(gt=a.slice(0,p)),gt},[a,u,M,p,_e]),Pe=b.useMemo(function(){return _e?a.slice(re+1):a.slice(Be.length)},[a,Be,_e,re]),He=b.useCallback(function(gt,st){var tt;return typeof l=="function"?l(gt):(tt=l&&(gt==null?void 0:gt[l]))!==null&&tt!==void 0?tt:st},[l]),Ue=b.useCallback(o||function(gt){return gt},[o]);function ke(gt,st,tt){le===gt&&(st===void 0||st===ne)||(oe(gt),tt||(pe(gtT){ke(ot-1,gt-Pt-K+q);break}}m&&Ve(0)+K>T&&te(null)}},[T,N,q,K,He,Be]);var et=de&&!!Pe.length,Tt={};ne!==null&&_e&&(Tt={position:"absolute",left:ne,top:0});var Mt={prefixCls:ue,responsive:_e,component:S,invalidate:Te},at=s?function(gt,st){var tt=He(gt,st);return b.createElement(nE.Provider,{key:tt,value:ae(ae({},Mt),{},{order:st,item:gt,itemKey:tt,registerSize:Re,display:st<=re})},s(gt,st))}:function(gt,st){var tt=He(gt,st);return b.createElement(G1,Le({},Mt,{order:st,key:tt,item:gt,renderItem:Ue,itemKey:tt,registerSize:Re,display:st<=re}))},ht,Ot={order:et?re:Number.MAX_SAFE_INTEGER,className:"".concat(ue,"-rest"),registerSize:Ae,display:et};if(v)v&&(ht=b.createElement(nE.Provider,{value:ae(ae({},Mt),Ot)},v(Pe)));else{var vt=g||Wke;ht=b.createElement(G1,Le({},Mt,Ot),typeof vt=="function"?vt(Pe):vt)}var $t=b.createElement(x,Le({className:me(!Te&&r,h),style:d,ref:t},C),Be.map(at),je?ht:null,m&&b.createElement(G1,Le({},Mt,{responsive:Oe,responsiveDisabled:!_e,order:re,className:"".concat(ue,"-suffix"),registerSize:$e,display:!0,style:Tt}),m));return Oe&&($t=b.createElement(vo,{onResize:Ce,disabled:!_e},$t)),$t}var wc=b.forwardRef(Vke);wc.displayName="Overflow",wc.Item=dK,wc.RESPONSIVE=hK,wc.INVALIDATE=pK;var qke=function(t,n){var r,i=t.prefixCls,a=t.id,o=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,d=t.activeDescendantId,h=t.value,p=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,m=t.onChange,y=t.onPaste,x=t.onCompositionStart,S=t.onCompositionEnd,w=t.open,C=t.attrs,E=o||b.createElement("input",null),O=E,$=O.ref,P=O.props,M=P.onKeyDown,k=P.onChange,T=P.onMouseDown,R=P.onCompositionStart,A=P.onCompositionEnd,N=P.style;return"maxLength"in E.props,E=b.cloneElement(E,ae(ae(ae({type:"search"},P),{},{id:a,ref:po(n,$),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:me("".concat(i,"-selection-search-input"),(r=E)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":w?d:void 0},C),{},{value:f?h:"",maxLength:p,readOnly:!f,unselectable:f?null:"on",style:ae(ae({},N),{},{opacity:f?null:0}),onKeyDown:function(j){g(j),M&&M(j)},onMouseDown:function(j){v(j),T&&T(j)},onChange:function(j){m(j),k&&k(j)},onCompositionStart:function(j){x(j),R&&R(j)},onCompositionEnd:function(j){S(j),A&&A(j)},onPaste:y})),E},vK=b.forwardRef(qke);function gK(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Uke=typeof window!="undefined"&&window.document&&window.document.documentElement,Gke=Uke;function Kke(e){return e!=null}function Yke(e){return!e&&e!==0}function mK(e){return["string","number"].includes(Bt(e))}function yK(e){var t=void 0;return e&&(mK(e.title)?t=e.title.toString():mK(e.label)&&(t=e.label.toString())),t}function Xke(e,t){Gke?b.useLayoutEffect(e,t):b.useEffect(e,t)}function Zke(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var bK=function(t){t.preventDefault(),t.stopPropagation()},Qke=function(t){var n=t.id,r=t.prefixCls,i=t.values,a=t.open,o=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,d=t.showSearch,h=t.autoFocus,p=t.autoComplete,g=t.activeDescendantId,v=t.tabIndex,m=t.removeIcon,y=t.maxTagCount,x=t.maxTagTextLength,S=t.maxTagPlaceholder,w=S===void 0?function(te){return"+ ".concat(te.length," ...")}:S,C=t.tagRender,E=t.onToggleOpen,O=t.onRemove,$=t.onInputChange,P=t.onInputPaste,M=t.onInputKeyDown,k=t.onInputMouseDown,T=t.onInputCompositionStart,R=t.onInputCompositionEnd,A=b.useRef(null),N=b.useState(0),L=he(N,2),j=L[0],F=L[1],B=b.useState(!1),D=he(B,2),z=D[0],W=D[1],q="".concat(r,"-selection"),H=a||f==="multiple"&&s===!1||f==="tags"?o:"",U=f==="tags"||f==="multiple"&&s===!1||d&&(a||z);Xke(function(){F(A.current.scrollWidth)},[H]);var G=function(ie,J,le,oe,re){return b.createElement("span",{title:yK(ie),className:me("".concat(q,"-item"),Z({},"".concat(q,"-item-disabled"),le))},b.createElement("span",{className:"".concat(q,"-item-content")},J),oe&&b.createElement(tE,{className:"".concat(q,"-item-remove"),onMouseDown:bK,onClick:re,customizeIcon:m},"×"))},K=function(ie,J,le,oe,re,se){var ge=function(pe){bK(pe),E(!a)};return b.createElement("span",{onMouseDown:ge},C({label:J,value:ie,disabled:le,closable:oe,onClose:re,isMaxTag:!!se}))},X=function(ie){var J=ie.disabled,le=ie.label,oe=ie.value,re=!u&&!J,se=le;if(typeof x=="number"&&(typeof le=="string"||typeof le=="number")){var ge=String(se);ge.length>x&&(se="".concat(ge.slice(0,x),"..."))}var de=function(ue){ue&&ue.stopPropagation(),O(ie)};return typeof C=="function"?K(oe,se,J,re,de):G(ie,se,J,re,de)},Q=function(ie){var J=typeof w=="function"?w(ie):w;return typeof C=="function"?K(void 0,J,!1,!1,void 0,!0):G({title:J},J,!1)},ee=b.createElement("div",{className:"".concat(q,"-search"),style:{width:j},onFocus:function(){W(!0)},onBlur:function(){W(!1)}},b.createElement(vK,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:p,editable:U,activeDescendantId:g,value:H,onKeyDown:M,onMouseDown:k,onChange:$,onPaste:P,onCompositionStart:T,onCompositionEnd:R,tabIndex:v,attrs:ta(t,!0)}),b.createElement("span",{ref:A,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},H," ")),ne=b.createElement(wc,{prefixCls:"".concat(q,"-overflow"),data:i,renderItem:X,renderRest:Q,suffix:ee,itemKey:Zke,maxCount:y});return b.createElement("span",{className:"".concat(q,"-wrap")},ne,!i.length&&!H&&b.createElement("span",{className:"".concat(q,"-placeholder")},c))},Jke=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,a=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,d=t.values,h=t.placeholder,p=t.tabIndex,g=t.showSearch,v=t.searchValue,m=t.activeValue,y=t.maxLength,x=t.onInputKeyDown,S=t.onInputMouseDown,w=t.onInputChange,C=t.onInputPaste,E=t.onInputCompositionStart,O=t.onInputCompositionEnd,$=t.title,P=b.useState(!1),M=he(P,2),k=M[0],T=M[1],R=u==="combobox",A=R||g,N=d[0],L=v||"";R&&m&&!k&&(L=m),b.useEffect(function(){R&&T(!1)},[R,m]);var j=u!=="combobox"&&!f&&!g?!1:!!L,F=$===void 0?yK(N):$,B=b.useMemo(function(){return N?null:b.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},h)},[N,j,h,r]);return b.createElement("span",{className:"".concat(r,"-selection-wrap")},b.createElement("span",{className:"".concat(r,"-selection-search")},b.createElement(vK,{ref:a,prefixCls:r,id:i,open:f,inputElement:n,disabled:o,autoFocus:s,autoComplete:l,editable:A,activeDescendantId:c,value:L,onKeyDown:x,onMouseDown:S,onChange:function(z){T(!0),w(z)},onPaste:C,onCompositionStart:E,onCompositionEnd:O,tabIndex:p,attrs:ta(t,!0),maxLength:R?y:void 0})),!R&&N?b.createElement("span",{className:"".concat(r,"-selection-item"),title:F,style:j?{visibility:"hidden"}:void 0},N.label):null,B)},e4e=function(t,n){var r=b.useRef(null),i=b.useRef(!1),a=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,d=t.autoClearSearchValue,h=t.onSearch,p=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,m=t.domRef;b.useImperativeHandle(n,function(){return{focus:function(F){r.current.focus(F)},blur:function(){r.current.blur()}}});var y=fK(0),x=he(y,2),S=x[0],w=x[1],C=function(F){var B=F.which,D=r.current instanceof HTMLTextAreaElement;!D&&o&&(B===Ze.UP||B===Ze.DOWN)&&F.preventDefault(),v&&v(F),B===Ze.ENTER&&s==="tags"&&!i.current&&!o&&(p==null||p(F.target.value)),!(D&&!o&&~[Ze.UP,Ze.DOWN,Ze.LEFT,Ze.RIGHT].indexOf(B))&&Ike(B)&&g(!0)},E=function(){w(!0)},O=b.useRef(null),$=function(F){h(F,!0,i.current)!==!1&&g(!0)},P=function(){i.current=!0},M=function(F){i.current=!1,s!=="combobox"&&$(F.target.value)},k=function(F){var B=F.target.value;if(c&&O.current&&/[\r\n]/.test(O.current)){var D=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(D,O.current)}O.current=null,$(B)},T=function(F){var B=F.clipboardData,D=B==null?void 0:B.getData("text");O.current=D||""},R=function(F){var B=F.target;if(B!==r.current){var D=document.body.style.msTouchAction!==void 0;D?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(F){var B=S();F.target!==r.current&&!B&&!(s==="combobox"&&u)&&F.preventDefault(),(s!=="combobox"&&(!l||!B)||!o)&&(o&&d!==!1&&h("",!0,!1),g())},N={inputRef:r,onInputKeyDown:C,onInputMouseDown:E,onInputChange:k,onInputPaste:T,onInputCompositionStart:P,onInputCompositionEnd:M},L=s==="multiple"||s==="tags"?b.createElement(Qke,Le({},t,N)):b.createElement(Jke,Le({},t,N));return b.createElement("div",{ref:m,className:"".concat(a,"-selector"),onClick:R,onMouseDown:A},f&&b.createElement("div",{className:"".concat(a,"-prefix")},f),L)},t4e=b.forwardRef(e4e);function n4e(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,s=a.content,l=i.x,c=l===void 0?0:l,u=i.y,f=u===void 0?0:u,d=b.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],g=n.points[1],v=p[0],m=p[1],y=g[0],x=g[1];v===y||!["t","b"].includes(v)?h.top=f:v==="t"?h.top=0:h.bottom=0,m===x||!["l","r"].includes(m)?h.left=c:m==="l"?h.left=0:h.right=0}return b.createElement("div",{ref:d,className:me("".concat(t,"-arrow"),o),style:h},s)}function r4e(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?b.createElement(Jo,Le({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return b.createElement("div",{style:{zIndex:r},className:me("".concat(t,"-mask"),s)})}):null}var i4e=b.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),a4e=b.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,h=e.arrow,p=e.arrowPos,g=e.align,v=e.motion,m=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,S=e.autoDestroy,w=e.portal,C=e.zIndex,E=e.onMouseEnter,O=e.onMouseLeave,$=e.onPointerEnter,P=e.onPointerDownCapture,M=e.ready,k=e.offsetX,T=e.offsetY,R=e.offsetR,A=e.offsetB,N=e.onAlign,L=e.onPrepare,j=e.stretch,F=e.targetWidth,B=e.targetHeight,D=typeof n=="function"?n():n,z=l||c,W=(x==null?void 0:x.length)>0,q=b.useState(!x||!W),H=he(q,2),U=H[0],G=H[1];if(Nn(function(){!U&&W&&o&&G(!0)},[U,W,o]),!U)return null;var K="auto",X={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(M||!l){var Q,ee=g.points,ne=g.dynamicInset||((Q=g._experimental)===null||Q===void 0?void 0:Q.dynamicInset),te=ne&&ee[0][1]==="r",ie=ne&&ee[0][0]==="b";te?(X.right=R,X.left=K):(X.left=k,X.right=K),ie?(X.bottom=A,X.top=K):(X.top=T,X.bottom=K)}var J={};return j&&(j.includes("height")&&B?J.height=B:j.includes("minHeight")&&B&&(J.minHeight=B),j.includes("width")&&F?J.width=F:j.includes("minWidth")&&F&&(J.minWidth=F)),l||(J.pointerEvents="none"),b.createElement(w,{open:y||z,getContainer:x&&function(){return x(o)},autoDestroy:S},b.createElement(r4e,{prefixCls:i,open:l,zIndex:C,mask:d,motion:m}),b.createElement(vo,{onResize:N,disabled:!l},function(le){return b.createElement(Jo,Le({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:L,onEnterPrepare:L,visible:l,onVisibleChanged:function(re){var se;v==null||(se=v.onVisibleChanged)===null||se===void 0||se.call(v,re),s(re)}}),function(oe,re){var se=oe.className,ge=oe.style,de=me(i,se,r);return b.createElement("div",{ref:po(le,t,re),className:de,style:ae(ae(ae(ae({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},X),J),ge),{},{boxSizing:"border-box",zIndex:C},a),onMouseEnter:E,onMouseLeave:O,onPointerEnter:$,onClick:f,onPointerDownCapture:P},h&&b.createElement(n4e,{prefixCls:i,arrow:h,arrowPos:p,align:g}),b.createElement(i4e,{cache:!l&&!u},D))})}))}),o4e=b.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=vc(n),a=b.useCallback(function(s){y1(t,r?r(s):s)},[r]),o=ef(a,bd(n));return i?b.cloneElement(n,{ref:o}):n}),xK=b.createContext(null);function SK(e){return e?Array.isArray(e)?e:[e]:[]}function s4e(e,t,n,r){return b.useMemo(function(){var i=SK(n!=null?n:t),a=SK(r!=null?r:t),o=new Set(i),s=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,n,r])}function l4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function c4e(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Z1(e){return X1(parseFloat(e),0)}function CK(e,t){var n=ae({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Y1(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,f=r.getBoundingClientRect(),d=r.offsetHeight,h=r.clientHeight,p=r.offsetWidth,g=r.clientWidth,v=Z1(s),m=Z1(l),y=Z1(c),x=Z1(u),S=X1(Math.round(f.width/p*1e3)/1e3),w=X1(Math.round(f.height/d*1e3)/1e3),C=(p-g-y-x)*S,E=(d-h-v-m)*w,O=v*w,$=m*w,P=y*S,M=x*S,k=0,T=0;if(a==="clip"){var R=Z1(o);k=R*S,T=R*w}var A=f.x+P-k,N=f.y+O-T,L=A+f.width+2*k-P-M-C,j=N+f.height+2*T-O-$-E;n.left=Math.max(n.left,A),n.top=Math.max(n.top,N),n.right=Math.min(n.right,L),n.bottom=Math.min(n.bottom,j)}}),n}function EK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function OK(e,t){var n=t||[],r=he(n,2),i=r[0],a=r[1];return[EK(e.width,i),EK(e.height,a)]}function _K(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function em(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function Rd(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function u4e(e,t,n,r,i,a,o){var s=b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=he(s,2),c=l[0],u=l[1],f=b.useRef(0),d=b.useMemo(function(){return t?eI(t):[]},[t]),h=b.useRef({}),p=function(){h.current={}};e||p();var g=_n(function(){if(t&&n&&e){let wn=function(Zi,wa){var Qi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se,so=q.x+Zi,Hc=q.y+wa,J2=so+te,eS=Hc+ne,tS=Math.max(so,Qi.left),pn=Math.max(Hc,Qi.top),Tn=Math.min(J2,Qi.right),wi=Math.min(eS,Qi.bottom);return Math.max(0,(Tn-tS)*(wi-pn))},Bn=function(){Zt=q.y+tt,vn=Zt+ne,an=q.x+st,Pn=an+te};var y,x,S,w,C=t,E=C.ownerDocument,O=Y1(C),$=O.getComputedStyle(C),P=$.width,M=$.height,k=$.position,T=C.style.left,R=C.style.top,A=C.style.right,N=C.style.bottom,L=C.style.overflow,j=ae(ae({},i[r]),a),F=E.createElement("div");(y=C.parentElement)===null||y===void 0||y.appendChild(F),F.style.left="".concat(C.offsetLeft,"px"),F.style.top="".concat(C.offsetTop,"px"),F.style.position=k,F.style.height="".concat(C.offsetHeight,"px"),F.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var B;if(Array.isArray(n))B={x:n[0],y:n[1],width:0,height:0};else{var D,z,W=n.getBoundingClientRect();W.x=(D=W.x)!==null&&D!==void 0?D:W.left,W.y=(z=W.y)!==null&&z!==void 0?z:W.top,B={x:W.x,y:W.y,width:W.width,height:W.height}}var q=C.getBoundingClientRect();q.x=(x=q.x)!==null&&x!==void 0?x:q.left,q.y=(S=q.y)!==null&&S!==void 0?S:q.top;var H=E.documentElement,U=H.clientWidth,G=H.clientHeight,K=H.scrollWidth,X=H.scrollHeight,Q=H.scrollTop,ee=H.scrollLeft,ne=q.height,te=q.width,ie=B.height,J=B.width,le={left:0,top:0,right:U,bottom:G},oe={left:-ee,top:-Q,right:K-ee,bottom:X-Q},re=j.htmlRegion,se="visible",ge="visibleFirst";re!=="scroll"&&re!==ge&&(re=se);var de=re===ge,pe=CK(oe,d),ue=CK(le,d),Se=re===se?ue:pe,Oe=de?ue:Se;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var _e=C.getBoundingClientRect();C.style.left=T,C.style.top=R,C.style.right=A,C.style.bottom=N,C.style.overflow=L,(w=C.parentElement)===null||w===void 0||w.removeChild(F);var Te=X1(Math.round(te/parseFloat(P)*1e3)/1e3),je=X1(Math.round(ne/parseFloat(M)*1e3)/1e3);if(Te===0||je===0||g1(n)&&!Wg(n))return;var Be=j.offset,Pe=j.targetOffset,He=OK(q,Be),Ue=he(He,2),ke=Ue[0],Ce=Ue[1],Re=OK(B,Pe),Ae=he(Re,2),$e=Ae[0],Ve=Ae[1];B.x-=$e,B.y-=Ve;var et=j.points||[],Tt=he(et,2),Mt=Tt[0],at=Tt[1],ht=_K(at),Ot=_K(Mt),vt=em(B,ht),$t=em(q,Ot),gt=ae({},j),st=vt.x-$t.x+ke,tt=vt.y-$t.y+Ce,ot=wn(st,tt),Pt=wn(st,tt,ue),Xe=em(B,["t","l"]),Je=em(q,["t","l"]),bt=em(B,["b","r"]),Rt=em(q,["b","r"]),Xt=j.overflow||{},Qt=Xt.adjustX,Gt=Xt.adjustY,wt=Xt.shiftX,_t=Xt.shiftY,Nt=function(wa){return typeof wa=="boolean"?wa:wa>=0},Zt,vn,an,Pn;Bn();var Ut=Nt(Gt),ye=Ot[0]===ht[0];if(Ut&&Ot[0]==="t"&&(vn>Oe.bottom||h.current.bt)){var Ie=tt;ye?Ie-=ne-ie:Ie=Xe.y-Rt.y-Ce;var We=wn(st,Ie),ze=wn(st,Ie,ue);We>ot||We===ot&&(!de||ze>=Pt)?(h.current.bt=!0,tt=Ie,Ce=-Ce,gt.points=[Rd(Ot,0),Rd(ht,0)]):h.current.bt=!1}if(Ut&&Ot[0]==="b"&&(Ztot||mt===ot&&(!de||Wt>=Pt)?(h.current.tb=!0,tt=pt,Ce=-Ce,gt.points=[Rd(Ot,0),Rd(ht,0)]):h.current.tb=!1}var gn=Nt(Qt),mn=Ot[1]===ht[1];if(gn&&Ot[1]==="l"&&(Pn>Oe.right||h.current.rl)){var un=st;mn?un-=te-J:un=Xe.x-Rt.x-ke;var xt=wn(un,tt),Jt=wn(un,tt,ue);xt>ot||xt===ot&&(!de||Jt>=Pt)?(h.current.rl=!0,st=un,ke=-ke,gt.points=[Rd(Ot,1),Rd(ht,1)]):h.current.rl=!1}if(gn&&Ot[1]==="r"&&(anot||En===ot&&(!de||Wn>=Pt)?(h.current.lr=!0,st=on,ke=-ke,gt.points=[Rd(Ot,1),Rd(ht,1)]):h.current.lr=!1}Bn();var hr=wt===!0?0:wt;typeof hr=="number"&&(anue.right&&(st-=Pn-ue.right-ke,B.x>ue.right-hr&&(st+=B.x-ue.right+hr)));var Dr=_t===!0?0:_t;typeof Dr=="number"&&(Ztue.bottom&&(tt-=vn-ue.bottom-Ce,B.y>ue.bottom-Dr&&(tt+=B.y-ue.bottom+Dr)));var ci=q.x+st,Ni=ci+te,ri=q.y+tt,oa=ri+ne,en=B.x,Ct=en+J,Kt=B.y,Vn=Kt+ie,jt=Math.max(ci,en),Yt=Math.min(Ni,Ct),kn=(jt+Yt)/2,Gn=kn-ci,Cr=Math.max(ri,Kt),Ur=Math.min(oa,Vn),$r=(Cr+Ur)/2,Si=$r-ri;o==null||o(t,gt);var It=_e.right-q.x-(st+q.width),At=_e.bottom-q.y-(tt+q.height);Te===1&&(st=Math.round(st),It=Math.round(It)),je===1&&(tt=Math.round(tt),At=Math.round(At));var ln={ready:!0,offsetX:st/Te,offsetY:tt/je,offsetR:It/Te,offsetB:At/je,arrowX:Gn/Te,arrowY:Si/je,scaleX:Te,scaleY:je,align:gt};u(ln)}}),v=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&g()})},m=function(){u(function(x){return ae(ae({},x),{},{ready:!1})})};return Nn(m,[r]),Nn(function(){e||m()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function f4e(e,t,n,r,i){Nn(function(){if(e&&t&&n){let f=function(){r(),i()};var a=t,o=n,s=eI(a),l=eI(o),c=Y1(o),u=new Set([c].concat(Ne(s),Ne(l)));return u.forEach(function(d){d.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(d){d.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function d4e(e,t,n,r,i,a,o,s){var l=b.useRef(e);l.current=e;var c=b.useRef(!1);b.useEffect(function(){if(t&&r&&(!i||a)){var f=function(){c.current=!1},d=function(v){var m;l.current&&!o(((m=v.composedPath)===null||m===void 0||(m=m.call(v))===null||m===void 0?void 0:m[0])||v.target)&&!c.current&&s(!1)},h=Y1(r);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",d,!0),h.addEventListener("contextmenu",d,!0);var p=NC(n);return p&&(p.addEventListener("mousedown",d,!0),p.addEventListener("contextmenu",d,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",d,!0),h.removeEventListener("contextmenu",d,!0),p&&(p.removeEventListener("mousedown",d,!0),p.removeEventListener("contextmenu",d,!0))}}},[t,n,r,i,a]);function u(){c.current=!0}return u}var h4e=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function p4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:YC,t=b.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,d=n.defaultPopupVisible,h=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,m=v===void 0?.1:v,y=n.focusDelay,x=n.blurDelay,S=n.mask,w=n.maskClosable,C=w===void 0?!0:w,E=n.getPopupContainer,O=n.forceRender,$=n.autoDestroy,P=n.destroyPopupOnHide,M=n.popup,k=n.popupClassName,T=n.popupStyle,R=n.popupPlacement,A=n.builtinPlacements,N=A===void 0?{}:A,L=n.popupAlign,j=n.zIndex,F=n.stretch,B=n.getPopupClassNameFromAlign,D=n.fresh,z=n.alignPoint,W=n.onPopupClick,q=n.onPopupAlign,H=n.arrow,U=n.popupMotion,G=n.maskMotion,K=n.popupTransitionName,X=n.popupAnimation,Q=n.maskTransitionName,ee=n.maskAnimation,ne=n.className,te=n.getTriggerDOMNode,ie=Vt(n,h4e),J=$||P||!1,le=b.useState(!1),oe=he(le,2),re=oe[0],se=oe[1];Nn(function(){se(eE())},[]);var ge=b.useRef({}),de=b.useContext(xK),pe=b.useMemo(function(){return{registerSubPopup:function(Tn,wi){ge.current[Tn]=wi,de==null||de.registerSubPopup(Tn,wi)}}},[de]),ue=dG(),Se=b.useState(null),Oe=he(Se,2),_e=Oe[0],Te=Oe[1],je=b.useRef(null),Be=_n(function(pn){je.current=pn,g1(pn)&&_e!==pn&&Te(pn),de==null||de.registerSubPopup(ue,pn)}),Pe=b.useState(null),He=he(Pe,2),Ue=He[0],ke=He[1],Ce=b.useRef(null),Re=_n(function(pn){g1(pn)&&Ue!==pn&&(ke(pn),Ce.current=pn)}),Ae=b.Children.only(o),$e=(Ae==null?void 0:Ae.props)||{},Ve={},et=_n(function(pn){var Tn,wi,Ca=Ue;return(Ca==null?void 0:Ca.contains(pn))||((Tn=NC(Ca))===null||Tn===void 0?void 0:Tn.host)===pn||pn===Ca||(_e==null?void 0:_e.contains(pn))||((wi=NC(_e))===null||wi===void 0?void 0:wi.host)===pn||pn===_e||Object.values(ge.current).some(function(Li){return(Li==null?void 0:Li.contains(pn))||pn===Li})}),Tt=wK(a,U,X,K),Mt=wK(a,G,ee,Q),at=b.useState(d||!1),ht=he(at,2),Ot=ht[0],vt=ht[1],$t=f!=null?f:Ot,gt=_n(function(pn){f===void 0&&vt(pn)});Nn(function(){vt(f||!1)},[f]);var st=b.useRef($t);st.current=$t;var tt=b.useRef([]);tt.current=[];var ot=_n(function(pn){var Tn;gt(pn),((Tn=tt.current[tt.current.length-1])!==null&&Tn!==void 0?Tn:$t)!==pn&&(tt.current.push(pn),h==null||h(pn))}),Pt=b.useRef(),Xe=function(){clearTimeout(Pt.current)},Je=function(Tn){var wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Xe(),wi===0?ot(Tn):Pt.current=setTimeout(function(){ot(Tn)},wi*1e3)};b.useEffect(function(){return Xe},[]);var bt=b.useState(!1),Rt=he(bt,2),Xt=Rt[0],Qt=Rt[1];Nn(function(pn){(!pn||$t)&&Qt(!0)},[$t]);var Gt=b.useState(null),wt=he(Gt,2),_t=wt[0],Nt=wt[1],Zt=b.useState(null),vn=he(Zt,2),an=vn[0],Pn=vn[1],Ut=function(Tn){Pn([Tn.clientX,Tn.clientY])},ye=u4e($t,_e,z&&an!==null?an:Ue,R,N,L,q),Ie=he(ye,11),We=Ie[0],ze=Ie[1],pt=Ie[2],mt=Ie[3],Wt=Ie[4],gn=Ie[5],mn=Ie[6],un=Ie[7],xt=Ie[8],Jt=Ie[9],on=Ie[10],En=s4e(re,l,c,u),Wn=he(En,2),hr=Wn[0],Dr=Wn[1],ci=hr.has("click"),Ni=Dr.has("click")||Dr.has("contextMenu"),ri=_n(function(){Xt||on()}),oa=function(){st.current&&z&&Ni&&Je(!1)};f4e($t,Ue,_e,ri,oa),Nn(function(){ri()},[an,R]),Nn(function(){$t&&!(N!=null&&N[R])&&ri()},[JSON.stringify(L)]);var en=b.useMemo(function(){var pn=c4e(N,a,Jt,z);return me(pn,B==null?void 0:B(Jt))},[Jt,B,N,a,z]);b.useImperativeHandle(r,function(){return{nativeElement:Ce.current,popupElement:je.current,forceAlign:ri}});var Ct=b.useState(0),Kt=he(Ct,2),Vn=Kt[0],jt=Kt[1],Yt=b.useState(0),kn=he(Yt,2),Gn=kn[0],Cr=kn[1],Ur=function(){if(F&&Ue){var Tn=Ue.getBoundingClientRect();jt(Tn.width),Cr(Tn.height)}},$r=function(){Ur(),ri()},Si=function(Tn){Qt(!1),on(),p==null||p(Tn)},It=function(){return new Promise(function(Tn){Ur(),Nt(function(){return Tn})})};Nn(function(){_t&&(on(),_t(),Nt(null))},[_t]);function At(pn,Tn,wi,Ca){Ve[pn]=function(Li){var sy;Ca==null||Ca(Li),Je(Tn,wi);for(var nS=arguments.length,ui=new Array(nS>1?nS-1:0),Fr=1;Fr1?wi-1:0),Li=1;Li1?wi-1:0),Li=1;Li1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=PK(n,!1),o=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(f,d){Array.isArray(f)&&f.forEach(function(h){if(d||!(l in h)){var p=h[s];i.push({key:$K(h,i.length),groupOption:d,data:h,label:h[o],value:p})}else{var g=h[c];g===void 0&&r&&(g=h.label),i.push({key:$K(h,i.length),group:!0,data:h,label:g}),u(h[l],!0)}})}return u(e,!1),i}function nI(e){var t=ae({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return zr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var x4e=function(t,n,r){if(!n||!n.length)return null;var i=!1,a=function s(l,c){var u=fq(c),f=u[0],d=u.slice(1);if(!f)return[l];var h=l.split(f);return i=i||h.length>1,h.reduce(function(p,g){return[].concat(Ne(p),Ne(s(g,d)))},[]).filter(Boolean)},o=a(t,n);return i?typeof r!="undefined"?o.slice(0,r):o:null},rI=b.createContext(null);function S4e(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return b.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var a=i.label,o=i.value;return["number","string"].includes(Bt(a))?a:o}).join(", ")),n.length>r?", ...":null)}var w4e=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],C4e=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],iI=function(t){return t==="tags"||t==="multiple"},E4e=b.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,a=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,d=e.emptyOptions,h=e.notFoundContent,p=h===void 0?"Not Found":h,g=e.onClear,v=e.mode,m=e.disabled,y=e.loading,x=e.getInputElement,S=e.getRawInputElement,w=e.open,C=e.defaultOpen,E=e.onDropdownVisibleChange,O=e.activeValue,$=e.onActiveValueChange,P=e.activeDescendantId,M=e.searchValue,k=e.autoClearSearchValue,T=e.onSearch,R=e.onSearchSplit,A=e.tokenSeparators,N=e.allowClear,L=e.prefix,j=e.suffixIcon,F=e.clearIcon,B=e.OptionList,D=e.animation,z=e.transitionName,W=e.dropdownStyle,q=e.dropdownClassName,H=e.dropdownMatchSelectWidth,U=e.dropdownRender,G=e.dropdownAlign,K=e.placement,X=e.builtinPlacements,Q=e.getPopupContainer,ee=e.showAction,ne=ee===void 0?[]:ee,te=e.onFocus,ie=e.onBlur,J=e.onKeyUp,le=e.onKeyDown,oe=e.onMouseDown,re=Vt(e,w4e),se=iI(v),ge=(o!==void 0?o:se)||v==="combobox",de=ae({},re);C4e.forEach(function(en){delete de[en]}),c==null||c.forEach(function(en){delete de[en]});var pe=b.useState(!1),ue=he(pe,2),Se=ue[0],Oe=ue[1];b.useEffect(function(){Oe(eE())},[]);var _e=b.useRef(null),Te=b.useRef(null),je=b.useRef(null),Be=b.useRef(null),Pe=b.useRef(null),He=b.useRef(!1),Ue=Tke(),ke=he(Ue,3),Ce=ke[0],Re=ke[1],Ae=ke[2];b.useImperativeHandle(t,function(){var en,Ct;return{focus:(en=Be.current)===null||en===void 0?void 0:en.focus,blur:(Ct=Be.current)===null||Ct===void 0?void 0:Ct.blur,scrollTo:function(Vn){var jt;return(jt=Pe.current)===null||jt===void 0?void 0:jt.scrollTo(Vn)},nativeElement:_e.current||Te.current}});var $e=b.useMemo(function(){var en;if(v!=="combobox")return M;var Ct=(en=u[0])===null||en===void 0?void 0:en.value;return typeof Ct=="string"||typeof Ct=="number"?String(Ct):""},[M,v,u]),Ve=v==="combobox"&&typeof x=="function"&&x()||null,et=typeof S=="function"&&S(),Tt=ef(Te,et==null||(n=et.props)===null||n===void 0?void 0:n.ref),Mt=b.useState(!1),at=he(Mt,2),ht=at[0],Ot=at[1];Nn(function(){Ot(!0)},[]);var vt=Yn(!1,{defaultValue:C,value:w}),$t=he(vt,2),gt=$t[0],st=$t[1],tt=ht?gt:!1,ot=!p&&d;(m||ot&&tt&&v==="combobox")&&(tt=!1);var Pt=ot?!1:tt,Xe=b.useCallback(function(en){var Ct=en!==void 0?en:!tt;m||(st(Ct),tt!==Ct&&(E==null||E(Ct)))},[m,tt,st,E]),Je=b.useMemo(function(){return(A||[]).some(function(en){return[` + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},dke=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},GG=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return _n(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},KG=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ue(e.paddingMD)} ${ue(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ue(e.padding)} ${ue(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ue(e.paddingXS)} ${ue(e.padding)}`:0,footerBorderTop:e.wireframe?`${ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ue(e.borderRadiusLG)} ${ue(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ue(e.padding*2)} ${ue(e.padding*2)} ${ue(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),YG=tr("Modal",e=>{const t=GG(e);return[fke(t),dke(t),UG(t),Ug(t,"zoom")]},KG,{unitless:{titleLineHeight:!0}});var hke=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 i=0,r=Object.getOwnPropertySymbols(e);i{YR={x:e.pageX,y:e.pageY},setTimeout(()=>{YR=null},100)};WMe()&&document.documentElement.addEventListener("click",pke,!0);const XG=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:a}=b.useContext(At),o=W=>{const{onCancel:q}=e;q==null||q(W)},s=W=>{const{onOk:q}=e;q==null||q(W)},{prefixCls:l,className:c,rootClassName:u,open:f,wrapClassName:d,centered:h,getContainer:p,focusTriggerAfterClose:v=!0,style:g,visible:m,width:y=520,footer:x,classNames:S,styles:w,children:C,loading:E}=e,O=hke(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=r("modal",l),P=r(),M=Ti($),[k,T,R]=YG($,M),A=me(d,{[`${$}-centered`]:!!h,[`${$}-wrap-rtl`]:i==="rtl"}),N=x!==null&&!E?b.createElement(VG,Object.assign({},e,{onOk:s,onCancel:o})):null,[L,j,F]=jG(YC(e),YC(a),{closable:!0,closeIcon:b.createElement(Md,{className:`${$}-close-icon`}),closeIconRender:W=>WG($,W)}),B=uke(`.${$}-content`),[D,z]=of("Modal",O.zIndex);return k(b.createElement(cf,{form:!0,space:!0},b.createElement(LC.Provider,{value:z},b.createElement(_R,Object.assign({width:y},O,{zIndex:D,getContainer:p===void 0?n:p,prefixCls:$,rootClassName:me(T,u,R,M),footer:N,visible:f!=null?f:m,mousePosition:(t=O.mousePosition)!==null&&t!==void 0?t:YR,onClose:o,closable:L&&{disabled:F,closeIcon:j},closeIcon:j,focusTriggerAfterClose:v,transitionName:wl(P,"zoom",e.transitionName),maskTransitionName:wl(P,"fade",e.maskTransitionName),className:me(T,c,a==null?void 0:a.className),style:Object.assign(Object.assign({},a==null?void 0:a.style),g),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),S),{wrapper:me(A,S==null?void 0:S.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),w),panelRef:B}),E?b.createElement(Rd,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):C))))},vke=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},bc()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ue(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${ue(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, + ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},gke=Dg(["Modal","confirm"],e=>{const t=GG(e);return[vke(t)]},KG,{order:-1e3});var mke=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 i=0,r=Object.getOwnPropertySymbols(e);iy,Ne(Object.values(y))),S=b.createElement(b.Fragment,null,b.createElement(JU,null),b.createElement(eG,null)),w=e.title!==void 0&&e.title!==null,C=`${a}-body`;return b.createElement("div",{className:`${a}-body-wrapper`},b.createElement("div",{className:me(C,{[`${C}-has-title`]:w})},f,b.createElement("div",{className:`${a}-paragraph`},w&&b.createElement("span",{className:`${a}-title`},e.title),b.createElement("div",{className:`${a}-content`},e.content))),l===void 0||typeof l=="function"?b.createElement(QU,{value:x},b.createElement("div",{className:`${a}-btns`},typeof l=="function"?l(S,{OkBtn:eG,CancelBtn:JU}):S)):l,b.createElement(gke,{prefixCls:t}))}const yke=e=>{const{close:t,zIndex:n,afterClose:r,open:i,keyboard:a,centered:o,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:f,rootPrefixCls:d,bodyStyle:h,closable:p=!1,closeIcon:v,modalRender:g,focusTriggerAfterClose:m,onConfirm:y,styles:x}=e,S=`${u}-confirm`,w=e.width||416,C=e.style||{},E=e.mask===void 0?!0:e.mask,O=e.maskClosable===void 0?!1:e.maskClosable,$=me(S,`${S}-${e.type}`,{[`${S}-rtl`]:c==="rtl"},e.className),[,P]=to(),M=b.useMemo(()=>n!==void 0?n:P.zIndexPopupBase+PU,[n,P]);return b.createElement(XG,{prefixCls:u,className:$,wrapClassName:me({[`${S}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),y==null||y(!1)},open:i,title:"",footer:null,transitionName:wl(d||"","zoom",e.transitionName),maskTransitionName:wl(d||"","fade",e.maskTransitionName),mask:E,maskClosable:O,style:C,styles:Object.assign({body:h,mask:l},x),width:w,zIndex:M,afterClose:r,keyboard:a,centered:o,getContainer:s,closable:p,closeIcon:v,modalRender:g,focusTriggerAfterClose:m},b.createElement(ZG,Object.assign({},e,{confirmPrefixCls:S})))},QG=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return b.createElement(Sc,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},b.createElement(yke,Object.assign({},e)))},yp=[];let JG="";function eK(){return JG}const bke=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:a}=e,o=hq(),s=b.useContext(At),l=eK()||s.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),we.createElement(QG,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a!=null?a:s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:o,getContainer:u}))};function q1(e){const t=lU(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,a;function o(){for(var u,f=arguments.length,d=new Array(f),h=0;hg==null?void 0:g.triggerCancel)){var v;(u=e.onCancel)===null||u===void 0||(v=u).call.apply(v,[e,()=>{}].concat(Ne(d.slice(1))))}for(let g=0;g{const f=t.getPrefixCls(void 0,eK()),d=t.getIconPrefixCls(),h=t.getTheme(),p=we.createElement(bke,Object.assign({},u));a=nR()(we.createElement(Sc,{prefixCls:f,iconPrefixCls:d,theme:h},t.holderRender?t.holderRender(p):p),n)})}function l(){for(var u=arguments.length,f=new Array(u),d=0;d{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,f)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),yp.push(l),{destroy:l,update:c}}function tK(e){return Object.assign(Object.assign({},e),{type:"warning"})}function nK(e){return Object.assign(Object.assign({},e),{type:"info"})}function rK(e){return Object.assign(Object.assign({},e),{type:"success"})}function iK(e){return Object.assign(Object.assign({},e),{type:"error"})}function aK(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function xke(e){let{rootPrefixCls:t}=e;JG=t}var Ske=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,{afterClose:r,config:i}=e,a=Ske(e,["afterClose","config"]);const[o,s]=b.useState(!0),[l,c]=b.useState(i),{direction:u,getPrefixCls:f}=b.useContext(At),d=f("modal"),h=f(),p=()=>{var y;r(),(y=l.afterClose)===null||y===void 0||y.call(l)},v=function(){var y;s(!1);for(var x=arguments.length,S=new Array(x),w=0;wO==null?void 0:O.triggerCancel)){var E;(y=l.onCancel)===null||y===void 0||(E=y).call.apply(E,[l,()=>{}].concat(Ne(S.slice(1))))}};b.useImperativeHandle(t,()=>({destroy:v,update:y=>{c(x=>Object.assign(Object.assign({},x),y))}}));const g=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[m]=Zo("Modal",_o.Modal);return b.createElement(QG,Object.assign({prefixCls:d,rootPrefixCls:h},l,{close:v,open:o,afterClose:p,okText:l.okText||(g?m==null?void 0:m.okText:m==null?void 0:m.justOkText),direction:l.direction||u,cancelText:l.cancelText||(m==null?void 0:m.cancelText)},a))},Cke=b.forwardRef(wke);let oK=0;const Eke=b.memo(b.forwardRef((e,t)=>{const[n,r]=L$e();return b.useImperativeHandle(t,()=>({patchElement:r}),[]),b.createElement(b.Fragment,null,n)}));function Oke(){const e=b.useRef(null),[t,n]=b.useState([]);b.useEffect(()=>{t.length&&(Ne(t).forEach(o=>{o()}),n([]))},[t]);const r=b.useCallback(a=>function(s){var l;oK+=1;const c=b.createRef();let u;const f=new Promise(g=>{u=g});let d=!1,h;const p=b.createElement(Cke,{key:`modal-${oK}`,config:a(s),ref:c,afterClose:()=>{h==null||h()},isSilent:()=>d,onConfirm:g=>{u(g)}});return h=(l=e.current)===null||l===void 0?void 0:l.patchElement(p),h&&yp.push(h),{destroy:()=>{function g(){var m;(m=c.current)===null||m===void 0||m.destroy()}c.current?g():n(m=>[].concat(Ne(m),[g]))},update:g=>{function m(){var y;(y=c.current)===null||y===void 0||y.update(g)}c.current?m():n(y=>[].concat(Ne(y),[m]))},then:g=>(d=!0,f.then(g))}},[]);return[b.useMemo(()=>({info:r(nK),success:r(rK),error:r(iK),warning:r(tK),confirm:r(aK)}),[]),b.createElement(Eke,{key:"modal-holder",ref:e})]}const _ke=we.createContext({});function sK(e){return t=>b.createElement(Sc,{theme:{token:{motion:!1,zIndexPopupBase:0}}},b.createElement(e,Object.assign({},t)))}const U1=(e,t,n,r)=>sK(a=>{const{prefixCls:o,style:s}=a,l=b.useRef(null),[c,u]=b.useState(0),[f,d]=b.useState(0),[h,p]=Yn(!1,{value:a.open}),{getPrefixCls:v}=b.useContext(At),g=v(t||"select",o);b.useEffect(()=>{if(p(!0),typeof ResizeObserver!="undefined"){const x=new ResizeObserver(w=>{const C=w[0].target;u(C.offsetHeight+8),d(C.offsetWidth)}),S=setInterval(()=>{var w;const C=n?`.${n(g)}`:`.${g}-dropdown`,E=(w=l.current)===null||w===void 0?void 0:w.querySelector(C);E&&(clearInterval(S),x.observe(E))},10);return()=>{clearInterval(S),x.disconnect()}}},[]);let m=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current});r&&(m=r(m));const y={paddingBottom:c,position:"relative",minWidth:f};return b.createElement("div",{ref:l,style:y},b.createElement(e,Object.assign({},m)))}),QC=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var JC=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,a=t.children,o=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return b.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),o==null||o(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:b.createElement("span",{className:me(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},a))},$ke=function(t,n,r,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=we.useMemo(function(){if(Bt(i)==="object")return i.clearIcon;if(a)return a},[i,a]),u=we.useMemo(function(){return!!(!o&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,o,r.length,s,l]);return{allowClear:u,clearIcon:we.createElement(JC,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},lK=b.createContext(null);function Pke(){return b.useContext(lK)}function Mke(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=b.useState(!1),n=he(t,2),r=n[0],i=n[1],a=b.useRef(null),o=function(){window.clearTimeout(a.current)};b.useEffect(function(){return o},[]);var s=function(c,u){o(),a.current=window.setTimeout(function(){i(c),u&&u()},e)};return[r,s,o]}function cK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=b.useRef(null),n=b.useRef(null);b.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function kke(e,t,n,r){var i=b.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},b.useEffect(function(){function a(o){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function Tke(e){return e&&![Ze.ESC,Ze.SHIFT,Ze.BACKSPACE,Ze.TAB,Ze.WIN_KEY,Ze.ALT,Ze.META,Ze.WIN_KEY_RIGHT,Ze.CTRL,Ze.SEMICOLON,Ze.EQUALS,Ze.CAPS_LOCK,Ze.CONTEXT_MENU,Ze.F1,Ze.F2,Ze.F3,Ze.F4,Ze.F5,Ze.F6,Ze.F7,Ze.F8,Ze.F9,Ze.F10,Ze.F11,Ze.F12].includes(e)}var Rke=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],em=void 0;function Ike(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,d=e.children,h=e.display,p=e.order,v=e.component,g=v===void 0?"div":v,m=qt(e,Rke),y=o&&!h;function x(O){l(c,O)}b.useEffect(function(){return function(){x(null)}},[]);var S=a&&i!==em?a(i):d,w;r||(w={opacity:y?0:1,height:y?0:em,overflowY:y?"hidden":em,order:o?p:em,pointerEvents:y?"none":em,position:y?"absolute":em});var C={};y&&(C["aria-hidden"]=!0);var E=b.createElement(g,Le({className:me(!r&&n,u),style:ae(ae({},w),f)},C,m,{ref:t}),S);return o&&(E=b.createElement(vo,{onResize:function($){var P=$.offsetWidth;x(P)},disabled:s},E)),E}var G1=b.forwardRef(Ike);G1.displayName="Item";function Ake(e){if(typeof MessageChannel=="undefined")Sn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Nke(){var e=b.useRef(null),t=function(r){e.current||(e.current=[],Ake(function(){ys.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function K1(e,t){var n=b.useState(t),r=he(n,2),i=r[0],a=r[1],o=On(function(s){e(function(){a(s)})});return[i,o]}var eE=we.createContext(null),Lke=["component"],jke=["className"],Dke=["className"],Fke=function(t,n){var r=b.useContext(eE);if(!r){var i=t.component,a=i===void 0?"div":i,o=qt(t,Lke);return b.createElement(a,Le({},o,{ref:n}))}var s=r.className,l=qt(r,jke),c=t.className,u=qt(t,Dke);return b.createElement(eE.Provider,{value:null},b.createElement(G1,Le({ref:n,className:me(s,c)},l,u)))},uK=b.forwardRef(Fke);uK.displayName="RawItem";var Bke=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],fK="responsive",dK="invalidate";function zke(e){return"+ ".concat(e.length," ...")}function Hke(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,a=i===void 0?[]:i,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,d=e.style,h=e.className,p=e.maxCount,v=e.renderRest,g=e.renderRawRest,m=e.suffix,y=e.component,x=y===void 0?"div":y,S=e.itemComponent,w=e.onVisibleChange,C=qt(e,Bke),E=f==="full",O=Nke(),$=K1(O,null),P=he($,2),M=P[0],k=P[1],T=M||0,R=K1(O,new Map),A=he(R,2),N=A[0],L=A[1],j=K1(O,0),F=he(j,2),B=F[0],D=F[1],z=K1(O,0),W=he(z,2),q=W[0],H=W[1],U=K1(O,0),G=he(U,2),K=G[0],X=G[1],Q=b.useState(null),ee=he(Q,2),ne=ee[0],te=ee[1],ie=b.useState(null),J=he(ie,2),le=J[0],oe=J[1],re=b.useMemo(function(){return le===null&&E?Number.MAX_SAFE_INTEGER:le||0},[le,M]),se=b.useState(!1),ge=he(se,2),de=ge[0],pe=ge[1],fe="".concat(r,"-item"),xe=Math.max(B,q),Oe=p===fK,_e=a.length&&Oe,Te=p===dK,Fe=_e||typeof p=="number"&&a.length>p,Be=b.useMemo(function(){var wt=a;return _e?M===null&&E?wt=a:wt=a.slice(0,Math.min(a.length,T/u)):typeof p=="number"&&(wt=a.slice(0,p)),wt},[a,u,M,p,_e]),Pe=b.useMemo(function(){return _e?a.slice(re+1):a.slice(Be.length)},[a,Be,_e,re]),ze=b.useCallback(function(wt,st){var nt;return typeof l=="function"?l(wt):(nt=l&&(wt==null?void 0:wt[l]))!==null&&nt!==void 0?nt:st},[l]),Ue=b.useCallback(o||function(wt){return wt},[o]);function ke(wt,st,nt){le===wt&&(st===void 0||st===ne)||(oe(wt),nt||(pe(wtT){ke(lt-1,wt-Mt-K+q);break}}m&&He(0)+K>T&&te(null)}},[T,N,q,K,ze,Be]);var ot=de&&!!Pe.length,Ot={};ne!==null&&_e&&(Ot={position:"absolute",left:ne,top:0});var Wt={prefixCls:fe,responsive:_e,component:S,invalidate:Te},et=s?function(wt,st){var nt=ze(wt,st);return b.createElement(eE.Provider,{key:nt,value:ae(ae({},Wt),{},{order:st,item:wt,itemKey:nt,registerSize:Ie,display:st<=re})},s(wt,st))}:function(wt,st){var nt=ze(wt,st);return b.createElement(G1,Le({},Wt,{order:st,key:nt,item:wt,renderItem:Ue,itemKey:nt,registerSize:Ie,display:st<=re}))},ht,Et={order:ot?re:Number.MAX_SAFE_INTEGER,className:"".concat(fe,"-rest"),registerSize:Ae,display:ot};if(g)g&&(ht=b.createElement(eE.Provider,{value:ae(ae({},Wt),Et)},g(Pe)));else{var gt=v||zke;ht=b.createElement(G1,Le({},Wt,Et),typeof gt=="function"?gt(Pe):gt)}var Pt=b.createElement(x,Le({className:me(!Te&&r,h),style:d,ref:t},C),Be.map(et),Fe?ht:null,m&&b.createElement(G1,Le({},Wt,{responsive:Oe,responsiveDisabled:!_e,order:re,className:"".concat(fe,"-suffix"),registerSize:$e,display:!0,style:Ot}),m));return Oe&&(Pt=b.createElement(vo,{onResize:Ee,disabled:!_e},Pt)),Pt}var wc=b.forwardRef(Hke);wc.displayName="Overflow",wc.Item=uK,wc.RESPONSIVE=fK,wc.INVALIDATE=dK;var Wke=function(t,n){var r,i=t.prefixCls,a=t.id,o=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,d=t.activeDescendantId,h=t.value,p=t.maxLength,v=t.onKeyDown,g=t.onMouseDown,m=t.onChange,y=t.onPaste,x=t.onCompositionStart,S=t.onCompositionEnd,w=t.open,C=t.attrs,E=o||b.createElement("input",null),O=E,$=O.ref,P=O.props,M=P.onKeyDown,k=P.onChange,T=P.onMouseDown,R=P.onCompositionStart,A=P.onCompositionEnd,N=P.style;return"maxLength"in E.props,E=b.cloneElement(E,ae(ae(ae({type:"search"},P),{},{id:a,ref:po(n,$),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:me("".concat(i,"-selection-search-input"),(r=E)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":w?d:void 0},C),{},{value:f?h:"",maxLength:p,readOnly:!f,unselectable:f?null:"on",style:ae(ae({},N),{},{opacity:f?null:0}),onKeyDown:function(j){v(j),M&&M(j)},onMouseDown:function(j){g(j),T&&T(j)},onChange:function(j){m(j),k&&k(j)},onCompositionStart:function(j){x(j),R&&R(j)},onCompositionEnd:function(j){S(j),A&&A(j)},onPaste:y})),E},hK=b.forwardRef(Wke);function pK(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Vke=typeof window!="undefined"&&window.document&&window.document.documentElement,qke=Vke;function Uke(e){return e!=null}function Gke(e){return!e&&e!==0}function vK(e){return["string","number"].includes(Bt(e))}function gK(e){var t=void 0;return e&&(vK(e.title)?t=e.title.toString():vK(e.label)&&(t=e.label.toString())),t}function Kke(e,t){qke?b.useLayoutEffect(e,t):b.useEffect(e,t)}function Yke(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var mK=function(t){t.preventDefault(),t.stopPropagation()},Xke=function(t){var n=t.id,r=t.prefixCls,i=t.values,a=t.open,o=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,d=t.showSearch,h=t.autoFocus,p=t.autoComplete,v=t.activeDescendantId,g=t.tabIndex,m=t.removeIcon,y=t.maxTagCount,x=t.maxTagTextLength,S=t.maxTagPlaceholder,w=S===void 0?function(te){return"+ ".concat(te.length," ...")}:S,C=t.tagRender,E=t.onToggleOpen,O=t.onRemove,$=t.onInputChange,P=t.onInputPaste,M=t.onInputKeyDown,k=t.onInputMouseDown,T=t.onInputCompositionStart,R=t.onInputCompositionEnd,A=b.useRef(null),N=b.useState(0),L=he(N,2),j=L[0],F=L[1],B=b.useState(!1),D=he(B,2),z=D[0],W=D[1],q="".concat(r,"-selection"),H=a||f==="multiple"&&s===!1||f==="tags"?o:"",U=f==="tags"||f==="multiple"&&s===!1||d&&(a||z);Kke(function(){F(A.current.scrollWidth)},[H]);var G=function(ie,J,le,oe,re){return b.createElement("span",{title:gK(ie),className:me("".concat(q,"-item"),Z({},"".concat(q,"-item-disabled"),le))},b.createElement("span",{className:"".concat(q,"-item-content")},J),oe&&b.createElement(JC,{className:"".concat(q,"-item-remove"),onMouseDown:mK,onClick:re,customizeIcon:m},"×"))},K=function(ie,J,le,oe,re,se){var ge=function(pe){mK(pe),E(!a)};return b.createElement("span",{onMouseDown:ge},C({label:J,value:ie,disabled:le,closable:oe,onClose:re,isMaxTag:!!se}))},X=function(ie){var J=ie.disabled,le=ie.label,oe=ie.value,re=!u&&!J,se=le;if(typeof x=="number"&&(typeof le=="string"||typeof le=="number")){var ge=String(se);ge.length>x&&(se="".concat(ge.slice(0,x),"..."))}var de=function(fe){fe&&fe.stopPropagation(),O(ie)};return typeof C=="function"?K(oe,se,J,re,de):G(ie,se,J,re,de)},Q=function(ie){var J=typeof w=="function"?w(ie):w;return typeof C=="function"?K(void 0,J,!1,!1,void 0,!0):G({title:J},J,!1)},ee=b.createElement("div",{className:"".concat(q,"-search"),style:{width:j},onFocus:function(){W(!0)},onBlur:function(){W(!1)}},b.createElement(hK,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:p,editable:U,activeDescendantId:v,value:H,onKeyDown:M,onMouseDown:k,onChange:$,onPaste:P,onCompositionStart:T,onCompositionEnd:R,tabIndex:g,attrs:ta(t,!0)}),b.createElement("span",{ref:A,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},H," ")),ne=b.createElement(wc,{prefixCls:"".concat(q,"-overflow"),data:i,renderItem:X,renderRest:Q,suffix:ee,itemKey:Yke,maxCount:y});return b.createElement("span",{className:"".concat(q,"-wrap")},ne,!i.length&&!H&&b.createElement("span",{className:"".concat(q,"-placeholder")},c))},Zke=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,a=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,d=t.values,h=t.placeholder,p=t.tabIndex,v=t.showSearch,g=t.searchValue,m=t.activeValue,y=t.maxLength,x=t.onInputKeyDown,S=t.onInputMouseDown,w=t.onInputChange,C=t.onInputPaste,E=t.onInputCompositionStart,O=t.onInputCompositionEnd,$=t.title,P=b.useState(!1),M=he(P,2),k=M[0],T=M[1],R=u==="combobox",A=R||v,N=d[0],L=g||"";R&&m&&!k&&(L=m),b.useEffect(function(){R&&T(!1)},[R,m]);var j=u!=="combobox"&&!f&&!v?!1:!!L,F=$===void 0?gK(N):$,B=b.useMemo(function(){return N?null:b.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},h)},[N,j,h,r]);return b.createElement("span",{className:"".concat(r,"-selection-wrap")},b.createElement("span",{className:"".concat(r,"-selection-search")},b.createElement(hK,{ref:a,prefixCls:r,id:i,open:f,inputElement:n,disabled:o,autoFocus:s,autoComplete:l,editable:A,activeDescendantId:c,value:L,onKeyDown:x,onMouseDown:S,onChange:function(z){T(!0),w(z)},onPaste:C,onCompositionStart:E,onCompositionEnd:O,tabIndex:p,attrs:ta(t,!0),maxLength:R?y:void 0})),!R&&N?b.createElement("span",{className:"".concat(r,"-selection-item"),title:F,style:j?{visibility:"hidden"}:void 0},N.label):null,B)},Qke=function(t,n){var r=b.useRef(null),i=b.useRef(!1),a=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,d=t.autoClearSearchValue,h=t.onSearch,p=t.onSearchSubmit,v=t.onToggleOpen,g=t.onInputKeyDown,m=t.domRef;b.useImperativeHandle(n,function(){return{focus:function(F){r.current.focus(F)},blur:function(){r.current.blur()}}});var y=cK(0),x=he(y,2),S=x[0],w=x[1],C=function(F){var B=F.which,D=r.current instanceof HTMLTextAreaElement;!D&&o&&(B===Ze.UP||B===Ze.DOWN)&&F.preventDefault(),g&&g(F),B===Ze.ENTER&&s==="tags"&&!i.current&&!o&&(p==null||p(F.target.value)),!(D&&!o&&~[Ze.UP,Ze.DOWN,Ze.LEFT,Ze.RIGHT].indexOf(B))&&Tke(B)&&v(!0)},E=function(){w(!0)},O=b.useRef(null),$=function(F){h(F,!0,i.current)!==!1&&v(!0)},P=function(){i.current=!0},M=function(F){i.current=!1,s!=="combobox"&&$(F.target.value)},k=function(F){var B=F.target.value;if(c&&O.current&&/[\r\n]/.test(O.current)){var D=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(D,O.current)}O.current=null,$(B)},T=function(F){var B=F.clipboardData,D=B==null?void 0:B.getData("text");O.current=D||""},R=function(F){var B=F.target;if(B!==r.current){var D=document.body.style.msTouchAction!==void 0;D?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(F){var B=S();F.target!==r.current&&!B&&!(s==="combobox"&&u)&&F.preventDefault(),(s!=="combobox"&&(!l||!B)||!o)&&(o&&d!==!1&&h("",!0,!1),v())},N={inputRef:r,onInputKeyDown:C,onInputMouseDown:E,onInputChange:k,onInputPaste:T,onInputCompositionStart:P,onInputCompositionEnd:M},L=s==="multiple"||s==="tags"?b.createElement(Xke,Le({},t,N)):b.createElement(Zke,Le({},t,N));return b.createElement("div",{ref:m,className:"".concat(a,"-selector"),onClick:R,onMouseDown:A},f&&b.createElement("div",{className:"".concat(a,"-prefix")},f),L)},Jke=b.forwardRef(Qke);function e4e(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,s=a.content,l=i.x,c=l===void 0?0:l,u=i.y,f=u===void 0?0:u,d=b.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],v=n.points[1],g=p[0],m=p[1],y=v[0],x=v[1];g===y||!["t","b"].includes(g)?h.top=f:g==="t"?h.top=0:h.bottom=0,m===x||!["l","r"].includes(m)?h.left=c:m==="l"?h.left=0:h.right=0}return b.createElement("div",{ref:d,className:me("".concat(t,"-arrow"),o),style:h},s)}function t4e(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?b.createElement(Jo,Le({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return b.createElement("div",{style:{zIndex:r},className:me("".concat(t,"-mask"),s)})}):null}var n4e=b.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),r4e=b.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,h=e.arrow,p=e.arrowPos,v=e.align,g=e.motion,m=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,S=e.autoDestroy,w=e.portal,C=e.zIndex,E=e.onMouseEnter,O=e.onMouseLeave,$=e.onPointerEnter,P=e.onPointerDownCapture,M=e.ready,k=e.offsetX,T=e.offsetY,R=e.offsetR,A=e.offsetB,N=e.onAlign,L=e.onPrepare,j=e.stretch,F=e.targetWidth,B=e.targetHeight,D=typeof n=="function"?n():n,z=l||c,W=(x==null?void 0:x.length)>0,q=b.useState(!x||!W),H=he(q,2),U=H[0],G=H[1];if(Ln(function(){!U&&W&&o&&G(!0)},[U,W,o]),!U)return null;var K="auto",X={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(M||!l){var Q,ee=v.points,ne=v.dynamicInset||((Q=v._experimental)===null||Q===void 0?void 0:Q.dynamicInset),te=ne&&ee[0][1]==="r",ie=ne&&ee[0][0]==="b";te?(X.right=R,X.left=K):(X.left=k,X.right=K),ie?(X.bottom=A,X.top=K):(X.top=T,X.bottom=K)}var J={};return j&&(j.includes("height")&&B?J.height=B:j.includes("minHeight")&&B&&(J.minHeight=B),j.includes("width")&&F?J.width=F:j.includes("minWidth")&&F&&(J.minWidth=F)),l||(J.pointerEvents="none"),b.createElement(w,{open:y||z,getContainer:x&&function(){return x(o)},autoDestroy:S},b.createElement(t4e,{prefixCls:i,open:l,zIndex:C,mask:d,motion:m}),b.createElement(vo,{onResize:N,disabled:!l},function(le){return b.createElement(Jo,Le({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},g,{onAppearPrepare:L,onEnterPrepare:L,visible:l,onVisibleChanged:function(re){var se;g==null||(se=g.onVisibleChanged)===null||se===void 0||se.call(g,re),s(re)}}),function(oe,re){var se=oe.className,ge=oe.style,de=me(i,se,r);return b.createElement("div",{ref:po(le,t,re),className:de,style:ae(ae(ae(ae({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},X),J),ge),{},{boxSizing:"border-box",zIndex:C},a),onMouseEnter:E,onMouseLeave:O,onPointerEnter:$,onClick:f,onPointerDownCapture:P},h&&b.createElement(e4e,{prefixCls:i,arrow:h,arrowPos:p,align:v}),b.createElement(n4e,{cache:!l&&!u},D))})}))}),i4e=b.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=vc(n),a=b.useCallback(function(s){y1(t,r?r(s):s)},[r]),o=ef(a,bd(n));return i?b.cloneElement(n,{ref:o}):n}),yK=b.createContext(null);function bK(e){return e?Array.isArray(e)?e:[e]:[]}function a4e(e,t,n,r){return b.useMemo(function(){var i=bK(n!=null?n:t),a=bK(r!=null?r:t),o=new Set(i),s=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,n,r])}function o4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function s4e(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Z1(e){return X1(parseFloat(e),0)}function SK(e,t){var n=ae({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Y1(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,f=r.getBoundingClientRect(),d=r.offsetHeight,h=r.clientHeight,p=r.offsetWidth,v=r.clientWidth,g=Z1(s),m=Z1(l),y=Z1(c),x=Z1(u),S=X1(Math.round(f.width/p*1e3)/1e3),w=X1(Math.round(f.height/d*1e3)/1e3),C=(p-v-y-x)*S,E=(d-h-g-m)*w,O=g*w,$=m*w,P=y*S,M=x*S,k=0,T=0;if(a==="clip"){var R=Z1(o);k=R*S,T=R*w}var A=f.x+P-k,N=f.y+O-T,L=A+f.width+2*k-P-M-C,j=N+f.height+2*T-O-$-E;n.left=Math.max(n.left,A),n.top=Math.max(n.top,N),n.right=Math.min(n.right,L),n.bottom=Math.min(n.bottom,j)}}),n}function wK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function CK(e,t){var n=t||[],r=he(n,2),i=r[0],a=r[1];return[wK(e.width,i),wK(e.height,a)]}function EK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function tm(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function Id(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function l4e(e,t,n,r,i,a,o){var s=b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=he(s,2),c=l[0],u=l[1],f=b.useRef(0),d=b.useMemo(function(){return t?XR(t):[]},[t]),h=b.useRef({}),p=function(){h.current={}};e||p();var v=On(function(){if(t&&n&&e){let wn=function(Zi,wa){var Qi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xe,so=q.x+Zi,Hc=q.y+wa,J2=so+te,eS=Hc+ne,tS=Math.max(so,Qi.left),vn=Math.max(Hc,Qi.top),Tn=Math.min(J2,Qi.right),wi=Math.min(eS,Qi.bottom);return Math.max(0,(Tn-tS)*(wi-vn))},zn=function(){Zt=q.y+nt,gn=Zt+ne,an=q.x+st,Mn=an+te};var y,x,S,w,C=t,E=C.ownerDocument,O=Y1(C),$=O.getComputedStyle(C),P=$.width,M=$.height,k=$.position,T=C.style.left,R=C.style.top,A=C.style.right,N=C.style.bottom,L=C.style.overflow,j=ae(ae({},i[r]),a),F=E.createElement("div");(y=C.parentElement)===null||y===void 0||y.appendChild(F),F.style.left="".concat(C.offsetLeft,"px"),F.style.top="".concat(C.offsetTop,"px"),F.style.position=k,F.style.height="".concat(C.offsetHeight,"px"),F.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var B;if(Array.isArray(n))B={x:n[0],y:n[1],width:0,height:0};else{var D,z,W=n.getBoundingClientRect();W.x=(D=W.x)!==null&&D!==void 0?D:W.left,W.y=(z=W.y)!==null&&z!==void 0?z:W.top,B={x:W.x,y:W.y,width:W.width,height:W.height}}var q=C.getBoundingClientRect();q.x=(x=q.x)!==null&&x!==void 0?x:q.left,q.y=(S=q.y)!==null&&S!==void 0?S:q.top;var H=E.documentElement,U=H.clientWidth,G=H.clientHeight,K=H.scrollWidth,X=H.scrollHeight,Q=H.scrollTop,ee=H.scrollLeft,ne=q.height,te=q.width,ie=B.height,J=B.width,le={left:0,top:0,right:U,bottom:G},oe={left:-ee,top:-Q,right:K-ee,bottom:X-Q},re=j.htmlRegion,se="visible",ge="visibleFirst";re!=="scroll"&&re!==ge&&(re=se);var de=re===ge,pe=SK(oe,d),fe=SK(le,d),xe=re===se?fe:pe,Oe=de?fe:xe;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var _e=C.getBoundingClientRect();C.style.left=T,C.style.top=R,C.style.right=A,C.style.bottom=N,C.style.overflow=L,(w=C.parentElement)===null||w===void 0||w.removeChild(F);var Te=X1(Math.round(te/parseFloat(P)*1e3)/1e3),Fe=X1(Math.round(ne/parseFloat(M)*1e3)/1e3);if(Te===0||Fe===0||g1(n)&&!Vg(n))return;var Be=j.offset,Pe=j.targetOffset,ze=CK(q,Be),Ue=he(ze,2),ke=Ue[0],Ee=Ue[1],Ie=CK(B,Pe),Ae=he(Ie,2),$e=Ae[0],He=Ae[1];B.x-=$e,B.y-=He;var ot=j.points||[],Ot=he(ot,2),Wt=Ot[0],et=Ot[1],ht=EK(et),Et=EK(Wt),gt=tm(B,ht),Pt=tm(q,Et),wt=ae({},j),st=gt.x-Pt.x+ke,nt=gt.y-Pt.y+Ee,lt=wn(st,nt),Mt=wn(st,nt,fe),Ye=tm(B,["t","l"]),Je=tm(q,["t","l"]),mt=tm(B,["b","r"]),Tt=tm(q,["b","r"]),Xt=j.overflow||{},Jt=Xt.adjustX,Gt=Xt.adjustY,St=Xt.shiftX,$t=Xt.shiftY,Nt=function(wa){return typeof wa=="boolean"?wa:wa>=0},Zt,gn,an,Mn;zn();var Vt=Nt(Gt),ye=Et[0]===ht[0];if(Vt&&Et[0]==="t"&&(gn>Oe.bottom||h.current.bt)){var Re=nt;ye?Re-=ne-ie:Re=Ye.y-Tt.y-Ee;var Xe=wn(st,Re),Ge=wn(st,Re,fe);Xe>lt||Xe===lt&&(!de||Ge>=Mt)?(h.current.bt=!0,nt=Re,Ee=-Ee,wt.points=[Id(Et,0),Id(ht,0)]):h.current.bt=!1}if(Vt&&Et[0]==="b"&&(Ztlt||vt===lt&&(!de||Lt>=Mt)?(h.current.tb=!0,nt=tt,Ee=-Ee,wt.points=[Id(Et,0),Id(ht,0)]):h.current.tb=!1}var on=Nt(Jt),mn=Et[1]===ht[1];if(on&&Et[1]==="l"&&(Mn>Oe.right||h.current.rl)){var fn=st;mn?fn-=te-J:fn=Ye.x-Tt.x-ke;var bt=wn(fn,nt),Qt=wn(fn,nt,fe);bt>lt||bt===lt&&(!de||Qt>=Mt)?(h.current.rl=!0,st=fn,ke=-ke,wt.points=[Id(Et,1),Id(ht,1)]):h.current.rl=!1}if(on&&Et[1]==="r"&&(anlt||$n===lt&&(!de||In>=Mt)?(h.current.lr=!0,st=sn,ke=-ke,wt.points=[Id(Et,1),Id(ht,1)]):h.current.lr=!1}zn();var or=St===!0?0:St;typeof or=="number"&&(anfe.right&&(st-=Mn-fe.right-ke,B.x>fe.right-or&&(st+=B.x-fe.right+or)));var $r=$t===!0?0:$t;typeof $r=="number"&&(Ztfe.bottom&&(nt-=gn-fe.bottom-Ee,B.y>fe.bottom-$r&&(nt+=B.y-fe.bottom+$r)));var ci=q.x+st,Ni=ci+te,ri=q.y+nt,oa=ri+ne,en=B.x,Ct=en+J,Kt=B.y,Vn=Kt+ie,jt=Math.max(ci,en),Yt=Math.min(Ni,Ct),kn=(jt+Yt)/2,Gn=kn-ci,Cr=Math.max(ri,Kt),Ur=Math.min(oa,Vn),Pr=(Cr+Ur)/2,Si=Pr-ri;o==null||o(t,wt);var Rt=_e.right-q.x-(st+q.width),It=_e.bottom-q.y-(nt+q.height);Te===1&&(st=Math.round(st),Rt=Math.round(Rt)),Fe===1&&(nt=Math.round(nt),It=Math.round(It));var cn={ready:!0,offsetX:st/Te,offsetY:nt/Fe,offsetR:Rt/Te,offsetB:It/Fe,arrowX:Gn/Te,arrowY:Si/Fe,scaleX:Te,scaleY:Fe,align:wt};u(cn)}}),g=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&v()})},m=function(){u(function(x){return ae(ae({},x),{},{ready:!1})})};return Ln(m,[r]),Ln(function(){e||m()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function c4e(e,t,n,r,i){Ln(function(){if(e&&t&&n){let f=function(){r(),i()};var a=t,o=n,s=XR(a),l=XR(o),c=Y1(o),u=new Set([c].concat(Ne(s),Ne(l)));return u.forEach(function(d){d.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(d){d.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function u4e(e,t,n,r,i,a,o,s){var l=b.useRef(e);l.current=e;var c=b.useRef(!1);b.useEffect(function(){if(t&&r&&(!i||a)){var f=function(){c.current=!1},d=function(g){var m;l.current&&!o(((m=g.composedPath)===null||m===void 0||(m=m.call(g))===null||m===void 0?void 0:m[0])||g.target)&&!c.current&&s(!1)},h=Y1(r);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",d,!0),h.addEventListener("contextmenu",d,!0);var p=AC(n);return p&&(p.addEventListener("mousedown",d,!0),p.addEventListener("contextmenu",d,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",d,!0),h.removeEventListener("contextmenu",d,!0),p&&(p.removeEventListener("mousedown",d,!0),p.removeEventListener("contextmenu",d,!0))}}},[t,n,r,i,a]);function u(){c.current=!0}return u}var f4e=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function d4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:GC,t=b.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,d=n.defaultPopupVisible,h=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,v=n.mouseEnterDelay,g=n.mouseLeaveDelay,m=g===void 0?.1:g,y=n.focusDelay,x=n.blurDelay,S=n.mask,w=n.maskClosable,C=w===void 0?!0:w,E=n.getPopupContainer,O=n.forceRender,$=n.autoDestroy,P=n.destroyPopupOnHide,M=n.popup,k=n.popupClassName,T=n.popupStyle,R=n.popupPlacement,A=n.builtinPlacements,N=A===void 0?{}:A,L=n.popupAlign,j=n.zIndex,F=n.stretch,B=n.getPopupClassNameFromAlign,D=n.fresh,z=n.alignPoint,W=n.onPopupClick,q=n.onPopupAlign,H=n.arrow,U=n.popupMotion,G=n.maskMotion,K=n.popupTransitionName,X=n.popupAnimation,Q=n.maskTransitionName,ee=n.maskAnimation,ne=n.className,te=n.getTriggerDOMNode,ie=qt(n,f4e),J=$||P||!1,le=b.useState(!1),oe=he(le,2),re=oe[0],se=oe[1];Ln(function(){se(QC())},[]);var ge=b.useRef({}),de=b.useContext(yK),pe=b.useMemo(function(){return{registerSubPopup:function(Tn,wi){ge.current[Tn]=wi,de==null||de.registerSubPopup(Tn,wi)}}},[de]),fe=uG(),xe=b.useState(null),Oe=he(xe,2),_e=Oe[0],Te=Oe[1],Fe=b.useRef(null),Be=On(function(vn){Fe.current=vn,g1(vn)&&_e!==vn&&Te(vn),de==null||de.registerSubPopup(fe,vn)}),Pe=b.useState(null),ze=he(Pe,2),Ue=ze[0],ke=ze[1],Ee=b.useRef(null),Ie=On(function(vn){g1(vn)&&Ue!==vn&&(ke(vn),Ee.current=vn)}),Ae=b.Children.only(o),$e=(Ae==null?void 0:Ae.props)||{},He={},ot=On(function(vn){var Tn,wi,Ca=Ue;return(Ca==null?void 0:Ca.contains(vn))||((Tn=AC(Ca))===null||Tn===void 0?void 0:Tn.host)===vn||vn===Ca||(_e==null?void 0:_e.contains(vn))||((wi=AC(_e))===null||wi===void 0?void 0:wi.host)===vn||vn===_e||Object.values(ge.current).some(function(Li){return(Li==null?void 0:Li.contains(vn))||vn===Li})}),Ot=xK(a,U,X,K),Wt=xK(a,G,ee,Q),et=b.useState(d||!1),ht=he(et,2),Et=ht[0],gt=ht[1],Pt=f!=null?f:Et,wt=On(function(vn){f===void 0&>(vn)});Ln(function(){gt(f||!1)},[f]);var st=b.useRef(Pt);st.current=Pt;var nt=b.useRef([]);nt.current=[];var lt=On(function(vn){var Tn;wt(vn),((Tn=nt.current[nt.current.length-1])!==null&&Tn!==void 0?Tn:Pt)!==vn&&(nt.current.push(vn),h==null||h(vn))}),Mt=b.useRef(),Ye=function(){clearTimeout(Mt.current)},Je=function(Tn){var wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ye(),wi===0?lt(Tn):Mt.current=setTimeout(function(){lt(Tn)},wi*1e3)};b.useEffect(function(){return Ye},[]);var mt=b.useState(!1),Tt=he(mt,2),Xt=Tt[0],Jt=Tt[1];Ln(function(vn){(!vn||Pt)&&Jt(!0)},[Pt]);var Gt=b.useState(null),St=he(Gt,2),$t=St[0],Nt=St[1],Zt=b.useState(null),gn=he(Zt,2),an=gn[0],Mn=gn[1],Vt=function(Tn){Mn([Tn.clientX,Tn.clientY])},ye=l4e(Pt,_e,z&&an!==null?an:Ue,R,N,L,q),Re=he(ye,11),Xe=Re[0],Ge=Re[1],tt=Re[2],vt=Re[3],Lt=Re[4],on=Re[5],mn=Re[6],fn=Re[7],bt=Re[8],Qt=Re[9],sn=Re[10],$n=a4e(re,l,c,u),In=he($n,2),or=In[0],$r=In[1],ci=or.has("click"),Ni=$r.has("click")||$r.has("contextMenu"),ri=On(function(){Xt||sn()}),oa=function(){st.current&&z&&Ni&&Je(!1)};c4e(Pt,Ue,_e,ri,oa),Ln(function(){ri()},[an,R]),Ln(function(){Pt&&!(N!=null&&N[R])&&ri()},[JSON.stringify(L)]);var en=b.useMemo(function(){var vn=s4e(N,a,Qt,z);return me(vn,B==null?void 0:B(Qt))},[Qt,B,N,a,z]);b.useImperativeHandle(r,function(){return{nativeElement:Ee.current,popupElement:Fe.current,forceAlign:ri}});var Ct=b.useState(0),Kt=he(Ct,2),Vn=Kt[0],jt=Kt[1],Yt=b.useState(0),kn=he(Yt,2),Gn=kn[0],Cr=kn[1],Ur=function(){if(F&&Ue){var Tn=Ue.getBoundingClientRect();jt(Tn.width),Cr(Tn.height)}},Pr=function(){Ur(),ri()},Si=function(Tn){Jt(!1),sn(),p==null||p(Tn)},Rt=function(){return new Promise(function(Tn){Ur(),Nt(function(){return Tn})})};Ln(function(){$t&&(sn(),$t(),Nt(null))},[$t]);function It(vn,Tn,wi,Ca){He[vn]=function(Li){var sy;Ca==null||Ca(Li),Je(Tn,wi);for(var nS=arguments.length,ui=new Array(nS>1?nS-1:0),Fr=1;Fr1?wi-1:0),Li=1;Li1?wi-1:0),Li=1;Li1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=_K(n,!1),o=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(f,d){Array.isArray(f)&&f.forEach(function(h){if(d||!(l in h)){var p=h[s];i.push({key:OK(h,i.length),groupOption:d,data:h,label:h[o],value:p})}else{var v=h[c];v===void 0&&r&&(v=h.label),i.push({key:OK(h,i.length),group:!0,data:h,label:v}),u(h[l],!0)}})}return u(e,!1),i}function QR(e){var t=ae({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return zr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var y4e=function(t,n,r){if(!n||!n.length)return null;var i=!1,a=function s(l,c){var u=lq(c),f=u[0],d=u.slice(1);if(!f)return[l];var h=l.split(f);return i=i||h.length>1,h.reduce(function(p,v){return[].concat(Ne(p),Ne(s(v,d)))},[]).filter(Boolean)},o=a(t,n);return i?typeof r!="undefined"?o.slice(0,r):o:null},JR=b.createContext(null);function b4e(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return b.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var a=i.label,o=i.value;return["number","string"].includes(Bt(a))?a:o}).join(", ")),n.length>r?", ...":null)}var x4e=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],S4e=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],eI=function(t){return t==="tags"||t==="multiple"},w4e=b.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,a=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,d=e.emptyOptions,h=e.notFoundContent,p=h===void 0?"Not Found":h,v=e.onClear,g=e.mode,m=e.disabled,y=e.loading,x=e.getInputElement,S=e.getRawInputElement,w=e.open,C=e.defaultOpen,E=e.onDropdownVisibleChange,O=e.activeValue,$=e.onActiveValueChange,P=e.activeDescendantId,M=e.searchValue,k=e.autoClearSearchValue,T=e.onSearch,R=e.onSearchSplit,A=e.tokenSeparators,N=e.allowClear,L=e.prefix,j=e.suffixIcon,F=e.clearIcon,B=e.OptionList,D=e.animation,z=e.transitionName,W=e.dropdownStyle,q=e.dropdownClassName,H=e.dropdownMatchSelectWidth,U=e.dropdownRender,G=e.dropdownAlign,K=e.placement,X=e.builtinPlacements,Q=e.getPopupContainer,ee=e.showAction,ne=ee===void 0?[]:ee,te=e.onFocus,ie=e.onBlur,J=e.onKeyUp,le=e.onKeyDown,oe=e.onMouseDown,re=qt(e,x4e),se=eI(g),ge=(o!==void 0?o:se)||g==="combobox",de=ae({},re);S4e.forEach(function(en){delete de[en]}),c==null||c.forEach(function(en){delete de[en]});var pe=b.useState(!1),fe=he(pe,2),xe=fe[0],Oe=fe[1];b.useEffect(function(){Oe(QC())},[]);var _e=b.useRef(null),Te=b.useRef(null),Fe=b.useRef(null),Be=b.useRef(null),Pe=b.useRef(null),ze=b.useRef(!1),Ue=Mke(),ke=he(Ue,3),Ee=ke[0],Ie=ke[1],Ae=ke[2];b.useImperativeHandle(t,function(){var en,Ct;return{focus:(en=Be.current)===null||en===void 0?void 0:en.focus,blur:(Ct=Be.current)===null||Ct===void 0?void 0:Ct.blur,scrollTo:function(Vn){var jt;return(jt=Pe.current)===null||jt===void 0?void 0:jt.scrollTo(Vn)},nativeElement:_e.current||Te.current}});var $e=b.useMemo(function(){var en;if(g!=="combobox")return M;var Ct=(en=u[0])===null||en===void 0?void 0:en.value;return typeof Ct=="string"||typeof Ct=="number"?String(Ct):""},[M,g,u]),He=g==="combobox"&&typeof x=="function"&&x()||null,ot=typeof S=="function"&&S(),Ot=ef(Te,ot==null||(n=ot.props)===null||n===void 0?void 0:n.ref),Wt=b.useState(!1),et=he(Wt,2),ht=et[0],Et=et[1];Ln(function(){Et(!0)},[]);var gt=Yn(!1,{defaultValue:C,value:w}),Pt=he(gt,2),wt=Pt[0],st=Pt[1],nt=ht?wt:!1,lt=!p&&d;(m||lt&&nt&&g==="combobox")&&(nt=!1);var Mt=lt?!1:nt,Ye=b.useCallback(function(en){var Ct=en!==void 0?en:!nt;m||(st(Ct),nt!==Ct&&(E==null||E(Ct)))},[m,nt,st,E]),Je=b.useMemo(function(){return(A||[]).some(function(en){return[` `,`\r -`].includes(en)})},[A]),bt=b.useContext(rI)||{},Rt=bt.maxCount,Xt=bt.rawValues,Qt=function(Ct,Kt,Vn){if(!(se&&tI(Rt)&&(Xt==null?void 0:Xt.size)>=Rt)){var jt=!0,Yt=Ct;$==null||$(null);var kn=x4e(Ct,A,tI(Rt)?Rt-Xt.size:void 0),Gn=Vn?null:kn;return v!=="combobox"&&Gn&&(Yt="",R==null||R(Gn),Xe(!1),jt=!1),T&&$e!==Yt&&T(Yt,{source:Kt?"typing":"effect"}),jt}},Gt=function(Ct){!Ct||!Ct.trim()||T(Ct,{source:"submit"})};b.useEffect(function(){!tt&&!se&&v!=="combobox"&&Qt("",!1,!1)},[tt]),b.useEffect(function(){gt&&m&&st(!1),m&&!He.current&&Re(!1)},[m]);var wt=fK(),_t=he(wt,2),Nt=_t[0],Zt=_t[1],vn=b.useRef(!1),an=function(Ct){var Kt=Nt(),Vn=Ct.key,jt=Vn==="Enter";if(jt&&(v!=="combobox"&&Ct.preventDefault(),tt||Xe(!0)),Zt(!!$e),Vn==="Backspace"&&!Kt&&se&&!$e&&u.length){for(var Yt=Ne(u),kn=null,Gn=Yt.length-1;Gn>=0;Gn-=1){var Cr=Yt[Gn];if(!Cr.disabled){Yt.splice(Gn,1),kn=Cr;break}}kn&&f(Yt,{type:"remove",values:[kn]})}for(var Ur=arguments.length,$r=new Array(Ur>1?Ur-1:0),Si=1;Si1?Kt-1:0),jt=1;jt1?kn-1:0),Cr=1;Cr2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(a.current),i.current=!1):(!f||i.current)&&o(),!i.current&&f}};function M4e(e,t,n,r,i,a,o){var s=b.useRef(0),l=b.useRef(null),c=b.useRef(null),u=b.useRef(!1),f=TK(t,n,r,i);function d(y,x){if(bn.cancel(l.current),!f(!1,x)){var S=y;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=x,c.current=x,kK||S.preventDefault(),l.current=bn(function(){var w=u.current?10:1;o(s.current*w,!1),s.current=0})}}function h(y,x){o(x,!0),kK||y.preventDefault()}var p=b.useRef(null),g=b.useRef(null);function v(y){if(e){bn.cancel(g.current),g.current=bn(function(){p.current=null},2);var x=y.deltaX,S=y.deltaY,w=y.shiftKey,C=x,E=S;(p.current==="sx"||!p.current&&w&&S&&!x)&&(C=S,E=0,p.current="sx");var O=Math.abs(C),$=Math.abs(E);p.current===null&&(p.current=a&&O>$?"x":"y"),p.current==="y"?d(y,E):h(y,C)}}function m(y){e&&(u.current=y.detail===c.current)}return[v,m]}function k4e(e,t,n,r){var i=b.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=he(i,2),o=a[0],s=a[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,d=o.get(u),h=o.get(f);if(d===void 0||h===void 0)for(var p=e.length,g=s.length;g0&&arguments[0]!==void 0?arguments[0]:!1;u();var p=function(){s.current.forEach(function(v,m){if(v&&v.offsetParent){var y=m1(v),x=y.offsetHeight,S=getComputedStyle(y),w=S.marginTop,C=S.marginBottom,E=RK(w),O=RK(C),$=x+E+O;l.current.get(m)!==$&&l.current.set(m,$)}}),o(function(v){return v+1})};h?p():c.current=bn(p)}function d(h,p){var g=e(h);s.current.get(g),p?(s.current.set(g,p),f()):s.current.delete(g)}return b.useEffect(function(){return u},[]),[d,f,l.current,a]}var IK=14/15;function I4e(e,t,n){var r=b.useRef(!1),i=b.useRef(0),a=b.useRef(0),o=b.useRef(null),s=b.useRef(null),l,c=function(h){if(r.current){var p=Math.ceil(h.touches[0].pageX),g=Math.ceil(h.touches[0].pageY),v=i.current-p,m=a.current-g,y=Math.abs(v)>Math.abs(m);y?i.current=p:a.current=g;var x=n(y,y?v:m,!1,h);x&&h.preventDefault(),clearInterval(s.current),x&&(s.current=setInterval(function(){y?v*=IK:m*=IK;var S=Math.floor(y?v:m);(!n(y,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(h.touches[0].pageX),a.current=Math.ceil(h.touches[0].pageY),o.current=h.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",u,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},Nn(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}function AK(e){return Math.floor(Math.pow(e,.5))}function sI(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function A4e(e,t,n){b.useEffect(function(){var r=t.current;if(e&&r){var i=!1,a,o,s=function(){bn.cancel(a)},l=function d(){s(),a=bn(function(){n(o),d()})},c=function(h){var p=h;p._virtualHandled||(p._virtualHandled=!0,i=!0)},u=function(){i=!1,s()},f=function(h){if(i){var p=sI(h,!1),g=r.getBoundingClientRect(),v=g.top,m=g.bottom;if(p<=v){var y=v-p;o=-AK(y),l()}else if(p>=m){var x=p-m;o=AK(x),l()}else s()}};return r.addEventListener("mousedown",c),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),function(){r.removeEventListener("mousedown",c),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),s()}}},[e])}var N4e=10;function L4e(e,t,n,r,i,a,o,s){var l=b.useRef(),c=b.useState(null),u=he(c,2),f=u[0],d=u[1];return Nn(function(){if(f&&f.times=0;R-=1){var A=i(t[R]),N=n.get(A);if(N===void 0){y=!0;break}if(T-=N,T<=0)break}switch(w){case"top":S=E-v;break;case"bottom":S=O-m+v;break;default:{var L=e.current.scrollTop,j=L+m;Ej&&(x="bottom")}}S!==null&&o(S),S!==f.lastTop&&(y=!0)}y&&d(ae(ae({},f),{},{times:f.times+1,targetAlign:x,lastTop:S}))}},[f,e.current]),function(h){if(h==null){s();return}if(bn.cancel(l.current),typeof h=="number")o(h);else if(h&&Bt(h)==="object"){var p,g=h.align;"index"in h?p=h.index:p=t.findIndex(function(y){return i(y)===h.key});var v=h.offset,m=v===void 0?0:v;d({times:0,index:p,offset:m,originAlign:g})}}}var NK=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,d=e.style,h=e.thumbStyle,p=b.useState(!1),g=he(p,2),v=g[0],m=g[1],y=b.useState(null),x=he(y,2),S=x[0],w=x[1],C=b.useState(null),E=he(C,2),O=E[0],$=E[1],P=!r,M=b.useRef(),k=b.useRef(),T=b.useState(!1),R=he(T,2),A=R[0],N=R[1],L=b.useRef(),j=function(){clearTimeout(L.current),N(!0),L.current=setTimeout(function(){N(!1)},3e3)},F=a-f||0,B=f-u||0,D=b.useMemo(function(){if(i===0||F===0)return 0;var Q=i/F;return Q*B},[i,F,B]),z=function(ee){ee.stopPropagation(),ee.preventDefault()},W=b.useRef({top:D,dragging:v,pageY:S,startTop:O});W.current={top:D,dragging:v,pageY:S,startTop:O};var q=function(ee){m(!0),w(sI(ee,c)),$(W.current.top),o(),ee.stopPropagation(),ee.preventDefault()};b.useEffect(function(){var Q=function(ie){ie.preventDefault()},ee=M.current,ne=k.current;return ee.addEventListener("touchstart",Q,{passive:!1}),ne.addEventListener("touchstart",q,{passive:!1}),function(){ee.removeEventListener("touchstart",Q),ne.removeEventListener("touchstart",q)}},[]);var H=b.useRef();H.current=F;var U=b.useRef();U.current=B,b.useEffect(function(){if(v){var Q,ee=function(ie){var J=W.current,le=J.dragging,oe=J.pageY,re=J.startTop;bn.cancel(Q);var se=M.current.getBoundingClientRect(),ge=f/(c?se.width:se.height);if(le){var de=(sI(ie,c)-oe)*ge,pe=re;!P&&c?pe-=de:pe+=de;var ue=H.current,Se=U.current,Oe=Se?pe/Se:0,_e=Math.ceil(Oe*ue);_e=Math.max(_e,0),_e=Math.min(_e,ue),Q=bn(function(){l(_e,c)})}},ne=function(){m(!1),s()};return window.addEventListener("mousemove",ee,{passive:!0}),window.addEventListener("touchmove",ee,{passive:!0}),window.addEventListener("mouseup",ne,{passive:!0}),window.addEventListener("touchend",ne,{passive:!0}),function(){window.removeEventListener("mousemove",ee),window.removeEventListener("touchmove",ee),window.removeEventListener("mouseup",ne),window.removeEventListener("touchend",ne),bn.cancel(Q)}}},[v]),b.useEffect(function(){return j(),function(){clearTimeout(L.current)}},[i]),b.useImperativeHandle(t,function(){return{delayHidden:j}});var G="".concat(n,"-scrollbar"),K={position:"absolute",visibility:A?null:"hidden"},X={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(K.height=8,K.left=0,K.right=0,K.bottom=0,X.height="100%",X.width=u,P?X.left=D:X.right=D):(K.width=8,K.top=0,K.bottom=0,P?K.right=0:K.left=0,X.width="100%",X.height=u,X.top=D),b.createElement("div",{ref:M,className:me(G,Z(Z(Z({},"".concat(G,"-horizontal"),c),"".concat(G,"-vertical"),!c),"".concat(G,"-visible"),A)),style:ae(ae({},K),d),onMouseDown:z,onMouseMove:j},b.createElement("div",{ref:k,className:me("".concat(G,"-thumb"),Z({},"".concat(G,"-thumb-moving"),v)),style:ae(ae({},X),h),onMouseDown:q}))}),j4e=20;function LK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,j4e),Math.floor(n)}var D4e=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],F4e=[],B4e={overflowY:"auto",overflowAnchor:"none"};function z4e(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,a=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,d=e.itemKey,h=e.virtual,p=e.direction,g=e.scrollWidth,v=e.component,m=v===void 0?"div":v,y=e.onScroll,x=e.onVirtualScroll,S=e.onVisibleChange,w=e.innerProps,C=e.extraRender,E=e.styles,O=Vt(e,D4e),$=b.useCallback(function(Ut){return typeof d=="function"?d(Ut):Ut==null?void 0:Ut[d]},[d]),P=R4e($),M=he(P,4),k=M[0],T=M[1],R=M[2],A=M[3],N=!!(h!==!1&&a&&o),L=b.useMemo(function(){return Object.values(R.maps).reduce(function(Ut,ye){return Ut+ye},0)},[R.id,R.maps]),j=N&&u&&(Math.max(o*u.length,L)>a||!!g),F=p==="rtl",B=me(r,Z({},"".concat(r,"-rtl"),F),i),D=u||F4e,z=b.useRef(),W=b.useRef(),q=b.useRef(),H=b.useState(0),U=he(H,2),G=U[0],K=U[1],X=b.useState(0),Q=he(X,2),ee=Q[0],ne=Q[1],te=b.useState(!1),ie=he(te,2),J=ie[0],le=ie[1],oe=function(){le(!0)},re=function(){le(!1)},se={getKey:$};function ge(Ut){K(function(ye){var Ie;typeof Ut=="function"?Ie=Ut(ye):Ie=Ut;var We=at(Ie);return z.current.scrollTop=We,We})}var de=b.useRef({start:0,end:D.length}),pe=b.useRef(),ue=P4e(D,$),Se=he(ue,1),Oe=Se[0];pe.current=Oe;var _e=b.useMemo(function(){if(!N)return{scrollHeight:void 0,start:0,end:D.length-1,offset:void 0};if(!j){var Ut;return{scrollHeight:((Ut=W.current)===null||Ut===void 0?void 0:Ut.offsetHeight)||0,start:0,end:D.length-1,offset:void 0}}for(var ye=0,Ie,We,ze,pt=D.length,mt=0;mt=G&&Ie===void 0&&(Ie=mt,We=ye),un>G+a&&ze===void 0&&(ze=mt),ye=un}return Ie===void 0&&(Ie=0,We=0,ze=Math.ceil(a/o)),ze===void 0&&(ze=D.length-1),ze=Math.min(ze+1,D.length-1),{scrollHeight:ye,start:Ie,end:ze,offset:We}},[j,N,G,D,A,a]),Te=_e.scrollHeight,je=_e.start,Be=_e.end,Pe=_e.offset;de.current.start=je,de.current.end=Be;var He=b.useState({width:0,height:a}),Ue=he(He,2),ke=Ue[0],Ce=Ue[1],Re=function(ye){Ce({width:ye.offsetWidth,height:ye.offsetHeight})},Ae=b.useRef(),$e=b.useRef(),Ve=b.useMemo(function(){return LK(ke.width,g)},[ke.width,g]),et=b.useMemo(function(){return LK(ke.height,Te)},[ke.height,Te]),Tt=Te-a,Mt=b.useRef(Tt);Mt.current=Tt;function at(Ut){var ye=Ut;return Number.isNaN(Mt.current)||(ye=Math.min(ye,Mt.current)),ye=Math.max(ye,0),ye}var ht=G<=0,Ot=G>=Tt,vt=ee<=0,$t=ee>=g,gt=TK(ht,Ot,vt,$t),st=function(){return{x:F?-ee:ee,y:G}},tt=b.useRef(st()),ot=_n(function(Ut){if(x){var ye=ae(ae({},st()),Ut);(tt.current.x!==ye.x||tt.current.y!==ye.y)&&(x(ye),tt.current=ye)}});function Pt(Ut,ye){var Ie=Ut;ye?(ys.flushSync(function(){ne(Ie)}),ot()):ge(Ie)}function Xe(Ut){var ye=Ut.currentTarget.scrollTop;ye!==G&&ge(ye),y==null||y(Ut),ot()}var Je=function(ye){var Ie=ye,We=g?g-ke.width:0;return Ie=Math.max(Ie,0),Ie=Math.min(Ie,We),Ie},bt=_n(function(Ut,ye){ye?(ys.flushSync(function(){ne(function(Ie){var We=Ie+(F?-Ut:Ut);return Je(We)})}),ot()):ge(function(Ie){var We=Ie+Ut;return We})}),Rt=M4e(N,ht,Ot,vt,$t,!!g,bt),Xt=he(Rt,2),Qt=Xt[0],Gt=Xt[1];I4e(N,z,function(Ut,ye,Ie,We){var ze=We;return gt(Ut,ye,Ie)?!1:!ze||!ze._virtualHandled?(ze&&(ze._virtualHandled=!0),Qt({preventDefault:function(){},deltaX:Ut?ye:0,deltaY:Ut?0:ye}),!0):!1}),A4e(j,z,function(Ut){ge(function(ye){return ye+Ut})}),Nn(function(){function Ut(Ie){var We=ht&&Ie.detail<0,ze=Ot&&Ie.detail>0;N&&!We&&!ze&&Ie.preventDefault()}var ye=z.current;return ye.addEventListener("wheel",Qt,{passive:!1}),ye.addEventListener("DOMMouseScroll",Gt,{passive:!0}),ye.addEventListener("MozMousePixelScroll",Ut,{passive:!1}),function(){ye.removeEventListener("wheel",Qt),ye.removeEventListener("DOMMouseScroll",Gt),ye.removeEventListener("MozMousePixelScroll",Ut)}},[N,ht,Ot]),Nn(function(){if(g){var Ut=Je(ee);ne(Ut),ot({x:Ut})}},[ke.width,g]);var wt=function(){var ye,Ie;(ye=Ae.current)===null||ye===void 0||ye.delayHidden(),(Ie=$e.current)===null||Ie===void 0||Ie.delayHidden()},_t=L4e(z,D,R,o,$,function(){return T(!0)},ge,wt);b.useImperativeHandle(t,function(){return{nativeElement:q.current,getScrollInfo:st,scrollTo:function(ye){function Ie(We){return We&&Bt(We)==="object"&&("left"in We||"top"in We)}Ie(ye)?(ye.left!==void 0&&ne(Je(ye.left)),_t(ye.top)):_t(ye)}}}),Nn(function(){if(S){var Ut=D.slice(je,Be+1);S(Ut,D)}},[je,Be,D]);var Nt=k4e(D,$,R,o),Zt=C==null?void 0:C({start:je,end:Be,virtual:j,offsetX:ee,offsetY:Pe,rtl:F,getSize:Nt}),vn=_4e(D,je,Be,g,ee,k,f,se),an=null;a&&(an=ae(Z({},l?"height":"maxHeight",a),B4e),N&&(an.overflowY="hidden",g&&(an.overflowX="hidden"),J&&(an.pointerEvents="none")));var Pn={};return F&&(Pn.dir="rtl"),b.createElement("div",Le({ref:q,style:ae(ae({},c),{},{position:"relative"}),className:B},Pn,O),b.createElement(vo,{onResize:Re},b.createElement(m,{className:"".concat(r,"-holder"),style:an,ref:z,onScroll:Xe,onMouseEnter:wt},b.createElement(MK,{prefixCls:r,height:Te,offsetX:ee,offsetY:Pe,scrollWidth:g,onInnerResize:T,ref:W,innerProps:w,rtl:F,extra:Zt},vn))),j&&Te>a&&b.createElement(NK,{ref:Ae,prefixCls:r,scrollOffset:G,scrollRange:Te,rtl:F,onScroll:Pt,onStartMove:oe,onStopMove:re,spinSize:et,containerSize:ke.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb}),j&&g>ke.width&&b.createElement(NK,{ref:$e,prefixCls:r,scrollOffset:ee,scrollRange:g,rtl:F,onScroll:Pt,onStartMove:oe,onStopMove:re,spinSize:Ve,containerSize:ke.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb}))}var rE=b.forwardRef(z4e);rE.displayName="List";function H4e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var W4e=["disabled","title","children","style","className"];function jK(e){return typeof e=="string"||typeof e=="number"}var V4e=function(t,n){var r=kke(),i=r.prefixCls,a=r.id,o=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,d=r.onPopupScroll,h=b.useContext(rI),p=h.maxCount,g=h.flattenOptions,v=h.onActiveValue,m=h.defaultActiveFirstOption,y=h.onSelect,x=h.menuItemSelectedIcon,S=h.rawValues,w=h.fieldNames,C=h.virtual,E=h.direction,O=h.listHeight,$=h.listItemHeight,P=h.optionRender,M="".concat(i,"-item"),k=op(function(){return g},[o,g],function(ee,ne){return ne[0]&&ee[1]!==ne[1]}),T=b.useRef(null),R=b.useMemo(function(){return s&&tI(p)&&(S==null?void 0:S.size)>=p},[s,p,S==null?void 0:S.size]),A=function(ne){ne.preventDefault()},N=function(ne){var te;(te=T.current)===null||te===void 0||te.scrollTo(typeof ne=="number"?{index:ne}:ne)},L=b.useCallback(function(ee){return l==="combobox"?!1:S.has(ee)},[l,Ne(S).toString(),S.size]),j=function(ne){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ie=k.length,J=0;J1&&arguments[1]!==void 0?arguments[1]:!1;z(ne);var ie={source:te?"keyboard":"mouse"},J=k[ne];if(!J){v(null,-1,ie);return}v(J.value,ne,ie)};b.useEffect(function(){W(m!==!1?j(0):-1)},[k.length,c]);var q=b.useCallback(function(ee){return l==="combobox"?String(ee).toLowerCase()===c.toLowerCase():S.has(ee)},[l,c,Ne(S).toString(),S.size]);b.useEffect(function(){var ee=setTimeout(function(){if(!s&&o&&S.size===1){var te=Array.from(S)[0],ie=k.findIndex(function(J){var le=J.data;return le.value===te});ie!==-1&&(W(ie),N(ie))}});if(o){var ne;(ne=T.current)===null||ne===void 0||ne.scrollTo(void 0)}return function(){return clearTimeout(ee)}},[o,c]);var H=function(ne){ne!==void 0&&y(ne,{selected:!S.has(ne)}),s||u(!1)};if(b.useImperativeHandle(n,function(){return{onKeyDown:function(ne){var te=ne.which,ie=ne.ctrlKey;switch(te){case Ze.N:case Ze.P:case Ze.UP:case Ze.DOWN:{var J=0;if(te===Ze.UP?J=-1:te===Ze.DOWN?J=1:H4e()&&ie&&(te===Ze.N?J=1:te===Ze.P&&(J=-1)),J!==0){var le=j(D+J,J);N(le),W(le,!0)}break}case Ze.TAB:case Ze.ENTER:{var oe,re=k[D];re&&!(re!=null&&(oe=re.data)!==null&&oe!==void 0&&oe.disabled)&&!R?H(re.value):H(void 0),o&&ne.preventDefault();break}case Ze.ESC:u(!1),o&&ne.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ne){N(ne)}}}),k.length===0)return b.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(M,"-empty"),onMouseDown:A},f);var U=Object.keys(w).map(function(ee){return w[ee]}),G=function(ne){return ne.label};function K(ee,ne){var te=ee.group;return{role:te?"presentation":"option",id:"".concat(a,"_list_").concat(ne)}}var X=function(ne){var te=k[ne];if(!te)return null;var ie=te.data||{},J=ie.value,le=te.group,oe=ta(ie,!0),re=G(te);return te?b.createElement("div",Le({"aria-label":typeof re=="string"&&!le?re:null},oe,{key:ne},K(te,ne),{"aria-selected":q(J)}),J):null},Q={role:"listbox",id:"".concat(a,"_list")};return b.createElement(b.Fragment,null,C&&b.createElement("div",Le({},Q,{style:{height:0,width:0,overflow:"hidden"}}),X(D-1),X(D),X(D+1)),b.createElement(rE,{itemKey:"key",ref:T,data:k,height:O,itemHeight:$,fullHeight:!1,onMouseDown:A,onScroll:d,virtual:C,direction:E,innerProps:C?null:Q},function(ee,ne){var te=ee.group,ie=ee.groupOption,J=ee.data,le=ee.label,oe=ee.value,re=J.key;if(te){var se,ge=(se=J.title)!==null&&se!==void 0?se:jK(le)?le.toString():void 0;return b.createElement("div",{className:me(M,"".concat(M,"-group"),J.className),title:ge},le!==void 0?le:re)}var de=J.disabled,pe=J.title;J.children;var ue=J.style,Se=J.className,Oe=Vt(J,W4e),_e=Or(Oe,U),Te=L(oe),je=de||!Te&&R,Be="".concat(M,"-option"),Pe=me(M,Be,Se,Z(Z(Z(Z({},"".concat(Be,"-grouped"),ie),"".concat(Be,"-active"),D===ne&&!je),"".concat(Be,"-disabled"),je),"".concat(Be,"-selected"),Te)),He=G(ee),Ue=!x||typeof x=="function"||Te,ke=typeof He=="number"?He:He||oe,Ce=jK(ke)?ke.toString():void 0;return pe!==void 0&&(Ce=pe),b.createElement("div",Le({},ta(_e),C?{}:K(ee,ne),{"aria-selected":q(oe),className:Pe,title:Ce,onMouseMove:function(){D===ne||je||W(ne)},onClick:function(){je||H(oe)},style:ue}),b.createElement("div",{className:"".concat(Be,"-content")},typeof P=="function"?P(ee,{index:ne}):ke),b.isValidElement(x)||Te,Ue&&b.createElement(tE,{className:"".concat(M,"-option-state"),customizeIcon:x,customizeIconProps:{value:oe,disabled:je,isSelected:Te}},Te?"✓":null))}))},q4e=b.forwardRef(V4e);const U4e=function(e,t){var n=b.useRef({values:new Map,options:new Map}),r=b.useMemo(function(){var a=n.current,o=a.values,s=a.options,l=e.map(function(f){if(f.label===void 0){var d;return ae(ae({},f),{},{label:(d=o.get(f.value))===null||d===void 0?void 0:d.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=b.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,i]};function lI(e,t){return gK(e).join("").toUpperCase().includes(t)}const G4e=function(e,t,n,r,i){return b.useMemo(function(){if(!n||r===!1)return e;var a=t.options,o=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(h,p){return i?lI(p[i],u):p[a]?lI(p[o!=="children"?o:"label"],u):lI(p[s],u)},d=c?function(h){return nI(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var p=f(n,d(h));if(p)l.push(h);else{var g=h[a].filter(function(v){return f(n,d(v))});g.length&&l.push(ae(ae({},h),{},Z({},a,g)))}return}f(n,d(h))&&l.push(h)}),l},[e,r,i,n,t])};var DK=0,K4e=Ja();function Y4e(){var e;return K4e?(e=DK,DK+=1):e="TEST_OR_SSR",e}function X4e(e){var t=b.useState(),n=he(t,2),r=n[0],i=n[1];return b.useEffect(function(){i("rc_select_".concat(Y4e()))},[]),e||r}var Z4e=["children","value"],Q4e=["children"];function J4e(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,o=Vt(r,Z4e);return ae({key:n,value:a!==void 0?a:n,children:i},o)}function FK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return da(e).map(function(n,r){if(!b.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,o=i.key,s=i.props,l=s.children,c=Vt(s,Q4e);return t||!a?J4e(n):ae(ae({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},c),{},{options:FK(l)})}).filter(function(n){return n})}var eTe=function(t,n,r,i,a){return b.useMemo(function(){var o=t,s=!t;s&&(o=FK(n));var l=new Map,c=new Map,u=function(h,p,g){g&&typeof g=="string"&&h.set(p[g],p)},f=function d(h){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g0?Xe(Rt.options):Rt.options}):Rt})},ke=b.useMemo(function(){return y?Ue(He):He},[He,y,Q]),Ce=b.useMemo(function(){return b4e(ke,{fieldNames:G,childrenAsData:H})},[ke,G,H]),Re=function(Je){var bt=le(Je);if(ge(bt),B&&(bt.length!==Se.length||bt.some(function(Qt,Gt){var wt;return((wt=Se[Gt])===null||wt===void 0?void 0:wt.value)!==(Qt==null?void 0:Qt.value)}))){var Rt=F?bt:bt.map(function(Qt){return Qt.value}),Xt=bt.map(function(Qt){return nI(Oe(Qt.value))});B(q?Rt:Rt[0],q?Xt:Xt[0])}},Ae=b.useState(null),$e=he(Ae,2),Ve=$e[0],et=$e[1],Tt=b.useState(0),Mt=he(Tt,2),at=Mt[0],ht=Mt[1],Ot=O!==void 0?O:r!=="combobox",vt=b.useCallback(function(Xe,Je){var bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Rt=bt.source,Xt=Rt===void 0?"keyboard":Rt;ht(Je),o&&r==="combobox"&&Xe!==null&&Xt==="keyboard"&&et(String(Xe))},[o,r]),$t=function(Je,bt,Rt){var Xt=function(){var Ut,ye=Oe(Je);return[F?{label:ye==null?void 0:ye[G.label],value:Je,key:(Ut=ye==null?void 0:ye.key)!==null&&Ut!==void 0?Ut:Je}:Je,nI(ye)]};if(bt&&h){var Qt=Xt(),Gt=he(Qt,2),wt=Gt[0],_t=Gt[1];h(wt,_t)}else if(!bt&&p&&Rt!=="clear"){var Nt=Xt(),Zt=he(Nt,2),vn=Zt[0],an=Zt[1];p(vn,an)}},gt=BK(function(Xe,Je){var bt,Rt=q?Je.selected:!0;Rt?bt=q?[].concat(Ne(Se),[Xe]):[Xe]:bt=Se.filter(function(Xt){return Xt.value!==Xe}),Re(bt),$t(Xe,Rt),r==="combobox"?et(""):(!iI||d)&&(ee(""),et(""))}),st=function(Je,bt){Re(Je);var Rt=bt.type,Xt=bt.values;(Rt==="remove"||Rt==="clear")&&Xt.forEach(function(Qt){$t(Qt.value,!1,Rt)})},tt=function(Je,bt){if(ee(Je),et(null),bt.source==="submit"){var Rt=(Je||"").trim();if(Rt){var Xt=Array.from(new Set([].concat(Ne(Te),[Rt])));Re(Xt),$t(Rt,!0),ee("")}return}bt.source!=="blur"&&(r==="combobox"&&Re(Je),u==null||u(Je))},ot=function(Je){var bt=Je;r!=="tags"&&(bt=Je.map(function(Xt){var Qt=ie.get(Xt);return Qt==null?void 0:Qt.value}).filter(function(Xt){return Xt!==void 0}));var Rt=Array.from(new Set([].concat(Ne(Te),Ne(bt))));Re(Rt),Rt.forEach(function(Xt){$t(Xt,!0)})},Pt=b.useMemo(function(){var Xe=P!==!1&&v!==!1;return ae(ae({},ne),{},{flattenOptions:Ce,onActiveValue:vt,defaultActiveFirstOption:Ot,onSelect:gt,menuItemSelectedIcon:$,rawValues:Te,fieldNames:G,virtual:Xe,direction:M,listHeight:T,listItemHeight:A,childrenAsData:H,maxCount:D,optionRender:C})},[D,ne,Ce,vt,Ot,gt,$,Te,G,P,v,M,T,A,H,C]);return b.createElement(rI.Provider,{value:Pt},b.createElement(E4e,Le({},z,{id:W,prefixCls:a,ref:t,omitDomProps:nTe,mode:r,displayValues:_e,onDisplayValuesChange:st,direction:M,searchValue:Q,onSearch:tt,autoClearSearchValue:d,onSearchSplit:ot,dropdownMatchSelectWidth:v,OptionList:q4e,emptyOptions:!Ce.length,activeValue:Ve,activeDescendantId:"".concat(W,"_list_").concat(at)})))}),cI=iTe;cI.Option=oI,cI.OptGroup=aI;function uf(e,t,n){return me({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Id=(e,t)=>t||e,aTe=()=>{const[,e]=eo(),[t]=Zo("Empty"),r=new Un(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(t==null?void 0:t.description)||"Empty"),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(24 31.67)"},b.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),b.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),b.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),b.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),b.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),b.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),b.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},b.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),b.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},oTe=()=>{const[,e]=eo(),[t]=Zo("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:l}=b.useMemo(()=>({borderColor:new Un(n).onBackground(a).toHexShortString(),shadowColor:new Un(r).onBackground(a).toHexShortString(),contentColor:new Un(i).onBackground(a).toHexShortString()}),[n,r,i,a]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(t==null?void 0:t.description)||"Empty"),b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:o},b.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),b.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},sTe=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},lTe=tr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=$n(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[sTe(i)]});var cTe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{className:t,rootClassName:n,prefixCls:r,image:i=zK,description:a,children:o,imageStyle:s,style:l}=e,c=cTe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:f,empty:d}=b.useContext(Lt),h=u("empty",r),[p,g,v]=lTe(h),[m]=Zo("Empty"),y=typeof a!="undefined"?a:m==null?void 0:m.description,x=typeof y=="string"?y:"empty";let S=null;return typeof i=="string"?S=b.createElement("img",{alt:x,src:i}):S=i,p(b.createElement("div",Object.assign({className:me(g,v,h,d==null?void 0:d.className,{[`${h}-normal`]:i===HK,[`${h}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},d==null?void 0:d.style),l)},c),b.createElement("div",{className:`${h}-image`,style:s},S),y&&b.createElement("div",{className:`${h}-description`},y),o&&b.createElement("div",{className:`${h}-footer`},o)))};Ba.PRESENTED_IMAGE_DEFAULT=zK,Ba.PRESENTED_IMAGE_SIMPLE=HK;const uI=e=>{const{componentName:t}=e,{getPrefixCls:n}=b.useContext(Lt),r=n("empty");switch(t){case"Table":case"List":return we.createElement(Ba,{image:Ba.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return we.createElement(Ba,{image:Ba.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return we.createElement(Ba,null)}},yp=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:a,[e]:o}=b.useContext(Lt),s=b.useContext(LG),l=o==null?void 0:o.variant;let c;typeof t!="undefined"?c=t:n===!1?c="borderless":c=(i=(r=s!=null?s:l)!==null&&r!==void 0?r:a)!==null&&i!==void 0?i:"outlined";const u=TOe.includes(c);return[c,u]},uTe=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function fTe(e,t){return e||uTe(t)}const WK=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},dTe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},er(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` +`].includes(en)})},[A]),mt=b.useContext(JR)||{},Tt=mt.maxCount,Xt=mt.rawValues,Jt=function(Ct,Kt,Vn){if(!(se&&ZR(Tt)&&(Xt==null?void 0:Xt.size)>=Tt)){var jt=!0,Yt=Ct;$==null||$(null);var kn=y4e(Ct,A,ZR(Tt)?Tt-Xt.size:void 0),Gn=Vn?null:kn;return g!=="combobox"&&Gn&&(Yt="",R==null||R(Gn),Ye(!1),jt=!1),T&&$e!==Yt&&T(Yt,{source:Kt?"typing":"effect"}),jt}},Gt=function(Ct){!Ct||!Ct.trim()||T(Ct,{source:"submit"})};b.useEffect(function(){!nt&&!se&&g!=="combobox"&&Jt("",!1,!1)},[nt]),b.useEffect(function(){wt&&m&&st(!1),m&&!ze.current&&Ie(!1)},[m]);var St=cK(),$t=he(St,2),Nt=$t[0],Zt=$t[1],gn=b.useRef(!1),an=function(Ct){var Kt=Nt(),Vn=Ct.key,jt=Vn==="Enter";if(jt&&(g!=="combobox"&&Ct.preventDefault(),nt||Ye(!0)),Zt(!!$e),Vn==="Backspace"&&!Kt&&se&&!$e&&u.length){for(var Yt=Ne(u),kn=null,Gn=Yt.length-1;Gn>=0;Gn-=1){var Cr=Yt[Gn];if(!Cr.disabled){Yt.splice(Gn,1),kn=Cr;break}}kn&&f(Yt,{type:"remove",values:[kn]})}for(var Ur=arguments.length,Pr=new Array(Ur>1?Ur-1:0),Si=1;Si1?Kt-1:0),jt=1;jt1?kn-1:0),Cr=1;Cr2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(a.current),i.current=!1):(!f||i.current)&&o(),!i.current&&f}};function $4e(e,t,n,r,i,a,o){var s=b.useRef(0),l=b.useRef(null),c=b.useRef(null),u=b.useRef(!1),f=MK(t,n,r,i);function d(y,x){if(Sn.cancel(l.current),!f(!1,x)){var S=y;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=x,c.current=x,PK||S.preventDefault(),l.current=Sn(function(){var w=u.current?10:1;o(s.current*w,!1),s.current=0})}}function h(y,x){o(x,!0),PK||y.preventDefault()}var p=b.useRef(null),v=b.useRef(null);function g(y){if(e){Sn.cancel(v.current),v.current=Sn(function(){p.current=null},2);var x=y.deltaX,S=y.deltaY,w=y.shiftKey,C=x,E=S;(p.current==="sx"||!p.current&&w&&S&&!x)&&(C=S,E=0,p.current="sx");var O=Math.abs(C),$=Math.abs(E);p.current===null&&(p.current=a&&O>$?"x":"y"),p.current==="y"?d(y,E):h(y,C)}}function m(y){e&&(u.current=y.detail===c.current)}return[g,m]}function P4e(e,t,n,r){var i=b.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=he(i,2),o=a[0],s=a[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,d=o.get(u),h=o.get(f);if(d===void 0||h===void 0)for(var p=e.length,v=s.length;v0&&arguments[0]!==void 0?arguments[0]:!1;u();var p=function(){s.current.forEach(function(m,y){if(m&&m.offsetParent){var x=m1(m),S=x.offsetHeight,w=getComputedStyle(x),C=w.marginTop,E=w.marginBottom,O=kK(C),$=kK(E),P=S+O+$;l.current.get(y)!==P&&l.current.set(y,P)}}),o(function(m){return m+1})};if(h)p();else{c.current+=1;var v=c.current;Promise.resolve().then(function(){v===c.current&&p()})}}function d(h,p){var v=e(h);s.current.get(v),p?(s.current.set(v,p),f()):s.current.delete(v)}return b.useEffect(function(){return u},[]),[d,f,l.current,a]}var TK=14/15;function T4e(e,t,n){var r=b.useRef(!1),i=b.useRef(0),a=b.useRef(0),o=b.useRef(null),s=b.useRef(null),l,c=function(h){if(r.current){var p=Math.ceil(h.touches[0].pageX),v=Math.ceil(h.touches[0].pageY),g=i.current-p,m=a.current-v,y=Math.abs(g)>Math.abs(m);y?i.current=p:a.current=v;var x=n(y,y?g:m,!1,h);x&&h.preventDefault(),clearInterval(s.current),x&&(s.current=setInterval(function(){y?g*=TK:m*=TK;var S=Math.floor(y?g:m);(!n(y,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(h.touches[0].pageX),a.current=Math.ceil(h.touches[0].pageY),o.current=h.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",u,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},Ln(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}function RK(e){return Math.floor(Math.pow(e,.5))}function rI(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function R4e(e,t,n){b.useEffect(function(){var r=t.current;if(e&&r){var i=!1,a,o,s=function(){Sn.cancel(a)},l=function d(){s(),a=Sn(function(){n(o),d()})},c=function(h){var p=h;p._virtualHandled||(p._virtualHandled=!0,i=!0)},u=function(){i=!1,s()},f=function(h){if(i){var p=rI(h,!1),v=r.getBoundingClientRect(),g=v.top,m=v.bottom;if(p<=g){var y=g-p;o=-RK(y),l()}else if(p>=m){var x=p-m;o=RK(x),l()}else s()}};return r.addEventListener("mousedown",c),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),function(){r.removeEventListener("mousedown",c),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),s()}}},[e])}var I4e=10;function A4e(e,t,n,r,i,a,o,s){var l=b.useRef(),c=b.useState(null),u=he(c,2),f=u[0],d=u[1];return Ln(function(){if(f&&f.times=0;R-=1){var A=i(t[R]),N=n.get(A);if(N===void 0){y=!0;break}if(T-=N,T<=0)break}switch(w){case"top":S=E-g;break;case"bottom":S=O-m+g;break;default:{var L=e.current.scrollTop,j=L+m;Ej&&(x="bottom")}}S!==null&&o(S),S!==f.lastTop&&(y=!0)}y&&d(ae(ae({},f),{},{times:f.times+1,targetAlign:x,lastTop:S}))}},[f,e.current]),function(h){if(h==null){s();return}if(Sn.cancel(l.current),typeof h=="number")o(h);else if(h&&Bt(h)==="object"){var p,v=h.align;"index"in h?p=h.index:p=t.findIndex(function(y){return i(y)===h.key});var g=h.offset,m=g===void 0?0:g;d({times:0,index:p,offset:m,originAlign:v})}}}var IK=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,d=e.style,h=e.thumbStyle,p=b.useState(!1),v=he(p,2),g=v[0],m=v[1],y=b.useState(null),x=he(y,2),S=x[0],w=x[1],C=b.useState(null),E=he(C,2),O=E[0],$=E[1],P=!r,M=b.useRef(),k=b.useRef(),T=b.useState(!1),R=he(T,2),A=R[0],N=R[1],L=b.useRef(),j=function(){clearTimeout(L.current),N(!0),L.current=setTimeout(function(){N(!1)},3e3)},F=a-f||0,B=f-u||0,D=b.useMemo(function(){if(i===0||F===0)return 0;var Q=i/F;return Q*B},[i,F,B]),z=function(ee){ee.stopPropagation(),ee.preventDefault()},W=b.useRef({top:D,dragging:g,pageY:S,startTop:O});W.current={top:D,dragging:g,pageY:S,startTop:O};var q=function(ee){m(!0),w(rI(ee,c)),$(W.current.top),o(),ee.stopPropagation(),ee.preventDefault()};b.useEffect(function(){var Q=function(ie){ie.preventDefault()},ee=M.current,ne=k.current;return ee.addEventListener("touchstart",Q,{passive:!1}),ne.addEventListener("touchstart",q,{passive:!1}),function(){ee.removeEventListener("touchstart",Q),ne.removeEventListener("touchstart",q)}},[]);var H=b.useRef();H.current=F;var U=b.useRef();U.current=B,b.useEffect(function(){if(g){var Q,ee=function(ie){var J=W.current,le=J.dragging,oe=J.pageY,re=J.startTop;Sn.cancel(Q);var se=M.current.getBoundingClientRect(),ge=f/(c?se.width:se.height);if(le){var de=(rI(ie,c)-oe)*ge,pe=re;!P&&c?pe-=de:pe+=de;var fe=H.current,xe=U.current,Oe=xe?pe/xe:0,_e=Math.ceil(Oe*fe);_e=Math.max(_e,0),_e=Math.min(_e,fe),Q=Sn(function(){l(_e,c)})}},ne=function(){m(!1),s()};return window.addEventListener("mousemove",ee,{passive:!0}),window.addEventListener("touchmove",ee,{passive:!0}),window.addEventListener("mouseup",ne,{passive:!0}),window.addEventListener("touchend",ne,{passive:!0}),function(){window.removeEventListener("mousemove",ee),window.removeEventListener("touchmove",ee),window.removeEventListener("mouseup",ne),window.removeEventListener("touchend",ne),Sn.cancel(Q)}}},[g]),b.useEffect(function(){return j(),function(){clearTimeout(L.current)}},[i]),b.useImperativeHandle(t,function(){return{delayHidden:j}});var G="".concat(n,"-scrollbar"),K={position:"absolute",visibility:A?null:"hidden"},X={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(K.height=8,K.left=0,K.right=0,K.bottom=0,X.height="100%",X.width=u,P?X.left=D:X.right=D):(K.width=8,K.top=0,K.bottom=0,P?K.right=0:K.left=0,X.width="100%",X.height=u,X.top=D),b.createElement("div",{ref:M,className:me(G,Z(Z(Z({},"".concat(G,"-horizontal"),c),"".concat(G,"-vertical"),!c),"".concat(G,"-visible"),A)),style:ae(ae({},K),d),onMouseDown:z,onMouseMove:j},b.createElement("div",{ref:k,className:me("".concat(G,"-thumb"),Z({},"".concat(G,"-thumb-moving"),g)),style:ae(ae({},X),h),onMouseDown:q}))}),N4e=20;function AK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,N4e),Math.floor(n)}var L4e=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],j4e=[],D4e={overflowY:"auto",overflowAnchor:"none"};function F4e(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,a=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,d=e.itemKey,h=e.virtual,p=e.direction,v=e.scrollWidth,g=e.component,m=g===void 0?"div":g,y=e.onScroll,x=e.onVirtualScroll,S=e.onVisibleChange,w=e.innerProps,C=e.extraRender,E=e.styles,O=qt(e,L4e),$=b.useCallback(function(Vt){return typeof d=="function"?d(Vt):Vt==null?void 0:Vt[d]},[d]),P=k4e($),M=he(P,4),k=M[0],T=M[1],R=M[2],A=M[3],N=!!(h!==!1&&a&&o),L=b.useMemo(function(){return Object.values(R.maps).reduce(function(Vt,ye){return Vt+ye},0)},[R.id,R.maps]),j=N&&u&&(Math.max(o*u.length,L)>a||!!v),F=p==="rtl",B=me(r,Z({},"".concat(r,"-rtl"),F),i),D=u||j4e,z=b.useRef(),W=b.useRef(),q=b.useRef(),H=b.useState(0),U=he(H,2),G=U[0],K=U[1],X=b.useState(0),Q=he(X,2),ee=Q[0],ne=Q[1],te=b.useState(!1),ie=he(te,2),J=ie[0],le=ie[1],oe=function(){le(!0)},re=function(){le(!1)},se={getKey:$};function ge(Vt){K(function(ye){var Re;typeof Vt=="function"?Re=Vt(ye):Re=Vt;var Xe=et(Re);return z.current.scrollTop=Xe,Xe})}var de=b.useRef({start:0,end:D.length}),pe=b.useRef(),fe=_4e(D,$),xe=he(fe,1),Oe=xe[0];pe.current=Oe;var _e=b.useMemo(function(){if(!N)return{scrollHeight:void 0,start:0,end:D.length-1,offset:void 0};if(!j){var Vt;return{scrollHeight:((Vt=W.current)===null||Vt===void 0?void 0:Vt.offsetHeight)||0,start:0,end:D.length-1,offset:void 0}}for(var ye=0,Re,Xe,Ge,tt=D.length,vt=0;vt=G&&Re===void 0&&(Re=vt,Xe=ye),fn>G+a&&Ge===void 0&&(Ge=vt),ye=fn}return Re===void 0&&(Re=0,Xe=0,Ge=Math.ceil(a/o)),Ge===void 0&&(Ge=D.length-1),Ge=Math.min(Ge+1,D.length-1),{scrollHeight:ye,start:Re,end:Ge,offset:Xe}},[j,N,G,D,A,a]),Te=_e.scrollHeight,Fe=_e.start,Be=_e.end,Pe=_e.offset;de.current.start=Fe,de.current.end=Be,b.useLayoutEffect(function(){var Vt=R.getRecord();if(Vt.size===1){var ye=Array.from(Vt)[0],Re=$(D[Fe]);if(Re===ye){var Xe=R.get(ye),Ge=Xe-o;ge(function(tt){return tt+Ge})}}R.resetRecord()},[Te]);var ze=b.useState({width:0,height:a}),Ue=he(ze,2),ke=Ue[0],Ee=Ue[1],Ie=function(ye){Ee({width:ye.offsetWidth,height:ye.offsetHeight})},Ae=b.useRef(),$e=b.useRef(),He=b.useMemo(function(){return AK(ke.width,v)},[ke.width,v]),ot=b.useMemo(function(){return AK(ke.height,Te)},[ke.height,Te]),Ot=Te-a,Wt=b.useRef(Ot);Wt.current=Ot;function et(Vt){var ye=Vt;return Number.isNaN(Wt.current)||(ye=Math.min(ye,Wt.current)),ye=Math.max(ye,0),ye}var ht=G<=0,Et=G>=Ot,gt=ee<=0,Pt=ee>=v,wt=MK(ht,Et,gt,Pt),st=function(){return{x:F?-ee:ee,y:G}},nt=b.useRef(st()),lt=On(function(Vt){if(x){var ye=ae(ae({},st()),Vt);(nt.current.x!==ye.x||nt.current.y!==ye.y)&&(x(ye),nt.current=ye)}});function Mt(Vt,ye){var Re=Vt;ye?(ys.flushSync(function(){ne(Re)}),lt()):ge(Re)}function Ye(Vt){var ye=Vt.currentTarget.scrollTop;ye!==G&&ge(ye),y==null||y(Vt),lt()}var Je=function(ye){var Re=ye,Xe=v?v-ke.width:0;return Re=Math.max(Re,0),Re=Math.min(Re,Xe),Re},mt=On(function(Vt,ye){ye?(ys.flushSync(function(){ne(function(Re){var Xe=Re+(F?-Vt:Vt);return Je(Xe)})}),lt()):ge(function(Re){var Xe=Re+Vt;return Xe})}),Tt=$4e(N,ht,Et,gt,Pt,!!v,mt),Xt=he(Tt,2),Jt=Xt[0],Gt=Xt[1];T4e(N,z,function(Vt,ye,Re,Xe){var Ge=Xe;return wt(Vt,ye,Re)?!1:!Ge||!Ge._virtualHandled?(Ge&&(Ge._virtualHandled=!0),Jt({preventDefault:function(){},deltaX:Vt?ye:0,deltaY:Vt?0:ye}),!0):!1}),R4e(j,z,function(Vt){ge(function(ye){return ye+Vt})}),Ln(function(){function Vt(Re){var Xe=ht&&Re.detail<0,Ge=Et&&Re.detail>0;N&&!Xe&&!Ge&&Re.preventDefault()}var ye=z.current;return ye.addEventListener("wheel",Jt,{passive:!1}),ye.addEventListener("DOMMouseScroll",Gt,{passive:!0}),ye.addEventListener("MozMousePixelScroll",Vt,{passive:!1}),function(){ye.removeEventListener("wheel",Jt),ye.removeEventListener("DOMMouseScroll",Gt),ye.removeEventListener("MozMousePixelScroll",Vt)}},[N,ht,Et]),Ln(function(){if(v){var Vt=Je(ee);ne(Vt),lt({x:Vt})}},[ke.width,v]);var St=function(){var ye,Re;(ye=Ae.current)===null||ye===void 0||ye.delayHidden(),(Re=$e.current)===null||Re===void 0||Re.delayHidden()},$t=A4e(z,D,R,o,$,function(){return T(!0)},ge,St);b.useImperativeHandle(t,function(){return{nativeElement:q.current,getScrollInfo:st,scrollTo:function(ye){function Re(Xe){return Xe&&Bt(Xe)==="object"&&("left"in Xe||"top"in Xe)}Re(ye)?(ye.left!==void 0&&ne(Je(ye.left)),$t(ye.top)):$t(ye)}}}),Ln(function(){if(S){var Vt=D.slice(Fe,Be+1);S(Vt,D)}},[Fe,Be,D]);var Nt=P4e(D,$,R,o),Zt=C==null?void 0:C({start:Fe,end:Be,virtual:j,offsetX:ee,offsetY:Pe,rtl:F,getSize:Nt}),gn=E4e(D,Fe,Be,v,ee,k,f,se),an=null;a&&(an=ae(Z({},l?"height":"maxHeight",a),D4e),N&&(an.overflowY="hidden",v&&(an.overflowX="hidden"),J&&(an.pointerEvents="none")));var Mn={};return F&&(Mn.dir="rtl"),b.createElement("div",Le({ref:q,style:ae(ae({},c),{},{position:"relative"}),className:B},Mn,O),b.createElement(vo,{onResize:Ie},b.createElement(m,{className:"".concat(r,"-holder"),style:an,ref:z,onScroll:Ye,onMouseEnter:St},b.createElement($K,{prefixCls:r,height:Te,offsetX:ee,offsetY:Pe,scrollWidth:v,onInnerResize:T,ref:W,innerProps:w,rtl:F,extra:Zt},gn))),j&&Te>a&&b.createElement(IK,{ref:Ae,prefixCls:r,scrollOffset:G,scrollRange:Te,rtl:F,onScroll:Mt,onStartMove:oe,onStopMove:re,spinSize:ot,containerSize:ke.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb}),j&&v>ke.width&&b.createElement(IK,{ref:$e,prefixCls:r,scrollOffset:ee,scrollRange:v,rtl:F,onScroll:Mt,onStartMove:oe,onStopMove:re,spinSize:He,containerSize:ke.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb}))}var tE=b.forwardRef(F4e);tE.displayName="List";function B4e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var z4e=["disabled","title","children","style","className"];function NK(e){return typeof e=="string"||typeof e=="number"}var H4e=function(t,n){var r=Pke(),i=r.prefixCls,a=r.id,o=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,d=r.onPopupScroll,h=b.useContext(JR),p=h.maxCount,v=h.flattenOptions,g=h.onActiveValue,m=h.defaultActiveFirstOption,y=h.onSelect,x=h.menuItemSelectedIcon,S=h.rawValues,w=h.fieldNames,C=h.virtual,E=h.direction,O=h.listHeight,$=h.listItemHeight,P=h.optionRender,M="".concat(i,"-item"),k=sp(function(){return v},[o,v],function(ee,ne){return ne[0]&&ee[1]!==ne[1]}),T=b.useRef(null),R=b.useMemo(function(){return s&&ZR(p)&&(S==null?void 0:S.size)>=p},[s,p,S==null?void 0:S.size]),A=function(ne){ne.preventDefault()},N=function(ne){var te;(te=T.current)===null||te===void 0||te.scrollTo(typeof ne=="number"?{index:ne}:ne)},L=b.useCallback(function(ee){return l==="combobox"?!1:S.has(ee)},[l,Ne(S).toString(),S.size]),j=function(ne){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ie=k.length,J=0;J1&&arguments[1]!==void 0?arguments[1]:!1;z(ne);var ie={source:te?"keyboard":"mouse"},J=k[ne];if(!J){g(null,-1,ie);return}g(J.value,ne,ie)};b.useEffect(function(){W(m!==!1?j(0):-1)},[k.length,c]);var q=b.useCallback(function(ee){return l==="combobox"?String(ee).toLowerCase()===c.toLowerCase():S.has(ee)},[l,c,Ne(S).toString(),S.size]);b.useEffect(function(){var ee=setTimeout(function(){if(!s&&o&&S.size===1){var te=Array.from(S)[0],ie=k.findIndex(function(J){var le=J.data;return le.value===te});ie!==-1&&(W(ie),N(ie))}});if(o){var ne;(ne=T.current)===null||ne===void 0||ne.scrollTo(void 0)}return function(){return clearTimeout(ee)}},[o,c]);var H=function(ne){ne!==void 0&&y(ne,{selected:!S.has(ne)}),s||u(!1)};if(b.useImperativeHandle(n,function(){return{onKeyDown:function(ne){var te=ne.which,ie=ne.ctrlKey;switch(te){case Ze.N:case Ze.P:case Ze.UP:case Ze.DOWN:{var J=0;if(te===Ze.UP?J=-1:te===Ze.DOWN?J=1:B4e()&&ie&&(te===Ze.N?J=1:te===Ze.P&&(J=-1)),J!==0){var le=j(D+J,J);N(le),W(le,!0)}break}case Ze.TAB:case Ze.ENTER:{var oe,re=k[D];re&&!(re!=null&&(oe=re.data)!==null&&oe!==void 0&&oe.disabled)&&!R?H(re.value):H(void 0),o&&ne.preventDefault();break}case Ze.ESC:u(!1),o&&ne.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ne){N(ne)}}}),k.length===0)return b.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(M,"-empty"),onMouseDown:A},f);var U=Object.keys(w).map(function(ee){return w[ee]}),G=function(ne){return ne.label};function K(ee,ne){var te=ee.group;return{role:te?"presentation":"option",id:"".concat(a,"_list_").concat(ne)}}var X=function(ne){var te=k[ne];if(!te)return null;var ie=te.data||{},J=ie.value,le=te.group,oe=ta(ie,!0),re=G(te);return te?b.createElement("div",Le({"aria-label":typeof re=="string"&&!le?re:null},oe,{key:ne},K(te,ne),{"aria-selected":q(J)}),J):null},Q={role:"listbox",id:"".concat(a,"_list")};return b.createElement(b.Fragment,null,C&&b.createElement("div",Le({},Q,{style:{height:0,width:0,overflow:"hidden"}}),X(D-1),X(D),X(D+1)),b.createElement(tE,{itemKey:"key",ref:T,data:k,height:O,itemHeight:$,fullHeight:!1,onMouseDown:A,onScroll:d,virtual:C,direction:E,innerProps:C?null:Q},function(ee,ne){var te=ee.group,ie=ee.groupOption,J=ee.data,le=ee.label,oe=ee.value,re=J.key;if(te){var se,ge=(se=J.title)!==null&&se!==void 0?se:NK(le)?le.toString():void 0;return b.createElement("div",{className:me(M,"".concat(M,"-group"),J.className),title:ge},le!==void 0?le:re)}var de=J.disabled,pe=J.title;J.children;var fe=J.style,xe=J.className,Oe=qt(J,z4e),_e=Or(Oe,U),Te=L(oe),Fe=de||!Te&&R,Be="".concat(M,"-option"),Pe=me(M,Be,xe,Z(Z(Z(Z({},"".concat(Be,"-grouped"),ie),"".concat(Be,"-active"),D===ne&&!Fe),"".concat(Be,"-disabled"),Fe),"".concat(Be,"-selected"),Te)),ze=G(ee),Ue=!x||typeof x=="function"||Te,ke=typeof ze=="number"?ze:ze||oe,Ee=NK(ke)?ke.toString():void 0;return pe!==void 0&&(Ee=pe),b.createElement("div",Le({},ta(_e),C?{}:K(ee,ne),{"aria-selected":q(oe),className:Pe,title:Ee,onMouseMove:function(){D===ne||Fe||W(ne)},onClick:function(){Fe||H(oe)},style:fe}),b.createElement("div",{className:"".concat(Be,"-content")},typeof P=="function"?P(ee,{index:ne}):ke),b.isValidElement(x)||Te,Ue&&b.createElement(JC,{className:"".concat(M,"-option-state"),customizeIcon:x,customizeIconProps:{value:oe,disabled:Fe,isSelected:Te}},Te?"✓":null))}))},W4e=b.forwardRef(H4e);const V4e=function(e,t){var n=b.useRef({values:new Map,options:new Map}),r=b.useMemo(function(){var a=n.current,o=a.values,s=a.options,l=e.map(function(f){if(f.label===void 0){var d;return ae(ae({},f),{},{label:(d=o.get(f.value))===null||d===void 0?void 0:d.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=b.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,i]};function iI(e,t){return pK(e).join("").toUpperCase().includes(t)}const q4e=function(e,t,n,r,i){return b.useMemo(function(){if(!n||r===!1)return e;var a=t.options,o=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(h,p){return i?iI(p[i],u):p[a]?iI(p[o!=="children"?o:"label"],u):iI(p[s],u)},d=c?function(h){return QR(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var p=f(n,d(h));if(p)l.push(h);else{var v=h[a].filter(function(g){return f(n,d(g))});v.length&&l.push(ae(ae({},h),{},Z({},a,v)))}return}f(n,d(h))&&l.push(h)}),l},[e,r,i,n,t])};var LK=0,U4e=Ja();function G4e(){var e;return U4e?(e=LK,LK+=1):e="TEST_OR_SSR",e}function K4e(e){var t=b.useState(),n=he(t,2),r=n[0],i=n[1];return b.useEffect(function(){i("rc_select_".concat(G4e()))},[]),e||r}var Y4e=["children","value"],X4e=["children"];function Z4e(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,o=qt(r,Y4e);return ae({key:n,value:a!==void 0?a:n,children:i},o)}function jK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return da(e).map(function(n,r){if(!b.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,o=i.key,s=i.props,l=s.children,c=qt(s,X4e);return t||!a?Z4e(n):ae(ae({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},c),{},{options:jK(l)})}).filter(function(n){return n})}var Q4e=function(t,n,r,i,a){return b.useMemo(function(){var o=t,s=!t;s&&(o=jK(n));var l=new Map,c=new Map,u=function(h,p,v){v&&typeof v=="string"&&h.set(p[v],p)},f=function d(h){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v0?Ye(Tt.options):Tt.options}):Tt})},ke=b.useMemo(function(){return y?Ue(ze):ze},[ze,y,Q]),Ee=b.useMemo(function(){return m4e(ke,{fieldNames:G,childrenAsData:H})},[ke,G,H]),Ie=function(Je){var mt=le(Je);if(ge(mt),B&&(mt.length!==xe.length||mt.some(function(Jt,Gt){var St;return((St=xe[Gt])===null||St===void 0?void 0:St.value)!==(Jt==null?void 0:Jt.value)}))){var Tt=F?mt:mt.map(function(Jt){return Jt.value}),Xt=mt.map(function(Jt){return QR(Oe(Jt.value))});B(q?Tt:Tt[0],q?Xt:Xt[0])}},Ae=b.useState(null),$e=he(Ae,2),He=$e[0],ot=$e[1],Ot=b.useState(0),Wt=he(Ot,2),et=Wt[0],ht=Wt[1],Et=O!==void 0?O:r!=="combobox",gt=b.useCallback(function(Ye,Je){var mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Tt=mt.source,Xt=Tt===void 0?"keyboard":Tt;ht(Je),o&&r==="combobox"&&Ye!==null&&Xt==="keyboard"&&ot(String(Ye))},[o,r]),Pt=function(Je,mt,Tt){var Xt=function(){var Vt,ye=Oe(Je);return[F?{label:ye==null?void 0:ye[G.label],value:Je,key:(Vt=ye==null?void 0:ye.key)!==null&&Vt!==void 0?Vt:Je}:Je,QR(ye)]};if(mt&&h){var Jt=Xt(),Gt=he(Jt,2),St=Gt[0],$t=Gt[1];h(St,$t)}else if(!mt&&p&&Tt!=="clear"){var Nt=Xt(),Zt=he(Nt,2),gn=Zt[0],an=Zt[1];p(gn,an)}},wt=DK(function(Ye,Je){var mt,Tt=q?Je.selected:!0;Tt?mt=q?[].concat(Ne(xe),[Ye]):[Ye]:mt=xe.filter(function(Xt){return Xt.value!==Ye}),Ie(mt),Pt(Ye,Tt),r==="combobox"?ot(""):(!eI||d)&&(ee(""),ot(""))}),st=function(Je,mt){Ie(Je);var Tt=mt.type,Xt=mt.values;(Tt==="remove"||Tt==="clear")&&Xt.forEach(function(Jt){Pt(Jt.value,!1,Tt)})},nt=function(Je,mt){if(ee(Je),ot(null),mt.source==="submit"){var Tt=(Je||"").trim();if(Tt){var Xt=Array.from(new Set([].concat(Ne(Te),[Tt])));Ie(Xt),Pt(Tt,!0),ee("")}return}mt.source!=="blur"&&(r==="combobox"&&Ie(Je),u==null||u(Je))},lt=function(Je){var mt=Je;r!=="tags"&&(mt=Je.map(function(Xt){var Jt=ie.get(Xt);return Jt==null?void 0:Jt.value}).filter(function(Xt){return Xt!==void 0}));var Tt=Array.from(new Set([].concat(Ne(Te),Ne(mt))));Ie(Tt),Tt.forEach(function(Xt){Pt(Xt,!0)})},Mt=b.useMemo(function(){var Ye=P!==!1&&g!==!1;return ae(ae({},ne),{},{flattenOptions:Ee,onActiveValue:gt,defaultActiveFirstOption:Et,onSelect:wt,menuItemSelectedIcon:$,rawValues:Te,fieldNames:G,virtual:Ye,direction:M,listHeight:T,listItemHeight:A,childrenAsData:H,maxCount:D,optionRender:C})},[D,ne,Ee,gt,Et,wt,$,Te,G,P,g,M,T,A,H,C]);return b.createElement(JR.Provider,{value:Mt},b.createElement(w4e,Le({},z,{id:W,prefixCls:a,ref:t,omitDomProps:eTe,mode:r,displayValues:_e,onDisplayValuesChange:st,direction:M,searchValue:Q,onSearch:nt,autoClearSearchValue:d,onSearchSplit:lt,dropdownMatchSelectWidth:g,OptionList:W4e,emptyOptions:!Ee.length,activeValue:He,activeDescendantId:"".concat(W,"_list_").concat(et)})))}),aI=nTe;aI.Option=nI,aI.OptGroup=tI;function uf(e,t,n){return me({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ad=(e,t)=>t||e,rTe=()=>{const[,e]=to(),[t]=Zo("Empty"),r=new Un(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(t==null?void 0:t.description)||"Empty"),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(24 31.67)"},b.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),b.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),b.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),b.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),b.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),b.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),b.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},b.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),b.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},iTe=()=>{const[,e]=to(),[t]=Zo("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:l}=b.useMemo(()=>({borderColor:new Un(n).onBackground(a).toHexShortString(),shadowColor:new Un(r).onBackground(a).toHexShortString(),contentColor:new Un(i).onBackground(a).toHexShortString()}),[n,r,i,a]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(t==null?void 0:t.description)||"Empty"),b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:o},b.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),b.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},aTe=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},oTe=tr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=_n(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[aTe(i)]});var sTe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{className:t,rootClassName:n,prefixCls:r,image:i=FK,description:a,children:o,imageStyle:s,style:l}=e,c=sTe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:f,empty:d}=b.useContext(At),h=u("empty",r),[p,v,g]=oTe(h),[m]=Zo("Empty"),y=typeof a!="undefined"?a:m==null?void 0:m.description,x=typeof y=="string"?y:"empty";let S=null;return typeof i=="string"?S=b.createElement("img",{alt:x,src:i}):S=i,p(b.createElement("div",Object.assign({className:me(v,g,h,d==null?void 0:d.className,{[`${h}-normal`]:i===BK,[`${h}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},d==null?void 0:d.style),l)},c),b.createElement("div",{className:`${h}-image`,style:s},S),y&&b.createElement("div",{className:`${h}-description`},y),o&&b.createElement("div",{className:`${h}-footer`},o)))};Ba.PRESENTED_IMAGE_DEFAULT=FK,Ba.PRESENTED_IMAGE_SIMPLE=BK;const oI=e=>{const{componentName:t}=e,{getPrefixCls:n}=b.useContext(At),r=n("empty");switch(t){case"Table":case"List":return we.createElement(Ba,{image:Ba.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return we.createElement(Ba,{image:Ba.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return we.createElement(Ba,null)}},bp=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:a,[e]:o}=b.useContext(At),s=b.useContext(AG),l=o==null?void 0:o.variant;let c;typeof t!="undefined"?c=t:n===!1?c="borderless":c=(i=(r=s!=null?s:l)!==null&&r!==void 0?r:a)!==null&&i!==void 0?i:"outlined";const u=MOe.includes(c);return[c,u]},lTe=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function cTe(e,t){return e||lTe(t)}const zK=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},uTe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},er(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${i}${s}bottomLeft, ${a}${s}bottomLeft - `]:{animationName:VC},[` + `]:{animationName:HC},[` ${i}${s}topLeft, ${a}${s}topLeft, ${i}${s}topRight, ${a}${s}topRight - `]:{animationName:UC},[`${o}${s}bottomLeft`]:{animationName:qC},[` + `]:{animationName:VC},[`${o}${s}bottomLeft`]:{animationName:WC},[` ${o}${s}topLeft, ${o}${s}topRight - `]:{animationName:GC},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},WK(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"},Qo),"&-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},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-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({},WK(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},ru(e,"slide-up"),ru(e,"slide-down"),Vg(e,"move-up"),Vg(e,"move-down")]},VK=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0),o=e.max(e.calc(a).sub(i).equal(),0);return{basePadding:a,containerPadding:o,itemHeight:fe(t),itemLineHeight:fe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},hTe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},qK=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Od()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},pTe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,o=hTe(e),s=t?`${n}-${t}`:"",l=VK(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},qK(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${fe(r)} 0`,lineHeight:fe(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:fe(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:fe(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item, + `]:{animationName:qC},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},zK(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"},Qo),"&-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},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-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({},zK(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},ru(e,"slide-up"),ru(e,"slide-down"),qg(e,"move-up"),qg(e,"move-down")]},HK=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0),o=e.max(e.calc(a).sub(i).equal(),0);return{basePadding:a,containerPadding:o,itemHeight:ue(t),itemLineHeight:ue(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},fTe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},WK=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},_d()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},dTe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,o=fTe(e),s=t?`${n}-${t}`:"",l=HK(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},WK(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ue(r)} 0`,lineHeight:ue(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:ue(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ue(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item, ${n}-prefix + ${n}-selection-wrap - `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:fe(a),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(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function fI(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` + `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:ue(a),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(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function sI(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${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[pTe(e,t),i]}const vTe=e=>{const{componentCls:t}=e,n=$n(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=$n(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[fI(e),fI(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},fI(r,"lg")]};function dI(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},er(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[dTe(e,t),i]}const hTe=e=>{const{componentCls:t}=e,n=_n(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=_n(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[sI(e),sI(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},sI(r,"lg")]};function lI(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},er(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${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:fe(a),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"'}}),[` + `]:{display:"block",padding:0,lineHeight:ue(a),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 ${fe(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:fe(a)}}},[`&${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 ${fe(r)}`,"&:after":{display:"none"}}}}}}}function gTe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[dI(e),dI($n(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${fe(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + `]:{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 ${ue(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:ue(a)}}},[`&${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 ${ue(r)}`,"&:after":{display:"none"}}}}}}}function pTe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[lI(e),lI(_n(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ue(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()}}}},dI($n(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const mTe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:d,controlItemBgHover:h,colorBgContainer:p,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:m,colorPrimaryHover:y,colorPrimary:x,controlOutline:S}=e,w=s*2,C=r*2,E=Math.min(i-w,i-C),O=Math.min(a-w,a-C),$=Math.min(o-w,o-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:d,optionActiveBg:h,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:p,clearBg:p,singleItemHeightLG:o,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:O,multipleItemHeightLG:$,multipleSelectorBgDisabled:v,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:x,activeOutlineColor:S,selectAffixPadding:s}},UK=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${fe(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 ${fe(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},GK=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},UK(e,t))}),yTe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},UK(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),GK(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),GK(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:`${fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),KK=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${fe(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}}}},YK=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},KK(e,t))}),bTe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},KK(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),YK(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),YK(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:`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),xTe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${fe(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:`${fe(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}}}}),STe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},yTe(e)),bTe(e)),xTe(e))}),wTe=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},CTe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ETe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},er(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},wTe(e)),CTe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Qo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Qo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Od()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},OTe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},ETe(e),gTe(e),vTe(e),dTe(e),{[`${t}-rtl`]:{direction:"rtl"}},F1(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},_Te=tr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=$n(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[OTe(r),STe(r)]},mTe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var $Te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},PTe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:$Te}))},hI=b.forwardRef(PTe),MTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},kTe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:MTe}))},J1=b.forwardRef(kTe),TTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},RTe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:TTe}))},tm=b.forwardRef(RTe);function XK(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:o,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:d}=e;const h=n!=null?n:b.createElement(pp,null),p=y=>t===null&&!s&&!f?null:b.createElement(b.Fragment,null,c!==!1&&y,s&&u);let g=null;if(t!==void 0)g=p(t);else if(a)g=p(b.createElement(af,{spin:!0}));else{const y=`${l}-suffix`;g=x=>{let{open:S,showSearch:w}=x;return p(S&&w?b.createElement(tm,{className:y}):b.createElement(J1,{className:y}))}}let v=null;r!==void 0?v=r:o?v=b.createElement(hI,null):v=null;let m=null;return i!==void 0?m=i:m=b.createElement(Pd,null),{clearIcon:h,suffixIcon:g,itemIcon:v,removeIcon:m}}function ITe(e,t){return t!==void 0?t:e!==null}var ATe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:o,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:d,size:h,disabled:p,notFoundContent:g,status:v,builtinPlacements:m,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:S,style:w,allowClear:C,variant:E,dropdownStyle:O,transitionName:$,tagRender:P,maxCount:M,prefix:k}=e,T=ATe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:R,getPrefixCls:A,renderEmpty:N,direction:L,virtual:j,popupMatchSelectWidth:F,popupOverflow:B,select:D}=b.useContext(Lt),[,z]=eo(),W=d!=null?d:z==null?void 0:z.controlHeight,q=A("select",r),H=A(),U=S!=null?S:L,{compactSize:G,compactItemClassnames:K}=kd(q,U),[X,Q]=yp("select",E,i),ee=Ti(q),[ne,te,ie]=_Te(q,ee),J=b.useMemo(()=>{const{mode:Ve}=e;if(Ve!=="combobox")return Ve===ZK?"combobox":Ve},[e.mode]),le=J==="multiple"||J==="tags",oe=ITe(e.suffixIcon,e.showArrow),re=(n=x!=null?x:y)!==null&&n!==void 0?n:F,{status:se,hasFeedback:ge,isFormItemInput:de,feedbackIcon:pe}=b.useContext(Fa),ue=Id(se,v);let Se;g!==void 0?Se=g:J==="combobox"?Se=null:Se=(N==null?void 0:N("Select"))||b.createElement(uI,{componentName:"Select"});const{suffixIcon:Oe,itemIcon:_e,removeIcon:Te,clearIcon:je}=XK(Object.assign(Object.assign({},T),{multiple:le,hasFeedback:ge,feedbackIcon:pe,showSuffixIcon:oe,prefixCls:q,componentName:"Select"})),Be=C===!0?{clearIcon:je}:C,Pe=Or(T,["suffixIcon","itemIcon"]),He=me(l||c,{[`${q}-dropdown-${U}`]:U==="rtl"},o,ie,ee,te),Ue=ja(Ve=>{var et;return(et=h!=null?h:G)!==null&&et!==void 0?et:Ve}),ke=b.useContext(mo),Ce=p!=null?p:ke,Re=me({[`${q}-lg`]:Ue==="large",[`${q}-sm`]:Ue==="small",[`${q}-rtl`]:U==="rtl",[`${q}-${X}`]:Q,[`${q}-in-form-item`]:de},uf(q,ue,ge),K,D==null?void 0:D.className,a,o,ie,ee,te),Ae=b.useMemo(()=>f!==void 0?f:U==="rtl"?"bottomRight":"bottomLeft",[f,U]),[$e]=of("SelectLike",O==null?void 0:O.zIndex);return ne(b.createElement(cI,Object.assign({ref:t,virtual:j,showSearch:D==null?void 0:D.showSearch},Pe,{style:Object.assign(Object.assign({},D==null?void 0:D.style),w),dropdownMatchSelectWidth:re,transitionName:wl(H,"slide-up",$),builtinPlacements:fTe(m,B),listHeight:u,listItemHeight:W,mode:J,prefixCls:q,placement:Ae,direction:U,prefix:k,suffixIcon:Oe,menuItemSelectedIcon:_e,removeIcon:Te,allowClear:Be,notFoundContent:Se,className:Re,getPopupContainer:s||R,dropdownClassName:He,disabled:Ce,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:$e}),maxCount:le?M:void 0,tagRender:le?P:void 0})))},no=b.forwardRef(NTe),LTe=U1(no);no.SECRET_COMBOBOX_MODE_DO_NOT_USE=ZK,no.Option=oI,no.OptGroup=aI,no._InternalPanelDoNotUseOrYouWillBeFired=LTe;const bp=["xxl","xl","lg","md","sm","xs"],jTe=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),DTe=e=>{const t=e,n=[].concat(bp).reverse();return n.forEach((r,i)=>{const a=r.toUpperCase(),o=`screen${a}Min`,s=`screen${a}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,n.forEach(o=>o(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const o=t[a],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const o=t[a],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[a]:u}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const JK=(e,t)=>{if(t&&typeof t=="object")for(let n=0;nt+1,0);return e}function vI(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=b.useRef({}),n=pI(),r=QK();return Nn(()=>{const i=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const nm=e=>e?typeof e=="function"?e():e:null;function gI(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,o=e.style;return b.createElement("div",{className:me("".concat(n,"-content"),a),style:o},b.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var rm={shiftX:64,adjustY:1},im={adjustX:1,shiftY:!0},El=[0,0],FTe={left:{points:["cr","cl"],overflow:im,offset:[-4,0],targetOffset:El},right:{points:["cl","cr"],overflow:im,offset:[4,0],targetOffset:El},top:{points:["bc","tc"],overflow:rm,offset:[0,-4],targetOffset:El},bottom:{points:["tc","bc"],overflow:rm,offset:[0,4],targetOffset:El},topLeft:{points:["bl","tl"],overflow:rm,offset:[0,-4],targetOffset:El},leftTop:{points:["tr","tl"],overflow:im,offset:[-4,0],targetOffset:El},topRight:{points:["br","tr"],overflow:rm,offset:[0,-4],targetOffset:El},rightTop:{points:["tl","tr"],overflow:im,offset:[4,0],targetOffset:El},bottomRight:{points:["tr","br"],overflow:rm,offset:[0,4],targetOffset:El},rightBottom:{points:["bl","br"],overflow:im,offset:[4,0],targetOffset:El},bottomLeft:{points:["tl","bl"],overflow:rm,offset:[0,4],targetOffset:El},leftBottom:{points:["br","bl"],overflow:im,offset:[-4,0],targetOffset:El}},BTe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],zTe=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,d=f===void 0?"rc-tooltip":f,h=t.children,p=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,m=t.animation,y=t.motion,x=t.placement,S=x===void 0?"right":x,w=t.align,C=w===void 0?{}:w,E=t.destroyTooltipOnHide,O=E===void 0?!1:E,$=t.defaultVisible,P=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var k=t.overlay,T=t.id,R=t.showArrow,A=R===void 0?!0:R,N=Vt(t,BTe),L=b.useRef(null);b.useImperativeHandle(n,function(){return L.current});var j=ae({},N);"visible"in t&&(j.popupVisible=t.visible);var F=function(){return b.createElement(gI,{key:"content",prefixCls:d,id:T,overlayInnerStyle:M},k)};return b.createElement(Q1,Le({popupClassName:r,prefixCls:d,popup:F,action:a,builtinPlacements:FTe,popupPlacement:S,ref:L,popupAlign:C,getPopupContainer:P,onPopupVisibleChange:p,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:m,popupMotion:y,defaultPopupVisible:$,autoDestroy:O,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:A},j),h)};const HTe=b.forwardRef(zTe);function iE(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,d=u,h=2*i-s,p=l,g=2*i-a,v=o,m=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),x=`polygon(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,S=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${d} L ${h} ${p} A ${r} ${r} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:m,arrowPath:S,arrowPolygon:x}}const eY=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${fe(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},tY=8;function aE(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?tY:r}}function oE(e,t){return e?t:{}}function mI(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},eY(e,t,i)),{"&:before":{background:t}})]},oE(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${fe(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),oE(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${fe(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),oE(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),oE(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function WTe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const nY={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},VTe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},qTe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function rY(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,l={};return Object.keys(nY).forEach(c=>{const u=r&&VTe[c]||nY[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,qTe.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}const d=aE({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-d.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=d.arrowOffsetHorizontal*2-s;break}f.overflow=WTe(c,d,t,n),o&&(f.htmlRegion="visibleFirst")}),l}const UTe=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:d,sizePopupArrow:h}=e,p=t(o).add(h).add(d).equal(),g=t(o).mul(2).add(h).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${fe(e.calc(u).div(2).equal())} ${fe(f)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(o,tY)}},[`${n}-content`]:{position:"relative"}}),Wq(e,(v,m)=>{let{darkColor:y}=m;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},mI(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},GTe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},aE({contentRadius:e.borderRadius,limitVerticalRadius:!0})),iE($n(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),iY=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return tr("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,s=$n(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[UTe(s),qg(r,"zoom-big-fast")]},GTe,{resetStyle:!1,injectStyle:t})(e)},KTe=T1.map(e=>`${e}-inverse`),YTe=["success","processing","error","default","warning"];function aY(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ne(KTe),Ne(T1)).includes(e):T1.includes(e)}function XTe(e){return YTe.includes(e)}function oY(e,t){const n=aY(t),r=me({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const ZTe=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:s}=b.useContext(Lt),l=s("tooltip",t),[c,u,f]=iY(l),d=oY(l,a),h=d.arrowStyle,p=Object.assign(Object.assign({},o),d.overlayStyle),g=me(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(b.createElement("div",{className:g,style:h},b.createElement("div",{className:`${l}-arrow`}),b.createElement(gI,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),i)))};var QTe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:o,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:f,afterVisibleChange:d,destroyTooltipOnHide:h,arrow:p=!0,title:g,overlay:v,builtinPlacements:m,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=e,S=!!p,[,w]=eo(),{getPopupContainer:C,getPrefixCls:E,direction:O}=b.useContext(Lt),$=Cd(),P=b.useRef(null),M=()=>{var ue;(ue=P.current)===null||ue===void 0||ue.forceAlign()};b.useImperativeHandle(t,()=>{var ue;return{forceAlign:M,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),M()},nativeElement:(ue=P.current)===null||ue===void 0?void 0:ue.nativeElement}});const[k,T]=Yn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=!g&&!v&&g!==0,A=ue=>{var Se,Oe;T(R?!1:ue),R||((Se=e.onOpenChange)===null||Se===void 0||Se.call(e,ue),(Oe=e.onVisibleChange)===null||Oe===void 0||Oe.call(e,ue))},N=b.useMemo(()=>{var ue,Se;let Oe=y;return typeof p=="object"&&(Oe=(Se=(ue=p.pointAtCenter)!==null&&ue!==void 0?ue:p.arrowPointAtCenter)!==null&&Se!==void 0?Se:y),m||rY({arrowPointAtCenter:Oe,autoAdjustOverflow:x,arrowWidth:S?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[y,p,m,w]),L=b.useMemo(()=>g===0?g:v||g||"",[v,g]),j=b.createElement(cf,{space:!0},typeof L=="function"?L():L),{getPopupContainer:F,placement:B="top",mouseEnterDelay:D=.1,mouseLeaveDelay:z=.1,overlayStyle:W,rootClassName:q}=e,H=QTe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),U=E("tooltip",i),G=E(),K=e["data-popover-inject"];let X=k;!("open"in e)&&!("visible"in e)&&R&&(X=!1);const Q=b.isValidElement(u)&&!yU(u)?u:b.createElement("span",null,u),ee=Q.props,ne=!ee.className||typeof ee.className=="string"?me(ee.className,a||`${U}-open`):ee.className,[te,ie,J]=iY(U,!K),le=oY(U,l),oe=le.arrowStyle,re=Object.assign(Object.assign({},c),le.overlayStyle),se=me(s,{[`${U}-rtl`]:O==="rtl"},le.className,q,ie,J),[ge,de]=of("Tooltip",H.zIndex),pe=b.createElement(HTe,Object.assign({},H,{zIndex:ge,showArrow:S,placement:B,mouseEnterDelay:D,mouseLeaveDelay:z,prefixCls:U,overlayClassName:se,overlayStyle:Object.assign(Object.assign({},oe),W),getTooltipContainer:F||o||C,ref:P,builtinPlacements:N,overlay:j,visible:X,onVisibleChange:A,afterVisibleChange:f!=null?f:d,overlayInnerStyle:re,arrowContent:b.createElement("span",{className:`${U}-arrow-content`}),motion:{motionName:wl(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),X?Pa(Q,{className:ne}):Q);return te(b.createElement(jC.Provider,{value:de},pe))});ro._InternalPanelDoNotUseOrYouWillBeFired=ZTe;const JTe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:d,titleBorderBottom:h,innerContentPadding:p,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},er(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:h,padding:g},[`${t}-inner-content`]:{color:n,padding:p}})},mI(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},eRe=e=>{const{componentCls:t}=e;return{[t]:T1.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},sY=tr("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=$n(e,{popoverBg:t,popoverColor:n});return[JTe(r),eRe(r),qg(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,d=n-r,h=d/2,p=d/2-t,g=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},iE(e)),aE({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:l,titlePadding:a?`${h}px ${g}px ${p}px`:0,titleBorderBottom:a?`${t}px ${c} ${u}`:"none",innerContentPadding:a?`${f}px ${g}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var tRe=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 i=0,r=Object.getOwnPropertySymbols(e);i{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:b.createElement(b.Fragment,null,t&&b.createElement("div",{className:`${r}-title`},t),n&&b.createElement("div",{className:`${r}-inner-content`},n))},nRe=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:o,content:s,children:l}=e,c=nm(o),u=nm(s),f=me(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return b.createElement("div",{className:f,style:i},b.createElement("div",{className:`${n}-arrow`}),b.createElement(gI,Object.assign({},e,{className:t,prefixCls:n}),l||b.createElement(lY,{prefixCls:n,title:c,content:u})))},cY=e=>{const{prefixCls:t,className:n}=e,r=tRe(e,["prefixCls","className"]),{getPrefixCls:i}=b.useContext(Lt),a=i("popover",t),[o,s,l]=sY(a);return o(b.createElement(nRe,Object.assign({},r,{prefixCls:a,hashId:s,className:me(n,l)})))};var rRe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,title:a,content:o,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:f=.1,mouseLeaveDelay:d=.1,onOpenChange:h,overlayStyle:p={}}=e,g=rRe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:v}=b.useContext(Lt),m=v("popover",i),[y,x,S]=sY(m),w=v(),C=me(s,x,S),[E,O]=Yn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),$=(R,A)=>{O(R,!0),h==null||h(R,A)},P=R=>{R.keyCode===Ze.ESC&&$(!1,R)},M=R=>{$(R)},k=nm(a),T=nm(o);return y(b.createElement(ro,Object.assign({placement:l,trigger:c,mouseEnterDelay:f,mouseLeaveDelay:d,overlayStyle:p},g,{prefixCls:m,overlayClassName:C,ref:t,open:E,onOpenChange:M,overlay:k||T?b.createElement(lY,{prefixCls:m,title:k,content:T}):null,transitionName:wl(w,"zoom-big",g.transitionName),"data-popover-inject":!0}),Pa(u,{onKeyDown:R=>{var A,N;b.isValidElement(u)&&((N=u==null?void 0:(A=u.props).onKeyDown)===null||N===void 0||N.call(A,R)),P(R)}})))});yI._InternalPanelDoNotUseOrYouWillBeFired=cY;var iRe=Ze.ESC,aRe=Ze.TAB;function oRe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,o=b.useRef(!1),s=function(){if(t){var f,d;(f=n.current)===null||f===void 0||(d=f.focus)===null||d===void 0||d.call(f),r==null||r(!1)}},l=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),o.current=!0,!0):!1},c=function(f){switch(f.keyCode){case iRe:s();break;case aRe:{var d=!1;o.current||(d=l()),d?f.preventDefault():s();break}}};b.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&bn(l,3),function(){window.removeEventListener("keydown",c),o.current=!1}):function(){o.current=!1}},[t])}var sRe=b.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=b.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),o=po(t,bd(a));return we.createElement(we.Fragment,null,r&&we.createElement("div",{className:"".concat(i,"-arrow")}),we.cloneElement(a,{ref:vc(a)?o:void 0}))}),am={adjustX:1,adjustY:1},om=[0,0],lRe={topLeft:{points:["bl","tl"],overflow:am,offset:[0,-4],targetOffset:om},top:{points:["bc","tc"],overflow:am,offset:[0,-4],targetOffset:om},topRight:{points:["br","tr"],overflow:am,offset:[0,-4],targetOffset:om},bottomLeft:{points:["tl","bl"],overflow:am,offset:[0,4],targetOffset:om},bottom:{points:["tc","bc"],overflow:am,offset:[0,4],targetOffset:om},bottomRight:{points:["tr","br"],overflow:am,offset:[0,4],targetOffset:om}},cRe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function uRe(e,t){var n,r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,o=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,d=e.placements,h=d===void 0?lRe:d,p=e.getPopupContainer,g=e.showAction,v=e.hideAction,m=e.overlayClassName,y=e.overlayStyle,x=e.visible,S=e.trigger,w=S===void 0?["hover"]:S,C=e.autoFocus,E=e.overlay,O=e.children,$=e.onVisibleChange,P=Vt(e,cRe),M=we.useState(),k=he(M,2),T=k[0],R=k[1],A="visible"in e?x:T,N=we.useRef(null),L=we.useRef(null),j=we.useRef(null);we.useImperativeHandle(t,function(){return N.current});var F=function(K){R(K),$==null||$(K)};oRe({visible:A,triggerRef:j,onVisibleChange:F,autoFocus:C,overlayRef:L});var B=function(K){var X=e.onOverlayClick;R(!1),X&&X(K)},D=function(){return we.createElement(sRe,{ref:L,overlay:E,prefixCls:o,arrow:i})},z=function(){return typeof E=="function"?D:D()},W=function(){var K=e.minOverlayWidthMatchTrigger,X=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?K:!X},q=function(){var K=e.openClassName;return K!==void 0?K:"".concat(o,"-open")},H=we.cloneElement(O,{className:me((n=O.props)===null||n===void 0?void 0:n.className,A&&q()),ref:vc(O)?po(j,bd(O)):void 0}),U=v;return!U&&w.indexOf("contextMenu")!==-1&&(U=["click"]),we.createElement(Q1,Le({builtinPlacements:h},P,{prefixCls:o,ref:N,popupClassName:me(m,Z({},"".concat(o,"-show-arrow"),i)),popupStyle:y,action:w,showAction:g,hideAction:U,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:A,stretch:W()?"minWidth":"",popup:z(),onPopupVisibleChange:F,onPopupClick:B,getPopupContainer:p}),H)}const uY=we.forwardRef(uRe),fRe=e=>typeof e!="object"&&typeof e!="function"||e===null;var fY=b.createContext(null);function dY(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function hY(e){var t=b.useContext(fY);return dY(t,e)}var dRe=["children","locked"],Cc=b.createContext(null);function hRe(e,t){var n=ae({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function eb(e){var t=e.children,n=e.locked,r=Vt(e,dRe),i=b.useContext(Cc),a=op(function(){return hRe(i,r)},[i,r],function(o,s){return!n&&(o[0]!==s[0]||!yl(o[1],s[1],!0))});return b.createElement(Cc.Provider,{value:a},t)}var pRe=[],pY=b.createContext(null);function sE(){return b.useContext(pY)}var vY=b.createContext(pRe);function sm(e){var t=b.useContext(vY);return b.useMemo(function(){return e!==void 0?[].concat(Ne(t),[e]):t},[t,e])}var gY=b.createContext(null),bI=b.createContext({});function mY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Wg(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function vRe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ne(e.querySelectorAll("*")).filter(function(r){return mY(r,t)});return mY(e,t)&&n.unshift(e),n}var xI=Ze.LEFT,SI=Ze.RIGHT,wI=Ze.UP,lE=Ze.DOWN,cE=Ze.ENTER,yY=Ze.ESC,tb=Ze.HOME,nb=Ze.END,bY=[wI,lE,xI,SI];function gRe(e,t,n,r){var i,a="prev",o="next",s="children",l="parent";if(e==="inline"&&r===cE)return{inlineTrigger:!0};var c=Z(Z({},wI,a),lE,o),u=Z(Z(Z(Z({},xI,n?o:a),SI,n?a:o),lE,s),cE,s),f=Z(Z(Z(Z(Z(Z({},wI,a),lE,o),cE,s),yY,l),xI,n?s:l),SI,n?l:s),d={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},h=(i=d["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(h){case a:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function mRe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function yRe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function CI(e,t){var n=vRe(e,!0);return n.filter(function(r){return t.has(r)})}function xY(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=CI(e,t),a=i.length,o=i.findIndex(function(s){return n===s});return r<0?o===-1?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}var EI=function(t,n){var r=new Set,i=new Map,a=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(dY(n,o),"']"));s&&(r.add(s),a.set(s,o),i.set(o,s))}),{elements:r,key2element:i,element2key:a}};function bRe(e,t,n,r,i,a,o,s,l,c){var u=b.useRef(),f=b.useRef();f.current=t;var d=function(){bn.cancel(u.current)};return b.useEffect(function(){return function(){d()}},[]),function(h){var p=h.which;if([].concat(bY,[cE,yY,tb,nb]).includes(p)){var g=a(),v=EI(g,r),m=v,y=m.elements,x=m.key2element,S=m.element2key,w=x.get(t),C=yRe(w,y),E=S.get(C),O=gRe(e,o(E,!0).length===1,n,p);if(!O&&p!==tb&&p!==nb)return;(bY.includes(p)||[tb,nb].includes(p))&&h.preventDefault();var $=function(L){if(L){var j=L,F=L.querySelector("a");F!=null&&F.getAttribute("href")&&(j=F);var B=S.get(L);s(B),d(),u.current=bn(function(){f.current===B&&j.focus()})}};if([tb,nb].includes(p)||O.sibling||!C){var P;!C||e==="inline"?P=i.current:P=mRe(C);var M,k=CI(P,y);p===tb?M=k[0]:p===nb?M=k[k.length-1]:M=xY(P,y,C,O.offset),$(M)}else if(O.inlineTrigger)l(E);else if(O.offset>0)l(E,!0),d(),u.current=bn(function(){v=EI(g,r);var N=C.getAttribute("aria-controls"),L=document.getElementById(N),j=xY(L,v.elements);$(j)},5);else if(O.offset<0){var T=o(E,!0),R=T[T.length-2],A=x.get(R);l(R,!1),$(A)}}c==null||c(h)}}function xRe(e){Promise.resolve().then(e)}var OI="__RC_UTIL_PATH_SPLIT__",SY=function(t){return t.join(OI)},SRe=function(t){return t.split(OI)},_I="rc-menu-more";function wRe(){var e=b.useState({}),t=he(e,2),n=t[1],r=b.useRef(new Map),i=b.useRef(new Map),a=b.useState([]),o=he(a,2),s=o[0],l=o[1],c=b.useRef(0),u=b.useRef(!1),f=function(){u.current||n({})},d=b.useCallback(function(x,S){var w=SY(S);i.current.set(w,x),r.current.set(x,w),c.current+=1;var C=c.current;xRe(function(){C===c.current&&f()})},[]),h=b.useCallback(function(x,S){var w=SY(S);i.current.delete(w),r.current.delete(x)},[]),p=b.useCallback(function(x){l(x)},[]),g=b.useCallback(function(x,S){var w=r.current.get(x)||"",C=SRe(w);return S&&s.includes(C[0])&&C.unshift(_I),C},[s]),v=b.useCallback(function(x,S){return x.filter(function(w){return w!==void 0}).some(function(w){var C=g(w,!0);return C.includes(S)})},[g]),m=function(){var S=Ne(r.current.keys());return s.length&&S.push(_I),S},y=b.useCallback(function(x){var S="".concat(r.current.get(x)).concat(OI),w=new Set;return Ne(i.current.keys()).forEach(function(C){C.startsWith(S)&&w.add(i.current.get(C))}),w},[]);return b.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:d,unregisterPath:h,refreshOverflowKeys:p,isSubPathKey:v,getKeyPath:g,getKeys:m,getSubPathKeys:y}}function rb(e){var t=b.useRef(e);t.current=e;var n=b.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o1&&(y.motionAppear=!1);var x=y.onVisibleChanged;return y.onVisibleChanged=function(S){return!d.current&&!S&&v(!0),x==null?void 0:x(S)},g?null:b.createElement(eb,{mode:a,locked:!d.current},b.createElement(Jo,Le({visible:m},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var w=S.className,C=S.style;return b.createElement($I,{id:t,className:w,style:C},i)}))}var FRe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],BRe=["active"],zRe=b.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,a=e.eventKey;e.warnKey;var o=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,d=e.popupOffset,h=e.popupStyle,p=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,m=e.onTitleClick,y=e.onTitleMouseEnter,x=e.onTitleMouseLeave,S=Vt(e,FRe),w=hY(a),C=b.useContext(Cc),E=C.prefixCls,O=C.mode,$=C.openKeys,P=C.disabled,M=C.overflowDisabled,k=C.activeKey,T=C.selectedKeys,R=C.itemIcon,A=C.expandIcon,N=C.onItemClick,L=C.onOpenChange,j=C.onActive,F=b.useContext(bI),B=F._internalRenderSubMenuItem,D=b.useContext(gY),z=D.isSubPathKey,W=sm(),q="".concat(E,"-submenu"),H=P||o,U=b.useRef(),G=b.useRef(),K=c!=null?c:R,X=u!=null?u:A,Q=$.includes(a),ee=!M&&Q,ne=z(T,a),te=CY(a,H,y,x),ie=te.active,J=Vt(te,BRe),le=b.useState(!1),oe=he(le,2),re=oe[0],se=oe[1],ge=function(Re){H||se(Re)},de=function(Re){ge(!0),g==null||g({key:a,domEvent:Re})},pe=function(Re){ge(!1),v==null||v({key:a,domEvent:Re})},ue=b.useMemo(function(){return ie||(O!=="inline"?re||z([k],a):!1)},[O,ie,k,re,a,z]),Se=EY(W.length),Oe=function(Re){H||(m==null||m({key:a,domEvent:Re}),O==="inline"&&L(a,!Q))},_e=rb(function(Ce){p==null||p(uE(Ce)),N(Ce)}),Te=function(Re){O!=="inline"&&L(a,Re)},je=function(){j(a)},Be=w&&"".concat(w,"-popup"),Pe=b.createElement("div",Le({role:"menuitem",style:Se,className:"".concat(q,"-title"),tabIndex:H?null:-1,ref:U,title:typeof i=="string"?i:null,"data-menu-id":M&&w?null:w,"aria-expanded":ee,"aria-haspopup":!0,"aria-controls":Be,"aria-disabled":H,onClick:Oe,onFocus:je},J),i,b.createElement(OY,{icon:O!=="horizontal"?X:void 0,props:ae(ae({},e),{},{isOpen:ee,isSubMenu:!0})},b.createElement("i",{className:"".concat(q,"-arrow")}))),He=b.useRef(O);if(O!=="inline"&&W.length>1?He.current="vertical":He.current=O,!M){var Ue=He.current;Pe=b.createElement(jRe,{mode:Ue,prefixCls:q,visible:!s&&ee&&O!=="inline",popupClassName:f,popupOffset:d,popupStyle:h,popup:b.createElement(eb,{mode:Ue==="horizontal"?"vertical":Ue},b.createElement($I,{id:Be,ref:G},l)),disabled:H,onVisibleChange:Te},Pe)}var ke=b.createElement(wc.Item,Le({ref:t,role:"none"},S,{component:"li",style:n,className:me(q,"".concat(q,"-").concat(O),r,Z(Z(Z(Z({},"".concat(q,"-open"),ee),"".concat(q,"-active"),ue),"".concat(q,"-selected"),ne),"".concat(q,"-disabled"),H)),onMouseEnter:de,onMouseLeave:pe}),Pe,!M&&b.createElement(DRe,{id:Be,open:ee,keyPath:W},l));return B&&(ke=B(ke,e,{selected:ne,active:ue,open:ee,disabled:H})),b.createElement(eb,{onItemClick:_e,mode:O==="horizontal"?"vertical":O,itemIcon:K,expandIcon:X},ke)}),fE=b.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=sm(n),a=PI(r,i),o=sE();b.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var s;return o?s=a:s=b.createElement(zRe,Le({ref:t},e),a),b.createElement(vY.Provider,{value:i},s)});function MI(e){var t=e.className,n=e.style,r=b.useContext(Cc),i=r.prefixCls,a=sE();return a?null:b.createElement("li",{role:"separator",className:me("".concat(i,"-item-divider"),t),style:n})}var HRe=["className","title","eventKey","children"],WRe=b.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=Vt(e,HRe),o=b.useContext(Cc),s=o.prefixCls,l="".concat(s,"-item-group");return b.createElement("li",Le({ref:t,role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:me(l,n)}),b.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),b.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),kI=b.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=sm(n),a=PI(r,i),o=sE();return o?a:b.createElement(WRe,Le({ref:t},Or(e,["warnKey"])),a)}),VRe=["label","children","key","type","extra"];function TI(e,t,n){var r=t.item,i=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(s,l){if(s&&Bt(s)==="object"){var c=s,u=c.label,f=c.children,d=c.key,h=c.type,p=c.extra,g=Vt(c,VRe),v=d!=null?d:"tmp-".concat(l);return f||h==="group"?h==="group"?b.createElement(i,Le({key:v},g,{title:u}),TI(f,t,n)):b.createElement(a,Le({key:v},g,{title:u}),TI(f,t,n)):h==="divider"?b.createElement(o,Le({key:v},g)):b.createElement(r,Le({key:v},g,{extra:p}),u,(!!p||p===0)&&b.createElement("span",{className:"".concat(n,"-item-extra")},p))}return null}).filter(function(s){return s})}function $Y(e,t,n,r,i){var a=e,o=ae({divider:MI,item:ib,group:kI,submenu:fE},r);return t&&(a=TI(t,o,i)),PI(a,n)}var qRe=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],xp=[],URe=b.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,a=i===void 0?"rc-menu":i,o=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,d=r.children,h=r.direction,p=r.id,g=r.mode,v=g===void 0?"vertical":g,m=r.inlineCollapsed,y=r.disabled,x=r.disabledOverflow,S=r.subMenuOpenDelay,w=S===void 0?.1:S,C=r.subMenuCloseDelay,E=C===void 0?.1:C,O=r.forceSubMenuRender,$=r.defaultOpenKeys,P=r.openKeys,M=r.activeKey,k=r.defaultActiveFirst,T=r.selectable,R=T===void 0?!0:T,A=r.multiple,N=A===void 0?!1:A,L=r.defaultSelectedKeys,j=r.selectedKeys,F=r.onSelect,B=r.onDeselect,D=r.inlineIndent,z=D===void 0?24:D,W=r.motion,q=r.defaultMotions,H=r.triggerSubMenuAction,U=H===void 0?"hover":H,G=r.builtinPlacements,K=r.itemIcon,X=r.expandIcon,Q=r.overflowedIndicator,ee=Q===void 0?"...":Q,ne=r.overflowedIndicatorPopupClassName,te=r.getPopupContainer,ie=r.onClick,J=r.onOpenChange,le=r.onKeyDown;r.openAnimation,r.openTransitionName;var oe=r._internalRenderMenuItem,re=r._internalRenderSubMenuItem,se=r._internalComponents,ge=Vt(r,qRe),de=b.useMemo(function(){return[$Y(d,f,xp,se,a),$Y(d,f,xp,{},a)]},[d,f,se]),pe=he(de,2),ue=pe[0],Se=pe[1],Oe=b.useState(!1),_e=he(Oe,2),Te=_e[0],je=_e[1],Be=b.useRef(),Pe=ERe(p),He=h==="rtl",Ue=Yn($,{value:P,postState:function(Ct){return Ct||xp}}),ke=he(Ue,2),Ce=ke[0],Re=ke[1],Ae=function(Ct){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Vn(){Re(Ct),J==null||J(Ct)}Kt?ys.flushSync(Vn):Vn()},$e=b.useState(Ce),Ve=he($e,2),et=Ve[0],Tt=Ve[1],Mt=b.useRef(!1),at=b.useMemo(function(){return(v==="inline"||v==="vertical")&&m?["vertical",m]:[v,!1]},[v,m]),ht=he(at,2),Ot=ht[0],vt=ht[1],$t=Ot==="inline",gt=b.useState(Ot),st=he(gt,2),tt=st[0],ot=st[1],Pt=b.useState(vt),Xe=he(Pt,2),Je=Xe[0],bt=Xe[1];b.useEffect(function(){ot(Ot),bt(vt),Mt.current&&($t?Re(et):Ae(xp))},[Ot,vt]);var Rt=b.useState(0),Xt=he(Rt,2),Qt=Xt[0],Gt=Xt[1],wt=Qt>=ue.length-1||tt!=="horizontal"||x;b.useEffect(function(){$t&&Tt(Ce)},[Ce]),b.useEffect(function(){return Mt.current=!0,function(){Mt.current=!1}},[]);var _t=wRe(),Nt=_t.registerPath,Zt=_t.unregisterPath,vn=_t.refreshOverflowKeys,an=_t.isSubPathKey,Pn=_t.getKeyPath,Ut=_t.getKeys,ye=_t.getSubPathKeys,Ie=b.useMemo(function(){return{registerPath:Nt,unregisterPath:Zt}},[Nt,Zt]),We=b.useMemo(function(){return{isSubPathKey:an}},[an]);b.useEffect(function(){vn(wt?xp:ue.slice(Qt+1).map(function(en){return en.key}))},[Qt,wt]);var ze=Yn(M||k&&((n=ue[0])===null||n===void 0?void 0:n.key),{value:M}),pt=he(ze,2),mt=pt[0],Wt=pt[1],gn=rb(function(en){Wt(en)}),mn=rb(function(){Wt(void 0)});b.useImperativeHandle(t,function(){return{list:Be.current,focus:function(Ct){var Kt,Vn=Ut(),jt=EI(Vn,Pe),Yt=jt.elements,kn=jt.key2element,Gn=jt.element2key,Cr=CI(Be.current,Yt),Ur=mt!=null?mt:Cr[0]?Gn.get(Cr[0]):(Kt=ue.find(function(It){return!It.props.disabled}))===null||Kt===void 0?void 0:Kt.key,$r=kn.get(Ur);if(Ur&&$r){var Si;$r==null||(Si=$r.focus)===null||Si===void 0||Si.call($r,Ct)}}}});var un=Yn(L||[],{value:j,postState:function(Ct){return Array.isArray(Ct)?Ct:Ct==null?xp:[Ct]}}),xt=he(un,2),Jt=xt[0],on=xt[1],En=function(Ct){if(R){var Kt=Ct.key,Vn=Jt.includes(Kt),jt;N?Vn?jt=Jt.filter(function(kn){return kn!==Kt}):jt=[].concat(Ne(Jt),[Kt]):jt=[Kt],on(jt);var Yt=ae(ae({},Ct),{},{selectedKeys:jt});Vn?B==null||B(Yt):F==null||F(Yt)}!N&&Ce.length&&tt!=="inline"&&Ae(xp)},Wn=rb(function(en){ie==null||ie(uE(en)),En(en)}),hr=rb(function(en,Ct){var Kt=Ce.filter(function(jt){return jt!==en});if(Ct)Kt.push(en);else if(tt!=="inline"){var Vn=ye(en);Kt=Kt.filter(function(jt){return!Vn.has(jt)})}yl(Ce,Kt,!0)||Ae(Kt,!0)}),Dr=function(Ct,Kt){var Vn=Kt!=null?Kt:!Ce.includes(Ct);hr(Ct,Vn)},ci=bRe(tt,mt,He,Pe,Be,Ut,Pn,Wt,Dr,le);b.useEffect(function(){je(!0)},[]);var Ni=b.useMemo(function(){return{_internalRenderMenuItem:oe,_internalRenderSubMenuItem:re}},[oe,re]),ri=tt!=="horizontal"||x?ue:ue.map(function(en,Ct){return b.createElement(eb,{key:en.key,overflowDisabled:Ct>Qt},en)}),oa=b.createElement(wc,Le({id:p,ref:Be,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:ib,className:me(a,"".concat(a,"-root"),"".concat(a,"-").concat(tt),l,Z(Z({},"".concat(a,"-inline-collapsed"),Je),"".concat(a,"-rtl"),He),o),dir:h,style:s,role:"menu",tabIndex:u,data:ri,renderRawItem:function(Ct){return Ct},renderRawRest:function(Ct){var Kt=Ct.length,Vn=Kt?ue.slice(-Kt):null;return b.createElement(fE,{eventKey:_I,title:ee,disabled:wt,internalPopupClose:Kt===0,popupClassName:ne},Vn)},maxCount:tt!=="horizontal"||x?wc.INVALIDATE:wc.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ct){Gt(Ct)},onKeyDown:ci},ge));return b.createElement(bI.Provider,{value:Ni},b.createElement(fY.Provider,{value:Pe},b.createElement(eb,{prefixCls:a,rootClassName:o,mode:tt,openKeys:Ce,rtl:He,disabled:y,motion:Te?W:null,defaultMotions:Te?q:null,activeKey:mt,onActive:gn,onInactive:mn,selectedKeys:Jt,inlineIndent:z,subMenuOpenDelay:w,subMenuCloseDelay:E,forceSubMenuRender:O,builtinPlacements:G,triggerSubMenuAction:U,getPopupContainer:te,itemIcon:K,expandIcon:X,onItemClick:Wn,onOpenChange:hr},b.createElement(gY.Provider,{value:We},oa),b.createElement("div",{style:{display:"none"},"aria-hidden":!0},b.createElement(pY.Provider,{value:Ie},Se)))))}),lm=URe;lm.Item=ib,lm.SubMenu=fE,lm.ItemGroup=kI,lm.Divider=MI;var GRe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},KRe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:GRe}))},PY=b.forwardRef(KRe),YRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},XRe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:YRe}))},Sp=b.forwardRef(XRe);const ZRe=e=>!isNaN(parseFloat(e))&&isFinite(e),MY=b.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),QRe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:fe(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},kY=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},TY=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],RY=tr("Layout",e=>[QRe(e)],kY,{deprecatedTokens:TY}),JRe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadius:d,lightSiderBg:h,lightTriggerColor:p,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:fe(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},[`${a}-layout &-zero-width`]:{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:d,borderEndEndRadius:d,borderEndStartRadius:0,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:d,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:d}}},"&-light":{background:h,[`${t}-trigger`]:{color:p,background:g},[`${t}-zero-width-trigger`]:{color:p,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},eIe=tr(["Layout","Sider"],e=>[JRe(e)],kY,{deprecatedTokens:TY});var tIe=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 i=0,r=Object.getOwnPropertySymbols(e);i{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),AY=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:d=80,zeroWidthTriggerStyle:h,breakpoint:p,onCollapse:g,onBreakpoint:v}=e,m=tIe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=b.useContext(MY),[x,S]=b.useState("collapsed"in e?e.collapsed:o),[w,C]=b.useState(!1);b.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const E=(L,j)=>{"collapsed"in e||S(L),g==null||g(L,j)},{getPrefixCls:O}=b.useContext(Lt),$=O("layout-sider",n),[P,M,k]=eIe($),T=b.useRef(null);T.current=L=>{C(L.matches),v==null||v(L.matches),x!==L.matches&&E(L.matches,"responsive")},b.useEffect(()=>{function L(F){return T.current(F)}let j;if(typeof window!="undefined"){const{matchMedia:F}=window;if(F&&p&&p in IY){j=F(`screen and (max-width: ${IY[p]})`);try{j.addEventListener("change",L)}catch(B){j.addListener(L)}L(j)}}return()=>{try{j==null||j.removeEventListener("change",L)}catch(F){j==null||j.removeListener(L)}}},[p]),b.useEffect(()=>{const L=nIe("ant-sider-");return y.addSider(L),()=>y.removeSider(L)},[]);const R=()=>{E(!x,"clickTrigger")},A=()=>{const L=Or(m,["collapsed"]),j=x?d:f,F=ZRe(j)?`${j}px`:String(j),B=parseFloat(String(d||0))===0?b.createElement("span",{onClick:R,className:me(`${$}-zero-width-trigger`,`${$}-zero-width-trigger-${u?"right":"left"}`),style:h},i||b.createElement(PY,null)):null,W={expanded:u?b.createElement(sf,null):b.createElement(Sp,null),collapsed:u?b.createElement(Sp,null):b.createElement(sf,null)}[x?"collapsed":"expanded"],q=i!==null?B||b.createElement("div",{className:`${$}-trigger`,onClick:R,style:{width:F}},i||W):null,H=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),U=me($,`${$}-${s}`,{[`${$}-collapsed`]:!!x,[`${$}-has-trigger`]:c&&i!==null&&!B,[`${$}-below`]:!!w,[`${$}-zero-width`]:parseFloat(F)===0},r,M,k);return b.createElement("aside",Object.assign({className:U},L,{style:H,ref:t}),b.createElement("div",{className:`${$}-children`},a),c||w&&B?q:null)},N=b.useMemo(()=>({siderCollapsed:x}),[x]);return P(b.createElement(dE.Provider,{value:N},A()))});var rIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},iIe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:rIe}))},RI=b.forwardRef(iIe);const hE=b.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var aIe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,dashed:r}=e,i=aIe(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=b.useContext(Lt),o=a("menu",t),s=me({[`${o}-item-divider-dashed`]:!!r},n);return b.createElement(MI,Object.assign({className:s},i))},LY=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:o,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:d}=b.useContext(hE),h=x=>{const S=r==null?void 0:r[0],w=b.createElement("span",{className:me(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||b.isValidElement(r)&&r.type==="span")&&r&&x&&c&&typeof S=="string"?b.createElement("div",{className:`${l}-inline-collapsed-noicon`},S.charAt(0)):w},{siderCollapsed:p}=b.useContext(dE);let g=a;typeof a=="undefined"?g=c?r:"":a===!1&&(g="");const v={title:g};!p&&!d&&(v.title=null,v.open=!1);const m=da(r).length;let y=b.createElement(ib,Object.assign({},Or(e,["title","icon","danger"]),{className:me({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(i?m+1:m)===1},n),title:typeof a=="string"?a:void 0}),Pa(i,{className:me(b.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h(d));return f||(y=b.createElement(ro,Object.assign({},v,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),y)),y};var oIe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{children:n}=e,r=oIe(e,["children"]),i=b.useContext(pE),a=b.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=OCe(n),s=ef(t,o?bd(n):null);return b.createElement(pE.Provider,{value:a},b.createElement(cf,{space:!0},o?b.cloneElement(n,{ref:s}):n))}),sIe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${fe(a)} ${o} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},lI(_n(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const vTe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:d,controlItemBgHover:h,colorBgContainer:p,colorFillSecondary:v,colorBgContainerDisabled:g,colorTextDisabled:m,colorPrimaryHover:y,colorPrimary:x,controlOutline:S}=e,w=s*2,C=r*2,E=Math.min(i-w,i-C),O=Math.min(a-w,a-C),$=Math.min(o-w,o-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:d,optionActiveBg:h,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:p,clearBg:p,singleItemHeightLG:o,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:O,multipleItemHeightLG:$,multipleSelectorBgDisabled:g,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:x,activeOutlineColor:S,selectAffixPadding:s}},VK=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ue(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 ${ue(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},qK=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},VK(e,t))}),gTe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},VK(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),qK(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),qK(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:`${ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),UK=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ue(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}}}},GK=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},UK(e,t))}),mTe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},UK(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),GK(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),GK(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:`${ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),yTe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ue(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:`${ue(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}}}}),bTe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},gTe(e)),mTe(e)),yTe(e))}),xTe=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},STe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},wTe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},er(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},xTe(e)),STe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Qo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Qo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},_d()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},CTe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},wTe(e),pTe(e),hTe(e),uTe(e),{[`${t}-rtl`]:{direction:"rtl"}},F1(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},ETe=tr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=_n(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[CTe(r),bTe(r)]},vTe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var OTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},_Te=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:OTe}))},cI=b.forwardRef(_Te),$Te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},PTe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:$Te}))},J1=b.forwardRef(PTe),MTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},kTe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:MTe}))},nm=b.forwardRef(kTe);function KK(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:o,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:d}=e;const h=n!=null?n:b.createElement(vp,null),p=y=>t===null&&!s&&!f?null:b.createElement(b.Fragment,null,c!==!1&&y,s&&u);let v=null;if(t!==void 0)v=p(t);else if(a)v=p(b.createElement(af,{spin:!0}));else{const y=`${l}-suffix`;v=x=>{let{open:S,showSearch:w}=x;return p(S&&w?b.createElement(nm,{className:y}):b.createElement(J1,{className:y}))}}let g=null;r!==void 0?g=r:o?g=b.createElement(cI,null):g=null;let m=null;return i!==void 0?m=i:m=b.createElement(Md,null),{clearIcon:h,suffixIcon:v,itemIcon:g,removeIcon:m}}function TTe(e,t){return t!==void 0?t:e!==null}var RTe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:o,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:d,size:h,disabled:p,notFoundContent:v,status:g,builtinPlacements:m,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:S,style:w,allowClear:C,variant:E,dropdownStyle:O,transitionName:$,tagRender:P,maxCount:M,prefix:k}=e,T=RTe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:R,getPrefixCls:A,renderEmpty:N,direction:L,virtual:j,popupMatchSelectWidth:F,popupOverflow:B,select:D}=b.useContext(At),[,z]=to(),W=d!=null?d:z==null?void 0:z.controlHeight,q=A("select",r),H=A(),U=S!=null?S:L,{compactSize:G,compactItemClassnames:K}=Td(q,U),[X,Q]=bp("select",E,i),ee=Ti(q),[ne,te,ie]=ETe(q,ee),J=b.useMemo(()=>{const{mode:He}=e;if(He!=="combobox")return He===YK?"combobox":He},[e.mode]),le=J==="multiple"||J==="tags",oe=TTe(e.suffixIcon,e.showArrow),re=(n=x!=null?x:y)!==null&&n!==void 0?n:F,{status:se,hasFeedback:ge,isFormItemInput:de,feedbackIcon:pe}=b.useContext(Fa),fe=Ad(se,g);let xe;v!==void 0?xe=v:J==="combobox"?xe=null:xe=(N==null?void 0:N("Select"))||b.createElement(oI,{componentName:"Select"});const{suffixIcon:Oe,itemIcon:_e,removeIcon:Te,clearIcon:Fe}=KK(Object.assign(Object.assign({},T),{multiple:le,hasFeedback:ge,feedbackIcon:pe,showSuffixIcon:oe,prefixCls:q,componentName:"Select"})),Be=C===!0?{clearIcon:Fe}:C,Pe=Or(T,["suffixIcon","itemIcon"]),ze=me(l||c,{[`${q}-dropdown-${U}`]:U==="rtl"},o,ie,ee,te),Ue=ja(He=>{var ot;return(ot=h!=null?h:G)!==null&&ot!==void 0?ot:He}),ke=b.useContext(mo),Ee=p!=null?p:ke,Ie=me({[`${q}-lg`]:Ue==="large",[`${q}-sm`]:Ue==="small",[`${q}-rtl`]:U==="rtl",[`${q}-${X}`]:Q,[`${q}-in-form-item`]:de},uf(q,fe,ge),K,D==null?void 0:D.className,a,o,ie,ee,te),Ae=b.useMemo(()=>f!==void 0?f:U==="rtl"?"bottomRight":"bottomLeft",[f,U]),[$e]=of("SelectLike",O==null?void 0:O.zIndex);return ne(b.createElement(aI,Object.assign({ref:t,virtual:j,showSearch:D==null?void 0:D.showSearch},Pe,{style:Object.assign(Object.assign({},D==null?void 0:D.style),w),dropdownMatchSelectWidth:re,transitionName:wl(H,"slide-up",$),builtinPlacements:cTe(m,B),listHeight:u,listItemHeight:W,mode:J,prefixCls:q,placement:Ae,direction:U,prefix:k,suffixIcon:Oe,menuItemSelectedIcon:_e,removeIcon:Te,allowClear:Be,notFoundContent:xe,className:Ie,getPopupContainer:s||R,dropdownClassName:ze,disabled:Ee,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:$e}),maxCount:le?M:void 0,tagRender:le?P:void 0})))},no=b.forwardRef(ITe),ATe=U1(no);no.SECRET_COMBOBOX_MODE_DO_NOT_USE=YK,no.Option=nI,no.OptGroup=tI,no._InternalPanelDoNotUseOrYouWillBeFired=ATe;const xp=["xxl","xl","lg","md","sm","xs"],NTe=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),LTe=e=>{const t=e,n=[].concat(xp).reverse();return n.forEach((r,i)=>{const a=r.toUpperCase(),o=`screen${a}Min`,s=`screen${a}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,n.forEach(o=>o(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const o=t[a],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const o=t[a],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[a]:u}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const ZK=(e,t)=>{if(t&&typeof t=="object")for(let n=0;nt+1,0);return e}function fI(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=b.useRef({}),n=uI(),r=XK();return Ln(()=>{const i=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const rm=e=>e?typeof e=="function"?e():e:null;function dI(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,o=e.style;return b.createElement("div",{className:me("".concat(n,"-content"),a),style:o},b.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var im={shiftX:64,adjustY:1},am={adjustX:1,shiftY:!0},El=[0,0],jTe={left:{points:["cr","cl"],overflow:am,offset:[-4,0],targetOffset:El},right:{points:["cl","cr"],overflow:am,offset:[4,0],targetOffset:El},top:{points:["bc","tc"],overflow:im,offset:[0,-4],targetOffset:El},bottom:{points:["tc","bc"],overflow:im,offset:[0,4],targetOffset:El},topLeft:{points:["bl","tl"],overflow:im,offset:[0,-4],targetOffset:El},leftTop:{points:["tr","tl"],overflow:am,offset:[-4,0],targetOffset:El},topRight:{points:["br","tr"],overflow:im,offset:[0,-4],targetOffset:El},rightTop:{points:["tl","tr"],overflow:am,offset:[4,0],targetOffset:El},bottomRight:{points:["tr","br"],overflow:im,offset:[0,4],targetOffset:El},rightBottom:{points:["bl","br"],overflow:am,offset:[4,0],targetOffset:El},bottomLeft:{points:["tl","bl"],overflow:im,offset:[0,4],targetOffset:El},leftBottom:{points:["br","bl"],overflow:am,offset:[-4,0],targetOffset:El}},DTe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],FTe=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,d=f===void 0?"rc-tooltip":f,h=t.children,p=t.onVisibleChange,v=t.afterVisibleChange,g=t.transitionName,m=t.animation,y=t.motion,x=t.placement,S=x===void 0?"right":x,w=t.align,C=w===void 0?{}:w,E=t.destroyTooltipOnHide,O=E===void 0?!1:E,$=t.defaultVisible,P=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var k=t.overlay,T=t.id,R=t.showArrow,A=R===void 0?!0:R,N=qt(t,DTe),L=b.useRef(null);b.useImperativeHandle(n,function(){return L.current});var j=ae({},N);"visible"in t&&(j.popupVisible=t.visible);var F=function(){return b.createElement(dI,{key:"content",prefixCls:d,id:T,overlayInnerStyle:M},k)};return b.createElement(Q1,Le({popupClassName:r,prefixCls:d,popup:F,action:a,builtinPlacements:jTe,popupPlacement:S,ref:L,popupAlign:C,getPopupContainer:P,onPopupVisibleChange:p,afterPopupVisibleChange:v,popupTransitionName:g,popupAnimation:m,popupMotion:y,defaultPopupVisible:$,autoDestroy:O,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:A},j),h)};const BTe=b.forwardRef(FTe);function nE(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,d=u,h=2*i-s,p=l,v=2*i-a,g=o,m=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),x=`polygon(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,S=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${d} L ${h} ${p} A ${r} ${r} 0 0 0 ${v} ${g} Z')`;return{arrowShadowWidth:m,arrowPath:S,arrowPolygon:x}}const QK=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ue(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},JK=8;function rE(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?JK:r}}function iE(e,t){return e?t:{}}function hI(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},QK(e,t,i)),{"&:before":{background:t}})]},iE(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ue(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),iE(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ue(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),iE(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),iE(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function zTe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const eY={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},HTe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},WTe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function tY(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,l={};return Object.keys(eY).forEach(c=>{const u=r&&HTe[c]||eY[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,WTe.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}const d=rE({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-d.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=d.arrowOffsetHorizontal*2-s;break}f.overflow=zTe(c,d,t,n),o&&(f.htmlRegion="visibleFirst")}),l}const VTe=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:d,sizePopupArrow:h}=e,p=t(o).add(h).add(d).equal(),v=t(o).mul(2).add(h).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:v,minHeight:l,padding:`${ue(e.calc(u).div(2).equal())} ${ue(f)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(o,JK)}},[`${n}-content`]:{position:"relative"}}),Hq(e,(g,m)=>{let{darkColor:y}=m;return{[`&${n}-${g}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},hI(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},qTe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},rE({contentRadius:e.borderRadius,limitVerticalRadius:!0})),nE(_n(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),nY=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return tr("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,s=_n(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[VTe(s),Ug(r,"zoom-big-fast")]},qTe,{resetStyle:!1,injectStyle:t})(e)},UTe=R1.map(e=>`${e}-inverse`),GTe=["success","processing","error","default","warning"];function rY(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ne(UTe),Ne(R1)).includes(e):R1.includes(e)}function KTe(e){return GTe.includes(e)}function iY(e,t){const n=rY(t),r=me({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const YTe=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:s}=b.useContext(At),l=s("tooltip",t),[c,u,f]=nY(l),d=iY(l,a),h=d.arrowStyle,p=Object.assign(Object.assign({},o),d.overlayStyle),v=me(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(b.createElement("div",{className:v,style:h},b.createElement("div",{className:`${l}-arrow`}),b.createElement(dI,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),i)))};var XTe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:o,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:f,afterVisibleChange:d,destroyTooltipOnHide:h,arrow:p=!0,title:v,overlay:g,builtinPlacements:m,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=e,S=!!p,[,w]=to(),{getPopupContainer:C,getPrefixCls:E,direction:O}=b.useContext(At),$=Cd(),P=b.useRef(null),M=()=>{var fe;(fe=P.current)===null||fe===void 0||fe.forceAlign()};b.useImperativeHandle(t,()=>{var fe;return{forceAlign:M,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),M()},nativeElement:(fe=P.current)===null||fe===void 0?void 0:fe.nativeElement}});const[k,T]=Yn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=!v&&!g&&v!==0,A=fe=>{var xe,Oe;T(R?!1:fe),R||((xe=e.onOpenChange)===null||xe===void 0||xe.call(e,fe),(Oe=e.onVisibleChange)===null||Oe===void 0||Oe.call(e,fe))},N=b.useMemo(()=>{var fe,xe;let Oe=y;return typeof p=="object"&&(Oe=(xe=(fe=p.pointAtCenter)!==null&&fe!==void 0?fe:p.arrowPointAtCenter)!==null&&xe!==void 0?xe:y),m||tY({arrowPointAtCenter:Oe,autoAdjustOverflow:x,arrowWidth:S?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[y,p,m,w]),L=b.useMemo(()=>v===0?v:g||v||"",[g,v]),j=b.createElement(cf,{space:!0},typeof L=="function"?L():L),{getPopupContainer:F,placement:B="top",mouseEnterDelay:D=.1,mouseLeaveDelay:z=.1,overlayStyle:W,rootClassName:q}=e,H=XTe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),U=E("tooltip",i),G=E(),K=e["data-popover-inject"];let X=k;!("open"in e)&&!("visible"in e)&&R&&(X=!1);const Q=b.isValidElement(u)&&!mU(u)?u:b.createElement("span",null,u),ee=Q.props,ne=!ee.className||typeof ee.className=="string"?me(ee.className,a||`${U}-open`):ee.className,[te,ie,J]=nY(U,!K),le=iY(U,l),oe=le.arrowStyle,re=Object.assign(Object.assign({},c),le.overlayStyle),se=me(s,{[`${U}-rtl`]:O==="rtl"},le.className,q,ie,J),[ge,de]=of("Tooltip",H.zIndex),pe=b.createElement(BTe,Object.assign({},H,{zIndex:ge,showArrow:S,placement:B,mouseEnterDelay:D,mouseLeaveDelay:z,prefixCls:U,overlayClassName:se,overlayStyle:Object.assign(Object.assign({},oe),W),getTooltipContainer:F||o||C,ref:P,builtinPlacements:N,overlay:j,visible:X,onVisibleChange:A,afterVisibleChange:f!=null?f:d,overlayInnerStyle:re,arrowContent:b.createElement("span",{className:`${U}-arrow-content`}),motion:{motionName:wl(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),X?Pa(Q,{className:ne}):Q);return te(b.createElement(LC.Provider,{value:de},pe))});ro._InternalPanelDoNotUseOrYouWillBeFired=YTe;const ZTe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:d,titleBorderBottom:h,innerContentPadding:p,titlePadding:v}=e;return[{[t]:Object.assign(Object.assign({},er(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:h,padding:v},[`${t}-inner-content`]:{color:n,padding:p}})},hI(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},QTe=e=>{const{componentCls:t}=e;return{[t]:R1.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},aY=tr("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=_n(e,{popoverBg:t,popoverColor:n});return[ZTe(r),QTe(r),Ug(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,d=n-r,h=d/2,p=d/2-t,v=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},nE(e)),rE({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:l,titlePadding:a?`${h}px ${v}px ${p}px`:0,titleBorderBottom:a?`${t}px ${c} ${u}`:"none",innerContentPadding:a?`${f}px ${v}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var JTe=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 i=0,r=Object.getOwnPropertySymbols(e);i{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:b.createElement(b.Fragment,null,t&&b.createElement("div",{className:`${r}-title`},t),n&&b.createElement("div",{className:`${r}-inner-content`},n))},eRe=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:o,content:s,children:l}=e,c=rm(o),u=rm(s),f=me(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return b.createElement("div",{className:f,style:i},b.createElement("div",{className:`${n}-arrow`}),b.createElement(dI,Object.assign({},e,{className:t,prefixCls:n}),l||b.createElement(oY,{prefixCls:n,title:c,content:u})))},sY=e=>{const{prefixCls:t,className:n}=e,r=JTe(e,["prefixCls","className"]),{getPrefixCls:i}=b.useContext(At),a=i("popover",t),[o,s,l]=aY(a);return o(b.createElement(eRe,Object.assign({},r,{prefixCls:a,hashId:s,className:me(n,l)})))};var tRe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,title:a,content:o,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:f=.1,mouseLeaveDelay:d=.1,onOpenChange:h,overlayStyle:p={}}=e,v=tRe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:g}=b.useContext(At),m=g("popover",i),[y,x,S]=aY(m),w=g(),C=me(s,x,S),[E,O]=Yn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),$=(R,A)=>{O(R,!0),h==null||h(R,A)},P=R=>{R.keyCode===Ze.ESC&&$(!1,R)},M=R=>{$(R)},k=rm(a),T=rm(o);return y(b.createElement(ro,Object.assign({placement:l,trigger:c,mouseEnterDelay:f,mouseLeaveDelay:d,overlayStyle:p},v,{prefixCls:m,overlayClassName:C,ref:t,open:E,onOpenChange:M,overlay:k||T?b.createElement(oY,{prefixCls:m,title:k,content:T}):null,transitionName:wl(w,"zoom-big",v.transitionName),"data-popover-inject":!0}),Pa(u,{onKeyDown:R=>{var A,N;b.isValidElement(u)&&((N=u==null?void 0:(A=u.props).onKeyDown)===null||N===void 0||N.call(A,R)),P(R)}})))});pI._InternalPanelDoNotUseOrYouWillBeFired=sY;var nRe=Ze.ESC,rRe=Ze.TAB;function iRe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,o=b.useRef(!1),s=function(){if(t){var f,d;(f=n.current)===null||f===void 0||(d=f.focus)===null||d===void 0||d.call(f),r==null||r(!1)}},l=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),o.current=!0,!0):!1},c=function(f){switch(f.keyCode){case nRe:s();break;case rRe:{var d=!1;o.current||(d=l()),d?f.preventDefault():s();break}}};b.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&Sn(l,3),function(){window.removeEventListener("keydown",c),o.current=!1}):function(){o.current=!1}},[t])}var aRe=b.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=b.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),o=po(t,bd(a));return we.createElement(we.Fragment,null,r&&we.createElement("div",{className:"".concat(i,"-arrow")}),we.cloneElement(a,{ref:vc(a)?o:void 0}))}),om={adjustX:1,adjustY:1},sm=[0,0],oRe={topLeft:{points:["bl","tl"],overflow:om,offset:[0,-4],targetOffset:sm},top:{points:["bc","tc"],overflow:om,offset:[0,-4],targetOffset:sm},topRight:{points:["br","tr"],overflow:om,offset:[0,-4],targetOffset:sm},bottomLeft:{points:["tl","bl"],overflow:om,offset:[0,4],targetOffset:sm},bottom:{points:["tc","bc"],overflow:om,offset:[0,4],targetOffset:sm},bottomRight:{points:["tr","br"],overflow:om,offset:[0,4],targetOffset:sm}},sRe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function lRe(e,t){var n,r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,o=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,d=e.placements,h=d===void 0?oRe:d,p=e.getPopupContainer,v=e.showAction,g=e.hideAction,m=e.overlayClassName,y=e.overlayStyle,x=e.visible,S=e.trigger,w=S===void 0?["hover"]:S,C=e.autoFocus,E=e.overlay,O=e.children,$=e.onVisibleChange,P=qt(e,sRe),M=we.useState(),k=he(M,2),T=k[0],R=k[1],A="visible"in e?x:T,N=we.useRef(null),L=we.useRef(null),j=we.useRef(null);we.useImperativeHandle(t,function(){return N.current});var F=function(K){R(K),$==null||$(K)};iRe({visible:A,triggerRef:j,onVisibleChange:F,autoFocus:C,overlayRef:L});var B=function(K){var X=e.onOverlayClick;R(!1),X&&X(K)},D=function(){return we.createElement(aRe,{ref:L,overlay:E,prefixCls:o,arrow:i})},z=function(){return typeof E=="function"?D:D()},W=function(){var K=e.minOverlayWidthMatchTrigger,X=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?K:!X},q=function(){var K=e.openClassName;return K!==void 0?K:"".concat(o,"-open")},H=we.cloneElement(O,{className:me((n=O.props)===null||n===void 0?void 0:n.className,A&&q()),ref:vc(O)?po(j,bd(O)):void 0}),U=g;return!U&&w.indexOf("contextMenu")!==-1&&(U=["click"]),we.createElement(Q1,Le({builtinPlacements:h},P,{prefixCls:o,ref:N,popupClassName:me(m,Z({},"".concat(o,"-show-arrow"),i)),popupStyle:y,action:w,showAction:v,hideAction:U,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:A,stretch:W()?"minWidth":"",popup:z(),onPopupVisibleChange:F,onPopupClick:B,getPopupContainer:p}),H)}const lY=we.forwardRef(lRe),cRe=e=>typeof e!="object"&&typeof e!="function"||e===null;var cY=b.createContext(null);function uY(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function fY(e){var t=b.useContext(cY);return uY(t,e)}var uRe=["children","locked"],Cc=b.createContext(null);function fRe(e,t){var n=ae({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function eb(e){var t=e.children,n=e.locked,r=qt(e,uRe),i=b.useContext(Cc),a=sp(function(){return fRe(i,r)},[i,r],function(o,s){return!n&&(o[0]!==s[0]||!yl(o[1],s[1],!0))});return b.createElement(Cc.Provider,{value:a},t)}var dRe=[],dY=b.createContext(null);function aE(){return b.useContext(dY)}var hY=b.createContext(dRe);function lm(e){var t=b.useContext(hY);return b.useMemo(function(){return e!==void 0?[].concat(Ne(t),[e]):t},[t,e])}var pY=b.createContext(null),vI=b.createContext({});function vY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Vg(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function hRe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ne(e.querySelectorAll("*")).filter(function(r){return vY(r,t)});return vY(e,t)&&n.unshift(e),n}var gI=Ze.LEFT,mI=Ze.RIGHT,yI=Ze.UP,oE=Ze.DOWN,sE=Ze.ENTER,gY=Ze.ESC,tb=Ze.HOME,nb=Ze.END,mY=[yI,oE,gI,mI];function pRe(e,t,n,r){var i,a="prev",o="next",s="children",l="parent";if(e==="inline"&&r===sE)return{inlineTrigger:!0};var c=Z(Z({},yI,a),oE,o),u=Z(Z(Z(Z({},gI,n?o:a),mI,n?a:o),oE,s),sE,s),f=Z(Z(Z(Z(Z(Z({},yI,a),oE,o),sE,s),gY,l),gI,n?s:l),mI,n?l:s),d={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},h=(i=d["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(h){case a:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function vRe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function gRe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function bI(e,t){var n=hRe(e,!0);return n.filter(function(r){return t.has(r)})}function yY(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=bI(e,t),a=i.length,o=i.findIndex(function(s){return n===s});return r<0?o===-1?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}var xI=function(t,n){var r=new Set,i=new Map,a=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(uY(n,o),"']"));s&&(r.add(s),a.set(s,o),i.set(o,s))}),{elements:r,key2element:i,element2key:a}};function mRe(e,t,n,r,i,a,o,s,l,c){var u=b.useRef(),f=b.useRef();f.current=t;var d=function(){Sn.cancel(u.current)};return b.useEffect(function(){return function(){d()}},[]),function(h){var p=h.which;if([].concat(mY,[sE,gY,tb,nb]).includes(p)){var v=a(),g=xI(v,r),m=g,y=m.elements,x=m.key2element,S=m.element2key,w=x.get(t),C=gRe(w,y),E=S.get(C),O=pRe(e,o(E,!0).length===1,n,p);if(!O&&p!==tb&&p!==nb)return;(mY.includes(p)||[tb,nb].includes(p))&&h.preventDefault();var $=function(L){if(L){var j=L,F=L.querySelector("a");F!=null&&F.getAttribute("href")&&(j=F);var B=S.get(L);s(B),d(),u.current=Sn(function(){f.current===B&&j.focus()})}};if([tb,nb].includes(p)||O.sibling||!C){var P;!C||e==="inline"?P=i.current:P=vRe(C);var M,k=bI(P,y);p===tb?M=k[0]:p===nb?M=k[k.length-1]:M=yY(P,y,C,O.offset),$(M)}else if(O.inlineTrigger)l(E);else if(O.offset>0)l(E,!0),d(),u.current=Sn(function(){g=xI(v,r);var N=C.getAttribute("aria-controls"),L=document.getElementById(N),j=yY(L,g.elements);$(j)},5);else if(O.offset<0){var T=o(E,!0),R=T[T.length-2],A=x.get(R);l(R,!1),$(A)}}c==null||c(h)}}function yRe(e){Promise.resolve().then(e)}var SI="__RC_UTIL_PATH_SPLIT__",bY=function(t){return t.join(SI)},bRe=function(t){return t.split(SI)},wI="rc-menu-more";function xRe(){var e=b.useState({}),t=he(e,2),n=t[1],r=b.useRef(new Map),i=b.useRef(new Map),a=b.useState([]),o=he(a,2),s=o[0],l=o[1],c=b.useRef(0),u=b.useRef(!1),f=function(){u.current||n({})},d=b.useCallback(function(x,S){var w=bY(S);i.current.set(w,x),r.current.set(x,w),c.current+=1;var C=c.current;yRe(function(){C===c.current&&f()})},[]),h=b.useCallback(function(x,S){var w=bY(S);i.current.delete(w),r.current.delete(x)},[]),p=b.useCallback(function(x){l(x)},[]),v=b.useCallback(function(x,S){var w=r.current.get(x)||"",C=bRe(w);return S&&s.includes(C[0])&&C.unshift(wI),C},[s]),g=b.useCallback(function(x,S){return x.filter(function(w){return w!==void 0}).some(function(w){var C=v(w,!0);return C.includes(S)})},[v]),m=function(){var S=Ne(r.current.keys());return s.length&&S.push(wI),S},y=b.useCallback(function(x){var S="".concat(r.current.get(x)).concat(SI),w=new Set;return Ne(i.current.keys()).forEach(function(C){C.startsWith(S)&&w.add(i.current.get(C))}),w},[]);return b.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:d,unregisterPath:h,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:v,getKeys:m,getSubPathKeys:y}}function rb(e){var t=b.useRef(e);t.current=e;var n=b.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o1&&(y.motionAppear=!1);var x=y.onVisibleChanged;return y.onVisibleChanged=function(S){return!d.current&&!S&&g(!0),x==null?void 0:x(S)},v?null:b.createElement(eb,{mode:a,locked:!d.current},b.createElement(Jo,Le({visible:m},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var w=S.className,C=S.style;return b.createElement(CI,{id:t,className:w,style:C},i)}))}var jRe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],DRe=["active"],FRe=b.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,a=e.eventKey;e.warnKey;var o=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,d=e.popupOffset,h=e.popupStyle,p=e.onClick,v=e.onMouseEnter,g=e.onMouseLeave,m=e.onTitleClick,y=e.onTitleMouseEnter,x=e.onTitleMouseLeave,S=qt(e,jRe),w=fY(a),C=b.useContext(Cc),E=C.prefixCls,O=C.mode,$=C.openKeys,P=C.disabled,M=C.overflowDisabled,k=C.activeKey,T=C.selectedKeys,R=C.itemIcon,A=C.expandIcon,N=C.onItemClick,L=C.onOpenChange,j=C.onActive,F=b.useContext(vI),B=F._internalRenderSubMenuItem,D=b.useContext(pY),z=D.isSubPathKey,W=lm(),q="".concat(E,"-submenu"),H=P||o,U=b.useRef(),G=b.useRef(),K=c!=null?c:R,X=u!=null?u:A,Q=$.includes(a),ee=!M&&Q,ne=z(T,a),te=SY(a,H,y,x),ie=te.active,J=qt(te,DRe),le=b.useState(!1),oe=he(le,2),re=oe[0],se=oe[1],ge=function(Ie){H||se(Ie)},de=function(Ie){ge(!0),v==null||v({key:a,domEvent:Ie})},pe=function(Ie){ge(!1),g==null||g({key:a,domEvent:Ie})},fe=b.useMemo(function(){return ie||(O!=="inline"?re||z([k],a):!1)},[O,ie,k,re,a,z]),xe=wY(W.length),Oe=function(Ie){H||(m==null||m({key:a,domEvent:Ie}),O==="inline"&&L(a,!Q))},_e=rb(function(Ee){p==null||p(lE(Ee)),N(Ee)}),Te=function(Ie){O!=="inline"&&L(a,Ie)},Fe=function(){j(a)},Be=w&&"".concat(w,"-popup"),Pe=b.createElement("div",Le({role:"menuitem",style:xe,className:"".concat(q,"-title"),tabIndex:H?null:-1,ref:U,title:typeof i=="string"?i:null,"data-menu-id":M&&w?null:w,"aria-expanded":ee,"aria-haspopup":!0,"aria-controls":Be,"aria-disabled":H,onClick:Oe,onFocus:Fe},J),i,b.createElement(CY,{icon:O!=="horizontal"?X:void 0,props:ae(ae({},e),{},{isOpen:ee,isSubMenu:!0})},b.createElement("i",{className:"".concat(q,"-arrow")}))),ze=b.useRef(O);if(O!=="inline"&&W.length>1?ze.current="vertical":ze.current=O,!M){var Ue=ze.current;Pe=b.createElement(NRe,{mode:Ue,prefixCls:q,visible:!s&&ee&&O!=="inline",popupClassName:f,popupOffset:d,popupStyle:h,popup:b.createElement(eb,{mode:Ue==="horizontal"?"vertical":Ue},b.createElement(CI,{id:Be,ref:G},l)),disabled:H,onVisibleChange:Te},Pe)}var ke=b.createElement(wc.Item,Le({ref:t,role:"none"},S,{component:"li",style:n,className:me(q,"".concat(q,"-").concat(O),r,Z(Z(Z(Z({},"".concat(q,"-open"),ee),"".concat(q,"-active"),fe),"".concat(q,"-selected"),ne),"".concat(q,"-disabled"),H)),onMouseEnter:de,onMouseLeave:pe}),Pe,!M&&b.createElement(LRe,{id:Be,open:ee,keyPath:W},l));return B&&(ke=B(ke,e,{selected:ne,active:fe,open:ee,disabled:H})),b.createElement(eb,{onItemClick:_e,mode:O==="horizontal"?"vertical":O,itemIcon:K,expandIcon:X},ke)}),cE=b.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=lm(n),a=EI(r,i),o=aE();b.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var s;return o?s=a:s=b.createElement(FRe,Le({ref:t},e),a),b.createElement(hY.Provider,{value:i},s)});function OI(e){var t=e.className,n=e.style,r=b.useContext(Cc),i=r.prefixCls,a=aE();return a?null:b.createElement("li",{role:"separator",className:me("".concat(i,"-item-divider"),t),style:n})}var BRe=["className","title","eventKey","children"],zRe=b.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=qt(e,BRe),o=b.useContext(Cc),s=o.prefixCls,l="".concat(s,"-item-group");return b.createElement("li",Le({ref:t,role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:me(l,n)}),b.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),b.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),_I=b.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=lm(n),a=EI(r,i),o=aE();return o?a:b.createElement(zRe,Le({ref:t},Or(e,["warnKey"])),a)}),HRe=["label","children","key","type","extra"];function $I(e,t,n){var r=t.item,i=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(s,l){if(s&&Bt(s)==="object"){var c=s,u=c.label,f=c.children,d=c.key,h=c.type,p=c.extra,v=qt(c,HRe),g=d!=null?d:"tmp-".concat(l);return f||h==="group"?h==="group"?b.createElement(i,Le({key:g},v,{title:u}),$I(f,t,n)):b.createElement(a,Le({key:g},v,{title:u}),$I(f,t,n)):h==="divider"?b.createElement(o,Le({key:g},v)):b.createElement(r,Le({key:g},v,{extra:p}),u,(!!p||p===0)&&b.createElement("span",{className:"".concat(n,"-item-extra")},p))}return null}).filter(function(s){return s})}function OY(e,t,n,r,i){var a=e,o=ae({divider:OI,item:ib,group:_I,submenu:cE},r);return t&&(a=$I(t,o,i)),EI(a,n)}var WRe=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Sp=[],VRe=b.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,a=i===void 0?"rc-menu":i,o=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,d=r.children,h=r.direction,p=r.id,v=r.mode,g=v===void 0?"vertical":v,m=r.inlineCollapsed,y=r.disabled,x=r.disabledOverflow,S=r.subMenuOpenDelay,w=S===void 0?.1:S,C=r.subMenuCloseDelay,E=C===void 0?.1:C,O=r.forceSubMenuRender,$=r.defaultOpenKeys,P=r.openKeys,M=r.activeKey,k=r.defaultActiveFirst,T=r.selectable,R=T===void 0?!0:T,A=r.multiple,N=A===void 0?!1:A,L=r.defaultSelectedKeys,j=r.selectedKeys,F=r.onSelect,B=r.onDeselect,D=r.inlineIndent,z=D===void 0?24:D,W=r.motion,q=r.defaultMotions,H=r.triggerSubMenuAction,U=H===void 0?"hover":H,G=r.builtinPlacements,K=r.itemIcon,X=r.expandIcon,Q=r.overflowedIndicator,ee=Q===void 0?"...":Q,ne=r.overflowedIndicatorPopupClassName,te=r.getPopupContainer,ie=r.onClick,J=r.onOpenChange,le=r.onKeyDown;r.openAnimation,r.openTransitionName;var oe=r._internalRenderMenuItem,re=r._internalRenderSubMenuItem,se=r._internalComponents,ge=qt(r,WRe),de=b.useMemo(function(){return[OY(d,f,Sp,se,a),OY(d,f,Sp,{},a)]},[d,f,se]),pe=he(de,2),fe=pe[0],xe=pe[1],Oe=b.useState(!1),_e=he(Oe,2),Te=_e[0],Fe=_e[1],Be=b.useRef(),Pe=wRe(p),ze=h==="rtl",Ue=Yn($,{value:P,postState:function(Ct){return Ct||Sp}}),ke=he(Ue,2),Ee=ke[0],Ie=ke[1],Ae=function(Ct){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Vn(){Ie(Ct),J==null||J(Ct)}Kt?ys.flushSync(Vn):Vn()},$e=b.useState(Ee),He=he($e,2),ot=He[0],Ot=He[1],Wt=b.useRef(!1),et=b.useMemo(function(){return(g==="inline"||g==="vertical")&&m?["vertical",m]:[g,!1]},[g,m]),ht=he(et,2),Et=ht[0],gt=ht[1],Pt=Et==="inline",wt=b.useState(Et),st=he(wt,2),nt=st[0],lt=st[1],Mt=b.useState(gt),Ye=he(Mt,2),Je=Ye[0],mt=Ye[1];b.useEffect(function(){lt(Et),mt(gt),Wt.current&&(Pt?Ie(ot):Ae(Sp))},[Et,gt]);var Tt=b.useState(0),Xt=he(Tt,2),Jt=Xt[0],Gt=Xt[1],St=Jt>=fe.length-1||nt!=="horizontal"||x;b.useEffect(function(){Pt&&Ot(Ee)},[Ee]),b.useEffect(function(){return Wt.current=!0,function(){Wt.current=!1}},[]);var $t=xRe(),Nt=$t.registerPath,Zt=$t.unregisterPath,gn=$t.refreshOverflowKeys,an=$t.isSubPathKey,Mn=$t.getKeyPath,Vt=$t.getKeys,ye=$t.getSubPathKeys,Re=b.useMemo(function(){return{registerPath:Nt,unregisterPath:Zt}},[Nt,Zt]),Xe=b.useMemo(function(){return{isSubPathKey:an}},[an]);b.useEffect(function(){gn(St?Sp:fe.slice(Jt+1).map(function(en){return en.key}))},[Jt,St]);var Ge=Yn(M||k&&((n=fe[0])===null||n===void 0?void 0:n.key),{value:M}),tt=he(Ge,2),vt=tt[0],Lt=tt[1],on=rb(function(en){Lt(en)}),mn=rb(function(){Lt(void 0)});b.useImperativeHandle(t,function(){return{list:Be.current,focus:function(Ct){var Kt,Vn=Vt(),jt=xI(Vn,Pe),Yt=jt.elements,kn=jt.key2element,Gn=jt.element2key,Cr=bI(Be.current,Yt),Ur=vt!=null?vt:Cr[0]?Gn.get(Cr[0]):(Kt=fe.find(function(Rt){return!Rt.props.disabled}))===null||Kt===void 0?void 0:Kt.key,Pr=kn.get(Ur);if(Ur&&Pr){var Si;Pr==null||(Si=Pr.focus)===null||Si===void 0||Si.call(Pr,Ct)}}}});var fn=Yn(L||[],{value:j,postState:function(Ct){return Array.isArray(Ct)?Ct:Ct==null?Sp:[Ct]}}),bt=he(fn,2),Qt=bt[0],sn=bt[1],$n=function(Ct){if(R){var Kt=Ct.key,Vn=Qt.includes(Kt),jt;N?Vn?jt=Qt.filter(function(kn){return kn!==Kt}):jt=[].concat(Ne(Qt),[Kt]):jt=[Kt],sn(jt);var Yt=ae(ae({},Ct),{},{selectedKeys:jt});Vn?B==null||B(Yt):F==null||F(Yt)}!N&&Ee.length&&nt!=="inline"&&Ae(Sp)},In=rb(function(en){ie==null||ie(lE(en)),$n(en)}),or=rb(function(en,Ct){var Kt=Ee.filter(function(jt){return jt!==en});if(Ct)Kt.push(en);else if(nt!=="inline"){var Vn=ye(en);Kt=Kt.filter(function(jt){return!Vn.has(jt)})}yl(Ee,Kt,!0)||Ae(Kt,!0)}),$r=function(Ct,Kt){var Vn=Kt!=null?Kt:!Ee.includes(Ct);or(Ct,Vn)},ci=mRe(nt,vt,ze,Pe,Be,Vt,Mn,Lt,$r,le);b.useEffect(function(){Fe(!0)},[]);var Ni=b.useMemo(function(){return{_internalRenderMenuItem:oe,_internalRenderSubMenuItem:re}},[oe,re]),ri=nt!=="horizontal"||x?fe:fe.map(function(en,Ct){return b.createElement(eb,{key:en.key,overflowDisabled:Ct>Jt},en)}),oa=b.createElement(wc,Le({id:p,ref:Be,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:ib,className:me(a,"".concat(a,"-root"),"".concat(a,"-").concat(nt),l,Z(Z({},"".concat(a,"-inline-collapsed"),Je),"".concat(a,"-rtl"),ze),o),dir:h,style:s,role:"menu",tabIndex:u,data:ri,renderRawItem:function(Ct){return Ct},renderRawRest:function(Ct){var Kt=Ct.length,Vn=Kt?fe.slice(-Kt):null;return b.createElement(cE,{eventKey:wI,title:ee,disabled:St,internalPopupClose:Kt===0,popupClassName:ne},Vn)},maxCount:nt!=="horizontal"||x?wc.INVALIDATE:wc.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ct){Gt(Ct)},onKeyDown:ci},ge));return b.createElement(vI.Provider,{value:Ni},b.createElement(cY.Provider,{value:Pe},b.createElement(eb,{prefixCls:a,rootClassName:o,mode:nt,openKeys:Ee,rtl:ze,disabled:y,motion:Te?W:null,defaultMotions:Te?q:null,activeKey:vt,onActive:on,onInactive:mn,selectedKeys:Qt,inlineIndent:z,subMenuOpenDelay:w,subMenuCloseDelay:E,forceSubMenuRender:O,builtinPlacements:G,triggerSubMenuAction:U,getPopupContainer:te,itemIcon:K,expandIcon:X,onItemClick:In,onOpenChange:or},b.createElement(pY.Provider,{value:Xe},oa),b.createElement("div",{style:{display:"none"},"aria-hidden":!0},b.createElement(dY.Provider,{value:Re},xe)))))}),cm=VRe;cm.Item=ib,cm.SubMenu=cE,cm.ItemGroup=_I,cm.Divider=OI;var qRe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},URe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:qRe}))},_Y=b.forwardRef(URe),GRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},KRe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:GRe}))},wp=b.forwardRef(KRe);const YRe=e=>!isNaN(parseFloat(e))&&isFinite(e),$Y=b.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),XRe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:ue(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},PY=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},MY=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],kY=tr("Layout",e=>[XRe(e)],PY,{deprecatedTokens:MY}),ZRe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadius:d,lightSiderBg:h,lightTriggerColor:p,lightTriggerBg:v,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:ue(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},[`${a}-layout &-zero-width`]:{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:d,borderEndEndRadius:d,borderEndStartRadius:0,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:d,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:d}}},"&-light":{background:h,[`${t}-trigger`]:{color:p,background:v},[`${t}-zero-width-trigger`]:{color:p,background:v,border:`1px solid ${g}`,borderInlineStart:0}}}}},QRe=tr(["Layout","Sider"],e=>[ZRe(e)],PY,{deprecatedTokens:MY});var JRe=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 i=0,r=Object.getOwnPropertySymbols(e);i{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),RY=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:d=80,zeroWidthTriggerStyle:h,breakpoint:p,onCollapse:v,onBreakpoint:g}=e,m=JRe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=b.useContext($Y),[x,S]=b.useState("collapsed"in e?e.collapsed:o),[w,C]=b.useState(!1);b.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const E=(L,j)=>{"collapsed"in e||S(L),v==null||v(L,j)},{getPrefixCls:O}=b.useContext(At),$=O("layout-sider",n),[P,M,k]=QRe($),T=b.useRef(null);T.current=L=>{C(L.matches),g==null||g(L.matches),x!==L.matches&&E(L.matches,"responsive")},b.useEffect(()=>{function L(F){return T.current(F)}let j;if(typeof window!="undefined"){const{matchMedia:F}=window;if(F&&p&&p in TY){j=F(`screen and (max-width: ${TY[p]})`);try{j.addEventListener("change",L)}catch(B){j.addListener(L)}L(j)}}return()=>{try{j==null||j.removeEventListener("change",L)}catch(F){j==null||j.removeListener(L)}}},[p]),b.useEffect(()=>{const L=eIe("ant-sider-");return y.addSider(L),()=>y.removeSider(L)},[]);const R=()=>{E(!x,"clickTrigger")},A=()=>{const L=Or(m,["collapsed"]),j=x?d:f,F=YRe(j)?`${j}px`:String(j),B=parseFloat(String(d||0))===0?b.createElement("span",{onClick:R,className:me(`${$}-zero-width-trigger`,`${$}-zero-width-trigger-${u?"right":"left"}`),style:h},i||b.createElement(_Y,null)):null,W={expanded:u?b.createElement(sf,null):b.createElement(wp,null),collapsed:u?b.createElement(wp,null):b.createElement(sf,null)}[x?"collapsed":"expanded"],q=i!==null?B||b.createElement("div",{className:`${$}-trigger`,onClick:R,style:{width:F}},i||W):null,H=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),U=me($,`${$}-${s}`,{[`${$}-collapsed`]:!!x,[`${$}-has-trigger`]:c&&i!==null&&!B,[`${$}-below`]:!!w,[`${$}-zero-width`]:parseFloat(F)===0},r,M,k);return b.createElement("aside",Object.assign({className:U},L,{style:H,ref:t}),b.createElement("div",{className:`${$}-children`},a),c||w&&B?q:null)},N=b.useMemo(()=>({siderCollapsed:x}),[x]);return P(b.createElement(uE.Provider,{value:N},A()))});var tIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},nIe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:tIe}))},PI=b.forwardRef(nIe);const fE=b.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var rIe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,dashed:r}=e,i=rIe(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=b.useContext(At),o=a("menu",t),s=me({[`${o}-item-divider-dashed`]:!!r},n);return b.createElement(OI,Object.assign({className:s},i))},AY=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:o,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:d}=b.useContext(fE),h=x=>{const S=r==null?void 0:r[0],w=b.createElement("span",{className:me(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||b.isValidElement(r)&&r.type==="span")&&r&&x&&c&&typeof S=="string"?b.createElement("div",{className:`${l}-inline-collapsed-noicon`},S.charAt(0)):w},{siderCollapsed:p}=b.useContext(uE);let v=a;typeof a=="undefined"?v=c?r:"":a===!1&&(v="");const g={title:v};!p&&!d&&(g.title=null,g.open=!1);const m=da(r).length;let y=b.createElement(ib,Object.assign({},Or(e,["title","icon","danger"]),{className:me({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(i?m+1:m)===1},n),title:typeof a=="string"?a:void 0}),Pa(i,{className:me(b.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h(d));return f||(y=b.createElement(ro,Object.assign({},g,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),y)),y};var iIe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{children:n}=e,r=iIe(e,["children"]),i=b.useContext(dE),a=b.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=CCe(n),s=ef(t,o?bd(n):null);return b.createElement(dE.Provider,{value:a},b.createElement(cf,{space:!0},o?b.cloneElement(n,{ref:s}):n))}),aIe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ue(a)} ${o} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},lIe=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, - ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${fe(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${fe(n)})`}}}}},DY=e=>Object.assign({},_d(e)),FY=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,groupTitleColor:a,itemBg:o,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:f,motionDurationSlow:d,motionEaseInOut:h,motionEaseOut:p,itemPaddingInline:g,motionDurationMid:v,itemHoverColor:m,lineType:y,colorSplit:x,itemDisabledColor:S,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:E,dangerItemActiveBg:O,dangerItemSelectedBg:$,popupBg:P,itemHoverBg:M,itemActiveBg:k,menuSubMenuBg:T,horizontalItemSelectedColor:R,horizontalItemSelectedBg:A,horizontalItemBorderRadius:N,horizontalItemHoverBg:L}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:o,[`&${n}-root:focus-visible`]:Object.assign({},DY(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},DY(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:m}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:$}},[`&${n}-submenu > ${n}`]:{backgroundColor:T},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${fe(c)} solid transparent`,transition:`border-color ${d} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:L,"&::after":{borderBottomWidth:c,borderBottomColor:R}},"&-selected":{color:R,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:c,borderBottomColor:R}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${fe(f)} ${y} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${fe(u)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${p}`,`opacity ${v} ${p}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${h}`,`opacity ${v} ${h}`].join(",")}}}}}},BY=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:fe(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item, - > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:fe(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:u}}},cIe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:d,paddingXS:h,boxShadowSecondary:p,collapsedWidth:g,collapsedIconSize:v}=e,m={height:r,lineHeight:fe(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},BY(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},BY(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${fe(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${d}`,`background ${d}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:m,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:m}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},oIe=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ue(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ue(n)})`}}}}},LY=e=>Object.assign({},$d(e)),jY=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,groupTitleColor:a,itemBg:o,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:f,motionDurationSlow:d,motionEaseInOut:h,motionEaseOut:p,itemPaddingInline:v,motionDurationMid:g,itemHoverColor:m,lineType:y,colorSplit:x,itemDisabledColor:S,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:E,dangerItemActiveBg:O,dangerItemSelectedBg:$,popupBg:P,itemHoverBg:M,itemActiveBg:k,menuSubMenuBg:T,horizontalItemSelectedColor:R,horizontalItemSelectedBg:A,horizontalItemBorderRadius:N,horizontalItemHoverBg:L}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:o,[`&${n}-root:focus-visible`]:Object.assign({},LY(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},LY(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:m}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:$}},[`&${n}-submenu > ${n}`]:{backgroundColor:T},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${ue(c)} solid transparent`,transition:`border-color ${d} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:L,"&::after":{borderBottomWidth:c,borderBottomColor:R}},"&-selected":{color:R,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:c,borderBottomColor:R}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ue(f)} ${y} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ue(u)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${h}`,`opacity ${g} ${h}`].join(",")}}}}}},DY=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ue(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item, + > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ue(n)},[`${t}-item-group-list ${t}-submenu-title, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},sIe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:d,paddingXS:h,boxShadowSecondary:p,collapsedWidth:v,collapsedIconSize:g}=e,m={height:r,lineHeight:ue(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},DY(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},DY(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${ue(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${d}`,`background ${d}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:m,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:m}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, - > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${fe(e.calc(v).div(2).equal())} - ${fe(c)})`,textOverflow:"clip",[` + > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ue(e.calc(g).div(2).equal())} - ${ue(c)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:fe(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Qo),{paddingInline:h})}}]},zY=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Od()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},HY=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${fe(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${fe(o)})`}}}}},uIe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:d,subMenuItemBorderRadius:h,menuArrowSize:p,menuArrowOffset:g,lineType:v,groupTitleLineHeight:m,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},bc()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),bc()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${fe(s)} ${fe(l)}`,fontSize:y,lineHeight:m,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),zY(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${fe(e.calc(r).mul(2).equal())} ${fe(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:d,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:d},zY(e)),HY(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),HY(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${fe(g)})`},"&::after":{transform:`rotate(45deg) translateX(${fe(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${fe(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${fe(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${fe(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},fIe=e=>{var t,n,r;const{colorPrimary:i,colorError:a,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:d,lineWidth:h,lineWidthBold:p,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:m,lineHeight:y,colorBgElevated:x,marginXXS:S,padding:w,fontSize:C,controlHeightSM:E,fontSizeLG:O,colorTextLightSolid:$,colorErrorHover:P}=e,M=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,k=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:h,T=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,R=new Un($).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:d,itemActiveBg:g,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:h,activeBarBorderWidth:k,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:T,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:m,groupTitleLineHeight:y,collapsedWidth:m*2,popupBg:x,itemMarginBlock:S,itemPaddingInline:w,horizontalLineHeight:`${m*1.15}px`,iconSize:C,iconMarginInlineEnd:E-C,collapsedIconSize:O,groupTitleFontSize:C,darkItemDisabledColor:new Un($).setAlpha(.25).toRgbString(),darkItemColor:R,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:i,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:R,darkItemHoverColor:$,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:a,itemWidth:M?`calc(100% + ${k}px)`:`calc(100% - ${T*2}px)`}},dIe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return tr("Menu",i=>{const{colorBgElevated:a,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:d,darkItemSelectedBg:h,darkDangerItemSelectedBg:p,darkItemHoverBg:g,darkGroupTitleColor:v,darkItemHoverColor:m,darkItemDisabledColor:y,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:w,popupBg:C,darkPopupBg:E}=i,O=i.calc(s).div(7).mul(5).equal(),$=$n(i,{menuArrowSize:O,menuHorizontalHeight:i.calc(o).mul(1.15).equal(),menuArrowOffset:i.calc(O).mul(.25).equal(),menuSubMenuBg:a,calc:i.calc,popupBg:C}),P=$n($,{itemColor:l,itemHoverColor:m,groupTitleColor:v,itemSelectedColor:d,itemBg:u,popupBg:E,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:x,dangerItemSelectedColor:S,dangerItemActiveBg:w,dangerItemSelectedBg:p,menuSubMenuBg:f,horizontalItemSelectedColor:d,horizontalItemSelectedBg:h});return[uIe($),sIe($),cIe($),FY($,"light"),FY(P,"dark"),lIe($),D1($),ru($,"slide-up"),ru($,"slide-down"),qg($,"zoom-big")]},fIe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},WY=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,o=b.useContext(hE),{prefixCls:s,inlineCollapsed:l,theme:c}=o,u=sm();let f;if(!r)f=l&&!u.length&&i&&typeof i=="string"?b.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):b.createElement("span",{className:`${s}-title-content`},i);else{const p=b.isValidElement(i)&&i.type==="span";f=b.createElement(b.Fragment,null,Pa(r,{className:me(b.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),p?i:b.createElement("span",{className:`${s}-title-content`},i))}const d=b.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[h]=of("Menu");return b.createElement(hE.Provider,{value:d},b.createElement(fE,Object.assign({},Or(e,["icon"]),{title:f,popupClassName:me(s,n,`${s}-${a||c}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var hIe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n;const r=b.useContext(pE),i=r||{},{getPrefixCls:a,getPopupContainer:o,direction:s,menu:l}=b.useContext(Lt),c=a(),{prefixCls:u,className:f,style:d,theme:h="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:m,rootClassName:y,mode:x,selectable:S,onClick:w,overflowedIndicatorPopupClassName:C}=e,E=hIe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),O=Or(E,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:x});const $=_n(function(){var z;w==null||w.apply(void 0,arguments),(z=i.onClick)===null||z===void 0||z.call(i)}),P=i.mode||x,M=S!=null?S:i.selectable,k=v!=null?v:m,T={horizontal:{motionName:`${c}-slide-up`},inline:Hg(c),other:{motionName:`${c}-zoom-big`}},R=a("menu",u||i.prefixCls),A=Ti(R),[N,L,j]=dIe(R,A,!r),F=me(`${R}-${h}`,l==null?void 0:l.className,f),B=b.useMemo(()=>{var z,W;if(typeof p=="function"||II(p))return p||null;if(typeof i.expandIcon=="function"||II(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||II(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const q=(z=p!=null?p:i==null?void 0:i.expandIcon)!==null&&z!==void 0?z:l==null?void 0:l.expandIcon;return Pa(q,{className:me(`${R}-submenu-expand-icon`,b.isValidElement(q)?(W=q.props)===null||W===void 0?void 0:W.className:void 0)})},[p,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,R]),D=b.useMemo(()=>({prefixCls:R,inlineCollapsed:k||!1,direction:s,firstLevel:!0,theme:h,mode:P,disableMenuItemTitleTooltip:g}),[R,k,s,g,h]);return N(b.createElement(pE.Provider,{value:null},b.createElement(hE.Provider,{value:D},b.createElement(lm,Object.assign({getPopupContainer:o,overflowedIndicator:b.createElement(RI,null),overflowedIndicatorPopupClassName:me(R,`${R}-${h}`,C),mode:P,selectable:M,onClick:$},O,{inlineCollapsed:k,style:Object.assign(Object.assign({},l==null?void 0:l.style),d),className:F,prefixCls:R,direction:s,defaultMotions:T,expandIcon:B,ref:t,rootClassName:me(y,L,i.rootClassName,j,A),_internalComponents:pIe})))))}),ff=b.forwardRef((e,t)=>{const n=b.useRef(null),r=b.useContext(dE);return b.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var a;(a=n.current)===null||a===void 0||a.focus(i)}})),b.createElement(vIe,Object.assign({ref:n},e,r))});ff.Item=LY,ff.SubMenu=WY,ff.Divider=NY,ff.ItemGroup=kI;const gIe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},mIe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:d,fontSizeIcon:h,controlPaddingHorizontal:p,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:ue(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Qo),{paddingInline:h})}}]},FY=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},_d()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},BY=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ue(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ue(o)})`}}}}},lIe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:d,subMenuItemBorderRadius:h,menuArrowSize:p,menuArrowOffset:v,lineType:g,groupTitleLineHeight:m,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},bc()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),bc()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${ue(s)} ${ue(l)}`,fontSize:y,lineHeight:m,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),FY(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ue(e.calc(r).mul(2).equal())} ${ue(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:d,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:d},FY(e)),BY(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),BY(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ue(v)})`},"&::after":{transform:`rotate(45deg) translateX(${ue(e.calc(v).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ue(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ue(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ue(v)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},cIe=e=>{var t,n,r;const{colorPrimary:i,colorError:a,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:d,lineWidth:h,lineWidthBold:p,controlItemBgActive:v,colorBgTextHover:g,controlHeightLG:m,lineHeight:y,colorBgElevated:x,marginXXS:S,padding:w,fontSize:C,controlHeightSM:E,fontSizeLG:O,colorTextLightSolid:$,colorErrorHover:P}=e,M=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,k=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:h,T=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,R=new Un($).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:d,itemActiveBg:v,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:h,activeBarBorderWidth:k,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:T,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:m,groupTitleLineHeight:y,collapsedWidth:m*2,popupBg:x,itemMarginBlock:S,itemPaddingInline:w,horizontalLineHeight:`${m*1.15}px`,iconSize:C,iconMarginInlineEnd:E-C,collapsedIconSize:O,groupTitleFontSize:C,darkItemDisabledColor:new Un($).setAlpha(.25).toRgbString(),darkItemColor:R,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:i,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:R,darkItemHoverColor:$,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:a,itemWidth:M?`calc(100% + ${k}px)`:`calc(100% - ${T*2}px)`}},uIe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return tr("Menu",i=>{const{colorBgElevated:a,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:d,darkItemSelectedBg:h,darkDangerItemSelectedBg:p,darkItemHoverBg:v,darkGroupTitleColor:g,darkItemHoverColor:m,darkItemDisabledColor:y,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:w,popupBg:C,darkPopupBg:E}=i,O=i.calc(s).div(7).mul(5).equal(),$=_n(i,{menuArrowSize:O,menuHorizontalHeight:i.calc(o).mul(1.15).equal(),menuArrowOffset:i.calc(O).mul(.25).equal(),menuSubMenuBg:a,calc:i.calc,popupBg:C}),P=_n($,{itemColor:l,itemHoverColor:m,groupTitleColor:g,itemSelectedColor:d,itemBg:u,popupBg:E,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:x,dangerItemSelectedColor:S,dangerItemActiveBg:w,dangerItemSelectedBg:p,menuSubMenuBg:f,horizontalItemSelectedColor:d,horizontalItemSelectedBg:h});return[lIe($),aIe($),sIe($),jY($,"light"),jY(P,"dark"),oIe($),D1($),ru($,"slide-up"),ru($,"slide-down"),Ug($,"zoom-big")]},cIe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},zY=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,o=b.useContext(fE),{prefixCls:s,inlineCollapsed:l,theme:c}=o,u=lm();let f;if(!r)f=l&&!u.length&&i&&typeof i=="string"?b.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):b.createElement("span",{className:`${s}-title-content`},i);else{const p=b.isValidElement(i)&&i.type==="span";f=b.createElement(b.Fragment,null,Pa(r,{className:me(b.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),p?i:b.createElement("span",{className:`${s}-title-content`},i))}const d=b.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[h]=of("Menu");return b.createElement(fE.Provider,{value:d},b.createElement(cE,Object.assign({},Or(e,["icon"]),{title:f,popupClassName:me(s,n,`${s}-${a||c}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var fIe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n;const r=b.useContext(dE),i=r||{},{getPrefixCls:a,getPopupContainer:o,direction:s,menu:l}=b.useContext(At),c=a(),{prefixCls:u,className:f,style:d,theme:h="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:g,siderCollapsed:m,rootClassName:y,mode:x,selectable:S,onClick:w,overflowedIndicatorPopupClassName:C}=e,E=fIe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),O=Or(E,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:x});const $=On(function(){var z;w==null||w.apply(void 0,arguments),(z=i.onClick)===null||z===void 0||z.call(i)}),P=i.mode||x,M=S!=null?S:i.selectable,k=g!=null?g:m,T={horizontal:{motionName:`${c}-slide-up`},inline:Wg(c),other:{motionName:`${c}-zoom-big`}},R=a("menu",u||i.prefixCls),A=Ti(R),[N,L,j]=uIe(R,A,!r),F=me(`${R}-${h}`,l==null?void 0:l.className,f),B=b.useMemo(()=>{var z,W;if(typeof p=="function"||MI(p))return p||null;if(typeof i.expandIcon=="function"||MI(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||MI(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const q=(z=p!=null?p:i==null?void 0:i.expandIcon)!==null&&z!==void 0?z:l==null?void 0:l.expandIcon;return Pa(q,{className:me(`${R}-submenu-expand-icon`,b.isValidElement(q)?(W=q.props)===null||W===void 0?void 0:W.className:void 0)})},[p,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,R]),D=b.useMemo(()=>({prefixCls:R,inlineCollapsed:k||!1,direction:s,firstLevel:!0,theme:h,mode:P,disableMenuItemTitleTooltip:v}),[R,k,s,v,h]);return N(b.createElement(dE.Provider,{value:null},b.createElement(fE.Provider,{value:D},b.createElement(cm,Object.assign({getPopupContainer:o,overflowedIndicator:b.createElement(PI,null),overflowedIndicatorPopupClassName:me(R,`${R}-${h}`,C),mode:P,selectable:M,onClick:$},O,{inlineCollapsed:k,style:Object.assign(Object.assign({},l==null?void 0:l.style),d),className:F,prefixCls:R,direction:s,defaultMotions:T,expandIcon:B,ref:t,rootClassName:me(y,L,i.rootClassName,j,A),_internalComponents:dIe})))))}),ff=b.forwardRef((e,t)=>{const n=b.useRef(null),r=b.useContext(uE);return b.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var a;(a=n.current)===null||a===void 0||a.focus(i)}})),b.createElement(hIe,Object.assign({ref:n},e,r))});ff.Item=AY,ff.SubMenu=zY,ff.Divider=IY,ff.ItemGroup=_I;const pIe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},vIe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:d,fontSizeIcon:h,controlPaddingHorizontal:p,colorBgElevated:v}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight, - &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:VC},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:HC},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft, &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top, &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top, &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight, - &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:UC},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:VC},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom, - &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:qC},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:WC},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top, - &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:GC}}},mI(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},er(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},nu(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${fe(c)} ${fe(p)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${fe(c)} ${fe(p)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},nu(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:d,cursor:"not-allowed","&:hover":{color:d,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${fe(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${fe(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:d,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[ru(e,"slide-up"),ru(e,"slide-down"),Vg(e,"move-up"),Vg(e,"move-down"),qg(e,"zoom-big")]]},yIe=tr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=$n(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[mIe(a),gIe(a)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},aE({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),iE(e)),{resetStyle:!1}),ab=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:d,open:h,onOpenChange:p,visible:g,onVisibleChange:v,mouseEnterDelay:m=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:x=!0,placement:S="",overlay:w,transitionName:C}=e,{getPopupContainer:E,getPrefixCls:O,direction:$,dropdown:P}=b.useContext(Lt);Cd();const M=b.useMemo(()=>{const te=O();return C!==void 0?C:S.includes("top")?`${te}-slide-down`:`${te}-slide-up`},[O,S,C]),k=b.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:$==="rtl"?"bottomRight":"bottomLeft",[S,$]),T=O("dropdown",i),R=Ti(T),[A,N,L]=yIe(T,R),[,j]=eo(),F=b.Children.only(fRe(a)?b.createElement("span",null,a):a),B=Pa(F,{className:me(`${T}-trigger`,{[`${T}-rtl`]:$==="rtl"},F.props.className),disabled:(t=F.props.disabled)!==null&&t!==void 0?t:s}),D=s?[]:o,z=!!(D!=null&&D.includes("contextMenu")),[W,q]=Yn(!1,{value:h!=null?h:g}),H=_n(te=>{p==null||p(te,{source:"trigger"}),v==null||v(te),q(te)}),U=me(u,f,N,L,R,P==null?void 0:P.className,{[`${T}-rtl`]:$==="rtl"}),G=rY({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:x,offset:j.marginXXS,arrowWidth:r?j.sizePopupArrow:0,borderRadius:j.borderRadius}),K=b.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(p==null||p(!1,{source:"menu"}),q(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),X=()=>{let te;return n!=null&&n.items?te=b.createElement(ff,Object.assign({},n)):typeof w=="function"?te=w():te=w,l&&(te=l(te)),te=b.Children.only(typeof te=="string"?b.createElement("span",null,te):te),b.createElement(jY,{prefixCls:`${T}-menu`,rootClassName:me(L,R),expandIcon:b.createElement("span",{className:`${T}-menu-submenu-arrow`},b.createElement(sf,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:K,validator:ie=>{}},te)},[Q,ee]=of("Dropdown",d==null?void 0:d.zIndex);let ne=b.createElement(uY,Object.assign({alignPoint:z},Or(e,["rootClassName"]),{mouseEnterDelay:m,mouseLeaveDelay:y,visible:W,builtinPlacements:G,arrow:!!r,overlayClassName:U,prefixCls:T,getPopupContainer:c||E,transitionName:M,trigger:D,overlay:X,placement:k,onVisibleChange:H,overlayStyle:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),d),{zIndex:Q})}),B);return Q&&(ne=b.createElement(jC.Provider,{value:ee},ne)),A(ne)};function bIe(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const xIe=U1(ab,"dropdown",e=>e,bIe),SIe=e=>b.createElement(xIe,Object.assign({},e),b.createElement("span",null));ab._InternalPanelDoNotUseOrYouWillBeFired=SIe;const vE=e=>{let{children:t}=e;const{getPrefixCls:n}=b.useContext(Lt),r=n("breadcrumb");return b.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};vE.__ANT_BREADCRUMB_SEPARATOR=!0;var wIe=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 i=0,r=Object.getOwnPropertySymbols(e);it[i]||r)}function VY(e,t,n,r){if(n==null)return null;const{className:i,onClick:a}=t,o=wIe(t,["className","onClick"]),s=Object.assign(Object.assign({},ta(o,{data:!0,aria:!0})),{onClick:a});return r!==void 0?b.createElement("a",Object.assign({},s,{className:me(`${e}-link`,i),href:r}),n):b.createElement("span",Object.assign({},s,{className:me(`${e}-link`,i)}),n)}function EIe(e,t){return(r,i,a,o,s)=>{if(t)return t(r,i,a,o);const l=CIe(r,i);return VY(e,r,l,s)}}var AI=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,separator:n="/",children:r,menu:i,overlay:a,dropdownProps:o,href:s}=e,c=(u=>{if(i||a){const f=Object.assign({},o);if(i){const d=i||{},{items:h}=d,p=AI(d,["items"]);f.menu=Object.assign(Object.assign({},p),{items:h==null?void 0:h.map((g,v)=>{var{key:m,title:y,label:x,path:S}=g,w=AI(g,["key","title","label","path"]);let C=x!=null?x:y;return S&&(C=b.createElement("a",{href:`${s}${S}`},C)),Object.assign(Object.assign({},w),{key:m!=null?m:v,label:C})})})}else a&&(f.overlay=a);return b.createElement(ab,Object.assign({placement:"bottom"},f),b.createElement("span",{className:`${t}-overlay-link`},u,b.createElement(J1,null)))}return u})(r);return c!=null?b.createElement(b.Fragment,null,b.createElement("li",null,c),n&&b.createElement(vE,null,n)):null},UY=e=>{const{prefixCls:t,children:n,href:r}=e,i=AI(e,["prefixCls","children","href"]),{getPrefixCls:a}=b.useContext(Lt),o=a("breadcrumb",t);return b.createElement(qY,Object.assign({},i,{prefixCls:o}),VY(o,i,n,r))};UY.__ANT_BREADCRUMB_ITEM=!0;const OIe=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},er(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${fe(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},nu(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:qC}}},hI(e,v,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},er(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},nu(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ue(c)} ${ue(p)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${ue(c)} ${ue(p)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},nu(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:d,cursor:"not-allowed","&:hover":{color:d,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ue(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ue(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:d,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[ru(e,"slide-up"),ru(e,"slide-down"),qg(e,"move-up"),qg(e,"move-down"),Ug(e,"zoom-big")]]},gIe=tr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=_n(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[vIe(a),pIe(a)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},rE({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),nE(e)),{resetStyle:!1}),ab=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:d,open:h,onOpenChange:p,visible:v,onVisibleChange:g,mouseEnterDelay:m=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:x=!0,placement:S="",overlay:w,transitionName:C}=e,{getPopupContainer:E,getPrefixCls:O,direction:$,dropdown:P}=b.useContext(At);Cd();const M=b.useMemo(()=>{const te=O();return C!==void 0?C:S.includes("top")?`${te}-slide-down`:`${te}-slide-up`},[O,S,C]),k=b.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:$==="rtl"?"bottomRight":"bottomLeft",[S,$]),T=O("dropdown",i),R=Ti(T),[A,N,L]=gIe(T,R),[,j]=to(),F=b.Children.only(cRe(a)?b.createElement("span",null,a):a),B=Pa(F,{className:me(`${T}-trigger`,{[`${T}-rtl`]:$==="rtl"},F.props.className),disabled:(t=F.props.disabled)!==null&&t!==void 0?t:s}),D=s?[]:o,z=!!(D!=null&&D.includes("contextMenu")),[W,q]=Yn(!1,{value:h!=null?h:v}),H=On(te=>{p==null||p(te,{source:"trigger"}),g==null||g(te),q(te)}),U=me(u,f,N,L,R,P==null?void 0:P.className,{[`${T}-rtl`]:$==="rtl"}),G=tY({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:x,offset:j.marginXXS,arrowWidth:r?j.sizePopupArrow:0,borderRadius:j.borderRadius}),K=b.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(p==null||p(!1,{source:"menu"}),q(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),X=()=>{let te;return n!=null&&n.items?te=b.createElement(ff,Object.assign({},n)):typeof w=="function"?te=w():te=w,l&&(te=l(te)),te=b.Children.only(typeof te=="string"?b.createElement("span",null,te):te),b.createElement(NY,{prefixCls:`${T}-menu`,rootClassName:me(L,R),expandIcon:b.createElement("span",{className:`${T}-menu-submenu-arrow`},b.createElement(sf,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:K,validator:ie=>{}},te)},[Q,ee]=of("Dropdown",d==null?void 0:d.zIndex);let ne=b.createElement(lY,Object.assign({alignPoint:z},Or(e,["rootClassName"]),{mouseEnterDelay:m,mouseLeaveDelay:y,visible:W,builtinPlacements:G,arrow:!!r,overlayClassName:U,prefixCls:T,getPopupContainer:c||E,transitionName:M,trigger:D,overlay:X,placement:k,onVisibleChange:H,overlayStyle:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),d),{zIndex:Q})}),B);return Q&&(ne=b.createElement(LC.Provider,{value:ee},ne)),A(ne)};function mIe(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const yIe=U1(ab,"dropdown",e=>e,mIe),bIe=e=>b.createElement(yIe,Object.assign({},e),b.createElement("span",null));ab._InternalPanelDoNotUseOrYouWillBeFired=bIe;const hE=e=>{let{children:t}=e;const{getPrefixCls:n}=b.useContext(At),r=n("breadcrumb");return b.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};hE.__ANT_BREADCRUMB_SEPARATOR=!0;var xIe=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 i=0,r=Object.getOwnPropertySymbols(e);it[i]||r)}function HY(e,t,n,r){if(n==null)return null;const{className:i,onClick:a}=t,o=xIe(t,["className","onClick"]),s=Object.assign(Object.assign({},ta(o,{data:!0,aria:!0})),{onClick:a});return r!==void 0?b.createElement("a",Object.assign({},s,{className:me(`${e}-link`,i),href:r}),n):b.createElement("span",Object.assign({},s,{className:me(`${e}-link`,i)}),n)}function wIe(e,t){return(r,i,a,o,s)=>{if(t)return t(r,i,a,o);const l=SIe(r,i);return HY(e,r,l,s)}}var kI=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,separator:n="/",children:r,menu:i,overlay:a,dropdownProps:o,href:s}=e,c=(u=>{if(i||a){const f=Object.assign({},o);if(i){const d=i||{},{items:h}=d,p=kI(d,["items"]);f.menu=Object.assign(Object.assign({},p),{items:h==null?void 0:h.map((v,g)=>{var{key:m,title:y,label:x,path:S}=v,w=kI(v,["key","title","label","path"]);let C=x!=null?x:y;return S&&(C=b.createElement("a",{href:`${s}${S}`},C)),Object.assign(Object.assign({},w),{key:m!=null?m:g,label:C})})})}else a&&(f.overlay=a);return b.createElement(ab,Object.assign({placement:"bottom"},f),b.createElement("span",{className:`${t}-overlay-link`},u,b.createElement(J1,null)))}return u})(r);return c!=null?b.createElement(b.Fragment,null,b.createElement("li",null,c),n&&b.createElement(hE,null,n)):null},VY=e=>{const{prefixCls:t,children:n,href:r}=e,i=kI(e,["prefixCls","children","href"]),{getPrefixCls:a}=b.useContext(At),o=a("breadcrumb",t);return b.createElement(WY,Object.assign({},i,{prefixCls:o}),HY(o,i,n,r))};VY.__ANT_BREADCRUMB_ITEM=!0;const CIe=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},er(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${ue(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},nu(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` > ${n} + span, > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${fe(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},_Ie=tr("Breadcrumb",e=>{const t=$n(e,{});return OIe(t)},e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));var GY=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{breadcrumbName:o}=a,s=GY(a,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:o})})}),i}function PIe(e,t){return b.useMemo(()=>e||(t?t.map($Ie):null),[e,t])}var MIe=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 i=0,r=Object.getOwnPropertySymbols(e);i{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},ob=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:a,routes:o,items:s,children:l,itemRender:c,params:u={}}=e,f=MIe(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:d,direction:h,breadcrumb:p}=b.useContext(Lt);let g;const v=d("breadcrumb",t),[m,y,x]=_Ie(v),S=PIe(s,o),w=EIe(v,c);if(S&&S.length>0){const O=[],$=s||o;g=S.map((P,M)=>{const{path:k,key:T,type:R,menu:A,overlay:N,onClick:L,className:j,separator:F,dropdownProps:B}=P,D=kIe(u,k);D!==void 0&&O.push(D);const z=T!=null?T:M;if(R==="separator")return b.createElement(vE,{key:z},F);const W={},q=M===S.length-1;A?W.menu=A:N&&(W.overlay=N);let{href:H}=P;return O.length&&D!==void 0&&(H=`#/${O.join("/")}`),b.createElement(qY,Object.assign({key:z},W,ta(P,{data:!0,aria:!0}),{className:j,dropdownProps:B,href:H,separator:q?"":n,onClick:L,prefixCls:v}),w(P,u,$,O,H))})}else if(l){const O=da(l).length;g=da(l).map(($,P)=>{if(!$)return $;const M=P===O-1;return Pa($,{separator:M?"":n,key:P})})}const C=me(v,p==null?void 0:p.className,{[`${v}-rtl`]:h==="rtl"},i,a,y,x),E=Object.assign(Object.assign({},p==null?void 0:p.style),r);return m(b.createElement("nav",Object.assign({className:C,style:E},f),b.createElement("ol",null,g)))};ob.Item=UY,ob.Separator=vE;var KY={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ft,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="week",f="month",d="quarter",h="year",p="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var A=["th","st","nd","rd"],N=R%100;return"["+R+(A[(N-20)%10]||A[N]||A[0])+"]"}},x=function(R,A,N){var L=String(R);return!L||L.length>=A?R:""+Array(A+1-L.length).join(N)+R},S={s:x,z:function(R){var A=-R.utcOffset(),N=Math.abs(A),L=Math.floor(N/60),j=N%60;return(A<=0?"+":"-")+x(L,2,"0")+":"+x(j,2,"0")},m:function R(A,N){if(A.date()1)return R(B[0])}else{var D=A.name;C[D]=A,j=D}return!L&&j&&(w=j),j||!L&&w},P=function(R,A){if(O(R))return R.clone();var N=typeof A=="object"?A:{};return N.date=R,N.args=arguments,new k(N)},M=S;M.l=$,M.i=O,M.w=function(R,A){return P(R,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var k=function(){function R(N){this.$L=$(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[E]=!0}var A=R.prototype;return A.parse=function(N){this.$d=function(L){var j=L.date,F=L.utc;if(j===null)return new Date(NaN);if(M.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var B=j.match(v);if(B){var D=B[2]-1||0,z=(B[7]||"0").substring(0,3);return F?new Date(Date.UTC(B[1],D,B[3]||1,B[4]||0,B[5]||0,B[6]||0,z)):new Date(B[1],D,B[3]||1,B[4]||0,B[5]||0,B[6]||0,z)}}return new Date(j)}(N),this.init()},A.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},A.$utils=function(){return M},A.isValid=function(){return this.$d.toString()!==g},A.isSame=function(N,L){var j=P(N);return this.startOf(L)<=j&&j<=this.endOf(L)},A.isAfter=function(N,L){return P(N)25){var u=o(this).startOf(r).add(1,r).date(c),f=o(this).endOf(n);if(u.isBefore(f))return 1}var d=o(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),h=this.diff(d,n,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(ZY);var LIe=ZY.exports;const jIe=rn(LIe);var QY={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ft,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})})(QY);var DIe=QY.exports;const FIe=rn(DIe);var JY={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ft,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var c=this.$utils(),u=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return a.bind(this)(u)}}})})(JY);var BIe=JY.exports;const zIe=rn(BIe);var eX={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ft,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(m){this[v]=+m}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var y=m.match(/([+-]|\d\d)/g),x=60*y[1]+(+y[2]||0);return x===0?0:y[0]==="+"?-x:x}(v)}],d=function(v){var m=l[v];return m&&(m.indexOf?m:m.s.concat(m.f))},h=function(v,m){var y,x=l.meridiem;if(x){for(var S=1;S<=24;S+=1)if(v.indexOf(x(S,0,m))>-1){y=S>12;break}}else y=v===(m?"pm":"PM");return y},p={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[a,u("day")],Do:[s,function(v){var m=l.ordinal,y=v.match(/\d+/);if(this.day=y[0],m)for(var x=1;x<=31;x+=1)m(x).replace(/\[|\]/g,"")===v&&(this.day=x)}],w:[o,u("week")],ww:[a,u("week")],M:[o,u("month")],MM:[a,u("month")],MMM:[s,function(v){var m=d("months"),y=(d("monthsShort")||m.map(function(x){return x.slice(0,3)})).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(v){var m=d("months").indexOf(v)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var m,y;m=v,y=l&&l.formats;for(var x=(v=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,M,k){var T=k&&k.toUpperCase();return M||y[k]||n[k]||y[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,A,N){return A||N.slice(1)})})).match(r),S=x.length,w=0;w-1)return new Date((j==="X"?1e3:1)*L);var D=g(j)(L),z=D.year,W=D.month,q=D.day,H=D.hours,U=D.minutes,G=D.seconds,K=D.milliseconds,X=D.zone,Q=D.week,ee=new Date,ne=q||(z||W?1:ee.getDate()),te=z||ee.getFullYear(),ie=0;z&&!W||(ie=W>0?W-1:ee.getMonth());var J,le=H||0,oe=U||0,re=G||0,se=K||0;return X?new Date(Date.UTC(te,ie,ne,le,oe,re,se+60*X.offset*1e3)):F?new Date(Date.UTC(te,ie,ne,le,oe,re,se)):(J=new Date(te,ie,ne,le,oe,re,se),Q&&(J=B(J).week(Q).toDate()),J)}catch(ge){return new Date("")}}(C,$,E,y),this.init(),T&&T!==!0&&(this.$L=this.locale(T).$L),k&&C!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var R=$.length,A=1;A<=R;A+=1){O[1]=$[A-1];var N=y.apply(this,O);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}A===R&&(this.$d=new Date(""))}else S.call(this,w)}}})})(eX);var HIe=eX.exports;const WIe=rn(HIe);Ro.extend(WIe),Ro.extend(zIe),Ro.extend(IIe),Ro.extend(NIe),Ro.extend(jIe),Ro.extend(FIe),Ro.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var o=(a||"").replace("Wo","wo");return r.bind(this)(o)}});var VIe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},wp=function(t){var n=VIe[t];return n||t.split("_")[0]},qIe={getNow:function(){var t=Ro();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Ro(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Ro().locale(wp(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(wp(t)).weekday(0)},getWeek:function(t,n){return n.locale(wp(t)).week()},getShortWeekDays:function(t){return Ro().locale(wp(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Ro().locale(wp(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(wp(t)).format(r)},parse:function(t,n,r){for(var i=wp(t),a=0;a2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=b.useState([!1,!1]),i=he(r,2),a=i[0],o=i[1],s=function(u,f){o(function(d){return sb(d,f,u)})},l=b.useMemo(function(){return a.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,a,t,n]);return[l,s]}function sX(e,t,n,r,i){var a="",o=[];return e&&o.push(i?"hh":"HH"),t&&o.push("mm"),n&&o.push("ss"),a=o.join(":"),r&&(a+=".SSS"),i&&(a+=" A"),a}function GIe(e,t,n,r,i,a){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,d=e.fieldQuarterFormat,h=e.yearFormat,p=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,m=e.cellDateFormat,y=sX(t,n,r,i,a);return ae(ae({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:d||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:p||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:m||v||"D"})}function lX(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,o=t.use12Hours;return we.useMemo(function(){return GIe(e,n,r,i,a,o)},[e,n,r,i,a,o])}function lb(e,t,n){return n!=null?n:t.some(function(r){return e.includes(r)})}var KIe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function YIe(e){var t=mE(e,KIe),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=Bt(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function XIe(e){return e&&typeof e=="string"}function cX(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function uX(e,t,n,r,i){var a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){var l,c,u,f=[a,o,s].some(function(p){return p===!1}),d=[a,o,s].some(function(p){return p===!0}),h=f?!0:!d;a=(l=a)!==null&&l!==void 0?l:h,o=(c=o)!==null&&c!==void 0?c:h,s=(u=s)!==null&&u!==void 0?u:h}return[a,o,s,i]}function fX(e){var t=e.showTime,n=YIe(e),r=he(n,2),i=r[0],a=r[1],o=t&&Bt(t)==="object"?t:{},s=ae(ae({defaultOpenValue:o.defaultOpenValue||o.defaultValue},i),o),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,d=cX(c,u,f,l),h=uX(d,c,u,f,l),p=he(h,3);return c=p[0],u=p[1],f=p[2],[s,ae(ae({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,a]}function dX(e,t,n,r,i){var a=e==="time";if(e==="datetime"||a){for(var o=r,s=rX(e,i,null),l=s,c=[t,n],u=0;u1&&(o=t.addDate(o,-7)),o}function za(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function xE(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(o,s){n?r=e[o](r,e[i[s]](n)):r=e[o](r,0)}),r}function e5e(e,t,n,r,i){var a=_n(function(o,s){return!!(n&&n(o,s)||r&&e.isAfter(r,o)&&!Io(e,t,r,o,s.type)||i&&e.isAfter(o,i)&&!Io(e,t,i,o,s.type))});return a}function t5e(e,t,n){return b.useMemo(function(){var r=rX(e,t,n),i=Cp(r),a=i[0],o=Bt(a)==="object"&&a.type==="mask"?a.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,n])}function n5e(e,t,n){return typeof e[0]=="function"||n?!0:t}function r5e(e,t,n,r){var i=_n(function(a,o){var s=ae({type:t},o);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var l,c=o&&o.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,c,{from:s.from}))||{},f=u.disabledHours,d=u.disabledMinutes,h=u.disabledSeconds,p=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,m=r.disabledSeconds,y=f||g,x=d||v,S=h||m,w=e.getHour(a),C=e.getMinute(a),E=e.getSecond(a),O=e.getMillisecond(a);if(y&&y().includes(w)||x&&x(w).includes(C)||S&&S(w,C).includes(E)||p&&p(w,C,E).includes(O))return!0}return!1});return i}function SE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=b.useMemo(function(){var r=e&&Cp(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function gX(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=i===void 0?"date":i,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,d=e.order,h=d===void 0?!0:d,p=e.components,g=p===void 0?{}:p,v=e.inputRender,m=e.allowClear,y=e.clearIcon,x=e.needConfirm,S=e.multiple,w=e.format,C=e.inputReadOnly,E=e.disabledDate,O=e.minDate,$=e.maxDate,P=e.showTime,M=e.value,k=e.defaultValue,T=e.pickerValue,R=e.defaultPickerValue,A=SE(M),N=SE(k),L=SE(T),j=SE(R),F=a==="date"&&P?"datetime":a,B=F==="time"||F==="datetime",D=B||S,z=x!=null?x:B,W=fX(e),q=he(W,4),H=q[0],U=q[1],G=q[2],K=q[3],X=lX(r,U),Q=b.useMemo(function(){return dX(F,G,K,H,X)},[F,G,K,H,X]),ee=b.useMemo(function(){return ae(ae({},e),{},{prefixCls:s,locale:X,picker:a,styles:c,classNames:f,order:h,components:ae({input:v},g),clearIcon:ZIe(s,m,y),showTime:Q,value:A,defaultValue:N,pickerValue:L,defaultPickerValue:j},t==null?void 0:t())},[e]),ne=t5e(F,X,w),te=he(ne,2),ie=te[0],J=te[1],le=n5e(ie,C,S),oe=e5e(n,r,E,O,$),re=r5e(n,a,oe,Q),se=b.useMemo(function(){return ae(ae({},ee),{},{needConfirm:z,inputReadOnly:le,disabledDate:oe})},[ee,z,le,oe]);return[se,F,D,ie,J,re]}function i5e(e,t,n){var r=Yn(t,{value:e}),i=he(r,2),a=i[0],o=i[1],s=we.useRef(e),l=we.useRef(),c=function(){bn.cancel(l.current)},u=_n(function(){o(s.current),n&&a!==s.current&&n(s.current)}),f=_n(function(d,h){c(),s.current=d,d||h?u():l.current=bn(u)});return we.useEffect(function(){return c},[]),[a,f]}function mX(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(u){return u})?!1:e,a=i5e(i,t||!1,r),o=he(a,2),s=o[0],l=o[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function yX(e){var t=b.useRef();return b.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var a;(a=t.current)===null||a===void 0||a.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function bX(e,t){return b.useMemo(function(){return e||(t?(zr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=he(n,2),i=r[0],a=r[1];return{label:i,value:a}})):[])},[e,t])}function zI(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=b.useRef(t);r.current=t,sp(function(){if(e)r.current(e);else{var i=bn(function(){r.current(e)},n);return function(){bn.cancel(i)}}},[e])}function xX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=b.useState(0),i=he(r,2),a=i[0],o=i[1],s=b.useState(!1),l=he(s,2),c=l[0],u=l[1],f=b.useRef([]),d=b.useRef(null),h=function(m){u(m)},p=function(m){return m&&(d.current=m),d.current},g=function(m){var y=f.current,x=new Set(y.filter(function(w){return m[w]||t[w]})),S=y[y.length-1]===0?1:0;return x.size>=2||e[S]?null:S};return zI(c||n,function(){c||(f.current=[])}),b.useEffect(function(){c&&f.current.push(a)},[c,a]),[c,h,p,a,o,g,f.current]}function a5e(e,t,n,r,i,a){var o=n[n.length-1],s=function(c,u){var f=he(e,2),d=f[0],h=f[1],p=ae(ae({},u),{},{from:iX(e,n)});return o===1&&t[0]&&d&&!Io(r,i,d,c,p.type)&&r.isAfter(d,c)||o===0&&t[1]&&h&&!Io(r,i,h,c,p.type)&&r.isAfter(c,h)?!0:a==null?void 0:a(c,p)};return s}function ub(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var HI=[];function SX(e,t,n,r,i,a,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:HI,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:HI,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:HI,f=arguments.length>11?arguments[11]:void 0,d=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,p=o==="time",g=a||0,v=function(L){var j=e.getNow();return p&&(j=xE(e,j)),l[L]||n[L]||j},m=he(c,2),y=m[0],x=m[1],S=Yn(function(){return v(0)},{value:y}),w=he(S,2),C=w[0],E=w[1],O=Yn(function(){return v(1)},{value:x}),$=he(O,2),P=$[0],M=$[1],k=b.useMemo(function(){var N=[C,P][g];return p?N:xE(e,N,u[g])},[p,C,P,g,e,u]),T=function(L){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",F=[E,M][g];F(L);var B=[C,P];B[g]=L,f&&(!Io(e,t,C,B[0],o)||!Io(e,t,P,B[1],o))&&f(B,{source:j,range:g===1?"end":"start",mode:r})},R=function(L,j){if(s){var F={date:"month",week:"month",month:"year",quarter:"year"},B=F[o];if(B&&!Io(e,t,L,j,B))return ub(e,o,j,-1);if(o==="year"&&L){var D=Math.floor(e.getYear(L)/10),z=Math.floor(e.getYear(j)/10);if(D!==z)return ub(e,o,j,-1)}}return j},A=b.useRef(null);return Nn(function(){if(i&&!l[g]){var N=p?null:e.getNow();if(A.current!==null&&A.current!==g?N=[C,P][g^1]:n[g]?N=g===0?n[0]:R(n[0],n[1]):n[g^1]&&(N=n[g^1]),N){d&&e.isAfter(d,N)&&(N=d);var L=s?ub(e,o,N,1):N;h&&e.isAfter(L,h)&&(N=s?ub(e,o,h,-1):h),T(N,"reset")}}},[i,g,n[g]]),b.useEffect(function(){i?A.current=g:A.current=null},[i,g]),Nn(function(){i&&l&&l[g]&&T(l[g],"reset")},[i,g]),[k,T]}function wX(e,t){var n=b.useRef(e),r=b.useState({}),i=he(r,2),a=i[1],o=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,a({})};return[o,s,o(!0)]}var o5e=[];function CX(e,t,n){var r=function(o){return o.map(function(s){return za(s,{generateConfig:e,locale:t,format:n[0]})})},i=function(o,s){for(var l=Math.max(o.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=i.includes(l);(!c||!r)&&o.push({label:NI(l,a),value:l,disabled:c})}return o}function WI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,a=r.hourStep,o=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,d=f===void 0?100:f,h=r.hideDisabledOptions,p=r.disabledTime,g=r.disabledHours,v=r.disabledMinutes,m=r.disabledSeconds,y=b.useMemo(function(){return n||e.getNow()},[n,e]),x=b.useCallback(function(j){var F=(p==null?void 0:p(j))||{};return[F.disabledHours||g||wE,F.disabledMinutes||v||wE,F.disabledSeconds||m||wE,F.disabledMilliseconds||wE]},[p,g,v,m]),S=b.useMemo(function(){return x(y)},[y,x]),w=he(S,4),C=w[0],E=w[1],O=w[2],$=w[3],P=b.useCallback(function(j,F,B,D){var z=CE(0,23,o,h,j()),W=i?z.map(function(G){return ae(ae({},G),{},{label:NI(G.value%12||12,2)})}):z,q=function(K){return CE(0,59,l,h,F(K))},H=function(K,X){return CE(0,59,u,h,B(K,X))},U=function(K,X,Q){return CE(0,999,d,h,D(K,X,Q),3)};return[W,q,H,U]},[h,o,i,d,l,u]),M=b.useMemo(function(){return P(C,E,O,$)},[P,C,E,O,$]),k=he(M,4),T=k[0],R=k[1],A=k[2],N=k[3],L=function(F,B){var D=function(){return T},z=R,W=A,q=N;if(B){var H=x(B),U=he(H,4),G=U[0],K=U[1],X=U[2],Q=U[3],ee=P(G,K,X,Q),ne=he(ee,4),te=ne[0],ie=ne[1],J=ne[2],le=ne[3];D=function(){return te},z=ie,W=J,q=le}var oe=l5e(F,D,z,W,q,e);return oe};return[L,T,R,A,N]}function c5e(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,a=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,d=b.useContext(Ec),h=d.prefixCls,p=d.locale,g=d.button,v=g===void 0?"button":g,m=u.getNow(),y=WI(u,a,m),x=he(y,1),S=x[0],w=r==null?void 0:r(t),C=f(m,{type:t}),E=function(){if(!C){var R=S(m);s(R)}},O="".concat(h,"-now"),$="".concat(O,"-btn"),P=i&&b.createElement("li",{className:O},b.createElement("a",{className:me($,C&&"".concat($,"-disabled")),"aria-disabled":C,onClick:E},n==="date"?p.today:p.now)),M=c&&b.createElement("li",{className:"".concat(h,"-ok")},b.createElement(v,{disabled:l,onClick:o},p.ok)),k=(P||M)&&b.createElement("ul",{className:"".concat(h,"-ranges")},P,M);return!w&&!k?null:b.createElement("div",{className:"".concat(h,"-footer")},w&&b.createElement("div",{className:"".concat(h,"-footer-extra")},w),k)}function PX(e,t,n){function r(i,a){var o=i.findIndex(function(l){return Io(e,t,l,a,n)});if(o===-1)return[].concat(Ne(i),[a]);var s=Ne(i);return s.splice(o,1),s}return r}var Op=b.createContext(null);function EE(){return b.useContext(Op)}function cm(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,a=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,d=e.values,h=e.pickerValue,p=e.onSelect,g=e.prevIcon,v=e.nextIcon,m=e.superPrevIcon,y=e.superNextIcon,x=r.getNow(),S={now:x,values:d,pickerValue:h,prefixCls:n,disabledDate:a,minDate:o,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:i,generateConfig:r,onSelect:p,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:m,superNextIcon:y};return[S,x]}var Nd=b.createContext({});function fb(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,a=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,d=f===void 0?!0:f,h=e.disabledDate,p=EE(),g=p.prefixCls,v=p.panelType,m=p.now,y=p.disabledDate,x=p.cellRender,S=p.onHover,w=p.hoverValue,C=p.hoverRangeValue,E=p.generateConfig,O=p.values,$=p.locale,P=p.onSelect,M=h||y,k="".concat(g,"-cell"),T=b.useContext(Nd),R=T.onCellDblClick,A=function(W){return O.some(function(q){return q&&Io(E,$,W,q,v)})},N=[],L=0;L1&&arguments[1]!==void 0?arguments[1]:!1;pe(Re),v==null||v(Re),Ae&&ue(Re)},Oe=function(Re,Ae){X(Re),Ae&&Se(Ae),ue(Ae,Re)},_e=function(Re){if(re(Re),Se(Re),K!==S){var Ae=["decade","year"],$e=[].concat(Ae,["month"]),Ve={quarter:[].concat(Ae,["quarter"]),week:[].concat(Ne($e),["week"]),date:[].concat(Ne($e),["date"])},et=Ve[S]||$e,Tt=et.indexOf(K),Mt=et[Tt+1];Mt&&Oe(Mt,Re)}},Te=b.useMemo(function(){var Ce,Re;if(Array.isArray(E)){var Ae=he(E,2);Ce=Ae[0],Re=Ae[1]}else Ce=E;return!Ce&&!Re?null:(Ce=Ce||Re,Re=Re||Ce,i.isAfter(Ce,Re)?[Re,Ce]:[Ce,Re])},[E,i]),je=LI(O,$,P),Be=k[Q]||x5e[Q]||_E,Pe=b.useContext(Nd),He=b.useMemo(function(){return ae(ae({},Pe),{},{hideHeader:T})},[Pe,T]),Ue="".concat(R,"-panel"),ke=mE(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return b.createElement(Nd.Provider,{value:He},b.createElement("div",{ref:A,tabIndex:l,className:me(Ue,Z({},"".concat(Ue,"-rtl"),a==="rtl"))},b.createElement(Be,Le({},ke,{showTime:q,prefixCls:R,locale:z,generateConfig:i,onModeChange:Oe,pickerValue:de,onPickerValueChange:function(Re){Se(Re,!0)},value:le[0],onSelect:_e,values:le,cellRender:je,hoverRangeValue:Te,hoverValue:C}))))}var VI=b.memo(b.forwardRef(S5e));function w5e(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,c=b.useContext(Ec),u=c.prefixCls,f=c.generateConfig,d=b.useCallback(function(y,x){return ub(f,t,y,x)},[f,t]),h=b.useMemo(function(){return d(r,1)},[r,d]),p=function(x){i(d(x,-1))},g={onCellDblClick:function(){a&&o()}},v=t==="time",m=ae(ae({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?m.hoverRangeValue=l:m.hoverValue=l,n?b.createElement("div",{className:"".concat(u,"-panels")},b.createElement(Nd.Provider,{value:ae(ae({},g),{},{hideNext:!0})},b.createElement(VI,m)),b.createElement(Nd.Provider,{value:ae(ae({},g),{},{hidePrev:!0})},b.createElement(VI,Le({},m,{pickerValue:h,onPickerValueChange:p})))):b.createElement(Nd.Provider,{value:ae({},g)},b.createElement(VI,m))}function kX(e){return typeof e=="function"?e():e}function C5e(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?b.createElement("div",{className:"".concat(t,"-presets")},b.createElement("ul",null,n.map(function(a,o){var s=a.label,l=a.value;return b.createElement("li",{key:o,onClick:function(){r(kX(l))},onMouseEnter:function(){i(kX(l))},onMouseLeave:function(){i(null)}},s)}))):null}function TX(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,a=e.range,o=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,f=e.onPresetHover,d=e.onPresetSubmit,h=e.onFocus,p=e.onBlur,g=e.onPanelMouseDown,v=e.direction,m=e.value,y=e.onSelect,x=e.isInvalid,S=e.defaultOpenValue,w=e.onOk,C=e.onSubmit,E=b.useContext(Ec),O=E.prefixCls,$="".concat(O,"-panel"),P=v==="rtl",M=b.useRef(null),k=b.useRef(null),T=b.useState(0),R=he(T,2),A=R[0],N=R[1],L=b.useState(0),j=he(L,2),F=j[0],B=j[1],D=function(oe){oe.offsetWidth&&N(oe.offsetWidth)};b.useEffect(function(){if(a){var le,oe=((le=M.current)===null||le===void 0?void 0:le.offsetWidth)||0,re=A-oe;l<=re?B(0):B(l+oe-A)}},[A,l,a]);function z(le){return le.filter(function(oe){return oe})}var W=b.useMemo(function(){return z(Cp(m))},[m]),q=r==="time"&&!W.length,H=b.useMemo(function(){return q?z([S]):W},[q,W,S]),U=q?S:W,G=b.useMemo(function(){return H.length?H.some(function(le){return x(le)}):!0},[H,x]),K=function(){q&&y(S),w(),C()},X=b.createElement("div",{className:"".concat(O,"-panel-layout")},b.createElement(C5e,{prefixCls:O,presets:u,onClick:d,onHover:f}),b.createElement("div",null,b.createElement(w5e,Le({},e,{value:U})),b.createElement(c5e,Le({},e,{showNow:o?!1:i,invalid:G,onSubmit:K}))));t&&(X=t(X));var Q="".concat($,"-container"),ee="marginLeft",ne="marginRight",te=b.createElement("div",{onMouseDown:g,tabIndex:-1,className:me(Q,"".concat(O,"-").concat(n,"-panel-container")),style:Z(Z({},P?ne:ee,F),P?ee:ne,"auto"),onFocus:h,onBlur:p},X);if(a){var ie=gE(c,P),J=tX(ie,P);te=b.createElement("div",{onMouseDown:g,ref:k,className:me("".concat(O,"-range-wrapper"),"".concat(O,"-").concat(r,"-range-wrapper"))},b.createElement("div",{ref:M,className:"".concat(O,"-range-arrow"),style:Z({},J,l)}),b.createElement(vo,{onResize:D},te))}return te}function RX(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,o=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,d=e.onBlur,h=e.onInputChange,p=e.onInvalid,g=e.open,v=e.onOpenChange,m=e.onKeyDown,y=e.onChange,x=e.activeHelp,S=e.name,w=e.autoComplete,C=e.id,E=e.value,O=e.invalid,$=e.placeholder,P=e.disabled,M=e.activeIndex,k=e.allHelp,T=e.picker,R=function(z,W){var q=i.locale.parse(a.locale,z,[W]);return q&&i.isValidate(q)?q:null},A=n[0],N=b.useCallback(function(D){return za(D,{locale:a,format:A,generateConfig:i})},[a,i,A]),L=b.useMemo(function(){return E.map(N)},[E,N]),j=b.useMemo(function(){var D=T==="time"?8:10,z=typeof A=="function"?A(i.getNow()).length:A.length;return Math.max(D,z)+2},[A,T,i]),F=function(z){for(var W=0;W=s&&n<=l)return a;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c0?gt:st));var Xe=Pt+Ot,Je=st-gt+1;return String(gt+(Je+Xe-gt)%Je)};switch(Re){case"Backspace":case"Delete":Ae="",$e=et;break;case"ArrowLeft":Ae="",Tt(-1);break;case"ArrowRight":Ae="",Tt(1);break;case"ArrowUp":Ae="",$e=Mt(1);break;case"ArrowDown":Ae="",$e=Mt(-1);break;default:isNaN(Number(Re))||(Ae=D+Re,$e=Ae);break}if(Ae!==null&&(z(Ae),Ae.length>=Ve&&(Tt(1),z(""))),$e!==null){var at=ee.slice(0,oe)+NI($e,Ve)+ee.slice(re);ge(at.slice(0,o.length))}Q({})},He=b.useRef();Nn(function(){if(!(!T||!o||ue.current)){if(!ie.match(ee)){ge(o);return}return te.current.setSelectionRange(oe,re),He.current=bn(function(){te.current.setSelectionRange(oe,re)}),function(){bn.cancel(He.current)}}},[ie,o,T,ee,H,oe,re,X,ge]);var Ue=o?{onFocus:_e,onBlur:je,onKeyDown:Pe,onMouseDown:Se,onMouseUp:Oe,onPaste:pe}:{};return b.createElement("div",{ref:ne,className:me(P,Z(Z({},"".concat(P,"-active"),n&&i),"".concat(P,"-placeholder"),c))},b.createElement($,Le({ref:te,"aria-invalid":g,autoComplete:"off"},m,{onKeyDown:Be,onBlur:Te},Ue,{value:ee,onChange:de})),b.createElement($E,{type:"suffix",icon:a}),v)}),k5e=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],T5e=["index"],R5e=["insetInlineStart","insetInlineEnd"];function I5e(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,a=e.suffixIcon,o=e.separator,s=o===void 0?"~":o,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,f=e.className,d=e.style,h=e.onClick,p=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,m=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var x=e.onActiveOffset,S=e.placement,w=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,E=e.tabIndex,O=Vt(e,k5e),$=y==="rtl",P=b.useContext(Ec),M=P.prefixCls,k=b.useMemo(function(){if(typeof n=="string")return[n];var te=n||{};return[te.start,te.end]},[n]),T=b.useRef(),R=b.useRef(),A=b.useRef(),N=function(ie){var J;return(J=[R,A][ie])===null||J===void 0?void 0:J.current};b.useImperativeHandle(t,function(){return{nativeElement:T.current,focus:function(ie){if(Bt(ie)==="object"){var J,le=ie||{},oe=le.index,re=oe===void 0?0:oe,se=Vt(le,T5e);(J=N(re))===null||J===void 0||J.focus(se)}else{var ge;(ge=N(ie!=null?ie:0))===null||ge===void 0||ge.focus()}},blur:function(){var ie,J;(ie=N(0))===null||ie===void 0||ie.blur(),(J=N(1))===null||J===void 0||J.blur()}}});var L=IX(O),j=b.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),F=RX(ae(ae({},e),{},{id:k,placeholder:j})),B=he(F,1),D=B[0],z=gE(S,$),W=tX(z,$),q=z==null?void 0:z.toLowerCase().endsWith("right"),H=b.useState({position:"absolute",width:0}),U=he(H,2),G=U[0],K=U[1],X=_n(function(){var te=N(l);if(te){var ie=te.nativeElement,J=ie.offsetWidth,le=ie.offsetLeft,oe=ie.offsetParent,re=(oe==null?void 0:oe.offsetWidth)||0,se=q?re-J-le:le;K(function(ge){ge.insetInlineStart,ge.insetInlineEnd;var de=Vt(ge,R5e);return ae(ae({},de),{},Z({width:J},W,se))}),x(se)}});b.useEffect(function(){X()},[l]);var Q=i&&(g[0]&&!v[0]||g[1]&&!v[1]),ee=C&&!v[0],ne=C&&!ee&&!v[1];return b.createElement(vo,{onResize:X},b.createElement("div",Le({},L,{className:me(M,"".concat(M,"-range"),Z(Z(Z(Z({},"".concat(M,"-focused"),c),"".concat(M,"-disabled"),v.every(function(te){return te})),"".concat(M,"-invalid"),m.some(function(te){return te})),"".concat(M,"-rtl"),$),f),style:d,ref:T,onClick:h,onMouseDown:function(ie){var J=ie.target;J!==R.current.inputElement&&J!==A.current.inputElement&&ie.preventDefault(),w==null||w(ie)}}),r&&b.createElement("div",{className:"".concat(M,"-prefix")},r),b.createElement(GI,Le({ref:R},D(0),{autoFocus:ee,tabIndex:E,"date-range":"start"})),b.createElement("div",{className:"".concat(M,"-range-separator")},s),b.createElement(GI,Le({ref:A},D(1),{autoFocus:ne,tabIndex:E,"date-range":"end"})),b.createElement("div",{className:"".concat(M,"-active-bar"),style:G}),b.createElement($E,{type:"suffix",icon:a}),Q&&b.createElement(qI,{icon:i,onClear:p})))}var A5e=b.forwardRef(I5e);function NX(e,t){var n=e!=null?e:t;return Array.isArray(n)?n:[n,n]}function PE(e){return e===1?"end":"start"}function N5e(e,t){var n=gX(e,function(){var It=e.disabled,At=e.allowEmpty,ln=NX(It,!1),wn=NX(At,!1);return{disabled:ln,allowEmpty:wn}}),r=he(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i.prefixCls,f=i.styles,d=i.classNames,h=i.placement,p=i.defaultValue,g=i.value,v=i.needConfirm,m=i.onKeyDown,y=i.disabled,x=i.allowEmpty,S=i.disabledDate,w=i.minDate,C=i.maxDate,E=i.defaultOpen,O=i.open,$=i.onOpenChange,P=i.locale,M=i.generateConfig,k=i.picker,T=i.showNow,R=i.showToday,A=i.showTime,N=i.mode,L=i.onPanelChange,j=i.onCalendarChange,F=i.onOk,B=i.defaultPickerValue,D=i.pickerValue,z=i.onPickerValueChange,W=i.inputReadOnly,q=i.suffixIcon,H=i.onFocus,U=i.onBlur,G=i.presets,K=i.ranges,X=i.components,Q=i.cellRender,ee=i.dateRender,ne=i.monthCellRender,te=i.onClick,ie=yX(t),J=mX(O,E,y,$),le=he(J,2),oe=le[0],re=le[1],se=function(At,ln){(y.some(function(wn){return!wn})||!At)&&re(At,ln)},ge=OX(M,P,s,!0,!1,p,g,j,F),de=he(ge,5),pe=de[0],ue=de[1],Se=de[2],Oe=de[3],_e=de[4],Te=Se(),je=xX(y,x,oe),Be=he(je,7),Pe=Be[0],He=Be[1],Ue=Be[2],ke=Be[3],Ce=Be[4],Re=Be[5],Ae=Be[6],$e=function(At,ln){He(!0),H==null||H(At,{range:PE(ln!=null?ln:ke)})},Ve=function(At,ln){He(!1),U==null||U(At,{range:PE(ln!=null?ln:ke)})},et=b.useMemo(function(){if(!A)return null;var It=A.disabledTime,At=It?function(ln){var wn=PE(ke),Bn=iX(Te,Ae,ke);return It(ln,wn,{from:Bn})}:void 0;return ae(ae({},A),{},{disabledTime:At})},[A,ke,Te,Ae]),Tt=Yn([k,k],{value:N}),Mt=he(Tt,2),at=Mt[0],ht=Mt[1],Ot=at[ke]||k,vt=Ot==="date"&&et?"datetime":Ot,$t=vt===k&&vt!=="time",gt=$X(k,Ot,T,R,!0),st=_X(i,pe,ue,Se,Oe,y,s,Pe,oe,c),tt=he(st,3),ot=tt[0],Pt=tt[1],Xe=tt[2],Je=a5e(Te,y,Ae,M,P,S),bt=oX(Te,c,x),Rt=he(bt,2),Xt=Rt[0],Qt=Rt[1],Gt=SX(M,P,Te,at,oe,ke,a,$t,B,D,et==null?void 0:et.defaultOpenValue,z,w,C),wt=he(Gt,2),_t=wt[0],Nt=wt[1],Zt=_n(function(It,At,ln){var wn=sb(at,ke,At);if((wn[0]!==at[0]||wn[1]!==at[1])&&ht(wn),L&&ln!==!1){var Bn=Ne(Te);It&&(Bn[ke]=It),L(Bn,wn)}}),vn=function(At,ln){return sb(Te,ln,At)},an=function(At,ln){var wn=Te;At&&(wn=vn(At,ke));var Bn=Re(wn);Oe(wn),ot(ke,Bn===null),Bn===null?se(!1,{force:!0}):ln||ie.current.focus({index:Bn})},Pn=function(At){var ln,wn=At.target.getRootNode();if(!ie.current.nativeElement.contains((ln=wn.activeElement)!==null&&ln!==void 0?ln:document.activeElement)){var Bn=y.findIndex(function(Zi){return!Zi});Bn>=0&&ie.current.focus({index:Bn})}se(!0),te==null||te(At)},Ut=function(){Pt(null),se(!1,{force:!0})},ye=b.useState(null),Ie=he(ye,2),We=Ie[0],ze=Ie[1],pt=b.useState(null),mt=he(pt,2),Wt=mt[0],gn=mt[1],mn=b.useMemo(function(){return Wt||Te},[Te,Wt]);b.useEffect(function(){oe||gn(null)},[oe]);var un=b.useState(0),xt=he(un,2),Jt=xt[0],on=xt[1],En=bX(G,K),Wn=function(At){gn(At),ze("preset")},hr=function(At){var ln=Pt(At);ln&&se(!1,{force:!0})},Dr=function(At){an(At)},ci=function(At){gn(At?vn(At,ke):null),ze("cell")},Ni=function(At){se(!0),$e(At)},ri=function(){Ue("panel")},oa=function(At){var ln=sb(Te,ke,At);Oe(ln),!v&&!o&&a===vt&&an(At)},en=function(){se(!1)},Ct=LI(Q,ee,ne,PE(ke)),Kt=Te[ke]||null,Vn=_n(function(It){return c(It,{activeIndex:ke})}),jt=b.useMemo(function(){var It=ta(i,!1),At=Or(i,[].concat(Ne(Object.keys(It)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return At},[i]),Yt=b.createElement(TX,Le({},jt,{showNow:gt,showTime:et,range:!0,multiplePanel:$t,activeOffset:Jt,placement:h,disabledDate:Je,onFocus:Ni,onBlur:Ve,onPanelMouseDown:ri,picker:k,mode:Ot,internalMode:vt,onPanelChange:Zt,format:l,value:Kt,isInvalid:Vn,onChange:null,onSelect:oa,pickerValue:_t,defaultOpenValue:Cp(A==null?void 0:A.defaultOpenValue)[ke],onPickerValueChange:Nt,hoverValue:mn,onHover:ci,needConfirm:v,onSubmit:an,onOk:_e,presets:En,onPresetHover:Wn,onPresetSubmit:hr,onNow:Dr,cellRender:Ct})),kn=function(At,ln){var wn=vn(At,ln);Oe(wn)},Gn=function(){Ue("input")},Cr=function(At,ln){var wn=Ae.length,Bn=Ae[wn-1];if(wn&&Bn!==ln&&v&&!x[Bn]&&!Xe(Bn)&&Te[Bn]){ie.current.focus({index:Bn});return}Ue("input"),se(!0,{inherit:!0}),ke!==ln&&oe&&!v&&o&&an(null,!0),Ce(ln),$e(At,ln)},Ur=function(At,ln){if(se(!1),!v&&Ue()==="input"){var wn=Re(Te);ot(ke,wn===null)}Ve(At,ln)},$r=function(At,ln){At.key==="Tab"&&an(null,!0),m==null||m(At,ln)},Si=b.useMemo(function(){return{prefixCls:u,locale:P,generateConfig:M,button:X.button,input:X.input}},[u,P,M,X.button,X.input]);return Nn(function(){oe&&ke!==void 0&&Zt(null,k,!1)},[oe,ke,k]),Nn(function(){var It=Ue();!oe&&It==="input"&&(se(!1),an(null,!0)),!oe&&o&&!v&&It==="panel"&&(se(!0),an())},[oe]),b.createElement(Ec.Provider,{value:Si},b.createElement(nX,Le({},aX(i),{popupElement:Yt,popupStyle:f.popup,popupClassName:d.popup,visible:oe,onClose:en,range:!0}),b.createElement(A5e,Le({},i,{ref:ie,suffixIcon:q,activeIndex:Pe||oe?ke:null,activeHelp:!!Wt,allHelp:!!Wt&&We==="preset",focused:Pe,onFocus:Cr,onBlur:Ur,onKeyDown:$r,onSubmit:an,value:mn,maskFormat:l,onChange:kn,onInputChange:Gn,format:s,inputReadOnly:W,disabled:y,open:oe,onOpenChange:se,onClick:Pn,onClear:Ut,invalid:Xt,onInvalid:Qt,onActiveOffset:on}))))}var L5e=b.forwardRef(N5e);function j5e(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,a=i===void 0?"×":i,o=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),d="".concat(f,"-overflow");function h(v,m){return b.createElement("span",{className:me("".concat(f,"-item")),title:typeof v=="string"?v:null},b.createElement("span",{className:"".concat(f,"-item-content")},v),!s&&m&&b.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:m,className:"".concat(f,"-item-remove")},a))}function p(v){var m=o(v),y=function(S){S&&S.stopPropagation(),r(v)};return h(m,y)}function g(v){var m="+ ".concat(v.length," ...");return h(m)}return b.createElement("div",{className:u},b.createElement(wc,{prefixCls:d,data:n,renderItem:p,renderRest:g,itemKey:function(m){return o(m)},maxCount:l}),!n.length&&b.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var D5e=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function F5e(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,d=e.onClick,h=e.onClear,p=e.internalPicker,g=e.value,v=e.onChange,m=e.onSubmit;e.onInputChange;var y=e.multiple,x=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,w=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,$=e.tabIndex,P=e.removeIcon,M=Vt(e,D5e),k=C==="rtl",T=b.useContext(Ec),R=T.prefixCls,A=b.useRef(),N=b.useRef();b.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(G){var K;(K=N.current)===null||K===void 0||K.focus(G)},blur:function(){var G;(G=N.current)===null||G===void 0||G.blur()}}});var L=IX(M),j=function(G){v([G])},F=function(G){var K=g.filter(function(X){return X&&!Io(l,s,X,G,p)});v(K),n||m()},B=RX(ae(ae({},e),{},{onChange:j}),function(U){var G=U.valueTexts;return{value:G[0]||"",active:o}}),D=he(B,2),z=D[0],W=D[1],q=!!(i&&g.length&&!S),H=y?b.createElement(b.Fragment,null,b.createElement(j5e,{prefixCls:R,value:g,onRemove:F,formatDate:W,maxTagCount:x,disabled:S,removeIcon:P,placeholder:c}),b.createElement("input",{className:"".concat(R,"-multiple-input"),value:g.map(W).join(","),ref:N,readOnly:!0,autoFocus:O,tabIndex:$}),b.createElement($E,{type:"suffix",icon:a}),q&&b.createElement(qI,{icon:i,onClear:h})):b.createElement(GI,Le({ref:N},z(),{autoFocus:O,tabIndex:$,suffixIcon:a,clearIcon:q&&b.createElement(qI,{icon:i,onClear:h}),showActiveCls:!1}));return b.createElement("div",Le({},L,{className:me(R,Z(Z(Z(Z(Z({},"".concat(R,"-multiple"),y),"".concat(R,"-focused"),o),"".concat(R,"-disabled"),S),"".concat(R,"-invalid"),w),"".concat(R,"-rtl"),k),u),style:f,ref:A,onClick:d,onMouseDown:function(G){var K,X=G.target;X!==((K=N.current)===null||K===void 0?void 0:K.inputElement)&&G.preventDefault(),E==null||E(G)}}),r&&b.createElement("div",{className:"".concat(R,"-prefix")},r),H)}var B5e=b.forwardRef(F5e);function z5e(e,t){var n=gX(e),r=he(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i,f=u.prefixCls,d=u.styles,h=u.classNames,p=u.order,g=u.defaultValue,v=u.value,m=u.needConfirm,y=u.onChange,x=u.onKeyDown,S=u.disabled,w=u.disabledDate,C=u.minDate,E=u.maxDate,O=u.defaultOpen,$=u.open,P=u.onOpenChange,M=u.locale,k=u.generateConfig,T=u.picker,R=u.showNow,A=u.showToday,N=u.showTime,L=u.mode,j=u.onPanelChange,F=u.onCalendarChange,B=u.onOk,D=u.multiple,z=u.defaultPickerValue,W=u.pickerValue,q=u.onPickerValueChange,H=u.inputReadOnly,U=u.suffixIcon,G=u.removeIcon,K=u.onFocus,X=u.onBlur,Q=u.presets,ee=u.components,ne=u.cellRender,te=u.dateRender,ie=u.monthCellRender,J=u.onClick,le=yX(t);function oe(jt){return jt===null?null:D?jt:jt[0]}var re=PX(k,M,a),se=mX($,O,[S],P),ge=he(se,2),de=ge[0],pe=ge[1],ue=function(Yt,kn,Gn){if(F){var Cr=ae({},Gn);delete Cr.range,F(oe(Yt),oe(kn),Cr)}},Se=function(Yt){B==null||B(oe(Yt))},Oe=OX(k,M,s,!1,p,g,v,ue,Se),_e=he(Oe,5),Te=_e[0],je=_e[1],Be=_e[2],Pe=_e[3],He=_e[4],Ue=Be(),ke=xX([S]),Ce=he(ke,4),Re=Ce[0],Ae=Ce[1],$e=Ce[2],Ve=Ce[3],et=function(Yt){Ae(!0),K==null||K(Yt,{})},Tt=function(Yt){Ae(!1),X==null||X(Yt,{})},Mt=Yn(T,{value:L}),at=he(Mt,2),ht=at[0],Ot=at[1],vt=ht==="date"&&N?"datetime":ht,$t=$X(T,ht,R,A),gt=y&&function(jt,Yt){y(oe(jt),oe(Yt))},st=_X(ae(ae({},i),{},{onChange:gt}),Te,je,Be,Pe,[],s,Re,de,c),tt=he(st,2),ot=tt[1],Pt=oX(Ue,c),Xe=he(Pt,2),Je=Xe[0],bt=Xe[1],Rt=b.useMemo(function(){return Je.some(function(jt){return jt})},[Je]),Xt=function(Yt,kn){if(q){var Gn=ae(ae({},kn),{},{mode:kn.mode[0]});delete Gn.range,q(Yt[0],Gn)}},Qt=SX(k,M,Ue,[ht],de,Ve,a,!1,z,W,Cp(N==null?void 0:N.defaultOpenValue),Xt,C,E),Gt=he(Qt,2),wt=Gt[0],_t=Gt[1],Nt=_n(function(jt,Yt,kn){if(Ot(Yt),j&&kn!==!1){var Gn=jt||Ue[Ue.length-1];j(Gn,Yt)}}),Zt=function(){ot(Be()),pe(!1,{force:!0})},vn=function(Yt){!S&&!le.current.nativeElement.contains(document.activeElement)&&le.current.focus(),pe(!0),J==null||J(Yt)},an=function(){ot(null),pe(!1,{force:!0})},Pn=b.useState(null),Ut=he(Pn,2),ye=Ut[0],Ie=Ut[1],We=b.useState(null),ze=he(We,2),pt=ze[0],mt=ze[1],Wt=b.useMemo(function(){var jt=[pt].concat(Ne(Ue)).filter(function(Yt){return Yt});return D?jt:jt.slice(0,1)},[Ue,pt,D]),gn=b.useMemo(function(){return!D&&pt?[pt]:Ue.filter(function(jt){return jt})},[Ue,pt,D]);b.useEffect(function(){de||mt(null)},[de]);var mn=bX(Q),un=function(Yt){mt(Yt),Ie("preset")},xt=function(Yt){var kn=D?re(Be(),Yt):[Yt],Gn=ot(kn);Gn&&!D&&pe(!1,{force:!0})},Jt=function(Yt){xt(Yt)},on=function(Yt){mt(Yt),Ie("cell")},En=function(Yt){pe(!0),et(Yt)},Wn=function(Yt){if($e("panel"),!(D&&vt!==T)){var kn=D?re(Be(),Yt):[Yt];Pe(kn),!m&&!o&&a===vt&&Zt()}},hr=function(){pe(!1)},Dr=LI(ne,te,ie),ci=b.useMemo(function(){var jt=ta(i,!1),Yt=Or(i,[].concat(Ne(Object.keys(jt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return ae(ae({},Yt),{},{multiple:i.multiple})},[i]),Ni=b.createElement(TX,Le({},ci,{showNow:$t,showTime:N,disabledDate:w,onFocus:En,onBlur:Tt,picker:T,mode:ht,internalMode:vt,onPanelChange:Nt,format:l,value:Ue,isInvalid:c,onChange:null,onSelect:Wn,pickerValue:wt,defaultOpenValue:N==null?void 0:N.defaultOpenValue,onPickerValueChange:_t,hoverValue:Wt,onHover:on,needConfirm:m,onSubmit:Zt,onOk:He,presets:mn,onPresetHover:un,onPresetSubmit:xt,onNow:Jt,cellRender:Dr})),ri=function(Yt){Pe(Yt)},oa=function(){$e("input")},en=function(Yt){$e("input"),pe(!0,{inherit:!0}),et(Yt)},Ct=function(Yt){pe(!1),Tt(Yt)},Kt=function(Yt,kn){Yt.key==="Tab"&&Zt(),x==null||x(Yt,kn)},Vn=b.useMemo(function(){return{prefixCls:f,locale:M,generateConfig:k,button:ee.button,input:ee.input}},[f,M,k,ee.button,ee.input]);return Nn(function(){de&&Ve!==void 0&&Nt(null,T,!1)},[de,Ve,T]),Nn(function(){var jt=$e();!de&&jt==="input"&&(pe(!1),Zt()),!de&&o&&!m&&jt==="panel"&&(pe(!0),Zt())},[de]),b.createElement(Ec.Provider,{value:Vn},b.createElement(nX,Le({},aX(i),{popupElement:Ni,popupStyle:d.popup,popupClassName:h.popup,visible:de,onClose:hr}),b.createElement(B5e,Le({},i,{ref:le,suffixIcon:U,removeIcon:G,activeHelp:!!pt,allHelp:!!pt&&ye==="preset",focused:Re,onFocus:en,onBlur:Ct,onKeyDown:Kt,onSubmit:Zt,value:gn,maskFormat:l,onChange:ri,onInputChange:oa,internalPicker:a,format:s,inputReadOnly:H,disabled:S,open:de,onOpenChange:pe,onClick:vn,onClear:an,invalid:Rt,onInvalid:function(Yt){bt(Yt,0)}}))))}var H5e=b.forwardRef(z5e);const LX=b.createContext(null),W5e=LX.Provider,jX=b.createContext(null),V5e=jX.Provider;var q5e=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],DX=b.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,a=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,d=e.title,h=e.onChange,p=Vt(e,q5e),g=b.useRef(null),v=b.useRef(null),m=Yn(c,{value:o}),y=he(m,2),x=y[0],S=y[1];b.useImperativeHandle(t,function(){return{focus:function(O){var $;($=g.current)===null||$===void 0||$.focus(O)},blur:function(){var O;(O=g.current)===null||O===void 0||O.blur()},input:g.current,nativeElement:v.current}});var w=me(r,i,Z(Z({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),s)),C=function(O){s||("checked"in e||S(O.target.checked),h==null||h({target:ae(ae({},e),{},{type:f,checked:O.target.checked}),stopPropagation:function(){O.stopPropagation()},preventDefault:function(){O.preventDefault()},nativeEvent:O.nativeEvent}))};return b.createElement("span",{className:w,title:d,style:a,ref:v},b.createElement("input",Le({},p,{className:"".concat(r,"-input"),ref:g,onChange:C,disabled:s,checked:!!x,type:f})),b.createElement("span",{className:"".concat(r,"-inner")}))});function FX(e){const t=we.useRef(null),n=()=>{bn.cancel(t.current),t.current=null};return[()=>{n(),t.current=bn(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const U5e=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},er(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},G5e=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:d,paddingXS:h,dotColorDisabled:p,lineType:g,radioColor:v,radioBgColor:m,calc:y}=e,x=`${t}-inner`,w=y(i).sub(y(4).mul(2)),C=y(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},er(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${fe(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},er(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Object.assign({},_d(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:y(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:m,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:d,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${y(w).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},K5e=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:d,controlHeightLG:h,controlHeightSM:p,paddingXS:g,borderRadius:v,borderRadiusSM:m,borderRadiusLG:y,buttonCheckedBg:x,buttonSolidCheckedColor:S,colorTextDisabled:w,colorBgContainerDisabled:C,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:O,colorPrimary:$,colorPrimaryHover:P,colorPrimaryActive:M,buttonSolidCheckedBg:k,buttonSolidCheckedHoverBg:T,buttonSolidCheckedActiveBg:R,calc:A}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:fe(A(n).sub(A(i).mul(2)).equal()),background:f,border:`${fe(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:A(i).mul(-1).equal(),insetInlineStart:A(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:o,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${fe(i)} ${a} ${o}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:h,fontSize:d,lineHeight:fe(A(h).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:p,paddingInline:A(g).sub(i).equal(),paddingBlock:0,lineHeight:fe(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},_d(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:x,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:k,borderColor:k,"&:hover":{color:S,background:T,borderColor:T},"&:active":{color:S,background:R,borderColor:R}},"&-disabled":{color:w,backgroundColor:C,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:C,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:E,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},BX=tr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${fe(n)} ${t}`,a=$n(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[U5e(a),G5e(a),K5e(a)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:d,colorPrimaryActive:h,colorWhite:p}=e,g=4,v=a,m=t?v-g*2:v-(g+i)*2;return{radioSize:v,dotSize:m,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:d,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?f:p,radioBgColor:t?s:f}},{unitless:{radioSize:!0,dotSize:!0}});var Y5e=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const i=b.useContext(LX),a=b.useContext(jX),{getPrefixCls:o,direction:s,radio:l}=b.useContext(Lt),c=b.useRef(null),u=po(t,c),{isFormItemInput:f}=b.useContext(Fa),d=N=>{var L,j;(L=e.onChange)===null||L===void 0||L.call(e,N),(j=i==null?void 0:i.onChange)===null||j===void 0||j.call(i,N)},{prefixCls:h,className:p,rootClassName:g,children:v,style:m,title:y}=e,x=Y5e(e,["prefixCls","className","rootClassName","children","style","title"]),S=o("radio",h),w=((i==null?void 0:i.optionType)||a)==="button",C=w?`${S}-button`:S,E=Ti(S),[O,$,P]=BX(S,E),M=Object.assign({},x),k=b.useContext(mo);i&&(M.name=i.name,M.onChange=d,M.checked=e.value===i.value,M.disabled=(n=M.disabled)!==null&&n!==void 0?n:i.disabled),M.disabled=(r=M.disabled)!==null&&r!==void 0?r:k;const T=me(`${C}-wrapper`,{[`${C}-wrapper-checked`]:M.checked,[`${C}-wrapper-disabled`]:M.disabled,[`${C}-wrapper-rtl`]:s==="rtl",[`${C}-wrapper-in-form-item`]:f,[`${C}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,p,g,$,P,E),[R,A]=FX(M.onClick);return O(b.createElement(N1,{component:"Radio",disabled:M.disabled},b.createElement("label",{className:T,style:Object.assign(Object.assign({},l==null?void 0:l.style),m),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:R},b.createElement(DX,Object.assign({},M,{className:me(M.className,{[BC]:!w}),type:"radio",prefixCls:C,ref:u,onClick:A})),v!==void 0?b.createElement("span",null,v):null)))},ME=b.forwardRef(X5e),Z5e=b.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=b.useContext(Lt),{prefixCls:i,className:a,rootClassName:o,options:s,buttonStyle:l="outline",disabled:c,children:u,size:f,style:d,id:h,optionType:p,name:g,defaultValue:v,value:m,block:y=!1,onChange:x,onMouseEnter:S,onMouseLeave:w,onFocus:C,onBlur:E}=e,[O,$]=Yn(v,{value:m}),P=b.useCallback(D=>{const z=O,W=D.target.value;"value"in e||$(W),W!==z&&(x==null||x(D))},[O,$,x]),M=n("radio",i),k=`${M}-group`,T=Ti(M),[R,A,N]=BX(M,T);let L=u;s&&s.length>0&&(L=s.map(D=>typeof D=="string"||typeof D=="number"?b.createElement(ME,{key:D.toString(),prefixCls:M,disabled:c,value:D,checked:O===D},D):b.createElement(ME,{key:`radio-group-value-options-${D.value}`,prefixCls:M,disabled:D.disabled||c,value:D.value,checked:O===D.value,title:D.title,style:D.style,id:D.id,required:D.required},D.label)));const j=ja(f),F=me(k,`${k}-${l}`,{[`${k}-${j}`]:j,[`${k}-rtl`]:r==="rtl",[`${k}-block`]:y},a,o,A,N,T),B=b.useMemo(()=>({onChange:P,value:O,disabled:c,name:g,optionType:p,block:y}),[P,O,c,g,p,y]);return R(b.createElement("div",Object.assign({},ta(e,{aria:!0,data:!0}),{className:F,style:d,onMouseEnter:S,onMouseLeave:w,onFocus:C,onBlur:E,id:h,ref:t}),b.createElement(W5e,{value:B},L)))}),Q5e=b.memo(Z5e);var J5e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n}=b.useContext(Lt),{prefixCls:r}=e,i=J5e(e,["prefixCls"]),a=n("radio",r);return b.createElement(V5e,{value:"button"},b.createElement(ME,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},tAe=b.forwardRef(eAe),jd=ME;jd.Button=tAe,jd.Group=Q5e,jd.__ANT_RADIO=!0;function hb(e){return $n(e,{inputAffixPadding:e.paddingXXS})}const pb=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:m,colorWarningOutline:y,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((o-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:d,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${m}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:x,activeBg:x,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},nAe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),kE=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},nAe($n(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),KI=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),zX=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},KI(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),YI=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},KI(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},kE(e))}),zX(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),zX(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),HX=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),WX=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},HX(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),HX(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},kE(e))}})}),XI=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},VX=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),qX=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},VX(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),ZI=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},VX(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},kE(e))}),qX(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),qX(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),UX=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),GX=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},UX(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),UX(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),QI=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),KX=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${fe(t)} ${fe(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},JI=e=>({padding:`${fe(e.paddingBlockSM)} ${fe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),vb=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${fe(e.paddingBlock)} ${fe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},QI(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},KX(e)),"&-sm":Object.assign({},JI(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),YX=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},KX(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},JI(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${fe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${fe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${fe(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${fe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${fe(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},bc()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${ue(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},EIe=tr("Breadcrumb",e=>{const t=_n(e,{});return CIe(t)},e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));var qY=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{breadcrumbName:o}=a,s=qY(a,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:o})})}),i}function _Ie(e,t){return b.useMemo(()=>e||(t?t.map(OIe):null),[e,t])}var $Ie=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 i=0,r=Object.getOwnPropertySymbols(e);i{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},ob=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:a,routes:o,items:s,children:l,itemRender:c,params:u={}}=e,f=$Ie(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:d,direction:h,breadcrumb:p}=b.useContext(At);let v;const g=d("breadcrumb",t),[m,y,x]=EIe(g),S=_Ie(s,o),w=wIe(g,c);if(S&&S.length>0){const O=[],$=s||o;v=S.map((P,M)=>{const{path:k,key:T,type:R,menu:A,overlay:N,onClick:L,className:j,separator:F,dropdownProps:B}=P,D=PIe(u,k);D!==void 0&&O.push(D);const z=T!=null?T:M;if(R==="separator")return b.createElement(hE,{key:z},F);const W={},q=M===S.length-1;A?W.menu=A:N&&(W.overlay=N);let{href:H}=P;return O.length&&D!==void 0&&(H=`#/${O.join("/")}`),b.createElement(WY,Object.assign({key:z},W,ta(P,{data:!0,aria:!0}),{className:j,dropdownProps:B,href:H,separator:q?"":n,onClick:L,prefixCls:g}),w(P,u,$,O,H))})}else if(l){const O=da(l).length;v=da(l).map(($,P)=>{if(!$)return $;const M=P===O-1;return Pa($,{separator:M?"":n,key:P})})}const C=me(g,p==null?void 0:p.className,{[`${g}-rtl`]:h==="rtl"},i,a,y,x),E=Object.assign(Object.assign({},p==null?void 0:p.style),r);return m(b.createElement("nav",Object.assign({className:C,style:E},f),b.createElement("ol",null,v)))};ob.Item=VY,ob.Separator=hE;var UY={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ft,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="week",f="month",d="quarter",h="year",p="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var A=["th","st","nd","rd"],N=R%100;return"["+R+(A[(N-20)%10]||A[N]||A[0])+"]"}},x=function(R,A,N){var L=String(R);return!L||L.length>=A?R:""+Array(A+1-L.length).join(N)+R},S={s:x,z:function(R){var A=-R.utcOffset(),N=Math.abs(A),L=Math.floor(N/60),j=N%60;return(A<=0?"+":"-")+x(L,2,"0")+":"+x(j,2,"0")},m:function R(A,N){if(A.date()1)return R(B[0])}else{var D=A.name;C[D]=A,j=D}return!L&&j&&(w=j),j||!L&&w},P=function(R,A){if(O(R))return R.clone();var N=typeof A=="object"?A:{};return N.date=R,N.args=arguments,new k(N)},M=S;M.l=$,M.i=O,M.w=function(R,A){return P(R,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var k=function(){function R(N){this.$L=$(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[E]=!0}var A=R.prototype;return A.parse=function(N){this.$d=function(L){var j=L.date,F=L.utc;if(j===null)return new Date(NaN);if(M.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var B=j.match(g);if(B){var D=B[2]-1||0,z=(B[7]||"0").substring(0,3);return F?new Date(Date.UTC(B[1],D,B[3]||1,B[4]||0,B[5]||0,B[6]||0,z)):new Date(B[1],D,B[3]||1,B[4]||0,B[5]||0,B[6]||0,z)}}return new Date(j)}(N),this.init()},A.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},A.$utils=function(){return M},A.isValid=function(){return this.$d.toString()!==v},A.isSame=function(N,L){var j=P(N);return this.startOf(L)<=j&&j<=this.endOf(L)},A.isAfter=function(N,L){return P(N)25){var u=o(this).startOf(r).add(1,r).date(c),f=o(this).endOf(n);if(u.isBefore(f))return 1}var d=o(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),h=this.diff(d,n,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(YY);var AIe=YY.exports;const NIe=rn(AIe);var XY={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ft,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})})(XY);var LIe=XY.exports;const jIe=rn(LIe);var ZY={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ft,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var c=this.$utils(),u=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return a.bind(this)(u)}}})})(ZY);var DIe=ZY.exports;const FIe=rn(DIe);var QY={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ft,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(m){this[g]=+m}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var y=m.match(/([+-]|\d\d)/g),x=60*y[1]+(+y[2]||0);return x===0?0:y[0]==="+"?-x:x}(g)}],d=function(g){var m=l[g];return m&&(m.indexOf?m:m.s.concat(m.f))},h=function(g,m){var y,x=l.meridiem;if(x){for(var S=1;S<=24;S+=1)if(g.indexOf(x(S,0,m))>-1){y=S>12;break}}else y=g===(m?"pm":"PM");return y},p={A:[s,function(g){this.afternoon=h(g,!1)}],a:[s,function(g){this.afternoon=h(g,!0)}],Q:[i,function(g){this.month=3*(g-1)+1}],S:[i,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[a,u("day")],Do:[s,function(g){var m=l.ordinal,y=g.match(/\d+/);if(this.day=y[0],m)for(var x=1;x<=31;x+=1)m(x).replace(/\[|\]/g,"")===g&&(this.day=x)}],w:[o,u("week")],ww:[a,u("week")],M:[o,u("month")],MM:[a,u("month")],MMM:[s,function(g){var m=d("months"),y=(d("monthsShort")||m.map(function(x){return x.slice(0,3)})).indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(g){var m=d("months").indexOf(g)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function v(g){var m,y;m=g,y=l&&l.formats;for(var x=(g=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,M,k){var T=k&&k.toUpperCase();return M||y[k]||n[k]||y[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,A,N){return A||N.slice(1)})})).match(r),S=x.length,w=0;w-1)return new Date((j==="X"?1e3:1)*L);var D=v(j)(L),z=D.year,W=D.month,q=D.day,H=D.hours,U=D.minutes,G=D.seconds,K=D.milliseconds,X=D.zone,Q=D.week,ee=new Date,ne=q||(z||W?1:ee.getDate()),te=z||ee.getFullYear(),ie=0;z&&!W||(ie=W>0?W-1:ee.getMonth());var J,le=H||0,oe=U||0,re=G||0,se=K||0;return X?new Date(Date.UTC(te,ie,ne,le,oe,re,se+60*X.offset*1e3)):F?new Date(Date.UTC(te,ie,ne,le,oe,re,se)):(J=new Date(te,ie,ne,le,oe,re,se),Q&&(J=B(J).week(Q).toDate()),J)}catch(ge){return new Date("")}}(C,$,E,y),this.init(),T&&T!==!0&&(this.$L=this.locale(T).$L),k&&C!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var R=$.length,A=1;A<=R;A+=1){O[1]=$[A-1];var N=y.apply(this,O);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}A===R&&(this.$d=new Date(""))}else S.call(this,w)}}})})(QY);var BIe=QY.exports;const zIe=rn(BIe);Ro.extend(zIe),Ro.extend(FIe),Ro.extend(TIe),Ro.extend(IIe),Ro.extend(NIe),Ro.extend(jIe),Ro.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var o=(a||"").replace("Wo","wo");return r.bind(this)(o)}});var HIe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Cp=function(t){var n=HIe[t];return n||t.split("_")[0]},WIe={getNow:function(){var t=Ro();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Ro(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Ro().locale(Cp(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Cp(t)).weekday(0)},getWeek:function(t,n){return n.locale(Cp(t)).week()},getShortWeekDays:function(t){return Ro().locale(Cp(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Ro().locale(Cp(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Cp(t)).format(r)},parse:function(t,n,r){for(var i=Cp(t),a=0;a2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=b.useState([!1,!1]),i=he(r,2),a=i[0],o=i[1],s=function(u,f){o(function(d){return sb(d,f,u)})},l=b.useMemo(function(){return a.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,a,t,n]);return[l,s]}function aX(e,t,n,r,i){var a="",o=[];return e&&o.push(i?"hh":"HH"),t&&o.push("mm"),n&&o.push("ss"),a=o.join(":"),r&&(a+=".SSS"),i&&(a+=" A"),a}function qIe(e,t,n,r,i,a){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,d=e.fieldQuarterFormat,h=e.yearFormat,p=e.cellYearFormat,v=e.cellQuarterFormat,g=e.dayFormat,m=e.cellDateFormat,y=aX(t,n,r,i,a);return ae(ae({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:d||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:p||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:m||g||"D"})}function oX(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,o=t.use12Hours;return we.useMemo(function(){return qIe(e,n,r,i,a,o)},[e,n,r,i,a,o])}function lb(e,t,n){return n!=null?n:t.some(function(r){return e.includes(r)})}var UIe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function GIe(e){var t=vE(e,UIe),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=Bt(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function KIe(e){return e&&typeof e=="string"}function sX(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function lX(e,t,n,r,i){var a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){var l,c,u,f=[a,o,s].some(function(p){return p===!1}),d=[a,o,s].some(function(p){return p===!0}),h=f?!0:!d;a=(l=a)!==null&&l!==void 0?l:h,o=(c=o)!==null&&c!==void 0?c:h,s=(u=s)!==null&&u!==void 0?u:h}return[a,o,s,i]}function cX(e){var t=e.showTime,n=GIe(e),r=he(n,2),i=r[0],a=r[1],o=t&&Bt(t)==="object"?t:{},s=ae(ae({defaultOpenValue:o.defaultOpenValue||o.defaultValue},i),o),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,d=sX(c,u,f,l),h=lX(d,c,u,f,l),p=he(h,3);return c=p[0],u=p[1],f=p[2],[s,ae(ae({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,a]}function uX(e,t,n,r,i){var a=e==="time";if(e==="datetime"||a){for(var o=r,s=tX(e,i,null),l=s,c=[t,n],u=0;u1&&(o=t.addDate(o,-7)),o}function za(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function yE(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(o,s){n?r=e[o](r,e[i[s]](n)):r=e[o](r,0)}),r}function QIe(e,t,n,r,i){var a=On(function(o,s){return!!(n&&n(o,s)||r&&e.isAfter(r,o)&&!Io(e,t,r,o,s.type)||i&&e.isAfter(o,i)&&!Io(e,t,i,o,s.type))});return a}function JIe(e,t,n){return b.useMemo(function(){var r=tX(e,t,n),i=Ep(r),a=i[0],o=Bt(a)==="object"&&a.type==="mask"?a.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,n])}function e5e(e,t,n){return typeof e[0]=="function"||n?!0:t}function t5e(e,t,n,r){var i=On(function(a,o){var s=ae({type:t},o);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var l,c=o&&o.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,c,{from:s.from}))||{},f=u.disabledHours,d=u.disabledMinutes,h=u.disabledSeconds,p=u.disabledMilliseconds,v=r.disabledHours,g=r.disabledMinutes,m=r.disabledSeconds,y=f||v,x=d||g,S=h||m,w=e.getHour(a),C=e.getMinute(a),E=e.getSecond(a),O=e.getMillisecond(a);if(y&&y().includes(w)||x&&x(w).includes(C)||S&&S(w,C).includes(E)||p&&p(w,C,E).includes(O))return!0}return!1});return i}function bE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=b.useMemo(function(){var r=e&&Ep(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function pX(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=i===void 0?"date":i,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,d=e.order,h=d===void 0?!0:d,p=e.components,v=p===void 0?{}:p,g=e.inputRender,m=e.allowClear,y=e.clearIcon,x=e.needConfirm,S=e.multiple,w=e.format,C=e.inputReadOnly,E=e.disabledDate,O=e.minDate,$=e.maxDate,P=e.showTime,M=e.value,k=e.defaultValue,T=e.pickerValue,R=e.defaultPickerValue,A=bE(M),N=bE(k),L=bE(T),j=bE(R),F=a==="date"&&P?"datetime":a,B=F==="time"||F==="datetime",D=B||S,z=x!=null?x:B,W=cX(e),q=he(W,4),H=q[0],U=q[1],G=q[2],K=q[3],X=oX(r,U),Q=b.useMemo(function(){return uX(F,G,K,H,X)},[F,G,K,H,X]),ee=b.useMemo(function(){return ae(ae({},e),{},{prefixCls:s,locale:X,picker:a,styles:c,classNames:f,order:h,components:ae({input:g},v),clearIcon:YIe(s,m,y),showTime:Q,value:A,defaultValue:N,pickerValue:L,defaultPickerValue:j},t==null?void 0:t())},[e]),ne=JIe(F,X,w),te=he(ne,2),ie=te[0],J=te[1],le=e5e(ie,C,S),oe=QIe(n,r,E,O,$),re=t5e(n,a,oe,Q),se=b.useMemo(function(){return ae(ae({},ee),{},{needConfirm:z,inputReadOnly:le,disabledDate:oe})},[ee,z,le,oe]);return[se,F,D,ie,J,re]}function n5e(e,t,n){var r=Yn(t,{value:e}),i=he(r,2),a=i[0],o=i[1],s=we.useRef(e),l=we.useRef(),c=function(){Sn.cancel(l.current)},u=On(function(){o(s.current),n&&a!==s.current&&n(s.current)}),f=On(function(d,h){c(),s.current=d,d||h?u():l.current=Sn(u)});return we.useEffect(function(){return c},[]),[a,f]}function vX(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(u){return u})?!1:e,a=n5e(i,t||!1,r),o=he(a,2),s=o[0],l=o[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function gX(e){var t=b.useRef();return b.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var a;(a=t.current)===null||a===void 0||a.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function mX(e,t){return b.useMemo(function(){return e||(t?(zr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=he(n,2),i=r[0],a=r[1];return{label:i,value:a}})):[])},[e,t])}function jI(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=b.useRef(t);r.current=t,lp(function(){if(e)r.current(e);else{var i=Sn(function(){r.current(e)},n);return function(){Sn.cancel(i)}}},[e])}function yX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=b.useState(0),i=he(r,2),a=i[0],o=i[1],s=b.useState(!1),l=he(s,2),c=l[0],u=l[1],f=b.useRef([]),d=b.useRef(null),h=function(m){u(m)},p=function(m){return m&&(d.current=m),d.current},v=function(m){var y=f.current,x=new Set(y.filter(function(w){return m[w]||t[w]})),S=y[y.length-1]===0?1:0;return x.size>=2||e[S]?null:S};return jI(c||n,function(){c||(f.current=[])}),b.useEffect(function(){c&&f.current.push(a)},[c,a]),[c,h,p,a,o,v,f.current]}function r5e(e,t,n,r,i,a){var o=n[n.length-1],s=function(c,u){var f=he(e,2),d=f[0],h=f[1],p=ae(ae({},u),{},{from:nX(e,n)});return o===1&&t[0]&&d&&!Io(r,i,d,c,p.type)&&r.isAfter(d,c)||o===0&&t[1]&&h&&!Io(r,i,h,c,p.type)&&r.isAfter(c,h)?!0:a==null?void 0:a(c,p)};return s}function ub(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var DI=[];function bX(e,t,n,r,i,a,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:DI,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:DI,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:DI,f=arguments.length>11?arguments[11]:void 0,d=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,p=o==="time",v=a||0,g=function(L){var j=e.getNow();return p&&(j=yE(e,j)),l[L]||n[L]||j},m=he(c,2),y=m[0],x=m[1],S=Yn(function(){return g(0)},{value:y}),w=he(S,2),C=w[0],E=w[1],O=Yn(function(){return g(1)},{value:x}),$=he(O,2),P=$[0],M=$[1],k=b.useMemo(function(){var N=[C,P][v];return p?N:yE(e,N,u[v])},[p,C,P,v,e,u]),T=function(L){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",F=[E,M][v];F(L);var B=[C,P];B[v]=L,f&&(!Io(e,t,C,B[0],o)||!Io(e,t,P,B[1],o))&&f(B,{source:j,range:v===1?"end":"start",mode:r})},R=function(L,j){if(s){var F={date:"month",week:"month",month:"year",quarter:"year"},B=F[o];if(B&&!Io(e,t,L,j,B))return ub(e,o,j,-1);if(o==="year"&&L){var D=Math.floor(e.getYear(L)/10),z=Math.floor(e.getYear(j)/10);if(D!==z)return ub(e,o,j,-1)}}return j},A=b.useRef(null);return Ln(function(){if(i&&!l[v]){var N=p?null:e.getNow();if(A.current!==null&&A.current!==v?N=[C,P][v^1]:n[v]?N=v===0?n[0]:R(n[0],n[1]):n[v^1]&&(N=n[v^1]),N){d&&e.isAfter(d,N)&&(N=d);var L=s?ub(e,o,N,1):N;h&&e.isAfter(L,h)&&(N=s?ub(e,o,h,-1):h),T(N,"reset")}}},[i,v,n[v]]),b.useEffect(function(){i?A.current=v:A.current=null},[i,v]),Ln(function(){i&&l&&l[v]&&T(l[v],"reset")},[i,v]),[k,T]}function xX(e,t){var n=b.useRef(e),r=b.useState({}),i=he(r,2),a=i[1],o=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,a({})};return[o,s,o(!0)]}var i5e=[];function SX(e,t,n){var r=function(o){return o.map(function(s){return za(s,{generateConfig:e,locale:t,format:n[0]})})},i=function(o,s){for(var l=Math.max(o.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=i.includes(l);(!c||!r)&&o.push({label:TI(l,a),value:l,disabled:c})}return o}function FI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,a=r.hourStep,o=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,d=f===void 0?100:f,h=r.hideDisabledOptions,p=r.disabledTime,v=r.disabledHours,g=r.disabledMinutes,m=r.disabledSeconds,y=b.useMemo(function(){return n||e.getNow()},[n,e]),x=b.useCallback(function(j){var F=(p==null?void 0:p(j))||{};return[F.disabledHours||v||xE,F.disabledMinutes||g||xE,F.disabledSeconds||m||xE,F.disabledMilliseconds||xE]},[p,v,g,m]),S=b.useMemo(function(){return x(y)},[y,x]),w=he(S,4),C=w[0],E=w[1],O=w[2],$=w[3],P=b.useCallback(function(j,F,B,D){var z=SE(0,23,o,h,j()),W=i?z.map(function(G){return ae(ae({},G),{},{label:TI(G.value%12||12,2)})}):z,q=function(K){return SE(0,59,l,h,F(K))},H=function(K,X){return SE(0,59,u,h,B(K,X))},U=function(K,X,Q){return SE(0,999,d,h,D(K,X,Q),3)};return[W,q,H,U]},[h,o,i,d,l,u]),M=b.useMemo(function(){return P(C,E,O,$)},[P,C,E,O,$]),k=he(M,4),T=k[0],R=k[1],A=k[2],N=k[3],L=function(F,B){var D=function(){return T},z=R,W=A,q=N;if(B){var H=x(B),U=he(H,4),G=U[0],K=U[1],X=U[2],Q=U[3],ee=P(G,K,X,Q),ne=he(ee,4),te=ne[0],ie=ne[1],J=ne[2],le=ne[3];D=function(){return te},z=ie,W=J,q=le}var oe=o5e(F,D,z,W,q,e);return oe};return[L,T,R,A,N]}function s5e(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,a=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,d=b.useContext(Ec),h=d.prefixCls,p=d.locale,v=d.button,g=v===void 0?"button":v,m=u.getNow(),y=FI(u,a,m),x=he(y,1),S=x[0],w=r==null?void 0:r(t),C=f(m,{type:t}),E=function(){if(!C){var R=S(m);s(R)}},O="".concat(h,"-now"),$="".concat(O,"-btn"),P=i&&b.createElement("li",{className:O},b.createElement("a",{className:me($,C&&"".concat($,"-disabled")),"aria-disabled":C,onClick:E},n==="date"?p.today:p.now)),M=c&&b.createElement("li",{className:"".concat(h,"-ok")},b.createElement(g,{disabled:l,onClick:o},p.ok)),k=(P||M)&&b.createElement("ul",{className:"".concat(h,"-ranges")},P,M);return!w&&!k?null:b.createElement("div",{className:"".concat(h,"-footer")},w&&b.createElement("div",{className:"".concat(h,"-footer-extra")},w),k)}function _X(e,t,n){function r(i,a){var o=i.findIndex(function(l){return Io(e,t,l,a,n)});if(o===-1)return[].concat(Ne(i),[a]);var s=Ne(i);return s.splice(o,1),s}return r}var _p=b.createContext(null);function wE(){return b.useContext(_p)}function um(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,a=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,d=e.values,h=e.pickerValue,p=e.onSelect,v=e.prevIcon,g=e.nextIcon,m=e.superPrevIcon,y=e.superNextIcon,x=r.getNow(),S={now:x,values:d,pickerValue:h,prefixCls:n,disabledDate:a,minDate:o,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:i,generateConfig:r,onSelect:p,panelType:t,prevIcon:v,nextIcon:g,superPrevIcon:m,superNextIcon:y};return[S,x]}var Ld=b.createContext({});function fb(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,a=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,d=f===void 0?!0:f,h=e.disabledDate,p=wE(),v=p.prefixCls,g=p.panelType,m=p.now,y=p.disabledDate,x=p.cellRender,S=p.onHover,w=p.hoverValue,C=p.hoverRangeValue,E=p.generateConfig,O=p.values,$=p.locale,P=p.onSelect,M=h||y,k="".concat(v,"-cell"),T=b.useContext(Ld),R=T.onCellDblClick,A=function(W){return O.some(function(q){return q&&Io(E,$,W,q,g)})},N=[],L=0;L1&&arguments[1]!==void 0?arguments[1]:!1;pe(Ie),g==null||g(Ie),Ae&&fe(Ie)},Oe=function(Ie,Ae){X(Ie),Ae&&xe(Ae),fe(Ae,Ie)},_e=function(Ie){if(re(Ie),xe(Ie),K!==S){var Ae=["decade","year"],$e=[].concat(Ae,["month"]),He={quarter:[].concat(Ae,["quarter"]),week:[].concat(Ne($e),["week"]),date:[].concat(Ne($e),["date"])},ot=He[S]||$e,Ot=ot.indexOf(K),Wt=ot[Ot+1];Wt&&Oe(Wt,Ie)}},Te=b.useMemo(function(){var Ee,Ie;if(Array.isArray(E)){var Ae=he(E,2);Ee=Ae[0],Ie=Ae[1]}else Ee=E;return!Ee&&!Ie?null:(Ee=Ee||Ie,Ie=Ie||Ee,i.isAfter(Ee,Ie)?[Ie,Ee]:[Ee,Ie])},[E,i]),Fe=RI(O,$,P),Be=k[Q]||y5e[Q]||EE,Pe=b.useContext(Ld),ze=b.useMemo(function(){return ae(ae({},Pe),{},{hideHeader:T})},[Pe,T]),Ue="".concat(R,"-panel"),ke=vE(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return b.createElement(Ld.Provider,{value:ze},b.createElement("div",{ref:A,tabIndex:l,className:me(Ue,Z({},"".concat(Ue,"-rtl"),a==="rtl"))},b.createElement(Be,Le({},ke,{showTime:q,prefixCls:R,locale:z,generateConfig:i,onModeChange:Oe,pickerValue:de,onPickerValueChange:function(Ie){xe(Ie,!0)},value:le[0],onSelect:_e,values:le,cellRender:Fe,hoverRangeValue:Te,hoverValue:C}))))}var BI=b.memo(b.forwardRef(b5e));function x5e(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,c=b.useContext(Ec),u=c.prefixCls,f=c.generateConfig,d=b.useCallback(function(y,x){return ub(f,t,y,x)},[f,t]),h=b.useMemo(function(){return d(r,1)},[r,d]),p=function(x){i(d(x,-1))},v={onCellDblClick:function(){a&&o()}},g=t==="time",m=ae(ae({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return s?m.hoverRangeValue=l:m.hoverValue=l,n?b.createElement("div",{className:"".concat(u,"-panels")},b.createElement(Ld.Provider,{value:ae(ae({},v),{},{hideNext:!0})},b.createElement(BI,m)),b.createElement(Ld.Provider,{value:ae(ae({},v),{},{hidePrev:!0})},b.createElement(BI,Le({},m,{pickerValue:h,onPickerValueChange:p})))):b.createElement(Ld.Provider,{value:ae({},v)},b.createElement(BI,m))}function PX(e){return typeof e=="function"?e():e}function S5e(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?b.createElement("div",{className:"".concat(t,"-presets")},b.createElement("ul",null,n.map(function(a,o){var s=a.label,l=a.value;return b.createElement("li",{key:o,onClick:function(){r(PX(l))},onMouseEnter:function(){i(PX(l))},onMouseLeave:function(){i(null)}},s)}))):null}function MX(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,a=e.range,o=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,f=e.onPresetHover,d=e.onPresetSubmit,h=e.onFocus,p=e.onBlur,v=e.onPanelMouseDown,g=e.direction,m=e.value,y=e.onSelect,x=e.isInvalid,S=e.defaultOpenValue,w=e.onOk,C=e.onSubmit,E=b.useContext(Ec),O=E.prefixCls,$="".concat(O,"-panel"),P=g==="rtl",M=b.useRef(null),k=b.useRef(null),T=b.useState(0),R=he(T,2),A=R[0],N=R[1],L=b.useState(0),j=he(L,2),F=j[0],B=j[1],D=function(oe){oe.offsetWidth&&N(oe.offsetWidth)};b.useEffect(function(){if(a){var le,oe=((le=M.current)===null||le===void 0?void 0:le.offsetWidth)||0,re=A-oe;l<=re?B(0):B(l+oe-A)}},[A,l,a]);function z(le){return le.filter(function(oe){return oe})}var W=b.useMemo(function(){return z(Ep(m))},[m]),q=r==="time"&&!W.length,H=b.useMemo(function(){return q?z([S]):W},[q,W,S]),U=q?S:W,G=b.useMemo(function(){return H.length?H.some(function(le){return x(le)}):!0},[H,x]),K=function(){q&&y(S),w(),C()},X=b.createElement("div",{className:"".concat(O,"-panel-layout")},b.createElement(S5e,{prefixCls:O,presets:u,onClick:d,onHover:f}),b.createElement("div",null,b.createElement(x5e,Le({},e,{value:U})),b.createElement(s5e,Le({},e,{showNow:o?!1:i,invalid:G,onSubmit:K}))));t&&(X=t(X));var Q="".concat($,"-container"),ee="marginLeft",ne="marginRight",te=b.createElement("div",{onMouseDown:v,tabIndex:-1,className:me(Q,"".concat(O,"-").concat(n,"-panel-container")),style:Z(Z({},P?ne:ee,F),P?ee:ne,"auto"),onFocus:h,onBlur:p},X);if(a){var ie=pE(c,P),J=JY(ie,P);te=b.createElement("div",{onMouseDown:v,ref:k,className:me("".concat(O,"-range-wrapper"),"".concat(O,"-").concat(r,"-range-wrapper"))},b.createElement("div",{ref:M,className:"".concat(O,"-range-arrow"),style:Z({},J,l)}),b.createElement(vo,{onResize:D},te))}return te}function kX(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,o=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,d=e.onBlur,h=e.onInputChange,p=e.onInvalid,v=e.open,g=e.onOpenChange,m=e.onKeyDown,y=e.onChange,x=e.activeHelp,S=e.name,w=e.autoComplete,C=e.id,E=e.value,O=e.invalid,$=e.placeholder,P=e.disabled,M=e.activeIndex,k=e.allHelp,T=e.picker,R=function(z,W){var q=i.locale.parse(a.locale,z,[W]);return q&&i.isValidate(q)?q:null},A=n[0],N=b.useCallback(function(D){return za(D,{locale:a,format:A,generateConfig:i})},[a,i,A]),L=b.useMemo(function(){return E.map(N)},[E,N]),j=b.useMemo(function(){var D=T==="time"?8:10,z=typeof A=="function"?A(i.getNow()).length:A.length;return Math.max(D,z)+2},[A,T,i]),F=function(z){for(var W=0;W=s&&n<=l)return a;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c0?wt:st));var Ye=Mt+Et,Je=st-wt+1;return String(wt+(Je+Ye-wt)%Je)};switch(Ie){case"Backspace":case"Delete":Ae="",$e=ot;break;case"ArrowLeft":Ae="",Ot(-1);break;case"ArrowRight":Ae="",Ot(1);break;case"ArrowUp":Ae="",$e=Wt(1);break;case"ArrowDown":Ae="",$e=Wt(-1);break;default:isNaN(Number(Ie))||(Ae=D+Ie,$e=Ae);break}if(Ae!==null&&(z(Ae),Ae.length>=He&&(Ot(1),z(""))),$e!==null){var et=ee.slice(0,oe)+TI($e,He)+ee.slice(re);ge(et.slice(0,o.length))}Q({})},ze=b.useRef();Ln(function(){if(!(!T||!o||fe.current)){if(!ie.match(ee)){ge(o);return}return te.current.setSelectionRange(oe,re),ze.current=Sn(function(){te.current.setSelectionRange(oe,re)}),function(){Sn.cancel(ze.current)}}},[ie,o,T,ee,H,oe,re,X,ge]);var Ue=o?{onFocus:_e,onBlur:Fe,onKeyDown:Pe,onMouseDown:xe,onMouseUp:Oe,onPaste:pe}:{};return b.createElement("div",{ref:ne,className:me(P,Z(Z({},"".concat(P,"-active"),n&&i),"".concat(P,"-placeholder"),c))},b.createElement($,Le({ref:te,"aria-invalid":v,autoComplete:"off"},m,{onKeyDown:Be,onBlur:Te},Ue,{value:ee,onChange:de})),b.createElement(OE,{type:"suffix",icon:a}),g)}),P5e=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],M5e=["index"],k5e=["insetInlineStart","insetInlineEnd"];function T5e(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,a=e.suffixIcon,o=e.separator,s=o===void 0?"~":o,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,f=e.className,d=e.style,h=e.onClick,p=e.onClear,v=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var g=e.disabled,m=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var x=e.onActiveOffset,S=e.placement,w=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,E=e.tabIndex,O=qt(e,P5e),$=y==="rtl",P=b.useContext(Ec),M=P.prefixCls,k=b.useMemo(function(){if(typeof n=="string")return[n];var te=n||{};return[te.start,te.end]},[n]),T=b.useRef(),R=b.useRef(),A=b.useRef(),N=function(ie){var J;return(J=[R,A][ie])===null||J===void 0?void 0:J.current};b.useImperativeHandle(t,function(){return{nativeElement:T.current,focus:function(ie){if(Bt(ie)==="object"){var J,le=ie||{},oe=le.index,re=oe===void 0?0:oe,se=qt(le,M5e);(J=N(re))===null||J===void 0||J.focus(se)}else{var ge;(ge=N(ie!=null?ie:0))===null||ge===void 0||ge.focus()}},blur:function(){var ie,J;(ie=N(0))===null||ie===void 0||ie.blur(),(J=N(1))===null||J===void 0||J.blur()}}});var L=TX(O),j=b.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),F=kX(ae(ae({},e),{},{id:k,placeholder:j})),B=he(F,1),D=B[0],z=pE(S,$),W=JY(z,$),q=z==null?void 0:z.toLowerCase().endsWith("right"),H=b.useState({position:"absolute",width:0}),U=he(H,2),G=U[0],K=U[1],X=On(function(){var te=N(l);if(te){var ie=te.nativeElement,J=ie.offsetWidth,le=ie.offsetLeft,oe=ie.offsetParent,re=(oe==null?void 0:oe.offsetWidth)||0,se=q?re-J-le:le;K(function(ge){ge.insetInlineStart,ge.insetInlineEnd;var de=qt(ge,k5e);return ae(ae({},de),{},Z({width:J},W,se))}),x(se)}});b.useEffect(function(){X()},[l]);var Q=i&&(v[0]&&!g[0]||v[1]&&!g[1]),ee=C&&!g[0],ne=C&&!ee&&!g[1];return b.createElement(vo,{onResize:X},b.createElement("div",Le({},L,{className:me(M,"".concat(M,"-range"),Z(Z(Z(Z({},"".concat(M,"-focused"),c),"".concat(M,"-disabled"),g.every(function(te){return te})),"".concat(M,"-invalid"),m.some(function(te){return te})),"".concat(M,"-rtl"),$),f),style:d,ref:T,onClick:h,onMouseDown:function(ie){var J=ie.target;J!==R.current.inputElement&&J!==A.current.inputElement&&ie.preventDefault(),w==null||w(ie)}}),r&&b.createElement("div",{className:"".concat(M,"-prefix")},r),b.createElement(WI,Le({ref:R},D(0),{autoFocus:ee,tabIndex:E,"date-range":"start"})),b.createElement("div",{className:"".concat(M,"-range-separator")},s),b.createElement(WI,Le({ref:A},D(1),{autoFocus:ne,tabIndex:E,"date-range":"end"})),b.createElement("div",{className:"".concat(M,"-active-bar"),style:G}),b.createElement(OE,{type:"suffix",icon:a}),Q&&b.createElement(zI,{icon:i,onClear:p})))}var R5e=b.forwardRef(T5e);function IX(e,t){var n=e!=null?e:t;return Array.isArray(n)?n:[n,n]}function _E(e){return e===1?"end":"start"}function I5e(e,t){var n=pX(e,function(){var Rt=e.disabled,It=e.allowEmpty,cn=IX(Rt,!1),wn=IX(It,!1);return{disabled:cn,allowEmpty:wn}}),r=he(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i.prefixCls,f=i.styles,d=i.classNames,h=i.placement,p=i.defaultValue,v=i.value,g=i.needConfirm,m=i.onKeyDown,y=i.disabled,x=i.allowEmpty,S=i.disabledDate,w=i.minDate,C=i.maxDate,E=i.defaultOpen,O=i.open,$=i.onOpenChange,P=i.locale,M=i.generateConfig,k=i.picker,T=i.showNow,R=i.showToday,A=i.showTime,N=i.mode,L=i.onPanelChange,j=i.onCalendarChange,F=i.onOk,B=i.defaultPickerValue,D=i.pickerValue,z=i.onPickerValueChange,W=i.inputReadOnly,q=i.suffixIcon,H=i.onFocus,U=i.onBlur,G=i.presets,K=i.ranges,X=i.components,Q=i.cellRender,ee=i.dateRender,ne=i.monthCellRender,te=i.onClick,ie=gX(t),J=vX(O,E,y,$),le=he(J,2),oe=le[0],re=le[1],se=function(It,cn){(y.some(function(wn){return!wn})||!It)&&re(It,cn)},ge=CX(M,P,s,!0,!1,p,v,j,F),de=he(ge,5),pe=de[0],fe=de[1],xe=de[2],Oe=de[3],_e=de[4],Te=xe(),Fe=yX(y,x,oe),Be=he(Fe,7),Pe=Be[0],ze=Be[1],Ue=Be[2],ke=Be[3],Ee=Be[4],Ie=Be[5],Ae=Be[6],$e=function(It,cn){ze(!0),H==null||H(It,{range:_E(cn!=null?cn:ke)})},He=function(It,cn){ze(!1),U==null||U(It,{range:_E(cn!=null?cn:ke)})},ot=b.useMemo(function(){if(!A)return null;var Rt=A.disabledTime,It=Rt?function(cn){var wn=_E(ke),zn=nX(Te,Ae,ke);return Rt(cn,wn,{from:zn})}:void 0;return ae(ae({},A),{},{disabledTime:It})},[A,ke,Te,Ae]),Ot=Yn([k,k],{value:N}),Wt=he(Ot,2),et=Wt[0],ht=Wt[1],Et=et[ke]||k,gt=Et==="date"&&ot?"datetime":Et,Pt=gt===k&>!=="time",wt=OX(k,Et,T,R,!0),st=EX(i,pe,fe,xe,Oe,y,s,Pe,oe,c),nt=he(st,3),lt=nt[0],Mt=nt[1],Ye=nt[2],Je=r5e(Te,y,Ae,M,P,S),mt=iX(Te,c,x),Tt=he(mt,2),Xt=Tt[0],Jt=Tt[1],Gt=bX(M,P,Te,et,oe,ke,a,Pt,B,D,ot==null?void 0:ot.defaultOpenValue,z,w,C),St=he(Gt,2),$t=St[0],Nt=St[1],Zt=On(function(Rt,It,cn){var wn=sb(et,ke,It);if((wn[0]!==et[0]||wn[1]!==et[1])&&ht(wn),L&&cn!==!1){var zn=Ne(Te);Rt&&(zn[ke]=Rt),L(zn,wn)}}),gn=function(It,cn){return sb(Te,cn,It)},an=function(It,cn){var wn=Te;It&&(wn=gn(It,ke));var zn=Ie(wn);Oe(wn),lt(ke,zn===null),zn===null?se(!1,{force:!0}):cn||ie.current.focus({index:zn})},Mn=function(It){var cn,wn=It.target.getRootNode();if(!ie.current.nativeElement.contains((cn=wn.activeElement)!==null&&cn!==void 0?cn:document.activeElement)){var zn=y.findIndex(function(Zi){return!Zi});zn>=0&&ie.current.focus({index:zn})}se(!0),te==null||te(It)},Vt=function(){Mt(null),se(!1,{force:!0})},ye=b.useState(null),Re=he(ye,2),Xe=Re[0],Ge=Re[1],tt=b.useState(null),vt=he(tt,2),Lt=vt[0],on=vt[1],mn=b.useMemo(function(){return Lt||Te},[Te,Lt]);b.useEffect(function(){oe||on(null)},[oe]);var fn=b.useState(0),bt=he(fn,2),Qt=bt[0],sn=bt[1],$n=mX(G,K),In=function(It){on(It),Ge("preset")},or=function(It){var cn=Mt(It);cn&&se(!1,{force:!0})},$r=function(It){an(It)},ci=function(It){on(It?gn(It,ke):null),Ge("cell")},Ni=function(It){se(!0),$e(It)},ri=function(){Ue("panel")},oa=function(It){var cn=sb(Te,ke,It);Oe(cn),!g&&!o&&a===gt&&an(It)},en=function(){se(!1)},Ct=RI(Q,ee,ne,_E(ke)),Kt=Te[ke]||null,Vn=On(function(Rt){return c(Rt,{activeIndex:ke})}),jt=b.useMemo(function(){var Rt=ta(i,!1),It=Or(i,[].concat(Ne(Object.keys(Rt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return It},[i]),Yt=b.createElement(MX,Le({},jt,{showNow:wt,showTime:ot,range:!0,multiplePanel:Pt,activeOffset:Qt,placement:h,disabledDate:Je,onFocus:Ni,onBlur:He,onPanelMouseDown:ri,picker:k,mode:Et,internalMode:gt,onPanelChange:Zt,format:l,value:Kt,isInvalid:Vn,onChange:null,onSelect:oa,pickerValue:$t,defaultOpenValue:Ep(A==null?void 0:A.defaultOpenValue)[ke],onPickerValueChange:Nt,hoverValue:mn,onHover:ci,needConfirm:g,onSubmit:an,onOk:_e,presets:$n,onPresetHover:In,onPresetSubmit:or,onNow:$r,cellRender:Ct})),kn=function(It,cn){var wn=gn(It,cn);Oe(wn)},Gn=function(){Ue("input")},Cr=function(It,cn){var wn=Ae.length,zn=Ae[wn-1];if(wn&&zn!==cn&&g&&!x[zn]&&!Ye(zn)&&Te[zn]){ie.current.focus({index:zn});return}Ue("input"),se(!0,{inherit:!0}),ke!==cn&&oe&&!g&&o&&an(null,!0),Ee(cn),$e(It,cn)},Ur=function(It,cn){if(se(!1),!g&&Ue()==="input"){var wn=Ie(Te);lt(ke,wn===null)}He(It,cn)},Pr=function(It,cn){It.key==="Tab"&&an(null,!0),m==null||m(It,cn)},Si=b.useMemo(function(){return{prefixCls:u,locale:P,generateConfig:M,button:X.button,input:X.input}},[u,P,M,X.button,X.input]);return Ln(function(){oe&&ke!==void 0&&Zt(null,k,!1)},[oe,ke,k]),Ln(function(){var Rt=Ue();!oe&&Rt==="input"&&(se(!1),an(null,!0)),!oe&&o&&!g&&Rt==="panel"&&(se(!0),an())},[oe]),b.createElement(Ec.Provider,{value:Si},b.createElement(eX,Le({},rX(i),{popupElement:Yt,popupStyle:f.popup,popupClassName:d.popup,visible:oe,onClose:en,range:!0}),b.createElement(R5e,Le({},i,{ref:ie,suffixIcon:q,activeIndex:Pe||oe?ke:null,activeHelp:!!Lt,allHelp:!!Lt&&Xe==="preset",focused:Pe,onFocus:Cr,onBlur:Ur,onKeyDown:Pr,onSubmit:an,value:mn,maskFormat:l,onChange:kn,onInputChange:Gn,format:s,inputReadOnly:W,disabled:y,open:oe,onOpenChange:se,onClick:Mn,onClear:Vt,invalid:Xt,onInvalid:Jt,onActiveOffset:sn}))))}var A5e=b.forwardRef(I5e);function N5e(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,a=i===void 0?"×":i,o=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),d="".concat(f,"-overflow");function h(g,m){return b.createElement("span",{className:me("".concat(f,"-item")),title:typeof g=="string"?g:null},b.createElement("span",{className:"".concat(f,"-item-content")},g),!s&&m&&b.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:m,className:"".concat(f,"-item-remove")},a))}function p(g){var m=o(g),y=function(S){S&&S.stopPropagation(),r(g)};return h(m,y)}function v(g){var m="+ ".concat(g.length," ...");return h(m)}return b.createElement("div",{className:u},b.createElement(wc,{prefixCls:d,data:n,renderItem:p,renderRest:v,itemKey:function(m){return o(m)},maxCount:l}),!n.length&&b.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var L5e=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function j5e(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,d=e.onClick,h=e.onClear,p=e.internalPicker,v=e.value,g=e.onChange,m=e.onSubmit;e.onInputChange;var y=e.multiple,x=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,w=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,$=e.tabIndex,P=e.removeIcon,M=qt(e,L5e),k=C==="rtl",T=b.useContext(Ec),R=T.prefixCls,A=b.useRef(),N=b.useRef();b.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(G){var K;(K=N.current)===null||K===void 0||K.focus(G)},blur:function(){var G;(G=N.current)===null||G===void 0||G.blur()}}});var L=TX(M),j=function(G){g([G])},F=function(G){var K=v.filter(function(X){return X&&!Io(l,s,X,G,p)});g(K),n||m()},B=kX(ae(ae({},e),{},{onChange:j}),function(U){var G=U.valueTexts;return{value:G[0]||"",active:o}}),D=he(B,2),z=D[0],W=D[1],q=!!(i&&v.length&&!S),H=y?b.createElement(b.Fragment,null,b.createElement(N5e,{prefixCls:R,value:v,onRemove:F,formatDate:W,maxTagCount:x,disabled:S,removeIcon:P,placeholder:c}),b.createElement("input",{className:"".concat(R,"-multiple-input"),value:v.map(W).join(","),ref:N,readOnly:!0,autoFocus:O,tabIndex:$}),b.createElement(OE,{type:"suffix",icon:a}),q&&b.createElement(zI,{icon:i,onClear:h})):b.createElement(WI,Le({ref:N},z(),{autoFocus:O,tabIndex:$,suffixIcon:a,clearIcon:q&&b.createElement(zI,{icon:i,onClear:h}),showActiveCls:!1}));return b.createElement("div",Le({},L,{className:me(R,Z(Z(Z(Z(Z({},"".concat(R,"-multiple"),y),"".concat(R,"-focused"),o),"".concat(R,"-disabled"),S),"".concat(R,"-invalid"),w),"".concat(R,"-rtl"),k),u),style:f,ref:A,onClick:d,onMouseDown:function(G){var K,X=G.target;X!==((K=N.current)===null||K===void 0?void 0:K.inputElement)&&G.preventDefault(),E==null||E(G)}}),r&&b.createElement("div",{className:"".concat(R,"-prefix")},r),H)}var D5e=b.forwardRef(j5e);function F5e(e,t){var n=pX(e),r=he(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i,f=u.prefixCls,d=u.styles,h=u.classNames,p=u.order,v=u.defaultValue,g=u.value,m=u.needConfirm,y=u.onChange,x=u.onKeyDown,S=u.disabled,w=u.disabledDate,C=u.minDate,E=u.maxDate,O=u.defaultOpen,$=u.open,P=u.onOpenChange,M=u.locale,k=u.generateConfig,T=u.picker,R=u.showNow,A=u.showToday,N=u.showTime,L=u.mode,j=u.onPanelChange,F=u.onCalendarChange,B=u.onOk,D=u.multiple,z=u.defaultPickerValue,W=u.pickerValue,q=u.onPickerValueChange,H=u.inputReadOnly,U=u.suffixIcon,G=u.removeIcon,K=u.onFocus,X=u.onBlur,Q=u.presets,ee=u.components,ne=u.cellRender,te=u.dateRender,ie=u.monthCellRender,J=u.onClick,le=gX(t);function oe(jt){return jt===null?null:D?jt:jt[0]}var re=_X(k,M,a),se=vX($,O,[S],P),ge=he(se,2),de=ge[0],pe=ge[1],fe=function(Yt,kn,Gn){if(F){var Cr=ae({},Gn);delete Cr.range,F(oe(Yt),oe(kn),Cr)}},xe=function(Yt){B==null||B(oe(Yt))},Oe=CX(k,M,s,!1,p,v,g,fe,xe),_e=he(Oe,5),Te=_e[0],Fe=_e[1],Be=_e[2],Pe=_e[3],ze=_e[4],Ue=Be(),ke=yX([S]),Ee=he(ke,4),Ie=Ee[0],Ae=Ee[1],$e=Ee[2],He=Ee[3],ot=function(Yt){Ae(!0),K==null||K(Yt,{})},Ot=function(Yt){Ae(!1),X==null||X(Yt,{})},Wt=Yn(T,{value:L}),et=he(Wt,2),ht=et[0],Et=et[1],gt=ht==="date"&&N?"datetime":ht,Pt=OX(T,ht,R,A),wt=y&&function(jt,Yt){y(oe(jt),oe(Yt))},st=EX(ae(ae({},i),{},{onChange:wt}),Te,Fe,Be,Pe,[],s,Ie,de,c),nt=he(st,2),lt=nt[1],Mt=iX(Ue,c),Ye=he(Mt,2),Je=Ye[0],mt=Ye[1],Tt=b.useMemo(function(){return Je.some(function(jt){return jt})},[Je]),Xt=function(Yt,kn){if(q){var Gn=ae(ae({},kn),{},{mode:kn.mode[0]});delete Gn.range,q(Yt[0],Gn)}},Jt=bX(k,M,Ue,[ht],de,He,a,!1,z,W,Ep(N==null?void 0:N.defaultOpenValue),Xt,C,E),Gt=he(Jt,2),St=Gt[0],$t=Gt[1],Nt=On(function(jt,Yt,kn){if(Et(Yt),j&&kn!==!1){var Gn=jt||Ue[Ue.length-1];j(Gn,Yt)}}),Zt=function(){lt(Be()),pe(!1,{force:!0})},gn=function(Yt){!S&&!le.current.nativeElement.contains(document.activeElement)&&le.current.focus(),pe(!0),J==null||J(Yt)},an=function(){lt(null),pe(!1,{force:!0})},Mn=b.useState(null),Vt=he(Mn,2),ye=Vt[0],Re=Vt[1],Xe=b.useState(null),Ge=he(Xe,2),tt=Ge[0],vt=Ge[1],Lt=b.useMemo(function(){var jt=[tt].concat(Ne(Ue)).filter(function(Yt){return Yt});return D?jt:jt.slice(0,1)},[Ue,tt,D]),on=b.useMemo(function(){return!D&&tt?[tt]:Ue.filter(function(jt){return jt})},[Ue,tt,D]);b.useEffect(function(){de||vt(null)},[de]);var mn=mX(Q),fn=function(Yt){vt(Yt),Re("preset")},bt=function(Yt){var kn=D?re(Be(),Yt):[Yt],Gn=lt(kn);Gn&&!D&&pe(!1,{force:!0})},Qt=function(Yt){bt(Yt)},sn=function(Yt){vt(Yt),Re("cell")},$n=function(Yt){pe(!0),ot(Yt)},In=function(Yt){if($e("panel"),!(D&>!==T)){var kn=D?re(Be(),Yt):[Yt];Pe(kn),!m&&!o&&a===gt&&Zt()}},or=function(){pe(!1)},$r=RI(ne,te,ie),ci=b.useMemo(function(){var jt=ta(i,!1),Yt=Or(i,[].concat(Ne(Object.keys(jt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return ae(ae({},Yt),{},{multiple:i.multiple})},[i]),Ni=b.createElement(MX,Le({},ci,{showNow:Pt,showTime:N,disabledDate:w,onFocus:$n,onBlur:Ot,picker:T,mode:ht,internalMode:gt,onPanelChange:Nt,format:l,value:Ue,isInvalid:c,onChange:null,onSelect:In,pickerValue:St,defaultOpenValue:N==null?void 0:N.defaultOpenValue,onPickerValueChange:$t,hoverValue:Lt,onHover:sn,needConfirm:m,onSubmit:Zt,onOk:ze,presets:mn,onPresetHover:fn,onPresetSubmit:bt,onNow:Qt,cellRender:$r})),ri=function(Yt){Pe(Yt)},oa=function(){$e("input")},en=function(Yt){$e("input"),pe(!0,{inherit:!0}),ot(Yt)},Ct=function(Yt){pe(!1),Ot(Yt)},Kt=function(Yt,kn){Yt.key==="Tab"&&Zt(),x==null||x(Yt,kn)},Vn=b.useMemo(function(){return{prefixCls:f,locale:M,generateConfig:k,button:ee.button,input:ee.input}},[f,M,k,ee.button,ee.input]);return Ln(function(){de&&He!==void 0&&Nt(null,T,!1)},[de,He,T]),Ln(function(){var jt=$e();!de&&jt==="input"&&(pe(!1),Zt()),!de&&o&&!m&&jt==="panel"&&(pe(!0),Zt())},[de]),b.createElement(Ec.Provider,{value:Vn},b.createElement(eX,Le({},rX(i),{popupElement:Ni,popupStyle:d.popup,popupClassName:h.popup,visible:de,onClose:or}),b.createElement(D5e,Le({},i,{ref:le,suffixIcon:U,removeIcon:G,activeHelp:!!tt,allHelp:!!tt&&ye==="preset",focused:Ie,onFocus:en,onBlur:Ct,onKeyDown:Kt,onSubmit:Zt,value:on,maskFormat:l,onChange:ri,onInputChange:oa,internalPicker:a,format:s,inputReadOnly:H,disabled:S,open:de,onOpenChange:pe,onClick:gn,onClear:an,invalid:Tt,onInvalid:function(Yt){mt(Yt,0)}}))))}var B5e=b.forwardRef(F5e);const AX=b.createContext(null),z5e=AX.Provider,NX=b.createContext(null),H5e=NX.Provider;var W5e=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],LX=b.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,a=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,d=e.title,h=e.onChange,p=qt(e,W5e),v=b.useRef(null),g=b.useRef(null),m=Yn(c,{value:o}),y=he(m,2),x=y[0],S=y[1];b.useImperativeHandle(t,function(){return{focus:function(O){var $;($=v.current)===null||$===void 0||$.focus(O)},blur:function(){var O;(O=v.current)===null||O===void 0||O.blur()},input:v.current,nativeElement:g.current}});var w=me(r,i,Z(Z({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),s)),C=function(O){s||("checked"in e||S(O.target.checked),h==null||h({target:ae(ae({},e),{},{type:f,checked:O.target.checked}),stopPropagation:function(){O.stopPropagation()},preventDefault:function(){O.preventDefault()},nativeEvent:O.nativeEvent}))};return b.createElement("span",{className:w,title:d,style:a,ref:g},b.createElement("input",Le({},p,{className:"".concat(r,"-input"),ref:v,onChange:C,disabled:s,checked:!!x,type:f})),b.createElement("span",{className:"".concat(r,"-inner")}))});function jX(e){const t=we.useRef(null),n=()=>{Sn.cancel(t.current),t.current=null};return[()=>{n(),t.current=Sn(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const V5e=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},er(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},q5e=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:d,paddingXS:h,dotColorDisabled:p,lineType:v,radioColor:g,radioBgColor:m,calc:y}=e,x=`${t}-inner`,w=y(i).sub(y(4).mul(2)),C=y(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},er(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ue(u)} ${v} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},er(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Object.assign({},$d(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:y(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:m,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:d,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${y(w).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},U5e=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:d,controlHeightLG:h,controlHeightSM:p,paddingXS:v,borderRadius:g,borderRadiusSM:m,borderRadiusLG:y,buttonCheckedBg:x,buttonSolidCheckedColor:S,colorTextDisabled:w,colorBgContainerDisabled:C,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:O,colorPrimary:$,colorPrimaryHover:P,colorPrimaryActive:M,buttonSolidCheckedBg:k,buttonSolidCheckedHoverBg:T,buttonSolidCheckedActiveBg:R,calc:A}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:ue(A(n).sub(A(i).mul(2)).equal()),background:f,border:`${ue(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:A(i).mul(-1).equal(),insetInlineStart:A(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:o,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${ue(i)} ${a} ${o}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:h,fontSize:d,lineHeight:ue(A(h).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:p,paddingInline:A(v).sub(i).equal(),paddingBlock:0,lineHeight:ue(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},$d(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:x,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:k,borderColor:k,"&:hover":{color:S,background:T,borderColor:T},"&:active":{color:S,background:R,borderColor:R}},"&-disabled":{color:w,backgroundColor:C,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:C,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:E,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},DX=tr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ue(n)} ${t}`,a=_n(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[V5e(a),q5e(a),U5e(a)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:d,colorPrimaryActive:h,colorWhite:p}=e,v=4,g=a,m=t?g-v*2:g-(v+i)*2;return{radioSize:g,dotSize:m,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:d,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?f:p,radioBgColor:t?s:f}},{unitless:{radioSize:!0,dotSize:!0}});var G5e=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const i=b.useContext(AX),a=b.useContext(NX),{getPrefixCls:o,direction:s,radio:l}=b.useContext(At),c=b.useRef(null),u=po(t,c),{isFormItemInput:f}=b.useContext(Fa),d=N=>{var L,j;(L=e.onChange)===null||L===void 0||L.call(e,N),(j=i==null?void 0:i.onChange)===null||j===void 0||j.call(i,N)},{prefixCls:h,className:p,rootClassName:v,children:g,style:m,title:y}=e,x=G5e(e,["prefixCls","className","rootClassName","children","style","title"]),S=o("radio",h),w=((i==null?void 0:i.optionType)||a)==="button",C=w?`${S}-button`:S,E=Ti(S),[O,$,P]=DX(S,E),M=Object.assign({},x),k=b.useContext(mo);i&&(M.name=i.name,M.onChange=d,M.checked=e.value===i.value,M.disabled=(n=M.disabled)!==null&&n!==void 0?n:i.disabled),M.disabled=(r=M.disabled)!==null&&r!==void 0?r:k;const T=me(`${C}-wrapper`,{[`${C}-wrapper-checked`]:M.checked,[`${C}-wrapper-disabled`]:M.disabled,[`${C}-wrapper-rtl`]:s==="rtl",[`${C}-wrapper-in-form-item`]:f,[`${C}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,p,v,$,P,E),[R,A]=jX(M.onClick);return O(b.createElement(L1,{component:"Radio",disabled:M.disabled},b.createElement("label",{className:T,style:Object.assign(Object.assign({},l==null?void 0:l.style),m),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:R},b.createElement(LX,Object.assign({},M,{className:me(M.className,{[FC]:!w}),type:"radio",prefixCls:C,ref:u,onClick:A})),g!==void 0?b.createElement("span",null,g):null)))},$E=b.forwardRef(K5e),Y5e=b.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=b.useContext(At),{prefixCls:i,className:a,rootClassName:o,options:s,buttonStyle:l="outline",disabled:c,children:u,size:f,style:d,id:h,optionType:p,name:v,defaultValue:g,value:m,block:y=!1,onChange:x,onMouseEnter:S,onMouseLeave:w,onFocus:C,onBlur:E}=e,[O,$]=Yn(g,{value:m}),P=b.useCallback(D=>{const z=O,W=D.target.value;"value"in e||$(W),W!==z&&(x==null||x(D))},[O,$,x]),M=n("radio",i),k=`${M}-group`,T=Ti(M),[R,A,N]=DX(M,T);let L=u;s&&s.length>0&&(L=s.map(D=>typeof D=="string"||typeof D=="number"?b.createElement($E,{key:D.toString(),prefixCls:M,disabled:c,value:D,checked:O===D},D):b.createElement($E,{key:`radio-group-value-options-${D.value}`,prefixCls:M,disabled:D.disabled||c,value:D.value,checked:O===D.value,title:D.title,style:D.style,id:D.id,required:D.required},D.label)));const j=ja(f),F=me(k,`${k}-${l}`,{[`${k}-${j}`]:j,[`${k}-rtl`]:r==="rtl",[`${k}-block`]:y},a,o,A,N,T),B=b.useMemo(()=>({onChange:P,value:O,disabled:c,name:v,optionType:p,block:y}),[P,O,c,v,p,y]);return R(b.createElement("div",Object.assign({},ta(e,{aria:!0,data:!0}),{className:F,style:d,onMouseEnter:S,onMouseLeave:w,onFocus:C,onBlur:E,id:h,ref:t}),b.createElement(z5e,{value:B},L)))}),X5e=b.memo(Y5e);var Z5e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n}=b.useContext(At),{prefixCls:r}=e,i=Z5e(e,["prefixCls"]),a=n("radio",r);return b.createElement(H5e,{value:"button"},b.createElement($E,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},J5e=b.forwardRef(Q5e),Dd=$E;Dd.Button=J5e,Dd.Group=X5e,Dd.__ANT_RADIO=!0;function hb(e){return _n(e,{inputAffixPadding:e.paddingXXS})}const pb=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:v,controlOutline:g,colorErrorOutline:m,colorWarningOutline:y,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((o-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:d,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${v}px ${g}`,errorActiveShadow:`0 0 0 ${v}px ${m}`,warningActiveShadow:`0 0 0 ${v}px ${y}`,hoverBg:x,activeBg:x,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},eAe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),PE=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},eAe(_n(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),VI=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),FX=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},VI(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),qI=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},VI(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},PE(e))}),FX(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),FX(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),BX=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),zX=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},BX(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),BX(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},PE(e))}})}),UI=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},HX=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),WX=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},HX(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),GI=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},HX(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},PE(e))}),WX(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),WX(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),VX=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),qX=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},VX(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),VX(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),KI=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),UX=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${ue(t)} ${ue(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},YI=e=>({padding:`${ue(e.paddingBlockSM)} ${ue(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),vb=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ue(e.paddingBlock)} ${ue(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},KI(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},UX(e)),"&-sm":Object.assign({},YI(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),GX=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},UX(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},YI(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ue(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ue(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ue(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ue(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ue(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},bc()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range @@ -285,62 +285,62 @@ html body { & > ${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}}}})}},rAe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,o=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),vb(e)),YI(e)),ZI(e)),XI(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},iAe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${fe(e.inputAffixPadding)}`}}}},aAe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},vb(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},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),iAe(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:o}}}),[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},oAe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},er(e)),YX(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}}},WX(e)),GX(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}}})})}},sAe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{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-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd: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:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + & > ${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}}}})}},tAe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,o=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),vb(e)),qI(e)),GI(e)),UI(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},nAe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ue(e.inputAffixPadding)}`}}}},rAe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},vb(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},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),nAe(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:o}}}),[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},iAe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},er(e)),GX(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}}},zX(e)),qX(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}}})})}},aAe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{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-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd: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:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, - ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},lAe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` + ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},oAe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-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","&: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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},cAe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},e5=tr("Input",e=>{const t=$n(e,hb(e));return[rAe(t),lAe(t),aAe(t),oAe(t),sAe(t),cAe(t),F1(t)]},pb,{resetFont:!1}),t5=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",a=VK(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:fe(a.itemLineHeight)}}}]},uAe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=$n(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=$n(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[t5(i,"small"),t5(e),t5(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},qK(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},fAe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:d,cellBgDisabled:h,colorFillSecondary:p}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:fe(r),borderRadius:i,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), - &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${fe(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range, + `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&: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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},sAe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},XI=tr("Input",e=>{const t=_n(e,hb(e));return[tAe(t),oAe(t),rAe(t),iAe(t),aAe(t),sAe(t),F1(t)]},pb,{resetFont:!1}),ZI=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",a=HK(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:ue(a.itemLineHeight)}}}]},lAe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=_n(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=_n(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[ZI(i,"small"),ZI(e),ZI(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},WK(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},cAe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:d,cellBgDisabled:h,colorFillSecondary:p}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ue(r),borderRadius:i,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), + &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ue(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected, &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:p}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:d,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:d}}},dAe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:d,borderRadiusLG:h,colorPrimary:p,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:m,colorIcon:y,textHeight:x,motionDurationMid:S,colorIconHover:w,fontWeightStrong:C,cellHeight:E,pickerCellPaddingVertical:O,colorTextDisabled:$,colorText:P,fontSize:M,motionDurationSlow:k,withoutTimeCellHeight:T,pickerQuarterPanelContentHeight:R,borderRadiusSM:A,colorTextLightSolid:N,cellHoverBg:L,timeColumnHeight:j,timeColumnWidth:F,timeCellHeight:B,controlItemBgActive:D,marginXXS:z,pickerDatePanelPaddingHorizontal:W,pickerControlIconMargin:q}=e,H=e.calc(o).mul(7).add(e.calc(W).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:h,outline:"none","&-focused":{borderColor:p},"&-rtl":{[`${t}-prev-icon, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:p}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:d,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:d}}},uAe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:d,borderRadiusLG:h,colorPrimary:p,colorTextHeading:v,colorSplit:g,pickerControlIconBorderWidth:m,colorIcon:y,textHeight:x,motionDurationMid:S,colorIconHover:w,fontWeightStrong:C,cellHeight:E,pickerCellPaddingVertical:O,colorTextDisabled:$,colorText:P,fontSize:M,motionDurationSlow:k,withoutTimeCellHeight:T,pickerQuarterPanelContentHeight:R,borderRadiusSM:A,colorTextLightSolid:N,cellHoverBg:L,timeColumnHeight:j,timeColumnWidth:F,timeCellHeight:B,controlItemBgActive:D,marginXXS:z,pickerDatePanelPaddingHorizontal:W,pickerControlIconMargin:q}=e,H=e.calc(o).mul(7).add(e.calc(W).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:h,outline:"none","&-focused":{borderColor:p},"&-rtl":{[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:H},"&-header":{display:"flex",padding:`0 ${fe(l)}`,color:g,borderBottom:`${fe(f)} ${d} ${v}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:fe(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:C,lineHeight:fe(x),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:p}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${fe(m)} 0`,borderInlineWidth:`${fe(m)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:q,insetInlineStart:q,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${fe(m)} 0`,borderInlineWidth:`${fe(m)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:E,fontWeight:"normal"},th:{height:e.calc(E).add(e.calc(O).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${fe(O)} 0`,color:$,cursor:"pointer","&-in-view":{color:P}},fAe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(T).mul(4).equal()},[r]:{padding:`0 ${fe(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:R}},"&-decade-panel":{[r]:{padding:`0 ${fe(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${fe(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${fe(l)} ${fe(W)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:H},"&-header":{display:"flex",padding:`0 ${ue(l)}`,color:v,borderBottom:`${ue(f)} ${d} ${g}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:ue(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:C,lineHeight:ue(x),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:p}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${ue(m)} 0`,borderInlineWidth:`${ue(m)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:q,insetInlineStart:q,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${ue(m)} 0`,borderInlineWidth:`${ue(m)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:E,fontWeight:"normal"},th:{height:e.calc(E).add(e.calc(O).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ue(O)} 0`,color:$,cursor:"pointer","&-in-view":{color:P}},cAe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(T).mul(4).equal()},[r]:{padding:`0 ${ue(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:R}},"&-decade-panel":{[r]:{padding:`0 ${ue(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ue(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${ue(l)} ${ue(W)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, &-selected ${r}, - ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:A,borderEndStartRadius:A},"&:last-child:before":{borderStartEndRadius:A,borderEndEndRadius:A}},"&:hover td:before":{background:L},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:p},[`&${t}-cell-week`]:{color:new Un(N).setAlpha(.5).toHexString()},[r]:{color:N}}},"&-range-hover td:before":{background:D}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${fe(l)} ${fe(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${fe(f)} ${d} ${v}`},[`${t}-date-panel, + ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:A,borderEndStartRadius:A},"&:last-child:before":{borderStartEndRadius:A,borderEndEndRadius:A}},"&:hover td:before":{background:L},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:p},[`&${t}-cell-week`]:{color:new Un(N).setAlpha(.5).toHexString()},[r]:{color:N}}},"&-range-hover td:before":{background:D}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ue(l)} ${ue(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ue(f)} ${d} ${g}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${k}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:j},"&-column":{flex:"1 0 auto",width:F,margin:`${fe(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${fe(B)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${fe(f)} ${d} ${v}`},"&-active":{background:new Un(D).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:z,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(F).sub(e.calc(z).mul(2)).equal(),height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(F).sub(B).div(2).equal(),color:P,lineHeight:fe(B),borderRadius:A,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:L}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:D}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},hAe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${fe(r)} ${c} ${u}`,"&-extra":{padding:`0 ${fe(i)}`,lineHeight:fe(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${fe(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:fe(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:fe(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},pAe=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},vAe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,l=o*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Un(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Un(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},gAe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},pb(e)),vAe(e)),iE(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),mAe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},YI(e)),ZI(e)),XI(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},n5=(e,t,n,r)=>{const i=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(i).div(2).equal(),0),o=e.max(e.calc(t).sub(i).sub(a).equal(),0);return{padding:`${fe(a)} ${fe(r)} ${fe(o)}`}},yAe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},bAe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:i,lineWidth:a,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,controlHeightLG:d,fontSizeLG:h,controlHeightSM:p,paddingInlineSM:g,paddingXS:v,marginXS:m,colorTextDescription:y,lineWidthBold:x,colorPrimary:S,motionDurationSlow:w,zIndexPopup:C,paddingXXS:E,sizePopupArrow:O,colorBgElevated:$,borderRadiusLG:P,boxShadowSecondary:M,borderRadiusSM:k,colorSplit:T,cellHoverBg:R,presetsWidth:A,presetsMaxWidth:N,boxShadowPopoverArrow:L,fontHeight:j,fontHeightLG:F,lineHeightLG:B}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},er(e)),n5(e,r,j,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},QI(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},n5(e,d,F,i)),{[`${t}-input > input`]:{fontSize:h,lineHeight:B}}),"&-small":Object.assign({},n5(e,p,j,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:m}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:u,fontSize:h,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:x,background:S,opacity:0,transition:`all ${w} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${fe(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},er(e)),dAe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:C,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:j},"&-column":{flex:"1 0 auto",width:F,margin:`${ue(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${ue(B)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ue(f)} ${d} ${g}`},"&-active":{background:new Un(D).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:z,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(F).sub(e.calc(z).mul(2)).equal(),height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(F).sub(B).div(2).equal(),color:P,lineHeight:ue(B),borderRadius:A,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:L}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:D}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},fAe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ue(r)} ${c} ${u}`,"&-extra":{padding:`0 ${ue(i)}`,lineHeight:ue(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ue(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ue(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ue(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},dAe=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},hAe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,l=o*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Un(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Un(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},pAe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},pb(e)),hAe(e)),nE(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),vAe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},qI(e)),GI(e)),UI(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},QI=(e,t,n,r)=>{const i=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(i).div(2).equal(),0),o=e.max(e.calc(t).sub(i).sub(a).equal(),0);return{padding:`${ue(a)} ${ue(r)} ${ue(o)}`}},gAe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},mAe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:i,lineWidth:a,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,controlHeightLG:d,fontSizeLG:h,controlHeightSM:p,paddingInlineSM:v,paddingXS:g,marginXS:m,colorTextDescription:y,lineWidthBold:x,colorPrimary:S,motionDurationSlow:w,zIndexPopup:C,paddingXXS:E,sizePopupArrow:O,colorBgElevated:$,borderRadiusLG:P,boxShadowSecondary:M,borderRadiusSM:k,colorSplit:T,cellHoverBg:R,presetsWidth:A,presetsMaxWidth:N,boxShadowPopoverArrow:L,fontHeight:j,fontHeightLG:F,lineHeightLG:B}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},er(e)),QI(e,r,j,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},KI(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},QI(e,d,F,i)),{[`${t}-input > input`]:{fontSize:h,lineHeight:B}}),"&-small":Object.assign({},QI(e,p,j,v)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(g).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:m}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:u,fontSize:h,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:x,background:S,opacity:0,transition:`all ${w} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${ue(g)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},er(e)),uAe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:C,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft, &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:UC},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:VC},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:VC},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:GC},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:qC},[`${t}-panel > ${t}-time-panel`]:{paddingTop:E},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${w} ease-out`},eY(e,$,L)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:$,borderRadius:P,boxShadow:M,transition:`margin ${w}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:A,maxWidth:N,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${fe(a)} ${o} ${T}`,li:Object.assign(Object.assign({},Qo),{borderRadius:k,paddingInline:v,paddingBlock:e.calc(p).sub(j).div(2).equal(),cursor:"pointer",transition:`all ${w}`,"+ li":{marginTop:m},"&:hover":{background:R}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${fe(e.calc(O).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},ru(e,"slide-up"),ru(e,"slide-down"),Vg(e,"move-up"),Vg(e,"move-down")]},XX=tr("DatePicker",e=>{const t=$n(hb(e),pAe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[hAe(t),bAe(t),mAe(t),yAe(t),uAe(t),F1(e,{focusElCls:`${e.componentCls}-focused`})]},gAe);var xAe={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"},SAe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:xAe}))},wAe=b.forwardRef(SAe);const TE=b.createContext(null);var CAe=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,a=t.indicator,o=a===void 0?{}:a,s=o.size,l=o.align,c=l===void 0?"center":l,u=b.useState(),f=he(u,2),d=f[0],h=f[1],p=b.useRef(),g=we.useCallback(function(m){return typeof s=="function"?s(m):typeof s=="number"?s:m},[s]);function v(){bn.cancel(p.current)}return b.useEffect(function(){var m={};if(n)if(r){m.width=g(n.width);var y=i?"right":"left";c==="start"&&(m[y]=n[y]),c==="center"&&(m[y]=n[y]+n.width/2,m.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(m[y]=n[y]+n.width,m.transform="translateX(-100%)")}else m.height=g(n.height),c==="start"&&(m.top=n.top),c==="center"&&(m.top=n.top+n.height/2,m.transform="translateY(-50%)"),c==="end"&&(m.top=n.top+n.height,m.transform="translateY(-100%)");return v(),p.current=bn(function(){h(m)}),v},[n,r,i,c,g]),{style:d}},ZX={width:0,height:0,left:0,top:0};function EAe(e,t,n){return b.useMemo(function(){for(var r,i=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||ZX,o=a.left+a.width,s=0;sR?(k=P,C.current="x"):(k=M,C.current="y"),t(-k,-k)&&$.preventDefault()}var O=b.useRef(null);O.current={onTouchStart:x,onTouchMove:S,onTouchEnd:w,onWheel:E},b.useEffect(function(){function $(T){O.current.onTouchStart(T)}function P(T){O.current.onTouchMove(T)}function M(T){O.current.onTouchEnd(T)}function k(T){O.current.onWheel(T)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",k,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",M)}},[])}function tZ(e){var t=b.useState(0),n=he(t,2),r=n[0],i=n[1],a=b.useRef(0),o=b.useRef();return o.current=e,sp(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function $Ae(e){var t=b.useRef([]),n=b.useState({}),r=he(n,2),i=r[1],a=b.useRef(typeof e=="function"?e():e),o=tZ(function(){var l=a.current;t.current.forEach(function(c){l=c(l)}),t.current=[],a.current=l,i({})});function s(l){t.current.push(l),o()}return[a.current,s]}var nZ={width:0,height:0,left:0,top:0,right:0};function PAe(e,t,n,r,i,a,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,f,d;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",d=Math.abs(n)):(u="height",f="top",d=-n),b.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,p=h,g=0;gMath.floor(d+t)){p=g-1;break}}for(var m=0,y=h-1;y>=0;y-=1){var x=e.get(s[y].key)||nZ;if(x[f]=p?[0,0]:[m,p]},[e,t,r,i,a,d,l,s.map(function(h){return h.key}).join("_"),c])}function rZ(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var MAe="TABS_DQ";function iZ(e){return String(e).replace(/"/g,MAe)}function aZ(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var oZ=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return!r||r.showAdd===!1?null:b.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),sZ=b.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a,o={};return Bt(i)==="object"&&!b.isValidElement(i)?o=i:o.right=i,n==="right"&&(a=o.right),n==="left"&&(a=o.left),a?b.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),kAe=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,d=e.tabBarGutter,h=e.rtl,p=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,m=e.popupClassName,y=b.useState(!1),x=he(y,2),S=x[0],w=x[1],C=b.useState(null),E=he(C,2),O=E[0],$=E[1],P=l.icon,M=P===void 0?"More":P,k="".concat(r,"-more-popup"),T="".concat(n,"-dropdown"),R=O!==null?"".concat(k,"-").concat(O):null,A=a==null?void 0:a.dropdownAriaLabel;function N(W,q){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:q,event:W})}var L=b.createElement(lm,{onClick:function(q){var H=q.key,U=q.domEvent;g(H,U),w(!1)},prefixCls:"".concat(T,"-menu"),id:k,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[O],"aria-label":A!==void 0?A:"expanded dropdown"},i.map(function(W){var q=W.closable,H=W.disabled,U=W.closeIcon,G=W.key,K=W.label,X=aZ(q,U,f,H);return b.createElement(ib,{key:G,id:"".concat(k,"-").concat(G),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(G),disabled:H},b.createElement("span",null,K),X&&b.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(ee){ee.stopPropagation(),N(ee,G)}},U||f.removeIcon||"×"))}));function j(W){for(var q=i.filter(function(X){return!X.disabled}),H=q.findIndex(function(X){return X.key===O})||0,U=q.length,G=0;G_t?"left":"right"})}),T=he(k,2),R=T[0],A=T[1],N=QX(0,function(wt,_t){!M&&g&&g({direction:wt>_t?"top":"bottom"})}),L=he(N,2),j=L[0],F=L[1],B=b.useState([0,0]),D=he(B,2),z=D[0],W=D[1],q=b.useState([0,0]),H=he(q,2),U=H[0],G=H[1],K=b.useState([0,0]),X=he(K,2),Q=X[0],ee=X[1],ne=b.useState([0,0]),te=he(ne,2),ie=te[0],J=te[1],le=$Ae(new Map),oe=he(le,2),re=oe[0],se=oe[1],ge=EAe(x,re,U[0]),de=IE(z,M),pe=IE(U,M),ue=IE(Q,M),Se=IE(ie,M),Oe=Math.floor(de)Be?Be:wt}var He=b.useRef(null),Ue=b.useState(),ke=he(Ue,2),Ce=ke[0],Re=ke[1];function Ae(){Re(Date.now())}function $e(){He.current&&clearTimeout(He.current)}_Ae(E,function(wt,_t){function Nt(Zt,vn){Zt(function(an){var Pn=Pe(an+vn);return Pn})}return Oe?(M?Nt(A,wt):Nt(F,_t),$e(),Ae(),!0):!1}),b.useEffect(function(){return $e(),Ce&&(He.current=setTimeout(function(){Re(0)},100)),$e},[Ce]);var Ve=PAe(ge,_e,M?R:j,pe,ue,Se,ae(ae({},e),{},{tabs:x})),et=he(Ve,2),Tt=et[0],Mt=et[1],at=_n(function(){var wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,_t=ge.get(wt)||{width:0,height:0,left:0,right:0,top:0};if(M){var Nt=R;s?_t.rightR+_e&&(Nt=_t.right+_t.width-_e):_t.left<-R?Nt=-_t.left:_t.left+_t.width>-R+_e&&(Nt=-(_t.left+_t.width-_e)),F(0),A(Pe(Nt))}else{var Zt=j;_t.top<-j?Zt=-_t.top:_t.top+_t.height>-j+_e&&(Zt=-(_t.top+_t.height-_e)),A(0),F(Pe(Zt))}}),ht={};f==="top"||f==="bottom"?ht[s?"marginRight":"marginLeft"]=d:ht.marginTop=d;var Ot=x.map(function(wt,_t){var Nt=wt.key;return b.createElement(RAe,{id:i,prefixCls:y,key:Nt,tab:wt,style:_t===0?void 0:ht,closable:wt.closable,editable:c,active:Nt===o,renderWrapper:h,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(vn){p(Nt,vn)},onFocus:function(){at(Nt),Ae(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),vt=function(){return se(function(){var _t,Nt=new Map,Zt=(_t=O.current)===null||_t===void 0?void 0:_t.getBoundingClientRect();return x.forEach(function(vn){var an,Pn=vn.key,Ut=(an=O.current)===null||an===void 0?void 0:an.querySelector('[data-node-key="'.concat(iZ(Pn),'"]'));if(Ut){var ye=IAe(Ut,Zt),Ie=he(ye,4),We=Ie[0],ze=Ie[1],pt=Ie[2],mt=Ie[3];Nt.set(Pn,{width:We,height:ze,left:pt,top:mt})}}),Nt})};b.useEffect(function(){vt()},[x.map(function(wt){return wt.key}).join("_")]);var $t=tZ(function(){var wt=fm(S),_t=fm(w),Nt=fm(C);W([wt[0]-_t[0]-Nt[0],wt[1]-_t[1]-Nt[1]]);var Zt=fm(P);ee(Zt);var vn=fm($);J(vn);var an=fm(O);G([an[0]-Zt[0],an[1]-Zt[1]]),vt()}),gt=x.slice(0,Tt),st=x.slice(Mt+1),tt=[].concat(Ne(gt),Ne(st)),ot=ge.get(o),Pt=CAe({activeTabOffset:ot,horizontal:M,indicator:v,rtl:s}),Xe=Pt.style;b.useEffect(function(){at()},[o,je,Be,rZ(ot),rZ(ge),M]),b.useEffect(function(){$t()},[s]);var Je=!!tt.length,bt="".concat(y,"-nav-wrap"),Rt,Xt,Qt,Gt;return M?s?(Xt=R>0,Rt=R!==Be):(Rt=R<0,Xt=R!==je):(Qt=j<0,Gt=j!==je),b.createElement(vo,{onResize:$t},b.createElement("div",{ref:ef(t,S),role:"tablist",className:me("".concat(y,"-nav"),n),style:r,onKeyDown:function(){Ae()}},b.createElement(sZ,{ref:w,position:"left",extra:l,prefixCls:y}),b.createElement(vo,{onResize:$t},b.createElement("div",{className:me(bt,Z(Z(Z(Z({},"".concat(bt,"-ping-left"),Rt),"".concat(bt,"-ping-right"),Xt),"".concat(bt,"-ping-top"),Qt),"".concat(bt,"-ping-bottom"),Gt)),ref:E},b.createElement(vo,{onResize:$t},b.createElement("div",{ref:O,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(R,"px, ").concat(j,"px)"),transition:Ce?"none":void 0}},Ot,b.createElement(oZ,{ref:P,prefixCls:y,locale:u,editable:c,style:ae(ae({},Ot.length===0?void 0:ht),{},{visibility:Je?"hidden":null})}),b.createElement("div",{className:me("".concat(y,"-ink-bar"),Z({},"".concat(y,"-ink-bar-animated"),a.inkBar)),style:Xe}))))),b.createElement(TAe,Le({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:$,prefixCls:y,tabs:tt,className:!Je&&Te,tabMoving:!!Ce})),b.createElement(sZ,{ref:C,position:"right",extra:l,prefixCls:y})))}),cZ=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,o=e.active,s=e.tabKey,l=e.children;return b.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!o,style:i,className:me(n,o&&"".concat(n,"-active"),r),ref:t},l)}),AAe=["renderTabBar"],NAe=["label","key"],LAe=function(t){var n=t.renderTabBar,r=Vt(t,AAe),i=b.useContext(TE),a=i.tabs;if(n){var o=ae(ae({},r),{},{panes:a.map(function(s){var l=s.label,c=s.key,u=Vt(s,NAe);return b.createElement(cZ,Le({tab:l,key:c,tabKey:c},u))})});return n(o,lZ)}return b.createElement(lZ,r)},jAe=["key","forceRender","style","className","destroyInactiveTabPane"],DAe=function(t){var n=t.id,r=t.activeKey,i=t.animated,a=t.tabPosition,o=t.destroyInactiveTabPane,s=b.useContext(TE),l=s.prefixCls,c=s.tabs,u=i.tabPane,f="".concat(l,"-tabpane");return b.createElement("div",{className:me("".concat(l,"-content-holder"))},b.createElement("div",{className:me("".concat(l,"-content"),"".concat(l,"-content-").concat(a),Z({},"".concat(l,"-content-animated"),u))},c.map(function(d){var h=d.key,p=d.forceRender,g=d.style,v=d.className,m=d.destroyInactiveTabPane,y=Vt(d,jAe),x=h===r;return b.createElement(Jo,Le({key:h,visible:x,forceRender:p,removeOnLeave:!!(o||m),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(S,w){var C=S.style,E=S.className;return b.createElement(cZ,Le({},y,{prefixCls:f,id:n,tabKey:h,animated:u,active:x,style:ae(ae({},g),C),className:me(v,E),ref:w}))})})))};function FAe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=ae({inkBar:!0},Bt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var BAe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],uZ=0,zAe=b.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,a=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,d=e.tabPosition,h=d===void 0?"top":d,p=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,m=e.locale,y=e.more,x=e.destroyInactiveTabPane,S=e.renderTabBar,w=e.onChange,C=e.onTabClick,E=e.onTabScroll,O=e.getPopupContainer,$=e.popupClassName,P=e.indicator,M=Vt(e,BAe),k=b.useMemo(function(){return(o||[]).filter(function(ie){return ie&&Bt(ie)==="object"&&"key"in ie})},[o]),T=s==="rtl",R=FAe(f),A=b.useState(!1),N=he(A,2),L=N[0],j=N[1];b.useEffect(function(){j(eE())},[]);var F=Yn(function(){var ie;return(ie=k[0])===null||ie===void 0?void 0:ie.key},{value:l,defaultValue:c}),B=he(F,2),D=B[0],z=B[1],W=b.useState(function(){return k.findIndex(function(ie){return ie.key===D})}),q=he(W,2),H=q[0],U=q[1];b.useEffect(function(){var ie=k.findIndex(function(le){return le.key===D});if(ie===-1){var J;ie=Math.max(0,Math.min(H,k.length-1)),z((J=k[ie])===null||J===void 0?void 0:J.key)}U(ie)},[k.map(function(ie){return ie.key}).join("_"),D,H]);var G=Yn(null,{value:n}),K=he(G,2),X=K[0],Q=K[1];b.useEffect(function(){n||(Q("rc-tabs-".concat(uZ)),uZ+=1)},[]);function ee(ie,J){C==null||C(ie,J);var le=ie!==D;z(ie),le&&(w==null||w(ie))}var ne={id:X,activeKey:D,animated:R,tabPosition:h,rtl:T,mobile:L},te=ae(ae({},ne),{},{editable:u,locale:m,more:y,tabBarGutter:p,onTabClick:ee,onTabScroll:E,extra:v,style:g,panes:null,getPopupContainer:O,popupClassName:$,indicator:P});return b.createElement(TE.Provider,{value:{tabs:k,prefixCls:i}},b.createElement("div",Le({ref:t,id:n,className:me(i,"".concat(i,"-").concat(h),Z(Z(Z({},"".concat(i,"-mobile"),L),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),T),a)},M),b.createElement(LAe,Le({},te,{renderTabBar:S})),b.createElement(DAe,Le({destroyInactiveTabPane:x},ne,{animated:R}))))});const HAe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function WAe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},HAe),{motionName:wl(e,"switch")})),n}var VAe=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 i=0,r=Object.getOwnPropertySymbols(e);it)}function UAe(e,t){if(e)return e;const n=da(t).map(r=>{if(b.isValidElement(r)){const{key:i,props:a}=r,o=a||{},{tab:s}=o,l=VAe(o,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return qAe(n)}const GAe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[ru(e,"slide-up"),ru(e,"slide-down")]]},KAe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${fe(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:fe(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:fe(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${fe(e.borderRadiusLG)} 0 0 ${fe(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},YAe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},er(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${fe(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Qo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${fe(e.paddingXXS)} ${fe(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},XAe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:HC},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:qC},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:WC},[`${t}-panel > ${t}-time-panel`]:{paddingTop:E},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${w} ease-out`},QK(e,$,L)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:$,borderRadius:P,boxShadow:M,transition:`margin ${w}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:A,maxWidth:N,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${ue(a)} ${o} ${T}`,li:Object.assign(Object.assign({},Qo),{borderRadius:k,paddingInline:g,paddingBlock:e.calc(p).sub(j).div(2).equal(),cursor:"pointer",transition:`all ${w}`,"+ li":{marginTop:m},"&:hover":{background:R}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${ue(e.calc(O).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},ru(e,"slide-up"),ru(e,"slide-down"),qg(e,"move-up"),qg(e,"move-down")]},KX=tr("DatePicker",e=>{const t=_n(hb(e),dAe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[fAe(t),mAe(t),vAe(t),gAe(t),lAe(t),F1(e,{focusElCls:`${e.componentCls}-focused`})]},pAe);var yAe={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"},bAe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:yAe}))},xAe=b.forwardRef(bAe);const ME=b.createContext(null);var SAe=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,a=t.indicator,o=a===void 0?{}:a,s=o.size,l=o.align,c=l===void 0?"center":l,u=b.useState(),f=he(u,2),d=f[0],h=f[1],p=b.useRef(),v=we.useCallback(function(m){return typeof s=="function"?s(m):typeof s=="number"?s:m},[s]);function g(){Sn.cancel(p.current)}return b.useEffect(function(){var m={};if(n)if(r){m.width=v(n.width);var y=i?"right":"left";c==="start"&&(m[y]=n[y]),c==="center"&&(m[y]=n[y]+n.width/2,m.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(m[y]=n[y]+n.width,m.transform="translateX(-100%)")}else m.height=v(n.height),c==="start"&&(m.top=n.top),c==="center"&&(m.top=n.top+n.height/2,m.transform="translateY(-50%)"),c==="end"&&(m.top=n.top+n.height,m.transform="translateY(-100%)");return g(),p.current=Sn(function(){h(m)}),g},[n,r,i,c,v]),{style:d}},YX={width:0,height:0,left:0,top:0};function wAe(e,t,n){return b.useMemo(function(){for(var r,i=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||YX,o=a.left+a.width,s=0;sR?(k=P,C.current="x"):(k=M,C.current="y"),t(-k,-k)&&$.preventDefault()}var O=b.useRef(null);O.current={onTouchStart:x,onTouchMove:S,onTouchEnd:w,onWheel:E},b.useEffect(function(){function $(T){O.current.onTouchStart(T)}function P(T){O.current.onTouchMove(T)}function M(T){O.current.onTouchEnd(T)}function k(T){O.current.onWheel(T)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",k,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",M)}},[])}function JX(e){var t=b.useState(0),n=he(t,2),r=n[0],i=n[1],a=b.useRef(0),o=b.useRef();return o.current=e,lp(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function OAe(e){var t=b.useRef([]),n=b.useState({}),r=he(n,2),i=r[1],a=b.useRef(typeof e=="function"?e():e),o=JX(function(){var l=a.current;t.current.forEach(function(c){l=c(l)}),t.current=[],a.current=l,i({})});function s(l){t.current.push(l),o()}return[a.current,s]}var eZ={width:0,height:0,left:0,top:0,right:0};function _Ae(e,t,n,r,i,a,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,f,d;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",d=Math.abs(n)):(u="height",f="top",d=-n),b.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,p=h,v=0;vMath.floor(d+t)){p=v-1;break}}for(var m=0,y=h-1;y>=0;y-=1){var x=e.get(s[y].key)||eZ;if(x[f]=p?[0,0]:[m,p]},[e,t,r,i,a,d,l,s.map(function(h){return h.key}).join("_"),c])}function tZ(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var $Ae="TABS_DQ";function nZ(e){return String(e).replace(/"/g,$Ae)}function rZ(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var iZ=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return!r||r.showAdd===!1?null:b.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),aZ=b.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a,o={};return Bt(i)==="object"&&!b.isValidElement(i)?o=i:o.right=i,n==="right"&&(a=o.right),n==="left"&&(a=o.left),a?b.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),PAe=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,d=e.tabBarGutter,h=e.rtl,p=e.removeAriaLabel,v=e.onTabClick,g=e.getPopupContainer,m=e.popupClassName,y=b.useState(!1),x=he(y,2),S=x[0],w=x[1],C=b.useState(null),E=he(C,2),O=E[0],$=E[1],P=l.icon,M=P===void 0?"More":P,k="".concat(r,"-more-popup"),T="".concat(n,"-dropdown"),R=O!==null?"".concat(k,"-").concat(O):null,A=a==null?void 0:a.dropdownAriaLabel;function N(W,q){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:q,event:W})}var L=b.createElement(cm,{onClick:function(q){var H=q.key,U=q.domEvent;v(H,U),w(!1)},prefixCls:"".concat(T,"-menu"),id:k,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[O],"aria-label":A!==void 0?A:"expanded dropdown"},i.map(function(W){var q=W.closable,H=W.disabled,U=W.closeIcon,G=W.key,K=W.label,X=rZ(q,U,f,H);return b.createElement(ib,{key:G,id:"".concat(k,"-").concat(G),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(G),disabled:H},b.createElement("span",null,K),X&&b.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(ee){ee.stopPropagation(),N(ee,G)}},U||f.removeIcon||"×"))}));function j(W){for(var q=i.filter(function(X){return!X.disabled}),H=q.findIndex(function(X){return X.key===O})||0,U=q.length,G=0;G$t?"left":"right"})}),T=he(k,2),R=T[0],A=T[1],N=XX(0,function(St,$t){!M&&v&&v({direction:St>$t?"top":"bottom"})}),L=he(N,2),j=L[0],F=L[1],B=b.useState([0,0]),D=he(B,2),z=D[0],W=D[1],q=b.useState([0,0]),H=he(q,2),U=H[0],G=H[1],K=b.useState([0,0]),X=he(K,2),Q=X[0],ee=X[1],ne=b.useState([0,0]),te=he(ne,2),ie=te[0],J=te[1],le=OAe(new Map),oe=he(le,2),re=oe[0],se=oe[1],ge=wAe(x,re,U[0]),de=TE(z,M),pe=TE(U,M),fe=TE(Q,M),xe=TE(ie,M),Oe=Math.floor(de)Be?Be:St}var ze=b.useRef(null),Ue=b.useState(),ke=he(Ue,2),Ee=ke[0],Ie=ke[1];function Ae(){Ie(Date.now())}function $e(){ze.current&&clearTimeout(ze.current)}EAe(E,function(St,$t){function Nt(Zt,gn){Zt(function(an){var Mn=Pe(an+gn);return Mn})}return Oe?(M?Nt(A,St):Nt(F,$t),$e(),Ae(),!0):!1}),b.useEffect(function(){return $e(),Ee&&(ze.current=setTimeout(function(){Ie(0)},100)),$e},[Ee]);var He=_Ae(ge,_e,M?R:j,pe,fe,xe,ae(ae({},e),{},{tabs:x})),ot=he(He,2),Ot=ot[0],Wt=ot[1],et=On(function(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,$t=ge.get(St)||{width:0,height:0,left:0,right:0,top:0};if(M){var Nt=R;s?$t.rightR+_e&&(Nt=$t.right+$t.width-_e):$t.left<-R?Nt=-$t.left:$t.left+$t.width>-R+_e&&(Nt=-($t.left+$t.width-_e)),F(0),A(Pe(Nt))}else{var Zt=j;$t.top<-j?Zt=-$t.top:$t.top+$t.height>-j+_e&&(Zt=-($t.top+$t.height-_e)),A(0),F(Pe(Zt))}}),ht={};f==="top"||f==="bottom"?ht[s?"marginRight":"marginLeft"]=d:ht.marginTop=d;var Et=x.map(function(St,$t){var Nt=St.key;return b.createElement(kAe,{id:i,prefixCls:y,key:Nt,tab:St,style:$t===0?void 0:ht,closable:St.closable,editable:c,active:Nt===o,renderWrapper:h,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(gn){p(Nt,gn)},onFocus:function(){et(Nt),Ae(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),gt=function(){return se(function(){var $t,Nt=new Map,Zt=($t=O.current)===null||$t===void 0?void 0:$t.getBoundingClientRect();return x.forEach(function(gn){var an,Mn=gn.key,Vt=(an=O.current)===null||an===void 0?void 0:an.querySelector('[data-node-key="'.concat(nZ(Mn),'"]'));if(Vt){var ye=TAe(Vt,Zt),Re=he(ye,4),Xe=Re[0],Ge=Re[1],tt=Re[2],vt=Re[3];Nt.set(Mn,{width:Xe,height:Ge,left:tt,top:vt})}}),Nt})};b.useEffect(function(){gt()},[x.map(function(St){return St.key}).join("_")]);var Pt=JX(function(){var St=dm(S),$t=dm(w),Nt=dm(C);W([St[0]-$t[0]-Nt[0],St[1]-$t[1]-Nt[1]]);var Zt=dm(P);ee(Zt);var gn=dm($);J(gn);var an=dm(O);G([an[0]-Zt[0],an[1]-Zt[1]]),gt()}),wt=x.slice(0,Ot),st=x.slice(Wt+1),nt=[].concat(Ne(wt),Ne(st)),lt=ge.get(o),Mt=SAe({activeTabOffset:lt,horizontal:M,indicator:g,rtl:s}),Ye=Mt.style;b.useEffect(function(){et()},[o,Fe,Be,tZ(lt),tZ(ge),M]),b.useEffect(function(){Pt()},[s]);var Je=!!nt.length,mt="".concat(y,"-nav-wrap"),Tt,Xt,Jt,Gt;return M?s?(Xt=R>0,Tt=R!==Be):(Tt=R<0,Xt=R!==Fe):(Jt=j<0,Gt=j!==Fe),b.createElement(vo,{onResize:Pt},b.createElement("div",{ref:ef(t,S),role:"tablist",className:me("".concat(y,"-nav"),n),style:r,onKeyDown:function(){Ae()}},b.createElement(aZ,{ref:w,position:"left",extra:l,prefixCls:y}),b.createElement(vo,{onResize:Pt},b.createElement("div",{className:me(mt,Z(Z(Z(Z({},"".concat(mt,"-ping-left"),Tt),"".concat(mt,"-ping-right"),Xt),"".concat(mt,"-ping-top"),Jt),"".concat(mt,"-ping-bottom"),Gt)),ref:E},b.createElement(vo,{onResize:Pt},b.createElement("div",{ref:O,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(R,"px, ").concat(j,"px)"),transition:Ee?"none":void 0}},Et,b.createElement(iZ,{ref:P,prefixCls:y,locale:u,editable:c,style:ae(ae({},Et.length===0?void 0:ht),{},{visibility:Je?"hidden":null})}),b.createElement("div",{className:me("".concat(y,"-ink-bar"),Z({},"".concat(y,"-ink-bar-animated"),a.inkBar)),style:Ye}))))),b.createElement(MAe,Le({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:$,prefixCls:y,tabs:nt,className:!Je&&Te,tabMoving:!!Ee})),b.createElement(aZ,{ref:C,position:"right",extra:l,prefixCls:y})))}),sZ=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,o=e.active,s=e.tabKey,l=e.children;return b.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!o,style:i,className:me(n,o&&"".concat(n,"-active"),r),ref:t},l)}),RAe=["renderTabBar"],IAe=["label","key"],AAe=function(t){var n=t.renderTabBar,r=qt(t,RAe),i=b.useContext(ME),a=i.tabs;if(n){var o=ae(ae({},r),{},{panes:a.map(function(s){var l=s.label,c=s.key,u=qt(s,IAe);return b.createElement(sZ,Le({tab:l,key:c,tabKey:c},u))})});return n(o,oZ)}return b.createElement(oZ,r)},NAe=["key","forceRender","style","className","destroyInactiveTabPane"],LAe=function(t){var n=t.id,r=t.activeKey,i=t.animated,a=t.tabPosition,o=t.destroyInactiveTabPane,s=b.useContext(ME),l=s.prefixCls,c=s.tabs,u=i.tabPane,f="".concat(l,"-tabpane");return b.createElement("div",{className:me("".concat(l,"-content-holder"))},b.createElement("div",{className:me("".concat(l,"-content"),"".concat(l,"-content-").concat(a),Z({},"".concat(l,"-content-animated"),u))},c.map(function(d){var h=d.key,p=d.forceRender,v=d.style,g=d.className,m=d.destroyInactiveTabPane,y=qt(d,NAe),x=h===r;return b.createElement(Jo,Le({key:h,visible:x,forceRender:p,removeOnLeave:!!(o||m),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(S,w){var C=S.style,E=S.className;return b.createElement(sZ,Le({},y,{prefixCls:f,id:n,tabKey:h,animated:u,active:x,style:ae(ae({},v),C),className:me(g,E),ref:w}))})})))};function jAe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=ae({inkBar:!0},Bt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var DAe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],lZ=0,FAe=b.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,a=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,d=e.tabPosition,h=d===void 0?"top":d,p=e.tabBarGutter,v=e.tabBarStyle,g=e.tabBarExtraContent,m=e.locale,y=e.more,x=e.destroyInactiveTabPane,S=e.renderTabBar,w=e.onChange,C=e.onTabClick,E=e.onTabScroll,O=e.getPopupContainer,$=e.popupClassName,P=e.indicator,M=qt(e,DAe),k=b.useMemo(function(){return(o||[]).filter(function(ie){return ie&&Bt(ie)==="object"&&"key"in ie})},[o]),T=s==="rtl",R=jAe(f),A=b.useState(!1),N=he(A,2),L=N[0],j=N[1];b.useEffect(function(){j(QC())},[]);var F=Yn(function(){var ie;return(ie=k[0])===null||ie===void 0?void 0:ie.key},{value:l,defaultValue:c}),B=he(F,2),D=B[0],z=B[1],W=b.useState(function(){return k.findIndex(function(ie){return ie.key===D})}),q=he(W,2),H=q[0],U=q[1];b.useEffect(function(){var ie=k.findIndex(function(le){return le.key===D});if(ie===-1){var J;ie=Math.max(0,Math.min(H,k.length-1)),z((J=k[ie])===null||J===void 0?void 0:J.key)}U(ie)},[k.map(function(ie){return ie.key}).join("_"),D,H]);var G=Yn(null,{value:n}),K=he(G,2),X=K[0],Q=K[1];b.useEffect(function(){n||(Q("rc-tabs-".concat(lZ)),lZ+=1)},[]);function ee(ie,J){C==null||C(ie,J);var le=ie!==D;z(ie),le&&(w==null||w(ie))}var ne={id:X,activeKey:D,animated:R,tabPosition:h,rtl:T,mobile:L},te=ae(ae({},ne),{},{editable:u,locale:m,more:y,tabBarGutter:p,onTabClick:ee,onTabScroll:E,extra:g,style:v,panes:null,getPopupContainer:O,popupClassName:$,indicator:P});return b.createElement(ME.Provider,{value:{tabs:k,prefixCls:i}},b.createElement("div",Le({ref:t,id:n,className:me(i,"".concat(i,"-").concat(h),Z(Z(Z({},"".concat(i,"-mobile"),L),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),T),a)},M),b.createElement(AAe,Le({},te,{renderTabBar:S})),b.createElement(LAe,Le({destroyInactiveTabPane:x},ne,{animated:R}))))});const BAe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function zAe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},BAe),{motionName:wl(e,"switch")})),n}var HAe=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 i=0,r=Object.getOwnPropertySymbols(e);it)}function VAe(e,t){if(e)return e;const n=da(t).map(r=>{if(b.isValidElement(r)){const{key:i,props:a}=r,o=a||{},{tab:s}=o,l=HAe(o,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return WAe(n)}const qAe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[ru(e,"slide-up"),ru(e,"slide-down")]]},UAe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ue(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ue(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ue(e.borderRadiusLG)} ${ue(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ue(e.borderRadiusLG)} ${ue(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ue(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ue(e.borderRadiusLG)} 0 0 ${ue(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ue(e.borderRadiusLG)} ${ue(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},GAe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},er(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${ue(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Qo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ue(e.paddingXXS)} ${ue(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},KAe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ue(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, 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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${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:fe(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${fe(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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ZAe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${fe(e.borderRadius)} ${fe(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${fe(e.borderRadius)} ${fe(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${fe(e.borderRadius)} ${fe(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${fe(e.borderRadius)} 0 0 ${fe(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},QAe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},nu(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},JAe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=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:fe(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:fe(e.marginXS)},marginLeft:{_skip_check_:!0,value:fe(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},eNe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:fe(e.paddingXS),background:"transparent",border:`${fe(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},nu(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),QAe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},tNe=tr("Tabs",e=>{const t=$n(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${fe(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${fe(e.horizontalItemGutter)}`});return[ZAe(t),JAe(t),XAe(t),YAe(t),KAe(t),eNe(t),GAe(t)]},e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),nNe=()=>null;var rNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l,c,u,f;const{type:d,className:h,rootClassName:p,size:g,onEdit:v,hideAdd:m,centered:y,addIcon:x,removeIcon:S,moreIcon:w,more:C,popupClassName:E,children:O,items:$,animated:P,style:M,indicatorSize:k,indicator:T}=e,R=rNe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:A}=R,{direction:N,tabs:L,getPrefixCls:j,getPopupContainer:F}=b.useContext(Lt),B=j("tabs",A),D=Ti(B),[z,W,q]=tNe(B,D);let H;d==="editable-card"&&(H={onEdit:(ne,te)=>{let{key:ie,event:J}=te;v==null||v(ne==="add"?J:ie,ne)},removeIcon:(t=S!=null?S:L==null?void 0:L.removeIcon)!==null&&t!==void 0?t:b.createElement(Pd,null),addIcon:(x!=null?x:L==null?void 0:L.addIcon)||b.createElement(wAe,null),showAdd:m!==!0});const U=j(),G=ja(g),K=UAe($,O),X=WAe(B,P),Q=Object.assign(Object.assign({},L==null?void 0:L.style),M),ee={align:(n=T==null?void 0:T.align)!==null&&n!==void 0?n:(r=L==null?void 0:L.indicator)===null||r===void 0?void 0:r.align,size:(s=(a=(i=T==null?void 0:T.size)!==null&&i!==void 0?i:k)!==null&&a!==void 0?a:(o=L==null?void 0:L.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:L==null?void 0:L.indicatorSize};return z(b.createElement(zAe,Object.assign({direction:N,getPopupContainer:F},R,{items:K,className:me({[`${B}-${G}`]:G,[`${B}-card`]:["card","editable-card"].includes(d),[`${B}-editable-card`]:d==="editable-card",[`${B}-centered`]:y},L==null?void 0:L.className,h,p,W,q,D),popupClassName:me(E,W,q,D),style:Q,editable:H,more:Object.assign({icon:(f=(u=(c=(l=L==null?void 0:L.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:L==null?void 0:L.moreIcon)!==null&&u!==void 0?u:w)!==null&&f!==void 0?f:b.createElement(RI,null),transitionName:`${U}-slide-up`},C),prefixCls:B,animated:X,indicator:ee})))};fZ.TabPane=nNe;var iNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=iNe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=b.useContext(Lt),o=a("card",t),s=me(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return b.createElement("div",Object.assign({},i,{className:s}))},aNe=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:i,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${fe(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)} 0 0`},bc()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Qo),{[` + > 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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${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:ue(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ue(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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},YAe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ue(e.borderRadius)} ${ue(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ue(e.borderRadius)} ${ue(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ue(e.borderRadius)} ${ue(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ue(e.borderRadius)} 0 0 ${ue(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},XAe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},nu(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},ZAe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=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:ue(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ue(e.marginXS)},marginLeft:{_skip_check_:!0,value:ue(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},QAe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:ue(e.paddingXS),background:"transparent",border:`${ue(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${ue(e.borderRadiusLG)} ${ue(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},nu(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),XAe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},JAe=tr("Tabs",e=>{const t=_n(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ue(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ue(e.horizontalItemGutter)}`});return[YAe(t),ZAe(t),KAe(t),GAe(t),UAe(t),QAe(t),qAe(t)]},e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),eNe=()=>null;var tNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l,c,u,f;const{type:d,className:h,rootClassName:p,size:v,onEdit:g,hideAdd:m,centered:y,addIcon:x,removeIcon:S,moreIcon:w,more:C,popupClassName:E,children:O,items:$,animated:P,style:M,indicatorSize:k,indicator:T}=e,R=tNe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:A}=R,{direction:N,tabs:L,getPrefixCls:j,getPopupContainer:F}=b.useContext(At),B=j("tabs",A),D=Ti(B),[z,W,q]=JAe(B,D);let H;d==="editable-card"&&(H={onEdit:(ne,te)=>{let{key:ie,event:J}=te;g==null||g(ne==="add"?J:ie,ne)},removeIcon:(t=S!=null?S:L==null?void 0:L.removeIcon)!==null&&t!==void 0?t:b.createElement(Md,null),addIcon:(x!=null?x:L==null?void 0:L.addIcon)||b.createElement(xAe,null),showAdd:m!==!0});const U=j(),G=ja(v),K=VAe($,O),X=zAe(B,P),Q=Object.assign(Object.assign({},L==null?void 0:L.style),M),ee={align:(n=T==null?void 0:T.align)!==null&&n!==void 0?n:(r=L==null?void 0:L.indicator)===null||r===void 0?void 0:r.align,size:(s=(a=(i=T==null?void 0:T.size)!==null&&i!==void 0?i:k)!==null&&a!==void 0?a:(o=L==null?void 0:L.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:L==null?void 0:L.indicatorSize};return z(b.createElement(FAe,Object.assign({direction:N,getPopupContainer:F},R,{items:K,className:me({[`${B}-${G}`]:G,[`${B}-card`]:["card","editable-card"].includes(d),[`${B}-editable-card`]:d==="editable-card",[`${B}-centered`]:y},L==null?void 0:L.className,h,p,W,q,D),popupClassName:me(E,W,q,D),style:Q,editable:H,more:Object.assign({icon:(f=(u=(c=(l=L==null?void 0:L.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:L==null?void 0:L.moreIcon)!==null&&u!==void 0?u:w)!==null&&f!==void 0?f:b.createElement(PI,null),transitionName:`${U}-slide-up`},C),prefixCls:B,animated:X,indicator:ee})))};cZ.TabPane=eNe;var nNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=nNe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=b.useContext(At),o=a("card",t),s=me(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return b.createElement("div",Object.assign({},i,{className:s}))},rNe=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:i,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ue(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ue(e.borderRadiusLG)} ${ue(e.borderRadiusLG)} 0 0`},bc()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Qo),{[` > ${n}-typography, > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},oNe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` - ${fe(i)} 0 0 0 ${n}, - 0 ${fe(i)} 0 0 ${n}, - ${fe(i)} ${fe(i)} 0 0 ${n}, - ${fe(i)} 0 0 0 ${n} inset, - 0 ${fe(i)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},sNe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${fe(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)}`},bc()),{"& > 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.colorTextDescription,lineHeight:fe(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:fe(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${fe(e.lineWidth)} ${e.lineType} ${a}`}}})},lNe=e=>Object.assign(Object.assign({margin:`${fe(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},bc()),{"&-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},Qo),"&-description":{color:e.colorTextDescription}}),cNe=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${fe(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${fe(e.padding)} ${fe(n)}`}}},uNe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},fNe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},er(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:aNe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:o,borderRadius:`0 0 ${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)}`},bc()),[`${t}-grid`]:oNe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:sNe(e),[`${t}-meta`]:lNe(e)}),[`${t}-bordered`]:{border:`${fe(e.lineWidth)} ${e.lineType} ${i}`,[`${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:`${fe(e.borderRadiusLG)} ${fe(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`]:cNe(e),[`${t}-loading`]:uNe(e),[`${t}-rtl`]:{direction:"rtl"}}},dNe=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${fe(n)}`,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"}}}}},hNe=tr("Card",e=>{const t=$n(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[fNe(t),dNe(t)]},e=>({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}));var hZ=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return b.createElement("ul",{className:t,style:r},n.map((i,a)=>{const o=`action-${a}`;return b.createElement("li",{style:{width:`${100/n.length}%`},key:o},b.createElement("span",null,i))}))},vNe=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:d,type:h,cover:p,actions:g,tabList:v,children:m,activeTabKey:y,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:w,tabProps:C={},classNames:E,styles:O}=e,$=hZ(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:P,direction:M,card:k}=b.useContext(Lt),T=re=>{var se;(se=e.onTabChange)===null||se===void 0||se.call(e,re)},R=re=>{var se;return me((se=k==null?void 0:k.classNames)===null||se===void 0?void 0:se[re],E==null?void 0:E[re])},A=re=>{var se;return Object.assign(Object.assign({},(se=k==null?void 0:k.styles)===null||se===void 0?void 0:se[re]),O==null?void 0:O[re])},N=b.useMemo(()=>{let re=!1;return b.Children.forEach(m,se=>{(se==null?void 0:se.type)===dZ&&(re=!0)}),re},[m]),L=P("card",n),[j,F,B]=hNe(L),D=b.createElement(Td,{loading:!0,active:!0,paragraph:{rows:4},title:!1},m),z=y!==void 0,W=Object.assign(Object.assign({},C),{[z?"activeKey":"defaultActiveKey"]:z?y:x,tabBarExtraContent:S});let q;const H=ja(d),U=!H||H==="default"?"large":H,G=v?b.createElement(fZ,Object.assign({size:U},W,{className:`${L}-head-tabs`,onChange:T,items:v.map(re=>{var{tab:se}=re,ge=hZ(re,["tab"]);return Object.assign({label:se},ge)})})):null;if(c||o||G){const re=me(`${L}-head`,R("header")),se=me(`${L}-head-title`,R("title")),ge=me(`${L}-extra`,R("extra")),de=Object.assign(Object.assign({},s),A("header"));q=b.createElement("div",{className:re,style:de},b.createElement("div",{className:`${L}-head-wrapper`},c&&b.createElement("div",{className:se,style:A("title")},c),o&&b.createElement("div",{className:ge,style:A("extra")},o)),G)}const K=me(`${L}-cover`,R("cover")),X=p?b.createElement("div",{className:K,style:A("cover")},p):null,Q=me(`${L}-body`,R("body")),ee=Object.assign(Object.assign({},l),A("body")),ne=b.createElement("div",{className:Q,style:ee},u?D:m),te=me(`${L}-actions`,R("actions")),ie=g!=null&&g.length?b.createElement(pNe,{actionClasses:te,actionStyle:A("actions"),actions:g}):null,J=Or($,["onTabChange"]),le=me(L,k==null?void 0:k.className,{[`${L}-loading`]:u,[`${L}-bordered`]:f,[`${L}-hoverable`]:w,[`${L}-contain-grid`]:N,[`${L}-contain-tabs`]:v==null?void 0:v.length,[`${L}-${H}`]:H,[`${L}-type-${h}`]:!!h,[`${L}-rtl`]:M==="rtl"},r,i,F,B),oe=Object.assign(Object.assign({},k==null?void 0:k.style),a);return j(b.createElement("div",Object.assign({ref:t},J,{className:le,style:oe}),q,X,ne,ie))});var gNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=gNe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=b.useContext(Lt),l=s("card",t),c=me(`${l}-meta`,n),u=r?b.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?b.createElement("div",{className:`${l}-meta-title`},i):null,d=a?b.createElement("div",{className:`${l}-meta-description`},a):null,h=f||d?b.createElement("div",{className:`${l}-meta-detail`},f,d):null;return b.createElement("div",Object.assign({},o,{className:c}),u,h)},dm=vNe;dm.Grid=dZ,dm.Meta=mNe;function yNe(e,t,n){var r=n,i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,l=r.debounceMode,c=l===void 0?void 0:l,u,f=!1,d=0;function h(){u&&clearTimeout(u)}function p(v){var m=v||{},y=m.upcomingOnly,x=y===void 0?!1:y;h(),f=!x}function g(){for(var v=arguments.length,m=new Array(v),y=0;ye?s?(d=Date.now(),a||(u=setTimeout(c?C:w,e))):w():a!==!0&&(u=setTimeout(c?C:w,c===void 0?e-S:e))}return g.cancel=p,g}function bNe(e,t,n){var r={},i=r.atBegin,a=i===void 0?!1:i;return yNe(e,t,{debounceMode:a!==!1})}function bs(e,t){return e[t]}var xNe=["children"];function pZ(e,t){return"".concat(e,"-").concat(t)}function SNe(e){return e&&e.type&&e.type.isTreeNode}function gb(e,t){return e!=null?e:t}function hm(e){var t=e||{},n=t.title,r=t._title,i=t.key,a=t.children,o=n||"title";return{title:o,_title:r||[o],key:i||"key",children:a||"children"}}function vZ(e){function t(n){var r=da(n);return r.map(function(i){if(!SNe(i))return zr(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var a=i.key,o=i.props,s=o.children,l=Vt(o,xNe),c=ae({key:a},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(i){return i})}return t(e)}function r5(e,t,n){var r=hm(n),i=r._title,a=r.key,o=r.children,s=new Set(t===!0?[]:t),l=[];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(d,h){for(var p=pZ(f?f.pos:"0",h),g=gb(d[a],p),v,m=0;m1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=a||l,u={},f={},d={posEntities:u,keyEntities:f};return n&&(d=n(d)||d),wNe(e,function(h){var p=h.node,g=h.index,v=h.pos,m=h.key,y=h.parentPos,x=h.level,S=h.nodes,w={node:p,nodes:S,index:g,key:m,pos:v,level:x},C=gb(m,v);u[v]=w,f[C]=w,w.parent=u[y],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),r&&r(w,d)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),i&&i(d),d}function mb(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,a=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=bs(u,e),d={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return d}function Ma(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,d=e.active,h=e.eventKey,p=ae(ae({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:d,key:h});return"props"in p||Object.defineProperty(p,"props",{get:function(){return zr(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}function gZ(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function CNe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function ENe(e,t,n,r){for(var i=new Set(e),a=new Set,o=0;o<=n;o+=1){var s=t.get(o)||new Set;s.forEach(function(f){var d=f.key,h=f.node,p=f.children,g=p===void 0?[]:p;i.has(d)&&!r(h)&&g.filter(function(v){return!r(v.node)}).forEach(function(v){i.add(v.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var d=f.parent,h=f.node;if(!(r(h)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(d.key);return}var p=!0,g=!1;(d.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var m=v.key,y=i.has(m);p&&!y&&(p=!1),!g&&(y||a.has(m))&&(g=!0)}),p&&i.add(d.key),g&&a.add(d.key),l.add(d.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(gZ(a,i))}}function ONe(e,t,n,r,i){for(var a=new Set(e),o=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(d){var h=d.key,p=d.node,g=d.children,v=g===void 0?[]:g;!a.has(h)&&!o.has(h)&&!i(p)&&v.filter(function(m){return!i(m.node)}).forEach(function(m){a.delete(m.key)})})}o=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(d){var h=d.parent,p=d.node;if(!(i(p)||!d.parent||c.has(d.parent.key))){if(i(d.parent.node)){c.add(h.key);return}var g=!0,v=!1;(h.children||[]).filter(function(m){return!i(m.node)}).forEach(function(m){var y=m.key,x=a.has(y);g&&!x&&(g=!1),!v&&(x||o.has(y))&&(v=!0)}),g||a.delete(h.key),v&&o.add(h.key),c.add(h.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(gZ(o,a))}}function pm(e,t,n,r){var i=[],a;r?a=r:a=CNe;var o=new Set(e.filter(function(u){var f=!!bs(n,u);return f||i.push(u),f})),s=new Map,l=0;Object.keys(n).forEach(function(u){var f=n[u],d=f.level,h=s.get(d);h||(h=new Set,s.set(d,h)),h.add(f),l=Math.max(l,d)}),zr(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=ENe(o,s,l,a):c=ONe(o,t.halfCheckedKeys,s,l,a),c}const _Ne=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},er(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},er(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},er(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},_d(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${fe(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},iNe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + ${ue(i)} 0 0 0 ${n}, + 0 ${ue(i)} 0 0 ${n}, + ${ue(i)} ${ue(i)} 0 0 ${n}, + ${ue(i)} 0 0 0 ${n} inset, + 0 ${ue(i)} 0 0 ${n} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},aNe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${ue(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${ue(e.borderRadiusLG)} ${ue(e.borderRadiusLG)}`},bc()),{"& > 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.colorTextDescription,lineHeight:ue(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:ue(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ue(e.lineWidth)} ${e.lineType} ${a}`}}})},oNe=e=>Object.assign(Object.assign({margin:`${ue(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},bc()),{"&-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},Qo),"&-description":{color:e.colorTextDescription}}),sNe=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${ue(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ue(e.padding)} ${ue(n)}`}}},lNe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},cNe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},er(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:rNe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:o,borderRadius:`0 0 ${ue(e.borderRadiusLG)} ${ue(e.borderRadiusLG)}`},bc()),[`${t}-grid`]:iNe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ue(e.borderRadiusLG)} ${ue(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:aNe(e),[`${t}-meta`]:oNe(e)}),[`${t}-bordered`]:{border:`${ue(e.lineWidth)} ${e.lineType} ${i}`,[`${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:`${ue(e.borderRadiusLG)} ${ue(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`]:sNe(e),[`${t}-loading`]:lNe(e),[`${t}-rtl`]:{direction:"rtl"}}},uNe=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${ue(n)}`,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"}}}}},fNe=tr("Card",e=>{const t=_n(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[cNe(t),uNe(t)]},e=>({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}));var fZ=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return b.createElement("ul",{className:t,style:r},n.map((i,a)=>{const o=`action-${a}`;return b.createElement("li",{style:{width:`${100/n.length}%`},key:o},b.createElement("span",null,i))}))},hNe=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:d,type:h,cover:p,actions:v,tabList:g,children:m,activeTabKey:y,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:w,tabProps:C={},classNames:E,styles:O}=e,$=fZ(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:P,direction:M,card:k}=b.useContext(At),T=re=>{var se;(se=e.onTabChange)===null||se===void 0||se.call(e,re)},R=re=>{var se;return me((se=k==null?void 0:k.classNames)===null||se===void 0?void 0:se[re],E==null?void 0:E[re])},A=re=>{var se;return Object.assign(Object.assign({},(se=k==null?void 0:k.styles)===null||se===void 0?void 0:se[re]),O==null?void 0:O[re])},N=b.useMemo(()=>{let re=!1;return b.Children.forEach(m,se=>{(se==null?void 0:se.type)===uZ&&(re=!0)}),re},[m]),L=P("card",n),[j,F,B]=fNe(L),D=b.createElement(Rd,{loading:!0,active:!0,paragraph:{rows:4},title:!1},m),z=y!==void 0,W=Object.assign(Object.assign({},C),{[z?"activeKey":"defaultActiveKey"]:z?y:x,tabBarExtraContent:S});let q;const H=ja(d),U=!H||H==="default"?"large":H,G=g?b.createElement(cZ,Object.assign({size:U},W,{className:`${L}-head-tabs`,onChange:T,items:g.map(re=>{var{tab:se}=re,ge=fZ(re,["tab"]);return Object.assign({label:se},ge)})})):null;if(c||o||G){const re=me(`${L}-head`,R("header")),se=me(`${L}-head-title`,R("title")),ge=me(`${L}-extra`,R("extra")),de=Object.assign(Object.assign({},s),A("header"));q=b.createElement("div",{className:re,style:de},b.createElement("div",{className:`${L}-head-wrapper`},c&&b.createElement("div",{className:se,style:A("title")},c),o&&b.createElement("div",{className:ge,style:A("extra")},o)),G)}const K=me(`${L}-cover`,R("cover")),X=p?b.createElement("div",{className:K,style:A("cover")},p):null,Q=me(`${L}-body`,R("body")),ee=Object.assign(Object.assign({},l),A("body")),ne=b.createElement("div",{className:Q,style:ee},u?D:m),te=me(`${L}-actions`,R("actions")),ie=v!=null&&v.length?b.createElement(dNe,{actionClasses:te,actionStyle:A("actions"),actions:v}):null,J=Or($,["onTabChange"]),le=me(L,k==null?void 0:k.className,{[`${L}-loading`]:u,[`${L}-bordered`]:f,[`${L}-hoverable`]:w,[`${L}-contain-grid`]:N,[`${L}-contain-tabs`]:g==null?void 0:g.length,[`${L}-${H}`]:H,[`${L}-type-${h}`]:!!h,[`${L}-rtl`]:M==="rtl"},r,i,F,B),oe=Object.assign(Object.assign({},k==null?void 0:k.style),a);return j(b.createElement("div",Object.assign({ref:t},J,{className:le,style:oe}),q,X,ne,ie))});var pNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=pNe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=b.useContext(At),l=s("card",t),c=me(`${l}-meta`,n),u=r?b.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?b.createElement("div",{className:`${l}-meta-title`},i):null,d=a?b.createElement("div",{className:`${l}-meta-description`},a):null,h=f||d?b.createElement("div",{className:`${l}-meta-detail`},f,d):null;return b.createElement("div",Object.assign({},o,{className:c}),u,h)},hm=hNe;hm.Grid=uZ,hm.Meta=vNe;function gNe(e,t,n){var r=n,i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,l=r.debounceMode,c=l===void 0?void 0:l,u,f=!1,d=0;function h(){u&&clearTimeout(u)}function p(g){var m=g||{},y=m.upcomingOnly,x=y===void 0?!1:y;h(),f=!x}function v(){for(var g=arguments.length,m=new Array(g),y=0;ye?s?(d=Date.now(),a||(u=setTimeout(c?C:w,e))):w():a!==!0&&(u=setTimeout(c?C:w,c===void 0?e-S:e))}return v.cancel=p,v}function mNe(e,t,n){var r={},i=r.atBegin,a=i===void 0?!1:i;return gNe(e,t,{debounceMode:a!==!1})}function bs(e,t){return e[t]}var yNe=["children"];function dZ(e,t){return"".concat(e,"-").concat(t)}function bNe(e){return e&&e.type&&e.type.isTreeNode}function gb(e,t){return e!=null?e:t}function pm(e){var t=e||{},n=t.title,r=t._title,i=t.key,a=t.children,o=n||"title";return{title:o,_title:r||[o],key:i||"key",children:a||"children"}}function hZ(e){function t(n){var r=da(n);return r.map(function(i){if(!bNe(i))return zr(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var a=i.key,o=i.props,s=o.children,l=qt(o,yNe),c=ae({key:a},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(i){return i})}return t(e)}function JI(e,t,n){var r=pm(n),i=r._title,a=r.key,o=r.children,s=new Set(t===!0?[]:t),l=[];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(d,h){for(var p=dZ(f?f.pos:"0",h),v=gb(d[a],p),g,m=0;m1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=a||l,u={},f={},d={posEntities:u,keyEntities:f};return n&&(d=n(d)||d),xNe(e,function(h){var p=h.node,v=h.index,g=h.pos,m=h.key,y=h.parentPos,x=h.level,S=h.nodes,w={node:p,nodes:S,index:v,key:m,pos:g,level:x},C=gb(m,g);u[g]=w,f[C]=w,w.parent=u[y],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),r&&r(w,d)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),i&&i(d),d}function mb(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,a=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=bs(u,e),d={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return d}function Ma(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,d=e.active,h=e.eventKey,p=ae(ae({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:d,key:h});return"props"in p||Object.defineProperty(p,"props",{get:function(){return zr(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}function pZ(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function SNe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function wNe(e,t,n,r){for(var i=new Set(e),a=new Set,o=0;o<=n;o+=1){var s=t.get(o)||new Set;s.forEach(function(f){var d=f.key,h=f.node,p=f.children,v=p===void 0?[]:p;i.has(d)&&!r(h)&&v.filter(function(g){return!r(g.node)}).forEach(function(g){i.add(g.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var d=f.parent,h=f.node;if(!(r(h)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(d.key);return}var p=!0,v=!1;(d.children||[]).filter(function(g){return!r(g.node)}).forEach(function(g){var m=g.key,y=i.has(m);p&&!y&&(p=!1),!v&&(y||a.has(m))&&(v=!0)}),p&&i.add(d.key),v&&a.add(d.key),l.add(d.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(pZ(a,i))}}function CNe(e,t,n,r,i){for(var a=new Set(e),o=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(d){var h=d.key,p=d.node,v=d.children,g=v===void 0?[]:v;!a.has(h)&&!o.has(h)&&!i(p)&&g.filter(function(m){return!i(m.node)}).forEach(function(m){a.delete(m.key)})})}o=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(d){var h=d.parent,p=d.node;if(!(i(p)||!d.parent||c.has(d.parent.key))){if(i(d.parent.node)){c.add(h.key);return}var v=!0,g=!1;(h.children||[]).filter(function(m){return!i(m.node)}).forEach(function(m){var y=m.key,x=a.has(y);v&&!x&&(v=!1),!g&&(x||o.has(y))&&(g=!0)}),v||a.delete(h.key),g&&o.add(h.key),c.add(h.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(pZ(o,a))}}function vm(e,t,n,r){var i=[],a;r?a=r:a=SNe;var o=new Set(e.filter(function(u){var f=!!bs(n,u);return f||i.push(u),f})),s=new Map,l=0;Object.keys(n).forEach(function(u){var f=n[u],d=f.level,h=s.get(d);h||(h=new Set,s.set(d,h)),h.add(f),l=Math.max(l,d)}),zr(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=wNe(o,s,l,a):c=CNe(o,t.halfCheckedKeys,s,l,a),c}const ENe=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},er(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},er(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},er(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},$d(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ue(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function mZ(e,t){const n=$n(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[_Ne(n)]}const yZ=tr("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[mZ(n,e)]}),bZ=we.createContext(null);var $Ne=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,rootClassName:a,children:o,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:d}=e,h=$Ne(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:p,direction:g,checkbox:v}=b.useContext(Lt),m=b.useContext(bZ),{isFormItemInput:y}=b.useContext(Fa),x=b.useContext(mo),S=(n=(m==null?void 0:m.disabled)||d)!==null&&n!==void 0?n:x,w=b.useRef(h.value),C=b.useRef(null),E=po(t,C);b.useEffect(()=>{m==null||m.registerValue(h.value)},[]),b.useEffect(()=>{if(!f)return h.value!==w.current&&(m==null||m.cancelValue(w.current),m==null||m.registerValue(h.value),w.current=h.value),()=>m==null?void 0:m.cancelValue(h.value)},[h.value]),b.useEffect(()=>{var j;!((j=C.current)===null||j===void 0)&&j.input&&(C.current.input.indeterminate=s)},[s]);const O=p("checkbox",r),$=Ti(O),[P,M,k]=yZ(O,$),T=Object.assign({},h);m&&!f&&(T.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),m.toggleOption&&m.toggleOption({label:o,value:h.value})},T.name=m.name,T.checked=m.value.includes(h.value));const R=me(`${O}-wrapper`,{[`${O}-rtl`]:g==="rtl",[`${O}-wrapper-checked`]:T.checked,[`${O}-wrapper-disabled`]:S,[`${O}-wrapper-in-form-item`]:y},v==null?void 0:v.className,i,a,k,$,M),A=me({[`${O}-indeterminate`]:s},BC,M),[N,L]=FX(T.onClick);return P(b.createElement(N1,{component:"Checkbox",disabled:S},b.createElement("label",{className:R,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:N},b.createElement(DX,Object.assign({},T,{onClick:L,prefixCls:O,className:A,disabled:S,ref:E})),o!==void 0&&b.createElement("span",null,o))))},xZ=b.forwardRef(PNe);var MNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:l,onChange:c}=e,u=MNe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:d}=b.useContext(Lt),[h,p]=b.useState(u.value||n||[]),[g,v]=b.useState([]);b.useEffect(()=>{"value"in u&&p(u.value||[])},[u.value]);const m=b.useMemo(()=>i.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),[i]),y=A=>{v(N=>N.filter(L=>L!==A))},x=A=>{v(N=>[].concat(Ne(N),[A]))},S=A=>{const N=h.indexOf(A.value),L=Ne(h);N===-1?L.push(A.value):L.splice(N,1),"value"in u||p(L),c==null||c(L.filter(j=>g.includes(j)).sort((j,F)=>{const B=m.findIndex(z=>z.value===j),D=m.findIndex(z=>z.value===F);return B-D}))},w=f("checkbox",a),C=`${w}-group`,E=Ti(w),[O,$,P]=yZ(w,E),M=Or(u,["value","disabled"]),k=i.length?m.map(A=>b.createElement(xZ,{prefixCls:w,key:A.value.toString(),disabled:"disabled"in A?A.disabled:u.disabled,value:A.value,checked:h.includes(A.value),onChange:A.onChange,className:`${C}-item`,style:A.style,title:A.title,id:A.id,required:A.required},A.label)):r,T={toggleOption:S,value:h,disabled:u.disabled,name:u.name,registerValue:x,cancelValue:y},R=me(C,{[`${C}-rtl`]:d==="rtl"},o,s,P,E,$);return O(b.createElement("div",Object.assign({className:R,style:l},M,{ref:t}),b.createElement(bZ.Provider,{value:T},k)))}),Ol=xZ;Ol.Group=kNe,Ol.__ANT_CHECKBOX=!0;const SZ=b.createContext({}),TNe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},RNe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},INe=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,a={};for(let o=i;o>=0;o--)o===0?(a[`${r}${t}-${o}`]={display:"none"},a[`${r}-push-${o}`]={insetInlineStart:"auto"},a[`${r}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${o}`]={marginInlineStart:0},a[`${r}${t}-order-${o}`]={order:0}):(a[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/i*100}%`,maxWidth:`${o/i*100}%`}],a[`${r}${t}-push-${o}`]={insetInlineStart:`${o/i*100}%`},a[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/i*100}%`},a[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/i*100}%`},a[`${r}${t}-order-${o}`]={order:o});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},a5=(e,t)=>INe(e,t),ANe=(e,t,n)=>({[`@media (min-width: ${fe(t)})`]:Object.assign({},a5(e,n))}),NNe=()=>({}),LNe=()=>({}),jNe=tr("Grid",TNe,NNe),DNe=tr("Grid",e=>{const t=$n(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[RNe(t),a5(t,""),a5(t,"-xs"),Object.keys(n).map(r=>ANe(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},LNe);var FNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=b.useContext(Lt),{gutter:i,wrap:a}=b.useContext(SZ),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:f,className:d,children:h,flex:p,style:g}=e,v=FNe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=n("col",o),[y,x,S]=DNe(m),w={};let C={};BNe.forEach($=>{let P={};const M=e[$];typeof M=="number"?P.span=M:typeof M=="object"&&(P=M||{}),delete v[$],C=Object.assign(Object.assign({},C),{[`${m}-${$}-${P.span}`]:P.span!==void 0,[`${m}-${$}-order-${P.order}`]:P.order||P.order===0,[`${m}-${$}-offset-${P.offset}`]:P.offset||P.offset===0,[`${m}-${$}-push-${P.push}`]:P.push||P.push===0,[`${m}-${$}-pull-${P.pull}`]:P.pull||P.pull===0,[`${m}-rtl`]:r==="rtl"}),P.flex&&(C[`${m}-${$}-flex`]=!0,w[`--${m}-${$}-flex`]=wZ(P.flex))});const E=me(m,{[`${m}-${s}`]:s!==void 0,[`${m}-order-${l}`]:l,[`${m}-offset-${c}`]:c,[`${m}-push-${u}`]:u,[`${m}-pull-${f}`]:f},d,C,x,S),O={};if(i&&i[0]>0){const $=i[0]/2;O.paddingLeft=$,O.paddingRight=$}return p&&(O.flex=wZ(p),a===!1&&!O.minWidth&&(O.minWidth=0)),y(b.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},O),g),w),className:E,ref:t}),h))});var zNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{i()},[JSON.stringify(e),t]),n}const Ri=b.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:l=0,wrap:c}=e,u=zNe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:d}=b.useContext(Lt),[h,p]=b.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=b.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),m=CZ(i,g),y=CZ(r,g),x=b.useRef(l),S=QK();b.useEffect(()=>{const L=S.subscribe(j=>{v(j);const F=x.current||0;(!Array.isArray(F)&&typeof F=="object"||Array.isArray(F)&&(typeof F[0]=="object"||typeof F[1]=="object"))&&p(j)});return()=>S.unsubscribe(L)},[]);const w=()=>{const L=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((F,B)=>{if(typeof F=="object")for(let D=0;D0?P[0]/-2:void 0;T&&(k.marginLeft=T,k.marginRight=T);const[R,A]=P;k.rowGap=A;const N=b.useMemo(()=>({gutter:[R,A],wrap:c}),[R,A,c]);return E(b.createElement(SZ.Provider,{value:N},b.createElement("div",Object.assign({},u,{className:M,style:Object.assign(Object.assign({},k),o),ref:t}),s)))}),HNe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},er(e)),{borderBlockStart:`${fe(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${fe(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${fe(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${fe(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${fe(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${o} * 100%)`},"&::after":{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${o} * 100%)`},"&::after":{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${fe(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${fe(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},WNe=tr("Divider",e=>{const t=$n(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[HNe(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});var VNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:r}=b.useContext(Lt),{prefixCls:i,type:a="horizontal",orientation:o="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:f,variant:d="solid",plain:h,style:p}=e,g=VNe(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",i),[m,y,x]=WNe(v),S=!!u,w=o==="left"&&s!=null,C=o==="right"&&s!=null,E=me(v,r==null?void 0:r.className,y,x,`${v}-${a}`,{[`${v}-with-text`]:S,[`${v}-with-text-${o}`]:S,[`${v}-dashed`]:!!f,[`${v}-${d}`]:d!=="solid",[`${v}-plain`]:!!h,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:w,[`${v}-no-default-orientation-margin-right`]:C},l,c),O=b.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),$=Object.assign(Object.assign({},w&&{marginLeft:O}),C&&{marginRight:O});return m(b.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},r==null?void 0:r.style),p)},g,{role:"separator"}),u&&a!=="vertical"&&b.createElement("span",{className:`${v}-inner-text`,style:$},u)))};var qNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},UNe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:qNe}))},GNe=b.forwardRef(UNe);function o5(){return typeof BigInt=="function"}function EZ(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function _p(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),a=i[0]||"0",o=i[1]||"0";a==="0"&&o==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:"".concat(s).concat(r)}}function s5(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function $p(e){var t=String(e);if(s5(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&l5(t)?t.length-t.indexOf(".")-1:0}function AE(e){var t=String(e);if(s5(e)){if(e>Number.MAX_SAFE_INTEGER)return String(o5()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":_p("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),YNe=function(){function e(t){if(rt(this,e),Z(this,"origin",""),Z(this,"number",void 0),Z(this,"empty",void 0),EZ(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return it(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":AE(this.number):this.origin}}]),e}();function Oc(e){return o5()?new KNe(e):new YNe(e)}function NE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=_p(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(o);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Oc(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return NE(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function XNe(e){return!!(e.addonBefore||e.addonAfter)}function ZNe(e){return!!(e.prefix||e.suffix||e.allowClear)}function OZ(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function LE(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=OZ(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=OZ(t,e,r),n(i);return}n(i)}}function c5(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var u5=we.forwardRef(function(e,t){var n,r,i=e.inputElement,a=e.children,o=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.style,h=e.disabled,p=e.readOnly,g=e.focused,v=e.triggerFocus,m=e.allowClear,y=e.value,x=e.handleReset,S=e.hidden,w=e.classes,C=e.classNames,E=e.dataAttrs,O=e.styles,$=e.components,P=e.onClear,M=a!=null?a:i,k=($==null?void 0:$.affixWrapper)||"span",T=($==null?void 0:$.groupWrapper)||"span",R=($==null?void 0:$.wrapper)||"span",A=($==null?void 0:$.groupAddon)||"span",N=b.useRef(null),L=function(ie){var J;(J=N.current)!==null&&J!==void 0&&J.contains(ie.target)&&(v==null||v())},j=ZNe(e),F=b.cloneElement(M,{value:y,className:me(M.props.className,!j&&(C==null?void 0:C.variant))||null}),B=b.useRef(null);if(we.useImperativeHandle(t,function(){return{nativeElement:B.current||N.current}}),j){var D=null;if(m){var z=!h&&!p&&y,W="".concat(o,"-clear-icon"),q=Bt(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";D=we.createElement("span",{onClick:function(ie){x==null||x(ie),P==null||P()},onMouseDown:function(ie){return ie.preventDefault()},className:me(W,Z(Z({},"".concat(W,"-hidden"),!z),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var H="".concat(o,"-affix-wrapper"),U=me(H,Z(Z(Z(Z(Z({},"".concat(o,"-disabled"),h),"".concat(H,"-disabled"),h),"".concat(H,"-focused"),g),"".concat(H,"-readonly"),p),"".concat(H,"-input-with-clear-btn"),l&&m&&y),w==null?void 0:w.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),G=(l||m)&&we.createElement("span",{className:me("".concat(o,"-suffix"),C==null?void 0:C.suffix),style:O==null?void 0:O.suffix},D,l);F=we.createElement(k,Le({className:U,style:O==null?void 0:O.affixWrapper,onClick:L},E==null?void 0:E.affixWrapper,{ref:N}),s&&we.createElement("span",{className:me("".concat(o,"-prefix"),C==null?void 0:C.prefix),style:O==null?void 0:O.prefix},s),F,G)}if(XNe(e)){var K="".concat(o,"-group"),X="".concat(K,"-addon"),Q="".concat(K,"-wrapper"),ee=me("".concat(o,"-wrapper"),K,w==null?void 0:w.wrapper,C==null?void 0:C.wrapper),ne=me(Q,Z({},"".concat(Q,"-disabled"),h),w==null?void 0:w.group,C==null?void 0:C.groupWrapper);F=we.createElement(T,{className:ne,ref:B},we.createElement(R,{className:ee},c&&we.createElement(A,{className:X},c),F,u&&we.createElement(A,{className:X},u)))}return we.cloneElement(F,{className:me((n=F.props)===null||n===void 0?void 0:n.className,f)||null,style:ae(ae({},(r=F.props)===null||r===void 0?void 0:r.style),d),hidden:S})}),QNe=["show"];function _Z(e,t){return b.useMemo(function(){var n={};t&&(n.show=Bt(t)==="object"&&t.formatter?t.formatter:!!t),n=ae(ae({},n),e);var r=n,i=r.show,a=Vt(r,QNe);return ae(ae({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(o){return o.length}})},[e,t])}var JNe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],e6e=b.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,d=e.htmlSize,h=e.className,p=e.maxLength,g=e.suffix,v=e.showCount,m=e.count,y=e.type,x=y===void 0?"text":y,S=e.classes,w=e.classNames,C=e.styles,E=e.onCompositionStart,O=e.onCompositionEnd,$=Vt(e,JNe),P=b.useState(!1),M=he(P,2),k=M[0],T=M[1],R=b.useRef(!1),A=b.useRef(!1),N=b.useRef(null),L=b.useRef(null),j=function(Se){N.current&&c5(N.current,Se)},F=Yn(e.defaultValue,{value:e.value}),B=he(F,2),D=B[0],z=B[1],W=D==null?"":String(D),q=b.useState(null),H=he(q,2),U=H[0],G=H[1],K=_Z(m,v),X=K.max||p,Q=K.strategy(W),ee=!!X&&Q>X;b.useImperativeHandle(t,function(){var ue;return{focus:j,blur:function(){var Oe;(Oe=N.current)===null||Oe===void 0||Oe.blur()},setSelectionRange:function(Oe,_e,Te){var je;(je=N.current)===null||je===void 0||je.setSelectionRange(Oe,_e,Te)},select:function(){var Oe;(Oe=N.current)===null||Oe===void 0||Oe.select()},input:N.current,nativeElement:((ue=L.current)===null||ue===void 0?void 0:ue.nativeElement)||N.current}}),b.useEffect(function(){A.current&&(A.current=!1),T(function(ue){return ue&&f?!1:ue})},[f]);var ne=function(Se,Oe,_e){var Te=Oe;if(!R.current&&K.exceedFormatter&&K.max&&K.strategy(Oe)>K.max){if(Te=K.exceedFormatter(Oe,{max:K.max}),Oe!==Te){var je,Be;G([((je=N.current)===null||je===void 0?void 0:je.selectionStart)||0,((Be=N.current)===null||Be===void 0?void 0:Be.selectionEnd)||0])}}else if(_e.source==="compositionEnd")return;z(Te),N.current&&LE(N.current,Se,r,Te)};b.useEffect(function(){if(U){var ue;(ue=N.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,Ne(U))}},[U]);var te=function(Se){ne(Se,Se.target.value,{source:"change"})},ie=function(Se){R.current=!1,ne(Se,Se.currentTarget.value,{source:"compositionEnd"}),O==null||O(Se)},J=function(Se){o&&Se.key==="Enter"&&!A.current&&(A.current=!0,o(Se)),s==null||s(Se)},le=function(Se){Se.key==="Enter"&&(A.current=!1),l==null||l(Se)},oe=function(Se){T(!0),i==null||i(Se)},re=function(Se){A.current&&(A.current=!1),T(!1),a==null||a(Se)},se=function(Se){z(""),j(),N.current&&LE(N.current,Se,r)},ge=ee&&"".concat(u,"-out-of-range"),de=function(){var Se=Or(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return we.createElement("input",Le({autoComplete:n},Se,{onChange:te,onFocus:oe,onBlur:re,onKeyDown:J,onKeyUp:le,className:me(u,Z({},"".concat(u,"-disabled"),f),w==null?void 0:w.input),style:C==null?void 0:C.input,ref:N,size:d,type:x,onCompositionStart:function(_e){R.current=!0,E==null||E(_e)},onCompositionEnd:ie}))},pe=function(){var Se=Number(X)>0;if(g||K.show){var Oe=K.showFormatter?K.showFormatter({value:W,count:Q,maxLength:X}):"".concat(Q).concat(Se?" / ".concat(X):"");return we.createElement(we.Fragment,null,K.show&&we.createElement("span",{className:me("".concat(u,"-show-count-suffix"),Z({},"".concat(u,"-show-count-has-suffix"),!!g),w==null?void 0:w.count),style:ae({},C==null?void 0:C.count)},Oe),g)}return null};return we.createElement(u5,Le({},$,{prefixCls:u,className:me(h,ge),handleReset:se,value:W,focused:k,triggerFocus:j,suffix:pe(),disabled:f,classes:S,classNames:w,styles:C}),de())});function t6e(e,t){return typeof Proxy!="undefined"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var a=r[i];return typeof a=="function"?a.bind(r):a}}):e}function n6e(e,t){var n=b.useRef(null);function r(){try{var a=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(o);n.current={start:a,end:o,value:s,beforeTxt:l,afterTxt:c}}catch(u){}}function i(){if(e&&n.current&&t)try{var a=e.value,o=n.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,u=a.length;if(a.startsWith(s))u=s.length;else if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else{var f=s[c-1],d=a.indexOf(f,c-1);d!==-1&&(u=d+1)}e.setSelectionRange(u,u)}catch(h){zr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,i]}var r6e=function(){var t=b.useState(!1),n=he(t,2),r=n[0],i=n[1];return Nn(function(){i(eE())},[]),r},i6e=200,a6e=600;function o6e(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,a=e.downDisabled,o=e.onStep,s=b.useRef(),l=b.useRef([]),c=b.useRef();c.current=o;var u=function(){clearTimeout(s.current)},f=function(x,S){x.preventDefault(),u(),c.current(S);function w(){c.current(S),s.current=setTimeout(w,i6e)}s.current=setTimeout(w,a6e)};b.useEffect(function(){return function(){u(),l.current.forEach(function(y){return bn.cancel(y)})}},[]);var d=r6e();if(d)return null;var h="".concat(t,"-handler"),p=me(h,"".concat(h,"-up"),Z({},"".concat(h,"-up-disabled"),i)),g=me(h,"".concat(h,"-down"),Z({},"".concat(h,"-down-disabled"),a)),v=function(){return l.current.push(bn(u))},m={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return b.createElement("div",{className:"".concat(h,"-wrap")},b.createElement("span",Le({},m,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":i,className:p}),n||b.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),b.createElement("span",Le({},m,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:g}),r||b.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function $Z(e){var t=typeof e=="number"?AE(e):_p(e).fullStr,n=t.includes(".");return n?_p(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const s6e=function(){var e=b.useRef(0),t=function(){bn.cancel(e.current)};return b.useEffect(function(){return t},[]),function(n){t(),e.current=bn(function(){n()})}};var l6e=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],c6e=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],PZ=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},MZ=function(t){var n=Oc(t);return n.isInvalidate()?null:n},u6e=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.min,o=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,d=e.readOnly,h=e.upHandler,p=e.downHandler,g=e.keyboard,v=e.changeOnWheel,m=v===void 0?!1:v,y=e.controls,x=y===void 0?!0:y;e.classNames;var S=e.stringMode,w=e.parser,C=e.formatter,E=e.precision,O=e.decimalSeparator,$=e.onChange,P=e.onInput,M=e.onPressEnter,k=e.onStep,T=e.changeOnBlur,R=T===void 0?!0:T,A=e.domRef,N=Vt(e,l6e),L="".concat(n,"-input"),j=b.useRef(null),F=b.useState(!1),B=he(F,2),D=B[0],z=B[1],W=b.useRef(!1),q=b.useRef(!1),H=b.useRef(!1),U=b.useState(function(){return Oc(u!=null?u:c)}),G=he(U,2),K=G[0],X=G[1];function Q(at){u===void 0&&X(at)}var ee=b.useCallback(function(at,ht){if(!ht)return E>=0?E:Math.max($p(at),$p(l))},[E,l]),ne=b.useCallback(function(at){var ht=String(at);if(w)return w(ht);var Ot=ht;return O&&(Ot=Ot.replace(O,".")),Ot.replace(/[^\w.-]+/g,"")},[w,O]),te=b.useRef(""),ie=b.useCallback(function(at,ht){if(C)return C(at,{userTyping:ht,input:String(te.current)});var Ot=typeof at=="number"?AE(at):at;if(!ht){var vt=ee(Ot,ht);if(l5(Ot)&&(O||vt>=0)){var $t=O||".";Ot=NE(Ot,$t,vt)}}return Ot},[C,ee,O]),J=b.useState(function(){var at=c!=null?c:u;return K.isInvalidate()&&["string","number"].includes(Bt(at))?Number.isNaN(at)?"":at:ie(K.toString(),!1)}),le=he(J,2),oe=le[0],re=le[1];te.current=oe;function se(at,ht){re(ie(at.isInvalidate()?at.toString(!1):at.toString(!ht),ht))}var ge=b.useMemo(function(){return MZ(o)},[o,E]),de=b.useMemo(function(){return MZ(a)},[a,E]),pe=b.useMemo(function(){return!ge||!K||K.isInvalidate()?!1:ge.lessEquals(K)},[ge,K]),ue=b.useMemo(function(){return!de||!K||K.isInvalidate()?!1:K.lessEquals(de)},[de,K]),Se=n6e(j.current,D),Oe=he(Se,2),_e=Oe[0],Te=Oe[1],je=function(ht){return ge&&!ht.lessEquals(ge)?ge:de&&!de.lessEquals(ht)?de:null},Be=function(ht){return!je(ht)},Pe=function(ht,Ot){var vt=ht,$t=Be(vt)||vt.isEmpty();if(!vt.isEmpty()&&!Ot&&(vt=je(vt)||vt,$t=!0),!d&&!f&&$t){var gt=vt.toString(),st=ee(gt,Ot);return st>=0&&(vt=Oc(NE(gt,".",st)),Be(vt)||(vt=Oc(NE(gt,".",st,!0)))),vt.equals(K)||(Q(vt),$==null||$(vt.isEmpty()?null:PZ(S,vt)),u===void 0&&se(vt,Ot)),vt}return K},He=s6e(),Ue=function at(ht){if(_e(),te.current=ht,re(ht),!q.current){var Ot=ne(ht),vt=Oc(Ot);vt.isNaN()||Pe(vt,!0)}P==null||P(ht),He(function(){var $t=ht;w||($t=ht.replace(/。/g,".")),$t!==ht&&at($t)})},ke=function(){q.current=!0},Ce=function(){q.current=!1,Ue(j.current.value)},Re=function(ht){Ue(ht.target.value)},Ae=function(ht){var Ot;if(!(ht&&pe||!ht&&ue)){W.current=!1;var vt=Oc(H.current?$Z(l):l);ht||(vt=vt.negate());var $t=(K||Oc(0)).add(vt.toString()),gt=Pe($t,!1);k==null||k(PZ(S,gt),{offset:H.current?$Z(l):l,type:ht?"up":"down"}),(Ot=j.current)===null||Ot===void 0||Ot.focus()}},$e=function(ht){var Ot=Oc(ne(oe)),vt;Ot.isNaN()?vt=Pe(K,ht):vt=Pe(Ot,ht),u!==void 0?se(K,!1):vt.isNaN()||se(vt,!1)},Ve=function(){W.current=!0},et=function(ht){var Ot=ht.key,vt=ht.shiftKey;W.current=!0,H.current=vt,Ot==="Enter"&&(q.current||(W.current=!1),$e(!1),M==null||M(ht)),g!==!1&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ot)&&(Ae(Ot==="Up"||Ot==="ArrowUp"),ht.preventDefault())},Tt=function(){W.current=!1,H.current=!1};b.useEffect(function(){if(m&&D){var at=function(vt){Ae(vt.deltaY<0),vt.preventDefault()},ht=j.current;if(ht)return ht.addEventListener("wheel",at,{passive:!1}),function(){return ht.removeEventListener("wheel",at)}}});var Mt=function(){R&&$e(!1),z(!1),W.current=!1};return sp(function(){K.isInvalidate()||se(K,!1)},[E,C]),sp(function(){var at=Oc(u);X(at);var ht=Oc(ne(oe));(!at.equals(ht)||!W.current||C)&&se(at,W.current)},[u]),sp(function(){C&&Te()},[oe]),b.createElement("div",{ref:A,className:me(n,r,Z(Z(Z(Z(Z({},"".concat(n,"-focused"),D),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),d),"".concat(n,"-not-a-number"),K.isNaN()),"".concat(n,"-out-of-range"),!K.isInvalidate()&&!Be(K))),style:i,onFocus:function(){z(!0)},onBlur:Mt,onKeyDown:et,onKeyUp:Tt,onCompositionStart:ke,onCompositionEnd:Ce,onBeforeInput:Ve},x&&b.createElement(o6e,{prefixCls:n,upNode:h,downNode:p,upDisabled:pe,downDisabled:ue,onStep:Ae}),b.createElement("div",{className:"".concat(L,"-wrap")},b.createElement("input",Le({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:l},N,{ref:po(j,t),className:L,value:oe,onChange:Re,disabled:f,readOnly:d}))))}),f6e=b.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,a=i===void 0?"rc-input-number":i,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.classNames,h=Vt(e,c6e),p=b.useRef(null),g=b.useRef(null),v=b.useRef(null),m=function(x){v.current&&c5(v.current,x)};return b.useImperativeHandle(t,function(){return t6e(v.current,{focus:m,nativeElement:p.current.nativeElement||g.current})}),b.createElement(u5,{className:f,triggerFocus:m,prefixCls:a,value:o,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:p},b.createElement(u6e,Le({prefixCls:a,disabled:n,ref:v,domRef:g,className:d==null?void 0:d.input},h)))});const d6e=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},pb(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Un(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},kZ=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const a=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},h6e=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:d,paddingInlineLG:h,colorTextDescription:p,motionDurationMid:g,handleHoverColor:v,handleOpacity:m,paddingInline:y,paddingBlock:x,handleBg:S,handleActiveBg:w,colorTextDisabled:C,borderRadiusSM:E,borderRadiusLG:O,controlWidth:$,handleBorderColor:P,filledHandleBg:M,lineHeightLG:k,calc:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),vb(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:i}),YI(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${fe(n)} ${r} ${P}`}}})),ZI(e,{[`${t}-handler-wrap`]:{background:M,[`${t}-handler-down`]:{borderBlockStart:`${fe(n)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),XI(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:k,borderRadius:O,[`input${t}-input`]:{height:T(s).sub(T(n).mul(2)).equal(),padding:`${fe(d)} ${fe(h)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:E,[`input${t}-input`]:{height:T(l).sub(T(n).mul(2)).equal(),padding:`${fe(f)} ${fe(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},er(e)),YX(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:O,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},WX(e)),GX(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),{width:"100%",padding:`${fe(x)} ${fe(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),QI(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:m,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function vZ(e,t){const n=_n(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[ENe(n)]}const gZ=tr("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[vZ(n,e)]}),mZ=we.createContext(null);var ONe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,rootClassName:a,children:o,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:d}=e,h=ONe(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:p,direction:v,checkbox:g}=b.useContext(At),m=b.useContext(mZ),{isFormItemInput:y}=b.useContext(Fa),x=b.useContext(mo),S=(n=(m==null?void 0:m.disabled)||d)!==null&&n!==void 0?n:x,w=b.useRef(h.value),C=b.useRef(null),E=po(t,C);b.useEffect(()=>{m==null||m.registerValue(h.value)},[]),b.useEffect(()=>{if(!f)return h.value!==w.current&&(m==null||m.cancelValue(w.current),m==null||m.registerValue(h.value),w.current=h.value),()=>m==null?void 0:m.cancelValue(h.value)},[h.value]),b.useEffect(()=>{var j;!((j=C.current)===null||j===void 0)&&j.input&&(C.current.input.indeterminate=s)},[s]);const O=p("checkbox",r),$=Ti(O),[P,M,k]=gZ(O,$),T=Object.assign({},h);m&&!f&&(T.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),m.toggleOption&&m.toggleOption({label:o,value:h.value})},T.name=m.name,T.checked=m.value.includes(h.value));const R=me(`${O}-wrapper`,{[`${O}-rtl`]:v==="rtl",[`${O}-wrapper-checked`]:T.checked,[`${O}-wrapper-disabled`]:S,[`${O}-wrapper-in-form-item`]:y},g==null?void 0:g.className,i,a,k,$,M),A=me({[`${O}-indeterminate`]:s},FC,M),[N,L]=jX(T.onClick);return P(b.createElement(L1,{component:"Checkbox",disabled:S},b.createElement("label",{className:R,style:Object.assign(Object.assign({},g==null?void 0:g.style),l),onMouseEnter:c,onMouseLeave:u,onClick:N},b.createElement(LX,Object.assign({},T,{onClick:L,prefixCls:O,className:A,disabled:S,ref:E})),o!==void 0&&b.createElement("span",null,o))))},yZ=b.forwardRef(_Ne);var $Ne=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:l,onChange:c}=e,u=$Ne(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:d}=b.useContext(At),[h,p]=b.useState(u.value||n||[]),[v,g]=b.useState([]);b.useEffect(()=>{"value"in u&&p(u.value||[])},[u.value]);const m=b.useMemo(()=>i.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),[i]),y=A=>{g(N=>N.filter(L=>L!==A))},x=A=>{g(N=>[].concat(Ne(N),[A]))},S=A=>{const N=h.indexOf(A.value),L=Ne(h);N===-1?L.push(A.value):L.splice(N,1),"value"in u||p(L),c==null||c(L.filter(j=>v.includes(j)).sort((j,F)=>{const B=m.findIndex(z=>z.value===j),D=m.findIndex(z=>z.value===F);return B-D}))},w=f("checkbox",a),C=`${w}-group`,E=Ti(w),[O,$,P]=gZ(w,E),M=Or(u,["value","disabled"]),k=i.length?m.map(A=>b.createElement(yZ,{prefixCls:w,key:A.value.toString(),disabled:"disabled"in A?A.disabled:u.disabled,value:A.value,checked:h.includes(A.value),onChange:A.onChange,className:`${C}-item`,style:A.style,title:A.title,id:A.id,required:A.required},A.label)):r,T={toggleOption:S,value:h,disabled:u.disabled,name:u.name,registerValue:x,cancelValue:y},R=me(C,{[`${C}-rtl`]:d==="rtl"},o,s,P,E,$);return O(b.createElement("div",Object.assign({className:R,style:l},M,{ref:t}),b.createElement(mZ.Provider,{value:T},k)))}),Ol=yZ;Ol.Group=PNe,Ol.__ANT_CHECKBOX=!0;const bZ=b.createContext({}),MNe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},kNe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},TNe=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,a={};for(let o=i;o>=0;o--)o===0?(a[`${r}${t}-${o}`]={display:"none"},a[`${r}-push-${o}`]={insetInlineStart:"auto"},a[`${r}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${o}`]={marginInlineStart:0},a[`${r}${t}-order-${o}`]={order:0}):(a[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/i*100}%`,maxWidth:`${o/i*100}%`}],a[`${r}${t}-push-${o}`]={insetInlineStart:`${o/i*100}%`},a[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/i*100}%`},a[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/i*100}%`},a[`${r}${t}-order-${o}`]={order:o});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},t5=(e,t)=>TNe(e,t),RNe=(e,t,n)=>({[`@media (min-width: ${ue(t)})`]:Object.assign({},t5(e,n))}),INe=()=>({}),ANe=()=>({}),NNe=tr("Grid",MNe,INe),LNe=tr("Grid",e=>{const t=_n(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[kNe(t),t5(t,""),t5(t,"-xs"),Object.keys(n).map(r=>RNe(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},ANe);var jNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=b.useContext(At),{gutter:i,wrap:a}=b.useContext(bZ),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:f,className:d,children:h,flex:p,style:v}=e,g=jNe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=n("col",o),[y,x,S]=LNe(m),w={};let C={};DNe.forEach($=>{let P={};const M=e[$];typeof M=="number"?P.span=M:typeof M=="object"&&(P=M||{}),delete g[$],C=Object.assign(Object.assign({},C),{[`${m}-${$}-${P.span}`]:P.span!==void 0,[`${m}-${$}-order-${P.order}`]:P.order||P.order===0,[`${m}-${$}-offset-${P.offset}`]:P.offset||P.offset===0,[`${m}-${$}-push-${P.push}`]:P.push||P.push===0,[`${m}-${$}-pull-${P.pull}`]:P.pull||P.pull===0,[`${m}-rtl`]:r==="rtl"}),P.flex&&(C[`${m}-${$}-flex`]=!0,w[`--${m}-${$}-flex`]=xZ(P.flex))});const E=me(m,{[`${m}-${s}`]:s!==void 0,[`${m}-order-${l}`]:l,[`${m}-offset-${c}`]:c,[`${m}-push-${u}`]:u,[`${m}-pull-${f}`]:f},d,C,x,S),O={};if(i&&i[0]>0){const $=i[0]/2;O.paddingLeft=$,O.paddingRight=$}return p&&(O.flex=xZ(p),a===!1&&!O.minWidth&&(O.minWidth=0)),y(b.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},O),v),w),className:E,ref:t}),h))});var FNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{i()},[JSON.stringify(e),t]),n}const Ri=b.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:l=0,wrap:c}=e,u=FNe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:d}=b.useContext(At),[h,p]=b.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,g]=b.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),m=SZ(i,v),y=SZ(r,v),x=b.useRef(l),S=XK();b.useEffect(()=>{const L=S.subscribe(j=>{g(j);const F=x.current||0;(!Array.isArray(F)&&typeof F=="object"||Array.isArray(F)&&(typeof F[0]=="object"||typeof F[1]=="object"))&&p(j)});return()=>S.unsubscribe(L)},[]);const w=()=>{const L=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((F,B)=>{if(typeof F=="object")for(let D=0;D0?P[0]/-2:void 0;T&&(k.marginLeft=T,k.marginRight=T);const[R,A]=P;k.rowGap=A;const N=b.useMemo(()=>({gutter:[R,A],wrap:c}),[R,A,c]);return E(b.createElement(bZ.Provider,{value:N},b.createElement("div",Object.assign({},u,{className:M,style:Object.assign(Object.assign({},k),o),ref:t}),s)))}),BNe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},er(e)),{borderBlockStart:`${ue(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ue(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ue(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ue(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ue(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${o} * 100%)`},"&::after":{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${o} * 100%)`},"&::after":{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${ue(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${ue(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},zNe=tr("Divider",e=>{const t=_n(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[BNe(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});var HNe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:r}=b.useContext(At),{prefixCls:i,type:a="horizontal",orientation:o="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:f,variant:d="solid",plain:h,style:p}=e,v=HNe(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),g=t("divider",i),[m,y,x]=zNe(g),S=!!u,w=o==="left"&&s!=null,C=o==="right"&&s!=null,E=me(g,r==null?void 0:r.className,y,x,`${g}-${a}`,{[`${g}-with-text`]:S,[`${g}-with-text-${o}`]:S,[`${g}-dashed`]:!!f,[`${g}-${d}`]:d!=="solid",[`${g}-plain`]:!!h,[`${g}-rtl`]:n==="rtl",[`${g}-no-default-orientation-margin-left`]:w,[`${g}-no-default-orientation-margin-right`]:C},l,c),O=b.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),$=Object.assign(Object.assign({},w&&{marginLeft:O}),C&&{marginRight:O});return m(b.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},r==null?void 0:r.style),p)},v,{role:"separator"}),u&&a!=="vertical"&&b.createElement("span",{className:`${g}-inner-text`,style:$},u)))};var WNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},VNe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:WNe}))},qNe=b.forwardRef(VNe);function n5(){return typeof BigInt=="function"}function wZ(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function $p(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),a=i[0]||"0",o=i[1]||"0";a==="0"&&o==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:"".concat(s).concat(r)}}function r5(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Pp(e){var t=String(e);if(r5(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&i5(t)?t.length-t.indexOf(".")-1:0}function RE(e){var t=String(e);if(r5(e)){if(e>Number.MAX_SAFE_INTEGER)return String(n5()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":$p("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),GNe=function(){function e(t){if(it(this,e),Z(this,"origin",""),Z(this,"number",void 0),Z(this,"empty",void 0),wZ(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return at(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":RE(this.number):this.origin}}]),e}();function Oc(e){return n5()?new UNe(e):new GNe(e)}function IE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=$p(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(o);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Oc(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return IE(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function KNe(e){return!!(e.addonBefore||e.addonAfter)}function YNe(e){return!!(e.prefix||e.suffix||e.allowClear)}function CZ(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function AE(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=CZ(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=CZ(t,e,r),n(i);return}n(i)}}function a5(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var o5=we.forwardRef(function(e,t){var n,r,i=e.inputElement,a=e.children,o=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.style,h=e.disabled,p=e.readOnly,v=e.focused,g=e.triggerFocus,m=e.allowClear,y=e.value,x=e.handleReset,S=e.hidden,w=e.classes,C=e.classNames,E=e.dataAttrs,O=e.styles,$=e.components,P=e.onClear,M=a!=null?a:i,k=($==null?void 0:$.affixWrapper)||"span",T=($==null?void 0:$.groupWrapper)||"span",R=($==null?void 0:$.wrapper)||"span",A=($==null?void 0:$.groupAddon)||"span",N=b.useRef(null),L=function(ie){var J;(J=N.current)!==null&&J!==void 0&&J.contains(ie.target)&&(g==null||g())},j=YNe(e),F=b.cloneElement(M,{value:y,className:me(M.props.className,!j&&(C==null?void 0:C.variant))||null}),B=b.useRef(null);if(we.useImperativeHandle(t,function(){return{nativeElement:B.current||N.current}}),j){var D=null;if(m){var z=!h&&!p&&y,W="".concat(o,"-clear-icon"),q=Bt(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";D=we.createElement("span",{onClick:function(ie){x==null||x(ie),P==null||P()},onMouseDown:function(ie){return ie.preventDefault()},className:me(W,Z(Z({},"".concat(W,"-hidden"),!z),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var H="".concat(o,"-affix-wrapper"),U=me(H,Z(Z(Z(Z(Z({},"".concat(o,"-disabled"),h),"".concat(H,"-disabled"),h),"".concat(H,"-focused"),v),"".concat(H,"-readonly"),p),"".concat(H,"-input-with-clear-btn"),l&&m&&y),w==null?void 0:w.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),G=(l||m)&&we.createElement("span",{className:me("".concat(o,"-suffix"),C==null?void 0:C.suffix),style:O==null?void 0:O.suffix},D,l);F=we.createElement(k,Le({className:U,style:O==null?void 0:O.affixWrapper,onClick:L},E==null?void 0:E.affixWrapper,{ref:N}),s&&we.createElement("span",{className:me("".concat(o,"-prefix"),C==null?void 0:C.prefix),style:O==null?void 0:O.prefix},s),F,G)}if(KNe(e)){var K="".concat(o,"-group"),X="".concat(K,"-addon"),Q="".concat(K,"-wrapper"),ee=me("".concat(o,"-wrapper"),K,w==null?void 0:w.wrapper,C==null?void 0:C.wrapper),ne=me(Q,Z({},"".concat(Q,"-disabled"),h),w==null?void 0:w.group,C==null?void 0:C.groupWrapper);F=we.createElement(T,{className:ne,ref:B},we.createElement(R,{className:ee},c&&we.createElement(A,{className:X},c),F,u&&we.createElement(A,{className:X},u)))}return we.cloneElement(F,{className:me((n=F.props)===null||n===void 0?void 0:n.className,f)||null,style:ae(ae({},(r=F.props)===null||r===void 0?void 0:r.style),d),hidden:S})}),XNe=["show"];function EZ(e,t){return b.useMemo(function(){var n={};t&&(n.show=Bt(t)==="object"&&t.formatter?t.formatter:!!t),n=ae(ae({},n),e);var r=n,i=r.show,a=qt(r,XNe);return ae(ae({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(o){return o.length}})},[e,t])}var ZNe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],QNe=b.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,d=e.htmlSize,h=e.className,p=e.maxLength,v=e.suffix,g=e.showCount,m=e.count,y=e.type,x=y===void 0?"text":y,S=e.classes,w=e.classNames,C=e.styles,E=e.onCompositionStart,O=e.onCompositionEnd,$=qt(e,ZNe),P=b.useState(!1),M=he(P,2),k=M[0],T=M[1],R=b.useRef(!1),A=b.useRef(!1),N=b.useRef(null),L=b.useRef(null),j=function(xe){N.current&&a5(N.current,xe)},F=Yn(e.defaultValue,{value:e.value}),B=he(F,2),D=B[0],z=B[1],W=D==null?"":String(D),q=b.useState(null),H=he(q,2),U=H[0],G=H[1],K=EZ(m,g),X=K.max||p,Q=K.strategy(W),ee=!!X&&Q>X;b.useImperativeHandle(t,function(){var fe;return{focus:j,blur:function(){var Oe;(Oe=N.current)===null||Oe===void 0||Oe.blur()},setSelectionRange:function(Oe,_e,Te){var Fe;(Fe=N.current)===null||Fe===void 0||Fe.setSelectionRange(Oe,_e,Te)},select:function(){var Oe;(Oe=N.current)===null||Oe===void 0||Oe.select()},input:N.current,nativeElement:((fe=L.current)===null||fe===void 0?void 0:fe.nativeElement)||N.current}}),b.useEffect(function(){A.current&&(A.current=!1),T(function(fe){return fe&&f?!1:fe})},[f]);var ne=function(xe,Oe,_e){var Te=Oe;if(!R.current&&K.exceedFormatter&&K.max&&K.strategy(Oe)>K.max){if(Te=K.exceedFormatter(Oe,{max:K.max}),Oe!==Te){var Fe,Be;G([((Fe=N.current)===null||Fe===void 0?void 0:Fe.selectionStart)||0,((Be=N.current)===null||Be===void 0?void 0:Be.selectionEnd)||0])}}else if(_e.source==="compositionEnd")return;z(Te),N.current&&AE(N.current,xe,r,Te)};b.useEffect(function(){if(U){var fe;(fe=N.current)===null||fe===void 0||fe.setSelectionRange.apply(fe,Ne(U))}},[U]);var te=function(xe){ne(xe,xe.target.value,{source:"change"})},ie=function(xe){R.current=!1,ne(xe,xe.currentTarget.value,{source:"compositionEnd"}),O==null||O(xe)},J=function(xe){o&&xe.key==="Enter"&&!A.current&&(A.current=!0,o(xe)),s==null||s(xe)},le=function(xe){xe.key==="Enter"&&(A.current=!1),l==null||l(xe)},oe=function(xe){T(!0),i==null||i(xe)},re=function(xe){A.current&&(A.current=!1),T(!1),a==null||a(xe)},se=function(xe){z(""),j(),N.current&&AE(N.current,xe,r)},ge=ee&&"".concat(u,"-out-of-range"),de=function(){var xe=Or(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return we.createElement("input",Le({autoComplete:n},xe,{onChange:te,onFocus:oe,onBlur:re,onKeyDown:J,onKeyUp:le,className:me(u,Z({},"".concat(u,"-disabled"),f),w==null?void 0:w.input),style:C==null?void 0:C.input,ref:N,size:d,type:x,onCompositionStart:function(_e){R.current=!0,E==null||E(_e)},onCompositionEnd:ie}))},pe=function(){var xe=Number(X)>0;if(v||K.show){var Oe=K.showFormatter?K.showFormatter({value:W,count:Q,maxLength:X}):"".concat(Q).concat(xe?" / ".concat(X):"");return we.createElement(we.Fragment,null,K.show&&we.createElement("span",{className:me("".concat(u,"-show-count-suffix"),Z({},"".concat(u,"-show-count-has-suffix"),!!v),w==null?void 0:w.count),style:ae({},C==null?void 0:C.count)},Oe),v)}return null};return we.createElement(o5,Le({},$,{prefixCls:u,className:me(h,ge),handleReset:se,value:W,focused:k,triggerFocus:j,suffix:pe(),disabled:f,classes:S,classNames:w,styles:C}),de())});function JNe(e,t){return typeof Proxy!="undefined"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var a=r[i];return typeof a=="function"?a.bind(r):a}}):e}function e6e(e,t){var n=b.useRef(null);function r(){try{var a=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(o);n.current={start:a,end:o,value:s,beforeTxt:l,afterTxt:c}}catch(u){}}function i(){if(e&&n.current&&t)try{var a=e.value,o=n.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,u=a.length;if(a.startsWith(s))u=s.length;else if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else{var f=s[c-1],d=a.indexOf(f,c-1);d!==-1&&(u=d+1)}e.setSelectionRange(u,u)}catch(h){zr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,i]}var t6e=function(){var t=b.useState(!1),n=he(t,2),r=n[0],i=n[1];return Ln(function(){i(QC())},[]),r},n6e=200,r6e=600;function i6e(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,a=e.downDisabled,o=e.onStep,s=b.useRef(),l=b.useRef([]),c=b.useRef();c.current=o;var u=function(){clearTimeout(s.current)},f=function(x,S){x.preventDefault(),u(),c.current(S);function w(){c.current(S),s.current=setTimeout(w,n6e)}s.current=setTimeout(w,r6e)};b.useEffect(function(){return function(){u(),l.current.forEach(function(y){return Sn.cancel(y)})}},[]);var d=t6e();if(d)return null;var h="".concat(t,"-handler"),p=me(h,"".concat(h,"-up"),Z({},"".concat(h,"-up-disabled"),i)),v=me(h,"".concat(h,"-down"),Z({},"".concat(h,"-down-disabled"),a)),g=function(){return l.current.push(Sn(u))},m={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return b.createElement("div",{className:"".concat(h,"-wrap")},b.createElement("span",Le({},m,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":i,className:p}),n||b.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),b.createElement("span",Le({},m,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:v}),r||b.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function OZ(e){var t=typeof e=="number"?RE(e):$p(e).fullStr,n=t.includes(".");return n?$p(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const a6e=function(){var e=b.useRef(0),t=function(){Sn.cancel(e.current)};return b.useEffect(function(){return t},[]),function(n){t(),e.current=Sn(function(){n()})}};var o6e=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],s6e=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],_Z=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},$Z=function(t){var n=Oc(t);return n.isInvalidate()?null:n},l6e=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.min,o=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,d=e.readOnly,h=e.upHandler,p=e.downHandler,v=e.keyboard,g=e.changeOnWheel,m=g===void 0?!1:g,y=e.controls,x=y===void 0?!0:y;e.classNames;var S=e.stringMode,w=e.parser,C=e.formatter,E=e.precision,O=e.decimalSeparator,$=e.onChange,P=e.onInput,M=e.onPressEnter,k=e.onStep,T=e.changeOnBlur,R=T===void 0?!0:T,A=e.domRef,N=qt(e,o6e),L="".concat(n,"-input"),j=b.useRef(null),F=b.useState(!1),B=he(F,2),D=B[0],z=B[1],W=b.useRef(!1),q=b.useRef(!1),H=b.useRef(!1),U=b.useState(function(){return Oc(u!=null?u:c)}),G=he(U,2),K=G[0],X=G[1];function Q(et){u===void 0&&X(et)}var ee=b.useCallback(function(et,ht){if(!ht)return E>=0?E:Math.max(Pp(et),Pp(l))},[E,l]),ne=b.useCallback(function(et){var ht=String(et);if(w)return w(ht);var Et=ht;return O&&(Et=Et.replace(O,".")),Et.replace(/[^\w.-]+/g,"")},[w,O]),te=b.useRef(""),ie=b.useCallback(function(et,ht){if(C)return C(et,{userTyping:ht,input:String(te.current)});var Et=typeof et=="number"?RE(et):et;if(!ht){var gt=ee(Et,ht);if(i5(Et)&&(O||gt>=0)){var Pt=O||".";Et=IE(Et,Pt,gt)}}return Et},[C,ee,O]),J=b.useState(function(){var et=c!=null?c:u;return K.isInvalidate()&&["string","number"].includes(Bt(et))?Number.isNaN(et)?"":et:ie(K.toString(),!1)}),le=he(J,2),oe=le[0],re=le[1];te.current=oe;function se(et,ht){re(ie(et.isInvalidate()?et.toString(!1):et.toString(!ht),ht))}var ge=b.useMemo(function(){return $Z(o)},[o,E]),de=b.useMemo(function(){return $Z(a)},[a,E]),pe=b.useMemo(function(){return!ge||!K||K.isInvalidate()?!1:ge.lessEquals(K)},[ge,K]),fe=b.useMemo(function(){return!de||!K||K.isInvalidate()?!1:K.lessEquals(de)},[de,K]),xe=e6e(j.current,D),Oe=he(xe,2),_e=Oe[0],Te=Oe[1],Fe=function(ht){return ge&&!ht.lessEquals(ge)?ge:de&&!de.lessEquals(ht)?de:null},Be=function(ht){return!Fe(ht)},Pe=function(ht,Et){var gt=ht,Pt=Be(gt)||gt.isEmpty();if(!gt.isEmpty()&&!Et&&(gt=Fe(gt)||gt,Pt=!0),!d&&!f&&Pt){var wt=gt.toString(),st=ee(wt,Et);return st>=0&&(gt=Oc(IE(wt,".",st)),Be(gt)||(gt=Oc(IE(wt,".",st,!0)))),gt.equals(K)||(Q(gt),$==null||$(gt.isEmpty()?null:_Z(S,gt)),u===void 0&&se(gt,Et)),gt}return K},ze=a6e(),Ue=function et(ht){if(_e(),te.current=ht,re(ht),!q.current){var Et=ne(ht),gt=Oc(Et);gt.isNaN()||Pe(gt,!0)}P==null||P(ht),ze(function(){var Pt=ht;w||(Pt=ht.replace(/。/g,".")),Pt!==ht&&et(Pt)})},ke=function(){q.current=!0},Ee=function(){q.current=!1,Ue(j.current.value)},Ie=function(ht){Ue(ht.target.value)},Ae=function(ht){var Et;if(!(ht&&pe||!ht&&fe)){W.current=!1;var gt=Oc(H.current?OZ(l):l);ht||(gt=gt.negate());var Pt=(K||Oc(0)).add(gt.toString()),wt=Pe(Pt,!1);k==null||k(_Z(S,wt),{offset:H.current?OZ(l):l,type:ht?"up":"down"}),(Et=j.current)===null||Et===void 0||Et.focus()}},$e=function(ht){var Et=Oc(ne(oe)),gt;Et.isNaN()?gt=Pe(K,ht):gt=Pe(Et,ht),u!==void 0?se(K,!1):gt.isNaN()||se(gt,!1)},He=function(){W.current=!0},ot=function(ht){var Et=ht.key,gt=ht.shiftKey;W.current=!0,H.current=gt,Et==="Enter"&&(q.current||(W.current=!1),$e(!1),M==null||M(ht)),v!==!1&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Et)&&(Ae(Et==="Up"||Et==="ArrowUp"),ht.preventDefault())},Ot=function(){W.current=!1,H.current=!1};b.useEffect(function(){if(m&&D){var et=function(gt){Ae(gt.deltaY<0),gt.preventDefault()},ht=j.current;if(ht)return ht.addEventListener("wheel",et,{passive:!1}),function(){return ht.removeEventListener("wheel",et)}}});var Wt=function(){R&&$e(!1),z(!1),W.current=!1};return lp(function(){K.isInvalidate()||se(K,!1)},[E,C]),lp(function(){var et=Oc(u);X(et);var ht=Oc(ne(oe));(!et.equals(ht)||!W.current||C)&&se(et,W.current)},[u]),lp(function(){C&&Te()},[oe]),b.createElement("div",{ref:A,className:me(n,r,Z(Z(Z(Z(Z({},"".concat(n,"-focused"),D),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),d),"".concat(n,"-not-a-number"),K.isNaN()),"".concat(n,"-out-of-range"),!K.isInvalidate()&&!Be(K))),style:i,onFocus:function(){z(!0)},onBlur:Wt,onKeyDown:ot,onKeyUp:Ot,onCompositionStart:ke,onCompositionEnd:Ee,onBeforeInput:He},x&&b.createElement(i6e,{prefixCls:n,upNode:h,downNode:p,upDisabled:pe,downDisabled:fe,onStep:Ae}),b.createElement("div",{className:"".concat(L,"-wrap")},b.createElement("input",Le({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:l},N,{ref:po(j,t),className:L,value:oe,onChange:Ie,disabled:f,readOnly:d}))))}),c6e=b.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,a=i===void 0?"rc-input-number":i,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.classNames,h=qt(e,s6e),p=b.useRef(null),v=b.useRef(null),g=b.useRef(null),m=function(x){g.current&&a5(g.current,x)};return b.useImperativeHandle(t,function(){return JNe(g.current,{focus:m,nativeElement:p.current.nativeElement||v.current})}),b.createElement(o5,{className:f,triggerFocus:m,prefixCls:a,value:o,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:p},b.createElement(l6e,Le({prefixCls:a,disabled:n,ref:g,domRef:v,className:d==null?void 0:d.input},h)))});const u6e=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},pb(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Un(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},PZ=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const a=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},f6e=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:d,paddingInlineLG:h,colorTextDescription:p,motionDurationMid:v,handleHoverColor:g,handleOpacity:m,paddingInline:y,paddingBlock:x,handleBg:S,handleActiveBg:w,colorTextDisabled:C,borderRadiusSM:E,borderRadiusLG:O,controlWidth:$,handleBorderColor:P,filledHandleBg:M,lineHeightLG:k,calc:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),vb(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:i}),qI(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${ue(n)} ${r} ${P}`}}})),GI(e,{[`${t}-handler-wrap`]:{background:M,[`${t}-handler-down`]:{borderBlockStart:`${ue(n)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),UI(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:k,borderRadius:O,[`input${t}-input`]:{height:T(s).sub(T(n).mul(2)).equal(),padding:`${ue(d)} ${ue(h)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:E,[`input${t}-input`]:{height:T(l).sub(T(n).mul(2)).equal(),padding:`${ue(f)} ${ue(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},er(e)),GX(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:O,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},zX(e)),qX(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),{width:"100%",padding:`${ue(x)} ${ue(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),KI(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:m,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${fe(n)} ${r} ${P}`,transition:`all ${g} linear`,"&:active":{background:w},"&:hover":{height:"60%",[` + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ue(n)} ${r} ${P}`,transition:`all ${v} linear`,"&:active":{background:w},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner - `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Od()),{color:p,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},kZ(e,"lg")),kZ(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},_d()),{color:p,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},PZ(e,"lg")),PZ(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:C}})}]},p6e=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:a,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${fe(n)} 0`}},vb(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${fe(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${fe(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${d}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},v6e=tr("InputNumber",e=>{const t=$n(e,hb(e));return[h6e(t),p6e(t),F1(t)]},d6e,{unitless:{handleOpacity:!0}});var g6e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=b.useContext(Lt),i=b.useRef(null);b.useImperativeHandle(t,()=>i.current);const{className:a,rootClassName:o,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:d,suffix:h,bordered:p,readOnly:g,status:v,controls:m,variant:y}=e,x=g6e(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),w=Ti(S),[C,E,O]=v6e(S,w),{compactSize:$,compactItemClassnames:P}=kd(S,r);let M=b.createElement(GNe,{className:`${S}-handler-up-inner`}),k=b.createElement(J1,{className:`${S}-handler-down-inner`});const T=typeof m=="boolean"?m:void 0;typeof m=="object"&&(M=typeof m.upIcon=="undefined"?M:b.createElement("span",{className:`${S}-handler-up-inner`},m.upIcon),k=typeof m.downIcon=="undefined"?k:b.createElement("span",{className:`${S}-handler-down-inner`},m.downIcon));const{hasFeedback:R,status:A,isFormItemInput:N,feedbackIcon:L}=b.useContext(Fa),j=Id(A,v),F=ja(K=>{var X;return(X=s!=null?s:$)!==null&&X!==void 0?X:K}),B=b.useContext(mo),D=l!=null?l:B,[z,W]=yp("inputNumber",y,p),q=R&&b.createElement(b.Fragment,null,L),H=me({[`${S}-lg`]:F==="large",[`${S}-sm`]:F==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:N},E),U=`${S}-group`,G=b.createElement(f6e,Object.assign({ref:i,disabled:D,className:me(O,w,a,o,P),upHandler:M,downHandler:k,prefixCls:S,readOnly:g,controls:T,prefix:d,suffix:q||h,addonBefore:u&&b.createElement(cf,{form:!0,space:!0},u),addonAfter:f&&b.createElement(cf,{form:!0,space:!0},f),classNames:{input:H,variant:me({[`${S}-${z}`]:W},uf(S,j,R)),affixWrapper:me({[`${S}-affix-wrapper-sm`]:F==="small",[`${S}-affix-wrapper-lg`]:F==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:m===!1},E),wrapper:me({[`${U}-rtl`]:r==="rtl"},E),groupWrapper:me({[`${S}-group-wrapper-sm`]:F==="small",[`${S}-group-wrapper-lg`]:F==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${z}`]:W},uf(`${S}-group-wrapper`,j,R),E)}},x));return C(G)}),f5=TZ,m6e=e=>b.createElement(Sc,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement(TZ,Object.assign({},e)));f5._InternalPanelDoNotUseOrYouWillBeFired=m6e;const y6e=e=>{const{getPrefixCls:t,direction:n}=b.useContext(Lt),{prefixCls:r,className:i}=e,a=t("input-group",r),o=t("input"),[s,l]=e5(o),c=me(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,i),u=b.useContext(Fa),f=b.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(b.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},b.createElement(Fa.Provider,{value:f},e.children)))},RZ=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:we.createElement(pp,null)}),t};function IZ(e,t){const n=b.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,a,o,s;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return b.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function b6e(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var x6e=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i=!0,status:a,size:o,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:f,addonAfter:d,addonBefore:h,className:p,style:g,styles:v,rootClassName:m,onChange:y,classNames:x,variant:S}=e,w=x6e(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:E,input:O}=we.useContext(Lt),$=C("input",r),P=b.useRef(null),M=Ti($),[k,T,R]=e5($,M),{compactSize:A,compactItemClassnames:N}=kd($,E),L=ja(te=>{var ie;return(ie=o!=null?o:A)!==null&&ie!==void 0?ie:te}),j=we.useContext(mo),F=s!=null?s:j,{status:B,hasFeedback:D,feedbackIcon:z}=b.useContext(Fa),W=Id(B,a),q=b6e(e)||!!D;b.useRef(q);const H=IZ(P,!0),U=te=>{H(),l==null||l(te)},G=te=>{H(),c==null||c(te)},K=te=>{H(),y==null||y(te)},X=(D||u)&&we.createElement(we.Fragment,null,u,D&&z),Q=RZ(f!=null?f:O==null?void 0:O.allowClear),[ee,ne]=yp("input",S,i);return k(we.createElement(e6e,Object.assign({ref:po(t,P),prefixCls:$,autoComplete:O==null?void 0:O.autoComplete},w,{disabled:F,onBlur:U,onFocus:G,style:Object.assign(Object.assign({},O==null?void 0:O.style),g),styles:Object.assign(Object.assign({},O==null?void 0:O.styles),v),suffix:X,allowClear:Q,className:me(p,m,R,M,N,O==null?void 0:O.className),onChange:K,addonBefore:h&&we.createElement(cf,{form:!0,space:!0},h),addonAfter:d&&we.createElement(cf,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},x),O==null?void 0:O.classNames),{input:me({[`${$}-sm`]:L==="small",[`${$}-lg`]:L==="large",[`${$}-rtl`]:E==="rtl"},x==null?void 0:x.input,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.input,T),variant:me({[`${$}-${ee}`]:ne},uf($,W)),affixWrapper:me({[`${$}-affix-wrapper-sm`]:L==="small",[`${$}-affix-wrapper-lg`]:L==="large",[`${$}-affix-wrapper-rtl`]:E==="rtl"},T),wrapper:me({[`${$}-group-rtl`]:E==="rtl"},T),groupWrapper:me({[`${$}-group-wrapper-sm`]:L==="small",[`${$}-group-wrapper-lg`]:L==="large",[`${$}-group-wrapper-rtl`]:E==="rtl",[`${$}-group-wrapper-${ee}`]:ne},uf(`${$}-group-wrapper`,W,D),T)})})))}),S6e=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},w6e=tr(["Input","OTP"],e=>{const t=$n(e,hb(e));return[S6e(t)]},pb);var C6e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{value:n,onChange:r,onActiveChange:i,index:a,mask:o}=e,s=C6e(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof o=="string"?o:n,c=p=>{r(a,p.target.value)},u=b.useRef(null);b.useImperativeHandle(t,()=>u.current);const f=()=>{bn(()=>{var p;const g=(p=u.current)===null||p===void 0?void 0:p.input;document.activeElement===g&&g&&g.select()})},d=p=>{const{key:g,ctrlKey:v,metaKey:m}=p;g==="ArrowLeft"?i(a-1):g==="ArrowRight"?i(a+1):g==="z"&&(v||m)&&p.preventDefault(),f()},h=p=>{p.key==="Backspace"&&!n&&i(a-1),f()};return b.createElement(jE,Object.assign({type:o===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:d,onKeyUp:h,onMouseDown:f,onMouseUp:f}))});var O6e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:l,variant:c,disabled:u,status:f,autoFocus:d,mask:h,type:p,onInput:g,inputMode:v}=e,m=O6e(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:y,direction:x}=b.useContext(Lt),S=y("otp",n),w=ta(m,{aria:!0,data:!0,attr:!0}),C=Ti(S),[E,O,$]=w6e(S,C),P=ja(q=>i!=null?i:q),M=b.useContext(Fa),k=Id(M.status,f),T=b.useMemo(()=>Object.assign(Object.assign({},M),{status:k,hasFeedback:!1,feedbackIcon:null}),[M,k]),R=b.useRef(null),A=b.useRef({});b.useImperativeHandle(t,()=>({focus:()=>{var q;(q=A.current[0])===null||q===void 0||q.focus()},blur:()=>{var q;for(let H=0;Hl?l(q):q,[L,j]=b.useState(DE(N(a||"")));b.useEffect(()=>{o!==void 0&&j(DE(o))},[o]);const F=_n(q=>{j(q),g&&g(q),s&&q.length===r&&q.every(H=>H)&&q.some((H,U)=>L[U]!==H)&&s(q.join(""))}),B=_n((q,H)=>{let U=Ne(L);for(let K=0;K=0&&!U[K];K-=1)U.pop();const G=N(U.map(K=>K||" ").join(""));return U=DE(G).map((K,X)=>K===" "&&!U[X]?U[X]:K),U}),D=(q,H)=>{var U;const G=B(q,H),K=Math.min(q+H.length,r-1);K!==q&&G[q]!==void 0&&((U=A.current[K])===null||U===void 0||U.focus()),F(G)},z=q=>{var H;(H=A.current[q])===null||H===void 0||H.focus()},W={variant:c,disabled:u,status:k,mask:h,type:p,inputMode:v};return E(b.createElement("div",Object.assign({},w,{ref:R,className:me(S,{[`${S}-sm`]:P==="small",[`${S}-lg`]:P==="large",[`${S}-rtl`]:x==="rtl"},$,O)}),b.createElement(Fa.Provider,{value:T},Array.from({length:r}).map((q,H)=>{const U=`otp-${H}`,G=L[H]||"";return b.createElement(E6e,Object.assign({ref:K=>{A.current[H]=K},key:U,index:H,size:P,htmlSize:1,className:`${S}-input`,onChange:D,value:G,onActiveChange:z,autoFocus:H===0&&d},W))}))))});var $6e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},P6e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:$6e}))},M6e=b.forwardRef(P6e),k6e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},T6e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:k6e}))},d5=b.forwardRef(T6e),R6e=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 i=0,r=Object.getOwnPropertySymbols(e);ie?b.createElement(d5,null):b.createElement(M6e,null),A6e={click:"onClick",hover:"onMouseOver"},N6e=b.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:a=I6e}=e,o=b.useContext(mo),s=n!=null?n:o,l=typeof i=="object"&&i.visible!==void 0,[c,u]=b.useState(()=>l?i.visible:!1),f=b.useRef(null);b.useEffect(()=>{l&&u(i.visible)},[l,i]);const d=IZ(f),h=()=>{var P;if(s)return;c&&d();const M=!c;u(M),typeof i=="object"&&((P=i.onVisibleChange)===null||P===void 0||P.call(i,M))},p=P=>{const M=A6e[r]||"",k=a(c),T={[M]:h,className:`${P}-icon`,key:"passwordIcon",onMouseDown:R=>{R.preventDefault()},onMouseUp:R=>{R.preventDefault()}};return b.cloneElement(b.isValidElement(k)?k:b.createElement("span",null,k),T)},{className:g,prefixCls:v,inputPrefixCls:m,size:y}=e,x=R6e(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=b.useContext(Lt),w=S("input",m),C=S("input-password",v),E=i&&p(C),O=me(C,g,{[`${C}-${y}`]:!!y}),$=Object.assign(Object.assign({},Or(x,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:O,prefixCls:w,suffix:E});return y&&($.size=y),b.createElement(jE,Object.assign({ref:po(t,f)},$))});var L6e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:o,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:d,onCompositionStart:h,onCompositionEnd:p}=e,g=L6e(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:m}=b.useContext(Lt),y=b.useRef(!1),x=v("input-search",n),S=v("input",r),{compactSize:w}=kd(x,m),C=ja(B=>{var D;return(D=a!=null?a:w)!==null&&D!==void 0?D:B}),E=b.useRef(null),O=B=>{B!=null&&B.target&&B.type==="click"&&f&&f(B.target.value,B,{source:"clear"}),d==null||d(B)},$=B=>{var D;document.activeElement===((D=E.current)===null||D===void 0?void 0:D.input)&&B.preventDefault()},P=B=>{var D,z;f&&f((z=(D=E.current)===null||D===void 0?void 0:D.input)===null||z===void 0?void 0:z.value,B,{source:"input"})},M=B=>{y.current||c||P(B)},k=typeof s=="boolean"?b.createElement(tm,null):null,T=`${x}-button`;let R;const A=s||{},N=A.type&&A.type.__ANT_BUTTON===!0;N||A.type==="button"?R=Pa(A,Object.assign({onMouseDown:$,onClick:B=>{var D,z;(z=(D=A==null?void 0:A.props)===null||D===void 0?void 0:D.onClick)===null||z===void 0||z.call(D,B),P(B)},key:"enterButton"},N?{className:T,size:C}:{})):R=b.createElement(zn,{className:T,type:s?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:$,onClick:P,loading:c,icon:k},s),l&&(R=[R,Pa(l,{key:"addonAfter"})]);const L=me(x,{[`${x}-rtl`]:m==="rtl",[`${x}-${C}`]:!!C,[`${x}-with-button`]:!!s},i),j=B=>{y.current=!0,h==null||h(B)},F=B=>{y.current=!1,p==null||p(B)};return b.createElement(jE,Object.assign({ref:po(E,t),onPressEnter:M},g,{size:C,onCompositionStart:j,onCompositionEnd:F,prefixCls:S,addonAfter:R,suffix:o,onChange:O,className:L,disabled:u}))});var D6e=` + `]:{color:C}})}]},d6e=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:a,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ue(n)} 0`}},vb(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${ue(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ue(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${d}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},h6e=tr("InputNumber",e=>{const t=_n(e,hb(e));return[f6e(t),d6e(t),F1(t)]},u6e,{unitless:{handleOpacity:!0}});var p6e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=b.useContext(At),i=b.useRef(null);b.useImperativeHandle(t,()=>i.current);const{className:a,rootClassName:o,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:d,suffix:h,bordered:p,readOnly:v,status:g,controls:m,variant:y}=e,x=p6e(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),w=Ti(S),[C,E,O]=h6e(S,w),{compactSize:$,compactItemClassnames:P}=Td(S,r);let M=b.createElement(qNe,{className:`${S}-handler-up-inner`}),k=b.createElement(J1,{className:`${S}-handler-down-inner`});const T=typeof m=="boolean"?m:void 0;typeof m=="object"&&(M=typeof m.upIcon=="undefined"?M:b.createElement("span",{className:`${S}-handler-up-inner`},m.upIcon),k=typeof m.downIcon=="undefined"?k:b.createElement("span",{className:`${S}-handler-down-inner`},m.downIcon));const{hasFeedback:R,status:A,isFormItemInput:N,feedbackIcon:L}=b.useContext(Fa),j=Ad(A,g),F=ja(K=>{var X;return(X=s!=null?s:$)!==null&&X!==void 0?X:K}),B=b.useContext(mo),D=l!=null?l:B,[z,W]=bp("inputNumber",y,p),q=R&&b.createElement(b.Fragment,null,L),H=me({[`${S}-lg`]:F==="large",[`${S}-sm`]:F==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:N},E),U=`${S}-group`,G=b.createElement(c6e,Object.assign({ref:i,disabled:D,className:me(O,w,a,o,P),upHandler:M,downHandler:k,prefixCls:S,readOnly:v,controls:T,prefix:d,suffix:q||h,addonBefore:u&&b.createElement(cf,{form:!0,space:!0},u),addonAfter:f&&b.createElement(cf,{form:!0,space:!0},f),classNames:{input:H,variant:me({[`${S}-${z}`]:W},uf(S,j,R)),affixWrapper:me({[`${S}-affix-wrapper-sm`]:F==="small",[`${S}-affix-wrapper-lg`]:F==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:m===!1},E),wrapper:me({[`${U}-rtl`]:r==="rtl"},E),groupWrapper:me({[`${S}-group-wrapper-sm`]:F==="small",[`${S}-group-wrapper-lg`]:F==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${z}`]:W},uf(`${S}-group-wrapper`,j,R),E)}},x));return C(G)}),s5=MZ,v6e=e=>b.createElement(Sc,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement(MZ,Object.assign({},e)));s5._InternalPanelDoNotUseOrYouWillBeFired=v6e;const g6e=e=>{const{getPrefixCls:t,direction:n}=b.useContext(At),{prefixCls:r,className:i}=e,a=t("input-group",r),o=t("input"),[s,l]=XI(o),c=me(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,i),u=b.useContext(Fa),f=b.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(b.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},b.createElement(Fa.Provider,{value:f},e.children)))},kZ=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:we.createElement(vp,null)}),t};function TZ(e,t){const n=b.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,a,o,s;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return b.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function m6e(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var y6e=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i=!0,status:a,size:o,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:f,addonAfter:d,addonBefore:h,className:p,style:v,styles:g,rootClassName:m,onChange:y,classNames:x,variant:S}=e,w=y6e(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:E,input:O}=we.useContext(At),$=C("input",r),P=b.useRef(null),M=Ti($),[k,T,R]=XI($,M),{compactSize:A,compactItemClassnames:N}=Td($,E),L=ja(te=>{var ie;return(ie=o!=null?o:A)!==null&&ie!==void 0?ie:te}),j=we.useContext(mo),F=s!=null?s:j,{status:B,hasFeedback:D,feedbackIcon:z}=b.useContext(Fa),W=Ad(B,a),q=m6e(e)||!!D;b.useRef(q);const H=TZ(P,!0),U=te=>{H(),l==null||l(te)},G=te=>{H(),c==null||c(te)},K=te=>{H(),y==null||y(te)},X=(D||u)&&we.createElement(we.Fragment,null,u,D&&z),Q=kZ(f!=null?f:O==null?void 0:O.allowClear),[ee,ne]=bp("input",S,i);return k(we.createElement(QNe,Object.assign({ref:po(t,P),prefixCls:$,autoComplete:O==null?void 0:O.autoComplete},w,{disabled:F,onBlur:U,onFocus:G,style:Object.assign(Object.assign({},O==null?void 0:O.style),v),styles:Object.assign(Object.assign({},O==null?void 0:O.styles),g),suffix:X,allowClear:Q,className:me(p,m,R,M,N,O==null?void 0:O.className),onChange:K,addonBefore:h&&we.createElement(cf,{form:!0,space:!0},h),addonAfter:d&&we.createElement(cf,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},x),O==null?void 0:O.classNames),{input:me({[`${$}-sm`]:L==="small",[`${$}-lg`]:L==="large",[`${$}-rtl`]:E==="rtl"},x==null?void 0:x.input,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.input,T),variant:me({[`${$}-${ee}`]:ne},uf($,W)),affixWrapper:me({[`${$}-affix-wrapper-sm`]:L==="small",[`${$}-affix-wrapper-lg`]:L==="large",[`${$}-affix-wrapper-rtl`]:E==="rtl"},T),wrapper:me({[`${$}-group-rtl`]:E==="rtl"},T),groupWrapper:me({[`${$}-group-wrapper-sm`]:L==="small",[`${$}-group-wrapper-lg`]:L==="large",[`${$}-group-wrapper-rtl`]:E==="rtl",[`${$}-group-wrapper-${ee}`]:ne},uf(`${$}-group-wrapper`,W,D),T)})})))}),b6e=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},x6e=tr(["Input","OTP"],e=>{const t=_n(e,hb(e));return[b6e(t)]},pb);var S6e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{value:n,onChange:r,onActiveChange:i,index:a,mask:o}=e,s=S6e(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof o=="string"?o:n,c=p=>{r(a,p.target.value)},u=b.useRef(null);b.useImperativeHandle(t,()=>u.current);const f=()=>{Sn(()=>{var p;const v=(p=u.current)===null||p===void 0?void 0:p.input;document.activeElement===v&&v&&v.select()})},d=p=>{const{key:v,ctrlKey:g,metaKey:m}=p;v==="ArrowLeft"?i(a-1):v==="ArrowRight"?i(a+1):v==="z"&&(g||m)&&p.preventDefault(),f()},h=p=>{p.key==="Backspace"&&!n&&i(a-1),f()};return b.createElement(NE,Object.assign({type:o===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:d,onKeyUp:h,onMouseDown:f,onMouseUp:f}))});var C6e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:l,variant:c,disabled:u,status:f,autoFocus:d,mask:h,type:p,onInput:v,inputMode:g}=e,m=C6e(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:y,direction:x}=b.useContext(At),S=y("otp",n),w=ta(m,{aria:!0,data:!0,attr:!0}),C=Ti(S),[E,O,$]=x6e(S,C),P=ja(q=>i!=null?i:q),M=b.useContext(Fa),k=Ad(M.status,f),T=b.useMemo(()=>Object.assign(Object.assign({},M),{status:k,hasFeedback:!1,feedbackIcon:null}),[M,k]),R=b.useRef(null),A=b.useRef({});b.useImperativeHandle(t,()=>({focus:()=>{var q;(q=A.current[0])===null||q===void 0||q.focus()},blur:()=>{var q;for(let H=0;Hl?l(q):q,[L,j]=b.useState(LE(N(a||"")));b.useEffect(()=>{o!==void 0&&j(LE(o))},[o]);const F=On(q=>{j(q),v&&v(q),s&&q.length===r&&q.every(H=>H)&&q.some((H,U)=>L[U]!==H)&&s(q.join(""))}),B=On((q,H)=>{let U=Ne(L);for(let K=0;K=0&&!U[K];K-=1)U.pop();const G=N(U.map(K=>K||" ").join(""));return U=LE(G).map((K,X)=>K===" "&&!U[X]?U[X]:K),U}),D=(q,H)=>{var U;const G=B(q,H),K=Math.min(q+H.length,r-1);K!==q&&G[q]!==void 0&&((U=A.current[K])===null||U===void 0||U.focus()),F(G)},z=q=>{var H;(H=A.current[q])===null||H===void 0||H.focus()},W={variant:c,disabled:u,status:k,mask:h,type:p,inputMode:g};return E(b.createElement("div",Object.assign({},w,{ref:R,className:me(S,{[`${S}-sm`]:P==="small",[`${S}-lg`]:P==="large",[`${S}-rtl`]:x==="rtl"},$,O)}),b.createElement(Fa.Provider,{value:T},Array.from({length:r}).map((q,H)=>{const U=`otp-${H}`,G=L[H]||"";return b.createElement(w6e,Object.assign({ref:K=>{A.current[H]=K},key:U,index:H,size:P,htmlSize:1,className:`${S}-input`,onChange:D,value:G,onActiveChange:z,autoFocus:H===0&&d},W))}))))});var O6e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},_6e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:O6e}))},$6e=b.forwardRef(_6e),P6e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},M6e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:P6e}))},l5=b.forwardRef(M6e),k6e=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 i=0,r=Object.getOwnPropertySymbols(e);ie?b.createElement(l5,null):b.createElement($6e,null),R6e={click:"onClick",hover:"onMouseOver"},I6e=b.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:a=T6e}=e,o=b.useContext(mo),s=n!=null?n:o,l=typeof i=="object"&&i.visible!==void 0,[c,u]=b.useState(()=>l?i.visible:!1),f=b.useRef(null);b.useEffect(()=>{l&&u(i.visible)},[l,i]);const d=TZ(f),h=()=>{var P;if(s)return;c&&d();const M=!c;u(M),typeof i=="object"&&((P=i.onVisibleChange)===null||P===void 0||P.call(i,M))},p=P=>{const M=R6e[r]||"",k=a(c),T={[M]:h,className:`${P}-icon`,key:"passwordIcon",onMouseDown:R=>{R.preventDefault()},onMouseUp:R=>{R.preventDefault()}};return b.cloneElement(b.isValidElement(k)?k:b.createElement("span",null,k),T)},{className:v,prefixCls:g,inputPrefixCls:m,size:y}=e,x=k6e(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=b.useContext(At),w=S("input",m),C=S("input-password",g),E=i&&p(C),O=me(C,v,{[`${C}-${y}`]:!!y}),$=Object.assign(Object.assign({},Or(x,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:O,prefixCls:w,suffix:E});return y&&($.size=y),b.createElement(NE,Object.assign({ref:po(t,f)},$))});var A6e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:o,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:d,onCompositionStart:h,onCompositionEnd:p}=e,v=A6e(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:m}=b.useContext(At),y=b.useRef(!1),x=g("input-search",n),S=g("input",r),{compactSize:w}=Td(x,m),C=ja(B=>{var D;return(D=a!=null?a:w)!==null&&D!==void 0?D:B}),E=b.useRef(null),O=B=>{B!=null&&B.target&&B.type==="click"&&f&&f(B.target.value,B,{source:"clear"}),d==null||d(B)},$=B=>{var D;document.activeElement===((D=E.current)===null||D===void 0?void 0:D.input)&&B.preventDefault()},P=B=>{var D,z;f&&f((z=(D=E.current)===null||D===void 0?void 0:D.input)===null||z===void 0?void 0:z.value,B,{source:"input"})},M=B=>{y.current||c||P(B)},k=typeof s=="boolean"?b.createElement(nm,null):null,T=`${x}-button`;let R;const A=s||{},N=A.type&&A.type.__ANT_BUTTON===!0;N||A.type==="button"?R=Pa(A,Object.assign({onMouseDown:$,onClick:B=>{var D,z;(z=(D=A==null?void 0:A.props)===null||D===void 0?void 0:D.onClick)===null||z===void 0||z.call(D,B),P(B)},key:"enterButton"},N?{className:T,size:C}:{})):R=b.createElement(Hn,{className:T,type:s?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:$,onClick:P,loading:c,icon:k},s),l&&(R=[R,Pa(l,{key:"addonAfter"})]);const L=me(x,{[`${x}-rtl`]:m==="rtl",[`${x}-${C}`]:!!C,[`${x}-with-button`]:!!s},i),j=B=>{y.current=!0,h==null||h(B)},F=B=>{y.current=!1,p==null||p(B)};return b.createElement(NE,Object.assign({ref:po(E,t),onPressEnter:M},v,{size:C,onCompositionStart:j,onCompositionEnd:F,prefixCls:S,addonAfter:R,suffix:o,onChange:O,className:L,disabled:u}))});var L6e=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -351,33 +351,33 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,F6e=["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"],h5={},Ks;function B6e(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&&h5[n])return h5[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=F6e.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(h5[n]=l),l}function z6e(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;Ks||(Ks=document.createElement("textarea"),Ks.setAttribute("tab-index","-1"),Ks.setAttribute("aria-hidden","true"),Ks.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ks)),e.getAttribute("wrap")?Ks.setAttribute("wrap",e.getAttribute("wrap")):Ks.removeAttribute("wrap");var i=B6e(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Ks.setAttribute("style","".concat(l,";").concat(D6e)),Ks.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=Ks.scrollHeight;if(s==="border-box"?d+=o:s==="content-box"&&(d-=a),n!==null||r!==null){Ks.value=" ";var h=Ks.scrollHeight-a;n!==null&&(c=h*n,s==="border-box"&&(c=c+a+o),d=Math.max(c,d)),r!==null&&(u=h*r,s==="border-box"&&(u=u+a+o),f=d>u?"":"hidden",d=Math.min(u,d))}var p={height:d,overflowY:f,resize:"none"};return c&&(p.minHeight=c),u&&(p.maxHeight=u),p}var H6e=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],p5=0,v5=1,g5=2,W6e=b.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var d=Vt(n,H6e),h=Yn(i,{value:a,postState:function(q){return q!=null?q:""}}),p=he(h,2),g=p[0],v=p[1],m=function(q){v(q.target.value),f==null||f(q)},y=b.useRef();b.useImperativeHandle(t,function(){return{textArea:y.current}});var x=b.useMemo(function(){return o&&Bt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),S=he(x,2),w=S[0],C=S[1],E=!!o,O=function(){try{if(document.activeElement===y.current){var q=y.current,H=q.selectionStart,U=q.selectionEnd,G=q.scrollTop;y.current.setSelectionRange(H,U),y.current.scrollTop=G}}catch(K){}},$=b.useState(g5),P=he($,2),M=P[0],k=P[1],T=b.useState(),R=he(T,2),A=R[0],N=R[1],L=function(){k(p5)};Nn(function(){E&&L()},[a,w,C,E]),Nn(function(){if(M===p5)k(v5);else if(M===v5){var W=z6e(y.current,!1,w,C);k(g5),N(W)}else O()},[M]);var j=b.useRef(),F=function(){bn.cancel(j.current)},B=function(q){M===g5&&(s==null||s(q),o&&(F(),j.current=bn(function(){L()})))};b.useEffect(function(){return F},[]);var D=E?A:null,z=ae(ae({},c),D);return(M===p5||M===v5)&&(z.overflowY="hidden",z.overflowX="hidden"),b.createElement(vo,{onResize:B,disabled:!(o||s)},b.createElement("textarea",Le({},d,{ref:y,style:z,className:me(r,l,Z({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:m})))}),V6e=["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"],q6e=we.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,a=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,d=e.suffix,h=e.prefixCls,p=h===void 0?"rc-textarea":h,g=e.showCount,v=e.count,m=e.className,y=e.style,x=e.disabled,S=e.hidden,w=e.classNames,C=e.styles,E=e.onResize,O=e.onClear,$=e.onPressEnter,P=e.readOnly,M=e.autoSize,k=e.onKeyDown,T=Vt(e,V6e),R=Yn(r,{value:i,defaultValue:r}),A=he(R,2),N=A[0],L=A[1],j=N==null?"":String(N),F=we.useState(!1),B=he(F,2),D=B[0],z=B[1],W=we.useRef(!1),q=we.useState(null),H=he(q,2),U=H[0],G=H[1],K=b.useRef(null),X=b.useRef(null),Q=function(){var Ce;return(Ce=X.current)===null||Ce===void 0?void 0:Ce.textArea},ee=function(){Q().focus()};b.useImperativeHandle(t,function(){var ke;return{resizableTextArea:X.current,focus:ee,blur:function(){Q().blur()},nativeElement:((ke=K.current)===null||ke===void 0?void 0:ke.nativeElement)||Q()}}),b.useEffect(function(){z(function(ke){return!x&&ke})},[x]);var ne=we.useState(null),te=he(ne,2),ie=te[0],J=te[1];we.useEffect(function(){if(ie){var ke;(ke=Q()).setSelectionRange.apply(ke,Ne(ie))}},[ie]);var le=_Z(v,g),oe=(n=le.max)!==null&&n!==void 0?n:c,re=Number(oe)>0,se=le.strategy(j),ge=!!oe&&se>oe,de=function(Ce,Re){var Ae=Re;!W.current&&le.exceedFormatter&&le.max&&le.strategy(Re)>le.max&&(Ae=le.exceedFormatter(Re,{max:le.max}),Re!==Ae&&J([Q().selectionStart||0,Q().selectionEnd||0])),L(Ae),LE(Ce.currentTarget,Ce,s,Ae)},pe=function(Ce){W.current=!0,u==null||u(Ce)},ue=function(Ce){W.current=!1,de(Ce,Ce.currentTarget.value),f==null||f(Ce)},Se=function(Ce){de(Ce,Ce.target.value)},Oe=function(Ce){Ce.key==="Enter"&&$&&$(Ce),k==null||k(Ce)},_e=function(Ce){z(!0),a==null||a(Ce)},Te=function(Ce){z(!1),o==null||o(Ce)},je=function(Ce){L(""),ee(),LE(Q(),Ce,s)},Be=d,Pe;le.show&&(le.showFormatter?Pe=le.showFormatter({value:j,count:se,maxLength:oe}):Pe="".concat(se).concat(re?" / ".concat(oe):""),Be=we.createElement(we.Fragment,null,Be,we.createElement("span",{className:me("".concat(p,"-data-count"),w==null?void 0:w.count),style:C==null?void 0:C.count},Pe)));var He=function(Ce){var Re;E==null||E(Ce),(Re=Q())!==null&&Re!==void 0&&Re.style.height&&G(!0)},Ue=!M&&!g&&!l;return we.createElement(u5,{ref:K,value:j,allowClear:l,handleReset:je,suffix:Be,prefixCls:p,classNames:ae(ae({},w),{},{affixWrapper:me(w==null?void 0:w.affixWrapper,Z(Z({},"".concat(p,"-show-count"),g),"".concat(p,"-textarea-allow-clear"),l))}),disabled:x,focused:D,className:me(m,ge&&"".concat(p,"-out-of-range")),style:ae(ae({},y),U&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Pe=="string"?Pe:void 0}},hidden:S,readOnly:P,onClear:O},we.createElement(W6e,Le({},T,{autoSize:M,maxLength:c,onKeyDown:Oe,onChange:Se,onFocus:_e,onBlur:Te,onCompositionStart:pe,onCompositionEnd:ue,className:me(w==null?void 0:w.textarea),style:ae(ae({},C==null?void 0:C.textarea),{},{resize:y==null?void 0:y.resize}),disabled:x,prefixCls:p,onResize:He,ref:X,readOnly:P})))}),U6e=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,bordered:a=!0,size:o,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:f,className:d,style:h,styles:p,variant:g}=e,v=U6e(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:m,direction:y,textArea:x}=b.useContext(Lt),S=ja(o),w=b.useContext(mo),C=s!=null?s:w,{status:E,hasFeedback:O,feedbackIcon:$}=b.useContext(Fa),P=Id(E,l),M=b.useRef(null);b.useImperativeHandle(t,()=>{var B;return{resizableTextArea:(B=M.current)===null||B===void 0?void 0:B.resizableTextArea,focus:D=>{var z,W;c5((W=(z=M.current)===null||z===void 0?void 0:z.resizableTextArea)===null||W===void 0?void 0:W.textArea,D)},blur:()=>{var D;return(D=M.current)===null||D===void 0?void 0:D.blur()}}});const k=m("input",i),T=Ti(k),[R,A,N]=e5(k,T),[L,j]=yp("textArea",g,a),F=RZ(c!=null?c:x==null?void 0:x.allowClear);return R(b.createElement(q6e,Object.assign({autoComplete:x==null?void 0:x.autoComplete},v,{style:Object.assign(Object.assign({},x==null?void 0:x.style),h),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),p),disabled:C,allowClear:F,className:me(N,T,d,f,x==null?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},u),x==null?void 0:x.classNames),{textarea:me({[`${k}-sm`]:S==="small",[`${k}-lg`]:S==="large"},A,u==null?void 0:u.textarea,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.textarea),variant:me({[`${k}-${L}`]:j},uf(k,P)),affixWrapper:me(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:y==="rtl",[`${k}-affix-wrapper-sm`]:S==="small",[`${k}-affix-wrapper-lg`]:S==="large",[`${k}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},A)}),prefixCls:k,suffix:O&&b.createElement("span",{className:`${k}-textarea-suffix`},$),ref:M})))}),oi=jE;oi.Group=y6e,oi.Search=j6e,oi.TextArea=AZ,oi.Password=N6e,oi.OTP=_6e;function m5(e,t,n){return(e-t)/(n-t)}function y5(e,t,n,r){var i=m5(t,n,r),a={};switch(e){case"rtl":a.right="".concat(i*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(i*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(i*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(i*100,"%"),a.transform="translateX(-50%)";break}return a}function vm(e,t){return Array.isArray(e)?e[t]:e}var Pp=b.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),G6e=b.createContext({}),K6e=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],NZ=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,a=e.onStartMove,o=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,d=e.onChangeComplete,h=e.onFocus,p=e.onMouseEnter,g=Vt(e,K6e),v=b.useContext(Pp),m=v.min,y=v.max,x=v.direction,S=v.disabled,w=v.keyboard,C=v.range,E=v.tabIndex,O=v.ariaLabelForHandle,$=v.ariaLabelledByForHandle,P=v.ariaValueTextFormatterForHandle,M=v.styles,k=v.classNames,T="".concat(n,"-handle"),R=function(q){S||a(q,i)},A=function(q){h==null||h(q,i)},N=function(q){p(q,i)},L=function(q){if(!S&&w){var H=null;switch(q.which||q.keyCode){case Ze.LEFT:H=x==="ltr"||x==="btt"?-1:1;break;case Ze.RIGHT:H=x==="ltr"||x==="btt"?1:-1;break;case Ze.UP:H=x!=="ttb"?1:-1;break;case Ze.DOWN:H=x!=="ttb"?-1:1;break;case Ze.HOME:H="min";break;case Ze.END:H="max";break;case Ze.PAGE_UP:H=2;break;case Ze.PAGE_DOWN:H=-2;break;case Ze.BACKSPACE:case Ze.DELETE:o(i);break}H!==null&&(q.preventDefault(),f(H,i))}},j=function(q){switch(q.which||q.keyCode){case Ze.LEFT:case Ze.RIGHT:case Ze.UP:case Ze.DOWN:case Ze.HOME:case Ze.END:case Ze.PAGE_UP:case Ze.PAGE_DOWN:d==null||d();break}},F=y5(x,r,m,y),B={};if(i!==null){var D;B={tabIndex:S?null:vm(E,i),role:"slider","aria-valuemin":m,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":S,"aria-label":vm(O,i),"aria-labelledby":vm($,i),"aria-valuetext":(D=vm(P,i))===null||D===void 0?void 0:D(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:R,onTouchStart:R,onFocus:A,onMouseEnter:N,onKeyDown:L,onKeyUp:j}}var z=b.createElement("div",Le({ref:t,className:me(T,Z(Z(Z({},"".concat(T,"-").concat(i+1),i!==null&&C),"".concat(T,"-dragging"),c),"".concat(T,"-dragging-delete"),u),k.handle),style:ae(ae(ae({},F),s),M.handle)},B,g));return l&&(z=l(z,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),z}),Y6e=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],X6e=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,d=Vt(e,Y6e),h=b.useRef({}),p=b.useState(!1),g=he(p,2),v=g[0],m=g[1],y=b.useState(-1),x=he(y,2),S=x[0],w=x[1],C=function(M){w(M),m(!0)},E=function(M,k){C(k),f==null||f(M)},O=function(M,k){C(k)};b.useImperativeHandle(t,function(){return{focus:function(M){var k;(k=h.current[M])===null||k===void 0||k.focus()},hideHelp:function(){ys.flushSync(function(){m(!1)})}}});var $=ae({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:E,onMouseEnter:O},d);return b.createElement(b.Fragment,null,o.map(function(P,M){var k=c===M;return b.createElement(NZ,Le({ref:function(R){R?h.current[M]=R:delete h.current[M]},dragging:k,draggingDelete:k&&u,style:vm(r,M),key:M,value:P,valueIndex:M},$))}),l&&v&&b.createElement(NZ,Le({key:"a11y"},$,{value:o[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Z6e=function(t){var n=t.prefixCls,r=t.style,i=t.children,a=t.value,o=t.onClick,s=b.useContext(Pp),l=s.min,c=s.max,u=s.direction,f=s.includedStart,d=s.includedEnd,h=s.included,p="".concat(n,"-text"),g=y5(u,a,l,c);return b.createElement("span",{className:me(p,Z({},"".concat(p,"-active"),h&&f<=a&&a<=d)),style:ae(ae({},g),r),onMouseDown:function(m){m.stopPropagation()},onClick:function(){o(a)}},i)},Q6e=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,a="".concat(n,"-mark");return r.length?b.createElement("div",{className:a},r.map(function(o){var s=o.value,l=o.style,c=o.label;return b.createElement(Z6e,{key:s,prefixCls:a,style:l,value:s,onClick:i},c)})):null},J6e=function(t){var n=t.prefixCls,r=t.value,i=t.style,a=t.activeStyle,o=b.useContext(Pp),s=o.min,l=o.max,c=o.direction,u=o.included,f=o.includedStart,d=o.includedEnd,h="".concat(n,"-dot"),p=u&&f<=r&&r<=d,g=ae(ae({},y5(c,r,s,l)),typeof i=="function"?i(r):i);return p&&(g=ae(ae({},g),typeof a=="function"?a(r):a)),b.createElement("span",{className:me(h,Z({},"".concat(h,"-active"),p)),style:g})},e8e=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,a=t.style,o=t.activeStyle,s=b.useContext(Pp),l=s.min,c=s.max,u=s.step,f=b.useMemo(function(){var d=new Set;if(r.forEach(function(p){d.add(p.value)}),i&&u!==null)for(var h=l;h<=c;)d.add(h),h+=u;return Array.from(d)},[l,c,u,i,r]);return b.createElement("div",{className:"".concat(n,"-step")},f.map(function(d){return b.createElement(J6e,{prefixCls:n,key:d,value:d,style:a,activeStyle:o})}))},LZ=function(t){var n=t.prefixCls,r=t.style,i=t.start,a=t.end,o=t.index,s=t.onStartMove,l=t.replaceCls,c=b.useContext(Pp),u=c.direction,f=c.min,d=c.max,h=c.disabled,p=c.range,g=c.classNames,v="".concat(n,"-track"),m=m5(i,f,d),y=m5(a,f,d),x=function(E){!h&&s&&s(E,-1)},S={};switch(u){case"rtl":S.right="".concat(m*100,"%"),S.width="".concat(y*100-m*100,"%");break;case"btt":S.bottom="".concat(m*100,"%"),S.height="".concat(y*100-m*100,"%");break;case"ttb":S.top="".concat(m*100,"%"),S.height="".concat(y*100-m*100,"%");break;default:S.left="".concat(m*100,"%"),S.width="".concat(y*100-m*100,"%")}var w=l||me(v,Z(Z({},"".concat(v,"-").concat(o+1),o!==null&&p),"".concat(n,"-track-draggable"),s),g.track);return b.createElement("div",{className:w,style:ae(ae({},S),r),onMouseDown:x,onTouchStart:x})},t8e=function(t){var n=t.prefixCls,r=t.style,i=t.values,a=t.startPoint,o=t.onStartMove,s=b.useContext(Pp),l=s.included,c=s.range,u=s.min,f=s.styles,d=s.classNames,h=b.useMemo(function(){if(!c){if(i.length===0)return[];var g=a!=null?a:u,v=i[0];return[{start:Math.min(g,v),end:Math.max(g,v)}]}for(var m=[],y=0;yn8e&&u<$.length:!1,C(ie),z(G,Te,ie)},le=function oe(re){re.preventDefault(),document.removeEventListener("mouseup",oe),document.removeEventListener("mousemove",J),L.current&&(L.current.removeEventListener("touchmove",A.current),L.current.removeEventListener("touchend",N.current)),A.current=null,N.current=null,L.current=null,s(ie),y(-1),C(!1)};document.addEventListener("mouseup",le),document.addEventListener("mousemove",J),U.currentTarget.addEventListener("touchend",le),U.currentTarget.addEventListener("touchmove",J),A.current=J,N.current=le,L.current=U.currentTarget},q=b.useMemo(function(){var H=Ne(n).sort(function(Q,ee){return Q-ee}),U=Ne($).sort(function(Q,ee){return Q-ee}),G={};U.forEach(function(Q){G[Q]=(G[Q]||0)+1}),H.forEach(function(Q){G[Q]=(G[Q]||0)-1});var K=c?1:0,X=Object.values(G).reduce(function(Q,ee){return Q+Math.abs(ee)},0);return X<=K?$:n},[n,$,c]);return[m,h,w,q,W]}function i8e(e,t,n,r,i,a){var o=b.useCallback(function(h){return Math.max(e,Math.min(t,h))},[e,t]),s=b.useCallback(function(h){if(n!==null){var p=e+Math.round((o(h)-e)/n)*n,g=function(x){return(String(x).split(".")[1]||"").length},v=Math.max(g(n),g(t),g(e)),m=Number(p.toFixed(v));return e<=m&&m<=t?m:null}return null},[n,e,t,o]),l=b.useCallback(function(h){var p=o(h),g=r.map(function(y){return y.value});n!==null&&g.push(s(h)),g.push(e,t);var v=g[0],m=t-e;return g.forEach(function(y){var x=Math.abs(p-y);x<=m&&(v=y,m=x)}),v},[e,t,r,n,o,s]),c=function h(p,g,v){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var y,x=p[v],S=x+g,w=[];r.forEach(function(P){w.push(P.value)}),w.push(e,t),w.push(s(x));var C=g>0?1:-1;m==="unit"?w.push(s(x+C*n)):w.push(s(S)),w=w.filter(function(P){return P!==null}).filter(function(P){return g<0?P<=x:P>=x}),m==="unit"&&(w=w.filter(function(P){return P!==x}));var E=m==="unit"?x:S;y=w[0];var O=Math.abs(y-E);if(w.forEach(function(P){var M=Math.abs(P-E);M1){var $=Ne(p);return $[v]=y,h($,g-C,v,m)}return y}else{if(g==="min")return e;if(g==="max")return t}},u=function(p,g,v){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=p[v],x=c(p,g,v,m);return{value:x,changed:x!==y}},f=function(p){return a===null&&p===0||typeof a=="number"&&p3&&arguments[3]!==void 0?arguments[3]:"unit",y=p.map(l),x=y[v],S=c(y,g,v,m);if(y[v]=S,i===!1){var w=a||0;v>0&&y[v-1]!==x&&(y[v]=Math.max(y[v],y[v-1]+w)),v0;$-=1)for(var P=!0;f(y[$]-y[$-1])&&P;){var M=u(y,-1,$-1);y[$-1]=M.value,P=M.changed}for(var k=y.length-1;k>0;k-=1)for(var T=!0;f(y[k]-y[k-1])&&T;){var R=u(y,-1,k-1);y[k-1]=R.value,T=R.changed}for(var A=0;A=0?L:!1},[L,Pe]),Ue=b.useMemo(function(){return Object.keys(K||{}).map(function(We){var ze=K[We],pt={value:Number(We)};return ze&&Bt(ze)==="object"&&!b.isValidElement(ze)&&("label"in ze||"style"in ze)?(pt.style=ze.style,pt.label=ze.label):pt.label=ze,pt}).filter(function(We){var ze=We.label;return ze||typeof ze=="number"}).sort(function(We,ze){return We.value-ze.value})},[K]),ke=i8e(je,Be,Pe,Ue,A,He),Ce=he(ke,2),Re=Ce[0],Ae=Ce[1],$e=Yn(E,{value:C}),Ve=he($e,2),et=Ve[0],Tt=Ve[1],Mt=b.useMemo(function(){var We=et==null?[]:Array.isArray(et)?et:[et],ze=he(We,1),pt=ze[0],mt=pt===void 0?je:pt,Wt=et===null?[]:[mt];if(ue){if(Wt=Ne(We),$||et===void 0){var gn=$>=0?$+1:2;for(Wt=Wt.slice(0,gn);Wt.length=0&&re.current.focus(We)}Gt(null)},[Qt]);var _t=b.useMemo(function(){return Oe&&Pe===null?!1:Oe},[Oe,Pe]),Nt=_n(function(We,ze){Xe(We,ze),M==null||M(at(Mt))}),Zt=st!==-1;b.useEffect(function(){if(!Zt){var We=Mt.lastIndexOf(tt);re.current.focus(We)}},[Zt]);var vn=b.useMemo(function(){return Ne(Pt).sort(function(We,ze){return We-ze})},[Pt]),an=b.useMemo(function(){return ue?[vn[0],vn[vn.length-1]]:[je,vn[0]]},[vn,ue,je]),Pn=he(an,2),Ut=Pn[0],ye=Pn[1];b.useImperativeHandle(t,function(){return{focus:function(){re.current.focus(0)},blur:function(){var ze,pt=document,mt=pt.activeElement;(ze=se.current)!==null&&ze!==void 0&&ze.contains(mt)&&(mt==null||mt.blur())}}}),b.useEffect(function(){h&&re.current.focus(0)},[]);var Ie=b.useMemo(function(){return{min:je,max:Be,direction:ge,disabled:u,keyboard:d,step:Pe,included:D,includedStart:Ut,includedEnd:ye,range:ue,tabIndex:ie,ariaLabelForHandle:J,ariaLabelledByForHandle:le,ariaValueTextFormatterForHandle:oe,styles:s||{},classNames:o||{}}},[je,Be,ge,u,d,Pe,D,Ut,ye,ue,ie,J,le,oe,s,o]);return b.createElement(Pp.Provider,{value:Ie},b.createElement("div",{ref:se,className:me(r,i,Z(Z(Z(Z({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),F),"".concat(r,"-horizontal"),!F),"".concat(r,"-with-marks"),Ue.length)),style:a,onMouseDown:bt,id:l},b.createElement("div",{className:me("".concat(r,"-rail"),o==null?void 0:o.rail),style:ae(ae({},H),s==null?void 0:s.rail)}),ne!==!1&&b.createElement(t8e,{prefixCls:r,style:W,values:Mt,startPoint:z,onStartMove:_t?Nt:void 0}),b.createElement(e8e,{prefixCls:r,marks:Ue,dots:X,style:U,activeStyle:G}),b.createElement(X6e,{ref:re,prefixCls:r,style:q,values:Pt,draggingIndex:st,draggingDelete:ot,onStartMove:Nt,onOffsetChange:wt,onFocus:p,onBlur:g,handleRender:Q,activeHandleRender:ee,onChangeComplete:Ot,onDelete:Se?vt:void 0}),b.createElement(Q6e,{prefixCls:r,marks:Ue,onClick:Je})))});const DZ=b.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=b.useRef(null),a=n&&!r,o=b.useRef(null);function s(){bn.cancel(o.current),o.current=null}function l(){o.current=bn(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),o.current=null})}return b.useEffect(()=>(a?l():s(),s),[a,e.title]),b.createElement(ro,Object.assign({ref:po(i,t)},e,{open:a}))}),s8e=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:d,handleActiveOutlineColor:h,handleLineWidth:p,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},er(e)),{position:"relative",height:r,margin:`${fe(o)} ${fe(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${fe(a)} ${fe(o)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${fe(p)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(p).mul(-1).equal(),insetBlockStart:c(p).mul(-1).equal(),width:c(u).add(c(p).mul(2)).equal(),height:c(u).add(c(p).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${fe(p)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` - inset-inline-start ${v}, - inset-block-start ${v}, - width ${v}, - height ${v}, - box-shadow ${v}, - outline ${v} - `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(g).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(g).mul(-1).equal(),width:c(f).add(c(g).mul(2)).equal(),height:c(f).add(c(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${fe(g)} ${d}`,outline:`6px solid ${h}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${fe(p)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` +`,j6e=["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"],c5={},Ks;function D6e(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&&c5[n])return c5[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=j6e.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(c5[n]=l),l}function F6e(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;Ks||(Ks=document.createElement("textarea"),Ks.setAttribute("tab-index","-1"),Ks.setAttribute("aria-hidden","true"),Ks.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ks)),e.getAttribute("wrap")?Ks.setAttribute("wrap",e.getAttribute("wrap")):Ks.removeAttribute("wrap");var i=D6e(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Ks.setAttribute("style","".concat(l,";").concat(L6e)),Ks.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=Ks.scrollHeight;if(s==="border-box"?d+=o:s==="content-box"&&(d-=a),n!==null||r!==null){Ks.value=" ";var h=Ks.scrollHeight-a;n!==null&&(c=h*n,s==="border-box"&&(c=c+a+o),d=Math.max(c,d)),r!==null&&(u=h*r,s==="border-box"&&(u=u+a+o),f=d>u?"":"hidden",d=Math.min(u,d))}var p={height:d,overflowY:f,resize:"none"};return c&&(p.minHeight=c),u&&(p.maxHeight=u),p}var B6e=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],u5=0,f5=1,d5=2,z6e=b.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var d=qt(n,B6e),h=Yn(i,{value:a,postState:function(q){return q!=null?q:""}}),p=he(h,2),v=p[0],g=p[1],m=function(q){g(q.target.value),f==null||f(q)},y=b.useRef();b.useImperativeHandle(t,function(){return{textArea:y.current}});var x=b.useMemo(function(){return o&&Bt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),S=he(x,2),w=S[0],C=S[1],E=!!o,O=function(){try{if(document.activeElement===y.current){var q=y.current,H=q.selectionStart,U=q.selectionEnd,G=q.scrollTop;y.current.setSelectionRange(H,U),y.current.scrollTop=G}}catch(K){}},$=b.useState(d5),P=he($,2),M=P[0],k=P[1],T=b.useState(),R=he(T,2),A=R[0],N=R[1],L=function(){k(u5)};Ln(function(){E&&L()},[a,w,C,E]),Ln(function(){if(M===u5)k(f5);else if(M===f5){var W=F6e(y.current,!1,w,C);k(d5),N(W)}else O()},[M]);var j=b.useRef(),F=function(){Sn.cancel(j.current)},B=function(q){M===d5&&(s==null||s(q),o&&(F(),j.current=Sn(function(){L()})))};b.useEffect(function(){return F},[]);var D=E?A:null,z=ae(ae({},c),D);return(M===u5||M===f5)&&(z.overflowY="hidden",z.overflowX="hidden"),b.createElement(vo,{onResize:B,disabled:!(o||s)},b.createElement("textarea",Le({},d,{ref:y,style:z,className:me(r,l,Z({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:m})))}),H6e=["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"],W6e=we.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,a=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,d=e.suffix,h=e.prefixCls,p=h===void 0?"rc-textarea":h,v=e.showCount,g=e.count,m=e.className,y=e.style,x=e.disabled,S=e.hidden,w=e.classNames,C=e.styles,E=e.onResize,O=e.onClear,$=e.onPressEnter,P=e.readOnly,M=e.autoSize,k=e.onKeyDown,T=qt(e,H6e),R=Yn(r,{value:i,defaultValue:r}),A=he(R,2),N=A[0],L=A[1],j=N==null?"":String(N),F=we.useState(!1),B=he(F,2),D=B[0],z=B[1],W=we.useRef(!1),q=we.useState(null),H=he(q,2),U=H[0],G=H[1],K=b.useRef(null),X=b.useRef(null),Q=function(){var Ee;return(Ee=X.current)===null||Ee===void 0?void 0:Ee.textArea},ee=function(){Q().focus()};b.useImperativeHandle(t,function(){var ke;return{resizableTextArea:X.current,focus:ee,blur:function(){Q().blur()},nativeElement:((ke=K.current)===null||ke===void 0?void 0:ke.nativeElement)||Q()}}),b.useEffect(function(){z(function(ke){return!x&&ke})},[x]);var ne=we.useState(null),te=he(ne,2),ie=te[0],J=te[1];we.useEffect(function(){if(ie){var ke;(ke=Q()).setSelectionRange.apply(ke,Ne(ie))}},[ie]);var le=EZ(g,v),oe=(n=le.max)!==null&&n!==void 0?n:c,re=Number(oe)>0,se=le.strategy(j),ge=!!oe&&se>oe,de=function(Ee,Ie){var Ae=Ie;!W.current&&le.exceedFormatter&&le.max&&le.strategy(Ie)>le.max&&(Ae=le.exceedFormatter(Ie,{max:le.max}),Ie!==Ae&&J([Q().selectionStart||0,Q().selectionEnd||0])),L(Ae),AE(Ee.currentTarget,Ee,s,Ae)},pe=function(Ee){W.current=!0,u==null||u(Ee)},fe=function(Ee){W.current=!1,de(Ee,Ee.currentTarget.value),f==null||f(Ee)},xe=function(Ee){de(Ee,Ee.target.value)},Oe=function(Ee){Ee.key==="Enter"&&$&&$(Ee),k==null||k(Ee)},_e=function(Ee){z(!0),a==null||a(Ee)},Te=function(Ee){z(!1),o==null||o(Ee)},Fe=function(Ee){L(""),ee(),AE(Q(),Ee,s)},Be=d,Pe;le.show&&(le.showFormatter?Pe=le.showFormatter({value:j,count:se,maxLength:oe}):Pe="".concat(se).concat(re?" / ".concat(oe):""),Be=we.createElement(we.Fragment,null,Be,we.createElement("span",{className:me("".concat(p,"-data-count"),w==null?void 0:w.count),style:C==null?void 0:C.count},Pe)));var ze=function(Ee){var Ie;E==null||E(Ee),(Ie=Q())!==null&&Ie!==void 0&&Ie.style.height&&G(!0)},Ue=!M&&!v&&!l;return we.createElement(o5,{ref:K,value:j,allowClear:l,handleReset:Fe,suffix:Be,prefixCls:p,classNames:ae(ae({},w),{},{affixWrapper:me(w==null?void 0:w.affixWrapper,Z(Z({},"".concat(p,"-show-count"),v),"".concat(p,"-textarea-allow-clear"),l))}),disabled:x,focused:D,className:me(m,ge&&"".concat(p,"-out-of-range")),style:ae(ae({},y),U&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Pe=="string"?Pe:void 0}},hidden:S,readOnly:P,onClear:O},we.createElement(z6e,Le({},T,{autoSize:M,maxLength:c,onKeyDown:Oe,onChange:xe,onFocus:_e,onBlur:Te,onCompositionStart:pe,onCompositionEnd:fe,className:me(w==null?void 0:w.textarea),style:ae(ae({},C==null?void 0:C.textarea),{},{resize:y==null?void 0:y.resize}),disabled:x,prefixCls:p,onResize:ze,ref:X,readOnly:P})))}),V6e=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,bordered:a=!0,size:o,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:f,className:d,style:h,styles:p,variant:v}=e,g=V6e(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:m,direction:y,textArea:x}=b.useContext(At),S=ja(o),w=b.useContext(mo),C=s!=null?s:w,{status:E,hasFeedback:O,feedbackIcon:$}=b.useContext(Fa),P=Ad(E,l),M=b.useRef(null);b.useImperativeHandle(t,()=>{var B;return{resizableTextArea:(B=M.current)===null||B===void 0?void 0:B.resizableTextArea,focus:D=>{var z,W;a5((W=(z=M.current)===null||z===void 0?void 0:z.resizableTextArea)===null||W===void 0?void 0:W.textArea,D)},blur:()=>{var D;return(D=M.current)===null||D===void 0?void 0:D.blur()}}});const k=m("input",i),T=Ti(k),[R,A,N]=XI(k,T),[L,j]=bp("textArea",v,a),F=kZ(c!=null?c:x==null?void 0:x.allowClear);return R(b.createElement(W6e,Object.assign({autoComplete:x==null?void 0:x.autoComplete},g,{style:Object.assign(Object.assign({},x==null?void 0:x.style),h),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),p),disabled:C,allowClear:F,className:me(N,T,d,f,x==null?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},u),x==null?void 0:x.classNames),{textarea:me({[`${k}-sm`]:S==="small",[`${k}-lg`]:S==="large"},A,u==null?void 0:u.textarea,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.textarea),variant:me({[`${k}-${L}`]:j},uf(k,P)),affixWrapper:me(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:y==="rtl",[`${k}-affix-wrapper-sm`]:S==="small",[`${k}-affix-wrapper-lg`]:S==="large",[`${k}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},A)}),prefixCls:k,suffix:O&&b.createElement("span",{className:`${k}-textarea-suffix`},$),ref:M})))}),oi=NE;oi.Group=g6e,oi.Search=N6e,oi.TextArea=RZ,oi.Password=I6e,oi.OTP=E6e;function h5(e,t,n){return(e-t)/(n-t)}function p5(e,t,n,r){var i=h5(t,n,r),a={};switch(e){case"rtl":a.right="".concat(i*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(i*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(i*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(i*100,"%"),a.transform="translateX(-50%)";break}return a}function Mp(e,t){return Array.isArray(e)?e[t]:e}var kp=b.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),q6e=b.createContext({}),U6e=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],IZ=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,a=e.onStartMove,o=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,d=e.onChangeComplete,h=e.onFocus,p=e.onMouseEnter,v=qt(e,U6e),g=b.useContext(kp),m=g.min,y=g.max,x=g.direction,S=g.disabled,w=g.keyboard,C=g.range,E=g.tabIndex,O=g.ariaLabelForHandle,$=g.ariaLabelledByForHandle,P=g.ariaRequired,M=g.ariaValueTextFormatterForHandle,k=g.styles,T=g.classNames,R="".concat(n,"-handle"),A=function(H){S||a(H,i)},N=function(H){h==null||h(H,i)},L=function(H){p(H,i)},j=function(H){if(!S&&w){var U=null;switch(H.which||H.keyCode){case Ze.LEFT:U=x==="ltr"||x==="btt"?-1:1;break;case Ze.RIGHT:U=x==="ltr"||x==="btt"?1:-1;break;case Ze.UP:U=x!=="ttb"?1:-1;break;case Ze.DOWN:U=x!=="ttb"?-1:1;break;case Ze.HOME:U="min";break;case Ze.END:U="max";break;case Ze.PAGE_UP:U=2;break;case Ze.PAGE_DOWN:U=-2;break;case Ze.BACKSPACE:case Ze.DELETE:o(i);break}U!==null&&(H.preventDefault(),f(U,i))}},F=function(H){switch(H.which||H.keyCode){case Ze.LEFT:case Ze.RIGHT:case Ze.UP:case Ze.DOWN:case Ze.HOME:case Ze.END:case Ze.PAGE_UP:case Ze.PAGE_DOWN:d==null||d();break}},B=p5(x,r,m,y),D={};if(i!==null){var z;D={tabIndex:S?null:Mp(E,i),role:"slider","aria-valuemin":m,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":S,"aria-label":Mp(O,i),"aria-labelledby":Mp($,i),"aria-required":Mp(P,i),"aria-valuetext":(z=Mp(M,i))===null||z===void 0?void 0:z(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:N,onMouseEnter:L,onKeyDown:j,onKeyUp:F}}var W=b.createElement("div",Le({ref:t,className:me(R,Z(Z(Z({},"".concat(R,"-").concat(i+1),i!==null&&C),"".concat(R,"-dragging"),c),"".concat(R,"-dragging-delete"),u),T.handle),style:ae(ae(ae({},B),s),k.handle)},D,v));return l&&(W=l(W,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),W}),G6e=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],K6e=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,d=qt(e,G6e),h=b.useRef({}),p=b.useState(!1),v=he(p,2),g=v[0],m=v[1],y=b.useState(-1),x=he(y,2),S=x[0],w=x[1],C=function(M){w(M),m(!0)},E=function(M,k){C(k),f==null||f(M)},O=function(M,k){C(k)};b.useImperativeHandle(t,function(){return{focus:function(M){var k;(k=h.current[M])===null||k===void 0||k.focus()},hideHelp:function(){ys.flushSync(function(){m(!1)})}}});var $=ae({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:E,onMouseEnter:O},d);return b.createElement(b.Fragment,null,o.map(function(P,M){var k=c===M;return b.createElement(IZ,Le({ref:function(R){R?h.current[M]=R:delete h.current[M]},dragging:k,draggingDelete:k&&u,style:Mp(r,M),key:M,value:P,valueIndex:M},$))}),l&&g&&b.createElement(IZ,Le({key:"a11y"},$,{value:o[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Y6e=function(t){var n=t.prefixCls,r=t.style,i=t.children,a=t.value,o=t.onClick,s=b.useContext(kp),l=s.min,c=s.max,u=s.direction,f=s.includedStart,d=s.includedEnd,h=s.included,p="".concat(n,"-text"),v=p5(u,a,l,c);return b.createElement("span",{className:me(p,Z({},"".concat(p,"-active"),h&&f<=a&&a<=d)),style:ae(ae({},v),r),onMouseDown:function(m){m.stopPropagation()},onClick:function(){o(a)}},i)},X6e=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,a="".concat(n,"-mark");return r.length?b.createElement("div",{className:a},r.map(function(o){var s=o.value,l=o.style,c=o.label;return b.createElement(Y6e,{key:s,prefixCls:a,style:l,value:s,onClick:i},c)})):null},Z6e=function(t){var n=t.prefixCls,r=t.value,i=t.style,a=t.activeStyle,o=b.useContext(kp),s=o.min,l=o.max,c=o.direction,u=o.included,f=o.includedStart,d=o.includedEnd,h="".concat(n,"-dot"),p=u&&f<=r&&r<=d,v=ae(ae({},p5(c,r,s,l)),typeof i=="function"?i(r):i);return p&&(v=ae(ae({},v),typeof a=="function"?a(r):a)),b.createElement("span",{className:me(h,Z({},"".concat(h,"-active"),p)),style:v})},Q6e=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,a=t.style,o=t.activeStyle,s=b.useContext(kp),l=s.min,c=s.max,u=s.step,f=b.useMemo(function(){var d=new Set;if(r.forEach(function(p){d.add(p.value)}),i&&u!==null)for(var h=l;h<=c;)d.add(h),h+=u;return Array.from(d)},[l,c,u,i,r]);return b.createElement("div",{className:"".concat(n,"-step")},f.map(function(d){return b.createElement(Z6e,{prefixCls:n,key:d,value:d,style:a,activeStyle:o})}))},AZ=function(t){var n=t.prefixCls,r=t.style,i=t.start,a=t.end,o=t.index,s=t.onStartMove,l=t.replaceCls,c=b.useContext(kp),u=c.direction,f=c.min,d=c.max,h=c.disabled,p=c.range,v=c.classNames,g="".concat(n,"-track"),m=h5(i,f,d),y=h5(a,f,d),x=function(E){!h&&s&&s(E,-1)},S={};switch(u){case"rtl":S.right="".concat(m*100,"%"),S.width="".concat(y*100-m*100,"%");break;case"btt":S.bottom="".concat(m*100,"%"),S.height="".concat(y*100-m*100,"%");break;case"ttb":S.top="".concat(m*100,"%"),S.height="".concat(y*100-m*100,"%");break;default:S.left="".concat(m*100,"%"),S.width="".concat(y*100-m*100,"%")}var w=l||me(g,Z(Z({},"".concat(g,"-").concat(o+1),o!==null&&p),"".concat(n,"-track-draggable"),s),v.track);return b.createElement("div",{className:w,style:ae(ae({},S),r),onMouseDown:x,onTouchStart:x})},J6e=function(t){var n=t.prefixCls,r=t.style,i=t.values,a=t.startPoint,o=t.onStartMove,s=b.useContext(kp),l=s.included,c=s.range,u=s.min,f=s.styles,d=s.classNames,h=b.useMemo(function(){if(!c){if(i.length===0)return[];var v=a!=null?a:u,g=i[0];return[{start:Math.min(v,g),end:Math.max(v,g)}]}for(var m=[],y=0;ye8e&&u<$.length:!1,C(ie),z(G,Te,ie)},le=function oe(re){re.preventDefault(),document.removeEventListener("mouseup",oe),document.removeEventListener("mousemove",J),L.current&&(L.current.removeEventListener("touchmove",A.current),L.current.removeEventListener("touchend",N.current)),A.current=null,N.current=null,L.current=null,s(ie),y(-1),C(!1)};document.addEventListener("mouseup",le),document.addEventListener("mousemove",J),U.currentTarget.addEventListener("touchend",le),U.currentTarget.addEventListener("touchmove",J),A.current=J,N.current=le,L.current=U.currentTarget},q=b.useMemo(function(){var H=Ne(n).sort(function(Q,ee){return Q-ee}),U=Ne($).sort(function(Q,ee){return Q-ee}),G={};U.forEach(function(Q){G[Q]=(G[Q]||0)+1}),H.forEach(function(Q){G[Q]=(G[Q]||0)-1});var K=c?1:0,X=Object.values(G).reduce(function(Q,ee){return Q+Math.abs(ee)},0);return X<=K?$:n},[n,$,c]);return[m,h,w,q,W]}function n8e(e,t,n,r,i,a){var o=b.useCallback(function(h){return Math.max(e,Math.min(t,h))},[e,t]),s=b.useCallback(function(h){if(n!==null){var p=e+Math.round((o(h)-e)/n)*n,v=function(x){return(String(x).split(".")[1]||"").length},g=Math.max(v(n),v(t),v(e)),m=Number(p.toFixed(g));return e<=m&&m<=t?m:null}return null},[n,e,t,o]),l=b.useCallback(function(h){var p=o(h),v=r.map(function(y){return y.value});n!==null&&v.push(s(h)),v.push(e,t);var g=v[0],m=t-e;return v.forEach(function(y){var x=Math.abs(p-y);x<=m&&(g=y,m=x)}),g},[e,t,r,n,o,s]),c=function h(p,v,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var y,x=p[g],S=x+v,w=[];r.forEach(function(P){w.push(P.value)}),w.push(e,t),w.push(s(x));var C=v>0?1:-1;m==="unit"?w.push(s(x+C*n)):w.push(s(S)),w=w.filter(function(P){return P!==null}).filter(function(P){return v<0?P<=x:P>=x}),m==="unit"&&(w=w.filter(function(P){return P!==x}));var E=m==="unit"?x:S;y=w[0];var O=Math.abs(y-E);if(w.forEach(function(P){var M=Math.abs(P-E);M1){var $=Ne(p);return $[g]=y,h($,v-C,g,m)}return y}else{if(v==="min")return e;if(v==="max")return t}},u=function(p,v,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=p[g],x=c(p,v,g,m);return{value:x,changed:x!==y}},f=function(p){return a===null&&p===0||typeof a=="number"&&p3&&arguments[3]!==void 0?arguments[3]:"unit",y=p.map(l),x=y[g],S=c(y,v,g,m);if(y[g]=S,i===!1){var w=a||0;g>0&&y[g-1]!==x&&(y[g]=Math.max(y[g],y[g-1]+w)),g0;$-=1)for(var P=!0;f(y[$]-y[$-1])&&P;){var M=u(y,-1,$-1);y[$-1]=M.value,P=M.changed}for(var k=y.length-1;k>0;k-=1)for(var T=!0;f(y[k]-y[k-1])&&T;){var R=u(y,-1,k-1);y[k-1]=R.value,T=R.changed}for(var A=0;A=0?L:!1},[L,ze]),ke=b.useMemo(function(){return Object.keys(K||{}).map(function(Ge){var tt=K[Ge],vt={value:Number(Ge)};return tt&&Bt(tt)==="object"&&!b.isValidElement(tt)&&("label"in tt||"style"in tt)?(vt.style=tt.style,vt.label=tt.label):vt.label=tt,vt}).filter(function(Ge){var tt=Ge.label;return tt||typeof tt=="number"}).sort(function(Ge,tt){return Ge.value-tt.value})},[K]),Ee=n8e(Be,Pe,ze,ke,A,Ue),Ie=he(Ee,2),Ae=Ie[0],$e=Ie[1],He=Yn(E,{value:C}),ot=he(He,2),Ot=ot[0],Wt=ot[1],et=b.useMemo(function(){var Ge=Ot==null?[]:Array.isArray(Ot)?Ot:[Ot],tt=he(Ge,1),vt=tt[0],Lt=vt===void 0?Be:vt,on=Ot===null?[]:[Lt];if(xe){if(on=Ne(Ge),$||Ot===void 0){var mn=$>=0?$+1:2;for(on=on.slice(0,mn);on.length=0&&se.current.focus(Ge)}St(null)},[Gt]);var Nt=b.useMemo(function(){return _e&&ze===null?!1:_e},[_e,ze]),Zt=On(function(Ge,tt){Je(Ge,tt),M==null||M(ht(et))}),gn=nt!==-1;b.useEffect(function(){if(!gn){var Ge=et.lastIndexOf(lt);se.current.focus(Ge)}},[gn]);var an=b.useMemo(function(){return Ne(Ye).sort(function(Ge,tt){return Ge-tt})},[Ye]),Mn=b.useMemo(function(){return xe?[an[0],an[an.length-1]]:[Be,an[0]]},[an,xe,Be]),Vt=he(Mn,2),ye=Vt[0],Re=Vt[1];b.useImperativeHandle(t,function(){return{focus:function(){se.current.focus(0)},blur:function(){var tt,vt=document,Lt=vt.activeElement;(tt=ge.current)!==null&&tt!==void 0&&tt.contains(Lt)&&(Lt==null||Lt.blur())}}}),b.useEffect(function(){h&&se.current.focus(0)},[]);var Xe=b.useMemo(function(){return{min:Be,max:Pe,direction:de,disabled:u,keyboard:d,step:ze,included:D,includedStart:ye,includedEnd:Re,range:xe,tabIndex:ie,ariaLabelForHandle:J,ariaLabelledByForHandle:le,ariaRequired:oe,ariaValueTextFormatterForHandle:re,styles:s||{},classNames:o||{}}},[Be,Pe,de,u,d,ze,D,ye,Re,xe,ie,J,le,oe,re,s,o]);return b.createElement(kp.Provider,{value:Xe},b.createElement("div",{ref:ge,className:me(r,i,Z(Z(Z(Z({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),F),"".concat(r,"-horizontal"),!F),"".concat(r,"-with-marks"),ke.length)),style:a,onMouseDown:Tt,id:l},b.createElement("div",{className:me("".concat(r,"-rail"),o==null?void 0:o.rail),style:ae(ae({},H),s==null?void 0:s.rail)}),ne!==!1&&b.createElement(J6e,{prefixCls:r,style:W,values:et,startPoint:z,onStartMove:Nt?Zt:void 0}),b.createElement(Q6e,{prefixCls:r,marks:ke,dots:X,style:U,activeStyle:G}),b.createElement(K6e,{ref:se,prefixCls:r,style:q,values:Ye,draggingIndex:nt,draggingDelete:Mt,onStartMove:Zt,onOffsetChange:$t,onFocus:p,onBlur:v,handleRender:Q,activeHandleRender:ee,onChangeComplete:gt,onDelete:Oe?Pt:void 0}),b.createElement(X6e,{prefixCls:r,marks:ke,onClick:mt})))});const LZ=b.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=b.useRef(null),a=n&&!r,o=b.useRef(null);function s(){Sn.cancel(o.current),o.current=null}function l(){o.current=Sn(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),o.current=null})}return b.useEffect(()=>(a?l():s(),s),[a,e.title]),b.createElement(ro,Object.assign({ref:po(i,t)},e,{open:a}))}),a8e=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:d,handleActiveOutlineColor:h,handleLineWidth:p,handleLineWidthHover:v,motionDurationMid:g}=e;return{[t]:Object.assign(Object.assign({},er(e)),{position:"relative",height:r,margin:`${ue(o)} ${ue(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ue(a)} ${ue(o)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ue(p)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(p).mul(-1).equal(),insetBlockStart:c(p).mul(-1).equal(),width:c(u).add(c(p).mul(2)).equal(),height:c(u).add(c(p).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ue(p)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` + inset-inline-start ${g}, + inset-block-start ${g}, + width ${g}, + height ${g}, + box-shadow ${g}, + outline ${g} + `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),width:c(f).add(c(v).mul(2)).equal(),height:c(f).add(c(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ue(v)} ${d}`,outline:`6px solid ${h}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${ue(p)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` ${t}-dot - `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${fe(p)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` + `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${ue(p)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},FZ=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",d=t?"top":"insetInlineStart",h=s(r).mul(3).sub(i).div(2).equal(),p=s(i).sub(r).div(2).equal(),g=t?{borderWidth:`${fe(p)} 0`,transform:`translateY(${fe(s(p).mul(-1).equal())})`}:{borderWidth:`0 ${fe(p)}`,transform:`translateX(${fe(e.calc(p).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[f]:h},[`${n}-mark`]:{insetInlineStart:0,top:0,[d]:s(r).mul(3).add(t?0:o).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[d]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(a).div(2).equal()}}},l8e=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},FZ(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},c8e=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},FZ(e,!1)),{height:"100%"})}},u8e=tr("Slider",e=>{const t=$n(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[s8e(t),l8e(t),c8e(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,a=e.lineWidth+1*1.5,o=e.colorPrimary,s=new Un(o).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:o,handleActiveOutlineColor:s,handleColorDisabled:new Un(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}),f8e=b.createContext({});function b5(){const[e,t]=b.useState(!1),n=b.useRef(null),r=()=>{bn.cancel(n.current)},i=a=>{r(),a?t(a):n.current=bn(()=>{t(a)})};return b.useEffect(()=>r,[]),[e,i]}var d8e=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 i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const x5=we.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:i,rootClassName:a,style:o,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:d,tooltip:h={},onChangeComplete:p}=e,g=d8e(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:v}=e,{direction:m,slider:y,getPrefixCls:x,getPopupContainer:S}=we.useContext(Lt),w=we.useContext(mo),C=s!=null?s:w,{handleRender:E,direction:O}=we.useContext(f8e),P=(O||m)==="rtl",[M,k]=b5(),[T,R]=b5(),A=Object.assign({},h),{open:N,placement:L,getPopupContainer:j,prefixCls:F,formatter:B}=A,D=N!=null?N:u,z=(M||T)&&D!==!1,W=h8e(B,c),[q,H]=b5(),U=oe=>{p==null||p(oe),H(!1)},G=(oe,re)=>oe||(re?P?"left":"right":"top"),K=x("slider",n),[X,Q,ee]=u8e(K),ne=me(i,y==null?void 0:y.className,a,{[`${K}-rtl`]:P,[`${K}-lock`]:q},Q,ee);P&&!g.vertical&&(g.reverse=!g.reverse),we.useEffect(()=>{const oe=()=>{bn(()=>{R(!1)},1)};return document.addEventListener("mouseup",oe),()=>{document.removeEventListener("mouseup",oe)}},[]);const te=r&&!D,ie=E||((oe,re)=>{const{index:se}=re,ge=oe.props;function de(Oe,_e,Te){var je,Be,Pe,He;Te&&((Be=(je=g)[Oe])===null||Be===void 0||Be.call(je,_e)),(He=(Pe=ge)[Oe])===null||He===void 0||He.call(Pe,_e)}const pe=Object.assign(Object.assign({},ge),{onMouseEnter:Oe=>{k(!0),de("onMouseEnter",Oe)},onMouseLeave:Oe=>{k(!1),de("onMouseLeave",Oe)},onMouseDown:Oe=>{R(!0),H(!0),de("onMouseDown",Oe)},onFocus:Oe=>{var _e;R(!0),(_e=g.onFocus)===null||_e===void 0||_e.call(g,Oe),de("onFocus",Oe,!0)},onBlur:Oe=>{var _e;R(!1),(_e=g.onBlur)===null||_e===void 0||_e.call(g,Oe),de("onBlur",Oe,!0)}}),ue=we.cloneElement(oe,pe),Se=(!!D||z)&&W!==null;return te?ue:we.createElement(DZ,Object.assign({},A,{prefixCls:x("tooltip",F!=null?F:l),title:W?W(re.value):"",open:Se,placement:G(L!=null?L:d,v),key:se,overlayClassName:`${K}-tooltip`,getPopupContainer:j||f||S}),ue)}),J=te?(oe,re)=>{const se=we.cloneElement(oe,{style:Object.assign(Object.assign({},oe.props.style),{visibility:"hidden"})});return we.createElement(DZ,Object.assign({},A,{prefixCls:x("tooltip",F!=null?F:l),title:W?W(re.value):"",open:W!==null&&z,placement:G(L!=null?L:d,v),key:"tooltip",overlayClassName:`${K}-tooltip`,getPopupContainer:j||f||S,draggingDelete:re.draggingDelete}),se)}:void 0,le=Object.assign(Object.assign({},y==null?void 0:y.style),o);return X(we.createElement(o8e,Object.assign({},g,{step:g.step,range:r,className:ne,style:le,disabled:C,ref:t,prefixCls:K,handleRender:ie,activeHandleRender:J,onChangeComplete:U})))});var p8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},v8e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:p8e}))},BZ=b.forwardRef(v8e),g8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},m8e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:g8e}))},zZ=b.forwardRef(m8e),y8e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},b8e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:y8e}))},x8e=b.forwardRef(b8e);function S8e(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function w8e(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function HZ(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=XK(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[b.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[C8e,E8e]=["week","WeekPicker"],[O8e,_8e]=["month","MonthPicker"],[$8e,P8e]=["year","YearPicker"],[M8e,k8e]=["quarter","QuarterPicker"],[WZ,VZ]=["time","TimePicker"],T8e=e=>b.createElement(zn,Object.assign({size:"small",type:"primary"},e));function qZ(e){return b.useMemo(()=>Object.assign({button:T8e},e),[e])}var R8e=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 i=0,r=Object.getOwnPropertySymbols(e);ib.forwardRef((n,r)=>{var i;const{prefixCls:a,getPopupContainer:o,components:s,className:l,style:c,placement:u,size:f,disabled:d,bordered:h=!0,placeholder:p,popupClassName:g,dropdownClassName:v,status:m,rootClassName:y,variant:x,picker:S}=n,w=R8e(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),C=b.useRef(null),{getPrefixCls:E,direction:O,getPopupContainer:$,rangePicker:P}=b.useContext(Lt),M=E("picker",a),{compactSize:k,compactItemClassnames:T}=kd(M,O),R=E(),[A,N]=yp("rangePicker",x,h),L=Ti(M),[j,F,B]=XX(M,L),[D]=HZ(n,M),z=qZ(s),W=ja(ie=>{var J;return(J=f!=null?f:k)!==null&&J!==void 0?J:ie}),q=b.useContext(mo),H=d!=null?d:q,U=b.useContext(Fa),{hasFeedback:G,status:K,feedbackIcon:X}=U,Q=b.createElement(b.Fragment,null,S===WZ?b.createElement(zZ,null):b.createElement(BZ,null),G&&X);b.useImperativeHandle(r,()=>C.current);const[ee]=Zo("Calendar",PS),ne=Object.assign(Object.assign({},ee),n.locale),[te]=of("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return j(b.createElement(cf,{space:!0},b.createElement(L5e,Object.assign({separator:b.createElement("span",{"aria-label":"to",className:`${M}-separator`},b.createElement(x8e,null)),disabled:H,ref:C,placement:u,placeholder:w8e(ne,S,p),suffixIcon:Q,prevIcon:b.createElement("span",{className:`${M}-prev-icon`}),nextIcon:b.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:b.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:b.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${R}-slide-up`,picker:S},w,{className:me({[`${M}-${W}`]:W,[`${M}-${A}`]:N},uf(M,Id(K,m),G),F,T,l,P==null?void 0:P.className,B,L,y),style:Object.assign(Object.assign({},P==null?void 0:P.style),c),locale:ne.lang,prefixCls:M,getPopupContainer:o||$,generateConfig:e,components:z,direction:O,classNames:{popup:me(F,g||v,B,L,y)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:te})},allowClear:D}))))});var A8e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const t=(l,c)=>{const u=c===VZ?"timePicker":"datePicker";return b.forwardRef((d,h)=>{var p;const{prefixCls:g,getPopupContainer:v,components:m,style:y,className:x,rootClassName:S,size:w,bordered:C,placement:E,placeholder:O,popupClassName:$,dropdownClassName:P,disabled:M,status:k,variant:T,onCalendarChange:R}=d,A=A8e(d,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:N,direction:L,getPopupContainer:j,[u]:F}=b.useContext(Lt),B=N("picker",g),{compactSize:D,compactItemClassnames:z}=kd(B,L),W=b.useRef(null),[q,H]=yp("datePicker",T,C),U=Ti(B),[G,K,X]=XX(B,U);b.useImperativeHandle(h,()=>W.current);const Q={showToday:!0},ee=l||d.picker,ne=N(),{onSelect:te,multiple:ie}=A,J=te&&l==="time"&&!ie,le=(He,Ue,ke)=>{R==null||R(He,Ue,ke),J&&te(He)},[oe,re]=HZ(d,B),se=qZ(m),ge=ja(He=>{var Ue;return(Ue=w!=null?w:D)!==null&&Ue!==void 0?Ue:He}),de=b.useContext(mo),pe=M!=null?M:de,ue=b.useContext(Fa),{hasFeedback:Se,status:Oe,feedbackIcon:_e}=ue,Te=b.createElement(b.Fragment,null,ee==="time"?b.createElement(zZ,null):b.createElement(BZ,null),Se&&_e),[je]=Zo("DatePicker",PS),Be=Object.assign(Object.assign({},je),d.locale),[Pe]=of("DatePicker",(p=d.popupStyle)===null||p===void 0?void 0:p.zIndex);return G(b.createElement(cf,{space:!0},b.createElement(H5e,Object.assign({ref:W,placeholder:S8e(Be,ee,O),suffixIcon:Te,placement:E,prevIcon:b.createElement("span",{className:`${B}-prev-icon`}),nextIcon:b.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:b.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:b.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${ne}-slide-up`,picker:l,onCalendarChange:le},Q,A,{locale:Be.lang,className:me({[`${B}-${ge}`]:ge,[`${B}-${q}`]:H},uf(B,Id(Oe,k),Se),K,z,F==null?void 0:F.className,x,X,U,S),style:Object.assign(Object.assign({},F==null?void 0:F.style),y),prefixCls:B,getPopupContainer:v||j,generateConfig:e,components:se,direction:L,disabled:pe,classNames:{popup:me(K,X,U,S,$||P)},styles:{popup:Object.assign(Object.assign({},d.popupStyle),{zIndex:Pe})},allowClear:oe,removeIcon:re}))))})},n=t(),r=t(C8e,E8e),i=t(O8e,_8e),a=t($8e,P8e),o=t(M8e,k8e),s=t(WZ,VZ);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:s,QuarterPicker:o}},UZ=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=N8e(e),s=I8e(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=o,l},df=UZ(qIe),L8e=U1(df,"picker",null);df._InternalPanelDoNotUseOrYouWillBeFired=L8e;const j8e=U1(df.RangePicker,"picker",null);df._InternalRangePanelDoNotUseOrYouWillBeFired=j8e,df.generatePicker=UZ;const D8e={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},GZ=we.createContext({});var F8e=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 i=0,r=Object.getOwnPropertySymbols(e);ida(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function z8e(e,t,n){const r=b.useMemo(()=>t||B8e(n),[t,n]);return b.useMemo(()=>r.map(a=>{var{span:o}=a,s=F8e(a,["span"]);return o==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof o=="number"?o:JK(e,o)})}),[r,e])}var H8e=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 i=0,r=Object.getOwnPropertySymbols(e);io).forEach(o=>{const{filled:s}=o,l=H8e(o,["filled"]);if(s){r.push(l),n.push(r),r=[],a=0;return}const c=t-a;a+=o.span||1,a>=t?(a>t?(i=!0,r.push(Object.assign(Object.assign({},l),{span:c}))):r.push(l),n.push(r),r=[],a=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(o=>{const s=o.reduce((l,c)=>l+(c.span||1),0);if(s{const[n,r]=b.useMemo(()=>W8e(t,e),[t,e]);return n},q8e=e=>{let{children:t}=e;return t};function KZ(e){return e!=null}const S5=e=>{const{itemPrefixCls:t,component:n,span:r,className:i,style:a,labelStyle:o,contentStyle:s,bordered:l,label:c,content:u,colon:f,type:d}=e,h=n;return l?b.createElement(h,{className:me({[`${t}-item-label`]:d==="label",[`${t}-item-content`]:d==="content"},i),style:a,colSpan:r},KZ(c)&&b.createElement("span",{style:o},c),KZ(u)&&b.createElement("span",{style:s},u)):b.createElement(h,{className:me(`${t}-item`,i),style:a,colSpan:r},b.createElement("div",{className:`${t}-item-container`},(c||c===0)&&b.createElement("span",{className:me(`${t}-item-label`,{[`${t}-item-no-colon`]:!f}),style:o},c),(u||u===0)&&b.createElement("span",{className:me(`${t}-item-content`),style:s},u)))};function w5(e,t,n){let{colon:r,prefixCls:i,bordered:a}=t,{component:o,type:s,showLabel:l,showContent:c,labelStyle:u,contentStyle:f}=n;return e.map((d,h)=>{let{label:p,children:g,prefixCls:v=i,className:m,style:y,labelStyle:x,contentStyle:S,span:w=1,key:C}=d;return typeof o=="string"?b.createElement(S5,{key:`${s}-${C||h}`,className:m,style:y,labelStyle:Object.assign(Object.assign({},u),x),contentStyle:Object.assign(Object.assign({},f),S),span:w,colon:r,component:o,itemPrefixCls:v,bordered:a,label:l?p:null,content:c?g:null,type:s}):[b.createElement(S5,{key:`label-${C||h}`,className:m,style:Object.assign(Object.assign(Object.assign({},u),y),x),span:1,colon:r,component:o[0],itemPrefixCls:v,bordered:a,label:p,type:"label"}),b.createElement(S5,{key:`content-${C||h}`,className:m,style:Object.assign(Object.assign(Object.assign({},f),y),S),span:w*2-1,component:o[1],itemPrefixCls:v,bordered:a,content:g,type:"content"})]})}const U8e=e=>{const t=b.useContext(GZ),{prefixCls:n,vertical:r,row:i,index:a,bordered:o}=e;return r?b.createElement(b.Fragment,null,b.createElement("tr",{key:`label-${a}`,className:`${n}-row`},w5(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),b.createElement("tr",{key:`content-${a}`,className:`${n}-row`},w5(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):b.createElement("tr",{key:a,className:`${n}-row`},w5(i,e,Object.assign({component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},G8e=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${fe(e.padding)} ${fe(e.paddingLG)}`,borderInlineEnd:`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${fe(e.paddingSM)} ${fe(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${fe(e.paddingXS)} ${fe(e.padding)}`}}}}}},K8e=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:a,colonMarginLeft:o,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},er(e)),G8e(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},Qo),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${fe(o)} ${fe(a)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Y8e=tr("Descriptions",e=>{const t=$n(e,{});return K8e(t)},e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}));var X8e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,title:n,extra:r,column:i,colon:a=!0,bordered:o,layout:s,children:l,className:c,rootClassName:u,style:f,size:d,labelStyle:h,contentStyle:p,items:g}=e,v=X8e(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:m,direction:y,descriptions:x}=b.useContext(Lt),S=m("descriptions",t),w=vI(),C=b.useMemo(()=>{var R;return typeof i=="number"?i:(R=JK(w,Object.assign(Object.assign({},D8e),i)))!==null&&R!==void 0?R:3},[w,i]),E=z8e(w,g,l),O=ja(d),$=V8e(C,E),[P,M,k]=Y8e(S),T=b.useMemo(()=>({labelStyle:h,contentStyle:p}),[h,p]);return P(b.createElement(GZ.Provider,{value:T},b.createElement("div",Object.assign({className:me(S,x==null?void 0:x.className,{[`${S}-${O}`]:O&&O!=="default",[`${S}-bordered`]:!!o,[`${S}-rtl`]:y==="rtl"},c,u,M,k),style:Object.assign(Object.assign({},x==null?void 0:x.style),f)},v),(n||r)&&b.createElement("div",{className:`${S}-header`},n&&b.createElement("div",{className:`${S}-title`},n),r&&b.createElement("div",{className:`${S}-extra`},r)),b.createElement("div",{className:`${S}-view`},b.createElement("table",null,b.createElement("tbody",null,$.map((R,A)=>b.createElement(U8e,{key:A,index:A,colon:a,prefixCls:S,vertical:s==="vertical",bordered:o,row:R}))))))))};gm.Item=q8e;function YZ(e){return["small","middle","large"].includes(e)}function XZ(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const ZZ=we.createContext({latestIndex:0}),Z8e=ZZ.Provider,Q8e=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:o}=b.useContext(ZZ);return r==null?null:b.createElement(b.Fragment,null,b.createElement("div",{className:t,style:a},r),n{var n,r,i;const{getPrefixCls:a,space:o,direction:s}=b.useContext(Lt),{size:l=(n=o==null?void 0:o.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:f,children:d,direction:h="horizontal",prefixCls:p,split:g,style:v,wrap:m=!1,classNames:y,styles:x}=e,S=J8e(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,C]=Array.isArray(l)?l:[l,l],E=YZ(C),O=YZ(w),$=XZ(C),P=XZ(w),M=da(d,{keepEmpty:!0}),k=c===void 0&&h==="horizontal"?"center":c,T=a("space",p),[R,A,N]=DU(T),L=me(T,o==null?void 0:o.className,A,`${T}-${h}`,{[`${T}-rtl`]:s==="rtl",[`${T}-align-${k}`]:k,[`${T}-gap-row-${C}`]:E,[`${T}-gap-col-${w}`]:O},u,f,N),j=me(`${T}-item`,(r=y==null?void 0:y.item)!==null&&r!==void 0?r:(i=o==null?void 0:o.classNames)===null||i===void 0?void 0:i.item);let F=0;const B=M.map((W,q)=>{var H,U;W!=null&&(F=q);const G=(W==null?void 0:W.key)||`${j}-${q}`;return b.createElement(Q8e,{className:j,key:G,index:q,split:g,style:(H=x==null?void 0:x.item)!==null&&H!==void 0?H:(U=o==null?void 0:o.styles)===null||U===void 0?void 0:U.item},W)}),D=b.useMemo(()=>({latestIndex:F}),[F]);if(M.length===0)return null;const z={};return m&&(z.flexWrap="wrap"),!O&&P&&(z.columnGap=w),!E&&$&&(z.rowGap=C),R(b.createElement("div",Object.assign({ref:t,className:L,style:Object.assign(Object.assign(Object.assign({},z),o==null?void 0:o.style),v)},S),b.createElement(Z8e,{value:D},B)))});va.Compact=sPe;var eLe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPopupContainer:t,getPrefixCls:n,direction:r}=b.useContext(Lt),{prefixCls:i,type:a="default",danger:o,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:d,menu:h,arrow:p,autoFocus:g,overlay:v,trigger:m,align:y,open:x,onOpenChange:S,placement:w,getPopupContainer:C,href:E,icon:O=b.createElement(RI,null),title:$,buttonsRender:P=K=>K,mouseEnterDelay:M,mouseLeaveDelay:k,overlayClassName:T,overlayStyle:R,destroyPopupOnHide:A,dropdownRender:N}=e,L=eLe(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),j=n("dropdown",i),F=`${j}-button`,B={menu:h,arrow:p,autoFocus:g,align:y,disabled:s,trigger:s?[]:m,onOpenChange:S,getPopupContainer:C||t,mouseEnterDelay:M,mouseLeaveDelay:k,overlayClassName:T,overlayStyle:R,destroyPopupOnHide:A,dropdownRender:N},{compactSize:D,compactItemClassnames:z}=kd(j,r),W=me(F,z,d);"overlay"in e&&(B.overlay=v),"open"in e&&(B.open=x),"placement"in e?B.placement=w:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const q=b.createElement(zn,{type:a,danger:o,disabled:s,loading:l,onClick:c,htmlType:u,href:E,title:$},f),H=b.createElement(zn,{type:a,danger:o,icon:O}),[U,G]=P([q,H]);return b.createElement(va.Compact,Object.assign({className:W,size:D,block:!0},L),U,b.createElement(ab,Object.assign({},B),G))};QZ.__ANT_BUTTON=!0;const FE=ab;FE.Button=QZ;function BE(e){const[t,n]=b.useState(e);return b.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const tLe=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},jZ=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",d=t?"top":"insetInlineStart",h=s(r).mul(3).sub(i).div(2).equal(),p=s(i).sub(r).div(2).equal(),v=t?{borderWidth:`${ue(p)} 0`,transform:`translateY(${ue(s(p).mul(-1).equal())})`}:{borderWidth:`0 ${ue(p)}`,transform:`translateX(${ue(e.calc(p).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},v),[`${n}-handle`]:{[f]:h},[`${n}-mark`]:{insetInlineStart:0,top:0,[d]:s(r).mul(3).add(t?0:o).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[d]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(a).div(2).equal()}}},o8e=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},jZ(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},s8e=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},jZ(e,!1)),{height:"100%"})}},l8e=tr("Slider",e=>{const t=_n(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[a8e(t),o8e(t),s8e(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,a=e.lineWidth+1*1.5,o=e.colorPrimary,s=new Un(o).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:o,handleActiveOutlineColor:s,handleColorDisabled:new Un(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}),c8e=b.createContext({});function v5(){const[e,t]=b.useState(!1),n=b.useRef(null),r=()=>{Sn.cancel(n.current)},i=a=>{r(),a?t(a):n.current=Sn(()=>{t(a)})};return b.useEffect(()=>r,[]),[e,i]}var u8e=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 i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const g5=we.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:i,rootClassName:a,style:o,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:d,tooltip:h={},onChangeComplete:p}=e,v=u8e(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:g}=e,{direction:m,slider:y,getPrefixCls:x,getPopupContainer:S}=we.useContext(At),w=we.useContext(mo),C=s!=null?s:w,{handleRender:E,direction:O}=we.useContext(c8e),P=(O||m)==="rtl",[M,k]=v5(),[T,R]=v5(),A=Object.assign({},h),{open:N,placement:L,getPopupContainer:j,prefixCls:F,formatter:B}=A,D=N!=null?N:u,z=(M||T)&&D!==!1,W=f8e(B,c),[q,H]=v5(),U=oe=>{p==null||p(oe),H(!1)},G=(oe,re)=>oe||(re?P?"left":"right":"top"),K=x("slider",n),[X,Q,ee]=l8e(K),ne=me(i,y==null?void 0:y.className,a,{[`${K}-rtl`]:P,[`${K}-lock`]:q},Q,ee);P&&!v.vertical&&(v.reverse=!v.reverse),we.useEffect(()=>{const oe=()=>{Sn(()=>{R(!1)},1)};return document.addEventListener("mouseup",oe),()=>{document.removeEventListener("mouseup",oe)}},[]);const te=r&&!D,ie=E||((oe,re)=>{const{index:se}=re,ge=oe.props;function de(Oe,_e,Te){var Fe,Be,Pe,ze;Te&&((Be=(Fe=v)[Oe])===null||Be===void 0||Be.call(Fe,_e)),(ze=(Pe=ge)[Oe])===null||ze===void 0||ze.call(Pe,_e)}const pe=Object.assign(Object.assign({},ge),{onMouseEnter:Oe=>{k(!0),de("onMouseEnter",Oe)},onMouseLeave:Oe=>{k(!1),de("onMouseLeave",Oe)},onMouseDown:Oe=>{R(!0),H(!0),de("onMouseDown",Oe)},onFocus:Oe=>{var _e;R(!0),(_e=v.onFocus)===null||_e===void 0||_e.call(v,Oe),de("onFocus",Oe,!0)},onBlur:Oe=>{var _e;R(!1),(_e=v.onBlur)===null||_e===void 0||_e.call(v,Oe),de("onBlur",Oe,!0)}}),fe=we.cloneElement(oe,pe),xe=(!!D||z)&&W!==null;return te?fe:we.createElement(LZ,Object.assign({},A,{prefixCls:x("tooltip",F!=null?F:l),title:W?W(re.value):"",open:xe,placement:G(L!=null?L:d,g),key:se,overlayClassName:`${K}-tooltip`,getPopupContainer:j||f||S}),fe)}),J=te?(oe,re)=>{const se=we.cloneElement(oe,{style:Object.assign(Object.assign({},oe.props.style),{visibility:"hidden"})});return we.createElement(LZ,Object.assign({},A,{prefixCls:x("tooltip",F!=null?F:l),title:W?W(re.value):"",open:W!==null&&z,placement:G(L!=null?L:d,g),key:"tooltip",overlayClassName:`${K}-tooltip`,getPopupContainer:j||f||S,draggingDelete:re.draggingDelete}),se)}:void 0,le=Object.assign(Object.assign({},y==null?void 0:y.style),o);return X(we.createElement(i8e,Object.assign({},v,{step:v.step,range:r,className:ne,style:le,disabled:C,ref:t,prefixCls:K,handleRender:ie,activeHandleRender:J,onChangeComplete:U})))});var d8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},h8e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:d8e}))},DZ=b.forwardRef(h8e),p8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},v8e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:p8e}))},FZ=b.forwardRef(v8e),g8e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},m8e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:g8e}))},y8e=b.forwardRef(m8e);function b8e(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function x8e(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function BZ(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=KK(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[b.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[S8e,w8e]=["week","WeekPicker"],[C8e,E8e]=["month","MonthPicker"],[O8e,_8e]=["year","YearPicker"],[$8e,P8e]=["quarter","QuarterPicker"],[zZ,HZ]=["time","TimePicker"],M8e=e=>b.createElement(Hn,Object.assign({size:"small",type:"primary"},e));function WZ(e){return b.useMemo(()=>Object.assign({button:M8e},e),[e])}var k8e=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 i=0,r=Object.getOwnPropertySymbols(e);ib.forwardRef((n,r)=>{var i;const{prefixCls:a,getPopupContainer:o,components:s,className:l,style:c,placement:u,size:f,disabled:d,bordered:h=!0,placeholder:p,popupClassName:v,dropdownClassName:g,status:m,rootClassName:y,variant:x,picker:S}=n,w=k8e(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),C=b.useRef(null),{getPrefixCls:E,direction:O,getPopupContainer:$,rangePicker:P}=b.useContext(At),M=E("picker",a),{compactSize:k,compactItemClassnames:T}=Td(M,O),R=E(),[A,N]=bp("rangePicker",x,h),L=Ti(M),[j,F,B]=KX(M,L),[D]=BZ(n,M),z=WZ(s),W=ja(ie=>{var J;return(J=f!=null?f:k)!==null&&J!==void 0?J:ie}),q=b.useContext(mo),H=d!=null?d:q,U=b.useContext(Fa),{hasFeedback:G,status:K,feedbackIcon:X}=U,Q=b.createElement(b.Fragment,null,S===zZ?b.createElement(FZ,null):b.createElement(DZ,null),G&&X);b.useImperativeHandle(r,()=>C.current);const[ee]=Zo("Calendar",PS),ne=Object.assign(Object.assign({},ee),n.locale),[te]=of("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return j(b.createElement(cf,{space:!0},b.createElement(A5e,Object.assign({separator:b.createElement("span",{"aria-label":"to",className:`${M}-separator`},b.createElement(y8e,null)),disabled:H,ref:C,placement:u,placeholder:x8e(ne,S,p),suffixIcon:Q,prevIcon:b.createElement("span",{className:`${M}-prev-icon`}),nextIcon:b.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:b.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:b.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${R}-slide-up`,picker:S},w,{className:me({[`${M}-${W}`]:W,[`${M}-${A}`]:N},uf(M,Ad(K,m),G),F,T,l,P==null?void 0:P.className,B,L,y),style:Object.assign(Object.assign({},P==null?void 0:P.style),c),locale:ne.lang,prefixCls:M,getPopupContainer:o||$,generateConfig:e,components:z,direction:O,classNames:{popup:me(F,v||g,B,L,y)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:te})},allowClear:D}))))});var R8e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const t=(l,c)=>{const u=c===HZ?"timePicker":"datePicker";return b.forwardRef((d,h)=>{var p;const{prefixCls:v,getPopupContainer:g,components:m,style:y,className:x,rootClassName:S,size:w,bordered:C,placement:E,placeholder:O,popupClassName:$,dropdownClassName:P,disabled:M,status:k,variant:T,onCalendarChange:R}=d,A=R8e(d,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:N,direction:L,getPopupContainer:j,[u]:F}=b.useContext(At),B=N("picker",v),{compactSize:D,compactItemClassnames:z}=Td(B,L),W=b.useRef(null),[q,H]=bp("datePicker",T,C),U=Ti(B),[G,K,X]=KX(B,U);b.useImperativeHandle(h,()=>W.current);const Q={showToday:!0},ee=l||d.picker,ne=N(),{onSelect:te,multiple:ie}=A,J=te&&l==="time"&&!ie,le=(ze,Ue,ke)=>{R==null||R(ze,Ue,ke),J&&te(ze)},[oe,re]=BZ(d,B),se=WZ(m),ge=ja(ze=>{var Ue;return(Ue=w!=null?w:D)!==null&&Ue!==void 0?Ue:ze}),de=b.useContext(mo),pe=M!=null?M:de,fe=b.useContext(Fa),{hasFeedback:xe,status:Oe,feedbackIcon:_e}=fe,Te=b.createElement(b.Fragment,null,ee==="time"?b.createElement(FZ,null):b.createElement(DZ,null),xe&&_e),[Fe]=Zo("DatePicker",PS),Be=Object.assign(Object.assign({},Fe),d.locale),[Pe]=of("DatePicker",(p=d.popupStyle)===null||p===void 0?void 0:p.zIndex);return G(b.createElement(cf,{space:!0},b.createElement(B5e,Object.assign({ref:W,placeholder:b8e(Be,ee,O),suffixIcon:Te,placement:E,prevIcon:b.createElement("span",{className:`${B}-prev-icon`}),nextIcon:b.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:b.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:b.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${ne}-slide-up`,picker:l,onCalendarChange:le},Q,A,{locale:Be.lang,className:me({[`${B}-${ge}`]:ge,[`${B}-${q}`]:H},uf(B,Ad(Oe,k),xe),K,z,F==null?void 0:F.className,x,X,U,S),style:Object.assign(Object.assign({},F==null?void 0:F.style),y),prefixCls:B,getPopupContainer:g||j,generateConfig:e,components:se,direction:L,disabled:pe,classNames:{popup:me(K,X,U,S,$||P)},styles:{popup:Object.assign(Object.assign({},d.popupStyle),{zIndex:Pe})},allowClear:oe,removeIcon:re}))))})},n=t(),r=t(S8e,w8e),i=t(C8e,E8e),a=t(O8e,_8e),o=t($8e,P8e),s=t(zZ,HZ);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:s,QuarterPicker:o}},VZ=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=I8e(e),s=T8e(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=o,l},df=VZ(WIe),A8e=U1(df,"picker",null);df._InternalPanelDoNotUseOrYouWillBeFired=A8e;const N8e=U1(df.RangePicker,"picker",null);df._InternalRangePanelDoNotUseOrYouWillBeFired=N8e,df.generatePicker=VZ;const L8e={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},qZ=we.createContext({});var j8e=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 i=0,r=Object.getOwnPropertySymbols(e);ida(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function F8e(e,t,n){const r=b.useMemo(()=>t||D8e(n),[t,n]);return b.useMemo(()=>r.map(a=>{var{span:o}=a,s=j8e(a,["span"]);return o==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof o=="number"?o:ZK(e,o)})}),[r,e])}var B8e=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 i=0,r=Object.getOwnPropertySymbols(e);io).forEach(o=>{const{filled:s}=o,l=B8e(o,["filled"]);if(s){r.push(l),n.push(r),r=[],a=0;return}const c=t-a;a+=o.span||1,a>=t?(a>t?(i=!0,r.push(Object.assign(Object.assign({},l),{span:c}))):r.push(l),n.push(r),r=[],a=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(o=>{const s=o.reduce((l,c)=>l+(c.span||1),0);if(s{const[n,r]=b.useMemo(()=>z8e(t,e),[t,e]);return n},W8e=e=>{let{children:t}=e;return t};function UZ(e){return e!=null}const m5=e=>{const{itemPrefixCls:t,component:n,span:r,className:i,style:a,labelStyle:o,contentStyle:s,bordered:l,label:c,content:u,colon:f,type:d}=e,h=n;return l?b.createElement(h,{className:me({[`${t}-item-label`]:d==="label",[`${t}-item-content`]:d==="content"},i),style:a,colSpan:r},UZ(c)&&b.createElement("span",{style:o},c),UZ(u)&&b.createElement("span",{style:s},u)):b.createElement(h,{className:me(`${t}-item`,i),style:a,colSpan:r},b.createElement("div",{className:`${t}-item-container`},(c||c===0)&&b.createElement("span",{className:me(`${t}-item-label`,{[`${t}-item-no-colon`]:!f}),style:o},c),(u||u===0)&&b.createElement("span",{className:me(`${t}-item-content`),style:s},u)))};function y5(e,t,n){let{colon:r,prefixCls:i,bordered:a}=t,{component:o,type:s,showLabel:l,showContent:c,labelStyle:u,contentStyle:f}=n;return e.map((d,h)=>{let{label:p,children:v,prefixCls:g=i,className:m,style:y,labelStyle:x,contentStyle:S,span:w=1,key:C}=d;return typeof o=="string"?b.createElement(m5,{key:`${s}-${C||h}`,className:m,style:y,labelStyle:Object.assign(Object.assign({},u),x),contentStyle:Object.assign(Object.assign({},f),S),span:w,colon:r,component:o,itemPrefixCls:g,bordered:a,label:l?p:null,content:c?v:null,type:s}):[b.createElement(m5,{key:`label-${C||h}`,className:m,style:Object.assign(Object.assign(Object.assign({},u),y),x),span:1,colon:r,component:o[0],itemPrefixCls:g,bordered:a,label:p,type:"label"}),b.createElement(m5,{key:`content-${C||h}`,className:m,style:Object.assign(Object.assign(Object.assign({},f),y),S),span:w*2-1,component:o[1],itemPrefixCls:g,bordered:a,content:v,type:"content"})]})}const V8e=e=>{const t=b.useContext(qZ),{prefixCls:n,vertical:r,row:i,index:a,bordered:o}=e;return r?b.createElement(b.Fragment,null,b.createElement("tr",{key:`label-${a}`,className:`${n}-row`},y5(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),b.createElement("tr",{key:`content-${a}`,className:`${n}-row`},y5(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):b.createElement("tr",{key:a,className:`${n}-row`},y5(i,e,Object.assign({component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},q8e=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ue(e.padding)} ${ue(e.paddingLG)}`,borderInlineEnd:`${ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ue(e.paddingSM)} ${ue(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ue(e.paddingXS)} ${ue(e.padding)}`}}}}}},U8e=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:a,colonMarginLeft:o,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},er(e)),q8e(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},Qo),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${ue(o)} ${ue(a)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},G8e=tr("Descriptions",e=>{const t=_n(e,{});return U8e(t)},e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}));var K8e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,title:n,extra:r,column:i,colon:a=!0,bordered:o,layout:s,children:l,className:c,rootClassName:u,style:f,size:d,labelStyle:h,contentStyle:p,items:v}=e,g=K8e(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:m,direction:y,descriptions:x}=b.useContext(At),S=m("descriptions",t),w=fI(),C=b.useMemo(()=>{var R;return typeof i=="number"?i:(R=ZK(w,Object.assign(Object.assign({},L8e),i)))!==null&&R!==void 0?R:3},[w,i]),E=F8e(w,v,l),O=ja(d),$=H8e(C,E),[P,M,k]=G8e(S),T=b.useMemo(()=>({labelStyle:h,contentStyle:p}),[h,p]);return P(b.createElement(qZ.Provider,{value:T},b.createElement("div",Object.assign({className:me(S,x==null?void 0:x.className,{[`${S}-${O}`]:O&&O!=="default",[`${S}-bordered`]:!!o,[`${S}-rtl`]:y==="rtl"},c,u,M,k),style:Object.assign(Object.assign({},x==null?void 0:x.style),f)},g),(n||r)&&b.createElement("div",{className:`${S}-header`},n&&b.createElement("div",{className:`${S}-title`},n),r&&b.createElement("div",{className:`${S}-extra`},r)),b.createElement("div",{className:`${S}-view`},b.createElement("table",null,b.createElement("tbody",null,$.map((R,A)=>b.createElement(V8e,{key:A,index:A,colon:a,prefixCls:S,vertical:s==="vertical",bordered:o,row:R}))))))))};gm.Item=W8e;function GZ(e){return["small","middle","large"].includes(e)}function KZ(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const YZ=we.createContext({latestIndex:0}),Y8e=YZ.Provider,X8e=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:o}=b.useContext(YZ);return r==null?null:b.createElement(b.Fragment,null,b.createElement("div",{className:t,style:a},r),n{var n,r,i;const{getPrefixCls:a,space:o,direction:s}=b.useContext(At),{size:l=(n=o==null?void 0:o.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:f,children:d,direction:h="horizontal",prefixCls:p,split:v,style:g,wrap:m=!1,classNames:y,styles:x}=e,S=Z8e(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,C]=Array.isArray(l)?l:[l,l],E=GZ(C),O=GZ(w),$=KZ(C),P=KZ(w),M=da(d,{keepEmpty:!0}),k=c===void 0&&h==="horizontal"?"center":c,T=a("space",p),[R,A,N]=jU(T),L=me(T,o==null?void 0:o.className,A,`${T}-${h}`,{[`${T}-rtl`]:s==="rtl",[`${T}-align-${k}`]:k,[`${T}-gap-row-${C}`]:E,[`${T}-gap-col-${w}`]:O},u,f,N),j=me(`${T}-item`,(r=y==null?void 0:y.item)!==null&&r!==void 0?r:(i=o==null?void 0:o.classNames)===null||i===void 0?void 0:i.item);let F=0;const B=M.map((W,q)=>{var H,U;W!=null&&(F=q);const G=(W==null?void 0:W.key)||`${j}-${q}`;return b.createElement(X8e,{className:j,key:G,index:q,split:v,style:(H=x==null?void 0:x.item)!==null&&H!==void 0?H:(U=o==null?void 0:o.styles)===null||U===void 0?void 0:U.item},W)}),D=b.useMemo(()=>({latestIndex:F}),[F]);if(M.length===0)return null;const z={};return m&&(z.flexWrap="wrap"),!O&&P&&(z.columnGap=w),!E&&$&&(z.rowGap=C),R(b.createElement("div",Object.assign({ref:t,className:L,style:Object.assign(Object.assign(Object.assign({},z),o==null?void 0:o.style),g)},S),b.createElement(Y8e,{value:D},B)))});va.Compact=aPe;var Q8e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPopupContainer:t,getPrefixCls:n,direction:r}=b.useContext(At),{prefixCls:i,type:a="default",danger:o,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:d,menu:h,arrow:p,autoFocus:v,overlay:g,trigger:m,align:y,open:x,onOpenChange:S,placement:w,getPopupContainer:C,href:E,icon:O=b.createElement(PI,null),title:$,buttonsRender:P=K=>K,mouseEnterDelay:M,mouseLeaveDelay:k,overlayClassName:T,overlayStyle:R,destroyPopupOnHide:A,dropdownRender:N}=e,L=Q8e(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),j=n("dropdown",i),F=`${j}-button`,B={menu:h,arrow:p,autoFocus:v,align:y,disabled:s,trigger:s?[]:m,onOpenChange:S,getPopupContainer:C||t,mouseEnterDelay:M,mouseLeaveDelay:k,overlayClassName:T,overlayStyle:R,destroyPopupOnHide:A,dropdownRender:N},{compactSize:D,compactItemClassnames:z}=Td(j,r),W=me(F,z,d);"overlay"in e&&(B.overlay=g),"open"in e&&(B.open=x),"placement"in e?B.placement=w:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const q=b.createElement(Hn,{type:a,danger:o,disabled:s,loading:l,onClick:c,htmlType:u,href:E,title:$},f),H=b.createElement(Hn,{type:a,danger:o,icon:O}),[U,G]=P([q,H]);return b.createElement(va.Compact,Object.assign({className:W,size:D,block:!0},L),U,b.createElement(ab,Object.assign({},B),G))};XZ.__ANT_BUTTON=!0;const jE=ab;jE.Button=XZ;function DE(e){const[t,n]=b.useState(e);return b.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const J8e=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, opacity ${e.motionDurationFast} ${e.motionEaseInOut}, - transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},nLe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${fe(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),JZ=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},rLe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},er(e)),nLe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},JZ(e,e.controlHeightSM)),"&-large":Object.assign({},JZ(e,e.controlHeightLG))})}},iLe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:a,labelRequiredMarkColor:o,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},er(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:bR,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},eQ=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},aLe=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},_c=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),tQ=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:_c(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},oLe=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, + transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},eLe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ue(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),ZZ=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},tLe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},er(e)),eLe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},ZZ(e,e.controlHeightSM)),"&-large":Object.assign({},ZZ(e,e.controlHeightLG))})}},nLe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:a,labelRequiredMarkColor:o,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},er(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:vR,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},QZ=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},rLe=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},_c=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),JZ=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:_c(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},iLe=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, ${r}-col-24${n}-label, - ${r}-col-xl-24${n}-label`]:_c(e)}},[`@media (max-width: ${fe(e.screenXSMax)})`]:[tQ(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:_c(e)}}}],[`@media (max-width: ${fe(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:_c(e)}}},[`@media (max-width: ${fe(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:_c(e)}}},[`@media (max-width: ${fe(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:_c(e)}}}}},sLe=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, + ${r}-col-xl-24${n}-label`]:_c(e)}},[`@media (max-width: ${ue(e.screenXSMax)})`]:[JZ(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:_c(e)}}}],[`@media (max-width: ${ue(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:_c(e)}}},[`@media (max-width: ${ue(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:_c(e)}}},[`@media (max-width: ${ue(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:_c(e)}}}}},aLe=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, ${n}-col-24${t}-label, - ${n}-col-xl-24${t}-label`]:_c(e),[`@media (max-width: ${fe(e.screenXSMax)})`]:[tQ(e),{[t]:{[`${n}-col-xs-24${t}-label`]:_c(e)}}],[`@media (max-width: ${fe(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:_c(e)}},[`@media (max-width: ${fe(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:_c(e)}},[`@media (max-width: ${fe(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:_c(e)}}}},lLe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),nQ=(e,t)=>$n(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),C5=tr("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=nQ(e,n);return[rLe(r),iLe(r),tLe(r),eQ(r,r.componentCls),eQ(r,r.formItemCls),aLe(r),oLe(r),sLe(r),D1(r),bR]},lLe,{order:-1e3}),rQ=[];function E5(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const iQ=e=>{let{help:t,helpStatus:n,errors:r=rQ,warnings:i=rQ,className:a,fieldId:o,onVisibleChanged:s}=e;const{prefixCls:l}=b.useContext(GR),c=`${l}-item-explain`,u=Ti(l),[f,d,h]=C5(l,u),p=b.useMemo(()=>Hg(l),[l]),g=BE(r),v=BE(i),m=b.useMemo(()=>t!=null?[E5(t,"help",n)]:[].concat(Ne(g.map((S,w)=>E5(S,"error","error",w))),Ne(v.map((S,w)=>E5(S,"warning","warning",w)))),[t,n,g,v]),y=b.useMemo(()=>{const S={};return m.forEach(w=>{let{key:C}=w;S[C]=(S[C]||0)+1}),m.map((w,C)=>Object.assign(Object.assign({},w),{key:S[w.key]>1?`${w.key}-fallback-${C}`:w.key}))},[m]),x={};return o&&(x.id=`${o}_help`),f(b.createElement(Jo,{motionDeadline:p.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:s},S=>{const{className:w,style:C}=S;return b.createElement("div",Object.assign({},x,{className:me(c,w,h,u,a,d),style:C,role:"alert"}),b.createElement(ZT,Object.assign({keys:y},Hg(l),{motionName:`${l}-show-help-item`,component:!1}),E=>{const{key:O,error:$,errorStatus:P,className:M,style:k}=E;return b.createElement("div",{key:O,className:me(M,{[`${c}-${P}`]:P}),style:k},$)}))}))},cLe=["parentNode"],uLe="form_item";function yb(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function aQ(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:cLe.includes(n)?`${uLe}_${n}`:n}function oQ(e,t,n,r,i,a){let o=r;return a!==void 0?o=a:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||i&&n.validated)&&(o="success"),o}function sQ(e){return yb(e).join("_")}function lQ(e,t){const n=t.getFieldInstance(e),r=G4(n);if(r)return r;const i=aQ(yb(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function cQ(e){const[t]=qR(),n=b.useRef({}),r=b.useMemo(()=>e!=null?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>a=>{const o=sQ(i);a?n.current[o]=a:delete n.current[o]}},scrollToField:function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=lQ(i,r);o&&c$e(o,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},focusField:i=>{var a;const o=lQ(i,r);o&&((a=o.focus)===null||a===void 0||a.call(o))},getFieldInstance:i=>{const a=sQ(i);return n.current[a]}}),[e,t]);return[r]}var fLe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const n=b.useContext(mo),{getPrefixCls:r,direction:i,form:a}=b.useContext(Lt),{prefixCls:o,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:d,labelAlign:h,labelWrap:p,labelCol:g,wrapperCol:v,hideRequiredMark:m,layout:y="horizontal",scrollToFirstError:x,requiredMark:S,onFinishFailed:w,name:C,style:E,feedbackIcons:O,variant:$}=e,P=fLe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),M=ja(c),k=b.useContext(pq),T=b.useMemo(()=>S!==void 0?S:m?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[m,S,a]),R=d!=null?d:a==null?void 0:a.colon,A=r("form",o),N=Ti(A),[L,j,F]=C5(A,N),B=me(A,`${A}-${y}`,{[`${A}-hide-required-mark`]:T===!1,[`${A}-rtl`]:i==="rtl",[`${A}-${M}`]:M},F,N,j,a==null?void 0:a.className,s,l),[D]=cQ(f),{__INTERNAL__:z}=D;z.name=C;const W=b.useMemo(()=>({name:C,labelAlign:h,labelCol:g,labelWrap:p,wrapperCol:v,vertical:y==="vertical",colon:R,requiredMark:T,itemRef:z.itemRef,form:D,feedbackIcons:O}),[C,h,g,v,y,R,T,D,O]),q=b.useRef(null);b.useImperativeHandle(t,()=>{var G;return Object.assign(Object.assign({},D),{nativeElement:(G=q.current)===null||G===void 0?void 0:G.nativeElement})});const H=(G,K)=>{if(G){let X={block:"nearest"};typeof G=="object"&&(X=Object.assign(Object.assign({},X),G)),D.scrollToField(K,X),X.focus&&D.focusField(K)}},U=G=>{if(w==null||w(G),G.errorFields.length){const K=G.errorFields[0].name;if(x!==void 0){H(x,K);return}a&&a.scrollToFirstError!==void 0&&H(a.scrollToFirstError,K)}};return L(b.createElement(LG.Provider,{value:$},b.createElement(FT,{disabled:u},b.createElement(dp.Provider,{value:M},b.createElement(NG,{validateMessages:k},b.createElement(lf.Provider,{value:W},b.createElement(Xg,Object.assign({id:C},P,{name:C,onFinishFailed:U,form:D,ref:q,style:Object.assign(Object.assign({},a==null?void 0:a.style),E),className:B}))))))))},hLe=b.forwardRef(dLe);function pLe(e){if(typeof e=="function")return e;const t=da(e);return t.length<=1?t[0]:t}const uQ=()=>{const{status:e,errors:t=[],warnings:n=[]}=b.useContext(Fa);return{status:e,errors:t,warnings:n}};uQ.Context=Fa;function vLe(e){const[t,n]=b.useState(e),r=b.useRef(null),i=b.useRef([]),a=b.useRef(!1);b.useEffect(()=>(a.current=!1,()=>{a.current=!0,bn.cancel(r.current),r.current=null}),[]);function o(s){a.current||(r.current===null&&(i.current=[],r.current=bn(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,o]}function gLe(){const{itemRef:e}=b.useContext(lf),t=b.useRef({});function n(r,i){const a=i&&typeof i=="object"&&bd(i),o=r.join("_");return(t.current.name!==o||t.current.originRef!==a)&&(t.current.name=o,t.current.originRef=a,t.current.ref=po(e(r),a)),t.current.ref}return n}const mLe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},yLe=jg(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=nQ(e,n);return[mLe(r)]});var bLe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:d,onErrorVisibleChanged:h,label:p}=e,g=`${t}-item`,v=b.useContext(lf),m=b.useMemo(()=>{let R=Object.assign({},i||v.wrapperCol||{});return p===null&&!r&&!i&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(N=>{const L=N?[N]:[],j=Xo(v.labelCol,L),F=typeof j=="object"?j:{},B=Xo(R,L),D=typeof B=="object"?B:{};"span"in F&&!("offset"in D)&&F.spanbLe(v,["labelCol","wrapperCol"]),[v]),S=b.useRef(null),[w,C]=b.useState(0);Nn(()=>{c&&S.current?C(S.current.clientHeight):C(0)},[c]);const E=b.createElement("div",{className:`${g}-control-input`},b.createElement("div",{className:`${g}-control-input-content`},a)),O=b.useMemo(()=>({prefixCls:t,status:n}),[t,n]),$=d!==null||o.length||s.length?b.createElement(GR.Provider,{value:O},b.createElement(iQ,{fieldId:f,errors:o,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:h})):null,P={};f&&(P.id=`${f}_extra`);const M=c?b.createElement("div",Object.assign({},P,{className:`${g}-extra`,ref:S}),c):null,k=$||M?b.createElement("div",{className:`${g}-additional`,style:d?{minHeight:d+w}:{}},$,M):null,T=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:E,errorList:$,extra:M}):b.createElement(b.Fragment,null,E,k);return b.createElement(lf.Provider,{value:x},b.createElement(vr,Object.assign({},m,{className:y}),T),b.createElement(yLe,{prefixCls:t}))};var wLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},CLe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:wLe}))},ELe=b.forwardRef(CLe),OLe=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 i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:a,colon:o,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[d]=Zo("Form"),{labelAlign:h,labelCol:p,labelWrap:g,colon:v}=b.useContext(lf);if(!n)return null;const m=i||p||{},y=a||h,x=`${t}-item-label`,S=me(x,y==="left"&&`${x}-left`,m.className,{[`${x}-wrap`]:!!g});let w=n;const C=o===!0||v!==!1&&o!==!1;C&&!u&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const O=_Le(c);if(O){const{icon:k=b.createElement(ELe,null)}=O,T=OLe(O,["icon"]),R=b.createElement(ro,Object.assign({},T),b.cloneElement(k,{className:`${t}-item-tooltip`,title:"",onClick:A=>{A.preventDefault()},tabIndex:null}));w=b.createElement(b.Fragment,null,w,R)}const $=l==="optional",P=typeof l=="function";P?w=l(w,{required:!!s}):$&&!s&&(w=b.createElement(b.Fragment,null,w,b.createElement("span",{className:`${t}-item-optional`,title:""},(d==null?void 0:d.optional)||((f=_o.Form)===null||f===void 0?void 0:f.optional))));const M=me({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:$||P,[`${t}-item-no-colon`]:!C});return b.createElement(vr,Object.assign({},m,{className:S}),b.createElement("label",{htmlFor:r,className:M,title:typeof n=="string"?n:""},w))},PLe={success:I1,warning:zg,error:pp,validating:af};function fQ(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:a,prefixCls:o,meta:s,noStyle:l}=e;const c=`${o}-item`,{feedbackIcons:u}=b.useContext(lf),f=oQ(n,r,s,null,!!i,a),{isFormItemInput:d,status:h,hasFeedback:p,feedbackIcon:g}=b.useContext(Fa),v=b.useMemo(()=>{var m;let y;if(i){const S=i!==!0&&i.icons||u,w=f&&((m=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||m===void 0?void 0:m[f]),C=f&&PLe[f];y=w!==!1&&C?b.createElement("span",{className:me(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},w||b.createElement(C,null)):null}const x={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:y,isFormItemInput:!0};return l&&(x.status=(f!=null?f:h)||"",x.isFormItemInput=d,x.hasFeedback=!!(i!=null?i:p),x.feedbackIcon=i!==void 0?x.feedbackIcon:g),x},[f,i,l,d,h]);return b.createElement(Fa.Provider,{value:v},t)}var MLe=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 i=0,r=Object.getOwnPropertySymbols(e);i{if(M&&E.current){const F=getComputedStyle(E.current);R(parseInt(F.marginBottom,10))}},[M,k]);const A=F=>{F||R(null)},L=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const B=F?O:c.errors,D=F?$:c.warnings;return oQ(B,D,c,"",!!u,l)}(),j=me(x,n,r,{[`${x}-with-help`]:P||O.length||$.length,[`${x}-has-feedback`]:L&&u,[`${x}-has-success`]:L==="success",[`${x}-has-warning`]:L==="warning",[`${x}-has-error`]:L==="error",[`${x}-is-validating`]:L==="validating",[`${x}-hidden`]:f,[`${x}-${m}`]:m});return b.createElement("div",{className:j,style:i,ref:E},b.createElement(Ri,Object.assign({className:`${x}-row`},Or(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),b.createElement($Le,Object.assign({htmlFor:h},e,{requiredMark:S,required:p!=null?p:g,prefixCls:t,vertical:C})),b.createElement(SLe,Object.assign({},e,c,{errors:O,warnings:$,prefixCls:t,status:L,help:a,marginBottom:T,onErrorVisibleChanged:A}),b.createElement(AG.Provider,{value:v},b.createElement(fQ,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:L},d)))),!!T&&b.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-T}}))}const TLe="__SPLIT__";function RLe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const a=e[i],o=t[i];return a===o||typeof a=="function"||typeof o=="function"})}const ILe=b.memo(e=>{let{children:t}=e;return t},(e,t)=>RLe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function dQ(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ALe(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:d="onChange",validateTrigger:h,hidden:p,help:g,layout:v}=e,{getPrefixCls:m}=b.useContext(Lt),{name:y}=b.useContext(lf),x=pLe(l),S=typeof x=="function",w=b.useContext(AG),{validateTrigger:C}=b.useContext(gp),E=h!==void 0?h:C,O=t!=null,$=m("form",a),P=Ti($),[M,k,T]=C5($,P);Cd();const R=b.useContext(z1),A=b.useRef(null),[N,L]=vLe({}),[j,F]=hp(()=>dQ()),B=G=>{const K=R==null?void 0:R.getKey(G.name);if(F(G.destroy?dQ():G,!0),n&&g!==!1&&w){let X=G.name;if(G.destroy)X=A.current||X;else if(K!==void 0){const[Q,ee]=K;X=[Q].concat(Ne(ee)),A.current=X}w(G,X)}},D=(G,K)=>{L(X=>{const Q=Object.assign({},X),ne=[].concat(Ne(G.name.slice(0,-1)),Ne(K)).join(TLe);return G.destroy?delete Q[ne]:Q[ne]=G,Q})},[z,W]=b.useMemo(()=>{const G=Ne(j.errors),K=Ne(j.warnings);return Object.values(N).forEach(X=>{G.push.apply(G,Ne(X.errors||[])),K.push.apply(K,Ne(X.warnings||[]))}),[G,K]},[N,j.errors,j.warnings]),q=gLe();function H(G,K,X){return n&&!p?b.createElement(fQ,{prefixCls:$,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:j,errors:z,warnings:W,noStyle:!0},G):b.createElement(kLe,Object.assign({key:"row"},e,{className:me(r,T,P,k),prefixCls:$,fieldId:K,isRequired:X,errors:z,warnings:W,meta:j,onSubItemMetaChange:D,layout:v}),G)}if(!O&&!S&&!i)return M(H(x));let U={};return typeof u=="string"?U.label=u:t&&(U.label=String(t)),f&&(U=Object.assign(Object.assign({},U),f)),M(b.createElement(WR,Object.assign({},e,{messageVariables:U,trigger:d,validateTrigger:E,onMetaChange:B}),(G,K,X)=>{const Q=yb(t).length&&K?K.name:[],ee=aQ(Q,y),ne=c!==void 0?c:!!(s!=null&&s.some(J=>{if(J&&typeof J=="object"&&J.required&&!J.warningOnly)return!0;if(typeof J=="function"){const le=J(X);return(le==null?void 0:le.required)&&!(le!=null&&le.warningOnly)}return!1})),te=Object.assign({},G);let ie=null;if(Array.isArray(x)&&O)ie=x;else if(!(S&&(!(o||i)||O))){if(!(i&&!S&&!O))if(b.isValidElement(x)){const J=Object.assign(Object.assign({},x.props),te);if(J.id||(J.id=ee),g||z.length>0||W.length>0||e.extra){const re=[];(g||z.length>0)&&re.push(`${ee}_help`),e.extra&&re.push(`${ee}_extra`),J["aria-describedby"]=re.join(" ")}z.length>0&&(J["aria-invalid"]="true"),ne&&(J["aria-required"]="true"),vc(x)&&(J.ref=q(Q,x)),new Set([].concat(Ne(yb(d)),Ne(yb(E)))).forEach(re=>{J[re]=function(){for(var se,ge,de,pe,ue,Se=arguments.length,Oe=new Array(Se),_e=0;_e{var{prefixCls:t,children:n}=e,r=NLe(e,["prefixCls","children"]);const{getPrefixCls:i}=b.useContext(Lt),a=i("form",t),o=b.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return b.createElement(MG,Object.assign({},r),(s,l,c)=>b.createElement(GR.Provider,{value:o},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function jLe(){const{form:e}=b.useContext(lf);return e}const Rr=hLe;Rr.Item=hQ,Rr.List=LLe,Rr.ErrorList=iQ,Rr.useForm=cQ,Rr.useFormInstance=jLe,Rr.useWatch=IG,Rr.Provider=NG,Rr.create=()=>{};function pQ(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function O5(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function au(e,t,n,r){var i=v1.unstable_batchedUpdates?function(o){v1.unstable_batchedUpdates(n,o)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var bb=b.createContext(null),DLe=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,o=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,f=t.current,d=t.transform,h=t.count,p=t.scale,g=t.minScale,v=t.maxScale,m=t.closeIcon,y=t.onActive,x=t.onClose,S=t.onZoomIn,w=t.onZoomOut,C=t.onRotateRight,E=t.onRotateLeft,O=t.onFlipX,$=t.onFlipY,P=t.onReset,M=t.toolbarRender,k=t.zIndex,T=t.image,R=b.useContext(bb),A=s.rotateLeft,N=s.rotateRight,L=s.zoomIn,j=s.zoomOut,F=s.close,B=s.left,D=s.right,z=s.flipX,W=s.flipY,q="".concat(a,"-operations-operation");b.useEffect(function(){var le=function(re){re.keyCode===Ze.ESC&&x()};return n&&window.addEventListener("keydown",le),function(){window.removeEventListener("keydown",le)}},[n]);var H=function(oe,re){oe.preventDefault(),oe.stopPropagation(),y(re)},U=b.useCallback(function(le){var oe=le.type,re=le.disabled,se=le.onClick,ge=le.icon;return b.createElement("div",{key:oe,className:me(q,"".concat(a,"-operations-operation-").concat(oe),Z({},"".concat(a,"-operations-operation-disabled"),!!re)),onClick:se},ge)},[q,a]),G=c?U({icon:B,onClick:function(oe){return H(oe,-1)},type:"prev",disabled:f===0}):void 0,K=c?U({icon:D,onClick:function(oe){return H(oe,1)},type:"next",disabled:f===h-1}):void 0,X=U({icon:W,onClick:$,type:"flipY"}),Q=U({icon:z,onClick:O,type:"flipX"}),ee=U({icon:A,onClick:E,type:"rotateLeft"}),ne=U({icon:N,onClick:C,type:"rotateRight"}),te=U({icon:j,onClick:w,type:"zoomOut",disabled:p<=g}),ie=U({icon:L,onClick:S,type:"zoomIn",disabled:p===v}),J=b.createElement("div",{className:"".concat(a,"-operations")},X,Q,ee,ne,te,ie);return b.createElement(Jo,{visible:n,motionName:r},function(le){var oe=le.className,re=le.style;return b.createElement(YC,{open:!0,getContainer:i!=null?i:document.body},b.createElement("div",{className:me("".concat(a,"-operations-wrapper"),oe,o),style:ae(ae({},re),{},{zIndex:k})},m===null?null:b.createElement("button",{className:"".concat(a,"-close"),onClick:x},m||F),c&&b.createElement(b.Fragment,null,b.createElement("div",{className:me("".concat(a,"-switch-left"),Z({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:function(ge){return H(ge,-1)}},B),b.createElement("div",{className:me("".concat(a,"-switch-right"),Z({},"".concat(a,"-switch-right-disabled"),f===h-1)),onClick:function(ge){return H(ge,1)}},D)),b.createElement("div",{className:"".concat(a,"-footer")},u&&b.createElement("div",{className:"".concat(a,"-progress")},l?l(f+1,h):"".concat(f+1," / ").concat(h)),M?M(J,ae(ae({icons:{prevIcon:G,nextIcon:K,flipYIcon:X,flipXIcon:Q,rotateLeftIcon:ee,rotateRightIcon:ne,zoomOutIcon:te,zoomInIcon:ie},actions:{onActive:y,onFlipY:$,onFlipX:O,onRotateLeft:E,onRotateRight:C,onZoomOut:w,onZoomIn:S,onReset:P,onClose:x},transform:d},R?{current:f,total:h}:{}),{},{image:T})):J)))})},zE={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function FLe(e,t,n,r){var i=b.useRef(null),a=b.useRef([]),o=b.useState(zE),s=he(o,2),l=s[0],c=s[1],u=function(p){c(zE),yl(zE,l)||r==null||r({transform:zE,action:p})},f=function(p,g){i.current===null&&(a.current=[],i.current=bn(function(){c(function(v){var m=v;return a.current.forEach(function(y){m=ae(ae({},m),y)}),i.current=null,r==null||r({transform:m,action:g}),m})})),a.current.push(ae(ae({},l),p))},d=function(p,g,v,m,y){var x=e.current,S=x.width,w=x.height,C=x.offsetWidth,E=x.offsetHeight,O=x.offsetLeft,$=x.offsetTop,P=p,M=l.scale*p;M>n?(M=n,P=n/l.scale):Mr){if(t>0)return Z({},e,a);if(t<0&&ir)return Z({},e,t<0?a:-a);return{}}function gQ(e,t,n,r){var i=pQ(),a=i.width,o=i.height,s=null;return e<=a&&t<=o?s={x:0,y:0}:(e>a||t>o)&&(s=ae(ae({},vQ("x",n,e,a)),vQ("y",r,t,o))),s}var mm=1,BLe=1;function zLe(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,f=b.useState(!1),d=he(f,2),h=d[0],p=d[1],g=b.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(w){!t||w.button!==0||(w.preventDefault(),w.stopPropagation(),g.current={diffX:w.pageX-c,diffY:w.pageY-u,transformX:c,transformY:u},p(!0))},m=function(w){n&&h&&a({x:w.pageX-g.current.diffX,y:w.pageY-g.current.diffY},"move")},y=function(){if(n&&h){p(!1);var w=g.current,C=w.transformX,E=w.transformY,O=c!==C&&u!==E;if(!O)return;var $=e.current.offsetWidth*l,P=e.current.offsetHeight*l,M=e.current.getBoundingClientRect(),k=M.left,T=M.top,R=s%180!==0,A=gQ(R?P:$,R?$:P,k,T);A&&a(ae({},A),"dragRebound")}},x=function(w){if(!(!n||w.deltaY==0)){var C=Math.abs(w.deltaY/100),E=Math.min(C,BLe),O=mm+E*r;w.deltaY>0&&(O=mm/O),o(O,"wheel",w.clientX,w.clientY)}};return b.useEffect(function(){var S,w,C,E;if(t){C=au(window,"mouseup",y,!1),E=au(window,"mousemove",m,!1);try{window.top!==window.self&&(S=au(window.top,"mouseup",y,!1),w=au(window.top,"mousemove",m,!1))}catch(O){}}return function(){var O,$,P,M;(O=C)===null||O===void 0||O.remove(),($=E)===null||$===void 0||$.remove(),(P=S)===null||P===void 0||P.remove(),(M=w)===null||M===void 0||M.remove()}},[n,h,c,u,s,t]),{isMoving:h,onMouseDown:v,onMouseMove:m,onMouseUp:y,onWheel:x}}function HLe(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function mQ(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=b.useState(n?"loading":"normal"),a=he(i,2),o=a[0],s=a[1],l=b.useRef(!1),c=o==="error";b.useEffect(function(){var h=!0;return HLe(t).then(function(p){!p&&h&&s("error")}),function(){h=!1}},[t]),b.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},f=function(p){l.current=!1,o==="loading"&&p!==null&&p!==void 0&&p.complete&&(p.naturalWidth||p.naturalHeight)&&(l.current=!0,u())},d=c&&r?{src:r}:{onLoad:u,src:t};return[f,d,o]}function HE(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function WLe(e,t,n,r){var i=HE(e,n),a=HE(t,r);if(i===0&&a===0)return[e.x,e.y];var o=i/(i+a),s=e.x+o*(t.x-e.x),l=e.y+o*(t.y-e.y);return[s,l]}function VLe(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,f=b.useState(!1),d=he(f,2),h=d[0],p=d[1],g=b.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(w){g.current=ae(ae({},g.current),w)},m=function(w){if(t){w.stopPropagation(),p(!0);var C=w.touches,E=C===void 0?[]:C;E.length>1?v({point1:{x:E[0].clientX,y:E[0].clientY},point2:{x:E[1].clientX,y:E[1].clientY},eventType:"touchZoom"}):v({point1:{x:E[0].clientX-c,y:E[0].clientY-u},eventType:"move"})}},y=function(w){var C=w.touches,E=C===void 0?[]:C,O=g.current,$=O.point1,P=O.point2,M=O.eventType;if(E.length>1&&M==="touchZoom"){var k={x:E[0].clientX,y:E[0].clientY},T={x:E[1].clientX,y:E[1].clientY},R=WLe($,P,k,T),A=he(R,2),N=A[0],L=A[1],j=HE(k,T)/HE($,P);o(j,"touchZoom",N,L,!0),v({point1:k,point2:T,eventType:"touchZoom"})}else M==="move"&&(a({x:E[0].clientX-$.x,y:E[0].clientY-$.y},"move"),v({eventType:"move"}))},x=function(){if(n){if(h&&p(!1),v({eventType:"none"}),r>l)return a({x:0,y:0,scale:r},"touchZoom");var w=e.current.offsetWidth*l,C=e.current.offsetHeight*l,E=e.current.getBoundingClientRect(),O=E.left,$=E.top,P=s%180!==0,M=gQ(P?C:w,P?w:C,O,$);M&&a(ae({},M),"dragRebound")}};return b.useEffect(function(){var S;return n&&t&&(S=au(window,"touchmove",function(w){return w.preventDefault()},{passive:!1})),function(){var w;(w=S)===null||w===void 0||w.remove()}},[n,t]),{isTouching:h,onTouchStart:m,onTouchMove:y,onTouchEnd:x}}var qLe=["fallback","src","imgRef"],ULe=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],GLe=function(t){var n=t.fallback,r=t.src,i=t.imgRef,a=Vt(t,qLe),o=mQ({src:r,fallback:n}),s=he(o,2),l=s[0],c=s[1];return we.createElement("img",Le({ref:function(f){i.current=f,l(f)}},a,c))},yQ=function(t){var n=t.prefixCls,r=t.src,i=t.alt,a=t.imageInfo,o=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,f=t.icons,d=f===void 0?{}:f,h=t.rootClassName,p=t.closeIcon,g=t.getContainer,v=t.current,m=v===void 0?0:v,y=t.count,x=y===void 0?1:y,S=t.countRender,w=t.scaleStep,C=w===void 0?.5:w,E=t.minScale,O=E===void 0?1:E,$=t.maxScale,P=$===void 0?50:$,M=t.transitionName,k=M===void 0?"zoom":M,T=t.maskTransitionName,R=T===void 0?"fade":T,A=t.imageRender,N=t.imgCommonProps,L=t.toolbarRender,j=t.onTransform,F=t.onChange,B=Vt(t,ULe),D=b.useRef(),z=b.useContext(bb),W=z&&x>1,q=z&&x>=1,H=b.useState(!0),U=he(H,2),G=U[0],K=U[1],X=FLe(D,O,P,j),Q=X.transform,ee=X.resetTransform,ne=X.updateTransform,te=X.dispatchZoomChange,ie=zLe(D,l,u,C,Q,ne,te),J=ie.isMoving,le=ie.onMouseDown,oe=ie.onWheel,re=VLe(D,l,u,O,Q,ne,te),se=re.isTouching,ge=re.onTouchStart,de=re.onTouchMove,pe=re.onTouchEnd,ue=Q.rotate,Se=Q.scale,Oe=me(Z({},"".concat(n,"-moving"),J));b.useEffect(function(){G||K(!0)},[G]);var _e=function(){ee("close")},Te=function(){te(mm+C,"zoomIn")},je=function(){te(mm/(mm+C),"zoomOut")},Be=function(){ne({rotate:ue+90},"rotateRight")},Pe=function(){ne({rotate:ue-90},"rotateLeft")},He=function(){ne({flipX:!Q.flipX},"flipX")},Ue=function(){ne({flipY:!Q.flipY},"flipY")},ke=function(){ee("reset")},Ce=function(Tt){var Mt=m+Tt;!Number.isInteger(Mt)||Mt<0||Mt>x-1||(K(!1),ee(Tt<0?"prev":"next"),F==null||F(Mt,m))},Re=function(Tt){!u||!W||(Tt.keyCode===Ze.LEFT?Ce(-1):Tt.keyCode===Ze.RIGHT&&Ce(1))},Ae=function(Tt){u&&(Se!==1?ne({x:0,y:0,scale:1},"doubleClick"):te(mm+C,"doubleClick",Tt.clientX,Tt.clientY))};b.useEffect(function(){var et=au(window,"keydown",Re,!1);return function(){et.remove()}},[u,W,m]);var $e=we.createElement(GLe,Le({},N,{width:t.width,height:t.height,imgRef:D,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(Q.x,"px, ").concat(Q.y,"px, 0) scale3d(").concat(Q.flipX?"-":"").concat(Se,", ").concat(Q.flipY?"-":"").concat(Se,", 1) rotate(").concat(ue,"deg)"),transitionDuration:(!G||se)&&"0s"},fallback:o,src:r,onWheel:oe,onMouseDown:le,onDoubleClick:Ae,onTouchStart:ge,onTouchMove:de,onTouchEnd:pe,onTouchCancel:pe})),Ve=ae({url:r,alt:i},a);return we.createElement(we.Fragment,null,we.createElement(kR,Le({transitionName:k,maskTransitionName:R,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Oe},rootClassName:h,getContainer:g},B,{afterClose:_e}),we.createElement("div",{className:"".concat(n,"-img-wrapper")},A?A($e,ae({transform:Q,image:Ve},z?{current:m}:{})):$e)),we.createElement(DLe,{visible:u,transform:Q,maskTransitionName:R,closeIcon:p,getContainer:g,prefixCls:n,rootClassName:h,icons:d,countRender:S,showSwitch:W,showProgress:q,current:m,count:x,scale:Se,minScale:O,maxScale:P,toolbarRender:L,onActive:Ce,onZoomIn:Te,onZoomOut:je,onRotateRight:Be,onRotateLeft:Pe,onFlipX:He,onFlipY:Ue,onClose:c,onReset:ke,zIndex:B.zIndex!==void 0?B.zIndex+1:void 0,image:Ve}))},_5=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function KLe(e){var t=b.useState({}),n=he(t,2),r=n[0],i=n[1],a=b.useCallback(function(s,l){return i(function(c){return ae(ae({},c),{},Z({},s,l))}),function(){i(function(c){var u=ae({},c);return delete u[s],u})}},[]),o=b.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(Ne(_5)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,f=c.data;return u&&s.push({data:f,id:l}),s},[])},[e,r]);return[o,a,!!e]}var YLe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],XLe=["src"],ZLe=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,a=t.children,o=t.icons,s=o===void 0?{}:o,l=t.items,c=t.preview,u=t.fallback,f=Bt(c)==="object"?c:{},d=f.visible,h=f.onVisibleChange,p=f.getContainer,g=f.current,v=f.movable,m=f.minScale,y=f.maxScale,x=f.countRender,S=f.closeIcon,w=f.onChange,C=f.onTransform,E=f.toolbarRender,O=f.imageRender,$=Vt(f,YLe),P=KLe(l),M=he(P,3),k=M[0],T=M[1],R=M[2],A=Yn(0,{value:g}),N=he(A,2),L=N[0],j=N[1],F=b.useState(!1),B=he(F,2),D=B[0],z=B[1],W=((n=k[L])===null||n===void 0?void 0:n.data)||{},q=W.src,H=Vt(W,XLe),U=Yn(!!d,{value:d,onChange:function(se,ge){h==null||h(se,ge,L)}}),G=he(U,2),K=G[0],X=G[1],Q=b.useState(null),ee=he(Q,2),ne=ee[0],te=ee[1],ie=b.useCallback(function(re,se,ge,de){var pe=R?k.findIndex(function(ue){return ue.data.src===se}):k.findIndex(function(ue){return ue.id===re});j(pe<0?0:pe),X(!0),te({x:ge,y:de}),z(!0)},[k,R]);b.useEffect(function(){K?D||j(0):z(!1)},[K]);var J=function(se,ge){j(se),w==null||w(se,ge)},le=function(){X(!1),te(null)},oe=b.useMemo(function(){return{register:T,onPreview:ie}},[T,ie]);return b.createElement(bb.Provider,{value:oe},a,b.createElement(yQ,Le({"aria-hidden":!K,movable:v,visible:K,prefixCls:i,closeIcon:S,onClose:le,mousePosition:ne,imgCommonProps:H,src:q,fallback:u,icons:s,minScale:m,maxScale:y,getContainer:p,current:L,count:k.length,countRender:x,onTransform:C,toolbarRender:E,imageRender:O,onChange:J},$)))},bQ=0;function QLe(e,t){var n=b.useState(function(){return bQ+=1,String(bQ)}),r=he(n,1),i=r[0],a=b.useContext(bb),o={data:t,canPreview:e};return b.useEffect(function(){if(a)return a.register(i,o)},[]),b.useEffect(function(){a&&a.register(i,o)},[e,t]),i}var JLe=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],eje=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],$5=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,a=t.prefixCls,o=a===void 0?"rc-image":a,s=t.previewPrefixCls,l=s===void 0?"".concat(o,"-preview"):s,c=t.placeholder,u=t.fallback,f=t.width,d=t.height,h=t.style,p=t.preview,g=p===void 0?!0:p,v=t.className,m=t.onClick,y=t.onError,x=t.wrapperClassName,S=t.wrapperStyle,w=t.rootClassName,C=Vt(t,JLe),E=c&&c!==!0,O=Bt(g)==="object"?g:{},$=O.src,P=O.visible,M=P===void 0?void 0:P,k=O.onVisibleChange,T=k===void 0?i:k,R=O.getContainer,A=R===void 0?void 0:R,N=O.mask,L=O.maskClassName,j=O.movable,F=O.icons,B=O.scaleStep,D=O.minScale,z=O.maxScale,W=O.imageRender,q=O.toolbarRender,H=Vt(O,eje),U=$!=null?$:n,G=Yn(!!M,{value:M,onChange:T}),K=he(G,2),X=K[0],Q=K[1],ee=mQ({src:n,isCustomPlaceholder:E,fallback:u}),ne=he(ee,3),te=ne[0],ie=ne[1],J=ne[2],le=b.useState(null),oe=he(le,2),re=oe[0],se=oe[1],ge=b.useContext(bb),de=!!g,pe=function(){Q(!1),se(null)},ue=me(o,x,w,Z({},"".concat(o,"-error"),J==="error")),Se=b.useMemo(function(){var je={};return _5.forEach(function(Be){t[Be]!==void 0&&(je[Be]=t[Be])}),je},_5.map(function(je){return t[je]})),Oe=b.useMemo(function(){return ae(ae({},Se),{},{src:U})},[U,Se]),_e=QLe(de,Oe),Te=function(Be){var Pe=O5(Be.target),He=Pe.left,Ue=Pe.top;ge?ge.onPreview(_e,U,He,Ue):(se({x:He,y:Ue}),Q(!0)),m==null||m(Be)};return b.createElement(b.Fragment,null,b.createElement("div",Le({},C,{className:ue,onClick:de?Te:m,style:ae({width:f,height:d},S)}),b.createElement("img",Le({},Se,{className:me("".concat(o,"-img"),Z({},"".concat(o,"-img-placeholder"),c===!0),v),style:ae({height:d},h),ref:te},ie,{width:f,height:d,onError:y})),J==="loading"&&b.createElement("div",{"aria-hidden":"true",className:"".concat(o,"-placeholder")},c),N&&de&&b.createElement("div",{className:me("".concat(o,"-mask"),L),style:{display:(h==null?void 0:h.display)==="none"?"none":void 0}},N)),!ge&&de&&b.createElement(yQ,Le({"aria-hidden":!X,visible:X,prefixCls:l,onClose:pe,mousePosition:re,src:U,alt:r,imageInfo:{width:f,height:d},fallback:u,getContainer:A,icons:F,movable:j,scaleStep:B,minScale:D,maxScale:z,rootClassName:w,imageRender:W,imgCommonProps:Se,toolbarRender:q},H)))};$5.PreviewGroup=ZLe;var tje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},nje=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:tje}))},rje=b.forwardRef(nje),ije={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},aje=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:ije}))},oje=b.forwardRef(aje),sje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},lje=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:sje}))},WE=b.forwardRef(lje),cje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},uje=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:cje}))},fje=b.forwardRef(uje),dje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},hje=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:dje}))},pje=b.forwardRef(hje);const P5=e=>({position:e||"absolute",inset:0}),vje=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:a,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new Un("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},Qo),{padding:`0 ${fe(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},gje=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:a,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,d=new Un(n).setAlpha(.1),h=d.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:d.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${fe(o)}`,backgroundColor:d.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},mje=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:a,motionDurationSlow:o}=e,s=new Un(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},yje=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},P5()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},P5()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[gje(e),mje(e)]}]},bje=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},vje(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},P5())}}},xje=e=>{const{previewCls:t}=e;return{[`${t}-root`]:qg(e,"zoom"),"&":yR(e,!0)}},xQ=tr("Image",e=>{const t=`${e.componentCls}-preview`,n=$n(e,{previewCls:t,modalMaskBg:new Un("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[bje(n),yje(n),KG($n(n,{componentCls:t})),xje(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Un(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Un(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Un(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}));var Sje=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{previewPrefixCls:t,preview:n}=e,r=Sje(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=b.useContext(Lt),a=i("image",t),o=`${a}-preview`,s=i(),l=Ti(a),[c,u,f]=xQ(a,l),[d]=of("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=b.useMemo(()=>{var p;if(n===!1)return n;const g=typeof n=="object"?n:{},v=me(u,f,l,(p=g.rootClassName)!==null&&p!==void 0?p:"");return Object.assign(Object.assign({},g),{transitionName:wl(s,"zoom",g.transitionName),maskTransitionName:wl(s,"fade",g.maskTransitionName),rootClassName:v,zIndex:d})},[n]);return c(b.createElement($5.PreviewGroup,Object.assign({preview:h,previewPrefixCls:o,icons:SQ},r)))};var wQ=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 i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:o}=e,s=wQ(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=_o,getPopupContainer:u,image:f}=b.useContext(Lt),d=l("image",n),h=l(),p=c.Image||_o.Image,g=Ti(d),[v,m,y]=xQ(d,g),x=me(a,m,y,g),S=me(i,m,f==null?void 0:f.className),[w]=of("ImagePreview",typeof r=="object"?r.zIndex:void 0),C=b.useMemo(()=>{var O;if(r===!1)return r;const $=typeof r=="object"?r:{},{getContainer:P,closeIcon:M,rootClassName:k}=$,T=wQ($,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:b.createElement("div",{className:`${d}-mask-info`},b.createElement(d5,null),p==null?void 0:p.preview),icons:SQ},T),{rootClassName:me(x,k),getContainer:P!=null?P:u,transitionName:wl(h,"zoom",$.transitionName),maskTransitionName:wl(h,"fade",$.maskTransitionName),zIndex:w,closeIcon:M!=null?M:(O=f==null?void 0:f.preview)===null||O===void 0?void 0:O.closeIcon})},[r,p,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),E=Object.assign(Object.assign({},f==null?void 0:f.style),o);return v(b.createElement($5,Object.assign({prefixCls:d,preview:C,rootClassName:x,className:S,style:E},s)))};VE.PreviewGroup=wje;function Cje(e,t,n){return typeof n=="boolean"?n:e.length?!0:da(t).some(i=>i.type===AY)}var CQ=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 i=0,r=Object.getOwnPropertySymbols(e);ib.forwardRef((o,s)=>b.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const M5=b.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=CQ(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=b.useContext(Lt),l=s("layout",n),[c,u,f]=RY(l),d=r?`${l}-${r}`:l;return c(b.createElement(a,Object.assign({className:me(n||d,i,u,f),ref:t},o)))}),Eje=b.forwardRef((e,t)=>{const{direction:n}=b.useContext(Lt),[r,i]=b.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,d=CQ(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=Or(d,["suffixCls"]),{getPrefixCls:p,layout:g}=b.useContext(Lt),v=p("layout",a),m=Cje(r,l,c),[y,x,S]=RY(v),w=me(v,{[`${v}-has-sider`]:m,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,o,s,x,S),C=b.useMemo(()=>({siderHook:{addSider:E=>{i(O=>[].concat(Ne(O),[E]))},removeSider:E=>{i(O=>O.filter($=>$!==E))}}}),[]);return y(b.createElement(MY.Provider,{value:C},b.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},h),l)))}),Oje=qE({tagName:"div",displayName:"Layout"})(Eje),_je=qE({suffixCls:"header",tagName:"header",displayName:"Header"})(M5),$je=qE({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(M5),Pje=qE({suffixCls:"content",tagName:"main",displayName:"Content"})(M5),hf=Oje;hf.Header=_je,hf.Footer=$je,hf.Content=Pje,hf.Sider=AY,hf._InternalSiderContext=dE;const EQ=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const i=n[r];i!==void 0&&(e[r]=i)})}return e};var Mje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},kje=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:Mje}))},OQ=b.forwardRef(kje),Tje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Rje=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:Tje}))},_Q=b.forwardRef(Rje),Ije={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Aje=[10,20,50,100],Nje=function(t){var n=t.pageSizeOptions,r=n===void 0?Aje:n,i=t.locale,a=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,f=t.buildOptionText,d=t.showSizeChanger,h=t.sizeChangerRender,p=we.useState(""),g=he(p,2),v=g[0],m=g[1],y=function(){return!v||Number.isNaN(v)?void 0:Number(v)},x=typeof f=="function"?f:function(k){return"".concat(k," ").concat(i.items_per_page)},S=function(T){m(T.target.value)},w=function(T){s||v===""||(m(""),!(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||T.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(y())))},C=function(T){v!==""&&(T.keyCode===Ze.ENTER||T.type==="click")&&(m(""),l==null||l(y()))},E=function(){return r.some(function(T){return T.toString()===o.toString()})?r:r.concat([o]).sort(function(T,R){var A=Number.isNaN(Number(T))?0:Number(T),N=Number.isNaN(Number(R))?0:Number(R);return A-N})},O="".concat(c,"-options");if(!d&&!l)return null;var $=null,P=null,M=null;return d&&h&&($=h({disabled:u,size:o,onSizeChange:function(T){a==null||a(Number(T))},"aria-label":i.page_size,className:"".concat(O,"-size-changer"),options:E().map(function(k){return{label:x(k),value:k}})})),l&&(s&&(M=typeof s=="boolean"?we.createElement("button",{type:"button",onClick:C,onKeyUp:C,disabled:u,className:"".concat(O,"-quick-jumper-button")},i.jump_to_confirm):we.createElement("span",{onClick:C,onKeyUp:C},s)),P=we.createElement("div",{className:"".concat(O,"-quick-jumper")},i.jump_to,we.createElement("input",{disabled:u,type:"text",value:v,onChange:S,onKeyUp:C,onBlur:w,"aria-label":i.page}),i.page,M)),we.createElement("li",{className:O},$,P)},xb=function(t){var n,r=t.rootPrefixCls,i=t.page,a=t.active,o=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,f="".concat(r,"-item"),d=me(f,"".concat(f,"-").concat(i),(n={},Z(n,"".concat(f,"-active"),a),Z(n,"".concat(f,"-disabled"),!i),n),o),h=function(){l(i)},p=function(m){c(m,l,i)},g=u(i,"page",we.createElement("a",{rel:"nofollow"},i));return g?we.createElement("li",{title:s?String(i):null,className:d,onClick:h,onKeyDown:p,tabIndex:0},g):null},Lje=function(t,n,r){return r};function $Q(){}function PQ(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Mp(e,t,n){var r=typeof e=="undefined"?t:e;return Math.floor((n-1)/r)+1}var jje=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,s=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,f=t.total,d=f===void 0?0:f,h=t.pageSize,p=t.defaultPageSize,g=p===void 0?10:p,v=t.onChange,m=v===void 0?$Q:v,y=t.hideOnSinglePage,x=t.align,S=t.showPrevNextJumpers,w=S===void 0?!0:S,C=t.showQuickJumper,E=t.showLessItems,O=t.showTitle,$=O===void 0?!0:O,P=t.onShowSizeChange,M=P===void 0?$Q:P,k=t.locale,T=k===void 0?Ije:k,R=t.style,A=t.totalBoundaryShowSizeChanger,N=A===void 0?50:A,L=t.disabled,j=t.simple,F=t.showTotal,B=t.showSizeChanger,D=B===void 0?d>N:B,z=t.sizeChangerRender,W=t.pageSizeOptions,q=t.itemRender,H=q===void 0?Lje:q,U=t.jumpPrevIcon,G=t.jumpNextIcon,K=t.prevIcon,X=t.nextIcon,Q=we.useRef(null),ee=Yn(10,{value:h,defaultValue:g}),ne=he(ee,2),te=ne[0],ie=ne[1],J=Yn(1,{value:l,defaultValue:u,postState:function(Jt){return Math.max(1,Math.min(Jt,Mp(void 0,te,d)))}}),le=he(J,2),oe=le[0],re=le[1],se=we.useState(oe),ge=he(se,2),de=ge[0],pe=ge[1];b.useEffect(function(){pe(oe)},[oe]);var ue=Math.max(1,oe-(E?3:5)),Se=Math.min(Mp(void 0,te,d),oe+(E?3:5));function Oe(xt,Jt){var on=xt||we.createElement("button",{type:"button","aria-label":Jt,className:"".concat(i,"-item-link")});return typeof xt=="function"&&(on=we.createElement(xt,ae({},t))),on}function _e(xt){var Jt=xt.target.value,on=Mp(void 0,te,d),En;return Jt===""?En=Jt:Number.isNaN(Number(Jt))?En=de:Jt>=on?En=on:En=Number(Jt),En}function Te(xt){return PQ(xt)&&xt!==oe&&PQ(d)&&d>0}var je=d>te?C:!1;function Be(xt){(xt.keyCode===Ze.UP||xt.keyCode===Ze.DOWN)&&xt.preventDefault()}function Pe(xt){var Jt=_e(xt);switch(Jt!==de&&pe(Jt),xt.keyCode){case Ze.ENTER:ke(Jt);break;case Ze.UP:ke(Jt-1);break;case Ze.DOWN:ke(Jt+1);break}}function He(xt){ke(_e(xt))}function Ue(xt){var Jt=Mp(xt,te,d),on=oe>Jt&&Jt!==0?Jt:oe;ie(xt),pe(on),M==null||M(oe,xt),re(on),m==null||m(on,xt)}function ke(xt){if(Te(xt)&&!L){var Jt=Mp(void 0,te,d),on=xt;return xt>Jt?on=Jt:xt<1&&(on=1),on!==de&&pe(on),re(on),m==null||m(on,te),on}return oe}var Ce=oe>1,Re=oe2?on-2:0),Wn=2;Wnd?d:oe*te])),Pt=null,Xe=Mp(void 0,te,d);if(y&&d<=te)return null;var Je=[],bt={rootPrefixCls:i,onClick:ke,onKeyPress:Tt,showTitle:$,itemRender:H,page:-1},Rt=oe-1>0?oe-1:0,Xt=oe+1=Nt*2&&oe!==3&&(Je[0]=we.cloneElement(Je[0],{className:me("".concat(i,"-item-after-jump-prev"),Je[0].props.className)}),Je.unshift(st)),Xe-oe>=Nt*2&&oe!==Xe-2){var ze=Je[Je.length-1];Je[Je.length-1]=we.cloneElement(ze,{className:me("".concat(i,"-item-before-jump-next"),ze.props.className)}),Je.push(Pt)}ye!==1&&Je.unshift(we.createElement(xb,Le({},bt,{key:1,page:1}))),Ie!==Xe&&Je.push(we.createElement(xb,Le({},bt,{key:Xe,page:Xe})))}var pt=vt(Rt);if(pt){var mt=!Ce||!Xe;pt=we.createElement("li",{title:$?T.prev_page:null,onClick:Ae,tabIndex:mt?null:0,onKeyDown:Mt,className:me("".concat(i,"-prev"),Z({},"".concat(i,"-disabled"),mt)),"aria-disabled":mt},pt)}var Wt=$t(Xt);if(Wt){var gn,mn;j?(gn=!Re,mn=Ce?0:null):(gn=!Re||!Xe,mn=gn?null:0),Wt=we.createElement("li",{title:$?T.next_page:null,onClick:$e,tabIndex:mn,onKeyDown:at,className:me("".concat(i,"-next"),Z({},"".concat(i,"-disabled"),gn)),"aria-disabled":gn},Wt)}var un=me(i,s,(n={},Z(n,"".concat(i,"-start"),x==="start"),Z(n,"".concat(i,"-center"),x==="center"),Z(n,"".concat(i,"-end"),x==="end"),Z(n,"".concat(i,"-simple"),j),Z(n,"".concat(i,"-disabled"),L),n));return we.createElement("ul",Le({className:un,style:R,ref:Q},tt),ot,pt,j?_t:Je,Wt,we.createElement(Nje,{locale:T,rootPrefixCls:i,disabled:L,selectPrefixCls:o,changeSize:Ue,pageSize:te,pageSizeOptions:W,quickGo:je?ke:null,goButton:wt,showSizeChanger:D,sizeChangerRender:z}))};const Dje=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Fje=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:fe(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:fe(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:fe(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + ${n}-col-xl-24${t}-label`]:_c(e),[`@media (max-width: ${ue(e.screenXSMax)})`]:[JZ(e),{[t]:{[`${n}-col-xs-24${t}-label`]:_c(e)}}],[`@media (max-width: ${ue(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:_c(e)}},[`@media (max-width: ${ue(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:_c(e)}},[`@media (max-width: ${ue(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:_c(e)}}}},oLe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),eQ=(e,t)=>_n(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),b5=tr("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=eQ(e,n);return[tLe(r),nLe(r),J8e(r),QZ(r,r.componentCls),QZ(r,r.formItemCls),rLe(r),iLe(r),aLe(r),D1(r),vR]},oLe,{order:-1e3}),tQ=[];function x5(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const nQ=e=>{let{help:t,helpStatus:n,errors:r=tQ,warnings:i=tQ,className:a,fieldId:o,onVisibleChanged:s}=e;const{prefixCls:l}=b.useContext(WR),c=`${l}-item-explain`,u=Ti(l),[f,d,h]=b5(l,u),p=b.useMemo(()=>Wg(l),[l]),v=DE(r),g=DE(i),m=b.useMemo(()=>t!=null?[x5(t,"help",n)]:[].concat(Ne(v.map((S,w)=>x5(S,"error","error",w))),Ne(g.map((S,w)=>x5(S,"warning","warning",w)))),[t,n,v,g]),y=b.useMemo(()=>{const S={};return m.forEach(w=>{let{key:C}=w;S[C]=(S[C]||0)+1}),m.map((w,C)=>Object.assign(Object.assign({},w),{key:S[w.key]>1?`${w.key}-fallback-${C}`:w.key}))},[m]),x={};return o&&(x.id=`${o}_help`),f(b.createElement(Jo,{motionDeadline:p.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:s},S=>{const{className:w,style:C}=S;return b.createElement("div",Object.assign({},x,{className:me(c,w,h,u,a,d),style:C,role:"alert"}),b.createElement(KT,Object.assign({keys:y},Wg(l),{motionName:`${l}-show-help-item`,component:!1}),E=>{const{key:O,error:$,errorStatus:P,className:M,style:k}=E;return b.createElement("div",{key:O,className:me(M,{[`${c}-${P}`]:P}),style:k},$)}))}))},sLe=["parentNode"],lLe="form_item";function yb(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function rQ(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:sLe.includes(n)?`${lLe}_${n}`:n}function iQ(e,t,n,r,i,a){let o=r;return a!==void 0?o=a:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||i&&n.validated)&&(o="success"),o}function aQ(e){return yb(e).join("_")}function oQ(e,t){const n=t.getFieldInstance(e),r=q4(n);if(r)return r;const i=rQ(yb(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function sQ(e){const[t]=zR(),n=b.useRef({}),r=b.useMemo(()=>e!=null?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>a=>{const o=aQ(i);a?n.current[o]=a:delete n.current[o]}},scrollToField:function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=oQ(i,r);o&&s$e(o,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},focusField:i=>{var a;const o=oQ(i,r);o&&((a=o.focus)===null||a===void 0||a.call(o))},getFieldInstance:i=>{const a=aQ(i);return n.current[a]}}),[e,t]);return[r]}var cLe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const n=b.useContext(mo),{getPrefixCls:r,direction:i,form:a}=b.useContext(At),{prefixCls:o,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:d,labelAlign:h,labelWrap:p,labelCol:v,wrapperCol:g,hideRequiredMark:m,layout:y="horizontal",scrollToFirstError:x,requiredMark:S,onFinishFailed:w,name:C,style:E,feedbackIcons:O,variant:$}=e,P=cLe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),M=ja(c),k=b.useContext(fq),T=b.useMemo(()=>S!==void 0?S:m?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[m,S,a]),R=d!=null?d:a==null?void 0:a.colon,A=r("form",o),N=Ti(A),[L,j,F]=b5(A,N),B=me(A,`${A}-${y}`,{[`${A}-hide-required-mark`]:T===!1,[`${A}-rtl`]:i==="rtl",[`${A}-${M}`]:M},F,N,j,a==null?void 0:a.className,s,l),[D]=sQ(f),{__INTERNAL__:z}=D;z.name=C;const W=b.useMemo(()=>({name:C,labelAlign:h,labelCol:v,labelWrap:p,wrapperCol:g,vertical:y==="vertical",colon:R,requiredMark:T,itemRef:z.itemRef,form:D,feedbackIcons:O}),[C,h,v,g,y,R,T,D,O]),q=b.useRef(null);b.useImperativeHandle(t,()=>{var G;return Object.assign(Object.assign({},D),{nativeElement:(G=q.current)===null||G===void 0?void 0:G.nativeElement})});const H=(G,K)=>{if(G){let X={block:"nearest"};typeof G=="object"&&(X=Object.assign(Object.assign({},X),G)),D.scrollToField(K,X),X.focus&&D.focusField(K)}},U=G=>{if(w==null||w(G),G.errorFields.length){const K=G.errorFields[0].name;if(x!==void 0){H(x,K);return}a&&a.scrollToFirstError!==void 0&&H(a.scrollToFirstError,K)}};return L(b.createElement(AG.Provider,{value:$},b.createElement(LT,{disabled:u},b.createElement(hp.Provider,{value:M},b.createElement(IG,{validateMessages:k},b.createElement(lf.Provider,{value:W},b.createElement(Zg,Object.assign({id:C},P,{name:C,onFinishFailed:U,form:D,ref:q,style:Object.assign(Object.assign({},a==null?void 0:a.style),E),className:B}))))))))},fLe=b.forwardRef(uLe);function dLe(e){if(typeof e=="function")return e;const t=da(e);return t.length<=1?t[0]:t}const lQ=()=>{const{status:e,errors:t=[],warnings:n=[]}=b.useContext(Fa);return{status:e,errors:t,warnings:n}};lQ.Context=Fa;function hLe(e){const[t,n]=b.useState(e),r=b.useRef(null),i=b.useRef([]),a=b.useRef(!1);b.useEffect(()=>(a.current=!1,()=>{a.current=!0,Sn.cancel(r.current),r.current=null}),[]);function o(s){a.current||(r.current===null&&(i.current=[],r.current=Sn(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,o]}function pLe(){const{itemRef:e}=b.useContext(lf),t=b.useRef({});function n(r,i){const a=i&&typeof i=="object"&&bd(i),o=r.join("_");return(t.current.name!==o||t.current.originRef!==a)&&(t.current.name=o,t.current.originRef=a,t.current.ref=po(e(r),a)),t.current.ref}return n}const vLe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},gLe=Dg(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=eQ(e,n);return[vLe(r)]});var mLe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:d,onErrorVisibleChanged:h,label:p}=e,v=`${t}-item`,g=b.useContext(lf),m=b.useMemo(()=>{let R=Object.assign({},i||g.wrapperCol||{});return p===null&&!r&&!i&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(N=>{const L=N?[N]:[],j=Xo(g.labelCol,L),F=typeof j=="object"?j:{},B=Xo(R,L),D=typeof B=="object"?B:{};"span"in F&&!("offset"in D)&&F.spanmLe(g,["labelCol","wrapperCol"]),[g]),S=b.useRef(null),[w,C]=b.useState(0);Ln(()=>{c&&S.current?C(S.current.clientHeight):C(0)},[c]);const E=b.createElement("div",{className:`${v}-control-input`},b.createElement("div",{className:`${v}-control-input-content`},a)),O=b.useMemo(()=>({prefixCls:t,status:n}),[t,n]),$=d!==null||o.length||s.length?b.createElement(WR.Provider,{value:O},b.createElement(nQ,{fieldId:f,errors:o,warnings:s,help:u,helpStatus:n,className:`${v}-explain-connected`,onVisibleChanged:h})):null,P={};f&&(P.id=`${f}_extra`);const M=c?b.createElement("div",Object.assign({},P,{className:`${v}-extra`,ref:S}),c):null,k=$||M?b.createElement("div",{className:`${v}-additional`,style:d?{minHeight:d+w}:{}},$,M):null,T=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:E,errorList:$,extra:M}):b.createElement(b.Fragment,null,E,k);return b.createElement(lf.Provider,{value:x},b.createElement(vr,Object.assign({},m,{className:y}),T),b.createElement(gLe,{prefixCls:t}))};var xLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},SLe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:xLe}))},wLe=b.forwardRef(SLe),CLe=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 i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:a,colon:o,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[d]=Zo("Form"),{labelAlign:h,labelCol:p,labelWrap:v,colon:g}=b.useContext(lf);if(!n)return null;const m=i||p||{},y=a||h,x=`${t}-item-label`,S=me(x,y==="left"&&`${x}-left`,m.className,{[`${x}-wrap`]:!!v});let w=n;const C=o===!0||g!==!1&&o!==!1;C&&!u&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const O=ELe(c);if(O){const{icon:k=b.createElement(wLe,null)}=O,T=CLe(O,["icon"]),R=b.createElement(ro,Object.assign({},T),b.cloneElement(k,{className:`${t}-item-tooltip`,title:"",onClick:A=>{A.preventDefault()},tabIndex:null}));w=b.createElement(b.Fragment,null,w,R)}const $=l==="optional",P=typeof l=="function";P?w=l(w,{required:!!s}):$&&!s&&(w=b.createElement(b.Fragment,null,w,b.createElement("span",{className:`${t}-item-optional`,title:""},(d==null?void 0:d.optional)||((f=_o.Form)===null||f===void 0?void 0:f.optional))));const M=me({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:$||P,[`${t}-item-no-colon`]:!C});return b.createElement(vr,Object.assign({},m,{className:S}),b.createElement("label",{htmlFor:r,className:M,title:typeof n=="string"?n:""},w))},_Le={success:A1,warning:Hg,error:vp,validating:af};function cQ(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:a,prefixCls:o,meta:s,noStyle:l}=e;const c=`${o}-item`,{feedbackIcons:u}=b.useContext(lf),f=iQ(n,r,s,null,!!i,a),{isFormItemInput:d,status:h,hasFeedback:p,feedbackIcon:v}=b.useContext(Fa),g=b.useMemo(()=>{var m;let y;if(i){const S=i!==!0&&i.icons||u,w=f&&((m=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||m===void 0?void 0:m[f]),C=f&&_Le[f];y=w!==!1&&C?b.createElement("span",{className:me(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},w||b.createElement(C,null)):null}const x={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:y,isFormItemInput:!0};return l&&(x.status=(f!=null?f:h)||"",x.isFormItemInput=d,x.hasFeedback=!!(i!=null?i:p),x.feedbackIcon=i!==void 0?x.feedbackIcon:v),x},[f,i,l,d,h]);return b.createElement(Fa.Provider,{value:g},t)}var $Le=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 i=0,r=Object.getOwnPropertySymbols(e);i{if(M&&E.current){const F=getComputedStyle(E.current);R(parseInt(F.marginBottom,10))}},[M,k]);const A=F=>{F||R(null)},L=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const B=F?O:c.errors,D=F?$:c.warnings;return iQ(B,D,c,"",!!u,l)}(),j=me(x,n,r,{[`${x}-with-help`]:P||O.length||$.length,[`${x}-has-feedback`]:L&&u,[`${x}-has-success`]:L==="success",[`${x}-has-warning`]:L==="warning",[`${x}-has-error`]:L==="error",[`${x}-is-validating`]:L==="validating",[`${x}-hidden`]:f,[`${x}-${m}`]:m});return b.createElement("div",{className:j,style:i,ref:E},b.createElement(Ri,Object.assign({className:`${x}-row`},Or(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),b.createElement(OLe,Object.assign({htmlFor:h},e,{requiredMark:S,required:p!=null?p:v,prefixCls:t,vertical:C})),b.createElement(bLe,Object.assign({},e,c,{errors:O,warnings:$,prefixCls:t,status:L,help:a,marginBottom:T,onErrorVisibleChanged:A}),b.createElement(RG.Provider,{value:g},b.createElement(cQ,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:L},d)))),!!T&&b.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-T}}))}const MLe="__SPLIT__";function kLe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const a=e[i],o=t[i];return a===o||typeof a=="function"||typeof o=="function"})}const TLe=b.memo(e=>{let{children:t}=e;return t},(e,t)=>kLe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function uQ(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function RLe(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:d="onChange",validateTrigger:h,hidden:p,help:v,layout:g}=e,{getPrefixCls:m}=b.useContext(At),{name:y}=b.useContext(lf),x=dLe(l),S=typeof x=="function",w=b.useContext(RG),{validateTrigger:C}=b.useContext(mp),E=h!==void 0?h:C,O=t!=null,$=m("form",a),P=Ti($),[M,k,T]=b5($,P);Cd();const R=b.useContext(z1),A=b.useRef(null),[N,L]=hLe({}),[j,F]=pp(()=>uQ()),B=G=>{const K=R==null?void 0:R.getKey(G.name);if(F(G.destroy?uQ():G,!0),n&&v!==!1&&w){let X=G.name;if(G.destroy)X=A.current||X;else if(K!==void 0){const[Q,ee]=K;X=[Q].concat(Ne(ee)),A.current=X}w(G,X)}},D=(G,K)=>{L(X=>{const Q=Object.assign({},X),ne=[].concat(Ne(G.name.slice(0,-1)),Ne(K)).join(MLe);return G.destroy?delete Q[ne]:Q[ne]=G,Q})},[z,W]=b.useMemo(()=>{const G=Ne(j.errors),K=Ne(j.warnings);return Object.values(N).forEach(X=>{G.push.apply(G,Ne(X.errors||[])),K.push.apply(K,Ne(X.warnings||[]))}),[G,K]},[N,j.errors,j.warnings]),q=pLe();function H(G,K,X){return n&&!p?b.createElement(cQ,{prefixCls:$,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:j,errors:z,warnings:W,noStyle:!0},G):b.createElement(PLe,Object.assign({key:"row"},e,{className:me(r,T,P,k),prefixCls:$,fieldId:K,isRequired:X,errors:z,warnings:W,meta:j,onSubItemMetaChange:D,layout:g}),G)}if(!O&&!S&&!i)return M(H(x));let U={};return typeof u=="string"?U.label=u:t&&(U.label=String(t)),f&&(U=Object.assign(Object.assign({},U),f)),M(b.createElement(FR,Object.assign({},e,{messageVariables:U,trigger:d,validateTrigger:E,onMetaChange:B}),(G,K,X)=>{const Q=yb(t).length&&K?K.name:[],ee=rQ(Q,y),ne=c!==void 0?c:!!(s!=null&&s.some(J=>{if(J&&typeof J=="object"&&J.required&&!J.warningOnly)return!0;if(typeof J=="function"){const le=J(X);return(le==null?void 0:le.required)&&!(le!=null&&le.warningOnly)}return!1})),te=Object.assign({},G);let ie=null;if(Array.isArray(x)&&O)ie=x;else if(!(S&&(!(o||i)||O))){if(!(i&&!S&&!O))if(b.isValidElement(x)){const J=Object.assign(Object.assign({},x.props),te);if(J.id||(J.id=ee),v||z.length>0||W.length>0||e.extra){const re=[];(v||z.length>0)&&re.push(`${ee}_help`),e.extra&&re.push(`${ee}_extra`),J["aria-describedby"]=re.join(" ")}z.length>0&&(J["aria-invalid"]="true"),ne&&(J["aria-required"]="true"),vc(x)&&(J.ref=q(Q,x)),new Set([].concat(Ne(yb(d)),Ne(yb(E)))).forEach(re=>{J[re]=function(){for(var se,ge,de,pe,fe,xe=arguments.length,Oe=new Array(xe),_e=0;_e{var{prefixCls:t,children:n}=e,r=ILe(e,["prefixCls","children"]);const{getPrefixCls:i}=b.useContext(At),a=i("form",t),o=b.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return b.createElement($G,Object.assign({},r),(s,l,c)=>b.createElement(WR.Provider,{value:o},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function NLe(){const{form:e}=b.useContext(lf);return e}const Ir=fLe;Ir.Item=fQ,Ir.List=ALe,Ir.ErrorList=nQ,Ir.useForm=sQ,Ir.useFormInstance=NLe,Ir.useWatch=TG,Ir.Provider=IG,Ir.create=()=>{};function dQ(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function S5(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function au(e,t,n,r){var i=v1.unstable_batchedUpdates?function(o){v1.unstable_batchedUpdates(n,o)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var bb=b.createContext(null),LLe=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,o=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,f=t.current,d=t.transform,h=t.count,p=t.scale,v=t.minScale,g=t.maxScale,m=t.closeIcon,y=t.onActive,x=t.onClose,S=t.onZoomIn,w=t.onZoomOut,C=t.onRotateRight,E=t.onRotateLeft,O=t.onFlipX,$=t.onFlipY,P=t.onReset,M=t.toolbarRender,k=t.zIndex,T=t.image,R=b.useContext(bb),A=s.rotateLeft,N=s.rotateRight,L=s.zoomIn,j=s.zoomOut,F=s.close,B=s.left,D=s.right,z=s.flipX,W=s.flipY,q="".concat(a,"-operations-operation");b.useEffect(function(){var le=function(re){re.keyCode===Ze.ESC&&x()};return n&&window.addEventListener("keydown",le),function(){window.removeEventListener("keydown",le)}},[n]);var H=function(oe,re){oe.preventDefault(),oe.stopPropagation(),y(re)},U=b.useCallback(function(le){var oe=le.type,re=le.disabled,se=le.onClick,ge=le.icon;return b.createElement("div",{key:oe,className:me(q,"".concat(a,"-operations-operation-").concat(oe),Z({},"".concat(a,"-operations-operation-disabled"),!!re)),onClick:se},ge)},[q,a]),G=c?U({icon:B,onClick:function(oe){return H(oe,-1)},type:"prev",disabled:f===0}):void 0,K=c?U({icon:D,onClick:function(oe){return H(oe,1)},type:"next",disabled:f===h-1}):void 0,X=U({icon:W,onClick:$,type:"flipY"}),Q=U({icon:z,onClick:O,type:"flipX"}),ee=U({icon:A,onClick:E,type:"rotateLeft"}),ne=U({icon:N,onClick:C,type:"rotateRight"}),te=U({icon:j,onClick:w,type:"zoomOut",disabled:p<=v}),ie=U({icon:L,onClick:S,type:"zoomIn",disabled:p===g}),J=b.createElement("div",{className:"".concat(a,"-operations")},X,Q,ee,ne,te,ie);return b.createElement(Jo,{visible:n,motionName:r},function(le){var oe=le.className,re=le.style;return b.createElement(GC,{open:!0,getContainer:i!=null?i:document.body},b.createElement("div",{className:me("".concat(a,"-operations-wrapper"),oe,o),style:ae(ae({},re),{},{zIndex:k})},m===null?null:b.createElement("button",{className:"".concat(a,"-close"),onClick:x},m||F),c&&b.createElement(b.Fragment,null,b.createElement("div",{className:me("".concat(a,"-switch-left"),Z({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:function(ge){return H(ge,-1)}},B),b.createElement("div",{className:me("".concat(a,"-switch-right"),Z({},"".concat(a,"-switch-right-disabled"),f===h-1)),onClick:function(ge){return H(ge,1)}},D)),b.createElement("div",{className:"".concat(a,"-footer")},u&&b.createElement("div",{className:"".concat(a,"-progress")},l?l(f+1,h):"".concat(f+1," / ").concat(h)),M?M(J,ae(ae({icons:{prevIcon:G,nextIcon:K,flipYIcon:X,flipXIcon:Q,rotateLeftIcon:ee,rotateRightIcon:ne,zoomOutIcon:te,zoomInIcon:ie},actions:{onActive:y,onFlipY:$,onFlipX:O,onRotateLeft:E,onRotateRight:C,onZoomOut:w,onZoomIn:S,onReset:P,onClose:x},transform:d},R?{current:f,total:h}:{}),{},{image:T})):J)))})},FE={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function jLe(e,t,n,r){var i=b.useRef(null),a=b.useRef([]),o=b.useState(FE),s=he(o,2),l=s[0],c=s[1],u=function(p){c(FE),yl(FE,l)||r==null||r({transform:FE,action:p})},f=function(p,v){i.current===null&&(a.current=[],i.current=Sn(function(){c(function(g){var m=g;return a.current.forEach(function(y){m=ae(ae({},m),y)}),i.current=null,r==null||r({transform:m,action:v}),m})})),a.current.push(ae(ae({},l),p))},d=function(p,v,g,m,y){var x=e.current,S=x.width,w=x.height,C=x.offsetWidth,E=x.offsetHeight,O=x.offsetLeft,$=x.offsetTop,P=p,M=l.scale*p;M>n?(M=n,P=n/l.scale):Mr){if(t>0)return Z({},e,a);if(t<0&&ir)return Z({},e,t<0?a:-a);return{}}function pQ(e,t,n,r){var i=dQ(),a=i.width,o=i.height,s=null;return e<=a&&t<=o?s={x:0,y:0}:(e>a||t>o)&&(s=ae(ae({},hQ("x",n,e,a)),hQ("y",r,t,o))),s}var mm=1,DLe=1;function FLe(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,f=b.useState(!1),d=he(f,2),h=d[0],p=d[1],v=b.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),g=function(w){!t||w.button!==0||(w.preventDefault(),w.stopPropagation(),v.current={diffX:w.pageX-c,diffY:w.pageY-u,transformX:c,transformY:u},p(!0))},m=function(w){n&&h&&a({x:w.pageX-v.current.diffX,y:w.pageY-v.current.diffY},"move")},y=function(){if(n&&h){p(!1);var w=v.current,C=w.transformX,E=w.transformY,O=c!==C&&u!==E;if(!O)return;var $=e.current.offsetWidth*l,P=e.current.offsetHeight*l,M=e.current.getBoundingClientRect(),k=M.left,T=M.top,R=s%180!==0,A=pQ(R?P:$,R?$:P,k,T);A&&a(ae({},A),"dragRebound")}},x=function(w){if(!(!n||w.deltaY==0)){var C=Math.abs(w.deltaY/100),E=Math.min(C,DLe),O=mm+E*r;w.deltaY>0&&(O=mm/O),o(O,"wheel",w.clientX,w.clientY)}};return b.useEffect(function(){var S,w,C,E;if(t){C=au(window,"mouseup",y,!1),E=au(window,"mousemove",m,!1);try{window.top!==window.self&&(S=au(window.top,"mouseup",y,!1),w=au(window.top,"mousemove",m,!1))}catch(O){}}return function(){var O,$,P,M;(O=C)===null||O===void 0||O.remove(),($=E)===null||$===void 0||$.remove(),(P=S)===null||P===void 0||P.remove(),(M=w)===null||M===void 0||M.remove()}},[n,h,c,u,s,t]),{isMoving:h,onMouseDown:g,onMouseMove:m,onMouseUp:y,onWheel:x}}function BLe(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function vQ(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=b.useState(n?"loading":"normal"),a=he(i,2),o=a[0],s=a[1],l=b.useRef(!1),c=o==="error";b.useEffect(function(){var h=!0;return BLe(t).then(function(p){!p&&h&&s("error")}),function(){h=!1}},[t]),b.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},f=function(p){l.current=!1,o==="loading"&&p!==null&&p!==void 0&&p.complete&&(p.naturalWidth||p.naturalHeight)&&(l.current=!0,u())},d=c&&r?{src:r}:{onLoad:u,src:t};return[f,d,o]}function BE(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function zLe(e,t,n,r){var i=BE(e,n),a=BE(t,r);if(i===0&&a===0)return[e.x,e.y];var o=i/(i+a),s=e.x+o*(t.x-e.x),l=e.y+o*(t.y-e.y);return[s,l]}function HLe(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,f=b.useState(!1),d=he(f,2),h=d[0],p=d[1],v=b.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),g=function(w){v.current=ae(ae({},v.current),w)},m=function(w){if(t){w.stopPropagation(),p(!0);var C=w.touches,E=C===void 0?[]:C;E.length>1?g({point1:{x:E[0].clientX,y:E[0].clientY},point2:{x:E[1].clientX,y:E[1].clientY},eventType:"touchZoom"}):g({point1:{x:E[0].clientX-c,y:E[0].clientY-u},eventType:"move"})}},y=function(w){var C=w.touches,E=C===void 0?[]:C,O=v.current,$=O.point1,P=O.point2,M=O.eventType;if(E.length>1&&M==="touchZoom"){var k={x:E[0].clientX,y:E[0].clientY},T={x:E[1].clientX,y:E[1].clientY},R=zLe($,P,k,T),A=he(R,2),N=A[0],L=A[1],j=BE(k,T)/BE($,P);o(j,"touchZoom",N,L,!0),g({point1:k,point2:T,eventType:"touchZoom"})}else M==="move"&&(a({x:E[0].clientX-$.x,y:E[0].clientY-$.y},"move"),g({eventType:"move"}))},x=function(){if(n){if(h&&p(!1),g({eventType:"none"}),r>l)return a({x:0,y:0,scale:r},"touchZoom");var w=e.current.offsetWidth*l,C=e.current.offsetHeight*l,E=e.current.getBoundingClientRect(),O=E.left,$=E.top,P=s%180!==0,M=pQ(P?C:w,P?w:C,O,$);M&&a(ae({},M),"dragRebound")}};return b.useEffect(function(){var S;return n&&t&&(S=au(window,"touchmove",function(w){return w.preventDefault()},{passive:!1})),function(){var w;(w=S)===null||w===void 0||w.remove()}},[n,t]),{isTouching:h,onTouchStart:m,onTouchMove:y,onTouchEnd:x}}var WLe=["fallback","src","imgRef"],VLe=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],qLe=function(t){var n=t.fallback,r=t.src,i=t.imgRef,a=qt(t,WLe),o=vQ({src:r,fallback:n}),s=he(o,2),l=s[0],c=s[1];return we.createElement("img",Le({ref:function(f){i.current=f,l(f)}},a,c))},gQ=function(t){var n=t.prefixCls,r=t.src,i=t.alt,a=t.imageInfo,o=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,f=t.icons,d=f===void 0?{}:f,h=t.rootClassName,p=t.closeIcon,v=t.getContainer,g=t.current,m=g===void 0?0:g,y=t.count,x=y===void 0?1:y,S=t.countRender,w=t.scaleStep,C=w===void 0?.5:w,E=t.minScale,O=E===void 0?1:E,$=t.maxScale,P=$===void 0?50:$,M=t.transitionName,k=M===void 0?"zoom":M,T=t.maskTransitionName,R=T===void 0?"fade":T,A=t.imageRender,N=t.imgCommonProps,L=t.toolbarRender,j=t.onTransform,F=t.onChange,B=qt(t,VLe),D=b.useRef(),z=b.useContext(bb),W=z&&x>1,q=z&&x>=1,H=b.useState(!0),U=he(H,2),G=U[0],K=U[1],X=jLe(D,O,P,j),Q=X.transform,ee=X.resetTransform,ne=X.updateTransform,te=X.dispatchZoomChange,ie=FLe(D,l,u,C,Q,ne,te),J=ie.isMoving,le=ie.onMouseDown,oe=ie.onWheel,re=HLe(D,l,u,O,Q,ne,te),se=re.isTouching,ge=re.onTouchStart,de=re.onTouchMove,pe=re.onTouchEnd,fe=Q.rotate,xe=Q.scale,Oe=me(Z({},"".concat(n,"-moving"),J));b.useEffect(function(){G||K(!0)},[G]);var _e=function(){ee("close")},Te=function(){te(mm+C,"zoomIn")},Fe=function(){te(mm/(mm+C),"zoomOut")},Be=function(){ne({rotate:fe+90},"rotateRight")},Pe=function(){ne({rotate:fe-90},"rotateLeft")},ze=function(){ne({flipX:!Q.flipX},"flipX")},Ue=function(){ne({flipY:!Q.flipY},"flipY")},ke=function(){ee("reset")},Ee=function(Ot){var Wt=m+Ot;!Number.isInteger(Wt)||Wt<0||Wt>x-1||(K(!1),ee(Ot<0?"prev":"next"),F==null||F(Wt,m))},Ie=function(Ot){!u||!W||(Ot.keyCode===Ze.LEFT?Ee(-1):Ot.keyCode===Ze.RIGHT&&Ee(1))},Ae=function(Ot){u&&(xe!==1?ne({x:0,y:0,scale:1},"doubleClick"):te(mm+C,"doubleClick",Ot.clientX,Ot.clientY))};b.useEffect(function(){var ot=au(window,"keydown",Ie,!1);return function(){ot.remove()}},[u,W,m]);var $e=we.createElement(qLe,Le({},N,{width:t.width,height:t.height,imgRef:D,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(Q.x,"px, ").concat(Q.y,"px, 0) scale3d(").concat(Q.flipX?"-":"").concat(xe,", ").concat(Q.flipY?"-":"").concat(xe,", 1) rotate(").concat(fe,"deg)"),transitionDuration:(!G||se)&&"0s"},fallback:o,src:r,onWheel:oe,onMouseDown:le,onDoubleClick:Ae,onTouchStart:ge,onTouchMove:de,onTouchEnd:pe,onTouchCancel:pe})),He=ae({url:r,alt:i},a);return we.createElement(we.Fragment,null,we.createElement(_R,Le({transitionName:k,maskTransitionName:R,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Oe},rootClassName:h,getContainer:v},B,{afterClose:_e}),we.createElement("div",{className:"".concat(n,"-img-wrapper")},A?A($e,ae({transform:Q,image:He},z?{current:m}:{})):$e)),we.createElement(LLe,{visible:u,transform:Q,maskTransitionName:R,closeIcon:p,getContainer:v,prefixCls:n,rootClassName:h,icons:d,countRender:S,showSwitch:W,showProgress:q,current:m,count:x,scale:xe,minScale:O,maxScale:P,toolbarRender:L,onActive:Ee,onZoomIn:Te,onZoomOut:Fe,onRotateRight:Be,onRotateLeft:Pe,onFlipX:ze,onFlipY:Ue,onClose:c,onReset:ke,zIndex:B.zIndex!==void 0?B.zIndex+1:void 0,image:He}))},w5=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function ULe(e){var t=b.useState({}),n=he(t,2),r=n[0],i=n[1],a=b.useCallback(function(s,l){return i(function(c){return ae(ae({},c),{},Z({},s,l))}),function(){i(function(c){var u=ae({},c);return delete u[s],u})}},[]),o=b.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(Ne(w5)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,f=c.data;return u&&s.push({data:f,id:l}),s},[])},[e,r]);return[o,a,!!e]}var GLe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],KLe=["src"],YLe=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,a=t.children,o=t.icons,s=o===void 0?{}:o,l=t.items,c=t.preview,u=t.fallback,f=Bt(c)==="object"?c:{},d=f.visible,h=f.onVisibleChange,p=f.getContainer,v=f.current,g=f.movable,m=f.minScale,y=f.maxScale,x=f.countRender,S=f.closeIcon,w=f.onChange,C=f.onTransform,E=f.toolbarRender,O=f.imageRender,$=qt(f,GLe),P=ULe(l),M=he(P,3),k=M[0],T=M[1],R=M[2],A=Yn(0,{value:v}),N=he(A,2),L=N[0],j=N[1],F=b.useState(!1),B=he(F,2),D=B[0],z=B[1],W=((n=k[L])===null||n===void 0?void 0:n.data)||{},q=W.src,H=qt(W,KLe),U=Yn(!!d,{value:d,onChange:function(se,ge){h==null||h(se,ge,L)}}),G=he(U,2),K=G[0],X=G[1],Q=b.useState(null),ee=he(Q,2),ne=ee[0],te=ee[1],ie=b.useCallback(function(re,se,ge,de){var pe=R?k.findIndex(function(fe){return fe.data.src===se}):k.findIndex(function(fe){return fe.id===re});j(pe<0?0:pe),X(!0),te({x:ge,y:de}),z(!0)},[k,R]);b.useEffect(function(){K?D||j(0):z(!1)},[K]);var J=function(se,ge){j(se),w==null||w(se,ge)},le=function(){X(!1),te(null)},oe=b.useMemo(function(){return{register:T,onPreview:ie}},[T,ie]);return b.createElement(bb.Provider,{value:oe},a,b.createElement(gQ,Le({"aria-hidden":!K,movable:g,visible:K,prefixCls:i,closeIcon:S,onClose:le,mousePosition:ne,imgCommonProps:H,src:q,fallback:u,icons:s,minScale:m,maxScale:y,getContainer:p,current:L,count:k.length,countRender:x,onTransform:C,toolbarRender:E,imageRender:O,onChange:J},$)))},mQ=0;function XLe(e,t){var n=b.useState(function(){return mQ+=1,String(mQ)}),r=he(n,1),i=r[0],a=b.useContext(bb),o={data:t,canPreview:e};return b.useEffect(function(){if(a)return a.register(i,o)},[]),b.useEffect(function(){a&&a.register(i,o)},[e,t]),i}var ZLe=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],QLe=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],C5=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,a=t.prefixCls,o=a===void 0?"rc-image":a,s=t.previewPrefixCls,l=s===void 0?"".concat(o,"-preview"):s,c=t.placeholder,u=t.fallback,f=t.width,d=t.height,h=t.style,p=t.preview,v=p===void 0?!0:p,g=t.className,m=t.onClick,y=t.onError,x=t.wrapperClassName,S=t.wrapperStyle,w=t.rootClassName,C=qt(t,ZLe),E=c&&c!==!0,O=Bt(v)==="object"?v:{},$=O.src,P=O.visible,M=P===void 0?void 0:P,k=O.onVisibleChange,T=k===void 0?i:k,R=O.getContainer,A=R===void 0?void 0:R,N=O.mask,L=O.maskClassName,j=O.movable,F=O.icons,B=O.scaleStep,D=O.minScale,z=O.maxScale,W=O.imageRender,q=O.toolbarRender,H=qt(O,QLe),U=$!=null?$:n,G=Yn(!!M,{value:M,onChange:T}),K=he(G,2),X=K[0],Q=K[1],ee=vQ({src:n,isCustomPlaceholder:E,fallback:u}),ne=he(ee,3),te=ne[0],ie=ne[1],J=ne[2],le=b.useState(null),oe=he(le,2),re=oe[0],se=oe[1],ge=b.useContext(bb),de=!!v,pe=function(){Q(!1),se(null)},fe=me(o,x,w,Z({},"".concat(o,"-error"),J==="error")),xe=b.useMemo(function(){var Fe={};return w5.forEach(function(Be){t[Be]!==void 0&&(Fe[Be]=t[Be])}),Fe},w5.map(function(Fe){return t[Fe]})),Oe=b.useMemo(function(){return ae(ae({},xe),{},{src:U})},[U,xe]),_e=XLe(de,Oe),Te=function(Be){var Pe=S5(Be.target),ze=Pe.left,Ue=Pe.top;ge?ge.onPreview(_e,U,ze,Ue):(se({x:ze,y:Ue}),Q(!0)),m==null||m(Be)};return b.createElement(b.Fragment,null,b.createElement("div",Le({},C,{className:fe,onClick:de?Te:m,style:ae({width:f,height:d},S)}),b.createElement("img",Le({},xe,{className:me("".concat(o,"-img"),Z({},"".concat(o,"-img-placeholder"),c===!0),g),style:ae({height:d},h),ref:te},ie,{width:f,height:d,onError:y})),J==="loading"&&b.createElement("div",{"aria-hidden":"true",className:"".concat(o,"-placeholder")},c),N&&de&&b.createElement("div",{className:me("".concat(o,"-mask"),L),style:{display:(h==null?void 0:h.display)==="none"?"none":void 0}},N)),!ge&&de&&b.createElement(gQ,Le({"aria-hidden":!X,visible:X,prefixCls:l,onClose:pe,mousePosition:re,src:U,alt:r,imageInfo:{width:f,height:d},fallback:u,getContainer:A,icons:F,movable:j,scaleStep:B,minScale:D,maxScale:z,rootClassName:w,imageRender:W,imgCommonProps:xe,toolbarRender:q},H)))};C5.PreviewGroup=YLe;var JLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},eje=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:JLe}))},tje=b.forwardRef(eje),nje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},rje=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:nje}))},ije=b.forwardRef(rje),aje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},oje=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:aje}))},zE=b.forwardRef(oje),sje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},lje=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:sje}))},cje=b.forwardRef(lje),uje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},fje=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:uje}))},dje=b.forwardRef(fje);const E5=e=>({position:e||"absolute",inset:0}),hje=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:a,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new Un("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},Qo),{padding:`0 ${ue(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},pje=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:a,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,d=new Un(n).setAlpha(.1),h=d.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:d.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${ue(o)}`,backgroundColor:d.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},vje=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:a,motionDurationSlow:o}=e,s=new Un(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},gje=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},E5()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},E5()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[pje(e),vje(e)]}]},mje=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},hje(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},E5())}}},yje=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Ug(e,"zoom"),"&":pR(e,!0)}},yQ=tr("Image",e=>{const t=`${e.componentCls}-preview`,n=_n(e,{previewCls:t,modalMaskBg:new Un("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[mje(n),gje(n),UG(_n(n,{componentCls:t})),yje(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Un(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Un(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Un(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}));var bje=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{previewPrefixCls:t,preview:n}=e,r=bje(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=b.useContext(At),a=i("image",t),o=`${a}-preview`,s=i(),l=Ti(a),[c,u,f]=yQ(a,l),[d]=of("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=b.useMemo(()=>{var p;if(n===!1)return n;const v=typeof n=="object"?n:{},g=me(u,f,l,(p=v.rootClassName)!==null&&p!==void 0?p:"");return Object.assign(Object.assign({},v),{transitionName:wl(s,"zoom",v.transitionName),maskTransitionName:wl(s,"fade",v.maskTransitionName),rootClassName:g,zIndex:d})},[n]);return c(b.createElement(C5.PreviewGroup,Object.assign({preview:h,previewPrefixCls:o,icons:bQ},r)))};var xQ=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 i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:o}=e,s=xQ(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=_o,getPopupContainer:u,image:f}=b.useContext(At),d=l("image",n),h=l(),p=c.Image||_o.Image,v=Ti(d),[g,m,y]=yQ(d,v),x=me(a,m,y,v),S=me(i,m,f==null?void 0:f.className),[w]=of("ImagePreview",typeof r=="object"?r.zIndex:void 0),C=b.useMemo(()=>{var O;if(r===!1)return r;const $=typeof r=="object"?r:{},{getContainer:P,closeIcon:M,rootClassName:k}=$,T=xQ($,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:b.createElement("div",{className:`${d}-mask-info`},b.createElement(l5,null),p==null?void 0:p.preview),icons:bQ},T),{rootClassName:me(x,k),getContainer:P!=null?P:u,transitionName:wl(h,"zoom",$.transitionName),maskTransitionName:wl(h,"fade",$.maskTransitionName),zIndex:w,closeIcon:M!=null?M:(O=f==null?void 0:f.preview)===null||O===void 0?void 0:O.closeIcon})},[r,p,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),E=Object.assign(Object.assign({},f==null?void 0:f.style),o);return g(b.createElement(C5,Object.assign({prefixCls:d,preview:C,rootClassName:x,className:S,style:E},s)))};HE.PreviewGroup=xje;function Sje(e,t,n){return typeof n=="boolean"?n:e.length?!0:da(t).some(i=>i.type===RY)}var SQ=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 i=0,r=Object.getOwnPropertySymbols(e);ib.forwardRef((o,s)=>b.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const O5=b.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=SQ(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=b.useContext(At),l=s("layout",n),[c,u,f]=kY(l),d=r?`${l}-${r}`:l;return c(b.createElement(a,Object.assign({className:me(n||d,i,u,f),ref:t},o)))}),wje=b.forwardRef((e,t)=>{const{direction:n}=b.useContext(At),[r,i]=b.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,d=SQ(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=Or(d,["suffixCls"]),{getPrefixCls:p,layout:v}=b.useContext(At),g=p("layout",a),m=Sje(r,l,c),[y,x,S]=kY(g),w=me(g,{[`${g}-has-sider`]:m,[`${g}-rtl`]:n==="rtl"},v==null?void 0:v.className,o,s,x,S),C=b.useMemo(()=>({siderHook:{addSider:E=>{i(O=>[].concat(Ne(O),[E]))},removeSider:E=>{i(O=>O.filter($=>$!==E))}}}),[]);return y(b.createElement($Y.Provider,{value:C},b.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},h),l)))}),Cje=WE({tagName:"div",displayName:"Layout"})(wje),Eje=WE({suffixCls:"header",tagName:"header",displayName:"Header"})(O5),Oje=WE({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(O5),_je=WE({suffixCls:"content",tagName:"main",displayName:"Content"})(O5),hf=Cje;hf.Header=Eje,hf.Footer=Oje,hf.Content=_je,hf.Sider=RY,hf._InternalSiderContext=uE;const wQ=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const i=n[r];i!==void 0&&(e[r]=i)})}return e};var $je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Pje=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:$je}))},CQ=b.forwardRef(Pje),Mje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},kje=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:Mje}))},EQ=b.forwardRef(kje),Tje={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Rje=[10,20,50,100],Ije=function(t){var n=t.pageSizeOptions,r=n===void 0?Rje:n,i=t.locale,a=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,f=t.buildOptionText,d=t.showSizeChanger,h=t.sizeChangerRender,p=we.useState(""),v=he(p,2),g=v[0],m=v[1],y=function(){return!g||Number.isNaN(g)?void 0:Number(g)},x=typeof f=="function"?f:function(k){return"".concat(k," ").concat(i.items_per_page)},S=function(T){m(T.target.value)},w=function(T){s||g===""||(m(""),!(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||T.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(y())))},C=function(T){g!==""&&(T.keyCode===Ze.ENTER||T.type==="click")&&(m(""),l==null||l(y()))},E=function(){return r.some(function(T){return T.toString()===o.toString()})?r:r.concat([o]).sort(function(T,R){var A=Number.isNaN(Number(T))?0:Number(T),N=Number.isNaN(Number(R))?0:Number(R);return A-N})},O="".concat(c,"-options");if(!d&&!l)return null;var $=null,P=null,M=null;return d&&h&&($=h({disabled:u,size:o,onSizeChange:function(T){a==null||a(Number(T))},"aria-label":i.page_size,className:"".concat(O,"-size-changer"),options:E().map(function(k){return{label:x(k),value:k}})})),l&&(s&&(M=typeof s=="boolean"?we.createElement("button",{type:"button",onClick:C,onKeyUp:C,disabled:u,className:"".concat(O,"-quick-jumper-button")},i.jump_to_confirm):we.createElement("span",{onClick:C,onKeyUp:C},s)),P=we.createElement("div",{className:"".concat(O,"-quick-jumper")},i.jump_to,we.createElement("input",{disabled:u,type:"text",value:g,onChange:S,onKeyUp:C,onBlur:w,"aria-label":i.page}),i.page,M)),we.createElement("li",{className:O},$,P)},xb=function(t){var n,r=t.rootPrefixCls,i=t.page,a=t.active,o=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,f="".concat(r,"-item"),d=me(f,"".concat(f,"-").concat(i),(n={},Z(n,"".concat(f,"-active"),a),Z(n,"".concat(f,"-disabled"),!i),n),o),h=function(){l(i)},p=function(m){c(m,l,i)},v=u(i,"page",we.createElement("a",{rel:"nofollow"},i));return v?we.createElement("li",{title:s?String(i):null,className:d,onClick:h,onKeyDown:p,tabIndex:0},v):null},Aje=function(t,n,r){return r};function OQ(){}function _Q(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Tp(e,t,n){var r=typeof e=="undefined"?t:e;return Math.floor((n-1)/r)+1}var Nje=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,s=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,f=t.total,d=f===void 0?0:f,h=t.pageSize,p=t.defaultPageSize,v=p===void 0?10:p,g=t.onChange,m=g===void 0?OQ:g,y=t.hideOnSinglePage,x=t.align,S=t.showPrevNextJumpers,w=S===void 0?!0:S,C=t.showQuickJumper,E=t.showLessItems,O=t.showTitle,$=O===void 0?!0:O,P=t.onShowSizeChange,M=P===void 0?OQ:P,k=t.locale,T=k===void 0?Tje:k,R=t.style,A=t.totalBoundaryShowSizeChanger,N=A===void 0?50:A,L=t.disabled,j=t.simple,F=t.showTotal,B=t.showSizeChanger,D=B===void 0?d>N:B,z=t.sizeChangerRender,W=t.pageSizeOptions,q=t.itemRender,H=q===void 0?Aje:q,U=t.jumpPrevIcon,G=t.jumpNextIcon,K=t.prevIcon,X=t.nextIcon,Q=we.useRef(null),ee=Yn(10,{value:h,defaultValue:v}),ne=he(ee,2),te=ne[0],ie=ne[1],J=Yn(1,{value:l,defaultValue:u,postState:function(Qt){return Math.max(1,Math.min(Qt,Tp(void 0,te,d)))}}),le=he(J,2),oe=le[0],re=le[1],se=we.useState(oe),ge=he(se,2),de=ge[0],pe=ge[1];b.useEffect(function(){pe(oe)},[oe]);var fe=Math.max(1,oe-(E?3:5)),xe=Math.min(Tp(void 0,te,d),oe+(E?3:5));function Oe(bt,Qt){var sn=bt||we.createElement("button",{type:"button","aria-label":Qt,className:"".concat(i,"-item-link")});return typeof bt=="function"&&(sn=we.createElement(bt,ae({},t))),sn}function _e(bt){var Qt=bt.target.value,sn=Tp(void 0,te,d),$n;return Qt===""?$n=Qt:Number.isNaN(Number(Qt))?$n=de:Qt>=sn?$n=sn:$n=Number(Qt),$n}function Te(bt){return _Q(bt)&&bt!==oe&&_Q(d)&&d>0}var Fe=d>te?C:!1;function Be(bt){(bt.keyCode===Ze.UP||bt.keyCode===Ze.DOWN)&&bt.preventDefault()}function Pe(bt){var Qt=_e(bt);switch(Qt!==de&&pe(Qt),bt.keyCode){case Ze.ENTER:ke(Qt);break;case Ze.UP:ke(Qt-1);break;case Ze.DOWN:ke(Qt+1);break}}function ze(bt){ke(_e(bt))}function Ue(bt){var Qt=Tp(bt,te,d),sn=oe>Qt&&Qt!==0?Qt:oe;ie(bt),pe(sn),M==null||M(oe,bt),re(sn),m==null||m(sn,bt)}function ke(bt){if(Te(bt)&&!L){var Qt=Tp(void 0,te,d),sn=bt;return bt>Qt?sn=Qt:bt<1&&(sn=1),sn!==de&&pe(sn),re(sn),m==null||m(sn,te),sn}return oe}var Ee=oe>1,Ie=oe2?sn-2:0),In=2;Ind?d:oe*te])),Mt=null,Ye=Tp(void 0,te,d);if(y&&d<=te)return null;var Je=[],mt={rootPrefixCls:i,onClick:ke,onKeyPress:Ot,showTitle:$,itemRender:H,page:-1},Tt=oe-1>0?oe-1:0,Xt=oe+1=Nt*2&&oe!==3&&(Je[0]=we.cloneElement(Je[0],{className:me("".concat(i,"-item-after-jump-prev"),Je[0].props.className)}),Je.unshift(st)),Ye-oe>=Nt*2&&oe!==Ye-2){var Ge=Je[Je.length-1];Je[Je.length-1]=we.cloneElement(Ge,{className:me("".concat(i,"-item-before-jump-next"),Ge.props.className)}),Je.push(Mt)}ye!==1&&Je.unshift(we.createElement(xb,Le({},mt,{key:1,page:1}))),Re!==Ye&&Je.push(we.createElement(xb,Le({},mt,{key:Ye,page:Ye})))}var tt=gt(Tt);if(tt){var vt=!Ee||!Ye;tt=we.createElement("li",{title:$?T.prev_page:null,onClick:Ae,tabIndex:vt?null:0,onKeyDown:Wt,className:me("".concat(i,"-prev"),Z({},"".concat(i,"-disabled"),vt)),"aria-disabled":vt},tt)}var Lt=Pt(Xt);if(Lt){var on,mn;j?(on=!Ie,mn=Ee?0:null):(on=!Ie||!Ye,mn=on?null:0),Lt=we.createElement("li",{title:$?T.next_page:null,onClick:$e,tabIndex:mn,onKeyDown:et,className:me("".concat(i,"-next"),Z({},"".concat(i,"-disabled"),on)),"aria-disabled":on},Lt)}var fn=me(i,s,(n={},Z(n,"".concat(i,"-start"),x==="start"),Z(n,"".concat(i,"-center"),x==="center"),Z(n,"".concat(i,"-end"),x==="end"),Z(n,"".concat(i,"-simple"),j),Z(n,"".concat(i,"-disabled"),L),n));return we.createElement("ul",Le({className:fn,style:R,ref:Q},nt),lt,tt,j?$t:Je,Lt,we.createElement(Ije,{locale:T,rootPrefixCls:i,disabled:L,selectPrefixCls:o,changeSize:Ue,pageSize:te,pageSizeOptions:W,quickGo:Fe?ke:null,goButton:St,showSizeChanger:D,sizeChangerRender:z}))};const Lje=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},jje=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ue(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ue(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ue(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:fe(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:fe(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:fe(e.itemSizeSM),input:Object.assign(Object.assign({},JI(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Bje=e=>{const{componentCls:t}=e;return{[` + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ue(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ue(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ue(e.itemSizeSM),input:Object.assign(Object.assign({},YI(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Dje=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:fe(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:fe(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${fe(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${fe(e.inputOutlineOffset)} 0 ${fe(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},zje=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + `]:{height:e.itemSizeSM,lineHeight:ue(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:ue(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${ue(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${ue(e.inputOutlineOffset)} 0 ${ue(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Fje=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next @@ -386,20 +386,20 @@ html body { ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:fe(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${fe(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:fe(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},vb(e)),KI(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},kE(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Hje=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:fe(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${fe(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${fe(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Wje=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:fe(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Hje(e)),zje(e)),Bje(e)),Fje(e)),Dje(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Vje=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},nu(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},_d(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},_d(e))}}}},MQ=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},pb(e)),kQ=e=>$n(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},hb(e)),qje=tr("Pagination",e=>{const t=kQ(e);return[Wje(t),Vje(t)]},MQ),Uje=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Gje=jg(["Pagination","bordered"],e=>{const t=kQ(e);return[Uje(t)]},MQ);function TQ(e){return b.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var Kje=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:d}=e,h=Kje(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:p}=vI(c),[,g]=eo(),{getPrefixCls:v,direction:m,pagination:y={}}=b.useContext(Lt),x=v("pagination",n),[S,w,C]=qje(x),E=ja(s),O=E==="small"||!!(p&&!E&&c),[$]=Zo("Pagination",WB),P=Object.assign(Object.assign({},$),l),[M,k]=TQ(u),[T,R]=TQ(y.showSizeChanger),A=M!=null?M:T,N=k!=null?k:R,L=f||no,j=b.useMemo(()=>d?d.map(q=>Number(q)):void 0,[d]),F=q=>{var H;const{disabled:U,size:G,onSizeChange:K,"aria-label":X,className:Q,options:ee}=q,{className:ne,onChange:te}=N||{},ie=(H=ee.find(J=>String(J.value)===String(G)))===null||H===void 0?void 0:H.value;return b.createElement(L,Object.assign({disabled:U,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:J=>J.parentNode,"aria-label":X,options:ee},N,{value:ie,onChange:(J,le)=>{K==null||K(J),te==null||te(J,le)},size:O?"small":"middle",className:me(Q,ne)}))},B=b.useMemo(()=>{const q=b.createElement("span",{className:`${x}-item-ellipsis`},"•••"),H=b.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},m==="rtl"?b.createElement(sf,null):b.createElement(Sp,null)),U=b.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},m==="rtl"?b.createElement(Sp,null):b.createElement(sf,null)),G=b.createElement("a",{className:`${x}-item-link`},b.createElement("div",{className:`${x}-item-container`},m==="rtl"?b.createElement(_Q,{className:`${x}-item-link-icon`}):b.createElement(OQ,{className:`${x}-item-link-icon`}),q)),K=b.createElement("a",{className:`${x}-item-link`},b.createElement("div",{className:`${x}-item-container`},m==="rtl"?b.createElement(OQ,{className:`${x}-item-link-icon`}):b.createElement(_Q,{className:`${x}-item-link-icon`}),q));return{prevIcon:H,nextIcon:U,jumpPrevIcon:G,jumpNextIcon:K}},[m,x]),D=v("select",r),z=me({[`${x}-${t}`]:!!t,[`${x}-mini`]:O,[`${x}-rtl`]:m==="rtl",[`${x}-bordered`]:g.wireframe},y==null?void 0:y.className,i,a,w,C),W=Object.assign(Object.assign({},y==null?void 0:y.style),o);return S(b.createElement(b.Fragment,null,g.wireframe&&b.createElement(Gje,{prefixCls:x}),b.createElement(jje,Object.assign({},B,h,{style:W,prefixCls:x,selectPrefixCls:D,className:z,locale:P,pageSizeOptions:j,showSizeChanger:A,sizeChangerRender:F}))))},UE=100,RQ=UE/5,IQ=UE/2-RQ/2,T5=IQ*2*Math.PI,AQ=50,NQ=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return b.createElement("circle",{className:me(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:IQ,cx:AQ,cy:AQ,strokeWidth:RQ,style:n})},Yje=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[o,s]=b.useState(!1);Nn(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!o)return null;const c={strokeDashoffset:`${T5/4}`,strokeDasharray:`${T5*l/100} ${T5*(100-l)/100}`};return b.createElement("span",{className:me(i,`${r}-progress`,l<=0&&a)},b.createElement("svg",{viewBox:`0 0 ${UE} ${UE}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},b.createElement(NQ,{dotClassName:r,hasCircleCls:!0}),b.createElement(NQ,{dotClassName:r,style:c})))};function Xje(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return b.createElement(b.Fragment,null,b.createElement("span",{className:me(i,n>0&&a)},b.createElement("span",{className:me(r,`${t}-dot-spin`)},[1,2,3,4].map(o=>b.createElement("i",{className:`${t}-dot-item`,key:o})))),b.createElement(Yje,{prefixCls:t,percent:n}))}function Zje(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&b.isValidElement(n)?Pa(n,{className:me(n.props.className,i),percent:r}):b.createElement(Xje,{prefixCls:t,percent:r})}const Qje=new ur("antSpinMove",{to:{opacity:1}}),Jje=new ur("antRotate",{to:{transform:"rotate(405deg)"}}),e7e=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},er(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Qje,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Jje,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},t7e=tr("Spin",e=>{const t=$n(e,{spinDotDefault:e.colorTextDescription});return[e7e(t)]},e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),n7e=200,LQ=[[30,.05],[70,.03],[96,.01]];function r7e(e,t){const[n,r]=b.useState(0),i=b.useRef(null),a=t==="auto";return b.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(o=>{const s=100-o;for(let l=0;l{clearInterval(i.current)}),[a,e]),a?n:t}var i7e=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 i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:o,size:s="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:d=!1,indicator:h,percent:p}=e,g=i7e(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:m,spin:y}=b.useContext(Lt),x=v("spin",n),[S,w,C]=t7e(x),[E,O]=b.useState(()=>r&&!a7e(r,i)),$=r7e(E,p);b.useEffect(()=>{if(r){const N=bNe(i,()=>{O(!0)});return N(),()=>{var L;(L=N==null?void 0:N.cancel)===null||L===void 0||L.call(N)}}O(!1)},[i,r]);const P=b.useMemo(()=>typeof f!="undefined"&&!d,[f,d]),M=me(x,y==null?void 0:y.className,{[`${x}-sm`]:s==="small",[`${x}-lg`]:s==="large",[`${x}-spinning`]:E,[`${x}-show-text`]:!!l,[`${x}-rtl`]:m==="rtl"},a,!d&&o,w,C),k=me(`${x}-container`,{[`${x}-blur`]:E}),T=(t=h!=null?h:y==null?void 0:y.indicator)!==null&&t!==void 0?t:jQ,R=Object.assign(Object.assign({},y==null?void 0:y.style),u),A=b.createElement("div",Object.assign({},g,{style:R,className:M,"aria-live":"polite","aria-busy":E}),b.createElement(Zje,{prefixCls:x,indicator:T,percent:$}),l&&(P||d)?b.createElement("div",{className:`${x}-text`},l):null);return S(P?b.createElement("div",Object.assign({},g,{className:me(`${x}-nested-loading`,c,w,C)}),E&&b.createElement("div",{key:"loading"},A),b.createElement("div",{className:k,key:"container"},f)):d?b.createElement("div",{className:me(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:E},o,w,C)},A):A)};GE.setDefaultIndicator=e=>{jQ=e};function o7e(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}let _l=null,kp=e=>e(),Sb=[],wb={};function DQ(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=wb,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}const s7e=we.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=b.useContext(Lt),a=wb.prefixCls||i("message"),o=b.useContext(Pke),[s,l]=AU(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.message));return we.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),l7e=we.forwardRef((e,t)=>{const[n,r]=we.useState(DQ),i=()=>{r(DQ)};we.useEffect(i,[]);const a=cU(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=we.createElement(s7e,{ref:t,sync:i,messageConfig:n});return we.createElement(Sc,{prefixCls:o,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)});function KE(){if(!_l){const e=document.createDocumentFragment(),t={fragment:e};_l=t,kp(()=>{aR()(we.createElement(l7e,{ref:r=>{const{instance:i,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=a,KE())})}}),e)});return}_l.instance&&(Sb.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{kp(()=>{const r=_l.instance.open(Object.assign(Object.assign({},wb),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":kp(()=>{_l==null||_l.instance.destroy(e.key)});break;default:kp(()=>{var r;const i=(r=_l.instance)[t].apply(r,Ne(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),Sb=[])}function c7e(e){wb=Object.assign(Object.assign({},wb),e),kp(()=>{var t;(t=_l==null?void 0:_l.sync)===null||t===void 0||t.call(_l)})}function u7e(e){const t=tR(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return Sb.push(i),()=>{r?kp(()=>{r()}):i.skipped=!0}});return KE(),t}function f7e(e,t){const n=tR(r=>{let i;const a={type:e,args:t,resolve:r,setCloseFn:o=>{i=o}};return Sb.push(a),()=>{i?kp(()=>{i()}):a.skipped=!0}});return KE(),n}const d7e=e=>{Sb.push({type:"destroy",key:e}),KE()},h7e=["success","info","warning","error","loading"],na={open:u7e,destroy:d7e,config:c7e,useMessage:j$e,_InternalPanelDoNotUseOrYouWillBeFired:M$e};h7e.forEach(e=>{na[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:l}=e,c=p7e(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=b.useContext(Lt),f=u(),d=t||u("modal"),h=Ti(f),[p,g,v]=ZG(d,h),m=`${d}-confirm`;let y={};return a?y={closable:i!=null?i:!1,title:"",footer:"",children:b.createElement(JG,Object.assign({},e,{prefixCls:d,confirmPrefixCls:m,rootPrefixCls:f,content:s}))}:y={closable:i!=null?i:!0,title:o,footer:l!==null&&b.createElement(UG,Object.assign({},e)),children:s},p(b.createElement(vG,Object.assign({prefixCls:d,className:me(g,`${d}-pure-panel`,a&&m,a&&`${m}-${a}`,n,v,h)},c,{closeIcon:qG(d,r),closable:i},y)))});function FQ(e){return q1(rK(e))}const Ha=QG;Ha.useModal=$ke,Ha.info=function(t){return q1(iK(t))},Ha.success=function(t){return q1(aK(t))},Ha.error=function(t){return q1(oK(t))},Ha.warning=FQ,Ha.warn=FQ,Ha.confirm=function(t){return q1(sK(t))},Ha.destroyAll=function(){for(;mp.length;){const t=mp.pop();t&&t()}},Ha.config=wke,Ha._InternalPanelDoNotUseOrYouWillBeFired=v7e;const g7e=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:o,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},BQ=tr("Popconfirm",e=>g7e(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1});var m7e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:l="primary",icon:c=b.createElement(zg,null),showCancel:u=!0,close:f,onConfirm:d,onCancel:h,onPopupClick:p}=e,{getPrefixCls:g}=b.useContext(Lt),[v]=Zo("Popconfirm",_o.Popconfirm),m=nm(i),y=nm(a);return b.createElement("div",{className:`${t}-inner-content`,onClick:p},b.createElement("div",{className:`${t}-message`},c&&b.createElement("span",{className:`${t}-message-icon`},c),b.createElement("div",{className:`${t}-message-text`},m&&b.createElement("div",{className:`${t}-title`},m),y&&b.createElement("div",{className:`${t}-description`},y))),b.createElement("div",{className:`${t}-buttons`},u&&b.createElement(zn,Object.assign({onClick:h,size:"small"},r),o||(v==null?void 0:v.cancelText)),b.createElement($R,{buttonProps:Object.assign(Object.assign({size:"small"},fR(l)),n),actionFn:d,close:f,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},y7e=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,a=m7e(e,["prefixCls","placement","className","style"]),{getPrefixCls:o}=b.useContext(Lt),s=o("popconfirm",t),[l]=BQ(s);return l(b.createElement(cY,{placement:n,className:me(s,r),style:i,content:b.createElement(zQ,Object.assign({prefixCls:s},a))}))};var b7e=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,placement:a="top",trigger:o="click",okType:s="primary",icon:l=b.createElement(zg,null),children:c,overlayClassName:u,onOpenChange:f,onVisibleChange:d}=e,h=b7e(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:p}=b.useContext(Lt),[g,v]=Yn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),m=($,P)=>{v($,!0),d==null||d($),f==null||f($,P)},y=$=>{m(!1,$)},x=$=>{var P;return(P=e.onConfirm)===null||P===void 0?void 0:P.call(void 0,$)},S=$=>{var P;m(!1,$),(P=e.onCancel)===null||P===void 0||P.call(void 0,$)},w=($,P)=>{const{disabled:M=!1}=e;M||m($,P)},C=p("popconfirm",i),E=me(C,u),[O]=BQ(C);return O(b.createElement(yI,Object.assign({},Or(h,["title"]),{trigger:o,placement:a,onOpenChange:w,open:g,ref:t,overlayClassName:E,content:b.createElement(zQ,Object.assign({okType:s,icon:l},e,{prefixCls:C,close:y,onConfirm:x,onCancel:S})),"data-popover-inject":!0}),c))});R5._InternalPanelDoNotUseOrYouWillBeFired=y7e;var x7e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},S7e=function(){var t=b.useRef([]),n=b.useRef(null);return b.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(a){if(a){i=!0;var o=a.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(o.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},HQ=0,w7e=Ja();function C7e(){var e;return w7e?(e=HQ,HQ+=1):e="TEST_OR_SSR",e}const E7e=function(e){var t=b.useState(),n=he(t,2),r=n[0],i=n[1];return b.useEffect(function(){i("rc_progress_".concat(C7e()))},[]),e||r};var WQ=function(t){var n=t.bg,r=t.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function VQ(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var O7e=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,d=r&&Bt(r)==="object",h=d?"#FFF":void 0,p=u/2,g=b.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:p,cy:p,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:o,ref:t});if(!d)return g;var v="".concat(i,"-conic"),m=f?"".concat(180+f/2,"deg"):"0deg",y=VQ(r,(360-f)/360),x=VQ(r,1),S="conic-gradient(from ".concat(m,", ").concat(y.join(", "),")"),w="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:v},g),b.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},b.createElement(WQ,{bg:w},b.createElement(WQ,{bg:S}))))}),Cb=100,I5=function(t,n,r,i,a,o,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,d=r/100*360*((360-o)/360),h=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],p=(100-i)/100*n;c==="round"&&i!==100&&(p+=u/2,p>=n&&(p=n-.01));var g=Cb/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:p+f,transform:"rotate(".concat(a+d+h,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},_7e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function qQ(e){var t=e!=null?e:[];return Array.isArray(t)?t:[t]}var $7e=function(t){var n=ae(ae({},x7e),t),r=n.id,i=n.prefixCls,a=n.steps,o=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,f=n.trailColor,d=n.strokeLinecap,h=n.style,p=n.className,g=n.strokeColor,v=n.percent,m=Vt(n,_7e),y=Cb/2,x=E7e(r),S="".concat(x,"-gradient"),w=y-o/2,C=Math.PI*2*w,E=c>0?90+c/2:-90,O=C*((360-c)/360),$=Bt(a)==="object"?a:{count:a,gap:2},P=$.count,M=$.gap,k=qQ(v),T=qQ(g),R=T.find(function(D){return D&&Bt(D)==="object"}),A=R&&Bt(R)==="object",N=A?"butt":d,L=I5(C,O,0,100,E,c,u,f,N,o),j=S7e(),F=function(){var z=0;return k.map(function(W,q){var H=T[q]||T[T.length-1],U=I5(C,O,z,W,E,c,u,H,N,o);return z+=W,b.createElement(O7e,{key:q,color:H,ptg:W,radius:w,prefixCls:i,gradientId:S,style:U,strokeLinecap:N,strokeWidth:o,gapDegree:c,ref:function(K){j[q]=K},size:Cb})}).reverse()},B=function(){var z=Math.round(P*(k[0]/100)),W=100/P,q=0;return new Array(P).fill(null).map(function(H,U){var G=U<=z-1?T[0]:f,K=G&&Bt(G)==="object"?"url(#".concat(S,")"):void 0,X=I5(C,O,q,W,E,c,u,G,"butt",o,M);return q+=(O-X.strokeDashoffset+M)*100/O,b.createElement("circle",{key:U,className:"".concat(i,"-circle-path"),r:w,cx:y,cy:y,stroke:K,strokeWidth:o,opacity:1,style:X,ref:function(ee){j[U]=ee}})})};return b.createElement("svg",Le({className:me("".concat(i,"-circle"),p),viewBox:"0 0 ".concat(Cb," ").concat(Cb),style:h,id:r,role:"presentation"},m),!P&&b.createElement("circle",{className:"".concat(i,"-circle-trail"),r:w,cx:y,cy:y,stroke:f,strokeLinecap:N,strokeWidth:s||o,style:L}),P?B():F())};function Dd(e){return!e||e<0?0:e>100?100:e}function YE(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const P7e=e=>{let{percent:t,success:n,successPercent:r}=e;const i=Dd(YE({success:n,successPercent:r}));return[i,Dd(Dd(t)-i)]},M7e=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Ag.green,n||null]},XE=(e,t,n)=>{var r,i,a,o;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e=="undefined"?(s=e==="small"?2:14,l=u!=null?u:8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e=="undefined"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e=="undefined"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(o=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&o!==void 0?o:120));return[s,l]},k7e=3,T7e=e=>k7e/e*100,R7e=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:o=120,type:s,children:l,success:c,size:u=o,steps:f}=e,[d,h]=XE(u,"circle");let{strokeWidth:p}=e;p===void 0&&(p=Math.max(T7e(d),6));const g={width:d,height:h,fontSize:d*.15+6},v=b.useMemo(()=>{if(a||a===0)return a;if(s==="dashboard")return 75},[a,s]),m=P7e(e),y=i||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=M7e({success:c,strokeColor:e.strokeColor}),w=me(`${t}-inner`,{[`${t}-circle-gradient`]:x}),C=b.createElement($7e,{steps:f,percent:f?m[1]:m,strokeWidth:p,trailWidth:p,strokeColor:f?S[1]:S,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:y}),E=d<=20,O=b.createElement("div",{className:w,style:g},C,!E&&l);return E?b.createElement(ro,{title:l},O):O},ZE="--progress-line-stroke-color",UQ="--progress-percent",GQ=e=>{const t=e?"100%":"-100%";return new ur(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},I7e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},er(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ZE})`]},height:"100%",width:`calc(1 / var(${UQ}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${fe(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:GQ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:GQ(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},A7e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},N7e=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},L7e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},j7e=tr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=$n(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[I7e(n),A7e(n),N7e(n),L7e(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}));var D7e=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 i=0,r=Object.getOwnPropertySymbols(e);i{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},B7e=(e,t)=>{const{from:n=Ag.blue,to:r=Ag.blue,direction:i=t==="rtl"?"to left":"to right"}=e,a=D7e(e,["from","to","direction"]);if(Object.keys(a).length!==0){const s=F7e(a),l=`linear-gradient(${i}, ${s})`;return{background:l,[ZE]:l}}const o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[ZE]:o}},z7e=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:a,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:d,type:h}=u,p=o&&typeof o!="string"?B7e(o,n):{[ZE]:o,background:o},g=s==="square"||s==="butt"?0:void 0,v=i!=null?i:[-1,a||(i==="small"?6:8)],[m,y]=XE(v,"line",{strokeWidth:a}),x={backgroundColor:c||void 0,borderRadius:g},S=Object.assign(Object.assign({width:`${Dd(r)}%`,height:y,borderRadius:g},p),{[UQ]:Dd(r)/100}),w=YE(e),C={width:`${Dd(w)}%`,height:y,borderRadius:g,backgroundColor:f==null?void 0:f.strokeColor},E={width:m<0?"100%":m},O=b.createElement("div",{className:`${t}-inner`,style:x},b.createElement("div",{className:me(`${t}-bg`,`${t}-bg-${h}`),style:S},h==="inner"&&l),w!==void 0&&b.createElement("div",{className:`${t}-success-bg`,style:C})),$=h==="outer"&&d==="start",P=h==="outer"&&d==="end";return h==="outer"&&d==="center"?b.createElement("div",{className:`${t}-layout-bottom`},O,l):b.createElement("div",{className:`${t}-outer`,style:E},$&&l,O,P&&l)},H7e=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:o=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),u=t==="small"?2:14,f=t!=null?t:[u,i],[d,h]=XE(f,"step",{steps:n,strokeWidth:i}),p=d/n,g=new Array(n);for(let v=0;v{const{prefixCls:n,className:r,rootClassName:i,steps:a,strokeColor:o,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:d,style:h,percentPosition:p={}}=e,g=W7e(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:m="outer"}=p,y=Array.isArray(o)?o[0]:o,x=typeof o=="string"||Array.isArray(o)?o:void 0,S=b.useMemo(()=>{if(y){const F=typeof y=="string"?y:Object.values(y)[0];return new Un(F).isLight()}return!1},[o]),w=b.useMemo(()=>{var F,B;const D=YE(e);return parseInt(D!==void 0?(F=D!=null?D:0)===null||F===void 0?void 0:F.toString():(B=s!=null?s:0)===null||B===void 0?void 0:B.toString(),10)},[s,e.success,e.successPercent]),C=b.useMemo(()=>!V7e.includes(f)&&w>=100?"success":f||"normal",[f,w]),{getPrefixCls:E,direction:O,progress:$}=b.useContext(Lt),P=E("progress",n),[M,k,T]=j7e(P),R=u==="line",A=R&&!a,N=b.useMemo(()=>{if(!c)return null;const F=YE(e);let B;const D=d||(W=>`${W}%`),z=R&&S&&m==="inner";return m==="inner"||d||C!=="exception"&&C!=="success"?B=D(Dd(s),Dd(F)):C==="exception"?B=R?b.createElement(pp,null):b.createElement(Pd,null):C==="success"&&(B=R?b.createElement(I1,null):b.createElement(hI,null)),b.createElement("span",{className:me(`${P}-text`,{[`${P}-text-bright`]:z,[`${P}-text-${v}`]:A,[`${P}-text-${m}`]:A}),title:typeof B=="string"?B:void 0},B)},[c,s,w,C,u,P,d]);let L;u==="line"?L=a?b.createElement(H7e,Object.assign({},e,{strokeColor:x,prefixCls:P,steps:typeof a=="object"?a.count:a}),N):b.createElement(z7e,Object.assign({},e,{strokeColor:y,prefixCls:P,direction:O,percentPosition:{align:v,type:m}}),N):(u==="circle"||u==="dashboard")&&(L=b.createElement(R7e,Object.assign({},e,{strokeColor:y,prefixCls:P,progressStatus:C}),N));const j=me(P,`${P}-status-${C}`,{[`${P}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${P}-inline-circle`]:u==="circle"&&XE(l,"circle")[0]<=20,[`${P}-line`]:A,[`${P}-line-align-${v}`]:A,[`${P}-line-position-${m}`]:A,[`${P}-steps`]:a,[`${P}-show-info`]:c,[`${P}-${l}`]:typeof l=="string",[`${P}-rtl`]:O==="rtl"},$==null?void 0:$.className,r,i,k,T);return M(b.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},$==null?void 0:$.style),h),className:j,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},Or(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),L))});function Tp(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=oC(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var U7e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},G7e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:U7e}))},K7e=b.forwardRef(G7e),Y7e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},X7e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:Y7e}))},Z7e=b.forwardRef(X7e),Q7e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},J7e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:Q7e}))},eDe=b.forwardRef(J7e),tDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},nDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:tDe}))},rDe=b.forwardRef(nDe),iDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},aDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:iDe}))},QE=b.forwardRef(aDe),oDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},sDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:oDe}))},A5=b.forwardRef(sDe),lDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},cDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:lDe}))},JE=b.forwardRef(cDe),uDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},fDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:uDe}))},dDe=b.forwardRef(fDe),hDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},pDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:hDe}))},KQ=b.forwardRef(pDe),vDe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},gDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:vDe}))},mDe=b.forwardRef(gDe),yDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},bDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:yDe}))},YQ=b.forwardRef(bDe),xDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},SDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:xDe}))},XQ=b.forwardRef(SDe),wDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},CDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:wDe}))},EDe=b.forwardRef(CDe),ODe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},_De=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:ODe}))},$De=b.forwardRef(_De),PDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},MDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:PDe}))},kDe=b.forwardRef(MDe),TDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},RDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:TDe}))},IDe=b.forwardRef(RDe),ADe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},NDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:ADe}))},LDe=b.forwardRef(NDe),jDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},DDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:jDe}))},FDe=b.forwardRef(DDe),BDe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},zDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:BDe}))},HDe=b.forwardRef(zDe),WDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},VDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:WDe}))},N5=b.forwardRef(VDe),qDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},UDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:qDe}))},GDe=b.forwardRef(UDe),KDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z"}}]},name:"save",theme:"filled"},YDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:KDe}))},ZQ=b.forwardRef(YDe),XDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},ZDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:XDe}))},ym=b.forwardRef(ZDe),QDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},JDe=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:QDe}))},e9e=b.forwardRef(JDe),t9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},n9e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:t9e}))},r9e=b.forwardRef(n9e),i9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},a9e=function(t,n){return b.createElement(xn,Le({},t,{ref:n,icon:i9e}))},o9e=b.forwardRef(a9e);const s9e=()=>b.createElement("svg",{width:"252",height:"294"},b.createElement("title",null,"No Found"),b.createElement("defs",null,b.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(0 .012)"},b.createElement("mask",{fill:"#fff"}),b.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),b.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),b.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),b.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),b.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),b.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),b.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),b.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),b.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),b.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),b.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),b.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),b.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),b.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),b.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),b.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),b.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),b.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),b.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),b.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),b.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),b.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),b.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),b.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),b.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),b.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),b.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),b.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),b.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),b.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),b.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),b.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),b.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),b.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),b.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),b.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),b.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),b.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),b.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),l9e=()=>b.createElement("svg",{width:"254",height:"294"},b.createElement("title",null,"Server Error"),b.createElement("defs",null,b.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),b.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(0 .067)"},b.createElement("mask",{fill:"#fff"}),b.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),b.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),b.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),b.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),b.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),b.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),b.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),b.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),b.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),b.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),b.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),b.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),b.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),b.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),b.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),b.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),b.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),b.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),b.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),b.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),b.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),b.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),b.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),b.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),b.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),b.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),b.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),b.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),b.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),b.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),b.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),b.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),b.createElement("mask",{fill:"#fff"}),b.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),b.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),b.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),b.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),b.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),b.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),b.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),b.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),b.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),b.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),b.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),c9e=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${fe(e.calc(s).mul(2).equal())} ${fe(a)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${fe(s)} ${fe(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},u9e=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},f9e=e=>[c9e(e),u9e(e)],d9e=e=>f9e(e),h9e=tr("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,a=$n(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[d9e(a)]},e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`})),p9e=()=>b.createElement("svg",{width:"251",height:"294"},b.createElement("title",null,"Unauthorized"),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),b.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),b.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),b.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),b.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),b.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),b.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),b.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),b.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),b.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),b.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),b.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),b.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),b.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),b.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),b.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),b.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),b.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),b.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),b.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),b.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),b.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),b.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),b.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),b.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),b.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),b.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),b.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),b.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),b.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),b.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),b.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),b.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),b.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),b.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),b.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),v9e={success:I1,error:pp,info:zg,warning:o9e},Eb={404:s9e,500:l9e,403:p9e},g9e=Object.keys(Eb),m9e=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=me(`${t}-icon`);if(g9e.includes(`${r}`)){const o=Eb[r];return b.createElement("div",{className:`${i} ${t}-image`},b.createElement(o,null))}const a=b.createElement(v9e[r]);return n===null||n===!1?null:b.createElement("div",{className:i},n||a)},y9e=e=>{let{prefixCls:t,extra:n}=e;return n?b.createElement("div",{className:`${t}-extra`},n):null},eO=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:a,style:o,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:f,direction:d,result:h}=b.useContext(Lt),p=f("result",t),[g,v,m]=h9e(p),y=me(p,`${p}-${l}`,n,h==null?void 0:h.className,r,{[`${p}-rtl`]:d==="rtl"},v,m),x=Object.assign(Object.assign({},h==null?void 0:h.style),o);return g(b.createElement("div",{className:y,style:x},b.createElement(m9e,{prefixCls:p,status:l,icon:c}),b.createElement("div",{className:`${p}-title`},a),i&&b.createElement("div",{className:`${p}-subtitle`},i),b.createElement(y9e,{prefixCls:p,extra:u}),s&&b.createElement("div",{className:`${p}-content`},s)))};eO.PRESENTED_IMAGE_403=Eb[403],eO.PRESENTED_IMAGE_404=Eb[404],eO.PRESENTED_IMAGE_500=Eb[500];var b9e=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],QQ=b.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,a=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,d=e.onClick,h=e.onChange,p=e.onKeyDown,g=Vt(e,b9e),v=Yn(!1,{value:o,defaultValue:s}),m=he(v,2),y=m[0],x=m[1];function S(O,$){var P=y;return l||(P=O,x(P),h==null||h(P,$)),P}function w(O){O.which===Ze.LEFT?S(!1,O):O.which===Ze.RIGHT&&S(!0,O),p==null||p(O)}function C(O){var $=S(!y,O);d==null||d($,O)}var E=me(i,a,(n={},Z(n,"".concat(i,"-checked"),y),Z(n,"".concat(i,"-disabled"),l),n));return b.createElement("button",Le({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:E,ref:t,onKeyDown:w,onClick:C}),c,b.createElement("span",{className:"".concat(i,"-inner")},b.createElement("span",{className:"".concat(i,"-inner-checked")},u),b.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});QQ.displayName="Switch";const x9e=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=fe(l(s).add(l(r).mul(2)).equal()),f=fe(l(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:fe(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${fe(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},S9e=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},w9e=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${fe(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},C9e=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,calc:s}=e,l=`${t}-inner`,c=fe(s(o).add(s(r).mul(2)).equal()),u=fe(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},E9e=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:fe(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),nu(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},O9e=tr("Switch",e=>{const t=$n(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[E9e(t),C9e(t),w9e(t),S9e(t),x9e(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=2,l=a-s*2,c=o-s*2;return{trackHeight:a,trackHeightSM:o,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Un("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}});var _9e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:d,onChange:h}=e,p=_9e(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=Yn(!1,{value:c!=null?c:u,defaultValue:f!=null?f:d}),{getPrefixCls:m,direction:y,switch:x}=b.useContext(Lt),S=b.useContext(mo),w=(i!=null?i:S)||a,C=m("switch",n),E=b.createElement("div",{className:`${C}-handle`},a&&b.createElement(af,{className:`${C}-loading-icon`})),[O,$,P]=O9e(C),M=ja(r),k=me(x==null?void 0:x.className,{[`${C}-small`]:M==="small",[`${C}-loading`]:a,[`${C}-rtl`]:y==="rtl"},o,s,$,P),T=Object.assign(Object.assign({},x==null?void 0:x.style),l),R=function(){v(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return O(b.createElement(N1,{component:"Switch"},b.createElement(QQ,Object.assign({},p,{checked:g,onChange:R,prefixCls:C,className:k,style:T,disabled:w,ref:t,loadingIcon:E}))))});JQ.__ANT_SWITCH=!0;var Fd={},Ob="rc-table-internal-hook";function L5(e){var t=b.createContext(void 0),n=function(i){var a=i.value,o=i.children,s=b.useRef(a);s.current=a;var l=b.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=he(l,1),u=c[0];return Nn(function(){ys.unstable_batchedUpdates(function(){u.listeners.forEach(function(f){f(a)})})},[a]),b.createElement(t.Provider,{value:u},o)};return{Context:t,Provider:n,defaultValue:e}}function yo(e,t){var n=_n(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var d={};return t.forEach(function(h){d[h]=f[h]}),d}),r=b.useContext(e==null?void 0:e.Context),i=r||{},a=i.listeners,o=i.getValue,s=b.useRef();s.current=n(r?o():e==null?void 0:e.defaultValue);var l=b.useState({}),c=he(l,2),u=c[1];return Nn(function(){if(!r)return;function f(d){var h=n(d);yl(s.current,h,!0)||u({})}return a.add(f),function(){a.delete(f)}},[r]),s.current}function $9e(){var e=b.createContext(null);function t(){return b.useContext(e)}function n(i,a){var o=vc(i),s=function(c,u){var f=o?{ref:u}:{},d=b.useRef(0),h=b.useRef(c),p=t();return p!==null?b.createElement(i,Le({},c,f)):((!a||a(h.current,c))&&(d.current+=1),h.current=c,b.createElement(e.Provider,{value:d.current},b.createElement(i,Le({},c,f))))};return o?b.forwardRef(s):s}function r(i,a){var o=vc(i),s=function(c,u){var f=o?{ref:u}:{};return t(),b.createElement(i,Le({},c,f))};return o?b.memo(b.forwardRef(s),a):b.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var j5=$9e(),eJ=j5.makeImmutable,bm=j5.responseImmutable,P9e=j5.useImmutableMark,es=L5(),tJ=b.createContext({renderWithProps:!1}),M9e="RC_TABLE_KEY";function k9e(e){return e==null?[]:Array.isArray(e)?e:[e]}function tO(e){var t=[],n={};return e.forEach(function(r){for(var i=r||{},a=i.key,o=i.dataIndex,s=a||k9e(o).join("-")||M9e;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function D5(e){return e!=null}function T9e(e){return typeof e=="number"&&!Number.isNaN(e)}function R9e(e){return e&&Bt(e)==="object"&&!Array.isArray(e)&&!b.isValidElement(e)}function I9e(e,t,n,r,i,a){var o=b.useContext(tJ),s=P9e(),l=op(function(){if(D5(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=Xo(e,c),f=u,d=void 0;if(i){var h=i(u,e,n);R9e(h)?(f=h.children,d=h.props,o.renderWithProps=!0):f=h}return[f,d]},[s,e,r,t,i,n],function(c,u){if(a){var f=he(c,2),d=f[1],h=he(u,2),p=h[1];return a(p,d)}return o.renderWithProps?!0:!yl(c,u,!0)});return l}function A9e(e,t,n,r){var i=e+t-1;return e<=r&&i>=n}function N9e(e,t){return yo(es,function(n){var r=A9e(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var L9e=function(t){var n=t.ellipsis,r=t.rowType,i=t.children,a,o=n===!0?{showTitle:!0}:n;return o&&(o.showTitle||r==="header")&&(typeof i=="string"||typeof i=="number"?a=i.toString():b.isValidElement(i)&&typeof i.props.children=="string"&&(a=i.props.children)),a};function j9e(e){var t,n,r,i,a,o,s,l,c=e.component,u=e.children,f=e.ellipsis,d=e.scope,h=e.prefixCls,p=e.className,g=e.align,v=e.record,m=e.render,y=e.dataIndex,x=e.renderIndex,S=e.shouldCellUpdate,w=e.index,C=e.rowType,E=e.colSpan,O=e.rowSpan,$=e.fixLeft,P=e.fixRight,M=e.firstFixLeft,k=e.lastFixLeft,T=e.firstFixRight,R=e.lastFixRight,A=e.appendNode,N=e.additionalProps,L=N===void 0?{}:N,j=e.isSticky,F="".concat(h,"-cell"),B=yo(es,["supportSticky","allColumnsFixedLeft","rowHoverable"]),D=B.supportSticky,z=B.allColumnsFixedLeft,W=B.rowHoverable,q=I9e(v,y,x,u,m,S),H=he(q,2),U=H[0],G=H[1],K={},X=typeof $=="number"&&D,Q=typeof P=="number"&&D;X&&(K.position="sticky",K.left=$),Q&&(K.position="sticky",K.right=P);var ee=(t=(n=(r=G==null?void 0:G.colSpan)!==null&&r!==void 0?r:L.colSpan)!==null&&n!==void 0?n:E)!==null&&t!==void 0?t:1,ne=(i=(a=(o=G==null?void 0:G.rowSpan)!==null&&o!==void 0?o:L.rowSpan)!==null&&a!==void 0?a:O)!==null&&i!==void 0?i:1,te=N9e(w,ne),ie=he(te,2),J=ie[0],le=ie[1],oe=_n(function(Se){var Oe;v&&le(w,w+ne-1),L==null||(Oe=L.onMouseEnter)===null||Oe===void 0||Oe.call(L,Se)}),re=_n(function(Se){var Oe;v&&le(-1,-1),L==null||(Oe=L.onMouseLeave)===null||Oe===void 0||Oe.call(L,Se)});if(ee===0||ne===0)return null;var se=(s=L.title)!==null&&s!==void 0?s:L9e({rowType:C,ellipsis:f,children:U}),ge=me(F,p,(l={},Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(l,"".concat(F,"-fix-left"),X&&D),"".concat(F,"-fix-left-first"),M&&D),"".concat(F,"-fix-left-last"),k&&D),"".concat(F,"-fix-left-all"),k&&z&&D),"".concat(F,"-fix-right"),Q&&D),"".concat(F,"-fix-right-first"),T&&D),"".concat(F,"-fix-right-last"),R&&D),"".concat(F,"-ellipsis"),f),"".concat(F,"-with-append"),A),"".concat(F,"-fix-sticky"),(X||Q)&&j&&D),Z(l,"".concat(F,"-row-hover"),!G&&J)),L.className,G==null?void 0:G.className),de={};g&&(de.textAlign=g);var pe=ae(ae(ae(ae({},G==null?void 0:G.style),K),de),L.style),ue=U;return Bt(ue)==="object"&&!Array.isArray(ue)&&!b.isValidElement(ue)&&(ue=null),f&&(k||T)&&(ue=b.createElement("span",{className:"".concat(F,"-content")},ue)),b.createElement(c,Le({},G,L,{className:ge,style:pe,title:se,scope:d,onMouseEnter:W?oe:void 0,onMouseLeave:W?re:void 0,colSpan:ee!==1?ee:null,rowSpan:ne!==1?ne:null}),A,ue)}const xm=b.memo(j9e);function F5(e,t,n,r,i){var a=n[e]||{},o=n[t]||{},s,l;a.fixed==="left"?s=r.left[i==="rtl"?t:e]:o.fixed==="right"&&(l=r.right[i==="rtl"?e:t]);var c=!1,u=!1,f=!1,d=!1,h=n[t+1],p=n[e-1],g=h&&!h.fixed||p&&!p.fixed||n.every(function(S){return S.fixed==="left"});if(i==="rtl"){if(s!==void 0){var v=p&&p.fixed==="left";d=!v&&g}else if(l!==void 0){var m=h&&h.fixed==="right";f=!m&&g}}else if(s!==void 0){var y=h&&h.fixed==="left";c=!y&&g}else if(l!==void 0){var x=p&&p.fixed==="right";u=!x&&g}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:f,firstFixLeft:d,isSticky:r.isSticky}}var nJ=b.createContext({});function D9e(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=i===void 0?1:i,o=e.rowSpan,s=e.align,l=yo(es,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,f=b.useContext(nJ),d=f.scrollColumnIndex,h=f.stickyOffsets,p=f.flattenColumns,g=n+a-1,v=g+1===d?a+1:a,m=F5(n,n+v-1,p,h,u);return b.createElement(xm,Le({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:o,render:function(){return r}},m))}var F9e=["children"];function B9e(e){var t=e.children,n=Vt(e,F9e);return b.createElement("tr",n,t)}function nO(e){var t=e.children;return t}nO.Row=B9e,nO.Cell=D9e;function z9e(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=yo(es,"prefixCls"),a=r.length-1,o=r[a],s=b.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o!=null&&o.scrollbar?a:null}},[o,r,a,n]);return b.createElement(nJ.Provider,{value:s},b.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const rO=bm(z9e);var rJ=nO;function H9e(e){return null}function W9e(e){return null}function iJ(e,t,n,r,i,a,o){e.push({record:t,indent:n,index:o});var s=a(t),l=i==null?void 0:i.has(s);if(t&&Array.isArray(t[r])&&l)for(var c=0;c1?M-1:0),T=1;T=1)),style:ae(ae({},n),m==null?void 0:m.style)}),p.map(function($,P){var M=$.render,k=$.dataIndex,T=$.className,R=cJ(d,$,P,l,i),A=R.key,N=R.fixedInfo,L=R.appendCellNode,j=R.additionalCellProps;return b.createElement(xm,Le({className:T,ellipsis:$.ellipsis,align:$.align,scope:$.rowScope,component:$.rowScope?f:u,prefixCls:h,key:A,record:r,index:i,renderIndex:a,dataIndex:k,render:M,shouldCellUpdate:$.shouldCellUpdate},N,{appendNode:L,additionalProps:j}))})),E;if(x&&(S.current||y)){var O=v(r,i,l+1,y);E=b.createElement(sJ,{expanded:y,className:me("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(l+1),w),prefixCls:h,component:c,cellComponent:u,colSpan:p.length,isEmpty:!1},O)}return b.createElement(b.Fragment,null,C,E)}const G9e=bm(U9e);function K9e(e){var t=e.columnKey,n=e.onColumnResize,r=b.useRef();return b.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),b.createElement(vo,{data:t},b.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},b.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function Y9e(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return b.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},b.createElement(vo.Collection,{onBatchResize:function(a){a.forEach(function(o){var s=o.data,l=o.size;r(s,l.offsetWidth)})}},n.map(function(i){return b.createElement(K9e,{key:i,columnKey:i,onColumnResize:r})})))}function X9e(e){var t=e.data,n=e.measureColumnWidth,r=yo(es,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=r.prefixCls,a=r.getComponent,o=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,c=r.expandedKeys,u=r.childrenColumnName,f=r.emptyNode,d=aJ(t,u,c,l),h=b.useRef({renderWithProps:!1}),p=a(["body","wrapper"],"tbody"),g=a(["body","row"],"tr"),v=a(["body","cell"],"td"),m=a(["body","cell"],"th"),y;t.length?y=d.map(function(S,w){var C=S.record,E=S.indent,O=S.index,$=l(C,w);return b.createElement(G9e,{key:$,rowKey:$,record:C,index:w,renderIndex:O,rowComponent:g,cellComponent:v,scopeCellComponent:m,getRowKey:l,indent:E})}):y=b.createElement(sJ,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:g,cellComponent:v,colSpan:s.length,isEmpty:!0},f);var x=tO(s);return b.createElement(tJ.Provider,{value:h.current},b.createElement(p,{className:"".concat(i,"-tbody")},n&&b.createElement(Y9e,{prefixCls:i,columnsKey:x,onColumnResize:o}),y))}const Z9e=bm(X9e);var Q9e=["expandable"],_b="RC_TABLE_INTERNAL_COL_DEFINE";function J9e(e){var t=e.expandable,n=Vt(e,Q9e),r;return"expandable"in e?r=ae(ae({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var eFe=["columnType"];function uJ(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=yo(es,["tableLayout"]),a=i.tableLayout,o=[],s=r||n.length,l=!1,c=s-1;c>=0;c-=1){var u=t[c],f=n&&n[c],d=void 0,h=void 0;if(f&&(d=f[_b],a==="auto"&&(h=f.minWidth)),u||h||d||l){var p=d||{};p.columnType;var g=Vt(p,eFe);o.unshift(b.createElement("col",Le({key:c,style:{width:u,minWidth:h}},g))),l=!0}}return b.createElement("colgroup",null,o)}var tFe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function nFe(e,t){return b.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:o,prefixCls:u,key:h[g]},m,{additionalProps:y,rowType:"header"}))}))};function aFe(e){var t=[];function n(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=s,u=o.filter(Boolean).map(function(f){var d={key:f.key,className:f.className||"",children:f.title,column:f,colStart:c},h=1,p=f.children;return p&&p.length>0&&(h=n(p,c,l+1).reduce(function(g,v){return g+v},0),d.hasSubColumns=!0),"colSpan"in f&&(h=f.colSpan),"rowSpan"in f&&(d.rowSpan=f.rowSpan),d.colSpan=h,d.colEnd=d.colStart+h-1,t[l].push(d),c+=h,h});return u}n(e,0);for(var r=t.length,i=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},a=0;a1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function sFe(e,t,n){return b.useMemo(function(){if(t&&t>0){var r=0,i=0;e.forEach(function(d){var h=hJ(t,d.width);h?r+=h:i+=1});var a=Math.max(t,n),o=Math.max(a-r,i),s=i,l=o/i,c=0,u=e.map(function(d){var h=ae({},d),p=hJ(t,h.width);if(p)h.width=p;else{var g=Math.floor(l);h.width=s===1?o:g,o-=g,s-=1}return c+=h.width,h});if(c0?ae(ae({},t),{},{children:pJ(n)}):t})}function z5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Bt(n)==="object"}).reduce(function(n,r,i){var a=r.fixed,o=a===!0?"left":a,s="".concat(t,"-").concat(i),l=r.children;return l&&l.length>0?[].concat(Ne(n),Ne(z5(l,s).map(function(c){return ae({fixed:o},c)}))):[].concat(Ne(n),[ae(ae({key:s},r),{},{fixed:o})])},[])}function uFe(e){return e.map(function(t){var n=t.fixed,r=Vt(t,cFe),i=n;return n==="left"?i="right":n==="right"&&(i="left"),ae({fixed:i},r)})}function fFe(e,t){var n=e.prefixCls,r=e.columns,i=e.children,a=e.expandable,o=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,f=e.rowExpandable,d=e.expandIconColumnIndex,h=e.direction,p=e.expandRowByClick,g=e.columnWidth,v=e.fixed,m=e.scrollWidth,y=e.clientWidth,x=b.useMemo(function(){var k=r||B5(i)||[];return pJ(k.slice())},[r,i]),S=b.useMemo(function(){if(a){var k=x.slice();if(!k.includes(Fd)){var T=d||0;T>=0&&k.splice(T,0,Fd)}var R=k.indexOf(Fd);k=k.filter(function(j,F){return j!==Fd||F===R});var A=x[R],N;(v==="left"||v)&&!d?N="left":(v==="right"||v)&&d===x.length?N="right":N=A?A.fixed:null;var L=Z(Z(Z(Z(Z(Z({},_b,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",N),"className","".concat(n,"-row-expand-icon-cell")),"width",g),"render",function(F,B,D){var z=l(B,D),W=o.has(z),q=f?f(B):!0,H=u({prefixCls:n,expanded:W,expandable:q,record:B,onExpand:c});return p?b.createElement("span",{onClick:function(G){return G.stopPropagation()}},H):H});return k.map(function(j){return j===Fd?L:j})}return x.filter(function(j){return j!==Fd})},[a,x,l,o,u,h]),w=b.useMemo(function(){var k=S;return t&&(k=t(k)),k.length||(k=[{render:function(){return null}}]),k},[t,S,h]),C=b.useMemo(function(){return h==="rtl"?uFe(z5(w)):z5(w)},[w,h,m]),E=b.useMemo(function(){for(var k=-1,T=C.length-1;T>=0;T-=1){var R=C[T].fixed;if(R==="left"||R===!0){k=T;break}}if(k>=0)for(var A=0;A<=k;A+=1){var N=C[A].fixed;if(N!=="left"&&N!==!0)return!0}var L=C.findIndex(function(B){var D=B.fixed;return D==="right"});if(L>=0)for(var j=L;j=f&&(j=f-d),o({scrollLeft:j/f*(u+2)}),y.current.x=R.pageX},M=function(){E.current=bn(function(){if(a.current){var R=O5(a.current).top,A=R+a.current.offsetHeight,N=l===window?document.documentElement.scrollTop+window.innerHeight:O5(l).top+l.clientHeight;A-oG()<=N||R>=N-s?m(function(L){return ae(ae({},L),{},{isHiddenScrollBar:!0})}):m(function(L){return ae(ae({},L),{},{isHiddenScrollBar:!1})})}})},k=function(R){m(function(A){return ae(ae({},A),{},{scrollLeft:R/u*f||0})})};return b.useImperativeHandle(n,function(){return{setScrollLeft:k,checkScrollBarVisible:M}}),b.useEffect(function(){var T=au(document.body,"mouseup",O,!1),R=au(document.body,"mousemove",P,!1);return M(),function(){T.remove(),R.remove()}},[d,w]),b.useEffect(function(){var T=au(l,"scroll",M,!1),R=au(window,"resize",M,!1);return function(){T.remove(),R.remove()}},[l]),b.useEffect(function(){v.isHiddenScrollBar||m(function(T){var R=a.current;return R?ae(ae({},T),{},{scrollLeft:R.scrollLeft/R.scrollWidth*R.clientWidth}):T})},[v.isHiddenScrollBar]),u<=f||!d||v.isHiddenScrollBar?null:b.createElement("div",{style:{height:oG(),width:f,bottom:s},className:"".concat(c,"-sticky-scroll")},b.createElement("div",{onMouseDown:$,ref:h,className:me("".concat(c,"-sticky-scroll-bar"),Z({},"".concat(c,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(d,"px"),transform:"translate3d(".concat(v.scrollLeft,"px, 0, 0)")}}))};const bFe=b.forwardRef(yFe);var yJ="rc-table",xFe=[],SFe={};function wFe(){return"No Data"}function CFe(e,t){var n=ae({rowKey:"key",prefixCls:yJ,emptyText:wFe},e),r=n.prefixCls,i=n.className,a=n.rowClassName,o=n.style,s=n.data,l=n.rowKey,c=n.scroll,u=n.tableLayout,f=n.direction,d=n.title,h=n.footer,p=n.summary,g=n.caption,v=n.id,m=n.showHeader,y=n.components,x=n.emptyText,S=n.onRow,w=n.onHeaderRow,C=n.onScroll,E=n.internalHooks,O=n.transformColumns,$=n.internalRefs,P=n.tailor,M=n.getContainerWidth,k=n.sticky,T=n.rowHoverable,R=T===void 0?!0:T,A=s||xFe,N=!!A.length,L=E===Ob,j=b.useCallback(function(It,At){return Xo(y,It)||At},[y]),F=b.useMemo(function(){return typeof l=="function"?l:function(It){var At=It&&It[l];return At}},[l]),B=j(["body"]),D=vFe(),z=he(D,3),W=z[0],q=z[1],H=z[2],U=dFe(n,A,F),G=he(U,6),K=G[0],X=G[1],Q=G[2],ee=G[3],ne=G[4],te=G[5],ie=c==null?void 0:c.x,J=b.useState(0),le=he(J,2),oe=le[0],re=le[1],se=fFe(ae(ae(ae({},n),K),{},{expandable:!!K.expandedRowRender,columnTitle:K.columnTitle,expandedKeys:Q,getRowKey:F,onTriggerExpand:te,expandIcon:ee,expandIconColumnIndex:K.expandIconColumnIndex,direction:f,scrollWidth:L&&P&&typeof ie=="number"?ie:null,clientWidth:oe}),L?O:null),ge=he(se,4),de=ge[0],pe=ge[1],ue=ge[2],Se=ge[3],Oe=ue!=null?ue:ie,_e=b.useMemo(function(){return{columns:de,flattenColumns:pe}},[de,pe]),Te=b.useRef(),je=b.useRef(),Be=b.useRef(),Pe=b.useRef();b.useImperativeHandle(t,function(){return{nativeElement:Te.current,scrollTo:function(At){var ln;if(Be.current instanceof HTMLElement){var wn=At.index,Bn=At.top,Zi=At.key;if(T9e(Bn)){var wa;(wa=Be.current)===null||wa===void 0||wa.scrollTo({top:Bn})}else{var Qi,so=Zi!=null?Zi:F(A[wn]);(Qi=Be.current.querySelector('[data-row-key="'.concat(so,'"]')))===null||Qi===void 0||Qi.scrollIntoView()}}else(ln=Be.current)!==null&&ln!==void 0&&ln.scrollTo&&Be.current.scrollTo(At)}}});var He=b.useRef(),Ue=b.useState(!1),ke=he(Ue,2),Ce=ke[0],Re=ke[1],Ae=b.useState(!1),$e=he(Ae,2),Ve=$e[0],et=$e[1],Tt=vJ(new Map),Mt=he(Tt,2),at=Mt[0],ht=Mt[1],Ot=tO(pe),vt=Ot.map(function(It){return at.get(It)}),$t=b.useMemo(function(){return vt},[vt.join("_")]),gt=mFe($t,pe,f),st=c&&D5(c.y),tt=c&&D5(Oe)||!!K.fixed,ot=tt&&pe.some(function(It){var At=It.fixed;return At}),Pt=b.useRef(),Xe=gFe(k,r),Je=Xe.isSticky,bt=Xe.offsetHeader,Rt=Xe.offsetSummary,Xt=Xe.offsetScroll,Qt=Xe.stickyClassName,Gt=Xe.container,wt=b.useMemo(function(){return p==null?void 0:p(A)},[p,A]),_t=(st||Je)&&b.isValidElement(wt)&&wt.type===nO&&wt.props.fixed,Nt,Zt,vn;st&&(Zt={overflowY:N?"scroll":"auto",maxHeight:c.y}),tt&&(Nt={overflowX:"auto"},st||(Zt={overflowY:"hidden"}),vn={width:Oe===!0?"auto":Oe,minWidth:"100%"});var an=b.useCallback(function(It,At){Wg(Te.current)&&ht(function(ln){if(ln.get(It)!==At){var wn=new Map(ln);return wn.set(It,At),wn}return ln})},[]),Pn=pFe(),Ut=he(Pn,2),ye=Ut[0],Ie=Ut[1];function We(It,At){At&&(typeof At=="function"?At(It):At.scrollLeft!==It&&(At.scrollLeft=It,At.scrollLeft!==It&&setTimeout(function(){At.scrollLeft=It},0)))}var ze=_n(function(It){var At=It.currentTarget,ln=It.scrollLeft,wn=f==="rtl",Bn=typeof ln=="number"?ln:At.scrollLeft,Zi=At||SFe;if(!Ie()||Ie()===Zi){var wa;ye(Zi),We(Bn,je.current),We(Bn,Be.current),We(Bn,He.current),We(Bn,(wa=Pt.current)===null||wa===void 0?void 0:wa.setScrollLeft)}var Qi=At||je.current;if(Qi){var so=L&&P&&typeof Oe=="number"?Oe:Qi.scrollWidth,Hc=Qi.clientWidth;if(so===Hc){Re(!1),et(!1);return}wn?(Re(-Bn0)):(Re(Bn>0),et(Bn1?v-R:0,N=ae(ae(ae({},O),c),{},{flex:"0 0 ".concat(R,"px"),width:"".concat(R,"px"),marginRight:A,pointerEvents:"auto"}),L=b.useMemo(function(){return f?k<=1:P===0||k===0||k>1},[k,P,f]);L?N.visibility="hidden":f&&(N.height=d==null?void 0:d(k));var j=L?function(){return null}:h,F={};return(k===0||P===0)&&(F.rowSpan=1,F.colSpan=1),b.createElement(xm,Le({className:me(g,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:S,record:l,index:a,renderIndex:s,dataIndex:p,render:j,shouldCellUpdate:n.shouldCellUpdate},w,{appendNode:C,additionalProps:ae(ae({},E),{},{style:N},F)}))}var $Fe=["data","index","className","rowKey","style","extra","getHeight"],PFe=b.forwardRef(function(e,t){var n=e.data,r=e.index,i=e.className,a=e.rowKey,o=e.style,s=e.extra,l=e.getHeight,c=Vt(e,$Fe),u=n.record,f=n.indent,d=n.index,h=yo(es,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=h.scrollX,g=h.flattenColumns,v=h.prefixCls,m=h.fixColumn,y=h.componentWidth,x=yo(H5,["getComponent"]),S=x.getComponent,w=oJ(u,a,r,f),C=S(["body","row"],"div"),E=S(["body","cell"],"div"),O=w.rowSupportExpand,$=w.expanded,P=w.rowProps,M=w.expandedRowRender,k=w.expandedRowClassName,T;if(O&&$){var R=M(u,r,f+1,$),A=lJ(k,u,r,f),N={};m&&(N={style:Z({},"--virtual-width","".concat(y,"px"))});var L="".concat(v,"-expanded-row-cell");T=b.createElement(C,{className:me("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),A)},b.createElement(xm,{component:E,prefixCls:v,className:me(L,Z({},"".concat(L,"-fixed"),m)),additionalProps:N},R))}var j=ae(ae({},o),{},{width:p});s&&(j.position="absolute",j.pointerEvents="none");var F=b.createElement(C,Le({},P,c,{"data-row-key":a,ref:O?null:t,className:me(i,"".concat(v,"-row"),P==null?void 0:P.className,Z({},"".concat(v,"-row-extra"),s)),style:ae(ae({},j),P==null?void 0:P.style)}),g.map(function(B,D){return b.createElement(_Fe,{key:D,component:E,rowInfo:w,column:B,colIndex:D,indent:f,index:r,renderIndex:d,record:u,inverse:s,getHeight:l})}));return O?b.createElement("div",{ref:t},F,T):F}),SJ=bm(PFe),MFe=b.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=yo(es,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=i.flattenColumns,o=i.onColumnResize,s=i.getRowKey,l=i.expandedKeys,c=i.prefixCls,u=i.childrenColumnName,f=i.scrollX,d=i.direction,h=yo(H5),p=h.sticky,g=h.scrollY,v=h.listItemHeight,m=h.getComponent,y=h.onScroll,x=b.useRef(),S=aJ(n,u,l,s),w=b.useMemo(function(){var T=0;return a.map(function(R){var A=R.width,N=R.key;return T+=A,[N,A,T]})},[a]),C=b.useMemo(function(){return w.map(function(T){return T[2]})},[w]);b.useEffect(function(){w.forEach(function(T){var R=he(T,2),A=R[0],N=R[1];o(A,N)})},[w]),b.useImperativeHandle(t,function(){var T,R={scrollTo:function(N){var L;(L=x.current)===null||L===void 0||L.scrollTo(N)},nativeElement:(T=x.current)===null||T===void 0?void 0:T.nativeElement};return Object.defineProperty(R,"scrollLeft",{get:function(){var N;return((N=x.current)===null||N===void 0?void 0:N.getScrollInfo().x)||0},set:function(N){var L;(L=x.current)===null||L===void 0||L.scrollTo({left:N})}}),R});var E=function(R,A){var N,L=(N=S[A])===null||N===void 0?void 0:N.record,j=R.onCell;if(j){var F,B=j(L,A);return(F=B==null?void 0:B.rowSpan)!==null&&F!==void 0?F:1}return 1},O=function(R){var A=R.start,N=R.end,L=R.getSize,j=R.offsetY;if(N<0)return null;for(var F=a.filter(function(ee){return E(ee,A)===0}),B=A,D=function(ne){if(F=F.filter(function(te){return E(te,ne)===0}),!F.length)return B=ne,1},z=A;z>=0&&!D(z);z-=1);for(var W=a.filter(function(ee){return E(ee,N)!==1}),q=N,H=function(ne){if(W=W.filter(function(te){return E(te,ne)!==1}),!W.length)return q=Math.max(ne-1,N),1},U=N;U1})&&G.push(ne)},X=B;X<=q;X+=1)K(X);var Q=G.map(function(ee){var ne=S[ee],te=s(ne.record,ee),ie=function(oe){var re=ee+oe-1,se=s(S[re].record,re),ge=L(te,se);return ge.bottom-ge.top},J=L(te);return b.createElement(SJ,{key:ee,data:ne,rowKey:te,index:ee,style:{top:-j+J.top},extra:!0,getHeight:ie})});return Q},$=b.useMemo(function(){return{columnsOffset:C}},[C]),P="".concat(c,"-tbody"),M=m(["body","wrapper"]),k={};return p&&(k.position="sticky",k.bottom=0,Bt(p)==="object"&&p.offsetScroll&&(k.bottom=p.offsetScroll)),b.createElement(xJ.Provider,{value:$},b.createElement(rE,{fullHeight:!1,ref:x,prefixCls:"".concat(P,"-virtual"),styles:{horizontalScrollBar:k},className:P,height:g,itemHeight:v||24,data:S,itemKey:function(R){return s(R.record)},component:M,scrollWidth:f,direction:d,onVirtualScroll:function(R){var A,N=R.x;r({currentTarget:(A=x.current)===null||A===void 0?void 0:A.nativeElement,scrollLeft:N})},onScroll:y,extraRender:O},function(T,R,A){var N=s(T.record,R);return b.createElement(SJ,{data:T,rowKey:N,index:R,style:A.style})}))}),kFe=bm(MFe),TFe=function(t,n){var r=n.ref,i=n.onScroll;return b.createElement(kFe,{ref:r,data:t,onScroll:i})};function RFe(e,t){var n=e.data,r=e.columns,i=e.scroll,a=e.sticky,o=e.prefixCls,s=o===void 0?yJ:o,l=e.className,c=e.listItemHeight,u=e.components,f=e.onScroll,d=i||{},h=d.x,p=d.y;typeof h!="number"&&(h=1),typeof p!="number"&&(p=500);var g=_n(function(y,x){return Xo(u,y)||x}),v=_n(f),m=b.useMemo(function(){return{sticky:a,scrollY:p,listItemHeight:c,getComponent:g,onScroll:v}},[a,p,c,g,v]);return b.createElement(H5.Provider,{value:m},b.createElement(Sm,Le({},e,{className:me(l,"".concat(s,"-virtual")),scroll:ae(ae({},i),{},{x:h}),components:ae(ae({},u),{},{body:n!=null&&n.length?TFe:void 0}),columns:r,internalHooks:Ob,tailor:!0,ref:t})))}var IFe=b.forwardRef(RFe);function wJ(e){return eJ(IFe,e)}wJ();const AFe=e=>null,NFe=e=>null;var W5=b.createContext(null),LFe=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,a=t.isEnd,o="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function pf(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function V5(e){return e.split("-")}function zFe(e,t){var n=[],r=bs(t,e);function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(o){var s=o.key,l=o.children;n.push(s),i(l)})}return i(r.children),n}function HFe(e){if(e.parent){var t=V5(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function WFe(e){var t=V5(e.pos);return Number(t[t.length-1])===0}function OJ(e,t,n,r,i,a,o,s,l,c){var u,f=e.clientX,d=e.clientY,h=e.target.getBoundingClientRect(),p=h.top,g=h.height,v=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-f),m=(v-12)/r,y=l.filter(function(N){var L;return(L=s[N])===null||L===void 0||(L=L.children)===null||L===void 0?void 0:L.length}),x=bs(s,n.props.eventKey);if(d-1.5?a({dragNode:T,dropNode:R,dropPosition:1})?P=1:A=!1:a({dragNode:T,dropNode:R,dropPosition:0})?P=0:a({dragNode:T,dropNode:R,dropPosition:1})?P=1:A=!1:a({dragNode:T,dropNode:R,dropPosition:1})?P=1:A=!1,{dropPosition:P,dropLevelOffset:M,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:$,dropContainerKey:P===0?null:((u=x.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:A}}function _J(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function q5(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Bt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return zr(!1,"`checkedKeys` is not an array or an object"),null;return t}function U5(e,t){var n=new Set;function r(i){if(!n.has(i)){var a=bs(t,i);if(a){n.add(i);var o=a.parent,s=a.node;s.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(i){r(i)}),Ne(n)}function G5(e){const[t,n]=b.useState(null);return[b.useCallback((a,o,s)=>{const l=t!=null?t:a,c=Math.min(l||0,a),u=Math.max(l||0,a),f=o.slice(c,u+1).map(p=>e(p)),d=f.some(p=>!s.has(p)),h=[];return f.forEach(p=>{d?(s.has(p)||h.push(p),s.add(p)):(s.delete(p),h.push(p))}),n(d?u:null),h},[t]),a=>{n(a)}]}const Bd={},K5="SELECT_ALL",Y5="SELECT_INVERT",X5="SELECT_NONE",$J=[],PJ=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Ne(n),Ne(PJ(e,r[e]))))}),n},VFe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:o,onSelect:s,onSelectAll:l,onSelectInvert:c,onSelectNone:u,onSelectMultiple:f,columnWidth:d,type:h,selections:p,fixed:g,renderCell:v,hideSelectAll:m,checkStrictly:y=!0}=t||{},{prefixCls:x,data:S,pageData:w,getRecordByKey:C,getRowKey:E,expandType:O,childrenColumnName:$,locale:P,getPopupContainer:M}=e,k=Cd(),[T,R]=G5(ee=>ee),[A,N]=Yn(r||i||$J,{value:r}),L=b.useRef(new Map),j=b.useCallback(ee=>{if(n){const ne=new Map;ee.forEach(te=>{let ie=C(te);!ie&&L.current.has(te)&&(ie=L.current.get(te)),ne.set(te,ie)}),L.current=ne}},[C,n]);b.useEffect(()=>{j(A)},[A]);const F=b.useMemo(()=>PJ($,w),[$,w]),{keyEntities:B}=b.useMemo(()=>{if(y)return{keyEntities:null};let ee=S;if(n){const ne=new Set(F.map((ie,J)=>E(ie,J))),te=Array.from(L.current).reduce((ie,J)=>{let[le,oe]=J;return ne.has(le)?ie:ie.concat(oe)},[]);ee=[].concat(Ne(ee),Ne(te))}return i5(ee,{externalGetKey:E,childrenPropName:$})},[S,E,y,$,n,F]),D=b.useMemo(()=>{const ee=new Map;return F.forEach((ne,te)=>{const ie=E(ne,te),J=(a?a(ne):null)||{};ee.set(ie,J)}),ee},[F,E,a]),z=b.useCallback(ee=>{var ne;return!!(!((ne=D.get(E(ee)))===null||ne===void 0)&&ne.disabled)},[D,E]),[W,q]=b.useMemo(()=>{if(y)return[A||[],[]];const{checkedKeys:ee,halfCheckedKeys:ne}=pm(A,!0,B,z);return[ee||[],ne]},[A,y,B,z]),H=b.useMemo(()=>{const ee=h==="radio"?W.slice(0,1):W;return new Set(ee)},[W,h]),U=b.useMemo(()=>h==="radio"?new Set:new Set(q),[q,h]);b.useEffect(()=>{t||N($J)},[!!t]);const G=b.useCallback((ee,ne)=>{let te,ie;j(ee),n?(te=ee,ie=ee.map(J=>L.current.get(J))):(te=[],ie=[],ee.forEach(J=>{const le=C(J);le!==void 0&&(te.push(J),ie.push(le))})),N(te),o==null||o(te,ie,{type:ne})},[N,C,o,n]),K=b.useCallback((ee,ne,te,ie)=>{if(s){const J=te.map(le=>C(le));s(C(ee),ne,J,ie)}G(te,"single")},[s,C,G]),X=b.useMemo(()=>!p||m?null:(p===!0?[K5,Y5,X5]:p).map(ne=>ne===K5?{key:"all",text:P.selectionAll,onSelect(){G(S.map((te,ie)=>E(te,ie)).filter(te=>{const ie=D.get(te);return!(ie!=null&&ie.disabled)||H.has(te)}),"all")}}:ne===Y5?{key:"invert",text:P.selectInvert,onSelect(){const te=new Set(H);w.forEach((J,le)=>{const oe=E(J,le),re=D.get(oe);re!=null&&re.disabled||(te.has(oe)?te.delete(oe):te.add(oe))});const ie=Array.from(te);c&&(k.deprecated(!1,"onSelectInvert","onChange"),c(ie)),G(ie,"invert")}}:ne===X5?{key:"none",text:P.selectNone,onSelect(){u==null||u(),G(Array.from(H).filter(te=>{const ie=D.get(te);return ie==null?void 0:ie.disabled}),"none")}}:ne).map(ne=>Object.assign(Object.assign({},ne),{onSelect:function(){for(var te,ie,J=arguments.length,le=new Array(J),oe=0;oe{var ne;if(!t)return ee.filter(Pe=>Pe!==Bd);let te=Ne(ee);const ie=new Set(H),J=F.map(E).filter(Pe=>!D.get(Pe).disabled),le=J.every(Pe=>ie.has(Pe)),oe=J.some(Pe=>ie.has(Pe)),re=()=>{const Pe=[];le?J.forEach(Ue=>{ie.delete(Ue),Pe.push(Ue)}):J.forEach(Ue=>{ie.has(Ue)||(ie.add(Ue),Pe.push(Ue))});const He=Array.from(ie);l==null||l(!le,He.map(Ue=>C(Ue)),Pe.map(Ue=>C(Ue))),G(He,"all"),R(null)};let se,ge;if(h!=="radio"){let Pe;if(X){const Re={getPopupContainer:M,items:X.map((Ae,$e)=>{const{key:Ve,text:et,onSelect:Tt}=Ae;return{key:Ve!=null?Ve:$e,onClick:()=>{Tt==null||Tt(J)},label:et}})};Pe=b.createElement("div",{className:`${x}-selection-extra`},b.createElement(FE,{menu:Re,getPopupContainer:M},b.createElement("span",null,b.createElement(J1,null))))}const He=F.map((Re,Ae)=>{const $e=E(Re,Ae),Ve=D.get($e)||{};return Object.assign({checked:ie.has($e)},Ve)}).filter(Re=>{let{disabled:Ae}=Re;return Ae}),Ue=!!He.length&&He.length===F.length,ke=Ue&&He.every(Re=>{let{checked:Ae}=Re;return Ae}),Ce=Ue&&He.some(Re=>{let{checked:Ae}=Re;return Ae});ge=b.createElement(Ol,{checked:Ue?ke:!!F.length&&le,indeterminate:Ue?!ke&&Ce:!le&&oe,onChange:re,disabled:F.length===0||Ue,"aria-label":Pe?"Custom selection":"Select all",skipGroup:!0}),se=!m&&b.createElement("div",{className:`${x}-selection`},ge,Pe)}let de;h==="radio"?de=(Pe,He,Ue)=>{const ke=E(He,Ue),Ce=ie.has(ke),Re=D.get(ke);return{node:b.createElement(jd,Object.assign({},Re,{checked:Ce,onClick:Ae=>{var $e;Ae.stopPropagation(),($e=Re==null?void 0:Re.onClick)===null||$e===void 0||$e.call(Re,Ae)},onChange:Ae=>{var $e;ie.has(ke)||K(ke,!0,[ke],Ae.nativeEvent),($e=Re==null?void 0:Re.onChange)===null||$e===void 0||$e.call(Re,Ae)}})),checked:Ce}}:de=(Pe,He,Ue)=>{var ke;const Ce=E(He,Ue),Re=ie.has(Ce),Ae=U.has(Ce),$e=D.get(Ce);let Ve;return O==="nest"?Ve=Ae:Ve=(ke=$e==null?void 0:$e.indeterminate)!==null&&ke!==void 0?ke:Ae,{node:b.createElement(Ol,Object.assign({},$e,{indeterminate:Ve,checked:Re,skipGroup:!0,onClick:et=>{var Tt;et.stopPropagation(),(Tt=$e==null?void 0:$e.onClick)===null||Tt===void 0||Tt.call($e,et)},onChange:et=>{var Tt;const{nativeEvent:Mt}=et,{shiftKey:at}=Mt,ht=J.findIndex(vt=>vt===Ce),Ot=W.some(vt=>J.includes(vt));if(at&&y&&Ot){const vt=T(ht,J,ie),$t=Array.from(ie);f==null||f(!Re,$t.map(gt=>C(gt)),vt.map(gt=>C(gt))),G($t,"multiple")}else{const vt=W;if(y){const $t=Re?ou(vt,Ce):pf(vt,Ce);K(Ce,!Re,$t,Mt)}else{const $t=pm([].concat(Ne(vt),[Ce]),!0,B,z),{checkedKeys:gt,halfCheckedKeys:st}=$t;let tt=gt;if(Re){const ot=new Set(gt);ot.delete(Ce),tt=pm(Array.from(ot),{checked:!1,halfCheckedKeys:st},B,z).checkedKeys}K(Ce,!Re,tt,Mt)}}R(Re?null:ht),(Tt=$e==null?void 0:$e.onChange)===null||Tt===void 0||Tt.call($e,et)}})),checked:Re}};const pe=(Pe,He,Ue)=>{const{node:ke,checked:Ce}=de(Pe,He,Ue);return v?v(Ce,He,Ue,ke):ke};if(!te.includes(Bd))if(te.findIndex(Pe=>{var He;return((He=Pe[_b])===null||He===void 0?void 0:He.columnType)==="EXPAND_COLUMN"})===0){const[Pe,...He]=te;te=[Pe,Bd].concat(Ne(He))}else te=[Bd].concat(Ne(te));const ue=te.indexOf(Bd);te=te.filter((Pe,He)=>Pe!==Bd||He===ue);const Se=te[ue-1],Oe=te[ue+1];let _e=g;_e===void 0&&((Oe==null?void 0:Oe.fixed)!==void 0?_e=Oe.fixed:(Se==null?void 0:Se.fixed)!==void 0&&(_e=Se.fixed)),_e&&Se&&((ne=Se[_b])===null||ne===void 0?void 0:ne.columnType)==="EXPAND_COLUMN"&&Se.fixed===void 0&&(Se.fixed=_e);const Te=me(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:p&&h==="checkbox"}),je=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ge):t.columnTitle:se,Be={fixed:_e,width:d,className:`${x}-selection-column`,title:je(),render:pe,onCell:t.onCell,[_b]:{className:Te}};return te.map(Pe=>Pe===Bd?Be:Pe)},[E,F,t,W,H,U,d,X,O,D,f,K,z]),H]};function qFe(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function UFe(e,t){return b.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy!="undefined"?new Proxy(r,{get(i,a){return n[a]?n[a]:Reflect.get(i,a)}}):qFe(r,n)})}function GFe(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return b.createElement("button",{type:"button",onClick:l=>{r(i,l),l.stopPropagation()},className:me(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function KFe(e){return(n,r)=>{const i=n.querySelector(`.${e}-container`);let a=r;if(i){const o=getComputedStyle(i),s=parseInt(o.borderLeftWidth,10),l=parseInt(o.borderRightWidth,10);a=r-s-l}return a}}const zd=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Cm(e,t){return t?`${t}-${e}`:`${e}`}const iO=(e,t)=>typeof e=="function"?e(t):e,YFe=(e,t)=>{const n=iO(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function XFe(e){const t=b.useRef(e),n=pI();return[()=>t.current,r=>{t.current=r,n()}]}function ZFe(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return b.createElement("div",{style:i})}function MJ(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function QFe(e,t){var n=b.useState(!1),r=he(n,2),i=r[0],a=r[1];Nn(function(){if(i)return e(),function(){t()}},[i]),Nn(function(){return a(!0),function(){a(!1)}},[])}var JFe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],kJ=function(t,n){var r=t.className,i=t.style,a=t.motion,o=t.motionNodes,s=t.motionType,l=t.onMotionStart,c=t.onMotionEnd,u=t.active,f=t.treeNodeRequiredProps,d=Vt(t,JFe),h=b.useState(!0),p=he(h,2),g=p[0],v=p[1],m=b.useContext(W5),y=m.prefixCls,x=o&&s!=="hide";Nn(function(){o&&x!==g&&v(x)},[o]);var S=function(){o&&l()},w=b.useRef(!1),C=function(){o&&!w.current&&(w.current=!0,c())};QFe(S,C);var E=function($){x===$&&C()};return o?b.createElement(Jo,Le({ref:n,visible:g},a,{motionAppear:s==="show",onVisibleChanged:E}),function(O,$){var P=O.className,M=O.style;return b.createElement("div",{ref:$,className:me("".concat(y,"-treenode-motion"),P),style:M},o.map(function(k){var T=Object.assign({},(MJ(k.data),k.data)),R=k.title,A=k.key,N=k.isStart,L=k.isEnd;delete T.children;var j=mb(A,f);return b.createElement(wm,Le({},T,j,{title:R,active:u,data:k.data,key:A,isStart:N,isEnd:L}))}))}):b.createElement(wm,Le({domRef:n,className:r,style:i},d,{active:u}))};kJ.displayName="MotionTreeNode";var eBe=b.forwardRef(kJ);function tBe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(a,o){var s=new Map;a.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n ").concat(t);return t}var jJ=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,a=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,d=e.dragging,h=e.dragOverNodeKey,p=e.dropPosition,g=e.motion,v=e.height,m=e.itemHeight,y=e.virtual,x=e.focusable,S=e.activeItem,w=e.focused,C=e.tabIndex,E=e.onKeyDown,O=e.onFocus,$=e.onBlur,P=e.onActiveChange,M=e.onListChangeStart,k=e.onListChangeEnd,T=Vt(e,nBe),R=b.useRef(null),A=b.useRef(null);b.useImperativeHandle(t,function(){return{scrollTo:function(de){R.current.scrollTo(de)},getIndentWidth:function(){return A.current.offsetWidth}}});var N=b.useState(i),L=he(N,2),j=L[0],F=L[1],B=b.useState(r),D=he(B,2),z=D[0],W=D[1],q=b.useState(r),H=he(q,2),U=H[0],G=H[1],K=b.useState([]),X=he(K,2),Q=X[0],ee=X[1],ne=b.useState(null),te=he(ne,2),ie=te[0],J=te[1],le=b.useRef(r);le.current=r;function oe(){var ge=le.current;W(ge),G(ge),ee([]),J(null),k()}Nn(function(){F(i);var ge=tBe(j,i);if(ge.key!==null)if(ge.add){var de=z.findIndex(function(Te){var je=Te.key;return je===ge.key}),pe=NJ(TJ(z,r,ge.key),y,v,m),ue=z.slice();ue.splice(de+1,0,AJ),G(ue),ee(pe),J("show")}else{var Se=r.findIndex(function(Te){var je=Te.key;return je===ge.key}),Oe=NJ(TJ(r,z,ge.key),y,v,m),_e=r.slice();_e.splice(Se+1,0,AJ),G(_e),ee(Oe),J("hide")}else z!==r&&(W(r),G(r))},[i,r]),b.useEffect(function(){d||oe()},[d]);var re=g?U:r,se={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:h,dropPosition:p,keyEntities:u};return b.createElement(b.Fragment,null,w&&S&&b.createElement("span",{style:RJ,"aria-live":"assertive"},iBe(S)),b.createElement("div",null,b.createElement("input",{style:RJ,disabled:x===!1||f,tabIndex:x!==!1?C:null,onKeyDown:E,onFocus:O,onBlur:$,value:"",onChange:rBe,"aria-label":"for screen reader"})),b.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},b.createElement("div",{className:"".concat(n,"-indent")},b.createElement("div",{ref:A,className:"".concat(n,"-indent-unit")}))),b.createElement(rE,Le({},T,{data:re,itemKey:LJ,height:v,fullHeight:!1,virtual:y,itemHeight:m,prefixCls:"".concat(n,"-list"),ref:R,onVisibleChange:function(de){de.every(function(pe){return LJ(pe)!==Rp})&&oe()}}),function(ge){var de=ge.pos,pe=Object.assign({},(MJ(ge.data),ge.data)),ue=ge.title,Se=ge.key,Oe=ge.isStart,_e=ge.isEnd,Te=gb(Se,de);delete pe.key,delete pe.children;var je=mb(Te,se);return b.createElement(eBe,Le({},pe,je,{title:ue,active:!!S&&Se===S.key,pos:de,data:ge.data,isStart:Oe,isEnd:_e,motion:g,motionNodes:Se===Rp?Q:null,motionType:ie,onMotionStart:M,onMotionEnd:oe,treeNodeRequiredProps:se,onMouseMove:function(){P(null)}}))}))});jJ.displayName="NodeList";var aBe=10,Q5=function(e){Sn(n,e);var t=Vs(n);function n(){var r;rt(this,n);for(var i=arguments.length,a=new Array(i),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,d=f.dragChildrenKeys,h=f.dropPosition,p=f.dropTargetKey,g=f.dropTargetPos,v=f.dropAllowed;if(v){var m=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),p!==null){var y=ae(ae({},mb(p,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===p,data:bs(r.state.keyEntities,p).node}),x=d.indexOf(p)!==-1;zr(!x,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=V5(g),w={event:s,node:Ma(y),dragNode:r.dragNode?Ma(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(d),dropToGap:h!==0,dropPosition:h+Number(S[S.length-1])};u||m==null||m(w),r.dragNode=null}}}),Z(ut(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),Z(ut(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,f=c.flattenNodes,d=l.expanded,h=l.key,p=l.isLeaf;if(!(p||s.shiftKey||s.metaKey||s.ctrlKey)){var g=f.filter(function(m){return m.key===h})[0],v=Ma(ae(ae({},mb(h,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(d?ou(u,h):pf(u,h)),r.onNodeExpand(s,v)}}),Z(ut(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),Z(ut(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),Z(ut(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,f=u.keyEntities,d=u.fieldNames,h=r.props,p=h.onSelect,g=h.multiple,v=l.selected,m=l[d.key],y=!v;y?g?c=pf(c,m):c=[m]:c=ou(c,m);var x=c.map(function(S){var w=bs(f,S);return w?w.node:null}).filter(function(S){return S});r.setUncontrolledState({selectedKeys:c}),p==null||p(c,{event:"select",selected:y,node:l,selectedNodes:x,nativeEvent:s.nativeEvent})}),Z(ut(r),"onNodeCheck",function(s,l,c){var u=r.state,f=u.keyEntities,d=u.checkedKeys,h=u.halfCheckedKeys,p=r.props,g=p.checkStrictly,v=p.onCheck,m=l.key,y,x={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var S=c?pf(d,m):ou(d,m),w=ou(h,m);y={checked:S,halfChecked:w},x.checkedNodes=S.map(function(M){return bs(f,M)}).filter(function(M){return M}).map(function(M){return M.node}),r.setUncontrolledState({checkedKeys:S})}else{var C=pm([].concat(Ne(d),[m]),!0,f),E=C.checkedKeys,O=C.halfCheckedKeys;if(!c){var $=new Set(E);$.delete(m);var P=pm(Array.from($),{checked:!1,halfCheckedKeys:O},f);E=P.checkedKeys,O=P.halfCheckedKeys}y=E,x.checkedNodes=[],x.checkedNodesPositions=[],x.halfCheckedKeys=O,E.forEach(function(M){var k=bs(f,M);if(k){var T=k.node,R=k.pos;x.checkedNodes.push(T),x.checkedNodesPositions.push({node:T,pos:R})}}),r.setUncontrolledState({checkedKeys:E},!1,{halfCheckedKeys:O})}v==null||v(y,x)}),Z(ut(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,f=bs(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var d=new Promise(function(h,p){r.setState(function(g){var v=g.loadedKeys,m=v===void 0?[]:v,y=g.loadingKeys,x=y===void 0?[]:y,S=r.props,w=S.loadData,C=S.onLoad;if(!w||m.indexOf(c)!==-1||x.indexOf(c)!==-1)return null;var E=w(s);return E.then(function(){var O=r.state.loadedKeys,$=pf(O,c);C==null||C($,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:$}),r.setState(function(P){return{loadingKeys:ou(P.loadingKeys,c)}}),h()}).catch(function(O){if(r.setState(function(P){return{loadingKeys:ou(P.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=aBe){var $=r.state.loadedKeys;zr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:pf($,c)}),h()}p(O)}),{loadingKeys:pf(x,c)}})});return d.catch(function(){}),d}}),Z(ut(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),Z(ut(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),Z(ut(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),Z(ut(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,f=!0,d={};Object.keys(s).forEach(function(h){if(r.props.hasOwnProperty(h)){f=!1;return}u=!0,d[h]=s[h]}),u&&(!l||f)&&r.setState(ae(ae({},d),c))}}),Z(ut(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return it(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,a=i.activeKey,o=i.itemScrollOffset,s=o===void 0?0:o;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,a=i.focused,o=i.flattenNodes,s=i.keyEntities,l=i.draggingNodeKey,c=i.activeKey,u=i.dropLevelOffset,f=i.dropContainerKey,d=i.dropTargetKey,h=i.dropPosition,p=i.dragOverNodeKey,g=i.indent,v=this.props,m=v.prefixCls,y=v.className,x=v.style,S=v.showLine,w=v.focusable,C=v.tabIndex,E=C===void 0?0:C,O=v.selectable,$=v.showIcon,P=v.icon,M=v.switcherIcon,k=v.draggable,T=v.checkable,R=v.checkStrictly,A=v.disabled,N=v.motion,L=v.loadData,j=v.filterTreeNode,F=v.height,B=v.itemHeight,D=v.virtual,z=v.titleRender,W=v.dropIndicatorRender,q=v.onContextMenu,H=v.onScroll,U=v.direction,G=v.rootClassName,K=v.rootStyle,X=ta(this.props,{aria:!0,data:!0}),Q;return k&&(Bt(k)==="object"?Q=k:typeof k=="function"?Q={nodeDraggable:k}:Q={}),b.createElement(W5.Provider,{value:{prefixCls:m,selectable:O,showIcon:$,icon:P,switcherIcon:M,draggable:Q,draggingNodeKey:l,checkable:T,checkStrictly:R,disabled:A,keyEntities:s,dropLevelOffset:u,dropContainerKey:f,dropTargetKey:d,dropPosition:h,dragOverNodeKey:p,indent:g,direction:U,dropIndicatorRender:W,loadData:L,filterTreeNode:j,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},b.createElement("div",{role:"tree",className:me(m,y,G,Z(Z(Z({},"".concat(m,"-show-line"),S),"".concat(m,"-focused"),a),"".concat(m,"-active-focused"),c!==null)),style:K},b.createElement(jJ,Le({ref:this.listRef,prefixCls:m,style:x,data:o,disabled:A,selectable:O,checkable:!!T,motion:N,dragging:l!==null,height:F,itemHeight:B,virtual:D,focusable:w,focused:a,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:q,onScroll:H},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s={prevProps:i};function l(E){return!o&&i.hasOwnProperty(E)||o&&o[E]!==i[E]}var c,u=a.fieldNames;if(l("fieldNames")&&(u=hm(i.fieldNames),s.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(zr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=vZ(i.children)),c){s.treeData=c;var f=i5(c,{fieldNames:u});s.keyEntities=ae(Z({},Rp,IJ),f.keyEntities)}var d=s.keyEntities||a.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!o&&i.defaultExpandParent?U5(i.expandedKeys,d):i.expandedKeys;else if(!o&&i.defaultExpandAll){var h=ae({},d);delete h[Rp];var p=[];Object.keys(h).forEach(function(E){var O=h[E];O.children&&O.children.length&&p.push(O.key)}),s.expandedKeys=p}else!o&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?U5(i.defaultExpandedKeys,d):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=r5(c||a.treeData,s.expandedKeys||a.expandedKeys,u);s.flattenNodes=g}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=_J(i.selectedKeys,i):!o&&i.defaultSelectedKeys&&(s.selectedKeys=_J(i.defaultSelectedKeys,i))),i.checkable){var v;if(l("checkedKeys")?v=q5(i.checkedKeys)||{}:!o&&i.defaultCheckedKeys?v=q5(i.defaultCheckedKeys)||{}:c&&(v=q5(i.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),v){var m=v,y=m.checkedKeys,x=y===void 0?[]:y,S=m.halfCheckedKeys,w=S===void 0?[]:S;if(!i.checkStrictly){var C=pm(x,!0,d);x=C.checkedKeys,w=C.halfCheckedKeys}s.checkedKeys=x,s.halfCheckedKeys=w}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(b.Component);Z(Q5,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ZFe,allowDrop:function(){return!0},expandAction:!1}),Z(Q5,"TreeNode",wm);const oBe=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:a,borderRadius:o,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:o},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},sBe=new ur("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),lBe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),cBe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${fe(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),uBe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c}=t;return{[n]:Object.assign(Object.assign({},er(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},_d(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:sBe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:fe(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},lBe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},cBe(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${fe(t.calc(a).div(2).equal())} !important`}})}},fBe=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=$n(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[uBe(e,a),oBe(a)]},dBe=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},hBe=tr("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:mZ(`${n}-checkbox`,e)},fBe(n,e),D1(e)]},e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},dBe(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}),DJ=4;function pBe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,o=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",l={[o]:-n*i+DJ,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=i+DJ;break}return we.createElement("div",{style:l,className:`${r}-drop-indicator`})}const vBe=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:l}=r;if(l)return b.isValidElement(a)?a:b.createElement(af,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),o){if(!i)return null;if(typeof c!="boolean"&&c){const d=typeof c=="function"?c(r):c,h=`${t}-switcher-line-custom-icon`;return b.isValidElement(d)?Pa(d,{className:me(d.props.className||"",h)}):d}return c?b.createElement(KQ,{className:`${t}-switcher-line-icon`}):b.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return b.isValidElement(f)?Pa(f,{className:me(f.props.className||"",u)}):f!==void 0?f:i?s?b.createElement(LDe,{className:`${t}-switcher-line-icon`}):b.createElement(GDe,{className:`${t}-switcher-line-icon`}):b.createElement(K7e,{className:u})},FJ=we.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:o}=we.useContext(Lt),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:d,blockNode:h=!1,children:p,checkable:g=!1,selectable:v=!0,draggable:m,motion:y,style:x}=e,S=r("tree",s),w=r(),C=y!=null?y:Object.assign(Object.assign({},Hg(w)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:c,motion:C,blockNode:h,showLine:!!u,dropIndicatorRender:pBe}),[O,$,P]=hBe(S),[,M]=eo(),k=M.paddingXS/2+(((n=M.Tree)===null||n===void 0?void 0:n.titleHeight)||M.controlHeightSM),T=we.useMemo(()=>{if(!m)return!1;let A={};switch(typeof m){case"function":A.nodeDraggable=m;break;case"object":A=Object.assign({},m);break}return A.icon!==!1&&(A.icon=A.icon||we.createElement(kDe,null)),A},[m]),R=A=>we.createElement(vBe,{prefixCls:S,switcherIcon:f,switcherLoadingIcon:d,treeNodeProps:A,showLine:u});return O(we.createElement(Q5,Object.assign({itemHeight:k,ref:t,virtual:a},E,{style:Object.assign(Object.assign({},o==null?void 0:o.style),x),prefixCls:S,className:me({[`${S}-icon-hide`]:!c,[`${S}-block-node`]:h,[`${S}-unselectable`]:!v,[`${S}-rtl`]:i==="rtl"},o==null?void 0:o.className,l,$,P),direction:i,checkable:g&&we.createElement("span",{className:`${S}-checkbox-inner`}),selectable:v,switcherIcon:R,draggable:T}),p))}),BJ=0,J5=1,zJ=2;function eA(e,t,n){const{key:r,children:i}=n;function a(o){const s=o[r],l=o[i];t(s,o)!==!1&&eA(l||[],t,n)}e.forEach(a)}function gBe(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:a}=e;const o=[];let s=BJ;if(r&&r===i)return[r];if(!r||!i)return[];function l(c){return c===r||c===i}return eA(t,c=>{if(s===zJ)return!1;if(l(c)){if(o.push(c),s===BJ)s=J5;else if(s===J5)return s=zJ,!1}else s===J5&&o.push(c);return n.includes(c)},hm(a)),o}function tA(e,t,n){const r=Ne(t),i=[];return eA(e,(a,o)=>{const s=r.indexOf(a);return s!==-1&&(i.push(o),r.splice(s,1)),!!r.length},hm(n)),i}var HJ=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=HJ(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=b.useRef(null),s=b.useRef(null),l=()=>{const{keyEntities:O}=i5(WJ(a));let $;return n?$=Object.keys(O):r?$=U5(a.expandedKeys||i||[],O):$=a.expandedKeys||i||[],$},[c,u]=b.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,d]=b.useState(()=>l());b.useEffect(()=>{"selectedKeys"in a&&u(a.selectedKeys)},[a.selectedKeys]),b.useEffect(()=>{"expandedKeys"in a&&d(a.expandedKeys)},[a.expandedKeys]);const h=(O,$)=>{var P;return"expandedKeys"in a||d(O),(P=a.onExpand)===null||P===void 0?void 0:P.call(a,O,$)},p=(O,$)=>{var P;const{multiple:M,fieldNames:k}=a,{node:T,nativeEvent:R}=$,{key:A=""}=T,N=WJ(a),L=Object.assign(Object.assign({},$),{selected:!0}),j=(R==null?void 0:R.ctrlKey)||(R==null?void 0:R.metaKey),F=R==null?void 0:R.shiftKey;let B;M&&j?(B=O,o.current=A,s.current=B,L.selectedNodes=tA(N,B,k)):M&&F?(B=Array.from(new Set([].concat(Ne(s.current||[]),Ne(gBe({treeData:N,expandedKeys:f,startKey:A,endKey:o.current,fieldNames:k}))))),L.selectedNodes=tA(N,B,k)):(B=[A],o.current=A,s.current=B,L.selectedNodes=tA(N,B,k)),(P=a.onSelect)===null||P===void 0||P.call(a,B,L),"selectedKeys"in a||u(B)},{getPrefixCls:g,direction:v}=b.useContext(Lt),{prefixCls:m,className:y,showIcon:x=!0,expandAction:S="click"}=a,w=HJ(a,["prefixCls","className","showIcon","expandAction"]),C=g("tree",m),E=me(`${C}-directory`,{[`${C}-directory-rtl`]:v==="rtl"},y);return b.createElement(FJ,Object.assign({icon:mBe,ref:t,blockNode:!0},w,{showIcon:x,expandAction:S,prefixCls:C,className:E,expandedKeys:f,selectedKeys:c,onSelect:p,onExpand:h}))},bBe=b.forwardRef(yBe),nA=FJ;nA.DirectoryTree=bBe,nA.TreeNode=wm;const VJ=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?b.createElement("div",{className:`${r}-filter-dropdown-search`},b.createElement(oi,{prefix:b.createElement(tm,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},xBe=e=>{const{keyCode:t}=e;t===Ze.ENTER&&e.stopPropagation()},SBe=b.forwardRef((e,t)=>b.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:xBe,ref:t},e.children));function Em(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:i}=n;t.push(r),i&&(t=[].concat(Ne(t),Ne(Em(i))))}),t}function wBe(e){return e.some(t=>{let{children:n}=t;return n})}function qJ(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function UJ(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:o}=e;return t.map((s,l)=>{const c=String(s.value);if(s.children)return{key:c||l,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:UJ({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:o})};const u=i?Ol:jd,f={key:s.value!==void 0?c:l,label:b.createElement(b.Fragment,null,b.createElement(u,{checked:r.includes(c)}),b.createElement("span",null,s.text))};return a.trim()?typeof o=="function"?o(a,s)?f:null:qJ(a,s.text)?f:null:f})}function rA(e){return e||[]}const CBe=e=>{var t,n,r,i;const{tablePrefixCls:a,prefixCls:o,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:f,filterMode:d="menu",filterSearch:h=!1,filterState:p,triggerFilter:g,locale:v,children:m,getPopupContainer:y,rootClassName:x}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:w,filterDropdownProps:C={},filterDropdownOpen:E,filterDropdownVisible:O,onFilterDropdownVisibleChange:$,onFilterDropdownOpenChange:P}=s,[M,k]=b.useState(!1),T=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),R=de=>{var pe;k(de),(pe=C.onOpenChange)===null||pe===void 0||pe.call(C,de),P==null||P(de),$==null||$(de)},A=(i=(r=(n=C.open)!==null&&n!==void 0?n:E)!==null&&r!==void 0?r:O)!==null&&i!==void 0?i:M,N=p==null?void 0:p.filteredKeys,[L,j]=XFe(rA(N)),F=de=>{let{selectedKeys:pe}=de;j(pe)},B=(de,pe)=>{let{node:ue,checked:Se}=pe;F(f?{selectedKeys:de}:{selectedKeys:Se&&ue.key?[ue.key]:[]})};b.useEffect(()=>{M&&F({selectedKeys:rA(N)})},[N]);const[D,z]=b.useState([]),W=de=>{z(de)},[q,H]=b.useState(""),U=de=>{const{value:pe}=de.target;H(pe)};b.useEffect(()=>{M||H("")},[M]);const G=de=>{const pe=de!=null&&de.length?de:null;if(pe===null&&(!p||!p.filteredKeys)||yl(pe,p==null?void 0:p.filteredKeys,!0))return null;g({column:s,key:c,filteredKeys:pe})},K=()=>{R(!1),G(L())},X=function(){let{confirm:de,closeDropdown:pe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};de&&G([]),pe&&R(!1),H(""),j(S?(w||[]).map(ue=>String(ue)):[])},Q=function(){let{closeDropdown:de}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};de&&R(!1),G(L())},ee=(de,pe)=>{pe.source==="trigger"&&(de&&N!==void 0&&j(rA(N)),R(de),!de&&!s.filterDropdown&&u&&K())},ne=me({[`${l}-menu-without-submenu`]:!wBe(s.filters||[])}),te=de=>{if(de.target.checked){const pe=Em(s==null?void 0:s.filters).map(ue=>String(ue));j(pe)}else j([])},ie=de=>{let{filters:pe}=de;return(pe||[]).map((ue,Se)=>{const Oe=String(ue.value),_e={title:ue.text,key:ue.value!==void 0?Oe:String(Se)};return ue.children&&(_e.children=ie({filters:ue.children})),_e})},J=de=>{var pe;return Object.assign(Object.assign({},de),{text:de.title,value:de.key,children:((pe=de.children)===null||pe===void 0?void 0:pe.map(ue=>J(ue)))||[]})};let le;const{direction:oe,renderEmpty:re}=b.useContext(Lt);if(typeof s.filterDropdown=="function")le=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:de=>F({selectedKeys:de}),selectedKeys:L(),confirm:Q,clearFilters:X,filters:s.filters,visible:A,close:()=>{R(!1)}});else if(s.filterDropdown)le=s.filterDropdown;else{const de=L()||[],pe=()=>{var Se;const Oe=(Se=re==null?void 0:re("Table.filter"))!==null&&Se!==void 0?Se:b.createElement(Ba,{image:Ba.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return Oe;if(d==="tree")return b.createElement(b.Fragment,null,b.createElement(VJ,{filterSearch:h,value:q,onChange:U,tablePrefixCls:a,locale:v}),b.createElement("div",{className:`${a}-filter-dropdown-tree`},f?b.createElement(Ol,{checked:de.length===Em(s.filters).length,indeterminate:de.length>0&&de.lengthtypeof h=="function"?h(q,J(je)):qJ(q,je.title):void 0})));const _e=UJ({filters:s.filters||[],filterSearch:h,prefixCls:o,filteredKeys:L(),filterMultiple:f,searchValue:q}),Te=_e.every(je=>je===null);return b.createElement(b.Fragment,null,b.createElement(VJ,{filterSearch:h,value:q,onChange:U,tablePrefixCls:a,locale:v}),Te?Oe:b.createElement(ff,{selectable:!0,multiple:f,prefixCls:`${l}-menu`,className:ne,onSelect:F,onDeselect:F,selectedKeys:de,getPopupContainer:y,openKeys:D,onOpenChange:W,items:_e}))},ue=()=>S?yl((w||[]).map(Se=>String(Se)),de,!0):de.length===0;le=b.createElement(b.Fragment,null,pe(),b.createElement("div",{className:`${o}-dropdown-btns`},b.createElement(zn,{type:"link",size:"small",disabled:ue(),onClick:()=>X()},v.filterReset),b.createElement(zn,{type:"primary",size:"small",onClick:K},v.filterConfirm)))}s.filterDropdown&&(le=b.createElement(jY,{selectable:void 0},le)),le=b.createElement(SBe,{className:`${o}-dropdown`},le);const ge=EQ({trigger:["click"],placement:oe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let de;return typeof s.filterIcon=="function"?de=s.filterIcon(T):s.filterIcon?de=s.filterIcon:de=b.createElement(YQ,null),b.createElement("span",{role:"button",tabIndex:-1,className:me(`${o}-trigger`,{active:T}),onClick:pe=>{pe.stopPropagation()}},de)})(),getPopupContainer:y},Object.assign(Object.assign({},C),{rootClassName:me(x,C.rootClassName),open:A,onOpenChange:ee,dropdownRender:()=>typeof(C==null?void 0:C.dropdownRender)=="function"?C.dropdownRender(le):le}));return b.createElement("div",{className:`${o}-column`},b.createElement("span",{className:`${a}-column-title`},m),b.createElement(FE,Object.assign({},ge)))},iA=(e,t,n)=>{let r=[];return(e||[]).forEach((i,a)=>{var o;const s=Cm(a,n);if(i.filters||"filterDropdown"in i||"onFilter"in i)if("filteredValue"in i){let l=i.filteredValue;"filterDropdown"in i||(l=(o=l==null?void 0:l.map(String))!==null&&o!==void 0?o:l),r.push({column:i,key:zd(i,s),filteredKeys:l,forceFiltered:i.filtered})}else r.push({column:i,key:zd(i,s),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(r=[].concat(Ne(r),Ne(iA(i.children,t,s))))}),r};function GJ(e,t,n,r,i,a,o,s,l){return n.map((c,u)=>{const f=Cm(u,s),{filterOnClose:d=!0,filterMultiple:h=!0,filterMode:p,filterSearch:g}=c;let v=c;if(v.filters||v.filterDropdown){const m=zd(v,f),y=r.find(x=>{let{key:S}=x;return m===S});v=Object.assign(Object.assign({},v),{title:x=>b.createElement(CBe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:m,filterState:y,filterOnClose:d,filterMultiple:h,filterMode:p,filterSearch:g,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:l},iO(c.title,x))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:GJ(e,t,v.children,r,i,a,o,f,l)})),v})}const KJ=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:i,column:a}=n;const o=r,{filters:s,filterDropdown:l}=a;if(l)t[o]=i||null;else if(Array.isArray(i)){const c=Em(s);t[o]=c.filter(u=>i.includes(String(u)))}else t[o]=null}),t},aA=(e,t,n)=>t.reduce((i,a)=>{const{column:{onFilter:o,filters:s},filteredKeys:l}=a;return o&&l&&l.length?i.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const f=Em(s),d=f.findIndex(p=>String(p)===String(u)),h=d!==-1?f[d]:u;return c[n]&&(c[n]=aA(c[n],t,n)),o(h,c)})):i},e),YJ=e=>e.flatMap(t=>"children"in t?[t].concat(Ne(YJ(t.children||[]))):[t]),EBe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;Cd();const l=b.useMemo(()=>YJ(r||[]),[r]),[c,u]=b.useState(()=>iA(l,!0)),f=b.useMemo(()=>{const g=iA(l,!1);if(g.length===0)return g;let v=!0;if(g.forEach(m=>{let{filteredKeys:y}=m;y!==void 0&&(v=!1)}),v){const m=(l||[]).map((y,x)=>zd(y,Cm(x)));return c.filter(y=>{let{key:x}=y;return m.includes(x)}).map(y=>{const x=l[m.findIndex(S=>S===y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),x),forceFiltered:x.filtered})})}return g},[l,c]),d=b.useMemo(()=>KJ(f),[f]),h=g=>{const v=f.filter(m=>{let{key:y}=m;return y!==g.key});v.push(g),u(v),i(KJ(v),v)};return[g=>GJ(t,n,g,f,o,h,a,void 0,s),f,d]},OBe=(e,t,n)=>{const r=b.useRef({});function i(a){var o;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,f)=>{const d=n(u,f);s.set(d,u),u&&typeof u=="object"&&t in u&&l(u[t]||[])})};const s=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return(o=r.current.kvMap)===null||o===void 0?void 0:o.get(a)}return[i]};var _Be=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 i=0,r=Object.getOwnPropertySymbols(e);i{const a=e[i];typeof a!="function"&&(n[i]=a)}),n}function PBe(e,t,n){const r=n&&typeof n=="object"?n:{},{total:i=0}=r,a=_Be(r,["total"]),[o,s]=b.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:XJ})),l=EQ(o,a,{total:i>0?i:e}),c=Math.ceil((i||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(d,h)=>{s({current:d!=null?d:1,pageSize:h||l.pageSize})},f=(d,h)=>{var p;n&&((p=n.onChange)===null||p===void 0||p.call(n,d,h)),u(d,h),t(d,h||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:f}),u]}const aO="ascend",oA="descend",oO=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,ZJ=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,MBe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],sA=(e,t,n)=>{let r=[];const i=(a,o)=>{r.push({column:a,key:zd(a,o),multiplePriority:oO(a),sortOrder:a.sortOrder})};return(e||[]).forEach((a,o)=>{const s=Cm(o,n);a.children?("sortOrder"in a&&i(a,s),r=[].concat(Ne(r),Ne(sA(a.children,t,s)))):a.sorter&&("sortOrder"in a?i(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:zd(a,s),multiplePriority:oO(a),sortOrder:a.defaultSortOrder}))}),r},QJ=(e,t,n,r,i,a,o,s)=>(t||[]).map((c,u)=>{const f=Cm(u,s);let d=c;if(d.sorter){const h=d.sortDirections||i,p=d.showSorterTooltip===void 0?o:d.showSorterTooltip,g=zd(d,f),v=n.find($=>{let{key:P}=$;return P===g}),m=v?v.sortOrder:null,y=MBe(h,m);let x;if(c.sortIcon)x=c.sortIcon({sortOrder:m});else{const $=h.includes(aO)&&b.createElement(eDe,{className:me(`${e}-column-sorter-up`,{active:m===aO})}),P=h.includes(oA)&&b.createElement(Z7e,{className:me(`${e}-column-sorter-down`,{active:m===oA})});x=b.createElement("span",{className:me(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!($&&P)})},b.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},$,P))}const{cancelSort:S,triggerAsc:w,triggerDesc:C}=a||{};let E=S;y===oA?E=C:y===aO&&(E=w);const O=typeof p=="object"?Object.assign({title:E},p):{title:E};d=Object.assign(Object.assign({},d),{className:me(d.className,{[`${e}-column-sort`]:m}),title:$=>{const P=`${e}-column-sorters`,M=b.createElement("span",{className:`${e}-column-title`},iO(c.title,$)),k=b.createElement("div",{className:P},M,x);return p?typeof p!="boolean"&&(p==null?void 0:p.target)==="sorter-icon"?b.createElement("div",{className:`${P} ${e}-column-sorters-tooltip-target-sorter`},M,b.createElement(ro,Object.assign({},O),x)):b.createElement(ro,Object.assign({},O),k):k},onHeaderCell:$=>{var P;const M=((P=c.onHeaderCell)===null||P===void 0?void 0:P.call(c,$))||{},k=M.onClick,T=M.onKeyDown;M.onClick=N=>{r({column:c,key:g,sortOrder:y,multiplePriority:oO(c)}),k==null||k(N)},M.onKeyDown=N=>{N.keyCode===Ze.ENTER&&(r({column:c,key:g,sortOrder:y,multiplePriority:oO(c)}),T==null||T(N))};const R=YFe(c.title,{}),A=R==null?void 0:R.toString();return m?M["aria-sort"]=m==="ascend"?"ascending":"descending":M["aria-label"]=A||"",M.className=me(M.className,`${e}-column-has-sorters`),M.tabIndex=0,c.ellipsis&&(M.title=(R!=null?R:"").toString()),M}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:QJ(e,d.children,n,r,i,a,o,f)})),d}),JJ=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},eee=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(JJ);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},JJ(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},lA=(e,t,n)=>{const r=t.slice().sort((o,s)=>s.multiplePriority-o.multiplePriority),i=e.slice(),a=r.filter(o=>{let{column:{sorter:s},sortOrder:l}=o;return ZJ(s)&&l});return a.length?i.sort((o,s)=>{for(let l=0;l{const s=o[n];return s?Object.assign(Object.assign({},o),{[n]:lA(s,t,n)}):o}):i},kBe=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:o}=e,[s,l]=b.useState(sA(n,!0)),c=(g,v)=>{const m=[];return g.forEach((y,x)=>{const S=Cm(x,v);if(m.push(zd(y,S)),Array.isArray(y.children)){const w=c(y.children,S);m.push.apply(m,Ne(w))}}),m},u=b.useMemo(()=>{let g=!0;const v=sA(n,!1);if(!v.length){const S=c(n);return s.filter(w=>{let{key:C}=w;return S.includes(C)})}const m=[];function y(S){g?m.push(S):m.push(Object.assign(Object.assign({},S),{sortOrder:null}))}let x=null;return v.forEach(S=>{x===null?(y(S),S.sortOrder&&(S.multiplePriority===!1?g=!1:x=!0)):(x&&S.multiplePriority!==!1||(g=!1),y(S))}),m},[n,s]),f=b.useMemo(()=>{var g,v;const m=u.map(y=>{let{column:x,sortOrder:S}=y;return{column:x,order:S}});return{sortColumns:m,sortColumn:(g=m[0])===null||g===void 0?void 0:g.column,sortOrder:(v=m[0])===null||v===void 0?void 0:v.order}},[u]),d=g=>{let v;g.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?v=[g]:v=[].concat(Ne(u.filter(m=>{let{key:y}=m;return y!==g.key})),[g]),l(v),o(eee(v),v)};return[g=>QJ(t,g,u,d,r,i,a),u,f,()=>eee(u)]},tee=(e,t)=>e.map(r=>{const i=Object.assign({},r);return i.title=iO(r.title,t),"children"in i&&(i.children=tee(i.children,t)),i}),TBe=e=>[b.useCallback(n=>tee(n,e),[e])],RBe=bJ((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),IBe=wJ((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),ABe=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:l}=e,c=`${fe(n)} ${r} ${i}`,u=(f,d,h)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${fe(l(d).mul(-1).equal())} - ${fe(l(l(h).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[` + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:ue(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ue(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:ue(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},vb(e)),VI(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},PE(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Bje=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ue(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ue(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ue(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},zje=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:ue(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Bje(e)),Fje(e)),Dje(e)),jje(e)),Lje(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Hje=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},nu(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},$d(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},$d(e))}}}},$Q=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},pb(e)),PQ=e=>_n(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},hb(e)),Wje=tr("Pagination",e=>{const t=PQ(e);return[zje(t),Hje(t)]},$Q),Vje=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},qje=Dg(["Pagination","bordered"],e=>{const t=PQ(e);return[Vje(t)]},$Q);function MQ(e){return b.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var Uje=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:d}=e,h=Uje(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:p}=fI(c),[,v]=to(),{getPrefixCls:g,direction:m,pagination:y={}}=b.useContext(At),x=g("pagination",n),[S,w,C]=Wje(x),E=ja(s),O=E==="small"||!!(p&&!E&&c),[$]=Zo("Pagination",BB),P=Object.assign(Object.assign({},$),l),[M,k]=MQ(u),[T,R]=MQ(y.showSizeChanger),A=M!=null?M:T,N=k!=null?k:R,L=f||no,j=b.useMemo(()=>d?d.map(q=>Number(q)):void 0,[d]),F=q=>{var H;const{disabled:U,size:G,onSizeChange:K,"aria-label":X,className:Q,options:ee}=q,{className:ne,onChange:te}=N||{},ie=(H=ee.find(J=>String(J.value)===String(G)))===null||H===void 0?void 0:H.value;return b.createElement(L,Object.assign({disabled:U,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:J=>J.parentNode,"aria-label":X,options:ee},N,{value:ie,onChange:(J,le)=>{K==null||K(J),te==null||te(J,le)},size:O?"small":"middle",className:me(Q,ne)}))},B=b.useMemo(()=>{const q=b.createElement("span",{className:`${x}-item-ellipsis`},"•••"),H=b.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},m==="rtl"?b.createElement(sf,null):b.createElement(wp,null)),U=b.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},m==="rtl"?b.createElement(wp,null):b.createElement(sf,null)),G=b.createElement("a",{className:`${x}-item-link`},b.createElement("div",{className:`${x}-item-container`},m==="rtl"?b.createElement(EQ,{className:`${x}-item-link-icon`}):b.createElement(CQ,{className:`${x}-item-link-icon`}),q)),K=b.createElement("a",{className:`${x}-item-link`},b.createElement("div",{className:`${x}-item-container`},m==="rtl"?b.createElement(CQ,{className:`${x}-item-link-icon`}):b.createElement(EQ,{className:`${x}-item-link-icon`}),q));return{prevIcon:H,nextIcon:U,jumpPrevIcon:G,jumpNextIcon:K}},[m,x]),D=g("select",r),z=me({[`${x}-${t}`]:!!t,[`${x}-mini`]:O,[`${x}-rtl`]:m==="rtl",[`${x}-bordered`]:v.wireframe},y==null?void 0:y.className,i,a,w,C),W=Object.assign(Object.assign({},y==null?void 0:y.style),o);return S(b.createElement(b.Fragment,null,v.wireframe&&b.createElement(qje,{prefixCls:x}),b.createElement(Nje,Object.assign({},B,h,{style:W,prefixCls:x,selectPrefixCls:D,className:z,locale:P,pageSizeOptions:j,showSizeChanger:A,sizeChangerRender:F}))))},VE=100,kQ=VE/5,TQ=VE/2-kQ/2,$5=TQ*2*Math.PI,RQ=50,IQ=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return b.createElement("circle",{className:me(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:TQ,cx:RQ,cy:RQ,strokeWidth:kQ,style:n})},Gje=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[o,s]=b.useState(!1);Ln(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!o)return null;const c={strokeDashoffset:`${$5/4}`,strokeDasharray:`${$5*l/100} ${$5*(100-l)/100}`};return b.createElement("span",{className:me(i,`${r}-progress`,l<=0&&a)},b.createElement("svg",{viewBox:`0 0 ${VE} ${VE}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},b.createElement(IQ,{dotClassName:r,hasCircleCls:!0}),b.createElement(IQ,{dotClassName:r,style:c})))};function Kje(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return b.createElement(b.Fragment,null,b.createElement("span",{className:me(i,n>0&&a)},b.createElement("span",{className:me(r,`${t}-dot-spin`)},[1,2,3,4].map(o=>b.createElement("i",{className:`${t}-dot-item`,key:o})))),b.createElement(Gje,{prefixCls:t,percent:n}))}function Yje(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&b.isValidElement(n)?Pa(n,{className:me(n.props.className,i),percent:r}):b.createElement(Kje,{prefixCls:t,percent:r})}const Xje=new fr("antSpinMove",{to:{opacity:1}}),Zje=new fr("antRotate",{to:{transform:"rotate(405deg)"}}),Qje=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},er(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Xje,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Zje,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Jje=tr("Spin",e=>{const t=_n(e,{spinDotDefault:e.colorTextDescription});return[Qje(t)]},e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),e7e=200,AQ=[[30,.05],[70,.03],[96,.01]];function t7e(e,t){const[n,r]=b.useState(0),i=b.useRef(null),a=t==="auto";return b.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(o=>{const s=100-o;for(let l=0;l{clearInterval(i.current)}),[a,e]),a?n:t}var n7e=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 i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:o,size:s="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:d=!1,indicator:h,percent:p}=e,v=n7e(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g,direction:m,spin:y}=b.useContext(At),x=g("spin",n),[S,w,C]=Jje(x),[E,O]=b.useState(()=>r&&!r7e(r,i)),$=t7e(E,p);b.useEffect(()=>{if(r){const N=mNe(i,()=>{O(!0)});return N(),()=>{var L;(L=N==null?void 0:N.cancel)===null||L===void 0||L.call(N)}}O(!1)},[i,r]);const P=b.useMemo(()=>typeof f!="undefined"&&!d,[f,d]),M=me(x,y==null?void 0:y.className,{[`${x}-sm`]:s==="small",[`${x}-lg`]:s==="large",[`${x}-spinning`]:E,[`${x}-show-text`]:!!l,[`${x}-rtl`]:m==="rtl"},a,!d&&o,w,C),k=me(`${x}-container`,{[`${x}-blur`]:E}),T=(t=h!=null?h:y==null?void 0:y.indicator)!==null&&t!==void 0?t:NQ,R=Object.assign(Object.assign({},y==null?void 0:y.style),u),A=b.createElement("div",Object.assign({},v,{style:R,className:M,"aria-live":"polite","aria-busy":E}),b.createElement(Yje,{prefixCls:x,indicator:T,percent:$}),l&&(P||d)?b.createElement("div",{className:`${x}-text`},l):null);return S(P?b.createElement("div",Object.assign({},v,{className:me(`${x}-nested-loading`,c,w,C)}),E&&b.createElement("div",{key:"loading"},A),b.createElement("div",{className:k,key:"container"},f)):d?b.createElement("div",{className:me(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:E},o,w,C)},A):A)};qE.setDefaultIndicator=e=>{NQ=e};function i7e(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}let _l=null,Rp=e=>e(),Sb=[],wb={};function LQ(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=wb,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}const a7e=we.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=b.useContext(At),a=wb.prefixCls||i("message"),o=b.useContext(_ke),[s,l]=IU(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.message));return we.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),o7e=we.forwardRef((e,t)=>{const[n,r]=we.useState(LQ),i=()=>{r(LQ)};we.useEffect(i,[]);const a=lU(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=we.createElement(a7e,{ref:t,sync:i,messageConfig:n});return we.createElement(Sc,{prefixCls:o,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)});function UE(){if(!_l){const e=document.createDocumentFragment(),t={fragment:e};_l=t,Rp(()=>{nR()(we.createElement(o7e,{ref:r=>{const{instance:i,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=a,UE())})}}),e)});return}_l.instance&&(Sb.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Rp(()=>{const r=_l.instance.open(Object.assign(Object.assign({},wb),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Rp(()=>{_l==null||_l.instance.destroy(e.key)});break;default:Rp(()=>{var r;const i=(r=_l.instance)[t].apply(r,Ne(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),Sb=[])}function s7e(e){wb=Object.assign(Object.assign({},wb),e),Rp(()=>{var t;(t=_l==null?void 0:_l.sync)===null||t===void 0||t.call(_l)})}function l7e(e){const t=QT(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return Sb.push(i),()=>{r?Rp(()=>{r()}):i.skipped=!0}});return UE(),t}function c7e(e,t){const n=QT(r=>{let i;const a={type:e,args:t,resolve:r,setCloseFn:o=>{i=o}};return Sb.push(a),()=>{i?Rp(()=>{i()}):a.skipped=!0}});return UE(),n}const u7e=e=>{Sb.push({type:"destroy",key:e}),UE()},f7e=["success","info","warning","error","loading"],na={open:l7e,destroy:u7e,config:s7e,useMessage:N$e,_InternalPanelDoNotUseOrYouWillBeFired:$$e};f7e.forEach(e=>{na[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:l}=e,c=d7e(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=b.useContext(At),f=u(),d=t||u("modal"),h=Ti(f),[p,v,g]=YG(d,h),m=`${d}-confirm`;let y={};return a?y={closable:i!=null?i:!1,title:"",footer:"",children:b.createElement(ZG,Object.assign({},e,{prefixCls:d,confirmPrefixCls:m,rootPrefixCls:f,content:s}))}:y={closable:i!=null?i:!0,title:o,footer:l!==null&&b.createElement(VG,Object.assign({},e)),children:s},p(b.createElement(hG,Object.assign({prefixCls:d,className:me(v,`${d}-pure-panel`,a&&m,a&&`${m}-${a}`,n,g,h)},c,{closeIcon:WG(d,r),closable:i},y)))});function jQ(e){return q1(tK(e))}const Ha=XG;Ha.useModal=Oke,Ha.info=function(t){return q1(nK(t))},Ha.success=function(t){return q1(rK(t))},Ha.error=function(t){return q1(iK(t))},Ha.warning=jQ,Ha.warn=jQ,Ha.confirm=function(t){return q1(aK(t))},Ha.destroyAll=function(){for(;yp.length;){const t=yp.pop();t&&t()}},Ha.config=xke,Ha._InternalPanelDoNotUseOrYouWillBeFired=h7e;const p7e=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:o,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},DQ=tr("Popconfirm",e=>p7e(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1});var v7e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:l="primary",icon:c=b.createElement(Hg,null),showCancel:u=!0,close:f,onConfirm:d,onCancel:h,onPopupClick:p}=e,{getPrefixCls:v}=b.useContext(At),[g]=Zo("Popconfirm",_o.Popconfirm),m=rm(i),y=rm(a);return b.createElement("div",{className:`${t}-inner-content`,onClick:p},b.createElement("div",{className:`${t}-message`},c&&b.createElement("span",{className:`${t}-message-icon`},c),b.createElement("div",{className:`${t}-message-text`},m&&b.createElement("div",{className:`${t}-title`},m),y&&b.createElement("div",{className:`${t}-description`},y))),b.createElement("div",{className:`${t}-buttons`},u&&b.createElement(Hn,Object.assign({onClick:h,size:"small"},r),o||(g==null?void 0:g.cancelText)),b.createElement(CR,{buttonProps:Object.assign(Object.assign({size:"small"},lR(l)),n),actionFn:d,close:f,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(g==null?void 0:g.okText))))},g7e=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,a=v7e(e,["prefixCls","placement","className","style"]),{getPrefixCls:o}=b.useContext(At),s=o("popconfirm",t),[l]=DQ(s);return l(b.createElement(sY,{placement:n,className:me(s,r),style:i,content:b.createElement(FQ,Object.assign({prefixCls:s},a))}))};var m7e=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,placement:a="top",trigger:o="click",okType:s="primary",icon:l=b.createElement(Hg,null),children:c,overlayClassName:u,onOpenChange:f,onVisibleChange:d}=e,h=m7e(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:p}=b.useContext(At),[v,g]=Yn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),m=($,P)=>{g($,!0),d==null||d($),f==null||f($,P)},y=$=>{m(!1,$)},x=$=>{var P;return(P=e.onConfirm)===null||P===void 0?void 0:P.call(void 0,$)},S=$=>{var P;m(!1,$),(P=e.onCancel)===null||P===void 0||P.call(void 0,$)},w=($,P)=>{const{disabled:M=!1}=e;M||m($,P)},C=p("popconfirm",i),E=me(C,u),[O]=DQ(C);return O(b.createElement(pI,Object.assign({},Or(h,["title"]),{trigger:o,placement:a,onOpenChange:w,open:v,ref:t,overlayClassName:E,content:b.createElement(FQ,Object.assign({okType:s,icon:l},e,{prefixCls:C,close:y,onConfirm:x,onCancel:S})),"data-popover-inject":!0}),c))});P5._InternalPanelDoNotUseOrYouWillBeFired=g7e;var y7e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},b7e=function(){var t=b.useRef([]),n=b.useRef(null);return b.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(a){if(a){i=!0;var o=a.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(o.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},BQ=0,x7e=Ja();function S7e(){var e;return x7e?(e=BQ,BQ+=1):e="TEST_OR_SSR",e}const w7e=function(e){var t=b.useState(),n=he(t,2),r=n[0],i=n[1];return b.useEffect(function(){i("rc_progress_".concat(S7e()))},[]),e||r};var zQ=function(t){var n=t.bg,r=t.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function HQ(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var C7e=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,d=r&&Bt(r)==="object",h=d?"#FFF":void 0,p=u/2,v=b.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:p,cy:p,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:o,ref:t});if(!d)return v;var g="".concat(i,"-conic"),m=f?"".concat(180+f/2,"deg"):"0deg",y=HQ(r,(360-f)/360),x=HQ(r,1),S="conic-gradient(from ".concat(m,", ").concat(y.join(", "),")"),w="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:g},v),b.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(g,")")},b.createElement(zQ,{bg:w},b.createElement(zQ,{bg:S}))))}),Cb=100,M5=function(t,n,r,i,a,o,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,d=r/100*360*((360-o)/360),h=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],p=(100-i)/100*n;c==="round"&&i!==100&&(p+=u/2,p>=n&&(p=n-.01));var v=Cb/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:p+f,transform:"rotate(".concat(a+d+h,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},E7e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function WQ(e){var t=e!=null?e:[];return Array.isArray(t)?t:[t]}var O7e=function(t){var n=ae(ae({},y7e),t),r=n.id,i=n.prefixCls,a=n.steps,o=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,f=n.trailColor,d=n.strokeLinecap,h=n.style,p=n.className,v=n.strokeColor,g=n.percent,m=qt(n,E7e),y=Cb/2,x=w7e(r),S="".concat(x,"-gradient"),w=y-o/2,C=Math.PI*2*w,E=c>0?90+c/2:-90,O=C*((360-c)/360),$=Bt(a)==="object"?a:{count:a,gap:2},P=$.count,M=$.gap,k=WQ(g),T=WQ(v),R=T.find(function(D){return D&&Bt(D)==="object"}),A=R&&Bt(R)==="object",N=A?"butt":d,L=M5(C,O,0,100,E,c,u,f,N,o),j=b7e(),F=function(){var z=0;return k.map(function(W,q){var H=T[q]||T[T.length-1],U=M5(C,O,z,W,E,c,u,H,N,o);return z+=W,b.createElement(C7e,{key:q,color:H,ptg:W,radius:w,prefixCls:i,gradientId:S,style:U,strokeLinecap:N,strokeWidth:o,gapDegree:c,ref:function(K){j[q]=K},size:Cb})}).reverse()},B=function(){var z=Math.round(P*(k[0]/100)),W=100/P,q=0;return new Array(P).fill(null).map(function(H,U){var G=U<=z-1?T[0]:f,K=G&&Bt(G)==="object"?"url(#".concat(S,")"):void 0,X=M5(C,O,q,W,E,c,u,G,"butt",o,M);return q+=(O-X.strokeDashoffset+M)*100/O,b.createElement("circle",{key:U,className:"".concat(i,"-circle-path"),r:w,cx:y,cy:y,stroke:K,strokeWidth:o,opacity:1,style:X,ref:function(ee){j[U]=ee}})})};return b.createElement("svg",Le({className:me("".concat(i,"-circle"),p),viewBox:"0 0 ".concat(Cb," ").concat(Cb),style:h,id:r,role:"presentation"},m),!P&&b.createElement("circle",{className:"".concat(i,"-circle-trail"),r:w,cx:y,cy:y,stroke:f,strokeLinecap:N,strokeWidth:s||o,style:L}),P?B():F())};function Fd(e){return!e||e<0?0:e>100?100:e}function GE(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const _7e=e=>{let{percent:t,success:n,successPercent:r}=e;const i=Fd(GE({success:n,successPercent:r}));return[i,Fd(Fd(t)-i)]},$7e=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Ng.green,n||null]},KE=(e,t,n)=>{var r,i,a,o;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e=="undefined"?(s=e==="small"?2:14,l=u!=null?u:8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e=="undefined"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e=="undefined"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(o=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&o!==void 0?o:120));return[s,l]},P7e=3,M7e=e=>P7e/e*100,k7e=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:o=120,type:s,children:l,success:c,size:u=o,steps:f}=e,[d,h]=KE(u,"circle");let{strokeWidth:p}=e;p===void 0&&(p=Math.max(M7e(d),6));const v={width:d,height:h,fontSize:d*.15+6},g=b.useMemo(()=>{if(a||a===0)return a;if(s==="dashboard")return 75},[a,s]),m=_7e(e),y=i||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=$7e({success:c,strokeColor:e.strokeColor}),w=me(`${t}-inner`,{[`${t}-circle-gradient`]:x}),C=b.createElement(O7e,{steps:f,percent:f?m[1]:m,strokeWidth:p,trailWidth:p,strokeColor:f?S[1]:S,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:g,gapPosition:y}),E=d<=20,O=b.createElement("div",{className:w,style:v},C,!E&&l);return E?b.createElement(ro,{title:l},O):O},YE="--progress-line-stroke-color",VQ="--progress-percent",qQ=e=>{const t=e?"100%":"-100%";return new fr(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},T7e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},er(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${YE})`]},height:"100%",width:`calc(1 / var(${VQ}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ue(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:qQ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:qQ(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},R7e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},I7e=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},A7e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},N7e=tr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=_n(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[T7e(n),R7e(n),I7e(n),A7e(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}));var L7e=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 i=0,r=Object.getOwnPropertySymbols(e);i{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},D7e=(e,t)=>{const{from:n=Ng.blue,to:r=Ng.blue,direction:i=t==="rtl"?"to left":"to right"}=e,a=L7e(e,["from","to","direction"]);if(Object.keys(a).length!==0){const s=j7e(a),l=`linear-gradient(${i}, ${s})`;return{background:l,[YE]:l}}const o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[YE]:o}},F7e=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:a,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:d,type:h}=u,p=o&&typeof o!="string"?D7e(o,n):{[YE]:o,background:o},v=s==="square"||s==="butt"?0:void 0,g=i!=null?i:[-1,a||(i==="small"?6:8)],[m,y]=KE(g,"line",{strokeWidth:a}),x={backgroundColor:c||void 0,borderRadius:v},S=Object.assign(Object.assign({width:`${Fd(r)}%`,height:y,borderRadius:v},p),{[VQ]:Fd(r)/100}),w=GE(e),C={width:`${Fd(w)}%`,height:y,borderRadius:v,backgroundColor:f==null?void 0:f.strokeColor},E={width:m<0?"100%":m},O=b.createElement("div",{className:`${t}-inner`,style:x},b.createElement("div",{className:me(`${t}-bg`,`${t}-bg-${h}`),style:S},h==="inner"&&l),w!==void 0&&b.createElement("div",{className:`${t}-success-bg`,style:C})),$=h==="outer"&&d==="start",P=h==="outer"&&d==="end";return h==="outer"&&d==="center"?b.createElement("div",{className:`${t}-layout-bottom`},O,l):b.createElement("div",{className:`${t}-outer`,style:E},$&&l,O,P&&l)},B7e=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:o=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),u=t==="small"?2:14,f=t!=null?t:[u,i],[d,h]=KE(f,"step",{steps:n,strokeWidth:i}),p=d/n,v=new Array(n);for(let g=0;g{const{prefixCls:n,className:r,rootClassName:i,steps:a,strokeColor:o,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:d,style:h,percentPosition:p={}}=e,v=z7e(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:g="end",type:m="outer"}=p,y=Array.isArray(o)?o[0]:o,x=typeof o=="string"||Array.isArray(o)?o:void 0,S=b.useMemo(()=>{if(y){const F=typeof y=="string"?y:Object.values(y)[0];return new Un(F).isLight()}return!1},[o]),w=b.useMemo(()=>{var F,B;const D=GE(e);return parseInt(D!==void 0?(F=D!=null?D:0)===null||F===void 0?void 0:F.toString():(B=s!=null?s:0)===null||B===void 0?void 0:B.toString(),10)},[s,e.success,e.successPercent]),C=b.useMemo(()=>!H7e.includes(f)&&w>=100?"success":f||"normal",[f,w]),{getPrefixCls:E,direction:O,progress:$}=b.useContext(At),P=E("progress",n),[M,k,T]=N7e(P),R=u==="line",A=R&&!a,N=b.useMemo(()=>{if(!c)return null;const F=GE(e);let B;const D=d||(W=>`${W}%`),z=R&&S&&m==="inner";return m==="inner"||d||C!=="exception"&&C!=="success"?B=D(Fd(s),Fd(F)):C==="exception"?B=R?b.createElement(vp,null):b.createElement(Md,null):C==="success"&&(B=R?b.createElement(A1,null):b.createElement(cI,null)),b.createElement("span",{className:me(`${P}-text`,{[`${P}-text-bright`]:z,[`${P}-text-${g}`]:A,[`${P}-text-${m}`]:A}),title:typeof B=="string"?B:void 0},B)},[c,s,w,C,u,P,d]);let L;u==="line"?L=a?b.createElement(B7e,Object.assign({},e,{strokeColor:x,prefixCls:P,steps:typeof a=="object"?a.count:a}),N):b.createElement(F7e,Object.assign({},e,{strokeColor:y,prefixCls:P,direction:O,percentPosition:{align:g,type:m}}),N):(u==="circle"||u==="dashboard")&&(L=b.createElement(k7e,Object.assign({},e,{strokeColor:y,prefixCls:P,progressStatus:C}),N));const j=me(P,`${P}-status-${C}`,{[`${P}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${P}-inline-circle`]:u==="circle"&&KE(l,"circle")[0]<=20,[`${P}-line`]:A,[`${P}-line-align-${g}`]:A,[`${P}-line-position-${m}`]:A,[`${P}-steps`]:a,[`${P}-show-info`]:c,[`${P}-${l}`]:typeof l=="string",[`${P}-rtl`]:O==="rtl"},$==null?void 0:$.className,r,i,k,T);return M(b.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},$==null?void 0:$.style),h),className:j,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},Or(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),L))});function Ip(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=oC(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var V7e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},q7e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:V7e}))},U7e=b.forwardRef(q7e),G7e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},K7e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:G7e}))},Y7e=b.forwardRef(K7e),X7e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Z7e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:X7e}))},Q7e=b.forwardRef(Z7e),J7e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},eDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:J7e}))},tDe=b.forwardRef(eDe),nDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},rDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:nDe}))},XE=b.forwardRef(rDe),iDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},aDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:iDe}))},k5=b.forwardRef(aDe),oDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},sDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:oDe}))},ZE=b.forwardRef(sDe),lDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},cDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:lDe}))},uDe=b.forwardRef(cDe),fDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},dDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:fDe}))},UQ=b.forwardRef(dDe),hDe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},pDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:hDe}))},vDe=b.forwardRef(pDe),gDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},mDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:gDe}))},GQ=b.forwardRef(mDe),yDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},bDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:yDe}))},KQ=b.forwardRef(bDe),xDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},SDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:xDe}))},wDe=b.forwardRef(SDe),CDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},EDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:CDe}))},ODe=b.forwardRef(EDe),_De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},$De=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:_De}))},PDe=b.forwardRef($De),MDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},kDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:MDe}))},TDe=b.forwardRef(kDe),RDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},IDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:RDe}))},ADe=b.forwardRef(IDe),NDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},LDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:NDe}))},jDe=b.forwardRef(LDe),DDe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},FDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:DDe}))},BDe=b.forwardRef(FDe),zDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},HDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:zDe}))},T5=b.forwardRef(HDe),WDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},VDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:WDe}))},qDe=b.forwardRef(VDe),UDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z"}}]},name:"save",theme:"filled"},GDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:UDe}))},YQ=b.forwardRef(GDe),KDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},YDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:KDe}))},ym=b.forwardRef(YDe),XDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},ZDe=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:XDe}))},QDe=b.forwardRef(ZDe),JDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},e9e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:JDe}))},t9e=b.forwardRef(e9e),n9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},r9e=function(t,n){return b.createElement(bn,Le({},t,{ref:n,icon:n9e}))},i9e=b.forwardRef(r9e);const a9e=()=>b.createElement("svg",{width:"252",height:"294"},b.createElement("title",null,"No Found"),b.createElement("defs",null,b.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(0 .012)"},b.createElement("mask",{fill:"#fff"}),b.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),b.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),b.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),b.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),b.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),b.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),b.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),b.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),b.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),b.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),b.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),b.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),b.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),b.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),b.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),b.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),b.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),b.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),b.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),b.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),b.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),b.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),b.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),b.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),b.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),b.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),b.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),b.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),b.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),b.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),b.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),b.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),b.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),b.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),b.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),b.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),b.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),b.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),b.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),o9e=()=>b.createElement("svg",{width:"254",height:"294"},b.createElement("title",null,"Server Error"),b.createElement("defs",null,b.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),b.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(0 .067)"},b.createElement("mask",{fill:"#fff"}),b.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),b.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),b.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),b.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),b.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),b.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),b.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),b.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),b.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),b.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),b.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),b.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),b.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),b.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),b.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),b.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),b.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),b.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),b.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),b.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),b.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),b.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),b.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),b.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),b.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),b.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),b.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),b.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),b.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),b.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),b.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),b.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),b.createElement("mask",{fill:"#fff"}),b.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),b.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),b.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),b.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),b.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),b.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),b.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),b.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),b.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),b.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),b.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),s9e=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${ue(e.calc(s).mul(2).equal())} ${ue(a)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${ue(s)} ${ue(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},l9e=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},c9e=e=>[s9e(e),l9e(e)],u9e=e=>c9e(e),f9e=tr("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,a=_n(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[u9e(a)]},e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`})),d9e=()=>b.createElement("svg",{width:"251",height:"294"},b.createElement("title",null,"Unauthorized"),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),b.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),b.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),b.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),b.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),b.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),b.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),b.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),b.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),b.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),b.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),b.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),b.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),b.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),b.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),b.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),b.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),b.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),b.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),b.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),b.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),b.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),b.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),b.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),b.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),b.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),b.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),b.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),b.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),b.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),b.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),b.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),b.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),b.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),b.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),b.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),b.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),h9e={success:A1,error:vp,info:Hg,warning:i9e},Eb={404:a9e,500:o9e,403:d9e},p9e=Object.keys(Eb),v9e=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=me(`${t}-icon`);if(p9e.includes(`${r}`)){const o=Eb[r];return b.createElement("div",{className:`${i} ${t}-image`},b.createElement(o,null))}const a=b.createElement(h9e[r]);return n===null||n===!1?null:b.createElement("div",{className:i},n||a)},g9e=e=>{let{prefixCls:t,extra:n}=e;return n?b.createElement("div",{className:`${t}-extra`},n):null},QE=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:a,style:o,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:f,direction:d,result:h}=b.useContext(At),p=f("result",t),[v,g,m]=f9e(p),y=me(p,`${p}-${l}`,n,h==null?void 0:h.className,r,{[`${p}-rtl`]:d==="rtl"},g,m),x=Object.assign(Object.assign({},h==null?void 0:h.style),o);return v(b.createElement("div",{className:y,style:x},b.createElement(v9e,{prefixCls:p,status:l,icon:c}),b.createElement("div",{className:`${p}-title`},a),i&&b.createElement("div",{className:`${p}-subtitle`},i),b.createElement(g9e,{prefixCls:p,extra:u}),s&&b.createElement("div",{className:`${p}-content`},s)))};QE.PRESENTED_IMAGE_403=Eb[403],QE.PRESENTED_IMAGE_404=Eb[404],QE.PRESENTED_IMAGE_500=Eb[500];var m9e=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],XQ=b.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,a=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,d=e.onClick,h=e.onChange,p=e.onKeyDown,v=qt(e,m9e),g=Yn(!1,{value:o,defaultValue:s}),m=he(g,2),y=m[0],x=m[1];function S(O,$){var P=y;return l||(P=O,x(P),h==null||h(P,$)),P}function w(O){O.which===Ze.LEFT?S(!1,O):O.which===Ze.RIGHT&&S(!0,O),p==null||p(O)}function C(O){var $=S(!y,O);d==null||d($,O)}var E=me(i,a,(n={},Z(n,"".concat(i,"-checked"),y),Z(n,"".concat(i,"-disabled"),l),n));return b.createElement("button",Le({},v,{type:"button",role:"switch","aria-checked":y,disabled:l,className:E,ref:t,onKeyDown:w,onClick:C}),c,b.createElement("span",{className:"".concat(i,"-inner")},b.createElement("span",{className:"".concat(i,"-inner-checked")},u),b.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});XQ.displayName="Switch";const y9e=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=ue(l(s).add(l(r).mul(2)).equal()),f=ue(l(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:ue(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ue(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},b9e=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},x9e=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${ue(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},S9e=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,calc:s}=e,l=`${t}-inner`,c=ue(s(o).add(s(r).mul(2)).equal()),u=ue(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},w9e=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ue(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),nu(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},C9e=tr("Switch",e=>{const t=_n(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[w9e(t),S9e(t),x9e(t),b9e(t),y9e(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=2,l=a-s*2,c=o-s*2;return{trackHeight:a,trackHeightSM:o,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Un("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}});var E9e=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:d,onChange:h}=e,p=E9e(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,g]=Yn(!1,{value:c!=null?c:u,defaultValue:f!=null?f:d}),{getPrefixCls:m,direction:y,switch:x}=b.useContext(At),S=b.useContext(mo),w=(i!=null?i:S)||a,C=m("switch",n),E=b.createElement("div",{className:`${C}-handle`},a&&b.createElement(af,{className:`${C}-loading-icon`})),[O,$,P]=C9e(C),M=ja(r),k=me(x==null?void 0:x.className,{[`${C}-small`]:M==="small",[`${C}-loading`]:a,[`${C}-rtl`]:y==="rtl"},o,s,$,P),T=Object.assign(Object.assign({},x==null?void 0:x.style),l),R=function(){g(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return O(b.createElement(L1,{component:"Switch"},b.createElement(XQ,Object.assign({},p,{checked:v,onChange:R,prefixCls:C,className:k,style:T,disabled:w,ref:t,loadingIcon:E}))))});ZQ.__ANT_SWITCH=!0;var Bd={},Ob="rc-table-internal-hook";function R5(e){var t=b.createContext(void 0),n=function(i){var a=i.value,o=i.children,s=b.useRef(a);s.current=a;var l=b.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=he(l,1),u=c[0];return Ln(function(){ys.unstable_batchedUpdates(function(){u.listeners.forEach(function(f){f(a)})})},[a]),b.createElement(t.Provider,{value:u},o)};return{Context:t,Provider:n,defaultValue:e}}function yo(e,t){var n=On(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var d={};return t.forEach(function(h){d[h]=f[h]}),d}),r=b.useContext(e==null?void 0:e.Context),i=r||{},a=i.listeners,o=i.getValue,s=b.useRef();s.current=n(r?o():e==null?void 0:e.defaultValue);var l=b.useState({}),c=he(l,2),u=c[1];return Ln(function(){if(!r)return;function f(d){var h=n(d);yl(s.current,h,!0)||u({})}return a.add(f),function(){a.delete(f)}},[r]),s.current}function O9e(){var e=b.createContext(null);function t(){return b.useContext(e)}function n(i,a){var o=vc(i),s=function(c,u){var f=o?{ref:u}:{},d=b.useRef(0),h=b.useRef(c),p=t();return p!==null?b.createElement(i,Le({},c,f)):((!a||a(h.current,c))&&(d.current+=1),h.current=c,b.createElement(e.Provider,{value:d.current},b.createElement(i,Le({},c,f))))};return o?b.forwardRef(s):s}function r(i,a){var o=vc(i),s=function(c,u){var f=o?{ref:u}:{};return t(),b.createElement(i,Le({},c,f))};return o?b.memo(b.forwardRef(s),a):b.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var I5=O9e(),QQ=I5.makeImmutable,bm=I5.responseImmutable,_9e=I5.useImmutableMark,es=R5(),JQ=b.createContext({renderWithProps:!1}),$9e="RC_TABLE_KEY";function P9e(e){return e==null?[]:Array.isArray(e)?e:[e]}function JE(e){var t=[],n={};return e.forEach(function(r){for(var i=r||{},a=i.key,o=i.dataIndex,s=a||P9e(o).join("-")||$9e;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function A5(e){return e!=null}function M9e(e){return typeof e=="number"&&!Number.isNaN(e)}function k9e(e){return e&&Bt(e)==="object"&&!Array.isArray(e)&&!b.isValidElement(e)}function T9e(e,t,n,r,i,a){var o=b.useContext(JQ),s=_9e(),l=sp(function(){if(A5(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=Xo(e,c),f=u,d=void 0;if(i){var h=i(u,e,n);k9e(h)?(f=h.children,d=h.props,o.renderWithProps=!0):f=h}return[f,d]},[s,e,r,t,i,n],function(c,u){if(a){var f=he(c,2),d=f[1],h=he(u,2),p=h[1];return a(p,d)}return o.renderWithProps?!0:!yl(c,u,!0)});return l}function R9e(e,t,n,r){var i=e+t-1;return e<=r&&i>=n}function I9e(e,t){return yo(es,function(n){var r=R9e(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var A9e=function(t){var n=t.ellipsis,r=t.rowType,i=t.children,a,o=n===!0?{showTitle:!0}:n;return o&&(o.showTitle||r==="header")&&(typeof i=="string"||typeof i=="number"?a=i.toString():b.isValidElement(i)&&typeof i.props.children=="string"&&(a=i.props.children)),a};function N9e(e){var t,n,r,i,a,o,s,l,c=e.component,u=e.children,f=e.ellipsis,d=e.scope,h=e.prefixCls,p=e.className,v=e.align,g=e.record,m=e.render,y=e.dataIndex,x=e.renderIndex,S=e.shouldCellUpdate,w=e.index,C=e.rowType,E=e.colSpan,O=e.rowSpan,$=e.fixLeft,P=e.fixRight,M=e.firstFixLeft,k=e.lastFixLeft,T=e.firstFixRight,R=e.lastFixRight,A=e.appendNode,N=e.additionalProps,L=N===void 0?{}:N,j=e.isSticky,F="".concat(h,"-cell"),B=yo(es,["supportSticky","allColumnsFixedLeft","rowHoverable"]),D=B.supportSticky,z=B.allColumnsFixedLeft,W=B.rowHoverable,q=T9e(g,y,x,u,m,S),H=he(q,2),U=H[0],G=H[1],K={},X=typeof $=="number"&&D,Q=typeof P=="number"&&D;X&&(K.position="sticky",K.left=$),Q&&(K.position="sticky",K.right=P);var ee=(t=(n=(r=G==null?void 0:G.colSpan)!==null&&r!==void 0?r:L.colSpan)!==null&&n!==void 0?n:E)!==null&&t!==void 0?t:1,ne=(i=(a=(o=G==null?void 0:G.rowSpan)!==null&&o!==void 0?o:L.rowSpan)!==null&&a!==void 0?a:O)!==null&&i!==void 0?i:1,te=I9e(w,ne),ie=he(te,2),J=ie[0],le=ie[1],oe=On(function(xe){var Oe;g&&le(w,w+ne-1),L==null||(Oe=L.onMouseEnter)===null||Oe===void 0||Oe.call(L,xe)}),re=On(function(xe){var Oe;g&&le(-1,-1),L==null||(Oe=L.onMouseLeave)===null||Oe===void 0||Oe.call(L,xe)});if(ee===0||ne===0)return null;var se=(s=L.title)!==null&&s!==void 0?s:A9e({rowType:C,ellipsis:f,children:U}),ge=me(F,p,(l={},Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(l,"".concat(F,"-fix-left"),X&&D),"".concat(F,"-fix-left-first"),M&&D),"".concat(F,"-fix-left-last"),k&&D),"".concat(F,"-fix-left-all"),k&&z&&D),"".concat(F,"-fix-right"),Q&&D),"".concat(F,"-fix-right-first"),T&&D),"".concat(F,"-fix-right-last"),R&&D),"".concat(F,"-ellipsis"),f),"".concat(F,"-with-append"),A),"".concat(F,"-fix-sticky"),(X||Q)&&j&&D),Z(l,"".concat(F,"-row-hover"),!G&&J)),L.className,G==null?void 0:G.className),de={};v&&(de.textAlign=v);var pe=ae(ae(ae(ae({},G==null?void 0:G.style),K),de),L.style),fe=U;return Bt(fe)==="object"&&!Array.isArray(fe)&&!b.isValidElement(fe)&&(fe=null),f&&(k||T)&&(fe=b.createElement("span",{className:"".concat(F,"-content")},fe)),b.createElement(c,Le({},G,L,{className:ge,style:pe,title:se,scope:d,onMouseEnter:W?oe:void 0,onMouseLeave:W?re:void 0,colSpan:ee!==1?ee:null,rowSpan:ne!==1?ne:null}),A,fe)}const xm=b.memo(N9e);function N5(e,t,n,r,i){var a=n[e]||{},o=n[t]||{},s,l;a.fixed==="left"?s=r.left[i==="rtl"?t:e]:o.fixed==="right"&&(l=r.right[i==="rtl"?e:t]);var c=!1,u=!1,f=!1,d=!1,h=n[t+1],p=n[e-1],v=h&&!h.fixed||p&&!p.fixed||n.every(function(S){return S.fixed==="left"});if(i==="rtl"){if(s!==void 0){var g=p&&p.fixed==="left";d=!g&&v}else if(l!==void 0){var m=h&&h.fixed==="right";f=!m&&v}}else if(s!==void 0){var y=h&&h.fixed==="left";c=!y&&v}else if(l!==void 0){var x=p&&p.fixed==="right";u=!x&&v}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:f,firstFixLeft:d,isSticky:r.isSticky}}var eJ=b.createContext({});function L9e(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=i===void 0?1:i,o=e.rowSpan,s=e.align,l=yo(es,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,f=b.useContext(eJ),d=f.scrollColumnIndex,h=f.stickyOffsets,p=f.flattenColumns,v=n+a-1,g=v+1===d?a+1:a,m=N5(n,n+g-1,p,h,u);return b.createElement(xm,Le({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:g,rowSpan:o,render:function(){return r}},m))}var j9e=["children"];function D9e(e){var t=e.children,n=qt(e,j9e);return b.createElement("tr",n,t)}function eO(e){var t=e.children;return t}eO.Row=D9e,eO.Cell=L9e;function F9e(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=yo(es,"prefixCls"),a=r.length-1,o=r[a],s=b.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o!=null&&o.scrollbar?a:null}},[o,r,a,n]);return b.createElement(eJ.Provider,{value:s},b.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const tO=bm(F9e);var tJ=eO;function B9e(e){return null}function z9e(e){return null}function nJ(e,t,n,r,i,a,o){e.push({record:t,indent:n,index:o});var s=a(t),l=i==null?void 0:i.has(s);if(t&&Array.isArray(t[r])&&l)for(var c=0;c1?M-1:0),T=1;T=1)),style:ae(ae({},n),m==null?void 0:m.style)}),p.map(function($,P){var M=$.render,k=$.dataIndex,T=$.className,R=sJ(d,$,P,l,i),A=R.key,N=R.fixedInfo,L=R.appendCellNode,j=R.additionalCellProps;return b.createElement(xm,Le({className:T,ellipsis:$.ellipsis,align:$.align,scope:$.rowScope,component:$.rowScope?f:u,prefixCls:h,key:A,record:r,index:i,renderIndex:a,dataIndex:k,render:M,shouldCellUpdate:$.shouldCellUpdate},N,{appendNode:L,additionalProps:j}))})),E;if(x&&(S.current||y)){var O=g(r,i,l+1,y);E=b.createElement(aJ,{expanded:y,className:me("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(l+1),w),prefixCls:h,component:c,cellComponent:u,colSpan:p.length,isEmpty:!1},O)}return b.createElement(b.Fragment,null,C,E)}const q9e=bm(V9e);function U9e(e){var t=e.columnKey,n=e.onColumnResize,r=b.useRef();return b.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),b.createElement(vo,{data:t},b.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},b.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function G9e(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return b.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},b.createElement(vo.Collection,{onBatchResize:function(a){a.forEach(function(o){var s=o.data,l=o.size;r(s,l.offsetWidth)})}},n.map(function(i){return b.createElement(U9e,{key:i,columnKey:i,onColumnResize:r})})))}function K9e(e){var t=e.data,n=e.measureColumnWidth,r=yo(es,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=r.prefixCls,a=r.getComponent,o=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,c=r.expandedKeys,u=r.childrenColumnName,f=r.emptyNode,d=rJ(t,u,c,l),h=b.useRef({renderWithProps:!1}),p=a(["body","wrapper"],"tbody"),v=a(["body","row"],"tr"),g=a(["body","cell"],"td"),m=a(["body","cell"],"th"),y;t.length?y=d.map(function(S,w){var C=S.record,E=S.indent,O=S.index,$=l(C,w);return b.createElement(q9e,{key:$,rowKey:$,record:C,index:w,renderIndex:O,rowComponent:v,cellComponent:g,scopeCellComponent:m,getRowKey:l,indent:E})}):y=b.createElement(aJ,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:v,cellComponent:g,colSpan:s.length,isEmpty:!0},f);var x=JE(s);return b.createElement(JQ.Provider,{value:h.current},b.createElement(p,{className:"".concat(i,"-tbody")},n&&b.createElement(G9e,{prefixCls:i,columnsKey:x,onColumnResize:o}),y))}const Y9e=bm(K9e);var X9e=["expandable"],_b="RC_TABLE_INTERNAL_COL_DEFINE";function Z9e(e){var t=e.expandable,n=qt(e,X9e),r;return"expandable"in e?r=ae(ae({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var Q9e=["columnType"];function lJ(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=yo(es,["tableLayout"]),a=i.tableLayout,o=[],s=r||n.length,l=!1,c=s-1;c>=0;c-=1){var u=t[c],f=n&&n[c],d=void 0,h=void 0;if(f&&(d=f[_b],a==="auto"&&(h=f.minWidth)),u||h||d||l){var p=d||{};p.columnType;var v=qt(p,Q9e);o.unshift(b.createElement("col",Le({key:c,style:{width:u,minWidth:h}},v))),l=!0}}return b.createElement("colgroup",null,o)}var J9e=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function eFe(e,t){return b.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:g.ellipsis,align:g.align,component:o,prefixCls:u,key:h[v]},m,{additionalProps:y,rowType:"header"}))}))};function rFe(e){var t=[];function n(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=s,u=o.filter(Boolean).map(function(f){var d={key:f.key,className:f.className||"",children:f.title,column:f,colStart:c},h=1,p=f.children;return p&&p.length>0&&(h=n(p,c,l+1).reduce(function(v,g){return v+g},0),d.hasSubColumns=!0),"colSpan"in f&&(h=f.colSpan),"rowSpan"in f&&(d.rowSpan=f.rowSpan),d.colSpan=h,d.colEnd=d.colStart+h-1,t[l].push(d),c+=h,h});return u}n(e,0);for(var r=t.length,i=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},a=0;a1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function aFe(e,t,n){return b.useMemo(function(){if(t&&t>0){var r=0,i=0;e.forEach(function(d){var h=fJ(t,d.width);h?r+=h:i+=1});var a=Math.max(t,n),o=Math.max(a-r,i),s=i,l=o/i,c=0,u=e.map(function(d){var h=ae({},d),p=fJ(t,h.width);if(p)h.width=p;else{var v=Math.floor(l);h.width=s===1?o:v,o-=v,s-=1}return c+=h.width,h});if(c0?ae(ae({},t),{},{children:dJ(n)}):t})}function j5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Bt(n)==="object"}).reduce(function(n,r,i){var a=r.fixed,o=a===!0?"left":a,s="".concat(t,"-").concat(i),l=r.children;return l&&l.length>0?[].concat(Ne(n),Ne(j5(l,s).map(function(c){return ae({fixed:o},c)}))):[].concat(Ne(n),[ae(ae({key:s},r),{},{fixed:o})])},[])}function lFe(e){return e.map(function(t){var n=t.fixed,r=qt(t,sFe),i=n;return n==="left"?i="right":n==="right"&&(i="left"),ae({fixed:i},r)})}function cFe(e,t){var n=e.prefixCls,r=e.columns,i=e.children,a=e.expandable,o=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,f=e.rowExpandable,d=e.expandIconColumnIndex,h=e.direction,p=e.expandRowByClick,v=e.columnWidth,g=e.fixed,m=e.scrollWidth,y=e.clientWidth,x=b.useMemo(function(){var k=r||L5(i)||[];return dJ(k.slice())},[r,i]),S=b.useMemo(function(){if(a){var k=x.slice();if(!k.includes(Bd)){var T=d||0;T>=0&&k.splice(T,0,Bd)}var R=k.indexOf(Bd);k=k.filter(function(j,F){return j!==Bd||F===R});var A=x[R],N;(g==="left"||g)&&!d?N="left":(g==="right"||g)&&d===x.length?N="right":N=A?A.fixed:null;var L=Z(Z(Z(Z(Z(Z({},_b,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",N),"className","".concat(n,"-row-expand-icon-cell")),"width",v),"render",function(F,B,D){var z=l(B,D),W=o.has(z),q=f?f(B):!0,H=u({prefixCls:n,expanded:W,expandable:q,record:B,onExpand:c});return p?b.createElement("span",{onClick:function(G){return G.stopPropagation()}},H):H});return k.map(function(j){return j===Bd?L:j})}return x.filter(function(j){return j!==Bd})},[a,x,l,o,u,h]),w=b.useMemo(function(){var k=S;return t&&(k=t(k)),k.length||(k=[{render:function(){return null}}]),k},[t,S,h]),C=b.useMemo(function(){return h==="rtl"?lFe(j5(w)):j5(w)},[w,h,m]),E=b.useMemo(function(){for(var k=-1,T=C.length-1;T>=0;T-=1){var R=C[T].fixed;if(R==="left"||R===!0){k=T;break}}if(k>=0)for(var A=0;A<=k;A+=1){var N=C[A].fixed;if(N!=="left"&&N!==!0)return!0}var L=C.findIndex(function(B){var D=B.fixed;return D==="right"});if(L>=0)for(var j=L;j=f&&(j=f-d),o({scrollLeft:j/f*(u+2)}),y.current.x=R.pageX},M=function(){E.current=Sn(function(){if(a.current){var R=S5(a.current).top,A=R+a.current.offsetHeight,N=l===window?document.documentElement.scrollTop+window.innerHeight:S5(l).top+l.clientHeight;A-iG()<=N||R>=N-s?m(function(L){return ae(ae({},L),{},{isHiddenScrollBar:!0})}):m(function(L){return ae(ae({},L),{},{isHiddenScrollBar:!1})})}})},k=function(R){m(function(A){return ae(ae({},A),{},{scrollLeft:R/u*f||0})})};return b.useImperativeHandle(n,function(){return{setScrollLeft:k,checkScrollBarVisible:M}}),b.useEffect(function(){var T=au(document.body,"mouseup",O,!1),R=au(document.body,"mousemove",P,!1);return M(),function(){T.remove(),R.remove()}},[d,w]),b.useEffect(function(){var T=au(l,"scroll",M,!1),R=au(window,"resize",M,!1);return function(){T.remove(),R.remove()}},[l]),b.useEffect(function(){g.isHiddenScrollBar||m(function(T){var R=a.current;return R?ae(ae({},T),{},{scrollLeft:R.scrollLeft/R.scrollWidth*R.clientWidth}):T})},[g.isHiddenScrollBar]),u<=f||!d||g.isHiddenScrollBar?null:b.createElement("div",{style:{height:iG(),width:f,bottom:s},className:"".concat(c,"-sticky-scroll")},b.createElement("div",{onMouseDown:$,ref:h,className:me("".concat(c,"-sticky-scroll-bar"),Z({},"".concat(c,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(d,"px"),transform:"translate3d(".concat(g.scrollLeft,"px, 0, 0)")}}))};const mFe=b.forwardRef(gFe);var gJ="rc-table",yFe=[],bFe={};function xFe(){return"No Data"}function SFe(e,t){var n=ae({rowKey:"key",prefixCls:gJ,emptyText:xFe},e),r=n.prefixCls,i=n.className,a=n.rowClassName,o=n.style,s=n.data,l=n.rowKey,c=n.scroll,u=n.tableLayout,f=n.direction,d=n.title,h=n.footer,p=n.summary,v=n.caption,g=n.id,m=n.showHeader,y=n.components,x=n.emptyText,S=n.onRow,w=n.onHeaderRow,C=n.onScroll,E=n.internalHooks,O=n.transformColumns,$=n.internalRefs,P=n.tailor,M=n.getContainerWidth,k=n.sticky,T=n.rowHoverable,R=T===void 0?!0:T,A=s||yFe,N=!!A.length,L=E===Ob,j=b.useCallback(function(Rt,It){return Xo(y,Rt)||It},[y]),F=b.useMemo(function(){return typeof l=="function"?l:function(Rt){var It=Rt&&Rt[l];return It}},[l]),B=j(["body"]),D=hFe(),z=he(D,3),W=z[0],q=z[1],H=z[2],U=uFe(n,A,F),G=he(U,6),K=G[0],X=G[1],Q=G[2],ee=G[3],ne=G[4],te=G[5],ie=c==null?void 0:c.x,J=b.useState(0),le=he(J,2),oe=le[0],re=le[1],se=cFe(ae(ae(ae({},n),K),{},{expandable:!!K.expandedRowRender,columnTitle:K.columnTitle,expandedKeys:Q,getRowKey:F,onTriggerExpand:te,expandIcon:ee,expandIconColumnIndex:K.expandIconColumnIndex,direction:f,scrollWidth:L&&P&&typeof ie=="number"?ie:null,clientWidth:oe}),L?O:null),ge=he(se,4),de=ge[0],pe=ge[1],fe=ge[2],xe=ge[3],Oe=fe!=null?fe:ie,_e=b.useMemo(function(){return{columns:de,flattenColumns:pe}},[de,pe]),Te=b.useRef(),Fe=b.useRef(),Be=b.useRef(),Pe=b.useRef();b.useImperativeHandle(t,function(){return{nativeElement:Te.current,scrollTo:function(It){var cn;if(Be.current instanceof HTMLElement){var wn=It.index,zn=It.top,Zi=It.key;if(M9e(zn)){var wa;(wa=Be.current)===null||wa===void 0||wa.scrollTo({top:zn})}else{var Qi,so=Zi!=null?Zi:F(A[wn]);(Qi=Be.current.querySelector('[data-row-key="'.concat(so,'"]')))===null||Qi===void 0||Qi.scrollIntoView()}}else(cn=Be.current)!==null&&cn!==void 0&&cn.scrollTo&&Be.current.scrollTo(It)}}});var ze=b.useRef(),Ue=b.useState(!1),ke=he(Ue,2),Ee=ke[0],Ie=ke[1],Ae=b.useState(!1),$e=he(Ae,2),He=$e[0],ot=$e[1],Ot=hJ(new Map),Wt=he(Ot,2),et=Wt[0],ht=Wt[1],Et=JE(pe),gt=Et.map(function(Rt){return et.get(Rt)}),Pt=b.useMemo(function(){return gt},[gt.join("_")]),wt=vFe(Pt,pe,f),st=c&&A5(c.y),nt=c&&A5(Oe)||!!K.fixed,lt=nt&&pe.some(function(Rt){var It=Rt.fixed;return It}),Mt=b.useRef(),Ye=pFe(k,r),Je=Ye.isSticky,mt=Ye.offsetHeader,Tt=Ye.offsetSummary,Xt=Ye.offsetScroll,Jt=Ye.stickyClassName,Gt=Ye.container,St=b.useMemo(function(){return p==null?void 0:p(A)},[p,A]),$t=(st||Je)&&b.isValidElement(St)&&St.type===eO&&St.props.fixed,Nt,Zt,gn;st&&(Zt={overflowY:N?"scroll":"auto",maxHeight:c.y}),nt&&(Nt={overflowX:"auto"},st||(Zt={overflowY:"hidden"}),gn={width:Oe===!0?"auto":Oe,minWidth:"100%"});var an=b.useCallback(function(Rt,It){Vg(Te.current)&&ht(function(cn){if(cn.get(Rt)!==It){var wn=new Map(cn);return wn.set(Rt,It),wn}return cn})},[]),Mn=dFe(),Vt=he(Mn,2),ye=Vt[0],Re=Vt[1];function Xe(Rt,It){It&&(typeof It=="function"?It(Rt):It.scrollLeft!==Rt&&(It.scrollLeft=Rt,It.scrollLeft!==Rt&&setTimeout(function(){It.scrollLeft=Rt},0)))}var Ge=On(function(Rt){var It=Rt.currentTarget,cn=Rt.scrollLeft,wn=f==="rtl",zn=typeof cn=="number"?cn:It.scrollLeft,Zi=It||bFe;if(!Re()||Re()===Zi){var wa;ye(Zi),Xe(zn,Fe.current),Xe(zn,Be.current),Xe(zn,ze.current),Xe(zn,(wa=Mt.current)===null||wa===void 0?void 0:wa.setScrollLeft)}var Qi=It||Fe.current;if(Qi){var so=L&&P&&typeof Oe=="number"?Oe:Qi.scrollWidth,Hc=Qi.clientWidth;if(so===Hc){Ie(!1),ot(!1);return}wn?(Ie(-zn0)):(Ie(zn>0),ot(zn1?g-R:0,N=ae(ae(ae({},O),c),{},{flex:"0 0 ".concat(R,"px"),width:"".concat(R,"px"),marginRight:A,pointerEvents:"auto"}),L=b.useMemo(function(){return f?k<=1:P===0||k===0||k>1},[k,P,f]);L?N.visibility="hidden":f&&(N.height=d==null?void 0:d(k));var j=L?function(){return null}:h,F={};return(k===0||P===0)&&(F.rowSpan=1,F.colSpan=1),b.createElement(xm,Le({className:me(v,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:S,record:l,index:a,renderIndex:s,dataIndex:p,render:j,shouldCellUpdate:n.shouldCellUpdate},w,{appendNode:C,additionalProps:ae(ae({},E),{},{style:N},F)}))}var OFe=["data","index","className","rowKey","style","extra","getHeight"],_Fe=b.forwardRef(function(e,t){var n=e.data,r=e.index,i=e.className,a=e.rowKey,o=e.style,s=e.extra,l=e.getHeight,c=qt(e,OFe),u=n.record,f=n.indent,d=n.index,h=yo(es,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=h.scrollX,v=h.flattenColumns,g=h.prefixCls,m=h.fixColumn,y=h.componentWidth,x=yo(D5,["getComponent"]),S=x.getComponent,w=iJ(u,a,r,f),C=S(["body","row"],"div"),E=S(["body","cell"],"div"),O=w.rowSupportExpand,$=w.expanded,P=w.rowProps,M=w.expandedRowRender,k=w.expandedRowClassName,T;if(O&&$){var R=M(u,r,f+1,$),A=oJ(k,u,r,f),N={};m&&(N={style:Z({},"--virtual-width","".concat(y,"px"))});var L="".concat(g,"-expanded-row-cell");T=b.createElement(C,{className:me("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(f+1),A)},b.createElement(xm,{component:E,prefixCls:g,className:me(L,Z({},"".concat(L,"-fixed"),m)),additionalProps:N},R))}var j=ae(ae({},o),{},{width:p});s&&(j.position="absolute",j.pointerEvents="none");var F=b.createElement(C,Le({},P,c,{"data-row-key":a,ref:O?null:t,className:me(i,"".concat(g,"-row"),P==null?void 0:P.className,Z({},"".concat(g,"-row-extra"),s)),style:ae(ae({},j),P==null?void 0:P.style)}),v.map(function(B,D){return b.createElement(EFe,{key:D,component:E,rowInfo:w,column:B,colIndex:D,indent:f,index:r,renderIndex:d,record:u,inverse:s,getHeight:l})}));return O?b.createElement("div",{ref:t},F,T):F}),bJ=bm(_Fe),$Fe=b.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=yo(es,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=i.flattenColumns,o=i.onColumnResize,s=i.getRowKey,l=i.expandedKeys,c=i.prefixCls,u=i.childrenColumnName,f=i.scrollX,d=i.direction,h=yo(D5),p=h.sticky,v=h.scrollY,g=h.listItemHeight,m=h.getComponent,y=h.onScroll,x=b.useRef(),S=rJ(n,u,l,s),w=b.useMemo(function(){var T=0;return a.map(function(R){var A=R.width,N=R.key;return T+=A,[N,A,T]})},[a]),C=b.useMemo(function(){return w.map(function(T){return T[2]})},[w]);b.useEffect(function(){w.forEach(function(T){var R=he(T,2),A=R[0],N=R[1];o(A,N)})},[w]),b.useImperativeHandle(t,function(){var T,R={scrollTo:function(N){var L;(L=x.current)===null||L===void 0||L.scrollTo(N)},nativeElement:(T=x.current)===null||T===void 0?void 0:T.nativeElement};return Object.defineProperty(R,"scrollLeft",{get:function(){var N;return((N=x.current)===null||N===void 0?void 0:N.getScrollInfo().x)||0},set:function(N){var L;(L=x.current)===null||L===void 0||L.scrollTo({left:N})}}),R});var E=function(R,A){var N,L=(N=S[A])===null||N===void 0?void 0:N.record,j=R.onCell;if(j){var F,B=j(L,A);return(F=B==null?void 0:B.rowSpan)!==null&&F!==void 0?F:1}return 1},O=function(R){var A=R.start,N=R.end,L=R.getSize,j=R.offsetY;if(N<0)return null;for(var F=a.filter(function(ee){return E(ee,A)===0}),B=A,D=function(ne){if(F=F.filter(function(te){return E(te,ne)===0}),!F.length)return B=ne,1},z=A;z>=0&&!D(z);z-=1);for(var W=a.filter(function(ee){return E(ee,N)!==1}),q=N,H=function(ne){if(W=W.filter(function(te){return E(te,ne)!==1}),!W.length)return q=Math.max(ne-1,N),1},U=N;U1})&&G.push(ne)},X=B;X<=q;X+=1)K(X);var Q=G.map(function(ee){var ne=S[ee],te=s(ne.record,ee),ie=function(oe){var re=ee+oe-1,se=s(S[re].record,re),ge=L(te,se);return ge.bottom-ge.top},J=L(te);return b.createElement(bJ,{key:ee,data:ne,rowKey:te,index:ee,style:{top:-j+J.top},extra:!0,getHeight:ie})});return Q},$=b.useMemo(function(){return{columnsOffset:C}},[C]),P="".concat(c,"-tbody"),M=m(["body","wrapper"]),k={};return p&&(k.position="sticky",k.bottom=0,Bt(p)==="object"&&p.offsetScroll&&(k.bottom=p.offsetScroll)),b.createElement(yJ.Provider,{value:$},b.createElement(tE,{fullHeight:!1,ref:x,prefixCls:"".concat(P,"-virtual"),styles:{horizontalScrollBar:k},className:P,height:v,itemHeight:g||24,data:S,itemKey:function(R){return s(R.record)},component:M,scrollWidth:f,direction:d,onVirtualScroll:function(R){var A,N=R.x;r({currentTarget:(A=x.current)===null||A===void 0?void 0:A.nativeElement,scrollLeft:N})},onScroll:y,extraRender:O},function(T,R,A){var N=s(T.record,R);return b.createElement(bJ,{data:T,rowKey:N,index:R,style:A.style})}))}),PFe=bm($Fe),MFe=function(t,n){var r=n.ref,i=n.onScroll;return b.createElement(PFe,{ref:r,data:t,onScroll:i})};function kFe(e,t){var n=e.data,r=e.columns,i=e.scroll,a=e.sticky,o=e.prefixCls,s=o===void 0?gJ:o,l=e.className,c=e.listItemHeight,u=e.components,f=e.onScroll,d=i||{},h=d.x,p=d.y;typeof h!="number"&&(h=1),typeof p!="number"&&(p=500);var v=On(function(y,x){return Xo(u,y)||x}),g=On(f),m=b.useMemo(function(){return{sticky:a,scrollY:p,listItemHeight:c,getComponent:v,onScroll:g}},[a,p,c,v,g]);return b.createElement(D5.Provider,{value:m},b.createElement(Sm,Le({},e,{className:me(l,"".concat(s,"-virtual")),scroll:ae(ae({},i),{},{x:h}),components:ae(ae({},u),{},{body:n!=null&&n.length?MFe:void 0}),columns:r,internalHooks:Ob,tailor:!0,ref:t})))}var TFe=b.forwardRef(kFe);function xJ(e){return QQ(TFe,e)}xJ();const RFe=e=>null,IFe=e=>null;var F5=b.createContext(null),AFe=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,a=t.isEnd,o="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function pf(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function B5(e){return e.split("-")}function FFe(e,t){var n=[],r=bs(t,e);function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(o){var s=o.key,l=o.children;n.push(s),i(l)})}return i(r.children),n}function BFe(e){if(e.parent){var t=B5(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function zFe(e){var t=B5(e.pos);return Number(t[t.length-1])===0}function CJ(e,t,n,r,i,a,o,s,l,c){var u,f=e.clientX,d=e.clientY,h=e.target.getBoundingClientRect(),p=h.top,v=h.height,g=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-f),m=(g-12)/r,y=l.filter(function(N){var L;return(L=s[N])===null||L===void 0||(L=L.children)===null||L===void 0?void 0:L.length}),x=bs(s,n.props.eventKey);if(d-1.5?a({dragNode:T,dropNode:R,dropPosition:1})?P=1:A=!1:a({dragNode:T,dropNode:R,dropPosition:0})?P=0:a({dragNode:T,dropNode:R,dropPosition:1})?P=1:A=!1:a({dragNode:T,dropNode:R,dropPosition:1})?P=1:A=!1,{dropPosition:P,dropLevelOffset:M,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:$,dropContainerKey:P===0?null:((u=x.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:A}}function EJ(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function z5(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Bt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return zr(!1,"`checkedKeys` is not an array or an object"),null;return t}function H5(e,t){var n=new Set;function r(i){if(!n.has(i)){var a=bs(t,i);if(a){n.add(i);var o=a.parent,s=a.node;s.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(i){r(i)}),Ne(n)}function W5(e){const[t,n]=b.useState(null);return[b.useCallback((a,o,s)=>{const l=t!=null?t:a,c=Math.min(l||0,a),u=Math.max(l||0,a),f=o.slice(c,u+1).map(p=>e(p)),d=f.some(p=>!s.has(p)),h=[];return f.forEach(p=>{d?(s.has(p)||h.push(p),s.add(p)):(s.delete(p),h.push(p))}),n(d?u:null),h},[t]),a=>{n(a)}]}const zd={},V5="SELECT_ALL",q5="SELECT_INVERT",U5="SELECT_NONE",OJ=[],_J=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Ne(n),Ne(_J(e,r[e]))))}),n},HFe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:o,onSelect:s,onSelectAll:l,onSelectInvert:c,onSelectNone:u,onSelectMultiple:f,columnWidth:d,type:h,selections:p,fixed:v,renderCell:g,hideSelectAll:m,checkStrictly:y=!0}=t||{},{prefixCls:x,data:S,pageData:w,getRecordByKey:C,getRowKey:E,expandType:O,childrenColumnName:$,locale:P,getPopupContainer:M}=e,k=Cd(),[T,R]=W5(ee=>ee),[A,N]=Yn(r||i||OJ,{value:r}),L=b.useRef(new Map),j=b.useCallback(ee=>{if(n){const ne=new Map;ee.forEach(te=>{let ie=C(te);!ie&&L.current.has(te)&&(ie=L.current.get(te)),ne.set(te,ie)}),L.current=ne}},[C,n]);b.useEffect(()=>{j(A)},[A]);const F=b.useMemo(()=>_J($,w),[$,w]),{keyEntities:B}=b.useMemo(()=>{if(y)return{keyEntities:null};let ee=S;if(n){const ne=new Set(F.map((ie,J)=>E(ie,J))),te=Array.from(L.current).reduce((ie,J)=>{let[le,oe]=J;return ne.has(le)?ie:ie.concat(oe)},[]);ee=[].concat(Ne(ee),Ne(te))}return e5(ee,{externalGetKey:E,childrenPropName:$})},[S,E,y,$,n,F]),D=b.useMemo(()=>{const ee=new Map;return F.forEach((ne,te)=>{const ie=E(ne,te),J=(a?a(ne):null)||{};ee.set(ie,J)}),ee},[F,E,a]),z=b.useCallback(ee=>{var ne;return!!(!((ne=D.get(E(ee)))===null||ne===void 0)&&ne.disabled)},[D,E]),[W,q]=b.useMemo(()=>{if(y)return[A||[],[]];const{checkedKeys:ee,halfCheckedKeys:ne}=vm(A,!0,B,z);return[ee||[],ne]},[A,y,B,z]),H=b.useMemo(()=>{const ee=h==="radio"?W.slice(0,1):W;return new Set(ee)},[W,h]),U=b.useMemo(()=>h==="radio"?new Set:new Set(q),[q,h]);b.useEffect(()=>{t||N(OJ)},[!!t]);const G=b.useCallback((ee,ne)=>{let te,ie;j(ee),n?(te=ee,ie=ee.map(J=>L.current.get(J))):(te=[],ie=[],ee.forEach(J=>{const le=C(J);le!==void 0&&(te.push(J),ie.push(le))})),N(te),o==null||o(te,ie,{type:ne})},[N,C,o,n]),K=b.useCallback((ee,ne,te,ie)=>{if(s){const J=te.map(le=>C(le));s(C(ee),ne,J,ie)}G(te,"single")},[s,C,G]),X=b.useMemo(()=>!p||m?null:(p===!0?[V5,q5,U5]:p).map(ne=>ne===V5?{key:"all",text:P.selectionAll,onSelect(){G(S.map((te,ie)=>E(te,ie)).filter(te=>{const ie=D.get(te);return!(ie!=null&&ie.disabled)||H.has(te)}),"all")}}:ne===q5?{key:"invert",text:P.selectInvert,onSelect(){const te=new Set(H);w.forEach((J,le)=>{const oe=E(J,le),re=D.get(oe);re!=null&&re.disabled||(te.has(oe)?te.delete(oe):te.add(oe))});const ie=Array.from(te);c&&(k.deprecated(!1,"onSelectInvert","onChange"),c(ie)),G(ie,"invert")}}:ne===U5?{key:"none",text:P.selectNone,onSelect(){u==null||u(),G(Array.from(H).filter(te=>{const ie=D.get(te);return ie==null?void 0:ie.disabled}),"none")}}:ne).map(ne=>Object.assign(Object.assign({},ne),{onSelect:function(){for(var te,ie,J=arguments.length,le=new Array(J),oe=0;oe{var ne;if(!t)return ee.filter(Pe=>Pe!==zd);let te=Ne(ee);const ie=new Set(H),J=F.map(E).filter(Pe=>!D.get(Pe).disabled),le=J.every(Pe=>ie.has(Pe)),oe=J.some(Pe=>ie.has(Pe)),re=()=>{const Pe=[];le?J.forEach(Ue=>{ie.delete(Ue),Pe.push(Ue)}):J.forEach(Ue=>{ie.has(Ue)||(ie.add(Ue),Pe.push(Ue))});const ze=Array.from(ie);l==null||l(!le,ze.map(Ue=>C(Ue)),Pe.map(Ue=>C(Ue))),G(ze,"all"),R(null)};let se,ge;if(h!=="radio"){let Pe;if(X){const Ie={getPopupContainer:M,items:X.map((Ae,$e)=>{const{key:He,text:ot,onSelect:Ot}=Ae;return{key:He!=null?He:$e,onClick:()=>{Ot==null||Ot(J)},label:ot}})};Pe=b.createElement("div",{className:`${x}-selection-extra`},b.createElement(jE,{menu:Ie,getPopupContainer:M},b.createElement("span",null,b.createElement(J1,null))))}const ze=F.map((Ie,Ae)=>{const $e=E(Ie,Ae),He=D.get($e)||{};return Object.assign({checked:ie.has($e)},He)}).filter(Ie=>{let{disabled:Ae}=Ie;return Ae}),Ue=!!ze.length&&ze.length===F.length,ke=Ue&&ze.every(Ie=>{let{checked:Ae}=Ie;return Ae}),Ee=Ue&&ze.some(Ie=>{let{checked:Ae}=Ie;return Ae});ge=b.createElement(Ol,{checked:Ue?ke:!!F.length&&le,indeterminate:Ue?!ke&&Ee:!le&&oe,onChange:re,disabled:F.length===0||Ue,"aria-label":Pe?"Custom selection":"Select all",skipGroup:!0}),se=!m&&b.createElement("div",{className:`${x}-selection`},ge,Pe)}let de;h==="radio"?de=(Pe,ze,Ue)=>{const ke=E(ze,Ue),Ee=ie.has(ke),Ie=D.get(ke);return{node:b.createElement(Dd,Object.assign({},Ie,{checked:Ee,onClick:Ae=>{var $e;Ae.stopPropagation(),($e=Ie==null?void 0:Ie.onClick)===null||$e===void 0||$e.call(Ie,Ae)},onChange:Ae=>{var $e;ie.has(ke)||K(ke,!0,[ke],Ae.nativeEvent),($e=Ie==null?void 0:Ie.onChange)===null||$e===void 0||$e.call(Ie,Ae)}})),checked:Ee}}:de=(Pe,ze,Ue)=>{var ke;const Ee=E(ze,Ue),Ie=ie.has(Ee),Ae=U.has(Ee),$e=D.get(Ee);let He;return O==="nest"?He=Ae:He=(ke=$e==null?void 0:$e.indeterminate)!==null&&ke!==void 0?ke:Ae,{node:b.createElement(Ol,Object.assign({},$e,{indeterminate:He,checked:Ie,skipGroup:!0,onClick:ot=>{var Ot;ot.stopPropagation(),(Ot=$e==null?void 0:$e.onClick)===null||Ot===void 0||Ot.call($e,ot)},onChange:ot=>{var Ot;const{nativeEvent:Wt}=ot,{shiftKey:et}=Wt,ht=J.findIndex(gt=>gt===Ee),Et=W.some(gt=>J.includes(gt));if(et&&y&&Et){const gt=T(ht,J,ie),Pt=Array.from(ie);f==null||f(!Ie,Pt.map(wt=>C(wt)),gt.map(wt=>C(wt))),G(Pt,"multiple")}else{const gt=W;if(y){const Pt=Ie?ou(gt,Ee):pf(gt,Ee);K(Ee,!Ie,Pt,Wt)}else{const Pt=vm([].concat(Ne(gt),[Ee]),!0,B,z),{checkedKeys:wt,halfCheckedKeys:st}=Pt;let nt=wt;if(Ie){const lt=new Set(wt);lt.delete(Ee),nt=vm(Array.from(lt),{checked:!1,halfCheckedKeys:st},B,z).checkedKeys}K(Ee,!Ie,nt,Wt)}}R(Ie?null:ht),(Ot=$e==null?void 0:$e.onChange)===null||Ot===void 0||Ot.call($e,ot)}})),checked:Ie}};const pe=(Pe,ze,Ue)=>{const{node:ke,checked:Ee}=de(Pe,ze,Ue);return g?g(Ee,ze,Ue,ke):ke};if(!te.includes(zd))if(te.findIndex(Pe=>{var ze;return((ze=Pe[_b])===null||ze===void 0?void 0:ze.columnType)==="EXPAND_COLUMN"})===0){const[Pe,...ze]=te;te=[Pe,zd].concat(Ne(ze))}else te=[zd].concat(Ne(te));const fe=te.indexOf(zd);te=te.filter((Pe,ze)=>Pe!==zd||ze===fe);const xe=te[fe-1],Oe=te[fe+1];let _e=v;_e===void 0&&((Oe==null?void 0:Oe.fixed)!==void 0?_e=Oe.fixed:(xe==null?void 0:xe.fixed)!==void 0&&(_e=xe.fixed)),_e&&xe&&((ne=xe[_b])===null||ne===void 0?void 0:ne.columnType)==="EXPAND_COLUMN"&&xe.fixed===void 0&&(xe.fixed=_e);const Te=me(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:p&&h==="checkbox"}),Fe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ge):t.columnTitle:se,Be={fixed:_e,width:d,className:`${x}-selection-column`,title:Fe(),render:pe,onCell:t.onCell,[_b]:{className:Te}};return te.map(Pe=>Pe===zd?Be:Pe)},[E,F,t,W,H,U,d,X,O,D,f,K,z]),H]};function WFe(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function VFe(e,t){return b.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy!="undefined"?new Proxy(r,{get(i,a){return n[a]?n[a]:Reflect.get(i,a)}}):WFe(r,n)})}function qFe(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return b.createElement("button",{type:"button",onClick:l=>{r(i,l),l.stopPropagation()},className:me(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function UFe(e){return(n,r)=>{const i=n.querySelector(`.${e}-container`);let a=r;if(i){const o=getComputedStyle(i),s=parseInt(o.borderLeftWidth,10),l=parseInt(o.borderRightWidth,10);a=r-s-l}return a}}const Hd=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Cm(e,t){return t?`${t}-${e}`:`${e}`}const nO=(e,t)=>typeof e=="function"?e(t):e,GFe=(e,t)=>{const n=nO(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function KFe(e){const t=b.useRef(e),n=uI();return[()=>t.current,r=>{t.current=r,n()}]}function YFe(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return b.createElement("div",{style:i})}function $J(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function XFe(e,t){var n=b.useState(!1),r=he(n,2),i=r[0],a=r[1];Ln(function(){if(i)return e(),function(){t()}},[i]),Ln(function(){return a(!0),function(){a(!1)}},[])}var ZFe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],PJ=function(t,n){var r=t.className,i=t.style,a=t.motion,o=t.motionNodes,s=t.motionType,l=t.onMotionStart,c=t.onMotionEnd,u=t.active,f=t.treeNodeRequiredProps,d=qt(t,ZFe),h=b.useState(!0),p=he(h,2),v=p[0],g=p[1],m=b.useContext(F5),y=m.prefixCls,x=o&&s!=="hide";Ln(function(){o&&x!==v&&g(x)},[o]);var S=function(){o&&l()},w=b.useRef(!1),C=function(){o&&!w.current&&(w.current=!0,c())};XFe(S,C);var E=function($){x===$&&C()};return o?b.createElement(Jo,Le({ref:n,visible:v},a,{motionAppear:s==="show",onVisibleChanged:E}),function(O,$){var P=O.className,M=O.style;return b.createElement("div",{ref:$,className:me("".concat(y,"-treenode-motion"),P),style:M},o.map(function(k){var T=Object.assign({},($J(k.data),k.data)),R=k.title,A=k.key,N=k.isStart,L=k.isEnd;delete T.children;var j=mb(A,f);return b.createElement(wm,Le({},T,j,{title:R,active:u,data:k.data,key:A,isStart:N,isEnd:L}))}))}):b.createElement(wm,Le({domRef:n,className:r,style:i},d,{active:u}))};PJ.displayName="MotionTreeNode";var QFe=b.forwardRef(PJ);function JFe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(a,o){var s=new Map;a.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n ").concat(t);return t}var NJ=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,a=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,d=e.dragging,h=e.dragOverNodeKey,p=e.dropPosition,v=e.motion,g=e.height,m=e.itemHeight,y=e.virtual,x=e.focusable,S=e.activeItem,w=e.focused,C=e.tabIndex,E=e.onKeyDown,O=e.onFocus,$=e.onBlur,P=e.onActiveChange,M=e.onListChangeStart,k=e.onListChangeEnd,T=qt(e,eBe),R=b.useRef(null),A=b.useRef(null);b.useImperativeHandle(t,function(){return{scrollTo:function(de){R.current.scrollTo(de)},getIndentWidth:function(){return A.current.offsetWidth}}});var N=b.useState(i),L=he(N,2),j=L[0],F=L[1],B=b.useState(r),D=he(B,2),z=D[0],W=D[1],q=b.useState(r),H=he(q,2),U=H[0],G=H[1],K=b.useState([]),X=he(K,2),Q=X[0],ee=X[1],ne=b.useState(null),te=he(ne,2),ie=te[0],J=te[1],le=b.useRef(r);le.current=r;function oe(){var ge=le.current;W(ge),G(ge),ee([]),J(null),k()}Ln(function(){F(i);var ge=JFe(j,i);if(ge.key!==null)if(ge.add){var de=z.findIndex(function(Te){var Fe=Te.key;return Fe===ge.key}),pe=IJ(MJ(z,r,ge.key),y,g,m),fe=z.slice();fe.splice(de+1,0,RJ),G(fe),ee(pe),J("show")}else{var xe=r.findIndex(function(Te){var Fe=Te.key;return Fe===ge.key}),Oe=IJ(MJ(r,z,ge.key),y,g,m),_e=r.slice();_e.splice(xe+1,0,RJ),G(_e),ee(Oe),J("hide")}else z!==r&&(W(r),G(r))},[i,r]),b.useEffect(function(){d||oe()},[d]);var re=v?U:r,se={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:h,dropPosition:p,keyEntities:u};return b.createElement(b.Fragment,null,w&&S&&b.createElement("span",{style:kJ,"aria-live":"assertive"},nBe(S)),b.createElement("div",null,b.createElement("input",{style:kJ,disabled:x===!1||f,tabIndex:x!==!1?C:null,onKeyDown:E,onFocus:O,onBlur:$,value:"",onChange:tBe,"aria-label":"for screen reader"})),b.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},b.createElement("div",{className:"".concat(n,"-indent")},b.createElement("div",{ref:A,className:"".concat(n,"-indent-unit")}))),b.createElement(tE,Le({},T,{data:re,itemKey:AJ,height:g,fullHeight:!1,virtual:y,itemHeight:m,prefixCls:"".concat(n,"-list"),ref:R,onVisibleChange:function(de){de.every(function(pe){return AJ(pe)!==Ap})&&oe()}}),function(ge){var de=ge.pos,pe=Object.assign({},($J(ge.data),ge.data)),fe=ge.title,xe=ge.key,Oe=ge.isStart,_e=ge.isEnd,Te=gb(xe,de);delete pe.key,delete pe.children;var Fe=mb(Te,se);return b.createElement(QFe,Le({},pe,Fe,{title:fe,active:!!S&&xe===S.key,pos:de,data:ge.data,isStart:Oe,isEnd:_e,motion:v,motionNodes:xe===Ap?Q:null,motionType:ie,onMotionStart:M,onMotionEnd:oe,treeNodeRequiredProps:se,onMouseMove:function(){P(null)}}))}))});NJ.displayName="NodeList";var rBe=10,K5=function(e){xn(n,e);var t=Vs(n);function n(){var r;it(this,n);for(var i=arguments.length,a=new Array(i),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,d=f.dragChildrenKeys,h=f.dropPosition,p=f.dropTargetKey,v=f.dropTargetPos,g=f.dropAllowed;if(g){var m=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),p!==null){var y=ae(ae({},mb(p,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===p,data:bs(r.state.keyEntities,p).node}),x=d.indexOf(p)!==-1;zr(!x,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=B5(v),w={event:s,node:Ma(y),dragNode:r.dragNode?Ma(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(d),dropToGap:h!==0,dropPosition:h+Number(S[S.length-1])};u||m==null||m(w),r.dragNode=null}}}),Z(ft(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),Z(ft(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,f=c.flattenNodes,d=l.expanded,h=l.key,p=l.isLeaf;if(!(p||s.shiftKey||s.metaKey||s.ctrlKey)){var v=f.filter(function(m){return m.key===h})[0],g=Ma(ae(ae({},mb(h,r.getTreeNodeRequiredProps())),{},{data:v.data}));r.setExpandedKeys(d?ou(u,h):pf(u,h)),r.onNodeExpand(s,g)}}),Z(ft(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),Z(ft(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),Z(ft(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,f=u.keyEntities,d=u.fieldNames,h=r.props,p=h.onSelect,v=h.multiple,g=l.selected,m=l[d.key],y=!g;y?v?c=pf(c,m):c=[m]:c=ou(c,m);var x=c.map(function(S){var w=bs(f,S);return w?w.node:null}).filter(function(S){return S});r.setUncontrolledState({selectedKeys:c}),p==null||p(c,{event:"select",selected:y,node:l,selectedNodes:x,nativeEvent:s.nativeEvent})}),Z(ft(r),"onNodeCheck",function(s,l,c){var u=r.state,f=u.keyEntities,d=u.checkedKeys,h=u.halfCheckedKeys,p=r.props,v=p.checkStrictly,g=p.onCheck,m=l.key,y,x={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(v){var S=c?pf(d,m):ou(d,m),w=ou(h,m);y={checked:S,halfChecked:w},x.checkedNodes=S.map(function(M){return bs(f,M)}).filter(function(M){return M}).map(function(M){return M.node}),r.setUncontrolledState({checkedKeys:S})}else{var C=vm([].concat(Ne(d),[m]),!0,f),E=C.checkedKeys,O=C.halfCheckedKeys;if(!c){var $=new Set(E);$.delete(m);var P=vm(Array.from($),{checked:!1,halfCheckedKeys:O},f);E=P.checkedKeys,O=P.halfCheckedKeys}y=E,x.checkedNodes=[],x.checkedNodesPositions=[],x.halfCheckedKeys=O,E.forEach(function(M){var k=bs(f,M);if(k){var T=k.node,R=k.pos;x.checkedNodes.push(T),x.checkedNodesPositions.push({node:T,pos:R})}}),r.setUncontrolledState({checkedKeys:E},!1,{halfCheckedKeys:O})}g==null||g(y,x)}),Z(ft(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,f=bs(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var d=new Promise(function(h,p){r.setState(function(v){var g=v.loadedKeys,m=g===void 0?[]:g,y=v.loadingKeys,x=y===void 0?[]:y,S=r.props,w=S.loadData,C=S.onLoad;if(!w||m.indexOf(c)!==-1||x.indexOf(c)!==-1)return null;var E=w(s);return E.then(function(){var O=r.state.loadedKeys,$=pf(O,c);C==null||C($,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:$}),r.setState(function(P){return{loadingKeys:ou(P.loadingKeys,c)}}),h()}).catch(function(O){if(r.setState(function(P){return{loadingKeys:ou(P.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=rBe){var $=r.state.loadedKeys;zr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:pf($,c)}),h()}p(O)}),{loadingKeys:pf(x,c)}})});return d.catch(function(){}),d}}),Z(ft(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),Z(ft(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),Z(ft(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),Z(ft(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,f=!0,d={};Object.keys(s).forEach(function(h){if(r.props.hasOwnProperty(h)){f=!1;return}u=!0,d[h]=s[h]}),u&&(!l||f)&&r.setState(ae(ae({},d),c))}}),Z(ft(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return at(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,a=i.activeKey,o=i.itemScrollOffset,s=o===void 0?0:o;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,a=i.focused,o=i.flattenNodes,s=i.keyEntities,l=i.draggingNodeKey,c=i.activeKey,u=i.dropLevelOffset,f=i.dropContainerKey,d=i.dropTargetKey,h=i.dropPosition,p=i.dragOverNodeKey,v=i.indent,g=this.props,m=g.prefixCls,y=g.className,x=g.style,S=g.showLine,w=g.focusable,C=g.tabIndex,E=C===void 0?0:C,O=g.selectable,$=g.showIcon,P=g.icon,M=g.switcherIcon,k=g.draggable,T=g.checkable,R=g.checkStrictly,A=g.disabled,N=g.motion,L=g.loadData,j=g.filterTreeNode,F=g.height,B=g.itemHeight,D=g.virtual,z=g.titleRender,W=g.dropIndicatorRender,q=g.onContextMenu,H=g.onScroll,U=g.direction,G=g.rootClassName,K=g.rootStyle,X=ta(this.props,{aria:!0,data:!0}),Q;return k&&(Bt(k)==="object"?Q=k:typeof k=="function"?Q={nodeDraggable:k}:Q={}),b.createElement(F5.Provider,{value:{prefixCls:m,selectable:O,showIcon:$,icon:P,switcherIcon:M,draggable:Q,draggingNodeKey:l,checkable:T,checkStrictly:R,disabled:A,keyEntities:s,dropLevelOffset:u,dropContainerKey:f,dropTargetKey:d,dropPosition:h,dragOverNodeKey:p,indent:v,direction:U,dropIndicatorRender:W,loadData:L,filterTreeNode:j,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},b.createElement("div",{role:"tree",className:me(m,y,G,Z(Z(Z({},"".concat(m,"-show-line"),S),"".concat(m,"-focused"),a),"".concat(m,"-active-focused"),c!==null)),style:K},b.createElement(NJ,Le({ref:this.listRef,prefixCls:m,style:x,data:o,disabled:A,selectable:O,checkable:!!T,motion:N,dragging:l!==null,height:F,itemHeight:B,virtual:D,focusable:w,focused:a,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:q,onScroll:H},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s={prevProps:i};function l(E){return!o&&i.hasOwnProperty(E)||o&&o[E]!==i[E]}var c,u=a.fieldNames;if(l("fieldNames")&&(u=pm(i.fieldNames),s.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(zr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=hZ(i.children)),c){s.treeData=c;var f=e5(c,{fieldNames:u});s.keyEntities=ae(Z({},Ap,TJ),f.keyEntities)}var d=s.keyEntities||a.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!o&&i.defaultExpandParent?H5(i.expandedKeys,d):i.expandedKeys;else if(!o&&i.defaultExpandAll){var h=ae({},d);delete h[Ap];var p=[];Object.keys(h).forEach(function(E){var O=h[E];O.children&&O.children.length&&p.push(O.key)}),s.expandedKeys=p}else!o&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?H5(i.defaultExpandedKeys,d):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var v=JI(c||a.treeData,s.expandedKeys||a.expandedKeys,u);s.flattenNodes=v}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=EJ(i.selectedKeys,i):!o&&i.defaultSelectedKeys&&(s.selectedKeys=EJ(i.defaultSelectedKeys,i))),i.checkable){var g;if(l("checkedKeys")?g=z5(i.checkedKeys)||{}:!o&&i.defaultCheckedKeys?g=z5(i.defaultCheckedKeys)||{}:c&&(g=z5(i.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),g){var m=g,y=m.checkedKeys,x=y===void 0?[]:y,S=m.halfCheckedKeys,w=S===void 0?[]:S;if(!i.checkStrictly){var C=vm(x,!0,d);x=C.checkedKeys,w=C.halfCheckedKeys}s.checkedKeys=x,s.halfCheckedKeys=w}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(b.Component);Z(K5,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:YFe,allowDrop:function(){return!0},expandAction:!1}),Z(K5,"TreeNode",wm);const iBe=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:a,borderRadius:o,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:o},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},aBe=new fr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),oBe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),sBe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ue(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),lBe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c}=t;return{[n]:Object.assign(Object.assign({},er(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},$d(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:aBe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:ue(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},oBe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},sBe(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${ue(t.calc(a).div(2).equal())} !important`}})}},cBe=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=_n(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[lBe(e,a),iBe(a)]},uBe=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},fBe=tr("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:vZ(`${n}-checkbox`,e)},cBe(n,e),D1(e)]},e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},uBe(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}),LJ=4;function dBe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,o=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",l={[o]:-n*i+LJ,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=i+LJ;break}return we.createElement("div",{style:l,className:`${r}-drop-indicator`})}const hBe=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:l}=r;if(l)return b.isValidElement(a)?a:b.createElement(af,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),o){if(!i)return null;if(typeof c!="boolean"&&c){const d=typeof c=="function"?c(r):c,h=`${t}-switcher-line-custom-icon`;return b.isValidElement(d)?Pa(d,{className:me(d.props.className||"",h)}):d}return c?b.createElement(UQ,{className:`${t}-switcher-line-icon`}):b.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return b.isValidElement(f)?Pa(f,{className:me(f.props.className||"",u)}):f!==void 0?f:i?s?b.createElement(ADe,{className:`${t}-switcher-line-icon`}):b.createElement(qDe,{className:`${t}-switcher-line-icon`}):b.createElement(U7e,{className:u})},jJ=we.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:o}=we.useContext(At),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:d,blockNode:h=!1,children:p,checkable:v=!1,selectable:g=!0,draggable:m,motion:y,style:x}=e,S=r("tree",s),w=r(),C=y!=null?y:Object.assign(Object.assign({},Wg(w)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:v,selectable:g,showIcon:c,motion:C,blockNode:h,showLine:!!u,dropIndicatorRender:dBe}),[O,$,P]=fBe(S),[,M]=to(),k=M.paddingXS/2+(((n=M.Tree)===null||n===void 0?void 0:n.titleHeight)||M.controlHeightSM),T=we.useMemo(()=>{if(!m)return!1;let A={};switch(typeof m){case"function":A.nodeDraggable=m;break;case"object":A=Object.assign({},m);break}return A.icon!==!1&&(A.icon=A.icon||we.createElement(PDe,null)),A},[m]),R=A=>we.createElement(hBe,{prefixCls:S,switcherIcon:f,switcherLoadingIcon:d,treeNodeProps:A,showLine:u});return O(we.createElement(K5,Object.assign({itemHeight:k,ref:t,virtual:a},E,{style:Object.assign(Object.assign({},o==null?void 0:o.style),x),prefixCls:S,className:me({[`${S}-icon-hide`]:!c,[`${S}-block-node`]:h,[`${S}-unselectable`]:!g,[`${S}-rtl`]:i==="rtl"},o==null?void 0:o.className,l,$,P),direction:i,checkable:v&&we.createElement("span",{className:`${S}-checkbox-inner`}),selectable:g,switcherIcon:R,draggable:T}),p))}),DJ=0,Y5=1,FJ=2;function X5(e,t,n){const{key:r,children:i}=n;function a(o){const s=o[r],l=o[i];t(s,o)!==!1&&X5(l||[],t,n)}e.forEach(a)}function pBe(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:a}=e;const o=[];let s=DJ;if(r&&r===i)return[r];if(!r||!i)return[];function l(c){return c===r||c===i}return X5(t,c=>{if(s===FJ)return!1;if(l(c)){if(o.push(c),s===DJ)s=Y5;else if(s===Y5)return s=FJ,!1}else s===Y5&&o.push(c);return n.includes(c)},pm(a)),o}function Z5(e,t,n){const r=Ne(t),i=[];return X5(e,(a,o)=>{const s=r.indexOf(a);return s!==-1&&(i.push(o),r.splice(s,1)),!!r.length},pm(n)),i}var BJ=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=BJ(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=b.useRef(null),s=b.useRef(null),l=()=>{const{keyEntities:O}=e5(zJ(a));let $;return n?$=Object.keys(O):r?$=H5(a.expandedKeys||i||[],O):$=a.expandedKeys||i||[],$},[c,u]=b.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,d]=b.useState(()=>l());b.useEffect(()=>{"selectedKeys"in a&&u(a.selectedKeys)},[a.selectedKeys]),b.useEffect(()=>{"expandedKeys"in a&&d(a.expandedKeys)},[a.expandedKeys]);const h=(O,$)=>{var P;return"expandedKeys"in a||d(O),(P=a.onExpand)===null||P===void 0?void 0:P.call(a,O,$)},p=(O,$)=>{var P;const{multiple:M,fieldNames:k}=a,{node:T,nativeEvent:R}=$,{key:A=""}=T,N=zJ(a),L=Object.assign(Object.assign({},$),{selected:!0}),j=(R==null?void 0:R.ctrlKey)||(R==null?void 0:R.metaKey),F=R==null?void 0:R.shiftKey;let B;M&&j?(B=O,o.current=A,s.current=B,L.selectedNodes=Z5(N,B,k)):M&&F?(B=Array.from(new Set([].concat(Ne(s.current||[]),Ne(pBe({treeData:N,expandedKeys:f,startKey:A,endKey:o.current,fieldNames:k}))))),L.selectedNodes=Z5(N,B,k)):(B=[A],o.current=A,s.current=B,L.selectedNodes=Z5(N,B,k)),(P=a.onSelect)===null||P===void 0||P.call(a,B,L),"selectedKeys"in a||u(B)},{getPrefixCls:v,direction:g}=b.useContext(At),{prefixCls:m,className:y,showIcon:x=!0,expandAction:S="click"}=a,w=BJ(a,["prefixCls","className","showIcon","expandAction"]),C=v("tree",m),E=me(`${C}-directory`,{[`${C}-directory-rtl`]:g==="rtl"},y);return b.createElement(jJ,Object.assign({icon:vBe,ref:t,blockNode:!0},w,{showIcon:x,expandAction:S,prefixCls:C,className:E,expandedKeys:f,selectedKeys:c,onSelect:p,onExpand:h}))},mBe=b.forwardRef(gBe),Q5=jJ;Q5.DirectoryTree=mBe,Q5.TreeNode=wm;const HJ=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?b.createElement("div",{className:`${r}-filter-dropdown-search`},b.createElement(oi,{prefix:b.createElement(nm,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},yBe=e=>{const{keyCode:t}=e;t===Ze.ENTER&&e.stopPropagation()},bBe=b.forwardRef((e,t)=>b.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:yBe,ref:t},e.children));function Em(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:i}=n;t.push(r),i&&(t=[].concat(Ne(t),Ne(Em(i))))}),t}function xBe(e){return e.some(t=>{let{children:n}=t;return n})}function WJ(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function VJ(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:o}=e;return t.map((s,l)=>{const c=String(s.value);if(s.children)return{key:c||l,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:VJ({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:o})};const u=i?Ol:Dd,f={key:s.value!==void 0?c:l,label:b.createElement(b.Fragment,null,b.createElement(u,{checked:r.includes(c)}),b.createElement("span",null,s.text))};return a.trim()?typeof o=="function"?o(a,s)?f:null:WJ(a,s.text)?f:null:f})}function J5(e){return e||[]}const SBe=e=>{var t,n,r,i;const{tablePrefixCls:a,prefixCls:o,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:f,filterMode:d="menu",filterSearch:h=!1,filterState:p,triggerFilter:v,locale:g,children:m,getPopupContainer:y,rootClassName:x}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:w,filterDropdownProps:C={},filterDropdownOpen:E,filterDropdownVisible:O,onFilterDropdownVisibleChange:$,onFilterDropdownOpenChange:P}=s,[M,k]=b.useState(!1),T=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),R=de=>{var pe;k(de),(pe=C.onOpenChange)===null||pe===void 0||pe.call(C,de),P==null||P(de),$==null||$(de)},A=(i=(r=(n=C.open)!==null&&n!==void 0?n:E)!==null&&r!==void 0?r:O)!==null&&i!==void 0?i:M,N=p==null?void 0:p.filteredKeys,[L,j]=KFe(J5(N)),F=de=>{let{selectedKeys:pe}=de;j(pe)},B=(de,pe)=>{let{node:fe,checked:xe}=pe;F(f?{selectedKeys:de}:{selectedKeys:xe&&fe.key?[fe.key]:[]})};b.useEffect(()=>{M&&F({selectedKeys:J5(N)})},[N]);const[D,z]=b.useState([]),W=de=>{z(de)},[q,H]=b.useState(""),U=de=>{const{value:pe}=de.target;H(pe)};b.useEffect(()=>{M||H("")},[M]);const G=de=>{const pe=de!=null&&de.length?de:null;if(pe===null&&(!p||!p.filteredKeys)||yl(pe,p==null?void 0:p.filteredKeys,!0))return null;v({column:s,key:c,filteredKeys:pe})},K=()=>{R(!1),G(L())},X=function(){let{confirm:de,closeDropdown:pe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};de&&G([]),pe&&R(!1),H(""),j(S?(w||[]).map(fe=>String(fe)):[])},Q=function(){let{closeDropdown:de}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};de&&R(!1),G(L())},ee=(de,pe)=>{pe.source==="trigger"&&(de&&N!==void 0&&j(J5(N)),R(de),!de&&!s.filterDropdown&&u&&K())},ne=me({[`${l}-menu-without-submenu`]:!xBe(s.filters||[])}),te=de=>{if(de.target.checked){const pe=Em(s==null?void 0:s.filters).map(fe=>String(fe));j(pe)}else j([])},ie=de=>{let{filters:pe}=de;return(pe||[]).map((fe,xe)=>{const Oe=String(fe.value),_e={title:fe.text,key:fe.value!==void 0?Oe:String(xe)};return fe.children&&(_e.children=ie({filters:fe.children})),_e})},J=de=>{var pe;return Object.assign(Object.assign({},de),{text:de.title,value:de.key,children:((pe=de.children)===null||pe===void 0?void 0:pe.map(fe=>J(fe)))||[]})};let le;const{direction:oe,renderEmpty:re}=b.useContext(At);if(typeof s.filterDropdown=="function")le=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:de=>F({selectedKeys:de}),selectedKeys:L(),confirm:Q,clearFilters:X,filters:s.filters,visible:A,close:()=>{R(!1)}});else if(s.filterDropdown)le=s.filterDropdown;else{const de=L()||[],pe=()=>{var xe;const Oe=(xe=re==null?void 0:re("Table.filter"))!==null&&xe!==void 0?xe:b.createElement(Ba,{image:Ba.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return Oe;if(d==="tree")return b.createElement(b.Fragment,null,b.createElement(HJ,{filterSearch:h,value:q,onChange:U,tablePrefixCls:a,locale:g}),b.createElement("div",{className:`${a}-filter-dropdown-tree`},f?b.createElement(Ol,{checked:de.length===Em(s.filters).length,indeterminate:de.length>0&&de.lengthtypeof h=="function"?h(q,J(Fe)):WJ(q,Fe.title):void 0})));const _e=VJ({filters:s.filters||[],filterSearch:h,prefixCls:o,filteredKeys:L(),filterMultiple:f,searchValue:q}),Te=_e.every(Fe=>Fe===null);return b.createElement(b.Fragment,null,b.createElement(HJ,{filterSearch:h,value:q,onChange:U,tablePrefixCls:a,locale:g}),Te?Oe:b.createElement(ff,{selectable:!0,multiple:f,prefixCls:`${l}-menu`,className:ne,onSelect:F,onDeselect:F,selectedKeys:de,getPopupContainer:y,openKeys:D,onOpenChange:W,items:_e}))},fe=()=>S?yl((w||[]).map(xe=>String(xe)),de,!0):de.length===0;le=b.createElement(b.Fragment,null,pe(),b.createElement("div",{className:`${o}-dropdown-btns`},b.createElement(Hn,{type:"link",size:"small",disabled:fe(),onClick:()=>X()},g.filterReset),b.createElement(Hn,{type:"primary",size:"small",onClick:K},g.filterConfirm)))}s.filterDropdown&&(le=b.createElement(NY,{selectable:void 0},le)),le=b.createElement(bBe,{className:`${o}-dropdown`},le);const ge=wQ({trigger:["click"],placement:oe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let de;return typeof s.filterIcon=="function"?de=s.filterIcon(T):s.filterIcon?de=s.filterIcon:de=b.createElement(GQ,null),b.createElement("span",{role:"button",tabIndex:-1,className:me(`${o}-trigger`,{active:T}),onClick:pe=>{pe.stopPropagation()}},de)})(),getPopupContainer:y},Object.assign(Object.assign({},C),{rootClassName:me(x,C.rootClassName),open:A,onOpenChange:ee,dropdownRender:()=>typeof(C==null?void 0:C.dropdownRender)=="function"?C.dropdownRender(le):le}));return b.createElement("div",{className:`${o}-column`},b.createElement("span",{className:`${a}-column-title`},m),b.createElement(jE,Object.assign({},ge)))},eA=(e,t,n)=>{let r=[];return(e||[]).forEach((i,a)=>{var o;const s=Cm(a,n);if(i.filters||"filterDropdown"in i||"onFilter"in i)if("filteredValue"in i){let l=i.filteredValue;"filterDropdown"in i||(l=(o=l==null?void 0:l.map(String))!==null&&o!==void 0?o:l),r.push({column:i,key:Hd(i,s),filteredKeys:l,forceFiltered:i.filtered})}else r.push({column:i,key:Hd(i,s),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(r=[].concat(Ne(r),Ne(eA(i.children,t,s))))}),r};function qJ(e,t,n,r,i,a,o,s,l){return n.map((c,u)=>{const f=Cm(u,s),{filterOnClose:d=!0,filterMultiple:h=!0,filterMode:p,filterSearch:v}=c;let g=c;if(g.filters||g.filterDropdown){const m=Hd(g,f),y=r.find(x=>{let{key:S}=x;return m===S});g=Object.assign(Object.assign({},g),{title:x=>b.createElement(SBe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:m,filterState:y,filterOnClose:d,filterMultiple:h,filterMode:p,filterSearch:v,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:l},nO(c.title,x))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:qJ(e,t,g.children,r,i,a,o,f,l)})),g})}const UJ=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:i,column:a}=n;const o=r,{filters:s,filterDropdown:l}=a;if(l)t[o]=i||null;else if(Array.isArray(i)){const c=Em(s);t[o]=c.filter(u=>i.includes(String(u)))}else t[o]=null}),t},tA=(e,t,n)=>t.reduce((i,a)=>{const{column:{onFilter:o,filters:s},filteredKeys:l}=a;return o&&l&&l.length?i.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const f=Em(s),d=f.findIndex(p=>String(p)===String(u)),h=d!==-1?f[d]:u;return c[n]&&(c[n]=tA(c[n],t,n)),o(h,c)})):i},e),GJ=e=>e.flatMap(t=>"children"in t?[t].concat(Ne(GJ(t.children||[]))):[t]),wBe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;Cd();const l=b.useMemo(()=>GJ(r||[]),[r]),[c,u]=b.useState(()=>eA(l,!0)),f=b.useMemo(()=>{const v=eA(l,!1);if(v.length===0)return v;let g=!0;if(v.forEach(m=>{let{filteredKeys:y}=m;y!==void 0&&(g=!1)}),g){const m=(l||[]).map((y,x)=>Hd(y,Cm(x)));return c.filter(y=>{let{key:x}=y;return m.includes(x)}).map(y=>{const x=l[m.findIndex(S=>S===y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),x),forceFiltered:x.filtered})})}return v},[l,c]),d=b.useMemo(()=>UJ(f),[f]),h=v=>{const g=f.filter(m=>{let{key:y}=m;return y!==v.key});g.push(v),u(g),i(UJ(g),g)};return[v=>qJ(t,n,v,f,o,h,a,void 0,s),f,d]},CBe=(e,t,n)=>{const r=b.useRef({});function i(a){var o;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,f)=>{const d=n(u,f);s.set(d,u),u&&typeof u=="object"&&t in u&&l(u[t]||[])})};const s=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return(o=r.current.kvMap)===null||o===void 0?void 0:o.get(a)}return[i]};var EBe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const a=e[i];typeof a!="function"&&(n[i]=a)}),n}function _Be(e,t,n){const r=n&&typeof n=="object"?n:{},{total:i=0}=r,a=EBe(r,["total"]),[o,s]=b.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:KJ})),l=wQ(o,a,{total:i>0?i:e}),c=Math.ceil((i||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(d,h)=>{s({current:d!=null?d:1,pageSize:h||l.pageSize})},f=(d,h)=>{var p;n&&((p=n.onChange)===null||p===void 0||p.call(n,d,h)),u(d,h),t(d,h||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:f}),u]}const rO="ascend",nA="descend",iO=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,YJ=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,$Be=(e,t)=>t?e[e.indexOf(t)+1]:e[0],rA=(e,t,n)=>{let r=[];const i=(a,o)=>{r.push({column:a,key:Hd(a,o),multiplePriority:iO(a),sortOrder:a.sortOrder})};return(e||[]).forEach((a,o)=>{const s=Cm(o,n);a.children?("sortOrder"in a&&i(a,s),r=[].concat(Ne(r),Ne(rA(a.children,t,s)))):a.sorter&&("sortOrder"in a?i(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:Hd(a,s),multiplePriority:iO(a),sortOrder:a.defaultSortOrder}))}),r},XJ=(e,t,n,r,i,a,o,s)=>(t||[]).map((c,u)=>{const f=Cm(u,s);let d=c;if(d.sorter){const h=d.sortDirections||i,p=d.showSorterTooltip===void 0?o:d.showSorterTooltip,v=Hd(d,f),g=n.find($=>{let{key:P}=$;return P===v}),m=g?g.sortOrder:null,y=$Be(h,m);let x;if(c.sortIcon)x=c.sortIcon({sortOrder:m});else{const $=h.includes(rO)&&b.createElement(Q7e,{className:me(`${e}-column-sorter-up`,{active:m===rO})}),P=h.includes(nA)&&b.createElement(Y7e,{className:me(`${e}-column-sorter-down`,{active:m===nA})});x=b.createElement("span",{className:me(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!($&&P)})},b.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},$,P))}const{cancelSort:S,triggerAsc:w,triggerDesc:C}=a||{};let E=S;y===nA?E=C:y===rO&&(E=w);const O=typeof p=="object"?Object.assign({title:E},p):{title:E};d=Object.assign(Object.assign({},d),{className:me(d.className,{[`${e}-column-sort`]:m}),title:$=>{const P=`${e}-column-sorters`,M=b.createElement("span",{className:`${e}-column-title`},nO(c.title,$)),k=b.createElement("div",{className:P},M,x);return p?typeof p!="boolean"&&(p==null?void 0:p.target)==="sorter-icon"?b.createElement("div",{className:`${P} ${e}-column-sorters-tooltip-target-sorter`},M,b.createElement(ro,Object.assign({},O),x)):b.createElement(ro,Object.assign({},O),k):k},onHeaderCell:$=>{var P;const M=((P=c.onHeaderCell)===null||P===void 0?void 0:P.call(c,$))||{},k=M.onClick,T=M.onKeyDown;M.onClick=N=>{r({column:c,key:v,sortOrder:y,multiplePriority:iO(c)}),k==null||k(N)},M.onKeyDown=N=>{N.keyCode===Ze.ENTER&&(r({column:c,key:v,sortOrder:y,multiplePriority:iO(c)}),T==null||T(N))};const R=GFe(c.title,{}),A=R==null?void 0:R.toString();return m?M["aria-sort"]=m==="ascend"?"ascending":"descending":M["aria-label"]=A||"",M.className=me(M.className,`${e}-column-has-sorters`),M.tabIndex=0,c.ellipsis&&(M.title=(R!=null?R:"").toString()),M}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:XJ(e,d.children,n,r,i,a,o,f)})),d}),ZJ=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},QJ=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(ZJ);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},ZJ(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},iA=(e,t,n)=>{const r=t.slice().sort((o,s)=>s.multiplePriority-o.multiplePriority),i=e.slice(),a=r.filter(o=>{let{column:{sorter:s},sortOrder:l}=o;return YJ(s)&&l});return a.length?i.sort((o,s)=>{for(let l=0;l{const s=o[n];return s?Object.assign(Object.assign({},o),{[n]:iA(s,t,n)}):o}):i},PBe=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:o}=e,[s,l]=b.useState(rA(n,!0)),c=(v,g)=>{const m=[];return v.forEach((y,x)=>{const S=Cm(x,g);if(m.push(Hd(y,S)),Array.isArray(y.children)){const w=c(y.children,S);m.push.apply(m,Ne(w))}}),m},u=b.useMemo(()=>{let v=!0;const g=rA(n,!1);if(!g.length){const S=c(n);return s.filter(w=>{let{key:C}=w;return S.includes(C)})}const m=[];function y(S){v?m.push(S):m.push(Object.assign(Object.assign({},S),{sortOrder:null}))}let x=null;return g.forEach(S=>{x===null?(y(S),S.sortOrder&&(S.multiplePriority===!1?v=!1:x=!0)):(x&&S.multiplePriority!==!1||(v=!1),y(S))}),m},[n,s]),f=b.useMemo(()=>{var v,g;const m=u.map(y=>{let{column:x,sortOrder:S}=y;return{column:x,order:S}});return{sortColumns:m,sortColumn:(v=m[0])===null||v===void 0?void 0:v.column,sortOrder:(g=m[0])===null||g===void 0?void 0:g.order}},[u]),d=v=>{let g;v.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?g=[v]:g=[].concat(Ne(u.filter(m=>{let{key:y}=m;return y!==v.key})),[v]),l(g),o(QJ(g),g)};return[v=>XJ(t,v,u,d,r,i,a),u,f,()=>QJ(u)]},JJ=(e,t)=>e.map(r=>{const i=Object.assign({},r);return i.title=nO(r.title,t),"children"in i&&(i.children=JJ(i.children,t)),i}),MBe=e=>[b.useCallback(n=>JJ(n,e),[e])],kBe=mJ((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),TBe=xJ((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),RBe=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:l}=e,c=`${ue(n)} ${r} ${i}`,u=(f,d,h)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ue(l(d).mul(-1).equal())} + ${ue(l(l(h).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[` > ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary - `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${fe(l(o).mul(-1).equal())} ${fe(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ue(l(o).mul(-1).equal())} ${ue(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${fe(n)} 0 ${fe(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},NBe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Qo),{wordBreak:"keep-all",[` + `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ue(n)} 0 ${ue(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},IBe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Qo),{wordBreak:"keep-all",[` &${t}-cell-fix-left-last, &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},LBe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},jBe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:f,tablePaddingHorizontal:d,tableExpandedRowBg:h,paddingXXS:p,expandIconMarginTop:g,expandIconSize:v,expandIconHalfInner:m,expandIconScale:y,calc:x}=e,S=`${fe(i)} ${o} ${s}`,w=x(p).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},PC(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:fe(v),background:l,border:S,borderRadius:u,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:m,insetInlineEnd:w,insetInlineStart:w,height:i},"&::after":{top:w,bottom:w,insetInlineStart:m,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:h}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${fe(x(f).mul(-1).equal())} ${fe(x(d).mul(-1).equal())}`,padding:`${fe(f)} ${fe(d)}`}}}},DBe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:f,headerIconColor:d,fontSizeSM:h,tablePaddingHorizontal:p,borderRadius:g,motionDurationSlow:v,colorTextDescription:m,colorPrimary:y,tableHeaderFilterActiveBg:x,colorTextDisabled:S,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:E,controlItemBgActive:O,boxShadowSecondary:$,filterDropdownMenuBg:P,calc:M}=e,k=`${n}-dropdown`,T=`${t}-filter-dropdown`,R=`${n}-tree`,A=`${fe(c)} ${u} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:M(o).mul(-1).equal(),marginInline:`${fe(o)} ${fe(M(p).div(2).mul(-1).equal())}`,padding:`0 ${fe(o)}`,color:d,fontSize:h,borderRadius:g,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:m,background:x},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[T]:Object.assign(Object.assign({},er(e)),{minWidth:i,backgroundColor:w,borderRadius:g,boxShadow:$,overflow:"hidden",[`${k}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${fe(s)} 0`,color:S,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${T}-tree`]:{paddingBlock:`${fe(s)} 0`,paddingInline:s,[R]:{padding:0},[`${R}-treenode ${R}-node-content-wrapper:hover`]:{backgroundColor:E},[`${R}-treenode-checkbox-checked ${R}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${T}-search`]:{padding:s,borderBottom:A,"&-input":{input:{minWidth:a},[r]:{color:S}}},[`${T}-checkall`]:{width:"100%",marginBottom:o,marginInlineStart:o},[`${T}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${fe(M(s).sub(c).equal())} ${fe(s)}`,overflow:"hidden",borderTop:A}})}},{[`${n}-dropdown ${T}, ${T}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},FBe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:i,zIndexTableFixed:a,tableBg:o,zIndexTableSticky:s,calc:l}=e,c=r;return{[`${t}-wrapper`]:{[` + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},ABe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},NBe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:f,tablePaddingHorizontal:d,tableExpandedRowBg:h,paddingXXS:p,expandIconMarginTop:v,expandIconSize:g,expandIconHalfInner:m,expandIconScale:y,calc:x}=e,S=`${ue(i)} ${o} ${s}`,w=x(p).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},$C(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:ue(g),background:l,border:S,borderRadius:u,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:m,insetInlineEnd:w,insetInlineStart:w,height:i},"&::after":{top:w,bottom:w,insetInlineStart:m,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:v,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:h}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${ue(x(f).mul(-1).equal())} ${ue(x(d).mul(-1).equal())}`,padding:`${ue(f)} ${ue(d)}`}}}},LBe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:f,headerIconColor:d,fontSizeSM:h,tablePaddingHorizontal:p,borderRadius:v,motionDurationSlow:g,colorTextDescription:m,colorPrimary:y,tableHeaderFilterActiveBg:x,colorTextDisabled:S,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:E,controlItemBgActive:O,boxShadowSecondary:$,filterDropdownMenuBg:P,calc:M}=e,k=`${n}-dropdown`,T=`${t}-filter-dropdown`,R=`${n}-tree`,A=`${ue(c)} ${u} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:M(o).mul(-1).equal(),marginInline:`${ue(o)} ${ue(M(p).div(2).mul(-1).equal())}`,padding:`0 ${ue(o)}`,color:d,fontSize:h,borderRadius:v,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:m,background:x},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[T]:Object.assign(Object.assign({},er(e)),{minWidth:i,backgroundColor:w,borderRadius:v,boxShadow:$,overflow:"hidden",[`${k}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${ue(s)} 0`,color:S,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${T}-tree`]:{paddingBlock:`${ue(s)} 0`,paddingInline:s,[R]:{padding:0},[`${R}-treenode ${R}-node-content-wrapper:hover`]:{backgroundColor:E},[`${R}-treenode-checkbox-checked ${R}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${T}-search`]:{padding:s,borderBottom:A,"&-input":{input:{minWidth:a},[r]:{color:S}}},[`${T}-checkall`]:{width:"100%",marginBottom:o,marginInlineStart:o},[`${T}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ue(M(s).sub(c).equal())} ${ue(s)}`,overflow:"hidden",borderTop:A}})}},{[`${n}-dropdown ${T}, ${T}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},jBe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:i,zIndexTableFixed:a,tableBg:o,zIndexTableSticky:s,calc:l}=e,c=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:a,background:o},[` @@ -419,11 +419,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${t}-cell-fix-left-last::after, ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after - `]:{boxShadow:"none"}}}}},BBe=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${fe(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},zBe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${fe(n)} ${fe(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${fe(n)} ${fe(n)}`}}}}},HBe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},WBe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:f,tableRowHoverBg:d,tablePaddingHorizontal:h,calc:p}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:p(c).add(i).add(p(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:p(c).add(p(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:p(c).add(i).add(p(a).div(4)).add(p(o).mul(2)).equal()}},[` + `]:{boxShadow:"none"}}}}},DBe=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${ue(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},FBe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${ue(n)} ${ue(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${ue(n)} ${ue(n)}`}}}}},BBe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},zBe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:f,tableRowHoverBg:d,tablePaddingHorizontal:h,calc:p}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:p(c).add(i).add(p(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:p(c).add(p(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:p(c).add(i).add(p(a).div(4)).add(p(o).mul(2)).equal()}},[` table tr th${t}-selection-column, table tr td${t}-selection-column, ${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:p(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:fe(p(h).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:d}}}}}},VBe=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(a,o,s,l)=>({[`${t}${t}-${a}`]:{fontSize:l,[` + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:p(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:ue(p(h).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:d}}}}}},HBe=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(a,o,s,l)=>({[`${t}${t}-${a}`]:{fontSize:l,[` ${t}-title, ${t}-footer, ${t}-cell, @@ -432,60 +432,60 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${fe(o)} ${fe(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:fe(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${fe(r(o).mul(-1).equal())} ${fe(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:fe(r(o).mul(-1).equal()),marginInline:`${fe(r(n).sub(s).equal())} ${fe(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:fe(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},i("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},qBe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + `]:{padding:`${ue(o)} ${ue(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:ue(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${ue(r(o).mul(-1).equal())} ${ue(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:ue(r(o).mul(-1).equal()),marginInline:`${ue(r(n).sub(s).equal())} ${ue(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:ue(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},i("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},WBe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},UBe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:f}=e,d=`${fe(c)} ${u} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${fe(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:o,borderTop:d,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},nee=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${fe(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${fe(i(n).mul(-1).equal())} 0 ${r}`}}}},GBe=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${fe(r)} ${i} ${a}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},VBe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:f}=e,d=`${ue(c)} ${u} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ue(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:o,borderTop:d,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},eee=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${ue(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${ue(i(n).mul(-1).equal())} 0 ${r}`}}}},qBe=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${ue(r)} ${i} ${a}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` & > ${t}-row, & > div:not(${t}-row) > ${t}-row - `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${fe(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},KBe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:f,tableHeaderTextColor:d,motionDurationMid:h,tableHeaderBg:p,tableHeaderCellSplitColor:g,tableFooterTextColor:v,tableFooterBg:m,calc:y}=e,x=`${fe(o)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},bc()),{[t]:Object.assign(Object.assign({},er(e)),{fontSize:c,background:u,borderRadius:`${fe(f)} ${fe(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${fe(f)} ${fe(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ue(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},UBe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:f,tableHeaderTextColor:d,motionDurationMid:h,tableHeaderBg:p,tableHeaderCellSplitColor:v,tableFooterTextColor:g,tableFooterBg:m,calc:y}=e,x=`${ue(o)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},bc()),{[t]:Object.assign(Object.assign({},er(e)),{fontSize:c,background:u,borderRadius:`${ue(f)} ${ue(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${ue(f)} ${ue(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{position:"relative",padding:`${fe(r)} ${fe(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${fe(r)} ${fe(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:x,transition:`background ${h} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${h}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${h}, border-color ${h}`,borderBottom:x,[` + `]:{position:"relative",padding:`${ue(r)} ${ue(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${ue(r)} ${ue(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:x,transition:`background ${h} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:v,transform:"translateY(-50%)",transition:`background-color ${h}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${h}, border-color ${h}`,borderBottom:x,[` > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:fe(y(r).mul(-1).equal()),marginInline:`${fe(y(a).sub(i).equal())} - ${fe(y(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:x,transition:`background ${h} ease`}}},[`${t}-footer`]:{padding:`${fe(r)} ${fe(i)}`,color:v,background:m}})}},YBe=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:f,borderRadiusLG:d,controlHeight:h,colorTextPlaceholder:p,fontSize:g,fontSizeSM:v,lineHeight:m,lineWidth:y,colorIcon:x,colorIconHover:S,opacityLoading:w,controlInteractiveSize:C}=e,E=new Un(i).onBackground(n).toHexShortString(),O=new Un(a).onBackground(n).toHexShortString(),$=new Un(t).onBackground(n).toHexShortString(),P=new Un(x),M=new Un(S),k=C/2-y,T=k*2+y*3;return{headerBg:$,headerColor:r,headerSortActiveBg:E,headerSortHoverBg:O,bodySortBg:$,rowHoverBg:$,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:f,headerBorderRadius:d,footerBg:$,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:f,fixedHeaderSortActiveBg:E,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:h,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*m-y*3)/2-Math.ceil((v*1.4-y*3)/2),headerIconColor:P.clone().setAlpha(P.getAlpha()*w).toRgbString(),headerIconHoverColor:M.clone().setAlpha(M.getAlpha()*w).toRgbString(),expandIconHalfInner:k,expandIconSize:T,expandIconScale:C/T}},ree=2,XBe=tr("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:f,rowSelectedHoverBg:d,rowExpandedBg:h,cellPaddingBlock:p,cellPaddingInline:g,cellPaddingBlockMD:v,cellPaddingInlineMD:m,cellPaddingBlockSM:y,cellPaddingInlineSM:x,borderColor:S,footerBg:w,footerColor:C,headerBorderRadius:E,cellFontSize:O,cellFontSizeMD:$,cellFontSizeSM:P,headerSplitColor:M,fixedHeaderSortActiveBg:k,headerFilterHoverBg:T,filterDropdownBg:R,expandIconBg:A,selectionColumnWidth:N,stickyScrollBarBg:L,calc:j}=e,F=$n(e,{tableFontSize:O,tableBg:r,tableRadius:E,tablePaddingVertical:p,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:m,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:x,tableBorderColor:S,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:C,tableFooterBg:w,tableHeaderCellSplitColor:M,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:k,tableHeaderFilterActiveBg:T,tableFilterDropdownBg:R,tableRowHoverBg:u,tableSelectedRowBg:f,tableSelectedRowHoverBg:d,zIndexTableFixed:ree,zIndexTableSticky:j(ree).add(1).equal({unit:!1}),tableFontSizeMiddle:$,tableFontSizeSmall:P,tableSelectionColumnWidth:N,tableExpandIconBg:A,tableExpandColumnWidth:j(i).add(j(e.padding).mul(2)).equal(),tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:L,tableScrollThumbBgHover:t,tableScrollBg:n});return[KBe(F),BBe(F),nee(F),qBe(F),DBe(F),ABe(F),zBe(F),jBe(F),nee(F),LBe(F),WBe(F),FBe(F),UBe(F),NBe(F),VBe(F),HBe(F),GBe(F)]},YBe,{unitless:{expandIconScale:!0}}),ZBe=[],QBe=(e,t)=>{var n,r;const{prefixCls:i,className:a,rootClassName:o,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:f,pagination:d,rowSelection:h,rowKey:p="key",rowClassName:g,columns:v,children:m,childrenColumnName:y,onChange:x,getPopupContainer:S,loading:w,expandIcon:C,expandable:E,expandedRowRender:O,expandIconColumnIndex:$,indentSize:P,scroll:M,sortDirections:k,locale:T,showSorterTooltip:R={target:"full-header"},virtual:A}=e;Cd();const N=b.useMemo(()=>v||B5(m),[v,m]),L=b.useMemo(()=>N.some(Gt=>Gt.responsive),[N]),j=vI(L),F=b.useMemo(()=>{const Gt=new Set(Object.keys(j).filter(wt=>j[wt]));return N.filter(wt=>!wt.responsive||wt.responsive.some(_t=>Gt.has(_t)))},[N,j]),B=Or(e,["className","style","columns"]),{locale:D=_o,direction:z,table:W,renderEmpty:q,getPrefixCls:H,getPopupContainer:U}=b.useContext(Lt),G=ja(l),K=Object.assign(Object.assign({},D.Table),T),X=f||ZBe,Q=H("table",i),ee=H("dropdown",u),[,ne]=eo(),te=Ti(Q),[ie,J,le]=XBe(Q,te),oe=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:$},E),{expandIcon:(n=E==null?void 0:E.expandIcon)!==null&&n!==void 0?n:(r=W==null?void 0:W.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:re="children"}=oe,se=b.useMemo(()=>X.some(Gt=>Gt==null?void 0:Gt[re])?"nest":O||E!=null&&E.expandedRowRender?"row":null,[X]),ge={body:b.useRef(null)},de=KFe(Q),pe=b.useRef(null),ue=b.useRef(null);UFe(t,()=>Object.assign(Object.assign({},ue.current),{nativeElement:pe.current}));const Se=b.useMemo(()=>typeof p=="function"?p:Gt=>Gt==null?void 0:Gt[p],[p]),[Oe]=OBe(X,re,Se),_e={},Te=function(Gt,wt){let _t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Nt,Zt,vn,an;const Pn=Object.assign(Object.assign({},_e),Gt);_t&&((Nt=_e.resetPagination)===null||Nt===void 0||Nt.call(_e),!((Zt=Pn.pagination)===null||Zt===void 0)&&Zt.current&&(Pn.pagination.current=1),d&&((vn=d.onChange)===null||vn===void 0||vn.call(d,1,(an=Pn.pagination)===null||an===void 0?void 0:an.pageSize))),M&&M.scrollToFirstRowOnChange!==!1&&ge.body.current&&d$e(0,{getContainer:()=>ge.body.current}),x==null||x(Pn.pagination,Pn.filters,Pn.sorter,{currentDataSource:aA(lA(X,Pn.sorterStates,re),Pn.filterStates,re),action:wt})},je=(Gt,wt)=>{Te({sorter:Gt,sorterStates:wt},"sort",!1)},[Be,Pe,He,Ue]=kBe({prefixCls:Q,mergedColumns:F,onSorterChange:je,sortDirections:k||["ascend","descend"],tableLocale:K,showSorterTooltip:R}),ke=b.useMemo(()=>lA(X,Pe,re),[X,Pe]);_e.sorter=Ue(),_e.sorterStates=Pe;const Ce=(Gt,wt)=>{Te({filters:Gt,filterStates:wt},"filter",!0)},[Re,Ae,$e]=EBe({prefixCls:Q,locale:K,dropdownPrefixCls:ee,mergedColumns:F,onFilterChange:Ce,getPopupContainer:S||U,rootClassName:me(o,te)}),Ve=aA(ke,Ae,re);_e.filters=$e,_e.filterStates=Ae;const et=b.useMemo(()=>{const Gt={};return Object.keys($e).forEach(wt=>{$e[wt]!==null&&(Gt[wt]=$e[wt])}),Object.assign(Object.assign({},He),{filters:Gt})},[He,$e]),[Tt]=TBe(et),Mt=(Gt,wt)=>{Te({pagination:Object.assign(Object.assign({},_e.pagination),{current:Gt,pageSize:wt})},"paginate")},[at,ht]=PBe(Ve.length,Mt,d);_e.pagination=d===!1?{}:$Be(at,d),_e.resetPagination=ht;const Ot=b.useMemo(()=>{if(d===!1||!at.pageSize)return Ve;const{current:Gt=1,total:wt,pageSize:_t=XJ}=at;return Ve.length_t?Ve.slice((Gt-1)*_t,Gt*_t):Ve:Ve.slice((Gt-1)*_t,Gt*_t)},[!!d,Ve,at==null?void 0:at.current,at==null?void 0:at.pageSize,at==null?void 0:at.total]),[vt,$t]=VFe({prefixCls:Q,data:Ve,pageData:Ot,getRowKey:Se,getRecordByKey:Oe,expandType:se,childrenColumnName:re,locale:K,getPopupContainer:S||U},h),gt=(Gt,wt,_t)=>{let Nt;return typeof g=="function"?Nt=me(g(Gt,wt,_t)):Nt=me(g),me({[`${Q}-row-selected`]:$t.has(Se(Gt,wt))},Nt)};oe.__PARENT_RENDER_ICON__=oe.expandIcon,oe.expandIcon=oe.expandIcon||C||GFe(K),se==="nest"&&oe.expandIconColumnIndex===void 0?oe.expandIconColumnIndex=h?1:0:oe.expandIconColumnIndex>0&&h&&(oe.expandIconColumnIndex-=1),typeof oe.indentSize!="number"&&(oe.indentSize=typeof P=="number"?P:15);const st=b.useCallback(Gt=>Tt(vt(Re(Be(Gt)))),[Be,Re,vt]);let tt,ot;if(d!==!1&&(at!=null&&at.total)){let Gt;at.size?Gt=at.size:Gt=G==="small"||G==="middle"?"small":void 0;const wt=Zt=>b.createElement(k5,Object.assign({},at,{className:me(`${Q}-pagination ${Q}-pagination-${Zt}`,at.className),size:Gt})),_t=z==="rtl"?"left":"right",{position:Nt}=at;if(Nt!==null&&Array.isArray(Nt)){const Zt=Nt.find(Pn=>Pn.includes("top")),vn=Nt.find(Pn=>Pn.includes("bottom")),an=Nt.every(Pn=>`${Pn}`=="none");!Zt&&!vn&&!an&&(ot=wt(_t)),Zt&&(tt=wt(Zt.toLowerCase().replace("top",""))),vn&&(ot=wt(vn.toLowerCase().replace("bottom","")))}else ot=wt(_t)}let Pt;typeof w=="boolean"?Pt={spinning:w}:typeof w=="object"&&(Pt=Object.assign({spinning:!0},w));const Xe=me(le,te,`${Q}-wrapper`,W==null?void 0:W.className,{[`${Q}-wrapper-rtl`]:z==="rtl"},a,o,J),Je=Object.assign(Object.assign({},W==null?void 0:W.style),s),bt=typeof(T==null?void 0:T.emptyText)!="undefined"?T.emptyText:(q==null?void 0:q("Table"))||b.createElement(uI,{componentName:"Table"}),Rt=A?IBe:RBe,Xt={},Qt=b.useMemo(()=>{const{fontSize:Gt,lineHeight:wt,padding:_t,paddingXS:Nt,paddingSM:Zt}=ne,vn=Math.floor(Gt*wt);switch(G){case"large":return _t*2+vn;case"small":return Nt*2+vn;default:return Zt*2+vn}},[ne,G]);return A&&(Xt.listItemHeight=Qt),ie(b.createElement("div",{ref:pe,className:Xe,style:Je},b.createElement(GE,Object.assign({spinning:!1},Pt),tt,b.createElement(Rt,Object.assign({},Xt,B,{ref:ue,columns:F,direction:z,expandable:oe,prefixCls:Q,className:me({[`${Q}-middle`]:G==="middle",[`${Q}-small`]:G==="small",[`${Q}-bordered`]:c,[`${Q}-empty`]:X.length===0},le,te,J),data:Ot,rowKey:Se,rowClassName:gt,emptyText:bt,internalHooks:Ob,internalRefs:ge,transformColumns:st,getContainerWidth:de})),ot)))},JBe=b.forwardRef(QBe),eze=(e,t)=>{const n=b.useRef(0);return n.current+=1,b.createElement(JBe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},vf=b.forwardRef(eze);vf.SELECTION_COLUMN=Bd,vf.EXPAND_COLUMN=Fd,vf.SELECTION_ALL=K5,vf.SELECTION_INVERT=Y5,vf.SELECTION_NONE=X5,vf.Column=AFe,vf.ColumnGroup=NFe,vf.Summary=rJ;const tze=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},er(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},cA=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return $n(e,{tagFontSize:i,tagLineHeight:fe(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},uA=e=>({defaultBg:new Un(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),iee=tr("Tag",e=>{const t=cA(e);return tze(t)},uA);var nze=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,style:r,className:i,checked:a,onChange:o,onClick:s}=e,l=nze(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=b.useContext(Lt),f=m=>{o==null||o(!a),s==null||s(m)},d=c("tag",n),[h,p,g]=iee(d),v=me(d,`${d}-checkable`,{[`${d}-checkable-checked`]:a},u==null?void 0:u.className,i,p,g);return h(b.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:f})))}),ize=e=>Wq(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:a,darkColor:o}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),aze=jg(["Tag","preset"],e=>{const t=cA(e);return ize(t)},uA);function oze(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const sO=(e,t,n)=>{const r=oze(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},sze=jg(["Tag","status"],e=>{const t=cA(e);return[sO(t,"success","Success"),sO(t,"processing","Info"),sO(t,"error","Error"),sO(t,"warning","Warning")]},uA);var lze=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,d=lze(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:p,tag:g}=b.useContext(Lt),[v,m]=b.useState(!0),y=Or(d,["closeIcon","closable"]);b.useEffect(()=>{f!==void 0&&m(f)},[f]);const x=aY(l),S=XTe(l),w=x||S,C=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},g==null?void 0:g.style),a),E=h("tag",n),[O,$,P]=iee(E),M=me(E,g==null?void 0:g.className,{[`${E}-${l}`]:w,[`${E}-has-color`]:l&&!w,[`${E}-hidden`]:!v,[`${E}-rtl`]:p==="rtl",[`${E}-borderless`]:!u},r,i,$,P),k=j=>{j.stopPropagation(),c==null||c(j),!j.defaultPrevented&&m(!1)},[,T]=FG(ZC(e),ZC(g),{closable:!1,closeIconRender:j=>{const F=b.createElement("span",{className:`${E}-close-icon`,onClick:k},j);return bU(j,F,B=>({onClick:D=>{var z;(z=B==null?void 0:B.onClick)===null||z===void 0||z.call(B,D),k(D)},className:me(B==null?void 0:B.className,`${E}-close-icon`)}))}}),R=typeof d.onClick=="function"||o&&o.type==="a",A=s||null,N=A?b.createElement(b.Fragment,null,A,o&&b.createElement("span",null,o)):o,L=b.createElement("span",Object.assign({},y,{ref:t,className:M,style:C}),N,T,x&&b.createElement(aze,{key:"preset",prefixCls:E}),S&&b.createElement(sze,{key:"status",prefixCls:E}));return O(R?b.createElement(N1,{component:"Tag"},L):L)});aee.CheckableTag=rze;const cze=e=>{const t=e!=null&&e.algorithm?w1(e.algorithm):w1(P1),n=Object.assign(Object.assign({},Lg),e==null?void 0:e.token);return GV(n,{override:e==null?void 0:e.token},t,VT)};function uze(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const fze=(e,t)=>{const n=t!=null?t:P1(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),uze(t!=null?t:e)),Mq(r)),{controlHeight:i}),Pq(Object.assign(Object.assign({},n),{controlHeight:i})))},$l=(e,t)=>new Un(e).setAlpha(t).toRgbString(),Om=(e,t)=>new Un(e).lighten(t).toHexString(),dze=e=>{const t=fp(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},hze=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:$l(r,.85),colorTextSecondary:$l(r,.65),colorTextTertiary:$l(r,.45),colorTextQuaternary:$l(r,.25),colorFill:$l(r,.18),colorFillSecondary:$l(r,.12),colorFillTertiary:$l(r,.08),colorFillQuaternary:$l(r,.04),colorBgSolid:$l(r,.95),colorBgSolidHover:$l(r,1),colorBgSolidActive:$l(r,.9),colorBgElevated:Om(n,12),colorBgContainer:Om(n,8),colorBgLayout:Om(n,0),colorBgSpotlight:Om(n,26),colorBgBlur:$l(r,.04),colorBorder:Om(n,26),colorBorderSecondary:Om(n,19)}},pze=(e,t)=>{const n=Object.keys(jT).map(i=>{const a=fp(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((o,s,l)=>(o[`${i}-${l+1}`]=a[l],o[`${i}${l+1}`]=a[l],o),{})}).reduce((i,a)=>(i=Object.assign(Object.assign({},i),a),i),{}),r=t!=null?t:P1(e);return Object.assign(Object.assign(Object.assign({},r),n),$q(e,{generateColorPalettes:dze,generateNeutralColorPalettes:hze}))};function vze(){const[e,t,n]=eo();return{theme:e,token:t,hashId:n}}const $b={defaultSeed:M1.token,useToken:vze,defaultAlgorithm:P1,darkAlgorithm:pze,compactAlgorithm:fze,getDesignToken:cze,defaultConfig:M1,_internalContext:DT};var gze=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 i=0,r=Object.getOwnPropertySymbols(e);ib.createElement(yze,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Pb=b.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:a}=e,o=gze(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=yp("timePicker",i,a),l=b.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return b.createElement(mze,Object.assign({},o,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),oee=U1(Pb,"picker");Pb._InternalPanelDoNotUseOrYouWillBeFired=oee,Pb.RangePicker=bze,Pb._InternalPanelDoNotUseOrYouWillBeFired=oee;const lO=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},xze=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:i,key:a}=n;i&&t.set(a,r)}),t},Sze=(e,t,n)=>{const r=b.useMemo(()=>(e||[]).map(o=>t?Object.assign(Object.assign({},o),{key:t(o)}):o),[e,t]),[i,a]=b.useMemo(()=>{const o=[],s=new Array((n||[]).length),l=lO(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:o.push(c)}),[o,s]},[r,n,t]);return[r,i,a]},wze=[];function cO(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function see(e){return Array.from(e).join(";")}function Cze(e,t,n){const[r,i]=b.useMemo(()=>[new Set(e.map(f=>f.key)),new Set(t.map(f=>f.key))],[e,t]),[a,o]=Yn(wze,{value:n}),s=b.useMemo(()=>cO(a,r),[a,r]),l=b.useMemo(()=>cO(a,i),[a,i]);b.useEffect(()=>{o([].concat(Ne(cO(a,r)),Ne(cO(a,i))))},[see(r),see(i)]);const c=_n(f=>{o([].concat(Ne(f),Ne(l)))}),u=_n(f=>{o([].concat(Ne(s),Ne(f)))});return[s,l,c,u]}const Eze=e=>{const{renderedText:t,renderedEl:n,item:r,checked:i,disabled:a,prefixCls:o,onClick:s,onRemove:l,showRemove:c}=e,u=me(`${o}-content-item`,{[`${o}-content-item-disabled`]:a||r.disabled,[`${o}-content-item-checked`]:i&&!r.disabled});let f;(typeof t=="string"||typeof t=="number")&&(f=String(t));const[d]=Zo("Transfer",_o.Transfer),h={className:u,title:f},p=b.createElement("span",{className:`${o}-content-item-text`},n);return c?b.createElement("li",Object.assign({},h),p,b.createElement("button",{type:"button",disabled:a||r.disabled,className:`${o}-content-item-remove`,"aria-label":d==null?void 0:d.remove,onClick:()=>l==null?void 0:l(r)},b.createElement(QE,null))):(h.onClick=a||r.disabled?void 0:g=>s(r,g),b.createElement("li",Object.assign({},h),b.createElement(Ol,{className:`${o}-checkbox`,checked:i,disabled:a||r.disabled}),p))},Oze=b.memo(Eze),_ze=["handleFilter","handleClear","checkedKeys"],$ze=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),Pze=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:i,disabled:a,showRemove:o,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[f,d]=b.useState(1),h=b.useMemo(()=>s?$ze(typeof s=="object"?s:{}):null,[s]),[p,g]=Yn(10,{value:h==null?void 0:h.pageSize});b.useEffect(()=>{if(h){const E=Math.ceil(r.length/p);d(Math.min(f,E))}},[r,h,p]);const v=(E,O)=>{c(E.key,!i.includes(E.key),O)},m=E=>{u==null||u([E.key])},y=E=>{d(E)},x=(E,O)=>{d(E),g(O)},S=b.useMemo(()=>h?r.slice((f-1)*p,f*p):r,[f,r,h,p]);b.useImperativeHandle(t,()=>({items:S}));const w=h?b.createElement(k5,{size:"small",disabled:a,simple:h.simple,pageSize:p,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:y,onShowSizeChange:x}):null,C=me(`${n}-content`,{[`${n}-content-show-remove`]:o});return b.createElement(b.Fragment,null,b.createElement("ul",{className:C,onScroll:l},(S||[]).map(E=>{let{renderedEl:O,renderedText:$,item:P}=E;return b.createElement(Oze,{key:P.key,item:P,renderedText:$,renderedEl:O,prefixCls:n,showRemove:o,onClick:v,onRemove:m,checked:i.includes(P.key),disabled:a||P.disabled})})),w)},Mze=b.forwardRef(Pze),lee=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:i,onChange:a,handleClear:o}=e,s=b.useCallback(l=>{a==null||a(l),l.target.value===""&&(o==null||o())},[a]);return b.createElement(oi,{placeholder:t,className:r,value:n,onChange:s,disabled:i,allowClear:!0,prefix:b.createElement(tm,null)})},kze=()=>null;function Tze(e){return!!(e&&!we.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Mb(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const Rze=e=>e!==void 0,fA=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:i,disabled:a,showSearch:o=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,deselectAll:f,selectCurrent:d,selectInvert:h,removeAll:p,removeCurrent:g,showSelectAll:v=!0,showRemove:m,pagination:y,direction:x,itemsUnit:S,itemUnit:w,selectAllLabel:C,selectionsIcon:E,footer:O,renderList:$,onItemSelectAll:P,onItemRemove:M,handleFilter:k,handleClear:T,filterOption:R,render:A=kze}=e,[N,L]=b.useState(""),j=b.useRef({}),F=re=>{L(re.target.value),k(re)},B=()=>{L(""),T()},D=(re,se)=>R?R(N,se,x):re.includes(N),z=re=>{let se=$?$(Object.assign(Object.assign({},re),{onItemSelect:(de,pe)=>re.onItemSelect(de,pe)})):null;const ge=!!se;return ge||(se=we.createElement(Mze,Object.assign({ref:j},re))),{customize:ge,bodyContent:se}},W=re=>{const se=A(re),ge=Tze(se);return{item:re,renderedEl:ge?se.label:se,renderedText:ge?se.value:se}},q=b.useMemo(()=>Array.isArray(c)?c[x==="left"?0:1]:c,[c,x]),[H,U]=b.useMemo(()=>{const re=[],se=[];return n.forEach(ge=>{const de=W(ge);N&&!D(de.renderedText,ge)||(re.push(ge),se.push(de))}),[re,se]},[n,N]),G=b.useMemo(()=>H.filter(re=>i.includes(re.key)&&!re.disabled),[i,H]),K=b.useMemo(()=>{if(G.length===0)return"none";const re=lO(i);return H.every(se=>re.has(se.key)||!!se.disabled)?"all":"part"},[i,G]),X=b.useMemo(()=>{const re=o?we.createElement("div",{className:`${t}-body-search-wrapper`},we.createElement(lee,{prefixCls:`${t}-search`,onChange:F,handleClear:B,placeholder:l,value:N,disabled:a})):null,{customize:se,bodyContent:ge}=z(Object.assign(Object.assign({},Or(e,_ze)),{filteredItems:H,filteredRenderItems:U,selectedKeys:i}));let de;return se?de=we.createElement("div",{className:`${t}-body-customize-wrapper`},ge):de=H.length?ge:we.createElement("div",{className:`${t}-body-not-found`},q),we.createElement("div",{className:me(o?`${t}-body ${t}-body-with-search`:`${t}-body`)},re,de)},[o,t,l,N,a,i,H,U,q]),Q=we.createElement(Ol,{disabled:n.filter(re=>!re.disabled).length===0||a,checked:K==="all",indeterminate:K==="part",className:`${t}-checkbox`,onChange:()=>{P==null||P(H.filter(re=>!re.disabled).map(re=>{let{key:se}=re;return se}),K!=="all")}}),ee=(re,se)=>{if(C)return typeof C=="function"?C({selectedCount:re,totalCount:se}):C;const ge=se>1?S:w;return we.createElement(we.Fragment,null,(re>0?`${re}/`:"")+se," ",ge)},ne=O&&(O.length<2?O(e):O(e,{direction:x})),te=me(t,{[`${t}-with-pagination`]:!!y,[`${t}-with-footer`]:!!ne}),ie=ne?we.createElement("div",{className:`${t}-footer`},ne):null,J=!m&&!y&&Q;let le;m?le=[y?{key:"removeCurrent",label:g,onClick(){var re;const se=Mb((((re=j.current)===null||re===void 0?void 0:re.items)||[]).map(ge=>ge.item));M==null||M(se)}}:null,{key:"removeAll",label:p,onClick(){M==null||M(Mb(H))}}].filter(Boolean):le=[{key:"selectAll",label:K==="all"?f:u,onClick(){const re=Mb(H);P==null||P(re,re.length!==i.length)}},y?{key:"selectCurrent",label:d,onClick(){var re;const se=((re=j.current)===null||re===void 0?void 0:re.items)||[];P==null||P(Mb(se.map(ge=>ge.item)),!0)}}:null,{key:"selectInvert",label:h,onClick(){var re;const se=Mb((((re=j.current)===null||re===void 0?void 0:re.items)||[]).map(pe=>pe.item)),ge=new Set(i),de=new Set(ge);se.forEach(pe=>{ge.has(pe)?de.delete(pe):de.add(pe)}),P==null||P(Array.from(de),"replace")}}];const oe=we.createElement(FE,{className:`${t}-header-dropdown`,menu:{items:le},disabled:a},Rze(E)?E:we.createElement(J1,null));return we.createElement("div",{className:te,style:s},we.createElement("div",{className:`${t}-header`},v?we.createElement(we.Fragment,null,J,oe):null,we.createElement("span",{className:`${t}-header-selected`},ee(G.length,H.length)),we.createElement("span",{className:`${t}-header-title`},r)),X,ie)},cee=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:i="",rightArrowText:a="",leftActive:o,rightActive:s,className:l,style:c,direction:u,oneWay:f}=e;return b.createElement("div",{className:l,style:c},b.createElement(zn,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?b.createElement(sf,null):b.createElement(Sp,null)},a),!f&&b.createElement(zn,{type:"primary",size:"small",disabled:t||!o,onClick:n,icon:u!=="rtl"?b.createElement(Sp,null):b.createElement(sf,null)},i))},Ize=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i}=e,a=`${t}-table`,o=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:i,minWidth:i}},[`${a}-pagination${a}-pagination`]:{margin:0,padding:e.paddingXS}},[`${o}[disabled]`]:{backgroundColor:"transparent"}}}},uee=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},Aze=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},uee(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},uee(e,e.colorWarning))}},Nze=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:i,itemHeight:a,headerHeight:o,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,colorTextSecondary:f,listHeight:d,listWidth:h,listWidthLG:p,fontSizeIcon:g,marginXS:v,paddingSM:m,lineType:y,antCls:x,iconCls:S,motionDurationSlow:w,controlItemBgHover:C,borderRadiusLG:E,colorBgContainer:O,colorText:$,controlItemBgActiveHover:P}=e,M=fe(e.calc(E).sub(i).equal());return{display:"flex",flexDirection:"column",width:h,height:d,border:`${fe(i)} ${y} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:p,height:"auto"},"&-search":{[`${S}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:o,padding:`${fe(e.calc(s).sub(i).equal())} ${fe(m)} ${fe(s)}`,color:$,background:O,borderBottom:`${fe(i)} ${y} ${r}`,borderRadius:`${fe(E)} ${fe(E)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Qo),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},Od()),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:m}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${M} ${M}`,"&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${fe(l)} ${fe(m)}`,transition:`all ${w}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Qo),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},PC(e)),{color:n,"&:hover, &:focus":{color:f}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:C,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:P}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${fe(i)} ${y} ${r}`,[`${x}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${fe(i)} ${y} ${r}`},"&-checkbox":{lineHeight:1}}},Lze=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:i,marginXXS:a,fontSizeIcon:o,colorBgContainerDisabled:s}=e;return{[r]:Object.assign(Object.assign({},er(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:s}},[`${r}-list`]:Nze(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${fe(i)}`,verticalAlign:"middle",gap:a,[`${t}-btn ${n}`]:{fontSize:o}}})}},jze=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Dze=tr("Transfer",e=>{const t=$n(e);return[Lze(t),Ize(t),Aze(t),jze(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:i,lineWidth:a}=e,o=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:i,itemHeight:r,itemPaddingBlock:(r-o)/2,transferHeaderVerticalPadding:Math.ceil((i-a-o)/2)}}),uO=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:i=[],operations:a=[],style:o={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:f=!1,operationStyle:d,showSelectAll:h,oneWay:p,pagination:g,status:v,prefixCls:m,className:y,rootClassName:x,selectionsIcon:S,filterOption:w,render:C,footer:E,children:O,rowKey:$,onScroll:P,onChange:M,onSearch:k,onSelectChange:T}=e,{getPrefixCls:R,renderEmpty:A,direction:N,transfer:L}=b.useContext(Lt),j=R("transfer",m),[F,B,D]=Dze(j),[z,W,q]=Sze(t,$,n),[H,U,G,K]=Cze(W,q,r),[X,Q]=G5(ot=>ot.key),[ee,ne]=G5(ot=>ot.key),te=b.useCallback((ot,Pt)=>{if(ot==="left"){const Xe=typeof Pt=="function"?Pt(H||[]):Pt;G(Xe)}else{const Xe=typeof Pt=="function"?Pt(U||[]):Pt;K(Xe)}},[H,U]),ie=(ot,Pt)=>{(ot==="left"?Q:ne)(Pt)},J=b.useCallback((ot,Pt)=>{ot==="left"?T==null||T(Pt,U):T==null||T(H,Pt)},[H,U]),le=ot=>{var Pt;return(Pt=c!=null?c:ot.titles)!==null&&Pt!==void 0?Pt:[]},oe=ot=>{P==null||P("left",ot)},re=ot=>{P==null||P("right",ot)},se=ot=>{const Pt=ot==="right"?H:U,Xe=xze(z),Je=Pt.filter(Qt=>!Xe.has(Qt)),bt=lO(Je),Rt=ot==="right"?Je.concat(n):n.filter(Qt=>!bt.has(Qt)),Xt=ot==="right"?"left":"right";te(Xt,[]),J(Xt,[]),M==null||M(Rt,ot,Je)},ge=()=>{se("left"),ie("left",null)},de=()=>{se("right"),ie("right",null)},pe=(ot,Pt,Xe)=>{te(ot,Je=>{let bt=[];if(Xe==="replace")bt=Pt;else if(Xe)bt=Array.from(new Set([].concat(Ne(Je),Ne(Pt))));else{const Rt=lO(Pt);bt=Je.filter(Xt=>!Rt.has(Xt))}return J(ot,bt),bt}),ie(ot,null)},ue=(ot,Pt)=>{pe("left",ot,Pt)},Se=(ot,Pt)=>{pe("right",ot,Pt)},Oe=ot=>k==null?void 0:k("left",ot.target.value),_e=ot=>k==null?void 0:k("right",ot.target.value),Te=()=>k==null?void 0:k("left",""),je=()=>k==null?void 0:k("right",""),Be=(ot,Pt,Xe,Je,bt)=>{Pt.has(Xe)&&(Pt.delete(Xe),ie(ot,null)),Je&&(Pt.add(Xe),ie(ot,bt))},Pe=(ot,Pt,Xe,Je)=>{(ot==="left"?X:ee)(Je,Pt,Xe)},He=(ot,Pt,Xe,Je)=>{const bt=ot==="left",Rt=Ne(bt?H:U),Xt=new Set(Rt),Qt=Ne(bt?W:q).filter(_t=>!(_t!=null&&_t.disabled)),Gt=Qt.findIndex(_t=>_t.key===Pt);Je&&Rt.length>0?Pe(ot,Qt,Xt,Gt):Be(ot,Xt,Pt,Xe,Gt);const wt=Array.from(Xt);J(ot,wt),e.selectedKeys||te(ot,wt)},Ue=(ot,Pt,Xe)=>{He("left",ot,Pt,Xe==null?void 0:Xe.shiftKey)},ke=(ot,Pt,Xe)=>{He("right",ot,Pt,Xe==null?void 0:Xe.shiftKey)},Ce=ot=>{te("right",[]),M==null||M(n.filter(Pt=>!ot.includes(Pt)),"left",Ne(ot))},Re=ot=>typeof s=="function"?s({direction:ot}):s||{},Ae=b.useContext(Fa),{hasFeedback:$e,status:Ve}=Ae,et=ot=>Object.assign(Object.assign(Object.assign({},ot),{notFoundContent:(A==null?void 0:A("Transfer"))||we.createElement(uI,{componentName:"Transfer"})}),l),Tt=Id(Ve,v),Mt=!O&&g,at=q.filter(ot=>U.includes(ot.key)&&!ot.disabled).length>0,ht=W.filter(ot=>H.includes(ot.key)&&!ot.disabled).length>0,Ot=me(j,{[`${j}-disabled`]:u,[`${j}-customize-list`]:!!O,[`${j}-rtl`]:N==="rtl"},uf(j,Tt,$e),L==null?void 0:L.className,y,x,B,D),[vt]=Zo("Transfer",_o.Transfer),$t=et(vt),[gt,st]=le($t),tt=S!=null?S:L==null?void 0:L.selectionsIcon;return F(we.createElement("div",{className:Ot,style:Object.assign(Object.assign({},L==null?void 0:L.style),o)},we.createElement(fA,Object.assign({prefixCls:`${j}-list`,titleText:gt,dataSource:W,filterOption:w,style:Re("left"),checkedKeys:H,handleFilter:Oe,handleClear:Te,onItemSelect:Ue,onItemSelectAll:ue,render:C,showSearch:f,renderList:O,footer:E,onScroll:oe,disabled:u,direction:N==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:i[0],pagination:Mt,selectionsIcon:tt},$t)),we.createElement(cee,{className:`${j}-operation`,rightActive:ht,rightArrowText:a[0],moveToRight:de,leftActive:at,leftArrowText:a[1],moveToLeft:ge,style:d,disabled:u,direction:N,oneWay:p}),we.createElement(fA,Object.assign({prefixCls:`${j}-list`,titleText:st,dataSource:q,filterOption:w,style:Re("right"),checkedKeys:U,handleFilter:_e,handleClear:je,onItemSelect:ke,onItemSelectAll:Se,onItemRemove:Ce,render:C,showSearch:f,renderList:O,footer:E,onScroll:re,disabled:u,direction:N==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:i[1],showRemove:p,pagination:Mt,selectionsIcon:tt},$t))))};uO.List=fA,uO.Search=lee,uO.Operation=cee;const Fze=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Bze=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` + `]:{[t]:{marginBlock:ue(y(r).mul(-1).equal()),marginInline:`${ue(y(a).sub(i).equal())} + ${ue(y(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:x,transition:`background ${h} ease`}}},[`${t}-footer`]:{padding:`${ue(r)} ${ue(i)}`,color:g,background:m}})}},GBe=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:f,borderRadiusLG:d,controlHeight:h,colorTextPlaceholder:p,fontSize:v,fontSizeSM:g,lineHeight:m,lineWidth:y,colorIcon:x,colorIconHover:S,opacityLoading:w,controlInteractiveSize:C}=e,E=new Un(i).onBackground(n).toHexShortString(),O=new Un(a).onBackground(n).toHexShortString(),$=new Un(t).onBackground(n).toHexShortString(),P=new Un(x),M=new Un(S),k=C/2-y,T=k*2+y*3;return{headerBg:$,headerColor:r,headerSortActiveBg:E,headerSortHoverBg:O,bodySortBg:$,rowHoverBg:$,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:f,headerBorderRadius:d,footerBg:$,footerColor:r,cellFontSize:v,cellFontSizeMD:v,cellFontSizeSM:v,headerSplitColor:f,fixedHeaderSortActiveBg:E,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:h,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(v*m-y*3)/2-Math.ceil((g*1.4-y*3)/2),headerIconColor:P.clone().setAlpha(P.getAlpha()*w).toRgbString(),headerIconHoverColor:M.clone().setAlpha(M.getAlpha()*w).toRgbString(),expandIconHalfInner:k,expandIconSize:T,expandIconScale:C/T}},tee=2,KBe=tr("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:f,rowSelectedHoverBg:d,rowExpandedBg:h,cellPaddingBlock:p,cellPaddingInline:v,cellPaddingBlockMD:g,cellPaddingInlineMD:m,cellPaddingBlockSM:y,cellPaddingInlineSM:x,borderColor:S,footerBg:w,footerColor:C,headerBorderRadius:E,cellFontSize:O,cellFontSizeMD:$,cellFontSizeSM:P,headerSplitColor:M,fixedHeaderSortActiveBg:k,headerFilterHoverBg:T,filterDropdownBg:R,expandIconBg:A,selectionColumnWidth:N,stickyScrollBarBg:L,calc:j}=e,F=_n(e,{tableFontSize:O,tableBg:r,tableRadius:E,tablePaddingVertical:p,tablePaddingHorizontal:v,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:m,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:x,tableBorderColor:S,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:C,tableFooterBg:w,tableHeaderCellSplitColor:M,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:k,tableHeaderFilterActiveBg:T,tableFilterDropdownBg:R,tableRowHoverBg:u,tableSelectedRowBg:f,tableSelectedRowHoverBg:d,zIndexTableFixed:tee,zIndexTableSticky:j(tee).add(1).equal({unit:!1}),tableFontSizeMiddle:$,tableFontSizeSmall:P,tableSelectionColumnWidth:N,tableExpandIconBg:A,tableExpandColumnWidth:j(i).add(j(e.padding).mul(2)).equal(),tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:L,tableScrollThumbBgHover:t,tableScrollBg:n});return[UBe(F),DBe(F),eee(F),WBe(F),LBe(F),RBe(F),FBe(F),NBe(F),eee(F),ABe(F),zBe(F),jBe(F),VBe(F),IBe(F),HBe(F),BBe(F),qBe(F)]},GBe,{unitless:{expandIconScale:!0}}),YBe=[],XBe=(e,t)=>{var n,r;const{prefixCls:i,className:a,rootClassName:o,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:f,pagination:d,rowSelection:h,rowKey:p="key",rowClassName:v,columns:g,children:m,childrenColumnName:y,onChange:x,getPopupContainer:S,loading:w,expandIcon:C,expandable:E,expandedRowRender:O,expandIconColumnIndex:$,indentSize:P,scroll:M,sortDirections:k,locale:T,showSorterTooltip:R={target:"full-header"},virtual:A}=e;Cd();const N=b.useMemo(()=>g||L5(m),[g,m]),L=b.useMemo(()=>N.some(Gt=>Gt.responsive),[N]),j=fI(L),F=b.useMemo(()=>{const Gt=new Set(Object.keys(j).filter(St=>j[St]));return N.filter(St=>!St.responsive||St.responsive.some($t=>Gt.has($t)))},[N,j]),B=Or(e,["className","style","columns"]),{locale:D=_o,direction:z,table:W,renderEmpty:q,getPrefixCls:H,getPopupContainer:U}=b.useContext(At),G=ja(l),K=Object.assign(Object.assign({},D.Table),T),X=f||YBe,Q=H("table",i),ee=H("dropdown",u),[,ne]=to(),te=Ti(Q),[ie,J,le]=KBe(Q,te),oe=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:$},E),{expandIcon:(n=E==null?void 0:E.expandIcon)!==null&&n!==void 0?n:(r=W==null?void 0:W.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:re="children"}=oe,se=b.useMemo(()=>X.some(Gt=>Gt==null?void 0:Gt[re])?"nest":O||E!=null&&E.expandedRowRender?"row":null,[X]),ge={body:b.useRef(null)},de=UFe(Q),pe=b.useRef(null),fe=b.useRef(null);VFe(t,()=>Object.assign(Object.assign({},fe.current),{nativeElement:pe.current}));const xe=b.useMemo(()=>typeof p=="function"?p:Gt=>Gt==null?void 0:Gt[p],[p]),[Oe]=CBe(X,re,xe),_e={},Te=function(Gt,St){let $t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Nt,Zt,gn,an;const Mn=Object.assign(Object.assign({},_e),Gt);$t&&((Nt=_e.resetPagination)===null||Nt===void 0||Nt.call(_e),!((Zt=Mn.pagination)===null||Zt===void 0)&&Zt.current&&(Mn.pagination.current=1),d&&((gn=d.onChange)===null||gn===void 0||gn.call(d,1,(an=Mn.pagination)===null||an===void 0?void 0:an.pageSize))),M&&M.scrollToFirstRowOnChange!==!1&&ge.body.current&&u$e(0,{getContainer:()=>ge.body.current}),x==null||x(Mn.pagination,Mn.filters,Mn.sorter,{currentDataSource:tA(iA(X,Mn.sorterStates,re),Mn.filterStates,re),action:St})},Fe=(Gt,St)=>{Te({sorter:Gt,sorterStates:St},"sort",!1)},[Be,Pe,ze,Ue]=PBe({prefixCls:Q,mergedColumns:F,onSorterChange:Fe,sortDirections:k||["ascend","descend"],tableLocale:K,showSorterTooltip:R}),ke=b.useMemo(()=>iA(X,Pe,re),[X,Pe]);_e.sorter=Ue(),_e.sorterStates=Pe;const Ee=(Gt,St)=>{Te({filters:Gt,filterStates:St},"filter",!0)},[Ie,Ae,$e]=wBe({prefixCls:Q,locale:K,dropdownPrefixCls:ee,mergedColumns:F,onFilterChange:Ee,getPopupContainer:S||U,rootClassName:me(o,te)}),He=tA(ke,Ae,re);_e.filters=$e,_e.filterStates=Ae;const ot=b.useMemo(()=>{const Gt={};return Object.keys($e).forEach(St=>{$e[St]!==null&&(Gt[St]=$e[St])}),Object.assign(Object.assign({},ze),{filters:Gt})},[ze,$e]),[Ot]=MBe(ot),Wt=(Gt,St)=>{Te({pagination:Object.assign(Object.assign({},_e.pagination),{current:Gt,pageSize:St})},"paginate")},[et,ht]=_Be(He.length,Wt,d);_e.pagination=d===!1?{}:OBe(et,d),_e.resetPagination=ht;const Et=b.useMemo(()=>{if(d===!1||!et.pageSize)return He;const{current:Gt=1,total:St,pageSize:$t=KJ}=et;return He.length$t?He.slice((Gt-1)*$t,Gt*$t):He:He.slice((Gt-1)*$t,Gt*$t)},[!!d,He,et==null?void 0:et.current,et==null?void 0:et.pageSize,et==null?void 0:et.total]),[gt,Pt]=HFe({prefixCls:Q,data:He,pageData:Et,getRowKey:xe,getRecordByKey:Oe,expandType:se,childrenColumnName:re,locale:K,getPopupContainer:S||U},h),wt=(Gt,St,$t)=>{let Nt;return typeof v=="function"?Nt=me(v(Gt,St,$t)):Nt=me(v),me({[`${Q}-row-selected`]:Pt.has(xe(Gt,St))},Nt)};oe.__PARENT_RENDER_ICON__=oe.expandIcon,oe.expandIcon=oe.expandIcon||C||qFe(K),se==="nest"&&oe.expandIconColumnIndex===void 0?oe.expandIconColumnIndex=h?1:0:oe.expandIconColumnIndex>0&&h&&(oe.expandIconColumnIndex-=1),typeof oe.indentSize!="number"&&(oe.indentSize=typeof P=="number"?P:15);const st=b.useCallback(Gt=>Ot(gt(Ie(Be(Gt)))),[Be,Ie,gt]);let nt,lt;if(d!==!1&&(et!=null&&et.total)){let Gt;et.size?Gt=et.size:Gt=G==="small"||G==="middle"?"small":void 0;const St=Zt=>b.createElement(_5,Object.assign({},et,{className:me(`${Q}-pagination ${Q}-pagination-${Zt}`,et.className),size:Gt})),$t=z==="rtl"?"left":"right",{position:Nt}=et;if(Nt!==null&&Array.isArray(Nt)){const Zt=Nt.find(Mn=>Mn.includes("top")),gn=Nt.find(Mn=>Mn.includes("bottom")),an=Nt.every(Mn=>`${Mn}`=="none");!Zt&&!gn&&!an&&(lt=St($t)),Zt&&(nt=St(Zt.toLowerCase().replace("top",""))),gn&&(lt=St(gn.toLowerCase().replace("bottom","")))}else lt=St($t)}let Mt;typeof w=="boolean"?Mt={spinning:w}:typeof w=="object"&&(Mt=Object.assign({spinning:!0},w));const Ye=me(le,te,`${Q}-wrapper`,W==null?void 0:W.className,{[`${Q}-wrapper-rtl`]:z==="rtl"},a,o,J),Je=Object.assign(Object.assign({},W==null?void 0:W.style),s),mt=typeof(T==null?void 0:T.emptyText)!="undefined"?T.emptyText:(q==null?void 0:q("Table"))||b.createElement(oI,{componentName:"Table"}),Tt=A?TBe:kBe,Xt={},Jt=b.useMemo(()=>{const{fontSize:Gt,lineHeight:St,padding:$t,paddingXS:Nt,paddingSM:Zt}=ne,gn=Math.floor(Gt*St);switch(G){case"large":return $t*2+gn;case"small":return Nt*2+gn;default:return Zt*2+gn}},[ne,G]);return A&&(Xt.listItemHeight=Jt),ie(b.createElement("div",{ref:pe,className:Ye,style:Je},b.createElement(qE,Object.assign({spinning:!1},Mt),nt,b.createElement(Tt,Object.assign({},Xt,B,{ref:fe,columns:F,direction:z,expandable:oe,prefixCls:Q,className:me({[`${Q}-middle`]:G==="middle",[`${Q}-small`]:G==="small",[`${Q}-bordered`]:c,[`${Q}-empty`]:X.length===0},le,te,J),data:Et,rowKey:xe,rowClassName:wt,emptyText:mt,internalHooks:Ob,internalRefs:ge,transformColumns:st,getContainerWidth:de})),lt)))},ZBe=b.forwardRef(XBe),QBe=(e,t)=>{const n=b.useRef(0);return n.current+=1,b.createElement(ZBe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},vf=b.forwardRef(QBe);vf.SELECTION_COLUMN=zd,vf.EXPAND_COLUMN=Bd,vf.SELECTION_ALL=V5,vf.SELECTION_INVERT=q5,vf.SELECTION_NONE=U5,vf.Column=RFe,vf.ColumnGroup=IFe,vf.Summary=tJ;const JBe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},er(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},aA=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return _n(e,{tagFontSize:i,tagLineHeight:ue(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},oA=e=>({defaultBg:new Un(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),nee=tr("Tag",e=>{const t=aA(e);return JBe(t)},oA);var eze=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,style:r,className:i,checked:a,onChange:o,onClick:s}=e,l=eze(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=b.useContext(At),f=m=>{o==null||o(!a),s==null||s(m)},d=c("tag",n),[h,p,v]=nee(d),g=me(d,`${d}-checkable`,{[`${d}-checkable-checked`]:a},u==null?void 0:u.className,i,p,v);return h(b.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:g,onClick:f})))}),nze=e=>Hq(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:a,darkColor:o}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),rze=Dg(["Tag","preset"],e=>{const t=aA(e);return nze(t)},oA);function ize(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const aO=(e,t,n)=>{const r=ize(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},aze=Dg(["Tag","status"],e=>{const t=aA(e);return[aO(t,"success","Success"),aO(t,"processing","Info"),aO(t,"error","Error"),aO(t,"warning","Warning")]},oA);var oze=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,d=oze(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:p,tag:v}=b.useContext(At),[g,m]=b.useState(!0),y=Or(d,["closeIcon","closable"]);b.useEffect(()=>{f!==void 0&&m(f)},[f]);const x=rY(l),S=KTe(l),w=x||S,C=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},v==null?void 0:v.style),a),E=h("tag",n),[O,$,P]=nee(E),M=me(E,v==null?void 0:v.className,{[`${E}-${l}`]:w,[`${E}-has-color`]:l&&!w,[`${E}-hidden`]:!g,[`${E}-rtl`]:p==="rtl",[`${E}-borderless`]:!u},r,i,$,P),k=j=>{j.stopPropagation(),c==null||c(j),!j.defaultPrevented&&m(!1)},[,T]=jG(YC(e),YC(v),{closable:!1,closeIconRender:j=>{const F=b.createElement("span",{className:`${E}-close-icon`,onClick:k},j);return yU(j,F,B=>({onClick:D=>{var z;(z=B==null?void 0:B.onClick)===null||z===void 0||z.call(B,D),k(D)},className:me(B==null?void 0:B.className,`${E}-close-icon`)}))}}),R=typeof d.onClick=="function"||o&&o.type==="a",A=s||null,N=A?b.createElement(b.Fragment,null,A,o&&b.createElement("span",null,o)):o,L=b.createElement("span",Object.assign({},y,{ref:t,className:M,style:C}),N,T,x&&b.createElement(rze,{key:"preset",prefixCls:E}),S&&b.createElement(aze,{key:"status",prefixCls:E}));return O(R?b.createElement(L1,{component:"Tag"},L):L)});ree.CheckableTag=tze;const sze=e=>{const t=e!=null&&e.algorithm?w1(e.algorithm):w1(M1),n=Object.assign(Object.assign({},jg),e==null?void 0:e.token);return VV(n,{override:e==null?void 0:e.token},t,zT)};function lze(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const cze=(e,t)=>{const n=t!=null?t:M1(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),lze(t!=null?t:e)),Pq(r)),{controlHeight:i}),$q(Object.assign(Object.assign({},n),{controlHeight:i})))},$l=(e,t)=>new Un(e).setAlpha(t).toRgbString(),Om=(e,t)=>new Un(e).lighten(t).toHexString(),uze=e=>{const t=fp(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},fze=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:$l(r,.85),colorTextSecondary:$l(r,.65),colorTextTertiary:$l(r,.45),colorTextQuaternary:$l(r,.25),colorFill:$l(r,.18),colorFillSecondary:$l(r,.12),colorFillTertiary:$l(r,.08),colorFillQuaternary:$l(r,.04),colorBgSolid:$l(r,.95),colorBgSolidHover:$l(r,1),colorBgSolidActive:$l(r,.9),colorBgElevated:Om(n,12),colorBgContainer:Om(n,8),colorBgLayout:Om(n,0),colorBgSpotlight:Om(n,26),colorBgBlur:$l(r,.04),colorBorder:Om(n,26),colorBorderSecondary:Om(n,19)}},dze=(e,t)=>{const n=Object.keys(kT).map(i=>{const a=fp(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((o,s,l)=>(o[`${i}-${l+1}`]=a[l],o[`${i}${l+1}`]=a[l],o),{})}).reduce((i,a)=>(i=Object.assign(Object.assign({},i),a),i),{}),r=t!=null?t:M1(e);return Object.assign(Object.assign(Object.assign({},r),n),_q(e,{generateColorPalettes:uze,generateNeutralColorPalettes:fze}))};function hze(){const[e,t,n]=to();return{theme:e,token:t,hashId:n}}const $b={defaultSeed:k1.token,useToken:hze,defaultAlgorithm:M1,darkAlgorithm:dze,compactAlgorithm:cze,getDesignToken:sze,defaultConfig:k1,_internalContext:NT};var pze=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 i=0,r=Object.getOwnPropertySymbols(e);ib.createElement(gze,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Pb=b.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:a}=e,o=pze(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=bp("timePicker",i,a),l=b.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return b.createElement(vze,Object.assign({},o,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),iee=U1(Pb,"picker");Pb._InternalPanelDoNotUseOrYouWillBeFired=iee,Pb.RangePicker=mze,Pb._InternalPanelDoNotUseOrYouWillBeFired=iee;const oO=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},yze=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:i,key:a}=n;i&&t.set(a,r)}),t},bze=(e,t,n)=>{const r=b.useMemo(()=>(e||[]).map(o=>t?Object.assign(Object.assign({},o),{key:t(o)}):o),[e,t]),[i,a]=b.useMemo(()=>{const o=[],s=new Array((n||[]).length),l=oO(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:o.push(c)}),[o,s]},[r,n,t]);return[r,i,a]},xze=[];function sO(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function aee(e){return Array.from(e).join(";")}function Sze(e,t,n){const[r,i]=b.useMemo(()=>[new Set(e.map(f=>f.key)),new Set(t.map(f=>f.key))],[e,t]),[a,o]=Yn(xze,{value:n}),s=b.useMemo(()=>sO(a,r),[a,r]),l=b.useMemo(()=>sO(a,i),[a,i]);b.useEffect(()=>{o([].concat(Ne(sO(a,r)),Ne(sO(a,i))))},[aee(r),aee(i)]);const c=On(f=>{o([].concat(Ne(f),Ne(l)))}),u=On(f=>{o([].concat(Ne(s),Ne(f)))});return[s,l,c,u]}const wze=e=>{const{renderedText:t,renderedEl:n,item:r,checked:i,disabled:a,prefixCls:o,onClick:s,onRemove:l,showRemove:c}=e,u=me(`${o}-content-item`,{[`${o}-content-item-disabled`]:a||r.disabled,[`${o}-content-item-checked`]:i&&!r.disabled});let f;(typeof t=="string"||typeof t=="number")&&(f=String(t));const[d]=Zo("Transfer",_o.Transfer),h={className:u,title:f},p=b.createElement("span",{className:`${o}-content-item-text`},n);return c?b.createElement("li",Object.assign({},h),p,b.createElement("button",{type:"button",disabled:a||r.disabled,className:`${o}-content-item-remove`,"aria-label":d==null?void 0:d.remove,onClick:()=>l==null?void 0:l(r)},b.createElement(XE,null))):(h.onClick=a||r.disabled?void 0:v=>s(r,v),b.createElement("li",Object.assign({},h),b.createElement(Ol,{className:`${o}-checkbox`,checked:i,disabled:a||r.disabled}),p))},Cze=b.memo(wze),Eze=["handleFilter","handleClear","checkedKeys"],Oze=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),_ze=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:i,disabled:a,showRemove:o,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[f,d]=b.useState(1),h=b.useMemo(()=>s?Oze(typeof s=="object"?s:{}):null,[s]),[p,v]=Yn(10,{value:h==null?void 0:h.pageSize});b.useEffect(()=>{if(h){const E=Math.ceil(r.length/p);d(Math.min(f,E))}},[r,h,p]);const g=(E,O)=>{c(E.key,!i.includes(E.key),O)},m=E=>{u==null||u([E.key])},y=E=>{d(E)},x=(E,O)=>{d(E),v(O)},S=b.useMemo(()=>h?r.slice((f-1)*p,f*p):r,[f,r,h,p]);b.useImperativeHandle(t,()=>({items:S}));const w=h?b.createElement(_5,{size:"small",disabled:a,simple:h.simple,pageSize:p,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:y,onShowSizeChange:x}):null,C=me(`${n}-content`,{[`${n}-content-show-remove`]:o});return b.createElement(b.Fragment,null,b.createElement("ul",{className:C,onScroll:l},(S||[]).map(E=>{let{renderedEl:O,renderedText:$,item:P}=E;return b.createElement(Cze,{key:P.key,item:P,renderedText:$,renderedEl:O,prefixCls:n,showRemove:o,onClick:g,onRemove:m,checked:i.includes(P.key),disabled:a||P.disabled})})),w)},$ze=b.forwardRef(_ze),oee=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:i,onChange:a,handleClear:o}=e,s=b.useCallback(l=>{a==null||a(l),l.target.value===""&&(o==null||o())},[a]);return b.createElement(oi,{placeholder:t,className:r,value:n,onChange:s,disabled:i,allowClear:!0,prefix:b.createElement(nm,null)})},Pze=()=>null;function Mze(e){return!!(e&&!we.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Mb(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const kze=e=>e!==void 0,sA=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:i,disabled:a,showSearch:o=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,deselectAll:f,selectCurrent:d,selectInvert:h,removeAll:p,removeCurrent:v,showSelectAll:g=!0,showRemove:m,pagination:y,direction:x,itemsUnit:S,itemUnit:w,selectAllLabel:C,selectionsIcon:E,footer:O,renderList:$,onItemSelectAll:P,onItemRemove:M,handleFilter:k,handleClear:T,filterOption:R,render:A=Pze}=e,[N,L]=b.useState(""),j=b.useRef({}),F=re=>{L(re.target.value),k(re)},B=()=>{L(""),T()},D=(re,se)=>R?R(N,se,x):re.includes(N),z=re=>{let se=$?$(Object.assign(Object.assign({},re),{onItemSelect:(de,pe)=>re.onItemSelect(de,pe)})):null;const ge=!!se;return ge||(se=we.createElement($ze,Object.assign({ref:j},re))),{customize:ge,bodyContent:se}},W=re=>{const se=A(re),ge=Mze(se);return{item:re,renderedEl:ge?se.label:se,renderedText:ge?se.value:se}},q=b.useMemo(()=>Array.isArray(c)?c[x==="left"?0:1]:c,[c,x]),[H,U]=b.useMemo(()=>{const re=[],se=[];return n.forEach(ge=>{const de=W(ge);N&&!D(de.renderedText,ge)||(re.push(ge),se.push(de))}),[re,se]},[n,N]),G=b.useMemo(()=>H.filter(re=>i.includes(re.key)&&!re.disabled),[i,H]),K=b.useMemo(()=>{if(G.length===0)return"none";const re=oO(i);return H.every(se=>re.has(se.key)||!!se.disabled)?"all":"part"},[i,G]),X=b.useMemo(()=>{const re=o?we.createElement("div",{className:`${t}-body-search-wrapper`},we.createElement(oee,{prefixCls:`${t}-search`,onChange:F,handleClear:B,placeholder:l,value:N,disabled:a})):null,{customize:se,bodyContent:ge}=z(Object.assign(Object.assign({},Or(e,Eze)),{filteredItems:H,filteredRenderItems:U,selectedKeys:i}));let de;return se?de=we.createElement("div",{className:`${t}-body-customize-wrapper`},ge):de=H.length?ge:we.createElement("div",{className:`${t}-body-not-found`},q),we.createElement("div",{className:me(o?`${t}-body ${t}-body-with-search`:`${t}-body`)},re,de)},[o,t,l,N,a,i,H,U,q]),Q=we.createElement(Ol,{disabled:n.filter(re=>!re.disabled).length===0||a,checked:K==="all",indeterminate:K==="part",className:`${t}-checkbox`,onChange:()=>{P==null||P(H.filter(re=>!re.disabled).map(re=>{let{key:se}=re;return se}),K!=="all")}}),ee=(re,se)=>{if(C)return typeof C=="function"?C({selectedCount:re,totalCount:se}):C;const ge=se>1?S:w;return we.createElement(we.Fragment,null,(re>0?`${re}/`:"")+se," ",ge)},ne=O&&(O.length<2?O(e):O(e,{direction:x})),te=me(t,{[`${t}-with-pagination`]:!!y,[`${t}-with-footer`]:!!ne}),ie=ne?we.createElement("div",{className:`${t}-footer`},ne):null,J=!m&&!y&&Q;let le;m?le=[y?{key:"removeCurrent",label:v,onClick(){var re;const se=Mb((((re=j.current)===null||re===void 0?void 0:re.items)||[]).map(ge=>ge.item));M==null||M(se)}}:null,{key:"removeAll",label:p,onClick(){M==null||M(Mb(H))}}].filter(Boolean):le=[{key:"selectAll",label:K==="all"?f:u,onClick(){const re=Mb(H);P==null||P(re,re.length!==i.length)}},y?{key:"selectCurrent",label:d,onClick(){var re;const se=((re=j.current)===null||re===void 0?void 0:re.items)||[];P==null||P(Mb(se.map(ge=>ge.item)),!0)}}:null,{key:"selectInvert",label:h,onClick(){var re;const se=Mb((((re=j.current)===null||re===void 0?void 0:re.items)||[]).map(pe=>pe.item)),ge=new Set(i),de=new Set(ge);se.forEach(pe=>{ge.has(pe)?de.delete(pe):de.add(pe)}),P==null||P(Array.from(de),"replace")}}];const oe=we.createElement(jE,{className:`${t}-header-dropdown`,menu:{items:le},disabled:a},kze(E)?E:we.createElement(J1,null));return we.createElement("div",{className:te,style:s},we.createElement("div",{className:`${t}-header`},g?we.createElement(we.Fragment,null,J,oe):null,we.createElement("span",{className:`${t}-header-selected`},ee(G.length,H.length)),we.createElement("span",{className:`${t}-header-title`},r)),X,ie)},see=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:i="",rightArrowText:a="",leftActive:o,rightActive:s,className:l,style:c,direction:u,oneWay:f}=e;return b.createElement("div",{className:l,style:c},b.createElement(Hn,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?b.createElement(sf,null):b.createElement(wp,null)},a),!f&&b.createElement(Hn,{type:"primary",size:"small",disabled:t||!o,onClick:n,icon:u!=="rtl"?b.createElement(wp,null):b.createElement(sf,null)},i))},Tze=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i}=e,a=`${t}-table`,o=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:i,minWidth:i}},[`${a}-pagination${a}-pagination`]:{margin:0,padding:e.paddingXS}},[`${o}[disabled]`]:{backgroundColor:"transparent"}}}},lee=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},Rze=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},lee(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},lee(e,e.colorWarning))}},Ize=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:i,itemHeight:a,headerHeight:o,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,colorTextSecondary:f,listHeight:d,listWidth:h,listWidthLG:p,fontSizeIcon:v,marginXS:g,paddingSM:m,lineType:y,antCls:x,iconCls:S,motionDurationSlow:w,controlItemBgHover:C,borderRadiusLG:E,colorBgContainer:O,colorText:$,controlItemBgActiveHover:P}=e,M=ue(e.calc(E).sub(i).equal());return{display:"flex",flexDirection:"column",width:h,height:d,border:`${ue(i)} ${y} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:p,height:"auto"},"&-search":{[`${S}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:o,padding:`${ue(e.calc(s).sub(i).equal())} ${ue(m)} ${ue(s)}`,color:$,background:O,borderBottom:`${ue(i)} ${y} ${r}`,borderRadius:`${ue(E)} ${ue(E)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Qo),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},_d()),{fontSize:v,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:m}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${M} ${M}`,"&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${ue(l)} ${ue(m)}`,transition:`all ${w}`,"> *:not(:last-child)":{marginInlineEnd:g},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Qo),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},$C(e)),{color:n,"&:hover, &:focus":{color:f}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:C,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:P}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${ue(i)} ${y} ${r}`,[`${x}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${ue(i)} ${y} ${r}`},"&-checkbox":{lineHeight:1}}},Aze=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:i,marginXXS:a,fontSizeIcon:o,colorBgContainerDisabled:s}=e;return{[r]:Object.assign(Object.assign({},er(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:s}},[`${r}-list`]:Ize(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${ue(i)}`,verticalAlign:"middle",gap:a,[`${t}-btn ${n}`]:{fontSize:o}}})}},Nze=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Lze=tr("Transfer",e=>{const t=_n(e);return[Aze(t),Tze(t),Rze(t),Nze(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:i,lineWidth:a}=e,o=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:i,itemHeight:r,itemPaddingBlock:(r-o)/2,transferHeaderVerticalPadding:Math.ceil((i-a-o)/2)}}),lO=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:i=[],operations:a=[],style:o={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:f=!1,operationStyle:d,showSelectAll:h,oneWay:p,pagination:v,status:g,prefixCls:m,className:y,rootClassName:x,selectionsIcon:S,filterOption:w,render:C,footer:E,children:O,rowKey:$,onScroll:P,onChange:M,onSearch:k,onSelectChange:T}=e,{getPrefixCls:R,renderEmpty:A,direction:N,transfer:L}=b.useContext(At),j=R("transfer",m),[F,B,D]=Lze(j),[z,W,q]=bze(t,$,n),[H,U,G,K]=Sze(W,q,r),[X,Q]=W5(lt=>lt.key),[ee,ne]=W5(lt=>lt.key),te=b.useCallback((lt,Mt)=>{if(lt==="left"){const Ye=typeof Mt=="function"?Mt(H||[]):Mt;G(Ye)}else{const Ye=typeof Mt=="function"?Mt(U||[]):Mt;K(Ye)}},[H,U]),ie=(lt,Mt)=>{(lt==="left"?Q:ne)(Mt)},J=b.useCallback((lt,Mt)=>{lt==="left"?T==null||T(Mt,U):T==null||T(H,Mt)},[H,U]),le=lt=>{var Mt;return(Mt=c!=null?c:lt.titles)!==null&&Mt!==void 0?Mt:[]},oe=lt=>{P==null||P("left",lt)},re=lt=>{P==null||P("right",lt)},se=lt=>{const Mt=lt==="right"?H:U,Ye=yze(z),Je=Mt.filter(Jt=>!Ye.has(Jt)),mt=oO(Je),Tt=lt==="right"?Je.concat(n):n.filter(Jt=>!mt.has(Jt)),Xt=lt==="right"?"left":"right";te(Xt,[]),J(Xt,[]),M==null||M(Tt,lt,Je)},ge=()=>{se("left"),ie("left",null)},de=()=>{se("right"),ie("right",null)},pe=(lt,Mt,Ye)=>{te(lt,Je=>{let mt=[];if(Ye==="replace")mt=Mt;else if(Ye)mt=Array.from(new Set([].concat(Ne(Je),Ne(Mt))));else{const Tt=oO(Mt);mt=Je.filter(Xt=>!Tt.has(Xt))}return J(lt,mt),mt}),ie(lt,null)},fe=(lt,Mt)=>{pe("left",lt,Mt)},xe=(lt,Mt)=>{pe("right",lt,Mt)},Oe=lt=>k==null?void 0:k("left",lt.target.value),_e=lt=>k==null?void 0:k("right",lt.target.value),Te=()=>k==null?void 0:k("left",""),Fe=()=>k==null?void 0:k("right",""),Be=(lt,Mt,Ye,Je,mt)=>{Mt.has(Ye)&&(Mt.delete(Ye),ie(lt,null)),Je&&(Mt.add(Ye),ie(lt,mt))},Pe=(lt,Mt,Ye,Je)=>{(lt==="left"?X:ee)(Je,Mt,Ye)},ze=(lt,Mt,Ye,Je)=>{const mt=lt==="left",Tt=Ne(mt?H:U),Xt=new Set(Tt),Jt=Ne(mt?W:q).filter($t=>!($t!=null&&$t.disabled)),Gt=Jt.findIndex($t=>$t.key===Mt);Je&&Tt.length>0?Pe(lt,Jt,Xt,Gt):Be(lt,Xt,Mt,Ye,Gt);const St=Array.from(Xt);J(lt,St),e.selectedKeys||te(lt,St)},Ue=(lt,Mt,Ye)=>{ze("left",lt,Mt,Ye==null?void 0:Ye.shiftKey)},ke=(lt,Mt,Ye)=>{ze("right",lt,Mt,Ye==null?void 0:Ye.shiftKey)},Ee=lt=>{te("right",[]),M==null||M(n.filter(Mt=>!lt.includes(Mt)),"left",Ne(lt))},Ie=lt=>typeof s=="function"?s({direction:lt}):s||{},Ae=b.useContext(Fa),{hasFeedback:$e,status:He}=Ae,ot=lt=>Object.assign(Object.assign(Object.assign({},lt),{notFoundContent:(A==null?void 0:A("Transfer"))||we.createElement(oI,{componentName:"Transfer"})}),l),Ot=Ad(He,g),Wt=!O&&v,et=q.filter(lt=>U.includes(lt.key)&&!lt.disabled).length>0,ht=W.filter(lt=>H.includes(lt.key)&&!lt.disabled).length>0,Et=me(j,{[`${j}-disabled`]:u,[`${j}-customize-list`]:!!O,[`${j}-rtl`]:N==="rtl"},uf(j,Ot,$e),L==null?void 0:L.className,y,x,B,D),[gt]=Zo("Transfer",_o.Transfer),Pt=ot(gt),[wt,st]=le(Pt),nt=S!=null?S:L==null?void 0:L.selectionsIcon;return F(we.createElement("div",{className:Et,style:Object.assign(Object.assign({},L==null?void 0:L.style),o)},we.createElement(sA,Object.assign({prefixCls:`${j}-list`,titleText:wt,dataSource:W,filterOption:w,style:Ie("left"),checkedKeys:H,handleFilter:Oe,handleClear:Te,onItemSelect:Ue,onItemSelectAll:fe,render:C,showSearch:f,renderList:O,footer:E,onScroll:oe,disabled:u,direction:N==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:i[0],pagination:Wt,selectionsIcon:nt},Pt)),we.createElement(see,{className:`${j}-operation`,rightActive:ht,rightArrowText:a[0],moveToRight:de,leftActive:et,leftArrowText:a[1],moveToLeft:ge,style:d,disabled:u,direction:N,oneWay:p}),we.createElement(sA,Object.assign({prefixCls:`${j}-list`,titleText:st,dataSource:q,filterOption:w,style:Ie("right"),checkedKeys:U,handleFilter:_e,handleClear:Fe,onItemSelect:ke,onItemSelectAll:xe,onItemRemove:Ee,render:C,showSearch:f,renderList:O,footer:E,onScroll:re,disabled:u,direction:N==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:i[1],showRemove:p,pagination:Wt,selectionsIcon:nt},Pt))))};lO.List=sA,lO.Search=oee,lO.Operation=see;const jze=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Dze=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` h${r}&, div&-h${r}, div&-h${r} > textarea, h${r} - `]=Fze(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},zze=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},PC(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Hze=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:EC[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Wze=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${fe(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Vze=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),qze=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Uze=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Bze(e)),{[` + `]=jze(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Fze=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},$C(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Bze=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:SC[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),zze=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ue(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Hze=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Wze=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Vze=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Dze(e)),{[` & + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t} - `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),Hze(e)),zze(e)),{[` + `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),Bze(e)),Fze(e)),{[` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy - `]:Object.assign(Object.assign({},PC(e)),{marginInlineStart:e.marginXXS})}),Wze(e)),Vze(e)),qze()),{"&-rtl":{direction:"rtl"}})}},fee=tr("Typography",e=>[Uze(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),Gze=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:f,component:d,enterIcon:h=b.createElement(dDe,null)}=e,p=b.useRef(null),g=b.useRef(!1),v=b.useRef(null),[m,y]=b.useState(l);b.useEffect(()=>{y(l)},[l]),b.useEffect(()=>{var R;if(!((R=p.current)===null||R===void 0)&&R.resizableTextArea){const{textArea:A}=p.current.resizableTextArea;A.focus();const{length:N}=A.value;A.setSelectionRange(N,N)}},[]);const x=R=>{let{target:A}=R;y(A.value.replace(/[\n\r]/g,""))},S=()=>{g.current=!0},w=()=>{g.current=!1},C=R=>{let{keyCode:A}=R;g.current||(v.current=A)},E=()=>{c(m.trim())},O=R=>{let{keyCode:A,ctrlKey:N,altKey:L,metaKey:j,shiftKey:F}=R;v.current!==A||g.current||N||L||j||F||(A===Ze.ENTER?(E(),f==null||f()):A===Ze.ESC&&u())},$=()=>{E()},[P,M,k]=fee(t),T=me(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${d}`]:!!d},r,M,k);return P(b.createElement("div",{className:T,style:i},b.createElement(AZ,{ref:p,maxLength:o,value:m,onChange:x,onKeyDown:C,onKeyUp:O,onCompositionStart:S,onCompositionEnd:w,onBlur:$,"aria-label":n,rows:1,autoSize:s}),h!==null?Pa(h,{className:`${t}-edit-content-confirm`}):null))};var Kze=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{let{copyConfig:t,children:n}=e;const[r,i]=b.useState(!1),[a,o]=b.useState(!1),s=b.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),b.useEffect(()=>l,[]);const u=_n(f=>tHe(void 0,void 0,void 0,function*(){var d;f==null||f.preventDefault(),f==null||f.stopPropagation(),o(!0);try{const h=typeof t.text=="function"?yield t.text():t.text;eHe(h||o7e(n,!0).join("")||"",c),o(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(d=t.onCopy)===null||d===void 0||d.call(t,f)}catch(h){throw o(!1),h}}));return{copied:r,copyLoading:a,onClick:u}};function dA(e,t){return b.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const rHe=e=>{const t=b.useRef(void 0);return b.useEffect(()=>{t.current=e}),t.current},iHe=(e,t,n)=>b.useMemo(()=>e===!0?{title:t!=null?t:n}:b.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t!=null?t:n},e):{title:e},[e,t,n]);var aHe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:o,children:s,direction:l,style:c}=e,u=aHe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:d,typography:h}=b.useContext(Lt),p=l!=null?l:d,g=o?po(t,o):t,v=f("typography",n),[m,y,x]=fee(v),S=me(v,h==null?void 0:h.className,{[`${v}-rtl`]:p==="rtl"},i,a,y,x),w=Object.assign(Object.assign({},h==null?void 0:h.style),c);return m(b.createElement(r,Object.assign({className:S,style:w,ref:g},u),s))});function pee(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function hA(e,t,n){return e===!0||e===void 0?t:e||n&&t}function oHe(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const pA=e=>["string","number"].includes(typeof e),sHe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:l,loading:c}=e;const u=pee(a),f=pee(o),{copied:d,copy:h}=r!=null?r:{},p=n?d:h,g=hA(u[n?1:0],p),v=typeof g=="string"?g:p;return b.createElement(ro,{title:g},b.createElement("button",{type:"button",className:me(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":v,tabIndex:s},n?hA(f[1],b.createElement(hI,null),!0):hA(f[0],c?b.createElement(af,null):b.createElement(rDe,null),!0)))},fO=b.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=b.useRef(null);return b.useImperativeHandle(t,()=>({isExceed:()=>{const a=i.current;return a.scrollHeight>a.clientHeight},getHeight:()=>i.current.clientHeight})),b.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),lHe=e=>e.reduce((t,n)=>t+(pA(n)?String(n).length:1),0);function vee(e,t){let n=0;const r=[];for(let i=0;it){const c=t-n;return r.push(String(a).slice(0,c)),r}r.push(a),n=l}return e}const vA=0,gA=1,mA=2,yA=3,gee=4,dO={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function cHe(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:l}=e,c=b.useMemo(()=>da(r),[r]),u=b.useMemo(()=>lHe(c),[r]),f=b.useMemo(()=>i(c,!1),[r]),[d,h]=b.useState(null),p=b.useRef(null),g=b.useRef(null),v=b.useRef(null),m=b.useRef(null),y=b.useRef(null),[x,S]=b.useState(!1),[w,C]=b.useState(vA),[E,O]=b.useState(0),[$,P]=b.useState(null);Nn(()=>{C(t&&n&&u?gA:vA)},[n,r,a,t,c]),Nn(()=>{var R,A,N,L;if(w===gA){C(mA);const j=g.current&&getComputedStyle(g.current).whiteSpace;P(j)}else if(w===mA){const j=!!(!((R=v.current)===null||R===void 0)&&R.isExceed());C(j?yA:gee),h(j?[0,u]:null),S(j);const F=((A=v.current)===null||A===void 0?void 0:A.getHeight())||0,B=a===1?0:((N=m.current)===null||N===void 0?void 0:N.getHeight())||0,D=((L=y.current)===null||L===void 0?void 0:L.getHeight())||0,z=Math.max(F,B+D);O(z+1),l(j)}},[w]);const M=d?Math.ceil((d[0]+d[1])/2):0;Nn(()=>{var R;const[A,N]=d||[0,0];if(A!==N){const j=(((R=p.current)===null||R===void 0?void 0:R.getHeight())||0)>E;let F=M;N-A===1&&(F=j?A:N),h(j?[A,F]:[F,N])}},[d,M]);const k=b.useMemo(()=>{if(!t)return i(c,!1);if(w!==yA||!d||d[0]!==d[1]){const R=i(c,!1);return[gee,vA].includes(w)?R:b.createElement("span",{style:Object.assign(Object.assign({},dO),{WebkitLineClamp:a})},R)}return i(o?c:vee(c,d[0]),x)},[o,w,d,c].concat(Ne(s))),T={width:n,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return b.createElement(b.Fragment,null,k,w===mA&&b.createElement(b.Fragment,null,b.createElement(fO,{style:Object.assign(Object.assign(Object.assign({},T),dO),{WebkitLineClamp:a}),ref:v},f),b.createElement(fO,{style:Object.assign(Object.assign(Object.assign({},T),dO),{WebkitLineClamp:a-1}),ref:m},f),b.createElement(fO,{style:Object.assign(Object.assign(Object.assign({},T),dO),{WebkitLineClamp:1}),ref:y},i([],!0))),w===yA&&d&&d[0]!==d[1]&&b.createElement(fO,{style:Object.assign(Object.assign({},T),{top:400}),ref:p},i(vee(c,M),!0)),w===gA&&b.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const uHe=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:b.createElement(ro,Object.assign({open:n?void 0:!1},i),r)};var fHe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,style:a,type:o,disabled:s,children:l,ellipsis:c,editable:u,copyable:f,component:d,title:h}=e,p=fHe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:v}=b.useContext(Lt),[m]=Zo("Text"),y=b.useRef(null),x=b.useRef(null),S=g("typography",r),w=Or(p,["mark","code","delete","underline","strong","keyboard","italic"]),[C,E]=dA(u),[O,$]=Yn(!1,{value:E.editing}),{triggerType:P=["icon"]}=E,M=Ae=>{var $e;Ae&&(($e=E.onStart)===null||$e===void 0||$e.call(E)),$(Ae)},k=rHe(O);Nn(()=>{var Ae;!O&&k&&((Ae=x.current)===null||Ae===void 0||Ae.focus())},[O]);const T=Ae=>{Ae==null||Ae.preventDefault(),M(!0)},R=Ae=>{var $e;($e=E.onChange)===null||$e===void 0||$e.call(E,Ae),M(!1)},A=()=>{var Ae;(Ae=E.onCancel)===null||Ae===void 0||Ae.call(E),M(!1)},[N,L]=dA(f),{copied:j,copyLoading:F,onClick:B}=nHe({copyConfig:L,children:l}),[D,z]=b.useState(!1),[W,q]=b.useState(!1),[H,U]=b.useState(!1),[G,K]=b.useState(!1),[X,Q]=b.useState(!0),[ee,ne]=dA(c,{expandable:!1,symbol:Ae=>Ae?m==null?void 0:m.collapse:m==null?void 0:m.expand}),[te,ie]=Yn(ne.defaultExpanded||!1,{value:ne.expanded}),J=ee&&(!te||ne.expandable==="collapsible"),{rows:le=1}=ne,oe=b.useMemo(()=>J&&(ne.suffix!==void 0||ne.onEllipsis||ne.expandable||C||N),[J,ne,C,N]);Nn(()=>{ee&&!oe&&(z(KR("webkitLineClamp")),q(KR("textOverflow")))},[oe,ee]);const[re,se]=b.useState(J),ge=b.useMemo(()=>oe?!1:le===1?W:D,[oe,W,D]);Nn(()=>{se(ge&&J)},[ge,J]);const de=J&&(re?G:H),pe=J&&le===1&&re,ue=J&&le>1&&re,Se=(Ae,$e)=>{var Ve;ie($e.expanded),(Ve=ne.onExpand)===null||Ve===void 0||Ve.call(ne,Ae,$e)},[Oe,_e]=b.useState(0),Te=Ae=>{let{offsetWidth:$e}=Ae;_e($e)},je=Ae=>{var $e;U(Ae),H!==Ae&&(($e=ne.onEllipsis)===null||$e===void 0||$e.call(ne,Ae))};b.useEffect(()=>{const Ae=y.current;if(ee&&re&&Ae){const $e=oHe(Ae);G!==$e&&K($e)}},[ee,re,l,ue,X,Oe]),b.useEffect(()=>{const Ae=y.current;if(typeof IntersectionObserver=="undefined"||!Ae||!re||!J)return;const $e=new IntersectionObserver(()=>{Q(!!Ae.offsetParent)});return $e.observe(Ae),()=>{$e.disconnect()}},[re,J]);const Be=iHe(ne.tooltip,E.text,l),Pe=b.useMemo(()=>{if(!(!ee||re))return[E.text,l,h,Be.title].find(pA)},[ee,re,h,Be.title,de]);if(O)return b.createElement(Gze,{value:(n=E.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:R,onCancel:A,onEnd:E.onEnd,prefixCls:S,className:i,style:a,direction:v,component:d,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const He=()=>{const{expandable:Ae,symbol:$e}=ne;return Ae?b.createElement("button",{type:"button",key:"expand",className:`${S}-${te?"collapse":"expand"}`,onClick:Ve=>Se(Ve,{expanded:!te}),"aria-label":te?m.collapse:m==null?void 0:m.expand},typeof $e=="function"?$e(te):$e):null},Ue=()=>{if(!C)return;const{icon:Ae,tooltip:$e,tabIndex:Ve}=E,et=da($e)[0]||(m==null?void 0:m.edit),Tt=typeof et=="string"?et:"";return P.includes("icon")?b.createElement(ro,{key:"edit",title:$e===!1?"":et},b.createElement("button",{type:"button",ref:x,className:`${S}-edit`,onClick:T,"aria-label":Tt,tabIndex:Ve},Ae||b.createElement(JE,{role:"button"}))):null},ke=()=>N?b.createElement(sHe,Object.assign({key:"copy"},L,{prefixCls:S,copied:j,locale:m,onCopy:B,loading:F,iconOnly:l==null})):null,Ce=Ae=>[Ae&&He(),Ue(),ke()],Re=Ae=>[Ae&&!te&&b.createElement("span",{"aria-hidden":!0,key:"ellipsis"},hHe),ne.suffix,Ce(Ae)];return b.createElement(vo,{onResize:Te,disabled:!J},Ae=>b.createElement(uHe,{tooltipProps:Be,enableEllipsis:J,isEllipsis:de},b.createElement(hee,Object.assign({className:me({[`${S}-${o}`]:o,[`${S}-disabled`]:s,[`${S}-ellipsis`]:ee,[`${S}-ellipsis-single-line`]:pe,[`${S}-ellipsis-multiple-line`]:ue},i),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:ue?le:void 0}),component:d,ref:po(Ae,y,t),direction:v,onClick:P.includes("text")?T:void 0,"aria-label":Pe==null?void 0:Pe.toString(),title:h},w),b.createElement(cHe,{enableMeasure:J&&!re,text:l,rows:le,width:Oe,onEllipsis:je,expanded:te,miscDeps:[j,te,F,C,N,m]},($e,Ve)=>dHe(e,b.createElement(b.Fragment,null,$e.length>0&&Ve&&!te&&Pe?b.createElement("span",{key:"show-content","aria-hidden":!0},$e):$e,Re(Ve)))))))});var pHe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n,rel:r}=e,i=pHe(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete a.navigate,b.createElement(hO,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),gHe=b.forwardRef((e,t)=>b.createElement(hO,Object.assign({ref:t},e,{component:"div"})));var mHe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n}=e,r=mHe(e,["ellipsis"]);const i=b.useMemo(()=>n&&typeof n=="object"?Or(n,["expandable","rows"]):n,[n]);return b.createElement(hO,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},bHe=b.forwardRef(yHe);var xHe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{level:n=1}=e,r=xHe(e,["level"]),i=SHe.includes(n)?`h${n}`:"h1";return b.createElement(hO,Object.assign({ref:t},r,{component:i}))}),kb=hee;kb.Text=bHe,kb.Link=vHe,kb.Title=wHe,kb.Paragraph=gHe;const bA=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(zr(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function CHe(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function mee(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function EHe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var a=e.data[i];if(Array.isArray(a)){a.forEach(function(o){n.append("".concat(i,"[]"),o)});return}n.append(i,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(CHe(e,t),mee(t)):e.onSuccess(mee(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var OHe=function(){var e=ha(Zn().mark(function t(n,r){var i,a,o,s,l,c,u,f;return Zn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:c=function(){return c=ha(Zn().mark(function g(v){return Zn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(x){v.file(function(S){r(S)?(v.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),x(S)):x(null)})}));case 1:case"end":return y.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=ha(Zn().mark(function g(v){var m,y,x,S,w;return Zn().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:m=v.createReader(),y=[];case 2:return E.next=5,new Promise(function(O){m.readEntries(O,function(){return O([])})});case 5:if(x=E.sent,S=x.length,S){E.next=9;break}return E.abrupt("break",12);case 9:for(w=0;w{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${fe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${fe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + `]:Object.assign(Object.assign({},$C(e)),{marginInlineStart:e.marginXXS})}),zze(e)),Hze(e)),Wze()),{"&-rtl":{direction:"rtl"}})}},cee=tr("Typography",e=>[Vze(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),qze=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:f,component:d,enterIcon:h=b.createElement(uDe,null)}=e,p=b.useRef(null),v=b.useRef(!1),g=b.useRef(null),[m,y]=b.useState(l);b.useEffect(()=>{y(l)},[l]),b.useEffect(()=>{var R;if(!((R=p.current)===null||R===void 0)&&R.resizableTextArea){const{textArea:A}=p.current.resizableTextArea;A.focus();const{length:N}=A.value;A.setSelectionRange(N,N)}},[]);const x=R=>{let{target:A}=R;y(A.value.replace(/[\n\r]/g,""))},S=()=>{v.current=!0},w=()=>{v.current=!1},C=R=>{let{keyCode:A}=R;v.current||(g.current=A)},E=()=>{c(m.trim())},O=R=>{let{keyCode:A,ctrlKey:N,altKey:L,metaKey:j,shiftKey:F}=R;g.current!==A||v.current||N||L||j||F||(A===Ze.ENTER?(E(),f==null||f()):A===Ze.ESC&&u())},$=()=>{E()},[P,M,k]=cee(t),T=me(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${d}`]:!!d},r,M,k);return P(b.createElement("div",{className:T,style:i},b.createElement(RZ,{ref:p,maxLength:o,value:m,onChange:x,onKeyDown:C,onKeyUp:O,onCompositionStart:S,onCompositionEnd:w,onBlur:$,"aria-label":n,rows:1,autoSize:s}),h!==null?Pa(h,{className:`${t}-edit-content-confirm`}):null))};var Uze=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{let{copyConfig:t,children:n}=e;const[r,i]=b.useState(!1),[a,o]=b.useState(!1),s=b.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),b.useEffect(()=>l,[]);const u=On(f=>Jze(void 0,void 0,void 0,function*(){var d;f==null||f.preventDefault(),f==null||f.stopPropagation(),o(!0);try{const h=typeof t.text=="function"?yield t.text():t.text;Qze(h||i7e(n,!0).join("")||"",c),o(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(d=t.onCopy)===null||d===void 0||d.call(t,f)}catch(h){throw o(!1),h}}));return{copied:r,copyLoading:a,onClick:u}};function lA(e,t){return b.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const tHe=e=>{const t=b.useRef(void 0);return b.useEffect(()=>{t.current=e}),t.current},nHe=(e,t,n)=>b.useMemo(()=>e===!0?{title:t!=null?t:n}:b.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t!=null?t:n},e):{title:e},[e,t,n]);var rHe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:o,children:s,direction:l,style:c}=e,u=rHe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:d,typography:h}=b.useContext(At),p=l!=null?l:d,v=o?po(t,o):t,g=f("typography",n),[m,y,x]=cee(g),S=me(g,h==null?void 0:h.className,{[`${g}-rtl`]:p==="rtl"},i,a,y,x),w=Object.assign(Object.assign({},h==null?void 0:h.style),c);return m(b.createElement(r,Object.assign({className:S,style:w,ref:v},u),s))});function dee(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function cA(e,t,n){return e===!0||e===void 0?t:e||n&&t}function iHe(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const uA=e=>["string","number"].includes(typeof e),aHe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:l,loading:c}=e;const u=dee(a),f=dee(o),{copied:d,copy:h}=r!=null?r:{},p=n?d:h,v=cA(u[n?1:0],p),g=typeof v=="string"?v:p;return b.createElement(ro,{title:v},b.createElement("button",{type:"button",className:me(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":g,tabIndex:s},n?cA(f[1],b.createElement(cI,null),!0):cA(f[0],c?b.createElement(af,null):b.createElement(tDe,null),!0)))},cO=b.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=b.useRef(null);return b.useImperativeHandle(t,()=>({isExceed:()=>{const a=i.current;return a.scrollHeight>a.clientHeight},getHeight:()=>i.current.clientHeight})),b.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),oHe=e=>e.reduce((t,n)=>t+(uA(n)?String(n).length:1),0);function hee(e,t){let n=0;const r=[];for(let i=0;it){const c=t-n;return r.push(String(a).slice(0,c)),r}r.push(a),n=l}return e}const fA=0,dA=1,hA=2,pA=3,pee=4,uO={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function sHe(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:l}=e,c=b.useMemo(()=>da(r),[r]),u=b.useMemo(()=>oHe(c),[r]),f=b.useMemo(()=>i(c,!1),[r]),[d,h]=b.useState(null),p=b.useRef(null),v=b.useRef(null),g=b.useRef(null),m=b.useRef(null),y=b.useRef(null),[x,S]=b.useState(!1),[w,C]=b.useState(fA),[E,O]=b.useState(0),[$,P]=b.useState(null);Ln(()=>{C(t&&n&&u?dA:fA)},[n,r,a,t,c]),Ln(()=>{var R,A,N,L;if(w===dA){C(hA);const j=v.current&&getComputedStyle(v.current).whiteSpace;P(j)}else if(w===hA){const j=!!(!((R=g.current)===null||R===void 0)&&R.isExceed());C(j?pA:pee),h(j?[0,u]:null),S(j);const F=((A=g.current)===null||A===void 0?void 0:A.getHeight())||0,B=a===1?0:((N=m.current)===null||N===void 0?void 0:N.getHeight())||0,D=((L=y.current)===null||L===void 0?void 0:L.getHeight())||0,z=Math.max(F,B+D);O(z+1),l(j)}},[w]);const M=d?Math.ceil((d[0]+d[1])/2):0;Ln(()=>{var R;const[A,N]=d||[0,0];if(A!==N){const j=(((R=p.current)===null||R===void 0?void 0:R.getHeight())||0)>E;let F=M;N-A===1&&(F=j?A:N),h(j?[A,F]:[F,N])}},[d,M]);const k=b.useMemo(()=>{if(!t)return i(c,!1);if(w!==pA||!d||d[0]!==d[1]){const R=i(c,!1);return[pee,fA].includes(w)?R:b.createElement("span",{style:Object.assign(Object.assign({},uO),{WebkitLineClamp:a})},R)}return i(o?c:hee(c,d[0]),x)},[o,w,d,c].concat(Ne(s))),T={width:n,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return b.createElement(b.Fragment,null,k,w===hA&&b.createElement(b.Fragment,null,b.createElement(cO,{style:Object.assign(Object.assign(Object.assign({},T),uO),{WebkitLineClamp:a}),ref:g},f),b.createElement(cO,{style:Object.assign(Object.assign(Object.assign({},T),uO),{WebkitLineClamp:a-1}),ref:m},f),b.createElement(cO,{style:Object.assign(Object.assign(Object.assign({},T),uO),{WebkitLineClamp:1}),ref:y},i([],!0))),w===pA&&d&&d[0]!==d[1]&&b.createElement(cO,{style:Object.assign(Object.assign({},T),{top:400}),ref:p},i(hee(c,M),!0)),w===dA&&b.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}const lHe=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:b.createElement(ro,Object.assign({open:n?void 0:!1},i),r)};var cHe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,style:a,type:o,disabled:s,children:l,ellipsis:c,editable:u,copyable:f,component:d,title:h}=e,p=cHe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:v,direction:g}=b.useContext(At),[m]=Zo("Text"),y=b.useRef(null),x=b.useRef(null),S=v("typography",r),w=Or(p,["mark","code","delete","underline","strong","keyboard","italic"]),[C,E]=lA(u),[O,$]=Yn(!1,{value:E.editing}),{triggerType:P=["icon"]}=E,M=Ae=>{var $e;Ae&&(($e=E.onStart)===null||$e===void 0||$e.call(E)),$(Ae)},k=tHe(O);Ln(()=>{var Ae;!O&&k&&((Ae=x.current)===null||Ae===void 0||Ae.focus())},[O]);const T=Ae=>{Ae==null||Ae.preventDefault(),M(!0)},R=Ae=>{var $e;($e=E.onChange)===null||$e===void 0||$e.call(E,Ae),M(!1)},A=()=>{var Ae;(Ae=E.onCancel)===null||Ae===void 0||Ae.call(E),M(!1)},[N,L]=lA(f),{copied:j,copyLoading:F,onClick:B}=eHe({copyConfig:L,children:l}),[D,z]=b.useState(!1),[W,q]=b.useState(!1),[H,U]=b.useState(!1),[G,K]=b.useState(!1),[X,Q]=b.useState(!0),[ee,ne]=lA(c,{expandable:!1,symbol:Ae=>Ae?m==null?void 0:m.collapse:m==null?void 0:m.expand}),[te,ie]=Yn(ne.defaultExpanded||!1,{value:ne.expanded}),J=ee&&(!te||ne.expandable==="collapsible"),{rows:le=1}=ne,oe=b.useMemo(()=>J&&(ne.suffix!==void 0||ne.onEllipsis||ne.expandable||C||N),[J,ne,C,N]);Ln(()=>{ee&&!oe&&(z(VR("webkitLineClamp")),q(VR("textOverflow")))},[oe,ee]);const[re,se]=b.useState(J),ge=b.useMemo(()=>oe?!1:le===1?W:D,[oe,W,D]);Ln(()=>{se(ge&&J)},[ge,J]);const de=J&&(re?G:H),pe=J&&le===1&&re,fe=J&&le>1&&re,xe=(Ae,$e)=>{var He;ie($e.expanded),(He=ne.onExpand)===null||He===void 0||He.call(ne,Ae,$e)},[Oe,_e]=b.useState(0),Te=Ae=>{let{offsetWidth:$e}=Ae;_e($e)},Fe=Ae=>{var $e;U(Ae),H!==Ae&&(($e=ne.onEllipsis)===null||$e===void 0||$e.call(ne,Ae))};b.useEffect(()=>{const Ae=y.current;if(ee&&re&&Ae){const $e=iHe(Ae);G!==$e&&K($e)}},[ee,re,l,fe,X,Oe]),b.useEffect(()=>{const Ae=y.current;if(typeof IntersectionObserver=="undefined"||!Ae||!re||!J)return;const $e=new IntersectionObserver(()=>{Q(!!Ae.offsetParent)});return $e.observe(Ae),()=>{$e.disconnect()}},[re,J]);const Be=nHe(ne.tooltip,E.text,l),Pe=b.useMemo(()=>{if(!(!ee||re))return[E.text,l,h,Be.title].find(uA)},[ee,re,h,Be.title,de]);if(O)return b.createElement(qze,{value:(n=E.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:R,onCancel:A,onEnd:E.onEnd,prefixCls:S,className:i,style:a,direction:g,component:d,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const ze=()=>{const{expandable:Ae,symbol:$e}=ne;return Ae?b.createElement("button",{type:"button",key:"expand",className:`${S}-${te?"collapse":"expand"}`,onClick:He=>xe(He,{expanded:!te}),"aria-label":te?m.collapse:m==null?void 0:m.expand},typeof $e=="function"?$e(te):$e):null},Ue=()=>{if(!C)return;const{icon:Ae,tooltip:$e,tabIndex:He}=E,ot=da($e)[0]||(m==null?void 0:m.edit),Ot=typeof ot=="string"?ot:"";return P.includes("icon")?b.createElement(ro,{key:"edit",title:$e===!1?"":ot},b.createElement("button",{type:"button",ref:x,className:`${S}-edit`,onClick:T,"aria-label":Ot,tabIndex:He},Ae||b.createElement(ZE,{role:"button"}))):null},ke=()=>N?b.createElement(aHe,Object.assign({key:"copy"},L,{prefixCls:S,copied:j,locale:m,onCopy:B,loading:F,iconOnly:l==null})):null,Ee=Ae=>[Ae&&ze(),Ue(),ke()],Ie=Ae=>[Ae&&!te&&b.createElement("span",{"aria-hidden":!0,key:"ellipsis"},fHe),ne.suffix,Ee(Ae)];return b.createElement(vo,{onResize:Te,disabled:!J},Ae=>b.createElement(lHe,{tooltipProps:Be,enableEllipsis:J,isEllipsis:de},b.createElement(fee,Object.assign({className:me({[`${S}-${o}`]:o,[`${S}-disabled`]:s,[`${S}-ellipsis`]:ee,[`${S}-ellipsis-single-line`]:pe,[`${S}-ellipsis-multiple-line`]:fe},i),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:fe?le:void 0}),component:d,ref:po(Ae,y,t),direction:g,onClick:P.includes("text")?T:void 0,"aria-label":Pe==null?void 0:Pe.toString(),title:h},w),b.createElement(sHe,{enableMeasure:J&&!re,text:l,rows:le,width:Oe,onEllipsis:Fe,expanded:te,miscDeps:[j,te,F,C,N,m]},($e,He)=>uHe(e,b.createElement(b.Fragment,null,$e.length>0&&He&&!te&&Pe?b.createElement("span",{key:"show-content","aria-hidden":!0},$e):$e,Ie(He)))))))});var dHe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n,rel:r}=e,i=dHe(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete a.navigate,b.createElement(fO,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),pHe=b.forwardRef((e,t)=>b.createElement(fO,Object.assign({ref:t},e,{component:"div"})));var vHe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n}=e,r=vHe(e,["ellipsis"]);const i=b.useMemo(()=>n&&typeof n=="object"?Or(n,["expandable","rows"]):n,[n]);return b.createElement(fO,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},mHe=b.forwardRef(gHe);var yHe=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 i=0,r=Object.getOwnPropertySymbols(e);i{const{level:n=1}=e,r=yHe(e,["level"]),i=bHe.includes(n)?`h${n}`:"h1";return b.createElement(fO,Object.assign({ref:t},r,{component:i}))}),kb=fee;kb.Text=mHe,kb.Link=hHe,kb.Title=xHe,kb.Paragraph=pHe;const vA=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(zr(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function SHe(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function vee(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function wHe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var a=e.data[i];if(Array.isArray(a)){a.forEach(function(o){n.append("".concat(i,"[]"),o)});return}n.append(i,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(SHe(e,t),vee(t)):e.onSuccess(vee(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var CHe=function(){var e=ha(Zn().mark(function t(n,r){var i,a,o,s,l,c,u,f;return Zn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:c=function(){return c=ha(Zn().mark(function v(g){return Zn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(x){g.file(function(S){r(S)?(g.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=g.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),x(S)):x(null)})}));case 1:case"end":return y.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=ha(Zn().mark(function v(g){var m,y,x,S,w;return Zn().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:m=g.createReader(),y=[];case 2:return E.next=5,new Promise(function(O){m.readEntries(O,function(){return O([])})});case 5:if(x=E.sent,S=x.length,S){E.next=9;break}return E.abrupt("break",12);case 9:for(w=0;w{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ue(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ue(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) - `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${fe(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, + `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ue(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, p${t}-text, p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},THe=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:a}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},bc()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},Qo),{padding:`0 ${fe(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + `]:{color:e.colorTextDisabled}}}}}},MHe=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:a}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},bc()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},Qo),{padding:`0 ${ue(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` ${l}:focus-visible, &.picture ${l} - `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},RHe=e=>{const{componentCls:t}=e,n=new ur("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new ur("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:yR(e)},n,r]},IHe=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` + `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},kHe=e=>{const{componentCls:t}=e,n=new fr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new fr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:pR(e)},n,r]},THe=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` ${o}${o}-picture, ${o}${o}-picture-card, ${o}${o}-picture-circle - `]:{[s]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Qo),{width:r,height:r,lineHeight:fe(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${fe(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${Ng[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Ng.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},AHe=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` + `]:{[s]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Qo),{width:r,height:r,lineHeight:ue(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${ue(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${Lg[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Lg.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},RHe=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper - `]:Object.assign(Object.assign({},bc()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${fe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${fe(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${fe(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + `]:Object.assign(Object.assign({},bc()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ue(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ue(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${n}-eye, ${n}-download, ${n}-delete - `]:{zIndex:10,width:r,margin:`0 ${fe(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${fe(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${fe(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},NHe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},LHe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},er(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},jHe=tr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:a}=e,o=$n(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[LHe(o),kHe(o),IHe(o),AHe(o),THe(o),RHe(o),NHe(o),D1(o)]},e=>({actionsColor:e.colorTextDescription}));function pO(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function vO(e,t){const n=Ne(t),r=n.findIndex(i=>{let{uid:a}=i;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function CA(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function DHe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const FHe=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},yee=e=>e.indexOf("image/")===0,BHe=e=>{if(e.type&&!e.thumbUrl)return yee(e.type);const t=e.thumbUrl||e.url||"",n=FHe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Hd=200;function zHe(e){return new Promise(t=>{if(!e.type||!yee(e.type)){t("");return}const n=document.createElement("canvas");n.width=Hd,n.height=Hd,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Hd}px; height: ${Hd}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=Hd,l=Hd,c=0,u=0;a>o?(l=o*(Hd/a),u=-(l-s)/2):(s=a*(Hd/o),c=-(s-l)/2),r.drawImage(i,c,u,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(f)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const HHe=b.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:a,listType:o,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:d,isImgUrl:h,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:v,previewIcon:m,removeIcon:y,downloadIcon:x,extra:S,onPreview:w,onDownload:C,onClose:E}=e;var O,$;const{status:P}=s,[M,k]=b.useState(P);b.useEffect(()=>{P!=="removed"&&k(P)},[P]);const[T,R]=b.useState(!1);b.useEffect(()=>{const te=setTimeout(()=>{R(!0)},300);return()=>{clearTimeout(te)}},[]);const A=u(s);let N=b.createElement("div",{className:`${n}-icon`},A);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(M==="uploading"||!s.thumbUrl&&!s.url){const te=me(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:M!=="uploading"});N=b.createElement("div",{className:te},A)}else{const te=h!=null&&h(s)?b.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):A,ie=me(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:h&&!h(s)});N=b.createElement("a",{className:ie,onClick:J=>w(s,J),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},te)}const L=me(`${n}-list-item`,`${n}-list-item-${M}`),j=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,F=(typeof g=="function"?g(s):g)?f((typeof y=="function"?y(s):y)||b.createElement(QE,null),()=>E(s),n,a.removeFile,!0):null,B=(typeof v=="function"?v(s):v)&&M==="done"?f((typeof x=="function"?x(s):x)||b.createElement(A5,null),()=>C(s),n,a.downloadFile):null,D=o!=="picture-card"&&o!=="picture-circle"&&b.createElement("span",{key:"download-delete",className:me(`${n}-list-item-actions`,{picture:o==="picture"})},B,F),z=typeof S=="function"?S(s):S,W=z&&b.createElement("span",{className:`${n}-list-item-extra`},z),q=me(`${n}-list-item-name`),H=s.url?b.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:q,title:s.name},j,{href:s.url,onClick:te=>w(s,te)}),s.name,W):b.createElement("span",{key:"view",className:q,onClick:te=>w(s,te),title:s.name},s.name,W),U=(typeof p=="function"?p(s):p)&&(s.url||s.thumbUrl)?b.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:te=>w(s,te),title:a.previewFile},typeof m=="function"?m(s):m||b.createElement(d5,null)):null,G=(o==="picture-card"||o==="picture-circle")&&M!=="uploading"&&b.createElement("span",{className:`${n}-list-item-actions`},U,M==="done"&&B,F),{getPrefixCls:K}=b.useContext(Lt),X=K(),Q=b.createElement("div",{className:L},N,H,D,G,T&&b.createElement(Jo,{motionName:`${X}-fade`,visible:M==="uploading",motionDeadline:2e3},te=>{let{className:ie}=te;const J="percent"in s?b.createElement(q7e,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return b.createElement("div",{className:me(`${n}-list-item-progress`,ie)},J)})),ee=s.response&&typeof s.response=="string"?s.response:((O=s.error)===null||O===void 0?void 0:O.statusText)||(($=s.error)===null||$===void 0?void 0:$.message)||a.uploadError,ne=M==="error"?b.createElement(ro,{title:ee,getPopupContainer:te=>te.parentNode},Q):Q;return b.createElement("div",{className:me(`${n}-list-item-container`,r),style:i,ref:t},d?d(ne,s,l,{download:C.bind(null,s),preview:w.bind(null,s),remove:E.bind(null,s)}):ne)}),WHe=(e,t)=>{const{listType:n="text",previewFile:r=zHe,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:c=BHe,prefixCls:u,items:f=[],showPreviewIcon:d=!0,showRemoveIcon:h=!0,showDownloadIcon:p=!1,removeIcon:g,previewIcon:v,downloadIcon:m,extra:y,progress:x={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:w=!0,itemRender:C,disabled:E}=e,O=pI(),[$,P]=b.useState(!1),M=["picture-card","picture-circle"].includes(n);b.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(W=>{!(W.originFileObj instanceof File||W.originFileObj instanceof Blob)||W.thumbUrl!==void 0||(W.thumbUrl="",r==null||r(W.originFileObj).then(q=>{W.thumbUrl=q||"",O()}))})},[n,f,r]),b.useEffect(()=>{P(!0)},[]);const k=(W,q)=>{if(i)return q==null||q.preventDefault(),i(W)},T=W=>{typeof a=="function"?a(W):W.url&&window.open(W.url)},R=W=>{o==null||o(W)},A=W=>{if(l)return l(W,n);const q=W.status==="uploading";if(n.startsWith("picture")){const H=n==="picture"?b.createElement(af,null):s.uploading,U=c!=null&&c(W)?b.createElement(HDe,null):b.createElement(mDe,null);return q?H:U}return q?b.createElement(af,null):b.createElement(FDe,null)},N=(W,q,H,U,G)=>{const K={type:"text",size:"small",title:U,onClick:X=>{var Q,ee;q(),b.isValidElement(W)&&((ee=(Q=W.props).onClick)===null||ee===void 0||ee.call(Q,X))},className:`${H}-list-item-action`};return G&&(K.disabled=E),b.isValidElement(W)?b.createElement(zn,Object.assign({},K,{icon:Pa(W,Object.assign(Object.assign({},W.props),{onClick:()=>{}}))})):b.createElement(zn,Object.assign({},K),b.createElement("span",null,W))};b.useImperativeHandle(t,()=>({handlePreview:k,handleDownload:T}));const{getPrefixCls:L}=b.useContext(Lt),j=L("upload",u),F=L(),B=me(`${j}-list`,`${j}-list-${n}`),D=b.useMemo(()=>Or(Hg(F),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[F]),z=Object.assign(Object.assign({},M?{}:D),{motionDeadline:2e3,motionName:`${j}-${M?"animate-inline":"animate"}`,keys:Ne(f.map(W=>({key:W.uid,file:W}))),motionAppear:$});return b.createElement("div",{className:B},b.createElement(ZT,Object.assign({},z,{component:!1}),W=>{let{key:q,file:H,className:U,style:G}=W;return b.createElement(HHe,{key:q,locale:s,prefixCls:j,className:U,style:G,file:H,items:f,progress:x,listType:n,isImgUrl:c,showPreviewIcon:d,showRemoveIcon:h,showDownloadIcon:p,removeIcon:g,previewIcon:v,downloadIcon:m,extra:y,iconRender:A,actionIconRender:N,itemRender:C,onPreview:k,onDownload:T,onClose:R})}),S&&b.createElement(Jo,Object.assign({},z,{visible:w,forceRender:!0}),W=>{let{className:q,style:H}=W;return Pa(S,U=>({className:me(U.className,q),style:Object.assign(Object.assign(Object.assign({},H),{pointerEvents:q?"none":void 0}),U.style)}))}))},VHe=b.forwardRef(WHe);var qHe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const Tb=`__LIST_IGNORE_${Date.now()}__`,UHe=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:d,locale:h,iconRender:p,isImageUrl:g,progress:v,prefixCls:m,className:y,type:x="select",children:S,style:w,itemRender:C,maxCount:E,data:O={},multiple:$=!1,hasControlInside:P=!0,action:M="",accept:k="",supportServerRender:T=!0,rootClassName:R}=e,A=b.useContext(mo),N=d!=null?d:A,[L,j]=Yn(r||[],{value:n,postState:Ce=>Ce!=null?Ce:[]}),[F,B]=b.useState("drop"),D=b.useRef(null),z=b.useRef(null);b.useMemo(()=>{const Ce=Date.now();(n||[]).forEach((Re,Ae)=>{!Re.uid&&!Object.isFrozen(Re)&&(Re.uid=`__AUTO__${Ce}_${Ae}__`)})},[n]);const W=(Ce,Re,Ae)=>{let $e=Ne(Re),Ve=!1;E===1?$e=$e.slice(-1):E&&(Ve=$e.length>E,$e=$e.slice(0,E)),ys.flushSync(()=>{j($e)});const et={file:Ce,fileList:$e};Ae&&(et.event=Ae),(!Ve||Ce.status==="removed"||$e.some(Tt=>Tt.uid===Ce.uid))&&ys.flushSync(()=>{c==null||c(et)})},q=(Ce,Re)=>qHe(void 0,void 0,void 0,function*(){const{beforeUpload:Ae,transformFile:$e}=e;let Ve=Ce;if(Ae){const et=yield Ae(Ce,Re);if(et===!1)return!1;if(delete Ce[Tb],et===Tb)return Object.defineProperty(Ce,Tb,{value:!0,configurable:!0}),!1;typeof et=="object"&&et&&(Ve=et)}return $e&&(Ve=yield $e(Ve)),Ve}),H=Ce=>{const Re=Ce.filter(Ve=>!Ve.file[Tb]);if(!Re.length)return;const Ae=Re.map(Ve=>pO(Ve.file));let $e=Ne(L);Ae.forEach(Ve=>{$e=vO(Ve,$e)}),Ae.forEach((Ve,et)=>{let Tt=Ve;if(Re[et].parsedFile)Ve.status="uploading";else{const{originFileObj:Mt}=Ve;let at;try{at=new File([Mt],Mt.name,{type:Mt.type})}catch(ht){at=new Blob([Mt],{type:Mt.type}),at.name=Mt.name,at.lastModifiedDate=new Date,at.lastModified=new Date().getTime()}at.uid=Ve.uid,Tt=at}W(Tt,$e)})},U=(Ce,Re,Ae)=>{try{typeof Ce=="string"&&(Ce=JSON.parse(Ce))}catch(et){}if(!CA(Re,L))return;const $e=pO(Re);$e.status="done",$e.percent=100,$e.response=Ce,$e.xhr=Ae;const Ve=vO($e,L);W($e,Ve)},G=(Ce,Re)=>{if(!CA(Re,L))return;const Ae=pO(Re);Ae.status="uploading",Ae.percent=Ce.percent;const $e=vO(Ae,L);W(Ae,$e,Ce)},K=(Ce,Re,Ae)=>{if(!CA(Ae,L))return;const $e=pO(Ae);$e.error=Ce,$e.response=Re,$e.status="error";const Ve=vO($e,L);W($e,Ve)},X=Ce=>{let Re;Promise.resolve(typeof i=="function"?i(Ce):i).then(Ae=>{var $e;if(Ae===!1)return;const Ve=DHe(Ce,L);Ve&&(Re=Object.assign(Object.assign({},Ce),{status:"removed"}),L==null||L.forEach(et=>{const Tt=Re.uid!==void 0?"uid":"name";et[Tt]===Re[Tt]&&!Object.isFrozen(et)&&(et.status="removed")}),($e=D.current)===null||$e===void 0||$e.abort(Re),W(Re,Ve))})},Q=Ce=>{B(Ce.type),Ce.type==="drop"&&(u==null||u(Ce))};b.useImperativeHandle(t,()=>({onBatchStart:H,onSuccess:U,onProgress:G,onError:K,fileList:L,upload:D.current,nativeElement:z.current}));const{getPrefixCls:ee,direction:ne,upload:te}=b.useContext(Lt),ie=ee("upload",m),J=Object.assign(Object.assign({onBatchStart:H,onError:K,onProgress:G,onSuccess:U},e),{data:O,multiple:$,action:M,accept:k,supportServerRender:T,prefixCls:ie,disabled:N,beforeUpload:q,onChange:void 0,hasControlInside:P});delete J.className,delete J.style,(!S||N)&&delete J.id;const le=`${ie}-wrapper`,[oe,re,se]=jHe(ie,le),[ge]=Zo("Upload",_o.Upload),{showRemoveIcon:de,showPreviewIcon:pe,showDownloadIcon:ue,removeIcon:Se,previewIcon:Oe,downloadIcon:_e,extra:Te}=typeof a=="boolean"?{}:a,je=typeof de=="undefined"?!N:de,Be=(Ce,Re)=>a?b.createElement(VHe,{prefixCls:ie,listType:o,items:L,previewFile:f,onPreview:s,onDownload:l,onRemove:X,showRemoveIcon:je,showPreviewIcon:pe,showDownloadIcon:ue,removeIcon:Se,previewIcon:Oe,downloadIcon:_e,iconRender:p,extra:Te,locale:Object.assign(Object.assign({},ge),h),isImageUrl:g,progress:v,appendAction:Ce,appendActionVisible:Re,itemRender:C,disabled:N}):Ce,Pe=me(le,y,R,re,se,te==null?void 0:te.className,{[`${ie}-rtl`]:ne==="rtl",[`${ie}-picture-card-wrapper`]:o==="picture-card",[`${ie}-picture-circle-wrapper`]:o==="picture-circle"}),He=Object.assign(Object.assign({},te==null?void 0:te.style),w);if(x==="drag"){const Ce=me(re,ie,`${ie}-drag`,{[`${ie}-drag-uploading`]:L.some(Re=>Re.status==="uploading"),[`${ie}-drag-hover`]:F==="dragover",[`${ie}-disabled`]:N,[`${ie}-rtl`]:ne==="rtl"});return oe(b.createElement("span",{className:Pe,ref:z},b.createElement("div",{className:Ce,style:He,onDrop:Q,onDragOver:Q,onDragLeave:Q},b.createElement(wA,Object.assign({},J,{ref:D,className:`${ie}-btn`}),b.createElement("div",{className:`${ie}-drag-container`},S))),Be()))}const Ue=me(ie,`${ie}-select`,{[`${ie}-disabled`]:N,[`${ie}-hidden`]:!S}),ke=b.createElement("div",{className:Ue},b.createElement(wA,Object.assign({},J,{ref:D})));return oe(o==="picture-card"||o==="picture-circle"?b.createElement("span",{className:Pe,ref:z},Be(ke,!!S)):b.createElement("span",{className:Pe,ref:z},ke,Be()))},bee=b.forwardRef(UHe);var GHe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{style:n,height:r,hasControlInside:i=!1}=e,a=GHe(e,["style","height","hasControlInside"]);return b.createElement(bee,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),gO=bee;gO.Dragger=KHe,gO.LIST_IGNORE=Tb;var YHe=typeof Element!="undefined",XHe=typeof Map=="function",ZHe=typeof Set=="function",QHe=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function mO(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!mO(e[r],t[r]))return!1;return!0}var a;if(XHe&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!mO(r.value[1],t.get(r.value[0])))return!1;return!0}if(ZHe&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(QHe&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(YHe&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!mO(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var JHe=function(t,n){try{return mO(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const eWe=rn(JHe);var tWe=function(e,t,n,r,i,a,o,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},nWe=tWe;const xee=rn(nWe);var rWe=function(t,n,r,i){var a=r?r.call(i,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),s=Object.keys(n);if(o.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(See||{}),EA={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},wee=Object.values(See),OA={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},aWe=Object.entries(OA).reduce((e,[t,n])=>(e[n]=t,e),{}),$c="data-rh",_m={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},$m=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},oWe=e=>{let t=$m(e,"title");const n=$m(e,_m.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=$m(e,_m.DEFAULT_TITLE);return t||r||void 0},sWe=e=>$m(e,_m.ON_CHANGE_CLIENT_STATE)||(()=>{}),_A=(e,t)=>t.filter(n=>typeof n[e]!="undefined").map(n=>n[e]).reduce((n,r)=>Ye(Ye({},n),r),{}),lWe=(e,t)=>t.filter(n=>typeof n.base!="undefined").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let a=0;aconsole&&typeof console.warn=="function"&&console.warn(e),Rb=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]!="undefined"&&cWe(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,a)=>{const o={};a.filter(l=>{let c;const u=Object.keys(l);for(let d=0;di.push(l));const s=Object.keys(o);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:lWe(["href"],e),bodyAttributes:_A("bodyAttributes",e),defer:$m(e,_m.DEFER),encode:$m(e,_m.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:_A("htmlAttributes",e),linkTags:Rb("link",["rel","href"],e),metaTags:Rb("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Rb("noscript",["innerHTML"],e),onChangeClientState:sWe(e),scriptTags:Rb("script",["src","innerHTML"],e),styleTags:Rb("style",["cssText"],e),title:oWe(e),titleAttributes:_A("titleAttributes",e),prioritizeSeoTags:uWe(e,_m.PRIORITIZE_SEO_TAGS)}),Cee=e=>Array.isArray(e)?e.join(""):e,dWe=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(dWe(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Eee=(e,t)=>Rn(Ye({},e),{[t]:void 0}),hWe=["noscript","script","style"],PA=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Oee=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]!="undefined"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),pWe=(e,t,n,r)=>{const i=Oee(n),a=Cee(t);return i?`<${e} ${$c}="true" ${i}>${PA(a,r)}`:`<${e} ${$c}="true">${PA(a,r)}`},vWe=(e,t,n=!0)=>t.reduce((r,i)=>{const a=i,o=Object.keys(a).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const f=typeof a[u]=="undefined"?u:`${u}="${PA(a[u],n)}"`;return c?`${c} ${f}`:f},""),s=a.innerHTML||a.cssText||"",l=hWe.indexOf(e)===-1;return`${r}<${e} ${$c}="true" ${o}${l?"/>":`>${s}`}`},""),_ee=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=OA[r];return n[i||r]=e[r],n},t),gWe=(e,t,n)=>{const r={key:t,[$c]:!0},i=_ee(n,r);return[we.createElement("title",i,t)]},yO=(e,t)=>t.map((n,r)=>{const i={key:r,[$c]:!0};return Object.keys(n).forEach(a=>{const s=OA[a]||a;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[a]}),we.createElement(e,i)}),Pl=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>gWe(e,t.title,t.titleAttributes),toString:()=>pWe(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>_ee(t),toString:()=>Oee(t)};default:return{toComponent:()=>yO(e,t),toString:()=>vWe(e,t,n)}}},mWe=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=$A(e,EA.meta),a=$A(t,EA.link),o=$A(n,EA.script);return{priorityMethods:{toComponent:()=>[...yO("meta",i.priority),...yO("link",a.priority),...yO("script",o.priority)],toString:()=>`${Pl("meta",i.priority,r)} ${Pl("link",a.priority,r)} ${Pl("script",o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},yWe=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:f,scriptTags:d}=e,h={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:h,linkTags:u,metaTags:f,scriptTags:d}=mWe(e)),{priority:h,base:Pl("base",t,r),bodyAttributes:Pl("bodyAttributes",n,r),htmlAttributes:Pl("htmlAttributes",i,r),link:Pl("link",u,r),meta:Pl("meta",f,r),noscript:Pl("noscript",a,r),script:Pl("script",d,r),style:Pl("style",o,r),title:Pl("title",{title:s,titleAttributes:l},r)}},$ee=yWe,bO=[],Pee=!!(typeof window!="undefined"&&window.document&&window.document.createElement),MA=class{constructor(e,t){Wu(this,"instances",[]);Wu(this,"canUseDOM",Pee);Wu(this,"context");Wu(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?bO:this.instances,add:e=>{(this.canUseDOM?bO:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?bO:this.instances).indexOf(e);(this.canUseDOM?bO:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=$ee({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},bWe={},Mee=we.createContext(bWe),kee=(Lv=class extends b.Component{constructor(n){super(n);Wu(this,"helmetData");this.helmetData=new MA(this.props.context||{},Lv.canUseDOM)}render(){return we.createElement(Mee.Provider,{value:this.helmetData.value},this.props.children)}},Wu(Lv,"canUseDOM",Pee),Lv),Pm=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${$c}]`),i=[].slice.call(r),a=[];let o;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const u=c,f=typeof s[u]=="undefined"?"":s[u];l.setAttribute(c,f)}l.setAttribute($c,"true"),i.some((c,u)=>(o=u,l.isEqualNode(c)))?i.splice(o,1):a.push(l)}),i.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),a.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:a}},kA=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute($c),i=r?r.split(","):[],a=[...i],o=Object.keys(t);for(const s of o){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=a.indexOf(s);c!==-1&&a.splice(c,1)}for(let s=a.length-1;s>=0;s-=1)n.removeAttribute(a[s]);i.length===a.length?n.removeAttribute($c):n.getAttribute($c)!==o.join(",")&&n.setAttribute($c,o.join(","))},xWe=(e,t)=>{typeof e!="undefined"&&document.title!==e&&(document.title=Cee(e)),kA("title",t)},Tee=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:f,titleAttributes:d}=e;kA("body",r),kA("html",i),xWe(f,d);const h={baseTag:Pm("base",n),linkTags:Pm("link",a),metaTags:Pm("meta",o),noscriptTags:Pm("noscript",s),scriptTags:Pm("script",c),styleTags:Pm("style",u)},p={},g={};Object.keys(h).forEach(v=>{const{newTags:m,oldTags:y}=h[v];m.length&&(p[v]=m),y.length&&(g[v]=h[v].oldTags)}),t&&t(),l(e,p,g)},Ib=null,SWe=e=>{Ib&&cancelAnimationFrame(Ib),e.defer?Ib=requestAnimationFrame(()=>{Tee(e,()=>{Ib=null})}):(Tee(e),Ib=null)},wWe=SWe,Ree=class extends b.Component{constructor(){super(...arguments);Wu(this,"rendered",!1)}shouldComponentUpdate(t){return!iWe(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=fWe(t.get().map(a=>{const o=Ye({},a.props);return delete o.context,o}));kee.canUseDOM?wWe(i):r=$ee(i),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},TA=(U9=class extends b.Component{shouldComponentUpdate(e){return!eWe(Eee(this.props,"helmetData"),Eee(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return Rn(Ye({},t),{[e.type]:[...t[e.type]||[],Ye(Ye({},n),this.mapNestedChildrenToProps(e,r))]})}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return Rn(Ye({},t),{[e.type]:r,titleAttributes:Ye({},n)});case"body":return Rn(Ye({},t),{bodyAttributes:Ye({},n)});case"html":return Rn(Ye({},t),{htmlAttributes:Ye({},n)});default:return Rn(Ye({},t),{[e.type]:Ye({},n)})}}mapArrayTypeChildrenToProps(e,t){let n=Ye({},t);return Object.keys(e).forEach(r=>{n=Rn(Ye({},n),{[r]:e[r]})}),n}warnOnInvalidChildren(e,t){return xee(wee.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${wee.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),xee(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return we.Children.forEach(e,r=>{if(!r||!r.props)return;const l=r.props,{children:i}=l,a=oc(l,["children"]),o=Object.keys(a).reduce((c,u)=>(c[aWe[u]||u]=a[u],c),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const i=this.props,{children:e}=i,t=oc(i,["children"]);let n=Ye({},t),{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof MA)){const a=r;r=new MA(a.context,!0),delete n.helmetData}return r?we.createElement(Ree,Rn(Ye({},n),{context:r.value})):we.createElement(Mee.Consumer,null,a=>we.createElement(Ree,Rn(Ye({},n),{context:a})))}},Wu(U9,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),U9);function CWe(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Nee=(e,t,n)=>{e.loadNamespaces(t,Aee(e,n))},Lee=(e,t,n,r)=>{Ip(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Aee(e,r))},EWe=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const c=t.services.backendConnector.state[`${s}|${l}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))},OWe=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(RA("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}):EWe(e,t,n)},Ip=e=>typeof e=="string",_We=e=>typeof e=="object"&&e!==null,$We=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,PWe={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},MWe=e=>PWe[e];let kWe={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace($We,MWe)};const TWe=()=>kWe;let RWe;const IWe=()=>RWe,jee=b.createContext();class AWe{constructor(){Wu(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const NWe=(e,t)=>{const n=b.useRef();return b.useEffect(()=>{n.current=e},[e,t]),n.current},Dee=(e,t,n,r)=>e.getFixedT(t,n,r),LWe=(e,t,n,r)=>b.useCallback(Dee(e,t,n,r),[e,t,n,r]),io=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=b.useContext(jee)||{},a=n||r||IWe();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new AWe),!a){RA("You will need to pass in an i18next instance by using initReactI18next");const S=(C,E)=>Ip(E)?E:_We(E)&&Ip(E.defaultValue)?E.defaultValue:Array.isArray(C)?C[C.length-1]:C,w=[S,{},!1];return w.t=S,w.i18n={},w.ready=!1,w}a.options.react&&a.options.react.wait!==void 0&&RA("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o=Ye(Ye(Ye({},TWe()),a.options.react),t),{useSuspense:s,keyPrefix:l}=o;let c=e||i||a.options&&a.options.defaultNS;c=Ip(c)?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(c);const u=(a.isInitialized||a.initializedStoreOnce)&&c.every(S=>OWe(S,a,o)),f=LWe(a,t.lng||null,o.nsMode==="fallback"?c:c[0],l),d=()=>f,h=()=>Dee(a,t.lng||null,o.nsMode==="fallback"?c:c[0],l),[p,g]=b.useState(d);let v=c.join();t.lng&&(v=`${t.lng}${v}`);const m=NWe(v),y=b.useRef(!0);b.useEffect(()=>{const{bindI18n:S,bindI18nStore:w}=o;y.current=!0,!u&&!s&&(t.lng?Lee(a,t.lng,c,()=>{y.current&&g(h)}):Nee(a,c,()=>{y.current&&g(h)})),u&&m&&m!==v&&y.current&&g(h);const C=()=>{y.current&&g(h)};return S&&a&&a.on(S,C),w&&a&&a.store.on(w,C),()=>{y.current=!1,S&&a&&S.split(" ").forEach(E=>a.off(E,C)),w&&a&&w.split(" ").forEach(E=>a.store.off(E,C))}},[a,v]),b.useEffect(()=>{y.current&&u&&g(d)},[a,l,u]);const x=[p,a,u];if(x.t=p,x.i18n=a,x.ready=u,u||!u&&!s)return x;throw new Promise(S=>{t.lng?Lee(a,t.lng,c,()=>S()):Nee(a,c,()=>S())})};function jWe(e){let{i18n:t,defaultNS:n,children:r}=e;const i=b.useMemo(()=>({i18n:t,defaultNS:n}),[t,n]);return b.createElement(jee.Provider,{value:i},r)}/** + `]:{zIndex:10,width:r,margin:`0 ${ue(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ue(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ue(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},IHe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},AHe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},er(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},NHe=tr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:a}=e,o=_n(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[AHe(o),PHe(o),THe(o),RHe(o),MHe(o),kHe(o),IHe(o),D1(o)]},e=>({actionsColor:e.colorTextDescription}));function dO(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function hO(e,t){const n=Ne(t),r=n.findIndex(i=>{let{uid:a}=i;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function bA(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function LHe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const jHe=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},gee=e=>e.indexOf("image/")===0,DHe=e=>{if(e.type&&!e.thumbUrl)return gee(e.type);const t=e.thumbUrl||e.url||"",n=jHe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Wd=200;function FHe(e){return new Promise(t=>{if(!e.type||!gee(e.type)){t("");return}const n=document.createElement("canvas");n.width=Wd,n.height=Wd,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Wd}px; height: ${Wd}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=Wd,l=Wd,c=0,u=0;a>o?(l=o*(Wd/a),u=-(l-s)/2):(s=a*(Wd/o),c=-(s-l)/2),r.drawImage(i,c,u,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(f)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const BHe=b.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:a,listType:o,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:d,isImgUrl:h,showPreviewIcon:p,showRemoveIcon:v,showDownloadIcon:g,previewIcon:m,removeIcon:y,downloadIcon:x,extra:S,onPreview:w,onDownload:C,onClose:E}=e;var O,$;const{status:P}=s,[M,k]=b.useState(P);b.useEffect(()=>{P!=="removed"&&k(P)},[P]);const[T,R]=b.useState(!1);b.useEffect(()=>{const te=setTimeout(()=>{R(!0)},300);return()=>{clearTimeout(te)}},[]);const A=u(s);let N=b.createElement("div",{className:`${n}-icon`},A);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(M==="uploading"||!s.thumbUrl&&!s.url){const te=me(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:M!=="uploading"});N=b.createElement("div",{className:te},A)}else{const te=h!=null&&h(s)?b.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):A,ie=me(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:h&&!h(s)});N=b.createElement("a",{className:ie,onClick:J=>w(s,J),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},te)}const L=me(`${n}-list-item`,`${n}-list-item-${M}`),j=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,F=(typeof v=="function"?v(s):v)?f((typeof y=="function"?y(s):y)||b.createElement(XE,null),()=>E(s),n,a.removeFile,!0):null,B=(typeof g=="function"?g(s):g)&&M==="done"?f((typeof x=="function"?x(s):x)||b.createElement(k5,null),()=>C(s),n,a.downloadFile):null,D=o!=="picture-card"&&o!=="picture-circle"&&b.createElement("span",{key:"download-delete",className:me(`${n}-list-item-actions`,{picture:o==="picture"})},B,F),z=typeof S=="function"?S(s):S,W=z&&b.createElement("span",{className:`${n}-list-item-extra`},z),q=me(`${n}-list-item-name`),H=s.url?b.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:q,title:s.name},j,{href:s.url,onClick:te=>w(s,te)}),s.name,W):b.createElement("span",{key:"view",className:q,onClick:te=>w(s,te),title:s.name},s.name,W),U=(typeof p=="function"?p(s):p)&&(s.url||s.thumbUrl)?b.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:te=>w(s,te),title:a.previewFile},typeof m=="function"?m(s):m||b.createElement(l5,null)):null,G=(o==="picture-card"||o==="picture-circle")&&M!=="uploading"&&b.createElement("span",{className:`${n}-list-item-actions`},U,M==="done"&&B,F),{getPrefixCls:K}=b.useContext(At),X=K(),Q=b.createElement("div",{className:L},N,H,D,G,T&&b.createElement(Jo,{motionName:`${X}-fade`,visible:M==="uploading",motionDeadline:2e3},te=>{let{className:ie}=te;const J="percent"in s?b.createElement(W7e,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return b.createElement("div",{className:me(`${n}-list-item-progress`,ie)},J)})),ee=s.response&&typeof s.response=="string"?s.response:((O=s.error)===null||O===void 0?void 0:O.statusText)||(($=s.error)===null||$===void 0?void 0:$.message)||a.uploadError,ne=M==="error"?b.createElement(ro,{title:ee,getPopupContainer:te=>te.parentNode},Q):Q;return b.createElement("div",{className:me(`${n}-list-item-container`,r),style:i,ref:t},d?d(ne,s,l,{download:C.bind(null,s),preview:w.bind(null,s),remove:E.bind(null,s)}):ne)}),zHe=(e,t)=>{const{listType:n="text",previewFile:r=FHe,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:c=DHe,prefixCls:u,items:f=[],showPreviewIcon:d=!0,showRemoveIcon:h=!0,showDownloadIcon:p=!1,removeIcon:v,previewIcon:g,downloadIcon:m,extra:y,progress:x={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:w=!0,itemRender:C,disabled:E}=e,O=uI(),[$,P]=b.useState(!1),M=["picture-card","picture-circle"].includes(n);b.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(W=>{!(W.originFileObj instanceof File||W.originFileObj instanceof Blob)||W.thumbUrl!==void 0||(W.thumbUrl="",r==null||r(W.originFileObj).then(q=>{W.thumbUrl=q||"",O()}))})},[n,f,r]),b.useEffect(()=>{P(!0)},[]);const k=(W,q)=>{if(i)return q==null||q.preventDefault(),i(W)},T=W=>{typeof a=="function"?a(W):W.url&&window.open(W.url)},R=W=>{o==null||o(W)},A=W=>{if(l)return l(W,n);const q=W.status==="uploading";if(n.startsWith("picture")){const H=n==="picture"?b.createElement(af,null):s.uploading,U=c!=null&&c(W)?b.createElement(BDe,null):b.createElement(vDe,null);return q?H:U}return q?b.createElement(af,null):b.createElement(jDe,null)},N=(W,q,H,U,G)=>{const K={type:"text",size:"small",title:U,onClick:X=>{var Q,ee;q(),b.isValidElement(W)&&((ee=(Q=W.props).onClick)===null||ee===void 0||ee.call(Q,X))},className:`${H}-list-item-action`};return G&&(K.disabled=E),b.isValidElement(W)?b.createElement(Hn,Object.assign({},K,{icon:Pa(W,Object.assign(Object.assign({},W.props),{onClick:()=>{}}))})):b.createElement(Hn,Object.assign({},K),b.createElement("span",null,W))};b.useImperativeHandle(t,()=>({handlePreview:k,handleDownload:T}));const{getPrefixCls:L}=b.useContext(At),j=L("upload",u),F=L(),B=me(`${j}-list`,`${j}-list-${n}`),D=b.useMemo(()=>Or(Wg(F),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[F]),z=Object.assign(Object.assign({},M?{}:D),{motionDeadline:2e3,motionName:`${j}-${M?"animate-inline":"animate"}`,keys:Ne(f.map(W=>({key:W.uid,file:W}))),motionAppear:$});return b.createElement("div",{className:B},b.createElement(KT,Object.assign({},z,{component:!1}),W=>{let{key:q,file:H,className:U,style:G}=W;return b.createElement(BHe,{key:q,locale:s,prefixCls:j,className:U,style:G,file:H,items:f,progress:x,listType:n,isImgUrl:c,showPreviewIcon:d,showRemoveIcon:h,showDownloadIcon:p,removeIcon:v,previewIcon:g,downloadIcon:m,extra:y,iconRender:A,actionIconRender:N,itemRender:C,onPreview:k,onDownload:T,onClose:R})}),S&&b.createElement(Jo,Object.assign({},z,{visible:w,forceRender:!0}),W=>{let{className:q,style:H}=W;return Pa(S,U=>({className:me(U.className,q),style:Object.assign(Object.assign(Object.assign({},H),{pointerEvents:q?"none":void 0}),U.style)}))}))},HHe=b.forwardRef(zHe);var WHe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const Tb=`__LIST_IGNORE_${Date.now()}__`,VHe=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:d,locale:h,iconRender:p,isImageUrl:v,progress:g,prefixCls:m,className:y,type:x="select",children:S,style:w,itemRender:C,maxCount:E,data:O={},multiple:$=!1,hasControlInside:P=!0,action:M="",accept:k="",supportServerRender:T=!0,rootClassName:R}=e,A=b.useContext(mo),N=d!=null?d:A,[L,j]=Yn(r||[],{value:n,postState:Ee=>Ee!=null?Ee:[]}),[F,B]=b.useState("drop"),D=b.useRef(null),z=b.useRef(null);b.useMemo(()=>{const Ee=Date.now();(n||[]).forEach((Ie,Ae)=>{!Ie.uid&&!Object.isFrozen(Ie)&&(Ie.uid=`__AUTO__${Ee}_${Ae}__`)})},[n]);const W=(Ee,Ie,Ae)=>{let $e=Ne(Ie),He=!1;E===1?$e=$e.slice(-1):E&&(He=$e.length>E,$e=$e.slice(0,E)),ys.flushSync(()=>{j($e)});const ot={file:Ee,fileList:$e};Ae&&(ot.event=Ae),(!He||Ee.status==="removed"||$e.some(Ot=>Ot.uid===Ee.uid))&&ys.flushSync(()=>{c==null||c(ot)})},q=(Ee,Ie)=>WHe(void 0,void 0,void 0,function*(){const{beforeUpload:Ae,transformFile:$e}=e;let He=Ee;if(Ae){const ot=yield Ae(Ee,Ie);if(ot===!1)return!1;if(delete Ee[Tb],ot===Tb)return Object.defineProperty(Ee,Tb,{value:!0,configurable:!0}),!1;typeof ot=="object"&&ot&&(He=ot)}return $e&&(He=yield $e(He)),He}),H=Ee=>{const Ie=Ee.filter(He=>!He.file[Tb]);if(!Ie.length)return;const Ae=Ie.map(He=>dO(He.file));let $e=Ne(L);Ae.forEach(He=>{$e=hO(He,$e)}),Ae.forEach((He,ot)=>{let Ot=He;if(Ie[ot].parsedFile)He.status="uploading";else{const{originFileObj:Wt}=He;let et;try{et=new File([Wt],Wt.name,{type:Wt.type})}catch(ht){et=new Blob([Wt],{type:Wt.type}),et.name=Wt.name,et.lastModifiedDate=new Date,et.lastModified=new Date().getTime()}et.uid=He.uid,Ot=et}W(Ot,$e)})},U=(Ee,Ie,Ae)=>{try{typeof Ee=="string"&&(Ee=JSON.parse(Ee))}catch(ot){}if(!bA(Ie,L))return;const $e=dO(Ie);$e.status="done",$e.percent=100,$e.response=Ee,$e.xhr=Ae;const He=hO($e,L);W($e,He)},G=(Ee,Ie)=>{if(!bA(Ie,L))return;const Ae=dO(Ie);Ae.status="uploading",Ae.percent=Ee.percent;const $e=hO(Ae,L);W(Ae,$e,Ee)},K=(Ee,Ie,Ae)=>{if(!bA(Ae,L))return;const $e=dO(Ae);$e.error=Ee,$e.response=Ie,$e.status="error";const He=hO($e,L);W($e,He)},X=Ee=>{let Ie;Promise.resolve(typeof i=="function"?i(Ee):i).then(Ae=>{var $e;if(Ae===!1)return;const He=LHe(Ee,L);He&&(Ie=Object.assign(Object.assign({},Ee),{status:"removed"}),L==null||L.forEach(ot=>{const Ot=Ie.uid!==void 0?"uid":"name";ot[Ot]===Ie[Ot]&&!Object.isFrozen(ot)&&(ot.status="removed")}),($e=D.current)===null||$e===void 0||$e.abort(Ie),W(Ie,He))})},Q=Ee=>{B(Ee.type),Ee.type==="drop"&&(u==null||u(Ee))};b.useImperativeHandle(t,()=>({onBatchStart:H,onSuccess:U,onProgress:G,onError:K,fileList:L,upload:D.current,nativeElement:z.current}));const{getPrefixCls:ee,direction:ne,upload:te}=b.useContext(At),ie=ee("upload",m),J=Object.assign(Object.assign({onBatchStart:H,onError:K,onProgress:G,onSuccess:U},e),{data:O,multiple:$,action:M,accept:k,supportServerRender:T,prefixCls:ie,disabled:N,beforeUpload:q,onChange:void 0,hasControlInside:P});delete J.className,delete J.style,(!S||N)&&delete J.id;const le=`${ie}-wrapper`,[oe,re,se]=NHe(ie,le),[ge]=Zo("Upload",_o.Upload),{showRemoveIcon:de,showPreviewIcon:pe,showDownloadIcon:fe,removeIcon:xe,previewIcon:Oe,downloadIcon:_e,extra:Te}=typeof a=="boolean"?{}:a,Fe=typeof de=="undefined"?!N:de,Be=(Ee,Ie)=>a?b.createElement(HHe,{prefixCls:ie,listType:o,items:L,previewFile:f,onPreview:s,onDownload:l,onRemove:X,showRemoveIcon:Fe,showPreviewIcon:pe,showDownloadIcon:fe,removeIcon:xe,previewIcon:Oe,downloadIcon:_e,iconRender:p,extra:Te,locale:Object.assign(Object.assign({},ge),h),isImageUrl:v,progress:g,appendAction:Ee,appendActionVisible:Ie,itemRender:C,disabled:N}):Ee,Pe=me(le,y,R,re,se,te==null?void 0:te.className,{[`${ie}-rtl`]:ne==="rtl",[`${ie}-picture-card-wrapper`]:o==="picture-card",[`${ie}-picture-circle-wrapper`]:o==="picture-circle"}),ze=Object.assign(Object.assign({},te==null?void 0:te.style),w);if(x==="drag"){const Ee=me(re,ie,`${ie}-drag`,{[`${ie}-drag-uploading`]:L.some(Ie=>Ie.status==="uploading"),[`${ie}-drag-hover`]:F==="dragover",[`${ie}-disabled`]:N,[`${ie}-rtl`]:ne==="rtl"});return oe(b.createElement("span",{className:Pe,ref:z},b.createElement("div",{className:Ee,style:ze,onDrop:Q,onDragOver:Q,onDragLeave:Q},b.createElement(yA,Object.assign({},J,{ref:D,className:`${ie}-btn`}),b.createElement("div",{className:`${ie}-drag-container`},S))),Be()))}const Ue=me(ie,`${ie}-select`,{[`${ie}-disabled`]:N,[`${ie}-hidden`]:!S}),ke=b.createElement("div",{className:Ue},b.createElement(yA,Object.assign({},J,{ref:D})));return oe(o==="picture-card"||o==="picture-circle"?b.createElement("span",{className:Pe,ref:z},Be(ke,!!S)):b.createElement("span",{className:Pe,ref:z},ke,Be()))},mee=b.forwardRef(VHe);var qHe=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 i=0,r=Object.getOwnPropertySymbols(e);i{var{style:n,height:r,hasControlInside:i=!1}=e,a=qHe(e,["style","height","hasControlInside"]);return b.createElement(mee,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),pO=mee;pO.Dragger=UHe,pO.LIST_IGNORE=Tb;var GHe=typeof Element!="undefined",KHe=typeof Map=="function",YHe=typeof Set=="function",XHe=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function vO(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!vO(e[r],t[r]))return!1;return!0}var a;if(KHe&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!vO(r.value[1],t.get(r.value[0])))return!1;return!0}if(YHe&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(XHe&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(GHe&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!vO(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var ZHe=function(t,n){try{return vO(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const QHe=rn(ZHe);var JHe=function(e,t,n,r,i,a,o,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},eWe=JHe;const yee=rn(eWe);var tWe=function(t,n,r,i){var a=r?r.call(i,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),s=Object.keys(n);if(o.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(bee||{}),xA={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},xee=Object.values(bee),SA={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},rWe=Object.entries(SA).reduce((e,[t,n])=>(e[n]=t,e),{}),$c="data-rh",_m={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},$m=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},iWe=e=>{let t=$m(e,"title");const n=$m(e,_m.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=$m(e,_m.DEFAULT_TITLE);return t||r||void 0},aWe=e=>$m(e,_m.ON_CHANGE_CLIENT_STATE)||(()=>{}),wA=(e,t)=>t.filter(n=>typeof n[e]!="undefined").map(n=>n[e]).reduce((n,r)=>Ke(Ke({},n),r),{}),oWe=(e,t)=>t.filter(n=>typeof n.base!="undefined").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let a=0;aconsole&&typeof console.warn=="function"&&console.warn(e),Rb=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]!="undefined"&&sWe(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,a)=>{const o={};a.filter(l=>{let c;const u=Object.keys(l);for(let d=0;di.push(l));const s=Object.keys(o);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:oWe(["href"],e),bodyAttributes:wA("bodyAttributes",e),defer:$m(e,_m.DEFER),encode:$m(e,_m.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:wA("htmlAttributes",e),linkTags:Rb("link",["rel","href"],e),metaTags:Rb("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Rb("noscript",["innerHTML"],e),onChangeClientState:aWe(e),scriptTags:Rb("script",["src","innerHTML"],e),styleTags:Rb("style",["cssText"],e),title:iWe(e),titleAttributes:wA("titleAttributes",e),prioritizeSeoTags:lWe(e,_m.PRIORITIZE_SEO_TAGS)}),See=e=>Array.isArray(e)?e.join(""):e,uWe=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(uWe(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},wee=(e,t)=>Rn(Ke({},e),{[t]:void 0}),fWe=["noscript","script","style"],EA=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Cee=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]!="undefined"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),dWe=(e,t,n,r)=>{const i=Cee(n),a=See(t);return i?`<${e} ${$c}="true" ${i}>${EA(a,r)}`:`<${e} ${$c}="true">${EA(a,r)}`},hWe=(e,t,n=!0)=>t.reduce((r,i)=>{const a=i,o=Object.keys(a).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const f=typeof a[u]=="undefined"?u:`${u}="${EA(a[u],n)}"`;return c?`${c} ${f}`:f},""),s=a.innerHTML||a.cssText||"",l=fWe.indexOf(e)===-1;return`${r}<${e} ${$c}="true" ${o}${l?"/>":`>${s}`}`},""),Eee=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=SA[r];return n[i||r]=e[r],n},t),pWe=(e,t,n)=>{const r={key:t,[$c]:!0},i=Eee(n,r);return[we.createElement("title",i,t)]},gO=(e,t)=>t.map((n,r)=>{const i={key:r,[$c]:!0};return Object.keys(n).forEach(a=>{const s=SA[a]||a;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[a]}),we.createElement(e,i)}),Pl=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>pWe(e,t.title,t.titleAttributes),toString:()=>dWe(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Eee(t),toString:()=>Cee(t)};default:return{toComponent:()=>gO(e,t),toString:()=>hWe(e,t,n)}}},vWe=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=CA(e,xA.meta),a=CA(t,xA.link),o=CA(n,xA.script);return{priorityMethods:{toComponent:()=>[...gO("meta",i.priority),...gO("link",a.priority),...gO("script",o.priority)],toString:()=>`${Pl("meta",i.priority,r)} ${Pl("link",a.priority,r)} ${Pl("script",o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},gWe=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:f,scriptTags:d}=e,h={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:h,linkTags:u,metaTags:f,scriptTags:d}=vWe(e)),{priority:h,base:Pl("base",t,r),bodyAttributes:Pl("bodyAttributes",n,r),htmlAttributes:Pl("htmlAttributes",i,r),link:Pl("link",u,r),meta:Pl("meta",f,r),noscript:Pl("noscript",a,r),script:Pl("script",d,r),style:Pl("style",o,r),title:Pl("title",{title:s,titleAttributes:l},r)}},Oee=gWe,mO=[],_ee=!!(typeof window!="undefined"&&window.document&&window.document.createElement),OA=class{constructor(e,t){Wu(this,"instances",[]);Wu(this,"canUseDOM",_ee);Wu(this,"context");Wu(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?mO:this.instances,add:e=>{(this.canUseDOM?mO:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?mO:this.instances).indexOf(e);(this.canUseDOM?mO:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Oee({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},mWe={},$ee=we.createContext(mWe),Pee=(Dv=class extends b.Component{constructor(n){super(n);Wu(this,"helmetData");this.helmetData=new OA(this.props.context||{},Dv.canUseDOM)}render(){return we.createElement($ee.Provider,{value:this.helmetData.value},this.props.children)}},Wu(Dv,"canUseDOM",_ee),Dv),Pm=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${$c}]`),i=[].slice.call(r),a=[];let o;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const u=c,f=typeof s[u]=="undefined"?"":s[u];l.setAttribute(c,f)}l.setAttribute($c,"true"),i.some((c,u)=>(o=u,l.isEqualNode(c)))?i.splice(o,1):a.push(l)}),i.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),a.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:a}},_A=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute($c),i=r?r.split(","):[],a=[...i],o=Object.keys(t);for(const s of o){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=a.indexOf(s);c!==-1&&a.splice(c,1)}for(let s=a.length-1;s>=0;s-=1)n.removeAttribute(a[s]);i.length===a.length?n.removeAttribute($c):n.getAttribute($c)!==o.join(",")&&n.setAttribute($c,o.join(","))},yWe=(e,t)=>{typeof e!="undefined"&&document.title!==e&&(document.title=See(e)),_A("title",t)},Mee=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:f,titleAttributes:d}=e;_A("body",r),_A("html",i),yWe(f,d);const h={baseTag:Pm("base",n),linkTags:Pm("link",a),metaTags:Pm("meta",o),noscriptTags:Pm("noscript",s),scriptTags:Pm("script",c),styleTags:Pm("style",u)},p={},v={};Object.keys(h).forEach(g=>{const{newTags:m,oldTags:y}=h[g];m.length&&(p[g]=m),y.length&&(v[g]=h[g].oldTags)}),t&&t(),l(e,p,v)},Ib=null,bWe=e=>{Ib&&cancelAnimationFrame(Ib),e.defer?Ib=requestAnimationFrame(()=>{Mee(e,()=>{Ib=null})}):(Mee(e),Ib=null)},xWe=bWe,kee=class extends b.Component{constructor(){super(...arguments);Wu(this,"rendered",!1)}shouldComponentUpdate(t){return!nWe(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=cWe(t.get().map(a=>{const o=Ke({},a.props);return delete o.context,o}));Pee.canUseDOM?xWe(i):r=Oee(i),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},$A=(W9=class extends b.Component{shouldComponentUpdate(e){return!QHe(wee(this.props,"helmetData"),wee(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return Rn(Ke({},t),{[e.type]:[...t[e.type]||[],Ke(Ke({},n),this.mapNestedChildrenToProps(e,r))]})}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return Rn(Ke({},t),{[e.type]:r,titleAttributes:Ke({},n)});case"body":return Rn(Ke({},t),{bodyAttributes:Ke({},n)});case"html":return Rn(Ke({},t),{htmlAttributes:Ke({},n)});default:return Rn(Ke({},t),{[e.type]:Ke({},n)})}}mapArrayTypeChildrenToProps(e,t){let n=Ke({},t);return Object.keys(e).forEach(r=>{n=Rn(Ke({},n),{[r]:e[r]})}),n}warnOnInvalidChildren(e,t){return yee(xee.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${xee.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),yee(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return we.Children.forEach(e,r=>{if(!r||!r.props)return;const l=r.props,{children:i}=l,a=oc(l,["children"]),o=Object.keys(a).reduce((c,u)=>(c[rWe[u]||u]=a[u],c),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const i=this.props,{children:e}=i,t=oc(i,["children"]);let n=Ke({},t),{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof OA)){const a=r;r=new OA(a.context,!0),delete n.helmetData}return r?we.createElement(kee,Rn(Ke({},n),{context:r.value})):we.createElement($ee.Consumer,null,a=>we.createElement(kee,Rn(Ke({},n),{context:a})))}},Wu(W9,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),W9);function SWe(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Iee=(e,t,n)=>{e.loadNamespaces(t,Ree(e,n))},Aee=(e,t,n,r)=>{Np(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Ree(e,r))},wWe=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const c=t.services.backendConnector.state[`${s}|${l}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))},CWe=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(PA("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}):wWe(e,t,n)},Np=e=>typeof e=="string",EWe=e=>typeof e=="object"&&e!==null,OWe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,_We={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},$We=e=>_We[e];let PWe={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(OWe,$We)};const MWe=()=>PWe;let kWe;const TWe=()=>kWe,Nee=b.createContext();class RWe{constructor(){Wu(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const IWe=(e,t)=>{const n=b.useRef();return b.useEffect(()=>{n.current=e},[e,t]),n.current},Lee=(e,t,n,r)=>e.getFixedT(t,n,r),AWe=(e,t,n,r)=>b.useCallback(Lee(e,t,n,r),[e,t,n,r]),io=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=b.useContext(Nee)||{},a=n||r||TWe();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new RWe),!a){PA("You will need to pass in an i18next instance by using initReactI18next");const S=(C,E)=>Np(E)?E:EWe(E)&&Np(E.defaultValue)?E.defaultValue:Array.isArray(C)?C[C.length-1]:C,w=[S,{},!1];return w.t=S,w.i18n={},w.ready=!1,w}a.options.react&&a.options.react.wait!==void 0&&PA("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o=Ke(Ke(Ke({},MWe()),a.options.react),t),{useSuspense:s,keyPrefix:l}=o;let c=e||i||a.options&&a.options.defaultNS;c=Np(c)?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(c);const u=(a.isInitialized||a.initializedStoreOnce)&&c.every(S=>CWe(S,a,o)),f=AWe(a,t.lng||null,o.nsMode==="fallback"?c:c[0],l),d=()=>f,h=()=>Lee(a,t.lng||null,o.nsMode==="fallback"?c:c[0],l),[p,v]=b.useState(d);let g=c.join();t.lng&&(g=`${t.lng}${g}`);const m=IWe(g),y=b.useRef(!0);b.useEffect(()=>{const{bindI18n:S,bindI18nStore:w}=o;y.current=!0,!u&&!s&&(t.lng?Aee(a,t.lng,c,()=>{y.current&&v(h)}):Iee(a,c,()=>{y.current&&v(h)})),u&&m&&m!==g&&y.current&&v(h);const C=()=>{y.current&&v(h)};return S&&a&&a.on(S,C),w&&a&&a.store.on(w,C),()=>{y.current=!1,S&&a&&S.split(" ").forEach(E=>a.off(E,C)),w&&a&&w.split(" ").forEach(E=>a.store.off(E,C))}},[a,g]),b.useEffect(()=>{y.current&&u&&v(d)},[a,l,u]);const x=[p,a,u];if(x.t=p,x.i18n=a,x.ready=u,u||!u&&!s)return x;throw new Promise(S=>{t.lng?Aee(a,t.lng,c,()=>S()):Iee(a,c,()=>S())})};function NWe(e){let{i18n:t,defaultNS:n,children:r}=e;const i=b.useMemo(()=>({i18n:t,defaultNS:n}),[t,n]);return b.createElement(Nee.Provider,{value:i},r)}/** * @remix-run/router v1.21.0 * * Copyright (c) Remix Software Inc. @@ -494,7 +494,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function BWe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Wd.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Ab({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function f(){s=Wd.Pop;let v=u(),m=v==null?null:v-c;c=v,l&&l({action:s,location:g.location,delta:m})}function d(v,m){s=Wd.Push;let y=AA(g.location,v,m);n(y,v),c=u()+1;let x=Bee(y,c),S=g.createHref(y);try{o.pushState(x,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(S)}a&&l&&l({action:s,location:g.location,delta:1})}function h(v,m){s=Wd.Replace;let y=AA(g.location,v,m);n(y,v),c=u();let x=Bee(y,c),S=g.createHref(y);o.replaceState(x,"",S),a&&l&&l({action:s,location:g.location,delta:0})}function p(v){let m=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof v=="string"?v:xO(v);return y=y.replace(/ $/,"%20"),ka(m,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,m)}let g={get action(){return s},get location(){return e(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Fee,f),l=v,()=>{i.removeEventListener(Fee,f),l=null}},createHref(v){return t(i,v)},createURL:p,encodeLocation(v){let m=p(v);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(v){return o.go(v)}};return g}var zee;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zee||(zee={}));function zWe(e,t,n){return n===void 0&&(n="/"),HWe(e,t,n)}function HWe(e,t,n,r){let i=typeof t=="string"?Ap(t):t,a=NA(i.pathname||"/",n);if(a==null)return null;let o=Hee(e);WWe(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(ka(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Vd([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(ka(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Hee(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:XWe(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of Wee(a.path))i(a,o,l)}),t}function Wee(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=Wee(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function WWe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ZWe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const VWe=/^:[\w-]+$/,qWe=3,UWe=2,GWe=1,KWe=10,YWe=-2,Vee=e=>e==="*";function XWe(e,t){let n=e.split("/"),r=n.length;return n.some(Vee)&&(r+=YWe),t&&(r+=UWe),n.filter(i=>!Vee(i)).reduce((i,a)=>i+(VWe.test(a)?qWe:a===""?GWe:KWe),r)}function ZWe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function QWe(e,t,n){let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:d,isOptional:h}=u;if(d==="*"){let g=s[f]||"";o=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[f];return h&&!p?c[d]=void 0:c[d]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function eVe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),IA(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function tVe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return IA(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function NA(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function nVe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ap(e):e;return{pathname:n?n.startsWith("/")?n:rVe(n,t):t,search:oVe(r),hash:sVe(i)}}function rVe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function LA(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function iVe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qee(e,t){let n=iVe(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Uee(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ap(e):(i=Ab({},e),ka(!i.pathname||!i.pathname.includes("?"),LA("?","pathname","search",i)),ka(!i.pathname||!i.pathname.includes("#"),LA("#","pathname","hash",i)),ka(!i.search||!i.search.includes("#"),LA("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=nVe(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Vd=e=>e.join("/").replace(/\/\/+/g,"/"),aVe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oVe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sVe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function lVe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Gee=["post","put","patch","delete"];new Set(Gee);const cVe=["get",...Gee];new Set(cVe);/** + */function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function DWe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Vd.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Ab({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function f(){s=Vd.Pop;let g=u(),m=g==null?null:g-c;c=g,l&&l({action:s,location:v.location,delta:m})}function d(g,m){s=Vd.Push;let y=kA(v.location,g,m);n(y,g),c=u()+1;let x=Dee(y,c),S=v.createHref(y);try{o.pushState(x,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(S)}a&&l&&l({action:s,location:v.location,delta:1})}function h(g,m){s=Vd.Replace;let y=kA(v.location,g,m);n(y,g),c=u();let x=Dee(y,c),S=v.createHref(y);o.replaceState(x,"",S),a&&l&&l({action:s,location:v.location,delta:0})}function p(g){let m=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof g=="string"?g:yO(g);return y=y.replace(/ $/,"%20"),ka(m,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,m)}let v={get action(){return s},get location(){return e(i,o)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(jee,f),l=g,()=>{i.removeEventListener(jee,f),l=null}},createHref(g){return t(i,g)},createURL:p,encodeLocation(g){let m=p(g);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(g){return o.go(g)}};return v}var Fee;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fee||(Fee={}));function FWe(e,t,n){return n===void 0&&(n="/"),BWe(e,t,n)}function BWe(e,t,n,r){let i=typeof t=="string"?Lp(t):t,a=TA(i.pathname||"/",n);if(a==null)return null;let o=Bee(e);zWe(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(ka(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=qd([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(ka(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Bee(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:KWe(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of zee(a.path))i(a,o,l)}),t}function zee(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=zee(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function zWe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:YWe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const HWe=/^:[\w-]+$/,WWe=3,VWe=2,qWe=1,UWe=10,GWe=-2,Hee=e=>e==="*";function KWe(e,t){let n=e.split("/"),r=n.length;return n.some(Hee)&&(r+=GWe),t&&(r+=VWe),n.filter(i=>!Hee(i)).reduce((i,a)=>i+(HWe.test(a)?WWe:a===""?qWe:UWe),r)}function YWe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function XWe(e,t,n){let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:d,isOptional:h}=u;if(d==="*"){let v=s[f]||"";o=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const p=s[f];return h&&!p?c[d]=void 0:c[d]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function QWe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),MA(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function JWe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return MA(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function TA(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function eVe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Lp(e):e;return{pathname:n?n.startsWith("/")?n:tVe(n,t):t,search:iVe(r),hash:aVe(i)}}function tVe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function RA(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function nVe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Wee(e,t){let n=nVe(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Vee(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Lp(e):(i=Ab({},e),ka(!i.pathname||!i.pathname.includes("?"),RA("?","pathname","search",i)),ka(!i.pathname||!i.pathname.includes("#"),RA("#","pathname","hash",i)),ka(!i.search||!i.search.includes("#"),RA("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=eVe(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const qd=e=>e.join("/").replace(/\/\/+/g,"/"),rVe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),iVe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aVe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function oVe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qee=["post","put","patch","delete"];new Set(qee);const sVe=["get",...qee];new Set(sVe);/** * React Router v6.28.1 * * Copyright (c) Remix Software Inc. @@ -503,7 +503,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),b.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=Uee(c,JSON.parse(o),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Vd([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,o,a,e])}function CO(){let{matches:e}=b.useContext(qd),t=e[e.length-1];return t?t.params:{}}function Xee(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(Np),{matches:i}=b.useContext(qd),{pathname:a}=wO(),o=JSON.stringify(qee(i,r.v7_relativeSplatPath));return b.useMemo(()=>Uee(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function hVe(e,t){return pVe(e,t)}function pVe(e,t,n,r){Lb()||ka(!1);let{navigator:i}=b.useContext(Np),{matches:a}=b.useContext(qd),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=wO(),u;if(t){var f;let v=typeof t=="string"?Ap(t):t;l==="/"||(f=v.pathname)!=null&&f.startsWith(l)||ka(!1),u=v}else u=c;let d=u.pathname||"/",h=d;if(l!=="/"){let v=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(v.length).join("/")}let p=zWe(e,{pathname:h}),g=bVe(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Vd([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Vd([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,n,r);return t&&g?b.createElement(SO.Provider,{value:{location:Nb({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Wd.Pop}},g):g}function vVe(){let e=CVe(),t=lVe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const gVe=b.createElement(vVe,null);class mVe extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(qd.Provider,{value:this.props.routeContext},b.createElement(Kee.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function yVe(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(jA);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(qd.Provider,{value:t},r)}function bVe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||ka(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,f,d)=>{let h,p=!1,g=null,v=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||gVe,l&&(c<0&&d===0?(p=!0,v=null):c===d&&(p=!0,v=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,d+1)),y=()=>{let x;return h?x=g:p?x=v:f.route.Component?x=b.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=u,b.createElement(yVe,{match:f,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?b.createElement(mVe,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}var Zee=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Zee||{}),EO=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(EO||{});function xVe(e){let t=b.useContext(jA);return t||ka(!1),t}function SVe(e){let t=b.useContext(uVe);return t||ka(!1),t}function wVe(e){let t=b.useContext(qd);return t||ka(!1),t}function Qee(e){let t=wVe(),n=t.matches[t.matches.length-1];return n.route.id||ka(!1),n.route.id}function CVe(){var e;let t=b.useContext(Kee),n=SVe(EO.UseRouteError),r=Qee(EO.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function EVe(){let{router:e}=xVe(Zee.UseNavigateStable),t=Qee(EO.UseNavigateStable),n=b.useRef(!1);return Yee(()=>{n.current=!0}),b.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Nb({fromRouteId:t},a)))},[e,t])}const Jee={};function OVe(e,t){Jee[t]||(Jee[t]=!0,console.warn(t))}const ete=(e,t,n)=>OVe(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function _Ve(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&ete("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&!t&&ete("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function km(e){ka(!1)}function $Ve(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Wd.Pop,navigator:a,static:o=!1,future:s}=e;Lb()&&ka(!1);let l=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:a,static:o,future:Nb({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof r=="string"&&(r=Ap(r));let{pathname:u="/",search:f="",hash:d="",state:h=null,key:p="default"}=r,g=b.useMemo(()=>{let v=NA(u,l);return v==null?null:{location:{pathname:v,search:f,hash:d,state:h,key:p},navigationType:i}},[l,u,f,d,h,p,i]);return g==null?null:b.createElement(Np.Provider,{value:c},b.createElement(SO.Provider,{children:n,value:g}))}function PVe(e){let{children:t,location:n}=e;return hVe(DA(t),n)}new Promise(()=>{});function DA(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let a=[...t,i];if(r.type===b.Fragment){n.push.apply(n,DA(r.props.children,a));return}r.type!==km&&ka(!1),!r.props.index||!r.props.children||ka(!1);let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=DA(r.props.children,a)),n.push(o)}),n}/** + */function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),b.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=Vee(c,JSON.parse(o),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:qd([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,o,a,e])}function SO(){let{matches:e}=b.useContext(Ud),t=e[e.length-1];return t?t.params:{}}function Kee(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(jp),{matches:i}=b.useContext(Ud),{pathname:a}=xO(),o=JSON.stringify(Wee(i,r.v7_relativeSplatPath));return b.useMemo(()=>Vee(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function fVe(e,t){return dVe(e,t)}function dVe(e,t,n,r){Lb()||ka(!1);let{navigator:i}=b.useContext(jp),{matches:a}=b.useContext(Ud),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=xO(),u;if(t){var f;let g=typeof t=="string"?Lp(t):t;l==="/"||(f=g.pathname)!=null&&f.startsWith(l)||ka(!1),u=g}else u=c;let d=u.pathname||"/",h=d;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(g.length).join("/")}let p=FWe(e,{pathname:h}),v=mVe(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:qd([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:qd([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,n,r);return t&&v?b.createElement(bO.Provider,{value:{location:Nb({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Vd.Pop}},v):v}function hVe(){let e=SVe(),t=oVe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const pVe=b.createElement(hVe,null);class vVe extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(Ud.Provider,{value:this.props.routeContext},b.createElement(Uee.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gVe(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(IA);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Ud.Provider,{value:t},r)}function mVe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||ka(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,f,d)=>{let h,p=!1,v=null,g=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,v=f.route.errorElement||pVe,l&&(c<0&&d===0?(p=!0,g=null):c===d&&(p=!0,g=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,d+1)),y=()=>{let x;return h?x=v:p?x=g:f.route.Component?x=b.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=u,b.createElement(gVe,{match:f,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?b.createElement(vVe,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}var Yee=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Yee||{}),wO=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(wO||{});function yVe(e){let t=b.useContext(IA);return t||ka(!1),t}function bVe(e){let t=b.useContext(lVe);return t||ka(!1),t}function xVe(e){let t=b.useContext(Ud);return t||ka(!1),t}function Xee(e){let t=xVe(),n=t.matches[t.matches.length-1];return n.route.id||ka(!1),n.route.id}function SVe(){var e;let t=b.useContext(Uee),n=bVe(wO.UseRouteError),r=Xee(wO.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function wVe(){let{router:e}=yVe(Yee.UseNavigateStable),t=Xee(wO.UseNavigateStable),n=b.useRef(!1);return Gee(()=>{n.current=!0}),b.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Nb({fromRouteId:t},a)))},[e,t])}const Zee={};function CVe(e,t){Zee[t]||(Zee[t]=!0,console.warn(t))}const Qee=(e,t,n)=>CVe(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function EVe(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&Qee("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&!t&&Qee("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function km(e){ka(!1)}function OVe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Vd.Pop,navigator:a,static:o=!1,future:s}=e;Lb()&&ka(!1);let l=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:a,static:o,future:Nb({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof r=="string"&&(r=Lp(r));let{pathname:u="/",search:f="",hash:d="",state:h=null,key:p="default"}=r,v=b.useMemo(()=>{let g=TA(u,l);return g==null?null:{location:{pathname:g,search:f,hash:d,state:h,key:p},navigationType:i}},[l,u,f,d,h,p,i]);return v==null?null:b.createElement(jp.Provider,{value:c},b.createElement(bO.Provider,{children:n,value:v}))}function _Ve(e){let{children:t,location:n}=e;return fVe(AA(t),n)}new Promise(()=>{});function AA(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let a=[...t,i];if(r.type===b.Fragment){n.push.apply(n,AA(r.props.children,a));return}r.type!==km&&ka(!1),!r.props.index||!r.props.children||ka(!1);let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=AA(r.props.children,a)),n.push(o)}),n}/** * React Router DOM v6.28.1 * * Copyright (c) Remix Software Inc. @@ -512,26 +512,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function FA(){return FA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function kVe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function TVe(e,t){return e.button===0&&(!t||t==="_self")&&!kVe(e)}const RVe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],IVe="6";try{window.__reactRouterVersion=IVe}catch(e){}const tte=wy["startTransition"];function AVe(e){let{basename:t,children:n,future:r,window:i}=e,a=b.useRef();a.current==null&&(a.current=DWe({window:i,v5Compat:!0}));let o=a.current,[s,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=b.useCallback(f=>{c&&tte?tte(()=>l(f)):l(f)},[l,c]);return b.useLayoutEffect(()=>o.listen(u),[o,u]),b.useEffect(()=>_Ve(r),[r]),b.createElement($Ve,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}const NVe=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",LVe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ud=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u,viewTransition:f}=t,d=MVe(t,RVe),{basename:h}=b.useContext(Np),p,g=!1;if(typeof c=="string"&&LVe.test(c)&&(p=c,NVe))try{let x=new URL(window.location.href),S=c.startsWith("//")?new URL(x.protocol+c):new URL(c),w=NA(S.pathname,h);S.origin===x.origin&&w!=null?c=w+S.search+S.hash:g=!0}catch(x){}let v=fVe(c,{relative:i}),m=jVe(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:f});function y(x){r&&r(x),x.defaultPrevented||m(x)}return b.createElement("a",FA({},d,{href:p||v,onClick:g||a?r:y,ref:n,target:l}))});var nte;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(nte||(nte={}));var rte;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(rte||(rte={}));function jVe(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=Mm(),c=wO(),u=Xee(e,{relative:o});return b.useCallback(f=>{if(TVe(f,n)){f.preventDefault();let d=r!==void 0?r:xO(c)===xO(u);l(e,{replace:d,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[c,l,u,r,i,n,e,a,o,s])}function ite(e,t){return function(){return e.apply(t,arguments)}}const{toString:DVe}=Object.prototype,{getPrototypeOf:BA}=Object,OO=(e=>t=>{const n=DVe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pc=e=>(e=e.toLowerCase(),t=>OO(t)===e),_O=e=>t=>typeof t===e,{isArray:Tm}=Array,jb=_O("undefined");function FVe(e){return e!==null&&!jb(e)&&e.constructor!==null&&!jb(e.constructor)&&Ys(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ate=Pc("ArrayBuffer");function BVe(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ate(e.buffer),t}const zVe=_O("string"),Ys=_O("function"),ote=_O("number"),$O=e=>e!==null&&typeof e=="object",HVe=e=>e===!0||e===!1,PO=e=>{if(OO(e)!=="object")return!1;const t=BA(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},WVe=Pc("Date"),VVe=Pc("File"),qVe=Pc("Blob"),UVe=Pc("FileList"),GVe=e=>$O(e)&&Ys(e.pipe),KVe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ys(e.append)&&((t=OO(e))==="formdata"||t==="object"&&Ys(e.toString)&&e.toString()==="[object FormData]"))},YVe=Pc("URLSearchParams"),[XVe,ZVe,QVe,JVe]=["ReadableStream","Request","Response","Headers"].map(Pc),eqe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Db(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,i;if(typeof e!="object"&&(e=[e]),Tm(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Lp=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,lte=e=>!jb(e)&&e!==Lp;function zA(){const{caseless:e}=lte(this)&&this||{},t={},n=(r,i)=>{const a=e&&ste(t,i)||i;PO(t[a])&&PO(r)?t[a]=zA(t[a],r):PO(r)?t[a]=zA({},r):Tm(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(Db(t,(i,a)=>{n&&Ys(i)?e[a]=ite(i,n):e[a]=i},{allOwnKeys:r}),e),nqe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rqe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},iqe=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&BA(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},aqe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},oqe=e=>{if(!e)return null;if(Tm(e))return e;let t=e.length;if(!ote(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},sqe=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&BA(Uint8Array)),lqe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},cqe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},uqe=Pc("HTMLFormElement"),fqe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),cte=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dqe=Pc("RegExp"),ute=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Db(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},hqe=e=>{ute(e,(t,n)=>{if(Ys(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ys(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},pqe=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Tm(e)?r(e):r(String(e).split(t)),n},vqe=()=>{},gqe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,HA="abcdefghijklmnopqrstuvwxyz",fte="0123456789",dte={DIGIT:fte,ALPHA:HA,ALPHA_DIGIT:HA+HA.toUpperCase()+fte},mqe=(e=16,t=dte.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function yqe(e){return!!(e&&Ys(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const bqe=e=>{const t=new Array(10),n=(r,i)=>{if($O(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=Tm(r)?[]:{};return Db(r,(o,s)=>{const l=n(o,i+1);!jb(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},xqe=Pc("AsyncFunction"),Sqe=e=>e&&($O(e)||Ys(e))&&Ys(e.then)&&Ys(e.catch),hte=((e,t)=>e?setImmediate:t?((n,r)=>(Lp.addEventListener("message",({source:i,data:a})=>{i===Lp&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Lp.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ys(Lp.postMessage)),wqe=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Lp):typeof process!="undefined"&&process.nextTick||hte,ct={isArray:Tm,isArrayBuffer:ate,isBuffer:FVe,isFormData:KVe,isArrayBufferView:BVe,isString:zVe,isNumber:ote,isBoolean:HVe,isObject:$O,isPlainObject:PO,isReadableStream:XVe,isRequest:ZVe,isResponse:QVe,isHeaders:JVe,isUndefined:jb,isDate:WVe,isFile:VVe,isBlob:qVe,isRegExp:dqe,isFunction:Ys,isStream:GVe,isURLSearchParams:YVe,isTypedArray:sqe,isFileList:UVe,forEach:Db,merge:zA,extend:tqe,trim:eqe,stripBOM:nqe,inherits:rqe,toFlatObject:iqe,kindOf:OO,kindOfTest:Pc,endsWith:aqe,toArray:oqe,forEachEntry:lqe,matchAll:cqe,isHTMLForm:uqe,hasOwnProperty:cte,hasOwnProp:cte,reduceDescriptors:ute,freezeMethods:hqe,toObjectSet:pqe,toCamelCase:fqe,noop:vqe,toFiniteNumber:gqe,findKey:ste,global:Lp,isContextDefined:lte,ALPHABET:dte,generateString:mqe,isSpecCompliantForm:yqe,toJSONObject:bqe,isAsyncFn:xqe,isThenable:Sqe,setImmediate:hte,asap:wqe};function nr(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ct.inherits(nr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ct.toJSONObject(this.config),code:this.code,status:this.status}}});const pte=nr.prototype,vte={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vte[e]={value:e}}),Object.defineProperties(nr,vte),Object.defineProperty(pte,"isAxiosError",{value:!0}),nr.from=(e,t,n,r,i,a)=>{const o=Object.create(pte);return ct.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),nr.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Cqe=null;function WA(e){return ct.isPlainObject(e)||ct.isArray(e)}function gte(e){return ct.endsWith(e,"[]")?e.slice(0,-2):e}function mte(e,t,n){return e?e.concat(t).map(function(i,a){return i=gte(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function Eqe(e){return ct.isArray(e)&&!e.some(WA)}const Oqe=ct.toFlatObject(ct,{},null,function(t){return/^is[A-Z]/.test(t)});function MO(e,t,n){if(!ct.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ct.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!ct.isUndefined(v[g])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&ct.isSpecCompliantForm(t);if(!ct.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(ct.isDate(p))return p.toISOString();if(!l&&ct.isBlob(p))throw new nr("Blob is not supported. Use a Buffer instead.");return ct.isArrayBuffer(p)||ct.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,g,v){let m=p;if(p&&!v&&typeof p=="object"){if(ct.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(ct.isArray(p)&&Eqe(p)||(ct.isFileList(p)||ct.endsWith(g,"[]"))&&(m=ct.toArray(p)))return g=gte(g),m.forEach(function(x,S){!(ct.isUndefined(x)||x===null)&&t.append(o===!0?mte([g],S,a):o===null?g:g+"[]",c(x))}),!1}return WA(p)?!0:(t.append(mte(v,g,a),c(p)),!1)}const f=[],d=Object.assign(Oqe,{defaultVisitor:u,convertValue:c,isVisitable:WA});function h(p,g){if(!ct.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),ct.forEach(p,function(m,y){(!(ct.isUndefined(m)||m===null)&&i.call(t,m,ct.isString(y)?y.trim():y,g,d))===!0&&h(m,g?g.concat(y):[y])}),f.pop()}}if(!ct.isObject(e))throw new TypeError("data must be an object");return h(e),t}function yte(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function VA(e,t){this._pairs=[],e&&MO(e,this,t)}const bte=VA.prototype;bte.append=function(t,n){this._pairs.push([t,n])},bte.toString=function(t){const n=t?function(r){return t.call(this,r,yte)}:yte;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function _qe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xte(e,t,n){if(!t)return e;const r=n&&n.encode||_qe;ct.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=ct.isURLSearchParams(t)?t.toString():new VA(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Ste{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ct.forEach(this.handlers,function(r){r!==null&&t(r)})}}const wte={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$qe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:VA,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},qA=typeof window!="undefined"&&typeof document!="undefined",UA=typeof navigator=="object"&&navigator||void 0,Pqe=qA&&(!UA||["ReactNative","NativeScript","NS"].indexOf(UA.product)<0),Mqe=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kqe=qA&&window.location.href||"http://localhost",Ao=Ye(Ye({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qA,hasStandardBrowserEnv:Pqe,hasStandardBrowserWebWorkerEnv:Mqe,navigator:UA,origin:kqe},Symbol.toStringTag,{value:"Module"}))),$qe);function Tqe(e,t){return MO(e,new Ao.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Ao.isNode&&ct.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Rqe(e){return ct.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Iqe(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&ct.isArray(i)?i.length:o,l?(ct.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!ct.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&ct.isArray(i[o])&&(i[o]=Iqe(i[o])),!s)}if(ct.isFormData(e)&&ct.isFunction(e.entries)){const n={};return ct.forEachEntry(e,(r,i)=>{t(Rqe(r),i,n,0)}),n}return null}function Aqe(e,t,n){if(ct.isString(e))try{return(t||JSON.parse)(e),ct.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Fb={transitional:wte,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=ct.isObject(t);if(a&&ct.isHTMLForm(t)&&(t=new FormData(t)),ct.isFormData(t))return i?JSON.stringify(Cte(t)):t;if(ct.isArrayBuffer(t)||ct.isBuffer(t)||ct.isStream(t)||ct.isFile(t)||ct.isBlob(t)||ct.isReadableStream(t))return t;if(ct.isArrayBufferView(t))return t.buffer;if(ct.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Tqe(t,this.formSerializer).toString();if((s=ct.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return MO(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),Aqe(t)):t}],transformResponse:[function(t){const n=this.transitional||Fb.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ct.isResponse(t)||ct.isReadableStream(t))return t;if(t&&ct.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?nr.from(s,nr.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ao.classes.FormData,Blob:Ao.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ct.forEach(["delete","get","head","post","put","patch"],e=>{Fb.headers[e]={}});const Nqe=ct.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Lqe=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&Nqe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ete=Symbol("internals");function Bb(e){return e&&String(e).trim().toLowerCase()}function kO(e){return e===!1||e==null?e:ct.isArray(e)?e.map(kO):String(e)}function jqe(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 Dqe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function GA(e,t,n,r,i){if(ct.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ct.isString(t)){if(ct.isString(r))return t.indexOf(r)!==-1;if(ct.isRegExp(r))return r.test(t)}}function Fqe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Bqe(e,t){const n=ct.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class xs{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const u=Bb(l);if(!u)throw new Error("header name must be a non-empty string");const f=ct.findKey(i,u);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||l]=kO(s))}const o=(s,l)=>ct.forEach(s,(c,u)=>a(c,u,l));if(ct.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(ct.isString(t)&&(t=t.trim())&&!Dqe(t))o(Lqe(t),n);else if(ct.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=Bb(t),t){const r=ct.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return jqe(i);if(ct.isFunction(n))return n.call(this,i,r);if(ct.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Bb(t),t){const r=ct.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||GA(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=Bb(o),o){const s=ct.findKey(r,o);s&&(!n||GA(r,r[s],s,n))&&(delete r[s],i=!0)}}return ct.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||GA(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return ct.forEach(this,(i,a)=>{const o=ct.findKey(r,a);if(o){n[o]=kO(i),delete n[a];return}const s=t?Fqe(a):String(a).trim();s!==a&&delete n[a],n[s]=kO(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ct.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ct.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(` -`)}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(i=>r.set(i)),r}static accessor(t){const r=(this[Ete]=this[Ete]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Bb(o);r[s]||(Bqe(i,o),r[s]=!0)}return ct.isArray(t)?t.forEach(a):a(t),this}}xs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ct.reduceDescriptors(xs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),ct.freezeMethods(xs);function KA(e,t){const n=this||Fb,r=t||n,i=xs.from(r.headers);let a=r.data;return ct.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Ote(e){return!!(e&&e.__CANCEL__)}function Rm(e,t,n){nr.call(this,e==null?"canceled":e,nr.ERR_CANCELED,t,n),this.name="CanceledError"}ct.inherits(Rm,nr,{__CANCEL__:!0});function _te(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new nr("Request failed with status code "+n.status,[nr.ERR_BAD_REQUEST,nr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function zqe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Hqe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[a];o||(o=c),n[i]=l,r[i]=c;let f=a,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{n=u,i=null,a&&(clearTimeout(a),a=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?o(c,u):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-f)))},()=>i&&o(i)]}const TO=(e,t,n=3)=>{let r=0;const i=Hqe(50,250);return Wqe(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),u=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},$te=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Pte=e=>(...t)=>ct.asap(()=>e(...t)),Vqe=Ao.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ao.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ao.origin),Ao.navigator&&/(msie|trident)/i.test(Ao.navigator.userAgent)):()=>!0,qqe=Ao.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];ct.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),ct.isString(r)&&o.push("path="+r),ct.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Uqe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Gqe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Mte(e,t){return e&&!Uqe(t)?Gqe(e,t):t}const kte=e=>e instanceof xs?Ye({},e):e;function jp(e,t){t=t||{};const n={};function r(c,u,f,d){return ct.isPlainObject(c)&&ct.isPlainObject(u)?ct.merge.call({caseless:d},c,u):ct.isPlainObject(u)?ct.merge({},u):ct.isArray(u)?u.slice():u}function i(c,u,f,d){if(ct.isUndefined(u)){if(!ct.isUndefined(c))return r(void 0,c,f,d)}else return r(c,u,f,d)}function a(c,u){if(!ct.isUndefined(u))return r(void 0,u)}function o(c,u){if(ct.isUndefined(u)){if(!ct.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u,f)=>i(kte(c),kte(u),f,!0)};return ct.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||i,d=f(e[u],t[u],u);ct.isUndefined(d)&&f!==s||(n[u]=d)}),n}const Tte=e=>{const t=jp({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=xs.from(o),t.url=xte(Mte(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(ct.isFormData(n)){if(Ao.hasStandardBrowserEnv||Ao.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Ao.hasStandardBrowserEnv&&(r&&ct.isFunction(r)&&(r=r(t)),r||r!==!1&&Vqe(t.url))){const c=i&&a&&qqe.read(a);c&&o.set(i,c)}return t},Kqe=typeof XMLHttpRequest!="undefined"&&function(e){return new Promise(function(n,r){const i=Tte(e);let a=i.data;const o=xs.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,f,d,h,p;function g(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function m(){if(!v)return;const x=xs.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};_te(function(E){n(E),g()},function(E){r(E),g()},w),v=null}"onloadend"in v?v.onloadend=m:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(m)},v.onabort=function(){v&&(r(new nr("Request aborted",nr.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new nr("Network Error",nr.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||wte;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new nr(S,w.clarifyTimeoutError?nr.ETIMEDOUT:nr.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&ct.forEach(o.toJSON(),function(S,w){v.setRequestHeader(w,S)}),ct.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),c&&([d,p]=TO(c,!0),v.addEventListener("progress",d)),l&&v.upload&&([f,h]=TO(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=x=>{v&&(r(!x||x.type?new Rm(null,e,v):x),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const y=zqe(i.url);if(y&&Ao.protocols.indexOf(y)===-1){r(new nr("Unsupported protocol "+y+":",nr.ERR_BAD_REQUEST,e));return}v.send(a||null)})},Yqe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof nr?u:new Rm(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new nr(`timeout ${t} of ms exceeded`,nr.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>ct.asap(s),l}},Xqe=function*(e,t){let n=e.byteLength;if(n{const i=Zqe(e,t);let a=0,o,s=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({pull(c){return la(this,null,function*(){try{const{done:u,value:f}=yield i.next();if(u){s(),c.close();return}let d=f.byteLength;if(n){let h=a+=d;n(h)}c.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}})},cancel(c){return s(c),i.return()}},{highWaterMark:2})},RO=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ite=RO&&typeof ReadableStream=="function",Jqe=RO&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>la(this,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Ate=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},eUe=Ite&&Ate(()=>{let e=!1;const t=new Request(Ao.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Nte=64*1024,YA=Ite&&Ate(()=>ct.isReadableStream(new Response("").body)),IO={stream:YA&&(e=>e.body)};RO&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!IO[t]&&(IO[t]=ct.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new nr(`Response type '${t}' is not supported`,nr.ERR_NOT_SUPPORT,r)})})})(new Response);const tUe=e=>la(this,null,function*(){if(e==null)return 0;if(ct.isBlob(e))return e.size;if(ct.isSpecCompliantForm(e))return(yield new Request(Ao.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ct.isArrayBufferView(e)||ct.isArrayBuffer(e))return e.byteLength;if(ct.isURLSearchParams(e)&&(e=e+""),ct.isString(e))return(yield Jqe(e)).byteLength}),nUe=(e,t)=>la(this,null,function*(){const n=ct.toFiniteNumber(e.getContentLength());return n==null?tUe(t):n}),XA={http:Cqe,xhr:Kqe,fetch:RO&&(e=>la(this,null,function*(){let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:d}=Tte(e);c=c?(c+"").toLowerCase():"text";let h=Yqe([i,a&&a.toAbortSignal()],o),p;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(l&&eUe&&n!=="get"&&n!=="head"&&(v=yield nUe(u,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(ct.isFormData(r)&&(C=w.headers.get("content-type"))&&u.setContentType(C),w.body){const[E,O]=$te(v,TO(Pte(l)));r=Rte(w.body,Nte,E,O)}}ct.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;p=new Request(t,Rn(Ye({},d),{signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:m?f:void 0}));let y=yield fetch(p);const x=YA&&(c==="stream"||c==="response");if(YA&&(s||x&&g)){const w={};["status","statusText","headers"].forEach($=>{w[$]=y[$]});const C=ct.toFiniteNumber(y.headers.get("content-length")),[E,O]=s&&$te(C,TO(Pte(s),!0))||[];y=new Response(Rte(y.body,Nte,E,()=>{O&&O(),g&&g()}),w)}c=c||"text";let S=yield IO[ct.findKey(IO,c)||"text"](y,e);return!x&&g&&g(),yield new Promise((w,C)=>{_te(w,C,{data:S,headers:xs.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:p})})}catch(m){throw g&&g(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new nr("Network Error",nr.ERR_NETWORK,e,p),{cause:m.cause||m}):nr.from(m,m&&m.code,e,p)}}))};ct.forEach(XA,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Lte=e=>`- ${e}`,rUe=e=>ct.isFunction(e)||e===null||e===!1,jte={getAdapter:e=>{e=ct.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : -`+a.map(Lte).join(` -`):" "+Lte(a[0]):"as no adapter specified";throw new nr("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:XA};function ZA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rm(null,e)}function Dte(e){return ZA(e),e.headers=xs.from(e.headers),e.data=KA.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jte.getAdapter(e.adapter||Fb.adapter)(e).then(function(r){return ZA(e),r.data=KA.call(e,e.transformResponse,r),r.headers=xs.from(r.headers),r},function(r){return Ote(r)||(ZA(e),r&&r.response&&(r.response.data=KA.call(e,e.transformResponse,r.response),r.response.headers=xs.from(r.response.headers))),Promise.reject(r)})}const Fte="1.7.9",AO={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{AO[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Bte={};AO.transitional=function(t,n,r){function i(a,o){return"[Axios v"+Fte+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new nr(i(o," has been removed"+(n?" in "+n:"")),nr.ERR_DEPRECATED);return n&&!Bte[o]&&(Bte[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}},AO.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function iUe(e,t,n){if(typeof e!="object")throw new nr("options must be an object",nr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new nr("option "+a+" must be "+l,nr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new nr("Unknown option "+a,nr.ERR_BAD_OPTION)}}const NO={assertOptions:iUe,validators:AO},su=NO.validators;class Dp{constructor(t){this.defaults=t,this.interceptors={request:new Ste,response:new Ste}}request(t,n){return la(this,null,function*(){try{return yield this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}catch(o){}}throw r}})}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=jp(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&NO.assertOptions(r,{silentJSONParsing:su.transitional(su.boolean),forcedJSONParsing:su.transitional(su.boolean),clarifyTimeoutError:su.transitional(su.boolean)},!1),i!=null&&(ct.isFunction(i)?n.paramsSerializer={serialize:i}:NO.assertOptions(i,{encode:su.function,serialize:su.function},!0)),NO.assertOptions(n,{baseUrl:su.spelling("baseURL"),withXsrfToken:su.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&ct.merge(a.common,a[n.method]);a&&ct.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),n.headers=xs.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,d;if(!l){const p=[Dte.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),d=p.length,u=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new Rm(a,o,s),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 QA(function(i){t=i}),cancel:t}}}function aUe(e){return function(n){return e.apply(null,n)}}function oUe(e){return ct.isObject(e)&&e.isAxiosError===!0}const JA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(JA).forEach(([e,t])=>{JA[t]=e});function zte(e){const t=new Dp(e),n=ite(Dp.prototype.request,t);return ct.extend(n,Dp.prototype,t,{allOwnKeys:!0}),ct.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return zte(jp(e,i))},n}const Ta=zte(Fb);Ta.Axios=Dp,Ta.CanceledError=Rm,Ta.CancelToken=QA,Ta.isCancel=Ote,Ta.VERSION=Fte,Ta.toFormData=MO,Ta.AxiosError=nr,Ta.Cancel=Ta.CanceledError,Ta.all=function(t){return Promise.all(t)},Ta.spread=aUe,Ta.isAxiosError=oUe,Ta.mergeConfig=jp,Ta.AxiosHeaders=xs,Ta.formToJSON=e=>Cte(ct.isHTMLForm(e)?new FormData(e):e),Ta.getAdapter=jte.getAdapter,Ta.HttpStatusCode=JA,Ta.default=Ta;const sUe=()=>({withCredentials:!0}),LO=Ta.create(Ye({baseURL:window.SERVER_URL},sUe())),lu=e=>la(this,null,function*(){return(yield LO.get(e)).data}),gf=(e,t)=>la(this,null,function*(){return(yield LO.post(e,t)).data}),jO=(e,t)=>la(this,null,function*(){return(yield LO.patch(e,t)).data}),eN=e=>la(this,null,function*(){return(yield LO.delete(e)).data}),DO=e=>e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),ts=(e,t=!1)=>{if(t&&e.verbose_name_plural)return e.verbose_name_plural;if(e.verbose_name)return t?`${e.verbose_name}s`:e.verbose_name;const n=(e.name.match(/[A-Z][a-z]+|[0-9]+/g)||[e.name]).join(" ");return t?`${n}s`:n},zb=()=>{const[e,t]=b.useState(window.innerWidth);return b.useEffect(()=>{function n(){t(window.innerWidth)}return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),e<=768},Hte={site_name:"API Administration",username_field:"username",models:[],dashboard_widgets:[]},Mc=we.createContext({configuration:Hte}),FO=we.createContext({signedInUser:void 0,signedInUserRefetch:()=>{},signedIn:!1}),{Header:lUe,Sider:cUe}=hf,{Title:uUe}=kb,BO=({title:e,breadcrumbs:t,viewOnSite:n,headerActions:r,bottomActions:i,isLoading:a,children:o})=>{const s=Mm(),l=zb(),[c,u]=b.useState(),{model:f}=CO(),{configuration:d}=b.useContext(Mc),{signedInUser:h,signedInUserRefetch:p,signedIn:g}=b.useContext(FO),{t:v}=io("CrudContainer"),{token:{colorBgContainer:m,colorPrimary:y}}=$b.useToken();b.useEffect(()=>{g||s("/sign-in")},[s,g]);const{mutate:x}=Oo({mutationFn:()=>gf("/sign-out",{}),onSuccess:()=>{p()}}),S=O=>{switch(O.key){case"dashboard":s("/");break;default:s(`/list/${O.key}`);break}},w=O=>{switch(O.key){case"sign-out":x();break}},C=[{key:"dashboard",label:v("Dashboard")},{key:"divider",type:"divider"},...d.models.filter(O=>!c||O.name.toLocaleLowerCase().includes(c==null?void 0:c.toLocaleLowerCase())).map(O=>({key:O.name,label:ts(O)}))],E=O=>u(O.target.value);return ve.jsxs(ve.Fragment,{children:[ve.jsx(TA,{defaultTitle:e,children:ve.jsx("meta",{name:"description",content:e})}),ve.jsxs(hf,{style:{minHeight:"100vh"},children:[ve.jsx(lUe,{style:{background:y,paddingInline:20},children:ve.jsxs(Ri,{justify:"space-between",children:[ve.jsx(vr,{children:ve.jsxs(va,{children:[l&&ve.jsx(ff,{style:{background:y},theme:"light",mode:"horizontal",defaultSelectedKeys:[f||"dashboard"],items:[{key:(h==null?void 0:h.id)||"key",icon:ve.jsx(PY,{style:{color:m}}),children:C}],onClick:S}),ve.jsx(Ud,{to:"/",children:ve.jsx(VE,{src:window.SERVER_DOMAIN+d.site_header_logo,preview:!1,height:32,alt:d.site_name,style:{marginTop:-2}})}),!l&&ve.jsx(Ud,{to:"/",children:ve.jsx("span",{style:{color:m,fontSize:18,marginLeft:10},children:d.site_name})})]})}),ve.jsx(vr,{children:ve.jsxs(va,{children:[!l&&ve.jsx("span",{style:{color:m,marginRight:5},children:(h||{})[d.username_field]}),ve.jsx(ff,{style:{background:y},theme:"light",mode:"horizontal",items:[{key:(h==null?void 0:h.id)||"key",icon:ve.jsx(r9e,{style:{color:m}}),children:[{key:"sign-out",label:v("Sign Out")}]}],onClick:w})]})})]})}),ve.jsxs(hf,{children:[!l&&ve.jsxs(cUe,{style:{background:m,borderRadius:8},children:[ve.jsx("div",{style:{padding:10},children:ve.jsx(oi,{value:c,onChange:E,placeholder:v("Search By Menu"),prefix:ve.jsx(tm,{})})}),ve.jsx(ff,{mode:"inline",theme:"light",defaultSelectedKeys:[f||"dashboard"],style:{borderRight:0,overflowY:"scroll"},items:C,onClick:S})]}),ve.jsxs(hf,{style:{padding:16},children:[ve.jsxs(Ri,{justify:"space-between",children:[ve.jsx(vr,{children:t}),n&&ve.jsx(vr,{children:ve.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",children:[ve.jsx(IDe,{})," ",v("View on site")]})})]}),ve.jsx(dm,{title:ve.jsxs(Ri,{justify:"space-between",children:[ve.jsx(vr,{children:ve.jsx(uUe,{style:{margin:0,marginTop:15},level:5,children:e})}),r?ve.jsx(vr,{children:r}):null]}),style:{marginTop:16},children:ve.jsxs(Td,{loading:a,active:!0,children:[o,i?ve.jsx(Ri,{children:ve.jsx(vr,{children:i})}):null]})})]})]})]})]})},Wte="%[a-f0-9]{2}",Vte=new RegExp("("+Wte+")|([^%]+?)","gi"),qte=new RegExp("("+Wte+")+","gi");function tN(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(e.length===1)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],tN(n),tN(r))}function fUe(e){try{return decodeURIComponent(e)}catch(t){let n=e.match(Vte)||[];for(let r=1;re==null,gUe=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),nN=Symbol("encodeFragmentIdentifier");function mUe(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[Ra(t,e),"[",i,"]"].join("")]:[...n,[Ra(t,e),"[",Ra(i,e),"]=",Ra(r,e)].join("")]};case"bracket":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[Ra(t,e),"[]"].join("")]:[...n,[Ra(t,e),"[]=",Ra(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[Ra(t,e),":list="].join("")]:[...n,[Ra(t,e),":list=",Ra(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?r:(i=i===null?"":i,r.length===0?[[Ra(n,e),t,Ra(i,e)].join("")]:[[r,Ra(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,Ra(t,e)]:[...n,[Ra(t,e),"=",Ra(r,e)].join("")]}}function yUe(e){let t;switch(e.arrayFormat){case"index":return(n,r,i)=>{if(t=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!t){i[n]=r;return}i[n]===void 0&&(i[n]={}),i[n][t[1]]=r};case"bracket":return(n,r,i)=>{if(t=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"colon-list-separator":return(n,r,i)=>{if(t=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"comma":case"separator":return(n,r,i)=>{const a=typeof r=="string"&&r.includes(e.arrayFormatSeparator),o=typeof r=="string"&&!a&&mf(r,e).includes(e.arrayFormatSeparator);r=o?mf(r,e):r;const s=a||o?r.split(e.arrayFormatSeparator).map(l=>mf(l,e)):r===null?r:mf(r,e);i[n]=s};case"bracket-separator":return(n,r,i)=>{const a=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!a){i[n]=r&&mf(r,e);return}const o=r===null?[]:mf(r,e).split(e.arrayFormatSeparator);if(i[n]===void 0){i[n]=o;return}i[n]=[...i[n],...o]};default:return(n,r,i)=>{if(i[n]===void 0){i[n]=r;return}i[n]=[...[i[n]].flat(),r]}}}function Gte(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ra(e,t){return t.encode?t.strict?gUe(e):encodeURIComponent(e):e}function mf(e,t){return t.decode?hUe(e):e}function Kte(e){return Array.isArray(e)?e.sort():typeof e=="object"?Kte(Object.keys(e)).sort((t,n)=>Number(t)-Number(n)).map(t=>e[t]):e}function Yte(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function bUe(e){let t="";const n=e.indexOf("#");return n!==-1&&(t=e.slice(n)),t}function Xte(e,t,n){return n==="string"&&typeof e=="string"?e:typeof n=="function"&&typeof e=="string"?n(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":n==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function rN(e){e=Yte(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function iN(e,t){t=Ye({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null)},t),Gte(t.arrayFormatSeparator);const n=yUe(t),r=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return r;for(const i of e.split("&")){if(i==="")continue;const a=t.decode?i.replaceAll("+"," "):i;let[o,s]=Ute(a,"=");o===void 0&&(o=a),s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:mf(s,t),n(mf(o,t),s,r)}for(const[i,a]of Object.entries(r))if(typeof a=="object"&&a!==null&&t.types[i]!=="string")for(const[o,s]of Object.entries(a)){const l=t.types[i]?t.types[i].replace("[]",""):void 0;a[o]=Xte(s,t,l)}else typeof a=="object"&&a!==null&&t.types[i]==="string"?r[i]=Object.values(a).join(t.arrayFormatSeparator):r[i]=Xte(a,t,t.types[i]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((i,a)=>{const o=r[a];return i[a]=o&&typeof o=="object"&&!Array.isArray(o)?Kte(o):o,i},Object.create(null))}function Zte(e,t){if(!e)return"";t=Ye({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),Gte(t.arrayFormatSeparator);const n=o=>t.skipNull&&vUe(e[o])||t.skipEmptyString&&e[o]==="",r=mUe(t),i={};for(const[o,s]of Object.entries(e))n(o)||(i[o]=s);const a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(o=>{const s=e[o];return s===void 0?"":s===null?Ra(o,t):Array.isArray(s)?s.length===0&&t.arrayFormat==="bracket-separator"?Ra(o,t)+"[]":s.reduce(r(o),[]).join("&"):Ra(o,t)+"="+Ra(s,t)}).filter(o=>o.length>0).join("&")}function Qte(e,t){var i,a;t=Ye({decode:!0},t);let[n,r]=Ute(e,"#");return n===void 0&&(n=e),Ye({url:(a=(i=n==null?void 0:n.split("?"))==null?void 0:i[0])!=null?a:"",query:iN(rN(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:mf(r,t)}:{})}function Jte(e,t){t=Ye({encode:!0,strict:!0,[nN]:!0},t);const n=Yte(e.url).split("?")[0]||"",r=rN(e.url),i=Ye(Ye({},iN(r,{sort:!1})),e.query);let a=Zte(i,t);a&&(a=`?${a}`);let o=bUe(e.url);if(typeof e.fragmentIdentifier=="string"){const s=new URL(n);s.hash=e.fragmentIdentifier,o=t[nN]?s.hash:`#${e.fragmentIdentifier}`}return`${n}${a}${o}`}function ene(e,t,n){n=Ye({parseFragmentIdentifier:!0,[nN]:!1},n);const{url:r,query:i,fragmentIdentifier:a}=Qte(e,n);return Jte({url:r,query:pUe(i,t),fragmentIdentifier:a},n)}function xUe(e,t,n){const r=Array.isArray(t)?i=>!t.includes(i):(i,a)=>!t(i,a);return ene(e,r,n)}const Im=Object.freeze(Object.defineProperty({__proto__:null,exclude:xUe,extract:rN,parse:iN,parseUrl:Qte,pick:ene,stringify:Zte,stringifyUrl:Jte},Symbol.toStringTag,{value:"Module"}));var SUe=function(e,t,n,r){var i=typeof r!="undefined"?[r,e]:[e],a=new Blob(i,{type:n||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(a,t);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(a):window.webkitURL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=o,s.setAttribute("download",t),typeof s.download=="undefined"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),setTimeout(function(){document.body.removeChild(s),window.URL.revokeObjectURL(o)},200)}};const wUe=rn(SUe);var tne={exports:{}};(function(e,t){(function(n,r,i){e.exports=i(),e.exports.default=i()})("slugify",Ft,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),r=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(a,o){if(typeof a!="string")throw new Error("slugify: string argument expected");o=typeof o=="string"?{replacement:o}:o||{};var s=r[o.locale]||{},l=o.replacement===void 0?"-":o.replacement,c=o.trim===void 0?!0:o.trim,u=a.normalize().split("").reduce(function(f,d){var h=s[d];return h===void 0&&(h=n[d]),h===void 0&&(h=d),h===l&&(h=" "),f+h.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return o.strict&&(u=u.replace(/[^A-Za-z0-9\s]/g,"")),c&&(u=u.trim()),u=u.replace(/\s+/g,l),o.lower&&(u=u.toLowerCase()),u}return i.extend=function(a){Object.assign(n,a)},i})})(tne);var CUe=tne.exports;const nne=rn(CUe),zO=e=>/^(\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d{1,6})?(?:Z|[+-]\d{2}:\d{2}))?)$/.test(e),EUe=e=>/^[+-]?(\d+(\.\d*)?|\.\d+)$/.test(e),Am=e=>Array.isArray(e),aN=e=>/^(true|false)$/i.test(e),HO=e=>typeof e=="string"||e instanceof String,OUe=e=>{let t=e;if(!HO(e))try{t=JSON.stringify(e)}catch(n){return!1}try{JSON.parse(t)}catch(n){return!1}return!0},_Ue=e=>{if(!HO(e))return!1;try{return nne(e)===e}catch(t){return!1}},Hb=e=>e&&(Am(e)?e.map(Hb):e.date?e.format():e),WO=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Hb(n)])),oN=e=>{const t=WO(e),n={};for(const[r,i]of Object.entries(t)){if(Am(i)&&i.length===2&&i.every(zO))return n[`${r}__gte`]=i[0],n[`${r}__lte`]=i[1],n;if(Am(i))return n[`${r}__in`]=i,n;if(zO(i)||EUe(i)||aN(i))return n[r]=i,n;n[`${r}__icontains`]=i}return n},Wb=e=>e==null?e:Am(e)?e.map(Wb):aN(e)?e!=="false"&&!!e:zO(e)?Ro(e):e,sN=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Wb(n)])),$Ue=(e,t,n)=>{if(e==null)return t||"-";if(Am(e)){const r=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];return e.map((i,a)=>ve.jsx(aee,{color:r[a%r.length],children:i},i))}return aN(e)?ve.jsx(Ol,{checked:e}):zO(e)?Ro(e).format(n):e};var Hr=(e=>(e.Input="Input",e.InputNumber="InputNumber",e.SlugInput="SlugInput",e.EmailInput="EmailInput",e.PhoneInput="PhoneInput",e.UrlInput="UrlInput",e.PasswordInput="PasswordInput",e.TextArea="TextArea",e.RichTextArea="RichTextArea",e.JsonTextArea="JsonTextArea",e.Select="Select",e.AsyncSelect="AsyncSelect",e.AsyncTransfer="AsyncTransfer",e.Switch="Switch",e.Checkbox="Checkbox",e.TimePicker="TimePicker",e.DatePicker="DatePicker",e.DateTimePicker="DateTimePicker",e.RangePicker="RangePicker",e.RadioGroup="RadioGroup",e.CheckboxGroup="CheckboxGroup",e.Upload="Upload",e))(Hr||{}),Nm=(e=>(e.ChartLine="ChartLine",e.ChartArea="ChartArea",e.ChartColumn="ChartColumn",e.ChartBar="ChartBar",e.ChartPie="ChartPie",e))(Nm||{}),Ss=(e=>(e.Add="Add",e.Change="Change",e.Delete="Delete",e.Export="Export",e))(Ss||{}),Fp=(e=>(e.CSV="CSV",e.JSON="JSON",e))(Fp||{});const rne=({model:e,search:t,sortBy:n,filters:r,style:i})=>{const[a]=Rr.useForm(),{t:o}=io("ExportBtn"),[s,l]=b.useState(!1),c=Im.stringify(Ye({search:t,sort_by:n},oN(r))),{mutate:u,isPending:f}=Oo({mutationFn:g=>gf(`/export/${e}?${c}`,g),onSuccess:g=>{const v=a.getFieldValue("format")===Fp.JSON?JSON.stringify(g):g;wUe(v,`${e}.${a.getFieldValue("format").toLowerCase()}`),l(!1),a.resetFields(),na.success(o("Successfully exported"))},onError:()=>{na.error(o("Server error"))}}),d=b.useCallback(g=>u(g),[u]),h=b.useCallback(()=>l(!1),[]),p=b.useCallback(()=>l(!0),[]);return ve.jsxs(ve.Fragment,{children:[ve.jsx(zn,{style:i,loading:f,onClick:p,children:ve.jsxs(va,{children:[ve.jsx(A5,{}),o("Export")]})}),ve.jsxs(Ha,{width:300,open:s,onCancel:h,footer:null,title:o("Export"),children:[ve.jsx(iu,{}),ve.jsx(Ri,{children:ve.jsx(vr,{xs:24,children:ve.jsxs(Rr,{form:a,layout:"vertical",onFinish:d,initialValues:{limit:1e3,format:Fp.CSV},children:[ve.jsx(Rr.Item,{name:"format",label:o("Format"),children:ve.jsx(no,{options:[{label:Fp.CSV,value:Fp.CSV},{label:Fp.JSON,value:Fp.JSON}]})}),ve.jsx(Rr.Item,{name:"limit",label:o("Max Export Count"),children:ve.jsx(f5,{style:{width:"100%"}})}),ve.jsx(iu,{}),ve.jsx(Rr.Item,{children:ve.jsx(zn,{type:"primary",htmlType:"submit",children:ve.jsxs(va,{children:[ve.jsx(A5,{}),o("Export")]})})})]})})})]})]})},PUe=e=>{const[t,n]=b.useState([]);if(e.loading)return ve.jsx(GE,{});if(!e.dataSource||e.dataSource.length===0)return ve.jsx(Ba,{image:Ba.PRESENTED_IMAGE_SIMPLE});const r=e.rowKey,i=(a,o)=>{e.onChange&&e.onChange({current:a,pageSize:o},{},{},{})};return ve.jsxs(ve.Fragment,{children:[e.dataSource.map((a,o)=>{var l,c,u,f,d,h;const s=p=>{var g,v,m,y,x;if((g=e.rowSelection)!=null&&g.onChange)if(p.target.checked){const S=[...((v=e.rowSelection)==null?void 0:v.selectedRowKeys)||[],a[r]];(m=e.rowSelection)==null||m.onChange(S,[],{})}else{const S=(((y=e.rowSelection)==null?void 0:y.selectedRowKeys)||[]).filter(w=>w!==a[r]);(x=e.rowSelection)==null||x.onChange(S,[],{})}};return ve.jsx(dm,{className:e.className,style:{marginBottom:10},children:ve.jsxs(gm,{column:1,layout:"vertical",children:[e.rowSelection&&ve.jsx(gm.Item,{label:ve.jsx("b",{children:"Select"}),contentStyle:{width:"100%"},children:ve.jsx(Ol,{checked:(((l=e.rowSelection)==null?void 0:l.selectedRowKeys)||[]).includes(a[r]),onChange:s})},"selection"),e.expandable&&ve.jsxs(ve.Fragment,{children:[ve.jsx(gm.Item,{label:ve.jsx("b",{children:"Expand"}),contentStyle:{width:"100%"},children:(u=(c=e.expandable)==null?void 0:c.expandIcon)==null?void 0:u.call(c,{expanded:t.includes(a[r]),onExpand:()=>{t.includes(a[r])?n(t.filter(p=>p!==a[r])):n([...t,a[r]])},record:a})},"expandable"),t.includes(a[r])&&ve.jsx(gm.Item,{contentStyle:{width:"100%"},children:(d=(f=e.expandable)==null?void 0:f.expandedRowRender)==null?void 0:d.call(f,a,o,0,!0)},"expandable")]}),(h=e.columns)==null?void 0:h.map(p=>ve.jsx(gm.Item,{label:ve.jsx("b",{children:p.title}),contentStyle:{width:"100%"},children:p.render?p.render(p.dataIndex?a[p.dataIndex]:a,a):a[p.dataIndex]},p.title))]})},a[r])}),e.pagination&&ve.jsx(k5,Rn(Ye({},e.pagination),{onChange:i}))]})},ine=e=>{var n;return zb()?ve.jsx(PUe,Ye({},e)):ve.jsx(vf,Ye({sticky:!0,scroll:{x:(((n=e.columns)==null?void 0:n.length)||0)>7?1800:1200}},e))},kc=(e,t)=>{var o,s,l,c;const n=((s=(o=e==null?void 0:e.response)==null?void 0:o.data)==null?void 0:s.detail)||((c=(l=e==null?void 0:e.response)==null?void 0:l.data)==null?void 0:c.description);if(!Array.isArray(n)){typeof n=="string"||n instanceof String?na.error(n):na.error("Server error");return}const r={};for(const u of n){const f=(u==null?void 0:u.loc)||[],d=f[f.length-1];!d||!(u!=null&&u.msg)||(r[d]=[u==null?void 0:u.msg])}if(!t){na.error("Server error");return}const i=[],a=Object.keys(t.getFieldsValue()).filter(u=>u in r);for(const u of a)i.push({name:u,errors:r[u]});i.length>0&&t.setFields(i)};var MUe="Expected a function",ane=NaN,kUe="[object Symbol]",TUe=/^\s+|\s+$/g,RUe=/^[-+]0x[0-9a-f]+$/i,IUe=/^0b[01]+$/i,AUe=/^0o[0-7]+$/i,NUe=parseInt,LUe=typeof Ft=="object"&&Ft&&Ft.Object===Object&&Ft,jUe=typeof self=="object"&&self&&self.Object===Object&&self,DUe=LUe||jUe||Function("return this")(),FUe=Object.prototype,BUe=FUe.toString,zUe=Math.max,HUe=Math.min,lN=function(){return DUe.Date.now()};function WUe(e,t,n){var r,i,a,o,s,l,c=0,u=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(MUe);t=one(t)||0,cN(n)&&(u=!!n.leading,f="maxWait"in n,a=f?zUe(one(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function h(C){var E=r,O=i;return r=i=void 0,c=C,o=e.apply(O,E),o}function p(C){return c=C,s=setTimeout(m,t),u?h(C):o}function g(C){var E=C-l,O=C-c,$=t-E;return f?HUe($,a-O):$}function v(C){var E=C-l,O=C-c;return l===void 0||E>=t||E<0||f&&O>=a}function m(){var C=lN();if(v(C))return y(C);s=setTimeout(m,g(C))}function y(C){return s=void 0,d&&r?h(C):(r=i=void 0,o)}function x(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function S(){return s===void 0?o:y(lN())}function w(){var C=lN(),E=v(C);if(r=arguments,i=this,l=C,E){if(s===void 0)return p(l);if(f)return s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return w.cancel=x,w.flush=S,w}function cN(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function VUe(e){return!!e&&typeof e=="object"}function qUe(e){return typeof e=="symbol"||VUe(e)&&BUe.call(e)==kUe}function one(e){if(typeof e=="number")return e;if(qUe(e))return ane;if(cN(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=cN(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(TUe,"");var n=IUe.test(e);return n||AUe.test(e)?NUe(e.slice(2),n?2:8):RUe.test(e)?ane:+e}var UUe=WUe;const sne=rn(UUe),VO=(e,t)=>{const n=e.models.find(r=>r.name===t);if(n)return n;for(const r of e.models)for(const i of r.inlines||[])if(i.name===t)return i},GUe=a=>{var o=a,{idField:e,labelFields:t,value:n,parentModel:r}=o,i=oc(o,["idField","labelFields","value","parentModel"]);const[s]=Rr.useForm(),[l]=Rr.useForm(),{t:c}=io("AsyncSelect"),[u,f]=b.useState(),{configuration:d}=b.useContext(Mc),[h,p]=b.useState(!1),[g,v]=b.useState(),m=VO(d,r),y=Im.stringify({offset:0,limit:20,search:u}),{data:x,isLoading:S,refetch:w}=Kc({queryKey:[`/list/${r}`,y],queryFn:()=>lu(`/list/${r}?${y}`)}),{data:C,isLoading:E}=Kc({queryKey:[`/retrieve/${r}/${g}`],queryFn:()=>lu(`/retrieve/${r}/${g}`),enabled:!!g,refetchOnWindowFocus:!1}),{mutate:O,isPending:$,isError:P}=Oo({mutationFn:W=>gf(`/add/${r}`,W),onSuccess:()=>{na.success(c("Succesfully added")),w(),L()},onError:W=>{kc(W,s)}}),{mutate:M,isPending:k,isError:T}=Oo({mutationFn:W=>jO(`/change/${r}/${g}`,W),onSuccess:()=>{na.success(c("Succesfully changed")),w(),B()},onError:W=>{kc(W,l)}}),R=(W,q)=>((q==null?void 0:q.label)||"").toString().toLowerCase().indexOf(W.toLowerCase())>=0||((q==null?void 0:q.value)||"").toString().toLowerCase().indexOf(W.toLowerCase())>=0,A=W=>{f(W)},N=b.useCallback(()=>{s.resetFields(),p(!0)},[s]),L=b.useCallback(()=>{p(!1)},[]),j=W=>{O(W)},F=b.useCallback(W=>{l.resetFields(),v(W),p(!1)},[l]),B=b.useCallback(()=>{v(void 0),p(!1)},[]),D=W=>{M(W)},z=i.mode==="multiple";return ve.jsxs(ve.Fragment,{children:[ve.jsxs(va.Compact,{style:{width:"100%"},children:[ve.jsx(ro,{title:c(`Add ${m&&ts(m)}`),children:ve.jsx(zn,{onClick:N,children:ve.jsx(N5,{})})}),n&&!z&&ve.jsx(ro,{title:c(`Edit ${m&&ts(m)}`),children:ve.jsx(zn,{onClick:()=>F(n),children:ve.jsx(JE,{})})}),ve.jsx(no,Ye({allowClear:!0,showSearch:!0,loading:S,filterOption:R,onSearch:sne(A,500),options:((x==null?void 0:x.results)||[]).map(W=>{const q=t.filter(H=>W[H])[0];return{value:`${W[e]}`,label:W[q]}}),value:z?n?n.map(W=>`${W}`):[]:n?`${n}`:void 0},i))]}),ve.jsxs(Ha,{width:600,open:h,title:c(`Add ${m&&ts(m)}`),onCancel:L,footer:null,children:[ve.jsx(iu,{}),m!=null&&m.permissions.includes(Ss.Add)?ve.jsx(Dm,{modelConfiguration:m,form:s,onFinish:j,mode:"inline-add",hasOperationError:P,children:ve.jsx(Ri,{justify:"end",children:ve.jsx(vr,{children:ve.jsx(va,{children:ve.jsxs(zn,{loading:$,htmlType:"submit",type:"primary",children:[ve.jsx(ym,{})," ",c("Add")]})})})})}):ve.jsx(Ba,{description:c("No permissions for model")})]}),ve.jsxs(Ha,{width:600,open:!!g,title:`Change ${m&&ts(m)} ${g}`,onCancel:B,footer:null,children:[ve.jsx(iu,{}),C&&m&&m.permissions.includes(Ss.Change)?ve.jsx(Dm,{modelConfiguration:m,form:l,onFinish:D,mode:"inline-change",hasOperationError:T,initialValues:sN(C),children:ve.jsx(Ri,{justify:"end",children:ve.jsx(vr,{children:ve.jsx(va,{children:ve.jsxs(zn,{loading:k||E,htmlType:"submit",type:"primary",children:[ve.jsx(ym,{})," ",c("Save")]})})})})}):ve.jsx(Ba,{description:c("No permissions for model")})]})]})},KUe=s=>{var l=s,{parentModel:e,idField:t,labelFields:n,layout:r,value:i,onChange:a}=l,o=oc(l,["parentModel","idField","labelFields","layout","value","onChange"]);const[c,u]=b.useState(),f=zb(),d=Im.stringify({offset:0,limit:20,search:c}),{data:h}=Kc({queryKey:[`/list/${e}`,d],queryFn:()=>lu(`/list/${e}?${d}`)}),p=(y,x)=>((x==null?void 0:x.key)||"").toLowerCase().indexOf(y.toLowerCase())>=0||((x==null?void 0:x.value)||"").toLowerCase().indexOf(y.toLowerCase())>=0,g=(y,x)=>{y==="left"&&u(x)},v=((h==null?void 0:h.results)||[]).map(y=>{const x=n.filter(S=>y[S])[0];return{key:y[t],title:y[x]}}),m=y=>y.title;return ve.jsx(uO,Ye({dataSource:v,showSearch:!0,filterOption:p,onSearch:sne(g,500),render:m,onChange:a,targetKeys:i,listStyle:r==="vertical"||f?{width:"100%",marginTop:5,marginBottom:5}:{width:"100%"},style:r==="vertical"||f?{display:"block"}:void 0},o))},{useToken:YUe}=$b,XUe=r=>{var i=r,{value:e,onChange:t}=i,n=oc(i,["value","onChange"]);var l;const{token:a}=YUe(),o=HO(e)?e:JSON.stringify(e,null," "),s=(l=o==null?void 0:o.split(/\r\n|\r|\n/))==null?void 0:l.length;return ve.jsx(oi.TextArea,Ye({rows:s>30?30:s,value:o,onChange:t,style:{backgroundColor:a.colorTextBase,color:a.colorBgBase,border:"none"}},n))},ZUe=n=>{var r=n,{parentId:e}=r,t=oc(r,["parentId"]);const{t:i}=io("PasswordInput"),[a]=Rr.useForm(),[o,s]=we.useState(!1),l=()=>{s(!1),a.resetFields()},c=()=>{a.resetFields(),s(!0)},{mutate:u,isPending:f}=Oo({mutationFn:h=>jO(`/change-password/${e}`,h),onSuccess:()=>{na.success(i("Succesfully changed")),l()},onError:h=>{kc(h,a)}}),d=h=>{u(h)};return e?ve.jsxs(ve.Fragment,{children:[ve.jsxs(va.Compact,{style:{width:"100%"},children:[ve.jsx(ro,{title:i("Change Password"),children:ve.jsx(zn,{onClick:c,children:ve.jsx(JE,{})})}),ve.jsx(oi.Password,Rn(Ye({},t),{disabled:!0}))]}),ve.jsxs(Ha,{open:o,title:i("Change Password"),onCancel:l,footer:null,children:[ve.jsx(iu,{}),ve.jsxs(Rr,{form:a,layout:"vertical",onFinish:d,children:[ve.jsx(Rr.Item,{name:"password",label:"Password",children:ve.jsx(oi.Password,{})}),ve.jsx(Rr.Item,{name:"confirm_password",label:"Confirm Password",children:ve.jsx(oi.Password,{})}),ve.jsx(iu,{}),ve.jsx(Rr.Item,{children:ve.jsx(zn,{type:"primary",loading:f,htmlType:"submit",children:i("Save")})})]})]})]}):ve.jsx(oi.Password,Ye({},t))};var QUe=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var o in r)n.d(a,o,function(s){return r[s]}.bind(null,o));return a},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=9)}([function(e,t){e.exports=b},function(e,t,n){var r;/*! + */function NA(){return NA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function PVe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function MVe(e,t){return e.button===0&&(!t||t==="_self")&&!PVe(e)}const kVe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],TVe="6";try{window.__reactRouterVersion=TVe}catch(e){}const Jee=wy["startTransition"];function RVe(e){let{basename:t,children:n,future:r,window:i}=e,a=b.useRef();a.current==null&&(a.current=LWe({window:i,v5Compat:!0}));let o=a.current,[s,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=b.useCallback(f=>{c&&Jee?Jee(()=>l(f)):l(f)},[l,c]);return b.useLayoutEffect(()=>o.listen(u),[o,u]),b.useEffect(()=>EVe(r),[r]),b.createElement(OVe,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}const IVe=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",AVe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gd=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u,viewTransition:f}=t,d=$Ve(t,kVe),{basename:h}=b.useContext(jp),p,v=!1;if(typeof c=="string"&&AVe.test(c)&&(p=c,IVe))try{let x=new URL(window.location.href),S=c.startsWith("//")?new URL(x.protocol+c):new URL(c),w=TA(S.pathname,h);S.origin===x.origin&&w!=null?c=w+S.search+S.hash:v=!0}catch(x){}let g=cVe(c,{relative:i}),m=NVe(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:f});function y(x){r&&r(x),x.defaultPrevented||m(x)}return b.createElement("a",NA({},d,{href:p||g,onClick:v||a?r:y,ref:n,target:l}))});var ete;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ete||(ete={}));var tte;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(tte||(tte={}));function NVe(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=Mm(),c=xO(),u=Kee(e,{relative:o});return b.useCallback(f=>{if(MVe(f,n)){f.preventDefault();let d=r!==void 0?r:yO(c)===yO(u);l(e,{replace:d,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[c,l,u,r,i,n,e,a,o,s])}function nte(e,t){return function(){return e.apply(t,arguments)}}const{toString:LVe}=Object.prototype,{getPrototypeOf:LA}=Object,CO=(e=>t=>{const n=LVe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pc=e=>(e=e.toLowerCase(),t=>CO(t)===e),EO=e=>t=>typeof t===e,{isArray:Tm}=Array,jb=EO("undefined");function jVe(e){return e!==null&&!jb(e)&&e.constructor!==null&&!jb(e.constructor)&&Ys(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rte=Pc("ArrayBuffer");function DVe(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rte(e.buffer),t}const FVe=EO("string"),Ys=EO("function"),ite=EO("number"),OO=e=>e!==null&&typeof e=="object",BVe=e=>e===!0||e===!1,_O=e=>{if(CO(e)!=="object")return!1;const t=LA(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},zVe=Pc("Date"),HVe=Pc("File"),WVe=Pc("Blob"),VVe=Pc("FileList"),qVe=e=>OO(e)&&Ys(e.pipe),UVe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ys(e.append)&&((t=CO(e))==="formdata"||t==="object"&&Ys(e.toString)&&e.toString()==="[object FormData]"))},GVe=Pc("URLSearchParams"),[KVe,YVe,XVe,ZVe]=["ReadableStream","Request","Response","Headers"].map(Pc),QVe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Db(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,i;if(typeof e!="object"&&(e=[e]),Tm(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Dp=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,ote=e=>!jb(e)&&e!==Dp;function jA(){const{caseless:e}=ote(this)&&this||{},t={},n=(r,i)=>{const a=e&&ate(t,i)||i;_O(t[a])&&_O(r)?t[a]=jA(t[a],r):_O(r)?t[a]=jA({},r):Tm(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(Db(t,(i,a)=>{n&&Ys(i)?e[a]=nte(i,n):e[a]=i},{allOwnKeys:r}),e),eqe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tqe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},nqe=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&LA(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rqe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},iqe=e=>{if(!e)return null;if(Tm(e))return e;let t=e.length;if(!ite(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},aqe=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&LA(Uint8Array)),oqe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},sqe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},lqe=Pc("HTMLFormElement"),cqe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ste=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),uqe=Pc("RegExp"),lte=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Db(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},fqe=e=>{lte(e,(t,n)=>{if(Ys(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ys(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},dqe=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Tm(e)?r(e):r(String(e).split(t)),n},hqe=()=>{},pqe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,DA="abcdefghijklmnopqrstuvwxyz",cte="0123456789",ute={DIGIT:cte,ALPHA:DA,ALPHA_DIGIT:DA+DA.toUpperCase()+cte},vqe=(e=16,t=ute.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function gqe(e){return!!(e&&Ys(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const mqe=e=>{const t=new Array(10),n=(r,i)=>{if(OO(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=Tm(r)?[]:{};return Db(r,(o,s)=>{const l=n(o,i+1);!jb(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},yqe=Pc("AsyncFunction"),bqe=e=>e&&(OO(e)||Ys(e))&&Ys(e.then)&&Ys(e.catch),fte=((e,t)=>e?setImmediate:t?((n,r)=>(Dp.addEventListener("message",({source:i,data:a})=>{i===Dp&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Dp.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ys(Dp.postMessage)),xqe=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Dp):typeof process!="undefined"&&process.nextTick||fte,ut={isArray:Tm,isArrayBuffer:rte,isBuffer:jVe,isFormData:UVe,isArrayBufferView:DVe,isString:FVe,isNumber:ite,isBoolean:BVe,isObject:OO,isPlainObject:_O,isReadableStream:KVe,isRequest:YVe,isResponse:XVe,isHeaders:ZVe,isUndefined:jb,isDate:zVe,isFile:HVe,isBlob:WVe,isRegExp:uqe,isFunction:Ys,isStream:qVe,isURLSearchParams:GVe,isTypedArray:aqe,isFileList:VVe,forEach:Db,merge:jA,extend:JVe,trim:QVe,stripBOM:eqe,inherits:tqe,toFlatObject:nqe,kindOf:CO,kindOfTest:Pc,endsWith:rqe,toArray:iqe,forEachEntry:oqe,matchAll:sqe,isHTMLForm:lqe,hasOwnProperty:ste,hasOwnProp:ste,reduceDescriptors:lte,freezeMethods:fqe,toObjectSet:dqe,toCamelCase:cqe,noop:hqe,toFiniteNumber:pqe,findKey:ate,global:Dp,isContextDefined:ote,ALPHABET:ute,generateString:vqe,isSpecCompliantForm:gqe,toJSONObject:mqe,isAsyncFn:yqe,isThenable:bqe,setImmediate:fte,asap:xqe};function nr(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ut.inherits(nr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ut.toJSONObject(this.config),code:this.code,status:this.status}}});const dte=nr.prototype,hte={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{hte[e]={value:e}}),Object.defineProperties(nr,hte),Object.defineProperty(dte,"isAxiosError",{value:!0}),nr.from=(e,t,n,r,i,a)=>{const o=Object.create(dte);return ut.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),nr.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Sqe=null;function FA(e){return ut.isPlainObject(e)||ut.isArray(e)}function pte(e){return ut.endsWith(e,"[]")?e.slice(0,-2):e}function vte(e,t,n){return e?e.concat(t).map(function(i,a){return i=pte(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function wqe(e){return ut.isArray(e)&&!e.some(FA)}const Cqe=ut.toFlatObject(ut,{},null,function(t){return/^is[A-Z]/.test(t)});function $O(e,t,n){if(!ut.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ut.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!ut.isUndefined(g[v])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&ut.isSpecCompliantForm(t);if(!ut.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(ut.isDate(p))return p.toISOString();if(!l&&ut.isBlob(p))throw new nr("Blob is not supported. Use a Buffer instead.");return ut.isArrayBuffer(p)||ut.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,v,g){let m=p;if(p&&!g&&typeof p=="object"){if(ut.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(ut.isArray(p)&&wqe(p)||(ut.isFileList(p)||ut.endsWith(v,"[]"))&&(m=ut.toArray(p)))return v=pte(v),m.forEach(function(x,S){!(ut.isUndefined(x)||x===null)&&t.append(o===!0?vte([v],S,a):o===null?v:v+"[]",c(x))}),!1}return FA(p)?!0:(t.append(vte(g,v,a),c(p)),!1)}const f=[],d=Object.assign(Cqe,{defaultVisitor:u,convertValue:c,isVisitable:FA});function h(p,v){if(!ut.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),ut.forEach(p,function(m,y){(!(ut.isUndefined(m)||m===null)&&i.call(t,m,ut.isString(y)?y.trim():y,v,d))===!0&&h(m,v?v.concat(y):[y])}),f.pop()}}if(!ut.isObject(e))throw new TypeError("data must be an object");return h(e),t}function gte(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function BA(e,t){this._pairs=[],e&&$O(e,this,t)}const mte=BA.prototype;mte.append=function(t,n){this._pairs.push([t,n])},mte.toString=function(t){const n=t?function(r){return t.call(this,r,gte)}:gte;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Eqe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yte(e,t,n){if(!t)return e;const r=n&&n.encode||Eqe;ut.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=ut.isURLSearchParams(t)?t.toString():new BA(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class bte{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ut.forEach(this.handlers,function(r){r!==null&&t(r)})}}const xte={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oqe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:BA,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},zA=typeof window!="undefined"&&typeof document!="undefined",HA=typeof navigator=="object"&&navigator||void 0,_qe=zA&&(!HA||["ReactNative","NativeScript","NS"].indexOf(HA.product)<0),$qe=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Pqe=zA&&window.location.href||"http://localhost",Ao=Ke(Ke({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zA,hasStandardBrowserEnv:_qe,hasStandardBrowserWebWorkerEnv:$qe,navigator:HA,origin:Pqe},Symbol.toStringTag,{value:"Module"}))),Oqe);function Mqe(e,t){return $O(e,new Ao.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Ao.isNode&&ut.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function kqe(e){return ut.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tqe(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&ut.isArray(i)?i.length:o,l?(ut.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!ut.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&ut.isArray(i[o])&&(i[o]=Tqe(i[o])),!s)}if(ut.isFormData(e)&&ut.isFunction(e.entries)){const n={};return ut.forEachEntry(e,(r,i)=>{t(kqe(r),i,n,0)}),n}return null}function Rqe(e,t,n){if(ut.isString(e))try{return(t||JSON.parse)(e),ut.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Fb={transitional:xte,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=ut.isObject(t);if(a&&ut.isHTMLForm(t)&&(t=new FormData(t)),ut.isFormData(t))return i?JSON.stringify(Ste(t)):t;if(ut.isArrayBuffer(t)||ut.isBuffer(t)||ut.isStream(t)||ut.isFile(t)||ut.isBlob(t)||ut.isReadableStream(t))return t;if(ut.isArrayBufferView(t))return t.buffer;if(ut.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Mqe(t,this.formSerializer).toString();if((s=ut.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return $O(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),Rqe(t)):t}],transformResponse:[function(t){const n=this.transitional||Fb.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ut.isResponse(t)||ut.isReadableStream(t))return t;if(t&&ut.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?nr.from(s,nr.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ao.classes.FormData,Blob:Ao.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ut.forEach(["delete","get","head","post","put","patch"],e=>{Fb.headers[e]={}});const Iqe=ut.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Aqe=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&Iqe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},wte=Symbol("internals");function Bb(e){return e&&String(e).trim().toLowerCase()}function PO(e){return e===!1||e==null?e:ut.isArray(e)?e.map(PO):String(e)}function Nqe(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 Lqe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function WA(e,t,n,r,i){if(ut.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ut.isString(t)){if(ut.isString(r))return t.indexOf(r)!==-1;if(ut.isRegExp(r))return r.test(t)}}function jqe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Dqe(e,t){const n=ut.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class xs{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const u=Bb(l);if(!u)throw new Error("header name must be a non-empty string");const f=ut.findKey(i,u);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||l]=PO(s))}const o=(s,l)=>ut.forEach(s,(c,u)=>a(c,u,l));if(ut.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(ut.isString(t)&&(t=t.trim())&&!Lqe(t))o(Aqe(t),n);else if(ut.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=Bb(t),t){const r=ut.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Nqe(i);if(ut.isFunction(n))return n.call(this,i,r);if(ut.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Bb(t),t){const r=ut.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||WA(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=Bb(o),o){const s=ut.findKey(r,o);s&&(!n||WA(r,r[s],s,n))&&(delete r[s],i=!0)}}return ut.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||WA(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return ut.forEach(this,(i,a)=>{const o=ut.findKey(r,a);if(o){n[o]=PO(i),delete n[a];return}const s=t?jqe(a):String(a).trim();s!==a&&delete n[a],n[s]=PO(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ut.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ut.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(` +`)}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(i=>r.set(i)),r}static accessor(t){const r=(this[wte]=this[wte]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Bb(o);r[s]||(Dqe(i,o),r[s]=!0)}return ut.isArray(t)?t.forEach(a):a(t),this}}xs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ut.reduceDescriptors(xs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),ut.freezeMethods(xs);function VA(e,t){const n=this||Fb,r=t||n,i=xs.from(r.headers);let a=r.data;return ut.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Cte(e){return!!(e&&e.__CANCEL__)}function Rm(e,t,n){nr.call(this,e==null?"canceled":e,nr.ERR_CANCELED,t,n),this.name="CanceledError"}ut.inherits(Rm,nr,{__CANCEL__:!0});function Ete(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new nr("Request failed with status code "+n.status,[nr.ERR_BAD_REQUEST,nr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Fqe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Bqe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[a];o||(o=c),n[i]=l,r[i]=c;let f=a,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{n=u,i=null,a&&(clearTimeout(a),a=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?o(c,u):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-f)))},()=>i&&o(i)]}const MO=(e,t,n=3)=>{let r=0;const i=Bqe(50,250);return zqe(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),u=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},Ote=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},_te=e=>(...t)=>ut.asap(()=>e(...t)),Hqe=Ao.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ao.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ao.origin),Ao.navigator&&/(msie|trident)/i.test(Ao.navigator.userAgent)):()=>!0,Wqe=Ao.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];ut.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),ut.isString(r)&&o.push("path="+r),ut.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vqe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qqe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $te(e,t){return e&&!Vqe(t)?qqe(e,t):t}const Pte=e=>e instanceof xs?Ke({},e):e;function Fp(e,t){t=t||{};const n={};function r(c,u,f,d){return ut.isPlainObject(c)&&ut.isPlainObject(u)?ut.merge.call({caseless:d},c,u):ut.isPlainObject(u)?ut.merge({},u):ut.isArray(u)?u.slice():u}function i(c,u,f,d){if(ut.isUndefined(u)){if(!ut.isUndefined(c))return r(void 0,c,f,d)}else return r(c,u,f,d)}function a(c,u){if(!ut.isUndefined(u))return r(void 0,u)}function o(c,u){if(ut.isUndefined(u)){if(!ut.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u,f)=>i(Pte(c),Pte(u),f,!0)};return ut.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||i,d=f(e[u],t[u],u);ut.isUndefined(d)&&f!==s||(n[u]=d)}),n}const Mte=e=>{const t=Fp({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=xs.from(o),t.url=yte($te(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(ut.isFormData(n)){if(Ao.hasStandardBrowserEnv||Ao.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Ao.hasStandardBrowserEnv&&(r&&ut.isFunction(r)&&(r=r(t)),r||r!==!1&&Hqe(t.url))){const c=i&&a&&Wqe.read(a);c&&o.set(i,c)}return t},Uqe=typeof XMLHttpRequest!="undefined"&&function(e){return new Promise(function(n,r){const i=Mte(e);let a=i.data;const o=xs.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,f,d,h,p;function v(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function m(){if(!g)return;const x=xs.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:x,config:e,request:g};Ete(function(E){n(E),v()},function(E){r(E),v()},w),g=null}"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(m)},g.onabort=function(){g&&(r(new nr("Request aborted",nr.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new nr("Network Error",nr.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||xte;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new nr(S,w.clarifyTimeoutError?nr.ETIMEDOUT:nr.ECONNABORTED,e,g)),g=null},a===void 0&&o.setContentType(null),"setRequestHeader"in g&&ut.forEach(o.toJSON(),function(S,w){g.setRequestHeader(w,S)}),ut.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),c&&([d,p]=MO(c,!0),g.addEventListener("progress",d)),l&&g.upload&&([f,h]=MO(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=x=>{g&&(r(!x||x.type?new Rm(null,e,g):x),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const y=Fqe(i.url);if(y&&Ao.protocols.indexOf(y)===-1){r(new nr("Unsupported protocol "+y+":",nr.ERR_BAD_REQUEST,e));return}g.send(a||null)})},Gqe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof nr?u:new Rm(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new nr(`timeout ${t} of ms exceeded`,nr.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>ut.asap(s),l}},Kqe=function*(e,t){let n=e.byteLength;if(n{const i=Yqe(e,t);let a=0,o,s=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({pull(c){return la(this,null,function*(){try{const{done:u,value:f}=yield i.next();if(u){s(),c.close();return}let d=f.byteLength;if(n){let h=a+=d;n(h)}c.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}})},cancel(c){return s(c),i.return()}},{highWaterMark:2})},kO=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Tte=kO&&typeof ReadableStream=="function",Zqe=kO&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>la(this,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Rte=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Qqe=Tte&&Rte(()=>{let e=!1;const t=new Request(Ao.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ite=64*1024,qA=Tte&&Rte(()=>ut.isReadableStream(new Response("").body)),TO={stream:qA&&(e=>e.body)};kO&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!TO[t]&&(TO[t]=ut.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new nr(`Response type '${t}' is not supported`,nr.ERR_NOT_SUPPORT,r)})})})(new Response);const Jqe=e=>la(this,null,function*(){if(e==null)return 0;if(ut.isBlob(e))return e.size;if(ut.isSpecCompliantForm(e))return(yield new Request(Ao.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ut.isArrayBufferView(e)||ut.isArrayBuffer(e))return e.byteLength;if(ut.isURLSearchParams(e)&&(e=e+""),ut.isString(e))return(yield Zqe(e)).byteLength}),eUe=(e,t)=>la(this,null,function*(){const n=ut.toFiniteNumber(e.getContentLength());return n==null?Jqe(t):n}),UA={http:Sqe,xhr:Uqe,fetch:kO&&(e=>la(this,null,function*(){let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:d}=Mte(e);c=c?(c+"").toLowerCase():"text";let h=Gqe([i,a&&a.toAbortSignal()],o),p;const v=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Qqe&&n!=="get"&&n!=="head"&&(g=yield eUe(u,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(ut.isFormData(r)&&(C=w.headers.get("content-type"))&&u.setContentType(C),w.body){const[E,O]=Ote(g,MO(_te(l)));r=kte(w.body,Ite,E,O)}}ut.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;p=new Request(t,Rn(Ke({},d),{signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:m?f:void 0}));let y=yield fetch(p);const x=qA&&(c==="stream"||c==="response");if(qA&&(s||x&&v)){const w={};["status","statusText","headers"].forEach($=>{w[$]=y[$]});const C=ut.toFiniteNumber(y.headers.get("content-length")),[E,O]=s&&Ote(C,MO(_te(s),!0))||[];y=new Response(kte(y.body,Ite,E,()=>{O&&O(),v&&v()}),w)}c=c||"text";let S=yield TO[ut.findKey(TO,c)||"text"](y,e);return!x&&v&&v(),yield new Promise((w,C)=>{Ete(w,C,{data:S,headers:xs.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:p})})}catch(m){throw v&&v(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new nr("Network Error",nr.ERR_NETWORK,e,p),{cause:m.cause||m}):nr.from(m,m&&m.code,e,p)}}))};ut.forEach(UA,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Ate=e=>`- ${e}`,tUe=e=>ut.isFunction(e)||e===null||e===!1,Nte={getAdapter:e=>{e=ut.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : +`+a.map(Ate).join(` +`):" "+Ate(a[0]):"as no adapter specified";throw new nr("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:UA};function GA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rm(null,e)}function Lte(e){return GA(e),e.headers=xs.from(e.headers),e.data=VA.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Nte.getAdapter(e.adapter||Fb.adapter)(e).then(function(r){return GA(e),r.data=VA.call(e,e.transformResponse,r),r.headers=xs.from(r.headers),r},function(r){return Cte(r)||(GA(e),r&&r.response&&(r.response.data=VA.call(e,e.transformResponse,r.response),r.response.headers=xs.from(r.response.headers))),Promise.reject(r)})}const jte="1.7.9",RO={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{RO[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Dte={};RO.transitional=function(t,n,r){function i(a,o){return"[Axios v"+jte+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new nr(i(o," has been removed"+(n?" in "+n:"")),nr.ERR_DEPRECATED);return n&&!Dte[o]&&(Dte[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}},RO.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function nUe(e,t,n){if(typeof e!="object")throw new nr("options must be an object",nr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new nr("option "+a+" must be "+l,nr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new nr("Unknown option "+a,nr.ERR_BAD_OPTION)}}const IO={assertOptions:nUe,validators:RO},su=IO.validators;class Bp{constructor(t){this.defaults=t,this.interceptors={request:new bte,response:new bte}}request(t,n){return la(this,null,function*(){try{return yield this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch(o){}}throw r}})}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fp(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&IO.assertOptions(r,{silentJSONParsing:su.transitional(su.boolean),forcedJSONParsing:su.transitional(su.boolean),clarifyTimeoutError:su.transitional(su.boolean)},!1),i!=null&&(ut.isFunction(i)?n.paramsSerializer={serialize:i}:IO.assertOptions(i,{encode:su.function,serialize:su.function},!0)),IO.assertOptions(n,{baseUrl:su.spelling("baseURL"),withXsrfToken:su.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&ut.merge(a.common,a[n.method]);a&&ut.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),n.headers=xs.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,f=0,d;if(!l){const p=[Lte.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),d=p.length,u=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new Rm(a,o,s),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 KA(function(i){t=i}),cancel:t}}}function rUe(e){return function(n){return e.apply(null,n)}}function iUe(e){return ut.isObject(e)&&e.isAxiosError===!0}const YA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(YA).forEach(([e,t])=>{YA[t]=e});function Fte(e){const t=new Bp(e),n=nte(Bp.prototype.request,t);return ut.extend(n,Bp.prototype,t,{allOwnKeys:!0}),ut.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Fte(Fp(e,i))},n}const Ta=Fte(Fb);Ta.Axios=Bp,Ta.CanceledError=Rm,Ta.CancelToken=KA,Ta.isCancel=Cte,Ta.VERSION=jte,Ta.toFormData=$O,Ta.AxiosError=nr,Ta.Cancel=Ta.CanceledError,Ta.all=function(t){return Promise.all(t)},Ta.spread=rUe,Ta.isAxiosError=iUe,Ta.mergeConfig=Fp,Ta.AxiosHeaders=xs,Ta.formToJSON=e=>Ste(ut.isHTMLForm(e)?new FormData(e):e),Ta.getAdapter=Nte.getAdapter,Ta.HttpStatusCode=YA,Ta.default=Ta;const aUe=()=>({withCredentials:!0}),AO=Ta.create(Ke({baseURL:window.SERVER_URL},aUe())),lu=e=>la(this,null,function*(){return(yield AO.get(e)).data}),gf=(e,t)=>la(this,null,function*(){return(yield AO.post(e,t)).data}),NO=(e,t)=>la(this,null,function*(){return(yield AO.patch(e,t)).data}),XA=e=>la(this,null,function*(){return(yield AO.delete(e)).data}),LO=e=>e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),ts=(e,t=!1)=>{if(t&&e.verbose_name_plural)return e.verbose_name_plural;if(e.verbose_name)return t?`${e.verbose_name}s`:e.verbose_name;const n=(e.name.match(/[A-Z][a-z]+|[0-9]+/g)||[e.name]).join(" ");return t?`${n}s`:n},zb=()=>{const[e,t]=b.useState(window.innerWidth);return b.useEffect(()=>{function n(){t(window.innerWidth)}return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),e<=768},Bte={site_name:"API Administration",username_field:"username",models:[],dashboard_widgets:[]},Mc=we.createContext({configuration:Bte}),jO=we.createContext({signedInUser:void 0,signedInUserRefetch:()=>{},signedIn:!1}),{Header:oUe,Sider:sUe}=hf,{Title:lUe}=kb,DO=({title:e,breadcrumbs:t,viewOnSite:n,headerActions:r,bottomActions:i,isLoading:a,children:o})=>{const s=Mm(),l=zb(),[c,u]=b.useState(),{model:f}=SO(),{configuration:d}=b.useContext(Mc),{signedInUser:h,signedInUserRefetch:p,signedIn:v}=b.useContext(jO),{t:g}=io("CrudContainer"),{token:{colorBgContainer:m,colorPrimary:y}}=$b.useToken();b.useEffect(()=>{v||s("/sign-in")},[s,v]);const{mutate:x}=Oo({mutationFn:()=>gf("/sign-out",{}),onSuccess:()=>{p()}}),S=O=>{switch(O.key){case"dashboard":s("/");break;default:s(`/list/${O.key}`);break}},w=O=>{switch(O.key){case"sign-out":x();break}},C=[{key:"dashboard",label:g("Dashboard")},{key:"divider",type:"divider"},...d.models.filter(O=>!c||O.name.toLocaleLowerCase().includes(c==null?void 0:c.toLocaleLowerCase())).map(O=>({key:O.name,label:ts(O)}))],E=O=>u(O.target.value);return ve.jsxs(ve.Fragment,{children:[ve.jsx($A,{defaultTitle:e,children:ve.jsx("meta",{name:"description",content:e})}),ve.jsxs(hf,{style:{minHeight:"100vh"},children:[ve.jsx(oUe,{style:{background:y,paddingInline:20},children:ve.jsxs(Ri,{justify:"space-between",children:[ve.jsx(vr,{children:ve.jsxs(va,{children:[l&&ve.jsx(ff,{style:{background:y},theme:"light",mode:"horizontal",defaultSelectedKeys:[f||"dashboard"],items:[{key:(h==null?void 0:h.id)||"key",icon:ve.jsx(_Y,{style:{color:m}}),children:C}],onClick:S}),ve.jsx(Gd,{to:"/",children:ve.jsx(HE,{src:window.SERVER_DOMAIN+d.site_header_logo,preview:!1,height:32,alt:d.site_name,style:{marginTop:-2}})}),!l&&ve.jsx(Gd,{to:"/",children:ve.jsx("span",{style:{color:m,fontSize:18,marginLeft:10},children:d.site_name})})]})}),ve.jsx(vr,{children:ve.jsxs(va,{children:[!l&&ve.jsx("span",{style:{color:m,marginRight:5},children:(h||{})[d.username_field]}),ve.jsx(ff,{style:{background:y},theme:"light",mode:"horizontal",items:[{key:(h==null?void 0:h.id)||"key",icon:ve.jsx(t9e,{style:{color:m}}),children:[{key:"sign-out",label:g("Sign Out")}]}],onClick:w})]})})]})}),ve.jsxs(hf,{children:[!l&&ve.jsxs(sUe,{style:{background:m,borderRadius:8},children:[ve.jsx("div",{style:{padding:10},children:ve.jsx(oi,{value:c,onChange:E,placeholder:g("Search By Menu"),prefix:ve.jsx(nm,{})})}),ve.jsx(ff,{mode:"inline",theme:"light",defaultSelectedKeys:[f||"dashboard"],style:{borderRight:0,overflowY:"scroll"},items:C,onClick:S})]}),ve.jsxs(hf,{style:{padding:16},children:[ve.jsxs(Ri,{justify:"space-between",children:[ve.jsx(vr,{children:t}),n&&ve.jsx(vr,{children:ve.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",children:[ve.jsx(TDe,{})," ",g("View on site")]})})]}),ve.jsx(hm,{title:ve.jsxs(Ri,{justify:"space-between",children:[ve.jsx(vr,{children:ve.jsx(lUe,{style:{margin:0,marginTop:15},level:5,children:e})}),r?ve.jsx(vr,{children:r}):null]}),style:{marginTop:16},children:ve.jsxs(Rd,{loading:a,active:!0,children:[o,i?ve.jsx(Ri,{children:ve.jsx(vr,{children:i})}):null]})})]})]})]})]})},zte="%[a-f0-9]{2}",Hte=new RegExp("("+zte+")|([^%]+?)","gi"),Wte=new RegExp("("+zte+")+","gi");function ZA(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(e.length===1)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],ZA(n),ZA(r))}function cUe(e){try{return decodeURIComponent(e)}catch(t){let n=e.match(Hte)||[];for(let r=1;re==null,pUe=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),QA=Symbol("encodeFragmentIdentifier");function vUe(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[Ra(t,e),"[",i,"]"].join("")]:[...n,[Ra(t,e),"[",Ra(i,e),"]=",Ra(r,e)].join("")]};case"bracket":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[Ra(t,e),"[]"].join("")]:[...n,[Ra(t,e),"[]=",Ra(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[Ra(t,e),":list="].join("")]:[...n,[Ra(t,e),":list=",Ra(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?r:(i=i===null?"":i,r.length===0?[[Ra(n,e),t,Ra(i,e)].join("")]:[[r,Ra(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,Ra(t,e)]:[...n,[Ra(t,e),"=",Ra(r,e)].join("")]}}function gUe(e){let t;switch(e.arrayFormat){case"index":return(n,r,i)=>{if(t=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!t){i[n]=r;return}i[n]===void 0&&(i[n]={}),i[n][t[1]]=r};case"bracket":return(n,r,i)=>{if(t=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"colon-list-separator":return(n,r,i)=>{if(t=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"comma":case"separator":return(n,r,i)=>{const a=typeof r=="string"&&r.includes(e.arrayFormatSeparator),o=typeof r=="string"&&!a&&mf(r,e).includes(e.arrayFormatSeparator);r=o?mf(r,e):r;const s=a||o?r.split(e.arrayFormatSeparator).map(l=>mf(l,e)):r===null?r:mf(r,e);i[n]=s};case"bracket-separator":return(n,r,i)=>{const a=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!a){i[n]=r&&mf(r,e);return}const o=r===null?[]:mf(r,e).split(e.arrayFormatSeparator);if(i[n]===void 0){i[n]=o;return}i[n]=[...i[n],...o]};default:return(n,r,i)=>{if(i[n]===void 0){i[n]=r;return}i[n]=[...[i[n]].flat(),r]}}}function qte(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ra(e,t){return t.encode?t.strict?pUe(e):encodeURIComponent(e):e}function mf(e,t){return t.decode?fUe(e):e}function Ute(e){return Array.isArray(e)?e.sort():typeof e=="object"?Ute(Object.keys(e)).sort((t,n)=>Number(t)-Number(n)).map(t=>e[t]):e}function Gte(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function mUe(e){let t="";const n=e.indexOf("#");return n!==-1&&(t=e.slice(n)),t}function Kte(e,t,n){return n==="string"&&typeof e=="string"?e:typeof n=="function"&&typeof e=="string"?n(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":n==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function JA(e){e=Gte(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function eN(e,t){t=Ke({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null)},t),qte(t.arrayFormatSeparator);const n=gUe(t),r=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return r;for(const i of e.split("&")){if(i==="")continue;const a=t.decode?i.replaceAll("+"," "):i;let[o,s]=Vte(a,"=");o===void 0&&(o=a),s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:mf(s,t),n(mf(o,t),s,r)}for(const[i,a]of Object.entries(r))if(typeof a=="object"&&a!==null&&t.types[i]!=="string")for(const[o,s]of Object.entries(a)){const l=t.types[i]?t.types[i].replace("[]",""):void 0;a[o]=Kte(s,t,l)}else typeof a=="object"&&a!==null&&t.types[i]==="string"?r[i]=Object.values(a).join(t.arrayFormatSeparator):r[i]=Kte(a,t,t.types[i]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((i,a)=>{const o=r[a];return i[a]=o&&typeof o=="object"&&!Array.isArray(o)?Ute(o):o,i},Object.create(null))}function Yte(e,t){if(!e)return"";t=Ke({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),qte(t.arrayFormatSeparator);const n=o=>t.skipNull&&hUe(e[o])||t.skipEmptyString&&e[o]==="",r=vUe(t),i={};for(const[o,s]of Object.entries(e))n(o)||(i[o]=s);const a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(o=>{const s=e[o];return s===void 0?"":s===null?Ra(o,t):Array.isArray(s)?s.length===0&&t.arrayFormat==="bracket-separator"?Ra(o,t)+"[]":s.reduce(r(o),[]).join("&"):Ra(o,t)+"="+Ra(s,t)}).filter(o=>o.length>0).join("&")}function Xte(e,t){var i,a;t=Ke({decode:!0},t);let[n,r]=Vte(e,"#");return n===void 0&&(n=e),Ke({url:(a=(i=n==null?void 0:n.split("?"))==null?void 0:i[0])!=null?a:"",query:eN(JA(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:mf(r,t)}:{})}function Zte(e,t){t=Ke({encode:!0,strict:!0,[QA]:!0},t);const n=Gte(e.url).split("?")[0]||"",r=JA(e.url),i=Ke(Ke({},eN(r,{sort:!1})),e.query);let a=Yte(i,t);a&&(a=`?${a}`);let o=mUe(e.url);if(typeof e.fragmentIdentifier=="string"){const s=new URL(n);s.hash=e.fragmentIdentifier,o=t[QA]?s.hash:`#${e.fragmentIdentifier}`}return`${n}${a}${o}`}function Qte(e,t,n){n=Ke({parseFragmentIdentifier:!0,[QA]:!1},n);const{url:r,query:i,fragmentIdentifier:a}=Xte(e,n);return Zte({url:r,query:dUe(i,t),fragmentIdentifier:a},n)}function yUe(e,t,n){const r=Array.isArray(t)?i=>!t.includes(i):(i,a)=>!t(i,a);return Qte(e,r,n)}const Im=Object.freeze(Object.defineProperty({__proto__:null,exclude:yUe,extract:JA,parse:eN,parseUrl:Xte,pick:Qte,stringify:Yte,stringifyUrl:Zte},Symbol.toStringTag,{value:"Module"}));var bUe=function(e,t,n,r){var i=typeof r!="undefined"?[r,e]:[e],a=new Blob(i,{type:n||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(a,t);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(a):window.webkitURL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=o,s.setAttribute("download",t),typeof s.download=="undefined"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),setTimeout(function(){document.body.removeChild(s),window.URL.revokeObjectURL(o)},200)}};const xUe=rn(bUe);var Jte={exports:{}};(function(e,t){(function(n,r,i){e.exports=i(),e.exports.default=i()})("slugify",Ft,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),r=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(a,o){if(typeof a!="string")throw new Error("slugify: string argument expected");o=typeof o=="string"?{replacement:o}:o||{};var s=r[o.locale]||{},l=o.replacement===void 0?"-":o.replacement,c=o.trim===void 0?!0:o.trim,u=a.normalize().split("").reduce(function(f,d){var h=s[d];return h===void 0&&(h=n[d]),h===void 0&&(h=d),h===l&&(h=" "),f+h.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return o.strict&&(u=u.replace(/[^A-Za-z0-9\s]/g,"")),c&&(u=u.trim()),u=u.replace(/\s+/g,l),o.lower&&(u=u.toLowerCase()),u}return i.extend=function(a){Object.assign(n,a)},i})})(Jte);var SUe=Jte.exports;const ene=rn(SUe),FO=e=>/^(\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d{1,6})?(?:Z|[+-]\d{2}:\d{2}))?)$/.test(e),wUe=e=>/^[+-]?(\d+(\.\d*)?|\.\d+)$/.test(e),Am=e=>Array.isArray(e),tN=e=>/^(true|false)$/i.test(e),BO=e=>typeof e=="string"||e instanceof String,CUe=e=>{let t=e;if(!BO(e))try{t=JSON.stringify(e)}catch(n){return!1}try{JSON.parse(t)}catch(n){return!1}return!0},EUe=e=>{if(!BO(e))return!1;try{return ene(e)===e}catch(t){return!1}},Hb=e=>e&&(Am(e)?e.map(Hb):e.date?e.format():e),zO=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Hb(n)])),nN=e=>{const t=zO(e),n={};for(const[r,i]of Object.entries(t)){if(Am(i)&&i.length===2&&i.every(FO))return n[`${r}__gte`]=i[0],n[`${r}__lte`]=i[1],n;if(Am(i))return n[`${r}__in`]=i,n;if(FO(i)||wUe(i)||tN(i))return n[r]=i,n;n[`${r}__icontains`]=i}return n},Wb=e=>e==null?e:Am(e)?e.map(Wb):tN(e)?e!=="false"&&!!e:FO(e)?Ro(e):e,rN=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Wb(n)])),OUe=(e,t,n)=>{if(e==null)return t||"-";if(Am(e)){const r=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];return e.map((i,a)=>ve.jsx(ree,{color:r[a%r.length],children:i},i))}return tN(e)?ve.jsx(Ol,{checked:e}):FO(e)?Ro(e).format(n):e};var Hr=(e=>(e.Input="Input",e.InputNumber="InputNumber",e.SlugInput="SlugInput",e.EmailInput="EmailInput",e.PhoneInput="PhoneInput",e.UrlInput="UrlInput",e.PasswordInput="PasswordInput",e.TextArea="TextArea",e.RichTextArea="RichTextArea",e.JsonTextArea="JsonTextArea",e.Select="Select",e.AsyncSelect="AsyncSelect",e.AsyncTransfer="AsyncTransfer",e.Switch="Switch",e.Checkbox="Checkbox",e.TimePicker="TimePicker",e.DatePicker="DatePicker",e.DateTimePicker="DateTimePicker",e.RangePicker="RangePicker",e.RadioGroup="RadioGroup",e.CheckboxGroup="CheckboxGroup",e.Upload="Upload",e))(Hr||{}),Nm=(e=>(e.ChartLine="ChartLine",e.ChartArea="ChartArea",e.ChartColumn="ChartColumn",e.ChartBar="ChartBar",e.ChartPie="ChartPie",e))(Nm||{}),Ss=(e=>(e.Add="Add",e.Change="Change",e.Delete="Delete",e.Export="Export",e))(Ss||{}),zp=(e=>(e.CSV="CSV",e.JSON="JSON",e))(zp||{});const tne=({model:e,search:t,sortBy:n,filters:r,style:i})=>{const[a]=Ir.useForm(),{t:o}=io("ExportBtn"),[s,l]=b.useState(!1),c=Im.stringify(Ke({search:t,sort_by:n},nN(r))),{mutate:u,isPending:f}=Oo({mutationFn:v=>gf(`/export/${e}?${c}`,v),onSuccess:v=>{const g=a.getFieldValue("format")===zp.JSON?JSON.stringify(v):v;xUe(g,`${e}.${a.getFieldValue("format").toLowerCase()}`),l(!1),a.resetFields(),na.success(o("Successfully exported"))},onError:()=>{na.error(o("Server error"))}}),d=b.useCallback(v=>u(v),[u]),h=b.useCallback(()=>l(!1),[]),p=b.useCallback(()=>l(!0),[]);return ve.jsxs(ve.Fragment,{children:[ve.jsx(Hn,{style:i,loading:f,onClick:p,children:ve.jsxs(va,{children:[ve.jsx(k5,{}),o("Export")]})}),ve.jsxs(Ha,{width:300,open:s,onCancel:h,footer:null,title:o("Export"),children:[ve.jsx(iu,{}),ve.jsx(Ri,{children:ve.jsx(vr,{xs:24,children:ve.jsxs(Ir,{form:a,layout:"vertical",onFinish:d,initialValues:{limit:1e3,format:zp.CSV},children:[ve.jsx(Ir.Item,{name:"format",label:o("Format"),children:ve.jsx(no,{options:[{label:zp.CSV,value:zp.CSV},{label:zp.JSON,value:zp.JSON}]})}),ve.jsx(Ir.Item,{name:"limit",label:o("Max Export Count"),children:ve.jsx(s5,{style:{width:"100%"}})}),ve.jsx(iu,{}),ve.jsx(Ir.Item,{children:ve.jsx(Hn,{type:"primary",htmlType:"submit",children:ve.jsxs(va,{children:[ve.jsx(k5,{}),o("Export")]})})})]})})})]})]})},_Ue=e=>{const[t,n]=b.useState([]);if(e.loading)return ve.jsx(qE,{});if(!e.dataSource||e.dataSource.length===0)return ve.jsx(Ba,{image:Ba.PRESENTED_IMAGE_SIMPLE});const r=e.rowKey,i=(a,o)=>{e.onChange&&e.onChange({current:a,pageSize:o},{},{},{})};return ve.jsxs(ve.Fragment,{children:[e.dataSource.map((a,o)=>{var l,c,u,f,d,h;const s=p=>{var v,g,m,y,x;if((v=e.rowSelection)!=null&&v.onChange)if(p.target.checked){const S=[...((g=e.rowSelection)==null?void 0:g.selectedRowKeys)||[],a[r]];(m=e.rowSelection)==null||m.onChange(S,[],{})}else{const S=(((y=e.rowSelection)==null?void 0:y.selectedRowKeys)||[]).filter(w=>w!==a[r]);(x=e.rowSelection)==null||x.onChange(S,[],{})}};return ve.jsx(hm,{className:e.className,style:{marginBottom:10},children:ve.jsxs(gm,{column:1,layout:"vertical",children:[e.rowSelection&&ve.jsx(gm.Item,{label:ve.jsx("b",{children:"Select"}),contentStyle:{width:"100%"},children:ve.jsx(Ol,{checked:(((l=e.rowSelection)==null?void 0:l.selectedRowKeys)||[]).includes(a[r]),onChange:s})},"selection"),e.expandable&&ve.jsxs(ve.Fragment,{children:[ve.jsx(gm.Item,{label:ve.jsx("b",{children:"Expand"}),contentStyle:{width:"100%"},children:(u=(c=e.expandable)==null?void 0:c.expandIcon)==null?void 0:u.call(c,{expanded:t.includes(a[r]),onExpand:()=>{t.includes(a[r])?n(t.filter(p=>p!==a[r])):n([...t,a[r]])},record:a})},"expandable"),t.includes(a[r])&&ve.jsx(gm.Item,{contentStyle:{width:"100%"},children:(d=(f=e.expandable)==null?void 0:f.expandedRowRender)==null?void 0:d.call(f,a,o,0,!0)},"expandable")]}),(h=e.columns)==null?void 0:h.map(p=>ve.jsx(gm.Item,{label:ve.jsx("b",{children:p.title}),contentStyle:{width:"100%"},children:p.render?p.render(p.dataIndex?a[p.dataIndex]:a,a):a[p.dataIndex]},p.title))]})},a[r])}),e.pagination&&ve.jsx(_5,Rn(Ke({},e.pagination),{onChange:i}))]})},nne=e=>{var n;return zb()?ve.jsx(_Ue,Ke({},e)):ve.jsx(vf,Ke({sticky:!0,scroll:{x:(((n=e.columns)==null?void 0:n.length)||0)>7?1800:1200}},e))},kc=(e,t)=>{var o,s,l,c;const n=((s=(o=e==null?void 0:e.response)==null?void 0:o.data)==null?void 0:s.detail)||((c=(l=e==null?void 0:e.response)==null?void 0:l.data)==null?void 0:c.description);if(!Array.isArray(n)){typeof n=="string"||n instanceof String?na.error(n):na.error("Server error");return}const r={};for(const u of n){const f=(u==null?void 0:u.loc)||[],d=f[f.length-1];!d||!(u!=null&&u.msg)||(r[d]=[u==null?void 0:u.msg])}if(!t){na.error("Server error");return}const i=[],a=Object.keys(t.getFieldsValue()).filter(u=>u in r);for(const u of a)i.push({name:u,errors:r[u]});i.length>0&&t.setFields(i)};var $Ue="Expected a function",rne=NaN,PUe="[object Symbol]",MUe=/^\s+|\s+$/g,kUe=/^[-+]0x[0-9a-f]+$/i,TUe=/^0b[01]+$/i,RUe=/^0o[0-7]+$/i,IUe=parseInt,AUe=typeof Ft=="object"&&Ft&&Ft.Object===Object&&Ft,NUe=typeof self=="object"&&self&&self.Object===Object&&self,LUe=AUe||NUe||Function("return this")(),jUe=Object.prototype,DUe=jUe.toString,FUe=Math.max,BUe=Math.min,iN=function(){return LUe.Date.now()};function zUe(e,t,n){var r,i,a,o,s,l,c=0,u=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError($Ue);t=ine(t)||0,aN(n)&&(u=!!n.leading,f="maxWait"in n,a=f?FUe(ine(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function h(C){var E=r,O=i;return r=i=void 0,c=C,o=e.apply(O,E),o}function p(C){return c=C,s=setTimeout(m,t),u?h(C):o}function v(C){var E=C-l,O=C-c,$=t-E;return f?BUe($,a-O):$}function g(C){var E=C-l,O=C-c;return l===void 0||E>=t||E<0||f&&O>=a}function m(){var C=iN();if(g(C))return y(C);s=setTimeout(m,v(C))}function y(C){return s=void 0,d&&r?h(C):(r=i=void 0,o)}function x(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function S(){return s===void 0?o:y(iN())}function w(){var C=iN(),E=g(C);if(r=arguments,i=this,l=C,E){if(s===void 0)return p(l);if(f)return s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return w.cancel=x,w.flush=S,w}function aN(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function HUe(e){return!!e&&typeof e=="object"}function WUe(e){return typeof e=="symbol"||HUe(e)&&DUe.call(e)==PUe}function ine(e){if(typeof e=="number")return e;if(WUe(e))return rne;if(aN(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=aN(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(MUe,"");var n=TUe.test(e);return n||RUe.test(e)?IUe(e.slice(2),n?2:8):kUe.test(e)?rne:+e}var VUe=zUe;const ane=rn(VUe),HO=(e,t)=>{const n=e.models.find(r=>r.name===t);if(n)return n;for(const r of e.models)for(const i of r.inlines||[])if(i.name===t)return i},qUe=a=>{var o=a,{idField:e,labelFields:t,value:n,parentModel:r}=o,i=oc(o,["idField","labelFields","value","parentModel"]);const[s]=Ir.useForm(),[l]=Ir.useForm(),{t:c}=io("AsyncSelect"),[u,f]=b.useState(),{configuration:d}=b.useContext(Mc),[h,p]=b.useState(!1),[v,g]=b.useState(),m=HO(d,r),y=Im.stringify({offset:0,limit:20,search:u}),{data:x,isLoading:S,refetch:w}=Kc({queryKey:[`/list/${r}`,y],queryFn:()=>lu(`/list/${r}?${y}`)}),{data:C,isLoading:E}=Kc({queryKey:[`/retrieve/${r}/${v}`],queryFn:()=>lu(`/retrieve/${r}/${v}`),enabled:!!v,refetchOnWindowFocus:!1}),{mutate:O,isPending:$,isError:P}=Oo({mutationFn:W=>gf(`/add/${r}`,W),onSuccess:()=>{na.success(c("Succesfully added")),w(),L()},onError:W=>{kc(W,s)}}),{mutate:M,isPending:k,isError:T}=Oo({mutationFn:W=>NO(`/change/${r}/${v}`,W),onSuccess:()=>{na.success(c("Succesfully changed")),w(),B()},onError:W=>{kc(W,l)}}),R=(W,q)=>((q==null?void 0:q.label)||"").toString().toLowerCase().indexOf(W.toLowerCase())>=0||((q==null?void 0:q.value)||"").toString().toLowerCase().indexOf(W.toLowerCase())>=0,A=W=>{f(W)},N=b.useCallback(()=>{s.resetFields(),p(!0)},[s]),L=b.useCallback(()=>{p(!1)},[]),j=W=>{O(W)},F=b.useCallback(W=>{l.resetFields(),g(W),p(!1)},[l]),B=b.useCallback(()=>{g(void 0),p(!1)},[]),D=W=>{M(W)},z=i.mode==="multiple";return ve.jsxs(ve.Fragment,{children:[ve.jsxs(va.Compact,{style:{width:"100%"},children:[ve.jsx(ro,{title:c(`Add ${m&&ts(m)}`),children:ve.jsx(Hn,{onClick:N,children:ve.jsx(T5,{})})}),n&&!z&&ve.jsx(ro,{title:c(`Edit ${m&&ts(m)}`),children:ve.jsx(Hn,{onClick:()=>F(n),children:ve.jsx(ZE,{})})}),ve.jsx(no,Ke({allowClear:!0,showSearch:!0,loading:S,filterOption:R,onSearch:ane(A,500),options:((x==null?void 0:x.results)||[]).map(W=>{const q=t.filter(H=>W[H])[0];return{value:`${W[e]}`,label:W[q]}}),value:z?n?n.map(W=>`${W}`):[]:n?`${n}`:void 0},i))]}),ve.jsxs(Ha,{width:600,open:h,title:c(`Add ${m&&ts(m)}`),onCancel:L,footer:null,children:[ve.jsx(iu,{}),m!=null&&m.permissions.includes(Ss.Add)?ve.jsx(Dm,{modelConfiguration:m,form:s,onFinish:j,mode:"inline-add",hasOperationError:P,children:ve.jsx(Ri,{justify:"end",children:ve.jsx(vr,{children:ve.jsx(va,{children:ve.jsxs(Hn,{loading:$,htmlType:"submit",type:"primary",children:[ve.jsx(ym,{})," ",c("Add")]})})})})}):ve.jsx(Ba,{description:c("No permissions for model")})]}),ve.jsxs(Ha,{width:600,open:!!v,title:`Change ${m&&ts(m)} ${v}`,onCancel:B,footer:null,children:[ve.jsx(iu,{}),C&&m&&m.permissions.includes(Ss.Change)?ve.jsx(Dm,{modelConfiguration:m,form:l,onFinish:D,mode:"inline-change",hasOperationError:T,initialValues:rN(C),children:ve.jsx(Ri,{justify:"end",children:ve.jsx(vr,{children:ve.jsx(va,{children:ve.jsxs(Hn,{loading:k||E,htmlType:"submit",type:"primary",children:[ve.jsx(ym,{})," ",c("Save")]})})})})}):ve.jsx(Ba,{description:c("No permissions for model")})]})]})},UUe=s=>{var l=s,{parentModel:e,idField:t,labelFields:n,layout:r,value:i,onChange:a}=l,o=oc(l,["parentModel","idField","labelFields","layout","value","onChange"]);const[c,u]=b.useState(),f=zb(),d=Im.stringify({offset:0,limit:20,search:c}),{data:h}=Kc({queryKey:[`/list/${e}`,d],queryFn:()=>lu(`/list/${e}?${d}`)}),p=(y,x)=>((x==null?void 0:x.key)||"").toLowerCase().indexOf(y.toLowerCase())>=0||((x==null?void 0:x.value)||"").toLowerCase().indexOf(y.toLowerCase())>=0,v=(y,x)=>{y==="left"&&u(x)},g=((h==null?void 0:h.results)||[]).map(y=>{const x=n.filter(S=>y[S])[0];return{key:y[t],title:y[x]}}),m=y=>y.title;return ve.jsx(lO,Ke({dataSource:g,showSearch:!0,filterOption:p,onSearch:ane(v,500),render:m,onChange:a,targetKeys:i,listStyle:r==="vertical"||f?{width:"100%",marginTop:5,marginBottom:5}:{width:"100%"},style:r==="vertical"||f?{display:"block"}:void 0},o))},{useToken:GUe}=$b,KUe=r=>{var i=r,{value:e,onChange:t}=i,n=oc(i,["value","onChange"]);var l;const{token:a}=GUe(),o=BO(e)?e:JSON.stringify(e,null," "),s=(l=o==null?void 0:o.split(/\r\n|\r|\n/))==null?void 0:l.length;return ve.jsx(oi.TextArea,Ke({rows:s>30?30:s,value:o,onChange:t,style:{backgroundColor:a.colorTextBase,color:a.colorBgBase,border:"none"}},n))},YUe=n=>{var r=n,{parentId:e}=r,t=oc(r,["parentId"]);const{t:i}=io("PasswordInput"),[a]=Ir.useForm(),[o,s]=we.useState(!1),l=()=>{s(!1),a.resetFields()},c=()=>{a.resetFields(),s(!0)},{mutate:u,isPending:f}=Oo({mutationFn:h=>NO(`/change-password/${e}`,h),onSuccess:()=>{na.success(i("Succesfully changed")),l()},onError:h=>{kc(h,a)}}),d=h=>{u(h)};return e?ve.jsxs(ve.Fragment,{children:[ve.jsxs(va.Compact,{style:{width:"100%"},children:[ve.jsx(ro,{title:i("Change Password"),children:ve.jsx(Hn,{onClick:c,children:ve.jsx(ZE,{})})}),ve.jsx(oi.Password,Rn(Ke({},t),{disabled:!0}))]}),ve.jsxs(Ha,{open:o,title:i("Change Password"),onCancel:l,footer:null,children:[ve.jsx(iu,{}),ve.jsxs(Ir,{form:a,layout:"vertical",onFinish:d,children:[ve.jsx(Ir.Item,{name:"password",label:"Password",children:ve.jsx(oi.Password,{})}),ve.jsx(Ir.Item,{name:"confirm_password",label:"Confirm Password",children:ve.jsx(oi.Password,{})}),ve.jsx(iu,{}),ve.jsx(Ir.Item,{children:ve.jsx(Hn,{type:"primary",loading:f,htmlType:"submit",children:i("Save")})})]})]})]}):ve.jsx(oi.Password,Ke({},t))};var XUe=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var o in r)n.d(a,o,function(s){return r[s]}.bind(null,o));return a},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=9)}([function(e,t){e.exports=b},function(e,t,n){var r;/*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(){var i={}.hasOwnProperty;function a(){for(var o=[],s=0;s=$?O:$)),C=O,w=v(w),S.slice(C,C+w.length)==w}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){(function(r){var i=/^\[object .+?Constructor\]$/,a=typeof r=="object"&&r&&r.Object===Object&&r,o=typeof self=="object"&&self&&self.Object===Object&&self,s=a||o||Function("return this")(),l,c=Array.prototype,u=Function.prototype,f=Object.prototype,d=s["__core-js_shared__"],h=(l=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",p=u.toString,g=f.hasOwnProperty,v=f.toString,m=RegExp("^"+p.call(g).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),y=c.splice,x=M(s,"Map"),S=M(Object,"create");function w(R){var A=-1,N=R?R.length:0;for(this.clear();++A-1},C.prototype.set=function(R,A){var N=this.__data__,L=O(N,R);return L<0?N.push([R,A]):N[L][1]=A,this},E.prototype.clear=function(){this.__data__={hash:new w,map:new(x||C),string:new w}},E.prototype.delete=function(R){return P(this,R).delete(R)},E.prototype.get=function(R){return P(this,R).get(R)},E.prototype.has=function(R){return P(this,R).has(R)},E.prototype.set=function(R,A){return P(this,R).set(R,A),this},k.Cache=E,e.exports=k}).call(this,n(3))},function(e,t,n){(function(r){var i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c=typeof r=="object"&&r&&r.Object===Object&&r,u=typeof self=="object"&&self&&self.Object===Object&&self,f=c||u||Function("return this")(),d=Object.prototype.toString,h=Math.max,p=Math.min,g=function(){return f.Date.now()};function v(y){var x=typeof y;return!!y&&(x=="object"||x=="function")}function m(y){if(typeof y=="number")return y;if(function(w){return typeof w=="symbol"||function(C){return!!C&&typeof C=="object"}(w)&&d.call(w)=="[object Symbol]"}(y))return NaN;if(v(y)){var x=typeof y.valueOf=="function"?y.valueOf():y;y=v(x)?x+"":x}if(typeof y!="string")return y===0?y:+y;y=y.replace(i,"");var S=o.test(y);return S||s.test(y)?l(y.slice(2),S?2:8):a.test(y)?NaN:+y}e.exports=function(y,x,S){var w,C,E,O,$,P,M=0,k=!1,T=!1,R=!0;if(typeof y!="function")throw new TypeError("Expected a function");function A(D){var z=w,W=C;return w=C=void 0,M=D,O=y.apply(W,z)}function N(D){return M=D,$=setTimeout(j,x),k?A(D):O}function L(D){var z=D-P;return P===void 0||z>=x||z<0||T&&D-M>=E}function j(){var D=g();if(L(D))return F(D);$=setTimeout(j,function(z){var W=x-(z-P);return T?p(W,E-(z-M)):W}(D))}function F(D){return $=void 0,R&&w?A(D):(w=C=void 0,O)}function B(){var D=g(),z=L(D);if(w=arguments,C=this,P=D,z){if($===void 0)return N(P);if(T)return $=setTimeout(j,x),A(P)}return $===void 0&&($=setTimeout(j,x)),O}return x=m(x)||0,v(S)&&(k=!!S.leading,E=(T="maxWait"in S)?h(m(S.maxWait)||0,x):E,R="trailing"in S?!!S.trailing:R),B.cancel=function(){$!==void 0&&clearTimeout($),M=0,w=P=C=$=void 0},B.flush=function(){return $===void 0?O:F(g())},B}}).call(this,n(3))},function(e,t,n){(function(r,i){var a="[object Arguments]",o="[object Map]",s="[object Object]",l="[object Set]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,f=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,v={};v["[object Float32Array]"]=v["[object Float64Array]"]=v["[object Int8Array]"]=v["[object Int16Array]"]=v["[object Int32Array]"]=v["[object Uint8Array]"]=v["[object Uint8ClampedArray]"]=v["[object Uint16Array]"]=v["[object Uint32Array]"]=!0,v[a]=v["[object Array]"]=v["[object ArrayBuffer]"]=v["[object Boolean]"]=v["[object DataView]"]=v["[object Date]"]=v["[object Error]"]=v["[object Function]"]=v[o]=v["[object Number]"]=v[s]=v["[object RegExp]"]=v[l]=v["[object String]"]=v["[object WeakMap]"]=!1;var m=typeof r=="object"&&r&&r.Object===Object&&r,y=typeof self=="object"&&self&&self.Object===Object&&self,x=m||y||Function("return this")(),S=t&&!t.nodeType&&t,w=S&&typeof i=="object"&&i&&!i.nodeType&&i,C=w&&w.exports===S&&m.process,E=function(){try{return C&&C.binding("util")}catch(ye){}}(),O=E&&E.isTypedArray;function $(ye,Ie,We,ze){var pt=-1,mt=ye?ye.length:0;for(ze&&mt&&(We=ye[++pt]);++pt-1},Te.prototype.set=function(ye,Ie){var We=this.__data__,ze=Ue(We,ye);return ze<0?We.push([ye,Ie]):We[ze][1]=Ie,this},je.prototype.clear=function(){this.__data__={hash:new _e,map:new(te||Te),string:new _e}},je.prototype.delete=function(ye){return Ot(this,ye).delete(ye)},je.prototype.get=function(ye){return Ot(this,ye).get(ye)},je.prototype.has=function(ye){return Ot(this,ye).has(ye)},je.prototype.set=function(ye,Ie){return Ot(this,ye).set(ye,Ie),this},Be.prototype.add=Be.prototype.push=function(ye){return this.__data__.set(ye,"__lodash_hash_undefined__"),this},Be.prototype.has=function(ye){return this.__data__.has(ye)},Pe.prototype.clear=function(){this.__data__=new Te},Pe.prototype.delete=function(ye){return this.__data__.delete(ye)},Pe.prototype.get=function(ye){return this.__data__.get(ye)},Pe.prototype.has=function(ye){return this.__data__.has(ye)},Pe.prototype.set=function(ye,Ie){var We=this.__data__;if(We instanceof Te){var ze=We.__data__;if(!te||ze.length<199)return ze.push([ye,Ie]),this;We=this.__data__=new je(ze)}return We.set(ye,Ie),this};var ke,Ce=(ke=function(ye,Ie){return ye&&Re(ye,Ie,Pn)},function(ye,Ie){if(ye==null)return ye;if(!Gt(ye))return ke(ye,Ie);for(var We=ye.length,ze=-1,pt=Object(ye);++zegn))return!1;var un=mt.get(ye);if(un&&mt.get(Ie))return un==Ie;var xt=-1,Jt=!0,on=1&pt?new Be:void 0;for(mt.set(ye,Ie),mt.set(Ie,ye);++xt-1&&ye%1==0&&ye-1&&ye%1==0&&ye<=9007199254740991}function Nt(ye){var Ie=typeof ye;return!!ye&&(Ie=="object"||Ie=="function")}function Zt(ye){return!!ye&&typeof ye=="object"}function vn(ye){return typeof ye=="symbol"||Zt(ye)&&H.call(ye)=="[object Symbol]"}var an=O?function(ye){return function(Ie){return ye(Ie)}}(O):function(ye){return Zt(ye)&&_t(ye.length)&&!!v[H.call(ye)]};function Pn(ye){return Gt(ye)?He(ye):Mt(ye)}function Ut(ye){return ye}i.exports=function(ye,Ie,We){var ze=Qt(ye)?$:M,pt=arguments.length<3;return ze(ye,Tt(Ie),We,pt,Ce)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(n,r){return n>>=0,r=String(r!==void 0?r:" "),this.length>n?String(this):((n-=this.length)>r.length&&(r+=r.repeat(n/r.length)),String(this)+r.slice(0,n))})},function(e,t,n){function r(B,D,z){return D in B?Object.defineProperty(B,D,{value:z,enumerable:!0,configurable:!0,writable:!0}):B[D]=z,B}function i(B){if(Symbol.iterator in Object(B)||Object.prototype.toString.call(B)==="[object Arguments]")return Array.from(B)}function a(B){return function(D){if(Array.isArray(D)){for(var z=0,W=new Array(D.length);z0?(X.mainCode=!0,U||D.constructor.name==="Array"&&D.includes(K[2])?(X.hasAreaCodes=!0,[X].concat(Q)):(G=G.concat(Q),[X])):[X]}))),G]}function N(B,D,z,W){if(z!==null){var q=Object.keys(z),H=Object.values(z);q.forEach(function(U,G){if(W)return B.push([U,H[G]]);var K=B.findIndex(function(Q){return Q[0]===U});if(K===-1){var X=[U];X[D]=H[G],B.push(X)}else B[K][D]=H[G]})}}function L(B,D){return D.length===0?B:B.map(function(z){var W=D.findIndex(function(H){return H[0]===z[2]});if(W===-1)return z;var q=D[W];return q[1]&&(z[4]=q[1]),q[3]&&(z[5]=q[3]),q[2]&&(z[6]=q[2]),z})}var j=function B(D,z,W,q,H,U,G,K,X,Q,ee,ne,te,ie){l(this,B),this.filterRegions=function(ue,Se){if(typeof ue=="string"){var Oe=ue;return Se.filter(function(_e){return _e.regions.some(function(Te){return Te===Oe})})}return Se.filter(function(_e){return ue.map(function(Te){return _e.regions.some(function(je){return je===Te})}).some(function(Te){return Te})})},this.sortTerritories=function(ue,Se){var Oe=[].concat(a(ue),a(Se));return Oe.sort(function(_e,Te){return _e.nameTe.name?1:0}),Oe},this.getFilteredCountryList=function(ue,Se,Oe){return ue.length===0?Se:Oe?ue.map(function(_e){var Te=Se.find(function(je){return je.iso2===_e});if(Te)return Te}).filter(function(_e){return _e}):Se.filter(function(_e){return ue.some(function(Te){return Te===_e.iso2})})},this.localizeCountries=function(ue,Se,Oe){for(var _e=0;_eje.localName?1:0}),ue},this.getCustomAreas=function(ue,Se){for(var Oe=[],_e=0;_epe.dialCode.length||ue.dialCode.length===pe.dialCode.length&&ue.priority="0"&&J.indexOf(0)<="9"?oe.find(function(re){return re.dialCode==+J}):oe.find(function(re){return re.iso2==J}))&&le.dialCode&&H.setState({selectedCountry:le,formattedNumber:H.props.disableCountryCode?"":H.formatNumber(le.dialCode,le)})},H.scrollTo=function(J,le){if(J){var oe=H.dropdownRef;if(oe&&document.body){var re=oe.offsetHeight,se=oe.getBoundingClientRect().top+document.body.scrollTop,ge=se+re,de=J,pe=de.getBoundingClientRect(),ue=de.offsetHeight,Se=pe.top+document.body.scrollTop,Oe=Se+ue,_e=Se-se+oe.scrollTop,Te=re/2-ue/2;if(H.props.enableSearch?Sege){le&&(_e+=Te);var je=re-ue;oe.scrollTop=_e-je}}}},H.scrollToTop=function(){var J=H.dropdownRef;J&&document.body&&(J.scrollTop=0)},H.formatNumber=function(J,le){if(!le)return J;var oe,re=le.format,se=H.props,ge=se.disableCountryCode,de=se.enableAreaCodeStretch,pe=se.enableLongNumbers,ue=se.autoFormat;if(ge?((oe=re.split(" ")).shift(),oe=oe.join(" ")):de&&le.isAreaCode?((oe=re.split(" "))[1]=oe[1].replace(/\.+/,"".padEnd(le.areaCodeLength,".")),oe=oe.join(" ")):oe=re,!J||J.length===0)return ge?"":H.props.prefix;if(J&&J.length<2||!oe||!ue)return ge?J:H.props.prefix+J;var Se,Oe=C()(oe,function(_e,Te){if(_e.remainingText.length===0)return _e;if(Te!==".")return{formattedText:_e.formattedText+Te,remainingText:_e.remainingText};var je,Be=o(je=_e.remainingText)||i(je)||s(),Pe=Be[0],He=Be.slice(1);return{formattedText:_e.formattedText+Pe,remainingText:He}},{formattedText:"",remainingText:J.split("")});return(Se=pe?Oe.formattedText+Oe.remainingText.join(""):Oe.formattedText).includes("(")&&!Se.includes(")")&&(Se+=")"),Se},H.cursorToEnd=function(){var J=H.numberInputRef;if(document.activeElement===J){J.focus();var le=J.value.length;J.value.charAt(le-1)===")"&&(le-=1),J.setSelectionRange(le,le)}},H.getElement=function(J){return H["flag_no_".concat(J)]},H.getCountryData=function(){return H.state.selectedCountry?{name:H.state.selectedCountry.name||"",dialCode:H.state.selectedCountry.dialCode||"",countryCode:H.state.selectedCountry.iso2||"",format:H.state.selectedCountry.format||""}:{}},H.handleFlagDropdownClick=function(J){if(J.preventDefault(),H.state.showDropdown||!H.props.disabled){var le=H.state,oe=le.preferredCountries,re=le.onlyCountries,se=le.selectedCountry,ge=H.concatPreferredCountries(oe,re).findIndex(function(de){return de.dialCode===se.dialCode&&de.iso2===se.iso2});H.setState({showDropdown:!H.state.showDropdown,highlightCountryIndex:ge},function(){H.state.showDropdown&&H.scrollTo(H.getElement(H.state.highlightCountryIndex))})}},H.handleInput=function(J){var le=J.target.value,oe=H.props,re=oe.prefix,se=oe.onChange,ge=H.props.disableCountryCode?"":re,de=H.state.selectedCountry,pe=H.state.freezeSelection;if(!H.props.countryCodeEditable){var ue=re+(de.hasAreaCodes?H.state.onlyCountries.find(function(Ce){return Ce.iso2===de.iso2&&Ce.mainCode}).dialCode:de.dialCode);if(le.slice(0,ue.length)!==ue)return}if(le===re)return se&&se("",H.getCountryData(),J,""),H.setState({formattedNumber:""});if(!(le.replace(/\D/g,"").length>15&&(H.props.enableLongNumbers===!1||typeof H.props.enableLongNumbers=="number"&&le.replace(/\D/g,"").length>H.props.enableLongNumbers))&&le!==H.state.formattedNumber){J.preventDefault?J.preventDefault():J.returnValue=!1;var Se=H.props.country,Oe=H.state,_e=Oe.onlyCountries,Te=Oe.selectedCountry,je=Oe.hiddenAreaCodes;if(se&&J.persist(),le.length>0){var Be=le.replace(/\D/g,"");(!H.state.freezeSelection||Te&&Te.dialCode.length>Be.length)&&(de=H.props.disableCountryGuess?Te:H.guessSelectedCountry(Be.substring(0,6),Se,_e,je)||Te,pe=!1),ge=H.formatNumber(Be,de),de=de.dialCode?de:Te}var Pe=J.target.selectionStart,He=J.target.selectionStart,Ue=H.state.formattedNumber,ke=ge.length-Ue.length;H.setState({formattedNumber:ge,freezeSelection:pe,selectedCountry:de},function(){ke>0&&(He-=ke),ge.charAt(ge.length-1)==")"?H.numberInputRef.setSelectionRange(ge.length-1,ge.length-1):He>0&&Ue.length>=ge.length?H.numberInputRef.setSelectionRange(He,He):Pe1?se.replace(oe.dialCode,re.dialCode):re.dialCode,de=H.formatNumber(ge.replace(/\D/g,""),re);H.setState({showDropdown:!1,selectedCountry:re,freezeSelection:!0,formattedNumber:de,searchValue:""},function(){H.cursorToEnd(),H.props.onChange&&H.props.onChange(de.replace(/[^0-9]+/g,""),H.getCountryData(),le,de)})}},H.handleInputFocus=function(J){H.numberInputRef&&H.numberInputRef.value===H.props.prefix&&H.state.selectedCountry&&!H.props.disableCountryCode&&H.setState({formattedNumber:H.props.prefix+H.state.selectedCountry.dialCode},function(){H.props.jumpCursorToEnd&&setTimeout(H.cursorToEnd,0)}),H.setState({placeholder:""}),H.props.onFocus&&H.props.onFocus(J,H.getCountryData()),H.props.jumpCursorToEnd&&setTimeout(H.cursorToEnd,0)},H.handleInputBlur=function(J){J.target.value||H.setState({placeholder:H.props.placeholder}),H.props.onBlur&&H.props.onBlur(J,H.getCountryData())},H.handleInputCopy=function(J){if(H.props.copyNumbersOnly){var le=window.getSelection().toString().replace(/[^0-9]+/g,"");J.clipboardData.setData("text/plain",le),J.preventDefault()}},H.getHighlightCountryIndex=function(J){var le=H.state.highlightCountryIndex+J;return le<0||le>=H.state.onlyCountries.length+H.state.preferredCountries.length?le-J:H.props.enableSearch&&le>H.getSearchFilteredCountries().length?0:le},H.searchCountry=function(){var J=H.getProbableCandidate(H.state.queryString)||H.state.onlyCountries[0],le=H.state.onlyCountries.findIndex(function(oe){return oe==J})+H.state.preferredCountries.length;H.scrollTo(H.getElement(le),!0),H.setState({queryString:"",highlightCountryIndex:le})},H.handleKeydown=function(J){var le=H.props.keys,oe=J.target.className;if(oe.includes("selected-flag")&&J.which===le.ENTER&&!H.state.showDropdown)return H.handleFlagDropdownClick(J);if(oe.includes("form-control")&&(J.which===le.ENTER||J.which===le.ESC))return J.target.blur();if(H.state.showDropdown&&!H.props.disabled&&(!oe.includes("search-box")||J.which===le.UP||J.which===le.DOWN||J.which===le.ENTER||J.which===le.ESC&&J.target.value==="")){J.preventDefault?J.preventDefault():J.returnValue=!1;var re=function(se){H.setState({highlightCountryIndex:H.getHighlightCountryIndex(se)},function(){H.scrollTo(H.getElement(H.state.highlightCountryIndex),!0)})};switch(J.which){case le.DOWN:re(1);break;case le.UP:re(-1);break;case le.ENTER:H.props.enableSearch?H.handleFlagItemClick(H.getSearchFilteredCountries()[H.state.highlightCountryIndex]||H.getSearchFilteredCountries()[0],J):H.handleFlagItemClick([].concat(a(H.state.preferredCountries),a(H.state.onlyCountries))[H.state.highlightCountryIndex],J);break;case le.ESC:case le.TAB:H.setState({showDropdown:!1},H.cursorToEnd);break;default:(J.which>=le.A&&J.which<=le.Z||J.which===le.SPACE)&&H.setState({queryString:H.state.queryString+String.fromCharCode(J.which)},H.state.debouncedQueryStingSearcher)}}},H.handleInputKeyDown=function(J){var le=H.props,oe=le.keys,re=le.onEnterKeyPress,se=le.onKeyDown;J.which===oe.ENTER&&re&&re(J),se&&se(J)},H.handleClickOutside=function(J){H.dropdownRef&&!H.dropdownContainerRef.contains(J.target)&&H.state.showDropdown&&H.setState({showDropdown:!1})},H.handleSearchChange=function(J){var le=J.currentTarget.value,oe=H.state,re=oe.preferredCountries,se=oe.selectedCountry,ge=0;if(le===""&&se){var de=H.state.onlyCountries;ge=H.concatPreferredCountries(re,de).findIndex(function(pe){return pe==se}),setTimeout(function(){return H.scrollTo(H.getElement(ge))},100)}H.setState({searchValue:le,highlightCountryIndex:ge})},H.concatPreferredCountries=function(J,le){return J.length>0?a(new Set(J.concat(le))):le},H.getDropdownCountryName=function(J){return J.localName||J.name},H.getSearchFilteredCountries=function(){var J=H.state,le=J.preferredCountries,oe=J.onlyCountries,re=J.searchValue,se=H.props.enableSearch,ge=H.concatPreferredCountries(le,oe),de=re.trim().toLowerCase().replace("+","");if(se&&de){if(/^\d+$/.test(de))return ge.filter(function(Se){var Oe=Se.dialCode;return["".concat(Oe)].some(function(_e){return _e.toLowerCase().includes(de)})});var pe=ge.filter(function(Se){var Oe=Se.iso2;return["".concat(Oe)].some(function(_e){return _e.toLowerCase().includes(de)})}),ue=ge.filter(function(Se){var Oe=Se.name,_e=Se.localName;return Se.iso2,["".concat(Oe),"".concat(_e||"")].some(function(Te){return Te.toLowerCase().includes(de)})});return H.scrollToTop(),a(new Set([].concat(pe,ue)))}return ge},H.getCountryDropdownList=function(){var J=H.state,le=J.preferredCountries,oe=J.highlightCountryIndex,re=J.showDropdown,se=J.searchValue,ge=H.props,de=ge.disableDropdown,pe=ge.prefix,ue=H.props,Se=ue.enableSearch,Oe=ue.searchNotFound,_e=ue.disableSearchIcon,Te=ue.searchClass,je=ue.searchStyle,Be=ue.searchPlaceholder,Pe=ue.autocompleteSearch,He=H.getSearchFilteredCountries().map(function(Ce,Re){var Ae=oe===Re,$e=P()({country:!0,preferred:Ce.iso2==="us"||Ce.iso2==="gb",active:Ce.iso2==="us",highlight:Ae}),Ve="flag ".concat(Ce.iso2);return v.a.createElement("li",Object.assign({ref:function(et){return H["flag_no_".concat(Re)]=et},key:"flag_no_".concat(Re),"data-flag-key":"flag_no_".concat(Re),className:$e,"data-dial-code":"1",tabIndex:de?"-1":"0","data-country-code":Ce.iso2,onClick:function(et){return H.handleFlagItemClick(Ce,et)},role:"option"},Ae?{"aria-selected":!0}:{}),v.a.createElement("div",{className:Ve}),v.a.createElement("span",{className:"country-name"},H.getDropdownCountryName(Ce)),v.a.createElement("span",{className:"dial-code"},Ce.format?H.formatNumber(Ce.dialCode,Ce):pe+Ce.dialCode))}),Ue=v.a.createElement("li",{key:"dashes",className:"divider"});le.length>0&&(!Se||Se&&!se.trim())&&He.splice(le.length,0,Ue);var ke=P()(r({"country-list":!0,hide:!re},H.props.dropdownClass,!0));return v.a.createElement("ul",{ref:function(Ce){return!Se&&Ce&&Ce.focus(),H.dropdownRef=Ce},className:ke,style:H.props.dropdownStyle,role:"listbox",tabIndex:"0"},Se&&v.a.createElement("li",{className:P()(r({search:!0},Te,Te))},!_e&&v.a.createElement("span",{className:P()(r({"search-emoji":!0},"".concat(Te,"-emoji"),Te)),role:"img","aria-label":"Magnifying glass"},"🔎"),v.a.createElement("input",{className:P()(r({"search-box":!0},"".concat(Te,"-box"),Te)),style:je,type:"search",placeholder:Be,autoFocus:!0,autoComplete:Pe?"on":"off",value:se,onChange:H.handleSearchChange})),He.length>0?He:v.a.createElement("li",{className:"no-entries-message"},v.a.createElement("span",null,Oe)))};var U,G=new j(q.enableAreaCodes,q.enableTerritories,q.regions,q.onlyCountries,q.preferredCountries,q.excludeCountries,q.preserveOrder,q.masks,q.priority,q.areaCodes,q.localization,q.prefix,q.defaultMask,q.alwaysDefaultMask),K=G.onlyCountries,X=G.preferredCountries,Q=G.hiddenAreaCodes,ee=q.value?q.value.replace(/\D/g,""):"";U=q.disableInitialCountryGuess?0:ee.length>1?H.guessSelectedCountry(ee.substring(0,6),q.country,K,Q)||0:q.country&&K.find(function(J){return J.iso2==q.country})||0;var ne,te=ee.length<2&&U&&!O()(ee,U.dialCode)?U.dialCode:"";ne=ee===""&&U===0?"":H.formatNumber((q.disableCountryCode?"":te)+ee,U.name?U:void 0);var ie=K.findIndex(function(J){return J==U});return H.state={showDropdown:q.showDropdown,formattedNumber:ne,onlyCountries:K,preferredCountries:X,hiddenAreaCodes:Q,selectedCountry:U,highlightCountryIndex:ie,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:y()(H.searchCountry,250),searchValue:""},H}var z,W;return function(q,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(H&&H.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),H&&p(q,H)}(D,B),z=D,(W=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(q,H,U){q.country!==this.props.country?this.updateCountry(this.props.country):q.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(q){if(q===null)return this.setState({selectedCountry:0,formattedNumber:""});var H=this.state,U=H.onlyCountries,G=H.selectedCountry,K=H.hiddenAreaCodes,X=this.props,Q=X.country,ee=X.prefix;if(q==="")return this.setState({selectedCountry:G,formattedNumber:""});var ne,te,ie=q.replace(/\D/g,"");if(G&&O()(q,ee+G.dialCode))te=this.formatNumber(ie,G),this.setState({formattedNumber:te});else{var J=(ne=this.props.disableCountryGuess?G:this.guessSelectedCountry(ie.substring(0,6),Q,U,K)||G)&&O()(ie,ee+ne.dialCode)?ne.dialCode:"";te=this.formatNumber((this.props.disableCountryCode?"":J)+ie,ne||void 0),this.setState({selectedCountry:ne,formattedNumber:te})}}},{key:"render",value:function(){var q,H,U,G=this,K=this.state,X=K.onlyCountries,Q=K.selectedCountry,ee=K.showDropdown,ne=K.formattedNumber,te=K.hiddenAreaCodes,ie=this.props,J=ie.disableDropdown,le=ie.renderStringAsFlag,oe=ie.isValid,re=ie.defaultErrorMessage,se=ie.specialLabel;if(typeof oe=="boolean")H=oe;else{var ge=oe(ne.replace(/\D/g,""),Q,X,te);typeof ge=="boolean"?(H=ge)===!1&&(U=re):(H=!1,U=ge)}var de=P()((r(q={},this.props.containerClass,!0),r(q,"react-tel-input",!0),q)),pe=P()({arrow:!0,up:ee}),ue=P()(r({"form-control":!0,"invalid-number":!H,open:ee},this.props.inputClass,!0)),Se=P()({"selected-flag":!0,open:ee}),Oe=P()(r({"flag-dropdown":!0,"invalid-number":!H,open:ee},this.props.buttonClass,!0)),_e="flag ".concat(Q&&Q.iso2);return v.a.createElement("div",{className:"".concat(de," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},se&&v.a.createElement("div",{className:"special-label"},se),U&&v.a.createElement("div",{className:"invalid-number-message"},U),v.a.createElement("input",Object.assign({className:ue,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:ne,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(Te){G.numberInputRef=Te,typeof G.props.inputProps.ref=="function"?G.props.inputProps.ref(Te):typeof G.props.inputProps.ref=="object"&&(G.props.inputProps.ref.current=Te)}})),v.a.createElement("div",{className:Oe,style:this.props.buttonStyle,ref:function(Te){return G.dropdownContainerRef=Te}},le?v.a.createElement("div",{className:Se},le):v.a.createElement("div",{onClick:J?void 0:this.handleFlagDropdownClick,className:Se,title:Q?"".concat(Q.localName||Q.name,": + ").concat(Q.dialCode):"",tabIndex:J?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!ee||void 0},v.a.createElement("div",{className:_e},!J&&v.a.createElement("div",{className:pe}))),ee&&this.getCountryDropdownList()))}}])&&c(z.prototype,W),D}(v.a.Component);F.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=F}]);const JUe=rn(QUe),{useToken:eGe}=$b,tGe=r=>{var i=r,{value:e,onChange:t}=i,n=oc(i,["value","onChange"]);const{token:a}=eGe();return ve.jsx(JUe,Ye({value:e,onChange:t,country:"us",buttonStyle:{backgroundColor:a.colorBgBase,color:a.colorTextBase,borderColor:a.colorBorder},dropdownStyle:{backgroundColor:a.colorBgBase,color:a.colorTextBase,borderRadius:a.borderRadius,borderColor:a.colorBorder},inputStyle:{backgroundColor:a.colorBgBase,color:a.colorTextBase,width:"100%",height:33,borderRadius:a.borderRadius,borderColor:a.colorBorder}},n))},nGe=r=>{var i=r,{value:e,onChange:t}=i,n=oc(i,["value","onChange"]);const{t:a}=io("SlugInput"),o=()=>{t&&t(nne(e))};return ve.jsxs(va.Compact,{style:{width:"100%"},children:[ve.jsx(ro,{title:a("Slugify"),children:ve.jsx(zn,{onClick:o,children:ve.jsx(WE,{})})}),ve.jsx(oi,Ye({value:e,onChange:t},n))]})};var uN,lne;function rGe(){if(lne)return uN;lne=1;function e(){this.__data__=[],this.size=0}return uN=e,uN}var fN,cne;function une(){if(cne)return fN;cne=1;function e(t,n){return t===n||t!==t&&n!==n}return fN=e,fN}var dN,fne;function qO(){if(fne)return dN;fne=1;var e=une();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return dN=t,dN}var hN,dne;function iGe(){if(dne)return hN;dne=1;var e=qO(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():n.call(a,o,1),--this.size,!0}return hN=r,hN}var pN,hne;function aGe(){if(hne)return pN;hne=1;var e=qO();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return pN=t,pN}var vN,pne;function oGe(){if(pne)return vN;pne=1;var e=qO();function t(n){return e(this.__data__,n)>-1}return vN=t,vN}var gN,vne;function sGe(){if(vne)return gN;vne=1;var e=qO();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return gN=t,gN}var mN,gne;function UO(){if(gne)return mN;gne=1;var e=rGe(),t=iGe(),n=aGe(),r=oGe(),i=sGe();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++sh))return!1;var g=f.get(o),v=f.get(s);if(g&&v)return g==s&&v==o;var m=-1,y=!0,x=l&i?new e:void 0;for(f.set(o,s),f.set(s,o);++m-1&&r%1==0&&r-1&&n%1==0&&n<=e}return O6=t,O6}var _6,Tre;function ZGe(){if(Tre)return _6;Tre=1;var e=GO(),t=kre(),n=XO(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",p="[object String]",g="[object WeakMap]",v="[object ArrayBuffer]",m="[object DataView]",y="[object Float32Array]",x="[object Float64Array]",S="[object Int8Array]",w="[object Int16Array]",C="[object Int32Array]",E="[object Uint8Array]",O="[object Uint8ClampedArray]",$="[object Uint16Array]",P="[object Uint32Array]",M={};M[y]=M[x]=M[S]=M[w]=M[C]=M[E]=M[O]=M[$]=M[P]=!0,M[r]=M[i]=M[v]=M[a]=M[m]=M[o]=M[s]=M[l]=M[c]=M[u]=M[f]=M[d]=M[h]=M[p]=M[g]=!1;function k(T){return n(T)&&t(T.length)&&!!M[e(T)]}return _6=k,_6}var $6,Rre;function QGe(){if(Rre)return $6;Rre=1;function e(t){return function(n){return t(n)}}return $6=e,$6}var qb={exports:{}};qb.exports;var Ire;function JGe(){return Ire||(Ire=1,function(e,t){var n=wne(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch(c){}}();e.exports=s}(qb,qb.exports)),qb.exports}var P6,Are;function Nre(){if(Are)return P6;Are=1;var e=ZGe(),t=QGe(),n=JGe(),r=n&&n.isTypedArray,i=r?t(r):e;return P6=i,P6}var M6,Lre;function eKe(){if(Lre)return M6;Lre=1;var e=UGe(),t=KGe(),n=p6(),r=$re(),i=XGe(),a=Nre(),o=Object.prototype,s=o.hasOwnProperty;function l(c,u){var f=n(c),d=!f&&t(c),h=!f&&!d&&r(c),p=!f&&!d&&!h&&a(c),g=f||d||h||p,v=g?e(c.length,String):[],m=v.length;for(var y in c)(u||s.call(c,y))&&!(g&&(y=="length"||h&&(y=="offset"||y=="parent")||p&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||i(y,m)))&&v.push(y);return v}return M6=l,M6}var k6,jre;function tKe(){if(jre)return k6;jre=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return k6=t,k6}var T6,Dre;function nKe(){if(Dre)return T6;Dre=1;function e(t,n){return function(r){return t(n(r))}}return T6=e,T6}var R6,Fre;function rKe(){if(Fre)return R6;Fre=1;var e=nKe(),t=e(Object.keys,Object);return R6=t,R6}var I6,Bre;function iKe(){if(Bre)return I6;Bre=1;var e=tKe(),t=rKe(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))r.call(a,s)&&s!="constructor"&&o.push(s);return o}return I6=i,I6}var A6,zre;function aKe(){if(zre)return A6;zre=1;var e=Tne(),t=kre();function n(r){return r!=null&&t(r.length)&&!e(r)}return A6=n,A6}var N6,Hre;function oKe(){if(Hre)return N6;Hre=1;var e=eKe(),t=iKe(),n=aKe();function r(i){return n(i)?e(i):t(i)}return N6=r,N6}var L6,Wre;function sKe(){if(Wre)return L6;Wre=1;var e=HGe(),t=qGe(),n=oKe();function r(i){return e(i,n,t)}return L6=r,L6}var j6,Vre;function lKe(){if(Vre)return j6;Vre=1;var e=sKe(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,o,s,l,c,u){var f=s&t,d=e(a),h=d.length,p=e(o),g=p.length;if(h!=g&&!f)return!1;for(var v=h;v--;){var m=d[v];if(!(f?m in o:r.call(o,m)))return!1}var y=u.get(a),x=u.get(o);if(y&&x)return y==o&&x==a;var S=!0;u.set(a,o),u.set(o,a);for(var w=f;++v=$?O:$)),C=O,w=g(w),S.slice(C,C+w.length)==w}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){(function(r){var i=/^\[object .+?Constructor\]$/,a=typeof r=="object"&&r&&r.Object===Object&&r,o=typeof self=="object"&&self&&self.Object===Object&&self,s=a||o||Function("return this")(),l,c=Array.prototype,u=Function.prototype,f=Object.prototype,d=s["__core-js_shared__"],h=(l=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",p=u.toString,v=f.hasOwnProperty,g=f.toString,m=RegExp("^"+p.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),y=c.splice,x=M(s,"Map"),S=M(Object,"create");function w(R){var A=-1,N=R?R.length:0;for(this.clear();++A-1},C.prototype.set=function(R,A){var N=this.__data__,L=O(N,R);return L<0?N.push([R,A]):N[L][1]=A,this},E.prototype.clear=function(){this.__data__={hash:new w,map:new(x||C),string:new w}},E.prototype.delete=function(R){return P(this,R).delete(R)},E.prototype.get=function(R){return P(this,R).get(R)},E.prototype.has=function(R){return P(this,R).has(R)},E.prototype.set=function(R,A){return P(this,R).set(R,A),this},k.Cache=E,e.exports=k}).call(this,n(3))},function(e,t,n){(function(r){var i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c=typeof r=="object"&&r&&r.Object===Object&&r,u=typeof self=="object"&&self&&self.Object===Object&&self,f=c||u||Function("return this")(),d=Object.prototype.toString,h=Math.max,p=Math.min,v=function(){return f.Date.now()};function g(y){var x=typeof y;return!!y&&(x=="object"||x=="function")}function m(y){if(typeof y=="number")return y;if(function(w){return typeof w=="symbol"||function(C){return!!C&&typeof C=="object"}(w)&&d.call(w)=="[object Symbol]"}(y))return NaN;if(g(y)){var x=typeof y.valueOf=="function"?y.valueOf():y;y=g(x)?x+"":x}if(typeof y!="string")return y===0?y:+y;y=y.replace(i,"");var S=o.test(y);return S||s.test(y)?l(y.slice(2),S?2:8):a.test(y)?NaN:+y}e.exports=function(y,x,S){var w,C,E,O,$,P,M=0,k=!1,T=!1,R=!0;if(typeof y!="function")throw new TypeError("Expected a function");function A(D){var z=w,W=C;return w=C=void 0,M=D,O=y.apply(W,z)}function N(D){return M=D,$=setTimeout(j,x),k?A(D):O}function L(D){var z=D-P;return P===void 0||z>=x||z<0||T&&D-M>=E}function j(){var D=v();if(L(D))return F(D);$=setTimeout(j,function(z){var W=x-(z-P);return T?p(W,E-(z-M)):W}(D))}function F(D){return $=void 0,R&&w?A(D):(w=C=void 0,O)}function B(){var D=v(),z=L(D);if(w=arguments,C=this,P=D,z){if($===void 0)return N(P);if(T)return $=setTimeout(j,x),A(P)}return $===void 0&&($=setTimeout(j,x)),O}return x=m(x)||0,g(S)&&(k=!!S.leading,E=(T="maxWait"in S)?h(m(S.maxWait)||0,x):E,R="trailing"in S?!!S.trailing:R),B.cancel=function(){$!==void 0&&clearTimeout($),M=0,w=P=C=$=void 0},B.flush=function(){return $===void 0?O:F(v())},B}}).call(this,n(3))},function(e,t,n){(function(r,i){var a="[object Arguments]",o="[object Map]",s="[object Object]",l="[object Set]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,f=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[a]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g[o]=g["[object Number]"]=g[s]=g["[object RegExp]"]=g[l]=g["[object String]"]=g["[object WeakMap]"]=!1;var m=typeof r=="object"&&r&&r.Object===Object&&r,y=typeof self=="object"&&self&&self.Object===Object&&self,x=m||y||Function("return this")(),S=t&&!t.nodeType&&t,w=S&&typeof i=="object"&&i&&!i.nodeType&&i,C=w&&w.exports===S&&m.process,E=function(){try{return C&&C.binding("util")}catch(ye){}}(),O=E&&E.isTypedArray;function $(ye,Re,Xe,Ge){var tt=-1,vt=ye?ye.length:0;for(Ge&&vt&&(Xe=ye[++tt]);++tt-1},Te.prototype.set=function(ye,Re){var Xe=this.__data__,Ge=Ue(Xe,ye);return Ge<0?Xe.push([ye,Re]):Xe[Ge][1]=Re,this},Fe.prototype.clear=function(){this.__data__={hash:new _e,map:new(te||Te),string:new _e}},Fe.prototype.delete=function(ye){return Et(this,ye).delete(ye)},Fe.prototype.get=function(ye){return Et(this,ye).get(ye)},Fe.prototype.has=function(ye){return Et(this,ye).has(ye)},Fe.prototype.set=function(ye,Re){return Et(this,ye).set(ye,Re),this},Be.prototype.add=Be.prototype.push=function(ye){return this.__data__.set(ye,"__lodash_hash_undefined__"),this},Be.prototype.has=function(ye){return this.__data__.has(ye)},Pe.prototype.clear=function(){this.__data__=new Te},Pe.prototype.delete=function(ye){return this.__data__.delete(ye)},Pe.prototype.get=function(ye){return this.__data__.get(ye)},Pe.prototype.has=function(ye){return this.__data__.has(ye)},Pe.prototype.set=function(ye,Re){var Xe=this.__data__;if(Xe instanceof Te){var Ge=Xe.__data__;if(!te||Ge.length<199)return Ge.push([ye,Re]),this;Xe=this.__data__=new Fe(Ge)}return Xe.set(ye,Re),this};var ke,Ee=(ke=function(ye,Re){return ye&&Ie(ye,Re,Mn)},function(ye,Re){if(ye==null)return ye;if(!Gt(ye))return ke(ye,Re);for(var Xe=ye.length,Ge=-1,tt=Object(ye);++Geon))return!1;var fn=vt.get(ye);if(fn&&vt.get(Re))return fn==Re;var bt=-1,Qt=!0,sn=1&tt?new Be:void 0;for(vt.set(ye,Re),vt.set(Re,ye);++bt-1&&ye%1==0&&ye-1&&ye%1==0&&ye<=9007199254740991}function Nt(ye){var Re=typeof ye;return!!ye&&(Re=="object"||Re=="function")}function Zt(ye){return!!ye&&typeof ye=="object"}function gn(ye){return typeof ye=="symbol"||Zt(ye)&&H.call(ye)=="[object Symbol]"}var an=O?function(ye){return function(Re){return ye(Re)}}(O):function(ye){return Zt(ye)&&$t(ye.length)&&!!g[H.call(ye)]};function Mn(ye){return Gt(ye)?ze(ye):Wt(ye)}function Vt(ye){return ye}i.exports=function(ye,Re,Xe){var Ge=Jt(ye)?$:M,tt=arguments.length<3;return Ge(ye,Ot(Re),Xe,tt,Ee)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(n,r){return n>>=0,r=String(r!==void 0?r:" "),this.length>n?String(this):((n-=this.length)>r.length&&(r+=r.repeat(n/r.length)),String(this)+r.slice(0,n))})},function(e,t,n){function r(B,D,z){return D in B?Object.defineProperty(B,D,{value:z,enumerable:!0,configurable:!0,writable:!0}):B[D]=z,B}function i(B){if(Symbol.iterator in Object(B)||Object.prototype.toString.call(B)==="[object Arguments]")return Array.from(B)}function a(B){return function(D){if(Array.isArray(D)){for(var z=0,W=new Array(D.length);z0?(X.mainCode=!0,U||D.constructor.name==="Array"&&D.includes(K[2])?(X.hasAreaCodes=!0,[X].concat(Q)):(G=G.concat(Q),[X])):[X]}))),G]}function N(B,D,z,W){if(z!==null){var q=Object.keys(z),H=Object.values(z);q.forEach(function(U,G){if(W)return B.push([U,H[G]]);var K=B.findIndex(function(Q){return Q[0]===U});if(K===-1){var X=[U];X[D]=H[G],B.push(X)}else B[K][D]=H[G]})}}function L(B,D){return D.length===0?B:B.map(function(z){var W=D.findIndex(function(H){return H[0]===z[2]});if(W===-1)return z;var q=D[W];return q[1]&&(z[4]=q[1]),q[3]&&(z[5]=q[3]),q[2]&&(z[6]=q[2]),z})}var j=function B(D,z,W,q,H,U,G,K,X,Q,ee,ne,te,ie){l(this,B),this.filterRegions=function(fe,xe){if(typeof fe=="string"){var Oe=fe;return xe.filter(function(_e){return _e.regions.some(function(Te){return Te===Oe})})}return xe.filter(function(_e){return fe.map(function(Te){return _e.regions.some(function(Fe){return Fe===Te})}).some(function(Te){return Te})})},this.sortTerritories=function(fe,xe){var Oe=[].concat(a(fe),a(xe));return Oe.sort(function(_e,Te){return _e.nameTe.name?1:0}),Oe},this.getFilteredCountryList=function(fe,xe,Oe){return fe.length===0?xe:Oe?fe.map(function(_e){var Te=xe.find(function(Fe){return Fe.iso2===_e});if(Te)return Te}).filter(function(_e){return _e}):xe.filter(function(_e){return fe.some(function(Te){return Te===_e.iso2})})},this.localizeCountries=function(fe,xe,Oe){for(var _e=0;_eFe.localName?1:0}),fe},this.getCustomAreas=function(fe,xe){for(var Oe=[],_e=0;_epe.dialCode.length||fe.dialCode.length===pe.dialCode.length&&fe.priority="0"&&J.indexOf(0)<="9"?oe.find(function(re){return re.dialCode==+J}):oe.find(function(re){return re.iso2==J}))&&le.dialCode&&H.setState({selectedCountry:le,formattedNumber:H.props.disableCountryCode?"":H.formatNumber(le.dialCode,le)})},H.scrollTo=function(J,le){if(J){var oe=H.dropdownRef;if(oe&&document.body){var re=oe.offsetHeight,se=oe.getBoundingClientRect().top+document.body.scrollTop,ge=se+re,de=J,pe=de.getBoundingClientRect(),fe=de.offsetHeight,xe=pe.top+document.body.scrollTop,Oe=xe+fe,_e=xe-se+oe.scrollTop,Te=re/2-fe/2;if(H.props.enableSearch?xege){le&&(_e+=Te);var Fe=re-fe;oe.scrollTop=_e-Fe}}}},H.scrollToTop=function(){var J=H.dropdownRef;J&&document.body&&(J.scrollTop=0)},H.formatNumber=function(J,le){if(!le)return J;var oe,re=le.format,se=H.props,ge=se.disableCountryCode,de=se.enableAreaCodeStretch,pe=se.enableLongNumbers,fe=se.autoFormat;if(ge?((oe=re.split(" ")).shift(),oe=oe.join(" ")):de&&le.isAreaCode?((oe=re.split(" "))[1]=oe[1].replace(/\.+/,"".padEnd(le.areaCodeLength,".")),oe=oe.join(" ")):oe=re,!J||J.length===0)return ge?"":H.props.prefix;if(J&&J.length<2||!oe||!fe)return ge?J:H.props.prefix+J;var xe,Oe=C()(oe,function(_e,Te){if(_e.remainingText.length===0)return _e;if(Te!==".")return{formattedText:_e.formattedText+Te,remainingText:_e.remainingText};var Fe,Be=o(Fe=_e.remainingText)||i(Fe)||s(),Pe=Be[0],ze=Be.slice(1);return{formattedText:_e.formattedText+Pe,remainingText:ze}},{formattedText:"",remainingText:J.split("")});return(xe=pe?Oe.formattedText+Oe.remainingText.join(""):Oe.formattedText).includes("(")&&!xe.includes(")")&&(xe+=")"),xe},H.cursorToEnd=function(){var J=H.numberInputRef;if(document.activeElement===J){J.focus();var le=J.value.length;J.value.charAt(le-1)===")"&&(le-=1),J.setSelectionRange(le,le)}},H.getElement=function(J){return H["flag_no_".concat(J)]},H.getCountryData=function(){return H.state.selectedCountry?{name:H.state.selectedCountry.name||"",dialCode:H.state.selectedCountry.dialCode||"",countryCode:H.state.selectedCountry.iso2||"",format:H.state.selectedCountry.format||""}:{}},H.handleFlagDropdownClick=function(J){if(J.preventDefault(),H.state.showDropdown||!H.props.disabled){var le=H.state,oe=le.preferredCountries,re=le.onlyCountries,se=le.selectedCountry,ge=H.concatPreferredCountries(oe,re).findIndex(function(de){return de.dialCode===se.dialCode&&de.iso2===se.iso2});H.setState({showDropdown:!H.state.showDropdown,highlightCountryIndex:ge},function(){H.state.showDropdown&&H.scrollTo(H.getElement(H.state.highlightCountryIndex))})}},H.handleInput=function(J){var le=J.target.value,oe=H.props,re=oe.prefix,se=oe.onChange,ge=H.props.disableCountryCode?"":re,de=H.state.selectedCountry,pe=H.state.freezeSelection;if(!H.props.countryCodeEditable){var fe=re+(de.hasAreaCodes?H.state.onlyCountries.find(function(Ee){return Ee.iso2===de.iso2&&Ee.mainCode}).dialCode:de.dialCode);if(le.slice(0,fe.length)!==fe)return}if(le===re)return se&&se("",H.getCountryData(),J,""),H.setState({formattedNumber:""});if(!(le.replace(/\D/g,"").length>15&&(H.props.enableLongNumbers===!1||typeof H.props.enableLongNumbers=="number"&&le.replace(/\D/g,"").length>H.props.enableLongNumbers))&&le!==H.state.formattedNumber){J.preventDefault?J.preventDefault():J.returnValue=!1;var xe=H.props.country,Oe=H.state,_e=Oe.onlyCountries,Te=Oe.selectedCountry,Fe=Oe.hiddenAreaCodes;if(se&&J.persist(),le.length>0){var Be=le.replace(/\D/g,"");(!H.state.freezeSelection||Te&&Te.dialCode.length>Be.length)&&(de=H.props.disableCountryGuess?Te:H.guessSelectedCountry(Be.substring(0,6),xe,_e,Fe)||Te,pe=!1),ge=H.formatNumber(Be,de),de=de.dialCode?de:Te}var Pe=J.target.selectionStart,ze=J.target.selectionStart,Ue=H.state.formattedNumber,ke=ge.length-Ue.length;H.setState({formattedNumber:ge,freezeSelection:pe,selectedCountry:de},function(){ke>0&&(ze-=ke),ge.charAt(ge.length-1)==")"?H.numberInputRef.setSelectionRange(ge.length-1,ge.length-1):ze>0&&Ue.length>=ge.length?H.numberInputRef.setSelectionRange(ze,ze):Pe1?se.replace(oe.dialCode,re.dialCode):re.dialCode,de=H.formatNumber(ge.replace(/\D/g,""),re);H.setState({showDropdown:!1,selectedCountry:re,freezeSelection:!0,formattedNumber:de,searchValue:""},function(){H.cursorToEnd(),H.props.onChange&&H.props.onChange(de.replace(/[^0-9]+/g,""),H.getCountryData(),le,de)})}},H.handleInputFocus=function(J){H.numberInputRef&&H.numberInputRef.value===H.props.prefix&&H.state.selectedCountry&&!H.props.disableCountryCode&&H.setState({formattedNumber:H.props.prefix+H.state.selectedCountry.dialCode},function(){H.props.jumpCursorToEnd&&setTimeout(H.cursorToEnd,0)}),H.setState({placeholder:""}),H.props.onFocus&&H.props.onFocus(J,H.getCountryData()),H.props.jumpCursorToEnd&&setTimeout(H.cursorToEnd,0)},H.handleInputBlur=function(J){J.target.value||H.setState({placeholder:H.props.placeholder}),H.props.onBlur&&H.props.onBlur(J,H.getCountryData())},H.handleInputCopy=function(J){if(H.props.copyNumbersOnly){var le=window.getSelection().toString().replace(/[^0-9]+/g,"");J.clipboardData.setData("text/plain",le),J.preventDefault()}},H.getHighlightCountryIndex=function(J){var le=H.state.highlightCountryIndex+J;return le<0||le>=H.state.onlyCountries.length+H.state.preferredCountries.length?le-J:H.props.enableSearch&&le>H.getSearchFilteredCountries().length?0:le},H.searchCountry=function(){var J=H.getProbableCandidate(H.state.queryString)||H.state.onlyCountries[0],le=H.state.onlyCountries.findIndex(function(oe){return oe==J})+H.state.preferredCountries.length;H.scrollTo(H.getElement(le),!0),H.setState({queryString:"",highlightCountryIndex:le})},H.handleKeydown=function(J){var le=H.props.keys,oe=J.target.className;if(oe.includes("selected-flag")&&J.which===le.ENTER&&!H.state.showDropdown)return H.handleFlagDropdownClick(J);if(oe.includes("form-control")&&(J.which===le.ENTER||J.which===le.ESC))return J.target.blur();if(H.state.showDropdown&&!H.props.disabled&&(!oe.includes("search-box")||J.which===le.UP||J.which===le.DOWN||J.which===le.ENTER||J.which===le.ESC&&J.target.value==="")){J.preventDefault?J.preventDefault():J.returnValue=!1;var re=function(se){H.setState({highlightCountryIndex:H.getHighlightCountryIndex(se)},function(){H.scrollTo(H.getElement(H.state.highlightCountryIndex),!0)})};switch(J.which){case le.DOWN:re(1);break;case le.UP:re(-1);break;case le.ENTER:H.props.enableSearch?H.handleFlagItemClick(H.getSearchFilteredCountries()[H.state.highlightCountryIndex]||H.getSearchFilteredCountries()[0],J):H.handleFlagItemClick([].concat(a(H.state.preferredCountries),a(H.state.onlyCountries))[H.state.highlightCountryIndex],J);break;case le.ESC:case le.TAB:H.setState({showDropdown:!1},H.cursorToEnd);break;default:(J.which>=le.A&&J.which<=le.Z||J.which===le.SPACE)&&H.setState({queryString:H.state.queryString+String.fromCharCode(J.which)},H.state.debouncedQueryStingSearcher)}}},H.handleInputKeyDown=function(J){var le=H.props,oe=le.keys,re=le.onEnterKeyPress,se=le.onKeyDown;J.which===oe.ENTER&&re&&re(J),se&&se(J)},H.handleClickOutside=function(J){H.dropdownRef&&!H.dropdownContainerRef.contains(J.target)&&H.state.showDropdown&&H.setState({showDropdown:!1})},H.handleSearchChange=function(J){var le=J.currentTarget.value,oe=H.state,re=oe.preferredCountries,se=oe.selectedCountry,ge=0;if(le===""&&se){var de=H.state.onlyCountries;ge=H.concatPreferredCountries(re,de).findIndex(function(pe){return pe==se}),setTimeout(function(){return H.scrollTo(H.getElement(ge))},100)}H.setState({searchValue:le,highlightCountryIndex:ge})},H.concatPreferredCountries=function(J,le){return J.length>0?a(new Set(J.concat(le))):le},H.getDropdownCountryName=function(J){return J.localName||J.name},H.getSearchFilteredCountries=function(){var J=H.state,le=J.preferredCountries,oe=J.onlyCountries,re=J.searchValue,se=H.props.enableSearch,ge=H.concatPreferredCountries(le,oe),de=re.trim().toLowerCase().replace("+","");if(se&&de){if(/^\d+$/.test(de))return ge.filter(function(xe){var Oe=xe.dialCode;return["".concat(Oe)].some(function(_e){return _e.toLowerCase().includes(de)})});var pe=ge.filter(function(xe){var Oe=xe.iso2;return["".concat(Oe)].some(function(_e){return _e.toLowerCase().includes(de)})}),fe=ge.filter(function(xe){var Oe=xe.name,_e=xe.localName;return xe.iso2,["".concat(Oe),"".concat(_e||"")].some(function(Te){return Te.toLowerCase().includes(de)})});return H.scrollToTop(),a(new Set([].concat(pe,fe)))}return ge},H.getCountryDropdownList=function(){var J=H.state,le=J.preferredCountries,oe=J.highlightCountryIndex,re=J.showDropdown,se=J.searchValue,ge=H.props,de=ge.disableDropdown,pe=ge.prefix,fe=H.props,xe=fe.enableSearch,Oe=fe.searchNotFound,_e=fe.disableSearchIcon,Te=fe.searchClass,Fe=fe.searchStyle,Be=fe.searchPlaceholder,Pe=fe.autocompleteSearch,ze=H.getSearchFilteredCountries().map(function(Ee,Ie){var Ae=oe===Ie,$e=P()({country:!0,preferred:Ee.iso2==="us"||Ee.iso2==="gb",active:Ee.iso2==="us",highlight:Ae}),He="flag ".concat(Ee.iso2);return g.a.createElement("li",Object.assign({ref:function(ot){return H["flag_no_".concat(Ie)]=ot},key:"flag_no_".concat(Ie),"data-flag-key":"flag_no_".concat(Ie),className:$e,"data-dial-code":"1",tabIndex:de?"-1":"0","data-country-code":Ee.iso2,onClick:function(ot){return H.handleFlagItemClick(Ee,ot)},role:"option"},Ae?{"aria-selected":!0}:{}),g.a.createElement("div",{className:He}),g.a.createElement("span",{className:"country-name"},H.getDropdownCountryName(Ee)),g.a.createElement("span",{className:"dial-code"},Ee.format?H.formatNumber(Ee.dialCode,Ee):pe+Ee.dialCode))}),Ue=g.a.createElement("li",{key:"dashes",className:"divider"});le.length>0&&(!xe||xe&&!se.trim())&&ze.splice(le.length,0,Ue);var ke=P()(r({"country-list":!0,hide:!re},H.props.dropdownClass,!0));return g.a.createElement("ul",{ref:function(Ee){return!xe&&Ee&&Ee.focus(),H.dropdownRef=Ee},className:ke,style:H.props.dropdownStyle,role:"listbox",tabIndex:"0"},xe&&g.a.createElement("li",{className:P()(r({search:!0},Te,Te))},!_e&&g.a.createElement("span",{className:P()(r({"search-emoji":!0},"".concat(Te,"-emoji"),Te)),role:"img","aria-label":"Magnifying glass"},"🔎"),g.a.createElement("input",{className:P()(r({"search-box":!0},"".concat(Te,"-box"),Te)),style:Fe,type:"search",placeholder:Be,autoFocus:!0,autoComplete:Pe?"on":"off",value:se,onChange:H.handleSearchChange})),ze.length>0?ze:g.a.createElement("li",{className:"no-entries-message"},g.a.createElement("span",null,Oe)))};var U,G=new j(q.enableAreaCodes,q.enableTerritories,q.regions,q.onlyCountries,q.preferredCountries,q.excludeCountries,q.preserveOrder,q.masks,q.priority,q.areaCodes,q.localization,q.prefix,q.defaultMask,q.alwaysDefaultMask),K=G.onlyCountries,X=G.preferredCountries,Q=G.hiddenAreaCodes,ee=q.value?q.value.replace(/\D/g,""):"";U=q.disableInitialCountryGuess?0:ee.length>1?H.guessSelectedCountry(ee.substring(0,6),q.country,K,Q)||0:q.country&&K.find(function(J){return J.iso2==q.country})||0;var ne,te=ee.length<2&&U&&!O()(ee,U.dialCode)?U.dialCode:"";ne=ee===""&&U===0?"":H.formatNumber((q.disableCountryCode?"":te)+ee,U.name?U:void 0);var ie=K.findIndex(function(J){return J==U});return H.state={showDropdown:q.showDropdown,formattedNumber:ne,onlyCountries:K,preferredCountries:X,hiddenAreaCodes:Q,selectedCountry:U,highlightCountryIndex:ie,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:y()(H.searchCountry,250),searchValue:""},H}var z,W;return function(q,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(H&&H.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),H&&p(q,H)}(D,B),z=D,(W=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(q,H,U){q.country!==this.props.country?this.updateCountry(this.props.country):q.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(q){if(q===null)return this.setState({selectedCountry:0,formattedNumber:""});var H=this.state,U=H.onlyCountries,G=H.selectedCountry,K=H.hiddenAreaCodes,X=this.props,Q=X.country,ee=X.prefix;if(q==="")return this.setState({selectedCountry:G,formattedNumber:""});var ne,te,ie=q.replace(/\D/g,"");if(G&&O()(q,ee+G.dialCode))te=this.formatNumber(ie,G),this.setState({formattedNumber:te});else{var J=(ne=this.props.disableCountryGuess?G:this.guessSelectedCountry(ie.substring(0,6),Q,U,K)||G)&&O()(ie,ee+ne.dialCode)?ne.dialCode:"";te=this.formatNumber((this.props.disableCountryCode?"":J)+ie,ne||void 0),this.setState({selectedCountry:ne,formattedNumber:te})}}},{key:"render",value:function(){var q,H,U,G=this,K=this.state,X=K.onlyCountries,Q=K.selectedCountry,ee=K.showDropdown,ne=K.formattedNumber,te=K.hiddenAreaCodes,ie=this.props,J=ie.disableDropdown,le=ie.renderStringAsFlag,oe=ie.isValid,re=ie.defaultErrorMessage,se=ie.specialLabel;if(typeof oe=="boolean")H=oe;else{var ge=oe(ne.replace(/\D/g,""),Q,X,te);typeof ge=="boolean"?(H=ge)===!1&&(U=re):(H=!1,U=ge)}var de=P()((r(q={},this.props.containerClass,!0),r(q,"react-tel-input",!0),q)),pe=P()({arrow:!0,up:ee}),fe=P()(r({"form-control":!0,"invalid-number":!H,open:ee},this.props.inputClass,!0)),xe=P()({"selected-flag":!0,open:ee}),Oe=P()(r({"flag-dropdown":!0,"invalid-number":!H,open:ee},this.props.buttonClass,!0)),_e="flag ".concat(Q&&Q.iso2);return g.a.createElement("div",{className:"".concat(de," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},se&&g.a.createElement("div",{className:"special-label"},se),U&&g.a.createElement("div",{className:"invalid-number-message"},U),g.a.createElement("input",Object.assign({className:fe,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:ne,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(Te){G.numberInputRef=Te,typeof G.props.inputProps.ref=="function"?G.props.inputProps.ref(Te):typeof G.props.inputProps.ref=="object"&&(G.props.inputProps.ref.current=Te)}})),g.a.createElement("div",{className:Oe,style:this.props.buttonStyle,ref:function(Te){return G.dropdownContainerRef=Te}},le?g.a.createElement("div",{className:xe},le):g.a.createElement("div",{onClick:J?void 0:this.handleFlagDropdownClick,className:xe,title:Q?"".concat(Q.localName||Q.name,": + ").concat(Q.dialCode):"",tabIndex:J?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!ee||void 0},g.a.createElement("div",{className:_e},!J&&g.a.createElement("div",{className:pe}))),ee&&this.getCountryDropdownList()))}}])&&c(z.prototype,W),D}(g.a.Component);F.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=F}]);const ZUe=rn(XUe),{useToken:QUe}=$b,JUe=r=>{var i=r,{value:e,onChange:t}=i,n=oc(i,["value","onChange"]);const{token:a}=QUe();return ve.jsx(ZUe,Ke({value:e,onChange:t,country:"us",buttonStyle:{backgroundColor:a.colorBgBase,color:a.colorTextBase,borderColor:a.colorBorder},dropdownStyle:{backgroundColor:a.colorBgBase,color:a.colorTextBase,borderRadius:a.borderRadius,borderColor:a.colorBorder},inputStyle:{backgroundColor:a.colorBgBase,color:a.colorTextBase,width:"100%",height:33,borderRadius:a.borderRadius,borderColor:a.colorBorder}},n))},eGe=r=>{var i=r,{value:e,onChange:t}=i,n=oc(i,["value","onChange"]);const{t:a}=io("SlugInput"),o=()=>{t&&t(ene(e))};return ve.jsxs(va.Compact,{style:{width:"100%"},children:[ve.jsx(ro,{title:a("Slugify"),children:ve.jsx(Hn,{onClick:o,children:ve.jsx(zE,{})})}),ve.jsx(oi,Ke({value:e,onChange:t},n))]})};var oN,one;function tGe(){if(one)return oN;one=1;function e(){this.__data__=[],this.size=0}return oN=e,oN}var sN,sne;function lne(){if(sne)return sN;sne=1;function e(t,n){return t===n||t!==t&&n!==n}return sN=e,sN}var lN,cne;function WO(){if(cne)return lN;cne=1;var e=lne();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return lN=t,lN}var cN,une;function nGe(){if(une)return cN;une=1;var e=WO(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():n.call(a,o,1),--this.size,!0}return cN=r,cN}var uN,fne;function rGe(){if(fne)return uN;fne=1;var e=WO();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return uN=t,uN}var fN,dne;function iGe(){if(dne)return fN;dne=1;var e=WO();function t(n){return e(this.__data__,n)>-1}return fN=t,fN}var dN,hne;function aGe(){if(hne)return dN;hne=1;var e=WO();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return dN=t,dN}var hN,pne;function VO(){if(pne)return hN;pne=1;var e=tGe(),t=nGe(),n=rGe(),r=iGe(),i=aGe();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++sh))return!1;var v=f.get(o),g=f.get(s);if(v&&g)return v==s&&g==o;var m=-1,y=!0,x=l&i?new e:void 0;for(f.set(o,s),f.set(s,o);++m-1&&r%1==0&&r-1&&n%1==0&&n<=e}return S6=t,S6}var w6,Mre;function YGe(){if(Mre)return w6;Mre=1;var e=qO(),t=Pre(),n=KO(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",p="[object String]",v="[object WeakMap]",g="[object ArrayBuffer]",m="[object DataView]",y="[object Float32Array]",x="[object Float64Array]",S="[object Int8Array]",w="[object Int16Array]",C="[object Int32Array]",E="[object Uint8Array]",O="[object Uint8ClampedArray]",$="[object Uint16Array]",P="[object Uint32Array]",M={};M[y]=M[x]=M[S]=M[w]=M[C]=M[E]=M[O]=M[$]=M[P]=!0,M[r]=M[i]=M[g]=M[a]=M[m]=M[o]=M[s]=M[l]=M[c]=M[u]=M[f]=M[d]=M[h]=M[p]=M[v]=!1;function k(T){return n(T)&&t(T.length)&&!!M[e(T)]}return w6=k,w6}var C6,kre;function XGe(){if(kre)return C6;kre=1;function e(t){return function(n){return t(n)}}return C6=e,C6}var qb={exports:{}};qb.exports;var Tre;function ZGe(){return Tre||(Tre=1,function(e,t){var n=xne(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch(c){}}();e.exports=s}(qb,qb.exports)),qb.exports}var E6,Rre;function Ire(){if(Rre)return E6;Rre=1;var e=YGe(),t=XGe(),n=ZGe(),r=n&&n.isTypedArray,i=r?t(r):e;return E6=i,E6}var O6,Are;function QGe(){if(Are)return O6;Are=1;var e=VGe(),t=UGe(),n=u6(),r=Ore(),i=KGe(),a=Ire(),o=Object.prototype,s=o.hasOwnProperty;function l(c,u){var f=n(c),d=!f&&t(c),h=!f&&!d&&r(c),p=!f&&!d&&!h&&a(c),v=f||d||h||p,g=v?e(c.length,String):[],m=g.length;for(var y in c)(u||s.call(c,y))&&!(v&&(y=="length"||h&&(y=="offset"||y=="parent")||p&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||i(y,m)))&&g.push(y);return g}return O6=l,O6}var _6,Nre;function JGe(){if(Nre)return _6;Nre=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return _6=t,_6}var $6,Lre;function eKe(){if(Lre)return $6;Lre=1;function e(t,n){return function(r){return t(n(r))}}return $6=e,$6}var P6,jre;function tKe(){if(jre)return P6;jre=1;var e=eKe(),t=e(Object.keys,Object);return P6=t,P6}var M6,Dre;function nKe(){if(Dre)return M6;Dre=1;var e=JGe(),t=tKe(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))r.call(a,s)&&s!="constructor"&&o.push(s);return o}return M6=i,M6}var k6,Fre;function rKe(){if(Fre)return k6;Fre=1;var e=Mne(),t=Pre();function n(r){return r!=null&&t(r.length)&&!e(r)}return k6=n,k6}var T6,Bre;function iKe(){if(Bre)return T6;Bre=1;var e=QGe(),t=nKe(),n=rKe();function r(i){return n(i)?e(i):t(i)}return T6=r,T6}var R6,zre;function aKe(){if(zre)return R6;zre=1;var e=BGe(),t=WGe(),n=iKe();function r(i){return e(i,n,t)}return R6=r,R6}var I6,Hre;function oKe(){if(Hre)return I6;Hre=1;var e=aKe(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,o,s,l,c,u){var f=s&t,d=e(a),h=d.length,p=e(o),v=p.length;if(h!=v&&!f)return!1;for(var g=h;g--;){var m=d[g];if(!(f?m in o:r.call(o,m)))return!1}var y=u.get(a),x=u.get(o);if(y&&x)return y==o&&x==a;var S=!0;u.set(a,o),u.set(o,a);for(var w=f;++g1)return v.map(function(S){return g(S)});var y=v[0];if(typeof y.blotName!="string"&&typeof y.attrName!="string")throw new o("Invalid definition");if(y.blotName==="abstract")throw new o("Cannot register abstract class");if(u[y.blotName||y.attrName]=y,typeof y.keyName=="string")s[y.keyName]=y;else if(y.className!=null&&(l[y.className]=y),y.tagName!=null){Array.isArray(y.tagName)?y.tagName=y.tagName.map(function(S){return S.toUpperCase()}):y.tagName=y.tagName.toUpperCase();var x=Array.isArray(y.tagName)?y.tagName:[y.tagName];x.forEach(function(S){(c[S]==null||y.className==null)&&(c[S]=y)})}return y}r.register=g},function(n,r,i){var a=i(51),o=i(11),s=i(3),l=i(20),c="\0",u=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};u.prototype.insert=function(f,d){var h={};return f.length===0?this:(h.insert=f,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(h.attributes=d),this.push(h))},u.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},u.prototype.retain=function(f,d){if(f<=0)return this;var h={retain:f};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(h.attributes=d),this.push(h)},u.prototype.push=function(f){var d=this.ops.length,h=this.ops[d-1];if(f=s(!0,{},f),typeof h=="object"){if(typeof f.delete=="number"&&typeof h.delete=="number")return this.ops[d-1]={delete:h.delete+f.delete},this;if(typeof h.delete=="number"&&f.insert!=null&&(d-=1,h=this.ops[d-1],typeof h!="object"))return this.ops.unshift(f),this;if(o(f.attributes,h.attributes)){if(typeof f.insert=="string"&&typeof h.insert=="string")return this.ops[d-1]={insert:h.insert+f.insert},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof h.retain=="number")return this.ops[d-1]={retain:h.retain+f.retain},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this}}return d===this.ops.length?this.ops.push(f):this.ops.splice(d,0,f),this},u.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},u.prototype.filter=function(f){return this.ops.filter(f)},u.prototype.forEach=function(f){this.ops.forEach(f)},u.prototype.map=function(f){return this.ops.map(f)},u.prototype.partition=function(f){var d=[],h=[];return this.forEach(function(p){var g=f(p)?d:h;g.push(p)}),[d,h]},u.prototype.reduce=function(f,d){return this.ops.reduce(f,d)},u.prototype.changeLength=function(){return this.reduce(function(f,d){return d.insert?f+l.length(d):d.delete?f-d.delete:f},0)},u.prototype.length=function(){return this.reduce(function(f,d){return f+l.length(d)},0)},u.prototype.slice=function(f,d){f=f||0,typeof d!="number"&&(d=1/0);for(var h=[],p=l.iterator(this.ops),g=0;g0&&h.next(g.retain-v)}for(var m=new u(p);d.hasNext()||h.hasNext();)if(h.peekType()==="insert")m.push(h.next());else if(d.peekType()==="delete")m.push(d.next());else{var y=Math.min(d.peekLength(),h.peekLength()),x=d.next(y),S=h.next(y);if(typeof S.retain=="number"){var w={};typeof x.retain=="number"?w.retain=y:w.insert=x.insert;var C=l.attributes.compose(x.attributes,S.attributes,typeof x.retain=="number");if(C&&(w.attributes=C),m.push(w),!h.hasNext()&&o(m.ops[m.ops.length-1],w)){var E=new u(d.rest());return m.concat(E).chop()}}else typeof S.delete=="number"&&typeof x.retain=="number"&&m.push(S)}return m.chop()},u.prototype.concat=function(f){var d=new u(this.ops.slice());return f.ops.length>0&&(d.push(f.ops[0]),d.ops=d.ops.concat(f.ops.slice(1))),d},u.prototype.diff=function(f,d){if(this.ops===f.ops)return new u;var h=[this,f].map(function(y){return y.map(function(x){if(x.insert!=null)return typeof x.insert=="string"?x.insert:c;var S=y===f?"on":"with";throw new Error("diff() called "+S+" non-document")}).join("")}),p=new u,g=a(h[0],h[1],d),v=l.iterator(this.ops),m=l.iterator(f.ops);return g.forEach(function(y){for(var x=y[1].length;x>0;){var S=0;switch(y[0]){case a.INSERT:S=Math.min(m.peekLength(),x),p.push(m.next(S));break;case a.DELETE:S=Math.min(x,v.peekLength()),v.next(S),p.delete(S);break;case a.EQUAL:S=Math.min(v.peekLength(),m.peekLength(),x);var w=v.next(S),C=m.next(S);o(w.insert,C.insert)?p.retain(S,l.attributes.diff(w.attributes,C.attributes)):p.push(C).delete(S);break}x-=S}}),p.chop()},u.prototype.eachLine=function(f,d){d=d||` -`;for(var h=l.iterator(this.ops),p=new u,g=0;h.hasNext();){if(h.peekType()!=="insert")return;var v=h.peek(),m=l.length(v)-h.peekLength(),y=typeof v.insert=="string"?v.insert.indexOf(d,m)-m:-1;if(y<0)p.push(h.next());else if(y>0)p.push(h.next(y));else{if(f(p,h.next(1).attributes||{},g)===!1)return;g+=1,p=new u}}p.length()>0&&f(p,{},g)},u.prototype.transform=function(f,d){if(d=!!d,typeof f=="number")return this.transformPosition(f,d);for(var h=l.iterator(this.ops),p=l.iterator(f.ops),g=new u;h.hasNext()||p.hasNext();)if(h.peekType()==="insert"&&(d||p.peekType()!=="insert"))g.retain(l.length(h.next()));else if(p.peekType()==="insert")g.push(p.next());else{var v=Math.min(h.peekLength(),p.peekLength()),m=h.next(v),y=p.next(v);if(m.delete)continue;y.delete?g.push(y):g.retain(v,l.attributes.transform(m.attributes,y.attributes,d))}return g.chop()},u.prototype.transformPosition=function(f,d){d=!!d;for(var h=l.iterator(this.ops),p=0;h.hasNext()&&p<=f;){var g=h.peekLength(),v=h.peekType();if(h.next(),v==="delete"){f-=Math.min(g,f-p);continue}else v==="insert"&&(p1)return g.map(function(S){return v(S)});var y=g[0];if(typeof y.blotName!="string"&&typeof y.attrName!="string")throw new o("Invalid definition");if(y.blotName==="abstract")throw new o("Cannot register abstract class");if(u[y.blotName||y.attrName]=y,typeof y.keyName=="string")s[y.keyName]=y;else if(y.className!=null&&(l[y.className]=y),y.tagName!=null){Array.isArray(y.tagName)?y.tagName=y.tagName.map(function(S){return S.toUpperCase()}):y.tagName=y.tagName.toUpperCase();var x=Array.isArray(y.tagName)?y.tagName:[y.tagName];x.forEach(function(S){(c[S]==null||y.className==null)&&(c[S]=y)})}return y}r.register=v},function(n,r,i){var a=i(51),o=i(11),s=i(3),l=i(20),c="\0",u=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};u.prototype.insert=function(f,d){var h={};return f.length===0?this:(h.insert=f,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(h.attributes=d),this.push(h))},u.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},u.prototype.retain=function(f,d){if(f<=0)return this;var h={retain:f};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(h.attributes=d),this.push(h)},u.prototype.push=function(f){var d=this.ops.length,h=this.ops[d-1];if(f=s(!0,{},f),typeof h=="object"){if(typeof f.delete=="number"&&typeof h.delete=="number")return this.ops[d-1]={delete:h.delete+f.delete},this;if(typeof h.delete=="number"&&f.insert!=null&&(d-=1,h=this.ops[d-1],typeof h!="object"))return this.ops.unshift(f),this;if(o(f.attributes,h.attributes)){if(typeof f.insert=="string"&&typeof h.insert=="string")return this.ops[d-1]={insert:h.insert+f.insert},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof h.retain=="number")return this.ops[d-1]={retain:h.retain+f.retain},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this}}return d===this.ops.length?this.ops.push(f):this.ops.splice(d,0,f),this},u.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},u.prototype.filter=function(f){return this.ops.filter(f)},u.prototype.forEach=function(f){this.ops.forEach(f)},u.prototype.map=function(f){return this.ops.map(f)},u.prototype.partition=function(f){var d=[],h=[];return this.forEach(function(p){var v=f(p)?d:h;v.push(p)}),[d,h]},u.prototype.reduce=function(f,d){return this.ops.reduce(f,d)},u.prototype.changeLength=function(){return this.reduce(function(f,d){return d.insert?f+l.length(d):d.delete?f-d.delete:f},0)},u.prototype.length=function(){return this.reduce(function(f,d){return f+l.length(d)},0)},u.prototype.slice=function(f,d){f=f||0,typeof d!="number"&&(d=1/0);for(var h=[],p=l.iterator(this.ops),v=0;v0&&h.next(v.retain-g)}for(var m=new u(p);d.hasNext()||h.hasNext();)if(h.peekType()==="insert")m.push(h.next());else if(d.peekType()==="delete")m.push(d.next());else{var y=Math.min(d.peekLength(),h.peekLength()),x=d.next(y),S=h.next(y);if(typeof S.retain=="number"){var w={};typeof x.retain=="number"?w.retain=y:w.insert=x.insert;var C=l.attributes.compose(x.attributes,S.attributes,typeof x.retain=="number");if(C&&(w.attributes=C),m.push(w),!h.hasNext()&&o(m.ops[m.ops.length-1],w)){var E=new u(d.rest());return m.concat(E).chop()}}else typeof S.delete=="number"&&typeof x.retain=="number"&&m.push(S)}return m.chop()},u.prototype.concat=function(f){var d=new u(this.ops.slice());return f.ops.length>0&&(d.push(f.ops[0]),d.ops=d.ops.concat(f.ops.slice(1))),d},u.prototype.diff=function(f,d){if(this.ops===f.ops)return new u;var h=[this,f].map(function(y){return y.map(function(x){if(x.insert!=null)return typeof x.insert=="string"?x.insert:c;var S=y===f?"on":"with";throw new Error("diff() called "+S+" non-document")}).join("")}),p=new u,v=a(h[0],h[1],d),g=l.iterator(this.ops),m=l.iterator(f.ops);return v.forEach(function(y){for(var x=y[1].length;x>0;){var S=0;switch(y[0]){case a.INSERT:S=Math.min(m.peekLength(),x),p.push(m.next(S));break;case a.DELETE:S=Math.min(x,g.peekLength()),g.next(S),p.delete(S);break;case a.EQUAL:S=Math.min(g.peekLength(),m.peekLength(),x);var w=g.next(S),C=m.next(S);o(w.insert,C.insert)?p.retain(S,l.attributes.diff(w.attributes,C.attributes)):p.push(C).delete(S);break}x-=S}}),p.chop()},u.prototype.eachLine=function(f,d){d=d||` +`;for(var h=l.iterator(this.ops),p=new u,v=0;h.hasNext();){if(h.peekType()!=="insert")return;var g=h.peek(),m=l.length(g)-h.peekLength(),y=typeof g.insert=="string"?g.insert.indexOf(d,m)-m:-1;if(y<0)p.push(h.next());else if(y>0)p.push(h.next(y));else{if(f(p,h.next(1).attributes||{},v)===!1)return;v+=1,p=new u}}p.length()>0&&f(p,{},v)},u.prototype.transform=function(f,d){if(d=!!d,typeof f=="number")return this.transformPosition(f,d);for(var h=l.iterator(this.ops),p=l.iterator(f.ops),v=new u;h.hasNext()||p.hasNext();)if(h.peekType()==="insert"&&(d||p.peekType()!=="insert"))v.retain(l.length(h.next()));else if(p.peekType()==="insert")v.push(p.next());else{var g=Math.min(h.peekLength(),p.peekLength()),m=h.next(g),y=p.next(g);if(m.delete)continue;y.delete?v.push(y):v.retain(g,l.attributes.transform(m.attributes,y.attributes,d))}return v.chop()},u.prototype.transformPosition=function(f,d){d=!!d;for(var h=l.iterator(this.ops),p=0;h.hasNext()&&p<=f;){var v=h.peekLength(),g=h.peekType();if(h.next(),g==="delete"){f-=Math.min(v,f-p);continue}else g==="insert"&&(p0&&(R1&&arguments[1]!==void 0?arguments[1]:!1;if(A&&(R===0||R>=this.length()-E)){var N=this.clone();return R===0?(this.parent.insertBefore(N,this),this):(this.parent.insertBefore(N,this.next),N)}else{var L=o(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"split",this).call(this,R,A);return this.cache={},L}}}]),k}(d.default.Block);$.blotName="block",$.tagName="P",$.defaultChild="break",$.allowedChildren=[v.default,d.default.Embed,y.default];function P(M){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return M==null||(typeof M.formats=="function"&&(k=(0,l.default)(k,M.formats())),M.parent==null||M.parent.blotName=="scroll"||M.parent.statics.scope!==M.statics.scope)?k:P(M.parent,k)}r.bubbleFormats=P,r.BlockEmbed=O,r.default=$},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},o=function(){function F(B,D){var z=[],W=!0,q=!1,H=void 0;try{for(var U=B[Symbol.iterator](),G;!(W=(G=U.next()).done)&&(z.push(G.value),!(D&&z.length===D));W=!0);}catch(K){q=!0,H=K}finally{try{!W&&U.return&&U.return()}finally{if(q)throw H}}return z}return function(B,D){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return F(B,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function F(B,D){for(var z=0;z2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof D!="string"){var H=D.attrName||D.blotName;typeof H=="string"?this.register("formats/"+H,D,z):Object.keys(D).forEach(function(U){W.register(U,D[U],z)})}else this.imports[D]!=null&&!q&&T.warn("Overwriting "+D+" with",z),this.imports[D]=z,(D.startsWith("blots/")||D.startsWith("formats/"))&&z.blotName!=="abstract"?m.default.register(z):D.startsWith("modules")&&typeof z.register=="function"&&z.register()}}]);function F(B){var D=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(k(this,F),this.options=A(B,z),this.container=this.options.container,this.container==null)return T.error("Invalid Quill container",B);this.options.debug&&F.debug(this.options.debug);var W=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new x.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(H){H===h.default.events.TEXT_CHANGE&&D.root.classList.toggle("ql-blank",D.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(H,U){var G=D.selection.lastRange,K=G&&G.length===0?G.index:void 0;N.call(D,function(){return D.editor.update(null,U,K)},H)});var q=this.clipboard.convert(`
`+W+"


");this.setContents(q),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(F,[{key:"addContainer",value:function(D){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof D=="string"){var W=D;D=document.createElement("div"),D.classList.add(W)}return this.container.insertBefore(D,z),D}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(D,z,W){var q=this,H=L(D,z,W),U=o(H,4);return D=U[0],z=U[1],W=U[3],N.call(this,function(){return q.editor.deleteText(D,z)},W,D,-1*z)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(D),this.container.classList.toggle("ql-disabled",!D)}},{key:"focus",value:function(){var D=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=D,this.scrollIntoView()}},{key:"format",value:function(D,z){var W=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return N.call(this,function(){var H=W.getSelection(!0),U=new c.default;if(H==null)return U;if(m.default.query(D,m.default.Scope.BLOCK))U=W.editor.formatLine(H.index,H.length,M({},D,z));else{if(H.length===0)return W.selection.format(D,z),U;U=W.editor.formatText(H.index,H.length,M({},D,z))}return W.setSelection(H,h.default.sources.SILENT),U},q)}},{key:"formatLine",value:function(D,z,W,q,H){var U=this,G=void 0,K=L(D,z,W,q,H),X=o(K,4);return D=X[0],z=X[1],G=X[2],H=X[3],N.call(this,function(){return U.editor.formatLine(D,z,G)},H,D,0)}},{key:"formatText",value:function(D,z,W,q,H){var U=this,G=void 0,K=L(D,z,W,q,H),X=o(K,4);return D=X[0],z=X[1],G=X[2],H=X[3],N.call(this,function(){return U.editor.formatText(D,z,G)},H,D,0)}},{key:"getBounds",value:function(D){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=void 0;typeof D=="number"?W=this.selection.getBounds(D,z):W=this.selection.getBounds(D.index,D.length);var q=this.container.getBoundingClientRect();return{bottom:W.bottom-q.top,height:W.height,left:W.left-q.left,right:W.right-q.left,top:W.top-q.top,width:W.width}}},{key:"getContents",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-D,W=L(D,z),q=o(W,2);return D=q[0],z=q[1],this.editor.getContents(D,z)}},{key:"getFormat",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof D=="number"?this.editor.getFormat(D,z):this.editor.getFormat(D.index,D.length)}},{key:"getIndex",value:function(D){return D.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(D){return this.scroll.leaf(D)}},{key:"getLine",value:function(D){return this.scroll.line(D)}},{key:"getLines",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof D!="number"?this.scroll.lines(D.index,D.length):this.scroll.lines(D,z)}},{key:"getModule",value:function(D){return this.theme.modules[D]}},{key:"getSelection",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return D&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-D,W=L(D,z),q=o(W,2);return D=q[0],z=q[1],this.editor.getText(D,z)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(D,z,W){var q=this,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:F.sources.API;return N.call(this,function(){return q.editor.insertEmbed(D,z,W)},H,D)}},{key:"insertText",value:function(D,z,W,q,H){var U=this,G=void 0,K=L(D,0,W,q,H),X=o(K,4);return D=X[0],G=X[2],H=X[3],N.call(this,function(){return U.editor.insertText(D,z,G)},H,D,z.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(D,z,W){this.clipboard.dangerouslyPasteHTML(D,z,W)}},{key:"removeFormat",value:function(D,z,W){var q=this,H=L(D,z,W),U=o(H,4);return D=U[0],z=U[1],W=U[3],N.call(this,function(){return q.editor.removeFormat(D,z)},W,D)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(D){var z=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return N.call(this,function(){D=new c.default(D);var q=z.getLength(),H=z.editor.deleteText(0,q),U=z.editor.applyDelta(D),G=U.ops[U.ops.length-1];G!=null&&typeof G.insert=="string"&&G.insert[G.insert.length-1]===` -`&&(z.editor.deleteText(z.getLength()-1,1),U.delete(1));var K=H.compose(U);return K},W)}},{key:"setSelection",value:function(D,z,W){if(D==null)this.selection.setRange(null,z||F.sources.API);else{var q=L(D,z,W),H=o(q,4);D=H[0],z=H[1],W=H[3],this.selection.setRange(new y.Range(D,z),W),W!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(D){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,W=new c.default().insert(D);return this.setContents(W,z)}},{key:"update",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,z=this.scroll.update(D);return this.selection.update(D),z}},{key:"updateContents",value:function(D){var z=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return N.call(this,function(){return D=new c.default(D),z.editor.applyDelta(D,W)},W,!0)}}]),F}();R.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},R.events=h.default.events,R.sources=h.default.sources,R.version="1.3.7",R.imports={delta:c.default,parchment:m.default,"core/module":g.default,"core/theme":$.default};function A(F,B){if(B=(0,w.default)(!0,{container:F,modules:{clipboard:!0,keyboard:!0,history:!0}},B),!B.theme||B.theme===R.DEFAULTS.theme)B.theme=$.default;else if(B.theme=R.import("themes/"+B.theme),B.theme==null)throw new Error("Invalid theme "+B.theme+". Did you register it?");var D=(0,w.default)(!0,{},B.theme.DEFAULTS);[D,B].forEach(function(q){q.modules=q.modules||{},Object.keys(q.modules).forEach(function(H){q.modules[H]===!0&&(q.modules[H]={})})});var z=Object.keys(D.modules).concat(Object.keys(B.modules)),W=z.reduce(function(q,H){var U=R.import("modules/"+H);return U==null?T.error("Cannot load "+H+" module. Are you sure you registered it?"):q[H]=U.DEFAULTS||{},q},{});return B.modules!=null&&B.modules.toolbar&&B.modules.toolbar.constructor!==Object&&(B.modules.toolbar={container:B.modules.toolbar}),B=(0,w.default)(!0,{},R.DEFAULTS,{modules:W},D,B),["bounds","container","scrollingContainer"].forEach(function(q){typeof B[q]=="string"&&(B[q]=document.querySelector(B[q]))}),B.modules=Object.keys(B.modules).reduce(function(q,H){return B.modules[H]&&(q[H]=B.modules[H]),q},{}),B}function N(F,B,D,z){if(this.options.strict&&!this.isEnabled()&&B===h.default.sources.USER)return new c.default;var W=D==null?null:this.getSelection(),q=this.editor.delta,H=F();if(W!=null&&(D===!0&&(D=W.index),z==null?W=j(W,H,B):z!==0&&(W=j(W,D,z,B)),this.setSelection(W,h.default.sources.SILENT)),H.length()>0){var U,G=[h.default.events.TEXT_CHANGE,H,q,B];if((U=this.emitter).emit.apply(U,[h.default.events.EDITOR_CHANGE].concat(G)),B!==h.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,G)}}return H}function L(F,B,D,z,W){var q={};return typeof F.index=="number"&&typeof F.length=="number"?typeof B!="number"?(W=z,z=D,D=B,B=F.length,F=F.index):(B=F.length,F=F.index):typeof B!="number"&&(W=z,z=D,D=B,B=0),(typeof D=="undefined"?"undefined":a(D))==="object"?(q=D,W=z):typeof D=="string"&&(z!=null?q[D]=z:W=D),W=W||h.default.sources.API,[F,B,q,W]}function j(F,B,D,z){if(F==null)return null;var W=void 0,q=void 0;if(B instanceof c.default){var H=[F.index,F.index+F.length].map(function(X){return B.transformPosition(X,z!==h.default.sources.USER)}),U=o(H,2);W=U[0],q=U[1]}else{var G=[F.index,F.index+F.length].map(function(X){return X=0?X+D:Math.max(B,X+D)}),K=o(G,2);W=K[0],q=K[1]}return new y.Range(W,q-W)}r.expandConfig=A,r.overload=L,r.default=R},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function v(m,y){for(var x=0;x0){var S=this.parent.isolate(this.offset(),this.length());this.moveChildren(S),S.wrap(this)}}}],[{key:"compare",value:function(x,S){var w=m.order.indexOf(x),C=m.order.indexOf(S);return w>=0||C>=0?w-C:x===S?0:x1?C-1:0),O=1;O1&&arguments[1]!==void 0?arguments[1]:{};a(this,s),this.quill=l,this.options=c};o.DEFAULTS={},r.default=o},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=["error","warn","log","info"],o="warn";function s(c){if(a.indexOf(c)<=a.indexOf(o)){for(var u,f=arguments.length,d=Array(f>1?f-1:0),h=1;h0&&typeof d[0]!="number")}function f(d,h,p){var g,v;if(c(d)||c(h)||d.prototype!==h.prototype)return!1;if(s(d))return s(h)?(d=a.call(d),h=a.call(h),l(d,h,p)):!1;if(u(d)){if(!u(h)||d.length!==h.length)return!1;for(g=0;g=0;g--)if(m[g]!=y[g])return!1;for(g=m.length-1;g>=0;g--)if(v=m[g],!l(d[v],h[v],p))return!1;return typeof d==typeof h}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(1),o=function(){function s(l,c,u){u===void 0&&(u={}),this.attrName=l,this.keyName=c;var f=a.Scope.TYPE&a.Scope.ATTRIBUTE;u.scope!=null?this.scope=u.scope&a.Scope.LEVEL|f:this.scope=a.Scope.ATTRIBUTE,u.whitelist!=null&&(this.whitelist=u.whitelist)}return s.keys=function(l){return[].map.call(l.attributes,function(c){return c.name})},s.prototype.add=function(l,c){return this.canAdd(l,c)?(l.setAttribute(this.keyName,c),!0):!1},s.prototype.canAdd=function(l,c){var u=a.query(l,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return u==null?!1:this.whitelist==null?!0:typeof c=="string"?this.whitelist.indexOf(c.replace(/["']/g,""))>-1:this.whitelist.indexOf(c)>-1},s.prototype.remove=function(l){l.removeAttribute(this.keyName)},s.prototype.value=function(l){var c=l.getAttribute(this.keyName);return this.canAdd(l,c)&&c?c:""},s}();r.default=o},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var a=function(){function O($,P){var M=[],k=!0,T=!1,R=void 0;try{for(var A=$[Symbol.iterator](),N;!(k=(N=A.next()).done)&&(M.push(N.value),!(P&&M.length===P));k=!0);}catch(L){T=!0,R=L}finally{try{!k&&A.return&&A.return()}finally{if(T)throw R}}return M}return function($,P){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return O($,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function O($,P){for(var M=0;M0&&(R1&&arguments[1]!==void 0?arguments[1]:!1;if(A&&(R===0||R>=this.length()-E)){var N=this.clone();return R===0?(this.parent.insertBefore(N,this),this):(this.parent.insertBefore(N,this.next),N)}else{var L=o(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"split",this).call(this,R,A);return this.cache={},L}}}]),k}(d.default.Block);$.blotName="block",$.tagName="P",$.defaultChild="break",$.allowedChildren=[g.default,d.default.Embed,y.default];function P(M){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return M==null||(typeof M.formats=="function"&&(k=(0,l.default)(k,M.formats())),M.parent==null||M.parent.blotName=="scroll"||M.parent.statics.scope!==M.statics.scope)?k:P(M.parent,k)}r.bubbleFormats=P,r.BlockEmbed=O,r.default=$},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},o=function(){function F(B,D){var z=[],W=!0,q=!1,H=void 0;try{for(var U=B[Symbol.iterator](),G;!(W=(G=U.next()).done)&&(z.push(G.value),!(D&&z.length===D));W=!0);}catch(K){q=!0,H=K}finally{try{!W&&U.return&&U.return()}finally{if(q)throw H}}return z}return function(B,D){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return F(B,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function F(B,D){for(var z=0;z2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof D!="string"){var H=D.attrName||D.blotName;typeof H=="string"?this.register("formats/"+H,D,z):Object.keys(D).forEach(function(U){W.register(U,D[U],z)})}else this.imports[D]!=null&&!q&&T.warn("Overwriting "+D+" with",z),this.imports[D]=z,(D.startsWith("blots/")||D.startsWith("formats/"))&&z.blotName!=="abstract"?m.default.register(z):D.startsWith("modules")&&typeof z.register=="function"&&z.register()}}]);function F(B){var D=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(k(this,F),this.options=A(B,z),this.container=this.options.container,this.container==null)return T.error("Invalid Quill container",B);this.options.debug&&F.debug(this.options.debug);var W=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new x.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(H){H===h.default.events.TEXT_CHANGE&&D.root.classList.toggle("ql-blank",D.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(H,U){var G=D.selection.lastRange,K=G&&G.length===0?G.index:void 0;N.call(D,function(){return D.editor.update(null,U,K)},H)});var q=this.clipboard.convert(`
`+W+"


");this.setContents(q),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(F,[{key:"addContainer",value:function(D){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof D=="string"){var W=D;D=document.createElement("div"),D.classList.add(W)}return this.container.insertBefore(D,z),D}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(D,z,W){var q=this,H=L(D,z,W),U=o(H,4);return D=U[0],z=U[1],W=U[3],N.call(this,function(){return q.editor.deleteText(D,z)},W,D,-1*z)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(D),this.container.classList.toggle("ql-disabled",!D)}},{key:"focus",value:function(){var D=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=D,this.scrollIntoView()}},{key:"format",value:function(D,z){var W=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return N.call(this,function(){var H=W.getSelection(!0),U=new c.default;if(H==null)return U;if(m.default.query(D,m.default.Scope.BLOCK))U=W.editor.formatLine(H.index,H.length,M({},D,z));else{if(H.length===0)return W.selection.format(D,z),U;U=W.editor.formatText(H.index,H.length,M({},D,z))}return W.setSelection(H,h.default.sources.SILENT),U},q)}},{key:"formatLine",value:function(D,z,W,q,H){var U=this,G=void 0,K=L(D,z,W,q,H),X=o(K,4);return D=X[0],z=X[1],G=X[2],H=X[3],N.call(this,function(){return U.editor.formatLine(D,z,G)},H,D,0)}},{key:"formatText",value:function(D,z,W,q,H){var U=this,G=void 0,K=L(D,z,W,q,H),X=o(K,4);return D=X[0],z=X[1],G=X[2],H=X[3],N.call(this,function(){return U.editor.formatText(D,z,G)},H,D,0)}},{key:"getBounds",value:function(D){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=void 0;typeof D=="number"?W=this.selection.getBounds(D,z):W=this.selection.getBounds(D.index,D.length);var q=this.container.getBoundingClientRect();return{bottom:W.bottom-q.top,height:W.height,left:W.left-q.left,right:W.right-q.left,top:W.top-q.top,width:W.width}}},{key:"getContents",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-D,W=L(D,z),q=o(W,2);return D=q[0],z=q[1],this.editor.getContents(D,z)}},{key:"getFormat",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof D=="number"?this.editor.getFormat(D,z):this.editor.getFormat(D.index,D.length)}},{key:"getIndex",value:function(D){return D.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(D){return this.scroll.leaf(D)}},{key:"getLine",value:function(D){return this.scroll.line(D)}},{key:"getLines",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof D!="number"?this.scroll.lines(D.index,D.length):this.scroll.lines(D,z)}},{key:"getModule",value:function(D){return this.theme.modules[D]}},{key:"getSelection",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return D&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-D,W=L(D,z),q=o(W,2);return D=q[0],z=q[1],this.editor.getText(D,z)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(D,z,W){var q=this,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:F.sources.API;return N.call(this,function(){return q.editor.insertEmbed(D,z,W)},H,D)}},{key:"insertText",value:function(D,z,W,q,H){var U=this,G=void 0,K=L(D,0,W,q,H),X=o(K,4);return D=X[0],G=X[2],H=X[3],N.call(this,function(){return U.editor.insertText(D,z,G)},H,D,z.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(D,z,W){this.clipboard.dangerouslyPasteHTML(D,z,W)}},{key:"removeFormat",value:function(D,z,W){var q=this,H=L(D,z,W),U=o(H,4);return D=U[0],z=U[1],W=U[3],N.call(this,function(){return q.editor.removeFormat(D,z)},W,D)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(D){var z=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return N.call(this,function(){D=new c.default(D);var q=z.getLength(),H=z.editor.deleteText(0,q),U=z.editor.applyDelta(D),G=U.ops[U.ops.length-1];G!=null&&typeof G.insert=="string"&&G.insert[G.insert.length-1]===` +`&&(z.editor.deleteText(z.getLength()-1,1),U.delete(1));var K=H.compose(U);return K},W)}},{key:"setSelection",value:function(D,z,W){if(D==null)this.selection.setRange(null,z||F.sources.API);else{var q=L(D,z,W),H=o(q,4);D=H[0],z=H[1],W=H[3],this.selection.setRange(new y.Range(D,z),W),W!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(D){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,W=new c.default().insert(D);return this.setContents(W,z)}},{key:"update",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,z=this.scroll.update(D);return this.selection.update(D),z}},{key:"updateContents",value:function(D){var z=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return N.call(this,function(){return D=new c.default(D),z.editor.applyDelta(D,W)},W,!0)}}]),F}();R.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},R.events=h.default.events,R.sources=h.default.sources,R.version="1.3.7",R.imports={delta:c.default,parchment:m.default,"core/module":v.default,"core/theme":$.default};function A(F,B){if(B=(0,w.default)(!0,{container:F,modules:{clipboard:!0,keyboard:!0,history:!0}},B),!B.theme||B.theme===R.DEFAULTS.theme)B.theme=$.default;else if(B.theme=R.import("themes/"+B.theme),B.theme==null)throw new Error("Invalid theme "+B.theme+". Did you register it?");var D=(0,w.default)(!0,{},B.theme.DEFAULTS);[D,B].forEach(function(q){q.modules=q.modules||{},Object.keys(q.modules).forEach(function(H){q.modules[H]===!0&&(q.modules[H]={})})});var z=Object.keys(D.modules).concat(Object.keys(B.modules)),W=z.reduce(function(q,H){var U=R.import("modules/"+H);return U==null?T.error("Cannot load "+H+" module. Are you sure you registered it?"):q[H]=U.DEFAULTS||{},q},{});return B.modules!=null&&B.modules.toolbar&&B.modules.toolbar.constructor!==Object&&(B.modules.toolbar={container:B.modules.toolbar}),B=(0,w.default)(!0,{},R.DEFAULTS,{modules:W},D,B),["bounds","container","scrollingContainer"].forEach(function(q){typeof B[q]=="string"&&(B[q]=document.querySelector(B[q]))}),B.modules=Object.keys(B.modules).reduce(function(q,H){return B.modules[H]&&(q[H]=B.modules[H]),q},{}),B}function N(F,B,D,z){if(this.options.strict&&!this.isEnabled()&&B===h.default.sources.USER)return new c.default;var W=D==null?null:this.getSelection(),q=this.editor.delta,H=F();if(W!=null&&(D===!0&&(D=W.index),z==null?W=j(W,H,B):z!==0&&(W=j(W,D,z,B)),this.setSelection(W,h.default.sources.SILENT)),H.length()>0){var U,G=[h.default.events.TEXT_CHANGE,H,q,B];if((U=this.emitter).emit.apply(U,[h.default.events.EDITOR_CHANGE].concat(G)),B!==h.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,G)}}return H}function L(F,B,D,z,W){var q={};return typeof F.index=="number"&&typeof F.length=="number"?typeof B!="number"?(W=z,z=D,D=B,B=F.length,F=F.index):(B=F.length,F=F.index):typeof B!="number"&&(W=z,z=D,D=B,B=0),(typeof D=="undefined"?"undefined":a(D))==="object"?(q=D,W=z):typeof D=="string"&&(z!=null?q[D]=z:W=D),W=W||h.default.sources.API,[F,B,q,W]}function j(F,B,D,z){if(F==null)return null;var W=void 0,q=void 0;if(B instanceof c.default){var H=[F.index,F.index+F.length].map(function(X){return B.transformPosition(X,z!==h.default.sources.USER)}),U=o(H,2);W=U[0],q=U[1]}else{var G=[F.index,F.index+F.length].map(function(X){return X=0?X+D:Math.max(B,X+D)}),K=o(G,2);W=K[0],q=K[1]}return new y.Range(W,q-W)}r.expandConfig=A,r.overload=L,r.default=R},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function g(m,y){for(var x=0;x0){var S=this.parent.isolate(this.offset(),this.length());this.moveChildren(S),S.wrap(this)}}}],[{key:"compare",value:function(x,S){var w=m.order.indexOf(x),C=m.order.indexOf(S);return w>=0||C>=0?w-C:x===S?0:x1?C-1:0),O=1;O1&&arguments[1]!==void 0?arguments[1]:{};a(this,s),this.quill=l,this.options=c};o.DEFAULTS={},r.default=o},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=["error","warn","log","info"],o="warn";function s(c){if(a.indexOf(c)<=a.indexOf(o)){for(var u,f=arguments.length,d=Array(f>1?f-1:0),h=1;h0&&typeof d[0]!="number")}function f(d,h,p){var v,g;if(c(d)||c(h)||d.prototype!==h.prototype)return!1;if(s(d))return s(h)?(d=a.call(d),h=a.call(h),l(d,h,p)):!1;if(u(d)){if(!u(h)||d.length!==h.length)return!1;for(v=0;v=0;v--)if(m[v]!=y[v])return!1;for(v=m.length-1;v>=0;v--)if(g=m[v],!l(d[g],h[g],p))return!1;return typeof d==typeof h}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(1),o=function(){function s(l,c,u){u===void 0&&(u={}),this.attrName=l,this.keyName=c;var f=a.Scope.TYPE&a.Scope.ATTRIBUTE;u.scope!=null?this.scope=u.scope&a.Scope.LEVEL|f:this.scope=a.Scope.ATTRIBUTE,u.whitelist!=null&&(this.whitelist=u.whitelist)}return s.keys=function(l){return[].map.call(l.attributes,function(c){return c.name})},s.prototype.add=function(l,c){return this.canAdd(l,c)?(l.setAttribute(this.keyName,c),!0):!1},s.prototype.canAdd=function(l,c){var u=a.query(l,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return u==null?!1:this.whitelist==null?!0:typeof c=="string"?this.whitelist.indexOf(c.replace(/["']/g,""))>-1:this.whitelist.indexOf(c)>-1},s.prototype.remove=function(l){l.removeAttribute(this.keyName)},s.prototype.value=function(l){var c=l.getAttribute(this.keyName);return this.canAdd(l,c)&&c?c:""},s}();r.default=o},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var a=function(){function O($,P){var M=[],k=!0,T=!1,R=void 0;try{for(var A=$[Symbol.iterator](),N;!(k=(N=A.next()).done)&&(M.push(N.value),!(P&&M.length===P));k=!0);}catch(L){T=!0,R=L}finally{try{!k&&A.return&&A.return()}finally{if(T)throw R}}return M}return function($,P){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return O($,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function O($,P){for(var M=0;M=M+k)){var N=this.newlineIndex(M,!0)+1,L=A-N+1,j=this.isolate(N,L),F=j.next;j.format(T,R),F instanceof $&&F.formatAt(0,M-N+k-L,T,R)}}}},{key:"insertAt",value:function(M,k,T){if(T==null){var R=this.descendant(m.default,M),A=a(R,2),N=A[0],L=A[1];N.insertAt(L,k)}}},{key:"length",value:function(){var M=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` @@ -539,21 +539,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `);var T=this.domNode.textContent.slice(M).indexOf(` `);return T>-1?M+T:-1}},{key:"optimize",value:function(M){this.domNode.textContent.endsWith(` `)||this.appendChild(f.default.create("text",` -`)),s($.prototype.__proto__||Object.getPrototypeOf($.prototype),"optimize",this).call(this,M);var k=this.next;k!=null&&k.prev===this&&k.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===k.statics.formats(k.domNode)&&(k.optimize(M),k.moveChildren(this),k.remove())}},{key:"replace",value:function(M){s($.prototype.__proto__||Object.getPrototypeOf($.prototype),"replace",this).call(this,M),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(k){var T=f.default.find(k);T==null?k.parentNode.removeChild(k):T instanceof f.default.Embed?T.remove():T.unwrap()})}}],[{key:"create",value:function(M){var k=s($.__proto__||Object.getPrototypeOf($),"create",this).call(this,M);return k.setAttribute("spellcheck",!1),k}},{key:"formats",value:function(){return!0}}]),$}(h.default);E.blotName="code-block",E.tagName="PRE",E.TAB=" ",r.Code=C,r.default=E},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},o=function(){function F(B,D){var z=[],W=!0,q=!1,H=void 0;try{for(var U=B[Symbol.iterator](),G;!(W=(G=U.next()).done)&&(z.push(G.value),!(D&&z.length===D));W=!0);}catch(K){q=!0,H=K}finally{try{!W&&U.return&&U.return()}finally{if(q)throw H}}return z}return function(B,D){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return F(B,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function F(B,D){for(var z=0;z=q&&!X.endsWith(` -`)&&(W=!0),z.scroll.insertAt(H,X);var Q=z.scroll.line(H),ee=o(Q,2),ne=ee[0],te=ee[1],ie=(0,M.default)({},(0,y.bubbleFormats)(ne));if(ne instanceof x.default){var J=ne.descendant(h.default.Leaf,te),le=o(J,1),oe=le[0];ie=(0,M.default)(ie,(0,y.bubbleFormats)(oe))}K=f.default.attributes.diff(ie,K)||{}}else if(a(U.insert)==="object"){var re=Object.keys(U.insert)[0];if(re==null)return H;z.scroll.insertAt(H,re,U.insert[re])}q+=G}return Object.keys(K).forEach(function(se){z.scroll.formatAt(H,G,se,K[se])}),H+G},0),D.reduce(function(H,U){return typeof U.delete=="number"?(z.scroll.deleteAt(H,U.delete),H):H+(U.retain||U.insert.length||1)},0),this.scroll.batchEnd(),this.update(D)}},{key:"deleteText",value:function(D,z){return this.scroll.deleteAt(D,z),this.update(new c.default().retain(D).delete(z))}},{key:"formatLine",value:function(D,z){var W=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(q).forEach(function(H){if(!(W.scroll.whitelist!=null&&!W.scroll.whitelist[H])){var U=W.scroll.lines(D,Math.max(z,1)),G=z;U.forEach(function(K){var X=K.length();if(!(K instanceof g.default))K.format(H,q[H]);else{var Q=D-K.offset(W.scroll),ee=K.newlineIndex(Q+G)-Q+1;K.formatAt(Q,ee,H,q[H])}G-=X})}}),this.scroll.optimize(),this.update(new c.default().retain(D).retain(z,(0,E.default)(q)))}},{key:"formatText",value:function(D,z){var W=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(q).forEach(function(H){W.scroll.formatAt(D,z,H,q[H])}),this.update(new c.default().retain(D).retain(z,(0,E.default)(q)))}},{key:"getContents",value:function(D,z){return this.delta.slice(D,D+z)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(D,z){return D.concat(z.delta())},new c.default)}},{key:"getFormat",value:function(D){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=[],q=[];z===0?this.scroll.path(D).forEach(function(U){var G=o(U,1),K=G[0];K instanceof x.default?W.push(K):K instanceof h.default.Leaf&&q.push(K)}):(W=this.scroll.lines(D,z),q=this.scroll.descendants(h.default.Leaf,D,z));var H=[W,q].map(function(U){if(U.length===0)return{};for(var G=(0,y.bubbleFormats)(U.shift());Object.keys(G).length>0;){var K=U.shift();if(K==null)return G;G=L((0,y.bubbleFormats)(K),G)}return G});return M.default.apply(M.default,H)}},{key:"getText",value:function(D,z){return this.getContents(D,z).filter(function(W){return typeof W.insert=="string"}).map(function(W){return W.insert}).join("")}},{key:"insertEmbed",value:function(D,z,W){return this.scroll.insertAt(D,z,W),this.update(new c.default().retain(D).insert(T({},z,W)))}},{key:"insertText",value:function(D,z){var W=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return z=z.replace(/\r\n/g,` +`)&&(W=!0),z.scroll.insertAt(H,X);var Q=z.scroll.line(H),ee=o(Q,2),ne=ee[0],te=ee[1],ie=(0,M.default)({},(0,y.bubbleFormats)(ne));if(ne instanceof x.default){var J=ne.descendant(h.default.Leaf,te),le=o(J,1),oe=le[0];ie=(0,M.default)(ie,(0,y.bubbleFormats)(oe))}K=f.default.attributes.diff(ie,K)||{}}else if(a(U.insert)==="object"){var re=Object.keys(U.insert)[0];if(re==null)return H;z.scroll.insertAt(H,re,U.insert[re])}q+=G}return Object.keys(K).forEach(function(se){z.scroll.formatAt(H,G,se,K[se])}),H+G},0),D.reduce(function(H,U){return typeof U.delete=="number"?(z.scroll.deleteAt(H,U.delete),H):H+(U.retain||U.insert.length||1)},0),this.scroll.batchEnd(),this.update(D)}},{key:"deleteText",value:function(D,z){return this.scroll.deleteAt(D,z),this.update(new c.default().retain(D).delete(z))}},{key:"formatLine",value:function(D,z){var W=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(q).forEach(function(H){if(!(W.scroll.whitelist!=null&&!W.scroll.whitelist[H])){var U=W.scroll.lines(D,Math.max(z,1)),G=z;U.forEach(function(K){var X=K.length();if(!(K instanceof v.default))K.format(H,q[H]);else{var Q=D-K.offset(W.scroll),ee=K.newlineIndex(Q+G)-Q+1;K.formatAt(Q,ee,H,q[H])}G-=X})}}),this.scroll.optimize(),this.update(new c.default().retain(D).retain(z,(0,E.default)(q)))}},{key:"formatText",value:function(D,z){var W=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(q).forEach(function(H){W.scroll.formatAt(D,z,H,q[H])}),this.update(new c.default().retain(D).retain(z,(0,E.default)(q)))}},{key:"getContents",value:function(D,z){return this.delta.slice(D,D+z)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(D,z){return D.concat(z.delta())},new c.default)}},{key:"getFormat",value:function(D){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=[],q=[];z===0?this.scroll.path(D).forEach(function(U){var G=o(U,1),K=G[0];K instanceof x.default?W.push(K):K instanceof h.default.Leaf&&q.push(K)}):(W=this.scroll.lines(D,z),q=this.scroll.descendants(h.default.Leaf,D,z));var H=[W,q].map(function(U){if(U.length===0)return{};for(var G=(0,y.bubbleFormats)(U.shift());Object.keys(G).length>0;){var K=U.shift();if(K==null)return G;G=L((0,y.bubbleFormats)(K),G)}return G});return M.default.apply(M.default,H)}},{key:"getText",value:function(D,z){return this.getContents(D,z).filter(function(W){return typeof W.insert=="string"}).map(function(W){return W.insert}).join("")}},{key:"insertEmbed",value:function(D,z,W){return this.scroll.insertAt(D,z,W),this.update(new c.default().retain(D).insert(T({},z,W)))}},{key:"insertText",value:function(D,z){var W=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return z=z.replace(/\r\n/g,` `).replace(/\r/g,` -`),this.scroll.insertAt(D,z),Object.keys(q).forEach(function(H){W.scroll.formatAt(D,z.length,H,q[H])}),this.update(new c.default().retain(D).insert(z,(0,E.default)(q)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var D=this.scroll.children.head;return D.statics.blotName!==x.default.blotName||D.children.length>1?!1:D.children.head instanceof w.default}},{key:"removeFormat",value:function(D,z){var W=this.getText(D,z),q=this.scroll.line(D+z),H=o(q,2),U=H[0],G=H[1],K=0,X=new c.default;U!=null&&(U instanceof g.default?K=U.newlineIndex(G)-G+1:K=U.length()-G,X=U.delta().slice(G,G+K-1).insert(` +`),this.scroll.insertAt(D,z),Object.keys(q).forEach(function(H){W.scroll.formatAt(D,z.length,H,q[H])}),this.update(new c.default().retain(D).insert(z,(0,E.default)(q)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var D=this.scroll.children.head;return D.statics.blotName!==x.default.blotName||D.children.length>1?!1:D.children.head instanceof w.default}},{key:"removeFormat",value:function(D,z){var W=this.getText(D,z),q=this.scroll.line(D+z),H=o(q,2),U=H[0],G=H[1],K=0,X=new c.default;U!=null&&(U instanceof v.default?K=U.newlineIndex(G)-G+1:K=U.length()-G,X=U.delta().slice(G,G+K-1).insert(` `));var Q=this.getContents(D,z+K),ee=Q.diff(new c.default().insert(W).concat(X)),ne=new c.default().retain(D).concat(ee);return this.applyDelta(ne)}},{key:"update",value:function(D){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,q=this.delta;if(z.length===1&&z[0].type==="characterData"&&z[0].target.data.match(A)&&h.default.find(z[0].target)){var H=h.default.find(z[0].target),U=(0,y.bubbleFormats)(H),G=H.offset(this.scroll),K=z[0].oldValue.replace(m.default.CONTENTS,""),X=new c.default().insert(K),Q=new c.default().insert(H.value()),ee=new c.default().retain(G).concat(X.diff(Q,W));D=ee.reduce(function(ne,te){return te.insert?ne.insert(te.insert,U):ne.push(te)},new c.default),this.delta=q.compose(D)}else this.delta=this.getDelta(),(!D||!(0,$.default)(q.compose(D),this.delta))&&(D=q.diff(this.delta,W));return D}}]),F}();function L(F,B){return Object.keys(B).reduce(function(D,z){return F[z]==null||(B[z]===F[z]?D[z]=B[z]:Array.isArray(B[z])?B[z].indexOf(F[z])<0&&(D[z]=B[z].concat([F[z]])):D[z]=[B[z],F[z]]),D},{})}function j(F){return F.reduce(function(B,D){if(D.insert===1){var z=(0,E.default)(D.attributes);return delete z.image,B.insert({image:D.attributes.image},z)}if(D.attributes!=null&&(D.attributes.list===!0||D.attributes.bullet===!0)&&(D=(0,E.default)(D),D.attributes.list?D.attributes.list="ordered":(D.attributes.list="bullet",delete D.attributes.bullet)),typeof D.insert=="string"){var W=D.insert.replace(/\r\n/g,` `).replace(/\r/g,` -`);return B.insert(W,D.attributes)}return B.push(D)},new c.default)}r.default=N},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var a=function(){function O($,P){var M=[],k=!0,T=!1,R=void 0;try{for(var A=$[Symbol.iterator](),N;!(k=(N=A.next()).done)&&(M.push(N.value),!(P&&M.length===P));k=!0);}catch(L){T=!0,R=L}finally{try{!k&&A.return&&A.return()}finally{if(T)throw R}}return M}return function($,P){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return O($,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function O($,P){for(var M=0;M1&&arguments[1]!==void 0?arguments[1]:0;x(this,O),this.index=$,this.length=P},C=function(){function O($,P){var M=this;x(this,O),this.emitter=P,this.scroll=$,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new w(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){M.mouseDown||setTimeout(M.update.bind(M,p.default.sources.USER),1)}),this.emitter.on(p.default.events.EDITOR_CHANGE,function(k,T){k===p.default.events.TEXT_CHANGE&&T.length()>0&&M.update(p.default.sources.SILENT)}),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,function(){if(M.hasFocus()){var k=M.getNativeRange();k!=null&&k.start.node!==M.cursor.textNode&&M.emitter.once(p.default.events.SCROLL_UPDATE,function(){try{M.setNativeRange(k.start.node,k.start.offset,k.end.node,k.end.offset)}catch(T){}})}}),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,function(k,T){if(T.range){var R=T.range,A=R.startNode,N=R.startOffset,L=R.endNode,j=R.endOffset;M.setNativeRange(A,N,L,j)}}),this.update(p.default.sources.SILENT)}return o(O,[{key:"handleComposition",value:function(){var P=this;this.root.addEventListener("compositionstart",function(){P.composing=!0}),this.root.addEventListener("compositionend",function(){if(P.composing=!1,P.cursor.parent){var M=P.cursor.restore();if(!M)return;setTimeout(function(){P.setNativeRange(M.startNode,M.startOffset,M.endNode,M.endOffset)},1)}})}},{key:"handleDragging",value:function(){var P=this;this.emitter.listenDOM("mousedown",document.body,function(){P.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){P.mouseDown=!1,P.update(p.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(P,M){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[P])){this.scroll.update();var k=this.getNativeRange();if(!(k==null||!k.native.collapsed||l.default.query(P,l.default.Scope.BLOCK))){if(k.start.node!==this.cursor.textNode){var T=l.default.find(k.start.node,!1);if(T==null)return;if(T instanceof l.default.Leaf){var R=T.split(k.start.offset);T.parent.insertBefore(this.cursor,R)}else T.insertBefore(this.cursor,k.start.node);this.cursor.attach()}this.cursor.format(P,M),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=this.scroll.length();P=Math.min(P,k-1),M=Math.min(P+M,k-1)-P;var T=void 0,R=this.scroll.leaf(P),A=a(R,2),N=A[0],L=A[1];if(N==null)return null;var j=N.position(L,!0),F=a(j,2);T=F[0],L=F[1];var B=document.createRange();if(M>0){B.setStart(T,L);var D=this.scroll.leaf(P+M),z=a(D,2);if(N=z[0],L=z[1],N==null)return null;var W=N.position(L,!0),q=a(W,2);return T=q[0],L=q[1],B.setEnd(T,L),B.getBoundingClientRect()}else{var H="left",U=void 0;return T instanceof Text?(L0&&(H="right")),{bottom:U.top+U.height,height:U.height,left:U[H],right:U[H],top:U.top,width:0}}}},{key:"getNativeRange",value:function(){var P=document.getSelection();if(P==null||P.rangeCount<=0)return null;var M=P.getRangeAt(0);if(M==null)return null;var k=this.normalizeNative(M);return S.info("getNativeRange",k),k}},{key:"getRange",value:function(){var P=this.getNativeRange();if(P==null)return[null,null];var M=this.normalizedToRange(P);return[M,P]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(P){var M=this,k=[[P.start.node,P.start.offset]];P.native.collapsed||k.push([P.end.node,P.end.offset]);var T=k.map(function(N){var L=a(N,2),j=L[0],F=L[1],B=l.default.find(j,!0),D=B.offset(M.scroll);return F===0?D:B instanceof l.default.Container?D+B.length():D+B.index(j,F)}),R=Math.min(Math.max.apply(Math,y(T)),this.scroll.length()-1),A=Math.min.apply(Math,[R].concat(y(T)));return new w(A,R-A)}},{key:"normalizeNative",value:function(P){if(!E(this.root,P.startContainer)||!P.collapsed&&!E(this.root,P.endContainer))return null;var M={start:{node:P.startContainer,offset:P.startOffset},end:{node:P.endContainer,offset:P.endOffset},native:P};return[M.start,M.end].forEach(function(k){for(var T=k.node,R=k.offset;!(T instanceof Text)&&T.childNodes.length>0;)if(T.childNodes.length>R)T=T.childNodes[R],R=0;else if(T.childNodes.length===R)T=T.lastChild,R=T instanceof Text?T.data.length:T.childNodes.length+1;else break;k.node=T,k.offset=R}),M}},{key:"rangeToNative",value:function(P){var M=this,k=P.collapsed?[P.index]:[P.index,P.index+P.length],T=[],R=this.scroll.length();return k.forEach(function(A,N){A=Math.min(R-1,A);var L=void 0,j=M.scroll.leaf(A),F=a(j,2),B=F[0],D=F[1],z=B.position(D,N!==0),W=a(z,2);L=W[0],D=W[1],T.push(L,D)}),T.length<2&&(T=T.concat(T)),T}},{key:"scrollIntoView",value:function(P){var M=this.lastRange;if(M!=null){var k=this.getBounds(M.index,M.length);if(k!=null){var T=this.scroll.length()-1,R=this.scroll.line(Math.min(M.index,T)),A=a(R,1),N=A[0],L=N;if(M.length>0){var j=this.scroll.line(Math.min(M.index+M.length,T)),F=a(j,1);L=F[0]}if(!(N==null||L==null)){var B=P.getBoundingClientRect();k.topB.bottom&&(P.scrollTop+=k.bottom-B.bottom)}}}}},{key:"setNativeRange",value:function(P,M){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:P,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M,R=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(S.info("setNativeRange",P,M,k,T),!(P!=null&&(this.root.parentNode==null||P.parentNode==null||k.parentNode==null))){var A=document.getSelection();if(A!=null)if(P!=null){this.hasFocus()||this.root.focus();var N=(this.getNativeRange()||{}).native;if(N==null||R||P!==N.startContainer||M!==N.startOffset||k!==N.endContainer||T!==N.endOffset){P.tagName=="BR"&&(M=[].indexOf.call(P.parentNode.childNodes,P),P=P.parentNode),k.tagName=="BR"&&(T=[].indexOf.call(k.parentNode.childNodes,k),k=k.parentNode);var L=document.createRange();L.setStart(P,M),L.setEnd(k,T),A.removeAllRanges(),A.addRange(L)}}else A.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;if(typeof M=="string"&&(k=M,M=!1),S.info("setRange",P),P!=null){var T=this.rangeToNative(P);this.setNativeRange.apply(this,y(T).concat([M]))}else this.setNativeRange(null);this.update(k)}},{key:"update",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.default.sources.USER,M=this.lastRange,k=this.getRange(),T=a(k,2),R=T[0],A=T[1];if(this.lastRange=R,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,d.default)(M,this.lastRange)){var N;!this.composing&&A!=null&&A.native.collapsed&&A.start.node!==this.cursor.textNode&&this.cursor.restore();var L=[p.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(M),P];if((N=this.emitter).emit.apply(N,[p.default.events.EDITOR_CHANGE].concat(L)),P!==p.default.sources.SILENT){var j;(j=this.emitter).emit.apply(j,L)}}}}]),O}();function E(O,$){try{$.parentNode}catch(P){return!1}return $ instanceof Text&&($=$.parentNode),O.contains($)}r.Range=w,r.default=C},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function p(g,v){for(var m=0;m0&&(h+=1),[this.parent.domNode,h]},u.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},u.scope=s.Scope.INLINE_BLOT,u}(o.default);r.default=l},function(n,r,i){var a=i(11),o=i(3),s={attributes:{compose:function(c,u,f){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});var d=o(!0,{},u);f||(d=Object.keys(d).reduce(function(p,g){return d[g]!=null&&(p[g]=d[g]),p},{}));for(var h in c)c[h]!==void 0&&u[h]===void 0&&(d[h]=c[h]);return Object.keys(d).length>0?d:void 0},diff:function(c,u){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});var f=Object.keys(c).concat(Object.keys(u)).reduce(function(d,h){return a(c[h],u[h])||(d[h]=u[h]===void 0?null:u[h]),d},{});return Object.keys(f).length>0?f:void 0},transform:function(c,u,f){if(typeof c!="object")return u;if(typeof u=="object"){if(!f)return u;var d=Object.keys(u).reduce(function(h,p){return c[p]===void 0&&(h[p]=u[p]),h},{});return Object.keys(d).length>0?d:void 0}}},iterator:function(c){return new l(c)},length:function(c){return typeof c.delete=="number"?c.delete:typeof c.retain=="number"?c.retain:typeof c.insert=="string"?c.insert.length:1}};function l(c){this.ops=c,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(c){c||(c=1/0);var u=this.ops[this.index];if(u){var f=this.offset,d=s.length(u);if(c>=d-f?(c=d-f,this.index+=1,this.offset=0):this.offset+=c,typeof u.delete=="number")return{delete:c};var h={};return u.attributes&&(h.attributes=u.attributes),typeof u.retain=="number"?h.retain=c:typeof u.insert=="string"?h.insert=u.insert.substr(f,c):h.insert=u.insert,h}else return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var c=this.offset,u=this.index,f=this.next(),d=this.ops.slice(this.index);return this.offset=c,this.index=u,[f].concat(d)}else return[]},n.exports=s},function(n,r){var i=function(){function a(g,v){return v!=null&&g instanceof v}var o;try{o=Map}catch(g){o=function(){}}var s;try{s=Set}catch(g){s=function(){}}var l;try{l=Promise}catch(g){l=function(){}}function c(g,v,m,y,x){typeof v=="object"&&(m=v.depth,y=v.prototype,x=v.includeNonEnumerable,v=v.circular);var S=[],w=[],C=typeof Buffer!="undefined";typeof v=="undefined"&&(v=!0),typeof m=="undefined"&&(m=1/0);function E(O,$){if(O===null)return null;if($===0)return O;var P,M;if(typeof O!="object")return O;if(a(O,o))P=new o;else if(a(O,s))P=new s;else if(a(O,l))P=new l(function(B,D){O.then(function(z){B(E(z,$-1))},function(z){D(E(z,$-1))})});else if(c.__isArray(O))P=[];else if(c.__isRegExp(O))P=new RegExp(O.source,p(O)),O.lastIndex&&(P.lastIndex=O.lastIndex);else if(c.__isDate(O))P=new Date(O.getTime());else{if(C&&Buffer.isBuffer(O))return Buffer.allocUnsafe?P=Buffer.allocUnsafe(O.length):P=new Buffer(O.length),O.copy(P),P;a(O,Error)?P=Object.create(O):typeof y=="undefined"?(M=Object.getPrototypeOf(O),P=Object.create(M)):(P=Object.create(y),M=y)}if(v){var k=S.indexOf(O);if(k!=-1)return w[k];S.push(O),w.push(P)}a(O,o)&&O.forEach(function(B,D){var z=E(D,$-1),W=E(B,$-1);P.set(z,W)}),a(O,s)&&O.forEach(function(B){var D=E(B,$-1);P.add(D)});for(var T in O){var R;M&&(R=Object.getOwnPropertyDescriptor(M,T)),!(R&&R.set==null)&&(P[T]=E(O[T],$-1))}if(Object.getOwnPropertySymbols)for(var A=Object.getOwnPropertySymbols(O),T=0;T0){if(L instanceof d.BlockEmbed||D instanceof d.BlockEmbed){this.optimize();return}if(L instanceof m.default){var z=L.newlineIndex(L.length(),!0);if(z>-1&&(L=L.split(z+1),L===D)){this.optimize();return}}else if(D instanceof m.default){var W=D.newlineIndex(0);W>-1&&D.split(W+1)}var q=D.children.head instanceof g.default?null:D.children.head;L.moveChildren(D,q),L.remove()}this.optimize()}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",T)}},{key:"formatAt",value:function(T,R,A,N){this.whitelist!=null&&!this.whitelist[A]||(s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"formatAt",this).call(this,T,R,A,N),this.optimize())}},{key:"insertAt",value:function(T,R,A){if(!(A!=null&&this.whitelist!=null&&!this.whitelist[R])){if(T>=this.length())if(A==null||c.default.query(R,c.default.Scope.BLOCK)==null){var N=c.default.create(this.statics.defaultChild);this.appendChild(N),A==null&&R.endsWith(` -`)&&(R=R.slice(0,-1)),N.insertAt(0,R,A)}else{var L=c.default.create(R,A);this.appendChild(L)}else s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertAt",this).call(this,T,R,A);this.optimize()}}},{key:"insertBefore",value:function(T,R){if(T.statics.scope===c.default.Scope.INLINE_BLOT){var A=c.default.create(this.statics.defaultChild);A.appendChild(T),T=A}s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertBefore",this).call(this,T,R)}},{key:"leaf",value:function(T){return this.path(T).pop()||[null,-1]}},{key:"line",value:function(T){return T===this.length()?this.line(T-1):this.descendant(O,T)}},{key:"lines",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,A=function N(L,j,F){var B=[],D=F;return L.children.forEachAt(j,F,function(z,W,q){O(z)?B.push(z):z instanceof c.default.Container&&(B=B.concat(N(z,W,D))),D-=q}),B};return A(this,T,R)}},{key:"optimize",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,T,R),T.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,T,R))}},{key:"path",value:function(T){return s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"path",this).call(this,T).slice(1)}},{key:"update",value:function(T){if(this.batch!==!0){var R=f.default.sources.USER;typeof T=="string"&&(R=T),Array.isArray(T)||(T=this.observer.takeRecords()),T.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,R,T),s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"update",this).call(this,T.concat([])),T.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,R,T)}}}]),M}(c.default.Scroll);$.blotName="scroll",$.className="ql-editor",$.tagName="DIV",$.defaultChild="block",$.allowedChildren=[h.default,d.BlockEmbed,x.default],r.default=$},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},o=function(){function U(G,K){var X=[],Q=!0,ee=!1,ne=void 0;try{for(var te=G[Symbol.iterator](),ie;!(Q=(ie=te.next()).done)&&(X.push(ie.value),!(K&&X.length===K));Q=!0);}catch(J){ee=!0,ne=J}finally{try{!Q&&te.return&&te.return()}finally{if(ee)throw ne}}return X}return function(G,K){if(Array.isArray(G))return G;if(Symbol.iterator in Object(G))return U(G,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function U(G,K){for(var X=0;X1&&arguments[1]!==void 0?arguments[1]:{},ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ne=H(X);if(ne==null||ne.key==null)return A.warn("Attempted to add invalid keyboard binding",ne);typeof Q=="function"&&(Q={handler:Q}),typeof ee=="function"&&(ee={handler:ee}),ne=(0,h.default)(ne,Q,ee),this.bindings[ne.key]=this.bindings[ne.key]||[],this.bindings[ne.key].push(ne)}},{key:"listen",value:function(){var X=this;this.quill.root.addEventListener("keydown",function(Q){if(!Q.defaultPrevented){var ee=Q.which||Q.keyCode,ne=(X.bindings[ee]||[]).filter(function(Pe){return G.match(Q,Pe)});if(ne.length!==0){var te=X.quill.getSelection();if(!(te==null||!X.quill.hasFocus())){var ie=X.quill.getLine(te.index),J=o(ie,2),le=J[0],oe=J[1],re=X.quill.getLeaf(te.index),se=o(re,2),ge=se[0],de=se[1],pe=te.length===0?[ge,de]:X.quill.getLeaf(te.index+te.length),ue=o(pe,2),Se=ue[0],Oe=ue[1],_e=ge instanceof x.default.Text?ge.value().slice(0,de):"",Te=Se instanceof x.default.Text?Se.value().slice(Oe):"",je={collapsed:te.length===0,empty:te.length===0&&le.length()<=1,format:X.quill.getFormat(te),offset:oe,prefix:_e,suffix:Te},Be=ne.some(function(Pe){if(Pe.collapsed!=null&&Pe.collapsed!==je.collapsed||Pe.empty!=null&&Pe.empty!==je.empty||Pe.offset!=null&&Pe.offset!==je.offset)return!1;if(Array.isArray(Pe.format)){if(Pe.format.every(function(He){return je.format[He]==null}))return!1}else if(a(Pe.format)==="object"&&!Object.keys(Pe.format).every(function(He){return Pe.format[He]===!0?je.format[He]!=null:Pe.format[He]===!1?je.format[He]==null:(0,f.default)(Pe.format[He],je.format[He])}))return!1;return Pe.prefix!=null&&!Pe.prefix.test(je.prefix)||Pe.suffix!=null&&!Pe.suffix.test(je.suffix)?!1:Pe.handler.call(X,te,je)!==!0});Be&&Q.preventDefault()}}}})}}]),G}($.default);L.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},L.DEFAULTS={bindings:{bold:q("bold"),italic:q("italic"),underline:q("underline"),indent:{key:L.keys.TAB,format:["blockquote","indent","list"],handler:function(G,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:L.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(G,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:L.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(G,K){K.format.indent!=null?this.quill.format("indent","-1",w.default.sources.USER):K.format.list!=null&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":W(!0),"outdent code-block":W(!1),"remove tab":{key:L.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(G){this.quill.deleteText(G.index-1,1,w.default.sources.USER)}},tab:{key:L.keys.TAB,handler:function(G){this.quill.history.cutoff();var K=new g.default().retain(G.index).delete(G.length).insert(" ");this.quill.updateContents(K,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index+1,w.default.sources.SILENT)}},"list empty enter":{key:L.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(G,K){this.quill.format("list",!1,w.default.sources.USER),K.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:L.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(G){var K=this.quill.getLine(G.index),X=o(K,2),Q=X[0],ee=X[1],ne=(0,h.default)({},Q.formats(),{list:"checked"}),te=new g.default().retain(G.index).insert(` -`,ne).retain(Q.length()-ee-1).retain(1,{list:"unchecked"});this.quill.updateContents(te,w.default.sources.USER),this.quill.setSelection(G.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:L.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(G,K){var X=this.quill.getLine(G.index),Q=o(X,2),ee=Q[0],ne=Q[1],te=new g.default().retain(G.index).insert(` -`,K.format).retain(ee.length()-ne-1).retain(1,{header:null});this.quill.updateContents(te,w.default.sources.USER),this.quill.setSelection(G.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(G,K){var X=K.prefix.length,Q=this.quill.getLine(G.index),ee=o(Q,2),ne=ee[0],te=ee[1];if(te>X)return!0;var ie=void 0;switch(K.prefix.trim()){case"[]":case"[ ]":ie="unchecked";break;case"[x]":ie="checked";break;case"-":case"*":ie="bullet";break;default:ie="ordered"}this.quill.insertText(G.index," ",w.default.sources.USER),this.quill.history.cutoff();var J=new g.default().retain(G.index-te).delete(X+1).retain(ne.length()-2-te).retain(1,{list:ie});this.quill.updateContents(J,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index-X,w.default.sources.SILENT)}},"code exit":{key:L.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(G){var K=this.quill.getLine(G.index),X=o(K,2),Q=X[0],ee=X[1],ne=new g.default().retain(G.index+Q.length()-ee-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ne,w.default.sources.USER)}},"embed left":j(L.keys.LEFT,!1),"embed left shift":j(L.keys.LEFT,!0),"embed right":j(L.keys.RIGHT,!1),"embed right shift":j(L.keys.RIGHT,!0)}};function j(U,G){var K,X=U===L.keys.LEFT?"prefix":"suffix";return K={key:U,shiftKey:G,altKey:null},M(K,X,/^$/),M(K,"handler",function(ee){var ne=ee.index;U===L.keys.RIGHT&&(ne+=ee.length+1);var te=this.quill.getLeaf(ne),ie=o(te,1),J=ie[0];return J instanceof x.default.Embed?(U===L.keys.LEFT?G?this.quill.setSelection(ee.index-1,ee.length+1,w.default.sources.USER):this.quill.setSelection(ee.index-1,w.default.sources.USER):G?this.quill.setSelection(ee.index,ee.length+1,w.default.sources.USER):this.quill.setSelection(ee.index+ee.length+1,w.default.sources.USER),!1):!0}),K}function F(U,G){if(!(U.index===0||this.quill.getLength()<=1)){var K=this.quill.getLine(U.index),X=o(K,1),Q=X[0],ee={};if(G.offset===0){var ne=this.quill.getLine(U.index-1),te=o(ne,1),ie=te[0];if(ie!=null&&ie.length()>1){var J=Q.formats(),le=this.quill.getFormat(U.index-1,1);ee=m.default.attributes.diff(J,le)||{}}}var oe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(G.prefix)?2:1;this.quill.deleteText(U.index-oe,oe,w.default.sources.USER),Object.keys(ee).length>0&&this.quill.formatLine(U.index-oe,oe,ee,w.default.sources.USER),this.quill.focus()}}function B(U,G){var K=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(G.suffix)?2:1;if(!(U.index>=this.quill.getLength()-K)){var X={},Q=0,ee=this.quill.getLine(U.index),ne=o(ee,1),te=ne[0];if(G.offset>=te.length()-1){var ie=this.quill.getLine(U.index+1),J=o(ie,1),le=J[0];if(le){var oe=te.formats(),re=this.quill.getFormat(U.index,1);X=m.default.attributes.diff(oe,re)||{},Q=le.length()}}this.quill.deleteText(U.index,K,w.default.sources.USER),Object.keys(X).length>0&&this.quill.formatLine(U.index+Q-1,K,X,w.default.sources.USER)}}function D(U){var G=this.quill.getLines(U),K={};if(G.length>1){var X=G[0].formats(),Q=G[G.length-1].formats();K=m.default.attributes.diff(Q,X)||{}}this.quill.deleteText(U,w.default.sources.USER),Object.keys(K).length>0&&this.quill.formatLine(U.index,1,K,w.default.sources.USER),this.quill.setSelection(U.index,w.default.sources.SILENT),this.quill.focus()}function z(U,G){var K=this;U.length>0&&this.quill.scroll.deleteAt(U.index,U.length);var X=Object.keys(G.format).reduce(function(Q,ee){return x.default.query(ee,x.default.Scope.BLOCK)&&!Array.isArray(G.format[ee])&&(Q[ee]=G.format[ee]),Q},{});this.quill.insertText(U.index,` +`);return B.insert(W,D.attributes)}return B.push(D)},new c.default)}r.default=N},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var a=function(){function O($,P){var M=[],k=!0,T=!1,R=void 0;try{for(var A=$[Symbol.iterator](),N;!(k=(N=A.next()).done)&&(M.push(N.value),!(P&&M.length===P));k=!0);}catch(L){T=!0,R=L}finally{try{!k&&A.return&&A.return()}finally{if(T)throw R}}return M}return function($,P){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return O($,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function O($,P){for(var M=0;M1&&arguments[1]!==void 0?arguments[1]:0;x(this,O),this.index=$,this.length=P},C=function(){function O($,P){var M=this;x(this,O),this.emitter=P,this.scroll=$,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new w(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){M.mouseDown||setTimeout(M.update.bind(M,p.default.sources.USER),1)}),this.emitter.on(p.default.events.EDITOR_CHANGE,function(k,T){k===p.default.events.TEXT_CHANGE&&T.length()>0&&M.update(p.default.sources.SILENT)}),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,function(){if(M.hasFocus()){var k=M.getNativeRange();k!=null&&k.start.node!==M.cursor.textNode&&M.emitter.once(p.default.events.SCROLL_UPDATE,function(){try{M.setNativeRange(k.start.node,k.start.offset,k.end.node,k.end.offset)}catch(T){}})}}),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,function(k,T){if(T.range){var R=T.range,A=R.startNode,N=R.startOffset,L=R.endNode,j=R.endOffset;M.setNativeRange(A,N,L,j)}}),this.update(p.default.sources.SILENT)}return o(O,[{key:"handleComposition",value:function(){var P=this;this.root.addEventListener("compositionstart",function(){P.composing=!0}),this.root.addEventListener("compositionend",function(){if(P.composing=!1,P.cursor.parent){var M=P.cursor.restore();if(!M)return;setTimeout(function(){P.setNativeRange(M.startNode,M.startOffset,M.endNode,M.endOffset)},1)}})}},{key:"handleDragging",value:function(){var P=this;this.emitter.listenDOM("mousedown",document.body,function(){P.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){P.mouseDown=!1,P.update(p.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(P,M){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[P])){this.scroll.update();var k=this.getNativeRange();if(!(k==null||!k.native.collapsed||l.default.query(P,l.default.Scope.BLOCK))){if(k.start.node!==this.cursor.textNode){var T=l.default.find(k.start.node,!1);if(T==null)return;if(T instanceof l.default.Leaf){var R=T.split(k.start.offset);T.parent.insertBefore(this.cursor,R)}else T.insertBefore(this.cursor,k.start.node);this.cursor.attach()}this.cursor.format(P,M),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=this.scroll.length();P=Math.min(P,k-1),M=Math.min(P+M,k-1)-P;var T=void 0,R=this.scroll.leaf(P),A=a(R,2),N=A[0],L=A[1];if(N==null)return null;var j=N.position(L,!0),F=a(j,2);T=F[0],L=F[1];var B=document.createRange();if(M>0){B.setStart(T,L);var D=this.scroll.leaf(P+M),z=a(D,2);if(N=z[0],L=z[1],N==null)return null;var W=N.position(L,!0),q=a(W,2);return T=q[0],L=q[1],B.setEnd(T,L),B.getBoundingClientRect()}else{var H="left",U=void 0;return T instanceof Text?(L0&&(H="right")),{bottom:U.top+U.height,height:U.height,left:U[H],right:U[H],top:U.top,width:0}}}},{key:"getNativeRange",value:function(){var P=document.getSelection();if(P==null||P.rangeCount<=0)return null;var M=P.getRangeAt(0);if(M==null)return null;var k=this.normalizeNative(M);return S.info("getNativeRange",k),k}},{key:"getRange",value:function(){var P=this.getNativeRange();if(P==null)return[null,null];var M=this.normalizedToRange(P);return[M,P]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(P){var M=this,k=[[P.start.node,P.start.offset]];P.native.collapsed||k.push([P.end.node,P.end.offset]);var T=k.map(function(N){var L=a(N,2),j=L[0],F=L[1],B=l.default.find(j,!0),D=B.offset(M.scroll);return F===0?D:B instanceof l.default.Container?D+B.length():D+B.index(j,F)}),R=Math.min(Math.max.apply(Math,y(T)),this.scroll.length()-1),A=Math.min.apply(Math,[R].concat(y(T)));return new w(A,R-A)}},{key:"normalizeNative",value:function(P){if(!E(this.root,P.startContainer)||!P.collapsed&&!E(this.root,P.endContainer))return null;var M={start:{node:P.startContainer,offset:P.startOffset},end:{node:P.endContainer,offset:P.endOffset},native:P};return[M.start,M.end].forEach(function(k){for(var T=k.node,R=k.offset;!(T instanceof Text)&&T.childNodes.length>0;)if(T.childNodes.length>R)T=T.childNodes[R],R=0;else if(T.childNodes.length===R)T=T.lastChild,R=T instanceof Text?T.data.length:T.childNodes.length+1;else break;k.node=T,k.offset=R}),M}},{key:"rangeToNative",value:function(P){var M=this,k=P.collapsed?[P.index]:[P.index,P.index+P.length],T=[],R=this.scroll.length();return k.forEach(function(A,N){A=Math.min(R-1,A);var L=void 0,j=M.scroll.leaf(A),F=a(j,2),B=F[0],D=F[1],z=B.position(D,N!==0),W=a(z,2);L=W[0],D=W[1],T.push(L,D)}),T.length<2&&(T=T.concat(T)),T}},{key:"scrollIntoView",value:function(P){var M=this.lastRange;if(M!=null){var k=this.getBounds(M.index,M.length);if(k!=null){var T=this.scroll.length()-1,R=this.scroll.line(Math.min(M.index,T)),A=a(R,1),N=A[0],L=N;if(M.length>0){var j=this.scroll.line(Math.min(M.index+M.length,T)),F=a(j,1);L=F[0]}if(!(N==null||L==null)){var B=P.getBoundingClientRect();k.topB.bottom&&(P.scrollTop+=k.bottom-B.bottom)}}}}},{key:"setNativeRange",value:function(P,M){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:P,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M,R=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(S.info("setNativeRange",P,M,k,T),!(P!=null&&(this.root.parentNode==null||P.parentNode==null||k.parentNode==null))){var A=document.getSelection();if(A!=null)if(P!=null){this.hasFocus()||this.root.focus();var N=(this.getNativeRange()||{}).native;if(N==null||R||P!==N.startContainer||M!==N.startOffset||k!==N.endContainer||T!==N.endOffset){P.tagName=="BR"&&(M=[].indexOf.call(P.parentNode.childNodes,P),P=P.parentNode),k.tagName=="BR"&&(T=[].indexOf.call(k.parentNode.childNodes,k),k=k.parentNode);var L=document.createRange();L.setStart(P,M),L.setEnd(k,T),A.removeAllRanges(),A.addRange(L)}}else A.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;if(typeof M=="string"&&(k=M,M=!1),S.info("setRange",P),P!=null){var T=this.rangeToNative(P);this.setNativeRange.apply(this,y(T).concat([M]))}else this.setNativeRange(null);this.update(k)}},{key:"update",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.default.sources.USER,M=this.lastRange,k=this.getRange(),T=a(k,2),R=T[0],A=T[1];if(this.lastRange=R,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,d.default)(M,this.lastRange)){var N;!this.composing&&A!=null&&A.native.collapsed&&A.start.node!==this.cursor.textNode&&this.cursor.restore();var L=[p.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(M),P];if((N=this.emitter).emit.apply(N,[p.default.events.EDITOR_CHANGE].concat(L)),P!==p.default.sources.SILENT){var j;(j=this.emitter).emit.apply(j,L)}}}}]),O}();function E(O,$){try{$.parentNode}catch(P){return!1}return $ instanceof Text&&($=$.parentNode),O.contains($)}r.Range=w,r.default=C},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function p(v,g){for(var m=0;m0&&(h+=1),[this.parent.domNode,h]},u.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},u.scope=s.Scope.INLINE_BLOT,u}(o.default);r.default=l},function(n,r,i){var a=i(11),o=i(3),s={attributes:{compose:function(c,u,f){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});var d=o(!0,{},u);f||(d=Object.keys(d).reduce(function(p,v){return d[v]!=null&&(p[v]=d[v]),p},{}));for(var h in c)c[h]!==void 0&&u[h]===void 0&&(d[h]=c[h]);return Object.keys(d).length>0?d:void 0},diff:function(c,u){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});var f=Object.keys(c).concat(Object.keys(u)).reduce(function(d,h){return a(c[h],u[h])||(d[h]=u[h]===void 0?null:u[h]),d},{});return Object.keys(f).length>0?f:void 0},transform:function(c,u,f){if(typeof c!="object")return u;if(typeof u=="object"){if(!f)return u;var d=Object.keys(u).reduce(function(h,p){return c[p]===void 0&&(h[p]=u[p]),h},{});return Object.keys(d).length>0?d:void 0}}},iterator:function(c){return new l(c)},length:function(c){return typeof c.delete=="number"?c.delete:typeof c.retain=="number"?c.retain:typeof c.insert=="string"?c.insert.length:1}};function l(c){this.ops=c,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(c){c||(c=1/0);var u=this.ops[this.index];if(u){var f=this.offset,d=s.length(u);if(c>=d-f?(c=d-f,this.index+=1,this.offset=0):this.offset+=c,typeof u.delete=="number")return{delete:c};var h={};return u.attributes&&(h.attributes=u.attributes),typeof u.retain=="number"?h.retain=c:typeof u.insert=="string"?h.insert=u.insert.substr(f,c):h.insert=u.insert,h}else return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var c=this.offset,u=this.index,f=this.next(),d=this.ops.slice(this.index);return this.offset=c,this.index=u,[f].concat(d)}else return[]},n.exports=s},function(n,r){var i=function(){function a(v,g){return g!=null&&v instanceof g}var o;try{o=Map}catch(v){o=function(){}}var s;try{s=Set}catch(v){s=function(){}}var l;try{l=Promise}catch(v){l=function(){}}function c(v,g,m,y,x){typeof g=="object"&&(m=g.depth,y=g.prototype,x=g.includeNonEnumerable,g=g.circular);var S=[],w=[],C=typeof Buffer!="undefined";typeof g=="undefined"&&(g=!0),typeof m=="undefined"&&(m=1/0);function E(O,$){if(O===null)return null;if($===0)return O;var P,M;if(typeof O!="object")return O;if(a(O,o))P=new o;else if(a(O,s))P=new s;else if(a(O,l))P=new l(function(B,D){O.then(function(z){B(E(z,$-1))},function(z){D(E(z,$-1))})});else if(c.__isArray(O))P=[];else if(c.__isRegExp(O))P=new RegExp(O.source,p(O)),O.lastIndex&&(P.lastIndex=O.lastIndex);else if(c.__isDate(O))P=new Date(O.getTime());else{if(C&&Buffer.isBuffer(O))return Buffer.allocUnsafe?P=Buffer.allocUnsafe(O.length):P=new Buffer(O.length),O.copy(P),P;a(O,Error)?P=Object.create(O):typeof y=="undefined"?(M=Object.getPrototypeOf(O),P=Object.create(M)):(P=Object.create(y),M=y)}if(g){var k=S.indexOf(O);if(k!=-1)return w[k];S.push(O),w.push(P)}a(O,o)&&O.forEach(function(B,D){var z=E(D,$-1),W=E(B,$-1);P.set(z,W)}),a(O,s)&&O.forEach(function(B){var D=E(B,$-1);P.add(D)});for(var T in O){var R;M&&(R=Object.getOwnPropertyDescriptor(M,T)),!(R&&R.set==null)&&(P[T]=E(O[T],$-1))}if(Object.getOwnPropertySymbols)for(var A=Object.getOwnPropertySymbols(O),T=0;T0){if(L instanceof d.BlockEmbed||D instanceof d.BlockEmbed){this.optimize();return}if(L instanceof m.default){var z=L.newlineIndex(L.length(),!0);if(z>-1&&(L=L.split(z+1),L===D)){this.optimize();return}}else if(D instanceof m.default){var W=D.newlineIndex(0);W>-1&&D.split(W+1)}var q=D.children.head instanceof v.default?null:D.children.head;L.moveChildren(D,q),L.remove()}this.optimize()}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",T)}},{key:"formatAt",value:function(T,R,A,N){this.whitelist!=null&&!this.whitelist[A]||(s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"formatAt",this).call(this,T,R,A,N),this.optimize())}},{key:"insertAt",value:function(T,R,A){if(!(A!=null&&this.whitelist!=null&&!this.whitelist[R])){if(T>=this.length())if(A==null||c.default.query(R,c.default.Scope.BLOCK)==null){var N=c.default.create(this.statics.defaultChild);this.appendChild(N),A==null&&R.endsWith(` +`)&&(R=R.slice(0,-1)),N.insertAt(0,R,A)}else{var L=c.default.create(R,A);this.appendChild(L)}else s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertAt",this).call(this,T,R,A);this.optimize()}}},{key:"insertBefore",value:function(T,R){if(T.statics.scope===c.default.Scope.INLINE_BLOT){var A=c.default.create(this.statics.defaultChild);A.appendChild(T),T=A}s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertBefore",this).call(this,T,R)}},{key:"leaf",value:function(T){return this.path(T).pop()||[null,-1]}},{key:"line",value:function(T){return T===this.length()?this.line(T-1):this.descendant(O,T)}},{key:"lines",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,A=function N(L,j,F){var B=[],D=F;return L.children.forEachAt(j,F,function(z,W,q){O(z)?B.push(z):z instanceof c.default.Container&&(B=B.concat(N(z,W,D))),D-=q}),B};return A(this,T,R)}},{key:"optimize",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,T,R),T.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,T,R))}},{key:"path",value:function(T){return s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"path",this).call(this,T).slice(1)}},{key:"update",value:function(T){if(this.batch!==!0){var R=f.default.sources.USER;typeof T=="string"&&(R=T),Array.isArray(T)||(T=this.observer.takeRecords()),T.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,R,T),s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"update",this).call(this,T.concat([])),T.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,R,T)}}}]),M}(c.default.Scroll);$.blotName="scroll",$.className="ql-editor",$.tagName="DIV",$.defaultChild="block",$.allowedChildren=[h.default,d.BlockEmbed,x.default],r.default=$},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},o=function(){function U(G,K){var X=[],Q=!0,ee=!1,ne=void 0;try{for(var te=G[Symbol.iterator](),ie;!(Q=(ie=te.next()).done)&&(X.push(ie.value),!(K&&X.length===K));Q=!0);}catch(J){ee=!0,ne=J}finally{try{!Q&&te.return&&te.return()}finally{if(ee)throw ne}}return X}return function(G,K){if(Array.isArray(G))return G;if(Symbol.iterator in Object(G))return U(G,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function U(G,K){for(var X=0;X1&&arguments[1]!==void 0?arguments[1]:{},ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ne=H(X);if(ne==null||ne.key==null)return A.warn("Attempted to add invalid keyboard binding",ne);typeof Q=="function"&&(Q={handler:Q}),typeof ee=="function"&&(ee={handler:ee}),ne=(0,h.default)(ne,Q,ee),this.bindings[ne.key]=this.bindings[ne.key]||[],this.bindings[ne.key].push(ne)}},{key:"listen",value:function(){var X=this;this.quill.root.addEventListener("keydown",function(Q){if(!Q.defaultPrevented){var ee=Q.which||Q.keyCode,ne=(X.bindings[ee]||[]).filter(function(Pe){return G.match(Q,Pe)});if(ne.length!==0){var te=X.quill.getSelection();if(!(te==null||!X.quill.hasFocus())){var ie=X.quill.getLine(te.index),J=o(ie,2),le=J[0],oe=J[1],re=X.quill.getLeaf(te.index),se=o(re,2),ge=se[0],de=se[1],pe=te.length===0?[ge,de]:X.quill.getLeaf(te.index+te.length),fe=o(pe,2),xe=fe[0],Oe=fe[1],_e=ge instanceof x.default.Text?ge.value().slice(0,de):"",Te=xe instanceof x.default.Text?xe.value().slice(Oe):"",Fe={collapsed:te.length===0,empty:te.length===0&&le.length()<=1,format:X.quill.getFormat(te),offset:oe,prefix:_e,suffix:Te},Be=ne.some(function(Pe){if(Pe.collapsed!=null&&Pe.collapsed!==Fe.collapsed||Pe.empty!=null&&Pe.empty!==Fe.empty||Pe.offset!=null&&Pe.offset!==Fe.offset)return!1;if(Array.isArray(Pe.format)){if(Pe.format.every(function(ze){return Fe.format[ze]==null}))return!1}else if(a(Pe.format)==="object"&&!Object.keys(Pe.format).every(function(ze){return Pe.format[ze]===!0?Fe.format[ze]!=null:Pe.format[ze]===!1?Fe.format[ze]==null:(0,f.default)(Pe.format[ze],Fe.format[ze])}))return!1;return Pe.prefix!=null&&!Pe.prefix.test(Fe.prefix)||Pe.suffix!=null&&!Pe.suffix.test(Fe.suffix)?!1:Pe.handler.call(X,te,Fe)!==!0});Be&&Q.preventDefault()}}}})}}]),G}($.default);L.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},L.DEFAULTS={bindings:{bold:q("bold"),italic:q("italic"),underline:q("underline"),indent:{key:L.keys.TAB,format:["blockquote","indent","list"],handler:function(G,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:L.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(G,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:L.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(G,K){K.format.indent!=null?this.quill.format("indent","-1",w.default.sources.USER):K.format.list!=null&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":W(!0),"outdent code-block":W(!1),"remove tab":{key:L.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(G){this.quill.deleteText(G.index-1,1,w.default.sources.USER)}},tab:{key:L.keys.TAB,handler:function(G){this.quill.history.cutoff();var K=new v.default().retain(G.index).delete(G.length).insert(" ");this.quill.updateContents(K,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index+1,w.default.sources.SILENT)}},"list empty enter":{key:L.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(G,K){this.quill.format("list",!1,w.default.sources.USER),K.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:L.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(G){var K=this.quill.getLine(G.index),X=o(K,2),Q=X[0],ee=X[1],ne=(0,h.default)({},Q.formats(),{list:"checked"}),te=new v.default().retain(G.index).insert(` +`,ne).retain(Q.length()-ee-1).retain(1,{list:"unchecked"});this.quill.updateContents(te,w.default.sources.USER),this.quill.setSelection(G.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:L.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(G,K){var X=this.quill.getLine(G.index),Q=o(X,2),ee=Q[0],ne=Q[1],te=new v.default().retain(G.index).insert(` +`,K.format).retain(ee.length()-ne-1).retain(1,{header:null});this.quill.updateContents(te,w.default.sources.USER),this.quill.setSelection(G.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(G,K){var X=K.prefix.length,Q=this.quill.getLine(G.index),ee=o(Q,2),ne=ee[0],te=ee[1];if(te>X)return!0;var ie=void 0;switch(K.prefix.trim()){case"[]":case"[ ]":ie="unchecked";break;case"[x]":ie="checked";break;case"-":case"*":ie="bullet";break;default:ie="ordered"}this.quill.insertText(G.index," ",w.default.sources.USER),this.quill.history.cutoff();var J=new v.default().retain(G.index-te).delete(X+1).retain(ne.length()-2-te).retain(1,{list:ie});this.quill.updateContents(J,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index-X,w.default.sources.SILENT)}},"code exit":{key:L.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(G){var K=this.quill.getLine(G.index),X=o(K,2),Q=X[0],ee=X[1],ne=new v.default().retain(G.index+Q.length()-ee-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ne,w.default.sources.USER)}},"embed left":j(L.keys.LEFT,!1),"embed left shift":j(L.keys.LEFT,!0),"embed right":j(L.keys.RIGHT,!1),"embed right shift":j(L.keys.RIGHT,!0)}};function j(U,G){var K,X=U===L.keys.LEFT?"prefix":"suffix";return K={key:U,shiftKey:G,altKey:null},M(K,X,/^$/),M(K,"handler",function(ee){var ne=ee.index;U===L.keys.RIGHT&&(ne+=ee.length+1);var te=this.quill.getLeaf(ne),ie=o(te,1),J=ie[0];return J instanceof x.default.Embed?(U===L.keys.LEFT?G?this.quill.setSelection(ee.index-1,ee.length+1,w.default.sources.USER):this.quill.setSelection(ee.index-1,w.default.sources.USER):G?this.quill.setSelection(ee.index,ee.length+1,w.default.sources.USER):this.quill.setSelection(ee.index+ee.length+1,w.default.sources.USER),!1):!0}),K}function F(U,G){if(!(U.index===0||this.quill.getLength()<=1)){var K=this.quill.getLine(U.index),X=o(K,1),Q=X[0],ee={};if(G.offset===0){var ne=this.quill.getLine(U.index-1),te=o(ne,1),ie=te[0];if(ie!=null&&ie.length()>1){var J=Q.formats(),le=this.quill.getFormat(U.index-1,1);ee=m.default.attributes.diff(J,le)||{}}}var oe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(G.prefix)?2:1;this.quill.deleteText(U.index-oe,oe,w.default.sources.USER),Object.keys(ee).length>0&&this.quill.formatLine(U.index-oe,oe,ee,w.default.sources.USER),this.quill.focus()}}function B(U,G){var K=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(G.suffix)?2:1;if(!(U.index>=this.quill.getLength()-K)){var X={},Q=0,ee=this.quill.getLine(U.index),ne=o(ee,1),te=ne[0];if(G.offset>=te.length()-1){var ie=this.quill.getLine(U.index+1),J=o(ie,1),le=J[0];if(le){var oe=te.formats(),re=this.quill.getFormat(U.index,1);X=m.default.attributes.diff(oe,re)||{},Q=le.length()}}this.quill.deleteText(U.index,K,w.default.sources.USER),Object.keys(X).length>0&&this.quill.formatLine(U.index+Q-1,K,X,w.default.sources.USER)}}function D(U){var G=this.quill.getLines(U),K={};if(G.length>1){var X=G[0].formats(),Q=G[G.length-1].formats();K=m.default.attributes.diff(Q,X)||{}}this.quill.deleteText(U,w.default.sources.USER),Object.keys(K).length>0&&this.quill.formatLine(U.index,1,K,w.default.sources.USER),this.quill.setSelection(U.index,w.default.sources.SILENT),this.quill.focus()}function z(U,G){var K=this;U.length>0&&this.quill.scroll.deleteAt(U.index,U.length);var X=Object.keys(G.format).reduce(function(Q,ee){return x.default.query(ee,x.default.Scope.BLOCK)&&!Array.isArray(G.format[ee])&&(Q[ee]=G.format[ee]),Q},{});this.quill.insertText(U.index,` `,X,w.default.sources.USER),this.quill.setSelection(U.index+1,w.default.sources.SILENT),this.quill.focus(),Object.keys(G.format).forEach(function(Q){X[Q]==null&&(Array.isArray(G.format[Q])||Q!=="link"&&K.quill.format(Q,G.format[Q],w.default.sources.USER))})}function W(U){return{key:L.keys.TAB,shiftKey:!U,format:{"code-block":!0},handler:function(K){var X=x.default.query("code-block"),Q=K.index,ee=K.length,ne=this.quill.scroll.descendant(X,Q),te=o(ne,2),ie=te[0],J=te[1];if(ie!=null){var le=this.quill.getIndex(ie),oe=ie.newlineIndex(J,!0)+1,re=ie.newlineIndex(le+J+ee),se=ie.domNode.textContent.slice(oe,re).split(` -`);J=0,se.forEach(function(ge,de){U?(ie.insertAt(oe+J,X.TAB),J+=X.TAB.length,de===0?Q+=X.TAB.length:ee+=X.TAB.length):ge.startsWith(X.TAB)&&(ie.deleteAt(oe+J,X.TAB.length),J-=X.TAB.length,de===0?Q-=X.TAB.length:ee-=X.TAB.length),J+=ge.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(Q,ee,w.default.sources.SILENT)}}}}function q(U){return{key:U[0].toUpperCase(),shortKey:!0,handler:function(K,X){this.quill.format(U,!X.format[U],w.default.sources.USER)}}}function H(U){if(typeof U=="string"||typeof U=="number")return H({key:U});if((typeof U=="undefined"?"undefined":a(U))==="object"&&(U=(0,c.default)(U,!1)),typeof U.key=="string")if(L.keys[U.key.toUpperCase()]!=null)U.key=L.keys[U.key.toUpperCase()];else if(U.key.length===1)U.key=U.key.toUpperCase().charCodeAt(0);else return null;return U.shortKey&&(U[N]=U.shortKey,delete U.shortKey),U}r.default=L,r.SHORTKEY=N},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function m(y,x){var S=[],w=!0,C=!1,E=void 0;try{for(var O=y[Symbol.iterator](),$;!(w=($=O.next()).done)&&(S.push($.value),!(x&&S.length===x));w=!0);}catch(P){C=!0,E=P}finally{try{!w&&O.return&&O.return()}finally{if(C)throw E}}return S}return function(y,x){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return m(y,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function m(y,x,S){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,x);if(w===void 0){var C=Object.getPrototypeOf(y);return C===null?void 0:m(C,x,S)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(S)}},s=function(){function m(y,x){for(var S=0;S-1}r.default=h,r.sanitize=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},o=function(){function v(m,y){for(var x=0;x1&&arguments[1]!==void 0?arguments[1]:!1,S=this.container.querySelector(".ql-selected");if(y!==S&&(S!=null&&S.classList.remove("ql-selected"),y!=null&&(y.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(y.parentNode.children,y),y.hasAttribute("data-value")?this.label.setAttribute("data-value",y.getAttribute("data-value")):this.label.removeAttribute("data-value"),y.hasAttribute("data-label")?this.label.setAttribute("data-label",y.getAttribute("data-label")):this.label.removeAttribute("data-label"),x))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":a(Event))==="object"){var w=document.createEvent("Event");w.initEvent("change",!0,!0),this.select.dispatchEvent(w)}this.close()}}},{key:"update",value:function(){var y=void 0;if(this.select.selectedIndex>-1){var x=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];y=this.select.options[this.select.selectedIndex],this.selectItem(x)}else this.selectItem(null);var S=y!=null&&y!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",S)}}]),v}();r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(0),o=A(a),s=i(5),l=A(s),c=i(4),u=A(c),f=i(16),d=A(f),h=i(25),p=A(h),g=i(24),v=A(g),m=i(35),y=A(m),x=i(6),S=A(x),w=i(22),C=A(w),E=i(7),O=A(E),$=i(55),P=A($),M=i(42),k=A(M),T=i(23),R=A(T);function A(N){return N&&N.__esModule?N:{default:N}}l.default.register({"blots/block":u.default,"blots/block/embed":c.BlockEmbed,"blots/break":d.default,"blots/container":p.default,"blots/cursor":v.default,"blots/embed":y.default,"blots/inline":S.default,"blots/scroll":C.default,"blots/text":O.default,"modules/clipboard":P.default,"modules/history":k.default,"modules/keyboard":R.default}),o.default.register(u.default,d.default,v.default,S.default,C.default,O.default),r.default=l.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(1),o=function(){function s(l){this.domNode=l,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(l){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var c;return Array.isArray(this.tagName)?(typeof l=="string"&&(l=l.toUpperCase(),parseInt(l).toString()===l&&(l=parseInt(l))),typeof l=="number"?c=document.createElement(this.tagName[l-1]):this.tagName.indexOf(l)>-1?c=document.createElement(l):c=document.createElement(this.tagName[0])):c=document.createElement(this.tagName),this.className&&c.classList.add(this.className),c},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var l=this.domNode.cloneNode(!1);return a.create(l)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},s.prototype.deleteAt=function(l,c){var u=this.isolate(l,c);u.remove()},s.prototype.formatAt=function(l,c,u,f){var d=this.isolate(l,c);if(a.query(u,a.Scope.BLOT)!=null&&f)d.wrap(u,f);else if(a.query(u,a.Scope.ATTRIBUTE)!=null){var h=a.create(this.statics.scope);d.wrap(h),h.format(u,f)}},s.prototype.insertAt=function(l,c,u){var f=u==null?a.create("text",c):a.create(c,u),d=this.split(l);this.parent.insertBefore(f,d)},s.prototype.insertInto=function(l,c){c===void 0&&(c=null),this.parent!=null&&this.parent.children.remove(this);var u=null;l.children.insertBefore(this,c),c!=null&&(u=c.domNode),(this.domNode.parentNode!=l.domNode||this.domNode.nextSibling!=u)&&l.domNode.insertBefore(this.domNode,u),this.parent=l,this.attach()},s.prototype.isolate=function(l,c){var u=this.split(l);return u.split(c),u},s.prototype.length=function(){return 1},s.prototype.offset=function(l){return l===void 0&&(l=this.parent),this.parent==null||this==l?0:this.parent.children.offset(this)+this.parent.offset(l)},s.prototype.optimize=function(l){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(l){l.parent!=null&&(l.parent.insertBefore(this,l.next),l.remove())},s.prototype.replaceWith=function(l,c){var u=typeof l=="string"?a.create(l,c):l;return u.replace(this),u},s.prototype.split=function(l,c){return l===0?this:this.next},s.prototype.update=function(l,c){},s.prototype.wrap=function(l,c){var u=typeof l=="string"?a.create(l,c):l;return this.parent!=null&&this.parent.insertBefore(u,this.next),u.appendChild(this),u},s.blotName="abstract",s}();r.default=o},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(12),o=i(32),s=i(33),l=i(1),c=function(){function u(f){this.attributes={},this.domNode=f,this.build()}return u.prototype.attribute=function(f,d){d?f.add(this.domNode,d)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},u.prototype.build=function(){var f=this;this.attributes={};var d=a.default.keys(this.domNode),h=o.default.keys(this.domNode),p=s.default.keys(this.domNode);d.concat(h).concat(p).forEach(function(g){var v=l.query(g,l.Scope.ATTRIBUTE);v instanceof a.default&&(f.attributes[v.attrName]=v)})},u.prototype.copy=function(f){var d=this;Object.keys(this.attributes).forEach(function(h){var p=d.attributes[h].value(d.domNode);f.format(h,p)})},u.prototype.move=function(f){var d=this;this.copy(f),Object.keys(this.attributes).forEach(function(h){d.attributes[h].remove(d.domNode)}),this.attributes={}},u.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(d,h){return d[h]=f.attributes[h].value(f.domNode),d},{})},u}();r.default=c},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var d in f)f.hasOwnProperty(d)&&(u[d]=f[d])};return function(u,f){c(u,f);function d(){this.constructor=u}u.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(12);function s(c,u){var f=c.getAttribute("class")||"";return f.split(/\s+/).filter(function(d){return d.indexOf(u+"-")===0})}var l=function(c){a(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(d){return d.split("-").slice(0,-1).join("-")})},u.prototype.add=function(f,d){return this.canAdd(f,d)?(this.remove(f),f.classList.add(this.keyName+"-"+d),!0):!1},u.prototype.remove=function(f){var d=s(f,this.keyName);d.forEach(function(h){f.classList.remove(h)}),f.classList.length===0&&f.removeAttribute("class")},u.prototype.value=function(f){var d=s(f,this.keyName)[0]||"",h=d.slice(this.keyName.length+1);return this.canAdd(f,h)?h:""},u}(o.default);r.default=l},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var d in f)f.hasOwnProperty(d)&&(u[d]=f[d])};return function(u,f){c(u,f);function d(){this.constructor=u}u.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(12);function s(c){var u=c.split("-"),f=u.slice(1).map(function(d){return d[0].toUpperCase()+d.slice(1)}).join("");return u[0]+f}var l=function(c){a(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(d){var h=d.split(":");return h[0].trim()})},u.prototype.add=function(f,d){return this.canAdd(f,d)?(f.style[s(this.keyName)]=d,!0):!1},u.prototype.remove=function(f){f.style[s(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},u.prototype.value=function(f){var d=f.style[s(this.keyName)];return this.canAdd(f,d)?d:""},u}(o.default);r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function l(c,u){for(var f=0;f$&&this.stack.undo.length>0){var P=this.stack.undo.pop();O=O.compose(P.undo),C=P.redo.compose(C)}else this.lastRecorded=$;this.stack.undo.push({redo:C,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(C){this.stack.undo.forEach(function(E){E.undo=C.transform(E.undo,!0),E.redo=C.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=C.transform(E.undo,!0),E.redo=C.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),S}(f.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function m(x){var S=x.ops[x.ops.length-1];return S==null?!1:S.insert!=null?typeof S.insert=="string"&&S.insert.endsWith(` -`):S.attributes!=null?Object.keys(S.attributes).some(function(w){return s.default.query(w,s.default.Scope.BLOCK)!=null}):!1}function y(x){var S=x.reduce(function(C,E){return C+=E.delete||0,C},0),w=x.length()-S;return m(x)&&(w-=1),w}r.default=v,r.getLastChangeIndex=y},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var a=function(){function z(W,q){for(var H=0;H0&&arguments[0]!==void 0?arguments[0]:"link",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),U!=null?this.textbox.value=U:H!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+H)||""),this.root.setAttribute("data-mode",H)}},{key:"restoreFocus",value:function(){var H=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=H}},{key:"save",value:function(){var H=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var U=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",H,d.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",H,d.default.sources.USER)),this.quill.root.scrollTop=U;break}case"video":H=B(H);case"formula":{if(!H)break;var G=this.quill.getSelection(!0);if(G!=null){var K=G.index+G.length;this.quill.insertEmbed(K,this.root.getAttribute("data-mode"),H,d.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(K+1," ",d.default.sources.USER),this.quill.setSelection(K+2,d.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),W}(O.default);function B(z){var W=z.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||z.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return W?(W[1]||"https")+"://www.youtube.com/embed/"+W[2]+"?showinfo=0":(W=z.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(W[1]||"https")+"://player.vimeo.com/video/"+W[2]+"/":z}function D(z,W){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;W.forEach(function(H){var U=document.createElement("option");H===q?U.setAttribute("selected","selected"):U.setAttribute("value",H),z.appendChild(U)})}r.BaseTooltip=F,r.default=j},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function o(){this.head=this.tail=null,this.length=0}return o.prototype.append=function(){for(var s=[],l=0;l1&&this.append.apply(this,s.slice(1))},o.prototype.contains=function(s){for(var l,c=this.iterator();l=c();)if(l===s)return!0;return!1},o.prototype.insertBefore=function(s,l){s&&(s.next=l,l!=null?(s.prev=l.prev,l.prev!=null&&(l.prev.next=s),l.prev=s,l===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},o.prototype.offset=function(s){for(var l=0,c=this.head;c!=null;){if(c===s)return l;l+=c.length(),c=c.next}return-1},o.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},o.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var l=s;return s!=null&&(s=s.next),l}},o.prototype.find=function(s,l){l===void 0&&(l=!1);for(var c,u=this.iterator();c=u();){var f=c.length();if(sp?c(h,s-p,Math.min(l,p+v-s)):c(h,0,Math.min(v,s+l-p)),p+=v}},o.prototype.map=function(s){return this.reduce(function(l,c){return l.push(s(c)),l},[])},o.prototype.reduce=function(s,l){for(var c,u=this.iterator();c=u();)l=s(l,c);return l},o}();r.default=a},function(n,r,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var p in h)h.hasOwnProperty(p)&&(d[p]=h[p])};return function(d,h){f(d,h);function p(){this.constructor=d}d.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(17),s=i(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=100,u=function(f){a(d,f);function d(h){var p=f.call(this,h)||this;return p.scroll=p,p.observer=new MutationObserver(function(g){p.update(g)}),p.observer.observe(p.domNode,l),p.attach(),p}return d.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},d.prototype.deleteAt=function(h,p){this.update(),h===0&&p===this.length()?this.children.forEach(function(g){g.remove()}):f.prototype.deleteAt.call(this,h,p)},d.prototype.formatAt=function(h,p,g,v){this.update(),f.prototype.formatAt.call(this,h,p,g,v)},d.prototype.insertAt=function(h,p,g){this.update(),f.prototype.insertAt.call(this,h,p,g)},d.prototype.optimize=function(h,p){var g=this;h===void 0&&(h=[]),p===void 0&&(p={}),f.prototype.optimize.call(this,p);for(var v=[].slice.call(this.observer.takeRecords());v.length>0;)h.push(v.pop());for(var m=function(w,C){C===void 0&&(C=!0),!(w==null||w===g)&&w.domNode.parentNode!=null&&(w.domNode[s.DATA_KEY].mutations==null&&(w.domNode[s.DATA_KEY].mutations=[]),C&&m(w.parent))},y=function(w){w.domNode[s.DATA_KEY]==null||w.domNode[s.DATA_KEY].mutations==null||(w instanceof o.default&&w.children.forEach(y),w.optimize(p))},x=h,S=0;x.length>0;S+=1){if(S>=c)throw new Error("[Parchment] Maximum optimize iterations reached");for(x.forEach(function(w){var C=s.find(w.target,!0);C!=null&&(C.domNode===w.target&&(w.type==="childList"?(m(s.find(w.previousSibling,!1)),[].forEach.call(w.addedNodes,function(E){var O=s.find(E,!1);m(O,!1),O instanceof o.default&&O.children.forEach(function($){m($,!1)})})):w.type==="attributes"&&m(C.prev)),m(C))}),this.children.forEach(y),x=[].slice.call(this.observer.takeRecords()),v=x.slice();v.length>0;)h.push(v.pop())}},d.prototype.update=function(h,p){var g=this;p===void 0&&(p={}),h=h||this.observer.takeRecords(),h.map(function(v){var m=s.find(v.target,!0);return m==null?null:m.domNode[s.DATA_KEY].mutations==null?(m.domNode[s.DATA_KEY].mutations=[v],m):(m.domNode[s.DATA_KEY].mutations.push(v),null)}).forEach(function(v){v==null||v===g||v.domNode[s.DATA_KEY]==null||v.update(v.domNode[s.DATA_KEY].mutations||[],p)}),this.domNode[s.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,p),this.optimize(h,p)},d.blotName="scroll",d.defaultChild="block",d.scope=s.Scope.BLOCK_BLOT,d.tagName="DIV",d}(o.default);r.default=u},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var h in d)d.hasOwnProperty(h)&&(f[h]=d[h])};return function(f,d){u(f,d);function h(){this.constructor=f}f.prototype=d===null?Object.create(d):(h.prototype=d.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(18),s=i(1);function l(u,f){if(Object.keys(u).length!==Object.keys(f).length)return!1;for(var d in u)if(u[d]!==f[d])return!1;return!0}var c=function(u){a(f,u);function f(){return u!==null&&u.apply(this,arguments)||this}return f.formats=function(d){if(d.tagName!==f.tagName)return u.formats.call(this,d)},f.prototype.format=function(d,h){var p=this;d===this.statics.blotName&&!h?(this.children.forEach(function(g){g instanceof o.default||(g=g.wrap(f.blotName,!0)),p.attributes.copy(g)}),this.unwrap()):u.prototype.format.call(this,d,h)},f.prototype.formatAt=function(d,h,p,g){if(this.formats()[p]!=null||s.query(p,s.Scope.ATTRIBUTE)){var v=this.isolate(d,h);v.format(p,g)}else u.prototype.formatAt.call(this,d,h,p,g)},f.prototype.optimize=function(d){u.prototype.optimize.call(this,d);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var p=this.next;p instanceof f&&p.prev===this&&l(h,p.formats())&&(p.moveChildren(this),p.remove())},f.blotName="inline",f.scope=s.Scope.INLINE_BLOT,f.tagName="SPAN",f}(o.default);r.default=c},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var d in f)f.hasOwnProperty(d)&&(u[d]=f[d])};return function(u,f){c(u,f);function d(){this.constructor=u}u.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(18),s=i(1),l=function(c){a(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.formats=function(f){var d=s.query(u.blotName).tagName;if(f.tagName!==d)return c.formats.call(this,f)},u.prototype.format=function(f,d){s.query(f,s.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!d?this.replaceWith(u.blotName):c.prototype.format.call(this,f,d))},u.prototype.formatAt=function(f,d,h,p){s.query(h,s.Scope.BLOCK)!=null?this.format(h,p):c.prototype.formatAt.call(this,f,d,h,p)},u.prototype.insertAt=function(f,d,h){if(h==null||s.query(d,s.Scope.INLINE)!=null)c.prototype.insertAt.call(this,f,d,h);else{var p=this.split(f),g=s.create(d,h);p.parent.insertBefore(g,p)}},u.prototype.update=function(f,d){navigator.userAgent.match(/Trident/)?this.build():c.prototype.update.call(this,f,d)},u.blotName="block",u.scope=s.Scope.BLOCK_BLOT,u.tagName="P",u}(o.default);r.default=l},function(n,r,i){var a=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var f in u)u.hasOwnProperty(f)&&(c[f]=u[f])};return function(c,u){l(c,u);function f(){this.constructor=c}c.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(19),s=function(l){a(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.formats=function(u){},c.prototype.format=function(u,f){l.prototype.formatAt.call(this,0,this.length(),u,f)},c.prototype.formatAt=function(u,f,d,h){u===0&&f===this.length()?this.format(d,h):l.prototype.formatAt.call(this,u,f,d,h)},c.prototype.formats=function(){return this.statics.formats(this.domNode)},c}(o.default);r.default=s},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var d in f)f.hasOwnProperty(d)&&(u[d]=f[d])};return function(u,f){c(u,f);function d(){this.constructor=u}u.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(19),s=i(1),l=function(c){a(u,c);function u(f){var d=c.call(this,f)||this;return d.text=d.statics.value(d.domNode),d}return u.create=function(f){return document.createTextNode(f)},u.value=function(f){var d=f.data;return d.normalize&&(d=d.normalize()),d},u.prototype.deleteAt=function(f,d){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+d)},u.prototype.index=function(f,d){return this.domNode===f?d:-1},u.prototype.insertAt=function(f,d,h){h==null?(this.text=this.text.slice(0,f)+d+this.text.slice(f),this.domNode.data=this.text):c.prototype.insertAt.call(this,f,d,h)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(f){c.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(f,d){return[this.domNode,f]},u.prototype.split=function(f,d){if(d===void 0&&(d=!1),!d){if(f===0)return this;if(f===this.length())return this.next}var h=s.create(this.domNode.splitText(f));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},u.prototype.update=function(f,d){var h=this;f.some(function(p){return p.type==="characterData"&&p.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=s.Scope.INLINE_BLOT,u}(o.default);r.default=l},function(n,r,i){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,l){return arguments.length>1&&!this.contains(s)==!l?l:o.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,l){return l=l||0,this.substr(l,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,l){var c=this.toString();(typeof l!="number"||!isFinite(l)||Math.floor(l)!==l||l>c.length)&&(l=c.length),l-=s.length;var u=c.indexOf(s,l);return u!==-1&&u===l}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(l){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof l!="function")throw new TypeError("predicate must be a function");for(var c=Object(this),u=c.length>>>0,f=arguments[1],d,h=0;hw.length?S:w,O=S.length>w.length?w:S,$=E.indexOf(O);if($!=-1)return C=[[a,E.substring(0,$)],[o,O],[a,E.substring($+O.length)]],S.length>w.length&&(C[0][0]=C[2][0]=i),C;if(O.length==1)return[[i,S],[a,w]];var P=h(S,w);if(P){var M=P[0],k=P[1],T=P[2],R=P[3],A=P[4],N=s(M,T),L=s(k,R);return N.concat([[o,A]],L)}return c(S,w)}function c(S,w){for(var C=S.length,E=w.length,O=Math.ceil((C+E)/2),$=O,P=2*O,M=new Array(P),k=new Array(P),T=0;TC)L+=2;else if(q>E)N+=2;else if(A){var H=$+R-D;if(H>=0&&H=U)return u(S,w,W,q)}}}for(var G=-B+j;G<=B-F;G+=2){var H=$+G,U;G==-B||G!=B&&k[H-1]C)F+=2;else if(K>E)j+=2;else if(!A){var z=$+R-G;if(z>=0&&z=U)return u(S,w,W,q)}}}}return[[i,S],[a,w]]}function u(S,w,C,E){var O=S.substring(0,C),$=w.substring(0,E),P=S.substring(C),M=w.substring(E),k=s(O,$),T=s(P,M);return k.concat(T)}function f(S,w){if(!S||!w||S.charAt(0)!=w.charAt(0))return 0;for(var C=0,E=Math.min(S.length,w.length),O=E,$=0;Cw.length?S:w,E=S.length>w.length?w:S;if(C.length<4||E.length*2=L.length?[W,q,H,U,z]:null}var $=O(C,E,Math.ceil(C.length/4)),P=O(C,E,Math.ceil(C.length/2)),M;if(!$&&!P)return null;P?$?M=$[4].length>P[4].length?$:P:M=P:M=$;var k,T,R,A;S.length>w.length?(k=M[0],T=M[1],R=M[2],A=M[3]):(R=M[0],A=M[1],k=M[2],T=M[3]);var N=M[4];return[k,T,R,A,N]}function p(S){S.push([o,""]);for(var w=0,C=0,E=0,O="",$="",P;w1?(C!==0&&E!==0&&(P=f($,O),P!==0&&(w-C-E>0&&S[w-C-E-1][0]==o?S[w-C-E-1][1]+=$.substring(0,P):(S.splice(0,0,[o,$.substring(0,P)]),w++),$=$.substring(P),O=O.substring(P)),P=d($,O),P!==0&&(S[w][1]=$.substring($.length-P)+S[w][1],$=$.substring(0,$.length-P),O=O.substring(0,O.length-P))),C===0?S.splice(w-E,C+E,[a,$]):E===0?S.splice(w-C,C+E,[i,O]):S.splice(w-C-E,C+E,[i,O],[a,$]),w=w-C-E+(C?1:0)+(E?1:0)+1):w!==0&&S[w-1][0]==o?(S[w-1][1]+=S[w][1],S.splice(w,1)):w++,E=0,C=0,O="",$="";break}S[S.length-1][1]===""&&S.pop();var M=!1;for(w=1;w0&&E.splice(O+2,0,[P[0],M]),x(E,O,3)}else return S}function y(S){for(var w=!1,C=function(P){return P.charCodeAt(0)>=56320&&P.charCodeAt(0)<=57343},E=function(P){return P.charCodeAt(P.length-1)>=55296&&P.charCodeAt(P.length-1)<=56319},O=2;O0&&$.push(S[O]);return $}function x(S,w,C){for(var E=w+C-1;E>=0&&E>=w-1;E--)if(E+1\r?\n +\<"),this.convert();var pe=this.quill.getFormat(this.quill.selection.savedRange.index);if(pe[E.default.blotName]){var ue=this.container.innerText;return this.container.innerHTML="",new f.default().insert(ue,T({},E.default.blotName,pe[E.default.blotName]))}var Se=this.prepareMatching(),Oe=o(Se,2),_e=Oe[0],Te=Oe[1],je=G(this.container,_e,Te);return H(je,` -`)&&je.ops[je.ops.length-1].attributes==null&&(je=je.compose(new f.default().retain(je.length()-1).delete(1))),L.log("convert",this.container.innerHTML,je),this.container.innerHTML="",je}},{key:"dangerouslyPasteHTML",value:function(de,pe){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;if(typeof de=="string")this.quill.setContents(this.convert(de),pe),this.quill.setSelection(0,g.default.sources.SILENT);else{var Se=this.convert(pe);this.quill.updateContents(new f.default().retain(de).concat(Se),ue),this.quill.setSelection(de+Se.length(),g.default.sources.SILENT)}}},{key:"onPaste",value:function(de){var pe=this;if(!(de.defaultPrevented||!this.quill.isEnabled())){var ue=this.quill.getSelection(),Se=new f.default().retain(ue.index),Oe=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(g.default.sources.SILENT),setTimeout(function(){Se=Se.concat(pe.convert()).delete(ue.length),pe.quill.updateContents(Se,g.default.sources.USER),pe.quill.setSelection(Se.length()-ue.length,g.default.sources.SILENT),pe.quill.scrollingContainer.scrollTop=Oe,pe.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var de=this,pe=[],ue=[];return this.matchers.forEach(function(Se){var Oe=o(Se,2),_e=Oe[0],Te=Oe[1];switch(_e){case Node.TEXT_NODE:ue.push(Te);break;case Node.ELEMENT_NODE:pe.push(Te);break;default:[].forEach.call(de.container.querySelectorAll(_e),function(je){je[j]=je[j]||[],je[j].push(Te)});break}}),[pe,ue]}}]),se}(x.default);z.DEFAULTS={matchers:[],matchVisual:!0};function W(re,se,ge){return(typeof se=="undefined"?"undefined":a(se))==="object"?Object.keys(se).reduce(function(de,pe){return W(de,pe,se[pe])},re):re.reduce(function(de,pe){return pe.attributes&&pe.attributes[se]?de.push(pe):de.insert(pe.insert,(0,c.default)({},T({},se,ge),pe.attributes))},new f.default)}function q(re){if(re.nodeType!==Node.ELEMENT_NODE)return{};var se="__ql-computed-style";return re[se]||(re[se]=window.getComputedStyle(re))}function H(re,se){for(var ge="",de=re.ops.length-1;de>=0&&ge.length-1}function G(re,se,ge){return re.nodeType===re.TEXT_NODE?ge.reduce(function(de,pe){return pe(re,de)},new f.default):re.nodeType===re.ELEMENT_NODE?[].reduce.call(re.childNodes||[],function(de,pe){var ue=G(pe,se,ge);return pe.nodeType===re.ELEMENT_NODE&&(ue=se.reduce(function(Se,Oe){return Oe(pe,Se)},ue),ue=(pe[j]||[]).reduce(function(Se,Oe){return Oe(pe,Se)},ue)),de.concat(ue)},new f.default):new f.default}function K(re,se,ge){return W(ge,re,!0)}function X(re,se){var ge=h.default.Attributor.Attribute.keys(re),de=h.default.Attributor.Class.keys(re),pe=h.default.Attributor.Style.keys(re),ue={};return ge.concat(de).concat(pe).forEach(function(Se){var Oe=h.default.query(Se,h.default.Scope.ATTRIBUTE);Oe!=null&&(ue[Oe.attrName]=Oe.value(re),ue[Oe.attrName])||(Oe=B[Se],Oe!=null&&(Oe.attrName===Se||Oe.keyName===Se)&&(ue[Oe.attrName]=Oe.value(re)||void 0),Oe=D[Se],Oe!=null&&(Oe.attrName===Se||Oe.keyName===Se)&&(Oe=D[Se],ue[Oe.attrName]=Oe.value(re)||void 0))}),Object.keys(ue).length>0&&(se=W(se,ue)),se}function Q(re,se){var ge=h.default.query(re);if(ge==null)return se;if(ge.prototype instanceof h.default.Embed){var de={},pe=ge.value(re);pe!=null&&(de[ge.blotName]=pe,se=new f.default().insert(de,ge.formats(re)))}else typeof ge.formats=="function"&&(se=W(se,ge.blotName,ge.formats(re)));return se}function ee(re,se){return H(se,` +`);J=0,se.forEach(function(ge,de){U?(ie.insertAt(oe+J,X.TAB),J+=X.TAB.length,de===0?Q+=X.TAB.length:ee+=X.TAB.length):ge.startsWith(X.TAB)&&(ie.deleteAt(oe+J,X.TAB.length),J-=X.TAB.length,de===0?Q-=X.TAB.length:ee-=X.TAB.length),J+=ge.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(Q,ee,w.default.sources.SILENT)}}}}function q(U){return{key:U[0].toUpperCase(),shortKey:!0,handler:function(K,X){this.quill.format(U,!X.format[U],w.default.sources.USER)}}}function H(U){if(typeof U=="string"||typeof U=="number")return H({key:U});if((typeof U=="undefined"?"undefined":a(U))==="object"&&(U=(0,c.default)(U,!1)),typeof U.key=="string")if(L.keys[U.key.toUpperCase()]!=null)U.key=L.keys[U.key.toUpperCase()];else if(U.key.length===1)U.key=U.key.toUpperCase().charCodeAt(0);else return null;return U.shortKey&&(U[N]=U.shortKey,delete U.shortKey),U}r.default=L,r.SHORTKEY=N},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function m(y,x){var S=[],w=!0,C=!1,E=void 0;try{for(var O=y[Symbol.iterator](),$;!(w=($=O.next()).done)&&(S.push($.value),!(x&&S.length===x));w=!0);}catch(P){C=!0,E=P}finally{try{!w&&O.return&&O.return()}finally{if(C)throw E}}return S}return function(y,x){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return m(y,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function m(y,x,S){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,x);if(w===void 0){var C=Object.getPrototypeOf(y);return C===null?void 0:m(C,x,S)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(S)}},s=function(){function m(y,x){for(var S=0;S-1}r.default=h,r.sanitize=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},o=function(){function g(m,y){for(var x=0;x1&&arguments[1]!==void 0?arguments[1]:!1,S=this.container.querySelector(".ql-selected");if(y!==S&&(S!=null&&S.classList.remove("ql-selected"),y!=null&&(y.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(y.parentNode.children,y),y.hasAttribute("data-value")?this.label.setAttribute("data-value",y.getAttribute("data-value")):this.label.removeAttribute("data-value"),y.hasAttribute("data-label")?this.label.setAttribute("data-label",y.getAttribute("data-label")):this.label.removeAttribute("data-label"),x))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":a(Event))==="object"){var w=document.createEvent("Event");w.initEvent("change",!0,!0),this.select.dispatchEvent(w)}this.close()}}},{key:"update",value:function(){var y=void 0;if(this.select.selectedIndex>-1){var x=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];y=this.select.options[this.select.selectedIndex],this.selectItem(x)}else this.selectItem(null);var S=y!=null&&y!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",S)}}]),g}();r.default=v},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(0),o=A(a),s=i(5),l=A(s),c=i(4),u=A(c),f=i(16),d=A(f),h=i(25),p=A(h),v=i(24),g=A(v),m=i(35),y=A(m),x=i(6),S=A(x),w=i(22),C=A(w),E=i(7),O=A(E),$=i(55),P=A($),M=i(42),k=A(M),T=i(23),R=A(T);function A(N){return N&&N.__esModule?N:{default:N}}l.default.register({"blots/block":u.default,"blots/block/embed":c.BlockEmbed,"blots/break":d.default,"blots/container":p.default,"blots/cursor":g.default,"blots/embed":y.default,"blots/inline":S.default,"blots/scroll":C.default,"blots/text":O.default,"modules/clipboard":P.default,"modules/history":k.default,"modules/keyboard":R.default}),o.default.register(u.default,d.default,g.default,S.default,C.default,O.default),r.default=l.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(1),o=function(){function s(l){this.domNode=l,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(l){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var c;return Array.isArray(this.tagName)?(typeof l=="string"&&(l=l.toUpperCase(),parseInt(l).toString()===l&&(l=parseInt(l))),typeof l=="number"?c=document.createElement(this.tagName[l-1]):this.tagName.indexOf(l)>-1?c=document.createElement(l):c=document.createElement(this.tagName[0])):c=document.createElement(this.tagName),this.className&&c.classList.add(this.className),c},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var l=this.domNode.cloneNode(!1);return a.create(l)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},s.prototype.deleteAt=function(l,c){var u=this.isolate(l,c);u.remove()},s.prototype.formatAt=function(l,c,u,f){var d=this.isolate(l,c);if(a.query(u,a.Scope.BLOT)!=null&&f)d.wrap(u,f);else if(a.query(u,a.Scope.ATTRIBUTE)!=null){var h=a.create(this.statics.scope);d.wrap(h),h.format(u,f)}},s.prototype.insertAt=function(l,c,u){var f=u==null?a.create("text",c):a.create(c,u),d=this.split(l);this.parent.insertBefore(f,d)},s.prototype.insertInto=function(l,c){c===void 0&&(c=null),this.parent!=null&&this.parent.children.remove(this);var u=null;l.children.insertBefore(this,c),c!=null&&(u=c.domNode),(this.domNode.parentNode!=l.domNode||this.domNode.nextSibling!=u)&&l.domNode.insertBefore(this.domNode,u),this.parent=l,this.attach()},s.prototype.isolate=function(l,c){var u=this.split(l);return u.split(c),u},s.prototype.length=function(){return 1},s.prototype.offset=function(l){return l===void 0&&(l=this.parent),this.parent==null||this==l?0:this.parent.children.offset(this)+this.parent.offset(l)},s.prototype.optimize=function(l){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(l){l.parent!=null&&(l.parent.insertBefore(this,l.next),l.remove())},s.prototype.replaceWith=function(l,c){var u=typeof l=="string"?a.create(l,c):l;return u.replace(this),u},s.prototype.split=function(l,c){return l===0?this:this.next},s.prototype.update=function(l,c){},s.prototype.wrap=function(l,c){var u=typeof l=="string"?a.create(l,c):l;return this.parent!=null&&this.parent.insertBefore(u,this.next),u.appendChild(this),u},s.blotName="abstract",s}();r.default=o},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(12),o=i(32),s=i(33),l=i(1),c=function(){function u(f){this.attributes={},this.domNode=f,this.build()}return u.prototype.attribute=function(f,d){d?f.add(this.domNode,d)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},u.prototype.build=function(){var f=this;this.attributes={};var d=a.default.keys(this.domNode),h=o.default.keys(this.domNode),p=s.default.keys(this.domNode);d.concat(h).concat(p).forEach(function(v){var g=l.query(v,l.Scope.ATTRIBUTE);g instanceof a.default&&(f.attributes[g.attrName]=g)})},u.prototype.copy=function(f){var d=this;Object.keys(this.attributes).forEach(function(h){var p=d.attributes[h].value(d.domNode);f.format(h,p)})},u.prototype.move=function(f){var d=this;this.copy(f),Object.keys(this.attributes).forEach(function(h){d.attributes[h].remove(d.domNode)}),this.attributes={}},u.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(d,h){return d[h]=f.attributes[h].value(f.domNode),d},{})},u}();r.default=c},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var d in f)f.hasOwnProperty(d)&&(u[d]=f[d])};return function(u,f){c(u,f);function d(){this.constructor=u}u.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(12);function s(c,u){var f=c.getAttribute("class")||"";return f.split(/\s+/).filter(function(d){return d.indexOf(u+"-")===0})}var l=function(c){a(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(d){return d.split("-").slice(0,-1).join("-")})},u.prototype.add=function(f,d){return this.canAdd(f,d)?(this.remove(f),f.classList.add(this.keyName+"-"+d),!0):!1},u.prototype.remove=function(f){var d=s(f,this.keyName);d.forEach(function(h){f.classList.remove(h)}),f.classList.length===0&&f.removeAttribute("class")},u.prototype.value=function(f){var d=s(f,this.keyName)[0]||"",h=d.slice(this.keyName.length+1);return this.canAdd(f,h)?h:""},u}(o.default);r.default=l},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var d in f)f.hasOwnProperty(d)&&(u[d]=f[d])};return function(u,f){c(u,f);function d(){this.constructor=u}u.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(12);function s(c){var u=c.split("-"),f=u.slice(1).map(function(d){return d[0].toUpperCase()+d.slice(1)}).join("");return u[0]+f}var l=function(c){a(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(d){var h=d.split(":");return h[0].trim()})},u.prototype.add=function(f,d){return this.canAdd(f,d)?(f.style[s(this.keyName)]=d,!0):!1},u.prototype.remove=function(f){f.style[s(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},u.prototype.value=function(f){var d=f.style[s(this.keyName)];return this.canAdd(f,d)?d:""},u}(o.default);r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function l(c,u){for(var f=0;f$&&this.stack.undo.length>0){var P=this.stack.undo.pop();O=O.compose(P.undo),C=P.redo.compose(C)}else this.lastRecorded=$;this.stack.undo.push({redo:C,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(C){this.stack.undo.forEach(function(E){E.undo=C.transform(E.undo,!0),E.redo=C.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=C.transform(E.undo,!0),E.redo=C.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),S}(f.default);g.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function m(x){var S=x.ops[x.ops.length-1];return S==null?!1:S.insert!=null?typeof S.insert=="string"&&S.insert.endsWith(` +`):S.attributes!=null?Object.keys(S.attributes).some(function(w){return s.default.query(w,s.default.Scope.BLOCK)!=null}):!1}function y(x){var S=x.reduce(function(C,E){return C+=E.delete||0,C},0),w=x.length()-S;return m(x)&&(w-=1),w}r.default=g,r.getLastChangeIndex=y},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var a=function(){function z(W,q){for(var H=0;H0&&arguments[0]!==void 0?arguments[0]:"link",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),U!=null?this.textbox.value=U:H!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+H)||""),this.root.setAttribute("data-mode",H)}},{key:"restoreFocus",value:function(){var H=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=H}},{key:"save",value:function(){var H=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var U=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",H,d.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",H,d.default.sources.USER)),this.quill.root.scrollTop=U;break}case"video":H=B(H);case"formula":{if(!H)break;var G=this.quill.getSelection(!0);if(G!=null){var K=G.index+G.length;this.quill.insertEmbed(K,this.root.getAttribute("data-mode"),H,d.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(K+1," ",d.default.sources.USER),this.quill.setSelection(K+2,d.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),W}(O.default);function B(z){var W=z.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||z.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return W?(W[1]||"https")+"://www.youtube.com/embed/"+W[2]+"?showinfo=0":(W=z.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(W[1]||"https")+"://player.vimeo.com/video/"+W[2]+"/":z}function D(z,W){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;W.forEach(function(H){var U=document.createElement("option");H===q?U.setAttribute("selected","selected"):U.setAttribute("value",H),z.appendChild(U)})}r.BaseTooltip=F,r.default=j},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function o(){this.head=this.tail=null,this.length=0}return o.prototype.append=function(){for(var s=[],l=0;l1&&this.append.apply(this,s.slice(1))},o.prototype.contains=function(s){for(var l,c=this.iterator();l=c();)if(l===s)return!0;return!1},o.prototype.insertBefore=function(s,l){s&&(s.next=l,l!=null?(s.prev=l.prev,l.prev!=null&&(l.prev.next=s),l.prev=s,l===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},o.prototype.offset=function(s){for(var l=0,c=this.head;c!=null;){if(c===s)return l;l+=c.length(),c=c.next}return-1},o.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},o.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var l=s;return s!=null&&(s=s.next),l}},o.prototype.find=function(s,l){l===void 0&&(l=!1);for(var c,u=this.iterator();c=u();){var f=c.length();if(sp?c(h,s-p,Math.min(l,p+g-s)):c(h,0,Math.min(g,s+l-p)),p+=g}},o.prototype.map=function(s){return this.reduce(function(l,c){return l.push(s(c)),l},[])},o.prototype.reduce=function(s,l){for(var c,u=this.iterator();c=u();)l=s(l,c);return l},o}();r.default=a},function(n,r,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var p in h)h.hasOwnProperty(p)&&(d[p]=h[p])};return function(d,h){f(d,h);function p(){this.constructor=d}d.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(17),s=i(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=100,u=function(f){a(d,f);function d(h){var p=f.call(this,h)||this;return p.scroll=p,p.observer=new MutationObserver(function(v){p.update(v)}),p.observer.observe(p.domNode,l),p.attach(),p}return d.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},d.prototype.deleteAt=function(h,p){this.update(),h===0&&p===this.length()?this.children.forEach(function(v){v.remove()}):f.prototype.deleteAt.call(this,h,p)},d.prototype.formatAt=function(h,p,v,g){this.update(),f.prototype.formatAt.call(this,h,p,v,g)},d.prototype.insertAt=function(h,p,v){this.update(),f.prototype.insertAt.call(this,h,p,v)},d.prototype.optimize=function(h,p){var v=this;h===void 0&&(h=[]),p===void 0&&(p={}),f.prototype.optimize.call(this,p);for(var g=[].slice.call(this.observer.takeRecords());g.length>0;)h.push(g.pop());for(var m=function(w,C){C===void 0&&(C=!0),!(w==null||w===v)&&w.domNode.parentNode!=null&&(w.domNode[s.DATA_KEY].mutations==null&&(w.domNode[s.DATA_KEY].mutations=[]),C&&m(w.parent))},y=function(w){w.domNode[s.DATA_KEY]==null||w.domNode[s.DATA_KEY].mutations==null||(w instanceof o.default&&w.children.forEach(y),w.optimize(p))},x=h,S=0;x.length>0;S+=1){if(S>=c)throw new Error("[Parchment] Maximum optimize iterations reached");for(x.forEach(function(w){var C=s.find(w.target,!0);C!=null&&(C.domNode===w.target&&(w.type==="childList"?(m(s.find(w.previousSibling,!1)),[].forEach.call(w.addedNodes,function(E){var O=s.find(E,!1);m(O,!1),O instanceof o.default&&O.children.forEach(function($){m($,!1)})})):w.type==="attributes"&&m(C.prev)),m(C))}),this.children.forEach(y),x=[].slice.call(this.observer.takeRecords()),g=x.slice();g.length>0;)h.push(g.pop())}},d.prototype.update=function(h,p){var v=this;p===void 0&&(p={}),h=h||this.observer.takeRecords(),h.map(function(g){var m=s.find(g.target,!0);return m==null?null:m.domNode[s.DATA_KEY].mutations==null?(m.domNode[s.DATA_KEY].mutations=[g],m):(m.domNode[s.DATA_KEY].mutations.push(g),null)}).forEach(function(g){g==null||g===v||g.domNode[s.DATA_KEY]==null||g.update(g.domNode[s.DATA_KEY].mutations||[],p)}),this.domNode[s.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,p),this.optimize(h,p)},d.blotName="scroll",d.defaultChild="block",d.scope=s.Scope.BLOCK_BLOT,d.tagName="DIV",d}(o.default);r.default=u},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var h in d)d.hasOwnProperty(h)&&(f[h]=d[h])};return function(f,d){u(f,d);function h(){this.constructor=f}f.prototype=d===null?Object.create(d):(h.prototype=d.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(18),s=i(1);function l(u,f){if(Object.keys(u).length!==Object.keys(f).length)return!1;for(var d in u)if(u[d]!==f[d])return!1;return!0}var c=function(u){a(f,u);function f(){return u!==null&&u.apply(this,arguments)||this}return f.formats=function(d){if(d.tagName!==f.tagName)return u.formats.call(this,d)},f.prototype.format=function(d,h){var p=this;d===this.statics.blotName&&!h?(this.children.forEach(function(v){v instanceof o.default||(v=v.wrap(f.blotName,!0)),p.attributes.copy(v)}),this.unwrap()):u.prototype.format.call(this,d,h)},f.prototype.formatAt=function(d,h,p,v){if(this.formats()[p]!=null||s.query(p,s.Scope.ATTRIBUTE)){var g=this.isolate(d,h);g.format(p,v)}else u.prototype.formatAt.call(this,d,h,p,v)},f.prototype.optimize=function(d){u.prototype.optimize.call(this,d);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var p=this.next;p instanceof f&&p.prev===this&&l(h,p.formats())&&(p.moveChildren(this),p.remove())},f.blotName="inline",f.scope=s.Scope.INLINE_BLOT,f.tagName="SPAN",f}(o.default);r.default=c},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var d in f)f.hasOwnProperty(d)&&(u[d]=f[d])};return function(u,f){c(u,f);function d(){this.constructor=u}u.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(18),s=i(1),l=function(c){a(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.formats=function(f){var d=s.query(u.blotName).tagName;if(f.tagName!==d)return c.formats.call(this,f)},u.prototype.format=function(f,d){s.query(f,s.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!d?this.replaceWith(u.blotName):c.prototype.format.call(this,f,d))},u.prototype.formatAt=function(f,d,h,p){s.query(h,s.Scope.BLOCK)!=null?this.format(h,p):c.prototype.formatAt.call(this,f,d,h,p)},u.prototype.insertAt=function(f,d,h){if(h==null||s.query(d,s.Scope.INLINE)!=null)c.prototype.insertAt.call(this,f,d,h);else{var p=this.split(f),v=s.create(d,h);p.parent.insertBefore(v,p)}},u.prototype.update=function(f,d){navigator.userAgent.match(/Trident/)?this.build():c.prototype.update.call(this,f,d)},u.blotName="block",u.scope=s.Scope.BLOCK_BLOT,u.tagName="P",u}(o.default);r.default=l},function(n,r,i){var a=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var f in u)u.hasOwnProperty(f)&&(c[f]=u[f])};return function(c,u){l(c,u);function f(){this.constructor=c}c.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(19),s=function(l){a(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.formats=function(u){},c.prototype.format=function(u,f){l.prototype.formatAt.call(this,0,this.length(),u,f)},c.prototype.formatAt=function(u,f,d,h){u===0&&f===this.length()?this.format(d,h):l.prototype.formatAt.call(this,u,f,d,h)},c.prototype.formats=function(){return this.statics.formats(this.domNode)},c}(o.default);r.default=s},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var d in f)f.hasOwnProperty(d)&&(u[d]=f[d])};return function(u,f){c(u,f);function d(){this.constructor=u}u.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=i(19),s=i(1),l=function(c){a(u,c);function u(f){var d=c.call(this,f)||this;return d.text=d.statics.value(d.domNode),d}return u.create=function(f){return document.createTextNode(f)},u.value=function(f){var d=f.data;return d.normalize&&(d=d.normalize()),d},u.prototype.deleteAt=function(f,d){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+d)},u.prototype.index=function(f,d){return this.domNode===f?d:-1},u.prototype.insertAt=function(f,d,h){h==null?(this.text=this.text.slice(0,f)+d+this.text.slice(f),this.domNode.data=this.text):c.prototype.insertAt.call(this,f,d,h)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(f){c.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(f,d){return[this.domNode,f]},u.prototype.split=function(f,d){if(d===void 0&&(d=!1),!d){if(f===0)return this;if(f===this.length())return this.next}var h=s.create(this.domNode.splitText(f));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},u.prototype.update=function(f,d){var h=this;f.some(function(p){return p.type==="characterData"&&p.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=s.Scope.INLINE_BLOT,u}(o.default);r.default=l},function(n,r,i){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,l){return arguments.length>1&&!this.contains(s)==!l?l:o.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,l){return l=l||0,this.substr(l,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,l){var c=this.toString();(typeof l!="number"||!isFinite(l)||Math.floor(l)!==l||l>c.length)&&(l=c.length),l-=s.length;var u=c.indexOf(s,l);return u!==-1&&u===l}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(l){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof l!="function")throw new TypeError("predicate must be a function");for(var c=Object(this),u=c.length>>>0,f=arguments[1],d,h=0;hw.length?S:w,O=S.length>w.length?w:S,$=E.indexOf(O);if($!=-1)return C=[[a,E.substring(0,$)],[o,O],[a,E.substring($+O.length)]],S.length>w.length&&(C[0][0]=C[2][0]=i),C;if(O.length==1)return[[i,S],[a,w]];var P=h(S,w);if(P){var M=P[0],k=P[1],T=P[2],R=P[3],A=P[4],N=s(M,T),L=s(k,R);return N.concat([[o,A]],L)}return c(S,w)}function c(S,w){for(var C=S.length,E=w.length,O=Math.ceil((C+E)/2),$=O,P=2*O,M=new Array(P),k=new Array(P),T=0;TC)L+=2;else if(q>E)N+=2;else if(A){var H=$+R-D;if(H>=0&&H=U)return u(S,w,W,q)}}}for(var G=-B+j;G<=B-F;G+=2){var H=$+G,U;G==-B||G!=B&&k[H-1]C)F+=2;else if(K>E)j+=2;else if(!A){var z=$+R-G;if(z>=0&&z=U)return u(S,w,W,q)}}}}return[[i,S],[a,w]]}function u(S,w,C,E){var O=S.substring(0,C),$=w.substring(0,E),P=S.substring(C),M=w.substring(E),k=s(O,$),T=s(P,M);return k.concat(T)}function f(S,w){if(!S||!w||S.charAt(0)!=w.charAt(0))return 0;for(var C=0,E=Math.min(S.length,w.length),O=E,$=0;Cw.length?S:w,E=S.length>w.length?w:S;if(C.length<4||E.length*2=L.length?[W,q,H,U,z]:null}var $=O(C,E,Math.ceil(C.length/4)),P=O(C,E,Math.ceil(C.length/2)),M;if(!$&&!P)return null;P?$?M=$[4].length>P[4].length?$:P:M=P:M=$;var k,T,R,A;S.length>w.length?(k=M[0],T=M[1],R=M[2],A=M[3]):(R=M[0],A=M[1],k=M[2],T=M[3]);var N=M[4];return[k,T,R,A,N]}function p(S){S.push([o,""]);for(var w=0,C=0,E=0,O="",$="",P;w1?(C!==0&&E!==0&&(P=f($,O),P!==0&&(w-C-E>0&&S[w-C-E-1][0]==o?S[w-C-E-1][1]+=$.substring(0,P):(S.splice(0,0,[o,$.substring(0,P)]),w++),$=$.substring(P),O=O.substring(P)),P=d($,O),P!==0&&(S[w][1]=$.substring($.length-P)+S[w][1],$=$.substring(0,$.length-P),O=O.substring(0,O.length-P))),C===0?S.splice(w-E,C+E,[a,$]):E===0?S.splice(w-C,C+E,[i,O]):S.splice(w-C-E,C+E,[i,O],[a,$]),w=w-C-E+(C?1:0)+(E?1:0)+1):w!==0&&S[w-1][0]==o?(S[w-1][1]+=S[w][1],S.splice(w,1)):w++,E=0,C=0,O="",$="";break}S[S.length-1][1]===""&&S.pop();var M=!1;for(w=1;w0&&E.splice(O+2,0,[P[0],M]),x(E,O,3)}else return S}function y(S){for(var w=!1,C=function(P){return P.charCodeAt(0)>=56320&&P.charCodeAt(0)<=57343},E=function(P){return P.charCodeAt(P.length-1)>=55296&&P.charCodeAt(P.length-1)<=56319},O=2;O0&&$.push(S[O]);return $}function x(S,w,C){for(var E=w+C-1;E>=0&&E>=w-1;E--)if(E+1\r?\n +\<"),this.convert();var pe=this.quill.getFormat(this.quill.selection.savedRange.index);if(pe[E.default.blotName]){var fe=this.container.innerText;return this.container.innerHTML="",new f.default().insert(fe,T({},E.default.blotName,pe[E.default.blotName]))}var xe=this.prepareMatching(),Oe=o(xe,2),_e=Oe[0],Te=Oe[1],Fe=G(this.container,_e,Te);return H(Fe,` +`)&&Fe.ops[Fe.ops.length-1].attributes==null&&(Fe=Fe.compose(new f.default().retain(Fe.length()-1).delete(1))),L.log("convert",this.container.innerHTML,Fe),this.container.innerHTML="",Fe}},{key:"dangerouslyPasteHTML",value:function(de,pe){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof de=="string")this.quill.setContents(this.convert(de),pe),this.quill.setSelection(0,v.default.sources.SILENT);else{var xe=this.convert(pe);this.quill.updateContents(new f.default().retain(de).concat(xe),fe),this.quill.setSelection(de+xe.length(),v.default.sources.SILENT)}}},{key:"onPaste",value:function(de){var pe=this;if(!(de.defaultPrevented||!this.quill.isEnabled())){var fe=this.quill.getSelection(),xe=new f.default().retain(fe.index),Oe=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(v.default.sources.SILENT),setTimeout(function(){xe=xe.concat(pe.convert()).delete(fe.length),pe.quill.updateContents(xe,v.default.sources.USER),pe.quill.setSelection(xe.length()-fe.length,v.default.sources.SILENT),pe.quill.scrollingContainer.scrollTop=Oe,pe.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var de=this,pe=[],fe=[];return this.matchers.forEach(function(xe){var Oe=o(xe,2),_e=Oe[0],Te=Oe[1];switch(_e){case Node.TEXT_NODE:fe.push(Te);break;case Node.ELEMENT_NODE:pe.push(Te);break;default:[].forEach.call(de.container.querySelectorAll(_e),function(Fe){Fe[j]=Fe[j]||[],Fe[j].push(Te)});break}}),[pe,fe]}}]),se}(x.default);z.DEFAULTS={matchers:[],matchVisual:!0};function W(re,se,ge){return(typeof se=="undefined"?"undefined":a(se))==="object"?Object.keys(se).reduce(function(de,pe){return W(de,pe,se[pe])},re):re.reduce(function(de,pe){return pe.attributes&&pe.attributes[se]?de.push(pe):de.insert(pe.insert,(0,c.default)({},T({},se,ge),pe.attributes))},new f.default)}function q(re){if(re.nodeType!==Node.ELEMENT_NODE)return{};var se="__ql-computed-style";return re[se]||(re[se]=window.getComputedStyle(re))}function H(re,se){for(var ge="",de=re.ops.length-1;de>=0&&ge.length-1}function G(re,se,ge){return re.nodeType===re.TEXT_NODE?ge.reduce(function(de,pe){return pe(re,de)},new f.default):re.nodeType===re.ELEMENT_NODE?[].reduce.call(re.childNodes||[],function(de,pe){var fe=G(pe,se,ge);return pe.nodeType===re.ELEMENT_NODE&&(fe=se.reduce(function(xe,Oe){return Oe(pe,xe)},fe),fe=(pe[j]||[]).reduce(function(xe,Oe){return Oe(pe,xe)},fe)),de.concat(fe)},new f.default):new f.default}function K(re,se,ge){return W(ge,re,!0)}function X(re,se){var ge=h.default.Attributor.Attribute.keys(re),de=h.default.Attributor.Class.keys(re),pe=h.default.Attributor.Style.keys(re),fe={};return ge.concat(de).concat(pe).forEach(function(xe){var Oe=h.default.query(xe,h.default.Scope.ATTRIBUTE);Oe!=null&&(fe[Oe.attrName]=Oe.value(re),fe[Oe.attrName])||(Oe=B[xe],Oe!=null&&(Oe.attrName===xe||Oe.keyName===xe)&&(fe[Oe.attrName]=Oe.value(re)||void 0),Oe=D[xe],Oe!=null&&(Oe.attrName===xe||Oe.keyName===xe)&&(Oe=D[xe],fe[Oe.attrName]=Oe.value(re)||void 0))}),Object.keys(fe).length>0&&(se=W(se,fe)),se}function Q(re,se){var ge=h.default.query(re);if(ge==null)return se;if(ge.prototype instanceof h.default.Embed){var de={},pe=ge.value(re);pe!=null&&(de[ge.blotName]=pe,se=new f.default().insert(de,ge.formats(re)))}else typeof ge.formats=="function"&&(se=W(se,ge.blotName,ge.formats(re)));return se}function ee(re,se){return H(se,` `)||se.insert(` `),se}function ne(){return new f.default}function te(re,se){var ge=h.default.query(re);if(ge==null||ge.blotName!=="list-item"||!H(se,` `))return se;for(var de=-1,pe=re.parentNode;!pe.classList.contains("ql-clipboard");)(h.default.query(pe)||{}).blotName==="list"&&(de+=1),pe=pe.parentNode;return de<=0?se:se.compose(new f.default().retain(se.length()-1).retain(1,{indent:de}))}function ie(re,se){return H(se,` @@ -561,7 +561,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `),se}function J(re,se){if(U(re)&&re.nextElementSibling!=null&&!H(se,` `)){var ge=re.offsetHeight+parseFloat(q(re).marginTop)+parseFloat(q(re).marginBottom);re.nextElementSibling.offsetTop>re.offsetTop+ge*1.5&&se.insert(` -`)}return se}function le(re,se){var ge={},de=re.style||{};return de.fontStyle&&q(re).fontStyle==="italic"&&(ge.italic=!0),de.fontWeight&&(q(re).fontWeight.startsWith("bold")||parseInt(q(re).fontWeight)>=700)&&(ge.bold=!0),Object.keys(ge).length>0&&(se=W(se,ge)),parseFloat(de.textIndent||0)>0&&(se=new f.default().insert(" ").concat(se)),se}function oe(re,se){var ge=re.data;if(re.parentNode.tagName==="O:P")return se.insert(ge.trim());if(ge.trim().length===0&&re.parentNode.classList.contains("ql-clipboard"))return se;if(!q(re.parentNode).whiteSpace.startsWith("pre")){var de=function(ue,Se){return Se=Se.replace(/[^\u00a0]/g,""),Se.length<1&&ue?" ":Se};ge=ge.replace(/\r\n/g," ").replace(/\n/g," "),ge=ge.replace(/\s\s+/g,de.bind(de,!0)),(re.previousSibling==null&&U(re.parentNode)||re.previousSibling!=null&&U(re.previousSibling))&&(ge=ge.replace(/^\s+/,de.bind(de,!1))),(re.nextSibling==null&&U(re.parentNode)||re.nextSibling!=null&&U(re.nextSibling))&&(ge=ge.replace(/\s+$/,de.bind(de,!1)))}return se.insert(ge)}r.default=z,r.matchAttributor=X,r.matchBlot=Q,r.matchNewline=ie,r.matchSpacing=J,r.matchText=oe},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function p(g,v){for(var m=0;m '},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function p(g,v){for(var m=0;mh.right&&(g=h.right-p.right,this.root.style.left=f+g+"px"),p.lefth.bottom){var v=p.bottom-p.top,m=u.bottom-u.top+v;this.root.style.top=d-m+"px",this.root.classList.add("ql-flip")}return g}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function P(M,k){var T=[],R=!0,A=!1,N=void 0;try{for(var L=M[Symbol.iterator](),j;!(R=(j=L.next()).done)&&(T.push(j.value),!(k&&T.length===k));R=!0);}catch(F){A=!0,N=F}finally{try{!R&&L.return&&L.return()}finally{if(A)throw N}}return T}return function(M,k){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return P(M,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function P(M,k,T){M===null&&(M=Function.prototype);var R=Object.getOwnPropertyDescriptor(M,k);if(R===void 0){var A=Object.getPrototypeOf(M);return A===null?void 0:P(A,k,T)}else{if("value"in R)return R.value;var N=R.get;return N===void 0?void 0:N.call(T)}},s=function(){function P(M,k){for(var T=0;T','','',''].join(""),r.default=O},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(29),o=pe(a),s=i(36),l=i(38),c=i(64),u=i(65),f=pe(u),d=i(66),h=pe(d),p=i(67),g=pe(p),v=i(37),m=i(26),y=i(39),x=i(40),S=i(56),w=pe(S),C=i(68),E=pe(C),O=i(27),$=pe(O),P=i(69),M=pe(P),k=i(70),T=pe(k),R=i(71),A=pe(R),N=i(72),L=pe(N),j=i(73),F=pe(j),B=i(13),D=pe(B),z=i(74),W=pe(z),q=i(75),H=pe(q),U=i(57),G=pe(U),K=i(41),X=pe(K),Q=i(28),ee=pe(Q),ne=i(59),te=pe(ne),ie=i(60),J=pe(ie),le=i(61),oe=pe(le),re=i(108),se=pe(re),ge=i(62),de=pe(ge);function pe(ue){return ue&&ue.__esModule?ue:{default:ue}}o.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":v.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":y.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":v.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":y.FontStyle,"attributors/style/size":x.SizeStyle},!0),o.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":c.IndentClass,"formats/background":v.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":y.FontClass,"formats/size":x.SizeClass,"formats/blockquote":f.default,"formats/code-block":D.default,"formats/header":h.default,"formats/list":g.default,"formats/bold":w.default,"formats/code":B.Code,"formats/italic":E.default,"formats/link":$.default,"formats/script":M.default,"formats/strike":T.default,"formats/underline":A.default,"formats/image":L.default,"formats/video":F.default,"formats/list/item":p.ListItem,"modules/formula":W.default,"modules/syntax":H.default,"modules/toolbar":G.default,"themes/bubble":se.default,"themes/snow":de.default,"ui/icons":X.default,"ui/picker":ee.default,"ui/icon-picker":J.default,"ui/color-picker":te.default,"ui/tooltip":oe.default},!0),r.default=o.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var a=function(){function g(v,m){for(var y=0;y0&&this.children.tail.format(E,O)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,O){if(E instanceof y)o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,E,O);else{var $=O==null?this.length():O.offset(this),P=this.split($);P.parent.insertBefore(E,P)}}},{key:"optimize",value:function(E){o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,E);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var O=l.default.create(this.statics.defaultChild);E.moveChildren(O),this.appendChild(O)}o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,E)}}]),w}(d.default);x.blotName="list",x.scope=l.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[y],r.ListItem=y,r.default=x},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(56),o=s(a);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function c(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function u(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=function(d){u(h,d);function h(){return l(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(o.default);f.blotName="italic",f.tagName=["EM","I"],r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function p(g,v){for(var m=0;m-1?S?this.domNode.setAttribute(x,S):this.domNode.removeAttribute(x):o(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,x,S)}}],[{key:"create",value:function(x){var S=o(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,x);return typeof x=="string"&&S.setAttribute("src",this.sanitize(x)),S}},{key:"formats",value:function(x){return p.reduce(function(S,w){return x.hasAttribute(w)&&(S[w]=x.getAttribute(w)),S},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,c.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),m}(l.default.Embed);g.blotName="image",g.tagName="IMG",r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function v(m,y){for(var x=0;x-1?S?this.domNode.setAttribute(x,S):this.domNode.removeAttribute(x):o(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,x,S)}}],[{key:"create",value:function(x){var S=o(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,x);return S.setAttribute("frameborder","0"),S.setAttribute("allowfullscreen",!0),S.setAttribute("src",this.sanitize(x)),S}},{key:"formats",value:function(x){return p.reduce(function(S,w){return x.hasAttribute(w)&&(S[w]=x.getAttribute(w)),S},{})}},{key:"sanitize",value:function(x){return c.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),m}(s.BlockEmbed);g.blotName="video",g.className="ql-video",g.tagName="IFRAME",r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var a=function(){function x(S,w){for(var C=0;C0||this.cachedText==null)&&(this.domNode.innerHTML=$(P),this.domNode.normalize(),this.attach()),this.cachedText=P)}}]),E}(p.default);x.className="ql-syntax";var S=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),w=function(C){y(E,C),a(E,null,[{key:"register",value:function(){u.default.register(S,!0),u.default.register(x,!0)}}]);function E(O,$){v(this,E);var P=m(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,O,$));if(typeof P.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var M=null;return P.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(M),M=setTimeout(function(){P.highlight(),M=null},P.options.interval)}),P.highlight(),P}return a(E,[{key:"highlight",value:function(){var $=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var P=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(M){M.highlight($.options.highlight)}),this.quill.update(u.default.sources.SILENT),P!=null&&this.quill.setSelection(P,u.default.sources.SILENT)}}}]),E}(d.default);w.DEFAULTS={highlight:function(){return window.hljs==null?null:function(C){var E=window.hljs.highlightAuto(C);return E.value}}(),interval:1e3},r.CodeBlock=x,r.CodeToken=S,r.default=w},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var a=function E(O,$,P){O===null&&(O=Function.prototype);var M=Object.getOwnPropertyDescriptor(O,$);if(M===void 0){var k=Object.getPrototypeOf(O);return k===null?void 0:E(k,$,P)}else{if("value"in M)return M.value;var T=M.get;return T===void 0?void 0:T.call(P)}},o=function(){function E(O,$){for(var P=0;P<$.length;P++){var M=$[P];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(O,M.key,M)}}return function(O,$,P){return $&&E(O.prototype,$),P&&E(O,P),O}}(),s=i(3),l=v(s),c=i(8),u=v(c),f=i(43),d=v(f),h=i(15),p=i(41),g=v(p);function v(E){return E&&E.__esModule?E:{default:E}}function m(E,O){if(!(E instanceof O))throw new TypeError("Cannot call a class as a function")}function y(E,O){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:E}function x(E,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);E.prototype=Object.create(O&&O.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(E,O):E.__proto__=O)}var S=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],w=function(E){x(O,E);function O($,P){m(this,O),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=S);var M=y(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,$,P));return M.quill.container.classList.add("ql-bubble"),M}return o(O,[{key:"extendToolbar",value:function(P){this.tooltip=new C(this.quill,this.options.bounds),this.tooltip.root.appendChild(P.container),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),g.default)}}]),O}(d.default);w.DEFAULTS=(0,l.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var C=function(E){x(O,E);function O($,P){m(this,O);var M=y(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,$,P));return M.quill.on(u.default.events.EDITOR_CHANGE,function(k,T,R,A){if(k===u.default.events.SELECTION_CHANGE)if(T!=null&&T.length>0&&A===u.default.sources.USER){M.show(),M.root.style.left="0px",M.root.style.width="",M.root.style.width=M.root.offsetWidth+"px";var N=M.quill.getLines(T.index,T.length);if(N.length===1)M.position(M.quill.getBounds(T));else{var L=N[N.length-1],j=M.quill.getIndex(L),F=Math.min(L.length()-1,T.index+T.length-j),B=M.quill.getBounds(new h.Range(j,F));M.position(B)}}else document.activeElement!==M.textbox&&M.quill.hasFocus()&&M.hide()}),M}return o(O,[{key:"listen",value:function(){var P=this;a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){P.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!P.root.classList.contains("ql-hidden")){var M=P.quill.getSelection();M!=null&&P.position(P.quill.getBounds(M))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(P){var M=a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,P),k=this.root.querySelector(".ql-tooltip-arrow");if(k.style.marginLeft="",M===0)return M;k.style.marginLeft=-1*M-k.offsetWidth/2+"px"}}]),O}(f.BaseTooltip);C.TEMPLATE=['','
','','',"
"].join(""),r.BubbleTooltip=C,r.default=w},function(n,r,i){n.exports=i(63)}]).default})})(Qre);var bKe=Qre.exports,xKe=Ft&&Ft.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)i.hasOwnProperty(a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ZO=Ft&&Ft.__assign||function(){return ZO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1)throw new Error("The Quill editing area can only be composed of a single React element.");if(cu.default.Children.count(n.children)){var i=cu.default.Children.only(n.children);if(((r=i)===null||r===void 0?void 0:r.type)==="textarea")throw new Error("Quill does not support editing on a