PageSourceSearch

https://www.kaam.work/_next/static/chunks/4690-bd720125e2d9aa3e.js

js kaam.work collected 2026-10-09 22:57:31 UTC 26,771 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4690],{22550:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"}},24690:(e,t,n)=>{n.d(t,{Ay:()=>eW});var o=n(62026),r=n(12115),i=n(66534);let a=r.createContext({});var l=n(91203),s=n(79999),c=n(47650),u=n(53511),f=n(7805);let d=e=>{let t={offset:8,threshold:3};return e&&"object"==typeof e&&(t.offset=e.offset??8,t.threshold=e.threshold??3),[!!e,t]},p=({className:e,style:t,percent:n})=>r.createElement("progress",{className:e,max:"100",value:n,style:t});function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let g=r.forwardRef((e,t)=>{let{prefixCls:n,className:o,style:a,classNames:l,styles:s,components:c,title:u,description:d,icon:g,actions:h,role:$,closable:y,offset:v,notificationIndex:b,stackInThreshold:x,props:k,duration:w=4.5,showProgress:E,hovering:C,pauseOnHover:N=!0,onClick:S,onMouseEnter:z,onMouseLeave:O,onClose:P}=e,[I,M]=r.useState(0),R=`${n}-notice`,[A,H,j]=function(e){let t=r.useMemo(()=>!1===e?{closeIcon:null,disabled:!0}:"object"==typeof e&&null!==e?e:{},[e]),n=r.useMemo(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"\xd7",disabled:t.disabled??!1}),[t]),o=r.useMemo(()=>(0,i.KE)(n,!0),[n]);return[!!e,n,o]}(y),B=(0,i._q)(()=>{H.onClose?.(),P?.()}),[F,L]=r.useState(!1),[W,_]=function(e,t,n){let o=1e3*Math.max("number"==typeof e?e:0,0),a=(0,i._q)(t),l=(0,i._q)(n),[s,c]=r.useState(o>0),u=r.useRef(0),f=r.useRef(null);function d(){let e=Date.now(),t=f.current;null!==t&&(u.current+=e-t),f.current=e}let p=r.useCallback(()=>{d(),c(!1)},[]),m=r.useCallback(()=>{o>0?(f.current=Date.now(),c(!0)):l(0)},[o]);return r.useEffect(()=>{u.current=0,c(o>0)},[o]),r.useEffect(()=>{if(!s)return;let e=null;return!function t(){d(),u.current>=o?(l(1),a()):(l(Math.min(u.current/o,1)),e=(0,i.er)(t))}(),()=>{i.er.cancel(e)}},[o,s]),[m,p]}(w,B,M),q=100-Math.min(Math.max(100*I,0),100),X=c?.progress||p;r.useEffect(()=>{N&&(C?_():F||W())},[C,F,_,W,N]);let D=r.useRef(v);void 0!==v&&(D.current=v);let G=r.useRef(b);void 0!==b&&(G.current=b);let T=v??D.current,V=b??G.current??0,K=null!=u?r.createElement("div",{className:(0,f.$)(`${R}-title`,l?.title),style:s?.title},u):null,Q=null!=d?r.createElement("div",{className:(0,f.$)(`${R}-description`,l?.description),style:s?.description},d):null,Y=null!==Q,J=null;J=null!==K&&Y?r.createElement("div",{className:(0,f.$)(`${R}-section`,l?.section),style:s?.section},K,Q):K||Q,null!=g&&(J=r.createElement("div",{className:(0,f.$)(`${R}-wrapper`,l?.wrapper),style:s?.wrapper},r.createElement("div",{className:(0,f.$)(`${R}-icon`,l?.icon),style:s?.icon},g),J));let U=h?r.createElement("div",{className:(0,f.$)(`${R}-actions`,l?.actions),style:s?.actions},h):null,Z={"--notification-index":V,...s?.root,...a};void 0!==T&&(Z["--notification-y"]=`${T}px`);let ee=$??k?.role??"alert";return r.createElement("div",m({},k,{ref:t,role:ee,"data-notification-index":V,className:(0,f.$)(R,o,l?.root,{[`${R}-closable`]:A,[`${R}-stack-in-threshold`]:x}),style:Z,onClick:S,onMouseEnter:function(e){L(!0),N&&_(),z?.(e)},onMouseLeave:function(e){L(!1),N&&!C&&W(),O?.(e)}}),J,U,A&&r.createElement("button",m({className:(0,f.$)(`${R}-close`,l?.close),"aria-label":"Close"},j,{style:s?.close,onClick:function(e){e.preventDefault(),e.stopPropagation(),B()}}),H.closeIcon),E&&"number"==typeof w&&w>0&&r.createElement(X,{className:(0,f.$)(`${R}-progress`,l?.progress),percent:q,style:s?.progress}))}),h=r.createContext({}),$=({children:e,classNames:t})=>{let n=r.useMemo(()=>({classNames:t}),[t]);return r.createElement(h.Provider,{value:n},e)};function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let v=r.forwardRef((e,t)=>
1{let{listPrefixCls:n,height:o,topNoticeHeight:i=0,topNoticeWidth:a=0,className:l,style:s,...c}=e,u=`${n}-content`,d=r.useRef(o),p=o<d.current?"decrease":"increase";d.current=o;let m={...s,height:o,"--top-notificiation-height":`${i}px`,"--top-notificiation-width":`${a}px`};return r.createElement("div",y({},c,{className:(0,f.$)(u,`${u}-${p}`,l),style:m,ref:t}))});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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let x=["wrapper","root","icon","section","title","description","actions","close","progress"],k=e=>{var t,n;let{config:o,components:a,contextClassNames:l,classNames:s,styles:c,className:u,style:d,nodeRef:p,listHovering:m,stackEnabled:h,pauseOnHover:$,setNodeSize:y,onNoticeClose:v,...k}=e,{key:w,placement:E,...C}=o,N=String(w),S=r.useCallback(e=>{y(N,e)},[y,N]),z=(0,i.xK)(p,S);return r.createElement(g,b({},C,k,{ref:z,className:(0,f.$)(l?.notice,o.className,u),style:{...d,...o.style},classNames:(t=[s,o.classNames],x.reduce((e,n)=>(e[n]=(0,f.$)(...t.map(e=>e?.[n])),e),{})),styles:(n=[c,o.styles],x.reduce((e,t)=>(e[t]=Object.assign({},...n.map(e=>e?.[t])),e),{})),components:{...a,...o.components},hovering:h&&m,pauseOnHover:o.pauseOnHover??$,onClose:()=>{o.onClose?.(),v?.(w)}}))},w=e=>{let{configList:t=[],prefixCls:n="rc-notification",pauseOnHover:o,classNames:i,styles:a,components:l,stack:s,motion:c,placement:p,className:m,style:g,onNoticeClose:$,onAllRemoved:y}=e,{classNames:x}=r.useContext(h),w=r.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),E="function"==typeof c?c(p):c,[C,{offset:N,threshold:S}]=d(s),[z,O]=r.useState(!1),P=C&&(z||w.length<=S),I=r.useMemo(()=>{if(C&&!P)return{offset:N,threshold:S}},[P,N,C,S]),[M,R]=r.useState(0),A=r.useRef(null),[H,j,B,F,L]=function(e,t,n=0){let[o,i]=function(){let[e,t]=r.useState({});return[e,r.useCallback((e,n)=>{if(!n)return void t(t=>{if(!(e in t))return t;let n={...t};return delete n[e],n});let o={width:n.offsetWidth,height:n.offsetHeight};t(t=>{let n=t[e];return n&&n.width===o.width&&n.height===o.height?t:{...t,[e]:o}})},[])]}(),[a,l,s,c]=r.useMemo(()=>{let r,i,a=0,l=0,s=t?.threshold??0,c=new Map;return e.slice().reverse().forEach((e,u)=>{let f=String(e.key),d=o[f]?.height??0,p=t&&u>0?a+(t.offset??0)-d:a;c.set(f,p),0===u&&(r=d,i=o[f]?.width??0),(!t||u<s)&&(l=Math.max(l,p+d)),t?a=p+d:a+=d+n}),[c,l,r,i]},[e,n,o,t]);return[a,i,l,s,c]}(t,I,M),W=!!t.length;r.useEffect(()=>{let e=A.current;if(!e)return;let{gap:t,rowGap:n}=window.getComputedStyle(e),o=parseFloat(n||t)||0;R(e=>e===o?e:o)},[W]);let _=`${n}-list`;return r.createElement("div",{className:(0,f.$)(n,_,`${n}-${p}`,x?.list,m,i?.list,{[`${n}-stack`]:C,[`${n}-stack-expanded`]:P,[`${_}-hovered`]:z}),onMouseEnter:()=>{O(!0)},onMouseLeave:()=>{O(!1)},style:{...a?.list,...g}},r.createElement(v,{listPrefixCls:_,height:B,topNoticeHeight:F,topNoticeWidth:L,className:i?.listContent,style:a?.listContent,ref:A},r.createElement(u.aF,b({component:!1,keys:w,motionAppear:!0},E,{onAllRemoved:()=>{p&&y?.(p)}}),({config:e,className:t,style:s},c)=>{let{key:u}=e,f=String(u),d=function(e,t){let n=String(t),o=e.findIndex(e=>e.key===n);if(-1!==o)return e.length-o-1}(w,u),p=C&&void 0!==d&&d<S;return r.createElement(k,{key:u,config:e,components:l,contextClassNames:x,classNames:i,styles:a,className:t,style:s,nodeRef:c,prefixCls:n,offset:H.get(f),notificationIndex:d,stackInThreshold:p,listHovering:z,stackEnabled:C,pauseOnHover:o,setNodeSize:j,onNoticeClose:$})})))},E=r.forwardRef((e,t)=>{let{prefixCls:n="rc-notification",container:o,motion:a,maxCount:l,pauseOnHover:s,classNames:u,styles:f,components:d,className:p,style:m,onAllRemoved:g,stack:h,renderNotifications:$}=e,[y,v]=r.useState([]),[b,x]=r.useState({}),k=r.useRef(!1);r.useImperativeHandle(t,()=>({open:e=>{v(t=>{let n=[...t],o=n.findIndex(t=>t.key===e.key),r={...e};return o>=0?(r.times=(t[o]?.times??0)+1,n[o]=r):(r.times=0,n.push(r)),l&&l>0&&n.length>l&&(n=n.slice(-l)),n})},close:e=>{v(t=>t.filter(t=>t.key!==e))},destroy:()=>{v([])}})),r.useEffect(()=>{let e={};
1y.forEach(t=>{let n=t.placement??"topRight";e[n]=e[n]||[],e[n].push(t)}),Object.keys(b).forEach(t=>{e[t]=e[t]||[]}),x(e)},[y]);let E=(0,i._q)(e=>{x(t=>{let n={...t};return(n[e]||[]).length||delete n[e],n})});if(r.useEffect(()=>{Object.keys(b).length>0?k.current=!0:k.current&&(g?.(),k.current=!1)},[b,g]),!o)return null;let C=Object.keys(b);return(0,c.createPortal)(r.createElement(r.Fragment,null,C.map(e=>{let t=r.createElement(w,{key:e,configList:b[e],placement:e,prefixCls:n,pauseOnHover:s,classNames:u,styles:f,components:d,className:p?.(e),style:m?.(e),motion:a,stack:h,onNoticeClose:e=>{v(t=>t.filter(t=>t.key!==e))},onAllRemoved:E});return $?r.cloneElement($(t,{prefixCls:n,key:e}),{key:e}):t})),o)}),C=()=>document.body,N=0;var S=n(94924),z=n(50182),O=n(63714),P=n(84783),I=n(22550),M=n(67712);function R(){return(R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let A=r.forwardRef((e,t)=>r.createElement(M.A,R({},e,{ref:t,icon:I.A})));var H=n(87264),j=n(50),B=n(9800),F=n(40987),L=n(4545),W=n(93332),_=n(63288);let q=e=>{let{motionDurationMid:t,motionEaseInOut:n}=e,o=`${t} ${n}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(e=>`${e} ${o}`).join(", ")}},X=(e,t)=>{let{componentCls:n,antCls:o,colorSuccess:r,colorInfo:i,colorWarning:a,colorError:l,colorTextHeading:s,colorText:c,boxShadow:u,borderRadiusLG:f,fontSize:d,lineHeight:p,notificationBg:m,notificationPadding:g,notificationMarginEdge:h,margin:$,calc:y}=e,v=`${n}-notice`,[b,x]=(0,_.PN)(o,"notification");return{[v]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${(0,B.zA)(y(h).mul(2).equal())})`,padding:g,pointerEvents:"auto",[b("icon-font-size")]:t.iconFontSize,[b("title-font-size")]:t.titleFontSize,[b("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:c,background:m,borderRadius:f,boxShadow:u,fontSize:d,lineHeight:p,wordWrap:"break-word",overflow:"visible",...q(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:y($).mul(-1).equal(),height:$,content:'""'},...t.typeStyle&&{"&-success":{background:x("color-success-bg",m)},"&-error":{background:x("color-error-bg",m)},"&-info":{background:x("color-info-bg",m)},"&-warning":{background:x("color-warning-bg",m)}}},[`${v}-wrapper`]:{display:"flex",...t.contentStyle},[`${v}-title`]:{color:s,fontSize:x("title-font-size"),lineHeight:x("title-line-height")},[`${v}-icon`]:{flex:"none",fontSize:x("icon-font-size"),lineHeight:1,[`&${v}-icon-success`]:{color:r},[`&${v}-icon-info, &${v}-icon-loading`]:{color:i},[`&${v}-icon-warning`]:{color:a},[`&${v}-icon-error`]:{color:l}}}},D=e=>{let{componentCls:t,progressBg:n,notificationProgressHeight:o,fontSize:r,borderRadiusLG:i,width:a,notificationIconSize:l,colorText:s,motionDurationMid:c,fontSizeLG:u,lineHeightLG:f,marginSM:d,marginXS:p,paddingLG:m,notificationPaddingVertical:g,notificationPaddingHorizontal:h,notificationCloseButtonSize:$,colorIcon:y,borderRadiusSM:v,colorIconHover:b,colorBgTextHover:x,colorBgTextActive:k}=e,w=`${t}-notice`;return{...X(e,{width:a,iconFontSize:l,titleFontSize:u,titleLineHeight:f,contentStyle:{alignItems:"flex-start",gap:d},typeStyle:!0}),[`${w}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:p,minWidth:0},[`${w}-description`]:{color:s,fontSize:r},[`${w}-closable`]:{[`${w}-title, ${w}-description`]:{paddingInlineEnd:m},[`${w}-title + ${w}-description`]:{paddingInlineEnd:0}},[`${w}-close`]:{position:"absolute",top:g,insetInlineEnd:h,display:"flex",alignItems:"center",justifyContent:"center",width:$,height:$,color:y,background:"none",border:"none",borderRadius:v,outline:"none",transition:["color","background-color"].map(e=>`${e} ${c}`).join(", "),"&:hover":{color:b,backgroundColor:x},"&:active":{backgroundColor:k},...(0,L.K8)(e)},[`${w}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${(0,B.zA)(i)} * 2)`,blockSize:o,border:0,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:i,background:n}},[`${w}-actions`]:{float:"right",marginTop:d}}},G=e=>{let{componentCls:t,width:n}=e,o=`${t}-notice`,r=`${o}-actions`,i=D(e);return{[`${o}-pure-panel`]:{width:n,maxWidth:"100%",...i,[o]:{...i[o],position:"relative",width:"100%",maxWidth:"100%"},[r]:{...i[r],float:"none",textAlign:"end"}}}},T=e=>{let{componentCls:t}=e;return{[t]:D(e)}},V=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],K=(e,t)=>
1({blockEnd:"top"===e?"bottom":"top",inlineEnd:"left"===t?"right":"left"}),Q=e=>{let t=e?.x??"0",n=e?.y??"0";return`translate3d(${t}, ${n}, 0) scale(var(--notification-scale, 1))`},Y=(e,t)=>{let n=e.startsWith("bottom")?"bottom":"top",o=e.endsWith("Right")?"right":"left",{blockEnd:r,inlineEnd:i}=K(n,o),a="top"===e||"bottom"===e,l="top"===e||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:n,blockEnd:r,horizontal:o,inlineEnd:i,motionOffset:a?{x:"-50%",y:l}:{x:l},baseMotionOffset:a?{x:"-50%"}:void 0,isCenterPlacement:a}},J=e=>"bottom"===e?"column-reverse":"column",U=e=>{let t="var(--notification-margin-edge, 0px)";return`calc(var(--notification-${e}, ${t}) - ${t})`},Z=e=>"bottom"===e?"center top":"center bottom",ee=e=>(0,B.zA)(e.calc(e.marginXXL).mul(-1).equal()),et=e=>{let t=ee(e);return`inset(${t} ${t} ${t} ${t})`},en=(e,t)=>{let n=ee(e);return"bottom"===t?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},eo=(e,t)=>{let{componentCls:n}=e,{placement:o,vertical:r,blockEnd:i,horizontal:a,inlineEnd:l,isCenterPlacement:s}=t,c=`${n}-notice`,u=`${c}${n}-fade`,f=Q(t.motionOffset),d=Q(t.baseMotionOffset),p=Z(r);return{[`&${n}-${o}`]:{[r]:U(r),[i]:"auto",display:"flex",flexDirection:J(r),...s?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[a]:0,[l]:"auto"},[c]:{[r]:"var(--notification-y, 0)",...s?{left:"50%",transform:d}:{[a]:"var(--notification-x, 0)"},transformOrigin:p},[`${u}-appear-prepare, ${u}-enter-prepare`]:{opacity:0,transform:f,transition:"none"},[`${u}-appear-start, ${u}-enter-start`]:{opacity:0,transform:f},[`${u}-appear-active, ${u}-enter-active`]:{opacity:1,transform:d},[`${u}-leave-start`]:{opacity:1,transform:d},[`${u}-leave-active`]:{opacity:0,transform:f},[`&${n}-stack:not(${n}-stack-expanded)`]:{[c]:{clipPath:en(e,r)},[`${c}[data-notification-index='0']`]:{clipPath:et(e)}}}}},er=(e,t=V)=>{let{notificationMotionOffset:n}=e,o=(0,B.zA)(n);return{...t.reduce((t,n)=>({...t,...eo(e,Y(n,o))}),{})}},ei=e=>{let{componentCls:t}=e;return{[t]:er(e)}},ea=e=>({zIndexPopup:e.zIndexPopupBase+F.jH+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),el=e=>{let t=e.paddingMD,n=e.paddingLG;return(0,W.oX)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,B.zA)(e.paddingMD)} ${(0,B.zA)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},es=e=>`inset(${e} ${e} ${e} ${e})`,ec=e=>{let{componentCls:t,motionDurationMid:n,motionDurationSlow:o,motionEaseInOut:r}=e,i=`${t}-list`,a=`${i}-content`;return{[a]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${a}-decrease`]:{transition:`height calc(${o} * 2) ${r} ${n}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},eu=(e,t)=>{let{componentCls:n,notificationMarginEdge:o}=e,r="--notification-margin-edge",i=`${n}-notice`,a=`${n}-list`,l=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(o).mul(2)).equal():"100%",s=t.stackVisibleCount??3,c=`${i}:nth-last-child(n + ${s+1})`,u=es((0,B.zA)(e.calc(e.marginXXL).mul(-1).equal()));return{[n]:{...(0,L.dF)(e),[r]:(0,B.zA)(o),position:"fixed",zIndex:e.zIndexPopup,width:l,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${n}-hook-holder`]:{position:"relative"},[`&${a}`]:{maxHeight:"100vh",padding:`var(${r})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...ec(e),[`&${n}-stack`]:{[i]:{clipPath:u},[`&:not(${n}-stack-expanded)`]:{[i]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${i}:not(${i}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[c]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${i}-actions`]:{float:"left"}}}}};(0,_.bf)(["Notification","PurePanel"],e=>G(el(e)),ea);let ef=(e,t)=>{let n=t.itemStyle??T;return[eu(e,t),n(e),ei(e)]};(0,_.OF)("Notification",e=>ef(el(e),{listWidthKey:"width"}),ea);let ed=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;
1return(0,W.oX)(el(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},ep=e=>({zIndexPopup:e.zIndexPopupBase+F.jH+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),em=e=>{let{fontSize:t,fontSizeLG:n,lineHeight:o}=e;return X(e,{width:"max-content",iconFontSize:n,titleFontSize:t,titleLineHeight:o,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},eg=e=>{let{componentCls:t}=e,n=`${t}-notice`,o=`${t}-list-content`,{"&::after":r,...i}=em(e)[n],a={...i,position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}, transform ${e.motionDurationFast} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,content:'""'};return{[t]:{[`&${t}-stack`]:{[o]:{isolation:"isolate","&::before":{...a,top:`calc(var(--top-notificiation-height) - ${(0,B.zA)(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${(0,B.zA)(e.margin)})`},"&::after":{...a,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${(0,B.zA)(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[o]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},eh=e=>{let{componentCls:t}=e,n=`${t}-notice`,o=em(e);return{[`${n}-pure-panel`]:{width:"max-content",maxWidth:"100%",...o,[n]:{...o[n],position:"relative",width:"max-content",maxWidth:"100%"}}}},e$=(0,_.bf)(["Message","PurePanel"],e=>eh(ed(e)),ep),ey=e=>({[e.componentCls]:em(e)}),ev=(0,_.OF)("Message",e=>{let t=ed(e);return[ef(t,{stackVisibleCount:1,itemStyle:ey}),eg(t)]},ep),eb={info:r.createElement(A,null),success:r.createElement(z.A,null),error:r.createElement(O.A,null),warning:r.createElement(P.A,null),loading:r.createElement(H.A,
1null)},ex=(e,t)=>t||e&&eb[e]||null;var ek=n(90027),ew=n(745);let eE=(e,t)=>r.useMemo(()=>{let n=e??t;return!!n&&{...(0,ek.Qd)(t)?t:{},...(0,ek.Qd)(n)?n:{}}},[e,t]);function eC(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),o=()=>{t?.()};return o.then=(e,t)=>n.then(e,t),o.promise=n,o}let eN=({children:e,prefixCls:t})=>{let n=(0,S.A)(t),[o,i]=ev(t,n);return r.createElement($,{classNames:{list:(0,f.$)(o,i,n)}},e)},eS=(e,{prefixCls:t,key:n})=>r.createElement(eN,{prefixCls:t,key:n},e),ez=r.forwardRef((e,t)=>{let{top:n,prefixCls:o,getContainer:a,maxCount:s,duration:c=3,rtl:u,classNames:d,styles:p,transitionName:m,pauseOnHover:g=!0,stack:h,onAllRemoved:$}=e,{getPrefixCls:y,direction:v,getPopupContainer:b}=(0,l.TP)("message"),{message:x}=r.useContext(l.QO),k=o||y("message"),[w,S]=(0,j.AV)([x?.classNames,d],[x?.styles,p],{props:e}),[z,O]=function(e={}){let{getContainer:t=C,motion:n,prefixCls:o,placement:a,closable:l,duration:s,showProgress:c,pauseOnHover:u,classNames:f,styles:d,components:p,maxCount:m,className:g,style:h,onAllRemoved:$,stack:y,renderNotifications:v}=e,b={placement:a,closable:l,duration:s,showProgress:c},[x,k]=r.useState(),w=r.useRef(null),[S,z]=r.useState([]),O=r.createElement(E,{container:x,ref:w,prefixCls:o,motion:n,maxCount:m,pauseOnHover:u,classNames:f,styles:d,components:p,className:g,style:h,onAllRemoved:$,stack:y,renderNotifications:v}),P=(0,i._q)(e=>{let t=function(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{let o=e[n];void 0!==o&&(t[n]=o)})}),t}(b,e);(null===t.key||void 0===t.key)&&(t.key=`rc-notification-${N}`,N+=1),z(e=>[...e,{type:"open",config:t}])}),I=r.useMemo(()=>({open:P,close:e=>{z(t=>[...t,{type:"close",key:e}])},destroy:()=>{z(e=>[...e,{type:"destroy"}])}}),[]);return r.useEffect(()=>{k(t())}),r.useEffect(()=>{w.current&&S.length&&(S.forEach(e=>{switch(e.type){case"open":w.current?.open(e.config);break;case"close":w.current?.close(e.key);break;case"destroy":w.current?.destroy()}}),z(e=>{let t=e.filter(e=>!S.includes(e));return t.length===e.length?e:t}))},[S]),[I,O]}({prefixCls:k,style:()=>(function(e,t){return{...(0,ek.R)(e)&&{"--notification-top":(0,B.zA)(e)},...(0,ek.R)(void 0)&&{"--notification-bottom":(0,B.zA)(void 0)}}})(n??8),className:()=>(0,f.$)({[`${k}-rtl`]:u??"rtl"===v}),motion:()=>({motionName:m??`${k}-fade`}),closable:!1,duration:c,getContainer:()=>a?.()||b?.()||document.body,maxCount:s,onAllRemoved:$,classNames:w,styles:S,renderNotifications:eS,pauseOnHover:g,stack:eE(h,!1)});return r.useImperativeHandle(t,()=>({...z,prefixCls:k,message:x})),O}),eO=0;function eP(e){let t=r.useRef(null);return(0,ew.rJ)("Message"),[r.useMemo(()=>{let n=e=>{t.current?.close(e)},o=o=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:r,prefixCls:i,message:a}=t.current,l=a?.className||{},s=a?.style||{},c=`${i}-notice`,{content:u,icon:d,type:p,key:m,className:g,style:h,onClose:$,classNames:y={},styles:v={},...b}=o,x=m;(0,ek.R)(x)||(eO+=1,x=`antd-message-${eO}`);let k={...e,...o},w=(0,j.Jb)(y,{props:k}),E=(0,j.Jb)(v,{props:k}),C=ex(p,d),N=p?`${c}-icon-${p}`:void 0;return eC(e=>(r({...b,key:x,icon:C,title:u,classNames:{...w,wrapper:(0,f.$)(p&&`${i}-${p}`,w.wrapper),icon:(0,f.$)(N,w.icon)},styles:E,placement:"top",className:(0,f.$)({[`${c}-${p}`]:p},g,l),style:{...s,...h},onClose:()=>{$?.(),e()}}),()=>{n(x)}))},r={open:o,destroy:e=>{void 0!==e?n(e):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,n,r)=>{let i,a,l;return i=(0,ek.Qd)(t)&&"content"in t?t:{content:t},(0,ek.Tn)(n)?l=n:(a=n,l=r),o({onClose:l,duration:a,...i,type:e})}}),r},[]),r.createElement(ez,{key:"message-holder",...e,ref:t})]}let eI=null,eM=e=>e(),eR=[],eA={};function eH(){let{getContainer:e,duration:t,rtl:n,maxCount:o,top:r,stack:i}=eA,a=e?.()||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:o,top:r,stack:i}}let ej=r.forwardRef((e,t)=>{let{messageConfig:n,sync:o}=e,{getPrefixCls:i}=(0,r.useContext)(l.QO),s=eA.prefixCls||i("message"),c=(0,r.useContext)(a),[u,f]=eP({...n,prefixCls:s,...c.message});return r.useImperativeHandle(t,()=>{let e={...u};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(o(),u[t].apply(u,e))}),{instance:e,sync:o}}),f}),eB=r.forwardRef((e,t)=>
1{let[n,o]=r.useState(eH),i=()=>{o(eH)};r.useEffect(i,[]);let a=(0,s.cr)(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),u=a.getTheme(),f=r.createElement(ej,{ref:t,sync:i,messageConfig:n});return r.createElement(s.Ay,{prefixCls:l,iconPrefixCls:c,theme:u},a.holderRender?a.holderRender(f):f)}),eF=()=>{if(!eI){let e=document.createDocumentFragment(),t={fragment:e};eI=t,eM(()=>{(0,i.XX)(r.createElement(eB,{ref:e=>{let{instance:n,sync:o}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=o,eF())})}}),e)});return}eI.instance&&(eR.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case"open":eM(()=>{let t=eI.instance.open({...eA,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case"destroy":eM(()=>{eI?.instance.destroy(e.key)});break;default:eM(()=>{var n;let r=(n=eI.instance)[t].apply(n,(0,o.A)(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),eR=[])},eL={open:function(e){let t=eC(t=>{let n,o={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return eR.push(o),()=>{n?eM(()=>{n()}):o.skipped=!0}});return eF(),t},destroy:e=>{eR.push({type:"destroy",key:e}),eF()},config:function(e){eA={...eA,...e},eM(()=>{eI?.sync?.()})},useMessage:function(e){return eP(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,style:o,type:i,icon:a,content:s,classNames:c,styles:u,...d}=e,{getPrefixCls:p,className:m,style:h,classNames:$,styles:y}=(0,l.TP)("message"),v=t||p("message"),b=`${v}-notice`,x=(0,S.A)(v),[k,w]=ev(v,x),[E,C]=(0,j.AV)([$,c],[y,u],{props:e}),N=ex(i,a),z=i?`${b}-icon-${i}`:void 0,O={wrapper:(0,f.$)(i&&`${v}-${i}`,E.wrapper),icon:(0,f.$)(z,E.icon),title:E.title},P={wrapper:C.wrapper,icon:C.icon,title:C.title};return r.createElement("div",{className:(0,f.$)(`${b}-pure-panel`,k,n,w,x,E.root),style:C.root},r.createElement(e$,{prefixCls:v}),r.createElement(g,{...d,prefixCls:v,className:m,style:{...h,...o},duration:null,icon:N,title:s,classNames:O,styles:P}))},_InternalListDoNotUseOrYouWillBeFired:e=>{let{items:t,classNames:n,style:o}=e,{getPrefixCls:i}=(0,l.TP)("message"),a=i("message"),s=(0,S.A)(a),[c,u]=ev(a,s),d=`${a}-notice`,p=t.map(e=>{let{content:t,duration:n,key:o,type:r}=e,i=r?`${d}-icon-${r}`:void 0;return{key:o,duration:n,icon:ex(r),title:t,className:`${d}-${r}`,classNames:{wrapper:`${a}-${r}`,icon:i}}});return r.createElement(w,{prefixCls:a,placement:"top",configList:p,className:(0,f.$)(c,u,s),classNames:{...n,wrapper:n?.wrapper,title:n?.title},style:o,stack:!1})}};["success","info","warning","error","loading"].forEach(e=>{eL[e]=(...t)=>(function(e,t){(0,s.cr)();let n=eC(n=>{let o,r={type:e,args:t,resolve:n,setCloseFn:e=>{o=e}};return eR.push(r),()=>{o?eM(()=>{o()}):r.skipped=!0}});return eF(),n})(e,t)});let eW=eL}}]);

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.