PageSourceSearch

https://app.curium.ai/assets/common-BRuPc3zH.js

js curium.ai collected 2026-10-05 12:03:18 UTC 906,853 bytes, 2,382 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-CNXkH4WA.js","assets/rolldown-runtime-CiL28kJ5.js","assets/jsx-runtime-BSskQZ5n.js","assets/utils-De-Lw5xj.js","assets/useNavigation-F6eTPVsZ.js","assets/styled-DWm8AvmK.js","assets/analytics-Cz1rvsix.js","assets/defineProperty-CKw65_gT.js","assets/CRSelect-Dqowgnnh.js","assets/admin-DQsFeYl6.js","assets/contexts-BtgG66h2.js","assets/login-DjrIRX5H.js","assets/index-CAc0AsFW.js","assets/components-DI54i5M7.js","assets/routing-DH22dNWT.js","assets/useQuery-Dbv59tr5.js","assets/useFeatureFlag-B59tmUlI.js","assets/agentConfig-81I7xoV3.js","assets/chatBreadcrumb-D8t_ul9J.js","assets/brandLinkParam-Z-10_oVJ.js","assets/useInsightDeeplink-C7ar4aCz.js","assets/index-DHc_cqPe.css","assets/section-DJAOBuhO.js","assets/CopyOutlined-BTbCTS4P.js","assets/DownloadOutlined-DhC64JtJ.js","assets/CRLineChart-8zMV8L0A.js","assets/utils-CQsdcM6x.js","assets/triggerDownload-DZsGAaOw.js","assets/FilePdfOutlined-COgyclgX.js","assets/charts-BFSsYd3S.js","assets/placeholder-DPbS8e2F.js","assets/render-DGMnI8WF.js","assets/CRSummaryCardSection-D32q0y_m.js","assets/CRPaginationSection-CLkXoEd4.js","assets/CRInsightTableSection-D7Pqki2z.js","assets/curium-logo-DlZDDOqD.js","assets/forgot-password-BHtoR9j8.js","assets/reset-password-CZQjOe7w.js","assets/password-C6vsVWa0.js","assets/settings-Dudzt-js.js","assets/ProvisioningSection-CAbIBC-H.js","assets/EditOutlined-DNf1QJH7.js","assets/InfoCircleOutlined-UOST_K0L.js","assets/switch-BPZedBiC.js","assets/alert-B56flVV4.js","assets/FileTextOutlined-DFrVE6zT.js","assets/LinkOutlined-CMRvq9PS.js","assets/overview-D-VQnwxx.js","assets/ArrowRightOutlined-BaObarCg.js","assets/insightEmptyState-DpLpm2hW.js","assets/utils-3K7sJVLW.js","assets/components-B8xFm9cc.js","assets/runAnchor-JaugtpVV.js","assets/components-hEmGH5Um.js","assets/insightDetailQueries-DCSDDIX7.js","assets/link-square-DE8PbVts.js","assets/file-DwPn-W1N.js","assets/insightCardStyled-CCsirRUA.js","assets/InsightsListSection-Di3fVTyv.js","assets/CurieIcon-yUPAIFD8.js","assets/insightCardUtils-VD_ILg2g.js","assets/writerEvidence-kBtwr-06.js","assets/AnswerExamplesSection-BIgSN6kC.js","assets/remark-De2wWyiM.js","assets/texSpans-oZ_K483g.js","assets/NarrationDetail-CPlnpHxV.js","assets/route-D7UEDpme.js","assets/publisher-DNuSLeZU.js","assets/useCitationSummary-DVd0Gtbz.js","assets/ownedContentAnchor-DHn65M50.js","assets/PublisherMetricTiles-Y9-jJGuR.js","assets/publisher-CVITqYnL.js","assets/styled-75XbREdn.js","assets/utils-BZR9CMx7.js","assets/PublisherLeaderboard-DWkVPIMP.js","assets/publisher-XDURDjEu.js","assets/tables-C8gGZ87z.js","assets/useMutation-BMXFYE-3.js","assets/answerNavStash-DeteRByR.js","assets/utils-BU2oTF4Q.js","assets/CRSourcesPerAnswerCard-C-dU4_qM.js","assets/utils-DkJD0Sxi.js","assets/publisher-sT9T3gWw.js","assets/utils-D93H1GrX.js","assets/publisher-epNoaJRu.js","assets/utils-B_LnCWmE.js","assets/publisher-MUsgDTkw.js","assets/PublisherTopSourcesTables-DlbW7wOe.js","assets/PublisherCitationTrend-GAG_GrEW.js","assets/styled-Bpvi6GT3.js","assets/publisher-DopgIA_P.js","assets/components-Cn1H_cXe.js","assets/publisher-Cqe_4az_.js","assets/AssignToQuerySetDrawer-CWgQ-NUD.js","assets/intelligence-BSoFI66R.js","assets/route-D0VJyBxN.js","assets/competitors-BCcKMU-l.js","assets/components-CRctvFU9.js","assets/detailed-DXEN-grT.js","assets/optimization-BQEp7tnZ.js","assets/ToolCallGroup-DPBMl6JK.js","assets/ReloadOutlined-CMxSyMXr.js","assets/CRMarkdown-DnovpFD-.js","assets/CopyButton-DyxB9vf-.js","assets/pendingDraftSearchParams-i59Y4ac8.js","assets/WarningOutlined-BJU3dOtu.js","assets/pacedReveal-BBtlGiXT.js","assets/QueryAttributionSection-BS2_htAt.js","assets/grouping-sWsLpOgL.js","assets/ExperimentAttributionSection-CKHyLItv.js","assets/optimizationComponents-9P91dkXV.js","assets/csv-Dfap0JpN.js","assets/add-line-34wgk45S.js","assets/CRDiffViewSection-BKkTu6Wb.js","assets/lamp-charge-KlZcLHBy.js","assets/pageLink-B3b-Nl4T.js","assets/BlogDraftLearnWhyDrawer-DNPmK6jH.js","assets/detailed-CRctIaeL.js","assets/UpOutlined-DSkKNPDn.js","assets/learnWhy-Ii193L6j.js","assets/useDrawerCrumbLabel-BeQPAq9e.js","assets/draftLearnWhy-BFqH5t-s.js","assets/v2-DMh5Tvmw.js","assets/components-BlgrNGES.js","assets/detailed-cmgv9ZYC.js","assets/answer-redirect-CXAmgvvf.js","assets/brand-link-DE4HG4D-.js","assets/answer-detailed-BZ4m2jrs.js","assets/components-BHAP3SLl.js","assets/html-CEsLsBAP.js","assets/experiment-OVtO1_lL.js","assets/utils-PiYkgEAF.js","assets/topic-detailed-BisVwDpe.js","assets/scope-detail-BvR5Wf22.js","assets/insight-detailed-BjlGkg9u.js","assets/described-answers-DhB6Kai4.js","assets/route-BVs7foP0.js","assets/components-Boa39kg4.js","assets/EarnedMediaSection-4Hu93E3U.js","assets/route-B33T9U8T.js","assets/route-PSrsRgcy.js","assets/page-expansion-D8UCjbJX.js","assets/components-CRkVYN8F.js","assets/detailed-CnfTa4V0.js","assets/MoreOutlined-sVRlc7bS.js","assets/recommendations-my0X6s-I.js","assets/showcase-CD4K8Kwx.js","assets/CRExperimentChartSection-0zjisuiC.js","assets/styled-3ZSX4sV7.js","assets/privacy-BIz5iss
1p.js","assets/curie-gallery-BxndxciR.js","assets/TranscriptMessage-BXueMQrF.js","assets/attachments-Dsn13UmE.js","assets/ChatUsageMeter-D_0vhY6v.js","assets/experiments-DRRSmCBl.js","assets/components-DugyKo9K.js","assets/detailed-Honzsg0u.js","assets/campaigns-pp3kBR4R.js","assets/styled-C1SUiIGb.js","assets/new-EuxuC1oB.js","assets/CrChatSurface-BJv6f6E9.js","assets/detailed-DZUEJSlg.js","assets/BrandFilesSection-ulf9g315.js","assets/components-DsnOgzen.js","assets/query-0RDUuqny.js","assets/run-sD9QGHfd.js","assets/learning-hub-B3iuxwd4.js","assets/brand-knowledge-7SU8RR5r.js","assets/GscConnectStep-DR7bc_t7.js","assets/styled-BOO-aMeW.js","assets/googleIntegrations-CiznS4aJ.js","assets/agency-os-BePx0S4P.js","assets/components-BJ9fYHP2.js","assets/cx-C71ahr8j.js","assets/onboarding-aVd9DRFa.js","assets/BusinessObjectivesReviewEditor-C1SycA4D.js","assets/useBrandQuestionnaire-nv-39oek.js","assets/popconfirm-GloTUhbC.js","assets/format-DbJQUe6G.js","assets/styled-B2um36Sl.js","assets/onboarding-v2-D2K8se5X.js","assets/hostOf-D-wbWC6h.js","assets/review-Cyul1YOq.js","assets/ContinueWarning-sGnMg5jl.js","assets/shared-150Z9cL3.js","assets/useSubmitShortcut-mDwkE_Sj.js","assets/landscape-BfvWdoi1.js","assets/priorities-C_yZFuYG.js","assets/bench-eVU8Ls1x.js","assets/brief-eyMg-pIR.js","assets/inputs-BjZIuqYM.js","assets/shared-ChKoVXNs.js","assets/brand-update-CECFTyIv.js","assets/audit-DByilHn4.js","assets/internal-DHbKPPQA.js","assets/internal-blog-h6-qP9pA.js","assets/help-CmSwNTNh.js","assets/not-found-Dl58bNT1.js","assets/admin-insight-debug-C5pahyy7.js"])))=>i.map(i=>d[i]);
2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`b998e89cae813c4538275164863d5931b467537b`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ae4ef89d-2696-4c20-b956-4ebd250bbc79`,e._sentryDebugIdIdentifier=`sentry-dbid-ae4ef89d-2696-4c20-b956-4ebd250bbc79`)}catch{}})();import{r as e,t}from"./rolldown-runtime-CiL28kJ5.js";import{a as n,i as r,o as i,r as a,t as o}from"./jsx-runtime-BSskQZ5n.js";import{A as s,B as c,F as l,I as u,L as d,M as f,N as p,P as m,R as h,V as g,c as _,d as v,h as y,k as b,n as x,o as S,p as C,r as w,t as T}from"./utils-De-Lw5xj.js";import{A as E,D,E as O,O as k,_ as A,a as j,c as M,d as N,f as P,h as F,j as I,k as L,l as R,n as z,o as B,p as V,s as H,t as U,u as W,x as G,y as ee}from"./useNavigation-F6eTPVsZ.js";import{i as te,n as ne,r as K}from"./components-DI54i5M7.js";import{A as q,C as re,D as J,E as ie,F as ae,M as oe,N as se,O as ce,P as le,R as ue,S as de,T as fe,_ as pe,a as me,b as he,d as ge,f as _e,g as ve,j as ye,k as be,l as xe,m as Se,n as Ce,p as we,t as Te,u as Ee,v as De,w as Oe,x as ke,y as Ae}from"./styled-DWm8AvmK.js";import{$n as je,$r as Me,$t as Ne,A as Pe,Ai as Fe,An as Ie,Ar as Le,At as Re,B as ze,Bn as Be,Br as Ve,Bt as He,C as Ue,Ci as We,Cn as Ge,Cr as Ke,Ct as qe,D as Je,Di as Ye,Dn as Xe,Dr as Ze,Dt as Qe,E as $e,Ei as et,En as tt,Er as nt,Et as rt,F as it,Fi as at,Fn as ot,Fr as st,Ft as ct,G as lt,Gn as ut,Gr as dt,Gt as ft,H as pt,Hn as mt,Hr as ht,Ht as gt,I as _t,Ii as vt,In as yt,Ir as bt,It as xt,J as St,Jn as Ct,Jr as wt,Jt as Tt,K as Et,Kr as Dt,Kt as Ot,L as kt,Ln as At,Lr as jt,Lt as Mt,M as Nt,Mi as Pt,Mn as Ft,Mr as It,Mt as Lt,N as Rt,Ni as zt,Nn as Bt,Nr as Vt,Nt as Ht,O as Ut,Oi as Wt,On as Gt,Or as Kt,Ot as qt,P as Jt,Pi as Yt,Pn as Xt,Pr as Zt,Pt as Qt,Qn as $t,Qr as en,Qt as tn,R as nn,Rn as rn,Rr as an,Rt as on,Si as sn,Sn as cn,Sr as ln,St as un,T as dn,Ti as fn,Tn as pn,Tr as mn,Tt as hn,U as gn,Un as _n,Ur as vn,Ut as yn,V as bn,Vn as xn,Vr as Sn,Vt as Cn,W as wn,Wn as Tn,Wr as En,Wt as Dn,X as On,Xn as kn,Xr as An,Xt as jn,Y as Mn,Yn as Nn,Yr as Pn,Yt as Fn,Z as In,Zn as Ln,Zr as Rn,Zt as zn,_i as Bn,_n as Vn,_r as Hn,_t as Un,ai as Wn,an as Gn,ar as Kn,b as qn,bi as Jn,bn as Yn,br as Xn,bt as Zn,ci as Qn,cn as $n,cr as er,di as tr,dn as nr,dr as rr,ei as ir,en as ar,er as or,f as sr,fi as cr,fn as lr,fr as ur,gi as dr,gn as fr,gt as pr,hi as mr,hn as hr,hr as gr,ht as _r,ii as vr,in as yr,ir as br,j as xr,ji as Sr,jn as Cr,jr as wr,jt as Tr,ki as Y,kn as Er,kr as Dr,kt as Or,li as kr,ln as Ar,lr as jr,mi as Mr,mn as Nr,ni as Pr,nn as Fr,nr as Ir,oi as Lr,on as Rr,or as zr,p as Br,pi as Vr,pn as Hr,q as Ur,qn as Wr,qr as Gr,qt as Kr,ri as qr,rn as Jr,rr as Yr,si as Xr,sn as Zr,sr as Qr,ti as $r,tn as ei,tr as ti,ui as ni,un as ri,ur as ii,vi as ai,vn as oi,vr as si,vt as ci,w as li,wi as ui,wn as di,wr as fi,wt as pi,xi as mi,xn as hi,xr as gi,xt as _i,yi as vi,yn as yi,yr as bi,yt as xi,z as Si,zn as Ci,zr as wi,zt as Ti}from"./admin-DQsFeYl6.js";import{n as Ei,t as Di}from"./routing-DH22dNWT.js";import{V as Oi,X as ki,a as Ai,ct as ji,mt as Mi,n as Ni,nt as Pi,o as Fi,pt as Ii,rt as Li,tt as Ri,z as zi}from"./contexts-BtgG66h2.js";import{A as Bi,B as Vi,Bt as Hi,C as Ui,Ct as Wi,D as Gi,Dt as Ki,E as qi,Et as Ji,Ft as Yi,Gt as Xi,Ht as Zi,It as Qi,Jt as $i,K as ea,Kt as ta,M as na,Mt as ra,Nt as ia,O as aa,Ot as oa,Pt as X,Q as sa,Qt as ca,Rt as la,S as ua,Sn as da,St as fa,Tt as pa,U as ma,Ut as ha,Vt as ga,Wt as _a,X as va,Xt as ya,Yt as ba,Z as xa,Zt as Sa,_ as Ca,_n as wa,_t as Ta,an as Ea,b as Da,bn as Oa,bt as ka,cn as Aa,ct as ja,dn as Ma,en as Na,et as Pa,f as Fa,fn as Ia,ft as Z,g as La,gn as Ra,gt as za,h as Ba,hn as Va,i as Ha,in as Ua,k as Wa,kt as Ga,ln as Ka,m as qa,mn as Ja,nn as Ya,on as Xa,p as Za,pn as Qa,q as $a,qt as eo,rn as to,s as no,sn as ro,t as io,tn as ao,tt as oo,ut as so,vn as co,vt as lo,w as uo,wt as fo,x as po,xn as mo,xt as ho,y as go,yn as _o,yt as vo,zt as yo}from"./analytics-Cz1rvsix.js";import{$ as bo,At as xo,B as So,Bt as Co,Ct as wo,Dt as To,Ft as Eo,G as Do,Gt as Oo,H as ko,Ht as Ao,It as jo,J as Mo,K as No,Lt as Po,Mt as Fo,Nt as Io,Ot as Lo,Pt as Ro,Q as zo,Rt as Bo,St as Vo,Tt as Ho,U as Uo,Ut as Wo,Vt as Go,Wt as Ko,X as qo,Y as Jo,Z as Yo,_t as Xo,a as Zo,at as Qo,bt as $o,c as es,d as ts,dt as ns,et as rs,ft as is,gt as as,ht as os,i as ss,it as cs,jt as ls,kt as us,lt as ds,mt as fs,n as ps,o as ms,ot as hs,pt as gs,q as _s,r as vs,rt as ys,s as bs,st as xs,t as Ss,tt as Cs,u as ws,vt as Ts,wt as Es,xt as Ds,yt as Os,z as ks,zt as As}from"./CRSelect-Dqowgnnh.js";var js=`application/x-www-form-urlencoded`;function Ms(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Ns(e){return Ms(e)&&e.tagName.toLowerCase()===`button`}function Ps(e){return Ms(e)&&e.tagName.toLowerCase()===`form`}function Fs(e){return Ms(e)&&e.tagName.toLowerCase()===`input`}function Is(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ls(e,t){return e.button===0&&(!t||t===`_self`)&&!Is(e)}function Rs(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function zs(e,t){let n=Rs(e);return t&&t.forEach((e,r)=>
2{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Bs=null;function Vs(){if(Bs===null)try{new FormData(document.createElement(`form`),0),Bs=!1}catch{Bs=!0}return Bs}var Hs=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Us(e){return e!=null&&!Hs.has(e)?(c(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${js}"`),null):e}function Ws(e,t){let n,r,i,a,o;if(Ps(e)){let o=e.getAttribute(`action`);r=o?m(o,t):null,n=e.getAttribute(`method`)||`get`,i=Us(e.getAttribute(`enctype`))||js,a=new FormData(e)}else if(Ns(e)||Fs(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?m(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=Us(e.getAttribute(`formenctype`))||Us(o.getAttribute(`enctype`))||js,a=new FormData(o,e),!Vs()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Ms(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=js,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Gs(e,t){if(e===!1||e==null)throw Error(t)}var Q=e(i(),1);function Ks(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname=n.pathname.endsWith(`/`)?`${n.pathname}_.${t}`:`${n.pathname}.${t}`,n}var qs=`modulepreload`,Js=function(e){return`/`+e},Ys={},Xs=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Js(t,n),t=s(t),t in Ys)return;Ys[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:qs,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};async function Zs(e,t){if(e.id in t)return t[e.id];try{let n=await Xs(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Qs(e){return e!=null&&typeof e.page==`string`}function $s(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function ec(e,t,n){return ac((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Zs(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter($s).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function tc(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParam
2s:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function nc(e,t,{includeHydrateFallback:n}={}){return rc(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function rc(e){return[...new Set(e)]}function ic(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function ac(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Qs(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(ic(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var oc=Q.createContext(void 0);oc.displayName=`FrameworkContext`;function sc(){let e=Q.useContext(oc);return Gs(e,`You must render this element inside a <HydratedRouter> element`),e}function cc(e,t){let n=Q.useContext(oc),[r,i]=Q.useState(!1),[a,o]=Q.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=Q.useRef(null);Q.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),Q.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:lc(s,p),onBlur:lc(c,m),onMouseEnter:lc(l,p),onMouseLeave:lc(u,m),onTouchStart:lc(d,p)}]:[a,f,{}]:[!1,f,{}]}function lc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function uc({page:e,...t}){let n=I(),{nonce:r}=sc(),{router:i}=W(`PrefetchPageLinks`),a=Q.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?Q.createElement(fc,{page:e,matches:a,...t}):Q.createElement(pc,{page:e,matches:a,...t})):null}function dc(e){let{manifest:t,routeModules:n}=sc(),[r,i]=Q.useState([]);return Q.useEffect(()=>{let r=!1;return ec(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function fc({page:e,matches:t,...n}){let r=F(),i=Q.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Ks(e,`rsc`),i=!1,a=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set(`_routes`,a.join(`,`)),[n.pathname+n.search]},[e,r,t]);return Q.createElement(Q.Fragment,null,i.map(e=>Q.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function pc({page:e,matches:t,...n}){let r=F(),{manifest:i,routeModules:a}=sc(),{matches:o}=P(`PrefetchPageLinks`),{loaderData:s}=N(`PrefetchPageLinks`),c=Q.useMemo(()=>tc(e,t,o,i,r,`data`),[e,t,o,i,r]),l=Q.useMemo(()=>tc(e,t,o,i,r,`assets`),[e,t,o,i,r]),u=Q.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))}),n.size===0)return[];let l=Ks(e,`data`);return o&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[s,r,i,c,t,e,a]),d=Q.useMemo(()=>nc(l,i),[l,i]),f=dc(l);return Q.createElement(Q.Fragment,null,u.map(e=>Q.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),d.map(e=>Q.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),f.map(({key:e,link:t})=>Q.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function mc(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var hc=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{hc&&(window.__reactRouterVersion=`8`)}catch{}function gc({basename:e,children:t,useTransitions:n,window:r}){let i=Q.useRef(null);i.current??=l({window:r,v5Compat:!0});let a=i.current,[o,s]=Q.useState({action:a.action,location:a.location}),c=Q.useCallback(e=>{n===!1?s(e):Q.startTransition(()=>s(e))},[n]);return Q.useLayoutEffect(()=>
2a.listen(c),[a,c]),Q.createElement(K,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var _c=Q.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:m,...h},_){let{basename:v,navigator:y,useTransitions:x}=Q.useContext(k),S=typeof l==`string`&&g.test(l),C=f(l,v);l=C.to;let w=V(l,{relative:r}),T=F(),E=null;if(o){let e=p(o,[],T.mask?T.mask.pathname:`/`,!0);v!==`/`&&(e.pathname=e.pathname===`/`?v:b([v,e.pathname])),E=y.createHref(e)}let[D,O,A]=cc(n,h),j=bc(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:m,useTransitions:x});function M(t){e&&e(t),t.defaultPrevented||j(t)}let N=!(C.isExternal||i),P=Q.createElement(`a`,{...h,...A,href:(N?E:void 0)||C.absoluteURL||w,onClick:N?M:e,ref:mc(_,O),target:c,"data-discover":!S&&t===`render`?`true`:void 0});return D&&!S?Q.createElement(Q.Fragment,null,P,Q.createElement(uc,{page:w})):P});_c.displayName=`Link`;var vc=Q.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=G(a,{relative:c.relative}),d=F(),f=Q.useContext(O),{navigator:p,basename:h}=Q.useContext(k),g=f!=null&&Ec(u)&&o===!0,_=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f?.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=m(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(b)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return Q.createElement(_c,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});vc.displayName=`NavLink`;var yc=Q.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=Q.useContext(k),_=wc(),v=Tc(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&g.test(s);return Q.createElement(`form`,{ref:m,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?Q.startTransition(()=>p()):p()},...p,"data-discover":!b&&e===`render`?`true`:void 0})});yc.displayName=`Form`;function bc(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=A(),f=F(),p=G(e,{relative:o});return Q.useCallback(m=>{if(Ls(m,t)){m.preventDefault();let t=n===void 0?d(f)===d(p):n,h=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?Q.startTransition(()=>h()):h()}},[f,u,p,n,r,i,t,e,a,o,s,c,l])}function xc(e){c(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=Q.useRef(Rs(e)),n=Q.useRef(!1),r=F(),i=Q.useMemo(()=>zs(r.search,n.current?null:t.current),[r.search]),a=A();return[i,Q.useCallback((e,t)=>{let r=Rs(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Sc=0,Cc=()=>`__${String(++Sc)}__`;function wc(){let{router:e}=W(`useSubmit`),{basename:t}=Q.useContext(k),n=R(`useSubmit`),r=e.fetch,i=e.navigate;return Q.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Ws(e,t);a.navigate===!1?await r(a.fetcherKey||Cc(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Tc(e,{relative:t}={}){let{basename:n}=Q.useContext(k),r=Q.useContext(L);h(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...G(e||`.`,{relative:t})},o=F();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:b([n,a.pathname])),d(a)}function Ec(e,{relative:t}={}){let n=Q.useContext(E);h(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=W(`useViewTransitionState`),i=G(e,{relative:t});if(!n.isTransitioning)return!1;let a=m(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=m(n.nextLocation.pathname,r)||n.nextLocation.pathname;return s(i.pathname,o)!=null||s(i.pathname,a)!=null}var Dc={},Oc={};function kc(e,t){return Dc[e]=Dc[e]||[],Dc[e].push(t),()=>{let n=Dc[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function Ac(e,t){if(!Oc[e]){Oc[e]=!0;try{t()}catch(t){vt&&Y.error(`Error while instrumenting ${e}`,t)}}}function jc(e,t){let n=e&&Dc[e];if(n)for(let r of n)try{r(t)}catch(t){vt&&Y.error(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${fn(r)}
5Error:`,t)}}var Mc=null;function Nc(e){let t=`error`;kc(t,e),Ac(t,Pc)}function Pc(){Mc=at.onerror,at.onerror=function(e,t,n,r,i){return jc(`error`,{column:r,error:i,line:n,msg:e,url:t}),Mc?Mc.apply(this,arguments):!1},at.onerror.__SENTRY_INSTRUMENTED__=!0}var Fc=null;function Ic(e){let t=`unhandledrejection`;kc(t,e),Ac(t,Lc)}function Lc(){Fc=at.onunhandledrejection,at.onunhandledrejection=function(e){return jc(`unhandledrejection`,e),!Fc||Fc.apply(this,arguments)},at.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Rc=!1;function zc(){if(Rc)return;function e(){let e=jn(),t=e&&zn(e);if(t){let e=`internal_error`;vt&&Y.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}Rc=!0,Nc(e),Ic(e)}function Bc(e){Y.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Vc(e,t){if(!t?.length)return!1;for(let n of t){if(Wc(n)){if(e.description&&An(e.description,n))return vt&&Bc(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=!n.name||e.description&&An(e.description,n.name),i=!n.op||e.op&&An(e.op,n.op),a=!n.attributes||Object.entries(n.attributes).every(([t,n])=>Hc(e.attributes?.[t],n));if(r&&i&&a)return vt&&Bc(e),!0}return!1}function Hc(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?An(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function Uc(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function Wc(e){return typeof e==`string`||e instanceof RegExp}var Gc=[];function Kc(e){let t={};
5return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function qc(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return Kc(r)}function Jc(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&Xc(e,t,n)}),n}function Yc(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Xc(e,t,n){if(n[t.name]){vt&&Y.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Gc.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),Gc.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),vt&&Y.log(`Integration installed: ${t.name}`)}function Zc(e){return e}function Qc(e){return!!e&&typeof e==`function`&&`_static`in e&&!!e._static}var $c=!1;function el(e,t){return xt(vt?"The `beforeSendSpan` callback threw an error, sending the span unmodified:":``,()=>t(e),()=>e)||($c||=(Wt(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0),e)}function tl(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links};return nr(t)}function nl(e){let t={},{response:n,profile:r,cloud_resource:i,culture:a,state:o}=e;if(n&&(n.status_code!=null&&(t[`http.response.status_code`]=n.status_code),n.body_size!=null&&(t[`http.response.body.size`]=n.body_size)),r&&(r.profile_id&&(t[`sentry.profile_id`]=r.profile_id),r.profiler_id&&(t[`sentry.profiler_id`]=r.profiler_id)),i)for(let[e,n]of Object.entries(i))n!=null&&(t[e]=n);a&&(a.locale&&(t[`culture.locale`]=a.locale),a.timezone&&(t[`culture.timezone`]=a.timezone)),o?.state&&typeof o.state.type==`string`&&(t[`state.type`]=o.state.type);let s=e.angular;if(s){let e=s.version;(typeof e==`string`||typeof e==`number`)&&(t[`angular.version`]=e)}let c=e.react;if(c){let e=c.version;(typeof e==`string`||typeof e==`number`)&&(t[`react.version`]=e)}return t}function rl(e,t){let n=Rr(e),r=ft(e),i=Rr(r),{isolationScope:a,scope:o}=cn(e),s=Mt(a,o);cl(n,i,t,s),t.emit(`preprocessSpan`,n),n.is_segment&&(il(n,s),ol(n,t),t.emit(`processSegmentSpan`,n)),t.emit(`processSpan`,n);let{beforeSendSpan:c,traceLifecycle:l}=t.getOptions(),u=l!==`static`&&c&&!Qc(c)?el(n,c):n;return{...nr(u),_segmentSpan:r}}function il(e,t){al(e,nl(t.contexts))}function al(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}function ol(e,t){let n=t.getIntegrationNames();n.length&&al(e,{[Ci]:n})}function sl(e,t,n,r=!0){let i=t.getSdkMetadata(),{release:a,environment:o}=t.getOptions();return{[Hn]:`stream`,[kn]:e.name,[er]:e.span_id,[Kt]:i?.sdk?.name,[rr]:i?.sdk?.version,[At]:a,[Ie]:o||`production`,[xn]:n.user?.id,[Be]:n.user?.email,[mt]:n.user?.ip_address,[_n]:n.user?.username,...r?n.attributes:void 0}}function cl(e,t,n,r){al(e,sl(t,n,r))}function ll(e,t,n){let r=Zr(e),i=ft(e),a=Rr(i),{isolationScope:o,scope:s}=cn(e),c=sl(a,t,Mt(o,s),!1);return Object.entries(c).forEach(([e,t])=>{t!=null&&!(e in r.data)&&(r.data[e]=t)}),tl(el(r,n))}function ul(e){return e.getOptions().traceLifecycle===`stream`}function dl(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}function fl(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function pl(){return`npm`}function ml(){return!fl()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function hl(){return typeof window<`u`&&(!ml()||gl())}function gl(){return at.process?.type===`renderer`}function _l(e,t,n){let r=n.getOptions(),i=n.getDsn(),a=r.tunnel,o=Qt(r._metadata),s={sent_at:new Date(Pr()).toISOString(),...yl(t)&&{trace:t},...o&&{sdk:o},...!!a&&i&&{dsn:oi(i)}};return qt(s,[vl(e,n)])}function vl(e,t){let n=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:e.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,ingest_settings:hl()?{infer_ip:n,infer_user_agent:n}:void 0,items:e}]}function yl(e){return!!e.trace_id&&!!e.public_key}function bl(e){let t=156;if(t+=e.name.length*2,t+=st(e.attributes),e.links&&e.links.length>0){let n=e.links[0]?.attributes,r=100+(n?st(n):0);t+=r*e.links.length}return t}var xl=1e3,Sl=5e6,Cl=class{constructor(e,t){this._traceBuckets=new Map,this._client=e;let{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:i}=t??{};this._maxSpanLimit=n&&n>0&&n<=xl?n:xl,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=i&&i>0?i:Sl,this._client.on(`flush`,()=>{this.drain()}),this._client.on(`close`,()=>
5{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){let t=e.trace_id,n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:dl(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=bl(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(vt&&Y.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){let t=this._traceBuckets.get(e);if(!t)return;if(!t.spans.size){this._removeTrace(e);return}let n=Array.from(t.spans),r=n[0]?._segmentSpan;if(!r){vt&&Y.warn(`No segment span reference found on span JSON, cannot compute DSC`),this._removeTrace(e);return}let i=He(r),a=n.map(e=>{let{_segmentSpan:t,...n}=e;return n}),o=_l(a,i,this._client);vt&&Y.log(`Sending span envelope for trace ${e} with ${a.length} spans`),this._client.sendEnvelope(o).then(null,e=>{vt&&Y.error(`Error while sending streamed span envelope:`,e)}),this._removeTrace(e)}_removeTrace(e){let t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}},wl=`SpanStreaming`,Tl=Zc((e={})=>{let t=e.flushOnSegmentEnd??!0;return{name:wl,setup(e){if(!ul(e)){vt&&Y.log('[SpanStreaming] `traceLifecycle` is "static", skipping setup.');return}let n=new Cl(e);e.on(`afterSpanEnd`,t=>{Jr(t)&&n.add(rl(t,e))}),e.on(`flushTraceSpans`,e=>{n.flush(e)}),t&&e.on(`afterSegmentSpanEnd`,e=>{let t=e.spanContext().traceId;dl(setTimeout(()=>{n.flush(t)},500))})}}});function El(e){if(!vt)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=Zr(e),{spanId:i}=e.spanContext(),a=Jr(e),o=zn(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){let{op:e,description:t}=Zr(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}Y.log(`${c}
6  ${l.join(`
7  `)}`)}function Dl(e){if(!vt)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=Zr(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${zn(e)===e?`root `:``}span "${t}" with ID ${r}`;Y.log(i)}function Ol(e,t,n){if(!Dn(e))return[!1];let r=kl(e,t);if(!r)return[!1,void 0,void 0,`callback_error`];let[i,a]=r,o=Vn(i);if(o===void 0)return vt&&Y.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!o)return vt&&Y.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,o,a];let s=n<o;return s||vt&&Y.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[s,o,a]}function kl(e,t){let{tracesSampler:n,tracesSampleRate:r}=e;if(typeof n==`function`){let e=xt(vt?"The `tracesSampler` callback threw an error, falling back to the parent sampling decision or `tracesSampleRate`:":``,()=>[n({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),!0],()=>void 0);if(e)return e}if(t.parentSampled!==void 0)return[t.parentSampled];if(r!==void 0)return[r,!0]}function Al(e,t,n,r=jn()){let i=r&&zn(r);i&&(vt&&Y.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Bt]:t,[Ft]:n}))}function jl(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[Ft],i=n[Bt];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function Ml(){return zt(Pt()).segmentSpanCaptureStrategy}var Nl=1e3,Pl=class{constructor(e={}){this._traceId=e.traceId||wi(),this._spanId=e.spanId||an(),this._startTime=e.startTimestamp||En(),this._links=e.links,this._attributes={},this.setAttributes({[ot]:`manual`,[Xt]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),this._events=[],this._isStandaloneSpan=e.isStandalone}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return this._frozen?this:e===`sentry.segment.name.source`&&t!==void 0&&!yr(this)?(vt&&Y.warn(`[Tracing] Ignoring name source on a child span: this attribute is only valid on the root span.`),this):(t===void 0?delete this._attributes[e]:this._attributes[e]=t,this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=Gn(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,Ot(this,`custom`),this)}end(e){this._endTime||(this._endTime=Gn(e),Dl(this),this._onSpanEnded(),this._frozen=di(this))}getStaticSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Xt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:ar(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ot],profile_id:this._attributes[Gt],exclusive_time:this._attributes[Xe],measurements:jl(this._events),links:Fn(this._links)}}getSpanJSON(){return{name:this._name??``,span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime,is_segment:yr(this),status:tn(this._status),attributes:Tt(this._attributes,this._status),links:ei(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;vt&&Y.log(`[Tracing] Adding an event to span:`,e);let r=Fl(t)?t:n||En(),i=Fl(t)?{}:t||{},a={name:e,time:Gn(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=Dr();if(e?.emit(`spanEnd`,this),this._isStandaloneSpan){if(!e)return;if(this._sampled){Rl(this,e);return}vt&&Y.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e.recordDroppedEvent(`sample_rate`,`span`);return}e?.emit(`afterSpanEnd`,this);let t=zn(this);if(t!==this){let e=Ml();if(e){let n=cn(this).scope||Le();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&ul(e)){e.emit(`afterSegmentSpanEnd`,this);return}let n=cn(this).scope||Le(),r=Ml();if(r)r.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),n);else{let e=this._convertSpanToTransaction();e&&n.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!Il(Zr(this)))return;this._name||=(vt&&Y.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:t,isolationScope:n}=cn(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;e.onSpanCaptured?.(this);let i=[];for(let t of Ne(this)){if(t===this||Ll(t)||e.isSpanAlreadyCaptured?.(t))continue;let n=Zr(t);Il(n)&&(e.onSpanCaptured?.(t),i.push(n))}let a=this._attributes[ii];delete this._attributes[Er];let o=!1;
7i.forEach(e=>{delete e.data[Er],e.op?.startsWith(`gen_ai.`)&&(o=!0)});let s={contexts:{trace:ri(this)},spans:i.length>Nl?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Nl):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:He(this),hasGenAiSpans:o},request:r,...a&&{transaction_info:{source:a}}},c=jl(this._events);return c&&Object.keys(c).length&&(vt&&Y.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(c,void 0,2)),s.measurements=c),s}};function Fl(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Il(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Ll(e){return e instanceof Pl&&e.isStandaloneSpan()}function Rl(e,t){let{beforeSendSpan:n,traceLifecycle:r}=t.getOptions();if(r===`static`&&Qc(n)){let r=ll(e,t,n),i=He(e);t.sendEnvelope(_l([r],i,t));return}let{_segmentSpan:i,...a}=rl(e,t),o=He(i);t.sendEnvelope(_l([a],o,t))}function zl(e){let t=Wl(e),{forceTransaction:n,parentSpan:r,scope:i}=e;return(i?e=>Zt(i,e):r===void 0?e=>e():e=>Bl(r,e))(()=>{let a=Le(),o=Jl(i??a,r),s=Dr();return e.onlyIfParent&&!o?Hl(a,s):Ul({parentSpan:o,spanArguments:t,forceTransaction:n,scope:a})})}function Bl(e,t){let n=Gl();return n.withActiveSpan?n.withActiveSpan(e,t):Zt(n=>(lr(n,e||void 0),t(n)))}function Vl(e=Le()){let t=Gl();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[jt]===!0}function Hl(e,t){t?.recordDroppedEvent(`no_parent_span`,`span`);let n=new Cn({traceId:e.getPropagationContext().traceId});return Ge(n,e,wr()),n}function Ul({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i=wr(),a={scope:r,parentSpan:e};Dr()?.emit(`prepareSpanScope`,a);let{scope:o,parentSpan:s}=a;if(!Dn()){let e=o.getPropagationContext(),t=s?s.spanContext().traceId:e.traceId,r=new Cn({traceId:t});return s&&!n&&Kr(s,r),Ge(r,o,i),r}let c=Dr();if(Yl(c,t)){Vl(o)||c?.recordDroppedEvent(`ignored`,`span`);let e=new Cn({dropReason:`ignored`,traceId:s?.spanContext().traceId??o.getPropagationContext().traceId});return s&&!n&&Kr(s,e),Ge(e,o,i),e}let l;if(s&&!n)l=ql(s,o,t,i),Kr(s,l);else if(s){let e=He(s),{traceId:n,spanId:r}=s.spanContext(),a=Jr(s);l=Kl({traceId:n,parentSpanId:r,...t},o,i,a),on(l,e)}else{let{traceId:e,dsc:n,parentSpanId:r,sampled:a,sampleRand:s}=o.getPropagationContext();if(l=Kl({traceId:e,parentSpanId:r,...t},o,i,a),n){let e=Object.keys(n).length===0&&s!==void 0?{sample_rand:s.toString()}:n;on(l,e)}}return El(l),l}function Wl(e){let t={isStandalone:e.experimental?.standalone,...e};if(e.op&&(t.attributes={[Xt]:e.op,...e.attributes}),e.startTime){let n={...t};return n.startTimestamp=Gn(e.startTime),delete n.startTime,n}return t}function Gl(){let e=Pt();return bt(e)}function Kl(e,t,n,r){let i=Dr(),a=i?.getOptions()||{},{name:o=``}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i?.emit(`beforeSampling`,s,{decision:!1});let c=s.parentSampled??r,l=s.spanAttributes,u=t.getPropagationContext(),d=Vl(t),[f,p,m,h]=d?[!1]:Ol(a,{name:o,parentSampled:c,attributes:l,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:Vn(u.dsc?.sample_rate)},u.sampleRand),g=new Pl({...e,attributes:{[ii]:`custom`,[rn]:p!==void 0&&m?p:void 0,...l},sampled:f});return!f&&i&&!d&&(vt&&Y.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(h||`sample_rate`,ul(i)?`span`:`transaction`)),Ge(g,t,n),i&&i.emit(`spanStart`,g),g}function ql(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=Vl(t),s=!o&&Jr(e),c=s?new Pl({...n,parentSpanId:i,traceId:a,sampled:s}):new Cn({traceId:a});Kr(e,c),Ge(c,t,r);let l=Dr();return l?(ul(l)&&gt(c)&&(gt(e)&&e.dropReason?(c.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,`span`)):o||(c.dropReason=`sample_rate`,l.recordDroppedEvent(`sample_rate`,`span`))),l.emit(`spanStart`,c),c):c}function Jl(e,t){if(t)return t;if(t===null)return;let n=jn(e);if(!n)return;let r=Dr();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?zn(n):n}function Yl(e,t){let n=e?.getOptions().ignoreSpans;return!e||!ul(e)||!n?.length?!1:Vc({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function Xl(e){return gt(e)&&e.dropReason===`ignored`}var Zl=new WeakSet;function Ql(e=Dr()){e&&!Zl.has(e)&&ul(e)&&(Zl.add(e),e.addIntegration(Tl()))}function $l(e){return Ql(),zl(e)}var eu={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},tu=`heartbeatFailed`,nu=`idleTimeout`,ru=`finalTimeout`,iu=`externalFinish`;function au(e,t={}){let n=Dr();Ql(n);let r=new Map,i=!1,a,o,s=iu,c=!t.disableAutoFinish,l=[],{idleTimeout:u=eu.idleTimeout,finalTimeout:d=eu.finalTimeout,childSpanTimeout:f=eu.childSpanTimeout,trimIdleSpanEndTimestamp:p=!0}=t,m=Le();if(!n||!Dn()){let e=new Cn({traceId:m.getPropagationContext().traceId});return Ge(e,m,wr()),e}let h=jn(),g=zl(e);
7lr(Le(),g),vt&&Y.log(`[Tracing] Started span is an idle span`),g.end=new Proxy(g.end,{apply(e,t,r){if(n.emit(`beforeIdleSpanEnd`,g),gt(t))return;let[i,...a]=r,o=i||En(),s=Gn(o),c=Ne(g).filter(e=>e!==g),l=Zr(g);if(!c.length||!p)return C(s),Reflect.apply(e,t,[s,...a]);let u=n.getOptions().ignoreSpans,f=c?.reduce((e,t)=>{let n=Zr(t);return!n.timestamp||u&&Vc({description:n.description,op:n.op,attributes:n.data},u)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),m=l.start_timestamp,h=Math.min(m?m+d/1e3:1/0,Math.max(m||-1/0,Math.min(s,f||1/0)));return C(h),Reflect.apply(e,t,[h,...a])}});function _(){a&&=(clearTimeout(a),void 0)}function v(){o&&=(clearTimeout(o),void 0)}function y(e){_(),a=setTimeout(()=>{!i&&r.size===0&&c&&(s=nu,g.end(e))},u)}function b(e){v(),o=setTimeout(()=>{!i&&c&&(s=tu,g.end(e))},f)}function x(e){_(),r.set(e,!0),b(En()+f/1e3)}function S(e){r.has(e)&&r.delete(e),r.size===0&&(y(En()+u/1e3),v())}function C(e){i=!0,r.clear(),l.forEach(e=>e()),lr(m,h);let t=Zr(g),{start_timestamp:n}=t;if(!n)return;t.data[`sentry.idle_span_finish_reason`]||g.setAttribute(Cr,s);let a=t.status;(!a||a===`unknown`)&&g.setStatus({code:1}),Y.log(`[Tracing] Idle span "${t.op}" finished`);let o=Ne(g).filter(e=>e!==g),c=0;o.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),vt&&Y.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=Zr(t),i=r<=e,a=(d+u)/1e3,o=n-r<=a;if(vt){let e=JSON.stringify(t,void 0,2);i?o||Y.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):Y.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!o||!i)&&(Fr(g,t),c++)}),c>0&&g.setAttribute(`sentry.idle_span_discarded_spans`,c)}return l.push(n.on(`spanStart`,e=>{i||e===g||Rr(e).end_timestamp||e instanceof Pl&&e.isStandaloneSpan()||Ne(g).includes(e)&&x(e.spanContext().spanId)})),l.push(n.on(`spanEnd`,e=>{i||S(e.spanContext().spanId)})),l.push(n.on(`idleSpanEnableAutoFinish`,e=>{e===g&&(c=!0,y(),r.size&&b())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(g.setStatus({code:2,message:`deadline_exceeded`}),s=ru,g.end())},d),g}function ou(e,t,n){let r,i,a,o=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function c(){return l(),r=e(),r}function l(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function u(){return i!==void 0||a!==void 0?c():r}function d(){return i&&clearTimeout(i),i=s(c,t),o&&a===void 0&&(a=s(c,o)),r}return d.cancel=l,d.flush=u,d}var su=`pageload`,cu=`navigation`,lu=`navigation.redirect`,uu=`resource.other`,du=`browser.paint`,fu=`browser.unload_event`,pu=`browser.redirect`,mu=`browser.dom_content_loaded_event`,hu=`browser.load_event`,gu=`browser.connect`,_u=`browser.tls_ssl`,vu=`browser.cache`,yu=`browser.dns`,bu=`browser.request`,xu=`browser.response`,Su=`ui.long_task`,Cu=`ui.long_animation_frame`,wu=`ui.interaction.click`,Tu=`ui.interaction.hover`,Eu=`ui.interaction.drag`,Du=`ui.interaction.press`,Ou=`ui.webvital.lcp`,ku=`ui.webvital.cls`,Au=`http.client`,ju=`Pageload`,Mu=`Navigation`,Nu=`Main UI thread blocked`,Pu=`Click`,Fu=`Hover`,Iu=`Drag`,Lu=`Key press`,Ru={[vu]:`Cache lookup`,[yu]:`DNS lookup`,[gu]:`Connect`,[_u]:`TLS handshake`,[pu]:`Redirect`,[bu]:`Request`,[xu]:`Response`,[fu]:`Unload event`,[mu]:`DOMContentLoaded event`,[hu]:`Load event`};function zu(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Bu(e,t,n,r){let i=Qt(n),a={sent_at:new Date(Pr()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:oi(t)}},o=`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()];return qt(a,[o])}function Vu(e,t,n,r){let i=Qt(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;zu(e,n?.sdk);let o=Or(e,i,r,t);return delete e.sdkProcessingMetadata,qt(o,[[{type:a},e]])}function Hu(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function Uu(e){return`${Hu(e)}${e.projectId}/envelope/`}function Wu(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Gu(e,t,n){return t||`${Uu(e)}?${Wu(e,n)}`}function Ku(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...hl()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function qu(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=oi(r)),qt(a,[Ku(e,i)])}function Ju(e,t){let n=t??Yu(e)??[];if(n.length===0)return;let r=e.getOptions(),i=qu(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Xu().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Yu(e){return Xu().get(e)}function Xu(){return Sr(`clientToLogBufferMap`,()=>new WeakMap)}function Zu(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...hl()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Qu(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=oi(r)),qt(a,[Zu(e,i)])}function $u(e,t){let n=t??ed(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Qu(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);td().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function ed(e){return td().get(e)}function td(){return Sr(`clientToMetricBufferMap`,()=>new WeakMap)}
7function nd(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||ul(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(tl(t)):r.push(t);if(n.length!==0)return e.spans=r,vl(n,t)}var rd=Symbol.for(`SentryBufferFullError`);function id(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return pi(rd);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return hn(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>dl(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var ad=6e4;function od(e,t=Pr()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?ad:r-t}function sd(e,t){return e[t]||e.all||0}function cd(e,t,n=Pr()){return sd(e,t)>n}function ld(e,{statusCode:t,headers:n},r=Pr()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+od(o,r):t===429&&(i.all=r+6e4);return i}function ud(e,t,n=id(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(Lt(i,(t,n)=>{let i=Tr(n);cd(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=qt(i[0],a),s=t=>{if(Re(o,[`client_report`])){vt&&Y.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}Lt(o,(n,r)=>{e.recordDroppedEvent(t,Tr(r))})};return n.add(()=>t({body:ct(o)}).then(e=>e.statusCode===413?(vt&&Y.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),s(`send_error`),e):(vt&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&Y.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=ld(r,e),e),e=>{throw s(`network_error`),vt&&Y.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===rd)return vt&&Y.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function dd(e,t,n){let r=[{type:`client_report`},{timestamp:n||vn(),discarded_events:e}];return qt(t?{dsn:t}:{},[r])}function fd(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function pd(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i??`ok`,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[Gt],exclusive_time:o?.[Xe],measurements:e.measurements,is_segment:!0}}function md(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}function hd(e){e.traceLifecycle===`stream`&&(e.beforeSendTransaction||e.ignoreTransactions?.length)&&Wt(()=>{console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.")})}var gd={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,queues:!0,stackFrameVariables:!0,frameContextLines:5};function _d(e){return typeof e==`boolean`||`allow`in e||`deny`in e}function vd(e){return e===void 0?{...gd.httpHeaders}:_d(e)?{request:e,response:e}:{request:e.request??gd.httpHeaders.request,response:e.response??gd.httpHeaders.response}}function yd(e){let t=e.dataCollection??{};
7return{userInfo:t.userInfo??gd.userInfo,cookies:t.cookies??gd.cookies,httpHeaders:vd(t.httpHeaders),httpBodies:t.httpBodies??gd.httpBodies,urlQueryParams:t.urlQueryParams??gd.urlQueryParams,graphQL:{document:t.graphQL?.document??gd.graphQL.document,variables:t.graphQL?.variables??gd.graphQL.variables},genAI:{inputs:t.genAI?.inputs??gd.genAI.inputs,outputs:t.genAI?.outputs??gd.genAI.outputs},databaseQueryData:t.databaseQueryData??gd.databaseQueryData,queues:t.queues??gd.queues,stackFrameVariables:t.stackFrameVariables??gd.stackFrameVariables,frameContextLines:t.frameContextLines??gd.frameContextLines}}var bd=`Not capturing exception because it's already been captured.`,xd=`Discarded session because of missing or non-string release`,Sd=Symbol.for(`SentryInternalError`),Cd=Symbol.for(`SentryDoNotSendEventError`),wd=5e3;function Td(e){return{message:e,[Sd]:!0}}function Ed(e){return{message:e,[Cd]:!0}}function Dd(e){return mr(e)&&Sd in e}function Od(e){return mr(e)&&Cd in e}function kd(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??wd;t>0&&(s=!0,o=dl(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var Ad=class{constructor(e){this._options={attachStacktrace:!0,...e,traceLifecycle:e.traceLifecycle===`static`?`static`:`stream`},this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=id(e.transportOptions?.bufferSize??64),this._dataCollection=yd(e),this._unhandledSessionStatus=`crashed`,e.dsn?this._dsn=yi(e.dsn):vt&&Y.warn(`No DSN provided, client will not send events.`);let{beforeSendSpan:t,traceLifecycle:n}=this._options;if(vt&&t&&Qc(t)!==(n===`static`)&&Wt(()=>{console.warn(`Ignoring \`beforeSendSpan\`: ${n===`static`?`wrap it with`:`remove`} \`Sentry.withStaticSpan\` to use it with \`traceLifecycle: "${n}"\`.`)}),this._dsn){let t=Gu(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}kd(this,`afterCaptureLog`,`flushLogs`,Id,Ju),kd(this,`afterCaptureMetric`,`flushMetrics`,Fd,$u)}captureException(e,t,n){let r=Pn();if(Gr(e))return vt&&Y.log(bd),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:Pn(),...n},a=dr(e)?e:String(e),o=ai(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=Pn();if(t?.originalException&&Gr(t.originalException))return vt&&Y.log(bd),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=Ht(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),Sn(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&(this._setupIntegrations(),hd(this._options))}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),Xc(this,e,this._integrations),t||Yc(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=nd(e,this),r=Vu(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=rt(r,Qe(e));n&&(r=rt(r,n)),this.sendEnvelope(r).then(t=>
7this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=yn}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){vt&&Y.warn(xd);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){vt&&Y.warn(xd);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=Bu(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;vt&&Y.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{let t=await this._transport.send(e);return this.emit(`afterEnvelope`,e),t}catch(e){return vt&&Y.error(`Error while sending envelope:`,e),{}}return vt&&Y.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Jc(this,e),Yc(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(Sn(e,{...n&&{status:this._unhandledSessionStatus},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),qe(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...It(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ti(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=Le(),r=wr()){return vt&&Nd(e)&&Y.log(`Captured error event \`${fd(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{vt&&(Od(e)?Y.log(e.message):Dd(e)?Y.warn(e.message):Y.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=Pd(e),s=Nd(e),c=`before send for type \`${e.type||`error`}\``,l=`before_send`,u=a===void 0?void 0:Vn(a),d=Ht(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw Ed("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:jd(Md(this,i,e,t,()=>{l=`callback_error`}),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(l,d),o){let t=e.spans||[];this.recordDroppedEvent(l,`span`,1+t.length)}throw Ed(`${c} ${l===`callback_error`?`threw an error`:"returned `null`"}, will not send event.`)}let f=n.getSession()||r.getSession();if(s&&f&&this._updateSessionFromEvent(f,i),s&&typeof u==`number`&&qr()>u)throw this.recordDroppedEvent(`sample_rate`,`error`),Ed(`Discarding event because it's not included in the random sample (sampling rate = ${a})`);if(o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let p=i.transaction_info;return o&&p&&i.transaction!==e.transaction&&(i.transaction_info={...p,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw Od(e)||Dd(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),Td(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
8Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===rd&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){vt&&Y.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){vt&&Y.log(`No outcomes to send`);return}if(!this._dsn){vt&&Y.log(`No dsn provided, will not send outcomes`);return}vt&&Y.log(`Sending outcomes:`,e);
8let t=dd(e,this._options.tunnel&&oi(this._dsn));this.sendEnvelope(t)}};function jd(e,t){let n=`${t} must return \`null\` or a valid event.`;if(sn(e))return e.then(e=>{if(!Bn(e)&&e!==null)throw Td(n);return e},e=>{throw Td(`${t} rejected with ${e}`)});if(!Bn(e)&&e!==null)throw Td(n);return e}function Md(e,t,n,r,i){let{beforeSend:a,ignoreSpans:o,beforeSendTransaction:s}=t,c=Qc(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if(Nd(l)&&a){let e=l;return xt(vt?"The `beforeSend` callback threw an error, dropping the event:":``,()=>a(e,r),()=>(i(),null))}if(Pd(l)){if(c||o){let t=pd(l);if(o?.length&&Vc({description:t.description,op:t.op,attributes:t.data},o))return null;if(c){let e=el(t,c);l=Ve(n,md(e))}if(l.spans){let t=[],n=l.spans;for(let e of n){if(o?.length&&Vc({description:e.description,op:e.op,attributes:e.data},o)){Uc(n,e);continue}c?t.push(el(e,c)):t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),l.spans=t}}if(s){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return xt(vt?"The `beforeSendTransaction` callback threw an error, dropping the event:":``,()=>s(l,r),()=>(i(),null))}}return l}function Nd(e){return e.type===void 0}function Pd(e){return e.type===`transaction`}function Fd(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Ld(e.attributes)}function Id(e){let t=0;return e.message&&(t+=e.message.length*2),t+Ld(e.attributes)}function Ld(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*Rd(e[0]):ai(e)?t+=Rd(e):t+=100}),t}function Rd(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function zd(e,t){t.debug===!0&&(vt?Y.enable():Wt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Le().update(t.initialScope);let n=new e(t);return Bd(n),n.init(),n}function Bd(e){Le().setClient(e)}var Vd=`[Filtered]`,Hd=[`auth`,`token`,`secret`,`session`,`password`,`passwd`,`pwd`,`key`,`jwt`,`bearer`,`sso`,`saml`,`csrf`,`xsrf`,`credentials`,`sid`,`identity`,`set-cookie`,`cookie`];function Ud(e,t){return t.some(t=>e.includes(t))}function Wd(e,t,n){if(t===!1)return!0;let r=e.toLowerCase();if(Ud(r,n==null?Hd:[...Hd,...n]))return!0;if(t===!0)return!1;let i=(`deny`in t?t.deny:t.allow).some(e=>r.includes(e.toLowerCase()));return`deny`in t?i:!i}function Gd(e,t,n){if(t===!1)return{};let r={};for(let i of Object.keys(e))r[i]=Wd(i,t,n)?Vd:e[i];return r}function Kd(e,t){if(e&&t!==!1)return e.split(`&`).map(e=>{let n=e.indexOf(`=`),r=n===-1?e:e.slice(0,n),i=new URLSearchParams(`${r}=`).keys().next().value;return i!==void 0&&Wd(i,t)?`${r}=${Vd}`:e}).join(`&`)}function qd(e,t){let n=e.indexOf(`#`),r=n===-1?e.length:n,i=e.indexOf(`?`);if(i===-1||i>r)return e;let a=e.slice(0,i),o=e.slice(i+1,r),s=e.slice(r),c=Kd(o,t);return c?`${a}?${c}${s}`:`${a}${s}`}function Jd(e){return(e??Dr())?.getDataCollectionOptions().urlQueryParams??!0}function Yd(e,t){return e===void 0?void 0:qd(e,Jd(t))}function Xd(e,t){return e?Kd(e,Jd(t)):void 0}var Zd=`thismessage:/`;function Qd(e){return`isRelative`in e}function $d(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?Zd:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function ef(e){if(Qd(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function tf(e){return e?.replace(/^\?/,``)||void 0}function nf(e){return e?.replace(/^#/,``)||void 0}function rf(e,t){try{return new URL(e,t).hostname||void 0}catch{return}}function af(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function of(e){return e.split(/[?#]/,1)[0]}function sf(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function cf(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return uf(e,n)||lf(e,r)}function lf(e,t){return t?ff(e)===ff(t):!1}function uf(e,t){let n=$d(e);return!n||Qd(n)||!t?!1:df(n.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}function df(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function ff(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function pf(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function mf(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:Yt})),i.version=Yt)}function hf(e={}){let t=e.client||Dr();if(!Zn()||!t)return{};let n=Pt(),r=bt(n);if(r.getTraceData)return r.getTraceData(e);let i=e.scope||Le(),a=e.span||jn(),o=gt(a)&&!Dn(t.getOptions());if(!a&&Vt())return{};let s=a&&!o?$n(a):gf(i),c=a?He(a):Ti(t,i),l=hi(c);
8if(!Hr.test(s))return Y.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let u={"sentry-trace":s,baggage:l};return e.propagateTraceparent&&(u.traceparent=a&&!o?Ar(a):_f(i)),u}function gf(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Nr(t,r,n)}function _f(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return hr(t,r,n)}var vf=new WeakMap;function yf(e){let t=`${e.flags.replace(/[gy]/g,``)}${e.ignoreCase?``:`i`}`;if(t===e.flags)return e;let n=vf.get(e);if(n)return n;let r=new RegExp(e.source,t);return vf.set(e,r),r}function bf(e,t,n=!1){let r=e.toLowerCase();for(let i of t)if(mi(i)){let e=i.toLowerCase();if(n?r===e:r.includes(e))return!0}else if(vi(i)&&yf(i).test(e))return!0;return!1}var xf=100;function Sf(e,t){let n=Dr(),r=wr();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=xf}=n.getOptions();if(a<=0)return;let o={timestamp:vn(),...e},s=i?xt(vt?"The `beforeBreadcrumb` callback threw an error, dropping the breadcrumb:":``,()=>Wt(()=>i(o,t)),()=>null):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var Cf=`FunctionToString`,wf=new WeakMap,Tf=Zc((()=>({name:Cf,setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n=Xr(this),r;try{wf.has(Dr())&&n!==void 0&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){wf.set(e,!0)}}))),Ef=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],Df=`EventFilters`,Of=Zc((e={})=>{let t;return{name:Df,setup(n){t=kf(e,n.getOptions())},processEvent(n,r,i){return t||=kf(e,i.getOptions()),Af(n,t)?null:n}}});function kf(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Ef],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Af(e,t){if(!e.type){if(jf(e,t.ignoreErrors))return vt&&Y.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
9Event: ${wt(e)}`),!0;if(Lf(e))return vt&&Y.warn(`Event dropped due to not having an error message, error type or stacktrace.
10Event: ${wt(e)}`),!0;if(Nf(e,t.denyUrls))return vt&&Y.warn(`Event dropped due to being matched by \`denyUrls\` option.
11Event: ${wt(e)}.
12Url: ${If(e)}`),!0;if(!Pf(e,t.allowUrls))return vt&&Y.warn(`Event dropped due to not being matched by \`allowUrls\` option.
13Event: ${wt(e)}.
14Url: ${If(e)}`),!0}else if(e.type===`transaction`&&Mf(e,t.ignoreTransactions))return vt&&Y.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
15Event: ${wt(e)}`),!0;return!1}function jf(e,t){return t?.length?fd(e).some(e=>en(e,t)):!1}function Mf(e,t){if(!t?.length)return!1;let n=e.transaction;return n?en(n,t):!1}function Nf(e,t){if(!t?.length)return!1;let n=If(e);return n?en(n,t):!1}function Pf(e,t){if(!t?.length)return!0;let n=If(e);return!n||en(n,t)}function Ff(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function If(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Ff(t):null}catch{return vt&&Y.error(`Cannot extract url for event ${wt(e)}`),null}}function Lf(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Rf(e,t,n,r,i,a){if(!i.exception?.values||!a||!tr(a.originalException))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=zf(e,t,r,a.originalException,n,i.exception.values,o,0))}
15function zf(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(tr(r[i])){Vf(o,s,r);let a=e(t,r[i]),l=c.length;Hf(a,i,l,s),c=zf(e,t,n,r[i],i,[a,...c],a,l)}return Bf(r)&&r.errors.forEach((a,l)=>{if(tr(a)){Vf(o,s,r);let u=e(t,a),d=c.length;Hf(u,`errors[${l}]`,d,s),c=zf(e,t,n,a,i,[u,...c],u,d)}}),c}function Bf(e){return Array.isArray(e.errors)}function Vf(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Bf(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Hf(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function Uf(e){return tr(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function Wf(e){return Uf(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var Gf=new Set([]);function Kf(e){let t=`console`,n=kc(t,e);return Ac(t,Yf),n}function qf(e){for(let t of e)Gf.add(t);return()=>{for(let t of e)Gf.delete(t)}}var Jf=new Set;function Yf(){`console`in at&&Ye.forEach(function(e){!Jf.has(e)&&e in at.console&&(Jf.add(e),Lr(at.console,e,function(t){return Fe[e]=t,function(...t){let n=t[0],r=Fe[e],i=Gf.size&&typeof n==`string`&&en(n,Gf);i||jc(`console`,{args:t,level:e}),(!i||vt&&Y.isEnabled())&&r?.apply(at.console,t)}}))})}function Xf(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var Zf=`Dedupe`,Qf=Zc((()=>{let e;return{name:Zf,processEvent(t){if(t.type)return t;try{if($f(t,e))return vt&&Y.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function $f(e,t){return t?!!(ep(e,t)||tp(e,t)):!1}function ep(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!rp(e,t)||!np(e,t))}function tp(e,t){let n=ip(t),r=ip(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!rp(e,t)||!np(e,t))}function np(e,t){let n=ui(e),r=ui(t);if(!n||!r)return!n&&!r;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function rp(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n||!r)return!n&&!r;try{return n.join(``)===r.join(``)}catch{return!1}}function ip(e){return e.exception?.values?.[0]}var ap=`Console`,op=Zc((e={})=>{let t=new Set(e.levels||Ye);return{name:ap,setup(n){let r=Kf(({args:e,level:r})=>{Dr()===n&&t.has(r)&&sp(r,e)});if(n.registerCleanup(r),e.filter){let t=qf(e.filter);n.registerCleanup(t)}}}});function sp(e,t){let n={category:`console`,data:{arguments:t,logger:`console`},level:Xf(e),message:cp(t)};if(e===`assert`){if(t[0]===!1){let e=t.slice(1);n.message=e.length>0?`Assertion failed: ${cp(e)}`:`Assertion failed`,n.data.arguments=e}else return}Sf(n,{input:t,level:e})}function cp(e){return`util`in at&&typeof at.util.format==`function`?at.util.format(...e):Rn(e,` `)}var lp=`ConversationId`,up=Zc((()=>({name:lp,setup(e){e.on(`spanStart`,e=>{let t=Le().getScopeData(),n=wr().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=Zr(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(tt,r)}})}})));function dp(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=Dn()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(mp(n,e),fp(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1,urlBase:u}=i??{},d=Dr(),f=!!jn(),p=f||!!d&&ul(d),m=s&&p?zl(vp(o,a,c,d,u)):new Cn,h=Xl(m)&&f?void 0:m;if(s&&!p&&d?.recordDroppedEvent(`no_parent_span`,`span`),e.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=pp(t,n,Dn()&&p?h:void 0,l);r&&(e.args[1]=n,n.headers=r)}if(d){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit(`beforeOutgoingRequestSpan`,m,t)}return m}function fp(e,t,n){n?.onRequestSpanEnd?.(e,{headers:t.response?.headers,error:t.error})}function pp(e,t,n,r){let i=hf({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(Jn(e)?e.headers:void 0);if(!c)return{"sentry-trace":a,...o&&{baggage:o},...s&&{traceparent:s}};if(gp(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?hp(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}if(_p(c)){let e=[...c];e.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!e.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&typeof e[1]==`string`&&hp(e[1]));return o&&!t&&e.push([`baggage`,o]),e}{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>hp(e)):hp(n));o&&!l&&i.push(o);let u=Object.assign({},c,{"sentry-trace":e??a,...i.length>0&&{baggage:i.join(`,`)}});return r&&s&&!t&&(u.traceparent=s),u}}function mp(e,t){if(t.response){pn(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(Yr,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function hp(e){return typeof e==`string`&&e.split(`,`).some(e=>e.trim().startsWith(Yn))}function gp(e){return typeof Headers<`u`&&Mr(e,Headers)}function _p(e){return Array.isArray(e)?e.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`):!1}function vp(e,t,n,r,i){let a=!!r&&ul(r),o=rf(e,i);if(e.startsWith(`data:`)){let i=sf(e);return{name:a?t:`${t} ${i}`,attributes:yp(e,void 0,t,n,r,o)}}let s=$d(e),c=s?ef(s):e;return{name:a?o?`${t} ${o}`:t:`${t} ${c}`,attributes:yp(e,s,t,n,r,o)}}function yp(e,t,n,r,i,a){let o={[Ze]:Yd(sf(e),i),type:`fetch`,[Xn]:n,[ot]:r,[Ct]:Au,[si]:a};return t&&(Qd(t)||(o[Ze]=Yd(sf(t.href),i),o[ln]=t.hostname,o[gr]=t.port?Number(t.port):void 0),o[Kn]=Xd(tf(t.search),i),o[gi]=nf(t.hash)),o}var bp=at;function xp(){if(!(`fetch`in bp))return!1;
15try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function Sp(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Cp(){if(typeof EdgeRuntime==`string`)return!0;if(!xp())return!1;if(Sp(bp.fetch))return!0;let e=!1,t=bp.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Sp(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){vt&&Y.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function wp(e){let t=`fetch`,n=kc(t,e);return Ac(t,()=>Tp()),n}function Tp(e){(!hl()||Cp())&&Lr(at,`fetch`,function(t){return new Proxy(t,{apply(t,n,r){let i=Error(),{method:a,url:o}=Op(r),s={args:r,fetchData:{method:a,url:o},startTimestamp:En()*1e3,virtualError:i,headers:kp(r)};return e||jc(`fetch`,{...s}),Reflect.apply(t,at,r).then(async t=>(e?e(t):jc(`fetch`,{...s,endTimestamp:En()*1e3,response:t}),t),e=>{jc(`fetch`,{...s,endTimestamp:En()*1e3,error:e}),tr(e)&&e.stack===void 0&&(e.stack=i.stack,vr(e,`framesToPop`,1));let t=Dr()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&tr(e)&&e.name===`TypeError`&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(s.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:vr(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})})}function Ep(e,t){return mr(e)&&!!e[t]}function Dp(e){return typeof e==`string`?e:e?Ep(e,`url`)?e.url:e.toString?e.toString():``:``}function Op(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Dp(t),method:Ep(n,`method`)?String(n.method).toUpperCase():Jn(t)&&Ep(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Dp(t),method:Ep(t,`method`)?String(t.method).toUpperCase():`GET`}}function kp(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(Jn(t))return new Headers(t.headers)}catch{}}function Ap(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var jp=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(t!==void 0)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.delete(e),this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}},Mp=-1,Np=()=>Mp,Pp=e=>{addEventListener(`pageshow`,t=>{t.persisted&&(Mp=t.timeStamp,e(t))},!0)},Fp=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`)(t.value,n),e(t)))}},Ip=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},Lp=()=>{let e=performance.getEntriesByType(`navigation`)[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Rp=()=>Lp()?.activationStart??0,zp=-1,Bp=new Set,Vp=()=>document.visibilityState!==`hidden`||document.prerendering?1/0:0,Hp=e=>{if(document.visibilityState===`hidden`){if(e.type===`visibilitychange`)for(let e of Bp)e();isFinite(zp)||(zp=e.type===`visibilitychange`?e.timeStamp:0,removeEventListener(`prerenderingchange`,Hp,!0))}},Up=(e=!1)=>{if(e&&(zp=1/0),zp<0){let e=Rp();zp=(document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).find(t=>t.name===`hidden`&&t.startTime>=e)?.startTime)??Vp(),addEventListener(`visibilitychange`,Hp,!0),addEventListener(`prerenderingchange`,Hp,!0),Pp(()=>{setTimeout(()=>{zp=Vp()})})}return{get firstHiddenTime(){return zp},onHidden(e){Bp.add(e)}}},Wp=(e,t=-1,n,r=0,i,a,o)=>{let s=Lp(),c=s?.navigationId||0,l=`navigate`;return n?l=n:Np()>=0?l=`back-forward-cache`:s&&(document.prerendering||Rp()>0?l=`prerender`:document.wasDiscarded?l=`restore`:s.type&&(l=s.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:`v
156-${Date.now()}-${Math.floor(8999999999999*Math.random())+0xe8d4a51000}`,navigationType:l,navigationId:r||c,navigationInteractionId:i,navigationURL:a||s?.name,navigationStartTime:o||0}},Gp=new WeakMap;function Kp(e,t){let n=Gp.get(t);return n||(n=new WeakMap,Gp.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}var qp=class{t;i=0;o=[];h(e){if(e.hadRecentInput)return;let t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}},Jp=(e,t,n={})=>{try{let r=e.filter(e=>PerformanceObserver.supportedEntryTypes.includes(e));if(r.length>0){let e=new PerformanceObserver(e=>{queueMicrotask(()=>{let n=e.getEntries();r.length>1&&n.sort((e,t)=>e.startTime+e.duration-(t.startTime+t.duration)),t(n)})});for(let t of r)e.observe({type:t,buffered:!0,...n});return e}}catch{}},Yp=e=>globalThis.PerformanceObserver?.supportedEntryTypes?.includes(`soft-navigation`)&&typeof globalThis.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint==`function`&&e&&e.reportSoftNavs,Xp=(e,t)=>{if(e.set(t.navigationId,t),e.size>2){let t=e.keys().next().value;t!==void 0&&e.delete(t)}},Zp=e=>{let t=!1;return()=>{t||=(e(),!0)}},Qp=class{l},$p=e=>{document.prerendering?addEventListener(`prerenderingchange`,e,!0):e()},em=[1800,3e3],tm=(e,t={})=>{let n=Yp(t);$p(()=>{let r=Kp(t,Qp),i=Up(),a,o=Wp(`FCP`),s=Jp([`paint`],e=>{for(let t of e)t.name===`first-contentful-paint`&&(s.disconnect(),t.startTime<i.firstHiddenTime&&(o.value=Math.max(t.startTime-Rp(),0),o.entries.push(t),o.navigationId=t.navigationId||o.navigationId,a(!0)))});s&&(a=Fp(e,o,em,t.reportAllChanges),Pp(n=>{o=Wp(`FCP`,-1,`back-forward-cache`,o.navigationId,o.navigationInteractionId,o.navigationURL,Np()),a=Fp(e,o,em,t.reportAllChanges),Ip(()=>{o.value=performance.now()-n.timeStamp,a(!0)})})),n&&Jp([`soft-navigation`],n=>{n.forEach(n=>{r.l&&n.navigationId&&Xp(r.l,n),o=Wp(`FCP`,Math.max((n.presentationTime||n.paintTime||0)-n.startTime,0),`soft-navigation`,n.navigationId,n.interactionId,n.name,n.startTime),a=Fp(e,o,em,t.reportAllChanges),a(!0)})},t)})},nm=[.1,.25],rm=(e,t={})=>{let n=Up();tm(Zp(()=>{let r,i=Wp(`CLS`,0),a=Kp(t,qp),o=(n,o,s,c,l)=>{i=Wp(`CLS`,0,n,o,s,c,l),a.i=0,r=Fp(e,i,nm,t.reportAllChanges)},s=(e=!1)=>{a.i>i.value&&(i.value=a.i,i.entries=a.o),r(e)},c=e=>{s(!0),o(`soft-navigation`,e.navigationId,e.interactionId,e.name,e.startTime)},l=e=>{for(let t of e)t.entryType===`soft-navigation`?c(t):a.h(t);s()},u=[`layout-shift`];Yp(t)&&u.push(`soft-navigation`);let d=Jp(u,l);d&&(r=Fp(e,i,nm,t.reportAllChanges),n.onHidden(()=>{l(d.takeRecords()),r(!0)}),Pp(()=>{o(`back-forward-cache`,i.navigationId,i.navigationInteractionId,i.navigationURL,Np()),Ip(r)}),setTimeout(r))}))},im=0,am=1/0,om=0,sm=e=>{for(let t of e)t.interactionId&&(am=Math.min(am,t.interactionId),om=Math.max(om,t.interactionId),im=om?(om-am)/7+1:0)},cm,lm=()=>cm?im:performance.interactionCount??0,um=()=>{`interactionCount`in performance||cm||(cm=Jp([`event`],sm,{durationThreshold:0}))},dm=class{u=0;v=[];m=new Map;p;T;_(){return lm()-this.u}M(){this.u=lm(),this.v.length=0,this.m.clear()}L(e){let t=this._(),n=Math.min(this.v.length-1,Math.floor(t/50));return!t||n!==-1||e!==`soft-navigation`&&e!==`back-forward-cache`?this.v[n]:{P:8,id:-1,entries:[]}}h(e){if(this.p?.(e),!e.interactionId)return;let t=this.v.at(-1),n=this.m.get(e.interactionId);if(n||this.v.length<10||e.duration>t.P){if(n?e.duration>n.P?(n.entries=[e],n.P=e.duration):e.duration===n.P&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],P:e.duration},this.m.set(n.id,n),this.v.push(n)),this.v.sort((e,t)=>t.P-e.P),this.v.length>10){let e=this.v.splice(10);for(let t of e)this.m.delete(t.id)}this.T?.(n)}}},fm=e=>{let t=`requestIdleCallback`in globalThis?1e3:0,n=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState===`hidden`)e();else{let i=Zp(e),a=-1,o=()=>{r(a),i()};addEventListener(`visibilitychange`,o,{once:!0,capture:!0}),a=n(()=>{removeEventListener(`visibilitychange`,o,{capture:!0}),i()},{timeout:t})}},pm=[200,500],mm=(e,t={})=>
15{if(!globalThis.PerformanceEventTiming||!(`interactionId`in PerformanceEventTiming.prototype))return;let n=Up();$p(()=>{um();let r,i=Wp(`INP`),a=Kp(t,dm),o=(n,o,s,c,l)=>{a.M(),i=Wp(`INP`,-1,n,o,s,c,l),r=Fp(e,i,pm,t.reportAllChanges)},s=()=>{let e=a.L(i.navigationType);e&&e.P!==i.value&&(i.value=e.P,i.entries=e.entries,r())},c=e=>{s(),r(!0),o(`soft-navigation`,e.navigationId,e.interactionId,e.name,e.startTime)},l=(e,t=!1)=>{fm(()=>{for(let t of e)t.entryType===`soft-navigation`?c(t):a.h(t);s(),t&&r(!0)})},u=[`event`,`first-input`];Yp(t)&&u.push(`soft-navigation`);let d=Jp(u,l,{...t,durationThreshold:t.durationThreshold??40});r=Fp(e,i,pm,t.reportAllChanges),d&&(n.onHidden(()=>{l(d.takeRecords(),!0)}),Pp(()=>{o(`back-forward-cache`,i.navigationId,i.navigationInteractionId,i.navigationURL,Np())}))})},hm=class{p;l;h(e){this.p?.(e)}},gm=[2500,4e3],_m=(e,t={})=>{let n=!1,r=Yp(t);$p(()=>{let i,a=Up(),o=Wp(`LCP`),s=Kp(t,hm),c=(r,s,c,l,u)=>{o=Wp(`LCP`,-1,r,s,c,l,u),i=Fp(e,o,gm,t.reportAllChanges),n=!1,r===`soft-navigation`&&(a=Up(!0))},l=e=>{s.l&&e.navigationId&&Xp(s.l,e),n||i(!0),c(`soft-navigation`,e.navigationId,e.interactionId,e.name,e.startTime);let t=e.getLargestInteractionContentfulPaint?.();t&&u([t])},u=e=>{t.reportAllChanges||r||(e=e.slice(-1));for(let t of e){if(!t)continue;if(t.entryType===`soft-navigation`){l(t);continue}let e=0,n=[],r=t.startTime;if(t.entryType===`largest-contentful-paint`)e=Math.max(t.startTime-Rp(),0),s.h(t),n=[t];else if(t.entryType===`interaction-contentful-paint`){let i=t;if(!o.navigationId||`interactionId`in i&&i.interactionId!=o.navigationInteractionId)continue;r=i.largestContentfulPaint?.renderTime||0,e=Math.max(r-t.startTime,0),i.largestContentfulPaint&&(s.h(i.largestContentfulPaint),n=[i.largestContentfulPaint])}r<a.firstHiddenTime&&(o.value=e,o.entries=n,i())}},d=[`largest-contentful-paint`];r&&d.push(`interaction-contentful-paint`,`soft-navigation`);let f=Jp(d,u);if(f){i=Fp(e,o,gm,t.reportAllChanges);let a=[`keydown`,`click`,`visibilitychange`],s=e=>{if(e.isTrusted&&!n){let e=o.id;fm(()=>{if(!n){if(!r){f.disconnect();for(let e of a)removeEventListener(e,s,{capture:!0})}e===o.id&&(n=!0,i(!0))}})}};for(let e of a)addEventListener(e,s,{capture:!0});Pp(r=>{c(`back-forward-cache`,o.navigationId,o.navigationInteractionId,o.navigationURL,Np()),i=Fp(e,o,gm,t.reportAllChanges),Ip(()=>{o.value=performance.now()-r.timeStamp,n=!0,i(!0)})})}})},vm=[800,1800],ym=e=>{document.prerendering?$p(()=>ym(e)):document.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>ym(e),!0)},bm=(e,t={})=>{let n=Yp(t),r=Wp(`TTFB`),i=Fp(e,r,vm,t.reportAllChanges);ym(()=>{let a=Lp();if(a){let o=a.responseStart;r.value=Math.max(o-Rp(),0),r.entries=[a],i(!0),Pp(()=>{r=Wp(`TTFB`,0,`back-forward-cache`,r.navigationId,r.navigationInteractionId,r.navigationURL,Np()),i=Fp(e,r,vm,t.reportAllChanges),i(!0)}),n&&Jp([`soft-navigation`],n=>{n.forEach(n=>{n.navigationId&&(r=Wp(`TTFB`,0,`soft-navigation`,n.navigationId,n.interactionId,n.name,n.startTime),r.entries=[n],i=Fp(e,r,vm,t.reportAllChanges),i(!0))})},t)}})},xm=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Sm={},Cm={},wm,Tm,Em,Dm,Om,km={},Am=!1,jm=!1;function Mm(){Am=!0}function Nm(){jm=!0}function Pm(e,t=!1){return qm(`cls`,e,Hm,wm,t)}function Fm(e,t=!1){return qm(`lcp`,e,Um,Tm,t)}function Im(e){return qm(`ttfb`,e,Wm,Em)}function Lm(e){return qm(`fcp`,e,Gm,Om)}function Rm(e){return qm(`inp`,e,Km,Dm)}function zm(e,t){return Ym(e,t),Cm[e]||(Jm(e),Cm[e]=!0),Xm(e,t)}function Bm(e,t){let n=Sm[e];if(n?.length)for(let r of n)try{r(t)}catch(t){xm&&Y.error(`Error while triggering instrumentation handler.
16Type: ${e}
17Name: ${fn(r)}
18Error:`,t)}}function Vm(e){return t=>{(jm||t.navigationType!==`back-forward-cache`)&&e(t)}}function Hm(){return rm(Vm(e=>{Bm(`cls`,{metric:e}),wm=e}),{reportAllChanges:!Am&&!jm,reportSoftNavs:Am})}function Um(){return _m(Vm(e=>{Bm(`lcp`,{metric:e}),Tm=e}),{reportAllChanges:!Am&&!jm,reportSoftNavs:Am})}function Wm(){return bm(Vm(e=>{Bm(`ttfb`,{metric:e}),Em=e}))}function Gm(){return tm(Vm(e=>{Bm(`fcp`,{metric:e}),Om=e}))}function Km(){return mm(Vm(e=>{Bm(`inp`,{metric:e}),Dm=e}),{reportSoftNavs:Am})}function qm(e,t,n,r,i=!1){return Ym(e,t),Cm[e]||(Cm[e]=!0,Promise.resolve().then(()=>{km[e]=n()})),r&&t({metric:r}),Xm(e,t,i)}function Jm(e){let t={type:e,buffered:!0};e===`event`&&(t.durationThreshold=0);try{PerformanceObserver.supportedEntryTypes.includes(e)&&new PerformanceObserver(t=>{Promise.resolve().then(()=>{Bm(e,{entries:t.getEntries()})})}).observe(t)}catch{}}function Ym(e,t){Sm[e]=Sm[e]||[],Sm[e].push(t)}function Xm(e,t,n=!1){return()=>{n&&km[e]?.();let r=Sm[e];
18if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Zm(e){return`duration`in e}var Qm=at,$m=5,eh=5,th,nh,rh,ih=new jp($m),ah=new jp($m),oh=!1;function sh(e,t){return Math.abs(e-t)<=eh}function ch(){try{return PerformanceObserver.supportedEntryTypes.includes(`soft-navigation`)&&typeof Qm.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint==`function`}catch{return!1}}function lh(e){if(oh||!ch())return;oh=!0;let t=e=>{e.isTrusted&&(rh=e.timeStamp)};Qm.addEventListener(`click`,t,{capture:!0,passive:!0}),Qm.addEventListener(`keydown`,t,{capture:!0,passive:!0}),e.on(`spanStart`,e=>{if(Rr(e).attributes?.[`sentry.op`]!==`navigation`)return;th=void 0;let t=rh;if(t!=null){if(nh?.interactionTimestamp===t){ih.set(nh.interactionId,e),nh=void 0;return}th={span:e,interactionTimestamp:t}}});let n=({entries:e})=>{for(let t of e){if(!Zm(t)||!t.interactionId)continue;let e=th;if(e&&sh(t.startTime,e.interactionTimestamp)){ih.set(t.interactionId,e.span),th=void 0;continue}ih.get(t.interactionId)||rh!=null&&sh(t.startTime,rh)&&(nh={interactionId:t.interactionId,interactionTimestamp:rh})}};zm(`event`,n),zm(`first-input`,n),zm(`soft-navigation`,({entries:e})=>{for(let t of e){let e=ih.get(t.interactionId);if(!e){xm&&Y.log(`[SoftNav] No navigation span found for soft navigation ${t.navigationId}`,t);continue}ah.set(t.navigationId,e),e.setAttribute(or,t.navigationId)}})}function uh(e){return e.navigationType===`soft-navigation`?ah.get(e.navigationId)||(e.navigationInteractionId==null?void 0:ih.get(e.navigationInteractionId)):void 0}function dh(e){return typeof e==`number`&&isFinite(e)}function fh(e,t,n,{...r}){let i=Zr(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),Bl(e,()=>{let e=$l({startTime:t,...r});return e&&e.end(n),e})}function ph(){return Qm.addEventListener&&Qm.performance}function mh(e){return e/1e3}function hh(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function gh(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function _h(e){return e&&((ht()||performance.timeOrigin)+e)/1e3}function vh(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=hh(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return ht()||ph()?.timeOrigin?yh({...t,"http.request.redirect_start":_h(e.redirectStart),"http.request.redirect_end":_h(e.redirectEnd),"http.request.worker_start":_h(e.workerStart),"http.request.fetch_start":_h(e.fetchStart),"http.request.domain_lookup_start":_h(e.domainLookupStart),"http.request.domain_lookup_end":_h(e.domainLookupEnd),"http.request.connect_start":_h(e.connectStart),"http.request.secure_connection_start":_h(e.secureConnectionStart),"http.request.connection_end":_h(e.connectEnd),"http.request.request_start":_h(e.requestStart),"http.request.response_start":_h(e.responseStart),"http.request.response_end":_h(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function yh(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var bh=2147483647,xh=0;function Sh(){zm(`longtask`,({entries:e})=>{let t=jn();if(!t)return;let{attributes:n,start_timestamp:r}=Rr(t);for(let i of e){let e=mh(ht()+i.startTime),a=mh(i.duration);n[`sentry.op`]===`navigation`&&r&&e<r||fh(t,e,e+a,{name:Nu,op:Su,attributes:{[ot]:`auto.ui.browser.metrics`}})}})}function Ch(){new PerformanceObserver(e=>{let t=jn();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=mh(ht()+n.startTime),{start_timestamp:r,attributes:{[Ct]:i}}=Rr(t);if(i===`navigation`&&r&&e<r)continue;let a=mh(n.duration),o={[ot]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[$t]=l),u&&(o[ut]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),fh(t,e,e+a,{name:Nu,op:Cu,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function wh(e,t){let n=ph(),r=ht();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignoreResourceSpans:a}=t,o=mh(r),s=n.getEntries(),{attributes:c,start_timestamp:l}=Rr(e);
18s.slice(xh).forEach(t=>{let n=mh(t.startTime),r=mh(Math.max(0,t.duration));if(!(c[`sentry.op`]===`navigation`&&l&&o+n<l))switch(t.entryType){case`navigation`:Eh(e,t,o,i);break;case`paint`:Th(e,t,n,r,o);break;case`resource`:jh(e,t,t.name,n,r,o,a,i)}}),xh=Math.max(s.length-1,0),Mh(e,i)}function Th(e,t,n,r,i){let a=i+n;fh(e,a,a+r,{name:t.name,attributes:{[Ct]:du,[ot]:`auto.resource.browser.metrics`,[Qr]:t.name}})}function Eh(e,t,n,r){Oh(e,t,`unloadEvent`,n,r),Oh(e,t,`redirect`,n,r),Oh(e,t,`domContentLoadedEvent`,n,r),Oh(e,t,`loadEvent`,n,r),Oh(e,t,`connect`,n,r),Oh(e,t,`secureConnection`,n,r),Oh(e,t,`fetch`,n,r),Oh(e,t,`domainLookup`,n,r),Ah(e,t,n,r)}var Dh={secureConnection:_u,fetch:vu,domainLookup:yu,unloadEvent:fu,redirect:pu,connect:gu,domContentLoadedEvent:mu,loadEvent:hu};function Oh(e,t,n,r,i){let a=t[kh(n)],o=t[`${n}Start`];if(!o||!a)return;let s=Dh[n];fh(e,r+mh(o),r+mh(a),{name:i?Ru[s]:t.name,attributes:{[Ct]:s,[ot]:`auto.ui.browser.metrics`,[Ze]:Yd(t.name),...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function kh(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function Ah(e,t,n,r){let i=n+mh(t.requestStart),a=n+mh(t.responseEnd),o=n+mh(t.responseStart);if(t.responseEnd){let n=Yd(t.name);fh(e,i,a,{name:r?Ru[bu]:t.name,attributes:{[Ct]:bu,[ot]:`auto.ui.browser.metrics`,[Ze]:n}}),fh(e,o,a,{name:r?Ru[xu]:t.name,attributes:{[Ct]:xu,[ot]:`auto.ui.browser.metrics`,[Ze]:n}})}}function jh(e,t,n,r,i,a,o,s){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let c=t.initiatorType?`resource.${t.initiatorType}`:uu;if(o?.includes(c))return;let l={[ot]:`auto.resource.browser.metrics`},u=af(n);u.protocol&&(l[br]=u.protocol.split(`:`).pop());let d=u.host?.replace(/^.*@/,``);d&&(l[ln]=d);let f=d?.replace(/:\d+$/,``);f&&(l[si]=f),l[Ln]=n.includes(Qm.location.origin),l[Ze]=Yd(n),Nh(t,l,[[`responseStatus`,zr],[`transferSize`,ti],[`encodedBodySize`,Yr],[`decodedBodySize`,`http.response.body.decoded_size`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let p={...l,...vh(t)},m=a+r;fh(e,m,m+i,{name:s?f||`Resource`:n.replace(Qm.location.origin,``),op:c,attributes:p})}function Mh(e,t){let n=Qm.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?ur:`effectiveConnectionType`,r.effectiveType),r.type&&e.setAttribute(t?Nn:`connectionType`,r.type),dh(r.rtt)&&(t?e.setAttribute(jr,r.rtt):Rr(e).attributes[`sentry.op`]===`pageload`&&Al(`connection.rtt`,r.rtt,`millisecond`))),dh(n.deviceMemory)&&(t?e.setAttribute(`device.memory.estimated_capacity`,n.deviceMemory):e.setAttribute(`deviceMemory`,`${n.deviceMemory} GB`)),dh(n.hardwareConcurrency)&&(t?e.setAttribute(`device.processor_count`,n.hardwareConcurrency):e.setAttribute(`hardwareConcurrency`,String(n.hardwareConcurrency)))}function Nh(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<bh||typeof i==`string`)&&(t[r]=i)})}var Ph=80,Fh={};try{typeof Node<`u`&&(Fh.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(Fh.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,Fh.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,Fh.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,Fh.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(Fh.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function Ih(e,t,n){let r=Fh[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function Lh(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Ph;for(;n&&i++<5&&(o=Rh(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=Ih(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function Rh(e,t){let n=[],r=Ih(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=Ih(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>Ih(e,`getAttribute`,t)).map(t=>[t,Ih(e,`getAttribute`,t)]):null;
18if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=Ih(e,`id`);t&&n.push(`#${t}`);let r=Ih(e,`className`);if(r&&mi(r)){let e=r.split(/\s+/);for(let t of e)n.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let r=Ih(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}function zh(e){return e!=null&&e>0&&e<=6e4}function Bh(e,t,n){Qm.document&&Qm.addEventListener(e,t,n)}function Vh(e,t,n){Qm.document&&Qm.removeEventListener(e,t,n)}var Hh=(e=!0)=>{let t=Qm.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Uh=()=>Hh()?.activationStart??0,Wh=e=>{Bh(`visibilitychange`,t=>{Qm.document?.visibilityState===`hidden`&&e(t)},{capture:!0})},Gh=-1,Kh=new Set,qh=()=>Qm.document?.visibilityState===`hidden`&&!Qm.document?.prerendering?0:1/0,Jh=e=>{if(Qm.document?.visibilityState===`hidden`&&Gh>-1){if(e.type===`visibilitychange`)for(let e of Kh)e();isFinite(Gh)||(Gh=e.type===`visibilitychange`?e.timeStamp:0,Vh(`prerenderingchange`,Jh,!0))}},Yh=()=>{if(Qm.document&&Gh<0){let e=Uh();Gh=(Qm.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??qh(),Bh(`visibilitychange`,Jh,!0),Bh(`prerenderingchange`,Jh,!0)}return{get firstHiddenTime(){return Gh},onHidden(e){Kh.add(e)}}},Xh=e=>{let t=Qm.requestIdleCallback||Qm.setTimeout;if(Qm.document?.visibilityState===`hidden`)e();else{let n=!1,r=()=>{n||=(e(),!0)};Bh(`visibilitychange`,r,{once:!0,capture:!0}),t(()=>{r(),Vh(`visibilitychange`,r,{capture:!0})})}},Zh={},Qh,$h,eg;function tg({trackCls:e,trackLcp:t}){if(ph()&&ht()){let n=t?rg():void 0,r=e?ng():void 0,i=ig(),a=ag(),o=og();return()=>{i(),a(),o(),n?.(),r?.()}}return()=>void 0}function ng(){return Pm(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(Zh.cls={value:e.value,unit:``},$h=t)},!0)}function rg(){return Fm(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&zh(e.value)&&(Zh.lcp={value:e.value,unit:`millisecond`},Qh=t)},!0)}function ig(){return Im(({metric:e})=>{eg=e.navigationType,e.entries[e.entries.length-1]&&(Zh.ttfb={value:e.value,unit:`millisecond`})})}function ag(){return Lm(({metric:e})=>{eg=e.navigationType,Zh.fcp={value:e.value,unit:`millisecond`}})}function og(){return zm(`paint`,({entries:e})=>{let t=Yh();for(let n of e)n.name===`first-paint`&&n.startTime<t.firstHiddenTime&&(Zh.fp={value:n.startTime,unit:`millisecond`})})}function sg(e,t){let n=ht();if(!ph()?.getEntries||!n){cg();return}let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:a}=t,o=mh(n);if(Rr(e).attributes[`sentry.op`]===`pageload`){if(dg(Zh),ug(Zh),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),xm&&Y.log(`Setting web vital attribute`,{[i]:n},`on pageload span`)};[`ttfb`,`fp`,`fcp`].forEach(e=>{Zh[e]&&t(e,Zh[e].value)}),Zh[`ttfb.requestTime`]&&t(`ttfb.requestTime`,Zh[`ttfb.requestTime`].value,`browser.web_vital.ttfb.request_time`)}else i||delete Zh.cls,a||delete Zh.lcp,Object.entries(Zh).forEach(([t,n])=>{Al(t,n.value,n.unit,e)}),lg(e,t);eg&&e.setAttribute(Ir,eg),e.setAttribute(r?`browser.performance.time_origin`:`performance.timeOrigin`,o),e.setAttribute(r?`browser.performance.navigation.activation_start`:`performance.activationStart`,Uh())}cg()}function cg(){Qh=void 0,$h=void 0,eg=void 0,Zh={}}function lg(e,t){Qh&&t.recordLcpOnPageloadSpan&&(Qh.element&&e.setAttribute(`lcp.element`,Lh(Qh.element)),Qh.id&&e.setAttribute(`lcp.id`,Qh.id),Qh.url&&e.setAttribute(`lcp.url`,Qh.url.trim().slice(0,200)),Qh.loadTime!=null&&e.setAttribute(`lcp.loadTime`,Qh.loadTime),Qh.renderTime!=null&&e.setAttribute(`lcp.renderTime`,Qh.renderTime),e.setAttribute(`lcp.size`,Qh.size)),$h?.sources&&t.recordClsOnPageloadSpan&&$h.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,Lh(t.node)))}function ug(e){let t=e.fp;t&&(t.value=Math.max(t.value-Uh(),0))}function dg(e){let t=Hh(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}var fg=[],pg=new Map,mg=new Map,hg={click:`click`,pointerdown:`click`,pointerup:`click`,mousedown:`click`,mouseup:`click`,touchstart:`click`,touchend:`click`,mouseover:`hover`,mouseout:`hover`,mouseenter:`hover`,mouseleave:`hover`,pointerover:`hover`,pointerout:`hover`,pointerenter:`hover`,pointerleave:`hover`,dragstart:`drag`,dragend:`drag`,drag:`drag`,dragenter:`drag`,dragleave:`drag`,dragover:`drag`,drop:`drag`,keydown:`press`,keyup:`press`,keypress:`press`,input:`press`};function gg(e){return e==null?void 0:pg.get(e)}function _g(){let e=Object.keys(hg);
18hl()&&e.forEach(e=>{Qm.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=Lh(t),r=Math.round(e.timeStamp);if(n&&n!==`<unknown>`&&!mg.has(r)&&(mg.set(r,n),mg.size>50)){let e=mg.keys().next().value;e!==void 0&&mg.delete(e)}}function n(e){let t=Math.round(e.startTime),n=mg.get(t);if(!n)for(let e=-5;e<=5;e++){let r=mg.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=jn(),r=t&&zn(t);e.forEach(e=>{if(!Zm(e))return;let t=e.interactionId;if(t==null||pg.has(t))return;let i=e.target?Lh(e.target):n(e);if(fg.length>10){let e=fg.shift();pg.delete(e)}fg.push(t),pg.set(t,{span:r,elementName:i})})};zm(`event`,r),zm(`first-input`,r)}var vg=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function yg(){let e=Qm.navigator;return e?.userAgent?vg.test(e.userAgent):!1}function bg(e,t=5){if(!at.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}function xg(){try{return Qm.document?.location.href??``}catch{return``}}function Sg(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,startTime:c,endTime:l,standalone:u,softNavigationId:d,navigationType:f}=e,p=s&&zn(s),m=p?Rr(p).name:Le().getScopeData().transactionName,h={[ot]:r,[Xt]:n,[Xe]:0,[`browser.web_vital.${i}.value`]:a,[Ke]:m,[kn]:m,[Wr]:Qm.navigator?.userAgent,...o};s&&Rr(s).attributes[`sentry.op`]===`pageload`&&(h[`sentry.pageload.span_id`]=s.spanContext().spanId),d!=null&&(h[or]=d),f&&(h[Ir]=f),u&&Object.assign(h,Cg());let g=$l({name:t,attributes:h,startTime:c,parentSpan:s,experimental:u?{standalone:!0}:void 0});g&&g.end(l??c)}function Cg(){let e=Dr()?.getIntegrationByName(`Replay`),t=e?.getReplayId(!0);return t?{[je]:t,"sentry._internal.replay_is_buffering":e.getRecordingMode()===`buffer`||void 0}:{}}function wg(e,t){let n,r=!1;function i(){!r&&n&&t(n),r=!0}Wh(()=>{i()});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e,o()})}var Tg={click:wu,hover:Tu,drag:Eu,press:Du},Eg={click:Pu,hover:Fu,drag:Iu,press:Lu};function Dg(e,t,n){let r;e.on(`afterStartPageLoadSpan`,e=>{r=e});let i;e.on(`spanStart`,e=>{let t=Rr(e).attributes;t?.[`sentry.op`]===`navigation`&&t[`browser.navigation.type`]===`back-forward-cache`&&(i=e)}),t(({metric:e})=>{let t=uh(e);if(e.navigationType===`soft-navigation`){t?n(e,t,e.navigationId):xm&&Y.log(`[SoftNav] Dropping ${e.name} for uncorrelated soft navigation ${e.navigationId}`);return}if(e.navigationType===`back-forward-cache`){n(e,i,void 0);return}n(e,r,void 0)})}function Og(e,t=!1){if(!gh(`largest-contentful-paint`))return;if(t){Dg(e,Fm,(e,t,n)=>{let r=e.entries[e.entries.length-1];kg(e.value,r,t,n,e.navigationType,e.navigationStartTime)});return}let n=0,r,i,a=Fm(({metric:e})=>{i=e.navigationType;let t=e.entries[e.entries.length-1];t&&zh(e.value)&&(n=e.value,r=t)},!0);wg(e,e=>{kg(n,r,e,void 0,i),a()})}function kg(e,t,n,r,i,a){if(!zh(e))return;xm&&Y.log(`Sending LCP span (${e})`);let o=ht()||0,s=mh(o+(a||0)),c=t?mh(o+t.startTime):s+mh(e),l=t?Lh(t.element):void 0,u=t?.element?bg(t.element):null,d=Dr(),f=d&&ul(d)?u||`Largest contentful paint`:l??`Largest contentful paint`,p={};l&&(p[`browser.web_vital.lcp.element`]=l),u&&(p[fi]=u),t?.id&&(p[`browser.web_vital.lcp.id`]=t.id),t?.url&&(p[`browser.web_vital.lcp.url`]=t.url),t?.loadTime!=null&&(p[`browser.web_vital.lcp.load_time`]=t.loadTime),t?.renderTime!=null&&(p[`browser.web_vital.lcp.render_time`]=t.renderTime),t?.size!=null&&(p[`browser.web_vital.lcp.size`]=t.size),Sg({name:f,op:Ou,origin:`auto.http.browser.lcp`,metricName:`lcp`,value:e,attributes:p,parentSpan:n,startTime:s,endTime:c,softNavigationId:r,navigationType:i})}function Ag(e,t=!1){if(!gh(`layout-shift`))return;if(t){Dg(e,Pm,(e,t,n)=>{let r=e.entries[e.entries.length-1];jg(e.value,r,t,n,e.navigationType,e.navigationStartTime)});return}let n=0,r,i,a=Pm(({metric:e})=>{i=e.navigationType;let t=e.entries[e.entries.length-1];t&&(n=e.value,r=t)},!0);wg(e,e=>{jg(n,r,e,void 0,i),a()})}function jg(e,t,n,r,i,a){xm&&Y.log(`Sending CLS span (${e})`);let o=ht(),s=t?.startTime??a??0,c=o?mh(o+s):En(),l=t?.sources[0]?.node,u=t?Lh(l):void 0,d=l?bg(l):null,f=Dr(),p=f&&ul(f)?d||`Layout shift`:u??`Layout shift`,m={};
18d&&(m[fi]=d),t?.sources&&t.sources.forEach((e,t)=>{m[`browser.web_vital.cls.source.${t+1}`]=Lh(e.node)}),Sg({name:p,op:ku,origin:`auto.http.browser.cls`,metricName:`cls`,value:e,attributes:m,parentSpan:n,startTime:c,softNavigationId:r,navigationType:i})}function Mg(e,t=!1){if(!ph()||!ht())return;let n=!ul(e);if(t){Dg(e,Rm,(e,t,r)=>{Ng(e)&&Fg(e.value,Pg(e),n,t,r,e)});return}Rm(({metric:e})=>{Ng(e)&&Fg(e.value,Pg(e),n,void 0,void 0,e)})}function Ng(e){return e.value!=null&&mh(e.value)<=60}function Pg(e){return e.entries.find(t=>t.duration===e.value&&hg[t.name])}function Fg(e,t,n=!1,r,i,a){xm&&Y.log(`Sending INP span (${e})`);let o=mh(ht()+(t?.startTime??a?.navigationStartTime??0)),s=mh(e),c=t&&hg[t.name],l=c||`click`,u=t&&gg(t.interactionId),d=jn(),f=d?zn(d):void 0,p=r||u?.span||f,m=u?.elementName||(t?Lh(t.target):void 0),h=t?.target?bg(t.target):null,g=Dr(),_=!!g&&ul(g),v=Eg[l],y=_?h||v:m??`Interaction to next paint`,b={[Xe]:t?.duration??e};m&&m!==`<unknown>`&&(b[`browser.web_vital.inp.target`]=m),c&&(b[`browser.web_vital.inp.interaction_type`]=c),h&&(b[fi]=h),Sg({name:y,op:Tg[l],origin:`auto.http.browser.inp`,metricName:`inp`,value:e,attributes:b,startTime:o,endTime:o+s,navigationType:a?.navigationType,parentSpan:p,standalone:n,softNavigationId:i})}var Ig=1e3,Lg,Rg,zg;function Bg(e){return typeof e==`boolean`?e:!!e?.capture}function Vg(e){kc(`dom`,e),Ac(`dom`,Hg)}function Hg(){if(!Qm.document)return;let e=jc.bind(null,`dom`),t=Gg(e,!0);Qm.document.addEventListener(`click`,t,!1),Qm.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=Qm[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Lr(n,`addEventListener`,function(t){return function(n,r,i){if((n===`click`||n==`keypress`)&&r)try{let a=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=a[n]=a[n]||{captureListeners:new WeakSet,bubbleListeners:new WeakSet,listenerCount:0},s=Bg(i);if(!o.handler){let r=Gg(e);o.handler=r,o.capture=s,t.call(this,n,r,o.capture)}let c=o[s?`captureListeners`:`bubbleListeners`];c.has(r)||(typeof i==`object`&&(i?.once||i?.signal)?o.sticky=!0:(c.add(r),o.listenerCount++))}catch{}return t.call(this,n,r,i)}}),Lr(n,`removeEventListener`,function(e){return function(t,n,r){if((t===`click`||t==`keypress`)&&n)try{let i=this.__sentry_instrumentation_handlers__||{},a=i[t];a?.[Bg(r)?`captureListeners`:`bubbleListeners`].delete(n)&&(!--a.listenerCount&&!a.sticky&&(e.call(this,t,a.handler,a.capture),a.handler=void 0,delete i[t]),Object.keys(i).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function Ug(e){if(e.type!==Rg)return!1;try{if(!e.target||e.target._sentryId!==zg)return!1}catch{}return!0}function Wg(e,t){return e===`keypress`?!t?.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function Gg(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Kg(n);if(Wg(n.type,r))return;vr(n,`_sentryCaptured`,!0),r&&!r._sentryId&&vr(r,`_sentryId`,Pn());let i=n.type===`keypress`?`input`:n.type;Ug(n)||(e({event:n,name:i,global:t}),Rg=n.type,zg=r?r._sentryId:void 0),clearTimeout(Lg),Lg=Qm.setTimeout(()=>{zg=void 0,Rg=void 0},Ig)}}function Kg(e){try{return e.target}catch{return null}}var qg;function Jg(){return`history`in Qm&&!!Qm.history}function Yg(e){let t=`history`;kc(t,e),Ac(t,Xg)}function Xg(){if(Qm.addEventListener(`popstate`,()=>{let e=Qm.location.href,t=qg;qg=e,t!==e&&jc(`history`,{from:t,to:e})}),!Jg())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=qg,i=Zg(String(n));if(qg=i,r===i)return e.apply(this,t);jc(`history`,{from:r,to:i})}return e.apply(this,t)}}Lr(Qm.history,`pushState`,e),Lr(Qm.history,`replaceState`,e)}function Zg(e){try{return new URL(e,Qm.location.origin).toString()}catch{return e}}var Qg={};function $g(e){let t=Qg[e];if(t)return t;let n=Qm[e];if(Sp(n))return Qg[e]=n.bind(Qm);let r=Qm.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){xm&&Y.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Qg[e]=n.bind(Qm))}function e_(e){Qg[e]=void 0}function t_(...e){return $g(`setTimeout`)(...e)}var n_=`__sentry_xhr_v3__`;function r_(e){kc(`xhr`,e),Ac(`xhr`,i_)}function i_(){if(!Qm.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=En()*1e3,a=mi(n[0])?n[0].toUpperCase():void 0,o=a_(n[1]);if(!a||!o)return e.apply(t,n);t[n_]={method:a,url:o,request_headers:{}}
18,a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[n_];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}jc(`xhr`,{endTimestamp:En()*1e3,startTimestamp:i,xhr:t,virtualError:r}),r=void 0,t.removeEventListener(`readystatechange`,s)}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[n_];return a&&mi(r)&&mi(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[n_];return r?(n[0]!==void 0&&(r.body=n[0]),jc(`xhr`,{startTimestamp:En()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function a_(e){if(mi(e))return e;try{return e.toString()}catch{}}var o_=Symbol.for(`sentry__originalRequestBody`);function s_(e){return new URLSearchParams(e).toString()}function c_(e,t=Y){try{if(typeof e==`string`)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[s_(e)];if(!e)return[void 0]}catch(n){return xm&&t.error(n,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return xm&&t.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function l_(e=[]){if(e.length>=2&&e[1]&&typeof e[1]==`object`&&`body`in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][o_];return t===void 0?void 0:t}}function u_(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return xm&&Y.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r
19`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}function d_(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}var f_=at,p_=0,m_=[];function h_(e){if(p_>0)return!0;let t=e?m_.findIndex(t=>g_(t,e)):-1;return t!==-1&&(m_.splice(t,1),!0)}function g_(e,t){return e.msg===t.msg&&e.url===t.url&&e.line===t.line&&e.column===t.column}function __(){p_++,setTimeout(()=>{p_--})}function v_(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(Xr(e))return e}catch{return e}let r=function(...n){at._sentryWrappedDepth=(at._sentryWrappedDepth||0)+1;try{let r=n.map(e=>v_(e,t));return e.apply(this,r)}catch(e){throw __(),Zt(r=>{r.addEventProcessor(e=>(t.mechanism&&(Dt(e,void 0,void 0),dt(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Un(e)}),e}finally{at._sentryWrappedDepth=(at._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}Qn(r,e),vr(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function y_(){let e=xg(),{referrer:t}=f_.document||{},{userAgent:n}=f_.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function b_(e,t){let n=C_(e,t),r={type:O_(t),value:k_(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function x_(e,t,n,r){let i=Dr()?.getOptions().normalizeDepth,a=I_(t),o={__serialized__:ir(t,i)};if(a)return{exception:{values:[b_(e,a)]},extra:o};let s={exception:{values:[{type:Vr(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:P_(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=C_(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function S_(e,t){return{exception:{values:[b_(e,t)]}}}function C_(e,t){let n=t.stacktrace||t.stack||``,r=T_(t),i=E_(t);try{return e(n,r,i)}catch{}return[]}var w_=/Minified React error #\d+;/i;function T_(e){return e&&w_.test(e.message)?1:0}function E_(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function D_(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function O_(e){let t=e?.name;return!t&&D_(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function k_(e){let t=e?.message;return D_(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?Wf(t.error):Wf(e):`No error message`}function A_(e,t,n,r){let i=M_(e,t,n?.syntheticException||void 0,r);
19return dt(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),hn(i)}function j_(e,t,n=`info`,r,i){let a=N_(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),hn(a)}function M_(e,t,n,r,i){let a;if(cr(t)&&t.error)return S_(e,t.error);if(kr(t)||ni(t)){let i=t;if(`stack`in t){a=S_(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=C_(e,n);t.length&&(i.stacktrace={frames:t},dt(a,{synthetic:!0}))}}else{let t=i.name||(kr(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=N_(e,o,n,r),Dt(a,o)}return a}if(tr(t))return S_(e,t);if(Bn(t)||Vr(t))return a=x_(e,t,n,i),dt(a,{synthetic:!0}),a;let o=String(t);return a=N_(e,o,n,r),Dt(a,o,void 0),dt(a,{synthetic:!0}),a}function N_(e,t,n,r){let i={};if(r&&n){let r=C_(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),dt(i,{synthetic:!0})}if(dr(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function P_(e,{isUnhandledRejection:t}){let n=Wn(e),r=t?`promise rejection`:`exception`;return cr(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Vr(e)?`Event \`${F_(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function F_(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function I_(e){return Object.values(e).find(tr)}var L_=class extends Ad{constructor(e){let t=R_(e);mf(t,`browser`,[`browser`],f_.SENTRY_SDK_SOURCE||pl()),super(t),this._unhandledSessionStatus=`unhandled`;let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r}=this._options;f_.document&&f_.document.addEventListener(`visibilitychange`,()=>{f_.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on(`beforeSendSession`,pf)}eventFromException(e,t){return A_(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return j_(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function R_(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:f_.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var z_=40;function B_(e,t=$g(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw e_(`fetch`),e}finally{n-=a,r--}}return ud(e,i,id(e.bufferSize||z_))}var V_=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,H_=30,U_=50;function W_(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var G_=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,K_=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,q_=/\((\S*)(?::(\d+))(?::(\d+))\)/,J_=/at (.+?) ?\(data:(.+?),/,Y_=[H_,e=>{let t=e.match(J_);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=G_.exec(e);if(n){let[,e,t,r]=n;return W_(e,`?`,+t,+r)}let r=K_.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=q_.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=$_(r[1]||`?`,r[2]);return W_(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],X_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Z_=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Q_=We(Y_,[U_,e=>{let t=X_.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Z_.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=$_(n,e),W_(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),$_=(e,t)=>
19{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ev=1024,tv=`Breadcrumbs`,nv=Zc(((e={})=>{let t={dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:tv,setup(e){t.dom&&Vg(iv(e,t.dom)),t.xhr&&r_(av(e)),t.fetch&&wp(ov(e)),t.history&&Yg(sv(e)),t.sentry&&e.on(`beforeSendEvent`,rv(e))}}}));function rv(e){return function(t){Dr()===e&&Sf({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:wt(t)},{event:t})}}function iv(e,t){return function(n){if(Dr()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>ev&&(V_&&Y.warn(`\`dom.maxStringLength\` cannot exceed ${ev}, but a value of ${o} was configured. Sentry will use ${ev} instead.`),o=ev),typeof a==`string`&&(a=[a]);try{let e=n.event,t=cv(e)?e.target:e;r=Lh(t,{keyAttrs:a,maxStringLength:o}),i=bg(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Sf(s,{event:n.event,name:n.name,global:n.global})}}function av(e){return function(t){if(Dr()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[n_];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Ap(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),Sf(d,u)}}function ov(e){return function(t){if(Dr()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),Sf(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Ap(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),Sf(s,o)}}}}function sv(e){return function(t){if(Dr()!==e)return;let n=t.from,r=t.to,i=af(f_.location.href),a=n?af(n):void 0,o=af(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Sf({category:`navigation`,data:{from:n,to:r}})}}function cv(e){return!!e&&!!e.target}var lv=`EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload`.split(`,`),uv=`BrowserApiErrors`,dv=Zc(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:uv,setupOnce(){t.setTimeout&&Lr(f_,`setTimeout`,fv),t.setInterval&&Lr(f_,`setInterval`,fv),t.requestAnimationFrame&&Lr(f_,`requestAnimationFrame`,pv),t.XMLHttpRequest&&`XMLHttpRequest`in f_&&Lr(XMLHttpRequest.prototype,`send`,mv);let e=t.eventTarget;e&&(Array.isArray(e)?e:lv).forEach(e=>hv(e,t))}}}));function fv(e){return function(...t){let n=t[0];return t[0]=v_(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${fn(e)}`}}),e.apply(this,t)}}function pv(e){return function(t){return e.apply(this,[v_(t,{mechanism:{data:{handler:fn(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function mv(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&Lr(n,e,function(t){let n={mechanism:{data:{handler:fn(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Xr(t);return r&&(n.mechanism.data.handler=fn(r)),v_(t,n)})}),e.apply(this,t)}}function hv(e,t){let n=f_[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Lr(n,`addEventListener`,function(n){return function(r,i,a){try{gv(i)&&(i.handleEvent=v_(i.handleEvent,{mechanism:{data:{handler:fn(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&_v(this,r,i),n.apply(this,[r,v_(i,{mechanism:{data:{handler:fn(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),Lr(n,`removeEventListener`,function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,`__sentry_wrapped__`)){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))}
19function gv(e){return typeof e.handleEvent==`function`}function _v(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var vv=Zc((e={})=>{let t=e.lifecycle??`page`;return{name:`BrowserSession`,setupOnce(){if(f_.document===void 0){V_&&Y.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}un({ignoreDuration:!0});let e=!1;Xh(()=>{e||=(xi(),!0)});let n=wr(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&xi())}),t===`route`&&Yg(({from:t,to:n})=>{t!==n&&(un({ignoreDuration:!0}),xi(),e=!0)})}}}),yv=`CultureContext`,bv=Zc((()=>({name:yv,preprocessEvent(e){let t=xv();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=xv();t&&al(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function xv(){try{let e=f_.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Sv=`GlobalHandlers`,Cv=Zc(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Sv,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(wv(e),kv(`onerror`)),t.onunhandledrejection&&(Tv(e),kv(`onunhandledrejection`))}}}));function wv(e){Nc(t=>{let{stackParser:n,attachStacktrace:r}=Av();if(Dr()!==e||h_(t))return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Ov(M_(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,pr(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Tv(e){Ic(t=>{let{stackParser:n,attachStacktrace:r}=Av();if(Dr()!==e||h_())return;let i=Ev(t),a=ai(i)?Dv(i):M_(n,i,void 0,r,!0);a.level=`error`,pr(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Ev(e){if(ai(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function Dv(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Ov(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:jv(t)??xg(),function:`?`,in_app:!0}),e}function kv(e){V_&&Y.log(`Global Handler attached: ${e}`)}function Av(){return Dr()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function jv(e){if(mi(e)&&e.length!==0)return e.startsWith(`data:`)?`<${sf(e,!1)}>`:e}var Mv=Zc(()=>({name:`HttpContext`,preprocessEvent(e,t,n){if(!f_.navigator&&!f_.location&&!f_.document)return;let{url:r,headers:i}=y_(),a=n.getDataCollectionOptions().httpHeaders.request,o=Object.entries(e.request?.headers??{}).filter(([e])=>!(e in i)),s={...Gd(i,a),...Object.fromEntries(o)};e.request={url:r,...e.request,...Object.keys(s).length>0?{headers:s}:{headers:void 0}}},processSpan(e,t){if(!f_.navigator&&!f_.location&&!f_.document)return;let n=y_(),r=Gd(n.headers,t.getDataCollectionOptions().httpHeaders.request),i=r.Referer,{hostname:a,protocol:o}=f_.location||{};al(e,{[Wr]:r[`User-Agent`],[mn]:o===`file:`||a===`localhost`||a===`127.0.0.1`||a===`[::1]`||!!a?.endsWith(`.localhost`),...e.is_segment&&{"url.full":e.attributes?.[`sentry.op`]===`http.client`?void 0:Yd(n.url),"http.request.header.referer":i?[i]:void 0}})}})),Nv=`cause`,Pv=5,Fv=`LinkedErrors`,Iv=Zc(((e={})=>{let t=e.limit||Pv,n=e.key||Nv;return{name:Fv,preprocessEvent(e,r,i){Rf(b_,i.getOptions().stackParser,n,t,e,r)}}})),Lv=/^HTML(\w*)Element$/;function Rv(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(d_(e)){let t=zv(e);if(Lv.test(t))return`[HTMLElement: ${Lh(e)}]`}}function zv(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Bv(){return Vv()?(V_&&Wt(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}
19function Vv(){if(f_.window===void 0)return!1;let e=f_;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=xg();return!(f_===f_.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function Hv(e){return[Of(),Tf(),up(),dv(),nv(),op(),Cv(),Iv(),Qf(),Mv(),bv(),vv()]}function Uv(e={}){let t=!e.skipBrowserExtensionCheck&&Bv(),n=e.defaultIntegrations==null?Hv():e.defaultIntegrations,r=qc({integrations:e.integrations,defaultIntegrations:n}),i={...e,enabled:!t&&e.enabled,stackParser:et(e.stackParser||Q_),integrations:r,transport:e.transport||B_};return $r(Rv),zd(L_,i)}var Wv=at,Gv=`sentryReplaySession`,Kv=`replay_event`,qv=`Unable to send Replay`,Jv=3e5,Yv=9e5,Xv=5e3,Zv=5500,Qv=6e4,$v=5e3,ey=3,ty=15e4,ny=5e3,ry=3e3,iy=300,ay=2e7,oy=4999,sy=5e4,cy=36e5,ly=`sentry.segment.name.source`,uy=Object.defineProperty,dy=(e,t,n)=>t in e?uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fy=(e,t,n)=>dy(e,typeof t==`symbol`?t:t+``,n),py=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(py||{});function my(e){return e.nodeType===e.ELEMENT_NODE}function hy(e){return e?.host?.shadowRoot===e}function gy(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function _y(e){return e.includes(` background-clip: text;`)&&!e.includes(` -webkit-background-clip: text;`)&&(e=e.replace(/\sbackground-clip:\s*text;/g,` -webkit-background-clip: text; background-clip: text;`)),e}function vy(e){let{cssText:t}=e;if(t.split(`"`).length<3)return t;let n=[`@import`,`url(${JSON.stringify(e.href)})`];return e.layerName===``?n.push(`layer`):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(` `)+`;`}function yy(e){try{let t=e.rules||e.cssRules;return t?_y(Array.from(t,xy).join(``)):null}catch{return null}}function by(e){let t=``;for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?` !important`:``};`}return`${e.selectorText} { ${t} }`}function xy(e){let t;if(Cy(e))try{t=yy(e.styleSheet)||vy(e)}catch{}else if(wy(e)){let t=e.cssText,n=e.selectorText.includes(`:`),r=typeof e.style.all==`string`&&e.style.all;if(r&&(t=by(e)),n&&(t=Sy(t)),n||r)return t}return t||e.cssText}function Sy(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function Cy(e){return`styleSheet`in e}function wy(e){return`selectorText`in e}var Ty=class{constructor(){fy(this,`idNodeMap`,new Map),fy(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Ey(){return new Ty}function Dy({maskInputOptions:e,tagName:t,type:n}){return t===`OPTION`&&(t=`SELECT`),!!(e[t.toLowerCase()]||n&&e[n]||n===`password`||t===`INPUT`&&!n&&e.text)}function Oy({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||``;return e?(r&&(i=r(i,t)),`*`.repeat(i.length)):i}function ky(e){return e.toLowerCase()}function Ay(e){return e.toUpperCase()}var jy=`__rrweb_original__`;function My(e){let t=e.getContext(`2d`);if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=jy in i?i[jy]:i;if(new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>e!==0))return!1}return!0}function Ny(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?ky(t):null}function Py(e,t,n){return t===`INPUT`&&(n===`radio`||n===`checkbox`)?e.getAttribute(`value`)||``:e.value}function Fy(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}var Iy={};function Ly(e){let t=Iy[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return Iy[e]=r.bind(window)}function Ry(...e){return Ly(`setTimeout`)(...e)}function zy(...e){return Ly(`clearTimeout`)(...e)}function By(e){try{return e.contentDocument}catch{}}function Vy(e){try{return e.contentWindow}catch{}}var Hy=1,Uy=RegExp(`[^a-z0-9-_:]`),Wy=-2;function Gy(){return Hy++}function Ky(e){if(e instanceof HTMLFormElement)return`form`;let t=ky(e.tagName);return Uy.test(t)?`div`:t}function qy(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var Jy,Yy,Xy=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Zy=/^(?:[a-z+]+:)?\/\//i,Qy=/^www\..*/i,$y=/^(data:)([^,]*),(.*)/i;function eb(e,t){if(!e||t.size===0)return e;try{let n=e.split(`;`),r=[];for(let e of n){if(e=e.trim(),!e)continue;let n=e.indexOf(`:`);
19if(n===-1){r.push(e);continue}let i=e.slice(0,n).trim();t.has(i)||r.push(e)}return r.join(`; `)+(r.length>0&&e.endsWith(`;`)?`;`:``)}catch(t){return console.warn(`Error filtering CSS properties:`,t),e}}function tb(e,t){return(e||``).replace(Xy,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(Zy.test(s)||Qy.test(s)||$y.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${qy(t)+s}${c})`;let l=t.split(`/`),u=s.split(`/`);l.pop();for(let e of u)if(e===`.`)continue;else e===`..`?l.pop():l.push(e);return`url(${c}${l.join(`/`)}${c})`})}var nb=/^[^ \t\n\r\u000c]+/,rb=/^[, \t\n\r\u000c]+/;function ib(e,t){if(t.trim()===``)return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}let i=[];for(;r(rb),!(n>=t.length);){let a=r(nb);if(a.slice(-1)===`,`)a=ob(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=ob(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}if(o)e===`)`&&(o=!1);else{if(e===`,`){n+=1,i.push((a+r).trim());break}e===`(`&&(o=!0)}r+=e,n+=1}}}return i.join(`, `)}var ab=new WeakMap;function ob(e,t){return!t||t.trim()===``?t:cb(e,t)}function sb(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function cb(e,t){let n=ab.get(e);if(n||(n=e.createElement(`a`),ab.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function lb(e,t,n,r,i,a,o){if(!r)return r;if(n===`src`||n===`href`&&(t!==`use`||r[0]!==`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`))return ob(e,r);if(n===`srcset`)return ib(e,r);if(n===`style`){let t=tb(r,cb(e));return o&&o.size>0&&(t=eb(t,o)),t}return t===`object`&&n===`data`?ob(e,r):typeof a==`function`?a(n,r,i):r}function ub(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function db(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t==`string`){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function fb(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function pb(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:pb(e.parentNode,t,n,r+1)}function mb(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(fb(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function hb(e,t,n,r,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName===`INPUT`){let e=o.getAttribute(`autocomplete`);if([`current-password`,`new-password`,`cc-number`,`cc-exp`,`cc-exp-month`,`cc-exp-year`,`cc-csc`].includes(e))return!0}let s=-1,c=-1;if(a){if(c=pb(o,mb(r,i)),c<0)return!0;s=pb(o,mb(t,n),c>=0?c:1/0)}else{if(s=pb(o,mb(t,n)),s<0)return!1;c=pb(o,mb(r,i),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function gb(e,t,n){let r=Vy(e);if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=Ry(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{zy(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return Ry(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function _b(e,t,n){let r=!1,i;try{i=e.sheet}catch{i=null}if(i)return;let a=Ry(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{zy(a),r=!0,t()})}function vb(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x=!1,ignoreCSSAttributes:S}=t,C=yb(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:py.Document,childNodes:[]}:{type:py.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:py.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return xb(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:g,dataURLOptions:_,inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x,rootId:C,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:S});case e.TEXT_NODE:return bb(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:
19h,maskInputOptions:m,maskInputFn:g,rootId:C});case e.CDATA_SECTION_NODE:return{type:py.CDATA,textContent:``,rootId:C};case e.COMMENT_NODE:return{type:py.Comment,textContent:e.textContent||``,rootId:C};default:return!1}}function yb(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function bb(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p=d===`STYLE`||void 0,m=d===`SCRIPT`||void 0,h=d===`TEXTAREA`||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=yy(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=tb(f,cb(t.doc))}m&&(f=`SCRIPT_PLACEHOLDER`);let g=hb(e,r,a,i,o,n);return!p&&!m&&!h&&f&&g&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,`*`)),h&&f&&(c.textarea||g)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,`*`)),d===`OPTION`&&f&&(f=Oy({isMasked:hb(e,r,a,i,o,Dy({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:py.Text,textContent:f||``,isStyle:p,rootId:u}}function xb(e,t){let{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:h,maskTextClass:g,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:y,ignoreCSSAttributes:b}=t,x=db(e,r,i,a),S=Ky(e),C={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];r.name&&!ub(S,r.name,r.value)&&(C[r.name]=lb(n,S,ky(r.name),r.value,e,c,b))}if(S===`link`&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=yy(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=tb(r,t.href))}if(S===`style`&&e.sheet&&!(e.innerText||e.textContent||``).trim().length){let t=yy(e.sheet);t&&(C._cssText=tb(t,cb(n)))}if(S===`input`||S===`textarea`||S===`select`||S===`option`){let t=e,n=Ny(t),r=Py(t,Ay(S),n),i=t.checked;if(n!==`submit`&&n!==`button`&&r){let e=hb(t,g,v,_,y,Dy({type:n,tagName:Ay(S),maskInputOptions:s}));C.value=Oy({isMasked:e,element:t,value:r,maskInputFn:l})}i&&(C.checked=i)}if(S===`option`&&(e.selected&&!s.select?C.selected=!0:delete C.selected),S===`canvas`&&f){if(e.__context===`2d`)My(e)||(C.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!(`__context`in e)){let t=e.toDataURL(u.type,u.quality),r=n.createElement(`canvas`);r.width=e.width,r.height=e.height,t!==r.toDataURL(u.type,u.quality)&&(C.rr_dataURL=t)}}if(S===`img`&&d){Jy||(Jy=n.createElement(`canvas`),Yy=Jy.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{Jy.width=t.naturalWidth,Jy.height=t.naturalHeight,Yy.drawImage(t,0,0),C.rr_dataURL=Jy.toDataURL(u.type,u.quality)}catch(e){if(t.crossOrigin!==`anonymous`){t.crossOrigin=`anonymous`,t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a);return}console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?C.crossOrigin=i:t.removeAttribute(`crossorigin`))};t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a)}if((S===`audio`||S===`video`)&&(C.rr_mediaState=e.paused?`paused`:`played`,C.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),x){let{width:t,height:n}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${n}px`}}S===`iframe`&&!p(C.src)&&(!x&&!By(e)&&(C.rr_src=C.src),delete C.src);let T;try{customElements.get(S)&&(T=!0)}catch{}return{type:py.Element,tagName:S,attributes:C,childNodes:[],isSVG:sb(e)||void 0,needBlock:x,rootId:h,isCustom:T}}function Sb(e){return e==null?``:e.toLowerCase()}function Cb(e,t){return!!(t.comment&&e.type===py.Comment||e.type===py.Element&&(t.script&&(e.tagName===`script`||e.tagName===`link`&&(e.attributes.rel===`preload`||e.attributes.rel===`modulepreload`)||e.tagName===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&Fy(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(Sb(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Sb(e.attributes.name)===`application-name`||Sb(e.attributes.rel)===`icon`||Sb(e.attributes.rel)===`apple-touch-icon`||Sb(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&Sb(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(Sb(e.attributes.property).match(/^(og|twitter|fb):/)||Sb(e.attributes.name).match(/^(og|twitter):/)||Sb(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(Sb(e.attributes.name)===`robots`||Sb(e.attributes.name)===`googlebot`||Sb(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(Sb(e.attributes.name)===`author`||Sb(e.attributes.name)===`generator`||Sb(e.attributes.name)===`framework`||Sb(e.attributes.name)===`publisher`||Sb(e.attributes.name)===`progid`||Sb(e.attributes.property).match(/^article:/)||Sb(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(Sb(e.attributes.name)===`google-site-verification`||Sb(e.attributes.name)===`yandex-verification`||Sb(e.attributes.name)===`csrf-token`||Sb(e.attributes.name)===`p:domain_verify`||Sb(e.attributes.name)===`verify-v1`||Sb(e.attributes.name)===`verification`||Sb(e.attributes.name)===`shopify-checkout-api-token`)))
19)}function wb(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y={},inlineImages:b=!1,recordCanvas:x=!1,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w=5e3,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:D=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:k=!1,ignoreCSSAttributes:A}=t,{preserveWhiteSpace:j=!0}=t,M=vb(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,dataURLOptions:y,inlineImages:b,recordCanvas:x,keepIframeSrcFn:O,newlyAddedElement:k,ignoreCSSAttributes:A});if(!M)return console.warn(e,`not serialized`),null;let N;N=r.hasNode(e)?r.getId(e):Cb(M,v)||!j&&M.type===py.Text&&!M.isStyle&&!M.textContent.trim().length?Wy:Gy();let P=Object.assign(M,{id:N});if(r.add(e,P),N===Wy)return null;S&&S(e);let F=!f;if(P.type===py.Element){F&&=!P.needBlock;let t=e.shadowRoot;t&&gy(t)&&(P.isShadowHost=!0)}if((P.type===py.Document||P.type===py.Element)&&F){v.headWhitespace&&P.type===py.Element&&P.tagName===`head`&&(j=!1);let t={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:D,keepIframeSrcFn:O,ignoreCSSAttributes:A},k=e.childNodes?Array.from(e.childNodes):[];for(let e of k){let n=wb(e,t);n&&P.childNodes.push(n)}if(my(e)&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=wb(n,t);r&&(gy(e.shadowRoot)&&(r.isShadow=!0),P.childNodes.push(r))}}if(e.parentNode&&hy(e.parentNode)&&gy(e.parentNode)&&(P.isShadow=!0),P.type===py.Element&&P.tagName===`iframe`&&!P.needBlock&&gb(e,()=>{let t=By(e);if(t&&C){let n=wb(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:D,keepIframeSrcFn:O,ignoreCSSAttributes:A});n&&C(e,n)}},w),P.type===py.Element&&P.tagName===`img`&&!e.complete&&P.needBlock){let t=e,n=()=>{if(t.isConnected&&!t.complete&&T)try{let e=t.getBoundingClientRect();e.width>0&&e.height>0&&T(t,P,e)}catch{}t.removeEventListener(`load`,n)};t.isConnected&&t.addEventListener(`load`,n)}return P.type===py.Element&&P.tagName===`link`&&typeof P.attributes.rel==`string`&&(P.attributes.rel===`stylesheet`||P.attributes.rel===`preload`&&typeof P.attributes.href==`string`&&Fy(P.attributes.href)===`css`)&&_b(e,()=>{if(E){let t=wb(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:D,keepIframeSrcFn:O,ignoreCSSAttributes:A});t&&E(e,t)}},D),P.type===py.Element&&delete P.needBlock,P}function Tb(e,t){let{mirror:n=new Ty,blockClass:r=`rr-block`,blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s=`rr-mask`,unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOM:v=!1,dataURLOptions:y,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:O=new Set([])}=t||{};return wb(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v===!0||v===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v===`all`,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
19:v===!1?{}:v,dataURLOptions:y,inlineImages:f,recordCanvas:p,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:D,newlyAddedElement:!1,ignoreCSSAttributes:O})}function Eb(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var Db=`Please stop import mirror directly. Instead of that,\r
20now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
21or you can use record.mirror to access the mirror instance during recording.`,Ob={map:{},getId(){return console.error(Db),-1},getNode(){return console.error(Db),null},removeNodeFromMap(){console.error(Db)},has(){return console.error(Db),!1},reset(){console.error(Db)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(Ob=new Proxy(Ob,{get(e,t,n){return t===`map`&&console.error(Db),Reflect.get(e,t,n)}}));function kb(e,t,n={}){let r=null,i=0;return function(...a){let o=Date.now();!i&&n.leading===!1&&(i=o);let s=t-(o-i),c=this;s<=0||s>t?(r&&=(tx(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=ex(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function Ab(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){ex(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>Ab(e,t,a||{},!0)}function jb(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var Mb=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Mb=()=>new Date().getTime());function Nb(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0:e.pageYOffset}}function Pb(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Fb(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ib(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Lb(e,t,n,r,i){if(!e)return!1;let a=Ib(e);if(!a)return!1;let o=mb(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=pb(a,o),c=-1;return s<0?!1:(r&&(c=pb(a,mb(null,r))),s>-1&&c<0||s<c)}function Rb(e,t){return t.getId(e)!==-1}function zb(e,t){return t.getId(e)===Wy}function Bb(e,t){if(hy(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:!e.parentNode||Bb(e.parentNode,t):!0}function Vb(e){return!!e.changedTouches}function Hb(e=window){`NodeList`in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),`DOMTokenList`in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError(`1 argument is required`);do if(this===t)return!0;while(t&&=t.parentNode);return!1})}function Ub(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function Wb(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function Gb(e){return!!e?.shadowRoot}var Kb=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===void 0?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function qb(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Jb(e){let t=e,n;for(;n=qb(t);)t=n;return t}function Yb(e){let t=e.ownerDocument;if(!t)return!1;let n=Jb(e);return t.contains(n)}function Xb(e){let t=e.ownerDocument;return t?t.contains(e)||Yb(e):!1}var Zb={};function Qb(e){let t=Zb[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return Zb[e]=r.bind(window)}function $b(...e){return Qb(`requestAnimationFrame`)(...e)}function ex(...e){return Qb(`setTimeout`)(...e)}function tx(...e){return Qb(`clearTimeout`)(...e)}var nx=(e=>(e[e.DomContentLoaded=0]=`DomContentLoaded`,e[e.Load=1]=`Load`,e[e.FullSnapshot=2]=`FullSnapshot`,e[e.IncrementalSnapshot=3]=`IncrementalSnapshot`,e[e.Meta=4]=`Meta`,e[e.Custom=5]=`Custom`,e[e.Plugin=6]=`Plugin`,e))(nx||{}),rx=(e=>(e[e.Mutation=0]=`Mutation`,e[e.MouseMove=1]=`MouseMove`,e[e.MouseInteraction=2]=`MouseInteraction`,e[e.Scroll=3]=`Scroll`,e[e.ViewportResize=4]=`ViewportResize`,e[e.Input=5]=`Input`,e[e.TouchMove=6]=`TouchMove`,e[e.MediaInteraction=7]=`MediaInteraction`,e[e.StyleSheetRule=8]=`StyleSheetRule`,e[e.CanvasMutation=9]=`CanvasMutation`,e[e.Font=10]=`Font`,e[e.Log=11]=`Log`,e[e.Drag=12]=`Drag`,e[e.StyleDeclaration=13]=`StyleDeclaration`,e[e.Selection=14]=`Selection`,e[e.AdoptedStyleSheet=15]=`AdoptedStyleSheet`,e[e.CustomElement=16]=`CustomElement`,e))(rx||{}),ix=(e=>(e[e.MouseUp=0]=`MouseUp`,e[e.MouseDown=1]=`MouseDown`,e[e.Click=2]=`Click`,e[e.ContextMenu=3]=`ContextMenu`,e[e.DblClick=4]=`DblClick`,e[e.Focus=5]=`Focus`,e[e.Blur=6]=`Blur`,e[e.TouchStart=7]=`TouchStart`,e[e.TouchMove_Departed=8]=`TouchMove_Departed`,e[e.TouchEnd=9]=`TouchEnd`,e[e.TouchCancel=10]=`TouchCancel`,e))(ix||{}),ax=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(a
21x||{}),ox=(e=>(e[e.Play=0]=`Play`,e[e.Pause=1]=`Pause`,e[e.Seeked=2]=`Seeked`,e[e.VolumeChange=3]=`VolumeChange`,e[e.RateChange=4]=`RateChange`,e))(ox||{}),sx;function cx(e){sx=e}function lx(){sx=void 0}for(var ux=e=>sx?((...t)=>{try{return e(...t)}catch(e){if(sx&&sx(e)===!0)return()=>{};throw e}}):e,dx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,fx=typeof Uint8Array>`u`?[]:new Uint8Array(256),px=0;px<dx.length;px++)fx[dx.charCodeAt(px)]=px;var mx=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}};function hx(e){try{return e.contentDocument}catch{}}function gx(e){try{return e.contentWindow}catch{}}var _x=class{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if(typeof CSSStyleSheet>`u`||typeof CSSStyleSheet.prototype.replaceSync!=`function`)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let n=t.cssRules[0];return!n||n.type!==CSSRule.STYLE_RULE?null:n.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement(`span`);return t.setAttribute(`style`,e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}};function vx(e){return`__ln`in e}var yx=class{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error(`Position outside of list range`);let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&vx(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&vx(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},bx=(e,t)=>`${e}@${t}`,xx=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new yx,r=e=>{let t=e,n=Wy;for(;n===Wy;)t&&=t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!Xb(i))return;let a=hy(i.parentNode)?this.mirror.getId(qb(i)):this.mirror.getId(i.parentNode),o=r(i);if(a===-1||o===-1)return n.addNode(i);let s=wb(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Ub(e,this.mirror)&&!Lb(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Wb(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Gb(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(Lb(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let n=gx(e);n&&this.canvasManager.addWindow(n),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!Cx(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)!Tx(this.droppedSet,e)&&!Cx(this.removes,e,this.mirror)||Tx(this.movedSet,e)?i(e):this.droppedSet.add(e);let a=null;for(;n.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),n=r(a.value);t!==-1&&n!==-1&&(e=a)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);
21if(r(n.value)===-1)continue;if(t!==-1){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(this.mirror.getId(r)!==-1){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if(typeof t.style==`string`){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split(`var(`).length===t.style.split(`var(`).length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!zb(e.target,this.mirror))switch(e.type){case`characterData`:{let t=e.target.textContent;!Lb(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:hb(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Ib(e.target)):t.replace(/[\S]/g,`*`):t,node:e.target});break}case`attributes`:{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if(n===`value`){let n=Ny(t),i=t.tagName;r=Py(t,i,n);let a=Dy({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=Oy({isMasked:hb(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(Lb(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if(t.tagName===`IFRAME`&&n===`src`&&!this.keepIframeSrcFn(r)){if(!hx(t))n=`rr_src`;else return}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
21,this.attributes.push(i),this.attributeMap.set(e.target,i)),n===`type`&&t.tagName===`INPUT`&&(e.oldValue||``).toLowerCase()===`password`&&t.setAttribute(`data-rr-is-password`,`true`),!ub(t.tagName,n)&&(i.attributes[n]=lb(this.doc,ky(t.tagName),ky(n),r,t,this.maskAttributeFn),n===`style`)){let n=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);r!==(n?.getPropertyValue(e)||``)||a!==(n?.getPropertyPriority(e)||``)?a===``?i.styleDiff[e]=r:i.styleDiff[e]=[r,a]:i._unchangedStyles[e]=[r,a]}if(n)for(let e of Array.from(n))t.style.getPropertyValue(e)===``&&(i.styleDiff[e]=!1)}break}case`childList`:if(Lb(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=hy(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Lb(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||zb(t,this.mirror)||!Rb(t,this.mirror)||(this.addedSet.has(t)?(Sx(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||Bb(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[bx(n,r)]?Sx(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:hy(e.target)&&gy(e.target)?!0:void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(zb(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[bx(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Lb(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),Gb(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){`mutationCb.blockClass.blockSelector.unblockSelector.maskAllText.maskTextClass.unmaskTextClass.maskTextSelector.unmaskTextSelector.inlineStylesheet.maskInputOptions.maskAttributeFn.maskTextFn.maskInputFn.keepIframeSrcFn.recordCanvas.inlineImages.slimDOMOptions.dataURLOptions.doc.mirror.iframeManager.stylesheetManager.shadowDomManager.canvasManager.processedNodeManager.ignoreCSSAttributes`.split(`.`).forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new _x(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function Sx(e,t){e.delete(t),t.childNodes?.forEach(t=>Sx(e,t))}function Cx(e,t,n){return e.length!==0&&wx(e,t,n)}function wx(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}function Tx(e,t){return e.size!==0&&Ex(e,t)}function Ex(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:Ex(e,n):!1}var Dx=[];function Ox(e){try{if(`composedPath`in e){let t=e.composedPath();if(t.length)return t[0]}else if(`path`in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function kx(e,t){let n=new xx;Dx.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.(`MutationObserver`);i&&window[i]&&(r=window[i]);let a=new r(ux(t=>{e.onMutation&&e.onMutation(t)===!1||n.processMutations.bind(n)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Ax({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let i=typeof t.mousemove==`number`?t.mousemove:50,a=typeof t.mousemoveCallback==`number`?t.mousemoveCallback:500,o=[],s,c=kb(ux(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=ux(kb(ux(e=>{let t=Ox(e),{clientX:n,clientY:i}=Vb(e)?e.changedTouches[0]:e;s||=Mb(),o.push({x:n,y:i,id:r.getId(t),timeOffset:Mb()-s}),c(typeof DragEvent<`u`&&e instanceof DragEvent?rx.Drag:e instanceof MouseEvent?rx.MouseMove:rx.TouchMove)}),i,{trailing:!1})),u=[Eb(`mousemove`,l,n),Eb(`touchmove`,l,n),Eb(`drag`,l,n)];return ux(()=>
21{u.forEach(e=>e())})}function jx({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[],l=null,u=t=>o=>{let s=Ox(o);if(Lb(s,r,i,a,!0))return;let c=null,u=t;if(`pointerType`in o){switch(o.pointerType){case`mouse`:c=ax.Mouse;break;case`touch`:c=ax.Touch;break;case`pen`:c=ax.Pen}c===ax.Touch?ix[t]===ix.MouseDown?u=`TouchStart`:ix[t]===ix.MouseUp&&(u=`TouchEnd`):ax.Pen}else Vb(o)&&(c=ax.Touch);c===null?ix[t]===ix.Click&&(c=l,l=null):(l=c,(u.startsWith(`Touch`)&&c===ax.Touch||u.startsWith(`Mouse`)&&c===ax.Mouse)&&(c=null));let d=Vb(o)?o.changedTouches[0]:o;if(!d)return;let f=n.getId(s),{clientX:p,clientY:m}=d;ux(e)({type:ix[u],id:f,x:p,y:m,...c!==null&&{pointerType:c}})};return Object.keys(ix).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1).forEach(e=>{let n=ky(e),r=u(e);if(window.PointerEvent)switch(ix[e]){case ix.MouseDown:case ix.MouseUp:n=n.replace(`mouse`,`pointer`);break;case ix.TouchStart:case ix.TouchEnd:return}c.push(Eb(n,r,t))}),ux(()=>{c.forEach(e=>e())})}function Mx({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return Eb(`scroll`,ux(kb(ux(o=>{let s=Ox(o);if(!s||Lb(s,r,i,a,!0))return;let c=n.getId(s);if(s===t&&t.defaultView){let n=Nb(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}function Nx({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Eb(`resize`,ux(kb(ux(()=>{let t=Pb(),i=Fb();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var Px=[`INPUT`,`TEXTAREA`,`SELECT`],Fx=new WeakMap;function Ix({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:h}){function g(e){let n=Ox(e),u=e.isTrusted,g=n&&Ay(n.tagName);if(g===`OPTION`&&(n=n.parentElement),!n||!g||Px.indexOf(g)<0||Lb(n,r,i,a,!0))return;let v=n;if(v.classList.contains(o)||s&&v.matches(s))return;let y=Ny(n),b=Py(v,g,y),x=!1,S=Dy({maskInputOptions:c,tagName:g,type:y}),C=hb(n,f,m,p,h,S);(y===`radio`||y===`checkbox`)&&(x=n.checked),b=Oy({isMasked:C,element:n,value:b,maskInputFn:l}),_(n,d?{text:b,isChecked:x,userTriggered:u}:{text:b,isChecked:x});let w=n.name;y===`radio`&&w&&x&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=Oy({isMasked:C,element:e,value:Py(e,g,y),maskInputFn:l});_(e,d?{text:t,isChecked:!x,userTriggered:!1}:{text:t,isChecked:!x})}})}function _(t,r){let i=Fx.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Fx.set(t,r);let i=n.getId(t);ux(e)({...r,id:i})}}let v=(u.input===`last`?[`change`]:[`input`,`change`]).map(e=>Eb(e,ux(g),t)),y=t.defaultView;if(!y)return()=>{v.forEach(e=>e())};let b=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,`value`),x=[[y.HTMLInputElement.prototype,`value`],[y.HTMLInputElement.prototype,`checked`],[y.HTMLSelectElement.prototype,`value`],[y.HTMLTextAreaElement.prototype,`value`],[y.HTMLSelectElement.prototype,`selectedIndex`],[y.HTMLOptionElement.prototype,`selected`]];return b&&b.set&&v.push(...x.map(e=>Ab(e[0],e[1],{set(){ux(g)({target:this,isTrusted:!1})}},!1,y))),ux(()=>{v.forEach(e=>e())})}function Lx(e){let t=[];function n(e,t){if(qx(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||qx(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||qx(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||qx(`CSSConditionRule`)&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}return n(e,t)}function Rx(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function zx({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:ux((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=Rx(i,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:s}]}),r.apply(i,a)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:ux((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Rx(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:o}]}),r.apply(i,a)})});let o;
21r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:ux((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Rx(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replace:o}),r.apply(i,a)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:ux((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Rx(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};Jx(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(Jx(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),Jx(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),Jx(`CSSSupportsRule`)&&(c.CSSSupportsRule=r.CSSSupportsRule));let l={};return Object.entries(c).forEach(([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:ux((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=Rx(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...Lx(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:ux((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Rx(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...Lx(i),o]}]}),r.apply(i,a)})})}),ux(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,o&&(r.CSSStyleSheet.prototype.replace=o),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}function Bx({mirror:e,stylesheetManager:t},n){let r=null;r=n.nodeName===`#document`?e.getId(n):e.getId(n.host);let i=n.nodeName===`#document`?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,`adoptedStyleSheets`):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let n=a.set?.call(this,e);if(r!==null&&r!==-1)try{t.adoptStyleSheets(e,r)}catch{}return n}}),ux(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Vx({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:ux((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=Rx(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,set:{property:c,value:l,priority:u},index:Lx(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:ux((i,a,s)=>{let[c]=s;if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=Rx(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:Lx(a.parentRule)}),i.apply(a,s)})}),ux(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function Hx({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=ux(o=>kb(ux(a=>{let s=Ox(a);if(!s||Lb(s,t,n,r,!0))return;let{currentTime:c,volume:l,muted:u,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:c,volume:l,muted:u,playbackRate:d})}),a.media||500)),c=[Eb(`play`,s(ox.Play),o),Eb(`pause`,s(ox.Pause),o),Eb(`seeked`,s(ox.Seeked),o),Eb(`volumechange`,s(ox.VolumeChange),o),Eb(`ratechange`,s(ox.RateChange),o)];return ux(()=>{c.forEach(e=>e())})}function Ux({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(e,t,n);return i.set(r,{family:e,buffer:typeof t!=`string`,descriptors:n,fontSource:typeof t==`string`?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=jb(t.fonts,`add`,function(t){return function(n){return ex(ux(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}),r.push(o),ux(()=>
21{r.forEach(e=>e())})}function Wx(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,c=ux(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:o,startOffset:s,endContainer:l,endOffset:u}=e.getRangeAt(t);Lb(o,r,i,a,!0)||Lb(l,r,i,a,!0)||c.push({start:n.getId(o),startOffset:s,end:n.getId(l),endOffset:u})}o({ranges:c})});return c(),Eb(`selectionchange`,c)}function Gx({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:jb(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,i])}})}function Kx(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=kx(e,e.doc));let i=Ax(e),a=jx(e),o=Mx(e),s=Nx(e,{win:n}),c=Ix(e),l=Hx(e),u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=zx(e,{win:n}),d=Bx(e,e.doc),f=Vx(e,{win:n}),e.collectFonts&&(p=Ux(e)));let m=Wx(e),h=Gx(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return ux(()=>{Dx.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(e=>e())})}function qx(e){return window[e]!==void 0}function Jx(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}var Yx=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
21getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return typeof t==`number`?r.get(t)||-1:t}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},Xx=class{constructor(){this.crossOriginIframeMirror=new Yx(Gy),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},Zx=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Yx(Gy),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Yx(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener(`message`,this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);let t=gx(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&gx(e)?.addEventListener(`message`,this.handleMessage.bind(this)),this.loadListener?.(e);let n=hx(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){let t=e;if(t.data.type!==`rrweb`||t.origin!==t.data.origin||!e.source)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case nx.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:nx.IncrementalSnapshot,data:{source:rx.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case nx.Meta:case nx.Load:case nx.DomContentLoaded:return!1;case nx.Plugin:return t;case nx.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case nx.IncrementalSnapshot:switch(t.data.source){case rx.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,[`parentId`,`nextId`,`previousId`]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,[`parentId`,`id`])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,[`id`])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case rx.Drag:case rx.TouchMove:case rx.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case rx.ViewportResize:return!1;case rx.MediaInteraction:case rx.MouseInteraction:case rx.Scroll:case rx.CanvasMutation:case rx.Input:return this.replaceIds(t.data,e,[`id`]),t;case rx.StyleSheetRule:case rx.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case rx.Font:return t;case rx.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,[`start`,`end`])}),t;case rx.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,[`styleId`])}),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||typeof t[i]==`number`)&&(t[i]=Array.isArray(t[i])?e.getIds(n,t[i]):e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,[`id`,`rootId`]),`childNodes`in e&&e.childNodes.forEac
21h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==py.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},Qx=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},$x=class{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!gy(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=kx({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Mx({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),ex(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Bx({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=hx(e),n=gx(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(jb(e.prototype,`attachShadow`,function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&Xb(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},eS=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Kb,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:xy(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},tS=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,$b(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},nS,rS;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}var iS=Ey();function aS(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i=`rr-block`,blockSelector:a=null,unblockSelector:o=null,ignoreClass:s=`rr-ignore`,ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u=`rr-mask`,unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:h,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,maxCanvasSize:x=null,packFn:S,sampling:C={},dataURLOptions:w={},mousemoveWait:T,recordDOM:E=!0,recordCanvas:D=!1,recordCrossOriginIframes:O=!1,recordAfter:k=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:A=!1,collectFonts:j=!1,inlineImages:M=!1,plugins:N,keepIframeSrcFn:P=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:I,onMutation:L,getCanvasManager:R}=e;cx(I);let z=!O||window.parent===window,B=!1;if(!z)try{window.parent.document&&(B=!1)}catch{B=!0}if(z&&!t)throw Error(`emit function is required`);if(!z&&!B)return()=>{};
21T!==void 0&&C.mousemove===void 0&&(C.mousemove=T),iS.reset();let V=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:g===void 0?{}:g,H=_===!0||_===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_===`all`,headMetaDescKeywords:_===`all`}:_||{};Hb();let U,W=0,G=e=>{for(let t of N||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!B&&(e=S(e)),e};nS=(e,i)=>{let a=e;if(a.timestamp=Mb(),Dx[0]?.isFrozen()&&a.type!==nx.FullSnapshot&&(a.type!==nx.IncrementalSnapshot||a.data.source!==rx.Mutation)&&Dx.forEach(e=>e.unfreeze()),z)t?.(G(a),i);else if(B){let e={type:`rrweb`,event:G(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===nx.FullSnapshot)U=a,W=0;else if(a.type===nx.IncrementalSnapshot){if(a.data.source===rx.Mutation&&a.data.isAttachIframe)return;W++;let e=r&&W>=r,t=n&&U&&a.timestamp-U.timestamp>n;(e||t)&&ae(!0)}};let ee=e=>{nS({type:nx.IncrementalSnapshot,data:{source:rx.Mutation,...e}})},te=e=>nS({type:nx.IncrementalSnapshot,data:{source:rx.Scroll,...e}}),ne=e=>nS({type:nx.IncrementalSnapshot,data:{source:rx.CanvasMutation,...e}}),K=new eS({mutationCb:ee,adoptedStyleSheetCb:e=>nS({type:nx.IncrementalSnapshot,data:{source:rx.AdoptedStyleSheet,...e}})}),q=typeof __RRWEB_EXCLUDE_IFRAME__==`boolean`&&__RRWEB_EXCLUDE_IFRAME__?new Xx:new Zx({mirror:iS,mutationCb:ee,stylesheetManager:K,recordCrossOriginIframes:O,wrappedEmit:nS});for(let e of N||[])e.getMirror&&e.getMirror({nodeMirror:iS,crossOriginIframeMirror:q.crossOriginIframeMirror,crossOriginIframeStyleMirror:q.crossOriginIframeStyleMirror});let re=new tS,J=sS(R,{mirror:iS,win:window,mutationCb:e=>nS({type:nx.IncrementalSnapshot,data:{source:rx.CanvasMutation,...e}}),recordCanvas:D,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:w,errorHandler:I}),ie=typeof __RRWEB_EXCLUDE_SHADOW_DOM__==`boolean`&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Qx:new $x({mutationCb:ee,scrollCb:te,bypassOptions:{onMutation:L,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:V,dataURLOptions:w,maskAttributeFn:v,maskTextFn:b,maskInputFn:y,recordCanvas:D,inlineImages:M,sampling:C,slimDOMOptions:H,iframeManager:q,stylesheetManager:K,canvasManager:J,keepIframeSrcFn:P,processedNodeManager:re,ignoreCSSAttributes:F},mirror:iS}),ae=(e=!1)=>{if(!E)return;nS({type:nx.Meta,data:{href:window.location.href,width:Fb(),height:Pb()}},e),K.reset(),ie.init(),Dx.forEach(e=>e.lock());let t=Tb(document,{mirror:iS,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:V,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,slimDOM:H,dataURLOptions:w,recordCanvas:D,inlineImages:M,onSerialize:e=>{Ub(e,iS)&&q.addIframe(e),Wb(e,iS)&&K.trackLinkElement(e),Gb(e)&&ie.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{q.attachIframe(e,t);let n=gx(e);n&&J.addWindow(n),ie.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{ee({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:P,ignoreCSSAttributes:F});if(!t)return console.warn(`Failed to snapshot the document`);nS({type:nx.FullSnapshot,data:{node:t,initialOffset:Nb(window)}}),Dx.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,iS.getId(document))};rS=ae;try{let e=[],t=e=>ux(Kx)({onMutation:L,mutationCb:ee,mousemoveCb:(e,t)=>nS({type:nx.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>nS({type:nx.IncrementalSnapshot,data:{source:rx.MouseInteraction,...e}}),scrollCb:te,viewportResizeCb:e=>nS({type:nx.IncrementalSnapshot,data:{source:rx.ViewportResize,...e}}),inputCb:e=>nS({type:nx.IncrementalSnapshot,data:{source:rx.Input,...e}}),mediaInteractionCb:e=>nS({type:nx.IncrementalSnapshot,data:{source:rx.MediaInteraction,...e}}),styleSheetRuleCb:e=>nS({type:nx.IncrementalSnapshot,data:{source:rx.StyleSheetRule,...e}}),styleDeclarationCb:e=>nS({type:nx.IncrementalSnapshot,data:{source:rx.StyleDeclaration,...e}}),canvasMutationCb:ne,fontCb:e=>nS({type:nx.IncrementalSnapshot,data:{source:rx.Font,...e}}),selectionCb:e=>{nS({type:nx.IncrementalSnapshot,data:{source:rx.Selection,...e}})},customElementCb:e=>{nS({type:nx.IncrementalSnapshot,data:{source:rx.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:V,inlineStylesheet:m,sampling:C,recordDOM:E,recordCanvas:D,inlineImages:M,userTr
21iggeredOnInput:A,collectFonts:j,doc:e,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,keepIframeSrcFn:P,blockSelector:a,unblockSelector:o,slimDOMOptions:H,dataURLOptions:w,mirror:iS,iframeManager:q,stylesheetManager:K,shadowDomManager:ie,processedNodeManager:re,canvasManager:J,ignoreCSSAttributes:F,plugins:N?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>nS({type:nx.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});q.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{ae(),e.push(t(document))};return document.readyState===`interactive`||document.readyState===`complete`?n():(e.push(Eb(`DOMContentLoaded`,()=>{nS({type:nx.DomContentLoaded,data:{}}),k===`DOMContentLoaded`&&n()})),e.push(Eb(`load`,()=>{nS({type:nx.Load,data:{}}),k===`load`&&n()},window))),()=>{e.forEach(e=>e()),re.destroy(),rS=void 0,lx()}}catch(e){console.warn(e)}}function oS(e){if(!rS)throw Error(`please take full snapshot after start recording`);rS(e)}aS.mirror=iS,aS.takeFullSnapshot=oS;function sS(e,t){try{return e?e(t):new mx}catch{return console.warn(`Unable to initialize CanvasManager`),new mx}}var cS;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(cS||={});var lS=3,uS=5;function dS(e){return e>9999999999?e:e*1e3}function fS(e){return e>9999999999?e/1e3:e}function pS(e,t){t.category!==`sentry.transaction`&&([`ui.click`,`ui.input`].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:nx.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:`breadcrumb`,payload:Me(t,10,1e3)}}),t.category===`console`)))}var mS=`button,a`;function hS(e){return e.closest(mS)||e}function gS(e){let t=_S(e);return!t||!(t instanceof Element)?t:hS(t)}function _S(e){return vS(e)?e.target:e}function vS(e){return mr(e)&&`target`in e}var yS;function bS(e){return yS||(yS=[],xS()),yS.push(e),()=>{let t=yS?yS.indexOf(e):-1;t>-1&&yS.splice(t,1)}}function xS(){Lr(Wv,`open`,function(e){return function(...t){if(yS)try{yS.forEach(e=>e())}catch{}return e.apply(Wv,t)}})}var SS=new Set([rx.Mutation,rx.StyleSheetRule,rx.StyleDeclaration,rx.AdoptedStyleSheet,rx.CanvasMutation,rx.Selection,rx.MediaInteraction]);function CS(e,t,n){e.handleClick(t,n)}var wS=class{constructor(e,t,n=pS){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let e=bS(()=>{this._lastMutation=OS()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(ES(t,this._ignoreSelector)||!DS(e))return;let n={timestamp:fS(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=fS(e)}registerScroll(e=Date.now()){this._lastScroll=fS(e)}registerClick(e){let t=hS(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=OS();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(let t of e){let e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:a,clickBreadcrumb:o}=e;if(i){let n=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,r=n<this._timeout*1e3?`mutation`:`timeout`,i={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.slowClickDetected`,data:{...o.data,url:Wv.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:a||1}};this._addBreadcrumbEvent(t,i);return}if(a>1){let e={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.multiClick`,data:{...o.data,url:Wv.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=t_(()=>this._checkClicks(),1e3)}},TS=[`A`,`BUTTON`,`INPUT`];function ES(e,t){return!!(!TS.includes(e.tagName)||e.tagName===`INPUT`&&![`submit`,`button`].includes(e.getAttribute(`type`)||``)||e.tagName===`A`&&(e.hasAttribute(`download`)||e.hasAttribute(`target`)&&e.getAttribute(`target`)!==`_self`)||t&&e.matches(t))}
21function DS(e){return!!(e.data&&typeof e.data.nodeId==`number`&&e.timestamp)}function OS(){return Date.now()/1e3}function kS(e,t){try{if(!AS(t))return;let{source:n}=t.data;if(SS.has(n)&&e.registerMutation(t.timestamp),n===rx.Scroll&&e.registerScroll(t.timestamp),jS(t)){let{type:n,id:r}=t.data,i=aS.mirror.getNode(r);i instanceof HTMLElement&&n===ix.Click&&e.registerClick(i)}}catch{}}function AS(e){return e.type===lS}function jS(e){return e.data.source===rx.MouseInteraction}function MS(e){return{timestamp:Date.now()/1e3,type:`default`,...e}}var NS=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(NS||{}),PS=new Set([`id`,`class`,`aria-label`,`role`,`name`,`alt`,`title`,`data-test-id`,`data-testid`,`disabled`,`aria-disabled`,`data-sentry-component`]),FS=new Set([...PS,`data-sentry-element`]);function IS(e){let t={};for(let n in e)if(PS.has(n)){let r=n;(n===`data-testid`||n===`data-test-id`)&&(r=`testId`),t[r]=e[n]}return!t[`data-sentry-component`]&&e[`data-sentry-element`]&&(t[`data-sentry-component`]=e[`data-sentry-element`]),t}var LS=e=>t=>{if(!e.isEnabled())return;let n=zS(t);if(!n)return;let r=t.name===`click`,i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&CS(e.clickDetector,n,gS(t.event)),pS(e,n)};function RS(e,t){let n=aS.mirror.getId(e),r=n&&aS.mirror.getNode(n),i=r&&aS.mirror.getMeta(r),a=i&&VS(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===NS.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(``),attributes:IS(a.attributes)}}:{}}}function zS(e){let{target:t,message:n}=BS(e);return MS({category:`ui.${e.name}`,...RS(t,n)})}function BS(e){let t=e.name===`click`,n,r=null;try{r=t?gS(e.event):_S(e.event),n=Lh(r,{maxStringLength:200})||`<unknown>`}catch{n=`<unknown>`}return{target:r,message:n}}function VS(e){return e.type===NS.Element}function HS(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=US(t);n&&pS(e,n)}function US(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||WS(o)||!a)return null;let s=t||r||i,c=a.length===1;if(!s&&c)return null;let l=Lh(o,{maxStringLength:200})||`<unknown>`;return MS({category:`ui.keyDown`,message:l,data:{...RS(o,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function WS(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.isContentEditable}var GS={resource:QS,paint:XS,navigation:ZS};function KS(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function qS(e){return e.map(JS).filter(Boolean)}function JS(e){let t=GS[e.entryType];return t?t(e):null}function YS(e){return((ht()||Wv.performance.timeOrigin)+e)/1e3}function XS(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=YS(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function ZS(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:m,type:h}=e;return i===0?null:{type:`${t}.${h}`,start:YS(p),end:YS(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function QS(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return[`fetch`,`xmlhttprequest`].includes(n)?null:{type:`${t}.${n}`,start:YS(a),end:YS(i),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:s}}}function $S(e){let t=e.entries[e.entries.length-1];return rC(e,`largest-contentful-paint`,t?.element?[t.element]:void 0)}function eC(e){return e.sources!==void 0}function tC(e){let t=[],n=[];for(let r of e.entries)if(eC(r)){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=aS.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return rC(e,`cumulative-layout-shift`,n,t)}function nC(e){let t=e.entries[e.entries.length-1];return rC(e,`interaction-to-next-paint`,t?.target?[t.target]:void 0)}function rC(e,t,n,r){let i=e.value,a=e.rating,o=YS(i);return{type:`web-vital`,name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:n?n.map(e=>aS.mirror.getId(e)):void 0,attributions:r}}}function iC(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];
21return[`navigation`,`paint`,`resource`].forEach(e=>{r.push(zm(e,n))}),r.push(Fm(KS($S,e)),Pm(KS(tC,e)),Rm(KS(nC,e))),()=>{r.forEach(e=>e())}}var aC=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,oC=
vendor: 10,474 bytes, line 21
21`var t=Uint8Array,r=Uint16Array,n=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new r(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new n(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new r(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,n,e){for(var i=t.length,s=0,a=new r(n);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new r(n);for(s=1;s<n;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new r(1<<n);var f=15-n;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=n-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new r(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(r,n,e){return(null==e||e>r.length)&&(e=r.length),new t(r.subarray(n,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,r,n){var e=new Error(r||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!n)throw e;return e},z=function(t,r,n){n<<=7&r;var e=r/8|0;t[e]|=n,t[e+1]|=n>>8},_=function(t,r,n){n<<=7&r;var e=r/8|0;t[e]|=n,t[e+1]|=n>>8,t[e+2]|=n>>16},x=function(n,e){for(var i=[],s=0;s<n.length;++s)n[s]&&i.push({s:s,f:n[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,r){return t.f-r.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new r(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,r){return p[r.s]-p[t.s]||t.f-r.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,r,n){return-1==t.s?Math.max(A(t.l,r,n+1),A(t.r,r,n+1)):r[t.s]=n},D=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=n;++h)if(t[h]==s&&h!=n)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:n}},T=function(t,r){for(var n=0,e=0;e<r.length;++e)n+=t[e]*r[e];return n},k=function(t,r,n){var e=n.length,i=m(r+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=n[s];return 8*(i+4+e)},U=function(t,n,a,o,h,f,l,u,c,v,m){z(n,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new r(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(n,m,t.subarray(c,c+v));if(z(n,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(n,m,S-257),z(n,m+5,j-1),z(n,m+10,K-4),m+=14;for(B=0;B<K;++B)z(n,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var rt=31&tt[B];z(n,m,Y[rt]),m+=H[rt],rt>15&&(z(n,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var nt=o[B];if(nt>255){_(n,m,N[(rt=nt>>18&31)+257]),m+=P[rt+257],rt>7&&(z(n,m,nt>>23&31),m+=e[rt]);var et=31&nt;_(n,m,Q[et]),m+=R[et],et>3&&(_(n,m,nt>>5&8191),m+=i[et])}else _(n,m,N[nt]),m+=P[nt]}return _(n,m,N[256]),m+P[256]},C=new n([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),r=0;r<256;++r){for(var n=r,e=9;--e;)n=(1&n&&-306674912)^n>>>1;t[r]=n}return t}(),S=function(){var t=1,r=0;return{p:function(n){for(var e=t,i=r,s=0|n.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=n[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,r=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(r%=65521))<<8|r>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new r(32768),x=c.h||new r(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new n(25e3),I=new r(288),S=new r(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),rt=0;for(P=0;P<tt;++P){var nt=j-W+P&32767,et=nt-_[nt]&32767;et>rt&&(rt=et,K=nt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,r,n){for(;n;++r)t[r]=n,n>>>=8},j=function(){function r(r,n){if("function"==typeof r&&(n=r,r={}),this.ondata=n,this.o=r||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return r.prototype.p=function(t,r){this.ondata(L(t,this.o,0,0,this.s),r)},r.prototype.push=function(r,n){this.ondata||E(5),this.s.l&&E(4);var e=r.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(r.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(r.subarray(s),32768),this.s.z=r.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(r,this.s.z),this.s.z+=r.length;this.s.l=1&n,(this.s.z>this.s.w+8191||n)&&(this.p(this.b,n||!1),this.s.w=this.s.i,this.s.i-=2),n&&(this.s=this.o={},this.b=F)},r.prototype.flush=function(r){if(this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,r){var n=new t(6);n[0]=this.s.r>>3;var e=k(n,this.s.r,F);this.s.r=0,this.ondata(n.subarray(0,e>>3),!1)}},r}();function q(t,r){r||(r={});var n=function(){var t=-1;return{p:function(r){for(var n=t,e=0;e<r.length;++e)n=I[255&n^r[e]]^n>>>8;t=n},d:function(){return~t}}}(),e=t.length;n.p(t);var i,s=L(t,r,10+((i=r).filename?i.filename.length+1:0),8),a=s.length;return function(t,r){var n=r.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=r.level<2?4:9==r.level?2:0,t[9]=3,0!=r.mtime&&O(t,4,Math.floor(new Date(r.mtime||Date.now())/1e3)),n){t[3]=8;for(var e=0;e<=n.length;++e)t[e+10]=n.charCodeAt(e)}}(s,r),O(s,a-8,n.d()),O(s,a-4,e),s}var B=function(){function t(t,r){this.c=S(),this.v=1,j.call(this,t,r)}return t.prototype.push=function(t,r){this.c.p(t),j.prototype.push.call(this,t,r)},t.prototype.p=function(t,r){var n=L(t,this.o,this.v&&(this.o.dictionary?6:2),r&&4,this.s);this.v&&(function(t,r){var n=r.level,e=0==n?0:n<6?1:9==n?3:2;if(t[0]=120,t[1]=e<<6|(r.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,r.dictionary){var i=S();i.p(r.dictionary),O(t,2,i.d())}}(n,this.o),this.v=0),r&&O(n,n.length-4,this.c.d()),this.ondata(n,r)},t.prototype.flush=function(t){j.prototype.flush.call(this,t)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,r){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=r||!1)},t}();function K(r,n){if(G)return G.encode(r);for(var e=r.length,i=new t(r.length+(r.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=r.charCodeAt(o);f<128||n?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&r.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const r=this._hasEvents?",":"";this.stream.push(r+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let r=0;for(const n of t)r+=n.length;const n=new Uint8Array(r);for(let r=0,e=0,i=t.length;r<i;r++){const i=t[r];n.set(i,e),e+=i.length}return n}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,r)=>{this._deflatedData.push(t)},this.stream=new J((t,r)=>{this.deflate.push(t,r)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const r=t.data.method,n=t.data.id,e=t.data.arg;if(r in P&&"function"==typeof P[r])try{const t=P[r](e);postMessage({id:n,method:r,success:!0,response:t})}catch(t){postMessage({id:n,method:r,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;
21function sC(){let e=new Blob([oC],{type:`text/javascript`});return URL.createObjectURL(e)}var cC=[`log`,`warn`,`error`],lC=`[Replay] `;function uC(e,t=`info`){Sf({category:`console`,data:{logger:`replay`},level:t,message:`${lC}${e}`},{level:t})}function dC(){let e=!1,t=!1,n={exception:()=>void 0,infoTick:()=>void 0,setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return aC?(cC.forEach(e=>{n[e]=(...n)=>{Y[e](lC,...n),t&&uC(n.join(``),Xf(e))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),Y.error(lC,r),e?Un(r,{mechanism:{handled:!0,type:`auto.function.replay.debug`}}):t&&uC(r,`error`)},n.infoTick=(...e)=>{Y.log(lC,...e),t&&setTimeout(()=>uC(e[0]),0)}):cC.forEach(e=>{n[e]=()=>void 0}),n}var fC=dC(),pC=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${ay}.`)}},mC=class extends Error{constructor(){super(`Worker destroyed`)}},hC=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return`sync`}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>ay)throw new pC;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(e===null||t<e)&&(e=t);return e===null?e:dS(e)}},gC=class{constructor(e){this._onMessage=({data:e})=>{let t=e;if(typeof t.id!=`number`)return;let n=this._pending.get(t.id);if(n&&n.method===t.method){if(this._pending.delete(t.id),!t.success){aC&&fC.error(`Error in compression worker: `,t.response),n.reject(Error(`Error in compression worker`));return}n.resolve(t.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener(`message`,this._onMessage)}ensureReady(){return this._ensureReadyPromise||=new Promise((e,t)=>{this._worker.addEventListener(`message`,({data:n})=>{n.success?e():(aC&&fC.warn(`Received worker message with unsuccessful status`,n),t(Error(`Received worker message with unsuccessful status`)))},{once:!0}),this._worker.addEventListener(`error`,e=>{aC&&fC.warn(`Failed to load Replay compression worker`,e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:`Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load.`}`))},{once:!0})}),this._ensureReadyPromise}destroy(){aC&&fC.log(`Destroying compression worker`),this._worker.removeEventListener(`message`,this._onMessage),this._pending.forEach(e=>e.reject(new mC)),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{this._pending.set(n,{method:e,resolve:r,reject:i});try{this._worker.postMessage({id:n,method:e,arg:t})}catch(e){this._pending.delete(n),i(e)}})}_getAndIncrementId(){return this._id++}},_C=class{constructor(e){this._worker=new gC(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return`worker`}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=dS(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>ay?Promise.reject(new pC):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage(`clear`).then(null,e=>{aC&&fC.exception(e,`Sending "clear" message to worker failed`,e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage(`addEvent`,e)}async _finishRequest(){let e=await this._worker.postMessage(`finish`);return this._earliestTimestamp=null,this._totalSize=0,e}},vC=class{constructor(e){this._fallback=new hC,this._compression=new _C(e),this._used=this._fallback,this._ensureWorkerIsLoadedProm
21ise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){aC&&fC.exception(e,`Failed to load the compression worker, falling back to simple buffer`);return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){if(e instanceof mC)return;aC&&fC.exception(e,`Failed to add events when switching buffers.`)}}};function yC({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=bC(t);if(e)return e}return aC&&fC.log(`Using simple buffer`),new hC}function bC(e){try{let t=e||xC();return t?(aC&&fC.log(`Using compression worker${e?` from ${e}`:``}`),new vC(new Worker(t))):void 0}catch(e){aC&&fC.exception(e,`Failed to create compression worker`)}}function xC(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>`u`||!__SENTRY_EXCLUDE_REPLAY_WORKER__?sC():``}function SC(){try{return`sessionStorage`in Wv&&!!Wv.sessionStorage}catch{return!1}}function CC(e){wC(),e.session=void 0}function wC(){if(SC())try{Wv.sessionStorage.removeItem(Gv)}catch{}}function TC(e){return e!==void 0&&Math.random()<e}function EC(e){if(SC())try{Wv.sessionStorage.setItem(Gv,JSON.stringify(e))}catch{}}function DC(e){let t=Date.now();return{id:e.id||Pn(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function OC(e,t){return TC(e)?`session`:t?`buffer`:!1}function kC({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=DC({sampled:OC(e,t),previousSessionId:r});return n&&EC(i),i}function AC(){if(!SC())return null;try{let e=Wv.sessionStorage.getItem(Gv);if(!e)return null;let t=JSON.parse(e);return aC&&fC.infoTick(`Loading existing session`),DC(t)}catch{return null}}function jC(e,t,n=+new Date){return e===null||t===void 0||t<0||t!==0&&e+t<=n}function MC(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return jC(e.started,t,r)||jC(e.lastActivity,n,r)}function NC(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!MC(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled===`buffer`&&e.segmentId===0)}function PC({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&AC();return i?NC(i,{sessionIdleExpire:e,maxReplayDuration:t})?(aC&&fC.infoTick(`Session in sessionStorage is expired, creating new one...`),kC(r,{previousSessionId:i.id})):i:(aC&&fC.infoTick(`Creating new session`),kC(r,{previousSessionId:n}))}function FC(e){return e.type===nx.Custom}function IC(e,t,n){return zC(e,t)?(RC(e,t,n),!0):!1}function LC(e,t,n){return zC(e,t)?RC(e,t,n):Promise.resolve(null)}async function RC(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i=e.recordingMode===`buffer`;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let a=BC(t,e.getOptions().beforeAddRecordingEvent);return a?await r.addEvent(a):void 0}catch(t){if(!e.isEnabled())return e.handleException(t),null;let n=t&&t instanceof pC,a=n?`eventBufferOverflow`:`eventBufferError`,o=Dr();if(o){let e=n?`buffer_overflow`:`internal_sdk_error`;o.recordDroppedEvent(e,`replay`)}if(n&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:a})}}
21function zC(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=dS(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(aC&&fC.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function BC(e,t){try{if(typeof t==`function`&&FC(e))return t(e)}catch(e){return aC&&fC.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}var VC=100;function HC(e,t,n){let r=e.getContext();t&&r.traceIds.size<VC&&r.traceIds.add(t),n&&r.segmentNames.size<VC&&r.segmentNames.add(n)}function UC(e){return t=>{e.isEnabled()&&HC(e,t.trace_id,t.name||void 0)}}function WC(e){return!e.type}function GC(e){return e.type===`transaction`}function KC(e){return e.type===`replay_event`}function qC(e){return e.type===`feedback`}function JC(e){return(t,n)=>{if(!e.isEnabled()||!WC(t)&&!GC(t))return;let r=n.statusCode;if(!(!r||r<200||r>=300)){if(GC(t)){YC(e,t);return}XC(e,t)}}}function YC(e,t){HC(e,t.contexts?.trace?.trace_id,t.transaction)}function XC(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!==`buffer`||!t.tags?.replayId)return;let{beforeErrorSampling:r}=e.getOptions();(typeof r!=`function`||r(t))&&t_(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function ZC(e){return t=>{e.isEnabled()&&WC(t)&&QC(e,t)}}function QC(e,t){let n=t.exception?.values?.[0]?.value;typeof n==`string`&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&pS(e,MS({category:`replay.hydrate-error`,data:{url:xg()}}))}function $C(e){let t=Dr();t&&t.on(`beforeAddBreadcrumb`,t=>ew(e,t))}function ew(e,t){if(!e.isEnabled()||!rw(t))return;let n=tw(t);n&&pS(e,n)}function tw(e){return!rw(e)||[`fetch`,`xhr`,`sentry.event`,`sentry.transaction`].includes(e.category)||e.category.startsWith(`ui.`)?null:e.category===`console`?nw(e):MS(e)}function nw(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return MS(e);let n=!1,r=t.map(e=>{if(!e)return e;if(typeof e==`string`)return e.length>ny?(n=!0,`${e.slice(0,ny)}\u2026`):e;if(typeof e==`object`)try{let t=Me(e,7);return JSON.stringify(t).length>ny?(n=!0,`${JSON.stringify(t,null,2).slice(0,ny)}\u2026`):t}catch{}return e});return MS({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:[`CONSOLE_ARG_TRUNCATED`]}}:{}}})}function rw(e){return!!e.category}function iw(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function aw(){let e=Le().getPropagationContext().dsc;e&&delete e.replay_id;let t=jn();if(t){let e=He(t);delete e.replay_id}}function ow(e){let t=Le().getPropagationContext().dsc;t&&(t.replay_id=e);let n=jn();if(n){let t=He(n);t.replay_id=e}}function sw(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:nx.Custom,timestamp:t.timestamp*1e3,data:{tag:`breadcrumb`,payload:{timestamp:t.timestamp,type:`default`,category:`sentry.feedback`,data:{feedbackId:t.event_id}}}}),!1))}function cw(e,t){return e.recordingMode!==`buffer`||t.message===qv||!t.exception||t.type?!1:TC(e.getOptions().errorSampleRate)}function lw(e){return Object.assign((t,n)=>{if(e.session&&NC(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&aw(),!e.isEnabled()||e.isPaused())return t;if(KC(t))return delete t.breadcrumbs,t;if(!WC(t)&&!GC(t)&&!qC(t))return t;if(!e.checkAndHandleExpiredSession())return aw(),t;if(qC(t)){let n=e.getSessionId(),r=t.contexts.feedback.replay_id;return r&&r!==n?t:(e.flush(),t.contexts.feedback.replay_id=n,sw(e,t),t)}if(iw(t,n)&&!e.getOptions()._experiments.captureExceptions)return aC&&fC.log(`Ignoring error from rrweb internals`,t),null;let r=cw(e,t);if((r||e.recordingMode===`session`)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&e.recordingMode===`buffer`&&e.session?.sampled===`buffer`){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&EC(t)}return t},{id:`Replay`})}function uw(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:nx.Custom,timestamp:n,data:{tag:`performanceSpan`,payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:a}}});return typeof o==`string`?Promise.resolve(null):o})}function dw(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:`navigation.push`,start:r,end:r,name:n,data:{previous:t}}}function fw(e){return t=>{if(!e.isEnabled())return;let n=dw(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(uw(e,[n]),!1)))}}function pw(e,t){return aC&&e.getOptions()._experiments.traceInternals?!1:cf(t,Dr())}function mw(e,t){e.isEnabled()&&t!==null&&(pw(e,t.name)||e.addUpdate(()=>(uw(e,[t]),!0)))}function hw(e){if(!e)return;let t=new TextEncoder;try{if(typeof e==`string`)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=s_(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function gw(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function _w(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta};return n.warnings=[...n.warnings||[],t],e._meta=n,e}function vw(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:o,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:a,statusCode:o,request:s,response:c}}}function yw(e){return{headers:{},size:e,_meta:{warnings:[`URL_SKIPPED`]}}}function bw(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:a}=Sw(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function xw(e,t){return Object.entries(e).reduce((n,[r,i])=>{let a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function Sw(e){if(!e||typeof e!=`string`)return{body:e};let t=e.length>ty,n=Cw(e);if(t){let t=e.slice(0,ty);return n?{body:t,warnings:[`MAYBE_JSON_TRUNCATED`]}:{body:`${t}\u2026`,warnings:[`TEXT_TRUNCATED`]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Cw(e){let t=e[0],n=e[e.length-1];return t===`[`&&n===`]`||t===`{`&&n===`}`}function ww(e,t){let n=Tw(e);return en(n,t)}function Tw(e,t=Wv.document.baseURI){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(Wv.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith(`/`)&&r.endsWith(`/`)?r.slice(0,-1):r}async function Ew(e,t,n){try{let r=vw(`resource.fetch`,await Ow(e,t,n));mw(n.replay,r)}catch(e){aC&&fC.exception(e,`Failed to capture fetch breadcrumb`)}}
21function Dw(e,t){let{input:n,response:r}=t,i=hw(n?l_(n):void 0),a=r?gw(r.headers.get(`content-length`)):void 0;i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}async function Ow(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:o,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=ww(o,n.networkDetailAllowUrls)&&!ww(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:c,request:d?kw(n,t.input,l):yw(l),response:await Aw(d,n,t.response,u)}}function kw({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?Pw(n,t):{};if(!e)return bw(i,r,void 0);let[a,o]=c_(l_(n),fC),s=bw(i,r,a);return o?_w(s,o):s}async function Aw(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return yw(i);let a=r?Nw(r.headers,n):{};if(!r||!t&&i!==void 0)return bw(a,i,void 0);let[o,s]=await Mw(r),c=jw(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?_w(c,s):c}function jw(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let a=e?.length&&n===void 0?hw(e):n;return r?t?bw(i,a,e):bw(i,a,void 0):yw(a)}catch(e){return aC&&fC.exception(e,`Failed to serialize response body`),bw(i,n,void 0)}}async function Mw(e){let t=Iw(e);if(!t)return[void 0,`BODY_PARSE_ERROR`];try{return[await Lw(t)]}catch(e){return e instanceof Error&&e.message.indexOf(`Timeout`)>-1?(aC&&fC.warn(`Parsing text body from response timed out`),[void 0,`BODY_PARSE_TIMEOUT`]):(aC&&fC.exception(e,`Failed to get text body from response`),[void 0,`BODY_PARSE_ERROR`])}}function Nw(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function Pw(e,t){return e.length===1&&typeof e[0]!=`string`?Fw(e[0],t):e.length===2?Fw(e[1],t):{}}function Fw(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?Nw(n,t):Array.isArray(n)?{}:xw(n,t):{}}function Iw(e){try{return e.clone()}catch(e){aC&&fC.exception(e,`Failed to clone response body`)}}function Lw(e){return new Promise((t,n)=>{let r=t_(()=>n(Error(`Timeout while trying to read response body`)),500);Rw(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function Rw(e){return e.text()}async function zw(e,t,n){try{let r=vw(`resource.xhr`,Vw(e,t,n));mw(n.replay,r)}catch(e){aC&&fC.exception(e,`Failed to capture xhr breadcrumb`)}}function Bw(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=hw(r),a=n.getResponseHeader(`content-length`)?gw(n.getResponseHeader(`content-length`)):Ww(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function Vw(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:o,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!ww(c,n.networkDetailAllowUrls)||ww(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:yw(d),response:yw(f)};let p=s[n_],m=p?xw(p.request_headers,n.networkRequestHeaders):{},h=xw(u_(s),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?c_(o,fC):[void 0],[v,y]=n.networkCaptureBodies?Hw(s):[void 0],b=bw(m,d,g),x=bw(h,f,v);return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:_?_w(b,_):b,response:y?_w(x,y):x}}function Hw(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return Uw(e.response,e.responseType)}catch(e){t.push(e)}return aC&&fC.warn(`Failed to get xhr response body`,...t),[void 0]}function Uw(e,t){try{if(typeof e==`string`)return[e];if(e instanceof Document)return[e.body.outerHTML];if(t===`json`&&mr(e))return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return aC&&fC.exception(t,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return aC&&fC.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function Ww(e,t){try{return hw(t===`json`&&mr(e)?JSON.stringify(e):e)}catch{return}}function Gw(e){let t=Dr();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};t&&t.on(`beforeAddBreadcrumb`,(e,t)=>Kw(s,e,t))}catch{}}function Kw(e,t,n){if(t.data)try{qw(t)&&Yw(n)&&(Bw(t,n),zw(t,n,e)),Jw(t)&&Xw(n)&&(Dw(t,n),Ew(t,n,e))}catch(e){aC&&fC.exception(e,`Error when enriching network breadcrumb`)}}function qw(e){return e.category===`xhr`}function Jw(e){return e.category===`fetch`}function Yw(e){return e?.xhr}function Xw(e){return e?.input!==void 0}function Zw(e){let t=Dr();Vg(LS(e)),Yg(fw(e)),$C(e),Gw(e);let n=lw(e);if(_r(n),t){t.on(`beforeSendEvent`,ZC(e)),t.on(`afterSendEvent`,JC(e)),t.on(`createDsc`,t=>{let n=e.getSessionId();n&&e.isEnabled()&&e.recordingMode===`session`&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on(`processSegmentSpan`,UC(e)),t.on(`spanStart`,t=>{e.lastActiveSpan=t}),t.on(`spanEnd`,t=>{e.lastActiveSpan=t});let n;t.on(`beforeSendFeedback`,async(t,r)=>{let i=t.contexts?.feedback;if(!r?.includeReplay||!i)return;if(i.source===`widget`&&n){i.replay_id=n,n=void 0;return}let a=e.getSessionId();e.isEnabled()&&a&&(i.source===`api`&&await e.sendBufferedReplayOrFlush(),i.replay_id=a)}),t.on(`openFeedbackWidget`,async()=>{n=void 0,await e.sendBufferedReplayOrFlush(),n=e.isEnabled()?e.getSessionId():void 0})}}async function Qw(e){try{return await Promise.all(uw(e,[$w(Wv.performance.memory)]))}catch{return[]}}function $w(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:`memory`,name:`memory`,start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function eT(e,t,n){return ou(e,t,{...n,setTimeoutImpl:t_})}var tT=at.navigator;function nT(){return/iPhone|iPad|iPod/i.test(tT?.userAgent??``)||/Macintosh/i.test(tT?.userAgent??``)&&tT?.maxTouchPoints&&tT?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function rT(e){let t=!1;return(n,r)=>{try{if(!e.checkAndHandleExpiredSession()){aC&&fC.warn(`Received replay event after session expired.`);return}let i=r||!t;t=!0,iT(n),e.clickDetector&&kS(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode===`buffer`&&i&&e.setInitialState(),!IC(e,n,i))return!0;
21if(!i)return!1;let t=e.session;if(oT(e,i),e.recordingMode===`buffer`&&t&&e.eventBuffer&&!t.dirty){let n=e.eventBuffer.getEarliestTimestamp();n&&(aC&&fC.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&EC(t))}return t?.previousSessionId||e.recordingMode===`session`&&e.flush(),!0})}catch(t){e.handleException(t)}}}function iT(e){let t=e.data;if(e.type===nx.IncrementalSnapshot&&t&&typeof t==`object`&&`source`in t&&t.source===rx.Mutation&&`attributes`in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=aS.mirror.getNode(e.id),n=t&&aS.mirror.getMeta(t);if(!t||n?.type!==NS.Element)continue;let r={...n.attributes},i=!1;for(let[t,n]of Object.entries(e.attributes))FS.has(t)&&(n===null?delete r[t]:r[t]=n,i=!0);i&&aS.mirror.add(t,{...n,attributes:r})}}function aT(e){let t=e.getOptions();return{type:nx.Custom,timestamp:Date.now(),data:{tag:`options`,payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type===`worker`:!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function oT(e,t){t&&e.session?.segmentId===0&&IC(e,aT(e),!1)}function sT(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function cT(e,t,n,r){return qt(Or(e,Qt(e),r,n),[[{type:`replay_event`},e],[{type:`replay_recording`,length:typeof t==`string`?new TextEncoder().encode(t).length:t.length},t]])}function lT({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
22`;if(typeof e==`string`)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function uT({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:typeof e._integrations==`object`&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0};e.emit(`preprocessEvent`,r,i);let a=await qe(e.getOptions(),r,i,t,e,wr());if(!a)return null;e.emit(`postprocessEvent`,a,i),a.platform=a.platform||`javascript`;let{name:o,version:s,settings:c}=e.getSdkMetadata()?.sdk||{};return a.sdk={...a.sdk,name:o||`sentry.javascript.unknown`,version:s||`0.0.0`,settings:c},a}async function dT({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){let o=lT({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,segmentNames:u,initialTimestamp:d}=r,f=Dr(),p=Le(),m=f?.getTransport(),h=f?.getDsn();if(!f||!m||!h||!a.sampled)return Promise.resolve({});let g=await uT({scope:p,client:f,replayId:t,event:{type:Kv,replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:c,trace_ids:l,segment_names:u,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled}});if(!g)return aC&&fC.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete g.sdkProcessingMetadata;let _=cT(g,o,h,f.getOptions().tunnel),v;try{v=await m.send(_)}catch(e){let t=Error(qv);try{t.cause=e}catch{}throw t}let y=ld({},v);if(cd(y,`replay`))throw new pT(y);if(typeof v.statusCode==`number`&&(v.statusCode<200||v.statusCode>=300))throw new fT(v.statusCode);return v}var fT=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},pT=class extends Error{constructor(e){super(`Rate limit hit`),this.rateLimits=e}},mT=class extends Error{constructor(){super(`Session is too long, not sending replay`)}};async function hT(e,t={count:0,interval:$v}){let{recordingData:n,onError:r}=e;if(n.length)try{return await dT(e),!0}catch(n){if(n instanceof fT||n instanceof pT)throw n;if(_i(`Replays`,{_retryCount:t.count}),r&&r(n),t.count>=ey){let e=Error(`${qv} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{t_(async()=>{try{await hT(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}var gT=`__THROTTLED`,_T=`__SKIPPED`;function vT(e,t,n){let r=new Map,i=e=>{let t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})},a=()=>[...r.values()].reduce((e,t)=>
22e+t,0),o=!1;return(...n)=>{let s=Math.floor(Date.now()/1e3);if(i(s),a()>=t){let e=o;return o=!0,e?_T:gT}o=!1;let c=r.get(s)||0;return r.set(s,c+1),e(...n)}}var yT=class{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode=`session`,this.timeouts={sessionIdlePause:Jv,sessionIdleExpire:Yv},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:``},this._recordingOptions=t,this._options=e,this._debouncedFlush=eT(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=vT((e,t)=>LC(this,e,t),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(ry,n),timeout:n,scrollTimeout:iy,ignoreSelector:r?r.join(`,`):``}:void 0;if(i&&(this.clickDetector=new wS(this,i)),aC){let t=e._experiments;fC.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{Wv.document.visibilityState===`visible`?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=MS({category:`ui.blur`});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=MS({category:`ui.focus`});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{HS(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){aC&&fC.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){aC&&fC.exception(Error(`Unable to initialize and create session`));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled===`buffer`&&this.session.segmentId===0?`buffer`:`session`,aC&&fC.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode===`session`){aC&&fC.log(`Recording is already in progress`);return}if(this._isEnabled&&this.recordingMode===`buffer`){aC&&fC.log("Buffering is in progress, call `flush()` to save the replay");return}aC&&fC.infoTick(`Starting replay in session mode`),this._updateUserActivity();let e=PC({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode=`session`,this._initializeRecording()}startBuffering(){if(this._isEnabled){aC&&fC.log("Buffering is in progress, call `flush()` to save the replay");return}aC&&fC.infoTick(`Starting replay in buffer mode`);let e=PC({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode=`buffer`,this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=aS({...this._recordingOptions,...this.recordingMode===`buffer`?{checkoutEveryNms:Qv}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:rT(this),...nT(),onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&=(this._stopRecording(),void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode=`buffer`;let n=t??`manual`;Dr()?.emit(`replayEnd`,{sessionId:this.session?.id,reason:n});try{aC&&fC.log(`Stopping Replay triggered by ${n}`),aw(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,CC(this)}catch(e){this.handleException(e)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),aC&&fC.log(`Pausing replay`))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),aC&&fC.log(`Resuming replay`))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode===`session`)return this.flushImmediate();let t=Date.now();
22aC&&fC.log(`Converting buffer to session`),await this.flushImmediate();let n=this.stopRecording();e&&n&&this.recordingMode!==`session`&&(this.recordingMode=`session`,this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),ow(this.session.id)),this.startRecording())}addUpdate(e){let t=e();this.recordingMode!==`buffer`&&this._isEnabled&&t!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode===`buffer`?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!(e&&this.session?.sampled===!1))return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&jC(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled===`session`){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${Wv.location.pathname}${Wv.location.hash}${Wv.location.search}`,t=`${Wv.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===gT){let e=MS({category:`replay.throttled`});this.addUpdate(()=>!IC(this,{type:uS,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||jn(),t=e&&zn(e);if(!t)return;let n=Rr(t),r=n.attributes[ly];if(r&&[`route`,`custom`].includes(r))return n.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=yC({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&Dr()?.emit(`replayStart`,{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),this.recordingMode===`session`&&this.session&&ow(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=PC({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!NC(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:`sessionExpired`}),this.initializeSampling(e.id))}_addListeners(){try{Wv.document.addEventListener(`visibilitychange`,this._handleVisibilityChange),Wv.addEventListener(`blur`,this._handleWindowBlur),Wv.addEventListener(`focus`,this._handleWindowFocus),Wv.addEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||=(Zw(this),!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=iC(this)}_removeListeners(){try{Wv.document.removeEventListener(`visibilitychange`,this._handleVisibilityChange),Wv.removeEventListener(`blur`,this._handleWindowBlur),Wv.removeEventListener(`focus`,this._handleWindowFocus),Wv.removeEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(this.session){if(NC(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){aw();return}e&&this._createCustomBreadcrumb(e),this.conditionalFlush()}}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){aC&&fC.log(`Document has become active, but session has expired`);return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:nx.Custom,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e}})})}_addPerformanceEntries(){let e=qS(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.
22initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(uw(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){aC&&fC.error(`No session or eventBuffer found to flush.`);return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await Qw(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new mT;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await hT({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:`sendError`});let t=Dr();if(t){let n;n=e instanceof pT?`ratelimit_backoff`:e instanceof mT?`invalid`:`send_error`,t.recordDroppedEvent(n,`replay`)}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){aC&&fC.error(`Attempting to finish replay event after session expired.`);return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){aC&&fC.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?`short`:`long`}, not sending replay.`),r&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&aC&&fC.log(`Flushing initial segment without checkout.`);let o=!!this._flushLock;this._flushLock||=this._runFlush();try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&EC(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=sT(e.target),r=t.join(`,`);return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>i||a){let e=MS({category:`replay.mutations`,data:{count:n,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:`mutationLimit`,forceFlush:this.recordingMode===`session`}),!1)}};function bT(e,t){return[...e,...t].join(`,`)}function xT({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:bT(e,[`.sentry-mask`,`[data-sentry-mask]`]),unmaskTextSelector:bT(t,[]),blockSelector:bT(n,[`.sentry-block`,`[data-sentry-block]`,`base`,`iframe[srcdoc]:not([src])`]),unblockSelector:bT(r,[]),ignoreSelector:bT(i,[`.sentry-ignore`,`[data-sentry-ignore]`,`input[type="file"]`])}}function ST({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return a;let o=n.includes(t),s=r&&t===`value`&&e.tagName===`INPUT`&&[`submit`,`button`].includes(e.getAttribute(`type`)||``);return o||s?a.replace(/[\S]/g,`*`):a}var CT=`img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]`,wT=[`content-length`,`content-type`,`accept`],TT=Symbol.for(`sentry__originalRequestBody`),ET=!1,DT=!1;function OT(){if(typeof Request>`u`||DT)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[TT]=n.body),r};t.prototype=e.prototype,at.Request=t,DT=!0}catch{}}var kT=(e=>new AT(e)),AT=class{constructor({flushMinDelay:e=Xv,flushMaxDelay:t=Zv,minReplayDuration:n=oy,maxReplayDuration:r=cy,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:v=[],networkResponseHeaders:y=[],mask:b=[],maskAttributes:x=[`title`,`placeholder`,`aria-label`],unmask:S=[],block:C=[],unblock:w=[],ignore:T=[],maskFn:E,beforeAddRecordingEvent:D,beforeErrorSampling:O,onError:k,attachRawBodyFromRequest:A=!1}={}){this.name=`Replay`;let j=xT({mask:b,unmask:S,block:C,unblock:w,ignore:T});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(e,t,n)=>ST({maskAttributes:x,maskAllText:c,privacyOptions:j,key:e,value:t,el:n}),...j,slimDOMOptions:`all`,inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,sy),maxReplayDuration:Math.min(r,cy),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:h,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:MT(v),networkResponseHeaders:MT(y),beforeAddRecordingEvent:D,beforeErrorSampling:O,onError:k,attachRawBodyFromRequest:A,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${CT}`:CT,this._recordingOptions.ignoreCSSAttributes=new Set([`background-image`])),this._isInitialized&&hl())throw Error(`Multiple Sentry Session Replay instances are not supported`);this._isInitialized=!0}get _isInitialized(){return ET}set _isInitialized(e){ET=e}afterAllSetup(e){hl()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&OT(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
22startBuffering(){this._replay&&this._replay.startBuffering()}stop(e){return this._replay?this._replay.stop({forceFlush:e?.flush??this._replay.recordingMode===`session`,reason:`manual`}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){let t=this.getReplayId(!0);t&&(al(e,{"sentry.replay_id":t}),this.getRecordingMode()===`buffer`&&al(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=jT(this._initialOptions,e);this._replay=new yT({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName(`ReplayCanvas`);if(!t)return;this._replay._canvas=t.getOptions()}catch{}}};function jT(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=Vn(n.replaysSessionSampleRate),a=Vn(n.replaysOnErrorSampleRate);return i==null&&a==null&&Wt(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function MT(e){return[...wT,...e.map(e=>e.toLowerCase())]}function NT(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function PT(e){try{return new URL(e,f_.location.origin).href}catch{return}}function FT(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function IT(e){try{return new Headers(e)}catch{return}}var LT={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function RT(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:s,onRequestSpanEnd:c}
22={...LT,...t},l=typeof i==`function`?i:e=>!0,u=e=>VT(e,o),d={},f=e.getOptions().propagateTraceparent;n&&wp(t=>{let n=dp(t,l,u,d,{propagateTraceparent:f,onRequestSpanEnd:c,urlBase:f_.location?.origin});if(n){let r=PT(t.fetchData.url),i=r?af(r).host?.replace(/^.*@/,``):void 0,o=r?sf(r):void 0;n.setAttributes({[Ze]:Yd(o),[ln]:i}),a&&BT(n,e),s?.(n,{headers:t.headers})}}),r&&r_(t=>{let n=HT(t,l,u,d,f,c);n&&(a&&BT(n,e),s?.(n,{headers:IT(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}var zT=300;function BT(e,t){let n=Rr(e).attributes[Ze];if(!n||typeof n!=`string`)return;let r=()=>void setTimeout(i);if(ul(t)){let t=e.end.bind(e);e.end=e=>{let n=e??En(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,zT)}}let i=zm(`resource`,({entries:t})=>{t.forEach(t=>{FT(t)&&t.name.endsWith(n)&&(e.setAttributes(vh(t)),r())})})}function VT(e,t){let n=xg();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?bf(r.toString(),t)||a&&bf(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?bf(e,t):n}}function HT(e,t,n,r,i,a){let o=e.xhr,s=o?.[n_];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=Dn()&&t(c);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&s.status_code!==void 0&&(pn(n,s.status_code),n.end(),a?.(n,{headers:IT(u_(o)),error:e.error})),delete r[t]);return}let d=PT(c),f=af(d||c),p=d?sf(d):void 0,m=sf(of(c)),h=Dr(),g=!!jn(),_=g||!!h&&ul(h),v=f?.host?.replace(/^.*@/,``),y=rf(d||c),b=y?`${l} ${y}`:l,x=u&&_?$l({name:h&&ul(h)?b:`${l} ${m}`,attributes:{type:`xhr`,[Xn]:l,[Ze]:Yd(p),[ln]:v,[si]:y,[ot]:`auto.http.browser`,[Ct]:Au,[Kn]:Xd(tf(f?.search)),[gi]:nf(f?.hash)}}):new Cn,S=Xl(x)&&g?void 0:x;return u&&!_&&h?.recordDroppedEvent(`no_parent_span`,`span`),o.__sentry_xhr_span_id__=x.spanContext().spanId,r[o.__sentry_xhr_span_id__]=x,n(c)&&UT(o,Dn()&&_?S:void 0,i),h&&h.emit(`beforeOutgoingRequestSpan`,x,e),x}function UT(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=hf({span:t,propagateTraceparent:n});r&&WT(e,r,i,a)}function WT(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.[`sentry-trace`]&&e.setRequestHeader)try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!NT(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}var GT=`WebVitals`,KT=Zc((e={})=>{let{ignore:t=[],softNavigations:n=!0,bfcacheNavigations:r=!0}=e,i=new Set(t);return{name:GT,setup(e){let t=ul(e),a=n&&t&&ch(),o=r&&t,s=a||o;a&&(Mm(),lh(e)),o&&Nm();let c=!t&&!i.has(`cls`),l=!t&&!i.has(`lcp`),u=tg({trackCls:c,trackLcp:l,client:e}),d=new WeakSet;e.on(`afterStartPageLoadSpan`,e=>{d.add(e)}),e.on(`spanEnd`,e=>{d.delete(e)&&(u(),sg(e,{recordClsOnPageloadSpan:c,recordLcpOnPageloadSpan:l,spanStreamingEnabled:t}))}),t&&(i.has(`lcp`)||Og(e,s),i.has(`cls`)||Ag(e,s)),i.has(`inp`)||Mg(e,s)},afterAllSetup(){i.has(`inp`)||_g()}}});function qT(){f_.document?f_.document.addEventListener(`visibilitychange`,()=>{let e=jn();if(!e)return;let t=zn(e);if(f_.document.hidden&&t){let e=`cancelled`,{attributes:{[Ct]:n},status:r}=Rr(t);V_&&Y.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r===`ok`&&t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):V_&&Y.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var JT=`sentry_previous_trace`,YT=`sentry.previous_trace`;function XT(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?$T():void 0;e.on(`spanStart`,e=>{if(zn(e)!==e)return;let t=Le().getPropagationContext();i=ZT(i,e,t),r&&QT(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=Le(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(eE(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=eE(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[yt]:i.sampleRate}})}function ZT(e,t,n){let r=Rr(t);function i(){try{let e=Number(r.attributes[`sentry.sample_rate`]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(V_&&Y.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.attributes[Ct],...t.spanContext()})}\``),t.addLink({context:o,attributes:{[Tn]:`previous_trace`}}),t.setAttribute(YT,`${o.traceId}-${o.spanId}-${+!!eE(o)}`)),a)}function QT(e){try{f_.sessionStorage.setItem(JT,JSON.stringify(e))}catch(e){V_&&Y.warn(`Could not store previous trace in sessionStorage`,e)}}function $T(){try{let e=f_.sessionStorage?.getItem(JT);return JSON.parse(e)}catch{return}}function eE(e){return e.traceFlags===1}var tE=`BrowserTracing`,nE={...eu,instrumentNavigation:!0,instrumentBfcacheRestore:!0,instrumentPageLoad:!0,markBackgroun
22dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,...LT},rE=((e={})=>{`enableElementTiming`in e&&Wt(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let t=f_.document,{enableInp:n,enableLongTask:r,enableLongAnimationFrame:i,webVitals:a,beforeStartSpan:o,idleTimeout:s,finalTimeout:c,childSpanTimeout:l,markBackgroundSpan:u,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:p,enableHTTPTimings:m,ignoreResourceSpans:h,instrumentPageLoad:g,instrumentNavigation:_,instrumentBfcacheRestore:v,detectRedirects:y,linkPreviousTrace:b,consistentTraceSampling:x,enableReportPageLoaded:S,onRequestSpanStart:C,onRequestSpanEnd:w}={...nE,...e},T=yg(),E,D;function O(e,n,r=!0,i){let a=n.op===`pageload`,u=n.name,d=o?o(n):n,f=$d(i||xg()),p={...f?.pathname&&{"url.path":f.pathname},...f&&!Qd(f)&&{"url.full":Yd(f.href)},...d.attributes};if(u!==d.name&&(p[ii]=`custom`),d.attributes=p,!r){let e=vn();$l({...d,startTime:e}).end(e);return}let m=au(d,{idleTimeout:s,finalTimeout:c,childSpanTimeout:l,disableAutoFinish:a,trimIdleSpanEndTimestamp:!S});a&&S&&(D=m),uE(e,m);function h(){t&&[`interactive`,`complete`].includes(t.readyState)&&(e.emit(`idleSpanEnableAutoFinish`,m),t.removeEventListener(`readystatechange`,h))}a&&!S&&t&&(t.addEventListener(`readystatechange`,h),h())}return{name:tE,setup(e){if(T){V_&&Y.log(`[Tracing] Skipping browserTracingIntegration setup for bot user agent.`);return}if(zc(),i&&at.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes(`long-animation-frame`)?Ch():r&&Sh(),y&&t){let e=()=>{E=En()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function n(){let t=lE(e);t&&!Rr(t).end_timestamp&&(V_&&Y.log(`[Tracing] Finishing current active span with op: ${Rr(t).attributes[`sentry.op`]}`),t.setAttribute(bi,`cancelled`),t.end())}e.on(`beforeIdleSpanEnd`,t=>{if(lE(e)!==t)return;wh(t,{ignoreResourceSpans:h,spanStreamingEnabled:ul(e)}),uE(e,void 0);let n=Le(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:t.spanContext().traceId,sampled:Jr(t),dsc:He(t)}),D===t&&(D=void 0)}),e.on(`startNavigationSpan`,(t,r)=>{if(Dr()!==e)return;if(r?.isRedirect){V_&&Y.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),O(e,{op:lu,...t},!1,r.url);return}E=void 0,n();let i=Le();i.setPropagationContext({traceId:wi(),sampleRand:Math.random(),propagationSpanId:Dn()?void 0:an()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),O(e,{op:cu,...t,parentSpan:null},!0,r?.url)}),e.on(`startPageLoadSpan`,(t,r={})=>{if(Dr()!==e)return;n();let i=r.sentryTrace||oE(`sentry-trace`)||sE(`sentry-trace`),a=r.baggage||oE(`baggage`)||sE(`baggage`),o=fr(i,a),s=Le();s.setPropagationContext(o),Dn()||(s.getPropagationContext().propagationSpanId=an()),s.setSDKProcessingMetadata({normalizedRequest:y_()}),O(e,{op:su,...t})}),e.on(`endPageloadSpan`,()=>{S&&D&&(D.setAttribute(bi,`reportPageLoaded`),D.end())}),f_.addEventListener?.(`pagehide`,()=>{let t=lE(e);t&&!Rr(t).end_timestamp&&(t.setAttribute(bi,`documentHidden`),t.end()),e.flush()})},afterAllSetup(e){if(T)return;if(Ql(e),e.addIntegration&&!e.getIntegrationByName?.(`WebVitals`)){let t=a?.ignore??[];e.addIntegration(KT({...a,ignore:n||t.includes(`inp`)?t:[...t,`inp`]}))}let t=xg();b!==`off`&&XT(e,{linkPreviousTrace:b,consistentTraceSampling:x}),f_.location&&(g&&iE(e,{name:ul(e)?ju:f_.location.pathname,attributes:{[ii]:`url`,[nt]:`auto.pageload.browser`}}),_&&Yg(({to:n,from:r})=>{if(r===void 0&&t!==void 0&&t.indexOf(n)!==-1){t=void 0;return}t=void 0;let i=$d(n),a=lE(e),o=a&&y&&fE(a,E);aE(e,{name:ul(e)?Mu:i?.pathname||f_.location.pathname,attributes:{[ii]:`url`,[nt]:`auto.navigation.browser`}},{url:n,isRedirect:o})}),v&&f_.addEventListener?.(`pageshow`,n=>{n.persisted&&(t=void 0,aE(e,{name:ul(e)?Mu:f_.location?.pathname||`/`,attributes:{[ii]:`url`,[nt]:`auto.navigation.browser.bfcache`,[Ir]:`back-forward-cache`}},{url:f_.location?.href}))})),u&&qT(),RT(e,{traceFetch:d,traceXHR:f,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:p,enableHTTPTimings:m,onRequestSpanStart:C,onRequestSpanEnd:w})}}});function iE(e,t,n){let r=t.name===ju;Le().setTransactionName(r?f_.location?.pathname:t.name);let i=ht(),a={...t,startTime:t.startTime??(i?i/1e3:void 0)};e.emit(`startPageLoadSpan`,a,n);let o=lE(e);return o&&e.emit(`afterStartPageLoadSpan`,o),o}function aE(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i,url:r}),e.emit(`startNavigationSpan`,t,{isRedirect:i,url:r});let a=Le(),o=t.name===Mu;return a.setTransactionName(o?r&&$d(r)?.pathname||f_.location?.pathname:t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...y_(),url:r}}),lE(e)}function oE(e){return(f_.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function sE(e){return(f_.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}var cE=`_sentry_idleSpan`;function lE(e){return e[cE]}function uE(e,t){vr(e,cE,t)}var dE=1.5;function fE(e,t){let n=Rr(e),r=vn();return!(r-n.start_timestamp>dE||t&&r-t<=dE)}function pE(e){return Bn(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function mE(e){let t={...e};mf(t,`react`),_i(`react`,{version:Q.version});let n=Uv(t);return $r(hE),n}function hE(e){return pE(e)?`[SyntheticEvent]`:Rv(e)}var gE=[`ResizeObserver loop limit exceeded`,`ResizeObserver loop completed with undelivered notifications`,`AbortError`,`CanceledError`,`TypeError: cancelled`,`TypeError: NetworkError when attempting to fetch resource`,`TypeError: Failed to fetch`,`TypeError: Load failed`,/Loading chunk [\d]+ failed/,/dynamically imported module/,/Importing a module script failed/,`Network Error`,/Internal error opening backing store for indexedDB/i,/The I\/O read operation failed/i,/Database deleted by request of the user/i],_E=[/extensions\//i,/^chrome:\/\//i,/^chrome-extension:\/\//i,/^moz-extension:\/\//i,/^safari-extension:\/\//i],vE=[`access_token`,`refresh_token`,`id_token`,`token`,`code`,`api_key`,`
22client_secret`,`password`,`secret`],yE=`[Filtered]`,bE=[`from`,`to`,`url`,`url.full`,`http.url`,`http.query`,`http.fragment`,`http.request.header.referer`,`browser.web_vital.lcp.url`,`code.file.path`],xE=[`url.query`,`url.fragment`],SE=e=>{if(!e.includes(`%`)&&!e.includes(`+`))return e;for(let t of new URLSearchParams(e).keys())return t;return e},CE=e=>{let t=!1,n=e.split(`&`).map(e=>{let n=e.indexOf(`=`);if(n===-1)return e;let r=e.slice(0,n),i=r.lastIndexOf(`?`),a=i===-1?r:r.slice(i+1);return vE.includes(SE(a).toLowerCase())?(t=!0,`${r}=${yE}`):e});return t?n.join(`&`):e},wE=e=>{let t=e.indexOf(`#`),n=t===-1?e:e.slice(0,t),r=t===-1?``:e.slice(t+1),i=n.indexOf(`?`),a=i===-1?``:n.slice(i+1),o=CE(a),s=CE(r);return o===a&&s===r?e:`${i===-1?n:n.slice(0,i)}${i===-1?``:`?${o}`}${t===-1?``:`#${s}`}`},TE=(e,t)=>{if(typeof e==`string`)return t(e);if(!Array.isArray(e))return e;let n=e.map(e=>typeof e==`string`?t(e):e);return n.some((t,n)=>t!==e[n])?n:e},EE=(e,t,n)=>{let r;for(let i of t){let t=e[i],a=TE(t,n);a!==t&&(r??={...e},r[i]=a)}return r??e},DE=e=>EE(EE(e,bE,wE),xE,CE),OE=e=>{let t=e.data;if(!t)return e;let n=DE(t);return n===t?e:{...e,data:n}},kE=[`referer`,`referrer`],AE=e=>{let t;for(let[n,r]of Object.entries(e)){if(typeof r!=`string`||!kE.includes(n.toLowerCase()))continue;let i=wE(r);i!==r&&(t??={...e},t[n]=i)}return t??e},jE=e=>{let t=e.request;if(t){let n=typeof t.url==`string`?wE(t.url):t.url,r=t.headers?AE(t.headers):t.headers;(n!==t.url||r!==t.headers)&&(e.request={...t,url:n,headers:r})}e.breadcrumbs&&=e.breadcrumbs.map(OE);let n=e.contexts?.trace;n?.data&&(n.data=DE(n.data));let r=`spans`in e?e.spans:void 0;if(r)for(let e of r)e.data&&=DE(e.data);return e},ME=e=>jE(e),NE=e=>OE(e),PE=[`pageload`,`navigation`,`http.client`,`resource.`,`browser.`],FE=e=>{let t=DE(e.attributes),n=e.attributes[`sentry.op`],r=typeof n==`string`&&PE.some(e=>n.startsWith(e))?wE(e.name):e.name;return t===e.attributes&&r===e.name?e:{...e,attributes:t,name:r}},IE=[`navigation.`,`resource.`],LE=[`previous`],RE=(e,t)=>{if(typeof t.op!=`string`||!IE.some(e=>t.op.startsWith(e)))return e;let n=typeof t.description==`string`?wE(t.description):t.description,r=t.data?EE(t.data,LE,wE):t.data;return n===t.description&&r===t.data?e:{...e,data:{...e.data,payload:{...t,description:n,data:r}}}},zE=e=>{let t=e.data?.payload;if(!t)return e;if(e.data.tag===`performanceSpan`)return RE(e,t);if(e.data.tag===`breadcrumb`){let n=OE(t);return n===t?e:{...e,data:{...e.data,payload:n}}}return e},BE=e=>{let t=jE(e),n=t.urls,r=TE(n,wE);return r!==n&&(t.urls=r),t},VE={beforeAddRecordingEvent:zE},HE=[`forwarded`,`-ip`,`remote-`,`via`,`-user`],UE={userInfo:!1,cookies:!1,httpHeaders:{request:{deny:HE},response:{deny:HE}},httpBodies:[],urlQueryParams:{deny:[...HE,...vE]},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,queues:!1,graphQL:{document:!1,variables:!1}},WE=()=>{C.SENTRY_DSN&&(mE({dsn:C.SENTRY_DSN,release:C.SENTRY_RELEASE,integrations:[rE(),kT(VE),vv({lifecycle:`route`})],environment:C.ENVIRONMENT,tracesSampleRate:1,replaysSessionSampleRate:.01,replaysOnErrorSampleRate:.2,maxValueLength:8192,ignoreErrors:gE,denyUrls:_E,dataCollection:UE,attachStacktrace:!1,beforeSend:ME,beforeSendSpan:FE,beforeBreadcrumb:NE}),_r(BE))},GE=`chunk_reload`,KE=`chunk_reload_context`;function qE(e){return e instanceof Error?e.name===`ChunkLoadError`||/loading (css )?chunk|dynamically imported module|importing a module script failed|Failed to fetch|Load failed|not a valid JavaScript MIME type/i.test(e.message):!1}var JE=class extends Error{constructor(){super(`Lazy module resolved empty or without a default export (possible stale chunk)`),this.name=`StaleModuleError`}};function YE(e){return e instanceof JE}function XE(e){return YE(e)?!0:e instanceof Error?e.name===`ChunkLoadError`||/dynamically imported module|importing a module script failed|loading (css )?chunk|not a valid JavaScript MIME type/i.test(e.message):!1}function ZE(e){return!XE(e)||sessionStorage.getItem(`chunk_reload`)?!1:(sessionStorage.setItem(GE,`1`),window.location.reload(),!0)}function QE(e){return(0,Q.lazy)(()=>$E(e))}async function $E(e){try{let t=await e();if(t==null||t.default===void 0)throw new JE;return t}catch(e){if((qE(e)||YE(e))&&!sessionStorage.getItem(`chunk_reload`))return sessionStorage.setItem(GE,`1`),window.location.reload(),new Promise(()=>{});throw e}}function eD(){sessionStorage.removeItem(GE),sessionStorage.removeItem(KE)}function tD(){return typeof document>
22`u`?null:document.querySelector(`script[type="module"][src]`)?.getAttribute(`src`)??null}function nD(){let e=typeof window>`u`?``:window.location?.href??``;return e?wE(e):``}function rD(e){let t={href:nD(),buildHash:tD(),at:Date.now(),name:e?.name??null,message:e?.message??null};try{sessionStorage.setItem(KE,JSON.stringify(t))}catch{}Sf({category:`chunk_reload`,level:`warning`,message:`Stale chunk failed to load: reloading once onto the new bundle`,data:{...t}})}function iD(){let e;try{e=sessionStorage.getItem(KE)}catch{return null}if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!=`object`||!t)return null;let n=t;return typeof n.at!=`number`||!Number.isFinite(n.at)?null:{href:typeof n.href==`string`?n.href:``,buildHash:typeof n.buildHash==`string`?n.buildHash:null,at:n.at,name:typeof n.name==`string`?n.name:null,message:typeof n.message==`string`?n.message:null}}function aD(e){if(!sessionStorage.getItem(`chunk_reload`))return rD(e),sessionStorage.setItem(GE,`1`),window.location.reload(),!0;let t=iD(),n=tD();return ci(`Chunk load failed after reload`,{level:`error`,tags:{chunk_reload:`after_reload`},extra:{preloadErrorName:e?.name,preloadErrorMessage:e?.message,preloadErrorStack:e?.stack,currentUrl:nD(),currentBuildHash:n,firstFailureRecorded:t!==null,firstFailureHref:t?.href,firstFailureAt:t?new Date(t.at).toISOString():void 0,firstFailureName:t?.name??void 0,firstFailureMessage:t?.message??void 0,firstFailureBuildHash:t?.buildHash,elapsedMsSinceFirstFailure:t?Date.now()-t.at:void 0,buildHashChanged:t?t.buildHash!==n:void 0}}),!1}var $=o(),oD=()=>cD().type,sD=()=>oD()===`publisher`,cD=()=>{let e=(0,Q.useContext)(Ii),t=e?.requester?.brandInfo?.uuid,n=!!e?.requester?.userInfo;return t?{type:(e?.requester?.userInfo?.brands??[]).find(e=>e.uuid===t)?.dashboard_type===`publisher`?`publisher`:`default`,resolved:n}:{type:`default`,resolved:n}},lD=({defaultPage:e,publisherPage:t})=>sD()?t:e,uD=QE(()=>Xs(()=>import(`./home-CNXkH4WA.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),dD=QE(()=>Xs(()=>import(`./login-DjrIRX5H.js`),__vite__mapDeps([11,1,2,3,4,5,6,7,9,10,8,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]))),fD=QE(()=>Xs(()=>import(`./forgot-password-BHtoR9j8.js`),__vite__mapDeps([36,1,2,3,4,5,6,7,10,9,8,22,23,24,25,26,27,28,29,30,31,32,33,34,35]))),pD=QE(()=>Xs(()=>import(`./reset-password-CZQjOe7w.js`),__vite__mapDeps([37,1,2,3,4,5,6,7,9,10,8,35,38]))),mD=QE(()=>Xs(()=>import(`./settings-Dudzt-js.js`),__vite__mapDeps([39,1,2,3,4,9,6,7,10,15,40,5,8,23,41,42,12,13,14,16,17,18,19,20,21,43,44,45,46,38]))),hD=QE(()=>Xs(()=>import(`./overview-D-VQnwxx.js`),__vite__mapDeps([47,1,2,3,4,5,6,7,9,10,8,48,28,16,20,19,12,13,14,15,17,18,21,27,29,23,24,25,26,30,31,49,50,51,22,32,33,34,52,53,54,55,56,57,58,59,60,61,62,63,64,65]))),gD=QE(()=>Xs(()=>import(`./route-D7UEDpme.js`),__vite__mapDeps([66,2,1,3,4,13,16,10,9,6,7]))),_D=QE(()=>Xs(()=>import(`./publisher-DNuSLeZU.js`),__vite__mapDeps([67,1,2,3,4,5,6,7,10,9,8,12,13,14,15,16,17,18,19,20,21,29,23,24,25,26,27,28,30,31,22,32,33,34,51,50,68,69,70]))),vD=QE(()=>Xs(()=>import(`./publisher-CVITqYnL.js`),__vite__mapDeps([71,1,2,3,4,5,6,7,9,10,8,20,19,12,13,14,15,16,17,18,21,29,23,24,25,26,27,28,30,31,72,73,74,22,32,33,34,68]))),yD=QE(()=>Xs(()=>import(`./publisher-XDURDjEu.js`),__vite__mapDeps([75,1,2,3,4,5,6,7,9,10,8,20,19,12,13,14,15,16,17,18,21,32,25,26,27,31,76,77,22,23,24,28,29,30,33,34,78,56,79,51,50,68,69,80,81]))),bD=QE(()=>Xs(()=>import(`./publisher-sT9T3gWw.js`),__vite__mapDeps([82,1,2,3,4,5,6,7,9,10,8,12,13,14,15,16,17,18,19,20,21,32,25,26,27,22,23,24,28,29,30,31,33,34,76,77,78,56,79,51,50,83]))),xD=QE(()=>Xs(()=>import(`./publisher-epNoaJRu.js`),__vite__mapDeps([84,1,2,3,4,5,6,7,9,10,8,12,13,14,15,16,17,18,19,20,21,76,77,22,23,24,25,26,27,28,29,30,31,32,33,34,78,56,79,51,50,85]))),SD=QE(()=>Xs(()=>import(`./publisher-MUsgDTkw.js`),__vite__mapDeps([86,1,2,3,4,5,6,7,9,10,8,12,13,14,15,16,17,18,19,20,21,76,77,22,23,24,25,26,27,28,29,30,31,32,33,34,78,56,79,74,68,70,80,87,88,89]))),CD=QE(()=>Xs(()=>import(`./publisher-DopgIA_P.js`),__vite__mapDeps([90,1,2,3,4,5,6,7,9,10,8,12,13,14,15,16,17,18,19,20,21,76,77,22,23,24,25,26,27,28,29,30,31,32,33,34,78,56,79,74,70,80,87,91,51,50,88]))),wD=QE(()=>Xs(()=>import(`./publisher-Cqe_4az_.js`),__vite__mapDeps([92,1,2,3,4,5,6,7,9,10,8,12,13,14,15,16,17,18,19,20,21,31,76,77,22,23,24,25,26,27,28,29,30,32,33,34,78,56,79,70,93,80,87]))),TD=QE(()=>Xs(()=>import(`./intelligence-BSoFI66R.js`),__vite__mapDeps([94,1,2,3,5,6,7,10,4,9,15,77,8,16,12,13,14,17,18,19,20,21,31,57,60,52,50,65]))),ED=QE(()=>Xs(()=>import(`./route-D0VJyBxN.js`),__vite__mapDeps([95,1,2,3,13,4,5,6,7,10,9,8,23,42,16,22,24,25,26,27,28,29,30,31,32,33,34]))),DD=QE(()=>Xs(()=>import(`./competitors-BCcKMU-l.js`),__vite__mapDeps([96,1,2,3,4,5,6,7,9,10,8,20,19,12,13,14,15,16,17,18,21,76,77,22,23,24,25,26,27,28,29,30,31,32,33,34,78,56,79,72,73,97]))),OD=QE(()=>Xs(()=>import(`./detailed-DXEN-grT.js`),__vite__mapDeps([98,1,2,3,4,5,6,7,9,10,8,41,12,13,14,15,16,17,18,19,20,21,32,25,26,27,22,23,24,28,29,30,31,33,34,76,77,78,56,79,51,50,97,72,73]))),kD=QE(()=>Xs(()=>import(`./optimization-BQEp7tnZ.js`),__vite__mapDeps([99,1,2,3,4,5,6,7,9,10,15,8,48,100,24,25,26,27,28,45,101,
2218,17,102,63,103,23,104,32,105,16,20,19,12,13,14,21,106,22,29,30,31,33,34,55,107,108,109,77,110,41,46,43,111,60,112,113,114,115,116]))),AD=QE(()=>Xs(()=>import(`./detailed-CRctIaeL.js`),__vite__mapDeps([117,1,2,3,4,5,6,7,10,9,15,8,46,118,12,13,14,16,17,18,19,20,21,108,110,77,24,41,101,103,23,104,43,111,22,25,26,27,28,29,30,31,32,33,34,60,112,113,114,115]))),jD=QE(()=>Xs(()=>import(`./learnWhy-Ii193L6j.js`),__vite__mapDeps([119,1,2,3,4,9,6,7,10,12,13,5,14,15,8,16,17,18,19,20,21,110,77,24,41,46,101,103,23,104,43,111,22,25,26,27,28,29,30,31,32,33,34,60,112,113,114,115,120,116,102,63]))),MD=QE(()=>Xs(()=>import(`./draftLearnWhy-BFqH5t-s.js`),__vite__mapDeps([121,1,2,3,4,9,6,7,10,12,13,5,14,15,8,16,17,18,19,20,21,110,77,24,41,46,101,103,23,104,43,111,22,25,26,27,28,29,30,31,32,33,34,60,112,113,114,115,120,116,102,63]))),ND=QE(()=>Xs(()=>import(`./v2-DMh5Tvmw.js`),__vite__mapDeps([122,1,2,3,4,5,6,7,10,9,8,16,12,13,14,15,17,18,19,20,21,29,23,24,25,26,27,28,30,31,22,32,33,34,76,77,78,56,79,114,123]))),PD=QE(()=>Xs(()=>import(`./detailed-cmgv9ZYC.js`),__vite__mapDeps([124,1,2,3,4,5,6,7,9,10,8,12,13,14,15,16,17,18,19,20,21,107,102,63,103,23,108,109,77,76,22,24,25,26,27,28,29,30,31,32,33,34,78,56,79,93]))),FD=QE(()=>Xs(()=>import(`./answer-redirect-CXAmgvvf.js`),__vite__mapDeps([125,1,2,3,4,10,9,6,7,8,5]))),ID=QE(()=>Xs(()=>import(`./brand-link-DE4HG4D-.js`),__vite__mapDeps([126,2,1,4,3,14]))),LD=QE(()=>Xs(()=>import(`./answer-detailed-BZ4m2jrs.js`),__vite__mapDeps([127,1,2,3,4,5,6,7,9,10,8,16,12,13,14,15,17,18,19,20,21,78,128,102,63,103,23,129,55,64,56]))),RD=QE(()=>Xs(()=>import(`./experiment-OVtO1_lL.js`),__vite__mapDeps([130,1,2,3,4,9,6,7,10,8,5,16,12,13,14,15,17,18,19,20,21,78,131,128,102,63,103,23,129,55,64,56]))),zD=QE(()=>Xs(()=>import(`./topic-detailed-BisVwDpe.js`),__vite__mapDeps([132,1,2,3,4,5,6,7,9,10,8,12,13,14,15,16,17,18,19,20,21,76,77,22,23,24,25,26,27,28,29,30,31,32,33,34,78,56,79,91,51,50,123]))),BD=QE(()=>Xs(()=>import(`./scope-detail-BvR5Wf22.js`),__vite__mapDeps([133,1,2,3,4,5,6,7,9,10,8,12,13,14,15,16,17,18,19,20,21,76,77,22,23,24,25,26,27,28,29,30,31,32,33,34,78,56,79,91,51,50,123,89]))),VD=QE(()=>Xs(()=>import(`./insight-detailed-BjlGkg9u.js`),__vite__mapDeps([134,1,2,3,4,5,6,7,9,10,78,53,15,54,8,28,19,12,13,14,16,17,18,20,21,27,34,33,30,55,56,57,58,59,31,60,61,62,63,64]))),HD=QE(()=>Xs(()=>import(`./described-answers-DhB6Kai4.js`),__vite__mapDeps([135,1,2,3,4,5,6,7,9,10,15,8,33,78,62,63,64,52,50]))),UD=QE(()=>Xs(()=>import(`./route-BVs7foP0.js`),__vite__mapDeps([136,1,2,3,4,5,6,7,9,10,8,16,20,19,12,13,14,15,17,18,21,22,23,24,25,26,27,28,29,30,31,32,33,34,76,77,78,56,79,80,137,138,81]))),WD=QE(()=>Xs(()=>import(`./route-B33T9U8T.js`),__vite__mapDeps([139,1,2,3,4,5,6,7,9,10,8,16,12,13,14,15,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,76,77,78,56,79,83,137,138]))),GD=QE(()=>Xs(()=>import(`./route-PSrsRgcy.js`),__vite__mapDeps([140,1,2,3,4,5,6,7,9,10,8,16,12,13,14,15,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,76,77,78,56,79,137,85]))),KD=QE(()=>Xs(()=>import(`./page-expansion-D8UCjbJX.js`),__vite__mapDeps([141,1,2,3,5,6,7,9,4,10,8,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,142,115,46]))),qD=QE(()=>Xs(()=>import(`./detailed-CnfTa4V0.js`),__vite__mapDeps([143,1,2,3,4,5,6,7,9,10,15,8,46,144,102,63,103,23,142,115]))),JD=QE(()=>Xs(()=>import(`./recommendations-my0X6s-I.js`),__vite__mapDeps([145,2,1,5,3,6,7]))),YD=QE(()=>Xs(()=>import(`./showcase-CD4K8Kwx.js`),__vite__mapDeps([146,1,2,3,13,4,6,7,8,5,9,10,25,26,27,29,23,24,28,30,31,102,63,103,147,22,32,33,34,72,148,113,16]))),XD=QE(()=>Xs(()=>import(`./privacy-BIz5issp.js`),__vite__mapDeps([149,1,2]))),ZD=QE(()=>Xs(()=>import(`./curie-gallery-BxndxciR.js`),__vite__mapDeps([150,1,2,3,13,4,5,6,7,10,9,151,8,41,100,24,25,26,27,28,45,101,18,17,102,63,103,23,104,32,152,59,153,15,77,144,12,14,16,19,20,21,43,148]))),QD=QE(()=>Xs(()=>import(`./experiments-DRRSmCBl.js`),__vite__mapDeps([154,1,2,3,4,5,6,7,10,9,8,16,12,13,14,15,17,18,19,20,21,76,77,22,23,24,25,26,27,28,29,30,31,32,33,34,78,56,79,155,54,61]))),$D=QE(()=>Xs(()=>import(`./detailed-Honzsg0u.js`),__vite__mapDeps([156,1,2,3,4,5,6,7,9,10,15,54,8,105,16,12,13,14,17,18,19,20,21,147,23,24,25,26,27,28,29,30,31,22,32,33,34,78,131,109,77,108,57,49,58,59,60,61,79,155]))),eO=QE(()=>Xs(()=>import(`./campaigns-pp3kBR4R.js`),__vite__mapDeps([157,1,2,3,4,5,6,7,10,9,8,16,12,13,14,15,17,18,19,20,21,158]))),tO=QE(()=>Xs(()=>import(`./new-EuxuC1oB.js`),__vite__mapDeps([159,1,2,3,4,10,9,6,7,8,5,151,41,100,24,25,26,27,28,45,101,
2218,17,102,63,103,23,104,32,152,59,12,13,14,15,16,19,20,21,160,106,158]))),nO=QE(()=>Xs(()=>import(`./detailed-DZUEJSlg.js`),__vite__mapDeps([161,1,2,3,4,5,6,7,9,10,15,8,162,24,16,152,12,13,14,17,18,19,20,21,102,63,103,23,22,25,26,27,28,29,30,31,32,33,34,144,105,163,78,131,107,108,109,77,57,49,58,59,60,61]))),rO=QE(()=>Xs(()=>import(`./query-0RDUuqny.js`),__vite__mapDeps([164,163,1,2,3,4,5,6,7,9,10,8,16,12,13,14,15,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,78,131]))),iO=QE(()=>Xs(()=>import(`./run-sD9QGHfd.js`),__vite__mapDeps([165,163,1,2,3,4,5,6,7,9,10,8,16,12,13,14,15,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,78,131]))),aO=QE(()=>Xs(()=>import(`./learning-hub-B3iuxwd4.js`),__vite__mapDeps([166,2,1,5,3,6,7]))),oO=QE(()=>Xs(()=>import(`./brand-knowledge-7SU8RR5r.js`),__vite__mapDeps([167,1,2,3,5,6,7,9,4,10,15,8,162,24,16,152,12,13,14,17,18,19,20,21,102,63,103,23,22,25,26,27,28,29,30,31,32,33,34,44,168,169,170]))),sO=QE(()=>Xs(()=>import(`./agency-os-BePx0S4P.js`),__vite__mapDeps([171,1,2,3,4,5,6,7,9,10,15,77,8,16,12,13,14,17,18,19,20,21,172,103,23,111]))),cO=QE(()=>Xs(()=>import(`./cx-C71ahr8j.js`),__vite__mapDeps([173,1,2,3,4,5,6,7,9,10,15,77,8,16,12,13,14,17,18,19,20,21,172,103,23,111]))),lO=QE(()=>Xs(()=>import(`./onboarding-aVd9DRFa.js`),__vite__mapDeps([174,1,2,3,4,9,6,7,14,10,15,8,5,12,13,16,17,18,19,20,21,169,175,44,168,170,176,177,178,179,112]))),uO=QE(()=>Xs(()=>import(`./onboarding-v2-D2K8se5X.js`),__vite__mapDeps([180,1,2,3,4,14,10,9,6,7,8,5,12,13,15,16,17,18,19,20,21,181]))),dO=QE(()=>Xs(()=>import(`./review-Cyul1YOq.js`),__vite__mapDeps([182,1,2,3,4,14,10,9,6,7,8,5,12,13,15,16,17,18,19,20,21,181,183,184,185]))),fO=QE(()=>Xs(()=>import(`./landscape-BfvWdoi1.js`),__vite__mapDeps([186,1,2,3,4,14,10,9,6,7,8,5,12,13,15,16,17,18,19,20,21,181,183,184,185]))),pO=QE(()=>Xs(()=>import(`./priorities-C_yZFuYG.js`),__vite__mapDeps([187,1,2,3,4,14,10,9,6,7,8,5,12,13,15,16,17,18,19,20,21,181,183,184]))),mO=QE(()=>Xs(()=>import(`./bench-eVU8Ls1x.js`),__vite__mapDeps([188,1,2,3,4,14,10,9,6,7,8,5,12,13,15,16,17,18,19,20,21,181,183,184]))),hO=QE(()=>Xs(()=>import(`./brief-eyMg-pIR.js`),__vite__mapDeps([189,1,2,3,4,14,10,9,6,7,8,5,12,13,15,16,17,18,19,20,21,181,184]))),gO=QE(()=>Xs(()=>import(`./inputs-BjZIuqYM.js`),__vite__mapDeps([190,1,2,3,4,14,10,9,6,7,8,5,23,24,12,13,15,16,17,18,19,20,21,170,181,183,184,185]))),_O=QE(()=>Xs(()=>import(`./shared-ChKoVXNs.js`),__vite__mapDeps([191,1,2,3,4,10,9,6,7,8,5,178,179,112]))),vO=QE(()=>Xs(()=>import(`./brand-update-CECFTyIv.js`),__vite__mapDeps([192,1,2,3,5,6,7,14,4,10,9,8,12,13,15,16,17,18,19,20,21]))),yO=QE(()=>Xs(()=>import(`./audit-DByilHn4.js`),__vite__mapDeps([193,1,2,3,4,5,6,7,9,10,15,8,12,13,14,16,17,18,19,20,21,26,27,175,169]))),bO=QE(()=>Xs(()=>import(`./internal-DHbKPPQA.js`),__vite__mapDeps([194,1,2,3,4,5,6,7,9,14,10,40,8,23,41,42,12,13,15,16,17,18,19,20,21,43,44,24,25,26,27,101,118,29,28,30,31,103,177,176,169,178]))),xO=QE(()=>Xs(()=>import(`./internal-blog-h6-qP9pA.js`),__vite__mapDeps([195,1,2,3,4,10,9,6,7,8,5,12,13,14,15,16,17,18,19,20,21,129,177]))),SO=QE(()=>Xs(()=>import(`./help-CmSwNTNh.js`),__vite__mapDeps([196,2,1,5,3,6,7]))),CO=QE(()=>Xs(()=>import(`./not-found-Dl58bNT1.js`),__vite__mapDeps([197,2,1,3,4,5,6,7,8,9,10]))),wO=QE(()=>Xs(()=>import(`./admin-insight-debug-C5pahyy7.js`),__vite__mapDeps([198,1,2,4,3,5,6,7,9]))),TO=()=>{let[e]=xc();if(!z.isAdminHost())return(0,$.jsx)(uD,{});let t=e.get(`next`),n=t?z.sanitizeInternalPath(t):``,r=n.split(/[?#]/)[0],i=!r.includes(`..`)&&(r===y.routePaths.internal||r.startsWith(`${y.routePaths.internal}/`))?n:y.routePaths.internal;return(0,$.jsx)(Ei,{to:i,preserveQuery:!1,preserveHash:!1})},EO={[y.routePaths.login]:(0,$.jsx)(dD,{}),[y.routePaths.forgotPassword]:(0,$.jsx)(fD,{}),[y.routePaths.resetPasswordBase]:(0,$.jsx)(pD,{}),[y.routePaths.showcase]:(0,$.jsx)(YD,{}),[y.routePaths.privacy]:(0,$.jsx)(XD,{}),[y.routePaths.curieGallery]:(0,$.jsx)(ZD,{}),[y.routePaths.experiments]:(0,$.jsx)(QD,{}),[y.routePaths.experimentDetailed(`:experimentUuid`)]:(0,$.jsx)($D,{}),[y.routePaths.campaigns]:(0,$.jsx)(eO,{}),[y.routePaths.campaignsNew]:(0,$.jsx)(tO,{}),[y.routePaths.campaignDetailed(`:campaignUuid`)]:(0,$.jsx)(nO,{}),[y.routePaths.campaignQueryAnswersDrawer(`:campaignUuid`,`:campaignQueryUuid`)]:(0,$.jsx)(rO,{}),[y.routePaths.campaignRunAnswersDrawer(`:campaignUuid`,`:runUuid`)]:(0,$.jsx)(iO,{}),[y.routePaths.root]:(0,$.jsx)(TO,{}),[y.routePaths.settings]:(0,$.jsx)(mD,{}),[y.routePaths.overview]:(0,$.jsx)(lD,{defaultPage:(0,$.jsx)(hD,{}),publisherPage:(0,$.jsx)(_D,{})}),[y.routePaths.overviewAttribution]:(0,$.jsx)(gD,{}),[y.routePaths.research]:(0,$.jsx)(TD,{}),[y.routePaths.aiAds]:(0,$.jsx)(ED,{}),[y.routePaths.competitors]:(0,$.jsx)(lD,{defaultPage:(0,$.jsx)(DD,{}),publisherPage:(0,$.jsx)(vD,{})}
22),[y.routePaths.competitorDetails(`:competitorUuid`)]:(0,$.jsx)(OD,{}),[y.routePaths.optimization]:(0,$.jsx)(Ei,{to:y.routePaths.optimizationPages}),[y.routePaths.optimizationPages]:(0,$.jsx)(kD,{}),[y.routePaths.optimizationBlogs]:(0,$.jsx)(kD,{}),[y.routePaths.optimizationDetailed(`:optimizationUuid`)]:(0,$.jsx)(AD,{}),[y.routePaths.optimizationLearnWhy(`:optimizationUuid`)]:(0,$.jsx)(jD,{}),[y.routePaths.optimizationDraftLearnWhy(`:draftUuid`)]:(0,$.jsx)(MD,{}),[y.routePaths.pageExpansion]:(0,$.jsx)(KD,{}),[y.routePaths.pageExpansionDetailed(`:contentPageUuid`)]:(0,$.jsx)(qD,{}),[y.routePaths.queryLibrary]:(0,$.jsx)(ND,{}),[y.routePaths.queryDetailed(`:queryUuid`)]:(0,$.jsx)(lD,{defaultPage:(0,$.jsx)(PD,{}),publisherPage:(0,$.jsx)(wD,{})}),[y.routePaths.brandLinkLanding]:(0,$.jsx)(ID,{}),[y.routePaths.answerDetailed(`:answerUuid`)]:(0,$.jsx)(FD,{}),[y.routePaths.answerDetailedDrawer(`:answerUuid`)]:(0,$.jsx)(LD,{}),[y.routePaths.experimentAnswerDetailed(`:experimentUuid`,`:answerUuid`)]:(0,$.jsx)(RD,{}),[y.routePaths.topicDetailed(`:topicUuid`)]:(0,$.jsx)(lD,{defaultPage:(0,$.jsx)(zD,{}),publisherPage:(0,$.jsx)(CD,{})}),[y.routePaths.queryLibraryScopeDetailed(`:scopeKind`,`:scopeId`)]:(0,$.jsx)(lD,{defaultPage:(0,$.jsx)(BD,{}),publisherPage:(0,$.jsx)(SD,{})}),[y.routePaths.insightDetailed(`:insightUuid`)]:(0,$.jsx)(VD,{}),[y.routePaths.describedAnswers(`:keyword`)]:(0,$.jsx)(HD,{}),[y.routePaths.sourcesCitations]:(0,$.jsx)(lD,{defaultPage:(0,$.jsx)(UD,{}),publisherPage:(0,$.jsx)(yD,{})}),[y.routePaths.sourceDetailed(`:sourceUuid`)]:(0,$.jsx)(lD,{defaultPage:(0,$.jsx)(WD,{}),publisherPage:(0,$.jsx)(bD,{})}),[y.routePaths.urlDetailed(`:urlId`)]:(0,$.jsx)(lD,{defaultPage:(0,$.jsx)(GD,{}),publisherPage:(0,$.jsx)(xD,{})}),[y.routePaths.recommendations]:(0,$.jsx)(JD,{}),[y.routePaths.learningHub]:(0,$.jsx)(aO,{}),[y.routePaths.brandKnowledge]:(0,$.jsx)(oO,{}),[y.routePaths.agencyOs]:(0,$.jsx)(sO,{}),[y.routePaths.agencyOsCx]:(0,$.jsx)(cO,{}),[y.routePaths.onboarding]:(0,$.jsx)(lO,{}),[y.routePaths.onboardingV2]:(0,$.jsx)(uO,{}),[y.routePaths.onboardingV2InputsBase]:(0,$.jsx)(gO,{}),[y.routePaths.onboardingV2BrandBase]:(0,$.jsx)(dO,{}),[y.routePaths.onboardingV2LandscapeBase]:(0,$.jsx)(fO,{}),[y.routePaths.onboardingV2PrioritiesBase]:(0,$.jsx)(pO,{}),[y.routePaths.onboardingV2BenchBase]:(0,$.jsx)(mO,{}),[y.routePaths.onboardingV2BriefBase]:(0,$.jsx)(hO,{}),[y.routePaths.onboardingQuestionnaireShared]:(0,$.jsx)(_O,{}),[y.routePaths.brandUpdate]:(0,$.jsx)(vO,{}),[y.routePaths.audit]:(0,$.jsx)(yO,{}),[y.routePaths.internal]:(0,$.jsx)(bO,{}),[y.routePaths.internalFeatureFlags]:(0,$.jsx)(bO,{}),[y.routePaths.internalFeatureFlagRegistry]:(0,$.jsx)(Ei,{to:y.routePaths.internalFeatureFlags,preserveQuery:!1}),[y.routePaths.internalFeatureFlagsUserOverrides]:(0,$.jsx)(bO,{}),[y.routePaths.internalFeatureFlagsBrandRules]:(0,$.jsx)(bO,{}),[y.routePaths.internalFeatureFlagsOrgRules]:(0,$.jsx)(bO,{}),[y.routePaths.internalProvisioning]:(0,$.jsx)(bO,{}),[y.routePaths.internalProvisioningNewHire]:(0,$.jsx)(bO,{}),[y.routePaths.internalProvisioningInviteExternal]:(0,$.jsx)(bO,{}),[y.routePaths.internalOperations]:(0,$.jsx)(bO,{}),[y.routePaths.internalOperationsScheduledJobs]:(0,$.jsx)(bO,{}),[y.routePaths.internalOperationsOneOffTasks]:(0,$.jsx)(bO,{}),[y.routePaths.internalOperationsWorkflows]:(0,$.jsx)(bO,{}),[y.routePaths.internalOperationsWorkers]:(0,$.jsx)(bO,{}),[y.routePaths.internalOperationsJobSpecs]:(0,$.jsx)(bO,{}),[y.routePaths.internalOperationsPhaseTrends]:(0,$.jsx)(bO,{}),[y.routePaths.internalCustomerAccess]:(0,$.jsx)(bO,{}),[y.routePaths.internalCustomerAccessBrands]:(0,$.jsx)(bO,{}),[y.routePaths.internalCustomerAccessUsers]:(0,$.jsx)(bO,{}),[y.routePaths.internalCost]:(0,$.jsx)(bO,{}),[y.routePaths.internalBrandAliases]:(0,$.jsx)(bO,{}),[y.routePaths.internalActivity]:(0,$.jsx)(bO,{}),[y.routePaths.internalCatchAll]:(0,$.jsx)(bO,{}),[y.routePaths.internalBrandDetailBase]:(0,$.jsx)(bO,{}),[y.routePaths.internalOrgDetailBase]:(0,$.jsx)(bO,{}),[y.routePaths.internalUserDetailBase]:(0,$.jsx)(bO,{}),[y.routePaths.internalBlog]:(0,$.jsx)(xO,{}),[y.routePaths.internalBlogNodeBase]:(0,$.jsx)(xO,{}),[y.routePaths.help]:(0,$.jsx)(SO,{}),[y.routePaths.adminInsightDebugBase]:(0,$.jsx)(wO,{}),[y.routePaths.legacyResearch]:(0,$.jsx)(Di,{from:y.routePaths.legacyResearch,to:y.routePaths.research}),[y.routePaths.legacyOptimizationSplat]:(0,$.jsx)(Di,{from:y.routePaths.legacyOptimization,to:y.routePaths.optimization})},DO=H(M(B,EO)),OO={...j,element:(0,$.jsx)(CO,{})},kO=e=>e!=null&&(e===y.routePaths.internal||e.startsWith(`${y.routePaths.internal}/`)||e.startsWith(y.routePaths.internalBlog)),AO=e=>e?DO:DO.filter(e=>!kO(e.path)),jO=()=>Q.useReducer(e=>e+1,0),MO=e=>{let[t,n]=(0,Q.useState)(null);return[da((r,i,a)=>{let o=t??r,s=Math.min(o||0,r),c=Math.max(o||0,r),l=i.slice(s,c+1).map(e),u=l.some(e=>!a.has(e)),d=[];
22return l.forEach(e=>{u?(a.has(e)||d.push(e),a.add(e)):(a.delete(e),d.push(e))}),n(u?c:null),d}),n]},NO=()=>{let[e,t]=Q.useState([]);return[e,Q.useCallback(e=>(t(t=>[].concat(ia(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]},PO=(e,t)=>(e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){let r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e),FO=(e,t)=>(0,Q.useImperativeHandle)(e,()=>{let e=t(),{nativeElement:n}=e;return typeof Proxy<`u`?new Proxy(n,{get(t,n){return e[n]?e[n]:Reflect.get(t,n)}}):PO(n,e)}),IO=e=>{let t=Q.useRef(e),[,n]=jO();return[()=>t.current,e=>{t.current=e,n()}]},LO=e=>{let{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}},[`${n}-motion-collapse`]:{overflow:`hidden`,transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}}}},RO=e(la()),zO={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`};function BO(){return BO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BO.apply(this,arguments)}var VO=Q.forwardRef((e,t)=>Q.createElement(nn,BO({},e,{ref:t,icon:zO}))),HO=Q.forwardRef((e,t)=>{let{prefixCls:n,forceRender:r,className:i,style:a,children:o,isActive:s,role:c,classNames:l,styles:u}=e,[d,f]=Q.useState(s||r);return Q.useEffect(()=>{(r||s)&&f(!0)},[r,s]),d?Q.createElement(`div`,{ref:t,className:X(`${n}-panel`,{[`${n}-panel-active`]:s,[`${n}-panel-inactive`]:!s},i),style:a,role:c},Q.createElement(`div`,{className:X(`${n}-body`,l?.body),style:u?.body},o)):null}),UO=Q.forwardRef((e,t)=>{let{showArrow:n=!0,headerClass:r,isActive:i,onItemClick:a,forceRender:o,className:s,classNames:c={},styles:l={},prefixCls:u,collapsible:d,accordion:f,panelKey:p,extra:m,header:h,expandIcon:g,openMotion:_,destroyOnHidden:v,children:y,...b}=e,x=d===`disabled`,S=m!=null&&typeof m!=`boolean`,C={onClick:()=>{a?.(p)},onKeyDown:e=>{(e.key===`Enter`||e.keyCode===Oo.ENTER||e.which===Oo.ENTER)&&a?.(p)},role:f?`tab`:`button`,"aria-expanded":i,"aria-disabled":x,tabIndex:x?-1:0},w=typeof g==`function`?g(e):Q.createElement(`i`,{className:`arrow`}),T=w&&Q.createElement(`div`,xo({className:X(`${u}-expand-icon`,c?.icon),style:l?.icon},[`header`,`icon`].includes(d)?C:{}),w),E=X(`${u}-item`,{[`${u}-item-active`]:i,[`${u}-item-disabled`]:x},s),D={className:X(r,`${u}-header`,{[`${u}-collapsible-${d}`]:!!d},c?.header),style:l?.header,...[`header`,`icon`].includes(d)?{}:C};return Q.createElement(`div`,xo({},b,{ref:t,className:E}),Q.createElement(`div`,D,n&&T,Q.createElement(`span`,xo({className:X(`${u}-title`,c?.title),style:l?.title},d===`header`?C:{}),h),S&&Q.createElement(`div`,{className:`${u}-extra`},m)),Q.createElement(xa,xo({visible:i,leavedClassName:`${u}-panel-hidden`},_,{forceRender:o,removeOnLeave:v}),({className:e,style:t},n)=>Q.createElement(HO,{ref:n,prefixCls:u,className:e,classNames:c,style:t,styles:l,isActive:i,forceRender:o,role:f?`tabpanel`:void 0},y)))});function WO(e,t,n){if(!e||!t)return e||t;let r=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),i={};return r.forEach(r=>{i[r]=n(e[r],t[r])}),i}function GO(e,t){return WO(e,t,(e,t)=>X(e,t))}function KO(e,t){return WO(e,t,(e,t)=>({...e,...t}))}var qO=(e,t)=>{let{prefixCls:n,accordion:r,collapsible:i,destroyOnHidden:a,onItemClick:o,activeKey:s,openMotion:c,expandIcon:l,classNames:u,styles:d}=t;return e.map((e,t)=>{let{children:f,label:p,key:m,collapsible:h,onItemClick:g,destroyOnHidden:_,classNames:v,styles:y,...b}=e,x=String(m??t),S=h??i,C=_??a,w=e=>{S!==`disabled`&&(o(e),g?.(e))},T=!1;return T=r?s[0]===x:s.indexOf(x)>-1,Q.createElement(UO,xo({},b,{classNames:GO(u,v),styles:KO(d,y),prefixCls:n,key:x,panelKey:x,isActive:T,accordion:r,openMotion:c,expandIcon:l,header:p,collapsible:S,onItemClick:w,destroyOnHidden:C}),f)})},JO=(e,t,n)=>{if(!e)return null;let{prefixCls:r,accordion:i,collapsible:a,destroyOnHidden:o,onItemClick:s,activeKey:c,openMotion:l,expandIcon:u,classNames:d,styles:f}=n,p=e.key||String(t),{header:m,headerClass:h,destroyOnHidden:g,collapsible:_,onItemClick:v}=e.props,y=!1;y=i?c[0]===p:c.indexOf(p)>-1;let b=_??a,x={key:p,panelKey:p,header:m,headerClass:h,classNames:d,styles:f,isActive:y,prefixCls:r,destroyOnHidden:g??o,openMotion:l,accordion:i,children:e.props.children,onItemClick:e=>{b!==`disabled`&&(s(e),v?.(e))},expandIcon:u,collapsible:b};
22return typeof e.type==`string`?e:(Object.keys(x).forEach(e=>{x[e]===void 0&&delete x[e]}),Q.cloneElement(e,x))};function YO(e,t,n){return Array.isArray(e)?qO(e,n):Zi(t).map((e,t)=>JO(e,t,n))}function XO(e){let t=e;if(!Array.isArray(t)){let e=typeof t;t=e===`number`||e===`string`?[t]:[]}return t.map(e=>String(e))}var ZO=Object.assign(Q.forwardRef((e,t)=>{let{prefixCls:n=`rc-collapse`,destroyOnHidden:r=!1,style:i,accordion:a,className:o,children:s,collapsible:c,openMotion:l,expandIcon:u,activeKey:d,defaultActiveKey:f,onChange:p,items:m,classNames:h,styles:g}=e,_=X(n,o),[v,y]=wa(f,d),b=XO(v),x=da(e=>{let t=XO(e);y(t),p?.(t)}),S=e=>{x(a?b[0]===e?[]:[e]:b.includes(e)?b.filter(t=>t!==e):[...b,e])};ba(!s,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");let C=YO(m,s,{prefixCls:n,accordion:a,openMotion:l,expandIcon:u,collapsible:c,destroyOnHidden:r,onItemClick:S,activeKey:b,classNames:h,styles:g});return Q.createElement(`div`,xo({ref:t,className:_,style:i,role:a?`tablist`:void 0},ha(e,{aria:!0,data:!0})),C)}),{Panel:UO}),QO=ZO,{Panel:$O}=ZO,ek=Q.forwardRef((e,t)=>{let{getPrefixCls:n}=Q.useContext(ma),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n(`collapse`,r),s=X({[`${o}-no-arrow`]:!a},i);return Q.createElement(QO.Panel,{ref:t,...e,prefixCls:o,className:s})}),tk=e=>{let{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,headerPaddingSM:o,headerPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:l,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:h,lineHeight:g,lineHeightLG:_,marginSM:v,paddingSM:y,paddingLG:b,paddingXS:x,motionDurationSlow:S,fontSizeIcon:C,contentPadding:w,contentPaddingSM:T,contentPaddingLG:E,fontHeight:D,fontHeightLG:O}=e,k=`${Z(l)} ${u} ${d}`;return{[t]:{...Gi(e),backgroundColor:i,border:k,borderRadius:c,"&-rtl":{direction:`rtl`},[`& > ${t}-item`]:{borderBottom:k,"&:first-child":{[`
23            &,
24            & > ${t}-header`]:{borderRadius:`${Z(c)} ${Z(c)} 0 0`}},"&:last-child":{[`
25            &,
26            & > ${t}-header`]:{borderRadius:`0 0 ${Z(c)} ${Z(c)}`}},[`> ${t}-header`]:{position:`relative`,display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,padding:a,color:p,lineHeight:g,cursor:`pointer`,transition:`all ${S}, visibility 0s`,...uo(e),[`> ${t}-title`]:{flex:`auto`},[`${t}-expand-icon`]:{height:D,display:`flex`,alignItems:`center`,marginInlineEnd:v},[`${t}-arrow`]:{...aa(),fontSize:C,transition:`transform ${S}`,svg:{transition:`transform ${S}`}},[`${t}-title`]:{marginInlineEnd:`auto`,"> svg":{display:`inline-block`,verticalAlign:`middle`,marginBlockEnd:`0.2em`}}},[`${t}-collapsible-header`]:{cursor:`default`,[`${t}-title`]:{flex:`none`,cursor:`pointer`},[`${t}-expand-icon`]:{cursor:`pointer`}},[`${t}-collapsible-icon`]:{cursor:`unset`,[`${t}-expand-icon`]:{cursor:`pointer`}}},[`${t}-panel`]:{color:f,backgroundColor:n,borderTop:k,[`& > ${t}-body`]:{padding:w},"&-hidden":{display:`none`}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:T}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:_,[`> ${t}-header`]:{padding:s,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(b).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:E}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${Z(c)} ${Z(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"&, & > .arrow":{color:m,cursor:`not-allowed`}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:v}}}}}}},nk=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:`rotate(180deg)`}}}},rk=e=>{let{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${a}`},[`
27        > ${t}-item:last-child,
28        > ${t}-item:last-child ${t}-header
29      `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:i,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},ik=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:`transparent`,border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:`transparent`,border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},ak=Da(`Collapse`,e=>{let t=na(e,{collapsePanelBorderRadius:e.borderRadiusLG});return[tk(t),rk(t),ik(t),nk(t),LO(t)]},e=>({headerPadding:`${Z(e.paddingSM)} ${Z(e.padding)}`,headerPaddingSM:`${Z(e.paddingXS)} ${Z(e.paddingSM)} ${Z(e.paddingXS)} ${Z(e.paddingXS)}`,headerPaddingLG:`${Z(e.padding)} ${Z(e.paddingLG)} ${Z(e.padding)} ${Z(e.padding)}`,headerBg:e.colorFillAlter,contentPadding:`${Z(e.padding)} ${Z(16)}`,contentPaddingSM:e.paddingSM,contentPaddingLG:e.paddingLG,contentBg:e.colorBg
29Container,borderlessContentPadding:`${Z(e.paddingXXS)} ${Z(16)} ${Z(e.padding)}`,borderlessContentBg:`transparent`})),ok=Object.assign(Q.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,expandIcon:i,className:a,style:o,classNames:s,styles:c}=ea(`collapse`),{prefixCls:l,className:u,rootClassName:d,style:f,bordered:p=!0,ghost:m,size:h,expandIconPlacement:g,expandIconPosition:_,children:v,destroyInactivePanel:y,destroyOnHidden:b,expandIcon:x,classNames:S,styles:C}=e,w=Ca(e=>h??e??`middle`),T=n(`collapse`,l),E=n(),[D,O]=ak(T),k=g??_??`start`,A={...e,size:w,bordered:p,expandIconPlacement:k},j=fa(o),M=fa(f),[N,P]=ho([s,S],[c,j,C,M],{props:A}),F=x??i,I=Q.useCallback((e={})=>{let t=e.collapsible===`header`||e.collapsible===`icon`,n=fo(F)?F(e):Q.createElement(VO,{rotate:e.isActive?r===`rtl`?-90:90:void 0,...t?{"aria-label":e.isActive?`expanded`:`collapsed`}:{"aria-hidden":!0}});return $a(n,e=>({className:X(e.className,`${T}-arrow`)}))},[F,T,r]),L=X(`${T}-icon-placement-${k}`,{[`${T}-borderless`]:!p,[`${T}-rtl`]:r===`rtl`,[`${T}-ghost`]:!!m,[`${T}-large`]:w===`large`,[`${T}-small`]:w===`small`},a,u,d,D,O,N.root),R=Q.useMemo(()=>({...oe(E),motionAppear:!1,leavedClassName:`${T}-panel-hidden`}),[E,T]),z=Q.useMemo(()=>v?Zi(v).map(e=>e):null,[v]);return Q.createElement(QO,{ref:t,openMotion:R,..._a(e,[`rootClassName`]),expandIcon:I,prefixCls:T,className:L,style:P.root,classNames:N,styles:P,destroyOnHidden:b??y},z)}),{Panel:ek}),sk=null,ck={set:e=>{sk=e},clear:()=>{sk=null},read:()=>sk},lk={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`};function uk(){return uk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uk.apply(this,arguments)}var dk=Q.forwardRef((e,t)=>Q.createElement(nn,uk({},e,{ref:t,icon:lk}))),fk={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`};function pk(){return pk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pk.apply(this,arguments)}var mk=Q.forwardRef((e,t)=>Q.createElement(nn,pk({},e,{ref:t,icon:fk}))),hk=(0,Q.createContext)(null),gk=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,Q.useState)(),l=(0,Q.useRef)(void 0),u=Q.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){Ra.cancel(l.current)}return(0,Q.useEffect)(()=>{let e={};if(t){if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`)}return d(),l.current=Ra(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];
29return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},_k={width:0,height:0,left:0,top:0};function vk(e,t,n){return(0,Q.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||_k,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||=t.get(e[r-1]?.key)||_k;let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function yk(e,t){let n=Q.useRef(e),[,r]=Q.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var bk=.1,xk=.01,Sk=20,Ck=.995**Sk;function wk(e,t){let[n,r]=(0,Q.useState)(),[i,a]=(0,Q.useState)(0),[o,s]=(0,Q.useState)(0),[c,l]=(0,Q.useState)(),u=(0,Q.useRef)(void 0);function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<bk)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<xk&&Math.abs(i)<xk){window.clearInterval(u.current);return}r*=Ck,i*=Ck,t(r*Sk,i*Sk)},Sk)}}let m=(0,Q.useRef)(void 0);function h(e){let{deltaX:n,deltaY:r}=e,i,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,Q.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},Q.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function Tk(e){let[t,n]=(0,Q.useState)(0),r=(0,Q.useRef)(0),i=(0,Q.useRef)(void 0);return i.current=e,Oa(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function Ek(e){let t=(0,Q.useRef)([]),[,n]=(0,Q.useState)({}),r=(0,Q.useRef)(typeof e==`function`?e():e),i=Tk(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var Dk={width:0,height:0,left:0,top:0,right:0};function Ok(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,Q.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||Dk;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||Dk)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function kk(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var Ak=`TABS_DQ`;function jk(e){return String(e).replace(/"/g,Ak)}function Mk(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Nk=Q.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:Q.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),Pk=Q.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!Q.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?Q.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null}),{ESC:Fk,TAB:Ik}=Oo;function Lk({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=Q.useRef(!1),o=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>i.current?.focus?(i.current.focus(),a.current=!0,!0):!1,c=e=>{switch(e.keyCode){case Fk:o();break;case Ik:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};Q.useEffect(()=>
29e?(window.addEventListener(`keydown`,c),r&&Ra(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var Rk=(0,Q.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,Q.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=Ua(t,Xa(a));return Q.createElement(Q.Fragment,null,r&&Q.createElement(`div`,{className:`${i}-arrow`}),Q.cloneElement(a,{ref:Aa(a)?o:void 0}))}),zk={adjustX:1,adjustY:1},Bk=[0,0],Vk={topLeft:{points:[`bl`,`tl`],overflow:zk,offset:[0,-4],targetOffset:Bk},top:{points:[`bc`,`tc`],overflow:zk,offset:[0,-4],targetOffset:Bk},topRight:{points:[`br`,`tr`],overflow:zk,offset:[0,-4],targetOffset:Bk},bottomLeft:{points:[`tl`,`bl`],overflow:zk,offset:[0,4],targetOffset:Bk},bottom:{points:[`tc`,`bc`],overflow:zk,offset:[0,4],targetOffset:Bk},bottomRight:{points:[`tr`,`br`],overflow:zk,offset:[0,4],targetOffset:Bk}};function Hk(){return Hk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hk.apply(this,arguments)}var Uk=Q.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:c=Vk,getPopupContainer:l,showAction:u,hideAction:d,overlayClassName:f,overlayStyle:p,visible:m,trigger:h=[`hover`],autoFocus:g,overlay:_,children:v,onVisibleChange:y,disabled:b,...x}=e,[S,C]=Q.useState(),w=`visible`in e?m:S,T=a?`${r}-${a}`:i,E=Q.useRef(null),D=Q.useRef(null),O=Q.useRef(null);Q.useImperativeHandle(t,()=>E.current);let k=e=>{C(e),y?.(e)};Lk({visible:w,triggerRef:O,onVisibleChange:k,autoFocus:g,overlayRef:D});let A=t=>{let{onOverlayClick:n}=e;C(!1),n&&n(t)},j=()=>Q.createElement(Rk,{ref:D,overlay:_,prefixCls:r,arrow:n}),M=()=>typeof _==`function`?j:j(),N=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},P=()=>{let{openClassName:t}=e;return t===void 0?`${r}-open`:t},F=v,I=X(F.props?.className,w&&P()),L={className:I,ref:Ua(O,Xa(F))},R=Aa(F)?Q.cloneElement(F,L):Q.createElement(`span`,{className:I,ref:O},Q.cloneElement(F,{className:I})),z=d;return!z&&h.indexOf(`contextMenu`)!==-1&&(z=[`click`]),Q.createElement(va,Hk({builtinPlacements:c},x,{prefixCls:r,ref:E,popupClassName:X(f,{[`${r}-show-arrow`]:n}),popupStyle:p,action:h,showAction:u,hideAction:z,popupPlacement:s,popupAlign:o,popupMotion:{motionName:T},popupVisible:w,stretch:N()?`minWidth`:``,popup:M(),onOpenChange:k,onPopupClick:A,getPopupContainer:l}),R)}),Wk=Q.createContext(null);function Gk(e,t){return`${e}-${t}`}function Kk(e){return Gk(Q.useContext(Wk),e)}var qk=Q.createContext(null);function Jk(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function Yk({children:e,locked:t,...n}){let r=Q.useContext(qk),i=Ia(()=>Jk(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!$i(e[1],n[1],!0)));return Q.createElement(qk.Provider,{value:i},e)}var Xk=[],Zk=Q.createContext(null);function Qk(){return Q.useContext(Zk)}var $k=Q.createContext(Xk);function eA(e){let t=Q.useContext($k);return Q.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var tA=Q.createContext(null),nA=Q.createContext({}),{LEFT:rA,RIGHT:iA,UP:aA,DOWN:oA,ENTER:sA,ESC:cA,HOME:lA,END:uA}=Oo,dA=[aA,oA,rA,iA];function fA(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===sA)return{inlineTrigger:!0};let c={[aA]:i,[oA]:a},l={[rA]:n?a:i,[iA]:n?i:a,[oA]:o,[sA]:o},u={[aA]:i,[oA]:a,[sA]:o,[cA]:s,[rA]:n?o:s,[iA]:n?s:o};switch({inline:c,horizontal:l,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?``:`Sub`}`]?.[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case o:return{offset:1,sibling:!1};default:return null}}function pA(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function mA(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function hA(e,t){return ca(e,!0).filter(e=>t.has(e))}function gA(e,t,n,r=1){if(!e)return null;let i=hA(e,t),a=i.length,o=i.findIndex(e=>n===e);return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var _A=(e,t)=>
29{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${Gk(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function vA(e,t,n,r,i,a,o,s,c,l){let u=Q.useRef(void 0),d=Q.useRef(void 0);d.current=t;let f=()=>{Ra.cancel(u.current)};return Q.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...dA,sA,cA,lA,uA].includes(m)){let l=a(),h=_A(l,r),{elements:g,key2element:_,element2key:v}=h,y=mA(_.get(t),g),b=v.get(y),x=fA(e,o(b,!0).length===1,n,m);if(!x&&m!==lA&&m!==uA)return;(dA.includes(m)||[lA,uA].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n?.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=Ra(()=>{d.current===r&&t.focus()})}};if([lA,uA].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:pA(y);let n,r=hA(t,g);n=m===lA?r[0]:m===uA?r[r.length-1]:gA(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=Ra(()=>{h=_A(l,r);let e=y.getAttribute(`aria-controls`),t=gA(document.getElementById(e),h.elements);S(t)},5);else if(x.offset<0){let e=o(b,!0),t=e[e.length-2],n=_.get(t);c(t,!1),S(n)}}l?.(p)}}function yA(e){Promise.resolve().then(e)}var bA=`__RC_UTIL_PATH_SPLIT__`,xA=e=>e.join(bA),SA=e=>e.split(bA),CA=`rc-menu-more`;function wA(){let[,e]=Q.useState({}),t=(0,Q.useRef)(new Map),n=(0,Q.useRef)(new Map),[r,i]=Q.useState([]),a=(0,Q.useRef)(0),o=(0,Q.useRef)(!1),s=()=>{o.current||e({})},c=(0,Q.useCallback)((e,r)=>{let i=xA(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;yA(()=>{o===a.current&&s()})},[]),l=(0,Q.useCallback)((e,r)=>{let i=xA(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,Q.useCallback)(e=>{i(e)},[]),d=(0,Q.useCallback)((e,n)=>{let i=SA(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(CA),i},[r]),f=(0,Q.useCallback)((e,t)=>e.filter(e=>e!==void 0).some(e=>d(e,!0).includes(t)),[d]),p=()=>{let e=[...t.current.keys()];return r.length&&e.push(CA),e},m=(0,Q.useCallback)(e=>{let r=`${t.current.get(e)}${bA}`,i=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return Q.useEffect(()=>()=>{o.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:p,getSubPathKeys:m}}function TA(e){let t=Q.useRef(e);t.current=e;let n=Q.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function EA(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=Q.useContext(qk),s={active:i===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),o(e)}),s}function DA(e){let{mode:t,rtl:n,inlineIndent:r}=Q.useContext(qk);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function OA({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e==`function`?r=Q.createElement(e,{...t}):typeof e!=`boolean`&&(r=e),r||n||null)}function kA({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(ba(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function AA(){return AA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AA.apply(this,arguments)}var jA=class extends Q.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=_a(r,[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return ba(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),Q.createElement(us.Item,AA({},t,{title:typeof e==`string`?e:void 0},i,{ref:n}))}},MA=Q.forwardRef((e,t)=>{let{style:n,className:r,eventKey:i,warnKey:a,disabled:o,itemIcon:s,children:c,itemData:l,role:u,onMouseEnter:d,onMouseLeave:f,onClick:p,onKeyDown:m,onFocus:h,...g}=e,_=Kk(i),{prefixCls:v,onItemClick:y,disabled:b,overflowDisabled:x,itemIcon:S,selectedKeys:C,onActive:w}=Q.useContext(qk),{_internalRenderMenuItem:T}=Q.useContext(nA),E=`${v}-item`,D=Q.useRef(null),O=Q.useRef(null),k=b||o,A=Ka(t,O),j=eA(i),M=t=>{let n=l||{key:i||``,label:c,itemIcon:s,extra:e.extra,title:e.title};return{key:i,keyPath:[...j].reverse(),item:D.current,domEvent:t,itemData:l||n}},N=s||S,{active:P,...F}=EA(i,k,d,f),I=C.includes(i),L=DA(j.length),R=e=>{if(k)return;let t=M(e);p?.(kA(t)),y(t)},z=e=>{if(m?.(e),e.which===Oo.ENTER){let t=M(e);p?.(kA(t)),y(t)}},B=e=>{w(i),h?.(e)},V={};e.role===`option`&&(V[`aria-selected`]=I);let H=Q.createElement(jA,AA({ref:D,elementRef:A,role:u===null?`none`:u||`menuitem`,tabIndex:o?null:-1,"data-menu-id":x&&_?null:_},_a(g,[`extra`]),F,V,{component:`li`,"aria-disabled":o,style:{...L,...n},className:X(E,{[`${E}-active`]:P,[`${E}-selected`]:I,[`${E}-disabled`]:k},r),onClick:R,onKeyDown:z,onFocus:B}),c,Q.createElement(OA,{props:{...e,isSelected:I},icon:N}));return T&&(H=T(H,e,{selected:I})),H});function NA(e,t){let{eventKey:n}=e,r=Qk(),i=eA(n);return Q.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:Q.createElement(MA,AA({},e,{ref:t}))}var PA=Q.forwardRef(NA);function FA(){return FA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FA.apply(this,arguments)}var IA=Q.forwardRef(({className:e,children:t,...n},r)=>{let{prefixCls:i,mode:a,rtl:o}=Q.useContext(qk);return Q.createElement(`ul`,FA({className:X(i,o&&`${i}-rtl`,`${i}-sub`,`${i}-${a===`inline`?`inline`:`vertical`}`,e),role:`menu`},n,{"data-menu-list":!0,ref:r}),t)});function LA(e,t){return Zi(e).map((e,n)=>{if(Q.isValidElement(e)){let{key:r}
29=e,i=e.props?.eventKey??r;i??=`tmp_key-${[...t,n].join(`-`)}`;let a={key:i,eventKey:i};return Q.cloneElement(e,a)}return e})}var RA={adjustX:1,adjustY:1},zA={topLeft:{points:[`bl`,`tl`],overflow:RA},topRight:{points:[`br`,`tr`],overflow:RA},bottomLeft:{points:[`tl`,`bl`],overflow:RA},bottomRight:{points:[`tr`,`br`],overflow:RA},leftTop:{points:[`tr`,`tl`],overflow:RA},leftBottom:{points:[`br`,`bl`],overflow:RA},rightTop:{points:[`tl`,`tr`],overflow:RA},rightBottom:{points:[`bl`,`br`],overflow:RA}},BA={topLeft:{points:[`bl`,`tl`],overflow:RA},topRight:{points:[`br`,`tr`],overflow:RA},bottomLeft:{points:[`tl`,`bl`],overflow:RA},bottomRight:{points:[`tr`,`br`],overflow:RA},rightTop:{points:[`tr`,`tl`],overflow:RA},rightBottom:{points:[`br`,`bl`],overflow:RA},leftTop:{points:[`tl`,`tr`],overflow:RA},leftBottom:{points:[`bl`,`br`],overflow:RA}};function VA(e,t,n){if(t)return t;if(n)return n[e]||n.other}var HA={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function UA({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:a,popupOffset:o,disabled:s,mode:c,onVisibleChange:l}){let{getPopupContainer:u,rtl:d,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:m,triggerSubMenuAction:h,forceSubMenuRender:g,rootClassName:_,motion:v,defaultMotions:y}=Q.useContext(qk),[b,x]=Q.useState(!1),S=d?{...BA,...m}:{...zA,...m},C=HA[c],w=VA(c,v,y),T=Q.useRef(w);c!==`inline`&&(T.current=w);let E={...T.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},D=Q.useRef(void 0);return Q.useEffect(()=>(D.current=Ra(()=>{x(t)}),()=>{Ra.cancel(D.current)}),[t]),Q.createElement(va,{prefixCls:e,popupClassName:X(`${e}-popup`,{[`${e}-rtl`]:d},a,_),stretch:c===`horizontal`?`minWidth`:null,getPopupContainer:u,builtinPlacements:S,popupPlacement:C,popupVisible:b,popup:r,popupStyle:i,popupAlign:o&&{offset:o},action:s?[]:[h],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:l,forceRender:g,popupMotion:E,fresh:!0},n)}function WA(){return WA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WA.apply(this,arguments)}function GA({id:e,open:t,keyPath:n,children:r}){let i=`inline`,{prefixCls:a,forceSubMenuRender:o,motion:s,defaultMotions:c,mode:l}=Q.useContext(qk),u=Q.useRef(!1);u.current=l===i;let[d,f]=Q.useState(!u.current),p=u.current?t:!1;Q.useEffect(()=>{u.current&&f(!1)},[l]);let m={...VA(i,s,c)};n.length>1&&(m.motionAppear=!1);let h=m.onVisibleChanged;return m.onVisibleChanged=e=>(!u.current&&!e&&f(!0),h?.(e)),d?null:Q.createElement(Yk,{mode:i,locked:!u.current},Q.createElement(xa,WA({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>Q.createElement(IA,{id:e,className:t,style:n},r)))}function KA(){return KA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KA.apply(this,arguments)}var qA=Q.forwardRef((e,t)=>{let{style:n,className:r,styles:i,classNames:a,title:o,itemTitle:s,eventKey:c,warnKey:l,disabled:u,internalPopupClose:d,children:f,itemIcon:p,expandIcon:m,popupClassName:h,popupOffset:g,popupStyle:_,onClick:v,onMouseEnter:y,onMouseLeave:b,onTitleClick:x,onTitleMouseEnter:S,onTitleMouseLeave:C,popupRender:w,...T}=e,E=Kk(c),{prefixCls:D,mode:O,openKeys:k,disabled:A,overflowDisabled:j,activeKey:M,selectedKeys:N,itemIcon:P,expandIcon:F,onItemClick:I,onOpenChange:L,onActive:R,popupRender:z}=Q.useContext(qk),{_internalRenderSubMenuItem:B}=Q.useContext(nA),{isSubPathKey:V}=Q.useContext(tA),H=eA(),U=`${D}-submenu`,W=A||u,G=Q.useRef(null),ee=Q.useRef(null),te=p??P,ne=m??F,K=k.includes(c),q=!j&&K,re=V(N,c),{active:J,...ie}=EA(c,W,S,C),[ae,oe]=Q.useState(!1),se=e=>{W||oe(e)},ce=e=>{se(!0),y?.({key:c,domEvent:e})},le=e=>{se(!1),b?.({key:c,domEvent:e})},ue=Q.useMemo(()=>J||(O===`inline`?!1:ae||V([M],c)),[O,J,M,ae,c,V]),de=DA(H.length),fe=e=>{W||(x?.({key:c,domEvent:e}),O===`inline`&&L(c,!K))},pe=TA(e=>{v?.(kA(e)),I(e)}),me=e=>{O!==`inline`&&L(c,e)},he=()=>{R(c)},ge=E&&`${E}-popup`,_e=Q.useMemo(()=>Q.createElement(OA,{icon:O===`horizontal`?void 0:ne,props:{...e,isOpen:q,isSubMenu:!0}},Q.createElement(`i`,{className:`${U}-arrow`})),[O,ne,e,q,U]),ve=Q.createElement(`div`,KA({role:`menuitem`,style:de,className:`${U}-title`,tabIndex:W?null:-1,ref:G,title:s??(typeof o==`string`?o:null),"data-menu-id":j&&E?null:E,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":ge,"aria-disabled":W,onClick:fe,onFocus:he},ie),o,_e),ye=Q.useRef(O);ye.current=O!==`inline`&&H.length>1?`vertical`:O;let be=ye.current,xe=Q.useMemo(()=>{let t=Q.createElement(Yk,{classNames:a,styles:i,mode:be===`horizontal`?`vertical`:be},Q.createElement(IA,{id:ge,ref:ee},f)),n=w||z;return n?n(t,{item:e,keys:H}):t},[w,z,H,ge,f,e,be]);if(!j){let e=ye.current;ve=Q.createElement(UA,{mode:e,prefixCls:U,visible:!d&&q&&O!==`inline`,popupClassName:h,popupOffset:g,popupStyle:_,popup:xe,disabled:W,onVisibleChange:me},ve)}
29let Se=Q.createElement(us.Item,KA({ref:t,role:`none`},T,{component:`li`,style:n,className:X(U,`${U}-${O}`,r,{[`${U}-open`]:q,[`${U}-active`]:ue,[`${U}-selected`]:re,[`${U}-disabled`]:W}),onMouseEnter:ce,onMouseLeave:le}),ve,!j&&Q.createElement(GA,{id:ge,open:q,keyPath:H},f));return B&&(Se=B(Se,e,{selected:re,active:ue,open:q,disabled:W})),Q.createElement(Yk,{classNames:a,styles:i,onItemClick:pe,mode:O===`horizontal`?`vertical`:O,itemIcon:te,expandIcon:ne},Se)}),JA=Q.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=eA(n),a=LA(r,i),o=Qk();Q.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:Q.createElement(qA,KA({ref:t},e),a),Q.createElement($k.Provider,{value:i},s)});function YA({className:e,style:t}){let{prefixCls:n}=Q.useContext(qk);return Qk()?null:Q.createElement(`li`,{role:`separator`,className:X(`${n}-item-divider`,e),style:t})}function XA(){return XA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XA.apply(this,arguments)}var ZA=Q.forwardRef((e,t)=>{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=Q.useContext(qk),u=`${s}-item-group`;return Q.createElement(`li`,XA({ref:t,role:`presentation`},o,{onClick:e=>e.stopPropagation(),className:X(u,n)}),Q.createElement(`div`,{role:`presentation`,className:X(`${u}-title`,c?.listTitle),style:l?.listTitle,title:typeof r==`string`?r:void 0},r),Q.createElement(`ul`,{role:`group`,className:X(`${u}-list`,c?.list),style:l?.list},a))}),QA=Q.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=LA(r,eA(n));return Qk()?i:Q.createElement(ZA,XA({ref:t},_a(e,[`warnKey`])),i)});function $A(){return $A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$A.apply(this,arguments)}function ej(e,t,n){let{item:r,group:i,submenu:a,divider:o}=t;return(e||[]).map((e,s)=>{if(e&&typeof e==`object`){let{label:c,children:l,key:u,type:d,extra:f,...p}=e,m=u??`tmp-${s}`;if(l||d===`group`){if(d===`group`)return Q.createElement(i,$A({key:m},p,{title:c}
29),ej(l,t,n));let{title:e,...r}=p;return Q.createElement(a,$A({key:m},r,{title:c,itemTitle:typeof e==`string`?e:void 0}),ej(l,t,n))}if(d===`divider`)return Q.createElement(o,$A({key:m},p));let h=!!f||f===0;return Q.createElement(r,$A({key:m},p,{extra:f,itemData:{...e,key:m}}),h?Q.createElement(Q.Fragment,null,Q.createElement(`span`,{className:`${n}-item-label`},c),Q.createElement(`span`,{className:`${n}-item-extra`},f)):c)}return null}).filter(e=>e)}function tj(e,t,n,r,i){let a=e,o={divider:YA,item:PA,group:QA,submenu:JA,...r};return t&&(a=ej(t,o,i)),LA(a,n)}function nj(){return nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nj.apply(this,arguments)}var rj=[],ij=Q.forwardRef((e,t)=>{let{prefixCls:n=`rc-menu`,rootClassName:r,style:i,className:a,styles:o,classNames:s,tabIndex:c=0,items:l,children:u,direction:d,id:f,mode:p=`vertical`,inlineCollapsed:m,disabled:h,disabledOverflow:g,subMenuOpenDelay:_=.1,subMenuCloseDelay:v=.1,forceSubMenuRender:y,defaultOpenKeys:b,openKeys:x,activeKey:S,defaultActiveFirst:C,selectable:w=!0,multiple:T=!1,defaultSelectedKeys:E,selectedKeys:D,onSelect:O,onDeselect:k,inlineIndent:A=24,motion:j,defaultMotions:M,triggerSubMenuAction:N=`hover`,builtinPlacements:P,itemIcon:F,expandIcon:I,overflowedIndicator:L=`...`,overflowedIndicatorPopupClassName:R,getPopupContainer:z,onClick:B,onOpenChange:V,onKeyDown:H,openAnimation:U,openTransitionName:W,_internalRenderMenuItem:G,_internalRenderSubMenuItem:ee,_internalComponents:te,popupRender:ne,...K}=e,[q,re]=Q.useMemo(()=>[tj(u,l,rj,te,n),tj(u,l,rj,{},n)],[u,l,te]),[J,ie]=Q.useState(!1),ae=Q.useRef(null),oe=Ja(),se=f??`rc-menu-uuid-${oe}`,ce=d===`rtl`,[le,ue]=wa(b,x),de=le||rj,fe=(e,t=!1)=>{function n(){ue(e),V?.(e)}t?(0,RO.flushSync)(n):n()},[pe,me]=Q.useState(de),he=Q.useRef(!1),[ge,_e]=Q.useMemo(()=>(p===`inline`||p===`vertical`)&&m?[`vertical`,m]:[p,!1],[p,m]),ve=ge===`inline`,[ye,be]=Q.useState(ge),[xe,Se]=Q.useState(_e);Q.useEffect(()=>{be(ge),Se(_e),he.current&&(ve?ue(pe):fe(rj))},[ge,_e]);let[Ce,we]=Q.useState(0),Te=Ce>=q.length-1||ye!==`horizontal`||g;Q.useEffect(()=>{ve&&me(de)},[de]),Q.useEffect(()=>(he.current=!0,()=>{he.current=!1}),[]);let{registerPath:Ee,unregisterPath:De,refreshOverflowKeys:Oe,isSubPathKey:ke,getKeyPath:Ae,getKeys:je,getSubPathKeys:Me}=wA(),Ne=Q.useMemo(()=>({registerPath:Ee,unregisterPath:De}),[Ee,De]),Pe=Q.useMemo(()=>({isSubPathKey:ke}),[ke]);Q.useEffect(()=>{Oe(Te?rj:q.slice(Ce+1).map(e=>e.key))},[Ce,Te]);let[Fe,Ie]=wa(S||C&&q[0]?.key,S),Le=TA(e=>{Ie(e)}),Re=TA(()=>{Ie(void 0)});(0,Q.useImperativeHandle)(t,()=>({list:ae.current,focus:e=>{let t=je(),{elements:n,key2element:r,element2key:i}=_A(t,se),a=hA(ae.current,n),o;o=Fe&&t.includes(Fe)?Fe:a[0]?i.get(a[0]):q.find(e=>!e.props.disabled)?.key;let s=r.get(o);o&&s&&s?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=_A(je(),se);return t.get(e)||null}}));let[ze,Be]=wa(E||[],D),Ve=Q.useMemo(()=>Array.isArray(ze)?ze:ze==null?rj:[ze],[ze]),He=e=>{if(w){let{key:t}=e,n=Ve.includes(t),r;r=T?n?Ve.filter(e=>e!==t):[...Ve,t]:[t],Be(r);let i={...e,selectedKeys:r};n?k?.(i):O?.(i)}!T&&de.length&&ye!==`inline`&&fe(rj)},Ue=TA(e=>{B?.(kA(e)),He(e)}),We=TA((e,t)=>{let n=de.filter(t=>t!==e);if(t)n.push(e);else if(ye!==`inline`){let t=Me(e);n=n.filter(e=>!t.has(e))}$i(de,n,!0)||fe(n,!0)}),Ge=vA(ye,Fe,ce,se,ae,je,Ae,Ie,(e,t)=>{let n=t??!de.includes(e);We(e,n)},H);Q.useEffect(()=>{ie(!0)},[]);let Ke=Q.useMemo(()=>({_internalRenderMenuItem:G,_internalRenderSubMenuItem:ee}),[G,ee]),qe=ye!==`horizontal`||g?q:q.map((e,t)=>Q.createElement(Yk,{key:e.key,overflowDisabled:t>Ce,classNames:s,styles:o},e)),Je=Q.createElement(us,nj({id:f,ref:ae,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:PA,className:X(n,`${n}-root`,`${n}-${ye}`,a,{[`${n}-inline-collapsed`]:xe,[`${n}-rtl`]:ce},r),dir:d,style:i,role:`menu`,tabIndex:c,data:qe,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?q.slice(-t):null;return Q.createElement(JA,{eventKey:CA,title:L,disabled:Te,internalPopupClose:t===0,popupClassName:R},n)}
29,maxCount:ye!==`horizontal`||g?us.INVALIDATE:us.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{we(e)},onKeyDown:Ge},K));return Q.createElement(nA.Provider,{value:Ke},Q.createElement(Wk.Provider,{value:se},Q.createElement(Yk,{prefixCls:n,rootClassName:r,classNames:s,styles:o,mode:ye,openKeys:de,rtl:ce,disabled:h,motion:J?j:null,defaultMotions:J?M:null,activeKey:Fe,onActive:Le,onInactive:Re,selectedKeys:Ve,inlineIndent:A,subMenuOpenDelay:_,subMenuCloseDelay:v,forceSubMenuRender:y,builtinPlacements:P,triggerSubMenuAction:N,getPopupContainer:z,itemIcon:F,expandIcon:I,onItemClick:Ue,onOpenChange:We,popupRender:ne},Q.createElement(tA.Provider,{value:Pe},Je),Q.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},Q.createElement(Zk.Provider,{value:Ne},re)))))});ij.Item=PA,ij.SubMenu=JA,ij.ItemGroup=QA,ij.Divider=YA;function aj(){return aj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aj.apply(this,arguments)}var oj=Q.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:f,removeAriaLabel:p,onTabClick:m,getPopupContainer:h,popupClassName:g,popupStyle:_,classNames:v,styles:y}=e,[b,x]=(0,Q.useState)(!1),[S,C]=(0,Q.useState)(null),{icon:w=`More`,popupRender:T}=s,E=`${r}-more-popup`,D=`${n}-dropdown`,O=S===null?null:`${E}-${S}`,k=a?.dropdownAriaLabel;function A(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let j=Q.createElement(ij,{onClick:({key:e,domEvent:t})=>{m(e,t),x(!1)},prefixCls:`${D}-menu`,id:E,tabIndex:-1,role:`listbox`,"aria-activedescendant":O,selectedKeys:[S],"aria-label":k===void 0?`expanded dropdown`:k},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=Mk(t,i,u,n);return Q.createElement(PA,{key:a,id:`${E}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},Q.createElement(`span`,null,o),s&&Q.createElement(`button`,{type:`button`,"aria-label":p||`remove`,tabIndex:0,className:X(`${D}-menu-item-remove`,v?.remove),style:y?.remove,onClick:e=>{e.stopPropagation(),A(e,a)}},i||u.removeIcon||`×`))})),M=T?T(j,{restTabs:i,onClose:()=>x(!1)}):j;function N(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===S)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){C(i.key);return}}}function P(e){let{which:t}=e;if(!b){[Oo.DOWN,Oo.SPACE,Oo.ENTER].includes(t)&&(x(!0),e.preventDefault());return}switch(t){case Oo.UP:N(-1),e.preventDefault();break;case Oo.DOWN:N(1),e.preventDefault();break;case Oo.ESC:x(!1);break;case Oo.SPACE:case Oo.ENTER:S!==null&&m(S,e)}}(0,Q.useEffect)(()=>{let e=document.getElementById(O);e?.scrollIntoView&&e.scrollIntoView(!1)},[O,S]),(0,Q.useEffect)(()=>{b||C(null)},[b]);let F={marginInlineStart:d};i.length||(F.visibility=`hidden`,F.order=1);let I=X(g,{[`${D}-rtl`]:f}),L=o?null:Q.createElement(Uk,aj({prefixCls:D,overlay:M,visible:i.length?b:!1,onVisibleChange:x,overlayClassName:I,overlayStyle:_,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),Q.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:F,"aria-haspopup":`listbox`,"aria-controls":E,id:`${r}-more`,"aria-expanded":b,onKeyDown:P},w));return Q.createElement(`div`,{className:X(`${n}-nav-operations`,l),style:c,ref:t},L,Q.createElement(Nk,{prefixCls:n,locale:a,editable:u}))}),sj=Q.memo(oj,(e,t)=>t.tabMoving),cj=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:m,onFocus:h,onBlur:g,onKeyDown:_,onMouseDown:v,onMouseUp:y,styles:b,classNames:x,tabCount:S,currentPosition:C}=e,w=`${t}-tab`,T=Mk(u,c,p,s);function E(e){s||m(e)}function D(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let O=Q.useMemo(()=>l&&typeof o==`string`?Q.createElement(`span`,null,o):o,[o,l]),k=Q.useRef(null);Q.useEffect(()=>{i&&k.current&&k.current.focus()},[i]);let A=Q.createElement(`div`,{key:a,"data-node-key":jk(a),className:X(w,x?.item,{[`${w}-with-remove`]:T,[`${w}-active`]:r,[`${w}-disabled`]:s,[`${w}-focus`]:i}),style:b?.item,onClick:E},Q.createElement(`div`,{ref:k,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${w}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),E(e)},onKeyDown:_,onMouseDown:v,onMouseUp:y,onFocus:h,onBlur:g},i&&Q.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}
29},`Tab ${C} of ${S}`),l&&Q.createElement(`span`,{className:`${w}-icon`},l),o&&O),T&&Q.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:X(`${w}-remove`,x?.remove),style:b?.remove,onClick:e=>{e.stopPropagation(),D(e)}},c||p.removeIcon||`×`));return d?d(A):A};function lj(){return lj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lj.apply(this,arguments)}var uj=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},dj=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},fj=(e,t)=>e[+!t],pj=Q.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:s,extra:c,editable:l,locale:u,tabPosition:d,tabBarGutter:f,children:p,onTabClick:m,onTabScroll:h,indicator:g,classNames:_,styles:v}=e,{prefixCls:y,tabs:b}=Q.useContext(hk),x=(0,Q.useRef)(null),S=(0,Q.useRef)(null),C=(0,Q.useRef)(null),w=(0,Q.useRef)(null),T=(0,Q.useRef)(null),E=(0,Q.useRef)(null),D=(0,Q.useRef)(null),O=d===`top`||d===`bottom`,[k,A]=yk(0,(e,t)=>{O&&h&&h({direction:e>t?`left`:`right`})}),[j,M]=yk(0,(e,t)=>{!O&&h&&h({direction:e>t?`top`:`bottom`})}),[N,P]=(0,Q.useState)([0,0]),[F,I]=(0,Q.useState)([0,0]),[L,R]=(0,Q.useState)([0,0]),[z,B]=(0,Q.useState)([0,0]),[V,H]=Ek(new Map),U=vk(b,V,F[0]),W=fj(N,O),G=fj(F,O),ee=fj(L,O),te=fj(z,O),ne=Math.floor(W)<Math.floor(G+ee),K=ne?W-te:W-ee,q=`${y}-nav-operations-hidden`,re=0,J=0;O&&s?(re=0,J=Math.max(0,G-K)):(re=Math.min(0,K-G),J=0);function ie(e){return e<re?re:e>J?J:e}let ae=(0,Q.useRef)(null),[oe,se]=(0,Q.useState)();function ce(){se(Date.now())}function le(){ae.current&&clearTimeout(ae.current)}wk(w,(e,t)=>{function n(e,t){e(e=>ie(e+t))}return ne?(O?n(A,e):n(M,t),le(),ce(),!0):!1}),(0,Q.useEffect)(()=>(le(),oe&&(ae.current=setTimeout(()=>{se(0)},100)),le),[oe]);let[ue,de]=Ok(U,K,O?k:j,G,ee,te,{...e,tabs:b}),fe=da((e=o)=>{let t=U.get(e)||{width:0,height:0,left:0,right:0,top:0};if(O){let e=k;s?t.right<k?e=t.right:t.right+t.width>k+K&&(e=t.right+t.width-K):t.left<-k?e=-t.left:t.left+t.width>-k+K&&(e=-(t.left+t.width-K)),M(0),A(ie(e))}else{let e=j;t.top<-j?e=-t.top:t.top+t.height>-j+K&&(e=-(t.top+t.height-K)),A(0),M(ie(e))}}),[pe,me]=(0,Q.useState)(),[he,ge]=(0,Q.useState)(!1),_e=b.filter(e=>!e.disabled).map(e=>e.key),ve=e=>{let t=_e.indexOf(pe||o),n=_e.length,r=(t+e+n)%n,i=_e[r];me(i)},ye=(e,t)=>{let n=_e.indexOf(e),r=b.find(t=>t.key===e);Mk(r?.closable,r?.closeIcon,l,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===_e.length-1?ve(-1):ve(1))},be=(e,t)=>{ge(!0),t.button===1&&ye(e,t)},xe=e=>{let{code:t}=e,n=s&&O,r=_e[0],i=_e[_e.length-1];switch(t){case`ArrowLeft`:O&&ve(n?1:-1);break;case`ArrowRight`:O&&ve(n?-1:1);break;case`ArrowUp`:e.preventDefault(),O||ve(-1);break;case`ArrowDown`:e.preventDefault(),O||ve(1);break;case`Home`:e.preventDefault(),me(r);break;case`End`:e.preventDefault(),me(i);break;case`Enter`:case`Space`:e.preventDefault(),m(pe??o,e);break;case`Backspace`:case`Delete`:ye(pe,e)}},Se={};O?Se.marginInlineStart=f:Se.marginTop=f;let Ce=b.map((e,t)=>{let{key:n}=e;return Q.createElement(cj,{id:i,prefixCls:y,key:n,tab:e,classNames:{item:_?.item,remove:_?.remove},styles:{item:t===0?v?.item:{...Se,...v?.item},remove:v?.remove},closable:e.closable,editable:l,active:n===o,focus:n===pe,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,tabCount:_e.length,currentPosition:t+1,onClick:e=>{m(n,e)},onKeyDown:xe,onFocus:()=>{he||me(n),fe(n),ce(),w.current&&(s||(w.current.scrollLeft=0),w.current.scrollTop=0)},onBlur:()=>{me(void 0)},onMouseDown:e=>be(n,e),onMouseUp:()=>{ge(!1)}})}),we=()=>H(()=>{let e=new Map,t=T.current?.getBoundingClientRect();return b.forEach(({key:n})=>{let r=T.current?.querySelector(`[data-node-key="${jk(n)}"]`);if(r){let[i,a,o,s]=uj(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,Q.useEffect)(()=>{we()},[b.map(e=>e.key).join(`_`)]);let Te=Tk(()=>{let e=dj(x),t=dj(S),n=dj(C);P([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=dj(D);R(r);let i=dj(E);B(i);let a=dj(T);I([a[0]-r[0],a[1]-r[1]]),we()}),Ee=b.slice(0,ue),De=b.slice(de+1),Oe=[...Ee,...De],ke=U.get(o),{style:Ae}=gk({activeTabOffset:ke,horizontal:O,indicator:g,rtl:s});(0,Q.useEffect)(()=>{fe()},[o,re,J,kk(ke),kk(U),O]),(0,Q.useEffect)(()=>{Te()},[s]);let je=!!Oe.length,Me=`${y}-nav-wrap`,Ne,Pe,Fe,Ie;return O?s?(Pe=k>0,Ne=k!==J):(Ne=k<0,Pe=k!==re):(Fe=j<0,Ie=j!==re),Q.createElement(Pa,{onResize:Te},Q.createElement(`div`,{ref:Ka(t,x),role:`tablist`,"aria-orientation":O?`horizontal`:`vertical`,className:X(`${y}-nav`,n,_?.header),style:{...v?.header,...r},onKeyDown:()=>{ce()}},Q.createElement(Pk,{ref:S,position:`left`,extra:c,prefixCls:y}),Q.createElement(Pa,{onResize:Te},Q.createElement(`div`,{className:X(Me,{[`${Me}-ping-left`]:Ne,[`${Me}-ping-right`]:Pe,[`${Me}-ping-top`]:Fe,[`${Me}-ping-bottom`]:Ie}),ref:w},Q.createElement(Pa,{onResize:Te},Q.createElement(`div`,{ref:T,className:`${y}-nav-list`,style:{transform:`translate(${k}px, ${j}px)`,transition:oe?`none`:void 0}},Ce,Q.createElement(Nk,{ref:D,prefixCls:y,locale:u,editable:l,style:{...Ce.length===0?void 0:Se,visibility:je?`hidden`:null}}),Q.createElement(`div`,{className:X(`${y}-ink-bar`,_?.indicator,{[`${y}-ink-bar-animated`]:a.inkBar}),style:{...Ae,...v?.indicator}}))))),Q.createElement(sj,lj({},e,{removeAriaLabel:u?.removeAriaLabel,ref:E,prefixCls:y,tabs:Oe,className:!je&&q,popupStyle:v?.popup,tabMoving:!!oe})),Q.createElement(Pk,{ref:C,position:`right`,extra:c,prefixCls:y})))}),mj=({renderTabBar:e,...t})=>e?e(t,pj):Q.createElement(pj,t),hj=Q.forwardRef((e,t)=>
29{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=Q.Children.count(c)>0;return Q.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:X(n,o&&`${n}-active`,r),ref:t},c)});function gj(){return gj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gj.apply(this,arguments)}var _j=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,bodyStyle:o,bodyClassName:s,contentStyle:c,contentClassName:l}=e,{prefixCls:u,tabs:d}=Q.useContext(hk),f=r.tabPane,p=`${u}-body`,m=`${u}-content`;return Q.createElement(`div`,{className:X(`${p}-holder`)},Q.createElement(`div`,{className:X(p,`${p}-${i}`,{[`${p}-animated`]:f},s),style:o},d.map(e=>{let{key:i,forceRender:o,style:s,className:u,destroyOnHidden:d,...p}=e,h=i===n;return Q.createElement(xa,gj({key:i,visible:h,forceRender:o,removeOnLeave:!!(a??d),leavedClassName:`${m}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>Q.createElement(hj,gj({},p,{prefixCls:m,id:t,tabKey:i,animated:f,active:h,style:{...c,...s,...e},className:X(l,u,n),ref:r})))})))};function vj(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function yj(){return yj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yj.apply(this,arguments)}var bj=0,xj=Q.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:m,locale:h,more:g,destroyOnHidden:_,renderTabBar:v,onChange:y,onTabClick:b,onTabScroll:x,getPopupContainer:S,popupClassName:C,indicator:w,classNames:T,styles:E,...D}=e,O=Q.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),k=o===`rtl`,A=vj(u),[j,M]=(0,Q.useState)(!1);(0,Q.useEffect)(()=>{M(Xi())},[]);let[N,P]=wa(c??O[0]?.key,s),[F,I]=(0,Q.useState)(()=>O.findIndex(e=>e.key===N));(0,Q.useEffect)(()=>{let e=O.findIndex(e=>e.key===N);e===-1&&(e=Math.max(0,Math.min(F,O.length-1)),P(O[e]?.key)),I(e)},[O.map(e=>e.key).join(`_`),N,F]);let[L,R]=wa(null,n);(0,Q.useEffect)(()=>{n||(R(`rc-tabs-${bj}`),bj+=1)},[]);function z(e,t){b?.(e,t);let n=e!==N;P(e),n&&y?.(e)}let B={id:L,activeKey:N,animated:A,tabPosition:d,rtl:k,mobile:j},V={...B,editable:l,locale:h,more:g,tabBarGutter:f,onTabClick:z,onTabScroll:x,extra:m,style:p,getPopupContainer:S,popupClassName:X(C,T?.popup),indicator:w,styles:E,classNames:T},H=Q.useMemo(()=>({tabs:O,prefixCls:r}),[O,r]);return Q.createElement(hk.Provider,{value:H},Q.createElement(`div`,yj({ref:t,id:n,className:X(r,`${r}-${d}`,{[`${r}-mobile`]:j,[`${r}-editable`]:l,[`${r}-rtl`]:k},i)},D),Q.createElement(mj,yj({},V,{renderTabBar:v})),Q.createElement(_j,yj({destroyOnHidden:_},B,{bodyStyle:E?.body,bodyClassName:T?.body,contentStyle:E?.content,contentClassName:T?.content,animated:A}))))}),Sj={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Cj(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...Ki(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...Sj,motionName:ye(e,`switch`)}),n}function wj(e){return e.filter(e=>e)}function Tj(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):wj(Zi(t).map(e=>{if(Q.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var Ej=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0}
vendor: 14,404 bytes, lines 29-44
29,"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[ls(e,`slide-up`),ls(e,`slide-down`)]]},Dj=e=>{let{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:`${Z(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ui(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:`none`},[`${t}-ink-bar`]:{visibility:`hidden`}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Z(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Z(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadiusLG)} 0 0 ${Z(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 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Oj=e=>{let{antCls:t,componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${n}-dropdown`]:{...Gi(e),position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:`block`,"&-hidden":{display:`none`},[`&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomLeft,
30        &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomLeft,
31        &${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottom,
32        &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottom,
33        &${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomRight,
34        &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Bo},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
35        &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft,
36        &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-top,
37        &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-top,
38        &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight,
39        &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Fo},[`&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomLeft,
40        &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottom,
41        &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:As},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft,
42        &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-top,
43        &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Io},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Z(i)} 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":{...Wa,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${Z(e.paddingXXS)} ${Z(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.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:0,cursor:`pointer`,"&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:`transparent`,cursor:`not-allowed`}}}}}}},kj=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=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:`${Z(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).join(`, `)}},[`${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,
44        > 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}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:c(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`,`top`].map(e=>`${e} ${s}`).join(`, `)}},[`${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}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:Z(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{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}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Aj=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadius)} ${Z(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Z(e.borderRadius)} ${Z(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Z(e.borderRadius)} ${Z(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadius)} 0 0 ${Z(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},jj=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{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:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM},[`${l}-icon > svg`]:{display:`inline-block`,verticalAlign:`middle`,marginBlockEnd:`0.2em`}},"&-remove":{flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...uo(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:Ui(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},Mj=e=>{let{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:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-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`}}}}},Nj=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...Gi(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`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:`transparent`,border:`${Z(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Z(e.borderRadiusLG)} ${Z(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},...uo(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...jj(e),[`${t}-body`]:{position:`relative`,width:`100%`},[`${t}-body-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-content`]:{...uo(e),"&-hidden":{display:`none`}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:`auto`}}}}}},Pj=Da(`Tabs`,e=>{let t=na(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Z(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Z(e.horizontalItemGutter)}`});return[Aj(t),Mj(t),kj(t),Oj(t),Dj(t),Nj(t),Ej(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}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}}),Fj=()=>null,Ij=Q.forwardRef((e,t)=>
44{let{type:n,className:r,rootClassName:i,size:a,onEdit:o,hideAdd:s,centered:c,addIcon:l,removeIcon:u,moreIcon:d,more:f,popupClassName:p,children:m,items:h,animated:g,style:_,indicatorSize:v,indicator:y,classNames:b,styles:x,destroyInactiveTabPane:S,destroyOnHidden:C,tabPlacement:w,tabPosition:T,...E}=e,{prefixCls:D}=E,{getPrefixCls:O,direction:k,getPopupContainer:A,className:j,style:M,classNames:N,styles:P}=ea(`tabs`),{tabs:F}=Q.useContext(ma),I=O(`tabs`,D),L=no(I),[R,z]=Pj(I,L),B=Q.useRef(null);Q.useImperativeHandle(t,()=>({nativeElement:B.current}));let V;n===`editable-card`&&(V={onEdit:(e,{key:t,event:n})=>{o?.(e===`add`?n:t,e)},removeIcon:u??F?.removeIcon??Q.createElement(_t,null),addIcon:(l??F?.addIcon)||Q.createElement(mk,null),showAdd:s!==!0});let H=O(),U=Ca(a),W=Tj(h,m),G=Cj(I,g),ee={align:y?.align??F?.indicator?.align,size:y?.size??v??F?.indicator?.size??F?.indicatorSize},te=Q.useMemo(()=>{let e=w??T??void 0,t=k===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[w,T,k]),ne={...e,size:U,tabPlacement:te,items:W},K=fa(M),q=fa(_),[re,J]=ho([N,b],[P,K,x,q],{props:ne},{popup:{_default:`root`}});return Q.createElement(xj,{ref:B,direction:k,getPopupContainer:A,...E,items:W,className:X({[`${I}-large`]:U===`large`,[`${I}-small`]:U===`small`,[`${I}-card`]:[`card`,`editable-card`].includes(n),[`${I}-editable-card`]:n===`editable-card`,[`${I}-centered`]:c},j,r,i,re.root,R,z,L),classNames:{...re,popup:X(p,R,z,L,re.popup?.root)},styles:{...J,popup:J.popup?.root},style:J.root,editable:V,more:{icon:F?.more?.icon??F?.moreIcon??d??Q.createElement(dk,null),transitionName:`${H}-slide-up`,...f},prefixCls:I,animated:G,indicator:ee,destroyOnHidden:C??S,tabPosition:te})});Ij.TabPane=Fj;var Lj=({css:e,componentName:t,eventProperties:n,trackEvent:r=!0,eventName:i,variant:a=`underline`,...o})=>{let s=t??`tabs`,c=e=>{if(r){let t=o?.items?.find(t=>`${t?.key}`==`${e}`),r=T.nodeToText(t?.label)??(e?`${e}`:`unknownTab`);io.logEvent(i??Ha.tabClick,{...n??{},componentName:s,targetText:r,targetKey:e})}o?.onChange?.(e)};return(0,$.jsx)(zj,{...o,onChange:c,$variant:a,$css:e})},Rj=r`
45  .ant-tabs-nav {
46    margin: 0px;
47  }
48
49  .ant-tabs-nav::before,
50  .ant-tabs-ink-bar {
51    display: none;
52  }
53
54  /* The track hugs its tabs rather than running the card's full width. */
55  .ant-tabs-nav-wrap {
56    flex: 0 1 auto;
57  }
58
59  /* The outline is an inset ring rather than a border, so an end tab's own
60     outline lands exactly on it instead of a gap and a second line inside. */
61  .ant-tabs-nav-list {
62    align-items: stretch;
63    height: 48px;
64    border-radius: var(--space-12);
65    background: var(--teal-25);
66    box-shadow: inset 0 0 0 1px var(--grey-250);
67  }
68
69  /* A transparent border on every tab, so the open one's outline never
70     changes its width. */
71  .ant-tabs-tab {
72    height: 48px;
73    font-size: var(--text-large-size);
74    line-height: 1.25;
75    padding: var(--space-12) var(--space-20);
76    border: 1px solid transparent;
77    border-radius: var(--space-12);
78    background: transparent;
79    transition:
80      background 0.2s ease,
81      border-color 0.2s ease;
82  }
83
84  .ant-tabs-tab + .ant-tabs-tab {
85    margin-left: var(--space-12);
86  }
87
88  .ant-tabs-tab-btn {
89    font-weight: 500;
90    color: var(--grey-600);
91  }
92
93  .ant-tabs-tab-active {
94    background: var(--white);
95    border-color: var(--grey-250);
96  }
97
98  .ant-tabs-tab-active .ant-tabs-tab-btn {
99    color: var(--teal-600) !important;
100  }
101`,zj=n(Ij)`
102  .ant-tabs-nav {
103    margin-bottom: 0px !important;
104    :hover {
105      &:not([aria-selected="true"]) {
106        color: var(--grey-400) !important;
107      }
108    }
109  }
110
111  [aria-selected="true"] {
112    color: var(--teal-400) !important;
113    font-weight: 600 !important;
114  }
115
116  .ant-tabs-ink-bar.ant-tabs-ink-bar-animated {
117    background: var(--teal-400) !important;
118  }
119
120  ${({$variant:e})=>e===`segmented`&&Rj}
121
122  ${({$css:e})=>e&&r`
123      ${e}
124    `}
125`,Bj=e=>{if(!e||!(0,Q.isValidElement)(e))return null;let t=e.type;if(typeof t==`string`)return t;let n=t;return n.displayName??n.name??null},Vj=(0,Q.forwardRef)(({icon:e,size:t,type:n,tone:r,css:i,componentName:a,disabled:o,...s},c)=>{let l=t??`middle`,u=r??`secondary`,d=n??`dashed`,f=o??!1;return(0,$.jsx)(Hj,{ref:c,icon:e,size:l,type:d,tone:u,disabled:f,componentName:a??Bj(e)??`iconButton`,$size:l,$tone:u,$type:d,$disabled:f,$css:i,...s})});Vj.displayName=`CRIconButton`;var Hj=n(ys)`
126  display: inline-flex;
127  align-items: center;
128  justify-content: center;
129  padding: 0;
130  line-height: 1;
131
132  .ant-btn-icon {
133    display: inline-flex;
134    align-items: center;
135    justify-content: center;
136    margin: 0;
137  }
138
139  ${({$size:e})=>e===`large`&&`
140    width: 40px;
141    min-width: 40px;
142    max-width: 40px;
143    height: 40px;
144    min-height: 40px;
145    max-height: 40px;
146  `}
147  ${({$size:e})=>e===`middle`&&`
148    width: 36px;
149    min-width: 36px;
150    max-width: 36px;
151    height: 36px;
152    min-height: 36px;
153    max-height: 36px;
154  `}
155  ${({$size:e})=>e===`small`&&`
156    width: 24px;
157    min-width: 24px;
158    max-width: 24px;
159    height: 24px;
160    min-height: 24px;
161    max-height: 24px;
162
163  `}
164
165  font-size: 16px;
166  font-weight: 500;
167  background: var(--grey-50) !important;
168  border: 1px solid var(--grey-300) !important;
169
170  ${({$disabled:e})=>e&&`
171    opacity: 0.4;
172    cursor: not-allowed !important;
173    pointer-events: none;
174  `}
175
176  ${({$css:e})=>e&&r`
177      ${e}
178    `}
179`,Uj=e(Li()),Wj=e(Pi()),Gj={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`};function Kj(){return Kj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kj.apply(this,arguments)}var qj=Q.forwardRef((e,t)=>Q.createElement(nn,Kj({},e,{ref:t,icon:Gj}))),Jj={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`};function Yj(){return Yj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yj.apply(this,arguments)}var Xj=Q.forwardRef((e,t)=>Q.createElement(nn,Yj({},e,{ref:t,icon:Jj}))),Zj={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`};function Qj(){return Qj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qj.apply(this,arguments)}var $j=Q.forwardRef((e,t)=>Q.createElement(nn,Qj({},e,{ref:t,icon:Zj}))),eM={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`};function tM(){return tM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tM.apply(this,arguments)}var nM=Q.forwardRef((e,t)=>Q.createElement(nn,tM({},e,{ref:t,icon:eM}))),rM={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`};function iM(){return iM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iM.apply(this,arguments)}var aM=Q.forwardRef((e,t)=>Q.createElement(nn,iM({},e,{ref:t,icon:rM}))),oM={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`};function sM(){return sM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sM.apply(this,arguments)}var cM=Q.forwardRef((e,t)=>
179Q.createElement(nn,sM({},e,{ref:t,icon:oM}))),lM={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`};function uM(){return uM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uM.apply(this,arguments)}var dM=Q.forwardRef((e,t)=>Q.createElement(nn,uM({},e,{ref:t,icon:lM}))),fM={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`};function pM(){return pM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pM.apply(this,arguments)}var mM=Q.forwardRef((e,t)=>Q.createElement(nn,pM({},e,{ref:t,icon:fM}))),hM={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`};function gM(){return gM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gM.apply(this,arguments)}var _M=Q.forwardRef((e,t)=>Q.createElement(nn,gM({},e,{ref:t,icon:hM}))),vM={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`};function yM(){return yM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yM.apply(this,arguments)}var bM=Q.forwardRef((e,t)=>Q.createElement(nn,yM({},e,{ref:t,icon:vM}))),xM={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`};function SM(){return SM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SM.apply(this,arguments)}var CM=Q.forwardRef((e,t)=>Q.createElement(nn,SM({},e,{ref:t,icon:xM}))),wM={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`};function TM(){return TM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TM.apply(this,arguments)}var EM=Q.forwardRef((e,t)=>
179Q.createElement(nn,TM({},e,{ref:t,icon:wM}))),DM={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z`}}]},name:`fullscreen-exit`,theme:`outlined`};function OM(){return OM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OM.apply(this,arguments)}var kM=Q.forwardRef((e,t)=>Q.createElement(nn,OM({},e,{ref:t,icon:DM}))),AM={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z`}}]},name:`fullscreen`,theme:`outlined`};function jM(){return jM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jM.apply(this,arguments)}var MM=Q.forwardRef((e,t)=>Q.createElement(nn,jM({},e,{ref:t,icon:AM}))),NM={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`};function PM(){return PM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PM.apply(this,arguments)}var FM=Q.forwardRef((e,t)=>Q.createElement(nn,PM({},e,{ref:t,icon:NM}))),IM={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`};function LM(){return LM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LM.apply(this,arguments)}var RM=Q.forwardRef((e,t)=>Q.createElement(nn,LM({},e,{ref:t,icon:IM}))),zM={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`};function BM(){return BM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BM.apply(this,arguments)}var VM=Q.forwardRef((e,t)=>
179Q.createElement(nn,BM({},e,{ref:t,icon:zM}))),HM={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`};function UM(){return UM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UM.apply(this,arguments)}var WM=Q.forwardRef((e,t)=>Q.createElement(nn,UM({},e,{ref:t,icon:HM}))),GM={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`};function KM(){return KM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KM.apply(this,arguments)}var qM=Q.forwardRef((e,t)=>Q.createElement(nn,KM({},e,{ref:t,icon:GM}))),JM={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`};function YM(){return YM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YM.apply(this,arguments)}var XM=Q.forwardRef((e,t)=>Q.createElement(nn,YM({},e,{ref:t,icon:JM}))),ZM=`data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.625%2016.3125C4.3875%2016.3125%200.9375%2012.8625%200.9375%208.625C0.9375%204.3875%204.3875%200.9375%208.625%200.9375C12.8625%200.9375%2016.3125%204.3875%2016.3125%208.625C16.3125%2012.8625%2012.8625%2016.3125%208.625%2016.3125ZM8.625%202.0625C5.0025%202.0625%202.0625%205.01%202.0625%208.625C2.0625%2012.24%205.0025%2015.1875%208.625%2015.1875C12.2475%2015.1875%2015.1875%2012.24%2015.1875%208.625C15.1875%205.01%2012.2475%202.0625%208.625%202.0625Z'%20fill='%234B5654'/%3e%3cpath%20d='M16.5001%2017.0625C16.3576%2017.0625%2016.2151%2017.01%2016.1026%2016.8975L14.6026%2015.3975C14.3851%2015.18%2014.3851%2014.82%2014.6026%2014.6025C14.8201%2014.385%2015.1801%2014.385%2015.3976%2014.6025L16.8976%2016.1025C17.1151%2016.32%2017.1151%2016.68%2016.8976%2016.8975C16.7851%2017.01%2016.6426%2017.0625%2016.5001%2017.0625Z'%20fill='%234B5654'/%3e%3c/svg%3e`,QM=t(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h})),$M=e(QM(),1),eN=(e,t)=>{let n=(0,Q.useRef)(e);n.current=e;let r=(0,Q.useCallback)((...e)=>n.current(...e),[]),i=(0,Q.useMemo)(()=>(0,$M.default)(r,t),[r,t]);return(0,Q.useEffect)(()=>()=>i.cancel(),[i]),i},tN=1e3,nN=(0,Q.forwardRef)(({value:e,onSearch:t,defaultValue:n,onChange:r,onPressEnter:i,css:a,componentName:o,eventProperties:s,trackEvent:c=!0,eventName:l,expandable:u=!0,expandDirection:d=`right`,expandedWidth:f=150,disabled:p=!1,...m},h)=>{let g=(0,Q.useMemo)(()=>m?.size??`middle`,[m?.size]),_=(0,Q.useMemo)(()=>m?.allowClear??!0,[m?.allowClear]),v=(0,Q.useMemo)(()=>m?.placeholder??`Search here...`,[m?.placeholder]),y=(0,Q.useMemo)(()=>m?.prefix??(u?null:(0,$.jsx)(ds,{})),[u,m?.prefix]),b=(0,Q.useMemo)(()=>o??`search`,[o]),[x,S]=(0,Q.useState)(e??n??``),[C,w]=(0,Q.useState)(()=>!u||!!(e??n)),T=(0,Q.useRef)(null),E=(0,Q.useRef)(p),D=(0,Q.useCallback)(e=>{if(T.current=e,typeof h==`function`){h(e);return}h&&(h.current=e)},[h]),O=(0,Q.useCallback)(e=>{c&&io.logEvent(l??Ha.search,{...s??{},componentName:b,targetText:e,targetKey:e}),t?.(e)},[l,s,t,b,c]),k=eN(O,tN);(0,Q.useEffect)(()=>{e!==void 0&&S(e)},[e]),(0,Q.useEffect)(()=>
179{if(!u){w(!0);return}typeof x==`string`&&x.trim().length>0&&w(!0)},[u,x]),(0,Q.useEffect)(()=>{E.current&&!p&&C&&window.setTimeout(()=>{T.current?.focus()},0),E.current=p},[p,C]);let A=(0,Q.useCallback)(()=>{p||(w(!0),window.setTimeout(()=>{T.current?.focus()},0))},[p]),j=(0,Q.useCallback)(()=>{if(u){if(!C){A();return}if(typeof x==`string`&&x.trim().length===0){w(!1);return}T.current?.focus()}},[u,A,C,x]),M=e=>{let t=e.target.value;if(S(t),r?.(e),t.trim().length===0){k.cancel(),O(``);return}k(t)},N=e=>{k.cancel(),O(String(x??``)),i?.(e)},P=()=>{S(``),k.cancel()},F=u?(0,$.jsx)(sN,{type:`button`,onClick:j,disabled:p,children:(0,$.jsx)(cN,{src:ZM,alt:`search`})}):null;return(0,$.jsxs)(iN,{$expandDirection:d,children:[u&&(0,$.jsx)(aN,{$expanded:C,children:(0,$.jsx)(Vj,{icon:(0,$.jsx)(cN,{src:`data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.625%2016.3125C4.3875%2016.3125%200.9375%2012.8625%200.9375%208.625C0.9375%204.3875%204.3875%200.9375%208.625%200.9375C12.8625%200.9375%2016.3125%204.3875%2016.3125%208.625C16.3125%2012.8625%2012.8625%2016.3125%208.625%2016.3125ZM8.625%202.0625C5.0025%202.0625%202.0625%205.01%202.0625%208.625C2.0625%2012.24%205.0025%2015.1875%208.625%2015.1875C12.2475%2015.1875%2015.1875%2012.24%2015.1875%208.625C15.1875%205.01%2012.2475%202.0625%208.625%202.0625Z'%20fill='%234B5654'/%3e%3cpath%20d='M16.5001%2017.0625C16.3576%2017.0625%2016.2151%2017.01%2016.1026%2016.8975L14.6026%2015.3975C14.3851%2015.18%2014.3851%2014.82%2014.6026%2014.6025C14.8201%2014.385%2015.1801%2014.385%2015.3976%2014.6025L16.8976%2016.1025C17.1151%2016.32%2017.1151%2016.68%2016.8976%2016.8975C16.7851%2017.01%2016.6426%2017.0625%2016.5001%2017.0625Z'%20fill='%234B5654'/%3e%3c/svg%3e`,alt:`search`}),disabled:p,onClick:j,trackEvent:!1,css:`display:flex;align-items:center;justify-content:center;`})}),(0,$.jsx)(oN,{$expanded:C,$expandDirection:d,$width:f,children:(0,$.jsx)(rN,{$css:a,ref:D,...m,size:g,prefix:u?d===`right`?F:void 0:y,suffix:u&&d===`left`?F:m.suffix,value:x,onChange:M,allowClear:_,onPressEnter:N,placeholder:v,onClear:P,disabled:p})})]})});nN.displayName=`CRSearchInput`;var rN=n(hs)`
180  width: 100%;
181  ${({$css:e})=>e&&r`
182      ${e}
183    `}
184`,iN=n.div`
185  display: inline-flex;
186  align-items: center;
187  flex-direction: ${({$expandDirection:e})=>e===`left`?`row-reverse`:`row`};
188`,aN=n.div`
189  overflow: hidden;
190  max-width: ${({$expanded:e})=>e?`0px`:`100px`};
191  transition: max-width 0.24s ease;
192`,oN=n.div`
193  width: ${({$expanded:e,$width:t})=>e?`${t}px`:`0px`};
194  overflow: hidden;
195  pointer-events: ${({$expanded:e})=>e?`auto`:`none`};
196  transition: width 0.24s ease;
197`,sN=n.button`
198  background: none;
199  border: none;
200  padding: 0;
201  margin: 0;
202  cursor: pointer;
203  display: flex;
204  align-items: center;
205  justify-content: center;
206  &:disabled {
207    cursor: not-allowed;
208    opacity: 0.5;
209  }
210`,cN=n.img`
211  width: 18px;
212  height: 18px;
213  display: block;
214`,lN=Q.createContext({}),{Provider:uN}=lN,dN=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:c,onClose:l}=(0,Q.useContext)(lN);return i?Q.createElement(Yo,{isSilent:r,actionFn:s,close:(...e)=>{o?.(...e),c?.(!1),l?.()},autoFocus:e===`cancel`,buttonProps:t,prefixCls:`${a}-btn`},n):null},fN=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:c,onClose:l}=(0,Q.useContext)(lN);return Q.createElement(Yo,{isSilent:n,type:o||`primary`,actionFn:c,close:(...e)=>{t?.(...e),s?.(!0),l?.()},autoFocus:e===`ok`,buttonProps:r,prefixCls:`${i}-btn`},a)},pN=Q.createContext({});function mN(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function hN(e,t){let n=e[`page${t?`Y`:`X`}Offset`],r=`scroll${t?`Top`:`Left`}`;if(typeof n!=`number`){let t=e.document;n=t.documentElement[r],typeof n!=`number`&&(n=t.body[r])}return n}function gN(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=hN(i),n.top+=hN(i,!0),n}var _N=Q.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function vN(){return vN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vN.apply(this,arguments)}var yN=Q.forwardRef((e,t)=>
214{let{prefixCls:n,className:r,style:i,title:a,ariaId:o,footer:s,closable:c,closeIcon:l,onClose:u,children:d,bodyStyle:f,bodyProps:p,modalRender:m,onMouseDown:h,onMouseUp:g,holderRef:_,visible:v,forceRender:y,width:b,height:x,classNames:S,styles:C,isFixedPos:w,focusTrap:T}=e,{panel:E}=Q.useContext(pN),D=(0,Q.useRef)(null),O=Ka(_,E,D),[k]=Na(v&&w&&T!==!1,()=>D.current);Q.useImperativeHandle(t,()=>({focus:()=>{D.current?.focus({preventScroll:!0})}}));let A={};b!==void 0&&(A.width=b),x!==void 0&&(A.height=x);let j=s?Q.createElement(`div`,{className:X(`${n}-footer`,S?.footer),style:{...C?.footer}},s):null,M=a?Q.createElement(`div`,{className:X(`${n}-header`,S?.header),style:{...C?.header}},Q.createElement(`div`,{className:X(`${n}-title`,S?.title),id:o,style:{...C?.title}},a)):null,N=(0,Q.useMemo)(()=>typeof c==`object`&&c?c:c?{closeIcon:l??Q.createElement(`span`,{className:`${n}-close-x`})}:{},[c,l,n]),P=ha(N,!0),F=typeof c==`object`&&c.disabled,I=c?Q.createElement(`button`,vN({type:`button`,onClick:u,"aria-label":`Close`},P,{className:X(`${n}-close`,S?.close),disabled:F,style:C?.close}),N.closeIcon):null,L=Q.createElement(`div`,{className:X(`${n}-container`,S?.container),style:C?.container},I,M,Q.createElement(`div`,vN({className:X(`${n}-body`,S?.body),style:{...f,...C?.body}},p),d),j);return Q.createElement(`div`,{key:`dialog-element`,role:`dialog`,"aria-labelledby":a?o:null,"aria-modal":`true`,ref:O,style:{...i,...A},className:X(n,r),onMouseDown:h,onMouseUp:g,tabIndex:-1,onFocus:e=>{k(e.target)}},Q.createElement(_N,{shouldUpdate:v||y},m?m(L):L))});function bN(){return bN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bN.apply(this,arguments)}var xN=Q.forwardRef((e,t)=>{let{prefixCls:n,title:r,style:i,className:a,visible:o,forceRender:s,destroyOnHidden:c,motionName:l,ariaId:u,onVisibleChanged:d,mousePosition:f}=e,p=(0,Q.useRef)(null),m=(0,Q.useRef)(null);Q.useImperativeHandle(t,()=>({...m.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));let[h,g]=Q.useState(),_={};h&&(_.transformOrigin=h);function v(){if(!p.current?.nativeElement)return;let e=gN(p.current.nativeElement);g(f&&(f.x||f.y)?`${f.x-e.left}px ${f.y-e.top}px`:``)}return Q.createElement(xa,{visible:o,onVisibleChanged:d,onAppearPrepare:v,onEnterPrepare:v,forceRender:s,motionName:l,removeOnLeave:c,ref:p},({className:t,style:o},s)=>Q.createElement(yN,bN({},e,{ref:m,title:r,ariaId:u,prefixCls:n,holderRef:s,style:{...o,...i,..._},className:X(a,t)})))});function SN(){return SN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SN.apply(this,arguments)}var CN=e=>{let{prefixCls:t,style:n,visible:r,maskProps:i,motionName:a,className:o}=e;return Q.createElement(xa,{key:`mask`,visible:r,motionName:a,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},a)=>Q.createElement(`div`,SN({ref:a,style:{...r,...n},className:X(`${t}-mask`,e,o)},i)))};function wN(){return wN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wN.apply(this,arguments)}var TN=e=>{let{prefixCls:t=`rc-dialog`,zIndex:n,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:a,wrapClassName:o,wrapProps:s,onClose:c,afterOpenChange:l,afterClose:u,transitionName:d,animation:f,closable:p=!0,mask:m=!0,maskTransitionName:h,maskAnimation:g,maskClosable:_=!0,maskStyle:v,maskProps:y,rootClassName:b,rootStyle:x,classNames:S,styles:C}=e,w=(0,Q.useRef)(null),T=(0,Q.useRef)(null),E=(0,Q.useRef)(null),[D,O]=Q.useState(r),[k,A]=Q.useState(!1),j=Ja();function M(){to(T.current,document.activeElement)||(w.current=document.activeElement)}function N(){to(T.current,document.activeElement)||E.current?.focus()}function P(){if(O(!1),m&&w.current&&i){try{w.current.focus({preventScroll:!0})}catch{}w.current=null}D&&u?.()}function F(e){e?N():P(),l?.(e)}function I(e){c?.(e)}let L=(0,Q.useRef)(!1),R=null;_&&(R=e=>{T.current===e.target&&L.current&&I(e)});function z(e){L.current=e.target===T.current}(0,Q.useEffect)(()=>
214{if(r){if(L.current=!1,O(!0),M(),T.current){let e=getComputedStyle(T.current);A(e.position===`fixed`)}}else D&&E.current.enableMotion()&&!E.current.inMotion()&&P()},[r]);let B={zIndex:n,...a,...C?.wrapper,display:D?null:`none`};return Q.createElement(`div`,wN({className:X(`${t}-root`,b),style:x},ha(e,{data:!0})),Q.createElement(CN,{prefixCls:t,visible:m&&r,motionName:mN(t,h,g),style:{zIndex:n,...v,...C?.mask},maskProps:y,className:S?.mask}),Q.createElement(`div`,wN({className:X(`${t}-wrap`,o,S?.wrapper),ref:T,onClick:R,onMouseDown:z,style:B},s),Q.createElement(xN,wN({},e,{isFixedPos:k,ref:E,closable:p,ariaId:j,prefixCls:t,visible:r&&D,onClose:I,onVisibleChanged:F,motionName:mN(t,d,f)}))))};function EN(){return EN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EN.apply(this,arguments)}var DN=e=>{let{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:a,closable:o,panelRef:s,keyboard:c=!0,scrollLock:l=!0,onClose:u}=e,{scrollLock:d,...f}=e,[p,m]=Q.useState(t),h=Q.useMemo(()=>({panel:s}),[s]);return Q.useEffect(()=>{t&&m(!0)},[t]),!r&&i&&!p?null:Q.createElement(pN.Provider,{value:h},Q.createElement(oo,{open:t||r||p,onEsc:({top:e,event:t})=>{if(e&&c){t.stopPropagation(),u?.(t);return}},autoDestroy:!1,getContainer:n,autoLock:l&&(t||p)},Q.createElement(TN,EN({},f,{destroyOnHidden:i,afterClose:()=>{let{afterClose:e}=(o&&typeof o==`object`?o:{})||{};e?.(),a?.(),m(!1)}}))))},ON=()=>mo()&&window.document.documentElement,kN=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,Q.useContext)(lN),r=t=>{n?.(t),e?.onClick?.(t)};return Q.createElement(Je,{...e,onClick:r},t)},AN=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,Q.useContext)(lN);return Q.createElement(Je,{...Rt(n),loading:e,onClick:i,...t},r)};function jN(e,t){return Q.createElement(`span`,{className:`${e}-close-x`},eo(t)?t:Q.createElement(_t,{className:`${e}-close-icon`}))}var MN=e=>{let{okText:t,okType:n=`primary`,cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:c,footer:l}=e,[u]=lt(`Modal`,Et()),d=Ko(t,u?.okText),f=Ko(r,u?.cancelText),p=Q.useMemo(()=>({confirmLoading:i,okButtonProps:s,cancelButtonProps:c,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:a,onCancel:o}),[i,s,c,d,f,n,a,o]),m;return fo(l)||l===void 0?(m=Q.createElement(Q.Fragment,null,Q.createElement(kN,null),Q.createElement(AN,null)),fo(l)&&(m=l(m,{OkBtn:AN,CancelBtn:kN})),m=Q.createElement(uN,{value:p},m)):m=l,Q.createElement(wn,{disabled:!1},m)},NN=e=>{let{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`}}}},PN=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},FN=(e,t)=>{let{componentCls:n,gridColumns:r,antCls:i}=e,[a,o]=go(i,`grid`),[,s]=go(i,`col`),c={};for(let e=r;e>=0;e--)e===0?(c[`${n}${t}-${e}`]={display:`none`},c[`${n}-push-${e}`]={insetInlineStart:`auto`},c[`${n}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-offset-${e}`]={marginInlineStart:0},c[`${n}${t}-order-${e}`]={order:0}):(c[`${n}${t}-${e}`]=[{[a(`display`)]:`block`,display:`block`},{display:o(`display`),flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],c[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},c[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},c[`${n}${t}-order-${e}`]={order:e});return c[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,``)}-flex`)},c},IN=(e,t)=>FN(e,t),LN=(e,t,n)=>({[`@media (min-width: ${Z(t)})`]:{...IN(e,n)}}),RN=()=>({}),zN=()=>({}),BN=Da(`Grid`,NN,RN),VN=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),HN=Da(`Grid`,e=>{let t=na(e,{gridColumns:24}),n=VN(t);return delete n.xs,[PN(t),IN(t,``),IN(t,`-xs`),Object.keys(n).map(e=>LN(t,n[e],`-${e}`)).reduce((e,t)=>
214({...e,...t}),{})]},zN);function UN(e){return{position:e,inset:0}}var WN=e=>{let{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}-container`]:{pointerEvents:`none`},[`${t}-mask`]:{...UN(`fixed`),zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,pointerEvents:`none`,[`&${t}-mask-blur`]:{backdropFilter:`blur(4px)`},[`${t}-hidden`]:{display:`none`}},[`${t}-wrap`]:{...UN(`fixed`),zIndex:e.zIndexPopupBase,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`}}},{[`${t}-root`]:ae(e)}]},GN=e=>{let{componentCls:t,motionDurationMid:n}=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:`${Z(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Gi(e),pointerEvents:`none`,position:`relative`,top:100,width:`auto`,maxWidth:`calc(100vw - ${Z(e.calc(e.margin).mul(2).equal())})`,margin:`0 auto`,"&:focus-visible":{borderRadius:e.borderRadiusLG,...Ui(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:`break-word`},[`${t}-container`]:{position:`relative`,backgroundColor:e.contentBg,backgroundClip:`padding-box`,border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:`auto`,padding:e.contentPadding},[`${t}-close`]:{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`,`background-color`].map(e=>`${e} ${n}`).join(`, `),"&-x":{display:`flex`,fontSize:e.fontSizeLG,fontStyle:`normal`,lineHeight:Z(e.modalCloseBtnSize),justifyContent:`center`,textTransform:`none`,textRendering:`auto`},"&:disabled":{pointerEvents:`none`},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:`none`},"&:active":{backgroundColor:e.colorBgTextActive},...uo(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Z(e.borderRadiusLG)} ${Z(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:`${Z(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}-container,
215          ${t}-body,
216          ${t}-confirm-body-wrapper`]:{display:`flex`,flexDirection:`column`,flex:`auto`},[`${t}-confirm-body`]:{marginBottom:`auto`}}}]},KN=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},qN=e=>{let{componentCls:t}=e,n=VN(e),r={...n};delete r.xs;let i=`--${t.replace(`.`,``)}-`,a=Object.keys(r).map(e=>({[`@media (min-width: ${Z(r[e])})`]:{width:`var(${i}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(ia(Object.keys(n).map((e,t)=>{let r=Object.keys(n)[t-1];return r?{[`${i}${e}-width`]:`var(${i}${r}-width)`}:null})),[{width:`var(${i}xs-width)`}],ia(a))}}},JN=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return na(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()})},YN=e=>({footerBg:`transparent`,headerBg:`transparent`,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Z(e.paddingMD)} ${Z(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Z(e.padding)} ${Z(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Z(e.paddingXS)} ${Z(e.padding)}`:0,footerBorderTop:e.wireframe?`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,footerBorderRadius:e.wireframe?`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Z(e.padding*2)} ${Z(e.padding*2)} ${Z(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),XN=Da(`Modal`,e=>{let t=JN(e);return[GN(t),KN(t),WN(t),se(t,`zoom`),qN(t)]},YN,{unitless:{titleLineHeight:!0}}),ZN;ON()&&document.documentElement.addEventListener(`click`,e=>{ZN={x:e.pageX,y:e.pageY},setTimeout(()=>{ZN=null},100)},!0);var QN=e=>{let{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:a,centered:o,getContainer:s,style:c,width:l=520,footer:u,classNames:d,styles:f,children:p,loading:m,confirmLoading:h,zIndex:g,mousePosition:_,onOk:v,onCancel:y,okButtonProps:b,cancelButtonProps:x,destroyOnHidden:S,destroyOnClose:C,panelRef:w=null,closable:T,mask:E,modalRender:D,maskClosable:O,_semanticOmit:k,scrollLock:A,focusTriggerAfterClose:j,focusable:M,_renderSemanticContent:N,...P}=e,{getPopupContainer:F,getPrefixCls:I,direction:L,className:R,style:z,classNames:B,styles:V,centered:H,cancelButtonProps:U,okButtonProps:W,mask:G,focusable:ee}=ea(`modal`),{modal:te}=Q.useContext(ma),[ne,K]=Q.useMemo(()=>typeof T==`boolean`?[void 0,void 0]:[T?.afterClose,T?.onClose],[T]),q=I(`modal`,t),re=I(),[J,ie,ae]=Ao(E,G,q,O),oe=qo({...ee,...M},J,j),se=e=>{h||(y?.(e),K?.())},ce=e=>{v?.(e),K?.()},le=no(q),[ue,de]=XN(q,le),fe=X(a,{[`${q}-centered`]:o??H,[`${q}-wrap-rtl`]:L===`rtl`}),pe=u!==null&&!m?Q.createElement(MN,{...e,okButtonProps:{...W,...b},onOk:ce,cancelButtonProps:{...U,...x},onCancel:se}):null,[me,he,ge,_e]=it(Jt(e),Jt(te),{closable:!0,closeIcon:Q.createElement(_t,{className:`${q}-close-icon`}),closeIconRender:e=>jN(q,e)}),be=me?{disabled:ge,closeIcon:he,afterClose:ne,..._e}:!1,xe=D?e=>Q.createElement(`div`,{className:`${q}-render`},D(e)):void 0,Se=`.${q}-${D?`render`:`container`}`,Ce=Mo(Se),we=Ua(w,Ce),[Te,Ee]=qa(`Modal`,g),De={...e,width:l,panelRef:w,focusTriggerAfterClose:oe.focusTriggerAfterClose,focu
216sable:oe,mask:J,maskClosable:ae,zIndex:Te},[Oe,ke]=ho([B,d,ie],[V,f],{props:De}),Ae=k?_a(Oe,k):Oe,je=k?_a(ke,k):ke,Me=N?N({classNames:Oe,styles:ke}):p,[Ne,Pe]=Q.useMemo(()=>Ki(l)?[void 0,l]:[l,void 0],[l]),Fe=Q.useMemo(()=>{let e={};return Pe&&Object.keys(Pe).forEach(t=>{let n=Pe[t];ta(n)&&(e[`--${q}-${t}-width`]=Ji(n)?`${n}px`:n)}),e},[q,Pe]);return Q.createElement(ve,{form:!0,space:!0},Q.createElement(Ba.Provider,{value:Ee},Q.createElement(DN,{width:Ne,...P,zIndex:Te,getContainer:s===void 0?F:s,prefixCls:q,rootClassName:X(ue,r,de,le,Ae.root),rootStyle:je.root,footer:pe,visible:i,mousePosition:_??ZN,onClose:se,closable:be,closeIcon:he,transitionName:ye(re,`zoom`,e.transitionName),maskTransitionName:ye(re,`fade`,e.maskTransitionName),mask:J,maskClosable:ae,scrollLock:A,className:X(ue,n,R),style:{...z,...c,...Fe},classNames:{...Ae,wrapper:X(Ae.wrapper,fe)},styles:je,panelRef:we,destroyOnHidden:S??C,modalRender:xe,focusTriggerAfterClose:oe.focusTriggerAfterClose,focusTrap:oe.trap},m?Q.createElement(Jo,{active:!0,title:!1,paragraph:{rows:4},className:`${q}-body-skeleton`}):Me)))},$N=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:l}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:`rtl`},[`${e.antCls}-modal-header`]:{display:`none`},[`${u}-body-wrapper`]:{...ua()},[`&${t} ${t}-body`]:{padding:l},[`${u}-body`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${e.iconCls}`]:{flex:`none`,fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).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% - ${Z(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:`100%`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Z(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-container`]:{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},
217        ${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}}},eP=po([`Modal`,`confirm`],e=>$N(JN(e)),YN,{order:-1e3}),tP=[`body`],nP=e=>{let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:o,okCancel:s,footer:c,locale:l,autoFocusButton:u,focusable:d,contentClassName:f,contentStyle:p,...m}=e,{infoIcon:h,successIcon:g,errorIcon:_,warningIcon:v}=ea(`modal`),y=n;if(n===void 0)switch(o){case`info`:y=Ko(h,Q.createElement(Ue,null));break;case`success`:y=Ko(g,Q.createElement(dn,null));break;case`error`:y=Ko(_,Q.createElement(kt,null));break;default:y=Ko(v,Q.createElement(li,null))}let b=s??o===`confirm`,x=Q.useMemo(()=>{let e=d?.autoFocusButton||u;return e||e===null?e:`ok`},[u,d?.autoFocusButton]),[S]=lt(`Modal`),C=l||S,w=Ko(r,b?C?.okText:C?.justOkText),T=Ko(i,C?.cancelText),{closable:E}=m,{onClose:D}=Ki(E)?E:{},O=Q.useMemo(()=>({autoFocusButton:x,cancelTextLocale:T,okTextLocale:w,mergedOkCancel:b,onClose:D,...m}),[x,T,w,b,D,m]),k=Q.createElement(Q.Fragment,null,Q.createElement(dN,null),Q.createElement(fN,null)),A=eo(e.title),j=eo(y),M=`${a}-body`;return Q.createElement(`div`,{className:`${a}-body-wrapper`},Q.createElement(`div`,{className:X(M,{[`${M}-has-title`]:A,[`${M}-no-icon`]:!j})},y,Q.createElement(`div`,{className:`${a}-paragraph`},A&&Q.createElement(`span`,{className:`${a}-title`},e.title),Q.createElement(`div`,{className:X(`${a}-content`,f),style:p},e.content))),c===void 0||fo(c)?Q.createElement(uN,{value:O},Q.createElement(`div`,{className:`${a}-btns`},fo(c)?c(k,{OkBtn:fN,CancelBtn:dN}):k)):c,Q.createElement(eP,{prefixCls:t}))},rP=e=>{let{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:c,closable:l=!1,onConfirm:u,styles:d,title:f,mask:p,maskClosable:m,okButtonProps:h,cancelButtonProps:g}=e,{cancelButtonProps:_,okButtonProps:v}=ea(`modal`),y=`${a}-confirm`,b=e.width||416,x=e.style||{},S=fo(d)?e=>({body:c,mask:r,...d(e)}):{body:c,mask:r,...d},C=_a(e,[`bodyStyle`,`maskStyle`]),w=X(y,`${y}-${e.type}`,{[`${y}-rtl`]:i===`rtl`},e.className),T=Q.useMemo(()=>{let e=Go(p,m);return e.closable??=!1,e},[p,m]),[,E]=Bi(),D=Q.useMemo(()=>n===void 0?E.zIndexPopupBase+Za:n,[n,E]);return Q.createElement(QN,{...C,className:w,wrapClassName:X({[`${y}-centered`]:!!e.centered},o),onCancel:()=>{t?.({triggerCancel:!0}),u?.(!1)}
217,title:f,footer:null,transitionName:ye(s||``,`zoom`,e.transitionName),maskTransitionName:ye(s||``,`fade`,e.maskTransitionName),mask:T,style:x,styles:S,width:b,zIndex:D,closable:l,_semanticOmit:tP,_renderSemanticContent:({classNames:t,styles:n})=>Q.createElement(nP,{...e,confirmPrefixCls:y,okButtonProps:{...v,...h},cancelButtonProps:{..._,...g},contentClassName:t.body,contentStyle:n.body})})},iP=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return Q.createElement(bn,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},Q.createElement(rP,{...e}))},aP=[],oP=``;function sP(){return oP}var cP=e=>{let{prefixCls:t,getContainer:n,direction:r}=e,i=Et(),a=(0,Q.useContext)(ma),o=sP()||a.getPrefixCls(),s=t||`${o}-modal`,c=n;return c===!1&&(c=void 0),Q.createElement(iP,{...e,rootPrefixCls:o,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:r??a.direction,locale:a.locale?.Modal??i,getContainer:c})};function lP(e){let t=pt(),n=document.createDocumentFragment(),r={...e,close:s,open:!0},i;function a(...t){t.some(e=>e?.triggerCancel)&&e.onCancel?.(()=>{},...t.slice(1));for(let e=0;e<aP.length;e++)if(aP[e]===s){aP.splice(e,1);break}Qi(n).then(()=>{})}let o=e=>{clearTimeout(i),i=setTimeout(()=>{let r=t.getPrefixCls(void 0,sP()),i=t.getIconPrefixCls(),a=t.getTheme(),o=Q.createElement(cP,{...e});Yi(Q.createElement(bn,{prefixCls:r,iconPrefixCls:i,theme:a},fo(t.holderRender)?t.holderRender(o):o),n)})};function s(...t){r={...r,open:!1,afterClose:()=>{fo(e.afterClose)&&e.afterClose(),a.apply(this,t)}},o(r)}function c(e){r=fo(e)?e(r):{...r,...e},o(r)}return o(r),aP.push(s),{destroy:s,update:c}}function uP(e){return{...e,type:`warning`}}function dP(e){return{...e,type:`info`}}function fP(e){return{...e,type:`success`}}function pP(e){return{...e,type:`error`}}function mP(e){return{...e,type:`confirm`}}function hP({rootPrefixCls:e}){oP=e}var gP=_s(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,style:l,classNames:u,styles:d,...f}=e,{getPrefixCls:p}=Q.useContext(ma),{className:m,style:h,classNames:g,styles:_}=ea(`modal`),v=p(),y=t||p(`modal`),b=no(v),[x,S]=XN(y,b),C=fa(h),w=fa(l),[T,E]=ho([g,u],[_,C,d,w],{props:e}),D=`${y}-confirm`,O={};return O=a?{closable:i??!1,title:``,footer:``,children:Q.createElement(nP,{...e,prefixCls:y,confirmPrefixCls:D,rootPrefixCls:v,content:s})}:{closable:i??!0,title:o,footer:c!==null&&Q.createElement(MN,{...e}),children:s},Q.createElement(yN,{prefixCls:y,className:X(x,`${y}-pure-panel`,a&&D,a&&`${D}-${a}`,n,m,S,b,T.root),style:E.root,...f,closeIcon:jN(y,r),closable:i,classNames:T,styles:E,...O})}),_P=Q.forwardRef((e,t)=>{let{afterClose:n,config:r,...i}=e,[a,o]=Q.useState(!0),[s,c]=Q.useState(r),{direction:l,getPrefixCls:u}=Q.useContext(ma),d=u(`modal`),f=u(),p=()=>{n(),s.afterClose?.()},m=(...e)=>{o(!1),e.some(e=>e?.triggerCancel)&&s.onCancel?.(()=>{},...e.slice(1))};Q.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>{let n=fo(e)?e(t):e;return{...t,...n}})}}));let h=s.okCancel??s.type===`confirm`,[g]=lt(`Modal`,Ur.Modal);return Q.createElement(iP,{prefixCls:d,rootPrefixCls:f,...s,close:m,open:a,afterClose:p,okText:Ko(s.okText,h?g?.okText:g?.justOkText),direction:s.direction||l,cancelText:Ko(s.cancelText,g?.cancelText),...i})}),vP=0,yP=Q.memo(Q.forwardRef((e,t)=>{let[n,r]=NO();return Q.useImperativeHandle(t,()=>({patchElement:r}),[r]),Q.createElement(Q.Fragment,null,n)}));function bP(){let e=Q.useRef(null),[t,n]=Q.useState([]);Q.useEffect(()=>{t.length&&(ia(t).forEach(e=>{e()}),n([]))},[t]);let r=Q.useCallback(t=>function(r){vP+=1;let i=Q.createRef(),a,o=new Promise(e=>{a=e}),s=!1,c,l=Q.createElement(_P,{key:`modal-${vP}`,config:t(r),ref:i,afterClose:()=>{c?.()},isSilent:()=>s,onConfirm:e=>{a(e)}});return c=e.current?.patchElement(l),c&&aP.push(c),{destroy:()=>{function e(){i.current?.destroy()}i.current?e():n(t=>[].concat(ia(t),[e]))},update:e=>{function t(){i.current?.update(e)}i.current?t():n(e=>[].concat(ia(e),[t]))},then:e=>(s=!0,o.then(e))}},[]);return[Q.useMemo(()=>({info:r(dP),success:r(fP),error:r(pP),warning:r(uP),confirm:r(mP)}
217),[r]),Q.createElement(yP,{key:`modal-holder`,ref:e})]}function xP(e){return lP(uP(e))}var SP=QN;SP.useModal=bP,SP.info=function(e){return lP(dP(e))},SP.success=function(e){return lP(fP(e))},SP.error=function(e){return lP(pP(e))},SP.warning=xP,SP.warn=xP,SP.confirm=function(e){return lP(mP(e))},SP.destroyAll=function(){for(;aP.length;){let e=aP.pop();e&&e()}},SP.config=hP,SP._InternalPanelDoNotUseOrYouWillBeFired=gP;var CP={titleDiv:`titleDiv`,footerDiv:`footerDiv`},wP=({centered:e,closeIcon:t,footer:n,title:r,onOk:i,fetchMore:a,...o})=>{let s=o?.trackEvent??!0,c=(0,Q.useMemo)(()=>({...o?.titleProps}),[o?.titleProps]),l=(0,Q.useMemo)(()=>o?.modalKey?.trim()||`modal`,[o?.modalKey]),u=(0,Q.useMemo)(()=>c?.text?.trim()||o?.modalKey?.trim()||`modal`,[c,o?.modalKey]),d=(0,Q.useMemo)(()=>o?.cssMappings??{},[o?.cssMappings]),f=(0,Q.useMemo)(()=>({...o?.eventProperties??{},modalKey:l,modalName:u??l}),[o?.eventProperties,l,u]),p=(0,Q.useMemo)(()=>o?.styleMappings??{},[o?.styleMappings]),m=(0,Q.useMemo)(()=>{let e=o?.footerProps?.okayProps??{};return{type:`primary`,tone:`primary`,onClick:o?.footerProps?.onOkay,text:o?.footerProps?.okayText??`Okay`,show:o?.footerProps?.showOkay??!0,...e,eventName:e.eventName??Ha.modalCtaClick,componentName:e.componentName??`modalOkayCta`,trackEvent:e.trackEvent??s,eventProperties:{...f,...e.eventProperties??{}}}},[o?.footerProps,f,s]),h=(0,Q.useMemo)(()=>{let e=o?.footerProps?.cancelProps??{};return{type:`dashed`,tone:`primary`,onClick:o?.footerProps?.onCancel??o?.onClose,text:o?.footerProps?.cancelText??`Cancel`,show:o?.footerProps?.showCancel??!0,...e,eventName:e.eventName??Ha.modalCtaClick,componentName:e.componentName??`modalCancelCta`,trackEvent:e.trackEvent??s,eventProperties:{...f,...e.eventProperties??{}}}},[o?.footerProps,o?.onClose,f,s]),g=(0,Q.useCallback)(e=>{s&&io.logEvent(Ha.modalCtaClick,{...f,componentName:`modalCloseCta`}),o?.onClose?.(e)},[f,o?.onClose,s]),_=(0,Q.useCallback)((e,t)=>{s&&io.logEvent(Ha.modalNavigationClick,{...f,componentName:`modalNavigationCta`,direction:e}),t?.()},[f,s]),v=(0,Q.useCallback)(e=>{s&&io.logEvent(Ha.modalCtaClick,{...f,componentName:`modalMaskClose`}),o?.onClose?.(e)},[f,o?.onClose,s]),y=(0,Q.useMemo)(()=>({onClick:g,style:{marginRight:8,cursor:`pointer`,fontSize:18}}),[g]),b=o?.titleExtra,x=(0,Q.useMemo)(()=>(0,$.jsxs)(EP,{$css:d?.[CP.titleDiv],style:p?.[CP.titleDiv],children:[(0,$.jsx)(So,{...c}),(0,$.jsxs)(DP,{children:[b,(0,$.jsx)(_t,{...y})]})]}),[c,b,y,d,p]),S=(0,Q.useMemo)(()=>{let{show:e,text:t,...n}=h??{},{show:r,text:i,...a}=m??{};return(0,$.jsxs)(OP,{$css:d?.[CP.footerDiv],style:p?.[CP.footerDiv],children:[h?.show&&(0,$.jsx)(ys,{...n,style:{...n?.style},size:m?.size??`middle`,children:t}),m?.show&&(0,$.jsx)(ys,{...a,style:{...a?.style},size:m?.size??`middle`,children:i})]})},[m,h,d,p]);return(0,$.jsxs)($.Fragment,{children:[a&&a.show!==!1&&o.open&&(0,RO.createPortal)((0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(kP,{$side:`left`,children:[(0,$.jsx)(AP,{children:`← to navigate`}),(0,$.jsx)(jP,{$disabled:a.prevDisabled,onClick:()=>!a.prevDisabled&&_(`prev`,a.onPrev),children:(0,$.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.99953%2013.78C9.87286%2013.78%209.7462%2013.7333%209.6462%2013.6333L5.29953%209.28668C4.59286%208.58001%204.59286%207.42001%205.29953%206.71335L9.6462%202.36668C9.83953%202.17335%2010.1595%202.17335%2010.3529%202.36668C10.5462%202.56001%2010.5462%202.88001%2010.3529%203.07335L6.0062%207.42001C5.6862%207.74001%205.6862%208.26001%206.0062%208.58001L10.3529%2012.9267C10.5462%2013.12%2010.5462%2013.44%2010.3529%2013.6333C10.2529%2013.7267%2010.1262%2013.78%209.99953%2013.78Z'%20fill='white'/%3e%3c/svg%3e`,alt:`Previous`})})]}),(0,$.jsxs)(kP,{$side:`right`,children:[(0,$.jsx)(AP,{children:`→ to navigate`}),(0,$.jsx)(jP,{$disabled:a.nextDisabled,onClick:()=>!a.nextDisabled&&_(`next`,a.onNext),children:(0,$.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.00047%2013.78C6.12714%2013.78%206.2538%2013.7333%206.3538%2013.6333L10.7005%209.28668C11.4071%208.58001%2011.4071%207.42001%2010.7005%206.71335L6.3538%202.36668C6.16047%202.17335%205.84047%202.17335%205.64714%202.36668C5.4538%202.56001%205.4538%202.88001%205.64714%203.07335L9.9938%207.42001C10.3138%207.74001%2010.3138%208.26001%209.9938%208.58001L5.64714%2012.9267C5.4538%2013.12%205.4538%2013.44%205.64714%2013.6333C5.74714%2013.7267%205.8738%2013.78%206.00047%2013.78Z'%20fill='white'/%3e%3c/svg%3e`,alt:`
217Next`})})]})]}),document.body),(0,$.jsx)(TP,{...o,$css:o?.css,style:o?.style,footer:o?.footerProps?.showFooter??!0?S:null,onOk:o?.footerProps?.onOkay,onCancel:v,destroyOnHidden:!0,title:x,closeIcon:null,centered:!0,loading:!1,children:o?.loading?(0,$.jsx)(zo,{loading:!0}):o?.children})]})},TP=n(SP)`
218  .ant-modal-container {
219    padding: 0px !important;
220    border-radius: 8px !important;
221  }
222  .ant-modal-footer {
223    margin: 0px !important;
224  }
225  .ant-modal-header {
226    margin: 0px !important;
227  }
228  .ant-modal-content,
229  .ant-modal-wrap,
230  &:focus,
231  *:focus {
232    outline: none !important;
233  }
234
235  ${({$css:e})=>e&&r`
236      ${e}
237    `}
238`,EP=n.div`
239  ${Ce.flexBetween()}
240  border-bottom: 1px solid var(--grey-200);
241  padding: 12px 16px;
242  overflow: hidden;
243
244  ${({$css:e})=>e&&r`
245      ${e}
246    `}
247`,DP=n.div`
248  display: flex;
249  align-items: center;
250  flex-shrink: 0;
251  gap: 12px;
252`,OP=n.div`
253  ${Ce.flexEnd()}
254  border-top: 1px solid var(--grey-200);
255  padding: 12px 16px;
256  gap: 16px;
257
258  ${({$css:e})=>e&&r`
259      ${e}
260    `}
261`,kP=n.div`
262  position: fixed;
263  top: 50%;
264  transform: translateY(-50%);
265  ${({$side:e})=>e===`left`?`left: 16px;`:`right: 16px;`}
266  z-index: 1002;
267  display: flex;
268  flex-direction: column;
269  align-items: center;
270  gap: 8px;
271`,AP=n.span`
272  font-size: 11px;
273  color: var(--grey-400);
274  white-space: nowrap;
275  user-select: none;
276`,jP=n.button`
277  display: flex;
278  align-items: center;
279  justify-content: center;
280  width: 52px;
281  height: 52px;
282  border-radius: 50%;
283  border: none;
284  background: rgba(255, 255, 255, 0.2);
285  cursor: pointer;
286  transition:
287    background 0.2s,
288    transform 0.15s;
289
290  &:hover {
291    background: rgba(255, 255, 255, 0.35);
292    transform: scale(1.15);
293  }
294
295  ${({$disabled:e})=>e&&r`
296      opacity: 0.3;
297      cursor: not-allowed;
298      &:hover {
299        transform: none;
300        background: rgba(255, 255, 255, 0.2);
301      }
302    `}
303
304  img {
305    width: 26px;
306    height: 26px;
307  }
308`,MP=(0,Q.createContext)(()=>{}),NP=`data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.45499%2010.335C4.35999%2010.335%204.26499%2010.3%204.18999%2010.225C4.04499%2010.08%204.04499%209.84001%204.18999%209.69501L7.44999%206.43501C7.68999%206.19501%207.68999%205.80501%207.44999%205.56501L4.18999%202.30501C4.04499%202.16001%204.04499%201.92001%204.18999%201.77501C4.33499%201.63001%204.57499%201.63001%204.71999%201.77501L7.97999%205.03501C8.23499%205.29001%208.37999%205.63501%208.37999%206.00001C8.37999%206.36501%208.23999%206.71001%207.97999%206.96501L4.71999%2010.225C4.64499%2010.295%204.54999%2010.335%204.45499%2010.335Z'%20fill='%234B5654'/%3e%3c/svg%3e`,PP={trap:!1},FP={outlet:null,matches:[],isDataRoute:!1},IP={cursor:`pointer`,transform:`rotate(180deg)`},LP={cursor:`not-allowed`,transform:`rotate(180deg)`,opacity:.3},RP={cursor:`pointer`},zP={cursor:`not-allowed`,opacity:.3};function BP(e){for(let t of DO)if(t.path&&t.label&&s(t.path,e))return t.label;return e}function VP(e){let t=e;if(!t||typeof t.tagName!=`string`)return!1;if(t.isContentEditable||t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.tagName===`SELECT`)return!0;let n=t.getAttribute?.(`role`);return n===`textbox`||n===`combobox`}var HP=({open:e,startUrl:t,onClose:n,onExit:r,width:i=`75vw`,exitWhen:a,navData:o,zIndex:s=5,onBack:c,backLabel:l,instant:u=!1})=>{let d=U(),f=(0,Q.useRef)(!1),p=(0,Q.useContext)(ji),[m,h]=(0,Q.useState)();(0,Q.useEffect)(()=>{e||h(void 0)},[e]);let[g,_]=(0,Q.useState)(e&&t?t:``);e&&t&&g!==t&&_(t);let v=(0,Q.useCallback)(e=>{e||_(``)},[]),y=p??h,b=p==null?m??o:o,x=(0,Q.useRef)(!1),[S,C]=(0,Q.useState)(!1);(0,Q.useEffect)(()=>{if(e)return f.current=!1,x.current=!1,Br.register(()=>{f.current=!0}),sr.register(e=>{x.current=e,C(e)}),()=>{Br.unregister(),sr.unregister(),x.current=!1,C(!1)}},[e]);let w=(0,Q.useCallback)(e=>{if(x.current)return;let t=f.current;Br.unregister(),sr.unregister(),n(e),r?.(t)},[n,r]),T=b?.onActiveItemChange!=null,E=(0,Q.useCallback)(e=>{w(`external-nav`),d(e,{preserveQuery:!1,replace:!T})},[w,d,T]),D=ts(),O=ws(),k={...D?{maxWidth:`100%`}:{},...u?{transition:`none`,boxShadow:`none`}:{}},A={...Object.keys(k).length?{wrapper:k}:{},...u?{mask:{background:`transparent`}}:{}};return(0,$.jsx)(GP,{open:e,size:i,zIndex:s,push:!1,mask:!0,onClose:()=>w(),afterOpenChange:v,footer:null,title:null,closeIcon:null,placement:`right`,destroyOnHidden:!0,maskClosable:!S,focusable:O?PP:void 0,rootStyle:D?{[D.side]:D.px}:void 0,styles:Object.keys(A).length?A:void 0,children:g&&(0,$.jsx)(UP,{startUrl:g,onClose:w,children:(0,$.jsx)(ji.Provider,{value:y,children:(0,$.jsx)(zi.Provider,{value:d,children:(0,$.jsx)(Oi.Provider,{value:w,children:(0,$.jsx)(WP,{onClose:w,exitWhen:a,onExternalNavigate:E,locked:S,navData:b,onBack:c,backLabel:l})})})})})})},UP=({startUrl:e,onClose:t,children:n})=>{let[r]=(0,Q.useState)(()=>u({initialEntries:[e],v5Compat:!0})),[i,a]=(0,Q.useState)(r.location),[o,s]=(0,Q.useState)(r.action),c=(0,Q.useRef)(r.location.key);(0,Q.useEffect)(()=>r.listen(e=>{let{location:n,action:r,delta:i}=e;if(i!=null&&i<0&&n.key===c.current){t();return}c.current=n.key,a(n),s(r)}),[r,t]),(0,Q.useEffect)(()=>(ck.set(`${i.pathname}${i.search}`),()=>ck.clear()),[i.pathname,i.search]);let l=(0,Q.useMemo)(()=>({basename:`/`,navigator:r,static:!1,useTransitions:!1,future:{}}),[r]),d=(0,Q.useMemo)(()=>({location:i,navigationType:o}),[i,o]);return(0,$.jsx)(k.Provider,{value:l,children:(0,$.jsx)(D.Provider,{value:d,children:(0,$.jsx)(L.Provider,{value:FP,children:n})})})},WP=({onClose:e,exitWhen:t,onExternalNavigate:n,locked:r,navData:i,onBack:a,backLabel:o})=>{let s=F(),c=A(),l=ee(),{showToast:u}=es(),[d,f]=(0,Q.useState)([`${s.pathname}${s.search}`]),[p,m]=(0,Q.useState)({}),h=(0,Q.useCallback)((e,t)=>{m(n=>{if(t?n[e]===t:!(e in n))return n;let r={...n};return t?r[e]=t:delete r[e],r})},[]),g=(0,Q.useCallback)(e=>p[e]??BP(e),[p]),_=(0,Q.useRef)(!0),[b,x]=(0,Q.useState)(null),[S,C]=(0,Q.useState)(i?.openedItemKey);i?.openedItemKey!==S&&(C(i?.openedItemKey),x(null));let w=(0,Q.useRef)(null),T=(0,Q.useMemo)(()=>
308{if(i)return b?{...i,items:b.items,count:b.count,page:b.page}:i},[i,b]),[E,D]=(0,Q.useState)(()=>{if(!i)return 0;let e=i.items.findIndex(e=>e.key===i.openedItemKey);return Math.max(0,e)}),[O,k]=(0,Q.useState)(!1),j=(0,Q.useRef)(null),M=(0,Q.useRef)(!1),N=(0,Q.useRef)(d);N.current=d;let P=(0,Q.useRef)(t);P.current=t;let I=(0,Q.useRef)(n);I.current=n;let L=(0,Q.useRef)(e);L.current=e;let R=(0,Q.useRef)(c);R.current=c,(0,Q.useEffect)(()=>()=>{w.current?.abort()},[]),(0,Q.useEffect)(()=>{if(_.current){_.current=!1;return}let e=`${s.pathname}${s.search}`;if(P.current?.(s.pathname)){I.current?.(e);return}f(t=>{if(l===`POP`){let n=t.lastIndexOf(e);return n===-1?t.length>1?t.slice(0,-1):t:t.slice(0,n+1)}return l===`REPLACE`?[...t.slice(0,-1),e]:[...t,e]})},[s.key,l]),(0,Q.useEffect)(()=>{let e=window.location.href;window.history.pushState(window.history.state,``);let t=()=>{N.current.length>1?(window.history.pushState(window.history.state,``),R.current(-1)):L.current()};return window.addEventListener(`popstate`,t),()=>{window.removeEventListener(`popstate`,t),window.location.href===e&&window.history.go(-1)}},[]);let B=d.length>1,V=!(!i||B&&!i.showWhenDeep),H=(0,Q.useRef)(T?.onActiveItemChange);H.current=T?.onActiveItemChange;let U=(0,Q.useRef)(null);(0,Q.useEffect)(()=>{if(!T?.items.length)return;let e=`${s.pathname}${s.search}`,t=T.items.findIndex(t=>e===t.url||s.pathname===t.url.split(`?`)[0]);if(t<0)return;D(t);let n=T.items[t].key;U.current!==n&&(U.current=n,H.current?.(n))},[s.pathname,s.search,T?.items]),(0,Q.useEffect)(()=>{if(!T||j.current===null)return;if(T.items.length===0){let e=M.current;M.current=!1,j.current=null,k(!1),e&&u.error(`No items on that page`,{description:`Try again or refresh the list.`});return}M.current=!1;let e=j.current;j.current=null,k(!1);let t=e===`start`?0:T.items.length-1;D(t),c(T.items[t].url,{replace:!0})},[T?.items,c,u]);let W=(0,Q.useCallback)(e=>{if(!T||O||r)return;let t=T.pageSize??y.defaultPageSize,n=T.page>=Math.ceil((T.count??0)/t);if(e===`next`){if(E<T.items.length-1)D(E+1),c(T.items[E+1].url,{replace:!0});else if(!n){j.current=`start`,M.current=!0,k(`next`);let e=T.page+1,t=T.loadItemsPage;if(t){w.current?.abort();let n=new AbortController;w.current=n,t(e,n.signal).then(t=>{n.signal.aborted||x({items:t.items,page:e,count:t.count})}).catch(e=>{n.signal.aborted||v.isAbortLikeError(e)||(j.current=null,M.current=!1,k(!1),u.error(`Could not load the next page`,{description:v.getErrorDesc(e)}))})}else T.onFetchPage?.(e)}}else if(E>0)D(E-1),c(T.items[E-1].url,{replace:!0});else if(T.page>1){j.current=`end`,M.current=!0,k(`prev`);let e=T.page-1,t=T.loadItemsPage;if(t){w.current?.abort();let n=new AbortController;w.current=n,t(e,n.signal).then(t=>{n.signal.aborted||x({items:t.items,page:e,count:t.count})}).catch(e=>{n.signal.aborted||v.isAbortLikeError(e)||(j.current=null,M.current=!1,k(!1),u.error(`Could not load the previous page`,{description:v.getErrorDesc(e)}))})}else T.onFetchPage?.(e)}},[T,E,O,r,c,u]);(0,Q.useEffect)(()=>{if(!V||r)return;let e=e=>{e.defaultPrevented||VP(e.target)||(e.key===`ArrowRight`?W(`next`):e.key===`ArrowLeft`&&W(`prev`))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[V,r,W]);let G=null;if(V&&T){let e=T,t=e.pageSize??y.defaultPageSize,n=e.page>=Math.ceil((e.count??0)/t),i=(e.page-1)*t+E+1,a=e.page===1&&E===0,o=n&&E===e.items.length-1,s=r||O===`next`||a,c=r||O===`prev`||o,l=r?LP:IP,u=r?zP:RP,d=e.positionNoun,f=e.count==null?String(i):`${i} / ${e.count}`;G=(0,$.jsxs)($P,{children:[(0,$.jsx)(Vj,{type:`text`,size:`small`,tone:`secondary`,trackEvent:!1,disabled:s,"aria-label":d?`Previous ${d.toLowerCase()}`:`Previous item`,title:d?`Previous ${d.toLowerCase()} (←)`:void 0,loading:O===`prev`,onClick:()=>W(`prev`),icon:(0,$.jsx)(`img`,{src:NP,alt:``,style:l})}),(0,$.jsx)(eF,{children:f}),(0,$.jsx)(Vj,{type:`text`,size:`small`,tone:`secondary`,trackEvent:!1,disabled:c,"aria-label":d?`Next ${d.toLowerCase()}`:`Next item`,title:d?`Next ${d.toLowerCase()} (→)`:void 0,loading:O===`next`,onClick:()=>W(`next`),icon:(0,$.jsx)(`img`,{src:NP,alt:``,style:u})})]})}return(0,$.jsx)(MP.Provider,{value:h,children:(0,$.jsxs)(KP,{children:[(0,$.jsxs)(qP,{children:[(0,$.jsx)(JP,{children:B?(0,$.jsx)(YP,{children:d.map((e,t)=>{let n=e.split(`?`)[0],i=g(n),a=t===d.length-1,o=d.length-1-t;return(0,$.jsxs)(Q.Fragment,{children:[t>0&&(0,$.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.45499%2010.335C4.35999%2010.335%204.26499%2010.3%204.18999%2010.225C4.04499%2010.08%204.04499%209.84001%204.18999%209.69501L7.44999%206.43501C7.68999%206.19501%207.68999%205.80501%207.44999%205.56501L4.18999%202.30501C4.04499%202.16001%204.04499%201.92001%204.18999%201.77501C4.33499%201.63001%204.57499%201.63001%204.71999%201.77501L7.97999%205.03501C8.23499%205.29001%208.37999%205.63501%208.37999%206.00001C8.37999%206.36501%208.23999%206.71001%207.97999%206.96501L4.71999%2010.225C4.64499%2010.295%204.54999%2010.335%204.45499%2010.335Z'%20fill='%234B5654'/%3e%3c/svg%3e`,alt:`arrow right`,style:{width:`12px`,height:`12px`,cursor:`pointer`}}),(0,$.jsx)(XP,{$active:a||r,onClick:!a&&!r?()=>c(-o):void 0,children:i})]},`${e}-${t}`)})}):(0,$.jsxs)(YP,{children:[a&&o&&(0,$.jsxs)(Q.Fragment,{children:[(0,$.jsx)(XP,{$active:r,onClick:r?void 0:a,children:o}),(0,$.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.45499%2010.335C4.35999%2010.335%204.26499%2010.3%204.18999%2010.225C4.04499%2010.08%204.04499%209.84001%204.18999%209.69501L7.44999%206.43501C7.68999%206.19501%207.68999%205.80501%207.44999%205.56501L4.18999%202.30501C4.04499%202.16001%204.04499%201.92001%204.18999%201.77501C4.33499%201.63001%204.57499%201.63001%204.71999%201.77501L7.97999%205.03501C8.23499%205.29001%208.37999%205.63501%208.37999%206.00001C8.37999%206.36501%208.23999%206.71001%207.97999%206.96501L4.71999%2010.225C4.64499%2010.295%204.54999%2010.335%204.45499%2010.335Z'%20fill='%234B5654'/%3e%3c/svg%3e`,alt:`arrow right`,style:{width:`12px`,height:`12px`}})]}),(0,$.jsx)(XP,{$active:!0,onClick:void 0,children:g(s.pathname)})]})}),G,(0,$.jsx)(ZP,{onClick:r?void 0:e,$locked:r,"aria-label":`Close drawer`,children:(0,$.jsx)(_t,{style:{fontSize:16},"aria-hidden":`true`})})]}),(0,$.jsx)(QP,{children:(0,$.jsx)(qn.Provider,{value:!0,children:(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(zo,{loading:!0}),children:(0,$.jsxs)(te,{children:[AO(z.isAdminHost()).map(e=>(0,$.jsx)(ne,{path:e.path,element:e.element},e.path)),(0,$.jsx)(ne,{path:`*`,element:(0,$.jsx)(zo,{loading:!0})})]})})})})]})})},GP=n(ks)`
309  .ant-drawer-header {
310    display: none !important;
311  }
312  .ant-drawer-body {
313    padding: 0 !important;
314    overflow: hidden !important;
315  }
316`,KP=n.div`
317  ${Ce.flexCol()}
318  height: 100%;
319  width: 100%;
320  overflow: hidden;
321`,qP=n.div`
322  ${Ce.flexBetween()}
323  padding: 8px 16px;
324  border-bottom: 1px solid var(--grey-200);
325  flex-shrink: 0;
326  min-height: 40px;
327`,JP=n.div`
328  ${Ce.flexStart()}
329  flex: 1;
330  min-width: 0;
331`,YP=n.div`
332  ${Ce.flexStart()}
333  gap: 4px;
334  flex-wrap: nowrap;
335  min-width: 0;
336`,XP=n.span`
337  font-size: 13px;
338  font-weight: ${({$active:e})=>e?600:400};
339  color: ${({$active:e})=>e?`var(--grey-900)`:`var(--grey-500)`};
340  cursor: ${({$active:e})=>e?`default`:`pointer`};
341  white-space: nowrap;
342  overflow: hidden;
343  text-overflow: ellipsis;
344
345  ${({$active:e})=>!e&&`
346    &:hover {
347      color: var(--grey-700);
348    }
349  `}
350`,ZP=n.button`
351  ${Ce.flexCenter()}
352  background: none;
353  border: none;
354  cursor: ${({$locked:e})=>e?`not-allowed`:`pointer`};
355  color: ${({$locked:e})=>e?`var(--grey-300)`:`var(--grey-600)`};
356  padding: 4px;
357  border-radius: 4px;
358
359  &:hover {
360    background: ${({$locked:e})=>e?`none`:`var(--grey-100)`};
361    color: ${({$locked:e})=>e?`var(--grey-300)`:`var(--grey-900)`};
362  }
363`,QP=n.div`
364  flex: 1;
365  overflow: hidden;
366  position: relative;
367
368  /* Ensure the page fills the drawer content area */
369  > * {
370    height: 100%;
371    width: 100%;
372  }
373`,$P=n.div`
374  ${Ce.flexCenter()}
375  gap: 10px;
376  flex-shrink: 0;
377  margin: 0 16px;
378`,eF=n.span`
379  font-size: 13px;
380  color: var(--grey-600);
381  min-width: 48px;
382  margin: 0 4px;
383  text-align: center;
384  user-select: none;
385`;function tF(){return tF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tF.apply(this,arguments)}var nF=(0,Q.forwardRef)((e,t)=>{let{prefixCls:n=`rc-checkbox`,className:r,style:i,checked:a,disabled:o,defaultChecked:s=!1,type:c=`checkbox`,title:l,onCh
385ange:u,...d}=e,f=(0,Q.useRef)(null),p=(0,Q.useRef)(null),[m,h]=wa(s,a);(0,Q.useImperativeHandle)(t,()=>({focus:e=>{f.current?.focus(e)},blur:()=>{f.current?.blur()},input:f.current,nativeElement:p.current}));let g=X(n,r,{[`${n}-checked`]:m,[`${n}-disabled`]:o});return Q.createElement(`span`,{className:g,title:l,style:i,ref:p},Q.createElement(`input`,tF({},d,{className:`${n}-input`,ref:f,onChange:t=>{o||(`checked`in e||h(t.target.checked),u?.({target:{...e,type:c,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:o,checked:!!m,type:c})))}),rF=Q.createContext(null),iF=e=>{let{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`,a=`@media (hover: hover) and (pointer: fine)`;return[{[`${t}-group`]:{...Gi(e),display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...Gi(e),display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${i}`]:{marginInlineStart:0}},[t]:{...Gi(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:n,height:n,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${Z(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,flex:`none`,...xr(),"&:after":{boxSizing:`border-box`,position:`absolute`,top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:`table`,width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${Z(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}`,...Pe()},[`${t}-input`]:{position:`absolute`,inset:`calc(-1 * (${r}))`,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:Ui(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[a]:{[`
386          ${i}:not(${i}-disabled),
387          ${t}:not(${t}-disabled)
388        `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}}},{[`${t}-checked`]:{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}`,...Pe()},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&: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:`""`},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${i}-disabled`]:{cursor:`not-allowed`},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function aF(e,t){return iF(na(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var oF=Da(`Checkbox`,(e,{prefixCls:t})=>[aF(t,e)]);function sF(e){let t=Q.useRef(null),n=()=>{Ra.cancel(t.current),t.current=null};return[()=>{n(),t.current=Ra(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e?.(r)}]}var cF=Q.forwardRef((e,t)=>{let{prefixCls:n,children:r,indeterminate:i=!1,onMouseEnter:a,onMouseLeave:o,skipGroup:s=!1,disabled:c,rootClassName:l,className:u,style:d,classNames:f,styles:p,name:m,value:h,checked:g,defaultChecked:_,onChange:v,...y}=e,{getPrefixCls:b,direction:x,className:S,style:C,classNames:w,styles:T}=ea(`checkbox`),E=Q.useContext(rF),{isFormItemInput:D}=Q.useContext(De),O=Q.useContext(gn),k=c??E?.disabled??O,[A,j]=wa(_,g),M=A,N=da(e=>{j(e.target.checked),v?.(e),!s&&E?.toggleOption&&E.toggleOption({label:r,value:h})});E&&!s&&(M=E.value.includes(h));let P=Q.useRef(null),F=Ka(t,P);Q.useEffect(()=>{if(!s&&E)return E.registerValue(h),()=>{E.cancelValue(h)}},[h,s]),Q.useEffect(()=>{P.current?.input&&(P.current.input.indeterminate=i)},[i]);let I=b(`checkbox`,n),L=no(I),[R,z]=oF(I,L),B={...y},V={...e,indeterminate:i,disabled:k,checked:M},H=fa(C),U=fa(d),[W,G]=ho([w,f],[T,H,p,U],{props:V}),ee=X(`${I}-wrapper`,{[`${I}-rtl`]:x===`rtl`,[`${I}-wrapper-checked`]:M,[`${I}-wrapper-disabled`]:k,[`${I}-wrapper-in-form-item`]:D},S,u,W.root,l,z,L,R),te=X(W.icon,{[`${I}-indeterminate`]:i},ze,R),[ne,K]=sF(B.onClick);return Q.createElement(Si,{component:`Checkbox`,disabled:k},Q.createElement(`label`,{className:ee,style:G.root,onMouseEnter:a,onMouseLeave:o,onClick:ne},Q.createElement(nF,{...B,name:!s&&E?E.name:m,checked:M,onClick:K,onChange:N,prefixCls:I,className:te,style:G.icon,disabled:k,ref:F,value:h}),eo(r)&&Q.createElement(`span`,{className:X(`${I}-label`,W.label),style:G.label},r)))}),lF=Q.forwardRef((e,t)=>
388{let{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:c,onChange:l,role:u=`group`,...d}=e,{getPrefixCls:f,direction:p}=Q.useContext(ma),[m,h]=wa(n||[],d.value),g=m||[],[_,v]=Q.useState([]),y=Q.useMemo(()=>i.map(e=>Ga(e)||Ji(e)?{label:e,value:e}:e).filter(e=>ta(e)&&ta(e.value)),[i]),b=e=>{v(t=>t.filter(t=>t!==e))},x=e=>{v(t=>[].concat(ia(t),[e]))},S=e=>{let t=g.indexOf(e.value),n=ia(g);t===-1?n.push(e.value):n.splice(t,1),h(n),l?.(n.filter(e=>_.includes(e)).sort((e,t)=>y.findIndex(t=>t.value===e)-y.findIndex(e=>e.value===t)))},C=f(`checkbox`,a),w=`${C}-group`,T=no(C),[E,D]=oF(C,T),O=_a(d,[`value`,`disabled`]),k=Array.isArray(y)&&y.length>0?y.map(e=>Q.createElement(cF,{prefixCls:C,key:e.value.toString(),disabled:`disabled`in e?e.disabled:d.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:X(`${w}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,A=Q.useMemo(()=>({toggleOption:S,value:g,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:b}),[S,g,d.disabled,d.name,x,b]),j=X(w,{[`${w}-rtl`]:p===`rtl`},o,s,D,T,E);return Q.createElement(`div`,{className:j,style:c,role:u,...O,ref:t},Q.createElement(rF.Provider,{value:A},k))}),uF=cF;uF.Group=lF,uF.__ANT_CHECKBOX=!0;var dF=(0,Q.forwardRef)(({css:e,...t},n)=>(0,$.jsx)(fF,{$css:e,...t,ref:n}));dF.displayName=`CRCheckbox`;var fF=n(uF)`
389  ${({$css:e})=>e&&r`
390      ${e}
391    `}
392`,pF=({css:e,...t})=>(0,$.jsx)(mF,{$css:e,...t}),mF=n(ok)`
393  .ant-collapse-item {
394    background-color: white;
395  }
396
397  ${({$css:e})=>e&&r`
398      ${e}
399    `}
400`,hF=({title:e,children:t,tooltipProps:n})=>{let[r,i]=(0,Q.useState)(!1),a=(0,Q.useRef)(null),o=(0,Q.useCallback)(e=>{if(e&&a.current){let e=a.current;for(;e.children.length===1&&e.firstElementChild instanceof HTMLElement;)e=e.firstElementChild;i(e.scrollWidth>e.clientWidth)}else i(!1)},[]);return(0,$.jsx)(me,{title:e,open:r,onOpenChange:o,...n,children:(0,$.jsx)(`div`,{ref:a,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t})})},gF={ctaButton:`ctaButton`,fullscreenOverlay:`fullscreenOverlay`,fullscreenMessage:`fullscreenMessage`,fullscreenContent:`fullscreenContent`},_F=({element:e,onChange:t,value:n,buttonProps:r,...i})=>{let[a,o]=(0,Q.useState)(n??!1),[s,c]=(0,Q.useState)(n);n!==s&&(c(n),o(n??!1));let l=(0,Q.useMemo)(()=>i?.cssMappings??{},[i?.cssMappings]),u=(0,Q.useMemo)(()=>i?.styleMappings??{},[i?.styleMappings]);(0,Q.useEffect)(()=>{a||x()},[a,x]);let d=(0,Q.useCallback)(async()=>{o(!0),t?.(!0);try{document.documentElement.requestFullscreen?await document.documentElement.requestFullscreen():document.documentElement.webkitRequestFullscreen?await document.documentElement.webkitRequestFullscreen():document.documentElement.mozRequestFullScreen?await document.documentElement.mozRequestFullScreen():document.documentElement.msRequestFullscreen&&await document.documentElement.msRequestFullscreen()}catch(e){console.warn(`Failed to enter fullscreen:`,e)}},[t]),f=(0,Q.useCallback)(async()=>{o(!1),t?.(!1),await x()},[t,x]);return(0,Q.useEffect)(()=>{let e=e=>{e.key===`Escape`&&a&&f()},n=()=>{!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)&&a&&(o(!1),t?.(!1))};return a&&(document.addEventListener(`keydown`,e),document.addEventListener(`fullscreenchange`,n),document.addEventListener(`webkitfullscreenchange`,n),document.addEventListener(`mozfullscreenchange`,n),document.addEventListener(`MSFullscreenChange`,n),document.body.style.overflow=`hidden`,document.body.classList.add(`cr-fullscreen-active`)),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`fullscreenchange`,n),document.removeEventListener(`webkitfullscreenchange`,n),document.removeEventListener(`mozfullscreenchange`,n),document.removeEventListener(`MSFullscreenChange`,n),document.body.style.overflow=``,document.body.classList.remove(`cr-fullscreen-active`)}},[a,f,t]),(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Do,{title:`Toggle Fullscreen`,trigger:`hover`,children:(0,$.jsx)(Vj,{disabled:i?.disabled,css:l?.[gF.ctaButton],style:u?.[gF.ctaButton],icon:a?(0,$.jsx)(kM,{}):(0,$.jsx)(MM,{}),onClick:a?f:d,...r})}),a&&(0,$.jsxs)(vF,{$css:l?.[gF.fullscreenOverlay],style:u?.[gF.fullscreenOverlay],onClick:f,children:[(0,$.jsx)(yF,{$css:l?.[gF.fullscreenMessage],style:u?.[gF.fullscreenMessage],children:`Press Esc to exit fullscreen`}),(0,$.jsx)(bF,{$css:l?.[gF.fullscreenContent],style:u?.[gF.fullscreenContent],onClick:e=>e.stopPropagation(),children:e})]})]})},vF=n.div`
401  display: grid;
402  grid-template-columns: 1fr;
403  grid-template-rows: auto 1fr;
404  overflow: hidden;
405  flex-direction: column;
406  background-color: rgba(0, 0, 0, 0.75);
407  backdrop-filter: blur(2px);
408  padding: 36px 56px;
409  position: fixed;
410  height: 100vh;
411  z-index: 9999;
412  width: 100vw;
413  left: 0;
414  top: 0;
415
416  ${({$css:e})=>e&&r`
417      ${e}
418    `}
419`,yF=n.div`
420  color: rgba(255, 255, 255, 0.9);
421  font-size: 14px;
422  text-align: center;
423  padding: 12px 0;
424  user-select: none;
425  pointer-events: none;
426
427  ${({$css:e})=>e&&r`
428      ${e}
429    `}
430`,bF=n.div`
431  display: grid;
432  grid-template-columns: 1fr;
433  grid-template-rows: 1fr;
434  overflow: hidden;
435  height: 100%;
436  width: 100%;
437  position: relative;
438  z-index: 1;
439
440  ${({$css:e})=>e&&r`
441      ${e}
442    `}
443`,xF=(0,Q.forwardRef)(({css:e,...t},n)=>{let r=(0,Q.useMemo)(()=>t?.size??`middle`,[t?.size]),i=(0,Q.useMemo)(()=>t?.allowClear??!1,[t?.allowClear]),a=(0,Q.useMemo)(()=>t?.placeholder??``,[t?.placeholder]);return(0,$.jsx)(SF,{ref:n,size:r,allowClear:i,placeholder:a,$size:r,$css:e,...t})});xF.displayName=`CRPasswordInput`;var SF=n(xs.Password)`
444  ${({$size:e})=>T.inputBoxCss({$size:e})}
445
446  ${({$css:e})=>e&&r`
447      ${e}
448    `}
449`,CF=e=>e===``?!0:(e.match(/\./g)||[]).length>1?!1:/^-?\d*\.?\d*$/.test(e),wF=e=>{if(e===``||e===`.`||e===`-`)return null;let t=Number(e);return isNaN(t)?null:t},TF=(0,Q.forwardRef)(({css:e,value:t,onChange:n,defaultValue:r,min:i,max:a,onBlur:o,...s},c)=>{let l=(0,Q.useMemo)(()=>s?.size??`middle`,[s?.size]),u=(0,Q.useMemo)(()=>s?.allowClear??!1,[s?.allowClear]),d=(0,Q.useMemo)(()=>s?.placeholder??``,[s?.placeholder]),[f,p]=(0,Q.useState)(t==null?r===void 0?``:String(r):String(t)),m=(0,Q.useRef)(f);(0,Q.useEffect)(()=>
449{if(t!=null){let e=String(t);p(e),m.current=e}},[t]);let h=e=>{if(e===null)return!0;let t=typeof i==`number`?i:i===void 0?void 0:Number(i),n=typeof a==`number`?a:a===void 0?void 0:Number(a);return!(t!==void 0&&!isNaN(t)&&e<t||n!==void 0&&!isNaN(n)&&e>n)},g=e=>{let t=e.target.value;if(CF(t)){p(t);let r=wF(t);r!==null&&h(r)&&(m.current=t,n&&n({...e,target:{...e.target,value:String(r)}}))}},_=e=>{let t=e.target.value,r=wF(t);if(r===null||!h(r)){if(p(m.current),n){let t=wF(m.current);n({...e,target:{...e.target,value:t===null?``:String(t)}})}}else m.current=t;o&&o(e)},v=()=>{p(``),m.current=``,n&&n({target:{value:``}})};return(0,$.jsx)(EF,{ref:c,$css:e,...s,size:l,value:f,onChange:g,onBlur:_,allowClear:u,placeholder:d,onClear:v})});TF.displayName=`CRNumberInput`;var EF=n(hs)`
450  ${({$css:e})=>e&&r`
451      ${e}
452    `}
453`,DF={mainDiv:`mainDiv`,input:`input`},OF=(0,Q.forwardRef)(({length:e=6,value:t,defaultValue:n,onChange:r,css:i,...a},o)=>{let[s,c]=(0,Q.useState)(()=>{let r=t??n??``;return Array(e).fill(``).map((e,t)=>r[t]||``)}),l=(0,Q.useRef)(Array(e).fill(null)),u=(0,Q.useMemo)(()=>a?.cssMappings??{},[a?.cssMappings]),d=(0,Q.useMemo)(()=>a?.styleMappings??{},[a?.styleMappings]);(0,Q.useEffect)(()=>{if(t!==void 0){let n=Array(e).fill(``).map((e,n)=>t[n]||``);c(n)}},[t,e]),(0,Q.useEffect)(()=>{l.current[0]?.focus()},[]);let f=(t,n)=>{let i=n.replace(/\D/g,``).slice(0,1);if(i||n===``){let n=[...s];n[t]=i,c(n),i&&t<e-1&&l.current[t+1]?.focus();let a=n.join(``);a.length===e&&r&&r(a)}},p=(t,n)=>{if(n.key===`Backspace`&&!s[t]&&t>0){l.current[t-1]?.focus();let e=[...s];e[t-1]=``,c(e)}else if(n.key===`Backspace`&&s[t]){let e=[...s];e[t]=``,c(e)}n.key===`ArrowLeft`&&t>0?(n.preventDefault(),l.current[t-1]?.focus()):n.key===`ArrowRight`&&t<e-1&&(n.preventDefault(),l.current[t+1]?.focus())},m=t=>{t.preventDefault();let n=t.clipboardData.getData(`text`).replace(/\D/g,``).slice(0,e);if(n.length>0){let t=Array(e).fill(``).map((e,t)=>n[t]||``);c(t);let i=Math.min(n.length-1,e-1);i>=0?l.current[i]?.focus():l.current[0]?.focus(),n.length===e&&r&&r(n)}},h=e=>{let t=l.current[e];t&&t.input&&t.input.select()};return(0,$.jsx)(kF,{$css:u?.[DF.mainDiv],style:d?.[DF.mainDiv],children:Array.from({length:e}).map((e,t)=>(0,Q.createElement)(AF,{...a,key:t,maxLength:1,placeholder:``,allowClear:!1,onPaste:m,value:s[t],onFocus:()=>h(t),css:u?.[DF.input],onKeyDown:e=>p(t,e),onChange:e=>f(t,e.target.value),style:{textAlign:`center`,...a.style,...d?.[DF.input],...d?.[DF.input]},ref:e=>{l.current[t]=e,t===0&&o&&(typeof o==`function`?o(e):o.current=e)}}))})});OF.displayName=`CROtp`;var kF=n.div`
454  display: flex;
455  align-items: center;
456  justify-content: center;
457  gap: 8px;
458
459  ${({$css:e})=>e&&r`
460      ${e}
461    `}
462`,AF=n(hs)`
463  width: 48px !important;
464  height: 48px !important;
465  font-size: 20px !important;
466  font-weight: 600 !important;
467  text-align: center !important;
468`,jF=(0,Q.forwardRef)(({css:e,...t},n)=>{let r=(0,Q.useMemo)(()=>t?.rows??2,[t?.rows]),i=(0,Q.useMemo)(()=>t?.allowClear??!0,[t?.allowClear]),a=(0,Q.useMemo)(()=>t?.placeholder??`Enter a long text here...`,[t?.placeholder]),o=(0,Q.useMemo)(()=>t?.size??`middle`,[t?.size]),s=(0,Q.useMemo)(()=>!!t?.autoSize,[t?.autoSize]);return(0,$.jsx)(MF,{ref:n,rows:r,size:o,allowClear:i,placeholder:a,$size:o,$rows:r,$autoSize:s,$css:e,...t})});jF.displayName=`CRTextarea`;var MF=n(xs.TextArea)`
469  ${({$size:e,$rows:t,$autoSize:n})=>T.inputBoxCss({$size:e,$multiplier:t,$autoSize:n})}
470
471  ${({$css:e})=>e&&r`
472      ${e}
473    `}
474`,NF=`Answer Reach`,PF=`Query Reach`,FF=`Share of Citations`,IF=`Citations per Answer`,LF=(e,t)=>{let n=`Of every AI answer ${e}, the share that cited one of your pages.`;return typeof t==`number`?`${n} ${t.toFixed(1)}% of them cite nothing at all, so they can never reach you.`:n},RF=e=>`Of every source AI answers listed ${e}, the share that pointed to your pages.`,zF=e=>`How many citations a typical AI answer lists ${e}, and how that differs by engine. Two citations of one site count twice.`,BF=(e,t,n)=>{let r=`How many citations a typical ${e} answer lists ${t}.`;
474return typeof n==`number`?`${r} Averaged over ${n.toLocaleString(`en-US`)} ${n===1?`answer`:`answers`}.`:r},VF=(e,t=2)=>e.length===0?`across your tracked queries`:e.length===1?`in ${e[0]}`:e.length<=t?`in ${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`:`across ${e.length} topics`,HF=e=>`For each ${e}: the share of its AI answers that cited one of your pages.`,UF=e=>`For each ${e}: your share of every source its AI answers listed.`,WF=e=>`For each publisher: the share of AI answers ${e} that cited them.`,GF=e=>`For each publisher: their share of every source AI answers listed ${e}.`,KF=e=>`For each domain: its share of every source AI answers listed ${e}.`,qF=e=>`Of every AI answer ${e}, the share that cited this domain.`,JF=e=>`Of every source AI answers listed ${e}, the share that pointed to this domain.`,YF=()=>`For each query: the share of its AI answers that cited this domain.`,XF=()=>`For each query: this domain's share of every source its AI answers listed.`,ZF={PROBLEM_SOLUTION_FIT:`Solving a problem`,CATEGORY_SENTIMENT:`Checking trust`,CATEGORY_VISIBILITY:`Shopping the category`,COMPETITIVE_POSITIONING:`Comparing options`,BRAND_REPUTATION:`Judging a brand`,BRAND_KNOWLEDGE:`Checking the facts`},QF={PROBLEM_SOLUTION_FIT:`Someone describes a problem without naming what fixes it. The earliest point you can reach them.`,CATEGORY_SENTIMENT:`Someone asks whether a kind of product, or the advice about it, can be trusted.`,CATEGORY_VISIBILITY:`Someone is shopping a category and has not settled on anything yet.`,COMPETITIVE_POSITIONING:`Someone is weighing named options against each other.`,BRAND_REPUTATION:`Someone is asking whether a particular brand is any good.`,BRAND_KNOWLEDGE:`Someone wants a straight fact about a product, a policy or a price.`},$F=(e,t)=>(e?ZF[e.toUpperCase()]:void 0)??t,eI=(e,t=1)=>e==null?`-`:`${e.toFixed(t)}%`,tI=e=>eI(e,1),nI=e=>eI(e,2),rI=`Counted over the whole range: every answer in it, pooled.`,iI=`Counted over the whole range. A query reached on any one run counts for all of it, so this sits above most single runs.`,aI=e=>{let t=e.filter(e=>typeof e==`number`);return t.length===0?null:t.reduce((e,t)=>e+t,0)/t.length},oI=e=>e==null?`-`:e.toFixed(1),sI=e=>Math.round(e*10)/10,cI=e=>`${sI(e).toFixed(1)}%`,lI=[`onlyYou`,`both`,`onlyRivals`],uI=[...lI,`nobody`],dI={onlyYou:{background:`var(--teal-600)`,color:`var(--white)`},both:{background:`var(--teal-75)`,color:`var(--teal-700)`},onlyRivals:{background:`var(--teal-300)`,color:`var(--teal-700)`},nobody:{background:`var(--grey-200)`,color:`var(--grey-700)`}},fI={onlyYou:e=>`Only ${e}`,both:e=>`${e} + a competitor`,onlyRivals:()=>`Only a competitor`,nobody:()=>`Nobody named`},pI=e=>Math.max(0,Math.min(100,e)),mI=e=>`${e.toFixed(e>=10||e===0?0:1)}%`,hI=e=>`${e.toFixed(1)}%`,gI=(e,t)=>`${e.toLocaleString()} ${e===1&&t.endsWith(`s`)?t.slice(0,-1):t}`,_I=(e,t)=>t?{...e,onlyYou:sI(e.onlyYou),both:sI(e.you)-sI(e.onlyYou)}:e,vI=150,yI=3,bI=8,xI=8,SI=()=>{let[e,t]=(0,Q.useState)(null),[n,r]=(0,Q.useState)(!1),i=(0,Q.useRef)(null),a=(0,Q.useCallback)(()=>{i.current&&clearTimeout(i.current),i.current=null},[]);(0,Q.useEffect)(()=>a,[a]);let o=(0,Q.useCallback)(e=>{let n=Math.round(e.clientX),a=e.currentTarget.getBoundingClientRect(),o=Math.round(a.top),s=Math.round(a.bottom);t(e=>e&&e.top===o&&Math.abs(e.x-n)<yI?e:{x:n,top:o,bottom:s}),!i.current&&(i.current=setTimeout(()=>r(!0),vI))},[]),s=(0,Q.useCallback)(()=>{a(),r(!1),t(null)},[a]);return(0,Q.useEffect)(()=>{if(n)return window.addEventListener(`scroll`,s,{capture:!0,passive:!0}),()=>window.removeEventListener(`scroll`,s,{capture:!0})},[n,s]),{point:e,open:n&&e!==null,track:o,clear:s}},CI=e=>{let t=(0,Q.useRef)(null),[n,r]=(0,Q.useState)({width:0,height:0});(0,Q.useLayoutEffect)(()=>r({width:t.current?.offsetWidth??0,height:t.current?.offsetHeight??0}),[e.children]);let i=n.width/2,a=i+bI,o=i>0?Math.min(Math.max(e.point.x,a),window.innerWidth-a):e.point.x,s=n.height>0&&e.point.top-n.height-xI<bI;return(0,RO.createPortal)((0,$.jsx)(DI,{ref:t,role:`tooltip`,$below:s,style:{left:o,top:s?e.point.bottom+xI:e.point.top-xI,"--tip-arrow-x":`${e.point.x-o+i}px`},children:e.children}),document.body)},wI=(e,t,n,r=!1)=>{let i=pI(Number(e??0)),a=pI(Number(n??0)),o=pI(Math.min(Number(t??0),i,a)),s=pI(i-o),c=pI(a-o),l=s+o+c;return r?{onlyYou:s,both:o,onlyRivals:c,nobody:pI(100-l),namedPct:l,you:i}:l<=0?{onlyYou:0,both:0,onlyRivals:0,nobody:0,namedPct:0,you:i}:{onlyYou:s/l*100,both:o/l*100,onlyRivals:c/l*100,nobody:0,namedPct:l,you:i}},TI=e=>{let{brandName:t=`you`,noun:n=`citations`,total:r,compact:i=!1,hideSegmentLabels:a=!1,minLabelPct:o=12,card:s=!1}=e,c=!!e.headToHead||s,l=s?jI:AI,u=!!e.includeNobody||c,d=!a&&!i,f=(0,Q.useMemo)(()=>wI(e.youPct,e.bothPct,e.rivalsPct,u),[e.youPct,e.rivalsPct,e.bothPct,u]),p=u?uI:lI,m=s||u&&!c?hI:mI,h=c&&!s?f:_I(f,u),g=c?MI:p,_=n=>e.labels?.[n]??(c?NI:fI)[n](t),v=SI(),y=r?Math.round(f.namedPct/100*r):null,b=u?r??null:y,x=e=>b===null?null:Math.round(e/100*b),S=(0,$.jsxs)(qI,{children:[(0,$.jsx)(JI,{children:e.tipHeading??(u?`Of ${b===null?`all `:`all ${b.toLocaleStr
474ing()} `}${n}`:`Of ${y===null?``:`${y.toLocaleString()} `}${n} naming ${t} or a rival`)}),g.map(e=>{let t=x(f[e]);return(0,$.jsxs)(YI,{children:[(0,$.jsx)(XI,{$bucket:e,$color:c?l[e]:void 0}),(0,$.jsx)(ZI,{children:_(e)}),(0,$.jsx)(QI,{"data-mention-split-share":``,children:m(h[e])}),t!==null&&(0,$.jsx)($I,{children:c?gI(t,n):t.toLocaleString()})]},e)})]}),C=(0,$.jsx)(GI,{"data-mention-split-bar":``,$compact:i,children:p.filter(e=>f[e]>0).map(e=>(0,$.jsx)(KI,{$pct:f[e],$bucket:e,$compact:i,children:d&&f[e]>=o?m(h[e]):``},e))});return(0,$.jsxs)(EI,{onMouseEnter:v.track,onMouseMove:v.track,onMouseLeave:v.clear,...s?{tabIndex:0,role:`img`,"aria-label":`${b===null?``:`Of all ${gI(b,n)}: `}${g.map(e=>{let t=x(f[e]);return`${_(e)} ${m(h[e])}${t===null?``:`, ${gI(t,n)}`}`}).join(`; `)}`,onFocus:e=>{let t=e.currentTarget.getBoundingClientRect();v.track({clientX:t.left+t.width/2,currentTarget:e.currentTarget})},onClick:e=>v.open?v.clear():v.track(e),onKeyDown:e=>{e.key===`Escape`&&v.clear()},onBlur:v.clear}:{},children:[c?(e.youPct===null||e.youPct===void 0)&&(e.rivalsPct===null||e.rivalsPct===void 0)?(0,$.jsx)(FI,{"data-mention-head-to-head":``,children:`-`}):(0,$.jsx)(PI,{shares:f,card:s,colors:l,endLabels:s?[_(`onlyYou`),_(`onlyRivals`)]:null}):i?(0,$.jsxs)(OI,{children:[(0,$.jsx)(kI,{$bucket:`onlyYou`,children:mI(f.onlyYou)}),C,(0,$.jsx)(kI,{$bucket:`onlyRivals`,children:mI(f.onlyRivals)})]}):C,v.open&&v.point&&(0,$.jsx)(CI,{point:v.point,children:S})]})},EI=n.div`
475  width: 100%;
476
477  &:focus-visible {
478    outline: 2px solid var(--teal-300);
479    outline-offset: 4px;
480    border-radius: 4px;
481  }
482`,DI=n.div`
483  position: fixed;
484  z-index: 1070;
485  /* A fixed box with a left offset is sized against what is left of the
486     window, so near the right edge the heading wrapped and the box grew. */
487  width: max-content;
488  transform: ${e=>e.$below?`translate(-50%, 0)`:`translate(-50%, -100%)`};
489  padding: 8px 12px;
490  border-radius: 8px;
491  background: var(--grey-900);
492  color: var(--white);
493  pointer-events: none;
494  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
495
496  /* The arrow, as a corner of the surface turned to point down. */
497  &::after {
498    content: "";
499    position: absolute;
500    left: var(--tip-arrow-x, 50%);
501    ${e=>e.$below?`top: -4px;`:`bottom: -4px;`}
502    width: 10px;
503    height: 10px;
504    transform: translateX(-50%) rotate(45deg);
505    border-radius: 2px;
506    background: inherit;
507  }
508`,OI=n.div`
509  ${Ce.flexRow()}
510  align-items: center;
511  gap: 8px;
512  width: 100%;
513  /* The right-hand share sat against the next column's first pixel, so the
514     two read as one run of characters. The bar gives up the width: it is a
515     proportion, and it reads the same a little shorter. */
516  padding-right: 28px;
517`,kI=n.span`
518  flex-shrink: 0;
519  min-width: 34px;
520  font-size: var(--text-secondary-size);
521  font-weight: 600;
522  font-variant-numeric: tabular-nums;
523  color: ${e=>e.$bucket===`onlyYou`?`var(--teal-600)`:`var(--teal-400)`};
524
525  &:last-child {
526    text-align: right;
527  }
528`,AI={onlyYou:`color-mix(in srgb, var(--success-500) 50%, transparent)`,both:`var(--mention-both)`,nobody:`var(--mention-neither)`,onlyRivals:`color-mix(in srgb, var(--error-500) 50%, transparent)`},jI={onlyYou:`var(--teal-600)`,both:`var(--teal-100)`,nobody:`var(--mention-card-neither)`,onlyRivals:`var(--mention-card-rival)`},MI=[`onlyYou`,`both`,`nobody`,`onlyRivals`],NI={onlyYou:e=>`Only ${e}`,both:()=>`Both`,nobody:()=>`Neither`,onlyRivals:()=>`Only a competitor`},PI=({shares:e,colors:t,card:n=!1,endLabels:r=null})=>{let i=mI(e.onlyYou),a=mI(e.onlyRivals),o=i===a,s=!o&&e.onlyYou>e.onlyRivals;return(0,$.jsxs)(II,{"data-mention-head-to-head":``,$card:n,children:[(0,$.jsxs)(LI,{$side:`left`,$strong:n||s,$card:n,children:[r&&(0,$.jsx)(RI,{children:r[0]}),i]}),(0,$.jsx)(zI,{$card:n,children:MI.filter(t=>e[t]>0).map(r=>(0,$.jsx)(BI,{"data-band":r,$pct:e[r],$color:t[r],$card:n},r))}),(0,$.jsxs)(LI,{$side:`right`,$strong:n||!o&&!s,$card:n,children:[r&&(0,$.jsx)(RI,{children:r[1]}),a]})]})},FI=n.span`
529  color: var(--grey-500);
530`,II=n.div`
531  ${Ce.flexRow()}
532  align-items: center;
533  gap: ${e=>e.$card?12:8}px;
534  width: 100%;
535  /* In a column the bar stops short of the next one, so the two never read
536     as one; a card has its own edge. */
537  padding-right: ${e=>e.$card?0:24}px;
538`,LI=n.span`
539  ${Ce.flexRow()}
540  align-items: center;
541  gap: 4px;
542  /* On a card a long label may shrink, so the bar between keeps its width. */
543  flex-shrink: ${e=>+!!e.$card};
544  min-width: ${e=>e.$card?0:36}px;
545  white-space: nowrap;
546  font-size: var(--text-normal-size);
547  font-weight: ${e=>e.$strong?e.$card?700:600:400};
548  font-variant-numeric: tabular-nums;
549  /* Each number hugs the bar it labels. */
550  justify-content: ${e=>e.$side===`left`?`flex-end`:`flex-start`};
551  color: ${e=>e.$card?`var(--grey-700)`:`var(--grey-900)`};
552`,RI=n.span`
553  min-width: 0;
554  overflow: hidden;
555  text-overflow: ellipsis;
556  font-weight: 400;
557`,zI=n.div`
558  ${Ce.flexRow()}
559  align-items: stretch;
560  flex: 1;
561  min-width: ${e=>e.$card?64:0}px;
562  height: ${e=>e.$card?13:6}px;
563
564  & > :first-child {
565    border-top-left-radius: 2.5px;
566    border-bottom-left-radius: 2.5px;
567  }
568
569  & > :last-child {
570    border-top-right-radius: 2.5px;
571    border-bottom-right-radius: 2.5px;
572  }
573`,BI=n.div`
574  flex: ${e=>e.$pct} 1 0px;
575  min-width: 2px;
576  height: 100%;
577  /* background-color, not the background shorthand: the shorthand resets
578     background-clip and the color would fill the transparent gap again. */
579  background-color: ${e=>e.$color};
580
581  /* The gap (2px, 4px on a card) is each later band's transparent left edge.
582     It sits inside the box (border-box), so the floor adds it to keep color. */
583  & + & {
584    min-width: ${e=>e.$card?8:4}px;
585    border-left: ${e=>e.$card?4:2}px solid transparent;
586    background-clip: padding-box;
587  }
588`,VI=({brandName:e=`you`})=>(0,$.jsx)(eL,{children:MI.map(t=>(0,$.jsxs)(tL,{children:[(0,$.jsx)(HI,{$color:AI[t]}),NI[t](e)]},t))}),HI=n.span`
589  width: 12px;
590  height: 12px;
591  border-radius: 3px;
592  background: ${e=>e.$color};
593`,UI=e=>{let{brandName:t=`you`,shares:n,includeNobody:r=!1,labels:i}=e,a=n?_I(wI(n.youPct,n.bothPct,n.rivalsPct,r),r):null,o=r?hI:mI;return(0,$.jsx)(eL,{children:(r?uI:lI).map(e=>(0,$.jsxs)(tL,{children:[(0,$.jsx)(nL,{$bucket:e}),i?.[e]??fI[e](t),a?(0,$.jsx)(WI,{children:o(a[e])}):null]},e))})},WI=n.span`
594  font-weight: 600;
595  color: var(--grey-900);
596`,GI=n.div`
597  ${Ce.flexRow()}
598  align-items: stretch;
599  width: 100%;
600  height: ${e=>e.$compact?8:20}px;
601  border-radius: 4px;
602  /* Compact separates its segments with real space rather than a hairline,
603     so the bands read apart down a column. The track's own fill would show
604     through the gaps, so it goes. */
605  gap: ${e=>e.$compact?4:0}px;
606  overflow: hidden;
607  background: ${e=>e.$compact?`transparent`:`var(--grey-200)`};
608`,KI=n.div`
609  ${Ce.flexRow()}
610  align-items: center;
611  justify-content: center;
612  width: ${e=>e.$pct}%;
613  height: 100%;
614  overflow: hidden;
615  font-size: 11px;
616  font-weight: 600;
617  line-height: 1;
618  white-space: nowrap;
619  background: ${e=>dI[e.$bucket].background};
620  color: ${e=>dI[e.$bucket].color};
621
622  border-radius: ${e=>e.$compact?`999px`:`0`};
623`,qI=n.div`
624  ${Ce.flexCol()}
625  gap: 3px;
626  min-width: 190px;
627`,JI=n.div`
628  font-size: 11px;
629  font-weight: 600;
630  opacity: 0.75;
631  margin-bottom: 1px;
632`,YI=n.div`
633  ${Ce.flexRow()}
634  align-items: center;
635  gap: 6px;
636  font-size: 12px;
637  line-height: 1.5;
638  white-space: nowrap;
639`,XI=n.span`
640  width: 8px;
641  height: 8px;
642  flex-shrink: 0;
643  border-radius: 2px;
644  background: ${e=>e.$color??dI[e.$bucket].background};
645  /* The two pale swatches vanish against the dark tooltip surface. */
646  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
647`,ZI=n.span`
648  flex: 1;
649  overflow: hidden;
650  text-overflow: ellipsis;
651`,QI=n.span`
652  font-weight: 600;
653  font-variant-numeric: tabular-nums;
654`,$I=n.span`
655  min-width: 34px;
656  text-align: right;
657  opacity: 0.7;
658  font-variant-numeric: tabular-nums;
659`,eL=n.div`
660  ${Ce.flexRow()}
661  align-items: center;
662  flex-wrap: wrap;
663  gap: 4px 14px;
664`,tL=n.div`
665  ${Ce.flexRow()}
666  align-items: center;
667  gap: 6px;
668  font-size: 12px;
669  color: var(--grey-700);
670`,nL=n.span`
671  width: 12px;
672  height: 12px;
673  border-radius: 3px;
674  background: ${e=>dI[e.$bucket].background};
675  /* The lightest swatch is near-white and would vanish on the card. */
676  border: 1px solid var(--grey-200);
677`,rL=n.div`
678  display: flex;
679  align-items: center;
680  gap: 8px;
681  padding: 8px 12px;
682  border-radius: 8px;
683  border: 1px solid var(--info-300);
684  background: var(--info-100);
685  color: var(--grey-800);
686  font-size: 13px;
687  line-height: 1.4;
688`,iL=n.span`
689  flex: 1;
690  min-width: 0;
691`,aL=n.span`
692  display: inline-block;
693  max-width: 100%;
694  vertical-align: bottom;
695  overflow: hidden;
696  text-overflow: ellipsis;
697  white-space: nowrap;
698  font-weight: 600;
699`,oL=n.span`
700  display: inline-flex;
701  align-items: center;
702  color: var(--info-600);
703  flex-shrink: 0;
704`,sL=n.div`
705  margin-left: auto;
706  flex-shrink: 0;
707`,cL=({sourceDomain:e,scopeNote:t,onClear:n})=>e?(0,$.jsxs)(rL,{role:`status`,children:[(0,$.jsx)(oL,{"aria-hidden":`true`,children:(0,$.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,$.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`2`}),(0,$.jsx)(`path`,{d:`M12 8v4M12 16h.01`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`})]})}),(0,$.jsxs)(iL,{children:[`Showing only the answers that cited `,(0,$.jsx)(aL,{title:e,children:e}),t?`. ${t}`:``]}),(0,$.jsx)(sL,{children:(0,$.jsx)(ys,{type:`text`,size:`small`,onClick:n,componentName:`clearSourceScope`,children:`Clear Source Scope`})})]}):null,lL=n.div`
708  width: 4px;
709  height: 15px;
710  border-radius: 49px;
711  border: 1px solid var(--grey-350);
712  background-color: ${({$filled:e})=>e?`var(--teal-500)`:`white`};
713  flex-shrink: 0;
714`,uL=n.div`
715  display: flex;
716  align-items: center;
717  justify-content: flex-start;
718  gap: 4px;
719`,dL=({value:e})=>(0,$.jsx)(uL,{children:[1,2,3,4,5].map(t=>(0,$.jsx)(lL,{$filled:t<=e},t))}),fL=n.div`
720  display: flex;
721  flex-direction: column;
722  gap: 4px;
723  max-width: 360px;
724  padding: 2px 0;
725  font-size: 12px;
726  line-height: 1.4;
727`,pL=n.span`
728  font-weight: 500;
729  color: var(--grey-100);
730`,mL=n.span`
731  color: var(--grey-300);
732  white-space: pre-line;
733`,hL=1,gL=({volume:e})=>
733{if(!e)return(0,$.jsx)(Do,{title:`Volume not computed yet.`,placement:`top`,children:(0,$.jsx)(`span`,{"aria-label":`Volume not computed yet`,children:(0,$.jsx)(dL,{value:hL})})});let t=(0,$.jsxs)(fL,{children:[(0,$.jsx)(pL,{children:e.chip}),(0,$.jsx)(mL,{children:e.explanation})]});return(0,$.jsx)(Do,{title:t,placement:`top`,children:(0,$.jsx)(`span`,{"aria-label":e.chip,children:(0,$.jsx)(dL,{value:e.likert})})})};function _L(e){let[t,n]=Va(e);return Q.useEffect(()=>{n(e,{ms:e.length?0:10})},[e]),t}var vL=e=>{let{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,i=`${t}-show-help`,a=`${t}-show-help-item`;return{[i]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[a]:{overflow:`hidden`,transition:`${[`height`,`opacity`,`transform`].map(e=>`${e} ${n} ${r}`).join(`, `)} !important`,[`&${a}-appear, &${a}-enter`]:{transform:`translateY(-5px)`,opacity:0,"&-active":{transform:`translateY(0)`,opacity:1}},[`&${a}-leave-active`]:{transform:`translateY(-5px)`}}}}},yL=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${Z(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, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Z(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),bL=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},xL=e=>{let{componentCls:t}=e;return{[t]:{...Gi(e),...yL(e),[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":{...bL(e,e.controlHeightSM)},"&-large":{...bL(e,e.controlHeightLG)}}}},SL=e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:o,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e,[f]=go(i,`grid`);return{[t]:{...Gi(e),marginBottom:d,verticalAlign:`top`,"&-with-help":{transition:`none`},[`&-hidden,
734        &-hidden${i}-row`]:{display:`none`},[`${t}-label`]:{flexGrow:0,overflow:`hidden`,whiteSpace:`nowrap`,textAlign:`end`,verticalAlign:`middle`,"&-left":{textAlign:`start`},"&-wrap":{overflow:`unset`,lineHeight:e.lineHeight,whiteSpace:`unset`,"> label":{verticalAlign:`middle`,textWrap:`balance`}},"> label":{position:`relative`,display:`inline-flex`,alignItems:`center`,maxWidth:`100%`,height:c,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:`top`},[`&${t}-required`]:{"&::before":{display:`inline-block`,marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:`sans-serif`,lineHeight:1,content:`"*"`},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:`none`}}},[`${t}-optional`]:{display:`inline-block`,marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:`none`}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:`help`,writingMode:`horizontal-tb`,marginInlineStart:e.marginXXS},"&::after":{content:`":"`,position:`relative`,marginBlock:0,marginInlineStart:l,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:`"\\a0"`}}},[`${t}-control`]:{[f(`display`)]:`flex`,flexDirection:`column`,flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:`100%`}
734,"&-input":{position:`relative`,display:`flex`,alignItems:`center`,minHeight:e.controlHeight,"&-content":{flex:`auto`,maxWidth:`100%`,[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:`flex`,alignItems:`center`}}}},[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:le,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},CL=e=>({padding:e.verticalLabelPadding,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),wL=e=>({...CL(e),margin:e.verticalLabelMargin}),TL=e=>{let[t]=go(e.antCls,`form`);return{...CL(e),[t(`item-label-margin`)]:e.verticalLabelMargin}},EL=e=>{let{antCls:t,formItemCls:n}=e;return{[`${n}-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`}},[`> ${n}-row > ${t}-col-24${n}-label,
735        > ${n}-row > ${t}-col-xl-24${n}-label`]:wL(e)}}},DL=e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:`flex`,flexWrap:`wrap`,[`${n}-inline`]:{flex:`none`,marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:`nowrap`},[`> ${n}-label,
736        > ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},OL=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n}:not(${n}-vertical) > ${n}-row > ${n}-label`]:wL(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},kL=e=>{let{componentCls:t,formItemCls:n,antCls:r,verticalLabelHeight:i}=e,[a,o]=go(r,`form`);return{[n]:{[a(`item-label-margin`)]:`initial`},[`${n}-label`]:{margin:o(`item-label-margin`)},[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:`column`},[`${n}-label > label`]:{height:i},[`${n}-control`]:{width:`100%`,flex:`none`},[`> ${n}-row > ${n}-label,
737        > ${n}-row > ${r}-col-24${n}-label,
738        > ${n}-row > ${r}-col-xl-24${n}-label`]:TL(e)},[`@media (max-width: ${Z(e.screenXSMax)})`]:[OL(e),{[t]:{[`${n}:not(${n}-horizontal):not(${n}-vertical)`]:{[`> ${n}-row > ${r}-col-xs-24${n}-label`]:wL(e)}}}],[`@media (max-width: ${Z(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal):not(${n}-vertical)`]:{[`> ${n}-row > ${r}-col-sm-24${n}-label`]:wL(e)}}},[`@media (max-width: ${Z(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal):not(${n}-vertical)`]:{[`> ${n}-row > ${r}-col-md-24${n}-label`]:wL(e)}}},[`@media (max-width: ${Z(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal):not(${n}-vertical)`]:{[`> ${n}-row > ${r}-col-lg-24${n}-label`]:wL(e)}}}}},AL=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:e.labelHeight??`auto`,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),jL=(e,t)=>na(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),ML=Da(`Form`,(e,{rootPrefixCls:t})=>{let n=jL(e,t);return[xL(n),SL(n),vL(n),EL(n),DL(n),kL(n),LO(n),le]},AL,{order:-1e3}),NL=[];function PL(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var FL=({help:e,helpStatus:t,errors:n=NL,warnings:r=NL,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:s}=Q.useContext(Ae),{classNames:c,styles:l}=Q.useContext(pe),u=`${s}-item-explain`,d=no(s),[f,p]=ML(s,d),m=Q.useMemo(()=>oe(s),[s]),h=_L(n),g=_L(r),_=ta(e),v=Q.useMemo(()=>_?[PL(e,`help`,t)]:[].concat(ia(h.map((e,t)=>PL(e,`error`,`error`,t))),ia(g.map((e,t)=>PL(e,`warning`,`warning`,t)))),[e,t,_,h,g]),y=Q.useMemo(()=>{let e={};return v.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),v.map((t,n)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[v]),b={};return a&&(b.id=`${a}_help`),Q.createElement(xa,{motionDeadline:m.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:o},e=>{let{className:t,style:n}=e;return Q.createElement(`div`,{...b,className:X(u,t,c?.help,p,d,i,f),style:{...l?.help,...n}},Q.createElement(sa,{keys:y,...oe(s),motionName:`${s}-show-help-item`,component:!1},e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return Q.createElement(`div`,{key:t,className:X(i,c?.helpItem,{[`${u}-${r}`]:r}),style:{...l?.helpItem,...a}},n)}))})},IL=e=>typeof e==`object`&&!!e&&e.nodeType===1,LL=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,RL=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return LL(n.overflowY,t)||LL(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},zL=(e,t,n,r,i,a,o,s)=>
738a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,BL=e=>e.parentElement??(e.getRootNode().host||null),VL=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!IL(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;IL(u)&&s(u);){if(u=BL(u),u===c){l.push(u);break}u!=null&&u===document.body&&RL(u)&&!RL(document.documentElement)||u!=null&&RL(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,{scrollX:p,scrollY:m}=window,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),{top:x,right:S,bottom:C,left:w}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),T=r===`start`||r===`nearest`?_-x:r===`end`?y+C:_+h/2-x+C,E=i===`center`?b+g/2-w+S:i===`end`?v+S:b-w,D=[];for(let e=0;e<l.length;e++){let t=l[e],{height:a,width:o,top:s,right:u,bottom:x,left:S}=t.getBoundingClientRect();if(n===`if-needed`&&_>=0&&b>=0&&y<=f&&v<=d&&(t===c&&!RL(t)||_>=s&&y<=x&&b>=S&&v<=u))return D;let C=getComputedStyle(t),w=parseInt(C.borderLeftWidth,10),O=parseInt(C.borderTopWidth,10),k=parseInt(C.borderRightWidth,10),A=parseInt(C.borderBottomWidth,10),j=0,M=0,N=`offsetWidth`in t?t.offsetWidth-t.clientWidth-w-k:0,P=`offsetHeight`in t?t.offsetHeight-t.clientHeight-O-A:0,F=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,I=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)j=r===`start`?T:r===`end`?T-f:r===`nearest`?zL(m,m+f,f,O,A,m+T,m+T+h,h):T-f/2,M=i===`start`?E:i===`center`?E-d/2:i===`end`?E-d:zL(p,p+d,d,w,k,p+E,p+E+g,g),j=Math.max(0,j+m),M=Math.max(0,M+p);else{j=r===`start`?T-s-O:r===`end`?T-x+A+P:r===`nearest`?zL(s,x,a,O,A+P,T,T+h,h):T-(s+a/2)+P/2,M=i===`start`?E-S-w:i===`center`?E-(S+o/2)+N/2:i===`end`?E-u+k+N:zL(S,u,o,w,k+N,E,E+g,g);let{scrollLeft:e,scrollTop:n}=t;j=I===0?0:Math.max(0,Math.min(n+j/I,t.scrollHeight-a/I+P)),M=F===0?0:Math.max(0,Math.min(e+M/F,t.scrollWidth-o/F+N)),T+=n-j,E+=e-M}D.push({el:t,top:j,left:M})}return D},HL=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function UL(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>typeof e==`object`&&typeof e.behavior==`function`)(t))return t.behavior(VL(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of VL(e,HL(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var WL=[`parentNode`],GL=`form_item`;function KL(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function qL(e,t){if(!e.length)return;let n=e.join(`_`);return t?`${t}_${n}`:WL.includes(n)?`${GL}_${n}`:n}function JL(e,t,n,r,i,a){let o=r;return a===void 0?n.validating?o=`validating`:e.length?o=`error`:t.length?o=`warning`:(n.touched||i&&n.validated)&&(o=`success`):o=a,o}function YL(e){return KL(e).join(`_`)}function XL(e,t){let n=t.getFieldInstance(e),r=Ya(n);if(r)return r;let i=qL(KL(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function ZL(e){let[t]=ie(),n=Q.useRef({}),r=Q.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{let r=YL(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{let{focus:n,...i}=t,a=XL(e,r);a&&(UL(a,{scrollMode:`if-needed`,block:`nearest`,...i}),n&&r.focusField(e))},focusField:e=>{let t=r.getFieldInstance(e);fo(t?.focus)?t.focus():XL(e,r)?.focus?.()},getFieldInstance:e=>{let t=YL(e);return n.current[t]}},[e,t]);return[r]}var QL=Q.forwardRef((e,t)=>
738{let n=Q.useContext(gn),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:c,style:l,styles:u,classNames:d,tooltip:f,labelAlign:p,labelWrap:m}=ea(`form`),{prefixCls:h,className:g,rootClassName:_,size:v,disabled:y=n,form:b,colon:x,labelAlign:S,labelWrap:C,labelCol:w,wrapperCol:T,layout:E=`horizontal`,scrollToFirstError:D,requiredMark:O,onFinishFailed:k,name:A,style:j,feedbackIcons:M,variant:N,classNames:P,styles:F,tooltip:I,...L}=e,R=Ca(v),z=Q.useContext(On),B=Q.useMemo(()=>O===void 0?a===void 0||a:O,[O,a]),V=x??o,H=S??p,U=C??m,W={...f,...I},G=r(`form`,h),ee=no(G),[te,ne]=ML(G,ee),K={...e,size:R,disabled:y,layout:E,colon:V,requiredMark:B,labelAlign:H,labelWrap:U},q=fa(l),J=fa(j),[ie,ae]=ho([d,P],[u,q,F,J],{props:K}),oe=X(G,`${G}-${E}`,{[`${G}-hide-required-mark`]:B===!1,[`${G}-rtl`]:i===`rtl`,[`${G}-large`]:R===`large`,[`${G}-small`]:R===`small`},ne,ee,te,c,g,_,ie.root),[se]=ZL(b),{__INTERNAL__:ce}=se;ce.name=A;let le=Q.useMemo(()=>({name:A,labelAlign:H,labelCol:w,labelWrap:U,wrapperCol:T,layout:E,colon:V,requiredMark:B,itemRef:ce.itemRef,form:se,feedbackIcons:M,tooltip:W,classNames:ie,styles:ae}),[A,H,U,w,T,E,V,B,se,M,ie,ae,W]),ue=Q.useRef(null);Q.useImperativeHandle(t,()=>({...se,nativeElement:ue.current?.nativeElement}));let de=(e,t)=>{if(e){let n={block:`nearest`};Ki(e)&&(n={...n,...e}),se.scrollToField(t,n)}},fe=e=>{if(k?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(D!==void 0){de(D,t);return}s!==void 0&&de(s,t)}};return Q.createElement(re.Provider,{value:N},Q.createElement(wn,{disabled:y},Q.createElement(Vi.Provider,{value:R},Q.createElement(he,{validateMessages:z},Q.createElement(pe.Provider,{value:le},Q.createElement(ke,{status:!0},Q.createElement(Oe,{id:A,...L,name:A,onFinishFailed:fe,form:se,ref:ue,style:ae?.root,className:oe})))))))}),$L=e=>{if(fo(e))return e;let t=Zi(e);return t.length<=1?t[0]:t},eR=()=>{let{status:e,errors:t=[],warnings:n=[]}=Q.useContext(De);return{status:e,errors:t,warnings:n}};eR.Context=De;function tR(e){let[t,n]=Q.useState(e),r=Q.useRef(null),i=Q.useRef([]),a=Q.useRef(!1);Q.useEffect(()=>(a.current=!1,()=>{a.current=!0,Ra.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=Ra(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}var nR=()=>{let{itemRef:e}=Q.useContext(pe),t=Q.useRef({});return(n,r)=>{let i=r&&Ki(r)&&Xa(r),a=n.join(`_`);return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Ua(e(n),i)),t.current.ref}},rR=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],iR=[].concat(rR).reverse(),aR=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)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),oR=e=>{let t=e,n=[].concat(rR).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r<n.length-1){let e=`screen${i}Max`;if(!(t[o]<=t[e]))throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);let a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e},sR=(e,t)=>{if(t){for(let n of rR)if(e[n]&&t?.[n]!==void 0)return t[n]}},cR=()=>{let[,e]=Bi(),t=aR(oR(e));return Q.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);fo(i.addEventListener)&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];fo(t?.mql.removeEventListener)&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])},lR=(0,Q.createContext)({});function uR(e){return e===`auto`?`1 1 auto`:Ji(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var dR=Q.forwardRef((e,t)=>
738{let{getPrefixCls:n,direction:r}=Q.useContext(ma),{gutter:i,wrap:a}=Q.useContext(lR),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:m,style:h,...g}=e,_=n(`col`,o),v=n(),[y,b]=HN(_),[x]=go(v,`col`),S={},C={};iR.forEach(t=>{let n={},i=e[t];Ji(i)?n.span=i:Ki(i)&&(n=i||{}),delete g[t],C={...C,[`${_}-${t}-${n.span}`]:ta(n.span),[`${_}-${t}-order-${n.order}`]:n.order||n.order===0,[`${_}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${_}-${t}-push-${n.push}`]:n.push||n.push===0,[`${_}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${_}-rtl`]:r===`rtl`},(n.flex||n.flex===0)&&(C[`${_}-${t}-flex`]=!0,S[x(`${t}-flex`)]=uR(n.flex))});let w=X(_,{[`${_}-${s}`]:s!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${l}`]:l,[`${_}-push-${u}`]:u,[`${_}-pull-${d}`]:d},f,C,y,b),T={};return i?.[0]&&(T.paddingInline=Ji(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),(m||m===0)&&(T.flex=uR(m),a===!1&&!T.minWidth&&(T.minWidth=0)),Q.createElement(`div`,{...g,style:{...T,...h,...S},className:w,ref:t},p)});function fR(e=!0,t={}){let n=(0,Q.useRef)(t),[,r]=jO(),i=cR();return _o(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[e]),n.current}function pR(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(Ki(e))for(let r=0;r<rR.length;r++){let a=rR[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var mR=(e,t)=>{if(Ga(e))return e;if(Ki(e))for(let n=0;n<rR.length;n++){let r=rR[n];if(!t||!t[r])continue;let i=e[r];if(i!==void 0)return i}return``},hR=Q.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=Q.useContext(ma),p=fR(!0,null),m=mR(i,p),h=mR(r,p),g=d(`row`,n),[_,v]=BN(g),y=pR(c,p),b=X(g,{[`${g}-no-wrap`]:l===!1,[`${g}-${h}`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:f===`rtl`},a,_,v),x={};y?.[0]&&(x.marginInline=Ji(y[0])?`${y[0]/-2}px`:`calc(${y[0]} / -2)`);let[S,C]=y;x.rowGap=C;let w=Q.useMemo(()=>({gutter:[S,C],wrap:l}),[S,C,l]);return Q.createElement(lR.Provider,{value:w},Q.createElement(`div`,{...u,className:b,style:{...x,...o},ref:t},s))}),gR=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:`flex`}}}},_R=po([`Form`,`item-item`],(e,{rootPrefixCls:t})=>gR(jL(e,t))),vR=24,yR=e=>{let{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:c,extra:l,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:m}=e,h=`${t}-item`,g=Q.useContext(pe),{classNames:_,styles:v}=g,y=Q.useMemo(()=>{let e={...i||g.wrapperCol||{}};return m===null&&!r&&!i&&g.labelCol&&[void 0].concat(ia(iR)).forEach(t=>{let n=t?[t]:[],r=ga(g.labelCol,n),i=Ki(r)?r:{},a=ga(e,n),o=Ki(a)?a:{};`span`in i&&!(`offset`in o)&&i.span<vR&&(e=Hi(e,[].concat(n,[`offset`]),i.span))}),e},[i,g.wrapperCol,g.labelCol,m,r]),b=X(`${h}-control`,y.className),x=Q.useMemo(()=>{let{labelCol:e,wrapperCol:t,...n}=g;return n},[g]),S=Q.useRef(null),[C,w]=Q.useState(0),T=eo(l);_o(()=>{T&&S.current?w(S.current.clientHeight):w(0)},[l,T]);let E=Q.createElement(`div`,{className:`${h}-control-input`},Q.createElement(`div`,{className:X(`${h}-control-input-content`,_?.content),style:v?.content},a)),D=Q.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=f!==null||o.length||s.length?Q.createElement(Ae.Provider,{value:D},Q.createElement(FL,{fieldId:d,errors:o,warnings:s,help:u,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:p})):null,k={};d&&(k.id=`${d}_extra`);let A=T?Q.createElement(`div`,{...k,className:X(`${h}-extra`,_?.extra),style:v?.extra,ref:S},l):null,j=O||A?Q.createElement(`div`,{className:`${h}-additional`,style:f?{minHeight:f+C}:{}},O,A):null,M=c&&c.mark===`pro_table_render`&&c.render?c.render(e,{input:E,errorList:O,extra:A}):Q.createElement(Q.Fragment,null,E,j);return Q.createElement(pe.Provider,{value:x},Q.createElement(dR,{...y,className:b},M),Q.createElement(_R,{prefixCls:t}))},bR=(e,t)=>eo(e)?Ki(e)&&!(0,Q.isValidElement)(e)?{...t,...e}:{...t,title:e}:null,xR=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:o,requiredMark:s,tooltip:c,vertical:l})=>{let[u]=lt(`Form`),{labelAlign:d,labelCol:f,labelWrap:p,colon:m,classNames:h,styles:g,tooltip:_}=Q.useContext(pe);if(!eo(t))return null;let v=r||f||{},y=i||d,b=`${e}-item-label`,x=X(b,y===`left`&&`${b}-left`,v.className,{[`${b}-wrap`]:!!p}),S=t,C=a===!0||m!==!1&&a!==!1;C&&!l&&typeof t==`string`&&t.trim()&&(S=t.replace(/[:|:]\s*$/,``));let w=bR(c,_);if(w){let t=Q.createElement(me,{...w},Q.createElement(`span`,{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},w.icon||w.children||Q.createElement(qM,null)));S=Q.createElement(Q.Fragment,null,S,t)}let T=s===`optional`,E=fo(s),D=s===!1;E?S=s(S,{required:!!o}):T&&!o&&(S=Q.createElement(Q.Fragment,null,S,Q.createElement(`span`,{className:`${e}-item-optional`},u?.optional||Ur.Form?.optional)));let O;D?O=`hidden`:(T||E)&&(O=`optional`);let k=X(h?.label,{[`${e}-item-required`]:o,[`${e}-item-required-mark-${O}`]:O,[`${e}-item-no-colon`]:!C});return Q.createElement(dR,{...v,className:x},Q.createElement(`label`,{htmlFor:n,className:k,style:g?.label,title:typeof t==`string`?t:void 0},S))},SR={success:dn,warning:li,error:kt,validating:Nt};function CR({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:a,meta:o,noStyle:s,name:c}){let l=`${a}-item`,{feedbackIcons:u}=Q.useContext(pe),d=JL(t,n,o,null,!!r,i),{isFormItemInput:f,status:p,hasFeedback:m,feedbackIcon:h,name:g}=Q.useContext(De),_=Q.useMemo(()=>{let e;if(r){let i=r!==!0&&r.icons||u,a=d&&i?.({status:d,errors:t,warnings:n}
738)?.[d],o=d?SR[d]:null;e=a!==!1&&o?Q.createElement(`span`,{className:X(`${l}-feedback-icon`,`${l}-feedback-icon-${d}`)},a||Q.createElement(o,null)):null}let i={status:d||``,errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:e,isFormItemInput:!0,name:c};return s&&(i.status=(d??p)||``,i.isFormItemInput=f,i.hasFeedback=!!(r??m),i.feedbackIcon=r===void 0?h:i.feedbackIcon,i.name=c??g),i},[d,t,n,r,u,s,c,f,p,l,m,h,g]);return Q.createElement(De.Provider,{value:_},e)}function wR(e){let{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:o,warnings:s,validateStatus:c,meta:l,hasFeedback:u,hidden:d,children:f,fieldId:p,required:m,isRequired:h,onSubItemMetaChange:g,layout:_,name:v,...y}=e,b=`${t}-item`,{requiredMark:x,layout:S}=Q.useContext(pe),C=_||S,w=C===`vertical`,T=Q.useRef(null),E=_L(o),D=_L(s),O=ta(a),k=!!(O||E.length||D.length),A=!!T.current&&ao(T.current),[j,M]=Q.useState(null);_o(()=>{if(k&&T.current){let e=getComputedStyle(T.current);M(Number.parseInt(e.marginBottom,10))}},[k,A]);let N=e=>{!e&&!k&&M(null)},P=((e=!1)=>JL(e?E:l.errors,e?D:l.warnings,l,``,!!u,c))(),F=X(b,n,r,{[`${b}-with-help`]:O||E.length||D.length,[`${b}-has-feedback`]:P&&u,[`${b}-has-success`]:P===`success`,[`${b}-has-warning`]:P===`warning`,[`${b}-has-error`]:P===`error`,[`${b}-is-validating`]:P===`validating`,[`${b}-hidden`]:d,[`${b}-${C}`]:C});return Q.createElement(`div`,{className:F,style:i,ref:T},Q.createElement(hR,{className:`${b}-row`,..._a(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`.split(`.`))},Q.createElement(xR,{htmlFor:p,...e,requiredMark:x,required:m??h,prefixCls:t,vertical:w}),Q.createElement(yR,{...e,...l,errors:E,warnings:D,prefixCls:t,status:P,help:a,marginBottom:j,onErrorVisibleChanged:N},Q.createElement(de.Provider,{value:g},Q.createElement(CR,{prefixCls:t,meta:l,errors:l.errors,warnings:l.warnings,hasFeedback:u,validateStatus:P,name:v},f)))),!!j&&Q.createElement(`div`,{className:`${b}-margin-offset`,style:{marginBottom:-j}}))}var TR=`__SPLIT__`;function ER(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],i=t[n];return r===i||fo(r)||fo(i)})}var DR=Q.memo(e=>e.children,(e,t)=>ER(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function OR(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function kR(e){let{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:c,required:l,label:u,messageVariables:d,trigger:f=`onChange`,validateTrigger:p,hidden:m,help:h,layout:g}=e,{getPrefixCls:_}=Q.useContext(ma),{name:v}=Q.useContext(pe),y=$L(c),b=fo(y),x=Q.useContext(de),{validateTrigger:S}=Q.useContext(q),C=ta(p)?p:S,w=ta(t),T=_(`form`,a),E=no(T),[D,O]=ML(T,E);Ta(`Form.Item`);let k=Q.useContext(be),A=Q.useRef(null),[j,M]=tR({}),[N,P]=co(()=>OR()),F=e=>{let t=k?.getKey(e.name);if(P(e.destroy?OR():e,!0),n&&h!==!1&&x){let n=e.name;if(e.destroy)n=A.current||n;else if(t!==void 0){let[e,r]=t;n=[e].concat(ia(r)),A.current=n}x(e,n)}},I=(e,t)=>{M(n=>{let r={...n},i=[].concat(ia(e.name.slice(0,-1)),ia(t)).join(TR);return e.destroy?delete r[i]:r[i]=e,r})},[L,R]=Q.useMemo(()=>{let e=ia(N.errors),t=ia(N.warnings);return Object.values(j).forEach(n=>{e.push.apply(e,ia(n.errors||[])),t.push.apply(t,ia(n.warnings||[]))}),[e,t]},[j,N.errors,N.warnings]),z=nR();function B(i,a,o){return n&&!m?Q.createElement(CR,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:N,errors:L,warnings:R,noStyle:!0,name:t},i):Q.createElement(wR,{key:`row`,...e,className:X(r,O,E,D),prefixCls:T,fieldId:a,isRequired:o,errors:L,warnings:R,meta:N,onSubItemMetaChange:I,layout:g,name:t},i)}if(!w&&!b&&!i)return B(y);let V={};return typeof u==`string`?V.label=u:t&&(V.label=String(t)),d&&(V={...V,...d}),Q.createElement(ce,{...e,messageVariables:V,trigger:f,validateTrigger:C,onMetaChange:F},(n,r,a)=>{let c=KL(t).length&&r?r.name:[],u=qL(c,v),d=l===void 0?s?.some(e=>{if(Ki(e)&&e.required&&!e.warningOnly)return!0;
738if(fo(e)){let t=e(a);return t?.required&&!t?.warningOnly}return!1}):l,p={...n},m=null;if(Array.isArray(y)&&w)m=y;else if((!b||(o||i)&&!w)&&(!i||b||w)){if(Q.isValidElement(y)){let t={...y.props,...p};t.id||=u;let n=eo(e.extra);if(h||L.length>0||R.length>0||n){let e=[];(h||L.length>0)&&e.push(`${u}_help`),n&&e.push(`${u}_extra`),t[`aria-describedby`]=e.join(` `)}L.length>0&&(t[`aria-invalid`]=`true`),d&&(t[`aria-required`]=`true`),Aa(y)&&(t.ref=z(c,y)),new Set([].concat(ia(KL(f)),ia(KL(C)))).forEach(e=>{t[e]=(...t)=>{p[e]?.(...t),y.props[e]?.(...t)}});let r=[t[`aria-required`],t[`aria-invalid`],t[`aria-describedby`]];m=Q.createElement(DR,{control:p,update:y,childProps:r},$a(y,t))}else m=b&&(o||i)&&!w?y(a):y}return B(m,u,d)})}var AR=kR;AR.useStatus=eR;var jR=({prefixCls:e,children:t,...n})=>{let{getPrefixCls:r}=Q.useContext(ma),i=r(`form`,e),a=Q.useMemo(()=>({prefixCls:i,status:`error`}),[i]);return Q.createElement(J,{...n},(e,n,r)=>Q.createElement(Ae.Provider,{value:a},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:r.errors,warnings:r.warnings})))};function MR(){let{form:e}=Q.useContext(pe);return e}var NR=QL;NR.Item=AR,NR.List=jR,NR.ErrorList=FL,NR.useForm=ZL,NR.useFormInstance=MR,NR.useWatch=fe,NR.Provider=he;var PR=Q.createContext(void 0),FR=PR.Provider,IR=Q.createContext(void 0),LR=IR.Provider,RR=e=>{let{componentCls:t,antCls:n,lineWidth:r,borderRadius:i,borderRadiusLG:a,borderRadiusSM:o,calc:s}=e,c=`${t}-group`,l=`${t}-button-wrapper`,u=`${n}-badge`,d=e=>({[`> ${u}`]:{width:`auto`},[`> ${u} > ${l}`]:{width:`100%`},[`> ${u}:not(:last-child)`]:{marginBlockEnd:s(r).mul(-1).equal()},[`> ${u} > ${l}:not(:last-child)`]:{marginBlockEnd:0},[`> ${u}:first-child > ${l}`]:{borderStartStartRadius:e,borderStartEndRadius:e,borderEndStartRadius:0,borderEndEndRadius:0},[`> ${u}:last-child > ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:e,borderEndEndRadius:e},[`> ${u}:not(:first-child):not(:last-child) > ${l}`]:{borderRadius:0},[`> ${u}:first-child:last-child > ${l}`]:{borderRadius:e}});return{[c]:{...Gi(e),display:`inline-block`,fontSize:0,[`&${c}-rtl`]:{direction:`rtl`},[`&${c}-block`]:{display:`flex`},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:`none`},"&-vertical":{display:`flex`,flexDirection:`column`,rowGap:e.marginXS,[`&:has(> ${l}, > ${u} > ${l})`]:{rowGap:0},[`${t}-wrapper`]:{marginInlineEnd:0},...d(i),[`&${c}-large`]:{...d(a)},[`&${c}-small`]:{...d(o)}}}}},zR=e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:i,radioSize:a,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:c,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:m,dotColorDisabled:h,dotSize:g,lineType:_,radioColor:v,radioBgColor:y}=e;return{[`${t}-wrapper`]:{...Gi(e),display:`inline-flex`,alignItems:`baseline`,marginInlineStart:0,marginInlineEnd:n,cursor:`pointer`,"&:last-child":{marginInlineEnd:0},[`&${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]:{...Gi(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:`calc(${a} * 1px)`,height:`calc(${a} * 1px)`,backgroundColor:l,border:`${Z(d)} ${_} ${u}`,borderRadius:`50%`,transition:`all ${s}`,flex:`none`,"&:after":{content:`""`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%) scale(0)`,width:`calc(${g} * 1px)`,height:`calc(${g} * 1px)`,backgroundColor:v,borderRadius:`50%`,transformOrigin:`50% 50%`,opacity:0,transition:`all ${o} ${c}`},[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:Ui(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:`transparent`},[`${t}-checked`]:{backgroundColor:y,borderColor:r,"&::after":{transform:`translate(-50%, -50%)`,opacity:1}},[`${t}-disabled`]:{[`&, ${t}
738-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:f,borderColor:u,"&::after":{backgroundColor:h}},[`${t}-disabled + span`]:{color:p,cursor:`not-allowed`},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}},BR=e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationMid:s,buttonPaddingInline:c,fontSize:l,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:_,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:b,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:T,colorPrimaryActive:E,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:k,calc:A}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:l,lineHeight:Z(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${Z(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineEndWidth:i,cursor:`pointer`,transition:[`color`,`background-color`,`box-shadow`].map(e=>`${e} ${s}`).join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:last-child)":{marginInlineEnd:A(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${Z(i)} ${a} ${o}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:Z(A(f).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:p,paddingInline:A(m).sub(i).equal(),paddingBlock:0,lineHeight:Z(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},[`${r}-group-vertical > &`]:{marginInlineEnd:0,borderRadius:0,"&:not(:last-child)":{marginBlockEnd:A(i).mul(-1).equal()},"&:first-child":{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h}},[`${r}-group-vertical${r}-group-large > &`]:{"&:first-child":{borderStartStartRadius:_,borderStartEndRadius:_},"&:last-child":{borderEndStartRadius:_,borderEndEndRadius:_},"&:first-child:last-child":{borderRadius:_}},[`${r}-group-vertical${r}-group-small > &`]:{"&:first-child":{borderStartStartRadius:g,borderStartEndRadius:g},"&:last-child":{borderEndStartRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g}},"&:hover":{position:`relative`,color:w},"&:has(:focus-visible)":Ui(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:v,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:D,borderColor:D,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:k,borderColor:k}},"&-disabled":{color:b,backgroundColor:x,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:b,backgroundColor:x,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:o,boxSh
738adow:`none`},"&-block":{flex:1,textAlign:`center`}}}},VR=Da(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Z(n)} ${t}`,i=na(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[RR(i),zR(i),BR(i)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e,h=a;return{radioSize:h,dotSize:t?h-8:h-(4+i)*2,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},{unitless:{radioSize:!0,dotSize:!0}}),HR=Q.forwardRef((e,t)=>{let n=Q.useContext(PR),r=Q.useContext(IR),{getPrefixCls:i,direction:a,className:o,style:s,classNames:c,styles:l}=ea(`radio`),u=Q.useRef(null),d=Ua(t,u),{isFormItemInput:f}=Q.useContext(De),p=t=>{e.onChange?.(t),n?.onChange?.(t)},{prefixCls:m,className:h,rootClassName:g,children:_,style:v,title:y,classNames:b,styles:x,checked:S,...C}=e,w=i(`radio`,m),T=(n?.optionType||r)===`button`,E=T?`${w}-button`:w,D=no(w),[O,k]=VR(w,D),A={...C},j=Q.useContext(gn),M=`checked`in e,N=S;n&&(A.name=n.name,A.onChange=p,N=e.value===n.value,A.disabled=A.disabled??n.disabled),(M||n)&&(A.checked=N),A.disabled=A.disabled??j;let P={...e,...A,checked:N},F=fa(s),I=fa(v),[L,R]=ho([c,b],[l,F,x,I],{props:P}),z=X(`${E}-wrapper`,{[`${E}-wrapper-checked`]:N,[`${E}-wrapper-disabled`]:A.disabled,[`${E}-wrapper-rtl`]:a===`rtl`,[`${E}-wrapper-in-form-item`]:f,[`${E}-wrapper-block`]:!!n?.block},o,h,g,L.root,O,k,D),[B,V]=sF(A.onClick);return Q.createElement(Si,{component:`Radio`,disabled:A.disabled},Q.createElement(`label`,{className:z,style:R.root,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:B},Q.createElement(nF,{...A,className:X(L.icon,{[ze]:!T}),style:R.icon,type:`radio`,prefixCls:E,ref:d,onClick:V}),eo(_)?Q.createElement(`span`,{className:X(`${E}-label`,L.label),style:R.label},_):null))}),UR=Q.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=Q.useContext(ma),{name:i}=Q.useContext(De),a=Ja(YL(i)),{prefixCls:o,className:s,rootClassName:c,options:l,buttonStyle:u=`outline`,disabled:d,children:f,size:p,style:m,id:h,optionType:g,name:_=a,defaultValue:v,value:y,block:b=!1,onChange:x,onMouseEnter:S,onMouseLeave:C,onFocus:w,onBlur:T,orientation:E,vertical:D,role:O=`radiogroup`}=e,[k,A]=wa(v,y),j=Q.useCallback(e=>{let t=k,n=e.target.value;A(n),n!==t&&x?.(e)},[k,A,x]),M=n(`radio`,o),N=`${M}-group`,P=no(M),[F,I]=VR(M,P),L=f;l&&l.length>0&&(L=l.map(e=>typeof e==`string`||Ji(e)?Q.createElement(HR,{key:e.toString(),prefixCls:M,disabled:d,value:e,checked:k===e},e):Q.createElement(HR,{key:`radio-group-value-options-${e.value}`,prefixCls:M,disabled:e.disabled||d,value:e.value,checked:k===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required,onChange:e.onChange},e.label)));let R=Ca(p),[,z]=La(E,D),B=X(N,`${N}-${u}`,{[`${N}-large`]:R===`large`,[`${N}-small`]:R===`small`,[`${N}-rtl`]:r===`rtl`,[`${N}-block`]:b},s,c,F,I,P),V=Q.useMemo(()=>({onChange:j,value:k,disabled:d,name:_,optionType:g,block:b}),[j,k,d,_,g,b]);return Q.createElement(`div`,{...ha(e,{aria:!0,data:!0}),role:O,className:X(B,{[`${M}-group-vertical`]:z}),style:m,onMouseEnter:S,onMouseLeave:C,onFocus:w,onBlur:T,id:h,ref:t},Q.createElement(FR,{value:V},L))}),WR=Q.memo(UR),GR=Q.forwardRef((e,t)=>{let{getPrefixCls:n}=Q.useContext(ma),{prefixCls:r,...i}=e,a=n(`radio`,r);return Q.createElement(LR,{value:`button`},Q.createElement(HR,{prefixCls:a,...i,type:`radio`,ref:t}))}),KR=HR;KR.Button=GR,KR.Group=WR,KR.__ANT_RADIO=!0;var qR=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekday=r()})(e,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,`day`).add(e,`day`)}}}))})),JR=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),YR=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),XR=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekYear=r()})(e,(function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return t===1&&e===11?n+1:e===0&&t>=52?n-1:n}}}))})),ZR=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`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(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),QR=e(qR()),$R=e(JR()),ez=e(YR()),tz=e(XR()),nz=e(ZR());Uj.default.extend(Wj.default),Uj.default.extend(nz.default),Uj.default.extend(QR.default),Uj.default.extend($R.default),Uj.default.extend(ez.default),Uj.default.extend(tz.default),Uj.default.extend((e,t)=>{let n=t.prototype,r=n.format;n.format=function(e){let t=(e||``).replace(`Wo`,`wo`);return r.bind(this)(t)}});var rz={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`},iz=e=>rz[e]||e.split(`_`)[0],az=e=>!Uj.default.isDayjs(e)||e instanceof Uj.default?e:(0,Uj.default)(e.valueOf()),oz={getNow:()=>{let e=(0,Uj.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:e=>(0,Uj.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`]),getEndDate:e=>az(e).endOf(`month`),getWeekDay:e=>{let t=az(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>az(e).year(),getMonth:e=>az(e).month(),getDate:e=>az(e).date(),getHour:e=>az(e).hour(),getMinute:e=>az(e).minute(),getSecond:e=>az(e).second(),getMillisecond:e=>az(e).millisecond(),addYear:(e,t)=>
738az(e).add(t,`year`),addMonth:(e,t)=>az(e).add(t,`month`),addDate:(e,t)=>az(e).add(t,`day`),setYear:(e,t)=>az(e).year(t),setMonth:(e,t)=>az(e).month(t),setDate:(e,t)=>az(e).date(t),setHour:(e,t)=>az(e).hour(t),setMinute:(e,t)=>az(e).minute(t),setSecond:(e,t)=>az(e).second(t),setMillisecond:(e,t)=>az(e).millisecond(t),isAfter:(e,t)=>az(e).isAfter(az(t)),isValidate:e=>az(e).isValid(),locale:{getWeekFirstDay:e=>(0,Uj.default)().locale(iz(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>az(t).locale(iz(e)).weekday(0),getWeek:(e,t)=>az(t).locale(iz(e)).week(),getShortWeekDays:e=>(0,Uj.default)().locale(iz(e)).localeData().weekdaysMin(),getShortMonths:e=>(0,Uj.default)().locale(iz(e)).localeData().monthsShort(),format:(e,t,n)=>az(t).locale(iz(e)).format(n),parse:(e,t,n)=>{let r=iz(e);for(let e=0;e<n.length;e+=1){let i=n[e],a=t;if(i.includes(`wo`)||i.includes(`Wo`)){let e=a.split(`-`)[0],t=a.split(`-`)[1],n=(0,Uj.default)(e,`YYYY`).startOf(`year`).locale(r);for(let e=0;e<=52;e+=1){let r=n.add(e,`week`);if(r.format(`Wo`)===t)return r}return null}let o=(0,Uj.default)(a,i,!0).locale(r);if(o.isValid())return o}return null}}};function sz(e,t){return e===void 0?t?`bottomRight`:`bottomLeft`:e}var cz=Q.createContext(null),lz={bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function uz({popupElement:e,popupStyle:t,popupClassName:n,popupAlign:r,transitionName:i,getPopupContainer:a,children:o,range:s,placement:c,builtinPlacements:l=lz,direction:u,visible:d,onClose:f}){let{prefixCls:p}=Q.useContext(cz),m=`${p}-dropdown`,h=sz(c,u===`rtl`);return Q.createElement(va,{showAction:[],hideAction:[`click`],popupPlacement:h,builtinPlacements:l,prefixCls:m,popupMotion:{motionName:i},popup:e,popupAlign:r,popupVisible:d,popupClassName:X(n,{[`${m}-range`]:s,[`${m}-rtl`]:u===`rtl`}),popupStyle:t,stretch:`minWidth`,getPopupContainer:a,onPopupVisibleChange:e=>{e||f()}},o)}function dz(e,t,n=`0`){let r=String(e);for(;r.length<t;)r=`${n}${r}`;return r}function fz(e){return e==null?[]:Array.isArray(e)?e:[e]}function pz(e,t,n){let r=[...e];return r[t]=n,r}function mz(e,t){let n={};return(t||Object.keys(e)).forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function hz(e,t,n){if(n)return n;switch(e){case`time`:return t.fieldTimeFormat;case`datetime`:return t.fieldDateTimeFormat;case`month`:return t.fieldMonthFormat;case`year`:return t.fieldYearFormat;case`quarter`:return t.fieldQuarterFormat;case`week`:return t.fieldWeekFormat;default:return t.fieldDateFormat}}function gz(e,t,n){let r=t.find(t=>e[t]);return n===r?void 0:e[r]}function _z(e){return mz(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}function vz(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function yz(e,t,n){return vz(t,n,()=>Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10))}function bz(e,t,n){return vz(t,n,()=>e.getYear(t)===e.getYear(n))}function xz(e,t){return Math.floor(e.getMonth(t)/3)+1}function Sz(e,t,n){return vz(t,n,()=>bz(e,t,n)&&xz(e,t)===xz(e,n))}function Cz(e,t,n){return vz(t,n,()=>bz(e,t,n)&&e.getMonth(t)===e.getMonth(n))}function wz(e,t,n){return vz(t,n,()=>bz(e,t,n)&&Cz(e,t,n)&&e.getDate(t)===e.getDate(n))}function Tz(e,t,n){return vz(t,n,()=>e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n))}function Ez(e,t,n){return vz(t,n,()=>wz(e,t,n)&&Tz(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n))}function Dz(e,t,n,r){return vz(n,r,()=>bz(e,e.locale.getWeekFirstDate(t,n),e.locale.getWeekFirstDate(t,r))&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r))}function Oz(e,t,n,r,i){switch(i){case`date`:return wz(e,n,r);case`week`:return Dz(e,t.locale,n,r);case`month`:return Cz(e,n,r);case`quarter`:return Sz(e,n,r);case`year`:return bz(e,n,r);case`decade`:return yz(e,n,r);case`time`:return Tz(e,n,r);default:return Ez(e,n,r)}}function kz(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Az(e,t,n,r,i){return Oz(e,t,n,r,i)?!0:e.isAfter(n,r)}function jz(e,t,n){let r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-
738a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function Mz(e,{generateConfig:t,locale:n,format:r}){return e?typeof r==`function`?r(e):t.locale.format(n.locale,e,r):``}function Nz(e,t,n){let r=t,i=[`getHour`,`getMinute`,`getSecond`,`getMillisecond`];return[`setHour`,`setMinute`,`setSecond`,`setMillisecond`].forEach((t,a)=>{r=n?e[t](r,e[i[a]](n)):e[t](r,0)}),r}function Pz(e,t,n,r){let i=Q.useMemo(()=>e||((e,r)=>{let i=e;return t&&r.type===`date`?t(i,r.today):n&&r.type===`month`?n(i,r.locale):r.originNode}),[e,n,t]);return Q.useCallback((e,t)=>i(e,{...t,range:r}),[i,r])}function Fz(e,t,n=[]){let[r,i]=Q.useState([!1,!1]);return[Q.useMemo(()=>r.map((r,i)=>{if(r)return!0;let a=e[i];return a?!!(!n[i]&&!a||a&&t(a,{activeIndex:i})):!1}),[e,r,t,n]),(e,t)=>{i(n=>pz(n,t,e))}]}function Iz(e,t,n,r,i){let a=[];e&&a.push(i?`hh`:`HH`),t&&a.push(`mm`),n&&a.push(`ss`);let o=a.join(`:`);return r&&(o+=`.SSS`),i&&(o+=` A`),o}function Lz(e,t,n,r,i,a){let{fieldDateTimeFormat:o,fieldDateFormat:s,fieldTimeFormat:c,fieldMonthFormat:l,fieldYearFormat:u,fieldWeekFormat:d,fieldQuarterFormat:f,yearFormat:p,cellYearFormat:m,cellQuarterFormat:h,dayFormat:g,cellDateFormat:_}=e,v=Iz(t,n,r,i,a);return{...e,fieldDateTimeFormat:o||`YYYY-MM-DD ${v}`,fieldDateFormat:s||`YYYY-MM-DD`,fieldTimeFormat:c||v,fieldMonthFormat:l||`YYYY-MM`,fieldYearFormat:u||`YYYY`,fieldWeekFormat:d||`gggg-wo`,fieldQuarterFormat:f||`YYYY-[Q]Q`,yearFormat:p||`YYYY`,cellYearFormat:m||`YYYY`,cellQuarterFormat:h||`[Q]Q`,cellDateFormat:_||g||`D`}}function Rz(e,t){let{showHour:n,showMinute:r,showSecond:i,showMillisecond:a,use12Hours:o}=t;return Q.useMemo(()=>Lz(e,n,r,i,a,o),[e,n,r,i,a,o])}function zz(e,t,n){return n??t.some(t=>e.includes(t))}var Bz=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function Vz(e){let t=mz(e,Bz),{format:n,picker:r}=e,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=typeof i==`object`?i.format:i),r===`time`&&(t.format=i),[t,i]}function Hz(e){return e&&typeof e==`string`}function Uz(e,t,n,r){return[e,t,n,r].some(e=>e!==void 0)}function Wz(e,t,n,r,i){let a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){let e=[a,o,s].some(e=>e===!1),t=[a,o,s].some(e=>e===!0),n=e?!0:!t;a??=n,o??=n,s??=n}return[a,o,s,i]}function Gz(e){let{showTime:t}=e,[n,r]=Vz(e),i=t&&typeof t==`object`?t:{},a={defaultOpenValue:i.defaultOpenValue||i.defaultValue,...n,...i},{showMillisecond:o}=a,{showHour:s,showMinute:c,showSecond:l}=a,u=Uz(s,c,l,o);return[s,c,l]=Wz(u,s,c,l,o),[a,{...a,showHour:s,showMinute:c,showSecond:l,showMillisecond:o},a.format,r]}function Kz(e,t,n,r,i){if(e===`datetime`||e===`time`){let a=r,o=hz(e,i,null),s=[t,n];for(let e=0;e<s.length;e+=1){let t=fz(s[e])[0];if(Hz(t)){o=t;break}}let{showHour:c,showMinute:l,showSecond:u,showMillisecond:d}=a,{use12Hours:f}=a,p=zz(o,[`a`,`A`,`LT`,`LLL`,`LTS`],f),m=Uz(c,l,u,d);m||(c=zz(o,[`H`,`h`,`k`,`LT`,`LLL`]),l=zz(o,[`m`,`LT`,`LLL`]),u=zz(o,[`s`,`LTS`]),d=zz(o,[`SSS`])),[c,l,u]=Wz(m,c,l,u,d);let h=t||Iz(c,l,u,d,p);return{...a,format:h,showHour:c,showMinute:l,showSecond:u,showMillisecond:d,use12Hours:p}}return null}function qz(e,t,n){if(t===!1)return null;let r=t&&typeof t==`object`?t:{};return eo(r.clearIcon)?r.clearIcon:eo(n)?n:Q.createElement(`span`,{className:`${e}-clear-btn`})}function Jz(e,t,n,r,i){return da((a,o)=>!!(n&&n(a,o)||r&&e.isAfter(r,a)&&!Oz(e,t,r,a,o.type)||i&&e.isAfter(a,i)&&!Oz(e,t,i,a,o.type)))}function Yz(e,t,n){return Q.useMemo(()=>{let r=fz(hz(e,t,n)),i=r[0],a=typeof i==`object`&&i.type===`mask`?i.format:null;return[r.map(e=>typeof e==`string`||typeof e==`function`?e:e.format),a]},[e,t,n])}function Xz(e,t,n){return typeof e[0]==`function`||n?!0:t}function Zz(e,t,n,r){return da((i,a)=>{let o={type:t,...a};if(delete o.activeIndex,!e.isValidate(i)||n&&n(i,o))return!0;if((t===`date`||t===`time`)&&r){let t=a&&a.activeIndex===1?`end`:`start`,{disabledHours:n,disabledMinutes:s,disabledSeconds:c,disabledMilliseconds:l}=r.disabledTime?.(i,t,{from:o.from})||{},{disabledHours:u,disabledMinutes:d,disabledSeconds:f}=r,p=n||u,m=s||d,h=c||f,g=e.getHour(i),_=e.getMinute(i),v=e.getSecond(i),y=e.getMillisecond(i);if(p&&p().includes(g)||m&&m(g).includes(_)||h&&h(g,_).includes(v)||l&&l(g,_,v).includes(y))return!0}return!1})}function Qz(e,t=!1){return Q.useMemo(()=>{let n=e&&fz(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function $z(e,t){let{generateConfig:n,locale:r,picker:i=`date`,prefixCls:a=`rc-picker`,previewValue:o=`hover`,styles:s={},classNames:c={},order:l=!0,components:u={},inputRender:d,allowClear:f,clearIcon:p,needConfirm:m,multiple:h,format:g,inputReadOnly:_,disabledDate:v,minDate:y,maxDate:b,showTime:x,value:S,defaultValue:C,pickerValue:w,defaultPickerValue:T}=e,E=Qz(S),D=Qz(C),O=Qz(w),k=Qz(T),A=i===`date`&&x?`datetime`:i,j=A===`time`||A===`datetime`,M=j||h,N=m??j,[P,F,I,L]=Gz(e),R=Rz(r,F),z=Q.useMemo(()=>Kz(A,I,L,P,R),[A,I,L,P,R]),B=Q.useMemo(()=>({...e,previewValue:o,prefixCls:a,locale:R,picker:i,styles:s,classNames:c,order:l,components:{input:d,...u},clearIcon:qz(a,f,p),showTime:z,value:E,defaultValue:D,pickerValue:O,defaultPickerValue:k,...t?.()}),[e]),[V,H]=Yz(A,R,g),U=Xz(V,_,h),W=Jz(n,r,v,y,b),G=Zz(n,i,W,z);return[Q.useMemo(()=>({...B,needConfirm:N,inputReadOnly:U,disabledDate:W}),[B,N,U,W]),A,M,V,H,G]}function eB(e,t){return t.some(t=>!!t&&(t===e||t.contains(e)))}function tB(e,t,n,r){let[i,a]=Q.useState(null),o=da((e,n,r)=>{a(e),t?.(e,r)}),s=da((t,i,o)=>{i===`panel`&&o.target.hasAttribute(`disabled`)?o.currentTarget.focu
738s({preventScroll:!0}):e(o.relatedTarget)||(a(null),r?.(t,o)),n?.(t,o)});return[i!==null,o,s]}function nB(e,t,n,r,i){let a=da(()=>{i(!0)});Q.useEffect(()=>{e!==null&&t&&(a(),n.current?.focus(e))},[e,t,a]),_o(()=>{if(e===null)return;let t=[n.current?.startInput,n.current?.endInput],i=t[e]?.getRootNode()?.activeElement??document.activeElement;eB(i,[r.current])||t.some((t,n)=>n!==e&&eB(i,[t]))&&t[e]?.focus()})}function rB(e,t,n){let[r,i]=wa(t,e),[,a]=Q.useState({}),o=da(e=>{i(e),a({})}),s=Q.useRef(e),c=Q.useRef(void 0),l=()=>{Ra.cancel(c.current)},u=da(()=>{o(s.current),n&&r!==s.current&&n(s.current)}),d=da((e,t)=>{l(),s.current=e,e||t?u():c.current=Ra(u)});return Q.useEffect(()=>l,[]),[r,d]}function iB(e,t,n=[],r){let[i,a]=rB(!n.every(e=>e)&&e,t||!1,r);function o(e,t={}){(!t.inherit||i)&&a(e,t.force)}return[i,o]}function aB(e){let t=Q.useRef(null);return Q.useImperativeHandle(e,()=>({nativeElement:t.current?.nativeElement,focus:e=>{t.current?.focus(e)},blur:()=>{t.current?.blur()}})),t}function oB(e,t){return Q.useMemo(()=>e||(t?(ba(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([e,t])=>({label:e,value:t}))):[]),[e,t])}function sB(e,t,n,r,i,a,o){return(s,c)=>{let[l,u]=e,d={...c,from:gz(e,r,n)};return n===1&&t[0]&&l&&!Oz(i,a,l,s,d.type)&&i.isAfter(l,s)||n===0&&t[1]&&u&&!Oz(i,a,u,s,d.type)&&i.isAfter(s,u)?!0:o?.(s,d)}}function cB(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 lB=[];function uB(e,t,n,r,i,a,o,s,c,l=lB,u=lB,d=lB,f,p,m){let h=s===`time`,g=o||0,[_,v]=n,y=g===0?_:v,b=g===0?v:_,x=t=>{let n=e.getNow();h&&(n=Nz(e,n));let r=t===0?_:v;return l[t]||r||n},[S,C]=u,[w,T]=wa(()=>x(0),S),[E,D]=wa(()=>x(1),C),O=Q.useMemo(()=>{let t=[w,E][g];return h?t:Nz(e,t,d[g])},[h,w,E,g,e,d]),k=(n,i=`panel`)=>{let a=[T,D][g];a(n);let o=[w,E];o[g]=n,f&&(!Oz(e,t,w,o[0],s)||!Oz(e,t,E,o[1],s))&&f(o,{source:i,range:g===1?`end`:`start`,mode:r})},A=(n,r)=>s===`year`?Math.floor(e.getYear(n)/10)===Math.floor(e.getYear(r)/10):Oz(e,t,n,r,s===`month`||s===`quarter`?`year`:`month`),j=(t,n)=>{if(!c||!t)return n;let r=cB(e,s,t,1);return A(t,n)||A(r,n)?t:cB(e,s,n,-1)},M=Q.useRef(null);return _o(()=>{if(i&&!l[g]){let t=h?null:e.getNow();if(a&&M.current!==null&&M.current!==g?t=[w,E][g^1]:y?t=g===0?_:j(_,v):b&&(t=b),t){p&&e.isAfter(p,t)&&(t=p);let n=c?cB(e,s,t,1):t;m&&e.isAfter(n,m)&&(t=c?cB(e,s,m,-1):m),k(t,`reset`)}}},[i,a,g,n[g]]),Q.useEffect(()=>{i&&a?M.current=g:M.current=null},[i,a,g]),_o(()=>{i&&l&&l[g]&&k(l[g],`reset`)},[i,g]),[O,k]}function dB(e,t){let n=Q.useRef(e),[,r]=Q.useState({}),i=e=>e&&t!==void 0?t:n.current;return[i,e=>{n.current=e,r({})},i(!0)]}var fB=[];function pB(e,t,n){return[r=>r.map(r=>Mz(r,{generateConfig:e,locale:t,format:n[0]})),(t,n)=>{let r=Math.max(t.length,n.length),i=-1;for(let a=0;a<r;a+=1){let r=t[a]||null,o=n[a]||null;if(r!==o&&!Ez(e,r,o)){i=a;break}}return[i<0,i!==0]}]}function mB(e,t){return[...e].sort((e,n)=>t.isAfter(e,n)?1:-1)}function hB(e){let[t,n]=dB(e),r=da(()=>{n(e)});return Q.useEffect(()=>{r()},[e]),[t,n]}function gB(e,t,n,r,i,a,o,s,c){let[l,u]=wa(a,o),d=l||fB,[f,p]=hB(d),[m,h]=pB(e,t,n);return[d,u,f,da(t=>{let n=[...t];if(r)for(let e=0;e<2;e+=1)n[e]=n[e]||null;else i&&(n=mB(n.filter(e=>e),e));let[a,o]=h(f(),n);if(!a&&(p(n),s)){let e=m(n);s(n,e,{range:o?`end`:`start`})}}),()=>{c&&c(f())}]}function _B(e,t,n,r,i,a,o,s){let{generateConfig:c,locale:l,picker:u,onChange:d,allowEmpty:f,order:p}=e,m=!a.some(e=>e)&&p,[h,g]=pB(c,l,o),[_,v]=dB(t),y=da(()=>{v(t)});Q.useEffect(()=>{y()},[t]);let b=da(e=>{let r=e===null,o=[...e||_()];if(r){let e=Math.max(a.length,o.length);for(let t=0;t<e;t+=1)a[t]||(o[t]=null)}m&&o[0]&&o[1]&&(o=mB(o,c)),i(o);let[v,y]=o,b=!v,x=!y,S=!f||(!b||f[0])&&(!x||f[1]),C=!p||b||x||Oz(c,l,v,y,u)||c.isAfter(y,v),w=(a[0]||!v||!s(v,{activeIndex:0}))&&(a[1]||!y||!s(y,{from:v,activeIndex:1})),T=r||S&&C&&w;if(T){n(o);let[e]=g(o,t);if(d&&!e){let e=o.every(e=>!e);d(r&&e?null:o,e?null:h(o))}}return T});return[da((e,t)=>{let n=pz(_(),e,r()[e]);v(n),t&&b()}),b,da(e=>{if(e===void 0){i(t),y();return}i(pz(r(),e,t[e])),v(pz(_(),e,t[e]))})]}function vB(e,t,n,r,i,a,o){let s=Q.useRef([]),c=Q.useRef(null),l=Q.useRef(!1),[u,d]=Ma(null),[f,p]=Ma(!1),m=Q.useRef(void 0),h=da(()=>{s.current=[],c.current=null,l.current=!1,d(null),p(!1)}),g=(e,t)=>{let n=s.current.find(t=>t.index===e);n?t!==void 0&&(n.modified=t):s.current=[...s.current,{index:e,modified:t??!1}]},_=t=>{g(t);let n=s.current.length>=e;return a(t,n),n&&h(),n},v=(i,a,o,l)=>{if(o===`esc`)return`resetAll`;if(i===null)return o===`popupClose`?`resetAll`:`abort`;let u=(l===void 0?r()[i]:l)!=null||n[i],d=o===`remove`||u;if(o===`field-switch`){if(a===i)return`abort`;let r=(i+1)%e;if(a!==r)return`abort`;let o=s.current.some(e=>e.index===r);return t?c.current===i?`switchNext`:n[i]?`resetCurrentAndSwitchNext`:`abort`:u?`switchNext`:o?`resetCurrentAndSwitchNext`:`resetCurrent`}if(a!==i)return`abort`;if(o===`popupClose`){if(!s.current.some(e=>e.modified))return`finish`;if(t){let t=s.current.some(e=>e.index===i&&e.modified);return!(s.current.length>=e)||!u?`resetAll`:t?n[i]?`resetCurrentAndSwitchNext`:`resetAll`:`switchNext`}return d?`switchNext`:`resetAll`}return o===`input`||o===`panel-intermediate`?`modify`:o===`panel-final`?t?`modify`:`switchNext`:o===`keyboard-submit-weak`?d?`submitCurrent`:`abort`:(o===`keyboard-submit`||o===`confirm`||o===`remove`)&&d?`switchNext`:`abort`},y=da((n,r,a)=>{let f=u();r!==`popupClose`&&(l.current=r===`input`),f===null&&r!==`popupClose`&&r!==`esc`&&(f=n,d(n),p(!1),g(n,!1));let m=v(f,n,r,a),y=f??n;switch(m){case`modify`:g(y,!0),c.current===y&&(c.current=null),a!==void 0&&i(y,a);break;case`submitCurrent`:t&&(c.current=y),_(y);break;case`switchNext`:{(r===`panel-final`||a!==void 0)&&g(y,!0),a!==void 0&&i(y,a),t&&(r===`keyboard-submit`||r===`confirm`)&&(c.current=y);let o=r===`confirm`||r===`keyboard-submit`||r===`panel-final`||r===`popupClose`&&!l.current,s=_(y);if(s&&r===`field-switch`)d(n),p(!1);else if(!s){let t=(y+1)%e;d(t),p(o)}r===`field-switch`&&g(n,!1);break}case`finish`:h();break;case`resetCurrent`:o(y),c.current===y&&(c.current=null),s.current=s.current.filter(e=>e.index!==y);break;case`resetCurrentAndSwitchNext`:o(y),c.current===y&&(c.current=null),r===`field-switch`?(s.current.some(e=>e.index===n)&&(s.current=[]),d(n),p(!1),g(n,!1)):h();break;case`resetAll`:o(),h();break;case`abort`:r===`field-switch`&&n===y&&g(n)}}),b=u();m.current=b??m.current??0;let x=s.current.map(e=>e.index);return[b,m.current,f(),x,y,h]}function yB(e,t,n,r,i){return t!==`date`&&t!==`time`?!1:n===void 0?r===void 0?!i&&(e===`date`||e===`time`):r:n}function bB(e,t,n,r,i,a){let o=e;function s(e,t,n){let r=a[e](o),i=n.find(e=>e.value===r);if(!i||i.disabled){let e=n.filter(e=>!e.disabled),i=[...e].reverse().find(e=>e.value<=r)||e[0];i&&(r=i.value,o=a[t](o,r))}return r}let c=s(`getHour`,`setHour`,t()),l=s(`getMinute`,`setMinute`,n(c));return s(`getMillisecond`,`setMillisecond`,i(c,l,s(`getSecond`,`setSecond`,r(c,l)))),o}function xB(){return[]}function SB(e,t,n=1,r=!1,i=[],a=2){let o=[],s=n>=1?n|0:1;for(let n=e;n<=t;n+=s){let e=i.includes(n);(!e||!r)&&o.push({label:dz(n,a),value:n,disabled:e})}return o}function CB(e,t={},n){let{use12Hours:r,hourStep:i=1,minuteStep:a=1,secondStep:o=1,millisecondStep:s=100,hideDisabledOptions:c,disabledTime:l,disabledHours:u,disabledMinutes:d,disabledSeconds:f}=t||{},p=Q.useMemo(()=>n||e.getNow(),[n,e]),m=Q.useCallback(e=>{let t=l?.(e)||{};return[t.disabledHours||u||xB,t.disabledMinutes||d||xB,t.disabledSeconds||f||xB,t.disabledMilliseconds||xB]},[l,u,d,f]),[h,g,_,v]=Q.useMemo(()=>m(p),[p,m]),y=Q.useCallback((e,t,n,l)=>{let u=SB(0,23,i,c,e());return[r?u.map(e=>({...e,label:dz(e.value%12||12,2)})):u,e=>SB(0,59,a,c,t(e)),(e,t)=>SB(0,59,o,c,n(e,t)),(e,t,n)=>SB(0,999,s,c,l(e,t,n),3)]},[c,i,r,s,a,o]),[b,x,S,C]=Q.useMemo(()=>y(h,g,_,v),[y,h,g,_,v]);return[(t,n)=>{let r=()=>b,i=x,a=S,o=C;if(n){let[e,t,s,c]=m(n),[l,u,d,f]=y(e,t,s,c);r=()=>l,i=u,a=d,o=f}return bB(t,r,i,a,o,e)},b,x,S,C]}function wB(e){let{mode:t,internalMode:n,renderExtraFooter:r,showNow:i,showTime:a,onSubmit:o,onNow:s,invalid:c,needConfirm:l,generateConfig:u,disabledDate:d}=e,{prefixCls:f,locale:p,button:m=`button`,classNames:h,styles:g}=Q.useContext(cz),_=u.getNow(),[v]=CB(u,a,_),y=r?.(t),b=d(_,{type:t}),x=()=>
738{if(!b){let e=v(_);s(e)}},S=`${f}-now`,C=`${S}-btn`,w=i&&Q.createElement(`li`,{className:S},Q.createElement(`a`,{className:X(C,b&&`${C}-disabled`),"aria-disabled":b,onClick:x},n===`date`?p.today:p.now)),T=l&&Q.createElement(`li`,{className:`${f}-ok`},Q.createElement(m,{disabled:c,onClick:o},p.ok)),E=(w||T)&&Q.createElement(`ul`,{className:`${f}-ranges`},w,T);return!eo(y)&&!eo(E)?null:Q.createElement(`div`,{className:X(`${f}-footer`,h.popup.footer),style:g.popup.footer},eo(y)&&Q.createElement(`div`,{className:`${f}-footer-extra`},y),E)}function TB(e,t,n){function r(r,i){let a=r.findIndex(r=>Oz(e,t,r,i,n));if(a===-1)return[...r,i];let o=[...r];return o.splice(a,1),o}return r}var EB=Q.createContext(null),DB=Q.createContext(null);function OB(){return Q.useContext(DB)}function kB(e,t){let{prefixCls:n,generateConfig:r,locale:i,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,values:f,pickerValue:p,onSelect:m,prevIcon:h,nextIcon:g,superPrevIcon:_,superNextIcon:v}=e,{classNames:y,styles:b}=Q.useContext(EB),x=r.getNow();return[{now:x,values:f,pickerValue:p,prefixCls:n,classNames:y,styles:b,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:h,nextIcon:g,superPrevIcon:_,superNextIcon:v},x]}var AB=Q.createContext({});function jB(e){let{rowNum:t,colNum:n,baseDate:r,getCellDate:i,prefixColumn:a,rowClassName:o,titleFormat:s,getCellText:c,getCellClassName:l,headerCells:u,cellSelection:d=!0,disabledDate:f}=e,{prefixCls:p,classNames:m,styles:h,panelType:g,now:_,disabledDate:v,cellRender:y,onHover:b,hoverValue:x,hoverRangeValue:S,generateConfig:C,values:w,locale:T,onSelect:E}=OB(),D=f||v,O=`${p}-cell`,{onCellDblClick:k}=Q.useContext(AB),A=e=>w.some(t=>t&&Oz(C,T,e,t,g)),j=[];for(let e=0;e<t;e+=1){let t=[],u;for(let o=0;o<n;o+=1){let f=i(r,e*n+o),v=D?.(f,{type:g});o===0&&(u=f,a&&t.push(a(u)));let w=!1,j=!1,M=!1;if(d&&S){let[e,t]=S;w=kz(C,e,t,f),j=Oz(C,T,f,e,g),M=Oz(C,T,f,t,g)}let N=s?Mz(f,{locale:T,format:s,generateConfig:C}):void 0,P=Q.createElement(`div`,{className:`${O}-inner`},c(f));t.push(Q.createElement(`td`,{key:o,title:N,className:X(O,m.item,{[`${O}-disabled`]:v,[`${O}-hover`]:(x||[]).some(e=>Oz(C,T,f,e,g)),[`${O}-in-range`]:w&&!j&&!M,[`${O}-range-start`]:j,[`${O}-range-end`]:M,[`${p}-cell-selected`]:!S&&g!==`week`&&A(f),...l(f)}),style:h.item,onClick:()=>{v||E(f)},onDoubleClick:()=>{!v&&k&&k()},onMouseEnter:()=>{v||b?.(f)},onMouseLeave:()=>{v||b?.(null)}},y?y(f,{prefixCls:p,originNode:P,today:_,type:g,locale:T}):P))}j.push(Q.createElement(`tr`,{key:e,className:o?.(u)},t))}return Q.createElement(`div`,{className:X(`${p}-body`,m.body),style:h.body},Q.createElement(`table`,{className:X(`${p}-content`,m.content),style:h.content},ta(u)&&Q.createElement(`thead`,null,Q.createElement(`tr`,null,u)),Q.createElement(`tbody`,null,j)))}var MB={visibility:`hidden`};function NB(e){let{offset:t,superOffset:n,onChange:r,getStart:i,getEnd:a,children:o}=e,{prefixCls:s,classNames:c,styles:l,prevIcon:u=`‹`,nextIcon:d=`›`,superPrevIcon:f=`«`,superNextIcon:p=`»`,minDate:m,maxDate:h,generateConfig:g,locale:_,pickerValue:v,panelType:y}=OB(),b=`${s}-header`,{hidePrev:x,hideNext:S,hideHeader:C}=Q.useContext(AB),w=Q.useMemo(()=>{if(!m||!t||!a)return!1;let e=a(t(-1,v));return!Az(g,_,e,m,y)},[m,t,v,a,g,_,y]),T=Q.useMemo(()=>{if(!m||!n||!a)return!1;let e=a(n(-1,v));return!Az(g,_,e,m,y)},[m,n,v,a,g,_,y]),E=Q.useMemo(()=>{if(!h||!t||!i)return!1;let e=i(t(1,v));return!Az(g,_,h,e,y)},[h,t,v,i,g,_,y]),D=Q.useMemo(()=>{if(!h||!n||!i)return!1;let e=i(n(1,v));return!Az(g,_,h,e,y)},[h,n,v,i,g,_,y]),O=e=>{t&&r(t(e,v))},k=e=>{n&&r(n(e,v))};if(C)return null;let A=`${b}-prev-btn`,j=`${b}-next-btn`,M=`${b}-super-prev-btn`,N=`${b}-super-next-btn`;return Q.createElement(`div`,{className:X(b,c.header),style:l.header},n&&Q.createElement(`button`,{type:`button`,"aria-label":_.previousYear,onClick:()=>k(-1),tabIndex:-1,className:X(M,T&&`${M}-disabled`),disabled:T,style:x?MB:{}},f),t&&Q.createElement(`button`,{type:`button`,"aria-label":_.previousMonth,onClick:()=>
738O(-1),tabIndex:-1,className:X(A,w&&`${A}-disabled`),disabled:w,style:x?MB:{}},u),Q.createElement(`div`,{className:`${b}-view`},o),t&&Q.createElement(`button`,{type:`button`,"aria-label":_.nextMonth,onClick:()=>O(1),tabIndex:-1,className:X(j,E&&`${j}-disabled`),disabled:E,style:S?MB:{}},d),n&&Q.createElement(`button`,{type:`button`,"aria-label":_.nextYear,onClick:()=>k(1),tabIndex:-1,className:X(N,D&&`${N}-disabled`),disabled:D,style:S?MB:{}},p))}function PB(){return PB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PB.apply(this,arguments)}function FB(e){let{prefixCls:t,panelName:n=`date`,locale:r,generateConfig:i,pickerValue:a,onPickerValueChange:o,onModeChange:s,mode:c=`date`,disabledDate:l,onSelect:u,onHover:d,showWeek:f}=e,p=`${t}-${n}-panel`,m=`${t}-cell`,h=c===`week`,[g,_]=kB(e,c),v=i.locale.getWeekFirstDay(r.locale),y=i.setDate(a,1),b=jz(r.locale,i,y),x=i.getMonth(a),S=(f===void 0?h:f)?e=>{let t=l?.(e,{type:`week`});return Q.createElement(`td`,{key:`week`,className:X(m,`${m}-week`,{[`${m}-disabled`]:t}),onClick:()=>{t||u(e)},onMouseEnter:()=>{t||d?.(e)},onMouseLeave:()=>{t||d?.(null)}},Q.createElement(`div`,{className:`${m}-inner`},i.locale.getWeek(r.locale,e)))}:null,C=[],w=r.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(r.locale):[]);S&&C.push(Q.createElement(`th`,{key:`empty`},Q.createElement(`span`,{style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},r.week)));for(let e=0;e<7;e+=1)C.push(Q.createElement(`th`,{key:e},w[(e+v)%7]));let T=(e,t)=>i.addDate(e,t),E=e=>Mz(e,{locale:r,format:r.cellDateFormat,generateConfig:i}),D=e=>({[`${t}-cell-in-view`]:Cz(i,e,a),[`${t}-cell-today`]:wz(i,e,_)}),O=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),k=Q.createElement(`button`,{type:`button`,"aria-label":r.yearSelect,key:`year`,onClick:()=>{s(`year`,a)},tabIndex:-1,className:`${t}-year-btn`},Mz(a,{locale:r,format:r.yearFormat,generateConfig:i})),A=Q.createElement(`button`,{type:`button`,"aria-label":r.monthSelect,key:`month`,onClick:()=>{s(`month`,a)},tabIndex:-1,className:`${t}-month-btn`},r.monthFormat?Mz(a,{locale:r,format:r.monthFormat,generateConfig:i}):O[x]),j=r.monthBeforeYear?[A,k]:[k,A];return Q.createElement(DB.Provider,{value:g},Q.createElement(`div`,{className:X(p,f&&`${p}-show-week`)},Q.createElement(NB,{offset:e=>i.addMonth(a,e),superOffset:e=>i.addYear(a,e),onChange:o,getStart:e=>i.setDate(e,1),getEnd:e=>{let t=i.setDate(e,1);return t=i.addMonth(t,1),i.addDate(t,-1)}},j),Q.createElement(jB,PB({titleFormat:r.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:b,headerCells:C,getCellDate:T,getCellText:E,getCellClassName:D,prefixColumn:S,cellSelection:!h}))))}var IB=1/3;function LB(e,t){let n=Q.useRef(!1),r=Q.useRef(null),i=Q.useRef(null),a=()=>n.current,o=()=>{Ra.cancel(r.current),n.current=!1},s=Q.useRef(void 0);return[da(()=>{let a=e.current;if(i.current=null,s.current=0,a){let e=a.querySelector(`[data-value="${t}"]`),c=a.querySelector(`li`),l=()=>{o(),n.current=!0,s.current+=1;let{scrollTop:t}=a,u=c.offsetTop,d=e.offsetTop,f=d-u;if(d===0&&e!==c||!ao(a)){s.current<=5&&(r.current=Ra(l));return}let p=t+(f-t)*IB,m=Math.abs(f-p);if(i.current!==null&&i.current<m){o();return}if(i.current=m,m<=1){a.scrollTop=f,o();return}a.scrollTop=p,r.current=Ra(l)};e&&c&&l()}}),o,a]}var RB=300;function zB(e){return e.map(({value:e,label:t,disabled:n})=>[e,t,n].join(`,`)).join(`;`)}function BB(e){let{units:t,value:n,optionalValue:r,type:i,onChange:a,onHover:o,onDblClick:s,changeOnScroll:c}=e,{prefixCls:l,cellRender:u,now:d,locale:f,classNames:p,styles:m}=OB(),h=`${l}-time-panel`,g=`${l}-time-panel-cell`,_=Q.useRef(null),v=Q.useRef(void 0),y=()=>{clearTimeout(v.current)},[b,x,S]=LB(_,n??r);_o(()=>(b(),y(),()=>{x(),y()}),[n,r,zB(t)]);let C=e=>{y();let n=e.target;!S()&&c&&(v.current=setTimeout(()=>{let e=_.current,r=e.querySelector(`li`).offsetTop,i=Array.from(e.querySelectorAll(`li`)).map(e=>e.offsetTop-r).map((e,r)=>t[r].disabled?2**53-1:Math.abs(e-n.scrollTop)),o=Math.min(...i),s=i.findIndex(e=>e===o),c=t[s];c&&!c.disabled&&a(c.value)},RB))},w=`${h}-column`;return Q.createElement(`ul`,{className:w,ref:_,"data-type":i,onScroll:C},t.map(({label:e,value:t,disabled:r})=>{let c=Q.createElement(`div`,{className:`${g}-inner`},e);return Q.createElement(`li`,{key:t,style:m.item,className:X(g,p.item,{[`${g}-selected`]:n===t,[`${g}-disabled`]:r}),onClick:()=>{r||a(t)},onDoubleClick:()=>{!r&&s&&s()},onMouseEnter:()=>{o(t)},onMouseLeave:()=>{o(null)},"data-value":t},u?u(t,{prefixCls:l,originNode:c,today:d,type:`time`,subType:i,locale:f}):c)}))}function VB(){return VB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VB.apply(this,arguments)}function HB(e){return e<12}function UB(e){let{showHour:t,showMinute:n,showSecond:r,showMillisecond:i,use12Hours:a,changeOnScroll:o}=e,{prefixCls:s,classNames:c,styles:l,values:u,generateConfig:d,locale:f,onSelect:p,onHover:m=()=>{},pickerValue:h}=OB(),g=u?.[0]||null,{onCellDblClick:_}=Q.useContext(AB),[v,y,b,x,S]=CB(d,e,g),C=e=>[g&&d[e](g),h&&d[e](h)],[w,T]=C(`getHour`),[E,D]=C(`getMinute`),[O,k]=C(`getSecond`),[A,j]=C(`getMillisecond`),M=w===null?null:HB(w)?`am`:`pm`,N=Q.useMemo(()=>a?HB(w)?y.filter(e=>HB(e.value)):y.filter(e=>!HB(e.value)):y,[w,y,a]),P=(e,t)=>{let n=e.filter(e=>!e.disabled);return t??n?.[0]?.value},F=P(y,w),I=Q.useMemo(()=>b(F),[b,F]),L=P(I,E),R=Q.useMemo(()=>
738x(F,L),[x,F,L]),z=P(R,O),B=Q.useMemo(()=>S(F,L,z),[S,F,L,z]),V=P(B,A),H=Q.useMemo(()=>{if(!a)return[];let e=d.getNow(),t=d.setHour(e,9),n=d.setHour(e,15),r=(e,t)=>{let{cellMeridiemFormat:n}=f;return n?Mz(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,`AM`),value:`am`,disabled:y.every(e=>e.disabled||!HB(e.value))},{label:r(n,`PM`),value:`pm`,disabled:y.every(e=>e.disabled||HB(e.value))}]},[y,a,d,f]),U=e=>{let t=v(e);p(t)},W=Q.useMemo(()=>{let e=g||h||d.getNow();return ta(w)?(e=d.setHour(e,w),e=d.setMinute(e,E),e=d.setSecond(e,O),e=d.setMillisecond(e,A)):ta(T)?(e=d.setHour(e,T),e=d.setMinute(e,D),e=d.setSecond(e,k),e=d.setMillisecond(e,j)):ta(F)&&(e=d.setHour(e,F),e=d.setMinute(e,L),e=d.setSecond(e,z),e=d.setMillisecond(e,V)),e},[g,h,w,E,O,A,F,L,z,V,T,D,k,j,d]),G=(e,t)=>e===null?null:d[t](W,e),ee=e=>G(e,`setHour`),te=e=>G(e,`setMinute`),ne=e=>G(e,`setSecond`),K=e=>G(e,`setMillisecond`),q=e=>e===null?null:e===`am`&&!HB(w)?d.setHour(W,w-12):e===`pm`&&HB(w)?d.setHour(W,w+12):W,re=e=>{U(ee(e))},J=e=>{U(te(e))},ie=e=>{U(ne(e))},ae=e=>{U(K(e))},oe=e=>{U(q(e))},se=e=>{m(ee(e))},ce=e=>{m(te(e))},le=e=>{m(ne(e))},ue=e=>{m(K(e))},de=e=>{m(q(e))},fe={onDblClick:_,changeOnScroll:o};return Q.createElement(`div`,{className:X(`${s}-content`,c.content),style:l.content},t&&Q.createElement(BB,VB({units:N,value:w,optionalValue:T,type:`hour`,onChange:re,onHover:se},fe)),n&&Q.createElement(BB,VB({units:I,value:E,optionalValue:D,type:`minute`,onChange:J,onHover:ce},fe)),r&&Q.createElement(BB,VB({units:R,value:O,optionalValue:k,type:`second`,onChange:ie,onHover:le},fe)),i&&Q.createElement(BB,VB({units:B,value:A,optionalValue:j,type:`millisecond`,onChange:ae,onHover:ue},fe)),a&&Q.createElement(BB,VB({units:H,value:M,type:`meridiem`,onChange:oe,onHover:de},fe)))}function WB(e){let{prefixCls:t,value:n,locale:r,generateConfig:i,showTime:a}=e,{format:o}=a||{},s=`${t}-time-panel`,[c]=kB(e,`time`);return Q.createElement(DB.Provider,{value:c},Q.createElement(`div`,{className:X(s)},Q.createElement(NB,null,n?Mz(n,{locale:r,format:o,generateConfig:i}):`\xA0`),Q.createElement(UB,a)))}function GB(){return GB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GB.apply(this,arguments)}function KB(e){let{prefixCls:t,generateConfig:n,showTime:r,onSelect:i,value:a,pickerValue:o,onHover:s}=e,c=`${t}-datetime-panel`,[l]=CB(n,r),u=e=>a?Nz(n,e,a):Nz(n,e,o);return Q.createElement(`div`,{className:c},Q.createElement(FB,GB({},e,{onSelect:e=>{let t=u(e);i(l(t,t))},onHover:e=>{s?.(e&&u(e))}})),Q.createElement(WB,e))}function qB(){return qB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qB.apply(this,arguments)}function JB(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o}=e,s=`${t}-decade-panel`,[c]=kB(e,`decade`),l=e=>{let t=Math.floor(r.getYear(e)/100)*100;return r.setYear(e,t)},u=e=>{let t=l(e);return r.addYear(t,99)},d=l(i),f=u(i),p=r.addYear(d,-10),m=(e,t)=>r.addYear(e,t*10),h=e=>{let t=n.cellYearFormat;return`${Mz(e,{locale:n,format:t,generateConfig:r})}-${Mz(r.addYear(e,9),{locale:n,format:t,generateConfig:r})}`},g=e=>({[`${t}-cell-in-view`]:yz(r,e,d)||yz(r,e,f)||kz(r,d,f,e)}),_=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,0),o=r.setYear(i,Math.floor(r.getYear(i)/10)*10),s=r.addYear(o,10),c=r.addDate(s,-1);return a(o,t)&&a(c,t)}:null,v=`${Mz(d,{locale:n,format:n.yearFormat,generateConfig:r})}-${Mz(f,{locale:n,format:n.yearFormat,generateConfig:r})}`;return Q.createElement(DB.Provider,{value:c},Q.createElement(`div`,{className:s},Q.createElement(NB,{superOffset:e=>r.addYear(i,e*100),onChange:o,getStart:l,getEnd:u},v),Q.createElement(jB,qB({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:p,getCellDate:m,getCellText:h,getCellClassName:g}))))}function YB(){return YB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YB.apply(this,arguments)}function XB(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o,onModeChange:s}=e,c=`${t}-month-panel`,[l]=kB(e,`month`),u=r.setMonth(i,0),d=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),f=(e,t)=>r.addMonth(e,t),p=e=>{let t=r.getMonth(e);return n.monthFormat?Mz(e,{locale:n,format:n.monthFormat,generateConfig:r}):d[t]},m=()=>({[`${t}-cell-in-view`]:!0}),h=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,r.getMonth(n)+1),o=r.addDate(i,-1);return a(n,t)&&a(o,t)}:null,g=Q.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{s(`year`)}
738,tabIndex:-1,className:`${t}-year-btn`},Mz(i,{locale:n,format:n.yearFormat,generateConfig:r}));return Q.createElement(DB.Provider,{value:l},Q.createElement(`div`,{className:c},Q.createElement(NB,{superOffset:e=>r.addYear(i,e),onChange:o,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},g),Q.createElement(jB,YB({},e,{disabledDate:h,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:f,getCellText:p,getCellClassName:m}))))}function ZB(){return ZB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZB.apply(this,arguments)}function QB(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,onPickerValueChange:a,onModeChange:o}=e,s=`${t}-quarter-panel`,[c]=kB(e,`quarter`),l=r.setMonth(i,0),u=(e,t)=>r.addMonth(e,t*3),d=e=>Mz(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r}),f=()=>({[`${t}-cell-in-view`]:!0}),p=Q.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{o(`year`)},tabIndex:-1,className:`${t}-year-btn`},Mz(i,{locale:n,format:n.yearFormat,generateConfig:r}));return Q.createElement(DB.Provider,{value:c},Q.createElement(`div`,{className:s},Q.createElement(NB,{superOffset:e=>r.addYear(i,e),onChange:a,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},p),Q.createElement(jB,ZB({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:l,getCellDate:u,getCellText:d,getCellClassName:f}))))}function $B(){return $B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$B.apply(this,arguments)}function eV(e){let{prefixCls:t,generateConfig:n,locale:r,value:i,hoverValue:a,hoverRangeValue:o}=e,s=r.locale,c=`${t}-week-panel-row`;return Q.createElement(FB,$B({},e,{mode:`week`,panelName:`week`,rowClassName:e=>{let t={};if(o){let[r,i]=o,a=Dz(n,s,r,e),l=Dz(n,s,i,e);t[`${c}-range-start`]=a,t[`${c}-range-end`]=l,t[`${c}-range-hover`]=!a&&!l&&kz(n,r,i,e)}return a&&(t[`${c}-hover`]=a.some(t=>Dz(n,s,e,t))),X(c,{[`${c}-selected`]:!o&&Dz(n,s,i,e)},t)}}))}function tV(){return tV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tV.apply(this,arguments)}function nV(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o,onModeChange:s}=e,c=`${t}-year-panel`,[l]=kB(e,`year`),u=e=>{let t=Math.floor(r.getYear(e)/10)*10;return r.setYear(e,t)},d=e=>{let t=u(e);return r.addYear(t,9)},f=u(i),p=d(i),m=r.addYear(f,-1),h=(e,t)=>r.addYear(e,t),g=e=>Mz(e,{locale:n,format:n.cellYearFormat,generateConfig:r}),_=e=>({[`${t}-cell-in-view`]:bz(r,e,f)||bz(r,e,p)||kz(r,f,p,e)}),v=a?(e,t)=>{let n=r.setMonth(e,0),i=r.setDate(n,1),o=r.addYear(i,1),s=r.addDate(o,-1);return a(i,t)&&a(s,t)}:null,y=Q.createElement(`button`,{type:`button`,key:`decade`,"aria-label":n.decadeSelect,onClick:()=>{s(`decade`)},tabIndex:-1,className:`${t}-decade-btn`},Mz(f,{locale:n,format:n.yearFormat,generateConfig:r}),`-`,Mz(p,{locale:n,format:n.yearFormat,generateConfig:r}));return Q.createElement(DB.Provider,{value:l},Q.createElement(`div`,{className:c},Q.createElement(NB,{superOffset:e=>r.addYear(i,e*10),onChange:o,getStart:u,getEnd:d},y),Q.createElement(jB,tV({},e,{disabledDate:v,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:h,getCellText:g,getCellClassName:_}))))}function rV(){return rV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rV.apply(this,arguments)}var iV={date:FB,datetime:KB,week:eV,month:XB,quarter:QB,year:nV,decade:JB,time:WB};function aV(e,t){let{classNames:n,styles:r,locale:i,generateConfig:a,direction:o,prefixCls:s,tabIndex:c=0,multiple:l,defaultValue:u,value:d,onChange:f,onSelect:p,defaultPickerValue:m,pickerValue:h,onPickerValueChange:g,mode:_,onPanelChange:v,picker:y=`date`,showTime:b,hoverValue:x,hoverRangeValue:S,cellRender:C,dateRender:w,monthCellRender:T,components:E={},hideHeader:D}=e,{prefixCls:O,classNames:k,styles:A}=Q.useContext(cz)||{},j=O||s||`rc-picker`,M=Q.useRef(null);Q.useImperativeHandle(t,()=>({nativeElement:M.current}));let[N,P,F,I]=Gz(e),L=Rz(i,P),R=y===`date`&&b?`datetime`:y,z=Q.useMemo(()=>Kz(R,F,I,N,L),[R,F,I,N,L]),B=a.getNow(),[V,H]=wa(y||`date`,_),U=V===`date`&&z?`datetime`:V,W=TB(a,i,R),[G,ee]=wa(u,d),te=Q.useMemo(()=>{let e=fz(G).filter(e=>e);return l?e:e.slice(0,1)},[G,l]),ne=da(e=>{ee(e),f&&(e===null||te.length!==e.length||te.some((t,n)=>!Oz(a,i,t,e[n],R)))&&f?.(l?e:e[0])}),K=da(e=>{if(p?.(e),V===y){let t=l?W(te,e):[e];ne(t)}}),[q,re]=wa(m||te[0]||B,h);Q.useEffect(()=>{te[0]&&!h&&re(te[0])},[te[0]]);let J=(e,t)=>
738{v?.(e||h,t||V)},ie=(e,t=!1)=>{re(e),g?.(e),t&&J(e)},ae=(e,t)=>{H(e),t&&ie(t),J(t,e)},oe=e=>{if(K(e),ie(e),V!==y){let t=[`decade`,`year`],n=[...t,`month`],r={quarter:[...t,`quarter`],week:[...n,`week`],date:[...n,`date`]}[y]||n,i=r[r.indexOf(V)+1];i&&ae(i,e)}},se=Q.useMemo(()=>{let e,t;return Array.isArray(S)?[e,t]=S:e=S,!e&&!t?null:(e||=t,t||=e,a.isAfter(e,t)?[t,e]:[e,t])},[S,a]),ce=Pz(C,w,T),le=E[U]||iV[U]||FB,ue=Q.useMemo(()=>({classNames:k?.popup??n??{},styles:A?.popup??r??{}}),[k,n,A,r]),de=Q.useContext(AB),fe=Q.useMemo(()=>({...de,hideHeader:D}),[de,D]),pe=`${j}-panel`,me=mz(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return Q.createElement(EB.Provider,{value:ue},Q.createElement(AB.Provider,{value:fe},Q.createElement(`div`,{ref:M,tabIndex:c,className:X(pe,{[`${pe}-rtl`]:o===`rtl`})},Q.createElement(le,rV({},me,{showTime:z,prefixCls:j,locale:L,generateConfig:a,onModeChange:ae,pickerValue:q,onPickerValueChange:e=>{ie(e,!0)},value:te[0],onSelect:oe,values:te,cellRender:ce,hoverRangeValue:se,hoverValue:x})))))}var oV=Q.memo(Q.forwardRef(aV));function sV(){return sV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sV.apply(this,arguments)}function cV(e){let{picker:t,multiplePanel:n,pickerValue:r,onPickerValueChange:i,needConfirm:a,onSubmit:o,range:s,hoverValue:c,hoverRangeValue:l}=e,{prefixCls:u,generateConfig:d}=Q.useContext(cz),f=Q.useCallback((e,n)=>cB(d,t,e,n),[d,t]),p=Q.useMemo(()=>f(r,1),[r,f]),m=e=>{i(f(e,-1))},h={onCellDblClick:()=>{a&&o()}},g=t===`time`,_={...e,hoverValue:null,hoverRangeValue:null,hideHeader:g};return _.hoverValue=c,s&&(_.hoverRangeValue=l),n?Q.createElement(`div`,{className:`${u}-panels`},Q.createElement(AB.Provider,{value:{...h,hideNext:!0}},Q.createElement(oV,_)),Q.createElement(AB.Provider,{value:{...h,hidePrev:!0}},Q.createElement(oV,sV({},_,{pickerValue:p,onPickerValueChange:m})))):Q.createElement(AB.Provider,{value:{...h}},Q.createElement(oV,_))}function lV(e){return typeof e==`function`?e():e}function uV(e){let{prefixCls:t,presets:n,onClick:r,onHover:i}=e;return n.length?Q.createElement(`div`,{className:`${t}-presets`},Q.createElement(`ul`,null,n.map(({label:e,value:t},n)=>Q.createElement(`li`,{key:n,onClick:()=>{r(lV(t))},onMouseEnter:()=>{i(lV(t))},onMouseLeave:()=>{i(null)}},e)))):null}function dV(){return dV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dV.apply(this,arguments)}function fV(e){let{containerRef:t,panelRender:n,internalMode:r,picker:i,showNow:a,range:o,multiple:s,activeInfo:c=[0,0,0],presets:l,onPresetHover:u,onPresetSubmit:d,onFocus:f,onBlur:p,onPanelMouseDown:m,direction:h,value:g,onSelect:_,isInvalid:v,defaultOpenValue:y,onOk:b,onSubmit:x,classNames:S,styles:C}=e,{prefixCls:w}=Q.useContext(cz),T=`${w}-panel`,E=h===`rtl`,D=Q.useRef(null),O=Q.useRef(null),[k,A]=Q.useState(0),[j,M]=Q.useState(0),[N,P]=Q.useState(0),F=e=>{e.width&&A(e.width)},[I,L,R]=c,[z,B]=Q.useState(0);Q.useEffect(()=>{B(10)},[I]),Q.useEffect(()=>{if(o&&O.current){let e=D.current?.offsetWidth||0,t=O.current.getBoundingClientRect();if(!t.height||t.right<0){B(e=>Math.max(0,e-1));return}let n=(E?L-e:I)-t.left;if(P(n),k&&k<R){let n=E?t.right-(L-e+k):I+e-t.left-k;M(Math.max(0,n))}else M(0)}},[z,E,k,I,L,R,o]);function V(e){return e.filter(e=>e)}let H=Q.useMemo(()=>V(fz(g)),[g]),U=i===`time`&&!H.length,W=Q.useMemo(()=>U?V([y]):H,[U,H,y]),G=U?y:H,ee=Q.useMemo(()=>!W.length||W.some(e=>v(e)),[W,v]),te=Q.createElement(`div`,{className:`${w}-panel-layout`},Q.createElement(uV,{prefixCls:w,presets:l,onClick:d,onHover:u}),Q.createElement(`div`,null,Q.createElement(cV,dV({},e,{value:G})),Q.createElement(wB,dV({},e,{showNow:!s&&a,invalid:ee,onSubmit:()=>{U&&_(y),b(),x()}}))));n&&(te=n(te));let ne=`${T}-container`,K=`marginLeft`,q=`marginRight`,re=Q.createElement(`div`,{ref:t,onMouseDown:m,tabIndex:-1,
738className:X(ne,`${w}-${r}-panel-container`,S?.popup?.container),style:{[E?q:K]:j,[E?K:q]:`auto`,...C?.popup?.container},onFocus:f,onBlur:p},te);return o&&(re=Q.createElement(`div`,{onMouseDown:m,ref:O,className:X(`${w}-range-wrapper`,`${w}-${i}-range-wrapper`)},Q.createElement(`div`,{ref:D,className:`${w}-range-arrow`,style:{left:N}}),Q.createElement(Pa,{onResize:F},re))),re}function pV(e,t){let{format:n,maskFormat:r,generateConfig:i,locale:a,preserveInvalidOnBlur:o,inputReadOnly:s,required:c,"aria-required":l,onSubmit:u,onFocus:d,onBlur:f,onInputChange:p,onInvalid:m,open:h,onOpenChange:g,onKeyDown:_,onChange:v,activeHelp:y,name:b,autoComplete:x,id:S,value:C,invalid:w,placeholder:T,disabled:E,activeIndex:D,allHelp:O,picker:k}=e,A=(e,t)=>{let n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},j=n[0],M=Q.useCallback(e=>Mz(e,{locale:a,format:j,generateConfig:i}),[a,i,j]),N=Q.useMemo(()=>C.map(M),[C,M]),P=Q.useMemo(()=>{let e=k===`time`?8:10,t=typeof j==`function`?j(i.getNow()).length:j.length;return Math.max(e,t)+2},[j,k,i]),F=e=>{for(let t=0;t<n.length;t+=1){let r=n[t];if(typeof r==`string`){let t=A(e,r);if(t)return t}}return!1};return[n=>{function i(e){return n===void 0?e:e[n]}let a={...ha(e,{aria:!0,data:!0}),format:r,validateFormat:e=>!!F(e),preserveInvalidOnBlur:o,readOnly:s,required:c,"aria-required":l,name:b,autoComplete:x,size:P,id:i(S),value:i(N)||``,invalid:i(w),placeholder:i(T),active:D===n,helped:O||y&&D===n,disabled:i(E),onFocus:e=>{d(e,n)},onBlur:e=>{f(e,n)},onSubmit:u,onChange:e=>{p();let t=F(e);if(t){m(!1,n),v(t,n);return}m(!!e,n)},onHelp:()=>{g(!0,{index:n})},onKeyDown:e=>{let t=!1;if(_?.(e,()=>{t=!0}),!e.defaultPrevented&&!t)switch(e.key){case`Escape`:g(!1,{index:n});break;case`Enter`:h||g(!0)}},...t?.({valueTexts:N})};return Object.keys(a).forEach(e=>{a[e]===void 0&&delete a[e]}),a},M]}var mV=[`onMouseEnter`,`onMouseLeave`];function hV(e){return Q.useMemo(()=>mz(e,mV),[e])}function gV(){return gV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gV.apply(this,arguments)}function _V({icon:e,...t}){let{prefixCls:n,classNames:r,styles:i}=Q.useContext(cz);return eo(e)?Q.createElement(`span`,gV({className:X(`${n}-suffix`,r.suffix),style:i.suffix},t),e):null}function vV(){return vV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vV.apply(this,arguments)}function yV({icon:e,onClear:t,...n}){let{prefixCls:r,classNames:i,styles:a,locale:o}=Q.useContext(cz);return Q.createElement(`button`,vV({},n,{type:`button`,"aria-label":o.clear,className:X(`${r}-clear`,i.suffix),style:a.suffix,onMouseDown:e=>{e.preventDefault()},onClick:e=>{e.stopPropagation(),t()}}),e)}function bV(e,t,n=1){let r=Q.useRef(t);r.current=t,Oa(()=>{if(e)r.current(e);else{let t=Ra(()=>{r.current(e)},n);return()=>{Ra.cancel(t)}}},[e])}var xV=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],SV=`é¡§`,CV=class{format;maskFormat;cells;maskCells;constructor(e){this.format=e;let t=xV.map(e=>`(${e})`).join(`|`),n=new RegExp(t,`g`);this.maskFormat=e.replace(n,e=>SV.repeat(e.length));let r=RegExp(`(${xV.join(`|`)})`),i=(e.split(r)||[]).filter(e=>e),a=0;this.cells=i.map(e=>{let t=xV.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(e=>e.mask)}getSelection(e){let{start:t,end:n}=this.maskCells[e]||{};return[t||0,n||0]}match(e){for(let t=0;t<this.maskFormat.length;t+=1){let n=this.maskFormat[t],r=e[t];if(!r||n!==SV&&n!==r)return!1}return!0}size(){return this.maskCells.length}getMaskCellIndex(e){let t=2**53-1,n=0;for(let r=0;r<this.maskCells.length;r+=1){let{start:i,end:a}=this.maskCells[r];if(e>=i&&e<=a)return r;let o=Math.min(Math.abs(e-i),Math.abs(e-a));o<t&&(t=o,n=r)}return n}};function wV(e){return{YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}function TV(){return TV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TV.apply(this,arguments)}var EV=Q.forwardRef((e,t)=>
738{let{className:n,active:r,showActiveCls:i=!0,suffixIcon:a,format:o,validateFormat:s,onChange:c,onInput:l,helped:u,onHelp:d,onSubmit:f,onKeyDown:p,preserveInvalidOnBlur:m=!1,invalid:h,clearIcon:g,..._}=e,{value:v,onFocus:y,onBlur:b,onMouseUp:x}=e,{prefixCls:S,input:C=`input`,classNames:w,styles:T}=Q.useContext(cz),E=`${S}-input`,[D,O]=Q.useState(!1),[k,A]=Q.useState(v),[j,M]=Q.useState(``),[N,P]=Q.useState(null),[F,I]=Q.useState(null),L=k||``;Q.useEffect(()=>{A(v)},[v]);let R=Q.useRef(null),z=Q.useRef(null),B=Q.useRef(!1);Q.useImperativeHandle(t,()=>({nativeElement:R.current,inputElement:z.current,focus:e=>{z.current.focus(e)},blur:()=>{z.current.blur()}}));let V=Q.useMemo(()=>new CV(o||``),[o]),[H,U]=Q.useMemo(()=>u?[0,0]:V.getSelection(N),[V,N,u]),W=e=>{e&&e!==o&&e!==v&&d()},G=da(e=>{s(e)&&c(e),A(e),W(e)}),ee=e=>{if(!o){let t=e.target.value;W(t),A(t),c(t)}},te=e=>{if(B.current){e.preventDefault();return}let t=e.clipboardData.getData(`text`);s(t)&&G(t)},ne=()=>{B.current=!0},K=e=>{let{selectionStart:t}=e.target,n=V.getMaskCellIndex(t);P(n),I({}),x?.(e),B.current=!1},q=e=>{O(!0),P(0),M(``),y(e)},re=e=>{b(e)},J=e=>{O(!1),re(e)};bV(r,()=>{!r&&!m&&A(v)}
738);let ie=e=>{e.key===`Enter`&&s(L)&&f(),p?.(e)},ae=e=>{if(B.current){e.preventDefault();return}ie(e);let{key:t}=e,n=null,r=null,i=U-H,a=o.slice(H,U),s=e=>{P(t=>{let n=t+e;return n=Math.max(n,0),n=Math.min(n,V.size()-1),n})},c=e=>{let[t,n,r]=wV(a),i=L.slice(H,U),o=Number(i);if(isNaN(o))return String(r||(e>0?t:n));let s=o+e,c=n-t+1;return String(t+(c+s-t)%c)};switch(t){case`Backspace`:case`Delete`:n=``,r=a;break;case`ArrowLeft`:n=``,s(-1);break;case`ArrowRight`:n=``,s(1);break;case`ArrowUp`:n=``,r=c(1);break;case`ArrowDown`:n=``,r=c(-1);break;default:isNaN(Number(t))||(n=j+t,r=n)}if(n!==null&&(M(n),n.length>=i&&(s(1),M(``))),r!==null){let e=L.slice(0,H)+dz(r,i)+L.slice(U);G(e.slice(0,o.length))}I({})},oe=Q.useRef(void 0);_o(()=>{if(D&&o&&!B.current){if(!V.match(L)){G(o);return}return z.current.setSelectionRange(H,U),oe.current=Ra(()=>{z.current.setSelectionRange(H,U)}),()=>{Ra.cancel(oe.current)}}},[V,o,D,L,N,H,U,F,G]);let se=o?{onFocus:q,onBlur:J,onKeyDown:ae,onMouseDown:ne,onMouseUp:K,onPaste:te}:{};return Q.createElement(`div`,{ref:R,className:X(E,{[`${E}-active`]:r&&i,[`${E}-placeholder`]:u},n)},Q.createElement(C,TV({ref:z,"aria-invalid":h,autoComplete:`off`},_,{onKeyDown:ie,onBlur:re},se,{value:L,onChange:ee,className:w.input,style:T.input})),Q.createElement(_V,{icon:a}),g)});function DV(){return DV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DV.apply(this,arguments)}function OV(e,t){let{id:n,prefix:r,clearIcon:i,suffixIcon:a,separator:o=`~`,activeIndex:s,activeHelp:c,allHelp:l,focused:u,onFocus:d,onBlur:f,onKeyDown:p,locale:m,generateConfig:h,placeholder:g,className:_,style:v,onClick:y,onClear:b,value:x,onChange:S,onSubmit:C,onInputChange:w,format:T,maskFormat:E,preserveInvalidOnBlur:D,onInvalid:O,disabled:k,invalid:A,inputReadOnly:j,direction:M,onOpenChange:N,onActiveInfo:P,placement:F,onMouseDown:I,required:L,"aria-required":R,autoFocus:z,tabIndex:B,...V}=e,H=M===`rtl`,{prefixCls:U,classNames:W,styles:G}=Q.useContext(cz),ee=Q.useMemo(()=>{if(typeof n==`string`)return[n];let e=n||{};return[e.start,e.end]},[n]),te=Q.useRef(null),ne=Q.useRef(null),K=Q.useRef(null),q=e=>[ne,K][e]?.current;Q.useImperativeHandle(t,()=>({nativeElement:te.current,startInput:ne.current.inputElement,endInput:K.current.inputElement,focus:e=>{if(typeof e==`object`){let{index:t=0,...n}=e||{};q(t)?.focus(n)}else q(e??0)?.focus()},blur:()=>{q(0)?.blur(),q(1)?.blur()}}));let re=hV(V),J=Q.useMemo(()=>Array.isArray(g)?g:[g,g],[g]),[ie]=pV({...e,id:ee,placeholder:J}),[ae,oe]=Q.useState({position:`absolute`,width:0}),se=da(()=>{let e=q(s);if(e){let t=e.nativeElement.getBoundingClientRect(),n=te.current.getBoundingClientRect(),r=t.left-n.left;oe(e=>({...e,width:t.width,left:r})),P([t.left,t.right,n.width])}});Q.useEffect(()=>{se()},[s]);let ce=eo(i)&&(x[0]&&!k[0]||x[1]&&!k[1]),le=z&&!k[0],ue=z&&!le&&!k[1];return Q.createElement(Pa,{onResize:se},Q.createElement(`div`,DV({},re,{className:X(U,`${U}-range`,{[`${U}-focused`]:u,[`${U}-disabled`]:k.every(e=>e),[`${U}-invalid`]:A.some(e=>e),[`${U}-rtl`]:H},_),style:v,ref:te,onClick:y,onMouseDown:e=>{let{target:t}=e;t!==ne.current.inputElement&&t!==K.current.inputElement&&e.preventDefault(),I?.(e)}}),eo(r)&&Q.createElement(`div`,{className:X(`${U}-prefix`,W.prefix),style:G.prefix},r),Q.createElement(EV,DV({ref:ne},ie(0),{className:`${U}-input-start`,autoFocus:le,tabIndex:B,"date-range":`start`})),Q.createElement(`div`,{className:`${U}-range-separator`},o),Q.createElement(EV,DV({ref:K},ie(1),{className:`${U}-input-end`,autoFocus:ue,tabIndex:B,"date-range":`end`})),Q.createElement(`div`,{className:`${U}-active-bar`,style:ae}),Q.createElement(_V,{icon:a}),ce&&Q.createElement(yV,{icon:i,onClear:b})))}var kV=Q.forwardRef(OV);function AV(e,t){return(0,Q.useMemo)(()=>[{...e,popup:e?.popup||{}},{...t,popup:t?.popup||{}}],[e,t])}function jV(){return jV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jV.apply(this,arguments)}function MV(e,t){let n=e??t;return Array.isArray(n)?n:[n,n]}function NV(e){return e===1?`end`:`start`}function PV(e,t){let[n,r,i,a,o,s]=$z(e,()=>{let{disabled:t,allowEmpty:n}=e;return{disabled:MV(t,!1),allowEmpty:MV(n,!1)}}),{prefixCls:c,rootClassName:l,styles:u,classNames:d,previewValue:f,defaultValue:p,value:m,needConfirm:h,onClear:g,onKeyDown:_,disabled:v,allowEmpty:y,disabledDate:b,minDate:x,maxDate:S,defaultOpen:C,open:w,onOpenChange:T,locale:E,generateConfig:D,picker:O,showNow:k,showToday:A,showTime:j,mode:M,onPanelChange:N,onCalendarChange:P,onOk:F,defaultPickerValue:I,pickerValue:L,onPickerValueChange:R,inputReadOnly:z,suffixIcon:B,onFocus:V,onBlur:H,presets:U,ranges:W,components:G,cellRender:ee,dateRender:te,monthCellRender:ne,onClick:K}=n,q=aB(t),re=Q.useRef(null),[J,ie]=AV(d,u),[ae,oe]=iB(w,C,v,T),se=(e,t)=>{(v.some(e=>!e)||!e)&&oe(e,t)},[ce,le,ue,de,fe]=gB(D,E,a,!0,!1,p,m,P,F),pe=ue(),[me,he,ge]=tB(da(e=>eB(e,[q.current.nativeElement,re.current])),(e,t)=>{V?.(t,{range:NV(e)})},(e,t)=>{H?.(t,{range:NV(e)})},()=>{se(!1)}),[_e,ve,ye]=_B(n,ce,le,ue,de,v,a,s),be=da((e,t)=>{de(pz(ue(),e,t))}),xe=da((e,t)=>{_e(e,t),t&&se(!1,{force:!0})}),Se=v.filter(e=>!e).length,[Ce,we,Te,Ee,De,Oe]=vB(Se,h,y,ue,be,xe,ye);nB(Ce,Te,q,re,se),_o(e=>{!e&&!ae&&De(Ce??we,`popupClose`)},[ae]);let ke=Q.useMemo(()=>
738{if(!j)return null;let{disabledTime:e}=j,t=e?t=>{let n=NV(we),r=gz(pe,Ee,we);return e(t,n,{from:r})}:void 0;return{...j,disabledTime:t}},[j,we,pe,Ee]),[Ae,je]=wa([O,O],M),Me=Ae[we]||O,Ne=Me===`date`&&ke?`datetime`:Me,Pe=Ne===O&&Ne!==`time`,Fe=yB(O,Me,k,A,!0),Ie=sB(pe,v,we,Ee,D,E,b),[Le,Re]=Fz(pe,s,y),[ze,Be]=uB(D,E,pe,Ae,ae,me,we,r,Pe,I,L,ke?.defaultOpenValue,R,x,S),Ve=da((e,t,n)=>{let r=pz(Ae,we,t);if((r[0]!==Ae[0]||r[1]!==Ae[1])&&je(r),N&&n!==!1){let t=[...pe];e&&(t[we]=e),N(t,r)}}),He=(e,t)=>pz(pe,t,e),Ue=(e,t=`confirm`)=>{De(we,t,e??void 0)},We=e=>{let t=e.target.getRootNode();if(!q.current.nativeElement.contains(t.activeElement??document.activeElement)){let e=v.findIndex(e=>!e);e>=0&&q.current.focus({index:e})}se(!0),K?.(e)},Ge=()=>{Oe(),ve(null),se(!1,{force:!0}),g?.()},[Ke,qe]=Q.useState(null),[Je,Ye]=Q.useState(null),Xe=Q.useMemo(()=>Je||pe,[pe,Je]),Ze=Ke===`cell`&&!pe[(we+1)%2]&&!Ez(D,pe[we],ce[we]),Qe=Je?.[we];Q.useEffect(()=>{ae||Ye(null)},[ae]);let[$e,et]=Q.useState([0,0,0]),tt=(e,t)=>{f===`hover`&&(Ye(e),qe(t))},nt=oB(U,W),rt=e=>{tt(e,`preset`)},it=e=>{ve(e)&&se(!1,{force:!0})},at=e=>{Ue(e)},ot=e=>{tt(e?He(e,we):null,`cell`)},st=e=>{se(!0),he(we,`panel`,e)},ct=e=>{De(we,!i&&r===Ne?`panel-final`:`panel-intermediate`,e)},lt=()=>{se(!1)},ut=Pz(ee,te,ne,NV(we)),dt=pe[we]||null,ft=da(e=>s(e,{activeIndex:we})),pt=Q.useMemo(()=>{let e=ha(n,!1);return _a(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`])},[n]),mt=Q.createElement(fV,jV({containerRef:re},pt,{showNow:Fe,showTime:ke,range:!0,multiplePanel:Pe,activeInfo:$e,disabledDate:Ie,onFocus:st,onBlur:e=>ge(we,`panel`,e),picker:O,mode:Me,internalMode:Ne,onPanelChange:Ve,format:o,value:dt,isInvalid:ft,onChange:null,onSelect:ct,pickerValue:ze,defaultOpenValue:fz(j?.defaultOpenValue)[we],onPickerValueChange:Be,hoverValue:Ze&&Qe?[Qe]:null,hoverRangeValue:Ze?null:Xe,onHover:ot,needConfirm:h,onSubmit:e=>Ue(e,`confirm`),onOk:fe,presets:nt,onPresetHover:rt,onPresetSubmit:it,onNow:at,cellRender:ut,classNames:J,styles:ie})),ht=(e,t)=>{De(t,`input`,e)},gt=()=>{De(we,`input`)},_t=(e,t)=>{De(t,`field-switch`),se(!0,{inherit:!0}),he(t,`input`,e)},vt=(e,t)=>{ge(t,`input`,e)},yt=(e,t)=>{e.key===`Tab`?Ue(null,`keyboard-submit-weak`):e.key===`Escape`&&(De(we,`esc`),se(!1)),_?.(e,t)},bt=Q.useMemo(()=>({prefixCls:c,locale:E,generateConfig:D,button:G.button,input:G.input,classNames:J,styles:ie}),[c,E,D,G.button,G.input,J,ie]);return _o(()=>{ae&&we!==void 0&&Ve(null,O,!1)},[ae,we,O]),Q.createElement(cz.Provider,{value:bt},Q.createElement(uz,jV({},_z(n),{popupElement:mt,popupStyle:ie.popup.root,popupClassName:X(l,J.popup.root),visible:ae,onClose:lt,range:!0}),Q.createElement(kV,jV({},n,{ref:q,className:X(n.className,l,J.root),style:{...ie.root,...n.style},suffixIcon:B,activeIndex:me||ae?we:null,activeHelp:!!Je,allHelp:!!Je&&Ke===`preset`,focused:me,onFocus:_t,onBlur:vt,onKeyDown:yt,onSubmit:()=>Ue(null,`keyboard-submit`),value:Xe,maskFormat:o,onChange:ht,onInputChange:gt,format:a,inputReadOnly:z,disabled:v,open:ae,onOpenChange:se,onClick:We,onClear:Ge,invalid:Le,onInvalid:Re,onActiveInfo:et}))))}var FV=Q.forwardRef(PV);function IV(e){let{prefixCls:t,value:n,onRemove:r,removeIcon:i=`×`,formatDate:a,disabled:o,maxTagCount:s,tagRender:c,placeholder:l}=e,u=`${t}-selector`,d=`${t}-selection`,f=`${d}-overflow`;function p(e,t){return Q.createElement(`span`,{className:X(`${d}-item`),title:typeof e==`string`?e:null},Q.createElement(`span`,{className:`${d}-item-content`},e),!o&&t&&Q.createElement(`span`,{onMouseDown:e=>{e.preventDefault()},onClick:t,className:`${d}-item-remove`},i))}function m(e){let t=a(e),n=!o,i=t=>{t&&t.stopPropagation(),o||r(e)};return c?c({label:t,value:e,disabled:!!o,closable:n,onClose:i}):p(t,i)}function h(e){return p(`+ ${e.length} ...`)}return Q.createElement(`div`,{className:u},Q.createElement(us,{prefixCls:f,data:n,renderItem:m,renderRest:h,itemKey:e=>a(e),maxCount:s}),!n.length&&Q.createElement(`span`,{className:`${t}
738-selection-placeholder`},l))}function LV(){return LV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LV.apply(this,arguments)}function RV(e,t){let{id:n,open:r,prefix:i,clearIcon:a,suffixIcon:o,activeHelp:s,allHelp:c,focused:l,onFocus:u,onBlur:d,onKeyDown:f,locale:p,generateConfig:m,placeholder:h,className:g,style:_,onClick:v,onClear:y,internalPicker:b,value:x,onChange:S,onSubmit:C,onInputChange:w,multiple:T,maxTagCount:E,tagRender:D,format:O,maskFormat:k,preserveInvalidOnBlur:A,onInvalid:j,disabled:M,invalid:N,inputReadOnly:P,direction:F,onOpenChange:I,onMouseDown:L,required:R,"aria-required":z,autoFocus:B,tabIndex:V,removeIcon:H,...U}=e,W=F===`rtl`,{prefixCls:G,classNames:ee,styles:te}=Q.useContext(cz),ne=Q.useRef(null),K=Q.useRef(null);Q.useImperativeHandle(t,()=>({nativeElement:ne.current,focus:e=>{K.current?.focus(e)},blur:()=>{K.current?.blur()}}));let q=hV(U),re=e=>{S([e],`input`)},J=e=>{let t=x.filter(t=>t&&!Oz(m,p,t,e,b));S(t,r?`input`:`remove`)},[ie,ae]=pV({...e,onChange:re},({valueTexts:e})=>({value:e[0]||``,active:l})),oe=eo(a)&&!!x.length&&!M,se=T?Q.createElement(Q.Fragment,null,Q.createElement(IV,{prefixCls:G,value:x,onRemove:J,formatDate:ae,maxTagCount:E,tagRender:D,disabled:M,removeIcon:H,placeholder:h}),Q.createElement(`input`,{className:`${G}-multiple-input`,value:x.map(ae).join(`,`),ref:K,readOnly:!0,autoFocus:B,tabIndex:V}),Q.createElement(_V,{icon:o}),oe&&Q.createElement(yV,{icon:a,onClear:y})):Q.createElement(EV,LV({ref:K},ie(),{autoFocus:B,tabIndex:V,suffixIcon:o,clearIcon:oe&&Q.createElement(yV,{icon:a,onClear:y}),showActiveCls:!1}));return Q.createElement(`div`,LV({},q,{className:X(G,{[`${G}-multiple`]:T,[`${G}-focused`]:l,[`${G}-disabled`]:M,[`${G}-invalid`]:N,[`${G}-rtl`]:W},g),style:_,ref:ne,onClick:v,onMouseDown:e=>{let{target:t}=e;t!==K.current?.inputElement&&e.preventDefault(),L?.(e)}}),eo(i)&&Q.createElement(`div`,{className:X(`${G}-prefix`,ee.prefix),style:te.prefix},i),se)}var zV=Q.forwardRef(RV);function BV(){return BV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BV.apply(this,arguments)}function VV(e,t){let[n,r,i,a,o,s]=$z(e),{prefixCls:c,rootClassName:l,styles:u,classNames:d,previewValue:f,order:p,defaultValue:m,value:h,needConfirm:g,onChange:_,onClear:v,onKeyDown:y,disabled:b,disabledDate:x,minDate:S,maxDate:C,defaultOpen:w,open:T,onOpenChange:E,locale:D,generateConfig:O,picker:k,showNow:A,showToday:j,showTime:M,mode:N,onPanelChange:P,onCalendarChange:F,onOk:I,multiple:L,defaultPickerValue:R,pickerValue:z,onPickerValueChange:B,inputReadOnly:V,suffixIcon:H,removeIcon:U,tagRender:W,onFocus:G,onBlur:ee,presets:te,components:ne,cellRender:K,dateRender:q,monthCellRender:re,onClick:J}=n,ie=aB(t),ae=Q.useRef(null);function oe(e){return e===null?null:L?e:e[0]}let se=TB(O,D,r),[ce,le]=AV(d,u),[ue,de]=iB(T,w,[b],E),[fe,pe,me,he,ge]=gB(O,D,a,!1,p,m,h,(e,t,n)=>{if(F){let r={...n};delete r.range,F(oe(e),oe(t),r)}},e=>{I?.(oe(e))}),_e=me(),[ve,ye,be]=tB(da(e=>eB(e,[ie.current.nativeElement,ae.current])),(e,t)=>{G?.(t,{})},(e,t)=>{ee?.(t,{})},()=>{de(!1)}),[xe,Se]=wa(k,N),Ce=xe===`date`&&M?`datetime`:xe,we=yB(k,xe,A,j),Te=_&&((e,t)=>{_(oe(e),oe(t))}),[,Ee,De]=_B({...n,onChange:Te},fe,pe,me,he,[],a,s),[,Oe,,,ke,Ae]=vB(1,g,[!1],da(()=>{let e=me();return[e.length?e:null]}),da((e,t)=>{he(t)}),da((e,t)=>{t&&(Ee(me()),de(!1,{force:!0}))}),da(()=>{De()}));_o(e=>{!e&&!ue&&ke(0,`popupClose`)},[ue]);let[je,Me]=Fz(_e,s),Ne=Q.useMemo(()=>je.some(e=>e),[je]),[Pe,Fe]=uB(O,D,_e,[xe],ue,!1,Oe,r,!1,R,z,fz(M?.defaultOpenValue),(e,t)=>{if(B){let n={...t,mode:t.mode[0]};delete n.range,B(e[0],n)}},S,C),Ie=da((e,t,n)=>{if(Se(t),P&&n!==!1){let n=e||_e[_e.length-1];P(n,t)}}),Le=(e=`confirm`)=>{ke(0,e)},Re=e=>{!b&&!ie.current.nativeElement.contains(document.activeElement)&&ie.current.focus(),de(!0),J?.(e)},ze=()=>{Ae(),Ee(null),de(!1,{force:!0}),ie.current.focus(),v?.()},[Be,Ve]=Q.useState(null),[He,Ue]=Q.useState(null),We=Q.useMemo(()=>{let e=[He,..._e].filter(e=>e);return L?e:e.slice(0,1)},[_e,He,L]),Ge=Q.useMemo(()=>!L&&He?[He]:_e.filter(e=>e),[_e,He,L]);Q.useEffect(()=>{ue||Ue(null)},[ue]);let Ke=(e,t)=>{f===`hover`&&(Ue(e),Ve(t))},qe=oB(te),Je=e=>{Ke(e,`preset`)},Ye=e=>{let t=L?se(me(),e):[e];Ee(t)&&!L&&de(!1,{force:!0})},Xe=e=>{Ye(e)},Ze=e=>{Ke(e,`cell`)},Qe=e=>{de(!0),ye(0,`panel`,e)},$e=e=>{if(L&&Ce!==k)return;let t=L?se(me(),e):[e];ke(0,!i&&r===Ce?`panel-final`:`panel-intermediate`,t)},et=()=>{de(!1)},tt=Pz(K,q,re),nt=Q.useMemo(()=>{let e=ha(n,!1);return{..._a(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`classNames`,`styles`]),multiple:n.multiple}},[n]),rt=Q.createElement(fV,BV({containerRef:ae},nt,{showNow:we,showTime:M,disabledDate:x,onFocus:Qe,onBlur:e=>be(0,`panel`,e),picker:k,mode:xe,internalMode:Ce,onPanelChange:Ie,format:o,value:_e,isInvalid:s,onChange:null,onSelect:$e,pickerValue:Pe,defaultOpenValue:M?.defaultOpenValue,onPickerValueChange:Fe,hoverValue:We,onHover:Ze,needConfirm:g,onSubmit:()=>Le(`confirm`),onOk:ge,presets:qe,onPresetHover:Je,onPresetSubmit:Ye,onNow:Xe,cellRender:tt,classNames:ce,styles:le})),it=(e,t=`input`)=>{ke(0,t,e)},at=()=>{ke(0,`input`)},ot=e=>{ke(0,`field-switch`),de(!0,{inherit:!0}),ye(0,`input`,e)},st=e=>{be(0,`input`,e)},ct=(e,t)=>
738{e.key===`Tab`?Le(`keyboard-submit-weak`):e.key===`Escape`&&(ke(0,`esc`),de(!1)),y?.(e,t)},lt=Q.useMemo(()=>({prefixCls:c,locale:D,generateConfig:O,button:ne.button,input:ne.input,classNames:ce,styles:le}),[c,D,O,ne.button,ne.input,ce,le]);return _o(()=>{ue&&Oe!==void 0&&Ie(null,k,!1)},[ue,Oe,k]),Q.createElement(cz.Provider,{value:lt},Q.createElement(uz,BV({},_z(n),{popupElement:rt,popupStyle:le.popup.root,popupClassName:X(l,ce.popup.root),visible:ue,onClose:et}),Q.createElement(zV,BV({},n,{ref:ie,className:X(n.className,l,ce.root),style:{...le.root,...n.style},suffixIcon:H,removeIcon:U,tagRender:W,activeHelp:!!He,allHelp:!!He&&Be===`preset`,focused:ve,onFocus:ot,onBlur:st,onKeyDown:ct,onSubmit:()=>Le(`keyboard-submit`),value:Ge,maskFormat:o,onChange:it,onInputChange:at,internalPicker:r,format:a,inputReadOnly:V,disabled:b,open:ue,onOpenChange:de,onClick:Re,onClear:ze,invalid:Ne,onInvalid:e=>{Me(e,0)}}))))}var HV=Q.forwardRef(VV),UV=(e,t,n,r,i,a,o)=>{let{classNames:s,style:c,styles:l}=ea(e),u=fa(o===null?void 0:o??c),[d,f]=ho([s,t],[l,u,n],{props:a},{popup:{_default:`root`}});return Q.useMemo(()=>[{...d,popup:{...d.popup,root:X(d.popup?.root,r)}},{...f,popup:{...f.popup,root:{...f.popup?.root,...i}}}],[d,f,r,i])},WV=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:Z(t),itemLineHeight:Z(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},GV=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:l,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:`calc(100% - 4px)`,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`,`line-height`,`height`].map(e=>`${e} ${i}`).join(`, `),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":{...aa(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}}}}},KV=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=WV(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:Z(a.itemLineHeight)}}}]},qV=e=>{let{componentCls:t,calc:n,lineWidth:r}=e,i=na(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=na(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[KV(i,`small`),KV(e),KV(a,`large`),{[`${t}${t}-multiple`]:{width:`100%`,cursor:`text`,[`${t}-selector`]:{flex:`auto`,padding:0,position:`relative`,"&:after":{margin:0},[`${t}
738-selection-placeholder`]:{position:`absolute`,top:`50%`,insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`,flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`,...Wa}},...GV(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}}}]},JV=e=>{let{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:c,colorPrimary:l,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=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:Z(r),borderRadius:i,transition:`background-color ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
739    &: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:`${Z(s)} ${c} ${l}`,borderRadius:i,content:`""`}},[`&-in-view${t}-in-range,
740      &-in-view${t}-range-start,
741      &-in-view${t}-range-end`]:{position:`relative`,[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
742      &-in-view${t}-range-start,
743      &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:l},[`&${t}-disabled ${n}`]:{background:m}},[`&-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:f,cursor:`not-allowed`,[n]:{background:`transparent`},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},YV=e=>{let{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:c,paddingXXS:l,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:_,colorIcon:v,textHeight:y,motionDurationMid:b,colorIconHover:x,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:w,colorTextDisabled:T,colorText:E,fontSize:D,motionDurationSlow:O,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:A,borderRadiusSM:j,colorTextLightSolid:M,cellHoverBg:N,timeColumnHeight:P,timeColumnWidth:F,timeCellHeight:I,controlItemBgActive:L,marginXXS:R,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:B}=e,V=e.calc(o).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:`inline-flex`,flexDirection:`column`,textAlign:`center`,background:u,borderRadius:p,outline:`none`,"&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,
744              ${t}-super-prev-icon`]:{transform:`rotate(45deg)`},[`${t}-next-icon,
745              ${t}-super-next-icon`]:{transform:`rotate(-135deg)`},[`${t}-time-panel`]:{[`${t}-content`]:{direction:`ltr`,"> *":{direction:`rtl`}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:`flex`,flexDirection:`column`,width:V},"&-header":{display:`flex`,padding:`0 ${Z(c)}`,color:h,borderBottom:`${Z(d)} ${f} ${g}`,"> *":{flex:`none`},button:{padding:0,color:v,lineHeight:Z(y),background:`transparent`,border:0,cursor:`pointer`,transition:`color ${b}`,fontSize:`inherit`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,"&:empty":{display:`none`}},"> button":{minWidth:`1.6em`,fontSize:D,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:`none`}},"&-view":{flex:`auto`,fontWeight:S,lineHeight:Z(y),"> button":{color:`inherit`,fontWeight:`inherit`,verticalAlign:`to
745p`,"&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:`relative`,width:a,height:a,"&::before":{position:`absolute`,top:0,insetInlineStart:0,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:`absolute`,top:B,insetInlineStart:B,display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,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:C,fontWeight:`normal`},th:{height:e.calc(C).add(e.calc(w).mul(2)).equal(),color:E,verticalAlign:`middle`}},"&-cell":{padding:`${Z(w)} 0`,color:T,cursor:`pointer`,"&-in-view":{color:E},...JV(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${Z(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${Z(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${Z(c)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${Z(c)} ${Z(z)}`},[`${t}-content th`]:{boxSizing:`border-box`,padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${b}`},"&:first-child:before":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child:before":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new ja(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Z(c)} ${Z(s)}`},[`${t}-content th`]:{width:`auto`}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${Z(d)} ${f} ${g}`},[`${t}-date-panel,
746          ${t}-time-panel`]:{transition:`opacity ${O}`},"&-active":{[`${t}-date-panel,
747            ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:`auto`,minWidth:`auto`,[`${t}-content`]:{display:`flex`,flex:`auto`,height:P},"&-column":{flex:`1 0 auto`,width:F,margin:`${Z(l)} 0`,padding:0,overflowY:`auto`,textAlign:`start`,listStyle:`none`,transition:`background-color ${b}`,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% - ${Z(I)})`,content:`""`},"&:not(:first-child)":{borderInlineStart:`${Z(d)} ${f} ${g}`},"&-active":{background:new ja(L).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:R,[`${t}-time-panel-cell-inner`]:{display:`block`,width:e.calc(F).sub(e.calc(R).mul(2)).equal(),height:I,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(F).sub(I).div(2).equal(),color:E,lineHeight:Z(I),borderRadius:j,cursor:`pointer`,transition:`background-color ${b}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:`transparent`,cursor:`not-allowed`}}}}}}}}},XV=e=>{let{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:l,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Z(r)} ${l} ${u}`,"&-extra":{padding:`0 ${Z(i)}`,lineHeight:Z(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:`start`,"&:not(:last-child)":{borderBottom:`${Z(r)} ${l} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:`space-between`},[`${t}-ranges`]:{marginBlock:0,paddingInline:Z(i),overflow:`hidden`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,"> li":{lineHeight:Z(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:c,cursor:`pointer`},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:`auto`}}}}},ZV=e=>{let{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()}},QV=e=>
vendor: 8,905 bytes, lines 747-757
747{let{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,c=o*2,l=Math.min(n-s,n-c),u=Math.min(r-s,r-c),d=Math.min(i-s,i-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new ja(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ja(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:`transparent`,multipleItemHeight:l,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:`transparent`}},$V=e=>({...wo(e),...QV(e),...Se(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),eH=e=>{let{componentCls:t}=e;return{[t]:[{...Ds(e),...Vo(e),...$o(e),...Ts(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},tH=(e,t)=>({padding:`${Z(e)} ${Z(t)}`}),nH=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e,[i]=go(e.antCls,`date-picker`);return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[i(`affix-color`)]:e.colorErrorAffix,[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[i(`affix-color`)]:e.colorWarningAffix,[`${t}-active-bar`]:{background:r}}}}},rH=e=>{let{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:a,colorBorder:o,borderRadius:s,motionDurationMid:c,colorTextDisabled:l,colorTextPlaceholder:u,colorTextQuaternary:d,fontSizeLG:f,inputFontSizeLG:p,fontSizeSM:m,inputFontSizeSM:h,controlHeightSM:g,paddingInlineSM:_,paddingXS:v,marginXS:y,colorIcon:b,lineWidthBold:x,colorPrimary:S,motionDurationSlow:C,zIndexPopup:w,paddingXXS:T,sizePopupArrow:E,colorBgElevated:D,borderRadiusLG:O,boxShadowSecondary:k,borderRadiusSM:A,colorSplit:j,cellHoverBg:M,presetsWidth:N,presetsMaxWidth:P,boxShadowPopoverArrow:F,fontHeight:I,lineHeightLG:L}=e,[R,z]=go(n,`date-picker`);return[{[t]:{[R(`affix-color`)]:`inherit`,...Gi(e),...tH(e.paddingBlock,e.paddingInline),position:`relative`,display:`inline-flex`,alignItems:`center`,lineHeight:1,borderRadius:s,transition:[`border`,`box-shadow`,`background-color`].map(e=>`${e} ${c}`).join(`, `),[`${t}-prefix`]:{color:z(`affix-color`),flex:`0 0 auto`,marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:`relative`,display:`inline-flex`,alignItems:`center`,width:`100%`,"> input":{position:`relative`,display:`inline-block`,width:`100%`,color:`inherit`,fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`,...as(u),flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,fontFamily:`inherit`,"&:focus":{boxShadow:`none`,outline:0},"&[disabled]":{background:`transparent`,color:l,cursor:`not-allowed`}},"&-placeholder":{"> input":{color:u}}},"&-large":{...tH(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:p??f,lineHeight:L}},"&-small":{...tH(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:h??m}},[`${t}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:e.calc(v).div(2).equal(),color:d,lineHeight:1,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:d,lineHeight:1,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0,appearance:`none`,transform:`translateY(-50%)`,cursor:`pointer`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`},"&:hover":{color:b},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...Ui(e)}},"&:hover, &:focus-within":{[`${t}-clear`]:{opacity:1,pointerEvents:`auto`},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:`relative`,display:`inline-block`,width:`1em`,height:f,color:d,fontSize:f,verticalAlign:`top`,cursor:`default`,[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:`not-allowed`}}},"&-range":{position:`relative`,display:`inline-flex`,[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:x,background:S,opacity:0,transition:`all ${C} ease-out`,pointerEvents:`none`},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:`center`,padding:`0 ${Z(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:_}}},"&-dropdown":{...Gi(e),...YV(e),pointerEvents:`none`,position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${t}-dropdown-hidden`]:{display:`none`},"&-rtl":{direction:`rtl`},[`&${t}-dropdown-placement-bottomLeft,
748            &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:`block`,transform:`translateY(-100%)`}},[`&${t}-dropdown-placement-topLeft,
749            &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:`block`,transform:`translateY(100%) rotate(180deg)`}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:`none`}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
750          &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
751          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
752          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Fo},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
753          &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
754          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
755          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Bo},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:`none`},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
756          &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Io},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
757          &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:As},[`${t}-panel > ${t}-time-panel`]:{paddingTop:T},[`${t}-range-wrapper`]:{display:`flex`,position:`relative`},[`${t}-range-arrow`]:{position:`absolute`,zIndex:1,display:`none`,paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:`content-box`,transition:`all ${C} ease-out`,...we(e,D,F),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:D,borderRadius:O,boxShadow:k,transition:`margin ${C}`,display:`inline-block`,pointerEvents:`auto`,[`${t}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${t}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:N,maxWidth:P,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:v,borderInlineEnd:`${Z(i)} ${a} ${j}`,li:{...Wa,borderRadius:A,paddingInline:v,paddingBlock:e.calc(g).sub(I).div(2).equal(),cursor:`pointer`,transition:`all ${C}`,"+ li":{marginTop:y},"&:hover":{background:M}}}},[`${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:o}}}},"&-dropdown-range":{padding:`${Z(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${t}-separator`]:{transform:`scale(-1, 1)`},[`${t}-footer`]:{"&-extra":{direction:`rtl`}}}}},ls(e,`slide-up`),ls(e,`slide-down`),Co(e,`move-up`),Co(e,`move-down`)]},iH=Da(`DatePicker`,e=>{let t=na(Es(e),ZV(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});
757return[XV(t),rH(t),eH(t),nH(t),qV(t),Ut(e,{focusElCls:`${e.componentCls}-focused`})]},$V),aH=(e,t,n)=>ta(n)?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,oH=(e,t,n)=>ta(n)?n:t===`year`&&e.lang.rangeYearPlaceholder?e.lang.rangeYearPlaceholder:t===`quarter`&&e.lang.rangeQuarterPlaceholder?e.lang.rangeQuarterPlaceholder:t===`month`&&e.lang.rangeMonthPlaceholder?e.lang.rangeMonthPlaceholder:t===`week`&&e.lang.rangeWeekPlaceholder?e.lang.rangeWeekPlaceholder:t===`time`&&e.timePickerLocale.rangePlaceholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder,sH=(e,t)=>{let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=bs({...e,prefixCls:t,componentName:`DatePicker`});return[Q.useMemo(()=>n!==!1&&{clearIcon:r,...n===!0?{}:n},[n,r]),i]},[cH,lH]=[`week`,`WeekPicker`],[uH,dH]=[`month`,`MonthPicker`],[fH,pH]=[`year`,`YearPicker`],[mH,hH]=[`quarter`,`QuarterPicker`],[gH,_H]=[`time`,`TimePicker`],vH=e=>Q.createElement(Je,{size:`small`,type:`primary`,...e});function yH(e){return(0,Q.useMemo)(()=>({button:vH,...e}),[e])}var bH=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?Q.createElement(Q.Fragment,null,e===gH?Q.createElement(aM,{"aria-hidden":`true`}):Q.createElement(qj,{"aria-hidden":`true`}),t&&n):r,xH=e=>(0,Q.forwardRef)((t,n)=>{let{prefixCls:r,getPopupContainer:i,components:a,className:o,style:s,classNames:c,styles:l,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:m,status:h,variant:g,picker:_,dropdownClassName:v,popupClassName:y,popupStyle:b,rootClassName:x,suffixIcon:S,separator:C,allowClear:w,clearIcon:T,...E}=t,D=_===gH?`timePicker`:`datePicker`,{suffixIcon:O,clearIcon:k,allowClear:A}=ea(D),{getPrefixCls:j,direction:M,getPopupContainer:N,rangePicker:P}=(0,Q.useContext)(ma),F=Q.useRef(null),I=j(`picker`,r),{compactSize:L,compactItemClassnames:R}=Fa(I,M),z=j(),B=C??P?.separator,V=ta(B),[H,U]=is(`rangePicker`,g,p),W=no(I),[G,ee]=iH(I,W),te=X(G,ee,W,x),ne=Wo({componentName:`RangePicker`,allowClear:w,clearIcon:T,contextAllowClear:A,contextClearIcon:k,defaultAllowClear:!0}),K=yH(a),q=Ca(e=>d??L??e),re=Q.useContext(gn),J=f??re,ie={...t,size:q,disabled:J,status:h,variant:g},[ae,oe]=UV(D,c,l,y||v,b,ie,P?.style??null),{hasFeedback:se,status:ce,feedbackIcon:le}=(0,Q.useContext)(De),ue=bH({picker:_,hasFeedback:se,feedbackIcon:le,suffixIcon:S===void 0?O:S});(0,Q.useImperativeHandle)(n,()=>F.current);let[de]=lt(`Calendar`,St),fe=yo(de,t.locale||{}),[pe]=qa(`DatePicker`,oe?.popup?.root?.zIndex);return Q.createElement(ve,{space:!0},Q.createElement(FV,{separator:Q.createElement(`span`,{"aria-hidden":!V||void 0,className:`${I}-separator`},V?B:Q.createElement(XM,null)),disabled:J,ref:F,placement:u,placeholder:oH(fe,_,m),suffixIcon:ue,prevIcon:Q.createElement(`span`,{className:`${I}-prev-icon`}),nextIcon:Q.createElement(`span`,{className:`${I}-next-icon`}),superPrevIcon:Q.createElement(`span`,{className:`${I}-super-prev-icon`}),superNextIcon:Q.createElement(`span`,{className:`${I}-super-next-icon`}),transitionName:`${z}-slide-up`,picker:_,...E,locale:fe.lang,getPopupContainer:i||N,generateConfig:e,components:K,direction:M,prefixCls:I,rootClassName:te,className:X({[`${I}-large`]:q===`large`,[`${I}-small`]:q===`small`,[`${I}-${H}`]:U},Lo(I,To(ce,h),se),R,o,P?.className),style:s,classNames:ae,styles:{...oe,popup:{...oe.popup,root:{...oe.popup.root,zIndex:pe}}},allowClear:ne}))}),SH=e=>{let t=(t,n=`DatePicker`)=>{let r=n===_H?`timePicker`:`datePicker`;return(0,Q.forwardRef)((i,a)=>{let{prefixCls:o,getPopupContainer:s,components:c,style:l,className:u,size:d,bordered:f,placement:p,placeholder:m,disabled:h,status:g,variant:_,onCalendarChange:v,classNames:y,styles:b,dropdownClassName:x,popupClassName:S,popupStyle:C,rootClassName:w,suffixIcon:T,allowClear:E,clearIcon:D,...O}=i,{suffixIcon:k,clearIcon:A,allowClear:j}=ea(n===_H?`timePicker`:`datePicker`),{getPrefixCls:M,direction:N,getPopupContainer:P,[r]:F}=(0,Q.useContext)(ma),I=M(`picker`,o),{compactSize:L,compactItemClassnames:R}=Fa(I,N),z=Ca(e=>d??L??e),B=Q.useContext(gn),V=h??B,H={...i,size:z,disabled:V,status:g,variant:_},[U,W]=UV(r,y,b,S||x,C,H,F?.style),G=Q.useRef(null),[ee,te]=is(`datePicker`,_,f),ne=no(I),[K,q]=iH(I,ne),re=X(K,q,ne,w);(0,Q.useImperativeHandle)(a,()=>G.current);let J={showToday:!0},ie=t||i.picker,ae=M(),{onSelect:oe,multiple:se}
757=O,ce=oe&&t===`time`&&!se,le=(e,t,n)=>{v?.(e,t,n),ce&&oe(e)},[,ue]=sH(i,I),de=Wo({componentName:n,allowClear:E,clearIcon:D,contextAllowClear:j,contextClearIcon:A,defaultAllowClear:!0}),fe=yH(c),{hasFeedback:pe,status:me,feedbackIcon:he}=(0,Q.useContext)(De),ge=bH({picker:ie,hasFeedback:pe,feedbackIcon:he,suffixIcon:T===void 0?k:T}),[_e]=lt(`DatePicker`,St),ye=yo(_e,i.locale||{}),[be]=qa(`DatePicker`,W?.popup?.root?.zIndex);return Q.createElement(ve,{space:!0},Q.createElement(HV,{ref:G,placeholder:aH(ye,ie,m),suffixIcon:ge,placement:p,prevIcon:Q.createElement(`span`,{className:`${I}-prev-icon`}),nextIcon:Q.createElement(`span`,{className:`${I}-next-icon`}),superPrevIcon:Q.createElement(`span`,{className:`${I}-super-prev-icon`}),superNextIcon:Q.createElement(`span`,{className:`${I}-super-next-icon`}),transitionName:`${ae}-slide-up`,picker:t,onCalendarChange:le,...J,...O,locale:ye.lang,getPopupContainer:s||P,generateConfig:e,components:fe,direction:N,disabled:V,prefixCls:I,rootClassName:re,className:X({[`${I}-large`]:z===`large`,[`${I}-small`]:z===`small`,[`${I}-${ee}`]:te},Lo(I,To(me,g),pe),R,F?.className,u),style:l,classNames:U,styles:{...W,popup:{...W.popup,root:{...W.popup.root,zIndex:be}}},allowClear:de,removeIcon:ue}))})},n=t(),r=t(cH,lH),i=t(uH,dH),a=t(fH,pH),o=t(mH,hH);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(gH,_H),QuarterPicker:o}},CH=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=SH(e),s=xH(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},wH=CH(oz);wH._InternalPanelDoNotUseOrYouWillBeFired=No(wH,`popupAlign`,void 0,`picker`),wH._InternalRangePanelDoNotUseOrYouWillBeFired=No(wH.RangePicker,`popupAlign`,void 0,`picker`),wH.generatePicker=CH;var TH=`cr-date-picker-popup`,EH=({value:e,onChange:t,format:n,placeholder:r,defaultValue:i,css:a,...o})=>{let s=n??`MMM D, YYYY`,c=o.size??`middle`,l=o.allowClear??!0,u=r??`Select date & time`,d=o.popupClassName?`${TH} ${o.popupClassName}`:TH;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(DH,{}),(0,$.jsx)(OH,{$css:a,$size:c,children:(0,$.jsx)(wH,{...o,size:c,allowClear:l,value:e,defaultValue:i,format:s,placeholder:u,disabled:o.disabled,onChange:t,popupClassName:d})})]})},DH=a`
758  .${TH} {
759    /* Year-jump arrows (« / ») are not useful; hide them */
760    .ant-picker-header-super-prev-btn,
761    .ant-picker-header-super-next-btn {
762      display: none !important;
763    }
764
765    /* Time panel selected cell highlight */
766    .ant-picker-time-panel-cell-selected .ant-picker-time-panel-cell-inner {
767      background-color: var(--teal-50) !important;
768      color: var(--teal-600) !important;
769      font-weight: 600;
770    }
771
772    /* "Now" link */
773    .ant-picker-now-btn {
774      color: var(--teal-600) !important;
775    }
776
777    /* OK button */
778    .ant-picker-ok .ant-btn-primary {
779      background-color: var(--teal-600) !important;
780      border-color: var(--teal-600) !important;
781      box-shadow: none !important;
782    }
783
784    .ant-picker-ok .ant-btn-primary:hover:not(:disabled) {
785      background-color: var(--teal-500) !important;
786      border-color: var(--teal-500) !important;
787    }
788
789    .ant-picker-ok .ant-btn-primary:disabled {
790      background-color: var(--grey-100) !important;
791      border-color: var(--grey-200) !important;
792      color: var(--grey-300) !important;
793    }
794  }
795`,OH=n.span`
796  display: inline-flex;
797  align-items: center;
798  width: 100%;
799
800  .ant-picker {
801    ${({$size:e})=>e===`small`?r`
802            height: auto !important;
803            min-height: 32px !important;
804          `:e===`large`?r`
805              height: auto !important;
806              min-height: 40px !important;
807            `:r`
808              height: auto !important;
809              min-height: 36px !important;
810            `}
811
812    width: 100%;
813
814    input {
815      height: 100% !important;
816    }
817
818    ::placeholder {
819      color: var(--grey-300) !important;
820      font-size: 14px !important;
821    }
822  }
823
824  ${({$css:e})=>e&&r`
825      .ant-picker {
826        ${e}
827      }
828    `}
829`,kH=(0,Q.memo)(({value:e,onChange:t,disabled:n,isDateTime:r,minDate:i,maxDate:a})=>{let o=r?`YYYY-MM-DDTHH:mm:ss`:`YYYY-MM-DD`,s=r?`MMM D, HH:mm`:`MMM D, YYYY`,c=(0,Q.useMemo)(()=>{if(!e[0])return null;let t=(0,Uj.default)(e[0]);return t.isValid()?t:null},[e]),l=(0,Q.useMemo)(()=>{if(!e[1])return null;let t=(0,Uj.default)(e[1]);return t.isValid()?t:null},[e]),u=(0,Q.useMemo)(()=>i?(0,Uj.default)(i):null,[i]),d=(0,Q.useMemo)(()=>a?(0,Uj.default)(a):null,[a]),f=(0,Q.useCallback)(e=>!!(u&&e.isBefore(u,`day`)||d&&e.isAfter(d,`day`)||l&&e.isAfter(l,`day`)),[u,d,l]),p=(0,Q.useCallback)(e=>!!(u&&e.isBefore(u,`day`)||d&&e.isAfter(d,`day`)||c&&e.isBefore(c,`day`)),[u,d,c]);return(0,$.jsxs)(AH,{children:[(0,$.jsx)(wH,{value:c,disabled:n,disabledDate:f,format:s,showTime:r?{format:`HH:mm`}:!1,placeholder:`From`,onChange:n=>t([n?n.format(o):``,e[1]]),style:{flex:1,minWidth:0},size:`small`}),(0,$.jsx)(jH,{children:`–`}),(0,$.jsx)(wH,{value:l,disabled:n,disabledDate:p,format:s,showTime:r?{format:`HH:mm`}:!1,placeholder:`To`,onChange:n=>t([e[0],n?n.format(o):``]),style:{flex:1,minWidth:0},size:`small`})]})});kH.displayName=`CRDateRangePicker`;var AH=n.div`
830  display: flex;
831  align-items: center;
832  gap: 8px;
833  width: 100%;
834`,jH=n.span`
835  color: var(--grey-400);
836  font-size: 14px;
837  flex-shrink: 0;
838`,MH=({chips:e,onRemove:t,disabled:n})=>(0,$.jsx)(NH,{$disabled:!!n,children:e.map(e=>(0,$.jsxs)(PH,{$css:e.css,style:e.style,children:[(0,$.jsxs)(`span`,{children:[e.label,e.value!==void 0&&(0,$.jsxs)($.Fragment,{children:[`: `,(0,$.jsx)(`strong`,{children:e.value})]})]}),t&&(0,$.jsx)(_t,{style:{fontSize:10,marginLeft:6,cursor:n?`not-allowed`:`pointer`},onClick:()=>!n&&t(e.key)})]},e.key))}),NH=n.div`
839  display: flex;
840  flex-wrap: wrap;
841  gap: 6px;
842  ${({$disabled:e})=>e&&`opacity: 0.45; pointer-events: none;`}
843`,PH=n.div`
844  padding: 3px 8px;
845  display: inline-flex;
846  align-items: center;
847  border: 1px solid var(--grey-200);
848  color: var(--grey-700);
849  border-radius: 6px;
850  font-size: 12px;
851  gap: 2px;
852  ${({$css:e})=>e&&r`
853      ${e}
854    `}
855`,FH=(0,Q.memo)(({options:e,selectedValues:t,disabled:n,onChange:r,singleSelect:i=!1,showSearch:a=!0})=>{let[o,s]=(0,Q.useState)(``),c=(0,Q.useMemo)(()=>
855{let t=o.trim().toLowerCase();return t?e.filter(e=>(typeof e.label==`string`?e.label:String(e.value??``)).toLowerCase().includes(t)):e},[e,o]),l=(0,Q.useCallback)(e=>{n||r(i?t.includes(e)?[]:[e]:t.includes(e)?t.filter(t=>t!==e):[...t,e])},[n,t,r,i]),u=(0,Q.useCallback)(e=>{n||r(t.filter(t=>t!==e))},[n,t,r]),d=(0,Q.useMemo)(()=>e.filter(e=>t.includes(e.value)),[e,t]);return(0,$.jsxs)(IH,{children:[a&&(0,$.jsx)(LH,{value:o,placeholder:`Search...`,prefix:(0,$.jsx)(ds,{style:{color:`var(--grey-400)`,fontSize:13}}),onChange:e=>s(e.target.value),disabled:n,allowClear:!0,size:`small`}),!i&&d.length>0&&(0,$.jsx)(MH,{chips:d.map(e=>({key:e.value,label:e.label,css:`border: 1px solid var(--teal-400); color: var(--teal-400); font-size: 14px;`})),onRemove:u,disabled:n}),(0,$.jsx)(RH,{children:c.map(e=>(0,$.jsx)(zH,{children:(0,$.jsx)(uF,{checked:t.includes(e.value),onChange:()=>l(e.value),disabled:n,children:(0,$.jsx)(BH,{children:e.label})})},e.value))})]})});FH.displayName=`CRFilterChipsInput`;var IH=n.div`
856  display: flex;
857  flex-direction: column;
858  gap: 8px;
859  width: 100%;
860`,LH=n(hs)`
861  && {
862    border-radius: 6px;
863    font-size: 13px;
864  }
865`,RH=n.div`
866  display: flex;
867  flex-direction: column;
868  gap: 0;
869`,zH=n.div`
870  padding: 6px 4px;
871`,BH=n.span`
872  font-size: 13px;
873  color: var(--grey-700);
874`,VH=(0,Q.memo)(({value:e,options:t,disabled:n,onChange:r})=>{let i=(0,Q.useMemo)(()=>t.map(e=>Number(e.value)),[t]),a=(0,Q.useMemo)(()=>i.length>0?Math.min(...i):0,[i]),o=(0,Q.useMemo)(()=>i.length>0?Math.max(...i):0,[i]),s=Array.isArray(e)?Number(e[0]):a,c=Array.isArray(e)?Number(e[1]):o,l=(0,Q.useMemo)(()=>t.map(e=>({...e,disabled:Number(e.value)>c})),[t,c]),u=(0,Q.useMemo)(()=>t.map(e=>({...e,disabled:Number(e.value)<s})),[t,s]);return(0,$.jsxs)(HH,{children:[(0,$.jsx)(Ss,{value:String(s),disabled:n,options:l,style:{flex:1},onChange:e=>r([Number(e),c])}),(0,$.jsx)(UH,{children:`–`}),(0,$.jsx)(Ss,{value:String(c),disabled:n,options:u,style:{flex:1},onChange:e=>r([s,Number(e)])})]})});VH.displayName=`CRRangeSelectInput`;var HH=n.div`
875  display: flex;
876  align-items: center;
877  gap: 8px;
878  width: 100%;
879`,UH=n.span`
880  color: var(--grey-400);
881  font-size: 14px;
882  flex-shrink: 0;
883`;function WH(e,t,n){return(e-t)/(n-t)}function GH(e,t,n,r){let i=WH(t,n,r),a={};switch(e){case`rtl`:a.right=`${i*100}%`,a.transform=`translateX(50%)`;break;case`btt`:a.bottom=`${i*100}%`,a.transform=`translateY(50%)`;break;case`ttb`:a.top=`${i*100}%`,a.transform=`translateY(-50%)`;break;default:a.left=`${i*100}%`,a.transform=`translateX(-50%)`}return a}function KH(e,t){return Array.isArray(e)?e[t]:e}var qH=Q.createContext({min:0,max:0,direction:`ltr`,step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{},isHandleDisabled:()=>!1}),JH=Q.createContext({});function YH(){return YH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YH.apply(this,arguments)}var XH=Q.forwardRef((e,t)=>{let{prefixCls:n,value:r,valueIndex:i,onStartMove:a,onDelete:o,style:s,render:c,dragging:l,draggingDelete:u,onOffsetChange:d,onChangeComplete:f,onFocus:p,onMouseEnter:m,...h}=e,{min:g,max:_,direction:v,keyboard:y,range:b,tabIndex:x,ariaLabelForHandle:S,ariaLabelledByForHandle:C,ariaRequired:w,ariaValueTextFormatterForHandle:T,styles:E,classNames:D,isHandleDisabled:O}=Q.useContext(qH),k=O(i),A=`${n}-handle`,j=e=>{if(k){e.stopPropagation();return}a(e,i)},M=e=>{p?.(e,i)},N=e=>{m(e,i)},P=e=>{if(!k&&y){let t;switch(e.which||e.keyCode){case Oo.LEFT:t=v===`ltr`||v===`btt`?-1:1;break;case Oo.RIGHT:t=v===`ltr`||v===`btt`?1:-1;break;case Oo.UP:t=v===`ttb`?-1:1;break;case Oo.DOWN:t=v===`ttb`?1:-1;break;case Oo.HOME:t=`min`;break;case Oo.END:t=`max`;break;case Oo.PAGE_UP:t=2;break;case Oo.PAGE_DOWN:t=-2;break;case Oo.BACKSPACE:case Oo.DELETE:o?.(i)}t!==void 0&&(e.preventDefault(),d(t,i))}},F=e=>{switch(e.which||e.keyCode){case Oo.LEFT:case Oo.RIGHT:case Oo.UP:case Oo.DOWN:case Oo.HOME:case Oo.END:case Oo.PAGE_UP:case Oo.PAGE_DOWN:f?.()}},I=GH(v,r,g,_),L={};i!==null&&(L={tabIndex:k?void 0:KH(x,i)??void 0,role:`slider`,"aria-valuemin":g,"aria-valuemax":_,"aria-valuenow":r,"aria-disabled":k,"aria-label":KH(S,i),"aria-labelledby":KH(C,i),"aria-required":KH(w,i),"aria-valuetext":KH(T,i)?.(r),"aria-orientation":v===`ltr`||v===`rtl`?`horizontal`:`vertical`,onMouseDown:j,onTouchStart:j,onFocus:M,onMouseEnter:N,onKeyDown:P,onKeyUp:F});let R=Q.createElement(`div`,YH({ref:t,className:X(A,{[`${A}-${i+1}`]:i!==null&&b,[`${A}-dragging`]:l,[`${A}-dragging-delete`]:u,[`${A}-disabled`]:k},D.handle),style:{...I,...s,...E.handle}},L,h));return c&&(R=c(R,{index:i,prefixCls:n,value:r,dragging:l,draggingDelete:u})),R});function ZH(){return ZH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}
883,ZH.apply(this,arguments)}var QH=Q.forwardRef((e,t)=>{let{prefixCls:n,style:r,onStartMove:i,onOffsetChange:a,values:o,handleRender:s,activeHandleRender:c,draggingIndex:l,draggingDelete:u,onFocus:d,...f}=e,p=Q.useRef({}),[m,h]=Q.useState(!1),[g,_]=Q.useState(-1),v=e=>{_(e),h(!0)},y=(e,t)=>{v(t),d?.(e)},b=(e,t)=>{v(t)};Q.useImperativeHandle(t,()=>({focus:e=>{p.current[e]?.focus()},hideHelp:()=>{(0,RO.flushSync)(()=>{h(!1)})}}));let x={prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:y,onMouseEnter:b,...f};return Q.createElement(Q.Fragment,null,o.map((e,t)=>{let n=l===t;return Q.createElement(XH,ZH({ref:e=>{e?p.current[t]=e:delete p.current[t]},dragging:n,draggingDelete:n&&u,style:KH(r,t),key:t,value:e,valueIndex:t},x))}),c&&m&&Q.createElement(XH,ZH({key:`a11y`},x,{value:o[g],valueIndex:null,dragging:l!==-1,draggingDelete:u,render:c,style:{pointerEvents:`none`},tabIndex:void 0,"aria-hidden":!0})))}),$H=e=>{let{prefixCls:t,style:n,children:r,value:i,onClick:a}=e,{min:o,max:s,direction:c,includedStart:l,includedEnd:u,included:d}=Q.useContext(qH),f=`${t}-text`,p=GH(c,i,o,s);return Q.createElement(`span`,{className:X(f,{[`${f}-active`]:d&&l<=i&&i<=u}),style:{...p,...n},onMouseDown:e=>{e.stopPropagation()},onClick:()=>{a(i)}},r)},eU=e=>{let{prefixCls:t,marks:n=[],onClick:r}=e,i=`${t}-mark`;return n.length?Q.createElement(`div`,{className:i},n.map(({value:e,style:t,label:n})=>Q.createElement($H,{key:e,prefixCls:i,style:t,value:e,onClick:r},n))):null},tU=e=>{let{prefixCls:t,value:n,style:r,activeStyle:i}=e,{min:a,max:o,direction:s,included:c,includedStart:l,includedEnd:u}=Q.useContext(qH),d=`${t}-dot`,f=c&&l<=n&&n<=u,p={...GH(s,n,a,o),...typeof r==`function`?r(n):r};return f&&(p={...p,...typeof i==`function`?i(n):i}),Q.createElement(`span`,{className:X(d,{[`${d}-active`]:f}),style:p})},nU=e=>{let{prefixCls:t,marks:n,dots:r,style:i,activeStyle:a}=e,{min:o,max:s,step:c}=Q.useContext(qH),l=Q.useMemo(()=>{let e=new Set;if(n.forEach(t=>{e.add(t.value)}),r&&c!==null){let t=o;for(;t<=s;)e.add(t),t+=c}return Array.from(e)},[o,s,c,r,n]);return Q.createElement(`div`,{className:`${t}-step`},l.map(e=>Q.createElement(tU,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})))},rU=e=>{let{prefixCls:t,style:n,start:r,end:i,index:a,onStartMove:o,replaceCls:s}=e,{direction:c,min:l,max:u,disabled:d,range:f,classNames:p}=Q.useContext(qH),m=`${t}-track`,h=WH(r,l,u),g=WH(i,l,u),_=e=>{!d&&o&&o(e,-1)},v={};switch(c){case`rtl`:v.right=`${h*100}%`,v.width=`${g*100-h*100}%`;break;case`btt`:v.bottom=`${h*100}%`,v.height=`${g*100-h*100}%`;break;case`ttb`:v.top=`${h*100}%`,v.height=`${g*100-h*100}%`;break;default:v.left=`${h*100}%`,v.width=`${g*100-h*100}%`}let y=s||X(m,{[`${m}-${a+1}`]:a!==null&&f,[`${t}-track-draggable`]:o},p.track);return Q.createElement(`div`,{className:y,style:{...v,...n},onMouseDown:_,onTouchStart:_})},iU=e=>{let{prefixCls:t,style:n,values:r,startPoint:i,onStartMove:a}=e,{included:o,range:s,min:c,styles:l,classNames:u,isHandleDisabled:d}=Q.useContext(qH),f=Q.useMemo(()=>r.some((e,t)=>d(t)),[d,r])?void 0:a,p=Q.useMemo(()=>{if(!s){if(r.length===0)return[];let e=i??c,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}let e=[];for(let t=0;t<r.length-1;t+=1)e.push({start:r[t],end:r[t+1]});return e},[r,s,i,c]);if(!o)return null;let m=p?.length&&(u.tracks||l.tracks)?Q.createElement(rU,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:X(u.tracks,`${t}-tracks`),style:l.tracks}):null;return Q.createElement(Q.Fragment,null,m,p.map(({start:e,end:r},i)=>Q.createElement(rU,{index:i,prefixCls:t,style:{...KH(n,i),...l.track},start:e,end:r,key:i,onStartMove:f})))},aU=e=>{let t=Q.useCallback(t=>typeof e==`boolean`?e:e[t]??!1,[e]),n=Q.useCallback(n=>typeof e==`boolean`?[e,e&&n.length>0]:[n.length>0&&n.every((e,n)=>t(n)),n.some((e,n)=>t(n))],[e,t]);return Q.useMemo(()=>[t,n],[t,n])},oU=130;function sU(e){let t=`targetTouches`in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function cU(e,t,n,r,i,a,o,s,c,l,u,d){let[f,p]=Q.useState(null),[m,h]=Q.useState(-1),[g,_]=Q.useState(!1),[v,y]=Q.useState(n),[b,x]=Q.useState(n),S=Q.useRef(null),C=
883Q.useRef(null),w=Q.useRef(null),{onDragStart:T,onDragChange:E}=Q.useContext(JH);_o(()=>{m===-1&&y(n)},[n,m]),Q.useEffect(()=>()=>{S.current&&document.removeEventListener(`mousemove`,S.current),C.current&&document.removeEventListener(`mouseup`,C.current),w.current&&(S.current&&w.current.removeEventListener(`touchmove`,S.current),C.current&&w.current.removeEventListener(`touchend`,C.current))},[]);let D=(e,t,n)=>{t!==void 0&&p(t),y(e);let r=e;n&&(r=e.filter((e,t)=>t!==m)),o(r),E&&E({rawValues:e,deleteIndex:n?m:-1,draggingIndex:m,draggingValue:t})},O=da((e,t,n)=>{if(e===-1){if(b.some((e,t)=>d(t)))return;let e=b[0],n=b[b.length-1],o=r-e,s=i-n,c=t*(i-r);c=Math.max(c,o),c=Math.min(c,s),c=a(e+c)-e;let l=b.map(e=>e+c);D(l)}else{let a=(i-r)*t,o=[...v];o[e]=b[e];let s=c(o,a,e,`dist`);D(s.values,s.value,n)}});return[m,f,g,Q.useMemo(()=>{let e=[...n].sort((e,t)=>e-t),t=[...v].sort((e,t)=>e-t),r={};t.forEach(e=>{r[e]=(r[e]||0)+1}),e.forEach(e=>{r[e]=(r[e]||0)-1});let i=+!!l;return Object.values(r).reduce((e,t)=>e+Math.abs(t),0)<=i?v:n},[n,v,l]),(r,i,a)=>{r.stopPropagation();let o=a||n;if(d(i))return;let c=o[i];h(i),p(c),x(o),y(o),_(!1);let{pageX:f,pageY:m}=sU(r),g=!1;T&&T({rawValues:o,draggingIndex:i,draggingValue:c});let b=n=>{n.preventDefault();let{pageX:r,pageY:a}=sU(n),o=r-f,s=a-m,{width:c,height:d}=e.current.getBoundingClientRect(),p,h;switch(t){case`btt`:p=-s/d,h=o;break;case`ttb`:p=s/d,h=o;break;case`rtl`:p=-o/c,h=s;break;default:p=o/c,h=s}g=l?Math.abs(h)>oU&&u<v.length:!1,_(g),O(i,p,g)},E=e=>{e.preventDefault(),document.removeEventListener(`mouseup`,E),document.removeEventListener(`mousemove`,b),w.current&&(S.current&&w.current.removeEventListener(`touchmove`,S.current),C.current&&w.current.removeEventListener(`touchend`,C.current)),S.current=null,C.current=null,w.current=null,s(g),h(-1),_(!1)};document.addEventListener(`mouseup`,E),document.addEventListener(`mousemove`,b),r.currentTarget.addEventListener(`touchend`,E),r.currentTarget.addEventListener(`touchmove`,b),S.current=b,C.current=E,w.current=r.currentTarget}]}var lU=(e,t,n,r,i,a)=>{let o=typeof i==`number`?i:0,s=n,c=r;for(let n=t-1;n>=0;--n)if(a(n)){s=e[n]+o;break}
883for(let n=t+1;n<e.length;n+=1)if(a(n)){c=e[n]-o;break}return[s,c]},uU=(e,t,n,r,i,a)=>{let o=-1,s=r-n;return e.forEach((c,l)=>{if(a(l))return;let[u,d]=lU(e,l,n,r,i,a);if(u<=t&&t<=d){let e=Math.abs(t-c);e<=s&&(s=e,o=l)}}),o};function dU(e,t,n,r,i,a,o){let s=Q.useCallback(n=>Math.max(e,Math.min(t,n)),[e,t]),c=Q.useCallback(r=>{if(n!==null){let i=e+Math.round((s(r)-e)/n)*n,a=e=>(String(e).split(`.`)[1]||``).length,o=Math.max(a(n),a(t),a(e)),c=Number(i.toFixed(o));return e<=c&&c<=t?c:null}return null},[n,e,t,s]),l=Q.useCallback(i=>{let a=s(i),o=r.map(e=>e.value);n!==null&&o.push(c(i)),o.push(e,t);let l=o[0],u=t-e;return o.forEach(e=>{let t=Math.abs(a-e);t<=u&&(l=e,u=t)}),l},[e,t,r,n,s,c]),u=(i,a,o,s=`unit`)=>{if(typeof a==`number`){let l,d=i[o],f=d+a,p=[];r.forEach(e=>{p.push(e.value)}),p.push(e,t),p.push(c(d));let m=a>0?1:-1;s===`unit`?p.push(c(d+m*n)):p.push(c(f)),p=p.filter(e=>e!==null).filter(e=>a<0?e<=d:e>=d),s===`unit`&&(p=p.filter(e=>e!==d));let h=s===`unit`?d:f;l=p[0];let g=Math.abs(l-h);if(p.forEach(e=>{let t=Math.abs(e-h);t<g&&(l=e,g=t)}),l===void 0)return a<0?e:t;if(s===`dist`)return l;if(Math.abs(a)>1){let e=[...i];return e[o]=l,u(e,a-m,o,s)}return l}return a===`min`?e:t},d=(e,t,n,r=`unit`)=>{let i=e[n],a=u(e,t,n,r);return{value:a,changed:a!==i}},f=e=>a===null&&e===0||typeof a==`number`&&e<a;return[l,(n,r,s,c=`unit`)=>{let p=n.map(l),m=p[s],[h,g]=lU(p,s,e,t,a,o);if(p[s]=u(p,r,s,c),p[s]=h<=g?Math.max(h,Math.min(g,p[s])):m,i===!1){let e=a||0;s>0&&p[s-1]!==m&&(p[s]=Math.max(p[s],p[s-1]+e)),s<p.length-1&&p[s+1]!==m&&(p[s]=Math.min(p[s],p[s+1]-e))}else if(typeof a==`number`||a===null){for(let n=s+1;n<p.length&&!o(n);n+=1){let r=!0;for(;f(p[n]-p[n-1])&&r;)({value:p[n],changed:r}=d(p,1,n));let[,i]=lU(p,n,e,t,a,o);p[n]=Math.min(p[n],i)}for(let n=s;n>0&&!o(n-1);--n){let r=!0;for(;f(p[n]-p[n-1])&&r;)({value:p[n-1],changed:r}=d(p,-1,n-1));let[i]=lU(p,n-1,e,t,a,o);p[n-1]=Math.max(p[n-1],i)}for(let n=p.length-1;n>0;--n){if(o(n)||o(n-1))continue;let r=!0;for(;f(p[n]-p[n-1])&&r;)({value:p[n-1],changed:r}=d(p,-1,n-1));let[i]=lU(p,n-1,e,t,a,o);p[n-1]=Math.max(p[n-1],i)}for(let n=0;n<p.length-1;n+=1){if(o(n)||o(n+1))continue;let r=!0;for(;f(p[n+1]-p[n])&&r;)({value:p[n+1],changed:r}=d(p,1,n+1));let[,i]=lU(p,n+1,e,t,a,o);p[n+1]=Math.min(p[n+1],i)}}return{value:p[s],values:p}}]}function fU(e){return(0,Q.useMemo)(()=>{if(e===!0||!e)return[!!e,!1,!1,0];let{editable:t,draggableTrack:n,minCount:r,maxCount:i}=e;return[!0,!!t,!t&&!!n,r||0,i]},[e])}var pU=Q.forwardRef((e,t)=>{let{prefixCls:n=`rc-slider`,className:r,style:i,classNames:a,styles:o,id:s,disabled:c=!1,keyboard:l=!0,autoFocus:u,onFocus:d,onBlur:f,min:p=0,max:m=100,step:h=1,value:g,defaultValue:_,range:v,count:y,onChange:b,onBeforeChange:x,onAfterChange:S,onChangeComplete:C,allowCross:w=!0,pushable:T=!1,reverse:E,vertical:D,included:O=!0,startPoint:k,trackStyle:A,handleStyle:j,railStyle:M,dotStyle:N,activeDotStyle:P,marks:F,dots:I,handleRender:L,activeHandleRender:R,track:z,tabIndex:B=0,ariaLabelForHandle:V,ariaLabelledByForHandle:H,ariaRequired:U,ariaValueTextFormatterForHandle:W}=e,G=Q.useRef(null),ee=Q.useRef(null),[te,ne]=wa(_,g),K=Q.useMemo(()=>D?E?`ttb`:`btt`:E?`rtl`:`ltr`,[E,D]),[q,re,J,ie,ae]=fU(v),oe=Q.useMemo(()=>isFinite(p)?p:0,[p]),se=Q.useMemo(()=>isFinite(m)?m:100,[m]),ce=Q.useMemo(()=>h!==null&&h<=0?1:h,[h]),le=Q.useMemo(()=>typeof T==`boolean`?T?ce:!1:T>=0&&T,[T,ce]),ue=Q.useMemo(()=>{let e=F||{};return Object.keys(e).map(t=>{let n=e[t],r={value:Number(t)};return n&&typeof n==`object`&&!Q.isValidElement(n)&&(`label`in n||`style`in n)?(r.style=n.style,r.label=n.label):r.label=n,r}).filter(({label:e})=>e||typeof e==`number`).sort((e,t)=>e.value-t.value)},[F]),[de,fe]=aU(c),[pe,me]=dU(oe,se,ce,ue,w,le,de),he=Q.useMemo(()=>{let e=te==null?[]:Array.isArray(te)?te:[te],[t=oe]=e,n=te===null?[]:[t];if(q){if(n=[...e],y||te===void 0){let e=y!==void 0&&y>=0?y+1:2;for(n=n.slice(0,e);n.length<e;)n.push(n[n.length-1]??oe)}n.sort((e,t)=>e-t)}return n.forEach((e,t)=>{n[t]=pe(e)}),n},[te,q,oe,y,pe]),[ge,_e]=Q.useMemo(()=>fe(he),[fe,he]),ve=re&&!_e,ye=e=>q?e:e[0],be=da(e=>{let t=[...e].sort((e,t)=>
883e-t);b&&!$i(t,he,!0)&&b(ye(t)),ne(t)}),xe=da(e=>{e&&G.current.hideHelp();let t=ye(he);S?.(t),ba(!S,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),C?.(t)}),Se=e=>{if(ge||!ve||he.length<=ie)return;let t=[...he];t.splice(e,1),x?.(ye(t)),be(t);let n=Math.max(0,e-1);G.current.hideHelp(),G.current.focus(n)},[Ce,we,Te,Ee,De]=cU(ee,K,he,oe,se,pe,be,xe,me,ve,ie,de),Oe=(e,t)=>{if(!ge){let n=he.length?uU(he,e,oe,se,le,de):0;if(n===-1)return;let r=[...he],i=0,a=he.length?Math.abs(e-he[n]):se-oe;he.forEach((t,n)=>{t<e&&(i=n)});let o=n;ve&&a!==0&&(!ae||he.length<ae)?(r.splice(i+1,0,e),o=i+1):(r[n]=e,o=n),q&&!he.length&&y===void 0&&r.push(e);let s=ye(r);x?.(s),be(r),t?(document.activeElement?.blur?.(),G.current.focus(o),De(t,o,r)):(S?.(s),ba(!S,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),C?.(s))}},ke=e=>{e.preventDefault();let{width:t,height:n,left:r,top:i,bottom:a,right:o}=ee.current.getBoundingClientRect(),{clientX:s,clientY:c}=e,l;switch(K){case`btt`:l=(a-c)/n;break;case`ttb`:l=(c-i)/n;break;case`rtl`:l=(o-s)/t;break;default:l=(s-r)/t}let u=oe+l*(se-oe);Oe(pe(u),e)},[Ae,je]=Q.useState(null),Me=(e,t)=>{if(!ge&&!de(t)){let n=me(he,e,t);x?.(ye(he)),be(n.values),je({value:n.value,index:t})}};Q.useEffect(()=>{if(Ae!==null){let{value:e,index:t}=Ae,n=he[t]===e?t:he.indexOf(e);n>=0&&G.current.focus(n)}je(null)},[Ae]);let Ne=Q.useMemo(()=>J&&ce===null?!1:J,[J,ce]),Pe=da((e,t)=>{De(e,t),x?.(ye(he))}),Fe=Ce!==-1;Q.useEffect(()=>{if(!Fe){let e=he.lastIndexOf(we);G.current.focus(e)}},[Fe]);let Ie=Q.useMemo(()=>[...Ee].sort((e,t)=>e-t),[Ee]),[Le,Re]=Q.useMemo(()=>q?[Ie[0],Ie[Ie.length-1]]:[oe,Ie[0]],[Ie,q,oe]);Q.useImperativeHandle(t,()=>({focus:()=>{G.current.focus(0)},blur:()=>{let{activeElement:e}=document;ee.current?.contains(e)&&e?.blur()}}));let ze=Q.useRef(u);Q.useEffect(()=>{ze.current&&G.current.focus(0)},[]);let Be=Q.useMemo(()=>({min:oe,max:se,direction:K,disabled:ge,keyboard:l,step:ce,included:O,includedStart:Le,includedEnd:Re,range:q,tabIndex:B,ariaLabelForHandle:V,ariaLabelledByForHandle:H,ariaRequired:U,ariaValueTextFormatterForHandle:W,styles:o||{},classNames:a||{},isHandleDisabled:de}),[oe,se,K,ge,l,ce,O,Le,Re,q,B,V,H,U,W,o,a,de]);return Q.createElement(qH.Provider,{value:Be},Q.createElement(`div`,{ref:ee,className:X(n,r,{[`${n}-disabled`]:ge,[`${n}-vertical`]:D,[`${n}-horizontal`]:!D,[`${n}-with-marks`]:ue.length}),style:i,onMouseDown:ke,id:s},Q.createElement(`div`,{className:X(`${n}-rail`,a?.rail),style:{...M,...o?.rail}}),z!==!1&&Q.createElement(iU,{prefixCls:n,style:A,values:he,startPoint:k,onStartMove:Ne?Pe:void 0}),Q.createElement(nU,{prefixCls:n,marks:ue,dots:I,style:N,activeStyle:P}),Q.createElement(QH,{ref:G,prefixCls:n,style:j,values:Ee,draggingIndex:Ce,draggingDelete:Te,onStartMove:Pe,onOffsetChange:Me,onFocus:d,onBlur:f,handleRender:L,activeHandleRender:R,onChangeComplete:xe,onDelete:ve?Se:void 0}),Q.createElement(eU,{prefixCls:n,marks:ue,onClick:Oe})))}),mU=(0,Q.createContext)({}),hU=Q.forwardRef((e,t)=>{let{open:n,draggingDelete:r,value:i}=e,a=(0,Q.useRef)(null),o=n&&!r,s=(0,Q.useRef)(null);function c(){Ra.cancel(s.current),s.current=null}function l(){s.current=Ra(()=>{a.current?.forceAlign(),s.current=null})}return Q.useEffect(()=>(o?l():c(),c),[o,e.title,i]),Q.createElement(me,{ref:Ua(a,t),...e,open:o})}),gU=e=>{let{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:c,calc:l,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:h,motionDurationMid:g}=e,_={backgroundColor:e.colorBgElevated,cursor:`not-allowed`,width:u,height:u,boxShadow:`0 0 0 ${Z(m)} ${c}`,insetInlineStart:0,insetBlockStart:0};return{[t]:{...Gi(e),position:`relative`,height:r,margin:`${Z(o)} ${Z(a)}`,padding:0,cursor:`pointer`,touchAction:`none`,userSelect:`none`,"&-vertical":{margin:`${Z(a)} ${Z(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:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${Z(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:`absolute`,width:u,height:u,outline:`none`,userSelect:`none`,"&-dragging-delete":{opacity:0}
883,"&::before":{content:`""`,position:`absolute`,insetInlineStart:l(m).mul(-1).equal(),insetBlockStart:l(m).mul(-1).equal(),width:l(u).add(l(m).mul(2)).equal(),height:l(u).add(l(m).mul(2)).equal(),backgroundColor:`transparent`},"&::after":{content:`""`,position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Z(m)} ${e.handleColor}`,outline:`0px solid transparent`,borderRadius:`50%`,cursor:`pointer`,transition:[`inset-inline-start`,`inset-block-start`,`width`,`height`,`box-shadow`,`outline`].map(e=>`${e} ${g}`).join(`, `)},"&:hover, &:active, &:focus":{[`&:not(${t}-handle-disabled)::before`]:{insetInlineStart:l(d).sub(u).div(2).add(h).mul(-1).equal(),insetBlockStart:l(d).sub(u).div(2).add(h).mul(-1).equal(),width:l(d).add(l(h).mul(2)).equal(),height:l(d).add(l(h).mul(2)).equal()},[`&:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${Z(h)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).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:`${Z(m)} 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`},[`
884          ${t}-dot
885        `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:`none`,cursor:`not-allowed`},[`${t}-handle::after`]:{..._},[`
886          ${t}-mark-text,
887          ${t}-dot
888        `]:{cursor:`not-allowed !important`}},[`${t}-handle-disabled::after`]:{..._},[`&-tooltip ${n}-tooltip-container`]:{minWidth:`unset`}}}},_U=(e,t)=>{let{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,c=t?`paddingBlock`:`paddingInline`,l=t?`width`:`height`,u=t?`height`:`width`,d=t?`insetBlockStart`:`insetInlineStart`,f=t?`top`:`insetInlineStart`,p=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),h=t?{borderWidth:`${Z(m)} 0`,transform:`translateY(${Z(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${Z(m)}`,transform:`translateX(${Z(e.calc(m).mul(-1).equal())})`};return{[c]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[l]:`100%`,[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:{...h},[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:s(r).mul(3).add(t?0:o).equal(),[l]:`100%`},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[l]:`100%`,[u]:r},[`${n}-dot`]:{position:`absolute`,[d]:s(r).sub(a).div(2).equal()}}},vU=e=>{let{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:{..._U(e,!0),[`&${t}-with-marks`]:{marginBottom:n}}}},yU=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:{..._U(e,!1),height:`100%`}}},bU=Da(`Slider`,e=>{let t=na(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[gU(t),vU(t),yU(t)]},e=>{let t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,i=e.lineWidth+1.5,a=e.colorPrimary,o=new ja(a).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:o,handleColorDisabled:new ja(e.colorTextDisabled).onBackgroun
888d(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function xU(e){return e||e===null?e:e=>Ji(e)?e.toString():``}var SU=Q.forwardRef((e,t)=>{let{prefixCls:n,range:r,className:i,rootClassName:a,style:o,disabled:s,tooltip:c={},onChangeComplete:l,classNames:u,styles:d,vertical:f,orientation:p,...m}=e,[,h]=La(p,f),{getPrefixCls:g,direction:_,className:v,style:y,classNames:b,styles:x,getPopupContainer:S}=ea(`slider`),C=Q.useContext(gn),w=s??C,T={...e,disabled:w,vertical:h},E=fa(y),D=fa(o),[O,k]=ho([b,u],[x,E,d,D],{props:T}),{handleRender:A,direction:j}=Q.useContext(mU),M=(j||_)===`rtl`,[N,P]=Va(!1),[F,I]=Va(!1),L={...c},{open:R,placement:z,getPopupContainer:B,prefixCls:V,formatter:H}=L,U=R,W=(N||F)&&U!==!1,G=xU(H),[ee,te]=Va(!1),ne=e=>{l?.(e),te(!1)},K=(e,t)=>e||(t?M?`left`:`right`:`top`),q=g(`slider`,n),[re,J]=bU(q),ie=X(i,v,O.root,a,{[`${q}-rtl`]:M,[`${q}-lock`]:ee},re,J);M&&!h&&(m.reverse=!m.reverse),Q.useEffect(()=>{let e=()=>{Ra(()=>{I(!1)},1)};return document.addEventListener(`mouseup`,e),()=>{document.removeEventListener(`mouseup`,e)}},[]);let ae=r&&!U,oe=A||((e,t)=>{let{index:n}=t,r=e.props;function i(e,t){r[e]?.(t)}let a={...r,onMouseEnter:e=>{P(!0,!0),i(`onMouseEnter`,e)},onMouseLeave:e=>{P(!1),i(`onMouseLeave`,e)},onMouseDown:e=>{I(!0,!0),te(!0,!0),i(`onMouseDown`,e)},onFocus:e=>{I(!0,!0),i(`onFocus`,e)}
888,onBlur:e=>{I(!1),i(`onBlur`,e)}},o=Q.cloneElement(e,a),s=(!!U||W)&&G!==null;return ae?o:Q.createElement(hU,{...L,prefixCls:g(`tooltip`,V),title:G?G(t.value):void 0,value:t.value,open:s,placement:K(z,h),key:n,classNames:{root:`${q}-tooltip`},getPopupContainer:B||S},o)}),se=ae?(e,t)=>{let n=Q.cloneElement(e,{style:{...e.props.style,visibility:`hidden`}});return Q.createElement(hU,{...L,prefixCls:g(`tooltip`,V),title:G?G(t.value):void 0,open:G!==null&&W,placement:K(z,h),key:`tooltip`,classNames:{root:`${q}-tooltip`},getPopupContainer:B||S,draggingDelete:t.draggingDelete},n)}:void 0,ce={...k.root};return Q.createElement(pU,{...m,classNames:O,styles:k,step:m.step,range:r,className:ie,style:ce,disabled:w,vertical:h,ref:t,prefixCls:q,handleRender:oe,activeHandleRender:se,onChangeComplete:ne})}),CU=`data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20width%3D%2212%22%20height%3D%2212%22%20rx%3D%224%22%20fill%3D%22%23004C4D%22%2F%3E%0A%3Cg%20opacity%3D%220.4%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%221%22%20height%3D%226%22%20rx%3D%220.5%22%20fill%3D%22%23D9D9D9%22%2F%3E%0A%3Crect%20x%3D%227%22%20y%3D%223%22%20width%3D%221%22%20height%3D%226%22%20rx%3D%220.5%22%20fill%3D%22%23D9D9D9%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A`,wU=e=>{let{css:t,showInputFields:n,value:r,onChange:i,range:a,...o}=e,s=(0,Q.useMemo)(()=>e.min??0,[e.min]),c=(0,Q.useMemo)(()=>e.max??100,[e.max]),l=(0,Q.useMemo)(()=>e.step??1,[e.step]),u=r!==void 0,[d,f]=(0,Q.useState)([s,c]),p=u?r:d;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(OU,{$css:t,value:p,step:l,max:c,min:s,onChange:e=>{let t=e;u||f(t),i?.(t)},...o,range:!0}),(n??!0)&&(0,$.jsxs)(TU,{children:[(0,$.jsxs)(DU,{children:[(0,$.jsx)(EU,{children:`Min`}),(0,$.jsx)(TF,{min:s,step:l,max:p[1],size:`small`,value:p[0],onChange:t=>{let n=Number(t.target.value);e?.onChange?.([isNaN(n)||t.target.value===``?s:n,p[1]])}})]}),(0,$.jsxs)(DU,{children:[(0,$.jsx)(EU,{children:`Max`}),(0,$.jsx)(TF,{max:c,step:l,min:p[0],value:p[1],onChange:t=>{let n=Number(t.target.value);e?.onChange?.([p[0],isNaN(n)||t.target.value===``?c:n])},size:`small`})]})]})]})},TU=n.div`
889  ${Ce.flexRow()}
890  gap: ${ue.pageSectionSmallGap}px;
891  width: 100%;
892`,EU=n.div`
893  font-size: 12px;
894  color: var(--grey-500);
895`,DU=n.div`
896  ${Ce.flexCol()}
897  width: 100%;
898  gap: 4px;
899`,OU=n(SU)`
900  .ant-slider-rail {
901    background-color: var(--grey-200);
902  }
903  .ant-slider-track,
904  &:hover .ant-slider-track {
905    background-color: var(--teal-400) !important;
906  }
907  .ant-slider-handle {
908    &::after {
909      content: "" !important;
910      background-image: url(${CU}) !important;
911      background-position: center !important;
912      background-size: contain !important;
913      background-repeat: no-repeat !important;
914      background-color: transparent !important;
915      box-shadow: none !important;
916      border-radius: 4px !important;
917    }
918
919    &:hover::after,
920    &:focus::after,
921    &:active::after,
922    &.ant-slider-handle-dragging::after {
923      background-image: url(${CU}) !important;
924      background-position: center !important;
925      background-size: contain !important;
926      background-repeat: no-repeat !important;
927      background-color: transparent !important;
928      box-shadow: none !important;
929    }
930  }
931
932  ${({$css:e})=>e&&r`
933      ${e}
934    `}
935`,kU=(0,Q.forwardRef)(({css:e,...t},n)=>{let r=(0,Q.useMemo)(()=>t?.type??`radio`,[t?.type]),i=(0,Q.useMemo)(()=>r===`button`?jU:AU,[r]);return(0,$.jsx)(i,{$css:e,...t,ref:n})}),AU=n(KR)`
936  .ant-radio-inner {
937    border: 2px solid var(--teal-200);
938  }
939  .ant-radio-checked > .ant-radio-inner {
940    border: 2px solid var(--teal-400);
941  }
942
943  ${({$css:e})=>e&&r`
944      ${e}
945    `}
946`,jU=n(KR.Button)`
947  .ant-radio-inner {
948    border: 2px solid var(--teal-200);
949  }
950  .ant-radio-checked > .ant-radio-inner {
951    border: 2px solid var(--teal-400);
952  }
953
954  ${({$css:e})=>e&&r`
955      ${e}
956    `}
957`,MU=e=>{let t=(0,Q.useMemo)(()=>e.min??0,[e.min]),n=(0,Q.useMemo)(()=>e.max??100,[e.max]),r=(0,Q.useMemo)(()=>e.step??1,[e.step]),i=(0,Q.useMemo)(()=>e.value??0,[e.value]);return(0,$.jsx)(NU,{min:t,max:n,step:r,value:i,$css:e.css,onChange:t=>e?.onChange?.(t),...e,range:!1})},NU=n(SU)`
958  .ant-slider-rail {
959    background-color: var(--grey-200);
960  }
961  .ant-slider-track {
962    background-color: var(--teal-400);
963  }
964
965  ${({$css:e})=>e&&r`
966      ${e}
967    `}
968`,PU=0,FU=_.length-1,IU=(e,t,n)=>{let r=Math.abs(e-t);return(n?e===0:e===100)?n?`0%`:`-100%`:r<=20?n?`-100%`:`0%`:`-50%`},LU=({value:e,onChange:t,disabled:n})=>{let r=e??[PU,FU],i=(r[0]-PU)/(FU-PU)*100,a=(r[1]-PU)/(FU-PU)*100,o=(0,Q.useMemo)(()=>_.find(e=>e.value===String(r[0]))?.label??``,[r]),s=(0,Q.useMemo)(()=>_.find(e=>e.value===String(r[1]))?.label??``,[r]),c=r[0]===r[1],l=IU(i,a,!0),u=IU(a,i,!1);return(0,$.jsxs)(RU,{children:[(0,$.jsxs)(zU,{children:[(0,$.jsx)(BU,{style:{left:`${i}%`,transform:`translateX(${l})`},children:o}),!c&&(0,$.jsx)(BU,{style:{left:`${a}%`,transform:`translateX(${u})`},children:s})]}),(0,$.jsx)(wU,{value:r,onChange:e=>t?.(e),min:PU,max:FU,step:1,dots:!0,showInputFields:!1,disabled:n??!1,range:!0})]})},RU=n.div`
969  width: 100%;
970`,zU=n.div`
971  position: relative;
972  height: 18px;
973  margin-bottom: 4px;
974`,BU=n.span`
975  position: absolute;
976  font-size: 11px;
977  color: var(--grey-400);
978  white-space: nowrap;
979  line-height: 1;
980`,VU=e=>(0,$.jsx)(GU,{$css:e?.css,...e,children:e?.children}),HU=(0,Q.memo)(({field:e,handleChange:t,noName:n})=>{let r=(0,Q.useMemo)(()=>(e.rules??[]).concat(e.required?[{required:!0,message:`This field is required`}]:[]),[e.rules,e.required]),i=(0,Q.useMemo)(()=>e.options?.map(e=>({...e,label:e.label??e.title??e?.text??e?.name,value:e.value??e.key??e.uuid,key:e.key??e.uuid??e.value})),[e.options]),a=(0,Q.useCallback)(e=>{let{onChange:n,...r}=e.inputProps??{},a=e=>t=>{e(t),n?.(t)};switch(e.type){case y.fieldTypes.input:return(0,$.jsx)(hs,{value:e.value,disabled:e.disabled??!1,onChange:a(n=>t(e.key,n.target.value)),placeholder:e.placeholder??void 0,...r},e.key);case y.fieldTypes.textarea:return(0,$.jsx)(jF,{value:e.value,disabled:e.disabled??!1,onChange:a(n=>t(e.key,n.target.value)),placeholder:e.placeholder??void 0,...r},e.key);case y.fieldTypes.search:return(0,$.jsx)(nN,{value:e.value,disabled:e.disabled??!1,onSearch:r=>{t(e.key,r),n?.(r)},placeholder:e.placeholder??void 0,...r},e.key);case y.fieldTypes.password:return(0,$.jsx)(xF,{value:e.value,disabled:e.disabled??!1,onChange:a(n=>t(e.key,n.target.value)),placeholder:e.placeholder??void 0,...r},e.key);case y.fieldTypes.number:return(0,$.jsx)(TF,{value:e.value,disabled:e.disabled??!1,onChange:a(n=>t(e.key,n.target.value)),placeholder:e.placeholder??void 0,...r},e.key);case y.fieldTypes.select:return(0,$.jsx)(Ss,{value:e.value,disabled:e.disabled??!1,onChange:r=>{t(e.key,r),n?.(r)},placeholder:e.placeholder??void 0,options:i,...r},e.key);case y.fieldTypes.multiSelect:return(0,$.jsx)(Ss,{value:e.value,mode:`multiple`,onChange:r=>{t(e.key,r),n?.(r)},placeholder:e.placeholder??void 0,disabled:e.disabled??!1,options:i,...r},e.key);case y.fieldTypes.checkbox:return(0,$.jsx)(uF.Group,{value:e.value,disabled:e.disabled??!1,onChange:r=>{t(e.key,r),n?.(r)},...r,children:i?.map(e=>(0,$.jsx)(dF,{value:e.value,children:e.label},e.value))});case y.fieldTypes.radio:return(0,$.jsx)(UU,{children:(0,$.jsx)(KR.Group,{value:e.value,disabled:e.disabled??!1,onChange:a(n=>t(e.key,n.target.value)),...r,children:i?.map(e=>(0,$.jsx)(WU,{children:(0,$.jsx)(kU,{value:e.value,type:e.type,children:e.label})},e.value))})});case y.fieldTypes.otp:return(0,$.jsx)(OF,{value:e.value,length:e.optLength??6,disabled:e.disabled??!1,onChange:r=>{t(e.key,r),n?.(r)},...r},e.key);case y.fieldTypes.sentimentSlider:return(0,$.jsx)(LU,{value:e.value,disabled:e.disabled??!1,onChange:r=>{t(e.key,r),n?.(r)}},e.key);case y.fieldTypes.rangeSlider:return(0,$.jsx)(wU,{value:e.value,disabled:e.disabled??!1,onChange:r=>{t(e.key,r),n?.(r)},showInputFields:r?.showInputFields??!0,...r,range:!0},e.key);case y.fieldTypes.slider:return(0,$.jsx)(MU,{value:e.value,disabled:e.disabled??!1,onChange:r=>{t(e.key,r),n?.(r)},...r},e.key);case y.fieldTypes.filterChips:{let n=Array.isArray(e.value)?e.value:e.value?[e.value]:[];return(0,$.jsx)(FH,{options:i??[],selectedValues:n,disabled:e.disabled??!1,onChange:n=>t(e.key,n),...r})}case y.fieldTypes.singleFilterChips:{let n=Array.isArray(e.value)?e.value:e.value?[e.value]:[];return(0,$.jsx)(FH,{options:i??[],selectedValues:n,disabled:e.disabled??!1,singleSelect:!0,onChange:n=>t(e.key,n),...r})}case y.fieldTypes.rangeSelect:return(0,$.jsx)(VH,{value:e.value,options:i??[],disabled:e.disabled??!1,onChange:r=>{t(e.key,r),n?.(r)},...r});case y.fieldTypes.date:{let i=e.value?(0,Uj.default)(e.value,`YYYY-MM-DD`,!0):null,{minDate:a,maxDate:o,css:s,hideError:c,showInputFields:l,onChange:u,...d}=r,f=typeof s==`string`?s:void 0;return(0,$.jsx)(EH,{...d,value:i?.isValid()?i:null,format:`MMM D, YYYY`,placeholder:e.placeholder??`Select date`,css:f,disabledDate:e=>!!(a&&e.isBefore((0,Uj.default)(a),`day`)||o&&e.isAfter((0,Uj.default)(o),`day`)),onChange:r=>{let i=Array.isArray(r)?r[0]??null:r,a=i?i.format(`YYYY-MM-DD`):``;t(e.key,a),n?.(a)},style:{width:`100%`},disabled:e.disabled??!1})}case y.fieldTypes.datetime:{let i=e.value?(0,Uj.default)(e.value):null,{minDate:a,maxDate:o,css:s,hideError:c,showInputFields:l,onChange:u,...d}=r,f=typeof s==`string`?s:void 0;
980return(0,$.jsx)(EH,{...d,value:i?.isValid()?i:null,showTime:!0,format:`MMM D, YYYY HH:mm`,placeholder:e.placeholder??`Select date & time`,css:f,disabledDate:e=>!!(a&&e.isBefore((0,Uj.default)(a),`day`)||o&&e.isAfter((0,Uj.default)(o),`day`)),onChange:r=>{let i=Array.isArray(r)?r[0]??null:r,a=i?i.format(`YYYY-MM-DDTHH:mm:ss`):``;t(e.key,a),n?.(a)},style:{width:`100%`},disabled:e.disabled??!1})}case y.fieldTypes.dateRange:{let n=Array.isArray(e.value)?[e.value[0]??``,e.value[1]??``]:[``,``];return(0,$.jsx)(kH,{value:n,disabled:e.disabled??!1,isDateTime:!1,minDate:r.minDate,maxDate:r.maxDate,onChange:n=>t(e.key,n),...r})}case y.fieldTypes.datetimeRange:{let n=Array.isArray(e.value)?[e.value[0]??``,e.value[1]??``]:[``,``];return(0,$.jsx)(kH,{value:n,disabled:e.disabled??!1,isDateTime:!0,minDate:r.minDate,maxDate:r.maxDate,onChange:n=>t(e.key,n),...r})}}},[e,t,i]);return(0,$.jsx)(KU,{rules:r,$css:e?.itemProps?.css,required:e.required??!1,name:n?void 0:e.key,label:e?.renderLabel?e?.renderLabel(e):e.label,$hideError:e.inputProps?.hideError??!1,...e.itemProps,children:a(e)},e.key)}),UU=n.div`
981  display: flex;
982  flex-direction: column;
983  gap: 4px;
984  padding: 4px 0;
985`,WU=n.div`
986  padding: 6px 4px;
987  border-radius: 8px;
988  transition: background 0.15s;
989  &:hover {
990    background: var(--grey-50);
991  }
992  .ant-radio-wrapper {
993    font-size: 14px;
994    color: var(--grey-700);
995    gap: 8px;
996  }
997`,GU=n(NR)`
998  ${Ce.flexCol()}
999  gap: 8px !important;
1000
1001  ${({$css:e})=>e&&r`
1002      ${e}
1003    `}
1004`,KU=n(NR.Item)`
1005  margin-bottom: 24px !important;
1006
1007  .ant-form-item-label {
1008    font-weight: 400 !important;
1009    font-size: 14px !important;
1010    color: var(--grey-700) !important;
1011    padding-bottom: 8px !important;
1012  }
1013
1014  .ant-form-item-label > label {
1015    color: var(--grey-700) !important;
1016    font-weight: 400 !important;
1017    font-size: 14px !important;
1018  }
1019
1020  .ant-form-item-explain-error {
1021    ${({$hideError:e})=>e&&r`
1022        display: none;
1023      `}
1024
1025    color: var(--error-500);
1026    font-size: 12px;
1027    margin-top: 4px;
1028  }
1029
1030  ${({$css:e})=>e&&r`
1031      ${e}
1032    `}
1033`,qU={},JU=`rc-table-internal-hook`;function YU(e){let t=Q.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{let r=Q.useRef(e);r.current=e;let[i]=Q.useState(()=>({getValue:()=>r.current,listeners:new Set}));return _o(()=>{(0,RO.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),Q.createElement(t.Provider,{value:i},n)},defaultValue:e}}function XU(e,t){let n=da(typeof t==`function`?t:e=>{if(t===void 0)return e;if(!Array.isArray(t))return e[t];let n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=Q.useContext(e?.Context),{listeners:i,getValue:a}=r||{},o=Q.useRef();o.current=n(r?a():e?.defaultValue);let[,s]=Q.useState({});return _o(()=>{if(!r)return;function e(e){let t=n(e);$i(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function ZU(){return ZU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZU.apply(this,arguments)}function QU(){let e=Q.createContext(null);function t(){return Q.useContext(e)}function n(n,r){let i=Aa(n),a=(a,o)=>{let s=i?{ref:o}:{},c=Q.useRef(0),l=Q.useRef(a);return t()===null?((!r||r(l.current,a))&&(c.current+=1),l.current=a,Q.createElement(e.Provider,{value:c.current},Q.createElement(n,ZU({},a,s)))):Q.createElement(n,ZU({},a,s))};return i?Q.forwardRef(a):a}function r(e,n){let r=Aa(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),Q.createElement(e,ZU({},n,a))};return Q.memo(r?Q.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:$U,responseImmutable:eW,useImmutableMark:tW}=QU(),{makeImmutable:nW,responseImmutable:rW,useImmutableMark:iW}=QU(),aW=YU(),oW=Q.createContext({renderWithProps:!1}),sW=`RC_TABLE_KEY`;function cW(e){return e==null?[]:Array.isArray(e)?e:[e]}function lW(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||cW(i).join(`-`)||sW;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function uW(e){return e!=null}function dW(e){return typeof e==`number`&&!Number.isNaN(e)}function fW(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!Q.isValidElement(e)}function pW(e,t,n,r,i,a){let o=Q.useContext(oW),s=iW();return Ia(()=>
1033{if(uW(r))return[r];let a=ga(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);fW(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[s,e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!$i(e,t,!0)})}function mW(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function hW(e,t){return XU(aW,n=>[mW(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function gW(){return gW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gW.apply(this,arguments)}var _W=({ellipsis:e,rowType:t,children:n})=>{let r,i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t===`header`)&&(typeof n==`string`||typeof n==`number`?r=n.toString():Q.isValidElement(n)&&typeof n.props?.children==`string`&&(r=n.props?.children)),r},vW=Q.memo(e=>{let{component:t,children:n,ellipsis:r,scope:i,prefixCls:a,className:o,style:s,align:c,record:l,render:u,dataIndex:d,renderIndex:f,shouldCellUpdate:p,index:m,rowType:h,colSpan:g,rowSpan:_,fixStart:v,fixEnd:y,fixedStartShadow:b,fixedEndShadow:x,offsetFixedStartShadow:S,offsetFixedEndShadow:C,zIndex:w,zIndexReverse:T,appendNode:E,additionalProps:D={},originRowSpan:O,isSticky:k}=e,A=`${a}-cell`,{allColumnsFixedLeft:j,rowHoverable:M}=XU(aW,[`allColumnsFixedLeft`,`rowHoverable`]),[N,P]=pW(l,d,f,n,u,p),F={},I=typeof v==`number`&&!j,L=typeof y==`number`&&!j,[R,z]=XU(aW,({scrollInfo:e})=>{if(!I&&!L)return[!1,!1];let[t,n]=e;return[(I&&b&&t)-S>=1,(L&&x&&n-t)-C>1]});I&&(F.insetInlineStart=v,F[`--z-offset`]=w,F[`--z-offset-reverse`]=T),L&&(F.insetInlineEnd=y,F[`--z-offset`]=w,F[`--z-offset-reverse`]=T);let B=P?.colSpan??D.colSpan??g??1,V=P?.rowSpan??D.rowSpan??_??1,H=P?.rowSpan??O??V,[U,W]=hW(m,H),G=da(e=>{l&&W(m,m+H-1),D?.onMouseEnter?.(e)}),ee=da(e=>{l&&W(-1,-1),D?.onMouseLeave?.(e)});if(B===0||V===0)return null;let te=D.title??_W({rowType:h,ellipsis:r,children:N}),ne=X(A,o,{[`${A}-fix`]:I||L,[`${A}-fix-start`]:I,[`${A}-fix-end`]:L,[`${A}-fix-start-shadow`]:b,[`${A}-fix-start-shadow-show`]:b&&R,[`${A}-fix-end-shadow`]:x,[`${A}-fix-end-shadow-show`]:x&&z,[`${A}-ellipsis`]:r,[`${A}-with-append`]:E,[`${A}-fix-sticky`]:(I||L)&&k,[`${A}-row-hover`]:!P&&U},D.className,P?.className),K={};c&&(K.textAlign=c);let q={...P?.style,...F,...K,...D.style,...s},re=N;return typeof re==`object`&&!Array.isArray(re)&&!Q.isValidElement(re)&&(re=null),r&&(b||x)&&(re=Q.createElement(`span`,{className:`${A}-content`},re)),Q.createElement(t,gW({},P,D,{className:ne,style:q,title:te,scope:i,onMouseEnter:M?G:void 0,onMouseLeave:M?ee:void 0,colSpan:B===1?null:B,rowSpan:V===1?null:V}),E,re)});function yW(e){return e.fixed===`start`}function bW(e){return e.fixed===`end`}function xW(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;yW(i)&&yW(a)?o=r.start[e]:bW(a)&&bW(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!yW(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!bW(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;t<e;t+=1)yW(n[t])||(f+=r.widths[t]||0);if(l)for(let e=n.length-1;e>t;--e)bW(n[e])||(p+=r.widths[e]||0);return{fixStart:o,fixEnd:s,fixedStartShadow:c,fixedEndShadow:l,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}var SW=Q.createContext({});function CW(){return CW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CW.apply(this,arguments)}var wW=e=>{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=XU(aW,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=Q.useContext(SW),d=n+i-1+1===c?i+1:i,f=Q.useMemo(()=>xW(n,n+d-1,u,l),[n,d,u,l]);return Q.createElement(vW,CW({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},TW=e=>{let{children:t,...n}=e;return Q.createElement(`tr`,n,t)},EW=e=>{let{children:t}=e;return t};EW.Row=TW,EW.Cell=wW;var DW=rW(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=XU(aW,`prefixCls`),a=r.length-1,o=r[a],s=Q.useMemo(()=>
1033({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o?.scrollbar?a:null}),[o,r,a,n]);return Q.createElement(SW.Provider,{value:s},Q.createElement(`tfoot`,{className:`${i}-summary`},t))}),OW=EW;function kW(e){return null}function AW(e){return null}function jW(e,t,n,r,i,a,o){let s=a(t,o);e.push({record:t,indent:n,index:o,rowKey:s});let c=i?.has(s);if(t&&Array.isArray(t[r])&&c)for(let o=0;o<t[r].length;o+=1)jW(e,t[r][o],n+1,r,i,a,o)}function MW(e,t,n,r){return Q.useMemo(()=>{if(n?.size){let i=[];for(let a=0;a<e?.length;a+=1){let o=e[a];jW(i,o,0,t,n,r,a)}return i}return e?.map((e,t)=>({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function NW(e,t,n,r){let i=XU(aW,[`prefixCls`,`fixedInfoList`,`flattenColumns`,`expandableType`,`expandRowByClick`,`onTriggerExpand`,`rowClassName`,`expandedRowClassName`,`indentSize`,`expandIcon`,`expandedRowRender`,`forceRender`,`expandIconColumnIndex`,`expandedKeys`,`childrenColumnName`,`rowExpandable`,`onRow`]),{flattenColumns:a,expandableType:o,expandedKeys:s,childrenColumnName:c,onTriggerExpand:l,rowExpandable:u,onRow:d,expandRowByClick:f,rowClassName:p}=i,m=o===`nest`,h=o===`row`&&(!u||u(e)),g=h||m,_=s&&s.has(t),v=c&&e&&e[c],y=da(l),b=d?.(e,n),x=b?.onClick,S=(t,...n)=>{f&&g&&l(e,t),x?.(t,...n)},C;typeof p==`string`?C=p:typeof p==`function`&&(C=p(e,n,r));let w=lW(a);return{...i,columnsKey:w,nestExpandable:m,expanded:_,hasNestChildren:v,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:{...b,className:X(C,b?.className),onClick:S}}}var PW=e=>{let{prefixCls:t,children:n,component:r,cellComponent:i,className:a,expanded:o,colSpan:s,isEmpty:c,stickyOffset:l=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:f,componentWidth:p,horizonScroll:m}=XU(aW,[`scrollbarSize`,`fixHeader`,`fixColumn`,`componentWidth`,`horizonScroll`]),h=n;return(c?m&&p:f)&&(h=Q.createElement(`div`,{style:{width:p-l-(d&&!c?u:0),position:`sticky`,left:l,overflow:`hidden`},className:`${t}-expanded-row-fixed`},h)),Q.createElement(r,{className:a,style:{display:o?null:`none`}},Q.createElement(vW,{component:i,prefixCls:t,colSpan:s},h))};function FW({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){let a=`${e}-row-expand-icon`;if(!i)return Q.createElement(`span`,{className:X(a,`${e}-row-spaced`)});let o=e=>{n(t,e),e.stopPropagation()};return Q.createElement(`span`,{className:X(a,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:o})}function IW(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}function LW(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function RW(){return RW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RW.apply(this,arguments)}function zW(e,t,n,r,i,a=[],o=0){let{record:s,prefixCls:c,columnsKey:l,fixedInfoList:u,expandIconColumnIndex:d,nestExpandable:f,indentSize:p,expandIcon:m,expanded:h,hasNestChildren:g,onTriggerExpand:_,expandable:v,expandedKeys:y}=e,b=l[n],x=u[n],S;n===(d||0)&&f&&(S=Q.createElement(Q.Fragment,null,Q.createElement(`span`,{style:{paddingLeft:`${p*r}px`},className:`${c}-row-indent indent-level-${r}`}),m({prefixCls:c,expanded:h,expandable:g,record:s,onExpand:_})));let C={...t.onCell?.(s,i)},w;if(o){let{rowSpan:e=1}=C;if(v&&e&&n<o){w=e;let t=e;for(let n=i;n<i+e;n+=1){let e=a[n];y.has(e)&&(t+=1)}C.rowSpan=t}}return{key:b,fixedInfo:x,appendCellNode:S,additionalCellProps:C,originRowSpan:w}}var BW=rW(e=>{let{className:t,style:n,classNames:r,styles:i,record:a,index:o,renderIndex:s,rowKey:c,rowKeys:l,indent:u=0,rowComponent:d,cellComponent:f,scopeCellComponent:p,expandedRowInfo:m}=e,h=NW(a,c,o,u),{prefixCls:g,flattenColumns:_,expandedRowClassName:v,expandedRowRender:y,forceRender:b,rowProps:x,expanded:S,rowSupportExpand:C}=h,w=Q.useRef(!1);w.current||=S;let T=LW(v,a,o,u),E=Q.createElement(d,RW({},x,{"data-row-key":c,className:X(t,`${g}-row`,`${g}-row-level-${u}`,x?.className,r.row,{[T]:u>=1}),style:{...n,...x?.style,...i.row}}),_.map((e,t)=>{let{render:n,dataIndex:c,className:d}=e,{key:_,fixedInfo:v,appendCellNode:y,additionalCellProps:b,originRowSpan:x}=zW(h,e,t,u,o,l,m?.offset);return Q.createElement(vW,RW({className:X(d,r.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:g,key:_,record:a,index:o,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:y,additionalProps:b,originRowSpan:x}))})),D;if(C&&(b||w.current||S)){let e=y(a,o,u+1,S);D=Q.createElement(PW,{expanded:S,className:X(`${g}-expanded-row`,`${g}-expanded-row-level-${u+1}`,T),prefixCls:g,component:d,cellComponent:f,colSpan:m?m.colSpan:_.length,isEmpty:!1,stickyOffset:m?.sticky},e)}return Q.createElement(Q.Fragment,null,E,D)}),VW=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=Q.useRef(null);return _o(()=>{i.current&&n(t,i.current.offsetWidth)},[]),Q.createElement(Pa,{data:t},Q.createElement(`td`,{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},Q.createElement(`div`,{style:{height:0,overflow:`hidden`,fontWeight:`bold`}},r||`\xA0`)))},HW=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=Q.useRef(null),{measureRowRender:a}=XU(aW,[`measureRowRender`]),o=Q.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},Q.createElement(Pa.Collection,{onBatchResize:e=>{ao(i.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{let t=r.find(t=>t.key===e)?.title,i=Q.isValidElement(t)?Q.cloneElement(t,{ref:null}):t;return Q.createElement(VW,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},UW=rW(e=>{let{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:a,flattenColumns:o,getRowKey:s,expandedKeys:c,childrenColumnName:l,emptyNode:u,classNames:d,styles:f,expandedRowOffset:p=0,colWidths:m}=XU(aW,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:h={}}=d||{},{body:g={}}=f||{},_=MW(t,l,c,s),v=Q.useMemo(()=>_.map(e=>e.rowKey),[_]),y=Q.useRef({renderWithProps:!1}),b=Q.useMemo(()=>{let e=o.length-p,t=0;for(let e=0;e<p;e+=1)t+=m[e]||0;return{offset:p,colSpan:e,sticky:t}},[o.length,p,m]),x=i([`body`,`wrapper`],`tbody`),S=i([`body`,`row`],`tr`),C=i([`body`,`cell`],`td`),w=i([`body`,`cell`],`th`),T;T=t.length?_.map((e,t)=>{let{record:n,indent:r,index:i,rowKey:a}=e;return Q.createElement(BW,{classNames:h,styles:g,key:a,rowKey:a,rowKeys:v,record:n,index:t,renderIndex:i,rowComponent:S,cellComponent:C,scopeCellComponent:w,indent:r,expandedRowInfo:b})}):Q.createElement(PW,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:S,cellComponent:C,colSpan:o.length,isEmpty:!0},u);let E=lW(o);return Q.createElement(oW.Provider,{value:y.current},Q.createElement(x,{style:g.wrapper,className:X(`${r}-tbody`,h.wrapper)},n&&Q.createElement(HW,{prefixCls:r,columnsKey:E,onColumnResize:a,c
1033olumns:o}),T))}),WW=`RC_TABLE_INTERNAL_COL_DEFINE`;function GW(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function KW(){return KW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KW.apply(this,arguments)}var qW=e=>{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=XU(aW,[`tableLayout`]),a=[],o=r||n.length,s=!1;for(let e=o-1;e>=0;--e){let r=t[e],o=n&&n[e],c,l;if(o&&(c=o[WW],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift(Q.createElement(`col`,KW({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?Q.createElement(`colgroup`,null,a):null};function JW(e,t){return(0,Q.useMemo)(()=>{let n=[];for(let r=0;r<t;r+=1){let t=e[r];if(t!==void 0)n[r]=t;else return null}return n},[e.join(`_`),t])}var YW=Q.forwardRef((e,t)=>{let{className:n,style:r,noData:i,columns:a,flattenColumns:o,colWidths:s,colGroup:c,columCount:l,stickyOffsets:u,direction:d,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:m,stickyClassName:h,scrollX:g,tableLayout:_=`fixed`,onScroll:v,maxContentScroll:y,children:b,...x}=e,{prefixCls:S,scrollbarSize:C,isSticky:w,getComponent:T}=XU(aW,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),E=T([`header`,`table`],`table`),D=w&&!f?0:C,O=Q.useRef(null),k=Q.useCallback(e=>{Ea(t,e),Ea(O,e)},[]);Q.useEffect(()=>{function e(e){let{currentTarget:t,deltaX:n}=e;if(n){let{scrollLeft:r,scrollWidth:i,clientWidth:a}=t,o=i-a,s=r+n;d===`rtl`?(s=Math.max(-o,s),s=Math.min(0,s)):(s=Math.min(o,s),s=Math.max(0,s)),v({currentTarget:t,scrollLeft:s}),e.preventDefault()}}let t=O.current;return t?.addEventListener(`wheel`,e,{passive:!1}),()=>{t?.removeEventListener(`wheel`,e)}},[]);let A=o[o.length-1],j={fixed:A?A.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${S}-cell-scrollbar`})},M=(0,Q.useMemo)(()=>D?[...a,j]:a,[D,a]),N=(0,Q.useMemo)(()=>D?[...o,j]:o,[D,o]),P=(0,Q.useMemo)(()=>{let{start:e,end:t}=u;return{...u,start:e,end:[...t.map(e=>e+D),0],isSticky:w}},[D,u,w]),F=JW(s,l),I=(0,Q.useMemo)(()=>{let e=!F||!F.length||F.every(e=>!e);return i||e},[i,F]);return Q.createElement(`div`,{style:{overflow:`hidden`,...w?{top:p,bottom:m}:{},...r},ref:k,className:X(n,{[h]:!!h})},Q.createElement(E,{style:{tableLayout:_,minWidth:`100%`,width:g}},I?c:Q.createElement(qW,{colWidths:[...F,D],columCount:l+1,columns:N}),b({...x,stickyOffsets:P,columns:M,flattenColumns:N})))}),XW=Q.memo(YW);function ZW(){return ZW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZW.apply(this,arguments)}var QW=e=>{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=XU(aW,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=lW(t.map(e=>e.column));return Q.createElement(i,ZW({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=xW(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return Q.createElement(vW,ZW({},e,{scope:i.title?c>1?`colgroup`:`col`:null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:u,key:f[t]},l,{additionalProps:d,rowType:`header`}))}))};function $W(e,t,n){let r=[];function i(e,a,o=0){r[o]=r[o]||[];let s=a;return e.filter(Boolean).map(e=>{let a={key:e.key,className:X(e.className,t.cell)||``,style:n.cell,children:e.title,column:e,colStart:s},c=1,l=e.children;return l&&l.length>0&&(c=i(l,s,o+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),`colSpan`in e&&({colSpan:c}=e),`rowSpan`in e&&(a.rowSpan=e.rowSpan),a.colSpan=c,a.colEnd=a.colStart+c-1,r[o].push(a),s+=c,c})}i(e,0);let a=r.length;for(let e=0;e<a;e+=1)r[e].forEach(t=>{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=a-e)});return r}var eG=rW(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=XU(aW,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=Q.useMemo(()=>$W(n,l,u),[n,l,u]),f=o([`header`,`wrapper`],`thead`),p=o([`header`,`row`],`tr`),m=o([`header`,`cell`],`th`);return Q.createElement(f,{className:X(`${a}-thead`,l.wrapper),style:u.wrapper},d.map((e,n)=>Q.createElement(QW,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:m,onHeaderRow:i,index:n})))});function tG(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function nG(e,t,n){return Q.useMemo(()=>
1033{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=tG(t,e.width);n?r+=n:i+=1});let a=Math.max(t,n),o=Math.max(a-r,i),s=i,c=o/i,l=0,u=e.map(e=>{let n={...e},r=tG(t,n.width);if(r)n.width=r;else{let e=Math.floor(c);n.width=s===1?o:e,o-=e,--s}return l+=n.width,n});if(l<a){let e=a/l;o=a,u.forEach((t,n)=>{let r=Math.floor(t.width*e);t.width=n===u.length-1?o:r,o-=r})}return[u,Math.max(l,a)]}return[e,t]},[e,t,n])}function rG(e){return Zi(e).filter(e=>Q.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r,...i}=n,a={key:t,...i};return r&&(a.children=rG(r)),a})}function iG(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:iG(t)}:e})}function aG(e,t=`key`){return e.filter(e=>e&&typeof e==`object`).reduce((e,n,r)=>{let{fixed:i}=n,a=i===!0||i===`left`?`start`:i===`right`?`end`:i,o=`${t}-${r}`,s=n.children;return s&&s.length>0?[...e,...aG(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function oG({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:a,getRowKey:o,onTriggerExpand:s,expandIcon:c,rowExpandable:l,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:f,expandRowByClick:p,columnWidth:m,fixed:h,scrollWidth:g,clientWidth:_},v){let y=Q.useMemo(()=>iG((t||rG(n)||[]).slice()),[t,n]),b=Q.useMemo(()=>{if(r){let t=y.slice();if(!t.includes(qU)){let e=u||0,n=e===0&&(h===`right`||h===`end`)?y.length:e;n>=0&&t.splice(n,0,qU)}let n=t.indexOf(qU);t=t.filter((e,t)=>e!==qU||t===n);let r=y[n],f;f=h||(r?r.fixed:null);let g={[WW]:{className:`${e}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:a,fixed:f,className:`${e}-row-expand-icon-cell`,width:m,render:(t,n,r)=>{let a=o(n,r),u=c({prefixCls:e,expanded:i.has(a),expandable:!l||l(n),record:n,onExpand:s});return p?Q.createElement(`span`,{onClick:e=>e.stopPropagation()},u):u}};return t.map((e,t)=>{let n=e===qU?g:e;return t<d?{...n,fixed:n.fixed||`start`}:n})}return y.filter(e=>e!==qU)},[r,y,o,i,c,f,d]),x=Q.useMemo(()=>{let e=b;return v&&(e=v(e)),e.length||(e=[{render:()=>null}]),e},[v,b,f]),[S,C]=nG(Q.useMemo(()=>aG(x),[x,f,g]),g,_);return[x,S,C]}function sG(e,t,n){let r=GW(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||FW,p=d||`children`,m=Q.useMemo(()=>c?`row`:e.expandable&&e.internalHooks===`rc-table-internal-hook`&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&typeof e==`object`&&e[p])?`nest`:!1,[!!c,t]),[h,g]=Q.useState(()=>o||(s?IW(t,n,p):[])),_=Q.useMemo(()=>new Set(a||h||[]),[a,h]);return[r,m,_,f,p,Q.useCallback(e=>{let r=n(e,t.indexOf(e)),i,a=_.has(r);a?(_.delete(r),i=[..._]):i=[..._,r],g(i),l&&l(!a,e),u&&u(i)},[n,_,t,l,u])]}function cG(e,t){let n=Q.useMemo(()=>e.map((n,r)=>xW(r,r,e,t)),[e,t]);return Ia(()=>n,[n],(e,t)=>!$i(e,t))}function lG(e){let t=(0,Q.useRef)(e),[,n]=(0,Q.useState)({}),r=(0,Q.useRef)(null),i=(0,Q.useRef)([]);function a(e){i.current.push(e);let a=Promise.resolve();r.current=a,a.then(()=>{if(r.current===a){let e=i.current,a=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}return(0,Q.useEffect)(()=>()=>{r.current=null},[]),[t.current,a]}function uG(e){let t=(0,Q.useRef)(e||null),n=(0,Q.useRef)(null);function r(){clearTimeout(n.current)}function i(e){t.current=e,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,Q.useEffect)(()=>r,[]),[i,a]}function dG(){let[e,t]=Q.useState(-1),[n,r]=Q.useState(-1);return[e,n,Q.useCallback((e,n)=>{t(e),r(n)},[])]}var fG=mo()?window:null;function pG(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>fG}=typeof e==`object`?e:{},o=a()||fG,s=!!e;return Q.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}),[s,i,n,r,t,o])}function mG(e,t){return(0,Q.useMemo)(()=>{let n=t.length,r=(n,r,i)=>{let a=[],o=0;for(let s=n;s!==r;s+=i)a.push(o),t[s].fixed&&(o+=e[s]||0);return a};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}var hG=e=>{let{children:t,className:n,style:r}=e;return Q.createElement(`div`,{className:n,style:r},t)};function gG(e){let t=Ya(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)}}var _G=`mouseup`,vG=`mousemove`,yG=`scroll`,bG=`resize`,xG=Q.forwardRef((e,t)=>
1033{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=XU(aW,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=Q.useRef(null),[f,p]=lG({scrollLeft:0,isHiddenScrollBar:!0}),m=Q.useRef({delta:0,x:0}),[h,g]=Q.useState(!1),_=Q.useRef(null);Q.useEffect(()=>()=>{Ra.cancel(_.current)},[]);let v=()=>{g(!1)},y=e=>{e.persist(),m.current.delta=e.pageX-f.scrollLeft,m.current.x=0,g(!0),e.preventDefault()},b=e=>{let{buttons:t}=e||window?.event;if(!h||t===0){h&&g(!1);return}let n=m.current.x+e.pageX-m.current.x-m.current.delta,i=o===`rtl`;n=Math.max(i?u-l:0,Math.min(i?0:l-u,n)),(!i||Math.abs(n)+Math.abs(u)<l)&&(r({scrollLeft:n/l*(c+2)}),m.current.x=e.pageX)},x=()=>{Ra.cancel(_.current),_.current=Ra(()=>{if(!n.current)return;let e=gG(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:gG(a).top+a.clientHeight;t-ya()<=r||e>=r-i?p(e=>({...e,isHiddenScrollBar:!0})):p(e=>({...e,isHiddenScrollBar:!1}))})},S=e=>{p(t=>({...t,scrollLeft:e/c*l||0}))};return Q.useImperativeHandle(t,()=>({setScrollLeft:S,checkScrollBarVisible:x})),Q.useEffect(()=>(document.body.addEventListener(_G,v,!1),document.body.addEventListener(vG,b,!1),x(),()=>{document.body.removeEventListener(_G,v),document.body.removeEventListener(vG,b)}),[u,h]),Q.useEffect(()=>{if(n.current){let e=[],t=Ya(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(yG,x,!1)}),window.addEventListener(bG,x,!1),window.addEventListener(yG,x,!1),a.addEventListener(yG,x,!1),()=>{e.forEach(e=>{e.removeEventListener(yG,x)}),window.removeEventListener(bG,x),window.removeEventListener(yG,x),a.removeEventListener(yG,x)}}},[a]),Q.useEffect(()=>{f.isHiddenScrollBar||p(e=>{let t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),c<=l||!u||f.isHiddenScrollBar?null:Q.createElement(`div`,{style:{height:ya(),width:l,bottom:i},className:`${s}-sticky-scroll`},Q.createElement(`div`,{onMouseDown:y,ref:d,className:X(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:h}),style:{width:`${u}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))});function SG(){return SG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SG.apply(this,arguments)}var CG=`rc-table`,wG=[],TG={};function EG(){return`No Data`}var DG=Q.forwardRef((e,t)=>{let n={rowKey:`key`,prefixCls:CG,emptyText:EG,...e},{prefixCls:r,className:i,rowClassName:a,style:o,classNames:s,styles:c,data:l,rowKey:u,scroll:d,tableLayout:f,direction:p,title:m,footer:h,summary:g,caption:_,id:v,showHeader:y,components:b,emptyText:x,onRow:S,onHeaderRow:C,measureRowRender:w,onScroll:T,internalHooks:E,transformColumns:D,internalRefs:O,tailor:k,getContainerWidth:A,sticky:j,rowHoverable:M=!0}=n,N=l||wG,P=!!N.length,F=E===JU,I=Q.useCallback((e,t)=>ga(b,e)||t,[b]),L=Q.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),R=I([`body`]),[z,B,V]=dG(),[H,U,W,G,ee,te]=sG(n,N,L),ne=d?.x,[K,q]=Q.useState(0),[re,J,ie]=oG({...n,...H,expandable:!!H.expandedRowRender,columnTitle:H.columnTitle,expandedKeys:W,getRowKey:L,onTriggerExpand:te,expandIcon:G,expandIconColumnIndex:H.expandIconColumnIndex,direction:p,scrollWidth:F&&k&&typeof ne==`number`?ne:null,clientWidth:K},F?D:null),ae=ie??ne,oe=Q.useMemo(()=>({columns:re,flattenColumns:J}),[re,J]),se=Q.useRef(null),ce=Q.useRef(null),le=Q.useRef(null),ue=Q.useRef(null);Q.useImperativeHandle(t,()=>({nativeElement:se.current,scrollTo:e=>{if(le.current instanceof HTMLElement){let{index:t,top:n,key:r,offset:i,align:a=`nearest`}=e;if(dW(n))le.current?.scrollTo({top:n});else{let e=r??L(N[t]),n=le.current.querySelector(`[data-row-key="${e}"]`);if(n&&(n.scrollIntoView({block:a}),i)){let e=le.current;e.scrollTo({top:e.scrollTop+i})}}}else le.current?.scrollTo&&le.current.scrollTo(e)}}));let de=Q.useRef(null),[fe,pe]=Q.useState(!1),[me,he]=Q.useState(!1),[ge,_e]=Q.useState(new Map),ve=lW(J).map(e=>ge.get(e)),ye=Q.useMemo(()=>ve,[ve.join(`_`)]),be=mG(ye,J),xe=d&&uW(d.y),Se=d&&uW(ae)||!!H.fixed,Ce=Se&&J.some(({fixed:e})=>e),we=Q.useRef(null),{isSticky:Te,offsetHeader:Ee,offsetSummary:De,offsetScroll:Oe,stickyClassName:ke,container:Ae}=pG(j,r),je=Q.useMemo(()=>g?.(N),[g,N]),Me=(xe||Te)&&Q.isValidElement(je)&&je.type===EW&&je.props.fixed,Ne,Pe,Fe;xe&&(Pe={overflowY:P?`scroll`:`auto`,maxHeight:d.y}),Se&&(Ne={overflowX:`auto`},xe||(Pe={overflowY:`hidden`}),Fe={width:ae===!0?`auto`:ae,minWidth:`100%`});let Ie=Q.useCallback((e,t)=>{_e(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[Le,Re]=uG(null),[ze]=Q.useState(()=>new WeakMap);function Be(e,t){if(!t)return;if(typeof t==`function`){t(e);return}let n=ze.get(t);if(n&&clearTimeout(n),t.scrollLeft!==e){t.scrollLeft=e;let n=setTimeout(()=>{t.scrollLeft!==e&&(t.scrollLeft=e)},0);ze.set(t,n)}}let[Ve,He]=Q.useState([0,0]),Ue=da(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||TG;(!Re()||Re()===r)&&(Le(r),Be(n,ce.current),Be(n,le.current),Be(n,de.current),Be(n,we.current?.setScrollLeft));let i=e||ce.current;if(i){let e=F&&k&&typeof ae==`number`?ae:i.scrollWidth,t=i.clientWidth,r=Math.abs(n);if(He(n=>{let i=[r,e-t];return $i(n,i)?n:i}),e===t){pe(!1),he(!1);return}pe(r>0),he(r<e-t-1)}}),We=da(e=>{Ue(e),T?.(e)}),Ge=()=>{Se&&le.current?Ue({currentTarget:Ya(le.current),scrollLeft:le.current?.scrollLeft}):(pe(!1),he(!1))},Ke=e=>{we.current?.checkScrollBarVisible();let t=e??se.current?.offsetWidth??0;F&&A&&se.current&&(t=A(se.current,t)||t),t!==K&&(Ge(),q(t))};_o(()=>{Se&&Ke()},[Se]);let qe=Q.useRef(!1);Q.useEffect(()=>{qe.current&&Ge()},[Se,l,re.length]),Q.useEffect(()=>{qe.current=!0},[]);let[Je,Ye]=Q.useState(0);_o(()=>{(!k||!F)&&(le.current instanceof Element?Ye(Sa(le.current).width):Ye(Sa(ue.current).width))},[]),Q.useEffect(()=>{F&&O&&(O.body.current=le.current)});let Xe=Q.useCallback(e=>Q.createElement(Q.Fragment,null,Q.createElement(eG,e),Me===`top`&&Q.createElement(DW,e,je)),[Me,je]),Ze=Q.useCallback(e=>Q.createElement(DW,e,je),[je]),Qe=I([`table`],`table`),$e=Q.useMemo(()=>f||(Ce?ae===`max-content`?`auto`:`fixed`:xe||Te||J.some(({ellipsis:e})=>e)?`fixed`:`auto`),[xe,Ce,J,f,Te]),et,tt={colWidths:ye,columCount:J.length,stickyOffsets:be,onHeaderRow:C,fixHeader:xe,scroll:d},nt=Q.useMemo(()=>P?null:typeof x==`function`?x():x,[P,x]),rt=Q.createElement(UW,{data:N,measureColumnWidth:xe||Se||Te}),it=Q.createElement(qW,{colWidths:J.map(({width:e})=>e),columns:J}),at=_==null?void 0:Q.createElement(`caption`,{className:`${r}-caption`},_),ot=ha(n,{data:!0}),st=ha(n,{aria:!0});if(xe||Te){let e;typeof R==`function`?(e=R(N,{scrollbarSize:Je,ref:le,onScroll:Ue}),tt.colWidths=J.map(({width:e},t)=>{let n=t===J.length-1?e-Je:e;
1033return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=Q.createElement(`div`,{style:{...Ne,...Pe},onScroll:We,ref:le,className:`${r}-body`},Q.createElement(Qe,SG({style:{...Fe,tableLayout:$e}},st),at,it,rt,!Me&&je&&Q.createElement(DW,{stickyOffsets:be,flattenColumns:J},je)));let t={noData:!N.length,maxContentScroll:Se&&ae===`max-content`,...tt,...oe,direction:p,stickyClassName:ke,scrollX:ae,tableLayout:$e,onScroll:Ue};et=Q.createElement(Q.Fragment,null,y!==!1&&Q.createElement(XW,SG({},t,{stickyTopOffset:Ee,className:`${r}-header`,ref:ce,colGroup:it}),Xe),e,Me&&Me!==`top`&&Q.createElement(XW,SG({},t,{stickyBottomOffset:De,className:`${r}-summary`,ref:de,colGroup:it}),Ze),Te&&le.current&&le.current instanceof Element&&Q.createElement(xG,{ref:we,offsetScroll:Oe,scrollBodyRef:le,onScroll:Ue,container:Ae,direction:p}))}else et=Q.createElement(`div`,{style:{...Ne,...Pe,...c?.content},className:X(`${r}-content`,s?.content),onScroll:Ue,ref:le},Q.createElement(Qe,SG({style:{...Fe,tableLayout:$e}},st),at,it,y!==!1&&Q.createElement(eG,SG({},tt,oe)),rt,je&&Q.createElement(DW,{stickyOffsets:be,flattenColumns:J},je)));let ct={...o};Te&&(ct[`--columns-count`]=J.length);let lt=Q.createElement(`div`,SG({className:X(r,i,{[`${r}-rtl`]:p===`rtl`,[`${r}-fix-start-shadow`]:Se,[`${r}-fix-end-shadow`]:Se,[`${r}-fix-start-shadow-show`]:Se&&fe,[`${r}-fix-end-shadow-show`]:Se&&me,[`${r}-layout-fixed`]:f===`fixed`,[`${r}-fixed-header`]:xe,[`${r}-fixed-column`]:Ce,[`${r}-scroll-horizontal`]:Se,[`${r}-has-fix-start`]:J[0]?.fixed,[`${r}-has-fix-end`]:J[J.length-1]?.fixed===`end`}),style:ct,id:v,ref:se},ot),m&&Q.createElement(hG,{className:X(`${r}-title`,s?.title),style:c?.title},m(N)),Q.createElement(`div`,{ref:ue,className:X(`${r}-container`,s?.section),style:c?.section},et),h&&Q.createElement(hG,{className:X(`${r}-footer`,s?.footer),style:c?.footer},h(N)));Se&&(lt=Q.createElement(Pa,{onResize:({offsetWidth:e})=>Ke(e)},lt));let ut=cG(J,be),dt=Q.useMemo(()=>({scrollX:ae,scrollInfo:Ve,classNames:s,styles:c,prefixCls:r,getComponent:I,scrollbarSize:Je,direction:p,fixedInfoList:ut,isSticky:Te,componentWidth:K,fixHeader:xe,fixColumn:Ce,horizonScroll:Se,tableLayout:$e,rowClassName:a,expandedRowClassName:H.expandedRowClassName,expandIcon:G,expandableType:U,expandRowByClick:H.expandRowByClick,expandedRowRender:H.expandedRowRender,forceRender:H.forceRender??!1,expandedRowOffset:H.expandedRowOffset,onTriggerExpand:te,expandIconColumnIndex:H.expandIconColumnIndex,indentSize:H.indentSize,allColumnsFixedLeft:J.every(e=>e.fixed===`start`),emptyNode:nt,columns:re,flattenColumns:J,onColumnResize:Ie,colWidths:ye,hoverStartRow:z,hoverEndRow:B,onHover:V,rowExpandable:H.rowExpandable,onRow:S,getRowKey:L,expandedKeys:W,childrenColumnName:ee,rowHoverable:M,measureRowRender:w}),[ae,Ve,s,c,r,I,Je,p,ut,Te,K,xe,Ce,Se,$e,a,H.expandedRowClassName,G,U,H.expandRowByClick,H.expandedRowRender,H.forceRender,H.expandedRowOffset,te,H.expandIconColumnIndex,H.indentSize,nt,re,J,Ie,ye,z,B,V,H.rowExpandable,S,L,W,ee,M,w]);return Q.createElement(aW.Provider,{value:dt},lt)}),OG=e=>nW(DG,e),kG=OG();kG.EXPAND_COLUMN=qU,kG.INTERNAL_HOOKS=JU,kG.Column=kW,kG.ColumnGroup=AW,kG.Summary=OW;var AG=YU(null),jG=YU(null);function MG(){return MG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MG.apply(this,arguments)}function NG(e,t,n){return n[e+(t||1)]-(n[e]||0)}var PG=e=>{let{rowInfo:t,column:n,colIndex:r,indent:i,index:a,component:o,renderIndex:s,record:c,style:l,className:u,inverse:d,getHeight:f}=e,{render:p,dataIndex:m,className:h,width:g}=n,{columnsOffset:_}=XU(jG,[`columnsOffset`]),{key:v,fixedInfo:y,appendCellNode:b,additionalCellProps:x,originRowSpan:S}=zW(t,n,r,i,a),{style:C,colSpan:w=1,rowSpan:T=1}=x,E=NG(r-1,w,_),D=w>1?g-E:0,O={...C,...l,flex:`0 0 ${E}px`,width:`${E}px`,marginRight:D,pointerEvents:`auto`},k=Q.useMemo(()=>d?T<=1:w===0||T===0||T>1,[T,w,d]);k?O.visibility=`hidden`:d&&(O.height=f?.(T));let A=k?()=>null:p,j={};return(T===0||w===0)&&(j.rowSpan=1,j.colSpan=1),Q.createElement(vW,MG({className:X(h,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:v,record:c,index:a,renderIndex:s,dataIndex:m,render:A,shouldCellUpdate:n.shouldCellUpdate},y,{appendNode:b,originRowSpan:S,additionalProps:{...x,style:O,...j}}))};function FG(){return FG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FG.apply(this,arguments)}var IG=rW(Q.forwardRef((e,t)=>
1033{let{data:n,index:r,className:i,rowKey:a,style:o,extra:s,getHeight:c,...l}=e,{record:u,indent:d,index:f}=n,{scrollX:p,flattenColumns:m,prefixCls:h,fixColumn:g,componentWidth:_,classNames:v,styles:y}=XU(aW,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`,`classNames`,`styles`]),{getComponent:b}=XU(AG,[`getComponent`]),x=NW(u,a,r,d),S=b([`body`,`row`],`div`),C=b([`body`,`cell`],`div`),{rowSupportExpand:w,expanded:T,rowProps:E,expandedRowRender:D,expandedRowClassName:O,forceRender:k}=x,A=LW(O,u,r,d),j;if(!s&&w&&(k||T)){let e=D(u,r,d+1,T),t={};g&&(t={style:{"--virtual-width":`${_}px`}});let n=`${h}-expanded-row-cell`;j=Q.createElement(S,{className:X(`${h}-expanded-row`,`${h}-expanded-row-level-${d+1}`,A),style:{display:T?void 0:`none`}},Q.createElement(vW,{component:C,prefixCls:h,className:X(n,{[`${n}-fixed`]:g}),additionalProps:t},e))}let M={...o,width:p};s&&(M.position=`absolute`,M.pointerEvents=`none`);let N=Q.createElement(S,FG({},E,l,{"data-row-key":a,ref:w?null:t,className:X(i,`${h}-row`,E?.className,v?.body?.row,{[A]:d>=1,[`${h}-row-extra`]:s}),style:{...M,...E?.style,...y?.body?.row}}),m.map((e,t)=>Q.createElement(PG,{key:t,className:v?.body?.cell,style:y?.body?.cell,component:C,rowInfo:x,column:e,colIndex:t,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:c})));return w?Q.createElement(`div`,{ref:t},N,j):N})),LG={start:`top`,end:`bottom`,nearest:`auto`},RG=rW(Q.forwardRef((e,t)=>{let{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:a,getRowKey:o,expandedKeys:s,prefixCls:c,childrenColumnName:l,scrollX:u,direction:d}=XU(aW,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:h,onScroll:g}=XU(AG),_=Q.useRef(null),v=MW(n,l,s,o),y=Q.useMemo(()=>{let e=0;return i.map(({width:t,minWidth:n,key:r})=>{let i=Math.max(t||0,n||0);return e+=i,[r,i,e]})},[i]),b=Q.useMemo(()=>y.map(e=>e[2]),[y]);Q.useEffect(()=>{y.forEach(([e,t])=>{a(e,t)})},[y]),Q.useImperativeHandle(t,()=>{let e={scrollTo:e=>{let{align:t,offset:n,...r}=e,i=LG[t]??(n?`top`:`auto`);_.current?.scrollTo({...r,offset:n,align:i})},nativeElement:_.current?.nativeElement};return Object.defineProperty(e,"scrollLeft",{get:()=>_.current?.getScrollInfo().x||0,set:e=>{_.current?.scrollTo({left:e})}}),Object.defineProperty(e,"scrollTop",{get:()=>_.current?.getScrollInfo().y||0,set:e=>{_.current?.scrollTo({top:e})}}),e});let x=(e,t)=>{let n=v[t]?.record,{onCell:r}=e;return r?r(n,t)?.rowSpan??1:1},S=e=>{let{start:t,end:n,getSize:r,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>x(e,t)===0),c=t;for(let e=t;e>=0;--e)if(s=s.filter(t=>x(t,e)===0),!s.length){c=e;break}let l=i.filter(e=>x(e,n)!==1),u=n;for(let e=n;e<v.length;e+=1)if(l=l.filter(t=>x(t,e)!==1),!l.length){u=Math.max(e-1,n);break}let d=[];for(let e=c;e<=u;e+=1)v[e]&&i.some(t=>x(t,e)>1)&&d.push(e);return d.map(e=>{let t=v[e],n=o(t.record,e),i=t=>{let i=e+t-1,a=v[i];if(!a||!a.record){let e=Math.min(i,v.length-1),t=v[e],a=o(t.record,e),s=r(n,a);return s.bottom-s.top}let s=o(a.record,i),c=r(n,s);return c.bottom-c.top},s=r(n);return Q.createElement(IG,{key:e,data:t,rowKey:n,index:e,style:{top:-a+s.top},extra:!0,getHeight:i})})},C=Q.useMemo(()=>({columnsOffset:b}),[b]),w=`${c}-tbody`,T=h([`body`,`wrapper`]),E={};return f&&(E.position=`sticky`,E.bottom=0,typeof f==`object`&&f.offsetScroll&&(E.bottom=f.offsetScroll)),Q.createElement(jG.Provider,{value:C},Q.createElement(ms,{fullHeight:!1,ref:_,prefixCls:`${w}-virtual`,styles:{horizontalScrollBar:E},className:w,height:p,itemHeight:m||24,data:v,itemKey:e=>o(e.record),component:T,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{r({currentTarget:_.current?.nativeElement,scrollLeft:e})},onScroll:g,extraRender:S},(e,t,n)=>{let r=o(e.record,t);return Q.createElement(IG,{data:e,rowKey:r,index:t,style:n.style})}))}));function zG(){return zG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zG.apply(this,arguments)}var BG=(e,t)=>
1033{let{ref:n,onScroll:r}=t;return Q.createElement(RG,{ref:n,data:e,onScroll:r})},VG=Q.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=CG,className:s,listItemHeight:c,components:l,onScroll:u}=e,{x:d,y:f}=i||{};typeof d!=`number`&&(d=1),typeof f!=`number`&&(f=500);let p=da((e,t)=>ga(l,e)||t),m=da(u),h=Q.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:m}),[a,f,c,p,m]);return Q.createElement(AG.Provider,{value:h},Q.createElement(kG,zG({},e,{className:X(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?BG:void 0},columns:r,internalHooks:JU,tailor:!0,ref:t})))}),HG=e=>nW(VG,e);HG();var UG=e=>null,WG=e=>null,GG=Q.createContext(null),KG=Q.createContext({}),qG=e=>{let{dropPosition:t,dropLevelOffset:n,indent:r}=e,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}return Q.createElement(`div`,{style:i})},JG=Q.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let i=`${e}-indent-unit`,a=[];for(let e=0;e<t;e+=1)a.push(Q.createElement(`span`,{key:e,className:X(i,{[`${i}-start`]:n[e],[`${i}-end`]:r[e]})}));return Q.createElement(`span`,{"aria-hidden":`true`,className:`${e}-indent`},a)});function YG(e,t){return e[t]}function XG(e,t){return`${e}-${t}`}function ZG(e){return e&&e.type&&e.type.isTreeNode}function QG(e,t){return e??t}function $G(e){let{title:t,_title:n,key:r,children:i}=e||{},a=t||`title`;return{title:a,_title:n||[a],key:r||`key`,children:i||`children`}}function eK(e){function t(e){return Zi(e).map(e=>{if(!ZG(e))return ba(!e,`Tree/TreeNode can only accept TreeNode as children.`),null;let{key:n}=e,{children:r,...i}=e.props,a={key:n,...i},o=t(r);return o.length&&(a.children=o),a}).filter(e=>e)}return t(e)}function tK(e,t,n){let{_title:r,key:i,children:a}=$G(n),o=new Set(t===!0?[]:t),s=[];function c(e,n=null){return e.map((l,u)=>{let d=XG(n?n.pos:`0`,u),f=QG(l[i],d),p;for(let e=0;e<r.length;e+=1){let t=r[e];if(l[t]!==void 0){p=l[t];break}}let m=Object.assign(_a(l,[...r,i,a]),{title:p,key:f,parent:n,pos:d,children:null,data:l,isStart:[...n?n.isStart:[],u===0],isEnd:[...n?n.isEnd:[],u===e.length-1]});return s.push(m),m.children=t===!0||o.has(f)?c(l[a]||[],m):[],m})}return c(e),s}function nK(e,t,n){let{childrenPropName:r,externalGetKey:i,fieldNames:a}=typeof n==`object`?n||{}:{externalGetKey:n},{key:o,children:s}=$G(a),c=r||s,l;i?typeof i==`string`?l=e=>e[i]:typeof i==`function`&&(l=e=>i(e)):l=(e,t)=>QG(e[o],t);function u(n,r,i,a){let o=n?n[c]:e,s=n?XG(i.pos,r):`0`,d=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:l(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:d}),o&&o.forEach((e,t)=>{u(e,t,{node:n,pos:s,level:i?i.level+1:-1},d)})}u(null)}function rK(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}={},s){let c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),nK(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=QG(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function iK(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function aK(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:a,halfCheckedKeys:o,dragOverNodeKey:s,dropPosition:c,keyEntities:l}){let u=YG(l,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:o.indexOf(e)!==-1,pos:String(u?u.pos:``),dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function oK(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m={...t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,key:p};return`props`in m||Object.defineProperty(m,"props",{get(){return ba(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function sK(){return sK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sK.apply(this,arguments)}var cK=`open`,lK=`close`,uK=`---`,dK=e=>{let{eventKey:t,className:n,style:r,dragOver:i,dragOverGapTop:a,dragOverGapBottom:o,isLeaf:s,isStart:c,isEnd:l,expanded:u,selected:d,checked:f,halfChecked:p,loading:m,domRef:h,active:g,data:_,onMouseMove:v,selectable:y,treeId:b,...x}=e,S=Qa(b,t),C=Q.useContext(GG),{classNames:w,styles:T}=C||{},E=Q.useContext(KG),D=Q.useRef(null),[O,k]=Q.useState(!1),A=!!(C.disabled||e.disabled||E.nodeDisabled?.(_)),j=Q.useMemo(()=>!C.checkable||e.checkable===!1?!1:C.checkable,[C.checkable,e.checkable]),M=t=>{A||C.onNodeSelect(t,oK(e))},N=t=>{A||j&&!e.disableCheckbox&&C.onNodeCheck(t,oK(e),!f)},P=Q.useMemo(()=>typeof y==`boolean`?y:C.selectable,[y,C.selectable]),F=t=>{C.onNodeClick(t,oK(e)),P?M(t):N(t)},I=t=>{C.onNodeDoubleClick(t,oK(e))},L=t=>{C.onNodeMouseEnter(t,oK(e))},R=t=>{C.onNodeMouseLeave(t,oK(e))},z=t=>{C.onNodeContextMenu(t,oK(e))},B=Q.useMemo(()=>!(!C.draggable||C.draggable.nodeDraggable&&!C.draggable.nodeDraggable(_)),[C.draggable,_]),V=t=>{t.stopPropagation(),k(!0),C.onNodeDragStart(t,e);try{t.dataTransfer.setData(`text/plain`,``)}catch{}},H=t=>{t.preventDefault(),t.stopPropagation(),C.onNodeDragEnter(t,e)},U=t=>{t.preventDefault(),t.stopPropagation(),C.onNodeDragOver(t,e)},W=t=>{t.stopPropagation(),C.onNodeDragLeave(t,e)},G=t=>{t.stopPropagation(),k(!1),C.onNodeDragEnd(t,e)},ee=t=>{t.preventDefault(),t.stopPropagation(),k(!1),C.onNodeDrop(t,e)},te=t=>{m||C.onNodeExpand(t,oK(e))},ne=Q.useMemo(()=>{let{children:e}=YG(C.keyEntities,t)||{};return!!(e||[]).length},[C.keyEntities,t]),K=Q.useMemo(()=>
1033iK(s,C.loadData,ne,e.loaded),[s,C.loadData,ne,e.loaded]);Q.useEffect(()=>{m||typeof C.loadData==`function`&&u&&!K&&!e.loaded&&C.onNodeLoad(oK(e))},[m,C.loadData,C.onNodeLoad,u,K,e]);let q=Q.useMemo(()=>C.draggable?.icon?Q.createElement(`span`,{className:`${C.prefixCls}-draggable-icon`},C.draggable.icon):null,[C.draggable]),re=t=>{let n=e.switcherIcon||C.switcherIcon;return typeof n==`function`?n({...e,isLeaf:t}):n},J=()=>{if(K){let e=re(!0);return e===!1?null:Q.createElement(`span`,{className:X(`${C.prefixCls}-switcher`,`${C.prefixCls}-switcher-noop`,w?.itemSwitcher),style:T?.itemSwitcher},e)}let e=re(!1);return e===!1?null:Q.createElement(`span`,{onClick:te,className:X(`${C.prefixCls}-switcher`,`${C.prefixCls}-switcher_${u?cK:lK}`,w?.itemSwitcher),style:T?.itemSwitcher},e)},ie=Q.useMemo(()=>{if(!j)return null;let t=typeof j==`boolean`?null:j;return Q.createElement(`span`,{className:X(`${C.prefixCls}-checkbox`,{[`${C.prefixCls}-checkbox-checked`]:f,[`${C.prefixCls}-checkbox-indeterminate`]:!f&&p,[`${C.prefixCls}-checkbox-disabled`]:A||e.disableCheckbox}),onClick:N,role:`checkbox`,"aria-checked":p?`mixed`:f,"aria-disabled":A||e.disableCheckbox,"aria-labelledby":S},t)},[j,f,p,A,e.disableCheckbox,S]),ae=Q.useMemo(()=>K?null:u?cK:lK,[K,u]),oe=Q.useMemo(()=>Q.createElement(`span`,{className:X(w?.itemIcon,`${C.prefixCls}-iconEle`,`${C.prefixCls}-icon__${ae||`docu`}`,{[`${C.prefixCls}-icon_loading`]:m}),style:T?.itemIcon}),[C.prefixCls,ae,m]),se=Q.useMemo(()=>{let n=!!C.draggable;return e.disabled||!n||C.dragOverNodeKey!==t?null:C.dropIndicatorRender({dropPosition:C.dropPosition,dropLevelOffset:C.dropLevelOffset,indent:C.indent,prefixCls:C.prefixCls,direction:C.direction})},[C.dropPosition,C.dropLevelOffset,C.indent,C.prefixCls,C.direction,C.draggable,C.dragOverNodeKey,C.dropIndicatorRender]),ce=Q.useMemo(()=>{let{title:t=uK}=e,n=`${C.prefixCls}-node-content-wrapper`,r;if(C.showIcon){let t=e.icon||C.icon;r=t?Q.createElement(`span`,{className:X(w?.itemIcon,`${C.prefixCls}-iconEle`,`${C.prefixCls}-icon__customize`),style:T?.itemIcon},typeof t==`function`?t(e):t):oe}else C.loadData&&m&&(r=oe);let i;return i=typeof t==`function`?t(_):C.titleRender?C.titleRender(_):t,Q.createElement(`span`,{ref:D,title:typeof t==`string`?t:``,className:X(n,`${n}-${ae||`normal`}`,{[`${C.prefixCls}-node-selected`]:!A&&(d||O)}),onMouseEnter:L,onMouseLeave:R,onContextMenu:z,onClick:F,onDoubleClick:I},r,Q.createElement(`span`,{className:X(`${C.prefixCls}-title`,w?.itemTitle),style:T?.itemTitle},i),se)},[C.prefixCls,C.showIcon,e,C.icon,oe,C.titleRender,_,ae,L,R,z,F,I]),le=ha(x,{aria:!0,data:!0}),{level:ue}=YG(C.keyEntities,t)||{},de=l[l.length-1],fe=!A&&B,pe=C.draggingNodeKey===t;return Q.createElement(`div`,sK({ref:h,role:`treeitem`,id:S,"aria-expanded":K?void 0:u,"aria-selected":P&&!A?d:void 0,"aria-checked":j&&!A?p?`mixed`:f:void 0,"aria-disabled":A,className:X(n,`${C.prefixCls}-treenode`,w?.item,{[`${C.prefixCls}-treenode-disabled`]:A,[`${C.prefixCls}-treenode-switcher-${u?`open`:`close`}`]:!s,[`${C.prefixCls}-treenode-checkbox-checked`]:f,[`${C.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${C.prefixCls}-treenode-selected`]:d,[`${C.prefixCls}-treenode-loading`]:m,[`${C.prefixCls}-treenode-active`]:g,[`${C.prefixCls}-treenode-leaf-last`]:de,[`${C.prefixCls}-treenode-draggable`]:B,dragging:pe,"drop-target":C.dropTargetKey===t,"drop-container":C.dropContainerKey===t,"drag-over":!A&&i,"drag-over-gap-top":!A&&a,"drag-over-gap-bottom":!A&&o,"filter-node":C.filterTreeNode?.(oK(e)),[`${C.prefixCls}-treenode-leaf`]:K}),style:{...r,...T?.item},draggable:fe,onDragStart:fe?V:void 0,onDragEnter:B?H:void 0,onDragOver:B?U:void 0,onDragLeave:B?W:void 0,onDrop:B?ee:void 0,onDragEnd:B?G:void 0,onMouseMove:v},le),Q.createElement(JG,{prefixCls:C.prefixCls,level:ue,isStart:c,isEnd:l}),q,J(),ie,ce)};dK.isTreeNode=1;function fK(e,t){let[n,r]=Q.useState(!1);_o(()=>{if(n)return e(),()=>{t()}},[n]),_o(()=>(r(!0),()=>{r(!1)}),[])}function pK(){return pK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pK.apply(this,arguments)}var mK=Q.forwardRef((e,t)=>
1033{let{className:n,style:r,motion:i,motionNodes:a,motionType:o,onMotionStart:s,onMotionEnd:c,active:l,treeNodeRequiredProps:u,...d}=e,[f,p]=Q.useState(!0),{prefixCls:m}=Q.useContext(GG),h=a&&o!==`hide`;_o(()=>{a&&h!==f&&p(h)},[a]);let g=()=>{a&&s()},_=Q.useRef(!1),v=()=>{a&&!_.current&&(_.current=!0,c())};return fK(g,v),a?Q.createElement(xa,pK({ref:t,visible:f},i,{motionAppear:o===`show`,onVisibleChanged:e=>{h===e&&v()}}),({className:e,style:t},n)=>Q.createElement(`div`,{ref:n,className:X(`${m}-treenode-motion`,e),style:t},a.map(e=>{let{data:{...t},title:n,key:r,isStart:i,isEnd:a}=e;delete t.children;let o=aK(r,u);return Q.createElement(dK,pK({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):Q.createElement(dK,pK({domRef:t,className:n,style:r},d,{active:l}))});function hK(e=[],t=[]){let n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function gK(e,t,n){let r=e[e.findIndex(e=>e.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function _K(){return _K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_K.apply(this,arguments)}var vK=`RC_TREE_MOTION_${Math.random()}`,yK={key:vK},bK={key:vK,level:0,index:0,pos:`0`,node:yK,nodes:[yK]},xK={parent:null,children:[],pos:bK.pos,data:yK,title:null,key:vK,isStart:[],isEnd:[]};function SK(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function CK(e){let{key:t,pos:n}=e;return QG(t,n)}var wK=Q.forwardRef((e,t)=>{let{prefixCls:n,data:r,selectable:i,checkable:a,expandedKeys:o,selectedKeys:s,checkedKeys:c,loadedKeys:l,loadingKeys:u,halfCheckedKeys:d,keyEntities:f,disabled:p,dragging:m,dragOverNodeKey:h,dropPosition:g,motion:_,height:v,itemHeight:y,virtual:b,scrollWidth:x,focusable:S,activeItem:C,tabIndex:w,onKeyDown:T,onFocus:E,onBlur:D,onMouseDown:O,onActiveChange:k,onListChangeStart:A,onListChangeEnd:j,...M}=e,N=Ja(),P=Q.useRef(null),F=Q.useRef(null);Q.useImperativeHandle(t,()=>({scrollTo:e=>{P.current.scrollTo(e)},getIndentWidth:()=>F.current.offsetWidth}));let[I,L]=Q.useState(o),[R,z]=Q.useState(r),[B,V]=Q.useState(r),[H,U]=Q.useState([]),[W,G]=Q.useState(null),ee=Q.useRef(r);ee.current=r;function te(){let e=ee.current;z(e),V(e),U([]),G(null),j()}_o(()=>{L(o);let e=hK(I,o);if(e.key!==null){if(e.add){let t=R.findIndex(({key:t})=>t===e.key),n=SK(gK(R,r,e.key),b,v,y),i=R.slice();i.splice(t+1,0,xK),V(i),U(n),G(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=SK(gK(r,R,e.key),b,v,y),i=r.slice();i.splice(t+1,0,xK),V(i),U(n),G(`hide`)}}else R!==r&&(z(r),V(r))},[o,r]),Q.useEffect(()=>{m||te()},[m]);let ne=_?B:r,K={expandedKeys:o,selectedKeys:s,loadedKeys:l,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:h,dropPosition:g,keyEntities:f};return Q.createElement(Q.Fragment,null,Q.createElement(`div`,{className:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`,border:0,padding:0}},Q.createElement(`div`,{className:`${n}-indent`},Q.createElement(`div`,{ref:F,className:`${n}-indent-unit`}))),Q.createElement(ms,_K({},M,{data:ne,itemKey:CK,height:v,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:x,prefixCls:`${n}-list`,ref:P,role:`tree`,tabIndex:S!==!1&&!p?w:void 0,"aria-activedescendant":C?Qa(N,C.key):void 0,onKeyDown:T,onFocus:E,onBlur:D,onMouseDown:O,onVisibleChange:e=>{e.every(e=>CK(e)!==vK)&&te()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=QG(i,t);delete n.key,delete n.children;let c=aK(s,K);return Q.createElement(mK,_K({},n,c,{title:r,active:!!C&&i===C.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:_,motionNodes:i===vK?H:null,motionType:W,onMotionStart:A,onMotionEnd:te,treeNodeRequiredProps:K,treeId:N,onMouseMove:()=>{k(null)}}))}))});function TK(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function EK(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function DK(e){return e.split(`-`)}function OK(e,t){let n=[],r=YG(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function kK(e){if(e.parent){let t=DK(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function AK(e){let t=DK(e.pos);return Number(t[t.length-1])===0}function jK(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}
1033=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=c.filter(e=>s[e]?.children?.length),g=YG(s,n.eventKey);if(d<f+p/2){let e=o.findIndex(e=>e.key===g.key),t=o[e<=0?0:e-1].key;g=YG(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e<m&&kK(g);e+=1)g=g.parent,x+=1;let S=t.data,C=g.node,w=!0;return AK(g)&&g.level===0&&d<f+p/2&&a({dragNode:S,dropNode:C,dropPosition:-1})&&g.key===n.eventKey?b=-1:(v.children||[]).length&&h.includes(y)?a({dragNode:S,dropNode:C,dropPosition:0})?b=0:w=!1:x===0?m>-1.5?a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:0})?b=0:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1,{dropPosition:b,dropLevelOffset:x,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:b===0?null:g.parent?.key||null,dropAllowed:w}}function MK(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function NK(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return ba(!1,"`checkedKeys` is not an array or an object"),null;return t}function PK(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=YG(t,e);if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}function FK(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function IK(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function LK(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>
1033!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{let t=i.has(e);s&&!t&&(s=!1),!c&&(t||a.has(e))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(FK(a,i))}}function RK(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(({key:e})=>{let t=a.has(e);r&&!t&&(r=!1),!c&&(t||o.has(e))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(FK(o,a))}}function zK(e,t,n,r){let i=[],a;a=r||IK;let o=new Set(e.filter(e=>{let t=!!YG(n,e);return t||i.push(e),t})),s=new Map,c=0;Object.keys(n).forEach(e=>{let t=n[e],{level:r}=t,i=s.get(r);i||(i=new Set,s.set(r,i)),i.add(t),c=Math.max(c,r)}),ba(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(`, `)}`);let l;return l=t===!0?LK(o,s,c,a):RK(o,t.halfCheckedKeys,s,c,a),l}function BK(){return BK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BK.apply(this,arguments)}var VK=10,HK=class extends Q.Component{static 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:qG,allowDrop:()=>!0,expandAction:!1};static TreeNode=dK;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:$G()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=Q.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener(`mouseup`,this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;e!==void 0&&e!==this.state.activeKey&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener(`dragend`,this.onWindowDragEnd),window.removeEventListener(`mouseup`,this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(e,t){let{prevProps:n}=t,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:o}=t;if(i(`fieldNames`)&&(o=$G(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(ba(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=eK(e.children)),a){r.treeData=a;let e=rK(a,{fieldNames:o});r.keyEntities={[vK]:bK,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?PK(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[vK];let t=[];Object.keys(e).forEach(n=>{let r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else!n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?PK(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=tK(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=MK(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=MK(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=NK(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=NK(e.defaultCheckedKeys)||{}:a&&(o=NK(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=zK(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return i(`loadedKeys`)&&(r.loadedKeys=e.loadedKeys),r}onNodeDragStart=(e,t)=>{let{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:i}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let o=TK(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:OK(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:oK(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:n,keyEntities:r,dragChildrenKeys:i,flattenNodes:a,indent:o}=this.state,{onDragEnter:s,onExpand:c,allowDrop:l,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}let{dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v,dragOverNodeKey:y}=jK(e,this.dragNodeProps,t,o,this.dragStartMousePosition,l,a,r,n,u);if(i.includes(h)||!v){this.resetDragState();return}if(this.delayedDragEnterLogic||={}
1033,Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let i=[...n],a=YG(r,t.eventKey);a&&(a.children||[]).length&&(i=EK(n,t.eventKey)),this.setExpandedKeys(i),c?.(i,{node:oK(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===h&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:y,dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v}),s?.({event:e,node:oK(t),expandedKeys:n})};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:n,flattenNodes:r,keyEntities:i,expandedKeys:a,indent:o}=this.state,{onDragOver:s,allowDrop:c,direction:l}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}=jK(e,this.dragNodeProps,t,o,this.dragStartMousePosition,c,r,i,a,l);!n.includes(f)&&h&&(this.dragNodeProps.eventKey===f&&d===0?(this.state.dropPosition!==null||this.state.dropLevelOffset!==null||this.state.dropTargetKey!==null||this.state.dropContainerKey!==null||this.state.dropTargetPos!==null||this.state.dropAllowed!==!1||this.state.dragOverNodeKey!==null)&&this.resetDragState():(u!==this.state.dropPosition||d!==this.state.dropLevelOffset||f!==this.state.dropTargetKey||p!==this.state.dropContainerKey||m!==this.state.dropTargetPos||h!==this.state.dropAllowed||g!==this.state.dragOverNodeKey)&&this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}),s?.({event:e,node:oK(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey===t.eventKey&&!e.currentTarget.contains(e.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:oK(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:oK(t)}),this.dragNodeProps=null,window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{let{dragChildrenKeys:r,dropPosition:i,dropTargetKey:a,dropTargetPos:o,dropAllowed:s}=this.state;if(!s)return;let{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),a===null)return;let l={...aK(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:YG(this.state.keyEntities,a).node},u=r.includes(a);ba(!u,`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let d=DK(o),f={event:e,node:oK(l),dragNode:this.dragNodeProps?oK(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(r),dropToGap:i!==0,dropPosition:i+Number(d[d.length-1])};n||c?.(f),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;e!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{let{expandedKeys:n,flattenNodes:r}=this.state,{expanded:i,key:a,isLeaf:o}=t;if(o||e.shiftKey||e.metaKey||e.ctrlKey)return;let s=r.filter(e=>e.key===a)[0],c=oK({...aK(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?TK(n,a):EK(n,a)),this.onNodeExpand(e,c)};onNodeClick=(e,t)=>{let{onClick:n,expandAction:r}=this.props;r===`click`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:n,expandAction:r}=this.props;r===`doubleClick`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:r,fieldNames:i}=this.state,{onSelect:a,multiple:o}=this.props,{selected:s}=t,c=t[i.key],l=!s;n=l?o?EK(n,c):[c]:TK(n,c);let u=n.map(e=>{let t=YG(r,e);return t?t.node:null}
1033).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:`select`,selected:l,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{let{keyEntities:r,checkedKeys:i,halfCheckedKeys:a}=this.state,{checkStrictly:o,onCheck:s}=this.props,{key:c}=t,l,u={event:`check`,node:t,checked:n,nativeEvent:e.nativeEvent};if(o){let e=n?EK(i,c):TK(i,c);l={checked:e,halfChecked:TK(a,c)},u.checkedNodes=e.map(e=>YG(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=zK([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=zK(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=YG(r,e);if(!t)return;let{node:n,pos:i}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:i})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(l,u)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:n}=this.state;if(YG(n,t)?.children?.length)return;let r=new Promise((n,r)=>{this.setState(({loadedKeys:i=[],loadingKeys:a=[]})=>{let{loadData:o,onLoad:s}=this.props;return!o||i.includes(t)||a.includes(t)?null:(o(e).then(()=>{let{loadedKeys:r}=this.state,i=EK(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:TK(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:TK(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=VK){let{loadedKeys:e}=this.state;ba(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:EK(e,t)}),n()}r(e)}),{loadingKeys:EK(a,t)})})});return r.catch(()=>{}),r};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onGlobalMouseUp=()=>{this.focusedByMouse=!1};onFocus=(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:r,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!n&&r===null){let e=i.find(e=>a.some(t=>t.key===e));e===void 0?this.onActiveChange(a?.[0]?.key||null):this.onActiveChange(e)}t?.(...e)};onBlur=(...e)=>{let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:o,dropPosition:s,keyEntities:c}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:i||[],halfCheckedKeys:a||[],dragOverNodeKey:o,dropPosition:s,keyEntities:c}};setExpandedKeys=e=>{if(this.props.hasOwnProperty(`expandedKeys`))return;let{treeData:t,fieldNames:n}=this.state,r=tK(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if(ba(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?EK(n,c):TK(n,c),this.setExpandedKeys(n),a?.(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&o){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=tK(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=TK(e,c);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:r}),n?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return e===null?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:n}=this.state,r=t.findIndex(({key:e})=>e===n);r===-1&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;let i=t[r];
1033if(i){let{key:e}=i;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:i,keyEntities:a}=this.state,{onKeyDown:o,checkable:s,selectable:c,disabled:l,loadData:u}=this.props;if(l)return;switch(e.key){case`ArrowUp`:this.offsetActiveKey(-1),e.preventDefault();break;case`ArrowDown`:this.offsetActiveKey(1),e.preventDefault();break;case`Home`:this.onActiveChange(i?.[0]?.key),e.preventDefault();break;case`End`:this.onActiveChange(i?.[i.length-1]?.key),e.preventDefault()}let d=this.getActiveItem();if(d&&d.data){let i=oK({...aK(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!YG(a,t)?.children?.length,l=!iK(d.data.isLeaf,u,o,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,p=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:l&&n.includes(t)?this.onNodeExpand({},i):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case`ArrowRight`:l&&!n.includes(t)?this.onNodeExpand({},i):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case`Enter`:l?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):p&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):p&&(e.preventDefault(),this.onNodeSelect({},i))}}o?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState({...a,...n})}};scrollTo=e=>{e&&typeof e==`object`&&e.autoExpand&&this.setExpandedKeys(EK(this.state.expandedKeys,e.key)),this.listRef.current.scrollTo(e)};render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:m,focusable:h,tabIndex:g=0,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:x,checkable:S,checkStrictly:C,disabled:w,motion:T,loadData:E,filterTreeNode:D,height:O,itemHeight:k,scrollWidth:A,virtual:j,titleRender:M,dropIndicatorRender:N,onContextMenu:P,onScroll:F,direction:I,rootClassName:L,rootStyle:R}=this.props,z=ha(this.props,{aria:!0,data:!0}),B;x&&(B=typeof x==`object`?x:typeof x==`function`?{nodeDraggable:x}:{});let V={styles:f,classNames:p,prefixCls:l,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:B,draggingNodeKey:n,checkable:S,checkStrictly:C,disabled:w,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:I,dropIndicatorRender:N,loadData:E,filterTreeNode:D,titleRender:M,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};return Q.createElement(GG.Provider,{value:V},Q.createElement(`div`,{className:X(l,u,L,{[`${l}-show-line`]:m}),style:R},Q.createElement(wK,BK({ref:this.listRef,prefixCls:l,style:d,data:e,disabled:w,selectable:_,checkable:!!S,motion:T,dragging:n!==null,height:O,itemHeight:k,virtual:j,focusable:h,tabIndex:g,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:P,onScroll:F,scrollWidth:A},this.getTreeNodeRequiredProps(),z))))}};function UK(e,t){let{fieldNames:n}=t,r=Q.useMemo(()=>{let{keyEntities:t}=rK(e,{fieldNames:n});return t},[e,n]);return{getPath:da(e=>{let t=[],n=YG(r,e);for(;n;)t.unshift(n),n=n.parent;return t})}}var WK=HK,GK=Q.createContext({}),KK=(0,Q.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),qK=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=Q.useContext(ma),o=a(`menu`,t),s=X({[`${o}-item-divider-dashed`]:!!r},n);return Q.createElement(YA,{className:s,...i})},JK=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,styles:p,classNames:m}=Q.useContext(KK),{siderCollapsed:h}=Q.useContext(GK),g=!!(h||f),[_,v]=Q.useState(!1);Q.useEffect(()=>
1033{v(!1)},[g]);let y=e=>{let t=n?.[0],i=Q.createElement(`span`,{className:X(`${s}-title-content`,c?m?.itemContent:m?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?p?.itemContent:p?.subMenu?.itemContent},n);return(!r||Q.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?Q.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},b=i;i===void 0?b=c?n:``:i===!1&&(b=``);let x=d===!1?void 0:d,S=x&&x.title!==void 0?x.title:b,C={...x??null,title:S};g?(C.open=x?.open??_,C.onOpenChange=e=>{v(e),x?.onOpenChange?.(e)}):(C.title=null,C.open=!1);let w=Zi(n).length,T=Q.createElement(PA,{..._a(e,[`title`,`icon`,`danger`]),className:X(c?m?.item:m?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?w+1:w)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},$a(r,e=>({className:X(`${s}-item-icon`,c?m?.itemIcon:m?.subMenu?.itemIcon,e.className),style:{...c?p?.itemIcon:p?.subMenu?.itemIcon,...e.style}})),y(f));if(!u&&d!==!1){let e=x&&x.placement?x.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:X(t,e?.root)}),r=fo(x?.classNames)?e=>{let t=x.classNames(e);return n(t)}:n(x?.classNames);T=Q.createElement(me,{...C,placement:e,classNames:r},T)}return T},YK=Q.createContext(null),XK=Q.forwardRef((e,t)=>{let{children:n,...r}=e,i=Q.useContext(YK),a=Q.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=ro(n),s=Ka(t,o?Xa(n):null);return Q.createElement(YK.Provider,{value:a},Q.createElement(ve,{space:!0},o?Q.cloneElement(n,{ref:s}):n))}),ZK=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Z(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,
1034        > ${t}-item-active,
1035        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},QK=({componentCls:e,menuArrowOffset:t,calc:n}
vendor: 16,326 bytes, lines 1035-1045
1035)=>({[`${e}-rtl`]:{direction:`rtl`},[`${e}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${e}-rtl${e}-vertical,
1036    ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Z(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Z(t)})`}}}}),$K=e=>Ui(e),eq=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...$K(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...$K(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:{...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,pointerEvents:`none`,borderBottom:`${Z(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Z(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Z(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}},tq=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=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:Z(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
1037            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Z(n)},[`${t}-item-group-list ${t}-submenu-title,
1038            ${t}-submenu-title`]:{paddingInlineEnd:u}}},nq=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,padding:s,paddingXL:c,itemMarginInline:l,fontSizeLG:u,motionDurationSlow:d,paddingXS:f,boxShadowSecondary:p,collapsedWidth:m,collapsedIconSize:h}=e,g={height:r,lineHeight:Z(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...tq(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...tq(e),boxShadow:p}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Z(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-color ${d}`].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`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:g}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${d}`).join(`,`),[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:`center`,width:`100%`}}},[`> ${t}-item,
1039          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
1040          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
1041          > ${t}-submenu > ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,justifyContent:`flex-start`,insetInlineStart:0,paddingInline:`calc(50% - ${Z(e.calc(h).div(2).equal())} - ${Z(l)})`,textOverflow:`clip`,[`
1042            ${t}-submenu-arrow,
1043            ${t}-submenu-expand-icon
1044          `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:Z(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},[`${t}-item-extra`]:{paddingInlineStart:s},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...Wa,paddingInline:f}}}]},rq=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background-color ${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:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...aa()},[`&${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`,cursor:`not-allowed`,pointerEvents:`none`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},iq=e=>{let{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`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-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-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${Z(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Z(o)})`}}}}},aq=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v,iconSize:y,iconMarginInlineEnd:b}=e,x=[`> ${t}-typography-ellipsis-single-line`,`> ${n}-item-label > ${t}-typography-ellipsis-single-line`].join(`,`);return[{"":{[n]:{...ua(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...Gi(e),...ua(),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:`${Z(s)} ${Z(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`,minWidth:0},[`${n}-item-label`]:{flex:`auto`,minWidth:0,...Wa},[x]:{display:`inline`,verticalAlign:`unset`},[`${n}-item-extra`]:{flex:`none`,marginInlineStart:`auto`,paddingInlineStart:e.padding}},[`${n}-item-icon + ${n}-title-content-with-extra`]:{width:`calc(100% - ${Z(e.calc(y).add(b??0).equal())})`},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}},...rq(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Z(e.calc(r).mul(2).equal())} ${Z(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,boxShadow:`none`,transformOrigin:`0 0`,[`&${n}-submenu`]:{background:`transparent`},"&::before":{position:`absolute`,inset:0,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`},[`> ${n}`]:{borderRadius:f,...rq(e),...iq(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...iq(e),[`&-inline-collapsed ${n}-submenu-arrow,
1045        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Z(h)})`},"&::after":{transform:`rotate(45deg) translateX(${Z(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Z(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Z(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Z(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},oq=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new ja(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new ja(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},sq=(e,t=e,n=!0)=>Da(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=na(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=na(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[aq(x),ZK(x),nq(x),eq(x,`light`),eq(S,`dark`),QK(x),LO(x),ls(x,`slide-up`),ls(x,`slide-down`),se(x,`zoom-big`)]},oq,{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`],[`
1045colorDangerItemBgSelected`,`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),cq=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=Q.useContext(KK),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=eA(),f;if(!n)f=s&&!d.length&&r&&typeof r==`string`?Q.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):Q.createElement(`span`,{className:`${o}-title-content`},r);else{let e=Q.isValidElement(r)&&r.type===`span`;f=Q.createElement(Q.Fragment,null,$a(n,e=>({className:X(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...u?.itemIcon}})),e?r:Q.createElement(`span`,{className:`${o}-title-content`},r))}let p=Q.useMemo(()=>({...a,firstLevel:!1}),[a]),[m]=qa(`Menu`);return Q.createElement(KK.Provider,{value:p},Q.createElement(JA,{..._a(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:X(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:m,...e.popupStyle,...u?.popup?.root}}))};function lq(e){return e===null||e===!1}var uq={item:JK,submenu:cq,divider:qK},dq=(0,Q.forwardRef)((e,t)=>{let n=Q.useContext(YK),r=n||{},{prefixCls:i,className:a,style:o,theme:s=`light`,expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:u,inlineCollapsed:d,siderCollapsed:f,rootClassName:p,mode:m,selectable:h,onClick:g,overflowedIndicatorPopupClassName:_,classNames:v,styles:y,...b}=e,{menu:x}=Q.useContext(ma),{getPrefixCls:S,getPopupContainer:C,direction:w,className:T,style:E,classNames:D,styles:O}=ea(`menu`),k=S(),A=_a(b,[`collapsedWidth`]);r.validator?.({mode:m});let j=da((...e)=>{g?.(...e),r.onClick?.()}),M=r.mode||m,N=h??r.selectable,P=d??f,F={...e,mode:M,inlineCollapsed:P,selectable:N,theme:s},I=fa(E),L=fa(o),[R,z]=ho([D,v],[O,I,y,L],{props:F},{popup:{_default:`root`},subMenu:{_default:`item`}}),B={horizontal:{motionName:`${k}-slide-up`},inline:oe(k),other:{motionName:`${k}-zoom-big`}},V=S(`menu`,i||r.prefixCls),H=no(V),[U,W]=sq(V,H,!n),G=X(`${V}-${s}`,T,a),ee=Q.useMemo(()=>{if(fo(c)||lq(c))return c||null;if(fo(r.expandIcon)||lq(r.expandIcon))return r.expandIcon||null;if(fo(x?.expandIcon)||lq(x?.expandIcon))return x?.expandIcon||null;let e=c??r?.expandIcon??x?.expandIcon;return $a(e,{className:X(`${V}-submenu-expand-icon`,Q.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,x?.expandIcon,V]),te=Q.useMemo(()=>({prefixCls:V,inlineCollapsed:P||!1,direction:w,firstLevel:!0,theme:s,mode:M,disableMenuItemTitleTooltip:l,tooltip:u,classNames:R,styles:z}),[V,P,w,l,s,M,R,z,u]);return Q.createElement(YK.Provider,{value:null},Q.createElement(KK.Provider,{value:te},Q.createElement(ij,{getPopupContainer:C,overflowedIndicator:Q.createElement(dk,null),overflowedIndicatorPopupClassName:X(V,`${V}-${s}`,_),classNames:{list:R.list,listTitle:R.itemTitle},styles:{list:z.list,listTitle:z.itemTitle},mode:M,selectable:N,onClick:j,...A,inlineCollapsed:P,style:z.root,className:G,prefixCls:V,direction:w,defaultMotions:B,expandIcon:ee,ref:t,rootClassName:X(p,U,r.rootClassName,W,H,R.root),_internalComponents:uq})))}),fq=(0,Q.forwardRef)((e,t)=>{let n=(0,Q.useRef)(null),r=Q.useContext(GK);return(0,Q.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),Q.createElement(dq,{ref:n,...e,...r})});fq.Item=JK,fq.SubMenu=cq,fq.Divider=qK,fq.ItemGroup=QA;var pq=e=>{let{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}}}}}},mq=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h,controlHeightLG: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:`calc(100vh - ${Z(e.calc(g).mul(2.5).equal())})`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft,
1046          &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft,
1047          &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom,
1048          &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom,
1049          &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight,
1050          &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Bo},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft,
1051          &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft,
1052          &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top,
1053          &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top,
1054          &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight,
1055          &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Fo},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft,
1056          &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom,
1057          &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:As},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft,
1058          &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top,
1059          &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Io},[`&${o}-slide-right-enter${o}-slide-right-enter-active${t}-placement-right,
1060          &${o}-slide-right-appear${o}-slide-right-appear-active${t}-placement-right,
1061          &${o}-slide-right-enter${o}-slide-right-enter-active${t}-placement-rightTop,
1062          &${o}-slide-right-appear${o}-slide-right-appear-active${t}-placement-rightTop,
1063          &${o}-slide-right-enter${o}-slide-right-enter-active${t}-placement-rightBottom,
1064          &${o}-slide-right-appear${o}-slide-right-appear-active${t}-placement-rightBottom`]:{animationName:Ro},[`&${o}-slide-left-enter${o}-slide-left-enter-active${t}-placement-left,
1065          &${o}-slide-left-appear${o}-slide-left-appear-active${t}-placement-left,
1066          &${o}-slide-left-enter${o}-slide-left-enter-active${t}-placement-leftTop,
1067          &${o}-slide-left-appear${o}-slide-left-appear-active${t}-placement-leftTop,
1068          &${o}-slide-left-enter${o}-slide-left-enter-active${t}-placement-leftBottom,
1069          &${o}-slide-left-appear${o}-slide-left-appear-active${t}-placement-leftBottom`]:{animationName:jo},[`&${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-right,
1070          &${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-rightTop,
1071          &${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:Eo},[`&${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-left,
1072          &${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftTop,
1073          &${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:Po}}},_e(e,h),{[`${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`]:{...Gi(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...uo(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${Z(l)} ${Z(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${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, > ${n}-item-label > a`]:{color:`inherit`,transition:`all ${c}`,"&: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`]:{display:`flex`,margin:0,padding:`${Z(l)} ${Z(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...uo(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${Z(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.colorIcon,fontSize:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${Z(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[ls(e,`slide-up`),ls(e,`slide-down`),ls(e,`slide-left`),ls(e,`slide-right`),Co(e,`move-up`),Co(e,`move-down`),se(e,`zoom-big`)]]},hq=Da(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=na(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[mq(a),pq(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...ge({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Se(e)}),{resetStyle:!1}),gq=Q.forwardRef((e,t)=>
1073{let{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:c,popupRender:l,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:m,onOpenChange:h,mouseEnterDelay:g=.15,mouseLeaveDelay:_=.1,autoAdjustOverflow:v=!0,placement:y=``,transitionName:b,classNames:x,styles:S,destroyPopupOnHide:C,destroyOnHidden:w}=e,{getPrefixCls:T,direction:E,getPopupContainer:D,className:O,style:k,classNames:A,styles:j}=ea(`dropdown`),M={...e,mouseEnterDelay:g,mouseLeaveDelay:_,autoAdjustOverflow:v},N=fa(k),P=fa(p),[F,I]=ho([A,x],[j,N,S,P],{props:M}),L={...I.root},R=l||c;za(`Dropdown`);let z=Q.useMemo(()=>{let e=T();return b===void 0?y.startsWith(`top`)?`${e}-slide-down`:y.startsWith(`left`)?`${e}-slide-right`:y.startsWith(`right`)?`${e}-slide-left`:`${e}-slide-up`:b},[T,y,b]),B=Q.useMemo(()=>y?y.includes(`Center`)?y.slice(0,y.indexOf(`Center`)):y:E===`rtl`?`bottomRight`:`bottomLeft`,[y,E]),V=T(`dropdown`,i),H=no(V),[U,W]=hq(V,H),[,G]=Bi(),ee=Q.Children.only(oa(a)?Q.createElement(`span`,null,a):a),te=Ka(t,Xa(ee)),ne=$a(ee,{className:X(`${V}-trigger`,{[`${V}-rtl`]:E===`rtl`},ee.props.className),disabled:ee.props.disabled??s,ref:te}),K=s?[]:o,q=!!K?.includes(`contextMenu`),[re,J]=wa(!1,m),ie=da(e=>{h?.(e,{source:`trigger`}),J(e)}),ae=X(d,f,U,W,H,O,F.root,{[`${V}-rtl`]:E===`rtl`}),oe=Ee({arrowPointAtCenter:Ki(r)&&r.pointAtCenter,autoAdjustOverflow:v,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),se=da(()=>{n?.selectable&&n?.multiple||(h?.(!1,{source:`menu`}),J(!1))}),ce=()=>{let e=_a(F,[`root`]),t=_a(I,[`root`]),r;return n?.items&&(r=Q.createElement(fq,{...n,classNames:{...e,subMenu:{...e}},styles:{...t,subMenu:{...t}}})),R&&(r=R(r)),Ga(r)?r=Q.createElement(`span`,null,r):Q.isValidElement(r)||(r=Q.createElement(Q.Fragment,null,r)),Q.createElement(XK,{prefixCls:`${V}-menu`,rootClassName:X(W,H),expandIcon:Q.createElement(`span`,{className:`${V}-menu-submenu-arrow`},E===`rtl`?Q.createElement(RM,{className:`${V}-menu-submenu-arrow-icon`}):Q.createElement(VO,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:se,validator:({mode:e})=>{}},r)},[le,ue]=qa(`Dropdown`,L.zIndex),de=Q.createElement(Uk,{alignPoint:q,..._a(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:g,mouseLeaveDelay:_,visible:re,builtinPlacements:oe,arrow:!!r,overlayClassName:ae,prefixCls:V,getPopupContainer:u||D,transitionName:z,trigger:K,overlay:ce,placement:B,onVisibleChange:ie,overlayStyle:{...L,zIndex:le},autoDestroy:w??C},ne);return le&&(de=Q.createElement(Ba.Provider,{value:ue},de)),de}),_q=No(gq,`align`,void 0,`dropdown`,e=>e);gq._InternalPanelDoNotUseOrYouWillBeFired=e=>Q.createElement(_q,{...e},Q.createElement(`span`,null));var vq=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=Q.useContext(ma),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:v,onOpenChange:y,placement:b,getPopupContainer:x,href:S,icon:C=Q.createElement(dk,null),title:w,buttonsRender:T=e=>e,mouseEnterDelay:E,mouseLeaveDelay:D,overlayClassName:O,overlayStyle:k,destroyOnHidden:A,destroyPopupOnHide:j,dropdownRender:M,popupRender:N,...P}=e,F=n(`dropdown`,i),I=`${F}-button`,L={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:y,getPopupContainer:x||t,mouseEnterDelay:E,mouseLeaveDelay:D,classNames:{root:O},styles:{root:k},destroyOnHidden:A,popupRender:N||M},{compactSize:R,compactItemClassnames:z}=Fa(F,r),B=X(I,z,f);`destroyPopupOnHide`in e&&(L.destroyPopupOnHide=j),`open`in e&&(L.open=v),L.placement=`placement`in e?b:r===`rtl`?`bottomLeft`:`bottomRight`;let[V,H]=T([Q.createElement($e,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:S,title:w},d),Q.createElement($e,{type:a,danger:o,icon:C})]);return Q.createElement(Ho.Compact,{className:B,size:R,block:!0,...P},V,Q.createElement(gq,{...L},H))};vq.__ANT_BUTTON=!0;var yq=gq;yq.Button=vq;var bq={},xq=`SELECT_ALL`,Sq=`SELECT_INVERT`,Cq=`SELECT_NONE`,wq=[],Tq=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),Ki(t)&&e in t&&Tq(e,t[e],n)}),n),Eq=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:_,hideSelectAll:v,checkStrictly:y=!0}=t||{},{prefixCls:b,data:x,pageData:S,getRecordByKey:C,getRowKey:w,expandType:T,childrenColumnName:E,locale:D,getPopupContainer:O}=e,k=za(`Table`),[A,j]=MO(e=>e),[M,N]=wa(i||wq,r),P=M??wq,F=Q.useRef(new Map),I=(0,Q.useCallback)(e=>{if(n){let t=new Map;
1073e.forEach(e=>{let n=C(e);!n&&F.current.has(e)&&(n=F.current.get(e)),t.set(e,n)}),F.current=t}},[C,n]);Q.useEffect(()=>{I(P)},[P,I]);let L=(0,Q.useMemo)(()=>Tq(E,S),[E,S]),{keyEntities:R}=(0,Q.useMemo)(()=>{if(y)return{keyEntities:null};let e=x;if(n){let t=new Set(L.map(w)),n=Array.from(F.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(ia(e),ia(n))}return rK(e,{externalGetKey:w,childrenPropName:E})},[x,w,y,E,n,L]),z=(0,Q.useMemo)(()=>{let e=new Map;return L.forEach((t,n)=>{let r=w(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[L,w,a]),B=(0,Q.useCallback)(e=>{let t=w(e),n;return n=z.has(t)?z.get(w(e)):a?a(e):void 0,!!n?.disabled},[z,w]),[V,H]=(0,Q.useMemo)(()=>{if(y)return[P,[]];let{checkedKeys:e,halfCheckedKeys:t}=zK(P,!0,R,B);return[e||[],t]},[P,y,R,B]),U=(0,Q.useMemo)(()=>{let e=m===`radio`?V.slice(0,1):V;return new Set(e)},[V,m]),W=(0,Q.useMemo)(()=>m===`radio`?new Set:new Set(H),[H,m]);Q.useEffect(()=>{t||N(wq)},[!!t]);let G=(0,Q.useCallback)((e,t)=>{let r,i;I(e),n?(r=e,i=e.map(e=>F.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=C(e);t!==void 0&&(r.push(e),i.push(t))})),N(r),s?.(r,i,{type:t})},[N,C,s,n]),ee=(0,Q.useCallback)((e,t,n,r)=>{if(c){let i=n.map(C);c(C(e),t,i,r)}G(n,`single`)},[c,C,G]),te=(0,Q.useMemo)(()=>!h||v?null:(h===!0?[xq,Sq,Cq]:h).map(e=>{let t;return t=e===`SELECT_ALL`?{key:`all`,text:D.selectionAll,onSelect(){G(x.reduce((e,t,n)=>{let r=w(t,n);return(!B(t)||U.has(r))&&e.push(r),e},[]),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:D.selectInvert,onSelect(){let e=new Set(U);S.forEach((t,n)=>{let r=w(t,n);z.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(k.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),G(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:D.selectNone,onSelect(){d?.(),G(Array.from(U).filter(e=>z.get(e)?.disabled),`none`)}}:e,{...t,onSelect:e=>{t.onSelect?.(e),j(null)}}}),[h,v,D.selectionAll,D.selectInvert,D.selectNone,z,B,U,x,S,w,u,G]);return[(0,Q.useCallback)(e=>{if(!t)return e.filter(e=>e!==bq);let n=ia(e),r=new Set(U),i=L.reduce((e,t,n)=>{let r=w(t,n);return z.get(r).disabled||e.push(r),e},[]),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(C),e.map(C)),G(t,`all`),j(null)},u,d;if(m!==`radio`){let e;if(te){let t={getPopupContainer:O,items:te.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=Q.createElement(`div`,{className:`${b}-selection-extra`},Q.createElement(yq,{menu:t,getPopupContainer:O},Q.createElement(`span`,null,Q.createElement(Cs,null))))}let t=L.reduce((e,t,n)=>{let i=w(t,n),a=z.get(i)||{},o={checked:r.has(i),...a};return o.disabled&&e.push(o),e},[]),n=!!t.length&&t.length===L.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:h}=p;d=Q.createElement(uF,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!L.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:h??(L.length===0||n),skipGroup:!0}),u=!v&&Q.createElement(`div`,{className:`${b}-selection`},d,e)}let x;x=m===`radio`?(e,t,n)=>{let i=w(t,n),a=r.has(i),o=z.get(i),s=`Select row ${n+1}`;return{node:Q.createElement(KR,{"aria-label":s,...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||ee(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=w(t,n),o=r.has(a),s=W.has(a),c=z.get(a),l;l=T===`nest`?s:c?.indeterminate??s;let u=o?`Row ${n+1} selected`:`Select row ${n+1}`;return{node:Q.createElement(uF,{"aria-label":u,...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=U.size>0&&i.some(e=>U.has(e));if(n&&y&&l){let e=A(s,i,r),t=Array.from(r);f?.(!o,t.map(C),e.map(C)),G(t,`multiple`)}else{let e=V;if(y){let n=o?TK(e,a):EK(e,a);ee(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=zK([].concat(ia(e),[a]),!0,R,B),i=n;if(o){let e=new Set(n);e.delete(a),i=zK(Array.from(e),{checked:!1,halfCheckedKeys:r},R,B).checkedKeys}ee(a,!o,i,t)}}j(o?null:s),c?.onChange?.(e)}}),checked:o}};let S=(e,t,n)=>{let{node:r,checked:i}
1073=x(e,t,n);return _?_(i,t,n,r):r};if(!n.includes(bq)){if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,bq].concat(ia(t))}else n=[bq].concat(ia(n))}let E=n.indexOf(bq);n=n.filter((e,t)=>e!==bq||t===E);let D=n[E-1],k=n[E+1],M=g;M===void 0&&(k?.fixed===void 0?D?.fixed!==void 0&&(M=D.fixed):M=k.fixed),M&&D&&D.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&D.fixed===void 0&&(D.fixed=M);let N=X(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:h&&m===`checkbox`}),P={fixed:M,width:p,className:`${b}-selection-column`,title:t?.columnTitle?fo(t.columnTitle)?t.columnTitle(d):t.columnTitle:u,render:S,onCell:t.onCell,align:t.align,[WW]:{className:N}};return n.map(e=>e===bq?P:e)},[w,L,t,V,U,W,p,te,T,z,f,ee,B]),U]};function Dq(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}var Oq=e=>{if(typeof window>`u`)return 0;let t=0;return ra(e)?t=e.pageYOffset:Wi(e)?t=e.documentElement.scrollTop:(pa(e)||e)&&(t=e.scrollTop),e&&!ra(e)&&!Ji(t)&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t},kq=(e,t={})=>{let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=Oq(a),s=e=>{ra(a)?a.scrollTo(window.pageXOffset,e):Wi(a)?a.documentElement.scrollTop=e:a.scrollTop=e};if(i<=0)return s(e),fo(r)&&r(),()=>{};let c=Date.now(),l,u=()=>{let t=Date.now()-c,n=Dq(t>i?i:t,o,e,i);s(n),t<i?l=Ra(u):fo(r)&&r()};return l=Ra(u),()=>{Ra.cancel(l)}},Aq={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:`页码`},jq=[10,20,50,100],Mq=e=>{let{pageSizeOptions:t=jq,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=Q.useState(``),m=Q.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},v=e=>{f!==``&&(e.keyCode===Oo.ENTER||e.type===`click`)&&(p(``),o?.(m))},y=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),b=`${s}-options`;if(!u&&!o)return null;let x=null,S=null,C=null;return u&&d&&(x=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${b}-size-changer`,options:y().map(e=>({label:h(e),value:e}))})),o&&(a&&(C=typeof a==`boolean`?Q.createElement(`button`,{type:`button`,onClick:v,onKeyUp:v,disabled:c,className:`${b}-quick-jumper-button`},n.jump_to_confirm):Q.createElement(`span`,{onClick:v,onKeyUp:v},a)),S=Q.createElement(`div`,{className:`${b}-quick-jumper`},n.jump_to,Q.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:v,onBlur:_,"aria-label":n.page}),n.page,C)),Q.createElement(`li`,{className:b},x,S)},Nq=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=X(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,Q.createElement(`a`,{rel:`nofollow`},n));return m?Q.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function Pq(){return Pq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pq.apply(this,arguments)}var Fq=(e,t,n)=>n;function Iq(){}function Lq(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Rq(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var zq=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=Iq,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:v=Iq,locale:y=Aq,style:b,totalBoundaryShowSizeChanger:x=50,disabled:S,simple:C,showTotal:w,showSizeChanger:T=c>x,sizeChangerRender:E,pageSizeOptions:D,itemRender:O=Fq,jumpPrevIcon:k,jumpNextIcon:A,prevIcon:j,nextIcon:M}=e,N=Q.useRef(null),[P,F]=wa(u,l),[I,L]=wa(s,o),R=Math.max(1,Math.min(I,Rq(void 0,P,c))),[z,B]=Q.useState(R);(0,Q.useEffect)(()=>{B(R)},[R]),`current`in e;let V=Math.max(1,R-(g?3:5)),H=Math.min(Rq(void 0,P,c),R+(g?3:5));function U(n,r){let i=n||Q.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=Q.createElement(n,e)),i}function W(e){let t=e.target.value,n=Rq(void 0,P,c),r;return r=t===``?t:Number.isNaN(Number(t))?z:t>=n?n:Number(t),r}function G(e){return Lq(e)&&e!==R&&Lq(c)&&c>0}let ee=c>P&&h;function te(e){(e.keyCode===Oo.UP||e.keyCode===Oo.DOWN)&&e.preventDefault()}function ne(e){let t=W(e);switch(t!==z&&B(t),e.keyCode){case Oo.ENTER:re(t);break;case Oo.UP:re(t-1);break;case Oo.DOWN:re(t+1)}}function K(e){re(W(e))}function q(e){let t=Rq(e,P,c),n=R>t&&t!==0?t:R;F(e),B(n),v?.(R,e),L(n),d?.(n,e)}function re(e){if(G(e)&&!S){let t=Rq(void 0,P,c),n=e;return e>t?n=t:e<1&&(n=1),n!==z&&B(n),L(n),d?.(n,P),n}return R}let J=R>1,ie=R<Rq(void 0,P,c);function ae(){J&&re(R-1)}function oe(){ie&&re(R+1)}function se(){re(V)}function ce(){re(H)}function le(e,t,...n){(e.key===`Enter`||e.charCode===Oo.ENTER||e.keyCode===Oo.ENTER)&&t(...n)}function ue(e){le(e,ae)}function de(e){le(e,oe)}function fe(e){le(e,se)}function pe(e){le(e,ce)}function me(e){let t=O(e,`prev`,U(j,`prev page`));return Q.isValidElement(t)?Q.cloneElement(t,{disabled:!J}):t}function he(e){let t=O(e,`next`,U(M,`next page`));return Q.isValidElement(t)?Q.cloneElement(t,{disabled:!ie}):t}function ge(e){(e.type===`click`||e.keyCode===Oo.ENTER)&&re(z)}let _e=null,ve=ha(e,{aria:!0,data:!0}),ye=w&&Q.createElement(`li`,{className:`${t}-total-text`},w(c,[c===0?0:(R-1)*P+1,R*P>c?c:R*P])),be=null,xe=Rq(void 0,P,c);if(f&&c<=P)return null;let Se=[],Ce={rootPrefixCls:t,onClick:re,onKeyPress:le,showTitle:_,itemRender:O,page:-1,className:i?.item,style:a?.item},we=R-1>0?R-1:0,Te=R+1<xe?R+1:xe,Ee=h&&h.goButton,De=typeof C==`object`?C.readOnly:!C,Oe=Ee,ke=null;
1073C&&(Ee&&(Oe=typeof Ee==`boolean`?Q.createElement(`button`,{type:`button`,onClick:ge,onKeyUp:ge},y.jump_to_confirm):Q.createElement(`span`,{onClick:ge,onKeyUp:ge},Ee),Oe=Q.createElement(`li`,{title:_?`${y.jump_to}${R}/${xe}`:null,className:`${t}-simple-pager`},Oe)),ke=Q.createElement(`li`,{title:_?`${R}/${xe}`:null,className:X(`${t}-simple-pager`,i?.item),style:a?.item},De?z:Q.createElement(`input`,{type:`text`,"aria-label":y.jump_to,value:z,disabled:S,onKeyDown:te,onKeyUp:ne,onChange:ne,onBlur:K,size:3}),Q.createElement(`span`,{className:`${t}-slash`},`/`),xe));let Ae=g?1:2;if(xe<=3+Ae*2){xe||Se.push(Q.createElement(Nq,Pq({},Ce,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=xe;e+=1)Se.push(Q.createElement(Nq,Pq({},Ce,{key:e,page:e,active:R===e})))}else{let e=g?y.prev_3:y.prev_5,n=g?y.next_3:y.next_5,r=O(V,`jump-prev`,U(k,`prev page`)),i=O(H,`jump-next`,U(A,`next page`));m&&(_e=r?Q.createElement(`li`,{title:_?e:null,key:`prev`,onClick:se,tabIndex:0,onKeyDown:fe,className:X(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!k})},r):null,be=i?Q.createElement(`li`,{title:_?n:null,key:`next`,onClick:ce,tabIndex:0,onKeyDown:pe,className:X(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!A})},i):null);let a=Math.max(1,R-Ae),o=Math.min(R+Ae,xe);R-1<=Ae&&(o=1+Ae*2),xe-R<=Ae&&(a=xe-Ae*2);let s=!!_e&&R-1>=Ae*2&&R!==3,c=!!be&&xe-R>=Ae*2&&R!==xe-2;!g&&s&&o!==xe&&(a+=1),!g&&c&&a!==1&&--o;for(let e=a;e<=o;e+=1)Se.push(Q.createElement(Nq,Pq({},Ce,{key:e,page:e,active:R===e})));if(s&&(Se[0]=Q.cloneElement(Se[0],{className:X(`${t}-item-after-jump-prev`,Se[0].props.className)}),Se.unshift(_e)),c){let e=Se[Se.length-1];Se[Se.length-1]=Q.cloneElement(e,{className:X(`${t}-item-before-jump-next`,e.props.className)}),Se.push(be)}a!==1&&Se.unshift(Q.createElement(Nq,Pq({},Ce,{key:1,page:1}))),o!==xe&&Se.push(Q.createElement(Nq,Pq({},Ce,{key:xe,page:xe})))}let je=me(we);if(je){let e=!J||!xe;je=Q.createElement(`li`,{title:_?y.prev_page:null,onClick:ae,tabIndex:e?null:0,onKeyDown:ue,className:X(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},je)}let Me=he(Te);if(Me){let e,n;C?(e=!ie,n=J?0:null):(e=!ie||!xe,n=e?null:0),Me=Q.createElement(`li`,{title:_?y.next_page:null,onClick:oe,tabIndex:n,onKeyDown:de,className:X(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Me)}let Ne=X(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:C,[`${t}-disabled`]:S});return Q.createElement(`ul`,Pq({className:Ne,style:b,ref:N},ve),ye,je,C?ke:Se,Me,Q.createElement(Mq,{locale:y,rootPrefixCls:t,disabled:S,selectPrefixCls:n,changeSize:q,pageSize:P,pageSizeOptions:D,quickGo:ee?re:null,goButton:Oe,showSizeChanger:T,sizeChangerRender:E}))},Bq=e=>{let{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`,backgroundColor:`transparent`,"&: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}}}}},Vq=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...os(e),width:e.paginationMiniQuickJumperInputWidth}}}}},Hq=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...fs(e)}}}}},Uq=e=>{let{componentCls:t,antCls:n}=e,[,r]=go(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`to
vendor: 10,987 bytes, lines 1073-1082
1073p`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${Z(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${Z(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:`${Z(e.inputOutlineOffset)} 0 ${Z(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Wq=e=>{let{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:`transparent`,"&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...Os(e)}}},[`&${t}-borderless`]:{[n]:{background:`transparent`,border:`none`,"&:focus":{outline:`none`,boxShadow:`none`},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${Z(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`}}}}},Gq=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,a]=go(i,`pagination`);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`,inset:0,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,margin:`auto`,color:e.colorTextDisabled,textAlign:`center`,opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
1074    ${t}-prev,
1075    ${t}-jump-prev,
1076    ${t}-jump-next
1077    `]:{marginInlineEnd:a(`item-spacing-actual`)},[`
1078    ${t}-prev,
1079    ${t}-next,
1080    ${t}-jump-prev,
1081    ${t}-jump-next
1082    `]:{display:`inline-block`,minWidth:a(`item-size-actual`),height:a(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:a(`item-size-actual`),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:`${Z(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, &-size-changer${t}-options-size-changer-select`]:{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:a(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:a(`item-size-actual`),verticalAlign:`baseline`,input:{...gs(e),...Xo(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Os(e)},width:e.quickJumperInputWidth,height:a(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:a(`item-spacing-actual`),marginInlineEnd:a(`item-spacing-actual`)}}}}},Kq=e=>{let{componentCls:t,antCls:n}=e,[,r]=go(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:Z(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${Z(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${Z(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.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},qq=e=>{let{componentCls:t,antCls:n}=e,[r,i]=go(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:Z(e.itemSize),[r(`item-spacing-actual`)]:Z(e.marginXS),"&-small":{[r(`item-size-actual`)]:Z(e.itemSizeSM),[r(`item-spacing-actual`)]:Z(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:Z(e.itemSizeLG),[r(`item-spacing-actual`)]:Z(e.marginSM)},...Gi(e),display:`flex`,alignItems:`center`,"&-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:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:Z(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...Kq(e),...Gq(e),...Uq(e),...Wq(e),...Vq(e),...Hq(e),...Bq(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`}}},Jq=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...uo(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Ui(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ui(e)}}}},Yq=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...wo(e)}),Xq=e=>na(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),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`},Es(e)),Zq=Da(`Pagination`,e=>{let t=Xq(e);return[qq(t),Jq(t)]},Yq),Qq=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &: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`]:{[`${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:`${Z(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}}}}},$q=po([`Pagination`,`bordered`],e=>Qq(Xq(e)),Yq);function eJ(e){return(0,Q.useMemo)(()=>typeof e==`boolean`?[e,{}]:Ki(e)?[!0,e]:[void 0,void 0],[e])}var tJ=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,components:d,selectComponentClass:f,pageSizeOptions:p,styles:m,classNames:h,...g}=e,{xs:_}=fR(l),[,v]=Bi(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=ea(`pagination`),D=y(`pagination`,n),[O,k]=Zq(D),A=Ca(s),j=A===`small`||!!(_&&!A&&l),[M,N]=is(`input`),P={...e,size:A},F=fa(C),I=fa(o),[L,R]=ho([w,h],[T,F,m,I],{props:P}),[z]=lt(`Pagination`,Mn),B={...z,...c},[V,H]=eJ(u),[U,W]=eJ(x),G=V??U,ee=H??W,te=f||vs,ne=Q.useMemo(()=>p?p.map(Number):void 0,[p]),K=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,s=d?.sizeChanger;if(s)return Q.createElement(s,{value:n,onChange:r,disabled:!!t,className:a});let{className:c,onChange:l}=ee||{},u=o.find(e=>String(e.value)===String(n))?.value;return Q.createElement(te,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...ee,value:u,onChange:(e,t)=>
1082{r?.(e),l?.(e,t)},size:A,className:X(`${D}-options-size-changer-select`,a,c)})},q=Q.useMemo(()=>{let e=Q.createElement(`span`,{className:`${D}-item-ellipsis`},Q.createElement(dk,null));return{prevIcon:Q.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?Q.createElement(VO,null):Q.createElement(RM,null)),nextIcon:Q.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?Q.createElement(RM,null):Q.createElement(VO,null)),jumpPrevIcon:Q.createElement(`a`,{className:`${D}-item-link`},Q.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?Q.createElement(mM,{className:`${D}-item-link-icon`}):Q.createElement(dM,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:Q.createElement(`a`,{className:`${D}-item-link`},Q.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?Q.createElement(dM,{className:`${D}-item-link-icon`}):Q.createElement(mM,{className:`${D}-item-link-icon`}),e))}},[b,D]),re=y(`select`,r),J=X({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-${M}`]:N&&M!==`outlined`,[`${D}-mini`]:j,[`${D}-rtl`]:b===`rtl`,[`${D}-bordered`]:v.wireframe},S,i,a,L.root,O,k),ie={...R.root};return Q.createElement(Q.Fragment,null,v.wireframe&&Q.createElement($q,{prefixCls:D}),Q.createElement(zq,{...q,...g,styles:R,classNames:L,style:ie,prefixCls:D,selectPrefixCls:re,className:J,locale:B,pageSizeOptions:ne,showSizeChanger:G,totalBoundaryShowSizeChanger:g.totalBoundaryShowSizeChanger??E,sizeChangerRender:K}))};function nJ(e){return t=>{let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return Q.createElement(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},className:X(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}var rJ=e=>{let t={};for(let[n,r]of Object.entries(e))ta(r)&&(t[n]=r);return t},iJ=(e,t)=>Q.useMemo(()=>({...e,filters:rJ(t)}),[e,t]);function aJ(e){return(t,n)=>{let r=t.querySelector(`.${e}-container`),i=n;if(r){let e=getComputedStyle(r),t=Number.parseInt(e.borderLeftWidth,10),a=Number.parseInt(e.borderRightWidth,10);i=n-t-a}return i}}var oJ=(e,t)=>Q.useMemo(()=>{if(!t)return e;let n=e=>e.map(e=>{if(e===bq||e===qU)return e;if(`children`in e&&Array.isArray(e.children))return{...In(t,e),children:n(e.children)};let r=_a(t,[`children`]);return In(r,e)});return n(e)},[e,t]),sJ=(e,t)=>`key`in e&&ta(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function cJ(e,t){return t?`${t}-${e}`:`${e}`}var lJ=(e,t)=>fo(e)?e(t):e,uJ=(e,t)=>{let n=lJ(e,t);return Ki(n)||Array.isArray(n)?``:n},dJ=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`},fJ=(e,t)=>{if(e)return e;if(t===`small`||t===`medium`)return`small`},pJ=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:`static`,[`&:has(${e}-drop-indicator)`]:{position:`relative`},[`> *:not(${e}-drop-indicator)`]:{position:`relative`},"&:hover":{background:`transparent`},"&:before":{position:`absolute`,inset:0,transition:`background-color ${i}`,content:`""`,borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:`transparent`,"&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),mJ=new so(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),hJ=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),gJ=(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:`${Z(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),_J=(e,t)=>
vendor: 4,104 bytes, line 1082
1082{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,switcherSize:s,motionDurationMid:c,nodeSelectedBg:l,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[n]:{...Gi(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,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)`},[`${n}-list`]:{"&:focus-visible":{outline:`none`,[`${r}-active ${n}-node-content-wrapper`]:{...Ui(t)}}},[`${n}-list-scrollbar`]:{cursor:`pointer`,"&:hover":{backgroundColor:t.colorFillQuaternary}},[`${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:`${Z(t.lineWidth)} ${t.lineType} ${t.colorPrimary}`,opacity:0,animationName:mJ,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:Z(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`}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:f},[`${n}-checkbox-disabled`]:{pointerEvents:`unset`},[`&: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:t.fontWeightStrong},"&-draggable":{cursor:`grab`,[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:`center`,visibility:`visible`,color:d},[`&${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(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:`flex-start`,marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...hJ(e,t),position:`relative`,flex:`none`,alignSelf:`stretch`,width:s,textAlign:`center`,cursor:`pointer`,userSelect:`none`,transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:`unset`},"&:before":{pointerEvents:`none`,content:`""`,width:s,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(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:t.calc(t.lineWidth).mul(-1).equal(),borderInlineEnd:`${Z(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`${Z(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,content:`""`}}},[`${n}-node-content-wrapper`]:{position:`relative`,minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:[`all ${c}`,`border 0s`,`line-height 0s`,`box-shadow 0s`].join(`, `),...gJ(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:`inline-block`,width:s,height:a,textAlign:`center`,verticalAlign:`to
1082p`,"&: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(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`${Z(t.lineWidth)} ${t.lineType} ${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:`${Z(t.calc(a).div(2).equal())} !important`}}}},vJ=(e,t,n=!0)=>{let r=`.${e}`,i=`${r}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),o=na(t,{treeCls:r,treeNodeCls:i,treeNodePadding:a});return[_J(e,o),n&&pJ(o)].filter(Boolean)},yJ=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},bJ=Da(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:aF(`${t}-checkbox`,e)},vJ(t,e),LO(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...yJ(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),xJ=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a=`ltr`}=e,o=a===`ltr`?`left`:`right`,s=a===`ltr`?`right`:`left`,c={[o]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[o]=i+4}return Q.createElement(`div`,{style:c,className:`${r}-drop-indicator`})},SJ=e=>{let{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:c}=r;if(c)return Q.isValidElement(a)?a:Q.createElement(Nt,{className:`${t}-switcher-loading-icon`});let l;if(Ki(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=fo(l)?l(r):l,n=`${t}-switcher-line-custom-icon`;return Q.isValidElement(e)?$a(e,{className:X(e.props?.className,n)}):e}return l?Q.createElement(_M,{className:`${t}-switcher-line-icon`}):Q.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=fo(n)?n(r):n;return Q.isValidElement(d)?$a(d,{className:X(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?Q.createElement(VM,{className:`${t}-switcher-line-icon`}):Q.createElement(WM,{className:`${t}-switcher-line-icon`}):Q.createElement(Xj,{className:u}):d},CJ=Q.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=ea(`tree`),{virtual:c}=Q.useContext(ma),{prefixCls:l,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:m,blockNode:h=!1,children:g,checkable:_=!1,selectable:v=!0,draggable:y,disabled:b,motion:x,style:S,rootClassName:C,rootStyle:w,classNames:T,styles:E,icon:D}=e,O=Q.useContext(gn),k=b??O,A=n(`tree`,l),j=n(),M=x??{...oe(j),motionAppear:!1},N={...e,showIcon:d,blockNode:h,checkable:_,selectable:v,disabled:k,motion:M},P=fa(w),[F,I]=ho([o,T],[s,P,E],{props:N}),L={...N,showLine:!!f,icon:D,dropIndicatorRender:xJ},[R,z]=bJ(A),[,B]=Bi(),V=B.paddingXS/2+(B.Tree?.titleHeight||B.controlHeightSM),H=Q.useMemo(()=>{if(!y)return!1;let e={};switch(typeof y){case`function`:e.nodeDraggable=y;break;case`object`:e={...y}}return e.icon!==!1&&(e.icon=e.icon||Q.createElement(FM,null)),e},[y]),U=e=>Q.createElement(SJ,{prefixCls:A,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:e,showLine:f});return Q.createElement(WK,{itemHeight:V,ref:t,virtual:c,...L,prefixCls:A,className:X({[`${A}-icon-hide`]:!d,[`${A}-block-node`]:h,[`${A}-unselectable`]:!v,[`${A}-rtl`]:r===`rtl`,[`${A}-disabled`]:k},i,u,R,z),style:{...a,...S},rootClassName:X(F.root,C),rootStyle:I.root,classNames:F,styles:I,direction:r,checkable:_&&Q.createElement(`span`,{className:`${A}-checkbox-inner`}),selectable:v,switcherIcon:U,draggable:H},g)}),wJ=0,TJ=1,EJ=2;function DJ(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&DJ(o||[],t,n)}e.forEach(a)}function OJ({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=wJ;if(!ta(n)||!ta(r))return[];if(n===r)return[n];function s(e){return e===n||e===r}return DJ(e,e=>
1082{if(o===EJ)return!1;if(s(e)){if(a.push(e),o===wJ)o=TJ;else if(o===TJ)return o=EJ,!1}else o===TJ&&a.push(e);return t.includes(e)},$G(i)),a}function kJ(e,t,n){let r=ia(t),i=[];return DJ(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},$G(n)),i}function AJ(e){let{isLeaf:t,expanded:n}=e;return t?Q.createElement(_M,null):n?Q.createElement(CM,null):Q.createElement(EM,null)}function jJ({treeData:e,children:t}){return e||eK(t)}var MJ=Q.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:r=!0,defaultExpandedKeys:i,...a}=e,o=Q.useRef(null),s=Q.useRef(null),c=()=>{let{keyEntities:e}=rK(jJ(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?PK(o,e):o,t},[l,u]=wa(a.defaultSelectedKeys||[],a.selectedKeys),[d,f]=wa(c,a.expandedKeys),p=(e,t)=>(f(e),a.onExpand?.(e,t)),m=(e,t)=>{let{multiple:n,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:l=``}=i,f=jJ(a),p={...t,selected:!0},m=c?.ctrlKey||c?.metaKey,h=c?.shiftKey,g;n&&m?(g=e,o.current=l,s.current=g,p.selectedNodes=kJ(f,g,r)):n&&h?(g=Array.from(new Set([].concat(ia(s.current||[]),ia(OJ({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=kJ(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=kJ(f,g,r)),a.onSelect?.(g,p),u(g)},{getPrefixCls:h,direction:g}=Q.useContext(ma),{prefixCls:_,className:v,showIcon:y=!0,expandAction:b=`click`,...x}=a,S=h(`tree`,_),C=X(`${S}-directory`,{[`${S}-directory-rtl`]:g===`rtl`},v);return Q.createElement(CJ,{icon:AJ,ref:t,blockNode:!0,...x,showIcon:y,expandAction:b,prefixCls:S,className:C,defaultExpandParent:r,expandedKeys:d,selectedKeys:l,onSelect:m,onExpand:p})}),NJ=CJ;NJ.DirectoryTree=MJ,NJ.TreeNode=dK,NJ.useTree=UK;var PJ=e=>{let{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?Q.createElement(`div`,{className:`${r}-filter-dropdown-search`},Q.createElement(ns,{prefix:Q.createElement(ds,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},FJ=e=>{let{keyCode:t}=e;t===Oo.ENTER&&e.stopPropagation()},IJ=Q.forwardRef((e,t)=>Q.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:FJ,ref:t,role:`presentation`},e.children));function LJ(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(ia(t),ia(LJ(n))))}),t}function RJ(e){return e.some(({children:e})=>e)}var zJ=(e,t)=>typeof t==`string`||Ji(t)?t.toString().toLowerCase().includes(e):!1,BJ=e=>{let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:BJ({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}
1082)};let l=i?uF:KR,u={key:e.value===void 0?t:c,label:Q.createElement(Q.Fragment,null,Q.createElement(l,{checked:r.includes(c)}),Q.createElement(`span`,null,e.text))};return o?fo(s)?s(o,e)?u:null:zJ(o,e.text)?u:null:u})};function VJ(e){return e||[]}var HJ=e=>{let{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:i,columnKey:a,filterOnClose:o,filterMultiple:s,filterMode:c=`menu`,filterSearch:l=!1,filterState:u,triggerFilter:d,locale:f,children:p,getPopupContainer:m,rootClassName:h}=e,{filterResetToDefaultFilteredValue:g,defaultFilteredValue:_,filterDropdownProps:v={},filterDropdownOpen:y,onFilterDropdownOpenChange:b}=r,[x,S]=Q.useState(!1),C=Q.useContext(xe),w=!!(u&&(u.filteredKeys?.length||u.forceFiltered)),T=e=>{S(e),v.onOpenChange?.(e),b?.(e)},E=v.open??y??x,D=u?.filteredKeys,[O,k]=IO(VJ(D)),A=({selectedKeys:e})=>{k(e)},j=(e,{node:t,checked:n})=>{A(s?{selectedKeys:e}:{selectedKeys:n?[t.key]:[]})};Q.useEffect(()=>{E&&A({selectedKeys:VJ(D)})},[D,E]);let[M,N]=Q.useState([]),P=e=>{N(e)},[F,I]=Q.useState(``),L=Q.useMemo(()=>F.trim().toLowerCase(),[F]),R=e=>{let{value:t}=e.target;I(t)};Q.useEffect(()=>{E||I(``)},[E]);let z=e=>{let t=e?.length?e:null;if(t===null&&(!u||!u.filteredKeys)||$i(t,u?.filteredKeys,!0))return null;d({column:r,key:a,filteredKeys:t})},B=()=>{T(!1),z(O())},V=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&z([]),t&&T(!1),I(``),k(g?(_||[]).map(String):[])},H=({closeDropdown:e}={closeDropdown:!0})=>{e&&T(!1),z(O())},U=(e,t)=>{t.source===`trigger`&&(e&&D!==void 0&&k(VJ(D)),!e&&!r.filterDropdown&&o?B():T(e))},W=X({[`${i}-menu-without-submenu`]:!RJ(r.filters||[])}),G=e=>{if(e.target.checked){let e=LJ(r?.filters).map(String);k(e)}else k([])},ee=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?String(t):n};return e.children&&(r.children=ee({filters:e.children})),r}),te=e=>({...e,text:e.title,value:e.key,children:e.children?.map(te)||[]}),ne,{direction:K,renderEmpty:q}=Q.useContext(ma);if(fo(r.filterDropdown))ne=r.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>A({selectedKeys:e}),selectedKeys:O(),confirm:H,clearFilters:V,filters:r.filters,visible:E,close:()=>{T(!1)}});else if(r.filterDropdown)ne=r.filterDropdown;else{let e=O()||[];ne=Q.createElement(Q.Fragment,null,(()=>{let a=q?.(`Table.filter`)??Q.createElement(Zo,{image:Zo.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:`16px 0`}});if((r.filters||[]).length===0)return a;if(c===`tree`)return Q.createElement(Q.Fragment,null,Q.createElement(PJ,{filterSearch:l,value:F,onChange:R,tablePrefixCls:t,locale:f}),Q.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?Q.createElement(uF,{checked:e.length===LJ(r.filters).length,indeterminate:e.length>0&&e.length<LJ(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:G},f?.filterCheckall??f?.filterCheckAll):null,Q.createElement(NJ,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${i}-menu`,onCheck:j,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:ee({filters:r.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:L?e=>fo(l)?l(F,te(e)):zJ(L,e.title):void 0})));let o=BJ({filters:r.filters||[],filterSearch:l,prefixCls:n,filteredKeys:O(),filterMultiple:s,searchValue:F,normalizedSearchValue:L}),u=o.every(e=>e===null);return Q.createElement(Q.Fragment,null,Q.createElement(PJ,{filterSearch:l,value:F,onChange:R,tablePrefixCls:t,locale:f}),u?a:Q.createElement(fq,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:W,onSelect:A,onDeselect:A,selectedKeys:e,getPopupContainer:m,openKeys:M,onOpenChange:P,items:o}))})(),Q.createElement(`div`,{className:`${n}-dropdown-btns`},Q.createElement(Je,{type:`link`,size:`small`,disabled:g?$i((_||[]).map(String),e,!0):e.length===0,onClick:()=>V()},f.filterReset),Q.createElement(Je,{type:`primary`,size:`small`,onClick:B},f.filterConfirm)))}r.filterDropdown&&(ne=Q.createElement(XK,{selectable:void 0},ne)),ne=Q.createElement(IJ,{className:`${n}-dropdown`},ne);let re=(()=>{let e;return e=fo(r.filterIcon)?r.filterIcon(w):r.filterIcon?r.filterIcon:Q.createElement(bM,null),Q.createElement(`span`,{role:`button`,tabIndex:-1,
1082className:X(`${n}-trigger`,{active:w}),onClick:e=>{e.stopPropagation()}},e)})();if(C)return Q.createElement(`div`,{className:`${n}-column`},Q.createElement(`span`,{className:`${t}-column-title`},p),re);let J=In({trigger:[`click`],placement:K===`rtl`?`bottomLeft`:`bottomRight`,children:re,getPopupContainer:m},{...v,rootClassName:X(h,v.rootClassName),open:E,onOpenChange:U,popupRender:()=>fo(v?.dropdownRender)?v.dropdownRender(ne):ne});return Q.createElement(`div`,{className:`${n}-column`},Q.createElement(`span`,{className:`${t}-column-title`},p),Q.createElement(yq,{...J}))},UJ=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=cJ(i,n),o=e.filterDropdown!==void 0;if(e.filters||o||`onFilter`in e){if(`filteredValue`in e){let t=e.filteredValue;o||(t=t?.map(String)??t),r.push({column:e,key:sJ(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:sJ(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered})}`children`in e&&(r=[].concat(ia(r),ia(UJ(e.children,t,a))))}),r};function WJ(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=cJ(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,h=n;if(h.filters||h.filterDropdown){let s=sJ(h,u),l=r.find(({key:e})=>s===e);h={...h,title:r=>Q.createElement(HJ,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:s,filterState:l,filterOnClose:d,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:c},lJ(n.title,r))}}return`children`in h&&(h={...h,children:WJ(e,t,h.children,r,i,a,o,u,c)}),h})}var GJ=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let i=e,{filters:a,filterDropdown:o}=r;if(o)t[i]=n||null;else if(Array.isArray(n)){let e=LJ(a);t[i]=e.filter(e=>n.includes(String(e)))}else t[i]=null}),t},KJ=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=LJ(a),s=new Map;r.forEach(e=>{let t=String(e);s.has(t)||s.set(t,e)});let c=o.map(e=>{let t=String(e);return s.get(t)??e});return(e=>e.reduce((e,r)=>{let a={...r};return a[n]&&(a[n]=KJ(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),qJ=e=>e.flatMap(e=>`children`in e?[e].concat(ia(qJ(e.children||[]))):[e]),JJ=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,baseColumns:i,onFilterChange:a,getPopupContainer:o,locale:s,rootClassName:c}=e;za(`Table`);let l=Q.useMemo(()=>qJ(i??r??[]),[i,r]),[u,d]=Q.useState(()=>UJ(l,!0)),f=Q.useMemo(()=>{let e=UJ(l,!1);if(e.length===0)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{e!==void 0&&(t=!1)}),t){let e=(l||[]).map((e,t)=>sJ(e,cJ(t)));return u.reduce((t,n)=>{let r=e.indexOf(n.key);if(r!==-1){let e=l[r];t.push({...n,column:{...n.column,...e},forceFiltered:e.filtered})}return t},[])}return e},[l,u]),p=Q.useMemo(()=>GJ(f),[f]),m=e=>{let t=f.filter(({key:t})=>t!==e.key);t.push(e),d(t),a(GJ(t),t)};return[e=>WJ(t,n,e,f,s,m,o,void 0,c),f,p]},YJ=(e,t,n)=>{let r=Q.useRef({});function i(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let i=new Map;function a(e){e.forEach((e,r)=>{let o=n(e,r);i.set(o,e),Ki(e)&&t in e&&a(e[t]||[])})}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap?.get(i)}return[i]};function XJ(e,t){let n={current:e.current,pageSize:e.pageSize},r=Ki(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];fo(r)||(n[t]=r)}),n}function ZJ(e,t,n){let{total:r=0,...i}=Ki(n)?n:{},[a,o]=(0,Q.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=In(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);let l=(e,t)=>{o({current:e??1,pageSize:t||s.pageSize})},u=(e,r)=>{n&&n.onChange?.(e,r),l(e,r),t(e,r||s?.pageSize)};return n===!1?[{},()=>{}]:[{...s,onChange:u},l]}var QJ=`ascend`,$J=`descend`,eY=e=>Ki(e.sorter)&&Ji(e.sorter.multiple)?e.sorter.multiple:!1,tY=e=>fo(e)?e:Ki(e)&&e.compare?e.compare:!1,nY=(e,t)=>t?e[e.indexOf(t)+1]:e[0],rY=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:sJ(e,t),multiplePriority:eY(e),sortOrder:e.sortOrder})};
1082return(e||[]).forEach((e,a)=>{let o=cJ(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(ia(r),ia(rY(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:sJ(e,o),multiplePriority:eY(e),sortOrder:e.defaultSortOrder}))}),r},iY=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=cJ(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=sJ(d,u),p=n.find(({key:e})=>e===f),m=p?p.sortOrder:null,h=nY(s,m),g;if(t.sortIcon)g=t.sortIcon({sortOrder:m});else{let t=s.includes(QJ)&&Q.createElement(nM,{className:X(`${e}-column-sorter-up`,{active:m===QJ})}),n=s.includes($J)&&Q.createElement($j,{className:X(`${e}-column-sorter-down`,{active:m===$J})});g=Q.createElement(`span`,{className:X(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(t&&n)})},Q.createElement(`span`,{className:`${e}-column-sorter-inner`,"aria-hidden":`true`},t,n))}let{cancelSort:_,triggerAsc:v,triggerDesc:y}=a||{},b=_;h===$J?b=y:h===QJ&&(b=v);let x=Ki(l)?{title:b,...l}:{title:b};d={...d,className:X(d.className,{[`${e}-column-sort`]:m}),title:n=>{let r=`${e}-column-sorters`,i=Q.createElement(`span`,{className:`${e}-column-title`},lJ(t.title,n)),a=Q.createElement(`div`,{className:r},i,g);return l?typeof l!=`boolean`&&l?.target===`sorter-icon`?Q.createElement(`div`,{className:X(r,`${r}-tooltip-target-sorter`)},i,Q.createElement(me,{...x},g)):Q.createElement(me,{...x},a):a},onHeaderCell:n=>{let i=t.onHeaderCell?.(n)||{},a=i.onClick,o=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:h,multiplePriority:eY(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===Oo.ENTER&&r({column:t,key:f,sortOrder:h,multiplePriority:eY(t)}),o?.(e)};let s=uJ(t.title,{}),l=s?.toString();return m&&(i[`aria-sort`]=m===`ascend`?`ascending`:`descending`),i[`aria-description`]=c?.sortable,i[`aria-label`]=l||``,i.className=X(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(s??``).toString()),i}}}return`children`in d&&(d={...d,children:iY(e,d.children,n,r,i,a,o,u,c)}),d}),aY=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},oY=e=>{let t=e.reduce((e,t)=>(t.sortOrder&&e.push(aY(t)),e),[]);return t.length===0&&e.length?{...aY(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},sY=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>tY(e)&&t);return a.length?i.sort((e,t)=>{for(let n=0;n<a.length;n+=1){let{column:{sorter:r},sortOrder:i}=a[n],o=tY(r);if(o&&i){let n=o(e,t,i);if(n!==0)return i===QJ?n:-n}}return 0}).map(e=>{let r=e[n];return r?{...e,[n]:sY(r,t,n)}:e}):i},cY=e=>{let{prefixCls:t,mergedColumns:n,baseColumns:r,sortDirections:i,tableLocale:a,showSorterTooltip:o,onSorterChange:s,globalLocale:c}=e,l=r??n,[u,d]=Q.useState(()=>rY(l,!0)),f=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=cJ(r,t);if(n.push(sJ(e,i)),Array.isArray(e.children)){let t=f(e.children,i);n.push.apply(n,ia(t))}}),n},p=Q.useMemo(()=>{let e=!0,t=rY(l,!1);if(!t.length){let e=f(l);return u.filter(({key:t})=>e.includes(t))}let n=[];function r(t){e?n.push(t):n.push({...t,sortOrder:null})}let i=null;return t.forEach(t=>{i===null?(r(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:i=!0)):(i&&t.multiplePriority!==!1||(e=!1),r(t))}),n},[l,u]),m=Q.useMemo(()=>{let e=p.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[p]),h=e=>{let t;t=e.multiplePriority===!1||!p.length||p[0].multiplePriority===!1?[e]:[].concat(ia(p.filter(({key:t})=>t!==e.key)),[e]),d(t),s(oY(t),t)};return[e=>iY(t,e,p,h,i,a,o,void 0,c),p,m,()=>oY(p)]},lY=e=>Q.useMemo(()=>typeof e==`boolean`?{spinning:e}:Ki(e)?{spinning:!0,...e}:{},[e]),uY=(e,t)=>e.map(e=>{let n={...e};return n.title=lJ(e.title,t),`children`in n&&(n.children=uY(n.children,t)),n}),dY=e=>[Q.useCallback(t=>uY(t,e),[e])],fY=OG((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),pY=HG((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),mY=e=>{let{antCls:t,componentCls:n,lineWidth:r,lineType:i,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:s,tablePaddingHorizontal:c,calc:l}=e,u=`${Z(r)} ${i} ${a}`,[d,f]=go(t,`table`),p=(e,t,i)=>({[`&${n}-${e}`]:{[`> ${n}-container`]:{[`> ${n}-content, > ${n}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${n}-expanded-row-fixed`]:{margin:`${Z(l(t).mul(-1).equal())}
1083              ${Z(l(l(i).add(r)).mul(-1).equal())}`}}}}}});return{[`${n}-wrapper`]:{[d(`nested-border-top`)]:u,[`${n}${n}-bordered`]:{[`> ${n}-title`]:{border:u,borderBottom:0},[`> ${n}-container`]:{borderInlineStart:u,borderTop:u,"&:first-child":{borderTop:f(`nested-border-top`,u)},[`> ${n}-header${n}-sticky-holder`]:{marginTop:l(r).mul(-1).equal(),borderTop:u},[`> ${n}-content, > ${n}-header, > ${n}-body, > ${n}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:`transparent !important`}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${n}-cell-fix-right-first:not(${n}-cell-fix-right-last)::after`]:{borderInlineEnd:u}},"> tbody > tr > th, > tbody > tr > td":{[`> ${n}-expanded-row-fixed`]:{margin:`${Z(l(s).mul(-1).equal())} ${Z(l(l(c).add(r)).mul(-1).equal())}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:u,content:`""`}}}}}},[`&${n}-scroll-horizontal`]:{[`> ${n}-container > ${n}-body`]:{"> table > tbody":{[`
1084                > tr${n}-expanded-row,
1085                > tr${n}-placeholder
1086              `]:{"> th, > td":{borderInlineEnd:0}}}}},...p(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...p(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${n}-footer`]:{border:u,borderTop:0}},[`${n}-cell`]:{[`
1087          > ${n}-wrapper:only-child,
1088          > ${n}-expanded-row-fixed > ${n}-wrapper:only-child
1089        `]:{[d(`nested-border-top`)]:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Z(r)} 0 ${Z(r)} ${o}`}},[`${n}-bordered ${n}-cell-scrollbar`]:{borderInlineEnd:u}}}},hY=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...Wa,wordBreak:`keep-all`,[`
1090          &${t}-cell-fix-start-shadow,
1091          &${t}-cell-fix-end-shadow
1092        `]:{overflow:`visible`,[`${t}-cell-content`]:{...Wa,display:`block`}},[`${t}-column-title`]:{...Wa,wordBreak:`keep-all`}}}}},gY=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > th, &:hover >
1092 td":{background:e.colorBgContainer}}}}},_Y=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:l,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:_,expandIconScale:v,calc:y}=e,b=`${Z(i)} ${o} ${s}`,x=y(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:l},[`${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`]:{...qi(e),position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:Z(g),background:c,border:b,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${r} ease-out`,content:`""`},"&::before":{top:_,insetInlineEnd:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:_,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:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`100%`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`${Z(y(d).mul(-1).equal())} ${Z(y(f).mul(-1).equal())}`,padding:`${Z(d)} ${Z(f)}`}}}},vY=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T,filterDropdownMenuBg:E,calc:D}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,A=`${n}-tree`,j=`${Z(l)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:D(o).mul(-1).equal(),marginInline:`${Z(o)} ${Z(D(m).div(2).mul(-1).equal())}`,padding:`0 ${Z(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:{...Gi(e),minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,overflow:`hidden`,[`${O}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,borderRadius:`unset`,backgroundColor:E,"&:empty::after":{display:`block`,padding:`${Z(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${Z(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:C},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${k}
1092-search`]:{padding:s,borderBottom:j,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${k}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${k}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${Z(D(s).sub(l).equal())} ${Z(s)}`,overflow:`hidden`,borderTop:j}}}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]};function yY({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var bY=e=>{let{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,calc:o}=e,s=`${t}-cell`,c=`${s}-fix`,l={position:`absolute`,top:0,bottom:o(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:`""`,pointerEvents:`none`},[u,d]=yY(e);return{[`${t}-wrapper`]:{[`${s}${c}`]:{position:`sticky`},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:`100%`},"&-end:after":{insetInlineEnd:`100%`},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:`relative`,"&:before, &:after":{...l,zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:`none`},[`${t}-has-fix-end ${t}-container:after`]:{display:`none`},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},xY=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Z(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},SY=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Z(n)} ${Z(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}}},[`&${t}-bordered${t}-no-header`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Z(n)} ${Z(n)}`}}}}},CY=e=>{let{componentCls:t}=e,[n,r]=yY(e);return{[`${t}-wrapper-rtl`]:{direction:`rtl`,table:{direction:`rtl`},[`${t}-row-expand-icon`]:{float:`right`,"&::after":{transform:`rotate(-90deg)`},"&-collapsed::before":{transform:`rotate(180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:`right`}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},wY=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:l,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:l,[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(l).add(m(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).add(m(o).mul(2)).equal()}},[`
1093        table tr th${t}-selection-column,
1094        table tr td${t}-selection-column,
1095        ${t}-selection-column
1096      `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:`center`,[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(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:Z(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},TY=e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(e,i,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[`
1097        ${t}-title,
1098        ${t}-footer,
1099        ${t}-cell,
1100        ${t}-thead > tr > th,
1101        ${t}-tbody > tr > th,
1102        ${t}-tbody > tr > td,
1103        tfoot > tr > th,
1104        tfoot > tr > td
1105      `]:{padding:`${Z(i)} ${Z(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Z(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Z(r(i).mul(-1).equal())} ${Z(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Z(r(i).mul(-1).equal()),marginInline:`${Z(r(n).sub(a).equal())} ${Z(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Z(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},EY=e=>{let{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},[`
1106          &${t}-cell-fix-left:hover,
1107          &${t}-cell-fix-right:hover
1108        `]:{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,minWidth:0},[`${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}}}},DY=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:l,tableBorderColor:u,zIndexTableFixed:d}=e,f=`${Z(c)} ${l} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:`calc(var(--columns-count) * 2 + ${d}
1108 + 1)`,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${Z(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:`flex`,alignItems:`center`,background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},OY=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${Z(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 ${Z(i(n).mul(-1).equal())} 0 ${r}`}}}},kY=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${Z(r)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-scrollbar`]:{cursor:`pointer`,"&:hover":{backgroundColor:e.colorFillQuaternary}},[`${t}-tbody-virtual-holder-inner`]:{[`
1109            & > ${t}-row,
1110            & > div:not(${t}-row) > ${t}-row
1111          `]:{display:`flex`,boxSizing:`border-box`,width:`100%`,[`> ${t}-cell`]:{alignContent:`center`}}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:`sticky`,insetInlineStart:0,overflow:`hidden`,width:`calc(var(--virtual-width) - ${Z(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}
vendor: 3,669 bytes, lines 1111-1122
1111}}}}},AY=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:_,calc:v}=e,y=`${Z(o)} ${s} ${c}`;return{[`${t}-wrapper`]:{clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...ua(),[t]:{...Gi(e),fontSize:l,background:u,borderRadius:`${Z(d)} ${Z(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:`100%`,textAlign:`start`,borderRadius:`${Z(d)} ${Z(d)} 0 0`,borderCollapse:`separate`,borderSpacing:0},[`
1112          ${t}-cell,
1113          ${t}-thead > tr > th,
1114          ${t}-tbody > tr > th,
1115          ${t}-tbody > tr > td,
1116          tfoot > tr > th,
1117          tfoot > tr > td
1118        `]:{position:`relative`,padding:`${Z(r)} ${Z(i)}`,overflowWrap:`break-word`},[`${t}-title`]:{padding:`${Z(r)} ${Z(i)}`},[`${t}-thead`]:{"> tr > th, > tr > td":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} 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:h,transform:`translateY(-50%)`,transition:`background-color ${p}`,content:`""`}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:y,transition:[`background-color`,`border-color`].map(e=>`${e} ${p}`).join(`, `),[`
1119              > ${t}-wrapper:only-child,
1120              > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
1121            `]:{[t]:{marginBlock:Z(v(r).mul(-1).equal()),marginInline:`${Z(v(a).sub(i).equal())}
1122                ${Z(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${Z(r)} ${Z(i)}`,color:g,background:_}}}},jY=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new ja(i).onBackground(n).toHexString(),w=new ja(a).onBackground(n).toHexString(),T=new ja(t).onBackground(n).toHexString(),E=new ja(y),D=new ja(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*
1122x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},MY=2,NY=Da(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=na(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:MY,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[AY(F),xY(F),OY(F),EY(F),vY(F),mY(F),SY(F),_Y(F),OY(F),gY(F),wY(F),bY(F),DY(F),hY(F),TY(F),CY(F),kY(F)]},jY,{resetFont:!1,unitless:{expandIconScale:!0}}),PY=[],FY=Q.createContext({}),IY=e=>{let{ariaProps:t,component:n=`table`}=Q.useContext(FY);return Q.createElement(n,{...t,...e})},LY=Q.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:m,rowClassName:h,column:g,columns:_,children:v,childrenColumnName:y,onChange:b,getPopupContainer:x,loading:S,expandIcon:C,expandable:w,expandedRowRender:T,expandIconColumnIndex:E,indentSize:D,scroll:O,sortDirections:k,locale:A,showSorterTooltip:j={target:`full-header`},virtual:M,title:N,showHeader:P}=e;za(`Table`);let F=oJ(Q.useMemo(()=>_||rG(v),[_,v]),g),I=fR(Q.useMemo(()=>F.some(e=>e.responsive),[F])),L=Q.useMemo(()=>{let e=new Set(Object.keys(I).filter(e=>I[e]));return F.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[F,I]),R=_a(e,[`className`,`style`,`column`,`columns`]),z=R.components,B=ha(R,{aria:!0}),V=Object.keys(B).length>0,H=Q.useMemo(()=>({ariaProps:B,component:z?.header?.table}),[B,z?.header?.table]),U=Q.useMemo(()=>V?{...z,header:{...z?.header,table:IY}}:z,[z,V]),{locale:W=Ur,table:G}=Q.useContext(ma),{getPrefixCls:ee,direction:te,renderEmpty:ne,getPopupContainer:K,className:q,style:re,classNames:J,styles:ie}=ea(`table`),ae=Ca(e=>c===`middle`?`medium`:c??e),oe={...e,size:ae,bordered:l},se=fa(re),ce=fa(a),[le,ue]=ho([J,o],[ie,se,s,ce],{props:oe},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),de={...W.Table,...A},[fe]=lt(`global`,Ur.global),pe=d||PY,me=ee(`table`,n),he=ee(`dropdown`,u),[,ge]=Bi(),_e=Q.useMemo(()=>Ki(p)?{columnWidth:ge.Table?.selectionColumnWidth,...p}:p,[p,ge.Table?.selectionColumnWidth]),ve=no(me),[ye,be]=NY(me,ve),Se={childrenColumnName:y,expandIconColumnIndex:E,...w,expandIcon:w?.expandIcon??G?.expandable?.expandIcon},{childrenColumnName:Ce=`children`}=Se,we=Q.useMemo(()=>pe.some(e=>e?.[Ce])?`nest`:T||w?.expandedRowRender?`row`:null,[Ce,pe]),Te={body:Q.useRef(null)},Ee=aJ(me),De=Q.useRef(null),Oe=Q.useRef(null);FO(t,()=>({...Oe.current,nativeElement:De.current}));let ke=m||G?.rowKey||`key`,Ae=O??G?.scroll,je=Q.useMemo(()=>fo(ke)?ke:e=>e?.[ke],[ke]),[Me]=YJ(pe,Ce,je),Ne={},Pe=(e,t,n=!1)=>{let r={...Ne,...e};n&&(Ne.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),O&&O.scrollToFirstRowOnChange!==!1&&Te.body.current&&kq(0,{getContainer:()=>Te.body.current}),b?.(r.pagination,r.filters,r.sorter,{currentDataSource:KJ(sY(pe,r.sorterStates,Ce),r.filterStates,Ce),action:t})},[Fe,Ie,Le,Re]=cY({prefixCls:me,mergedColumns:L,baseColumns:F,onSorterChange:(e,t)=>
1122{Pe({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:k||[`ascend`,`descend`],tableLocale:de,showSorterTooltip:j,globalLocale:fe}),ze=Q.useMemo(()=>sY(pe,Ie,Ce),[Ce,pe,Ie]);Ne.sorter=Re(),Ne.sorterStates=Ie;let[Be,Ve,He]=JJ({prefixCls:me,locale:de,dropdownPrefixCls:he,mergedColumns:L,baseColumns:F,onFilterChange:(e,t)=>{Pe({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:x||K,rootClassName:X(i,ve)}),Ue=KJ(ze,Ve,Ce);Ne.filters=He,Ne.filterStates=Ve;let[We]=dY(iJ(Le,He)),[Ge,Ke]=ZJ(Ue.length,(e,t)=>{Pe({pagination:{...Ne.pagination,current:e,pageSize:t}},`paginate`)},f),qe=e=>lo({},le.pagination,ka(Ge.classNames,e)),Je=e=>vo(ka(Ge.styles,e),ue.pagination);Ne.pagination=f===!1?{}:XJ(Ge,f),Ne.resetPagination=Ke;let Ye=Q.useMemo(()=>{if(f===!1||!Ge.pageSize)return Ue;let{current:e=1,total:t,pageSize:n=10}=Ge;return Ue.length<t?Ue.length>n?Ue.slice((e-1)*n,e*n):Ue:Ue.slice((e-1)*n,e*n)},[!!f,Ue,Ge?.current,Ge?.pageSize,Ge?.total]),[Xe,Ze]=Eq({prefixCls:me,data:Ue,pageData:Ye,getRowKey:je,getRecordByKey:Me,expandType:we,childrenColumnName:Ce,locale:de,getPopupContainer:x||K},_e),Qe=(e,t,n)=>X({[`${me}-row-selected`]:Ze.has(je(e,t))},fo(h)?h(e,t,n):h);Se.__PARENT_RENDER_ICON__=Se.expandIcon,Se.expandIcon=Se.expandIcon||C||nJ(de),we===`nest`&&Se.expandIconColumnIndex===void 0?Se.expandIconColumnIndex=+!!_e:Se.expandIconColumnIndex>0&&_e&&--Se.expandIconColumnIndex,Ji(Se.indentSize)||(Se.indentSize=Ji(D)?D:15);let $e=Q.useCallback(e=>We(Xe(Be(Fe(e)))),[Fe,Be,Xe]),et,tt;if(f!==!1&&Ge?.total){let e=fJ(Ge.size,ae),t=(t=`end`)=>Q.createElement(tJ,{...Ge,classNames:qe,styles:Je,className:X(`${me}-pagination`,`${me}-pagination-${t}`,Ge.className),size:e}),{placement:n,position:r}=Ge,i=n??r;if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(tt=t()),e&&(et=t(dJ(e))),n&&(tt=t(dJ(n)))}else tt=t()}let nt=lY(S),rt=X(be,ve,`${me}-wrapper`,q,{[`${me}-wrapper-rtl`]:te===`rtl`},r,i,le.root,ye),it=Q.useMemo(()=>nt?.spinning&&pe===PY?null:A?.emptyText===void 0?ne?.(`Table`)||Q.createElement(ss,{componentName:`Table`}):A.emptyText,[nt?.spinning,pe,A?.emptyText,ne]),at=M?pY:fY,ot={},st=Q.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=ge,o=Math.floor(e*t);switch(ae){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[ge,ae]);return M&&(ot.listItemHeight=st),Q.createElement(`div`,{ref:De,className:rt,style:ue.root},Q.createElement(rs,{spinning:!1,...nt},et,Q.createElement(FY.Provider,{value:H},Q.createElement(at,{...ot,...R,components:U,scroll:Ae,classNames:le,styles:ue,ref:Oe,columns:L,direction:te,expandable:Se,prefixCls:me,className:X({[`${me}-medium`]:ae===`medium`,[`${me}-small`]:ae===`small`,[`${me}-bordered`]:l,[`${me}-empty`]:pe.length===0,[`${me}-no-header`]:!N&&P===!1},be,ve,ye),data:Ye,rowKey:je,rowClassName:Qe,emptyText:it,internalHooks:JU,internalRefs:Te,transformColumns:$e,getContainerWidth:Ee,measureRowRender:e=>Q.createElement(xe.Provider,{value:!0},Q.createElement(bn,{getPopupContainer:e=>e},e))})),tt))}),RY=Q.forwardRef((e,t)=>{let n=Q.useRef(0);return n.current+=1,Q.createElement(LY,{...e,ref:t,_renderTimes:n.current})});RY.SELECTION_COLUMN=bq,RY.EXPAND_COLUMN=qU,RY.SELECTION_ALL=xq,RY.SELECTION_INVERT=Sq,RY.SELECTION_NONE=Cq,RY.Column=UG,RY.ColumnGroup=WG,RY.Summary=OW;var zY=RY,BY=`data:image/svg+xml,%3csvg%20width='15'%20height='9'%20viewBox='0%200%2015%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.6362%200H0.909155C0.662787%200%200.449801%200.0899506%200.269851%200.269702C0.0899006%200.449652%200%200.662638%200%200.908857C0%201.15508%200.0899006%201.36821%200.269851%201.54806L6.63339%207.9115C6.81354%208.09145%207.02652%208.18155%207.27269%208.18155C7.51886%208.18155%207.73205%208.09145%207.91185%207.9115L14.2754%201.54801C14.4551%201.36821%2014.5454%201.15508%2014.5454%200.908807C14.5454%200.662637%2014.4552%200.449652%2014.2754%200.269652C14.0956%200.0897512%2013.8824%200%2013.6362%200Z'%20fill='%234B5654'/%3e%3c/svg%3e`,VY=`data:image/svg+xml,%3csvg%20width='15'%20height='9'%20viewBox='0%200%2015%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.909155%208.1817H13.6362C13.8824%208.1817%2014.0955%208.0918%2014.2754%207.91185C14.4551%207.73195%2014.5454%207.51891%2014.5454%207.27269C14.5454%207.02647%2014.4552%206.81354%2014.2754%206.63339L7.91185%200.269851C7.73205%200.0901493%207.51906%200%207.27269%200C7.02633%200%206.81334%200.0901493%206.63339%200.269851L0.269851%206.63339C0.0899006%206.81334%200%207.02647%200%207.27269C0%207.51886%200.0899006%207.73195%200.269851%207.91185C0.45%208.0918%200.662986%208.1817%200.909155%208.1817Z'%20fill='%234B5654'/%3e%3c/svg%3e`,HY=`data:image/svg+xml,%3csvg%20width='15'%20height='9'%20viewBox='0%200%2015%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.27273%206.62198L12.532%201.36364H2.01349L7.27273%206.62198ZM14.541%200.999645C14.5213%201.20786%2014.4328%201.39098%2014.2756%201.5483L7.91193%207.91193C7.73217%208.09177%207.51882%208.18182%207.27273%208.18182L7.18217%208.17738C7.00378%208.16053%206.84404%208.093%206.70277%207.97496L6.63352%207.91193L0.269886%201.5483C0.0899914%201.3685%205.60779e-05%201.15521%200%200.909091C0%200.662905%200.0899849%200.449822%200.269886%200.269886C0.449821%200.0901508%200.66275%201.65419e-05%200.909091%200H13.6364C13.8825%203.06303e-05%2014.0958%200.0900157%2014.2756%200.269886C14.4553%200.449849%2014.5455%200.663002%2014.5455%200.909091L14.541%200.999645Z'%20fill='%234B5654'/%3e%3c/svg%3e`,UY=`data:image/svg+xml,%3csvg%20width='15'%20height='9'%20viewBox='0%200%2015%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.01349%206.81811H12.532L7.27272%201.55893L2.01349%206.81811ZM14.541%207.3632C14.5213%207.57145%2014.4329%207.75439%2014.2756%207.91185L14.2063%207.97488C14.0417%208.11262%2013.8518%208.18171%2013.6364%208.18173H0.90909L0.818536%208.17729C0.640086%208.16046%200.480434%208.09298%200.339133%207.97488L0.269886%207.91185C0.0899362%207.73195%201.06548e-06%207.51882%200%207.27265C0%207.02645%200.0899593%206.81339%200.269886%206.63345L6.63352%200.269884C6.81346%200.0902072%207.02637%200%207.27272%200C7.51909%201.06755e-06%207.73213%200.0901841%207.91193%200.269884L14.2756%206.63345C14.4553%206.81358%2014.5454%207.02649%2014.5454%207.27265L14.541%207.3632Z'%20fill='%234B5654'/%3e%3c/svg%3e`,WY=`data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2
112209.33333V12.6667C12%2013.0203%2011.8595%2013.3594%2011.6095%2013.6095C11.3594%2013.8595%2011.0203%2014%2010.6667%2014H3.33333C2.97971%2014%202.64057%2013.8595%202.39052%2013.6095C2.14048%2013.3594%202%2013.0203%202%2012.6667V5.33333C2%204.97971%202.14048%204.64057%202.39052%204.39052C2.64057%204.14048%202.97971%204%203.33333%204H6.66667'%20stroke='%234B5654'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10%202H14V6'%20stroke='%234B5654'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6%2010L14%202'%20stroke='%234B5654'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,GY=`cr-table-fill`,KY=`cr-table-hug`,qY=(e,t)=>({...e,className:[e.className,t].filter(Boolean).join(` `)}),JY=e=>e!==zY.EXPAND_COLUMN&&e!==zY.SELECTION_COLUMN&&!(`hidden`in e&&e.hidden),YY=e=>{if(typeof e==`number`)return e;let t=typeof e==`string`?e.match(/^(\d+(?:\.\d+)?)px$/)?.[1]:void 0;return t?Number(t):void 0},XY=e=>{let{width:t,...n}=qY(e,GY),r=YY(t);return r==null?n:{...n,minWidth:r}},ZY=e=>{let t=qY(e,KY);if(e.render||!(`dataIndex`in e)||typeof e.dataIndex!=`string`)return t;let n=e.dataIndex,r=e.onCell;return{...t,onCell:(e,t)=>{let i=e?.[n];return{title:typeof i==`string`||typeof i==`number`?String(i):void 0,...r?.(e,t)}}}},QY=({columns:e,tableLayout:t,scroll:n,sticky:r,columnSizing:i})=>{let[a,...o]=(e??[]).filter(JY),s=o.filter(e=>e.width==null),c=n?.y!=null||!!r||(e??[]).some(e=>!!e.fixed),l=i===`fill-first`&&t!==`fixed`&&!c&&s.length>0;return l?{hugging:l,tableLayout:`auto`,scroll:{x:`100%`,...n},columns:e?.map(e=>e===a?XY(e):s.includes(e)?ZY(e):e)}:{columns:e,tableLayout:t,scroll:{x:`100%`,y:`100%`,...n},hugging:l}},$Y=e=>e?.map(e=>e.sorter&&!e.sortIcon?{...e,sortIcon:({sortOrder:e})=>(0,$.jsx)(rX,{direction:e})}:e),eX=({css:e,columnSizing:t=`fill-first`,columns:n,tableLayout:r,scroll:i,...a})=>{let o=(0,Q.useMemo)(()=>QY({columns:n,tableLayout:r,scroll:i,sticky:a.sticky,columnSizing:t}),[n,r,i,a.sticky,t]),s=(0,Q.useMemo)(()=>$Y(o.columns),[o.columns]);return(0,$.jsx)(nX,{$css:e,$size:a.size??`large`,$hugging:o.hugging,...a,columns:s,tableLayout:o.tableLayout,scroll:o.scroll})},tX={large:`var(--space-16) var(--space-16)`,middle:`var(--space-12) var(--space-8)`,medium:`var(--space-12) var(--space-8)`,small:`var(--space-8) var(--space-8)`},nX=n(zY)`
1123  & .ant-table-thead > tr > th,
1124  & .ant-table-tbody > tr > td {
1125    padding: ${({$size:e})=>tX[e]};
1126  }
1127
1128  /* max-width 0 lets the fill column give up its content width, so long text
1129     ellipsizes or wraps instead of pushing the hugging columns off the table;
1130     min-width outranks it, so the column never shrinks under its floor. */
1131  && .${GY} {
1132    width: 100%;
1133    max-width: 0;
1134    min-width: var(--table-fill-min-width);
1135  }
1136
1137  && .${KY} {
1138    width: 1%;
1139    max-width: var(--table-hug-max-width);
1140    overflow: hidden;
1141    text-overflow: ellipsis;
1142    white-space: nowrap;
1143  }
1144
1145  && .ant-table-column-sorters {
1146    gap: var(--gap-inline);
1147  }
1148
1149  /* With no y scroll the content box scrolls instead, and the header pins to
1150     its top the way antd's split header did. !important beats antd's inline
1151     overflow-y: hidden; a caller's $css override of either rule needs && too. */
1152  ${({$hugging:e})=>e&&r`
1153      /* A column of flex boxes down to the content box, so in a parent with a
1154         set height a tall table shrinks to fit and scrolls; a short one keeps its size. */
1155      &&,
1156      && > .ant-spin,
1157      && .ant-spin-nested-loading,
1158      && .ant-spin-container {
1159        height: 100%;
1160      }
1161
1162      && .ant-spin-container,
1163      && .ant-table,
1164      && .ant-table-container {
1165        display: flex;
1166        flex-direction: column;
1167        min-height: 0;
1168      }
1169
1170      && .ant-table {
1171        flex: 0 1 auto;
1172      }
1173
1174      && .ant-table-content {
1175        min-height: 0;
1176        overflow: auto !important;
1177      }
1178
1179      && .ant-table-thead > tr > th {
1180        position: sticky;
1181        top: 0;
1182        z-index: 2;
1183      }
1184    `}
1185
1186  ${({$css:e})=>e&&r`
1187      ${e}
1188    `}
1189`,rX=(0,Q.forwardRef)(({direction:e=null,active:t=!1,...n},r)=>{let i=t||e===`ascend`,a=t||e===`descend`;return(0,$.jsxs)(iX,{ref:r,"data-sort-active":i||a,"data-sort-direction":e??void 0,...n,children:[(0,$.jsx)(aX,{src:i?VY:UY,alt:`sort up`,$css:`margin-bottom: -1px;`}),(0,$.jsx)(aX,{src:a?BY:HY,alt:`sort down`,$css:`margin-top: -1
1189px;`})]})});rX.displayName=`CRTableSortIcon`;var iX=n.div`
1190  display: flex;
1191  flex-direction: column;
1192  justify-content: center;
1193
1194  &:hover {
1195    & > img {
1196      width: 11px;
1197      height: 11px;
1198    }
1199  }
1200`,aX=n.img`
1201  width: 10px;
1202  height: 10px;
1203  cursor: pointer;
1204
1205  ${({$css:e})=>e&&r`
1206      ${e}
1207    `}
1208`,oX=e=>e.startsWith(`http`)?e:`https://${e}`,sX=(0,Q.forwardRef)(({href:e,label:t=`Open in a new tab`,onClick:n},r)=>(0,$.jsx)(uX,{ref:r,href:oX(e),target:`_blank`,rel:`noopener noreferrer`,"aria-label":t,onClick:e=>{e.stopPropagation(),n?.(e)},children:(0,$.jsx)(dX,{"aria-hidden":`true`})}));sX.displayName=`CRTableLink`;var cX=({title:e,href:t,linkLabel:n,onLinkClick:r,css:i})=>(0,$.jsxs)(lX,{$css:i,children:[(0,$.jsx)(hF,{title:e,children:e}),t?(0,$.jsx)(sX,{href:t,label:n,onClick:r}):null]}),lX=n.div`
1209  display: flex;
1210  align-items: center;
1211  gap: var(--gap-inline);
1212  min-width: 0;
1213
1214  & > div:first-child {
1215    min-width: 0;
1216  }
1217
1218  /* Muted beside a title so the title leads; full strength once pointed at. */
1219  & > a {
1220    opacity: 0.65;
1221  }
1222
1223  & > a:hover,
1224  & > a:focus-visible {
1225    opacity: 1;
1226  }
1227
1228  ${({$css:e})=>e&&r`
1229      ${e}
1230    `}
1231`,uX=n.a`
1232  display: inline-flex;
1233  flex-shrink: 0;
1234  color: var(--teal-400);
1235  cursor: pointer;
1236
1237  /* Outranks antd's global a:hover, which would turn the icon blue. */
1238  &:hover,
1239  &:focus-visible {
1240    color: var(--teal-400);
1241  }
1242`,dX=n.span`
1243  width: 16px;
1244  height: 16px;
1245  background-color: currentColor;
1246  mask: url("${WY}") center / contain no-repeat;
1247`,fX={default:{background:`var(--white)`,border:`var(--grey-200)`},subtle:{background:`var(--grey-50)`,border:`var(--grey-200)`},success:{background:`var(--success-100)`,border:`var(--success-300)`},warning:{background:`var(--warning-100)`,border:`var(--warning-300)`},error:{background:`var(--error-100)`,border:`var(--error-300)`}},pX=(0,Q.forwardRef)(({title:e,extra:t,footer:n,padding:r=24,gap:i=16,tone:a=`default`,selected:o=!1,css:s,children:c,onClick:l,onKeyDown:u,componentName:d,eventName:f,eventProperties:p,trackEvent:m,...h},g)=>{let _=l!=null,v=t=>{Qo({componentName:d,eventName:f,eventProperties:p,trackEvent:m},T.nodeToText(e)??`card`),l?.(t)},y=e=>{u?.(e),_&&cs(e)},b=e!=null||t!=null;return(0,$.jsxs)(mX,{ref:g,role:_?`button`:void 0,tabIndex:_?0:void 0,"aria-pressed":_&&o?!0:void 0,onClick:_?v:void 0,onKeyDown:y,$padding:r,$gap:i,$tone:a,$selected:o,$clickable:_,$css:s,...h,children:[b&&(0,$.jsxs)(hX,{children:[e!=null&&(0,$.jsx)(gX,{children:e}),t!=null&&(0,$.jsx)(_X,{children:t})]}),c,n!=null&&(0,$.jsx)(vX,{children:n})]})});pX.displayName=`CRCard`;var mX=n.div`
1248  display: flex;
1249  flex-direction: column;
1250  gap: ${({$gap:e})=>Uo(e)};
1251  min-width: 0;
1252  padding: ${({$padding:e})=>Uo(e)};
1253  background: ${({$tone:e})=>fX[e].background};
1254  border: 1px solid ${({$tone:e,$selected:t})=>t?`var(--teal-500)`:fX[e].border};
1255  border-radius: var(--radius-card);
1256  transition: border-color 0.15s ease;
1257
1258  ${({$clickable:e,$selected:t})=>e&&r`
1259      cursor: pointer;
1260
1261      &:hover {
1262        border-color: ${t?`var(--teal-500)`:`var(--teal-300)`};
1263      }
1264
1265      &:focus-visible {
1266        outline: 2px solid var(--teal-300);
1267        outline-offset: 2px;
1268      }
1269    `}
1270
1271  ${({$css:e})=>e&&r`
1272      ${e}
1273    `}
1274`,hX=n.div`
1275  display: flex;
1276  align-items: center;
1277  justify-content: space-between;
1278  gap: var(--space-12);
1279  min-width: 0;
1280`,gX=n.div`
1281  min-width: 0;
1282  font-size: var(--text-large-size);
1283  font-weight: 600;
1284  line-height: 24px;
1285  color: var(--grey-900);
1286`,_X=n.div`
1287  display: flex;
1288  align-items: center;
1289  flex-shrink: 0;
1290  gap: var(--gap-button);
1291`,vX=n.div`
1292  display: flex;
1293  align-items: center;
1294  gap: var(--gap-button);
1295  padding-top: var(--space-16);
1296  border-top: 1px solid var(--grey-200);
1297`,yX={small:{height:20,paddingInline:`var(--space-8)`,fontSize:`var(--text-label-size)`},medium:{height:24,paddingInline:`var(--space-8)`,fontSize:`var(--text-secondary-size)`},large:{height:28,paddingInline:`var(--space-12)`,fontSize:`var(--text-compact-size)`}},bX=(0,Q.forwardRef)(({tone:e=`neutral`,size:t=`medium`,shape:n=`pill`,bordered:r=!1,dot:i=!1,icon:a,css:o,children:s,onClick:c,onKeyDown:l,componentName:u,eventName:d,eventProperties:f,trackEvent:p,...m},h)=>{let g=c!=null;return(0,$.jsxs)(xX,{ref:h,role:g?`button`:void 0,tabIndex:g?0:void 0,onClick:g?e=>{Qo({componentName:u,eventName:d,eventProperties:f,trackEvent:p}
1297,T.nodeToText(s)??`pill`),c?.(e)}:void 0,onKeyDown:e=>{l?.(e),g&&cs(e)},$tone:e,$size:t,$shape:n,$bordered:r,$clickable:g,$css:o,...m,children:[i&&(0,$.jsx)(SX,{"aria-hidden":`true`}),a!=null&&(0,$.jsx)(CX,{"aria-hidden":`true`,children:a}),s]})});bX.displayName=`CRPill`;var xX=n.span`
1298  display: inline-flex;
1299  align-items: center;
1300  flex-shrink: 0;
1301  gap: var(--space-4);
1302  max-width: 100%;
1303  height: ${({$size:e})=>yX[e].height}px;
1304  padding: 0 ${({$size:e})=>yX[e].paddingInline};
1305  font-size: ${({$size:e})=>yX[e].fontSize};
1306  font-weight: 500;
1307  line-height: 1;
1308  white-space: nowrap;
1309  color: ${({$tone:e})=>ko[e].text};
1310  background: ${({$tone:e})=>ko[e].background};
1311  border: 1px solid ${({$tone:e,$bordered:t})=>t?ko[e].border:`transparent`};
1312  border-radius: ${({$shape:e})=>e===`pill`?`var(--radius-pill)`:`4px`};
1313
1314  ${({$clickable:e,$tone:t})=>e&&r`
1315      cursor: pointer;
1316
1317      &:hover {
1318        border-color: ${ko[t].border};
1319      }
1320
1321      &:focus-visible {
1322        outline: 2px solid var(--teal-300);
1323        outline-offset: 1px;
1324      }
1325    `}
1326
1327  ${({$css:e})=>e&&r`
1328      ${e}
1329    `}
1330`,SX=n.span`
1331  width: 6px;
1332  height: 6px;
1333  flex-shrink: 0;
1334  border-radius: 50%;
1335  background: currentColor;
1336`,CX=n.span`
1337  display: inline-flex;
1338  align-items: center;
1339
1340  & > img,
1341  & > svg {
1342    width: 1em;
1343    height: 1em;
1344  }
1345`,wX=({title:e,description:t,icon:n,action:r,variant:i=`boxed`,size:a=`default`,css:o})=>(0,$.jsxs)(TX,{$variant:i,$size:a,$css:o,children:[n!=null&&(0,$.jsx)(EX,{"aria-hidden":`true`,children:n}),(e!=null||t!=null)&&(0,$.jsxs)(DX,{children:[e!=null&&(0,$.jsx)(OX,{children:e}),t!=null&&(0,$.jsx)(kX,{children:t})]}),r!=null&&(0,$.jsx)(AX,{children:r})]}),TX=n.div`
1346  display: flex;
1347  flex-direction: column;
1348  align-items: center;
1349  justify-content: center;
1350  gap: var(--space-16);
1351  width: 100%;
1352  padding: ${({$size:e})=>e===`compact`?`var(--space-24) var(--space-20)`:`var(--space-48) var(--space-24)`};
1353  text-align: center;
1354
1355  ${({$variant:e})=>e===`boxed`&&r`
1356      background: var(--grey-50);
1357      border: 1px dashed var(--grey-200);
1358      border-radius: var(--radius-card);
1359    `}
1360
1361  ${({$css:e})=>e&&r`
1362      ${e}
1363    `}
1364`,EX=n.div`
1365  display: flex;
1366  align-items: center;
1367  justify-content: center;
1368  color: var(--grey-400);
1369  font-size: var(--h4-size);
1370
1371  & > img,
1372  & > svg {
1373    width: 32px;
1374    height: 32px;
1375  }
1376`,DX=n.div`
1377  display: flex;
1378  flex-direction: column;
1379  gap: var(--space-4);
1380  max-width: 400px;
1381`,OX=n.div`
1382  font-size: var(--text-normal-size);
1383  font-weight: 600;
1384  line-height: 20px;
1385  color: var(--grey-800);
1386`,kX=n.div`
1387  font-size: var(--text-compact-size);
1388  line-height: 20px;
1389  color: var(--grey-600);
1390`,AX=n.div`
1391  display: flex;
1392  justify-content: center;
1393`,jX=(0,Q.forwardRef)(({align:e=`start`,matchWidths:t=!1,wrap:n=!1,css:r,children:i,...a},o)=>(0,$.jsx)(NX,{ref:o,role:`group`,$align:e,$matchWidths:t,$wrap:n,$css:r,...a,children:i}));jX.displayName=`CRButtonGroup`;var MX={start:`flex-start`,center:`center`,end:`flex-end`},NX=n.div`
1394  gap: var(--gap-button);
1395  align-items: center;
1396
1397  ${({$matchWidths:e,$align:t,$wrap:n})=>e?r`
1398          /* Equal 1fr tracks in a shrink-wrapped grid size to the widest child. */
1399          display: grid;
1400          grid-auto-flow: column;
1401          grid-auto-columns: 1fr;
1402          width: fit-content;
1403          margin-left: ${t===`start`?`0`:`auto`};
1404          margin-right: ${t===`end`?`0`:`auto`};
1405
1406          & > * {
1407            width: 100%;
1408            min-width: 0;
1409          }
1410        `:r`
1411          display: flex;
1412          flex-wrap: ${n?`wrap`:`nowrap`};
1413          justify-content: ${MX[t]};
1414        `}
1415
1416  ${({$css:e})=>e&&r`
1417      ${e}
1418    `}
1419`,PX={start:`flex-start`,center:`center`,end:`flex-end`,stretch:`stretch`,"space-between":`space-between`},FX=(0,Q.forwardRef)(({gap:e=24,direction:t=`column`,align:n=`stretch`,justify:r=`start`,wrap:i=!1,css:a,children:o,...s},c)=>(0,$.jsx)(IX,{ref:c,$gap:e,$direction:t,$align:n,$justify:r,$wrap:i,$css:a,...s,children:o}));FX.displayName=`CRStack`;var IX=n.div`
1420  display: flex;
1421  flex-direction: ${({$direction:e})=>e};
1422  flex-wrap: ${({$wrap:e})=>e?`wrap`:`nowrap`};
1423  align-items: ${({$align:e})=>PX[e]};
1424  justify-content: ${({$justify:e})=>PX[e]};
1425  gap: ${({$gap:e})=>Uo(e)};
1426  min-width: 0;
1427
1428  ${({$css:e})=>e&&r`
1429      ${e}
1430    `}
1431`,LX=(0,Q.forwardRef)(({columns:e,gap:t=24,css:n,children:r,...i},a)=>(0,$.jsx)(RX,{ref:a,$columns:e,$gap:t,$css:n,...i,children:r}));LX.displayName=`CRSummaryCardRow`;var RX=n.div`
1432  display: grid;
1433  gap: ${({$gap:e})=>Uo(e)};
1434  align-items: stretch;
1435  width: 100%;
1436
1437  ${({$columns:e})=>e==null?r`
1438          grid-auto-flow: column;
1439          grid-auto-columns: minmax(0, 1fr);
1440        `:r`
1441          grid-template-columns: repeat(${e}, minmax(0, 1fr));
1442        `}
1443
1444  ${({$css:e})=>e&&r`
1445      ${e}
1446    `}
1447`;n.img`
1448  width: ${({$size:e})=>e}px;
1449  height: ${({$size:e})=>e}px;
1450  flex-shrink: 0;
1451  object-fit: contain;
1452
1453  ${({$css:e})=>e&&r`
1454      ${e}
1455    `}
1456`,n.span`
1457  font-size: var(--text-secondary-size);
1458  color: var(--grey-600);
1459
1460  ${({$css:e})=>e&&r`
1461      ${e}
1462    `}
1463`;var zX={root:`cr-dropdown-menu`},BX=(0,Q.forwardRef)(({items:e,componentName:t,eventProperties:n,trackEvent:r=!0,menu:i,onOpenChange:a,children:o,...s},c)=>{let l=t??`dropdown`,u=(0,Q.useMemo)(()=>e?.map(e=>({...e,className:e.selected?`cr-dropdown-item-selected`:void 0,"data-selected":e.selected?`true`:void 0})),[e]),d=(0,Q.useCallback)(e=>{if(r){let t=u?.find(t=>`${t?.key??``}`==`${e.key}`),r=T.nodeToText(t?.label)??(t?.key?`${t.key}`:`unknownOption`);io.logEvent(Ha.dropdownOptionClick,{...n??{},componentName:l,targetText:r,targetKey:`${e.key}`})}i?.onClick?.(e)},[n,l,u,i,r]),f=(0,Q.useMemo)(()=>({...i??{},...u===void 0?{}:{items:u},onClick:d}),[i,u,d]);return(0,$.jsx)($.Fragment,{children:(0,$.jsx)(VX,{ref:c,menu:f,placement:s?.placement??`bottomRight`,classNames:zX,onOpenChange:a,...s,children:o})})});BX.displayName=`CRDropdown`;var VX=n(yq)`
1464  display: inline-block;
1465`,{RangePicker:HX}=wH,UX={popup:{root:`cr-header-datepicker-popup`}},WX=()=>Ri.getServingFloorDate(),GX=()=>(0,Uj.default)().startOf(`day`),KX=(e,t)=>{if(!e)return null;if(typeof e==`string`)return t.find(t=>t.key===e)?.getRange()??null;if(!Array.isArray(e)||e.length!==2)return null;let n=(0,Uj.default)(e[0],Ri.format,!0),r=(0,Uj.default)(e[1],Ri.format,!0);return!n.isValid()||!r.isValid()?null:[n,r]},qX=({value:e,options:t})=>{if(typeof e==`string`&&t.some(t=>t.key===e))return{optionKey:e,range:null};if(Array.isArray(e)&&e.length===2){let n=KX(e,t);if(n)return{optionKey:null,range:[n[0].format(Ri.format),n[1].format(Ri.format)]}}return{optionKey:Ri.optionsKeys.lastWeek,range:null}},JX=e=>e.optionKey?e.optionKey:e.range?e.range:null,YX=(e,t)=>e?`${e[0].format(`MMM D, YYYY`)} - ${e[1].format(`MMM D, YYYY`)}`:t,XX=e=>{if(!e.range||e.optionKey)return null;let t=(0,Uj.default)(e.range[0],Ri.format,!0),n=(0,Uj.default)(e.range[1],Ri.format,!0);return!t.isValid()||!n.isValid()?null:[t,n]},ZX=(0,Q.forwardRef)(({value:e,defaultValue:t,options:n,placeholder:r,css:i,alwaysOpen:a=!1,resetValue:o,onApply:s,onOpenChange:c,componentName:l,eventProperties:u,trackEvent:d=!0,eventName:f,hidePresets:p=!1,disabledDate:m,...h},g)=>{let _=(0,Q.useMemo)(()=>n??Ri.getDefaultOptions(),[n]),v=(0,Q.useMemo)(()=>l??`headerDatepicker`,[l]),y=(0,Q.useMemo)(()=>r??`Date`,[r]),b=(0,Q.useMemo)(()=>WX(),[]),x=(0,Q.useMemo)(()=>GX(),[]),S=(0,Q.useMemo)(()=>Array.isArray(h.disabled)?h.disabled.every(e=>!!e):!!h.disabled,[h.disabled]),C=(0,Q.useMemo)(()=>qX({value:e??t??o??Ri.optionsKeys.lastWeek,options:_}),[t,_,o,e]),[w,T]=(0,Q.useState)(!1),[E,D]=(0,Q.useState)(C),[O,k]=(0,Q.useState)(C),[A,j]=(0,Q.useState)(XX(C)),M=(0,Q.useRef)(0),N=(0,Q.useRef)(!1);(0,Q.useEffect)(()=>
1465{if(e===void 0)return;let t=qX({value:e,options:_});D(t),k(t),j(XX(t))},[e,_]),(0,Q.useEffect)(()=>{a&&T(!0)},[a]);let P=(0,Q.useMemo)(()=>JX(E),[E]),F=(0,Q.useMemo)(()=>JX(O),[O]),I=(0,Q.useMemo)(()=>KX(P,_),[P,_]);(0,Q.useMemo)(()=>KX(F,_),[F,_]);let L=(0,Q.useMemo)(()=>YX(I,y),[I,y]),R=(0,Q.useMemo)(()=>O.optionKey===null&&O.range!==null,[O]),z=(0,Q.useCallback)(e=>{if(c?.(e),a){T(!0);return}if(!(e&&w)){if(!e&&Date.now()-M.current<50){T(!0);return}k(E),j(XX(E)),T(e)}},[c,a,E,w]),B=(0,Q.useCallback)(()=>{N.current=w},[w]),V=(0,Q.useCallback)(()=>{S||z(!N.current)},[z,S]),H=(0,Q.useCallback)(e=>{let t={optionKey:e,range:null},n=KX(e,_);d&&n&&io.logEvent(f??Ha.dateRangeChange,{...u??{},componentName:v,targetText:e,targetKey:e,startDate:n[0].format(Ri.format),endDate:n[1].format(Ri.format)}),D(t),k(t),j(null),M.current=0,T(!!a),s?.(e)},[a,s,_,d,f,u,v]),U=(0,Q.useCallback)(e=>{e&&e[0]&&e[1]&&(M.current=Date.now(),j([e[0],e[1]]),k({optionKey:null,range:[e[0].format(Ri.format),e[1].format(Ri.format)]}))},[]),W=(0,Q.useCallback)(e=>{M.current=Date.now(),j(e),k(e=>({optionKey:null,range:e.range})),e&&e[0]&&e[1]&&k({optionKey:null,range:[e[0].format(Ri.format),e[1].format(Ri.format)]})},[]),G=(0,Q.useCallback)(()=>{let e=JX(O)??o??Ri.optionsKeys.lastWeek,t=qX({value:e,options:_}),n=KX(e,_);d&&n&&io.logEvent(f??Ha.dateRangeChange,{...u??{},componentName:v,targetText:t.optionKey??`custom`,targetKey:t.optionKey??`custom`,startDate:n[0].format(Ri.format),endDate:n[1].format(Ri.format)}),D(t),k(t),M.current=0,T(!!a),s?.(e)},[a,O,s,_,o,d,f,u,v]),ee=(0,Q.useCallback)(()=>{k(E),j(XX(E)),M.current=0,T(!!a)},[a,E]),te=(0,Q.useCallback)(e=>
1465e.isAfter(x.endOf(`day`))||e.isBefore(b.startOf(`day`)),[x,b]),ne=(0,Q.useCallback)((...e)=>te(e[0])||(m?.(...e)??!1),[te,m]);return(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(QX,{children:[(0,$.jsx)($X,{ref:g,open:a?!0:w,value:A,allowClear:!1,inputReadOnly:!0,needConfirm:!1,disabledDate:ne,minDate:b,maxDate:x,classNames:UX,panelRender:e=>(0,$.jsxs)(rZ,{$hidePresets:p,children:[!p&&(0,$.jsx)(iZ,{children:_.map(e=>(0,$.jsx)(aZ,{$selected:O.optionKey===e.key,onMouseDown:e=>e.preventDefault(),onClick:()=>H(e.key),children:e.label},e.key))}),(0,$.jsx)(oZ,{onClickCapture:()=>{M.current=Date.now()},children:e})]}),onChange:e=>U(e),onCalendarChange:e=>W(e),onOpenChange:z,renderExtraFooter:()=>(0,$.jsxs)(sZ,{children:[(0,$.jsx)(ys,{type:`text`,tone:`primary`,trackEvent:!1,onClick:ee,children:`Cancel`}),(0,$.jsx)(ys,{type:`primary`,tone:`primary`,trackEvent:!1,disabled:!R,onClick:G,children:`Apply`})]}),...h}),(0,$.jsxs)(eZ,{$open:w,$disabled:S,$css:i,onMouseDown:B,onClick:V,children:[(0,$.jsx)(tZ,{children:L}),(0,$.jsx)(nZ,{$open:w,src:ps,alt:`down-arrow`})]})]})})});ZX.displayName=`CRHeaderDatepicker`;var QX=n.div`
1466  position: relative;
1467  width: fit-content;
1468`,$X=n(HX)`
1469  position: absolute;
1470  inset: 0;
1471  opacity: 0;
1472  pointer-events: none;
1473`,eZ=n.div`
1474  position: relative;
1475  z-index: 1;
1476  height: 36px;
1477  min-width: 225px;
1478  border: 1px solid ${({$open:e})=>e?`var(--teal-600)`:`var(--grey-200)`};
1479  background-color: ${({$disabled:e})=>e?`var(--grey-200)`:`var(--grey-50)`};
1480  border-radius: 6px;
1481  box-shadow: none;
1482  transition: none;
1483  display: flex;
1484  align-items: center;
1485  gap: 8px;
1486  padding: 0 12px;
1487  color: ${({$disabled:e})=>e?`var(--grey-400)`:`var(--grey-700)`};
1488  cursor: ${({$disabled:e})=>e?`not-allowed`:`pointer`};
1489  user-select: none;
1490
1491  &:hover {
1492    border-color: ${({$disabled:e})=>e?`var(--grey-200)`:`var(--teal-600)`};
1493    box-shadow: none;
1494  }
1495
1496  ${({$css:e})=>e&&r`
1497      ${e}
1498    `}
1499`,tZ=n.div`
1500  flex: 1;
1501  min-width: 0;
1502  white-space: nowrap;
1503  overflow: hidden;
1504  text-overflow: ellipsis;
1505  font-size: 14px;
1506  color: inherit;
1507`,nZ=n.img`
1508  width: 16px;
1509  height: 16px;
1510  transform: ${({$open:e})=>e?`rotate(180deg)`:`none`};
1511  transition: transform 0.2s ease;
1512`,rZ=n.div`
1513  display: grid;
1514  grid-template-columns: ${({$hidePresets:e})=>e?`1fr`:`160px 1fr`};
1515  align-items: stretch;
1516`,iZ=n.div`
1517  border-right: 1px solid var(--grey-200);
1518  padding: 8px;
1519  display: flex;
1520  flex-direction: column;
1521  gap: 2px;
1522`,aZ=n.div`
1523  padding: 8px 10px;
1524  border-radius: 6px;
1525  cursor: pointer;
1526  user-select: none;
1527  font-size: 14px;
1528  color: ${({$selected:e})=>e?`var(--teal-500)`:`var(--grey-600)`};
1529  font-weight: ${({$selected:e})=>e?600:400};
1530`,oZ=n.div`
1531  min-width: 0;
1532`,sZ=n.div`
1533  display: flex;
1534  padding-bottom: 12px;
1535  justify-content: flex-end;
1536  align-items: center;
1537  padding-top: 8px;
1538  gap: 8px;
1539`,cZ=({options:e,value:t,onChange:n,placeholder:r,renderTrigger:i,disabled:a=!1,css:o,minPanelWidth:s=210,"data-testid":c})=>{let[l,u]=(0,Q.useState)(!1),[d,f]=(0,Q.useState)([]),p=(0,Q.useRef)(null),m=(0,Q.useMemo)(()=>t??[],[t]);(0,Q.useEffect)(()=>{if(!l)return;let e=e=>{p.current&&!p.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[l]);let h=(0,Q.useCallback)(()=>{if(a)return;let e=!l;e&&f(m),u(e)},[a,l,m]),g=(0,Q.useCallback)(e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),h())},[h]),_=(0,Q.useCallback)(e=>{f(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),v=(0,Q.useCallback)(()=>{n?.(d),u(!1)},[d,n]),y=(0,Q.useCallback)(()=>{n?.([]),u(!1)},[n]);return(0,$.jsxs)(lZ,{ref:p,$css:o,"data-testid":c,children:[(0,$.jsxs)(uZ,{$open:l,$active:m.length>0,$disabled:a,role:`button`,tabIndex:a?-1:0,"aria-expanded":l,"aria-haspopup":`listbox`,"aria-disabled":a||void 0,onClick:h,onKeyDown:g,children:[(0,$.jsx)(dZ,{children:m.length===0?(0,$.jsx)(fZ,{children:r}):i?.(m)??(0,$.jsx)(fZ,{children:r})}),(0,$.jsx)(pZ,{$open:l,src:ps,alt:`down-arrow`})]}),l&&(0,$.jsxs)(mZ,{role:`listbox`,"aria-multiselectable":!0,$minWidth:s,children:[e.map(e=>{let t=d.includes(e.value);return(0,$.jsxs)(hZ,{role:`option`,"aria-selected":t,onMouseDown:e=>e.preventDefault(),onClick:()=>_(e.value),children:[(0,$.jsx)(gZ,{$checked:t,children:t&&(0,$.jsx)(_Z,{viewBox:`0 0 10 8`,fill:`none`,children:(0,$.jsx)(`path`,{d:`M1 4L3.5 6.5L9 1`,stroke:`white`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})}),e.icon&&(0,$.jsx)(vZ,{src:e.icon,alt:e.label}),(0,$.jsx)(yZ,{children:e.label})]},e.value)}),(0,$.jsxs)(bZ,{children:[(0,$.jsx)(ys,{type:`text`,tone:`primary`,trackEvent:!1,onClick:y,children:`Clear`}),(0,$.jsx)(xZ,{onMouseDown:e=>e.preventDefault(),onClick:v,children:`Apply`})]})]})]})};cZ.displayName=`CRCheckboxSelect`;var lZ=n.div`
1540  position: relative;
1541  width: fit-content;
1542
1543  ${({$css:e})=>e&&r`
1544      ${e}
1545    `}
1546`,uZ=n.div`
1547  height: 36px;
1548  min-width: 130px;
1549  border: 1px solid ${({$open:e,$active:t})=>e||t?`var(--teal-600)`:`var(--grey-200)`};
1550  background-color: ${({$disabled:e})=>e?`var(--grey-200)`:`var(--grey-50)`};
1551  border-radius: 6px;
1552  display: flex;
1553  align-items: center;
1554  gap: 8px;
1555  padding: 0 12px;
1556  color: ${({$disabled:e})=>e?`var(--grey-400)`:`var(--grey-700)`};
1557  cursor: ${({$disabled:e})=>e?`not-allowed`:`pointer`};
1558  user-select: none;
1559
1560  &:hover {
1561    border-color: ${({$disabled:e})=>e?`var(--grey-200)`:`var(--teal-600)`};
1562  }
1563`,dZ=n.div`
1564  flex: 1;
1565  display: flex;
1566  align-items: center;
1567  gap: 6px;
1568  min-width: 0;
1569`,fZ=n.div`
1570  flex: 1;
1571  font-size: 14px;
1572  color: inherit;
1573  white-space: nowrap;
1574`,pZ=n.img`
1575  width: 16px;
1576  height: 16px;
1577  transform: ${({$open:e})=>e?`rotate(180deg)`:`none`};
1578  transition: transform 0.2s ease;
1579  flex-shrink: 0;
1580`,mZ=n.div`
1581  position: absolute;
1582  top: calc(100% + 4px);
1583  left: 0;
1584  z-index: 1050;
1585  background: var(--white);
1586  border: 1px solid var(--grey-200);
1587  border-radius: 8px;
1588  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
1589  padding: 6px;
1590  min-width: ${({$minWidth:e})=>e}px;
1591  display: flex;
1592  flex-direction: column;
1593  gap: 2px;
1594`,hZ=n.div`
1595  display: flex;
1596  align-items: center;
1597  gap: 10px;
1598  padding: 8px 10px;
1599  border-radius: 6px;
1600  cursor: pointer;
1601  user-select: none;
1602
1603  &:hover {
1604    background: var(--grey-100);
1605  }
1606`,gZ=n.div`
1607  flex-shrink: 0;
1608  width: 16px;
1609  height: 16px;
1610  border-radius: 3px;
1611  border: 2px solid ${({$checked:e})=>e?`var(--teal-600)`:`var(--grey-300)`};
1612  background: ${({$checked:e})=>e?`var(--teal-600)`:`transparent`};
1613  display: flex;
1614  align-items: center;
1615  justify-content: center;
1616`,_Z=n.svg`
1617  width: 10px;
1618  height: 8px;
1619`,vZ=n.img`
1620  width: 18px;
1621  height: 18px;
1622  object-fit: contain;
1623  border-radius: 2px;
1624  flex-shrink: 0;
1625`,yZ=n.span`
1626  flex: 1;
1627  font-size: 14px;
1628  color: var(--grey-700);
1629  white-space: nowrap;
1630`,bZ=n.div`
1631  gap: 4px;
1632  display: flex;
1633  justify-content: flex-end;
1634  padding-top: 6px;
1635  margin-top: 4px;
1636  border-top: 1px solid var(--grey-100);
1637`,xZ=n.div`
1638  padding: 6px 16px;
1639  border-radius: 6px;
1640  background: var(--teal-600);
1641  color: var(--white);
1642  font-size: 14px;
1643  font-weight: 600;
1644  cursor: pointer;
1645  user-select: none;
1646
1647  &:hover {
1648    background: var(--teal-700);
1649  }
1650`,SZ={TriggerTextDiv:fZ}
1650,CZ=S,wZ=({value:e,onChange:t,css:n,disabled:r=!1,engines:i})=>{let{requester:a}=Mi(),o=(0,Q.useMemo)(()=>w(i??a?.brandInfo?.answerGenerationEngines),[i,a?.brandInfo?.answerGenerationEngines]),s=(0,Q.useMemo)(()=>o.map(e=>({value:String(e.value),label:e.label,icon:e.icon})),[o]),c=(0,Q.useMemo)(()=>(e??[]).map(e=>String(e)),[e]),l=(0,Q.useCallback)(e=>{io.logEvent(Ha.platformsFilterApplied,{count:e.length}),t?.(e.length===0?null:e)},[t]),u=(0,Q.useCallback)(e=>{let t=e.length===1?CZ.find(t=>String(t.value)===e[0]):void 0;return(0,$.jsxs)($.Fragment,{children:[e.map(e=>{let t=CZ.find(t=>String(t.value)===e);return t?(0,$.jsx)(TZ,{src:t.icon,alt:t.label},e):null}),t&&(0,$.jsx)(SZ.TriggerTextDiv,{children:t.label})]})},[]);return(0,$.jsx)(cZ,{options:s,value:c,onChange:l,placeholder:`Platforms`,renderTrigger:u,disabled:r,css:n})};wZ.displayName=`CRHeaderPlatformsPicker`;var TZ=n.img`
1651  width: 18px;
1652  height: 18px;
1653  object-fit: contain;
1654  border-radius: 2px;
1655`,EZ=`/assets/guess-logo-BF2Cc0av.png`,DZ=e=>{if(!e)return``;let t=e.trim();return t?(t=t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,``),t=t.split(`/`)[0].split(`?`)[0].split(`#`)[0].trim(),t=t.replace(/^www\./i,``),t=t.split(`:`)[0].trim(),t.toLowerCase()):``},OZ=new Map,kZ={"guess.com":EZ},AZ=({companyName:e,domain:t,size:n=32,style:r,className:i,skipFetch:a=!1})=>{let o=DZ(t),s=o?kZ[o]:void 0,c=o||e,l=`${c}::${n}`,u=a?void 0:OZ.get(l),[d,f]=(0,Q.useState)(u||null),[p,m]=(0,Q.useState)(!a&&u===void 0),[h,g]=(0,Q.useState)(u===!1),_=(0,Q.useMemo)(()=>e?.charAt(0)?.toUpperCase()??`?`,[e]);return(0,Q.useEffect)(()=>{if(a||s)return;let r=OZ.get(l);if(r!==void 0){r===!1?g(!0):f(r),m(!1);return}(async()=>{if(m(!0),g(!1),!e&&!t){OZ.set(l,!1),m(!1),g(!0);return}try{let e=C.LOGO_DEV_TOKEN;if(!e){OZ.set(l,!1),g(!0),m(!1);return}let t=`https://img.logo.dev/${c}?token=${e}&size=${n*2}`,r=new Image;r.onload=()=>{OZ.set(l,t),f(t),m(!1)},r.onerror=()=>{OZ.set(l,!1),g(!0),m(!1)},r.src=t}catch{OZ.set(l,!1),g(!0),m(!1)}})()},[l,c,e,t,n,a,s]),s?(0,$.jsx)(jZ,{src:s,alt:e,$size:n,style:r,className:i}):p?(0,$.jsx)(NZ,{$size:n,style:r,className:i,children:(0,$.jsx)(PZ,{$size:n})}):h||!d?(0,$.jsx)(MZ,{$size:n,style:r,className:i,children:_}):(0,$.jsx)(jZ,{src:d,alt:e,$size:n,style:r,className:i})},jZ=n.img`
1656  width: ${({$size:e})=>e}px;
1657  height: ${({$size:e})=>e}px;
1658  object-fit: contain;
1659  flex-shrink: 0;
1660  border-radius: 6px;
1661`,MZ=n.div`
1662  ${Ce.flexCenter()}
1663  width: ${({$size:e})=>e}px;
1664  height: ${({$size:e})=>e}px;
1665  border-radius: 6px;
1666  background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-600) 50%, #6b46c1 100%);
1667  color: var(--white);
1668  font-family: "Figtree", sans-serif;
1669  font-weight: 600;
1670  font-size: ${({$size:e})=>Math.floor(e*.5)}px;
1671  flex-shrink: 0;
1672`,NZ=n.div`
1673  ${Ce.flexCenter()}
1674  width: ${({$size:e})=>e}px;
1675  height: ${({$size:e})=>e}px;
1676  border-radius: 6px;
1677  background: var(--grey-100);
1678  flex-shrink: 0;
1679`,PZ=n.div`
1680  width: ${({$size:e})=>Math.floor(e*.5)}px;
1681  height: ${({$size:e})=>Math.floor(e*.5)}px;
1682  border: 2px solid var(--grey-300);
1683  border-top-color: var(--teal-500);
1684  border-radius: 50%;
1685  animation: spin 0.8s linear infinite;
1686
1687  @keyframes spin {
1688    to {
1689      transform: rotate(360deg);
1690    }
1691  }
1692`,FZ=({value:e,onChange:t,css:n,disabled:r=!1})=>{let[i,a]=(0,Q.useState)(!1),o=(0,Q.useRef)(null),{requester:s}=Mi(),c=s?.competitorOptions??[],l=(0,Q.useMemo)(()=>[...c].filter(e=>!e.isYou).sort((e,t)=>e.name.localeCompare(t.name)),[c]),u=(0,Q.useMemo)(()=>e?c.find(t=>t.uuid===e)??null:null,[e,c]);(0,Q.useEffect)(()=>{if(!i)return;let e=e=>{o.current&&!o.current.contains(e.target)&&a(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[i]);let d=(0,Q.useCallback)(()=>{r||a(e=>!e)},[r]),f=(0,Q.useCallback)(n=>{t(e===n?null:n),a(!1)},[e,t]);return(0,$.jsxs)(IZ,{ref:o,$css:n,children:[(0,$.jsxs)(LZ,{$open:i,$disabled:r,$active:e!==null,onClick:d,children:[u?(0,$.jsxs)(RZ,{$placeholder:!1,children:[(0,$.jsx)(AZ,{companyName:u.name,domain:u.websiteUrl??void 0,size:18}),u.name]}):(0,$.jsx)(RZ,{$placeholder:!0,children:`View As`}),(0,$.jsx)(zZ,{$open:i,src:ps,alt:`down-arrow`})]}),i&&(0,$.jsx)(BZ,{children:l.map(t=>{let n=e===t.uuid;return(0,$.jsxs)(VZ,{$selected:n,onMouseDown:e=>e.preventDefault(),onClick:()=>f(t.uuid),children:[(0,$.jsx)(AZ,{companyName:t.name,domain:t.websiteUrl??void 0,size:22}),(0,$.jsx)(HZ,{children:t.name}),n&&(0,$.jsx)(UZ,{viewBox:`0 0 10 8`,fill:`none`,children:(0,$.jsx)(`path`,{d:`M1 4L3.5 6.5L9 1`,stroke:`var(--teal-600)`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})]},t.uuid)})})]})};FZ.displayName=`CRHeaderCompetitorPicker`;var IZ=n.div`
1693  position: relative;
1694  width: fit-content;
1695
1696  ${({$css:e})=>e&&r`
1697      ${e}
1698    `}
1699`,LZ=n.div`
1700  height: 36px;
1701  min-width: 140px;
1702  max-width: 200px;
1703  border: 1px solid ${({$open:e,$active:t})=>e||t?`var(--teal-600)`:`var(--grey-200)`};
1704  background-color: ${({$disabled:e})=>e?`var(--grey-200)`:`var(--grey-50)`};
1705  border-radius: 6px;
1706  display: flex;
1707  align-items: center;
1708  gap: 8px;
1709  padding: 0 12px;
1710  color: ${({$disabled:e})=>e?`var(--grey-400)`:`var(--grey-700)`};
1711  cursor: ${({$disabled:e})=>e?`not-allowed`:`pointer`};
1712  user-select: none;
1713
1714  &:hover {
1715    border-color: ${({$disabled:e})=>e?`var(--grey-200)`:`var(--teal-600)`};
1716  }
1717`,RZ=n.div`
1718  flex: 1;
1719  font-size: 14px;
1720  white-space: nowrap;
1721  overflow: hidden;
1722  text-overflow: ellipsis;
1723  display: flex;
1724  align-items: center;
1725  gap: 6px;
1726`,zZ=n.img`
1727  width: 16px;
1728  height: 16px;
1729  transform: ${({$open:e})=>e?`rotate(180deg)`:`none`};
1730  transition: transform 0.2s ease;
1731  flex-shrink: 0;
1732`,BZ=n.div`
1733  position: absolute;
1734  top: calc(100% + 4px);
1735  left: 0;
1736  z-index: 1050;
1737  background: var(--white);
1738  border: 1px solid var(--grey-200);
1739  border-radius: 8px;
1740  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
1741  padding: 6px;
1742  width: 100%;
1743  max-height: 280px;
1744  overflow-y: auto;
1745  display: flex;
1746  flex-direction: column;
1747  gap: 2px;
1748`,VZ=n.div`
1749  display: flex;
1750  align-items: center;
1751  gap: 10px;
1752  padding: 8px 10px;
1753  border-radius: 6px;
1754  cursor: pointer;
1755  user-select: none;
1756  background: ${({$selected:e})=>e?`var(--teal-50)`:`transparent`};
1757
1758  &:hover {
1759    background: ${({$selected:e})=>e?`var(--teal-50)`:`var(--grey-100)`};
1760  }
1761
1762  &:last-child {
1763    margin-bottom: 4px;
1764  }
1765`,HZ=n.span`
1766  flex: 1;
1767  font-size: 14px;
1768  color: var(--grey-700);
1769  white-space: nowrap;
1770  overflow: hidden;
1771  text-overflow: ellipsis;
1772`,UZ=n.svg`
1773  width: 10px;
1774  height: 8px;
1775  flex-shrink: 0;
1776`,WZ=n.div`
1777  display: flex;
1778  align-items: center;
1779  gap: 8px;
1780  padding: 8px 12px;
1781  border-radius: 8px;
1782  border: 1px solid var(--warning-200);
1783  background: var(--warning-tag-background);
1784  color: var(--grey-800);
1785  font-size: 13px;
1786  line-height: 1.4;
1787
1788  strong {
1789    font-weight: 600;
1790  }
1791`,GZ=n.span`
1792  display: inline-flex;
1793  align-items: center;
1794  color: var(--warning-700);
1795  flex-shrink: 0;
1796`,KZ=n.div`
1797  margin-left: auto;
1798  flex-shrink: 0;
1799`,qZ=({renderBody:e})=>{let{selectedCompetitor:t,setSelectedCompetitor:n}=ki(),{requester:r}=Mi();if(!t)return null;let i=r?.competitorOptions?.find(e=>e.uuid===t)?.name;return i?(0,$.jsxs)(WZ,{role:`status`,children:[(0,$.jsx)(GZ,{"aria-hidden":`true`,children:(0,$.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,$.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`2`}),(0,$.jsx)(`path`,{d:`M12 8v4M12 16h.01`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`})]})}),(0,$.jsx)(`span`,{children:e?e(i):(0,$.jsxs)($.Fragment,{children:[`Showing this page and all metrics from `,(0,$.jsx)(`strong`,{children:i}),`'s perspective`]})}),(0,$.jsx)(KZ,{children:(0,$.jsx)(ys,{type:`text`,size:`small`,tone:`warning`,onClick:()=>n(null),componentName:`clearCompetitorPerspective`,children:`Clear 
1799Competitor View`})})]}):null};qZ.displayName=`CRCompetitorPerspectiveBanner`,n.div`
1800  position: relative;
1801  width: fit-content;
1802
1803  ${({$css:e})=>e&&r`
1804      ${e}
1805    `}
1806`,n.div`
1807  height: 36px;
1808  min-width: 130px;
1809  max-width: 200px;
1810  border: 1px solid ${({$open:e,$active:t})=>e||t?`var(--teal-600)`:`var(--grey-200)`};
1811  background-color: ${({$disabled:e})=>e?`var(--grey-200)`:`var(--grey-50)`};
1812  border-radius: 6px;
1813  display: flex;
1814  align-items: center;
1815  gap: 8px;
1816  padding: 0 12px;
1817  color: ${({$disabled:e})=>e?`var(--grey-400)`:`var(--grey-700)`};
1818  cursor: ${({$disabled:e})=>e?`not-allowed`:`pointer`};
1819  user-select: none;
1820
1821  &:hover {
1822    border-color: ${({$disabled:e})=>e?`var(--grey-200)`:`var(--teal-600)`};
1823  }
1824`,n.div`
1825  flex: 1;
1826  font-size: 14px;
1827  white-space: nowrap;
1828  text-overflow: ellipsis;
1829  overflow: hidden;
1830`,n.img`
1831  width: 16px;
1832  height: 16px;
1833  transform: ${({$open:e})=>e?`rotate(180deg)`:`none`};
1834  transition: transform 0.2s ease;
1835  flex-shrink: 0;
1836`,n.div`
1837  position: absolute;
1838  top: calc(100% + 4px);
1839  left: 0;
1840  z-index: 1050;
1841  background: var(--white);
1842  border: 1px solid var(--grey-200);
1843  border-radius: 8px;
1844  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
1845  padding: 6px;
1846  min-width: 220px;
1847  max-height: 320px;
1848  display: flex;
1849  flex-direction: column;
1850`,n.div`
1851  overflow-y: auto;
1852  display: flex;
1853  flex-direction: column;
1854  gap: 2px;
1855  flex: 1;
1856`,n.div`
1857  display: flex;
1858  align-items: center;
1859  gap: 10px;
1860  padding: 8px 10px;
1861  border-radius: 6px;
1862  cursor: pointer;
1863  user-select: none;
1864
1865  &:hover {
1866    background: var(--grey-100);
1867  }
1868`,n.div`
1869  flex-shrink: 0;
1870  width: 16px;
1871  height: 16px;
1872  border-radius: 3px;
1873  border: 2px solid ${({$checked:e})=>e?`var(--teal-600)`:`var(--grey-300)`};
1874  background: ${({$checked:e})=>e?`var(--teal-600)`:`transparent`};
1875  display: flex;
1876  align-items: center;
1877  justify-content: center;
1878`,n.svg`
1879  width: 10px;
1880  height: 8px;
1881`,n.span`
1882  flex: 1;
1883  font-size: 14px;
1884  color: var(--grey-700);
1885  white-space: nowrap;
1886  overflow: hidden;
1887  text-overflow: ellipsis;
1888  display: flex;
1889  align-items: center;
1890  gap: 4px;
1891`,n.span`
1892  color: var(--grey-400);
1893  font-size: 12px;
1894`,n.div`
1895  display: flex;
1896  align-items: center;
1897  gap: 2px;
1898  flex: 1;
1899  overflow: hidden;
1900`,n.span`
1901  font-size: 12px;
1902  color: var(--grey-600);
1903  white-space: nowrap;
1904  margin-left: 2px;
1905`,n.div`
1906  gap: 4px;
1907  display: flex;
1908  justify-content: flex-end;
1909  padding-top: 6px;
1910  margin-top: 4px;
1911  border-top: 1px solid var(--grey-100);
1912  flex-shrink: 0;
1913`,n.div`
1914  padding: 6px 16px;
1915  border-radius: 6px;
1916  background: var(--teal-600);
1917  color: var(--white);
1918  font-size: 14px;
1919  font-weight: 600;
1920  cursor: pointer;
1921  user-select: none;
1922
1923  &:hover {
1924    background: var(--teal-700);
1925  }
1926`;var JZ={small:32,middle:36,large:40},YZ=25,XZ=400,ZZ=50,QZ=({value:e,onChange:t,loadPage:n,placeholder:r,pluralLabel:i=`selected`,triggerMode:a=`compact`,renderTrigger:o,renderOptionContent:s,pageSize:c=YZ,searchPlaceholder:l=`Search…`,width:u=180,panelWidth:d=260,panelAlign:f=`right`,size:p=`middle`,disabled:m=!1,componentName:h,tabs:g,renderPanelExtra:_})=>{let y=JZ[p],{showToast:b}=es(),[x,S]=(0,Q.useState)(!1),[C,w]=(0,Q.useState)([]),[T,E]=(0,Q.useState)([]),[D,O]=(0,Q.useState)(!1),[k,A]=(0,Q.useState)(!1),[j,M]=(0,Q.useState)(1),[N,P]=(0,Q.useState)(!0),[F,I]=(0,Q.useState)(``),[L,R]=(0,Q.useState)(!1),[z,B]=(0,Q.useState)(g&&g.length>0?g[0].key:null),V=(0,Q.useRef)(null),H=(0,Q.useRef)(null),U=(0,Q.useRef)(null),W=(0,Q.useRef)(new Map),G=(0,Q.useMemo)(()=>g&&g.length>0?(g.find(e=>e.key===z)??g[0]).loadPage:n,[g,z,n]),ee=(0,Q.useCallback)(async(e,t,n,r)=>{let i=r??G;V.current?.abort();let a=new AbortController;V.current=a;let{signal:o}=a;n?(E([]),O(!0)):A(!0);try{let r=await i({search:t,page:e,pageSize:c,signal:o});if(o.aborted)return;for(let e of r.items)W.current.set(e.value,e);E(e=>n?r.items:[...e,...r.items]),M(e),P(e*c<r.total)}catch(e){if(o.aborted||v.isAbortLikeError(e))return;b.error(`Failed to load options`,{description:v.getErrorDesc(e)})}finally{o.aborted||(n?O(!1):A(!1))}},[G,c,b]),te=eN(e=>{R(!1),ee(1,e,!0)},XZ),ne=(0,Q.useCallback)(e=>{if(e===z)return;let t=g?.find(t=>t.key===e);B(e),I(``),R(!1),te.cancel(),t&&ee(1,``,!0,t.loadPage)},[z,g,ee,te]);(0,Q.useEffect)(()=>()=>{V.current?.abort()},[]),(0,Q.useEffect)(()=>{a!==`custom`&&e.length>0&&T.length===0&&queueMicrotask(()=>ee(1,``,!0))},[]),(0,Q.useEffect)(()=>
1926{if(!x)return;let e=e=>{H.current&&!H.current.contains(e.target)&&S(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[x]);let K=(0,Q.useCallback)(()=>{if(m)return;let t=!x;t&&(w(e),I(``),T.length===0&&!D&&ee(1,``,!0)),S(t)},[m,x,e,T.length,D,ee]),q=(0,Q.useCallback)(e=>{let t=e.target.value;I(t),R(!0),te(t)},[te]),re=(0,Q.useCallback)(e=>{let t=e.currentTarget;t.scrollHeight-t.scrollTop-t.clientHeight<ZZ&&N&&!D&&!k&&ee(j+1,F,!1)},[N,D,k,j,F,ee]),J=(0,Q.useCallback)(e=>{w(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),ie=(0,Q.useCallback)(()=>{let e=W.current,n=C.map(t=>e.get(t)).filter(e=>e!==void 0);t(C,n),S(!1)},[C,t]),ae=(0,Q.useCallback)(()=>{w([])},[]),oe=D||k||L,se=(0,Q.useMemo)(()=>{if(e.length===0)return[];let t=new Map(T.map(e=>[e.value,e]));return e.map(e=>t.get(e)).filter(e=>e!==void 0)},[e,T]),ce=(0,Q.useMemo)(()=>{if(a===`custom`&&o)return o(se,e);if(e.length===0)return(0,$.jsx)(nQ,{children:r});if(a===`tags`){let t=new Set(se.map(e=>e.value)),n=e.length-t.size;return(0,$.jsxs)(rQ,{children:[se.map(e=>(0,$.jsx)(iQ,{title:e.label,children:e.label},e.value)),n>0&&(0,$.jsx)(iQ,{children:`+${n}`})]})}if(a===`all`)return se.length===0?`${e.length} ${i}`:se.map(e=>e.label).join(`, `);if(e.length===1){let e=se[0];return e?e.label.length>18?`${e.label.slice(0,16)}…`:e.label:`1 ${i}`}return`${e.length} ${i}`},[e,r,a,o,se,i]);return(0,$.jsxs)($Z,{ref:H,style:{width:u},"data-component":h??`paginatedMultiSelect`,children:[(0,$.jsxs)(eQ,{style:{minHeight:y},$open:x,$active:e.length>0,$disabled:m,onMouseDown:e=>e.preventDefault(),onClick:K,"aria-disabled":m||void 0,children:[(0,$.jsx)(tQ,{children:ce}),(0,$.jsx)(aQ,{src:ps,$open:x,alt:``})]}),x&&(0,$.jsxs)(oQ,{style:{width:d},$align:f,children:[g&&g.length>0&&(0,$.jsx)(sQ,{onMouseDown:e=>e.stopPropagation(),children:g.map(e=>(0,$.jsx)(cQ,{type:`button`,$active:e.key===z,onClick:()=>ne(e.key),children:e.label},e.key))}),(0,$.jsx)(lQ,{type:`text`,placeholder:l,value:F,onChange:q,autoFocus:!0,onMouseDown:e=>e.stopPropagation()}),_&&_(z),(0,$.jsxs)(uQ,{ref:U,onScroll:re,children:[D?(0,$.jsxs)(pQ,{children:[(0,$.jsx)(`div`,{style:{width:`fit-content`},children:(0,$.jsx)(bo,{style:{fontSize:12}})}),(0,$.jsx)(`div`,{style:{flexGrow:`1`},children:`Loading…`})]}):T.length===0?(0,$.jsx)(pQ,{children:`No options found`}):T.map(e=>{let t=C.includes(e.value);return(0,$.jsxs)(dQ,{onMouseDown:e=>e.preventDefault(),onClick:()=>J(e.value),children:[(0,$.jsx)(dF,{checked:t,onChange:()=>{},style:{pointerEvents:`none`,flexShrink:0}}),s?s(e,t):(0,$.jsx)(fQ,{children:e.label})]},e.value)}),k&&(0,$.jsxs)(pQ,{children:[(0,$.jsx)(`div`,{style:{width:`fit-content`},children:(0,$.jsx)(bo,{style:{fontSize:12}})}),(0,$.jsx)(`div`,{style:{flexGrow:`1`},children:`Loading more…`})]})]}),(0,$.jsxs)(mQ,{children:[(0,$.jsx)(hQ,{type:`button`,onMouseDown:e=>e.preventDefault(),onClick:ae,children:`Clear`}),(0,$.jsx)(gQ,{type:`button`,$disabled:oe,onMouseDown:e=>e.preventDefault(),onClick:oe?void 0:ie,children:`Apply`})]})]})]})},$Z=n.div`
1927  position: relative;
1928`,eQ=n.div`
1929  width: 100%;
1930  border: 1px solid ${({$open:e,$active:t})=>e||t?`var(--teal-600)`:`var(--grey-200)`};
1931  background-color: ${({$disabled:e})=>e?`var(--grey-100)`:`var(--grey-50)`};
1932  border-radius: 6px;
1933  display: flex;
1934  align-items: center;
1935  gap: 8px;
1936  padding: 0 12px;
1937  color: ${({$disabled:e})=>e?`var(--grey-400)`:`var(--grey-700)`};
1938  cursor: ${({$disabled:e})=>e?`not-allowed`:`pointer`};
1939  user-select: none;
1940  transition: border-color 0.15s ease;
1941  &:hover {
1942    border-color: ${({$disabled:e})=>e?`var(--grey-200)`:`var(--teal-600)`};
1943  }
1944`,tQ=n.div`
1945  flex: 1;
1946  min-width: 0;
1947  font-size: 14px;
1948  color: inherit;
1949  display: flex;
1950  align-items: center;
1951  overflow: hidden;
1952  & > span.ellipsis,
1953  & > div.ellipsis {
1954    white-space: nowrap;
1955    overflow: hidden;
1956    text-overflow: ellipsis;
1957  }
1958`,nQ=n.span`
1959  color: var(--grey-400);
1960  white-space: nowrap;
1961  overflow: hidden;
1962  text-overflow: ellipsis;
1963`,rQ=n.div`
1964  display: flex;
1965  flex-wrap: wrap;
1966  gap: 4px;
1967  padding: 4px 0;
1968  width: 100%;
1969`,iQ=n.span`
1970  display: inline-flex;
1971  align-items: center;
1972  max-width: 100%;
1973  font-size: 12px;
1974  color: var(--grey-700);
1975  background: var(--grey-100);
1976  border: 1px solid var(--grey-200);
1977  border-radius: 4px;
1978  padding: 2px 6px;
1979  white-space: nowrap;
1980  overflow: hidden;
1981  text-overflow: ellipsis;
1982  line-height: 18px;
1983`,aQ=n.img`
1984  width: 16px;
1985  height: 16px;
1986  flex-shrink: 0;
1987  transform: rotate(${({$open:e})=>e?`180deg`:`0deg`});
1988  transition: transform 0.2s;
1989`,oQ=n.div`
1990  position: absolute;
1991  top: calc(100% + 4px);
1992  ${({$align:e})=>e===`left`?`left: 0;`:`right: 0;`}
1993  min-width: 240px;
1994  background: var(--white);
1995  border: 1px solid var(--grey-200);
1996  border-radius: 8px;
1997  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
1998  z-index: 1050;
1999  display: flex;
2000  flex-direction: column;
2001`,sQ=n.div`
2002  display: flex;
2003  gap: 4px;
2004  padding: 8px 10px 0;
2005  border-bottom: 1px solid var(--grey-100);
2006`,cQ=n.button`
2007  flex: 1;
2008  background: transparent;
2009  border: none;
2010  border-bottom: 2px solid ${({$active:e})=>e?`var(--teal-400)`:`transparent`};
2011  color: ${({$active:e})=>e?`var(--teal-600)`:`var(--grey-500)`};
2012  font-size: 13px;
2013  font-weight: ${({$active:e})=>e?600:500};
2014  cursor: pointer;
2015  padding: 8px 10px;
2016  &:hover {
2017    color: var(--teal-600);
2018  }
2019`,lQ=n.input`
2020  width: 100%;
2021  border: none;
2022  outline: none;
2023  padding: 12px 14px;
2024  font-size: 14px;
2025  border-bottom: 1px solid var(--grey-100);
2026  background: transparent;
2027`,uQ=n.div`
2028  max-height: 320px;
2029  overflow-y: auto;
2030  padding: 4px 0;
2031`,dQ=n.div`
2032  display: flex;
2033  align-items: center;
2034  gap: 10px;
2035  padding: 8px 12px;
2036  cursor: pointer;
2037  font-size: 14px;
2038  &:hover {
2039    background: var(--grey-50);
2040  }
2041`,fQ=n.span`
2042  color: var(--grey-800);
2043  white-space: nowrap;
2044  overflow: hidden;
2045  text-overflow: ellipsis;
2046  flex: 1;
2047`,pQ=n.div`
2048  display: flex;
2049  align-items: center;
2050  justify-content: flex-start;
2051  gap: 8px;
2052  padding: 16px;
2053  color: var(--grey-500);
2054  font-size: 13px;
2055`,mQ=n.div`
2056  display: flex;
2057  justify-content: flex-end;
2058  align-items: center;
2059  gap: 8px;
2060  padding: 8px 10px;
2061  border-top: 1px solid var(--grey-100);
2062`,hQ=n.button`
2063  background: transparent;
2064  border: none;
2065  color: var(--teal-600);
2066  font-size: 13px;
2067  font-weight: 500;
2068  cursor: pointer;
2069  padding: 6px 10px;
2070  border-radius: 6px;
2071  &:hover {
2072    background: var(--grey-50);
2073  }
2074`,gQ=n.button`
2075  background: ${({$disabled:e})=>e?`var(--grey-200)`:`var(--teal-600)`};
2076  color: var(--white);
2077  border: none;
2078  padding: 6px 14px;
2079  border-radius: 6px;
2080  font-size: 13px;
2081  font-weight: 600;
2082  cursor: ${({$disabled:e})=>e?`not-allowed`:`pointer`};
2083  &:hover {
2084    opacity: ${({$disabled:e})=>e?1:.9};
2085  }
2086`,_Q=100,vQ=({selected:e,onChange:t,disabled:n=!1,selectedHeaderLabel:r,selectedEmptyText:i,pickerLabel:a=`Add Queries`,loading:o=!1,loadingText:s=`Loading…`,componentName:c=`queryPickerWithMOTags`})=>{let l=(0,Q.useMemo)(()=>e.map(e=>e.uuid),[e]),u=(0,Q.useCallback)(async({search:e,page:t,pageSize:n,signal:r})=>{let i=e.trim(),a=Fi(i),o=i&&!a?{query_text:{operator:y.filterTypeMappings.SEARCH.value,value:i}}:{},s=a?{measurement_objective:{operator:y.filterTypeMappings.EQ.value,value:a}}:{},{data:c}=await Ni.queriesTable.list({pagination:{page:t,page_size:n},filters:{query_type:{operator:y.filterTypeMappings.EQ.value,value:`accepted`},...o,...s}},{signal:r});return{items:c.items.map(e=>({value:e.query_uuid,label:e.query_text,extra:{measurementObjective:e.measurement_objective??null}})),total:c.count}},[]),d=(0,Q.useCallback)((n,r)=>{let i=new Map;for(let t of e)i.set(t.uuid,t);for(let e of r){let t=e.extra??{};i.set(e.value,{uuid:e.value,text:e.label,measurementObjective:t.measurementObjective??null})}t(n.map(e=>i.get(e)).filter(e=>e!==void 0))},[e,t]),f=(0,Q.useCallback)(n=>{t(e.filter(e=>e.uuid!==n))},[e,t]),p=(0,Q.useCallback)(e=>{let t=e.extra??{},n=t.measurementObjective?Ai[t.measurementObjective]??t.measurementObjective:null;return(0,$.jsxs)(EQ,{children:[(0,$.jsx)(DQ,{children:e.label}),(0,$.jsx)(OQ,{children:n&&(0,$.jsx)(kQ,{children:n})})]})},[]),m=(0,Q.useCallback)(()=>`Search queries…`,[]);return(0,$.jsxs)(yQ,{"data-component":c,children:[(0,$.jsx)(bQ,{children:a}),(0,$.jsx)(QZ,{value:l,onChange:d,loadPage:u,placeholder:`Search queries…`,searchPlaceholder:`Search query or measurement objective…`,pageSize:_Q,disabled:n,size:`large`,width:`100%`,panelWidth:510,panelAlign:`left`,triggerMode:`custom`,renderTrigger:m,renderOptionContent:p}),(0,$.jsxs)(xQ,{children:[r,` (`,e.length,`)`]}),o?(0,$.jsx)(SQ,{children:s}):e.length===0?(0,$.jsx)(SQ,{children:i}):(0,$.jsx)(CQ,{children:e.map(e=>{let t=e.measurementObjective?Ai[e.measurementObjective]??e.measurementObjective:null;return(0,$.jsxs)(wQ,{children:[(0,$.jsx)(TQ,{title:e.text,children:e.text}),(0,$.jsx)(OQ,{children:t&&(0,$.jsx)(kQ,{children:t})}),(0,$.jsx)(AQ,{type:`button`,onClick:()=>f(e.uuid),disabled:n,"aria-label":`Remove`,children:(0,$.jsx)(cM,{})})]},e.uuid)})})]})},yQ=n.div`
2087  display: flex;
2088  flex-direction: column;
2089`,bQ=n.div`
2090  font-size: 14px;
2091  font-weight: 500;
2092  color: var(--grey-700);
2093  margin: 0 0 6px;
2094`,xQ=n.div`
2095  font-size: 13px;
2096  font-weight: 600;
2097  color: var(--grey-700);
2098  margin: 20px 0 8px;
2099`,SQ=n.div`
2100  font-size: 13px;
2101  color: var(--grey-500);
2102  padding: 16px;
2103  border: 1px dashed var(--grey-200);
2104  border-radius: 8px;
2105  text-align: center;
2106`,CQ=n.div`
2107  display: flex;
2108  flex-direction: column;
2109  border: 1px solid var(--grey-200);
2110  border-radius: 8px;
2111  overflow: hidden;
2112`,wQ=n.div`
2113  display: flex;
2114  align-items: center;
2115  gap: 8px;
2116  padding: 10px 12px;
2117  border-bottom: 1px solid var(--grey-100);
2118  background: var(--white);
2119  &:last-child {
2120    border-bottom: none;
2121  }
2122`,TQ=n.div`
2123  flex: 1;
2124  font-size: 13px;
2125  color: var(--grey-800);
2126  white-space: nowrap;
2127  overflow: hidden;
2128  text-overflow: ellipsis;
2129`,EQ=n.div`
2130  display: flex;
2131  align-items: center;
2132  gap: 8px;
2133  flex: 1;
2134  min-width: 0;
2135`,DQ=n.span`
2136  flex: 1;
2137  min-width: 0;
2138  font-size: 13px;
2139  color: var(--grey-800);
2140  line-height: 1.4;
2141  white-space: normal;
2142  word-break: break-word;
2143`,OQ=n.div`
2144  display: flex;
2145  align-items: center;
2146  gap: 4px;
2147  flex-shrink: 0;
2148`,kQ=n.span`
2149  font-size: 10px;
2150  font-weight: 500;
2151  color: var(--grey-600);
2152  background: var(--grey-100);
2153  border: 1px solid var(--grey-200);
2154  border-radius: 4px;
2155  padding: 1px 5px;
2156  white-space: nowrap;
2157  line-height: 16px;
2158`,AQ=n.button`
2159  background: transparent;
2160  border: none;
2161  color: var(--grey-500);
2162  font-size: 14px;
2163  cursor: pointer;
2164  padding: 4px 6px;
2165  border-radius: 4px;
2166  display: inline-flex;
2167  align-items: center;
2168  justify-content: center;
2169  &:hover:not(:disabled) {
2170    color: var(--error-600);
2171    background: var(--grey-50);
2172  }
2173  &:disabled {
2174    cursor: not-allowed;
2175    opacity: 0.5;
2176  }
2177`,jQ=e=>{let t=(0,Q.useContext)(qn),n=U(),r=F(),i=e?.trackEvent??!0,a=e?.componentName??`breadcrumbNavigator`,o=(0,Q.useMemo)(()=>z.getRouteFromPathname(r.pathname),[r.pathname]),s=(0,Q.useMemo)(()=>{let e=[];if(!o?.path||!o?.label)return e;let t=z.stripBrandPrefix(r.pathname).pathname,n=o.label,i=B.filter(e=>!e.path||e.path===o.path||e.path.includes(`:`)?!1:t.startsWith(e.path+`/`)||t===e.path);if(i.sort((e,t)=>{let n=e.path?.split(`/`).length??0;return(t.path?.split(`/`).length??0)-n}),i.length>0){let t=i[0];t.path&&t.label&&e.push({label:t.label,path:t.path,clickable:!0})}return e.push({label:n,path:t,clickable:!1}),e},[o,r.pathname]),c=t=>{t.clickable&&t.path&&(i&&io.logEvent(e?.eventName??Ha.navigationClick,{...e?.eventProperties??{},componentName:a,targetText:t.label,targetKey:t.path,targetPath:t.path}),n(t.path))};return t||s.length===0?null:(0,$.jsx)(MQ,{$css:e.css,children:s.map((e,t)=>(0,$.jsxs)(NQ,{children:[t>0&&(0,$.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.45499%2010.335C4.35999%2010.335%204.26499%2010.3%204.18999%2010.225C4.04499%2010.08%204.04499%209.84001%204.18999%209.69501L7.44999%206.43501C7.68999%206.19501%207.68999%205.80501%207.44999%205.56501L4.18999%202.30501C4.04499%202.16001%204.04499%201.92001%204.18999%201.77501C4.33499%201.63001%204.57499%201.63001%204.71999%201.77501L7.97999%205.03501C8.23499%205.29001%208.37999%205.63501%208.37999%206.00001C8.37999%206.36501%208.23999%206.71001%207.97999%206.96501L4.71999%2010.225C4.64499%2010.295%204.54999%2010.335%204.45499%2010.335Z'%20fill='%234B5654'/%3e%3c/svg%3e`,alt:`arrow right`,style:{width:`12px`,height:`12px`,cursor:`pointer`}}),(0,$.jsx)(PQ,{$clickable:e.clickable,onClick:()=>c(e),children:e.label})]},`${e.path}-${t}`))})},MQ=n.div`
2178  padding: ${ue.pageSectionGap}px ${ue.pagePadding}px 0px ${ue.pagePadding}px;
2179  ${Ce.flexStart()}
2180  gap: 8px;
2181
2182  ${({$css:e})=>e&&r`
2183      ${e}
2184    `}
2185`,NQ=n.div`
2186  ${Ce.flexStart()}
2187  gap: 8px;
2188`,PQ=n.span`
2189  font-size: 14px;
2190  font-weight: ${({$clickable:e})=>e?`500`:`400`};
2191  color: ${({$clickable:e})=>e?`var(--grey-600)`:`var(--teal-600)`};
2192  cursor: ${({$clickable:e})=>e?`pointer`:`default`};
2193  user-select: none;
2194
2195  ${({$clickable:e})=>e&&`
2196    &:hover {
2197      color: var(--teal-600);
2198      text-decoration: underline;
2199    }
2200  `}
2201`,FQ=class extends Q.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidUpdate(e){this.state.hasError&&e.resetKey!==this.props.resetKey&&this.setState({hasError:!1})}componentDidCatch(e,t){if(qE(e)&&!sessionStorage.getItem(`chunk_reload`)){sessionStorage.setItem(GE,`1`),window.location.reload();return}Un(e,{extra:{componentStack:t.componentStack}})}handleRetry=()=>{window.location.reload()};render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,$.jsxs)(IQ,{children:[(0,$.jsx)(LQ,{children:`Something went wrong`}),(0,$.jsx)(RQ,{children:`An unexpected error occurred while loading this page.`}),(0,$.jsx)(ys,{type:`primary`,onClick:this.handleRetry,children:`Try Again`})]}):this.props.children}},IQ=n.div`
2202  ${Ce.flexCenter()}
2203  flex-direction: column;
2204  padding: 40px;
2205  height: 100%;
2206  width: 100%;
2207  gap: 16px;
2208`,LQ=n.div`
2209  font-family: "Onest", sans-serif;
2210  font-size: 18px;
2211  font-weight: 600;
2212  color: var(--grey-800);
2213`,RQ=n.div`
2214  font-family: "Onest", sans-serif;
2215  font-size: 14px;
2216  color: var(--grey-500);
2217`,zQ=`data:image/svg+xml,%3csvg%20width='147'%20height='37'%20viewBox='0%200%20147%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.8518%208.24341C11.8518%208.24341%2019.179%205.63928%2024.8138%209.60619C25.7358%2010.2561%2025.2129%2010.8453%2024.5197%2011.439C20.7569%2014.6638%2013.6468%2014.7042%209.38686%2012.4284C9.30516%2012.3835%209.2258%2012.3407%209.15111%2012.3025L9.1441%2012.2958C9.1441%2012.2958%209.13943%2012.2935%209.1371%2012.2935C9.04606%2012.244%208.63757%2012.0596%208.23609%2012.3183C7.78558%2012.6084%207.85794%2013.0649%207.87195%2013.1211V13.1256C7.87195%2013.1256%207.72022%2013.753%209.59461%2017.1937C11.8845%2021.399%2016.2682%2024.3067%2020.9763%2025.665C22.4352%2026.0855%2024.6924%2026.2339%2025.5631%2027.5832C26.9263%2029.7061%2023.3852%2031.5613%2021.7373%2032.209C11.5904%2036.2276%201.10968%2027.5112%203.70535%2017.2634C3.8594%2016.6562%204.11384%2015.8444%204.49665%2015.109C4.49665%2015.109%206.90791%2010.0897%2011.8495%208.2389H11.8518'%20fill='%232E3331'/%3e%3cpath%20d='M27.0401%2025.9973C27.6027%2026.4695%2027.9505%2026.1862%2028.3613%2025.7094C29.8902%2023.9351%2030.3641%2020.1189%2029.7362%2017.96C29.4304%2016.9098%2029.1036%2016.3431%2028.0439%2017.1617C26.3796%2018.4503%2025.712%2021.7043%2026.0434%2023.6315C26.1461%2024.2252%2026.5826%2025.6128%2027.0425%2025.9973H27.0401Z'%20fill='%232E3331'/%3e%3cpath%20d='M9.15412%2012.2996H9.15172L9.14453%2012.2949C9.15172%2012.2972%209.15412%2012.2996%209.15412%2012.2996Z'%20fill='%232E3331'/%3e%3cpath%20d='M38.6484%2020.8317V20.8182C38.6484%2016.1362%2041.5242%2013.1992%2045.9686%2013.1992C49.9811%2013.1992%2052.4834%2015.6504%2052.6982%2018.5874L52.7122%2018.6976H49.3322L49.3042%2018.5739C49.0031%2017.1481%2047.9107%2015.9967%2046.0106%2015.9967C43.7534%2015.9967%2042.3015%2017.8385%2042.3015%2020.8452V20.8587C42.3015%2023.9193%2043.7674%2
2217025.6936%2046.0269%2025.6936C47.8383%2025.6936%2048.9891%2024.6547%2049.3205%2023.1165L49.3486%2022.9928H52.7285L52.7145%2023.0895C52.4414%2026.1524%2049.8667%2028.4777%2046.0129%2028.4777C41.4845%2028.4777%2038.6508%2025.5407%2038.6508%2020.8317H38.6484Z'%20fill='%232E3331'/%3e%3cpath%20d='M54.7836%2022.9929V13.5029H58.3643V22.3138C58.3643%2024.3917%2059.3703%2025.5701%2061.4128%2025.5701C63.4553%2025.5701%2064.7764%2024.1421%2064.7764%2022.0102V13.5052H68.3571V28.1899H64.7764V25.8894H64.7041C63.9128%2027.4546%2062.3465%2028.48%2060.0449%2028.48C56.6953%2028.48%2054.7812%2026.4021%2054.7812%2022.9952L54.7836%2022.9929Z'%20fill='%232E3331'/%3e%3cpath%20d='M71.2891%2013.5031H74.8698V16.0375H74.9421C75.416%2014.2632%2076.6811%2013.1973%2078.4365%2013.1973C78.8823%2013.1973%2079.3001%2013.267%2079.5732%2013.3367V16.4535C79.2698%2016.3434%2078.7236%2016.2601%2078.1214%2016.2601C76.0929%2016.2601%2074.8721%2017.4925%2074.8721%2019.6671V28.1878H71.2914V13.5031H71.2891Z'%20fill='%232E3331'/%3e%3cpath%20d='M81.3125%209.51421C81.3125%208.46177%2082.1902%207.61621%2083.3106%207.61621C84.431%207.61621%2085.2947%208.46177%2085.2947%209.51421C85.2947%2010.5667%2084.431%2011.3987%2083.3106%2011.3987C82.1902%2011.3987%2081.3125%2010.5397%2081.3125%209.51421ZM81.5132%2013.5036H85.094V28.1883H81.5132V13.5036Z'%20fill='%232E3331'/%3e%3cpath%20d='M88.0547%2022.9929V13.5029H91.6354V22.3138C91.6354%2024.3917%2092.6415%2025.5701%2094.6839%2025.5701C96.7264%2025.5701%2098.0499%2024.1421%2098.0499%2022.0102V13.5052H101.631V28.1899H98.0499V25.8894H97.9775C97.1862%2027.4546%2095.6199%2028.48%2093.3184%2028.48C89.9688%2028.48%2088.057%2026.4021%2088.057%2022.9952L88.0547%2022.9929Z'%20fill='%232E3331'/%3e%3cpath%20d='M104.565%2013.5031H108.146V15.8576H108.218C108.864%2014.2497%20110.433%2013.1973%20112.445%2013.1973C114.574%2013.1973%20116.112%2014.2789%20116.672%2016.1612H116.759C117.492%2014.3329%20119.303%2013.1973%20121.504%2013.1973C124.509%2013.1973%20126.479%2015.165%20126.479%2018.1019V28.1878H122.898V18.961C122.898%2017.1462%20121.92%2016.1072%20120.164%2016.1072C118.409%2016.1072%20117.261%2017.3396%20117.261%2019.1139V28.1878H113.78V18.7811C113.78%2017.1327%20112.746%2016.1072%20111.077%2016.1072C109.408%2016.1072%20108.143%2017.4093%20108.143%2019.1971V28.1878H104.562V13.5031H104.565Z'%20fill='%232E3331'/%3e%3c/svg%3e`,BQ=`curium_mobile_warning_dismissed`,VQ=`(max-width: 767px)`,HQ=({children:e})=>{let[t,n]=(0,Q.useState)(()=>window.matchMedia(VQ).matches),[r,i]=(0,Q.useState)(()=>sessionStorage.getItem(BQ)===`true`);return(0,Q.useEffect)(()=>{let e=window.matchMedia(VQ),t=e=>n(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),!t||r?(0,$.jsx)($.Fragment,{children:e}):(0,$.jsx)(UQ,{role:`alertdialog`,"aria-modal":`true`,"aria-labelledby":`mobile-gate-title`,"aria-describedby":`mobile-gate-desc`,children:(0,$.jsxs)(WQ,{children:[(0,$.jsx)(`img`,{src:zQ,alt:`Curium`,style:{width:`auto`,height:`32px`}}),(0,$.jsx)(GQ,{id:`mobile-gate-title`,children:`Desktop Experience Recommended`}),(0,$.jsx)(KQ,{id:`mobile-gate-desc`,children:`Some functionality in Curium is designed for a desktop experience. Please visit us on a larger screen for the best results.`}),(0,$.jsx)(qQ,{onClick:()=>{i(!0),sessionStorage.setItem(BQ,`true`)},autoFocus:!0,children:`Continue anyway`})]})})},UQ=n.div`
2218  ${Ce.flexCenter({column:!0})}
2219  ${Ce.occupy()}
2220  background-color: var(--grey-50);
2221  padding: 24px;
2222`,WQ=n.div`
2223  ${Ce.flexCenter({column:!0})}
2224  gap: 16px;
2225  max-width: 360px;
2226  text-align: center;
2227`,GQ=n.h1`
2228  font-size: 20px;
2229  font-weight: 600;
2230  color: var(--grey-900);
2231  margin: 8px 0 0;
2232`,KQ=n.p`
2233  font-size: 14px;
2234  font-weight: 400;
2235  color: var(--grey-600);
2236  line-height: 1.5;
2237  margin: 0;
2238`,qQ=n.button`
2239  margin-top: 8px;
2240  padding: 8px 20px;
2241  font-size: 14px;
2242  font-weight: 500;
2243  color: var(--grey-600);
2244  background: none;
2245  border: 1px solid var(--grey-300);
2246  border-radius: 8px;
2247  cursor: pointer;
2248
2249  &:hover {
2250    background-color: var(--grey-100);
2251  }
2252`,JQ=`data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2017.0625C4.5525%2017.0625%200.9375%2013.4475%200.9375%209C0.9375%204.5525%204.5525%200.9375%209%200.9375C13.4475%200.9375%2017.0625%204.5525%2017.0625%209C17.0625%2013.4475%2013.4475%2017.0625%209%2017.0625ZM9%202.0625C5.175%202.0625%202.0625%205.175%202.0625%209C2.0625%2012.825%205.175%2015.9375%209%2015.9375C12.825%2015.9375%2015.9375%2012.825%2015.9375%209C15.9375%205.175%2012.825%202.0625%209%202.0625Z'%20fill='%234B5654'/%3e%3cpath%20d='M9%2012.709C8.6925%2012.709%208.4375%2012.454%208.4375%2012.1465V8.39648
2252C8.4375%208.08898%208.6925%207.83398%209%207.83398C9.3075%207.83398%209.5625%208.08898%209.5625%208.39648V12.1465C9.5625%2012.454%209.3075%2012.709%209%2012.709Z'%20fill='%234B5654'/%3e%3cpath%20d='M9.00003%206.93375C8.90253%206.93375%208.80503%206.91125%208.71503%206.87375C8.62503%206.83625%208.54253%206.78375%208.46753%206.71625C8.40003%206.64125%208.34753%206.56625%208.31003%206.46875C8.27253%206.37875%208.25003%206.28125%208.25003%206.18375C8.25003%206.08625%208.27253%205.98875%208.31003%205.89875C8.34753%205.80875%208.40003%205.72625%208.46753%205.65125C8.54253%205.58375%208.62503%205.53125%208.71503%205.49375C8.89503%205.41875%209.10503%205.41875%209.28503%205.49375C9.37503%205.53125%209.45753%205.58375%209.53253%205.65125C9.60003%205.72625%209.65253%205.80875%209.69003%205.89875C9.72753%205.98875%209.75003%206.08625%209.75003%206.18375C9.75003%206.28125%209.72753%206.37875%209.69003%206.46875C9.65253%206.56625%209.60003%206.64125%209.53253%206.71625C9.45753%206.78375%209.37503%206.83625%209.28503%206.87375C9.19503%206.91125%209.09753%206.93375%209.00003%206.93375Z'%20fill='%234B5654'/%3e%3c/svg%3e`,YQ=({label:e,value:t,displayValue:n,loading:r,errorLabel:i,onClick:a,flat:o,subValue:s,caption:c,infoText:l,footer:u})=>(0,$.jsxs)(QQ,{onClick:a,$clickable:!!a,$flat:o,children:[(0,$.jsxs)(t$,{children:[(0,$.jsx)($Q,{$flat:o,children:e}),l&&(0,$.jsx)(Do,{title:l,children:(0,$.jsx)(n$,{src:`data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2017.0625C4.5525%2017.0625%200.9375%2013.4475%200.9375%209C0.9375%204.5525%204.5525%200.9375%209%200.9375C13.4475%200.9375%2017.0625%204.5525%2017.0625%209C17.0625%2013.4475%2013.4475%2017.0625%209%2017.0625ZM9%202.0625C5.175%202.0625%202.0625%205.175%202.0625%209C2.0625%2012.825%205.175%2015.9375%209%2015.9375C12.825%2015.9375%2015.9375%2012.825%2015.9375%209C15.9375%205.175%2012.825%202.0625%209%202.0625Z'%20fill='%234B5654'/%3e%3cpath%20d='M9%2012.709C8.6925%2012.709%208.4375%2012.454%208.4375%2012.1465V8.39648C8.4375%208.08898%208.6925%207.83398%209%207.83398C9.3075%207.83398%209.5625%208.08898%209.5625%208.39648V12.1465C9.5625%2012.454%209.3075%2012.709%209%2012.709Z'%20fill='%234B5654'/%3e%3cpath%20d='M9.00003%206.93375C8.90253%206.93375%208.80503%206.91125%208.71503%206.87375C8.62503%206.83625%208.54253%206.78375%208.46753%206.71625C8.40003%206.64125%208.34753%206.56625%208.31003%206.46875C8.27253%206.37875%208.25003%206.28125%208.25003%206.18375C8.25003%206.08625%208.27253%205.98875%208.31003%205.89875C8.34753%205.80875%208.40003%205.72625%208.46753%205.65125C8.54253%205.58375%208.62503%205.53125%208.71503%205.49375C8.89503%205.41875%209.10503%205.41875%209.28503%205.49375C9.37503%205.53125%209.45753%205.58375%209.53253%205.65125C9.60003%205.72625%209.65253%205.80875%209.69003%205.89875C9.72753%205.98875%209.75003%206.08625%209.75003%206.18375C9.75003%206.28125%209.72753%206.37875%209.69003%206.46875C9.65253%206.56625%209.60003%206.64125%209.53253%206.71625C9.45753%206.78375%209.37503%206.83625%209.28503%206.87375C9.19503%206.91125%209.09753%206.93375%209.00003%206.93375Z'%20fill='%234B5654'/%3e%3c/svg%3e`,alt:`About ${e}`})})]}),r?(0,$.jsx)(c$,{active:!0,title:!1,paragraph:{rows:1,width:`60%`}}):i==null?(0,$.jsx)(e$,{$flat:o,children:n??(t??0).toLocaleString()}):(0,$.jsx)(l$,{children:i}),s&&!r&&i==null&&(0,$.jsx)(i$,{children:s}),c&&(0,$.jsx)(a$,{children:c}),u&&!r&&(0,$.jsx)(r$,{children:u})]}),XQ=({label:e,engines:t,loading:n,errorLabel:r,onClick:i,flat:a})=>(0,$.jsxs)(QQ,{onClick:i,$clickable:!!i,$flat:a,children:[(0,$.jsx)($Q,{$flat:a,children:e}),n?(0,$.jsx)(c$,{active:!0,title:!1,paragraph:{rows:1,width:`60%`}}):r==null?t.length===0?(0,$.jsx)(o$,{children:(0,$.jsx)(l$,{children:`—`})}):(0,$.jsx)(o$,{children:t.map(e=>{let t=e?.toUpperCase(),n=y.generativeEngineMappings?.[t];return n?n.icon?(0,$.jsx)(Do,{title:n.label,children:(0,$.jsx)(s$,{src:n.icon,alt:n.label})},e):(0,$.jsx)(Te.Text,{children:n.label},e):null})}):(0,$.jsx)(o$,{children:(0,$.jsx)(l$,{children:r})})]}),ZQ=n.div`
2253  display: grid;
2254  grid-auto-flow: column;
2255  grid-auto-columns: 1fr;
2256  align-items: stretch;
2257
2258  & > * {
2259    position: relative;
2260  }
2261  /* Faded vertical divider between tiles: transparent at the ends so the
2262     line appears blurred/feathered rather than a hard edge-to-edge rule. */
2263  & > * + *::before {
2264    content: "";
2265    position: absolute;
2266    left: 0;
2267    top: 0;
2268    bottom: 0;
2269    width: 1px;
2270    background: linear-gradient(180deg, transparent 0%, var(--grey-200) 20%, var(--grey-200) 80%, transparent 100%);
2271  }
2272
2273  & > *:first-child {
2274    padding-left: 0;
2275  }
2276  & > *:last-child {
2277    padding-right: 0;
2278  }
2279`,QQ=n.div`
2280  flex: 1;
2281  min-width: 0;
2282  padding: ${({$flat:e})=>e?`0 16px`:`16px 20px`};
2283  background: white;
2284  border: ${({$flat:e})=>e?`none`:`1px solid rgba(226, 229, 229, 0.5)`};
2285  border-radius: ${({$flat:e})=>e?`0`:`12px`};
2286  ${Ce.flexCol()}
2287  gap: ${({$flat:e})=>e?`8px`:`6px`};
2288  cursor: ${({$clickable:e})=>e?`pointer`:`default`};
2289`,$Q=n(Te.Text)`
2290  font-size: ${({$flat:e})=>e?`14px`:`12px`};
2291  font-weight: ${({$flat:e})=>e?`400`:`500`};
2292  line-height: ${({$flat:e})=>e?`17.5px`:`normal`};
2293  color: ${({$flat:e})=>e?`var(--grey-700)`:`var(--grey-500)`};
2294  ${({$flat:e})=>e?``:`text-transform: uppercase;
2295         letter-spacing: 0.4px;`}
2296`,e$=n(Te.Text)`
2297  font-size: ${({$flat:e})=>e?`18px`:`24px`};
2298  font-weight: 600;
2299  color: ${({$flat:e})=>e?`var(--teal-600)`:`var(--grey-900)`};
2300  line-height: ${({$flat:e})=>e?`22.5px`:`1.2`};
2301`,t$=n.div`
2302  display: flex;
2303  align-items: center;
2304  gap: 4px;
2305`,n$=n.img`
2306  width: 14px;
2307  height: 14px;
2308  cursor: pointer;
2309  flex-shrink: 0;
2310`,r$=n.div`
2311  display: flex;
2312  margin-top: 4px;
2313`,i$=n.div`
2314  font-size: 13px;
2315  font-weight: 500;
2316  line-height: 1.4;
2317  color: var(--grey-700);
2318  font-variant-numeric: tabular-nums;
2319`,a$=n.div`
2320  font-size: 12px;
2321  line-height: 1.4;
2322  color: var(--grey-600);
2323`,o$=n.div`
2324  display: flex;
2325  flex-wrap: wrap;
2326  align-items: center;
2327  gap: 8px;
2328  min-height: 28px;
2329`,s$=n.img`
2330  width: 22px;
2331  height: 22px;
2332  object-fit: contain;
2333`,c$=n(Jo)`
2334  .ant-skeleton-paragraph {
2335    margin: 0 !important;
2336  }
2337  .ant-skeleton-paragraph > li {
2338    height: 24px !important;
2339    border-radius: 6px !important;
2340    margin-top: 0 !important;
2341  }
2342`,l$=n(Te.Text)`
2343  font-size: 20px;
2344  color: var(--grey-400);
2345`,u$={regular:24,compact:16},d$=({cells:e,ariaLabel:t,size:n=`regular`})=>(0,$.jsx)(f$,{role:`img`,"aria-label":t,$height:u$[n],children:e.map(e=>(0,$.jsx)(Do,{title:e.tooltip,children:e.share===null?(0,$.jsx)(v$,{"data-testid":`answer-strip-cell`,"data-state":`not_measured`,$height:u$[n]}):(0,$.jsx)(g$,{"data-testid":`answer-strip-cell`,"data-state":e.share>0?`filled`:`empty`,$height:u$[n],children:(0,$.jsx)(_$,{$share:Math.min(Math.max(e.share,0),1)})})},e.key))}),f$=n.div`
2346  display: flex;
2347  align-items: flex-end;
2348  gap: 4px;
2349  width: 100%;
2350  height: ${({$height:e})=>e}px;
2351  overflow: hidden;
2352`,p$=12,m$=8,h$=({$swatch:e})=>e?`flex: none; width: ${m$}px;`:`flex-grow: 1; flex-shrink: 1; flex-basis: 0; min-width: 2px; max-width: ${p$}px;`,g$=n.span`
2353  position: relative;
2354  ${h$}
2355  height: ${({$height:e})=>e}px;
2356  border-radius: 2px;
2357  background: var(--grey-200);
2358  overflow: hidden;
2359`,_$=n.span`
2360  position: absolute;
2361  left: 0;
2362  right: 0;
2363  bottom: 0;
2364  height: ${({$share:e})=>e*100}%;
2365  background: var(--success-500);
2366`,v$=n.span`
2367  ${h$}
2368  box-sizing: border-box;
2369  height: ${({$height:e})=>e}px;
2370  border: 1px dotted var(--grey-300);
2371  border-radius: 2px;
2372`,y$=({filledLabel:e,emptyLabel:t,notMeasuredLabel:n})=>(0,$.jsxs)(b$,{children:[(0,$.jsxs)(x$,{children:[(0,$.jsx)(g$,{$height:u$.compact,$swatch:!0,children:(0,$.jsx)(_$,{$share:1})}),e]}),(0,$.jsxs)(x$,{children:[(0,$.jsx)(g$,{$height:u$.compact,$swatch:!0}),t]}),n&&(0,$.jsxs)(x$,{children:[(0,$.jsx)(v$,{$height:u$.compact,$swatch:!0}),n]})]}),b$=n.div`
2373  display: flex;
2374  flex-wrap: wrap;
2375  gap: 16px;
2376  font-size: 12px;
2377  color: var(--grey-600);
2378`,x$=n.span`
2379  display: inline-flex;
2380  align-items: center;
2381  gap: 8px;
2382`;export{LF as $,WE as $t,tJ as A,MP as At,sR as B,Vj as Bt,wX as C,_F as Ct,rX as D,uF as Dt,sX as E,dF as Et,kH as F,RM as Ft,TI as G,AO as Gt,dL as H,mk as Ht,EH as I,MM as It,QF as J,sD as Jt,UI as K,OO as Kt,KR as L,kM as Lt,HU as M,SP as Mt,kU as N,nN as Nt,cX as O,HP as Ot,MH as P,QM as Pt,IF as Q,ZE as Qt,NR as R,_M as Rt,jX as S,TF as St,eX as T,pF as Tt,cL as U,ck as Ut,gL as V,Lj as Vt,VI as W,VO as Wt,PF as X,aD as Xt,ZF as Y,eD as Yt,FF as Z,QE as Zt,cZ as _,XF as _t,ZQ as a,nI as at,BX as b,VF as bt,zQ as c,iI as ct,vQ as d,GF as dt,Sf as en,aI as et,QZ as f,HF as ft,wZ as g,YF as gt,AZ as h,qF as ht,YQ as i,Xs as in,tI as it,VU as j,wP as jt,zY as k,NP as kt,FQ as l,$F as lt,FZ as m,RF as mt,y$ as n,_c as nn,BF as nt,JQ as o,cI as ot,qZ as p,UF as pt,NF as q,cD as qt,XQ as r,xc as rn,oI as rt,HQ as s,rI as st,d$ as t,gc as tn,KF as tt,jQ as u,WF as ut,SZ as v,JF as vt,pX as w,hF as wt,FX as x,jF as xt,ZX as y,zF as yt,fR as z,cM as zt};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.