"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12746],{50801:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(79353),a=n(54772),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},c=n(55790),i=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,o.Z)({},e,{ref:t,icon:r}))})},56779:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(79353),a=n(54772),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},c=n(55790),i=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,o.Z)({},e,{ref:t,icon:r}))})},49842:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(79353),a=n(54772),r={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"},c=n(55790),i=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,o.Z)({},e,{ref:t,icon:r}))})},63506:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let o=n(9550),a=n(54772);t.default=function(e){let{html:t,height:n=null,width:r=null,children:c,dataNtpc:i=""}=e;return(0,a.useEffect)(()=>{i&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(i)}})},[i]),(0,o.jsxs)(o.Fragment,{children:[c,t?(0,o.jsx)("div",{style:{height:null!=n?"".concat(n,"px"):"auto",width:null!=r?"".concat(r,"px"):"auto"},"data-ntpc":i,dangerouslySetInnerHTML:{__html:t}}):null]})}},32651:function(e,t,n){var o;let a;Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=void 0;let r=n(9550),c=n(54772),i=(o=n(41319))&&o.__esModule?o:{default:o};t.GoogleAnalytics=function(e){let{gaId:t,dataLayerName:n="dataLayer"}=e;return void 0===a&&(a=n),(0,c.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n window['".concat(n,"'] = window['").concat(n,"'] || [];\n function gtag(){window['").concat(n,"'].push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '").concat(t,"');")}}),(0,r.jsx)(i.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t)})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),n=0;n{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n (function(w,l){\n w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n ".concat(s?"w[l].push(".concat(JSON.stringify(s),")"):"","\n })(window,'").concat(n,"');")}}),(0,r.jsx)(i.default,{id:"_next-gtm","data-ntpc":"GTM",src:"https://www.googletagmanager.com/gtm.js?id=".concat(t).concat(u).concat(o?">m_auth=".concat(o):"").concat(l?">m_preview=".concat(l,">m_cookies_win=x"):"")})]})},t.sendGTMEvent=e=>{if(void 0===a){console.warn("@next/third-parties: GTM has not been initialized");return}window[a]?window[a].push(e):console.warn("@next/third-parties: GTM dataLayer ".concat(a," does not exist"))}},62686:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var a=n(78380);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return o(a).default}});var r=n(44094);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return o(r).default}});var c=n(28277);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return c.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return c.sendGTMEvent}});var i=n(32651);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return i.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return i.sendGAEvent}})},44094:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let a=n(9550),r=o(n(41319)),c=n(11414),i=o(n(63506)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"};t.default=function(e){let{html:t,scripts:n,stylesheets:o}=(0,c.YouTubeEmbed)(e);return(0,a.jsx)(i.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==n?void 0:n.map(e=>(0,a.jsx)(r.default,{src:e.url,strategy:l[e.strategy],stylesheets:o},e.url))})}},72184:function(e,t,n){n.d(t,{J:function(){return a}});var o=n(54772);let a=o.createContext({}),r=o.createContext({message:{},notification:{},modal:{}});t.Z=r},81897:function(e,t,n){n.d(t,{Z:function(){return R}});var o=n(54772),a=n(65414),r=n.n(a),c=n(94210),i=n(68216),l=n(32141),s=n(52039),u=n(35164),d=n(50801),f=n(19116),m=n(56779),p=n(49842),g=n(30373);let v={info:o.createElement(p.Z,null),success:o.createElement(d.Z,null),error:o.createElement(f.Z,null),warning:o.createElement(m.Z,null),loading:o.createElement(g.Z,null)},b=e=>{let{prefixCls:t,type:n,icon:a,children:c}=e;return o.createElement("div",{className:r()("".concat(t,"-custom-content"),"".concat(t,"-").concat(n))},a||v[n],o.createElement("span",null,c))};var y=n(43501),h=n(82662),x=n(15510),w=n(74593),E=n(54621);let O=e=>{let{componentCls:t,iconCls:n,boxShadow:o,colorText:a,colorSuccess:r,colorError:c,colorWarning:i,colorInfo:l,fontSizeLG:s,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:m,borderRadiusLG:p,zIndexPopup:g,contentPadding:v,contentBg:b}=e,h="".concat(t,"-notice"),w=new y.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),E=new y.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),O={padding:m,textAlign:"center",["".concat(t,"-custom-content")]:{display:"flex",alignItems:"center"},["".concat(t,"-custom-content > ").concat(n)]:{marginInlineEnd:f,fontSize:s},["".concat(h,"-content")]:{display:"inline-block",padding:v,background:b,borderRadius:p,boxShadow:o,pointerEvents:"all"},["".concat(t,"-success > ").concat(n)]:{color:r},["".concat(t,"-error > ").concat(n)]:{color:c},["".concat(t,"-warning > ").concat(n)]:{color:i},["".concat(t,"-info > ").concat(n,",\n ").concat(t,"-loading > ").concat(n)]:{color:l}};return[{[t]:Object.assign(Object.assign({},(0,x.Wf)(e)),{color:a,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,["".concat(t,"-move-up")]:{animationFillMode:"forwards"},["\n ".concat(t,"-move-up-appear,\n ").concat(t,"-move-up-enter\n ")]:{animationName:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},["\n ".concat(t,"-move-up-appear").concat(t,"-move-up-appear-active,\n ").concat(t,"-move-up-enter").concat(t,"-move-up-enter-active\n ")]:{animationPlayState:"running"},["".concat(t,"-move-up-leave")]:{animationName:E,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},["".concat(t,"-move-up-leave").concat(t,"-move-up-leave-active")]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{["".concat(h,"-wrapper")]:Object.assign({},O)}},{["".concat(t,"-notice-pure-panel")]:Object.assign(Object.assign({},O),{padding:0,textAlign:"start"})}]};var C=(0,w.I$)("Message",e=>[O((0,E.IX)(e,{height:150}))],e=>({zIndexPopup:e.zIndexPopupBase+h.u6+10,contentBg:e.colorBgElevated,contentPadding:"".concat((e.controlHeightLG-e.fontSize*e.lineHeight)/2,"px ").concat(e.paddingSM,"px")})),k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let j=e=>{let{children:t,prefixCls:n}=e,a=(0,u.Z)(n),[c,i,l]=C(n,a);return c(o.createElement(s.JB,{classNames:{list:r()(i,l,a)}},t))},Z=(e,t)=>{let{prefixCls:n,key:a}=t;return o.createElement(j,{prefixCls:n,key:a},e)},N=o.forwardRef((e,t)=>{let{top:n,prefixCls:a,getContainer:c,maxCount:u,duration:d=3,rtl:f,transitionName:m,onAllRemoved:p}=e,{getPrefixCls:g,getPopupContainer:v,message:b,direction:y}=o.useContext(i.E_),h=a||g("message"),x=o.createElement("span",{className:"".concat(h,"-close-x")},o.createElement(l.Z,{className:"".concat(h,"-close-icon")})),[w,E]=(0,s.lm)({prefixCls:h,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>r()({["".concat(h,"-rtl")]:null!=f?f:"rtl"===y}),motion:()=>({motionName:null!=m?m:"".concat(h,"-move-up")}),closable:!1,closeIcon:x,duration:d,getContainer:()=>(null==c?void 0:c())||(null==v?void 0:v())||document.body,maxCount:u,onAllRemoved:p,renderNotifications:Z});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:h,message:b})),E}),S=0;var P=n(98777),M=n(88094),I=n(72184),_=(0,w.I$)("App",e=>{let{componentCls:t,colorText:n,fontSize:o,lineHeight:a,fontFamily:r}=e;return{[t]:{color:n,fontSize:o,lineHeight:a,fontFamily:r,["&".concat(t,"-rtl")]:{direction:"rtl"}}}},()=>({}));let T=e=>{let{prefixCls:t,children:n,className:a,rootClassName:l,message:s,notification:u,style:d,component:f="div"}=e,{direction:m,getPrefixCls:p}=(0,o.useContext)(i.E_),g=p("app",t),[v,y,h]=_(g),x=r()(y,g,a,l,h,{["".concat(g,"-rtl")]:"rtl"===m}),w=(0,o.useContext)(I.J),E=o.useMemo(()=>({message:Object.assign(Object.assign({},w.message),s),notification:Object.assign(Object.assign({},w.notification),u)}),[s,u,w.message,w.notification]),[O,C]=function(e){let t=o.useRef(null);return(0,c.ln)("Message"),[o.useMemo(()=>{let e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:a,prefixCls:c,message:i}=t.current,l="".concat(c,"-notice"),{content:s,icon:u,type:d,key:f,className:m,style:p,onClose:g}=n,v=k(n,["content","icon","type","key","className","style","onClose"]),y=f;return null==y&&(S+=1,y="antd-message-".concat(S)),function(e){let t;let n=new Promise(n=>{t=e(()=>{n(!0)})}),o=()=>{null==t||t()};return o.then=(e,t)=>n.then(e,t),o.promise=n,o}(t=>(a(Object.assign(Object.assign({},v),{key:y,content:o.createElement(b,{prefixCls:c,type:d,icon:u},s),placement:"top",className:r()(d&&"".concat(l,"-").concat(d),m,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),p),onClose:()=>{null==g||g(),t()}})),()=>{e(y)}))},a={open:n,destroy:n=>{var o;void 0!==n?e(n):null===(o=t.current)||void 0===o||o.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{a[e]=(t,o,a)=>{let r,c,i;return r=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof o?i=o:(c=o,i=a),n(Object.assign(Object.assign({onClose:i,duration:c},r),{type:e}))}}),a},[]),o.createElement(N,Object.assign({key:"message-holder"},e,{ref:t}))]}(E.message),[j,Z]=(0,M.Z)(E.notification),[T,R]=(0,P.Z)(),B=o.useMemo(()=>({message:O,notification:j,modal:T}),[O,j,T]);(0,c.ln)("App")(!(h&&!1===f),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");let z=!1===f?o.Fragment:f;return v(o.createElement(I.Z.Provider,{value:B},o.createElement(I.J.Provider,{value:E},o.createElement(z,Object.assign({},!1===f?void 0:{className:x,style:d}),R,C,Z,n))))};T.useApp=()=>o.useContext(I.Z);var R=T},75853:function(e,t,n){n.d(t,{O:function(){return I},Z:function(){return T}});var o=n(3565),a=n(54772),r=n(50801),c=n(19116),i=n(56779),l=n(49842),s=n(65414),u=n.n(s),d=n(82662),f=n(84786),m=n(89587),p=n(36272),g=n(44898),v=n(77070),b=n(76191),y=n(85716);function h(e){return!!(null==e?void 0:e.then)}var x=e=>{let{type:t,children:n,prefixCls:o,buttonProps:r,close:c,autoFocus:i,emitEvent:l,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,f=a.useRef(!1),m=a.useRef(null),[p,g]=(0,v.Z)(!1),x=function(){null==c||c.apply(void 0,arguments)};a.useEffect(()=>{let e=null;return i&&(e=setTimeout(()=>{var e;null===(e=m.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let w=e=>{h(e)&&(g(!0),e.then(function(){g(!1,!0),x.apply(void 0,arguments),f.current=!1},e=>{if(g(!1,!0),f.current=!1,null==s||!s())return Promise.reject(e)}))};return a.createElement(b.ZP,Object.assign({},(0,y.nx)(t),{onClick:e=>{let t;if(!f.current){if(f.current=!0,!d){x();return}if(l){if(t=d(e),u&&!h(t)){f.current=!1,x(e);return}}else if(d.length)t=d(c),f.current=!1;else if(!h(t=d())){x();return}w(t)}},loading:p,prefixCls:o},r,{ref:m}),n)},w=n(54161),E=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:o,mergedOkCancel:r,rootPrefixCls:c,close:i,onCancel:l,onConfirm:s}=(0,a.useContext)(w.t);return r?a.createElement(x,{isSilent:o,actionFn:l,close:function(){null==i||i.apply(void 0,arguments),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:"".concat(c,"-btn")},n):null},O=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:o,rootPrefixCls:r,okTextLocale:c,okType:i,onConfirm:l,onOk:s}=(0,a.useContext)(w.t);return a.createElement(x,{isSilent:n,type:i||"primary",actionFn:s,close:function(){null==t||t.apply(void 0,arguments),null==l||l(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:"".concat(r,"-btn")},c)},C=n(47082),k=n(43501),j=n(71799),Z=n(15510),N=n(74593);let S=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:o,modalConfirmIconSize:a,fontSize:r,lineHeight:c,modalTitleHeight:i,fontHeight:l,confirmBodyPadding:s}=e,u="".concat(t,"-confirm");return{[u]:{"&-rtl":{direction:"rtl"},["".concat(e.antCls,"-modal-header")]:{display:"none"},["".concat(u,"-body-wrapper")]:Object.assign({},(0,Z.dF)()),["&".concat(t," ").concat(t,"-body")]:{padding:s},["".concat(u,"-body")]:{display:"flex",flexWrap:"nowrap",alignItems:"start",["> ".concat(e.iconCls)]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(a).equal()).div(2).equal()},["&-has-title > ".concat(e.iconCls)]:{marginTop:e.calc(e.calc(i).sub(a).equal()).div(2).equal()}},["".concat(u,"-paragraph")]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},["".concat(e.iconCls," + ").concat(u,"-paragraph")]:{maxWidth:"calc(100% - ".concat((0,k.bf)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal()),")")},["".concat(u,"-title")]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:o},["".concat(u,"-content")]:{color:e.colorText,fontSize:r,lineHeight:c},["".concat(u,"-btns")]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,["".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginBottom:0,marginInlineStart:e.marginXS}}},["".concat(u,"-error ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorError},["".concat(u,"-warning ").concat(u,"-body > ").concat(e.iconCls,",\n ").concat(u,"-confirm ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorWarning},["".concat(u,"-info ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorInfo},["".concat(u,"-success ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorSuccess}}};var P=(0,N.bk)(["Modal","confirm"],e=>[S((0,j.B4)(e))],j.eh,{order:-1e3}),M=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};function I(e){let{prefixCls:t,icon:n,okText:s,cancelText:d,confirmPrefixCls:f,type:m,okCancel:g,footer:v,locale:b}=e,y=M(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]),h=n;if(!n&&null!==n)switch(m){case"info":h=a.createElement(l.Z,null);break;case"success":h=a.createElement(r.Z,null);break;case"error":h=a.createElement(c.Z,null);break;default:h=a.createElement(i.Z,null)}let x=null!=g?g:"confirm"===m,C=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[k]=(0,p.Z)("Modal"),j=b||k,Z=s||(x?null==j?void 0:j.okText:null==j?void 0:j.justOkText),N=Object.assign({autoFocusButton:C,cancelTextLocale:d||(null==j?void 0:j.cancelText),okTextLocale:Z,mergedOkCancel:x},y),S=a.useMemo(()=>N,(0,o.Z)(Object.values(N))),I=a.createElement(a.Fragment,null,a.createElement(E,null),a.createElement(O,null)),_=void 0!==e.title&&null!==e.title,T="".concat(f,"-body");return a.createElement("div",{className:"".concat(f,"-body-wrapper")},a.createElement("div",{className:u()(T,{["".concat(T,"-has-title")]:_})},h,a.createElement("div",{className:"".concat(f,"-paragraph")},_&&a.createElement("span",{className:"".concat(f,"-title")},e.title),a.createElement("div",{className:"".concat(f,"-content")},e.content))),void 0===v||"function"==typeof v?a.createElement(w.n,{value:S},a.createElement("div",{className:"".concat(f,"-btns")},"function"==typeof v?v(I,{OkBtn:O,CancelBtn:E}):I)):v,a.createElement(P,{prefixCls:t}))}let _=e=>{let{close:t,zIndex:n,afterClose:o,open:r,keyboard:c,centered:i,getContainer:l,maskStyle:s,direction:m,prefixCls:p,wrapClassName:v,rootPrefixCls:b,bodyStyle:y,closable:h=!1,closeIcon:x,modalRender:w,focusTriggerAfterClose:E,onConfirm:O,styles:k}=e,j="".concat(p,"-confirm"),Z=e.width||416,N=e.style||{},S=void 0===e.mask||e.mask,P=void 0!==e.maskClosable&&e.maskClosable,M=u()(j,"".concat(j,"-").concat(e.type),{["".concat(j,"-rtl")]:"rtl"===m},e.className),[,_]=(0,g.ZP)(),T=a.useMemo(()=>void 0!==n?n:_.zIndexPopupBase+d.u6,[n,_]);return a.createElement(C.Z,{prefixCls:p,className:M,wrapClassName:u()({["".concat(j,"-centered")]:!!e.centered},v),onCancel:()=>{null==t||t({triggerCancel:!0}),null==O||O(!1)},open:r,title:"",footer:null,transitionName:(0,f.m)(b||"","zoom",e.transitionName),maskTransitionName:(0,f.m)(b||"","fade",e.maskTransitionName),mask:S,maskClosable:P,style:N,styles:Object.assign({body:y,mask:s},k),width:Z,zIndex:T,afterClose:o,keyboard:c,centered:i,getContainer:l,closable:h,closeIcon:x,modalRender:w,focusTriggerAfterClose:E},a.createElement(I,Object.assign({},e,{confirmPrefixCls:j})))};var T=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:o,theme:r}=e;return a.createElement(m.ZP,{prefixCls:t,iconPrefixCls:n,direction:o,theme:r},a.createElement(_,Object.assign({},e)))}},47082:function(e,t,n){let o;n.d(t,{Z:function(){return E}});var a=n(54772),r=n(32141),c=n(65414),i=n.n(c),l=n(79963),s=n(94202),u=n(75342),d=n(82662),f=n(84786),m=n(37809),p=n(34670),g=n(68216),v=n(35164),b=n(96760),y=n(80218),h=n(85032),x=n(71799),w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};(0,m.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{o={x:e.pageX,y:e.pageY},setTimeout(()=>{o=null},100)},!0);var E=e=>{var t;let{getPopupContainer:n,getPrefixCls:c,direction:m,modal:E}=a.useContext(g.E_),O=t=>{let{onCancel:n}=e;null==n||n(t)},{prefixCls:C,className:k,rootClassName:j,open:Z,wrapClassName:N,centered:S,getContainer:P,focusTriggerAfterClose:M=!0,style:I,visible:_,width:T=520,footer:R,classNames:B,styles:z,children:H,loading:A}=e,L=w(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),G=c("modal",C),D=c(),F=(0,v.Z)(G),[W,q,X]=(0,x.ZP)(G,F),$=i()(N,{["".concat(G,"-centered")]:!!S,["".concat(G,"-wrap-rtl")]:"rtl"===m}),Y=null===R||A?null:a.createElement(h.$,Object.assign({},e,{onOk:t=>{let{onOk:n}=e;null==n||n(t)},onCancel:O})),[J,U,V]=(0,u.Z)((0,u.w)(e),(0,u.w)(E),{closable:!0,closeIcon:a.createElement(r.Z,{className:"".concat(G,"-close-icon")}),closeIconRender:e=>(0,h.b)(G,e)}),K=(0,y.H)(".".concat(G,"-content")),[Q,ee]=(0,d.Cn)("Modal",L.zIndex);return W(a.createElement(s.Z,{form:!0,space:!0},a.createElement(p.Z.Provider,{value:ee},a.createElement(l.Z,Object.assign({width:T},L,{zIndex:Q,getContainer:void 0===P?n:P,prefixCls:G,rootClassName:i()(q,j,X,F),footer:Y,visible:null!=Z?Z:_,mousePosition:null!==(t=L.mousePosition)&&void 0!==t?t:o,onClose:O,closable:J?{disabled:V,closeIcon:U}:J,closeIcon:U,focusTriggerAfterClose:M,transitionName:(0,f.m)(D,"zoom",e.transitionName),maskTransitionName:(0,f.m)(D,"fade",e.maskTransitionName),className:i()(q,k,null==E?void 0:E.className),style:Object.assign(Object.assign({},null==E?void 0:E.style),I),classNames:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.classNames),B),{wrapper:i()($,null==B?void 0:B.wrapper)}),styles:Object.assign(Object.assign({},null==E?void 0:E.styles),z),panelRef:K}),A?a.createElement(b.Z,{active:!0,title:!1,paragraph:{rows:4},className:"".concat(G,"-body-skeleton")}):H))))}},66674:function(e,t,n){n.d(t,{AQ:function(){return b},Au:function(){return y},ZP:function(){return m},ai:function(){return h},cw:function(){return g},uW:function(){return p},vq:function(){return v}});var o=n(3565),a=n(54772),r=n(49258),c=n(68216),i=n(89587),l=n(75853),s=n(787),u=n(95494);let d="",f=e=>{var t,n;let{prefixCls:o,getContainer:r,direction:i}=e,s=(0,u.A)(),f=(0,a.useContext)(c.E_),m=d||f.getPrefixCls(),p=o||"".concat(m,"-modal"),g=r;return!1===g&&(g=void 0),a.createElement(l.Z,Object.assign({},e,{rootPrefixCls:m,prefixCls:p,iconPrefixCls:f.iconPrefixCls,theme:f.theme,direction:null!=i?i:f.direction,locale:null!==(n=null===(t=f.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:s,getContainer:g}))};function m(e){let t;let n=(0,i.w6)(),c=document.createDocumentFragment(),l=Object.assign(Object.assign({},e),{close:p,open:!0});function u(){for(var t,n=arguments.length,a=Array(n),i=0;inull==e?void 0:e.triggerCancel)&&(null===(t=e.onCancel)||void 0===t||t.call.apply(t,[e,()=>{}].concat((0,o.Z)(a.slice(1)))));for(let e=0;e{let t=n.getPrefixCls(void 0,d),o=n.getIconPrefixCls(),l=n.getTheme(),s=a.createElement(f,Object.assign({},e));(0,r.s)(a.createElement(i.ZP,{prefixCls:t,iconPrefixCls:o,theme:l},n.holderRender?n.holderRender(s):s),c)})}function p(){for(var t=arguments.length,n=Array(t),o=0;o{"function"==typeof e.afterClose&&e.afterClose(),u.apply(this,n)}})).visible&&delete l.visible,m(l)}return m(l),s.Z.push(p),{destroy:p,update:function(e){m(l="function"==typeof e?e(l):Object.assign(Object.assign({},l),e))}}}function p(e){return Object.assign(Object.assign({},e),{type:"warning"})}function g(e){return Object.assign(Object.assign({},e),{type:"info"})}function v(e){return Object.assign(Object.assign({},e),{type:"success"})}function b(e){return Object.assign(Object.assign({},e),{type:"error"})}function y(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function h(e){let{rootPrefixCls:t}=e;d=t}},54161:function(e,t,n){n.d(t,{n:function(){return a},t:function(){return o}});let o=n(54772).createContext({}),{Provider:a}=o},787:function(e,t){t.Z=[]},85032:function(e,t,n){n.d(t,{$:function(){return g},b:function(){return p}});var o=n(3565),a=n(54772),r=n(32141),c=n(2117),i=n(36272),l=n(76191),s=n(54161),u=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,a.useContext)(s.t);return a.createElement(l.ZP,Object.assign({onClick:n},e),t)},d=n(85716),f=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:o,onOk:r}=(0,a.useContext)(s.t);return a.createElement(l.ZP,Object.assign({},(0,d.nx)(n),{loading:e,onClick:r},t),o)},m=n(95494);function p(e,t){return a.createElement("span",{className:"".concat(e,"-close-x")},t||a.createElement(r.Z,{className:"".concat(e,"-close-icon")}))}let g=e=>{let t;let{okText:n,okType:r="primary",cancelText:l,confirmLoading:d,onOk:p,onCancel:g,okButtonProps:v,cancelButtonProps:b,footer:y}=e,[h]=(0,i.Z)("Modal",(0,m.A)()),x={confirmLoading:d,okButtonProps:v,cancelButtonProps:b,okTextLocale:n||(null==h?void 0:h.okText),cancelTextLocale:l||(null==h?void 0:h.cancelText),okType:r,onOk:p,onCancel:g},w=a.useMemo(()=>x,(0,o.Z)(Object.values(x)));return"function"==typeof y||void 0===y?(t=a.createElement(a.Fragment,null,a.createElement(u,null),a.createElement(f,null)),"function"==typeof y&&(t=y(t,{OkBtn:f,CancelBtn:u})),t=a.createElement(s.n,{value:w},t)):t=y,a.createElement(c.n,{disabled:!1},t)}},71799:function(e,t,n){n.d(t,{ZP:function(){return y},eh:function(){return b},B4:function(){return v}});var o=n(43501),a=n(15510),r=n(63606);let c=new o.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new o.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:n}=e,o="".concat(n,"-fade"),a=t?"&":"";return[(0,r.R)(o,c,i,e.motionDurationMid,t),{["\n ".concat(a).concat(o,"-enter,\n ").concat(a).concat(o,"-appear\n ")]:{opacity:0,animationTimingFunction:"linear"},["".concat(a).concat(o,"-leave")]:{animationTimingFunction:"linear"}}]};var s=n(48105),u=n(54621),d=n(74593);function f(e){return{position:e,inset:0}}let m=e=>{let{componentCls:t,antCls:n}=e;return[{["".concat(t,"-root")]:{["".concat(t).concat(n,"-zoom-enter, ").concat(t).concat(n,"-zoom-appear")]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},["".concat(t).concat(n,"-zoom-leave ").concat(t,"-content")]:{pointerEvents:"none"},["".concat(t,"-mask")]:Object.assign(Object.assign({},f("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",["".concat(t,"-hidden")]:{display:"none"}}),["".concat(t,"-wrap")]:Object.assign(Object.assign({},f("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{["".concat(t,"-root")]:l(e)}]},p=e=>{let{componentCls:t}=e;return[{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl"},["".concat(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: ".concat(e.screenSMMax,"px)")]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:"".concat((0,o.bf)(e.marginXS)," auto")},["".concat(t,"-centered")]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,a.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:"calc(100vw - ".concat((0,o.bf)(e.calc(e.margin).mul(2).equal()),")"),margin:"0 auto",paddingBottom:e.paddingLG,["".concat(t,"-title")]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},["".concat(t,"-content")]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},["".concat(t,"-close")]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:"color ".concat(e.motionDurationMid,", background-color ").concat(e.motionDurationMid),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,o.bf)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,a.Qy)(e)),["".concat(t,"-header")]:{color:e.colorText,background:e.headerBg,borderRadius:"".concat((0,o.bf)(e.borderRadiusLG)," ").concat((0,o.bf)(e.borderRadiusLG)," 0 0"),marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},["".concat(t,"-body")]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,["".concat(t,"-body-skeleton")]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:"".concat((0,o.bf)(e.margin)," auto")}},["".concat(t,"-footer")]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,["> ".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginInlineStart:e.marginXS}},["".concat(t,"-open")]:{overflow:"hidden"}})},{["".concat(t,"-pure-panel")]:{top:"auto",padding:0,display:"flex",flexDirection:"column",["".concat(t,"-content,\n ").concat(t,"-body,\n ").concat(t,"-confirm-body-wrapper")]:{display:"flex",flexDirection:"column",flex:"auto"},["".concat(t,"-confirm-body")]:{marginBottom:"auto"}}}]},g=e=>{let{componentCls:t}=e;return{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl",["".concat(t,"-confirm-body")]:{direction:"rtl"}}}}},v=e=>{let t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return(0,u.IX)(e,{modalHeaderHeight:e.calc(e.calc(o).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()})},b=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:"".concat((0,o.bf)(e.paddingMD)," ").concat((0,o.bf)(e.paddingContentHorizontalLG)),headerPadding:e.wireframe?"".concat((0,o.bf)(e.padding)," ").concat((0,o.bf)(e.paddingLG)):0,headerBorderBottom:e.wireframe?"".concat((0,o.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?"".concat((0,o.bf)(e.paddingXS)," ").concat((0,o.bf)(e.padding)):0,footerBorderTop:e.wireframe?"".concat((0,o.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",footerBorderRadius:e.wireframe?"0 0 ".concat((0,o.bf)(e.borderRadiusLG)," ").concat((0,o.bf)(e.borderRadiusLG)):0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?"".concat((0,o.bf)(2*e.padding)," ").concat((0,o.bf)(2*e.padding)," ").concat((0,o.bf)(e.paddingLG)):0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var y=(0,d.I$)("Modal",e=>{let t=v(e);return[p(t),g(t),m(t),(0,s._y)(t,"zoom")]},b,{unitless:{titleLineHeight:!0}})},98777:function(e,t,n){n.d(t,{Z:function(){return g}});var o=n(3565),a=n(54772),r=n(66674),c=n(787),i=n(68216),l=n(6222),s=n(36272),u=n(75853),d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n},f=a.forwardRef((e,t)=>{var n,{afterClose:r,config:c}=e,f=d(e,["afterClose","config"]);let[m,p]=a.useState(!0),[g,v]=a.useState(c),{direction:b,getPrefixCls:y}=a.useContext(i.E_),h=y("modal"),x=y(),w=function(){p(!1);for(var e,t=arguments.length,n=Array(t),a=0;anull==e?void 0:e.triggerCancel)&&(null===(e=g.onCancel)||void 0===e||e.call.apply(e,[g,()=>{}].concat((0,o.Z)(n.slice(1)))))};a.useImperativeHandle(t,()=>({destroy:w,update:e=>{v(t=>Object.assign(Object.assign({},t),e))}}));let E=null!==(n=g.okCancel)&&void 0!==n?n:"confirm"===g.type,[O]=(0,s.Z)("Modal",l.Z.Modal);return a.createElement(u.Z,Object.assign({prefixCls:h,rootPrefixCls:x},g,{close:w,open:m,afterClose:()=>{var e;r(),null===(e=g.afterClose)||void 0===e||e.call(g)},okText:g.okText||(E?null==O?void 0:O.okText:null==O?void 0:O.justOkText),direction:g.direction||b,cancelText:g.cancelText||(null==O?void 0:O.cancelText)},f))});let m=0,p=a.memo(a.forwardRef((e,t)=>{let[n,r]=function(){let[e,t]=a.useState([]);return[e,a.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]}();return a.useImperativeHandle(t,()=>({patchElement:r}),[]),a.createElement(a.Fragment,null,n)}));var g=function(){let e=a.useRef(null),[t,n]=a.useState([]);a.useEffect(()=>{t.length&&((0,o.Z)(t).forEach(e=>{e()}),n([]))},[t]);let i=a.useCallback(t=>function(r){var i;let l,s;m+=1;let u=a.createRef(),d=new Promise(e=>{l=e}),p=!1,g=a.createElement(f,{key:"modal-".concat(m),config:t(r),ref:u,afterClose:()=>{null==s||s()},isSilent:()=>p,onConfirm:e=>{l(e)}});return(s=null===(i=e.current)||void 0===i?void 0:i.patchElement(g))&&c.Z.push(s),{destroy:()=>{function e(){var e;null===(e=u.current)||void 0===e||e.destroy()}u.current?e():n(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=u.current)||void 0===t||t.update(e)}u.current?t():n(e=>[].concat((0,o.Z)(e),[t]))},then:e=>(p=!0,d.then(e))}},[]);return[a.useMemo(()=>({info:i(r.cw),success:i(r.vq),error:i(r.AQ),warning:i(r.uW),confirm:i(r.Au)}),[]),a.createElement(p,{key:"modal-holder",ref:e})]}},97018:function(e,t,n){n.d(t,{CW:function(){return w},ZP:function(){return E},z5:function(){return h}});var o=n(54772),a=n(50801),r=n(19116),c=n(32141),i=n(56779),l=n(49842),s=n(30373),u=n(65414),d=n.n(u),f=n(52039),m=n(68216),p=n(35164),g=n(48325),v=n(43501),b=(0,n(74593).bk)(["Notification","PurePanel"],e=>{let t="".concat(e.componentCls,"-notice"),n=(0,g.Rp)(e);return{["".concat(t,"-pure-panel")]:Object.assign(Object.assign({},(0,g.$e)(n)),{width:n.width,maxWidth:"calc(100vw - ".concat((0,v.bf)(e.calc(n.notificationMarginEdge).mul(2).equal()),")"),margin:0})}},g.eh),y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};function h(e,t){return null===t||!1===t?null:t||o.createElement(c.Z,{className:"".concat(e,"-close-icon")})}l.Z,a.Z,r.Z,i.Z,s.Z;let x={success:a.Z,info:l.Z,error:r.Z,warning:i.Z},w=e=>{let{prefixCls:t,icon:n,type:a,message:r,description:c,btn:i,role:l="alert"}=e,s=null;return n?s=o.createElement("span",{className:"".concat(t,"-icon")},n):a&&(s=o.createElement(x[a]||null,{className:d()("".concat(t,"-icon"),"".concat(t,"-icon-").concat(a))})),o.createElement("div",{className:d()({["".concat(t,"-with-icon")]:s}),role:l},s,o.createElement("div",{className:"".concat(t,"-message")},r),o.createElement("div",{className:"".concat(t,"-description")},c),i&&o.createElement("div",{className:"".concat(t,"-btn")},i))};var E=e=>{let{prefixCls:t,className:n,icon:a,type:r,message:c,description:i,btn:l,closable:s=!0,closeIcon:u,className:v}=e,x=y(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:E}=o.useContext(m.E_),O=t||E("notification"),C="".concat(O,"-notice"),k=(0,p.Z)(O),[j,Z,N]=(0,g.ZP)(O,k);return j(o.createElement("div",{className:d()("".concat(C,"-pure-panel"),Z,n,N,k)},o.createElement(b,{prefixCls:O}),o.createElement(f.qX,Object.assign({},x,{prefixCls:O,eventKey:"pure",duration:null,closable:s,className:d()({notificationClassName:v}),closeIcon:h(O,u),content:o.createElement(w,{prefixCls:C,icon:a,type:r,message:c,description:i,btn:l})}))))}},48325:function(e,t,n){n.d(t,{ZP:function(){return h},$e:function(){return g},eh:function(){return b},Rp:function(){return y}});var o=n(43501),a=n(82662),r=n(15510),c=n(54621),i=n(74593),l=e=>{let{componentCls:t,notificationMarginEdge:n,animationMaxHeight:a}=e,r="".concat(t,"-notice"),c=new o.E4("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new o.E4("antNotificationTopFadeIn",{"0%":{top:-a,opacity:0},"100%":{top:0,opacity:1}}),l=new o.E4("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(a).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new o.E4("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{["&".concat(t,"-top, &").concat(t,"-bottom")]:{marginInline:0,[r]:{marginInline:"auto auto"}},["&".concat(t,"-top")]:{["".concat(t,"-fade-enter").concat(t,"-fade-enter-active, ").concat(t,"-fade-appear").concat(t,"-fade-appear-active")]:{animationName:i}},["&".concat(t,"-bottom")]:{["".concat(t,"-fade-enter").concat(t,"-fade-enter-active, ").concat(t,"-fade-appear").concat(t,"-fade-appear-active")]:{animationName:l}},["&".concat(t,"-topRight, &").concat(t,"-bottomRight")]:{["".concat(t,"-fade-enter").concat(t,"-fade-enter-active, ").concat(t,"-fade-appear").concat(t,"-fade-appear-active")]:{animationName:c}},["&".concat(t,"-topLeft, &").concat(t,"-bottomLeft")]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[r]:{marginInlineEnd:"auto",marginInlineStart:0},["".concat(t,"-fade-enter").concat(t,"-fade-enter-active, ").concat(t,"-fade-appear").concat(t,"-fade-appear-active")]:{animationName:s}}}}};let s=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],u={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},d=(e,t)=>{let{componentCls:n}=e;return{["".concat(n,"-").concat(t)]:{["&".concat(n,"-stack > ").concat(n,"-notice-wrapper")]:{[t.startsWith("top")?"top":"bottom"]:0,[u[t]]:{value:0,_skip_check_:!0}}}}},f=e=>{let t={};for(let n=1;n ".concat(e.componentCls,"-notice")]:{opacity:0,transition:"opacity ".concat(e.motionDurationMid)}};return Object.assign({["&:not(:nth-last-child(-n+".concat(e.notificationStackLayer,"))")]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},m=e=>{let t={};for(let n=1;n{let{componentCls:t}=e;return Object.assign({["".concat(t,"-stack")]:{["& > ".concat(t,"-notice-wrapper")]:Object.assign({transition:"all ".concat(e.motionDurationSlow,", backdrop-filter 0s"),position:"absolute"},f(e))},["".concat(t,"-stack:not(").concat(t,"-stack-expanded)")]:{["& > ".concat(t,"-notice-wrapper")]:Object.assign({},m(e))},["".concat(t,"-stack").concat(t,"-stack-expanded")]:{["& > ".concat(t,"-notice-wrapper")]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",["& > ".concat(e.componentCls,"-notice")]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},s.map(t=>d(e,t)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{}))};let g=e=>{let{iconCls:t,componentCls:n,boxShadow:a,fontSizeLG:c,notificationMarginBottom:i,borderRadiusLG:l,colorSuccess:s,colorInfo:u,colorWarning:d,colorError:f,colorTextHeading:m,notificationBg:p,notificationPadding:g,notificationMarginEdge:v,notificationProgressBg:b,notificationProgressHeight:y,fontSize:h,lineHeight:x,width:w,notificationIconSize:E,colorText:O}=e,C="".concat(n,"-notice");return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:p,borderRadius:l,boxShadow:a,[C]:{padding:g,width:w,maxWidth:"calc(100vw - ".concat((0,o.bf)(e.calc(v).mul(2).equal()),")"),overflow:"hidden",lineHeight:x,wordWrap:"break-word"},["".concat(C,"-message")]:{marginBottom:e.marginXS,color:m,fontSize:c,lineHeight:e.lineHeightLG},["".concat(C,"-description")]:{fontSize:h,color:O},["".concat(C,"-closable ").concat(C,"-message")]:{paddingInlineEnd:e.paddingLG},["".concat(C,"-with-icon ").concat(C,"-message")]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:c},["".concat(C,"-with-icon ").concat(C,"-description")]:{marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:h},["".concat(C,"-icon")]:{position:"absolute",fontSize:E,lineHeight:1,["&-success".concat(t)]:{color:s},["&-info".concat(t)]:{color:u},["&-warning".concat(t)]:{color:d},["&-error".concat(t)]:{color:f}},["".concat(C,"-close")]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:"background-color ".concat(e.motionDurationMid,", color ").concat(e.motionDurationMid),display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},(0,r.Qy)(e)),["".concat(C,"-progress")]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:"calc(100% - ".concat((0,o.bf)(l)," * 2)"),left:{_skip_check_:!0,value:l},right:{_skip_check_:!0,value:l},bottom:0,blockSize:y,border:0,"&, &::-webkit-progress-bar":{borderRadius:l,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:b},"&::-webkit-progress-value":{borderRadius:l,background:b}},["".concat(C,"-btn")]:{float:"right",marginTop:e.marginSM}}},v=e=>{let{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:a,motionDurationMid:c,motionEaseInOut:i}=e,l="".concat(t,"-notice"),s=new o.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:a,_skip_check_:!0},["".concat(t,"-hook-holder")]:{position:"relative"},["".concat(t,"-fade-appear-prepare")]:{opacity:"0 !important"},["".concat(t,"-fade-enter, ").concat(t,"-fade-appear")]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},["".concat(t,"-fade-leave")]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:c,animationPlayState:"paused"},["".concat(t,"-fade-enter").concat(t,"-fade-enter-active, ").concat(t,"-fade-appear").concat(t,"-fade-appear-active")]:{animationPlayState:"running"},["".concat(t,"-fade-leave").concat(t,"-fade-leave-active")]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",["".concat(l,"-btn")]:{float:"left"}}})},{[t]:{["".concat(l,"-wrapper")]:Object.assign({},g(e))}}]},b=e=>({zIndexPopup:e.zIndexPopupBase+a.u6+50,width:384}),y=e=>{let t=e.paddingMD,n=e.paddingLG;return(0,c.IX)(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:"".concat((0,o.bf)(e.paddingMD)," ").concat((0,o.bf)(e.paddingContentHorizontalLG)),notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:"linear-gradient(90deg, ".concat(e.colorPrimaryBorderHover,", ").concat(e.colorPrimary,")")})};var h=(0,i.I$)("Notification",e=>{let t=y(e);return[v(t),l(t),p(t)]},b)},88094:function(e,t,n){n.d(t,{Z:function(){return y},k:function(){return b}});var o=n(54772),a=n(65414),r=n.n(a),c=n(52039),i=n(94210),l=n(68216),s=n(35164),u=n(44898),d=n(97018),f=n(48325),m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let p=e=>{let{children:t,prefixCls:n}=e,a=(0,s.Z)(n),[i,l,u]=(0,f.ZP)(n,a);return i(o.createElement(c.JB,{classNames:{list:r()(l,u,a)}},t))},g=(e,t)=>{let{prefixCls:n,key:a}=t;return o.createElement(p,{prefixCls:n,key:a},e)},v=o.forwardRef((e,t)=>{let{top:n,bottom:a,prefixCls:i,getContainer:s,maxCount:f,rtl:m,onAllRemoved:p,stack:v,duration:b,pauseOnHover:y=!0,showProgress:h}=e,{getPrefixCls:x,getPopupContainer:w,notification:E,direction:O}=(0,o.useContext)(l.E_),[,C]=(0,u.ZP)(),k=i||x("notification"),[j,Z]=(0,c.lm)({prefixCls:k,style:e=>(function(e,t,n){let o;switch(e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n}}return o})(e,null!=n?n:24,null!=a?a:24),className:()=>r()({["".concat(k,"-rtl")]:null!=m?m:"rtl"===O}),motion:()=>({motionName:"".concat(k,"-fade")}),closable:!0,closeIcon:(0,d.z5)(k),duration:null!=b?b:4.5,getContainer:()=>(null==s?void 0:s())||(null==w?void 0:w())||document.body,maxCount:f,pauseOnHover:y,showProgress:h,onAllRemoved:p,renderNotifications:g,stack:!1!==v&&{threshold:"object"==typeof v?null==v?void 0:v.threshold:void 0,offset:8,gap:C.margin}});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},j),{prefixCls:k,notification:E})),Z});function b(e){let t=o.useRef(null);return(0,i.ln)("Notification"),[o.useMemo(()=>{let n=n=>{var a;if(!t.current)return;let{open:c,prefixCls:i,notification:l}=t.current,s="".concat(i,"-notice"),{message:u,description:f,icon:p,type:g,btn:v,className:b,style:y,role:h="alert",closeIcon:x,closable:w}=n,E=m(n,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),O=(0,d.z5)(s,void 0!==x?x:null==l?void 0:l.closeIcon);return c(Object.assign(Object.assign({placement:null!==(a=null==e?void 0:e.placement)&&void 0!==a?a:"topRight"},E),{content:o.createElement(d.CW,{prefixCls:s,icon:p,type:g,message:u,description:f,btn:v,role:h}),className:r()(g&&"".concat(s,"-").concat(g),b,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),y),closeIcon:O,closable:null!=w?w:!!O}))},a={open:n,destroy:e=>{var n,o;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(o=t.current)||void 0===o||o.destroy()}};return["success","info","warning","error"].forEach(e=>{a[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),a},[]),o.createElement(v,Object.assign({key:"notification-holder"},e,{ref:t}))]}function y(e){return b(e)}},41319:function(e,t,n){n.r(t),n.d(t,{default:function(){return a.a}});var o=n(29460),a=n.n(o),r={};for(var c in o)"default"!==c&&(r[c]=(function(e){return o[e]}).bind(0,c));n.d(t,r)},79963:function(e,t,n){n.d(t,{s:function(){return O},Z:function(){return N}});var o=n(79353),a=n(96580),r=n(2156),c=n(54772),i=c.createContext({}),l=n(82518),s=n(65414),u=n.n(s),d=n(98426),f=n(51755),m=n(36611),p=n(48764);function g(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function v(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var a=e.document;"number"!=typeof(n=a.documentElement[o])&&(n=a.body[o])}return n}var b=n(76758),y=n(27053),h=n(56094),x=c.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),w={width:0,height:0,overflow:"hidden",outline:"none"},E={outline:"none"},O=c.forwardRef(function(e,t){var n=e.prefixCls,a=e.className,r=e.style,s=e.title,d=e.ariaId,f=e.footer,m=e.closable,g=e.closeIcon,v=e.onClose,b=e.children,O=e.bodyStyle,C=e.bodyProps,k=e.modalRender,j=e.onMouseDown,Z=e.onMouseUp,N=e.holderRef,S=e.visible,P=e.forceRender,M=e.width,I=e.height,_=e.classNames,T=e.styles,R=c.useContext(i).panel,B=(0,h.x1)(N,R),z=(0,c.useRef)(),H=(0,c.useRef)();c.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=z.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===H.current?z.current.focus({preventScroll:!0}):e||t!==z.current||H.current.focus({preventScroll:!0})}}});var A={};void 0!==M&&(A.width=M),void 0!==I&&(A.height=I);var L=f?c.createElement("div",{className:u()("".concat(n,"-footer"),null==_?void 0:_.footer),style:(0,l.Z)({},null==T?void 0:T.footer)},f):null,G=s?c.createElement("div",{className:u()("".concat(n,"-header"),null==_?void 0:_.header),style:(0,l.Z)({},null==T?void 0:T.header)},c.createElement("div",{className:"".concat(n,"-title"),id:d},s)):null,D=(0,c.useMemo)(function(){return"object"===(0,y.Z)(m)&&null!==m?m:m?{closeIcon:null!=g?g:c.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[m,g,n]),F=(0,p.Z)(D,!0),W="object"===(0,y.Z)(m)&&m.disabled,q=m?c.createElement("button",(0,o.Z)({type:"button",onClick:v,"aria-label":"Close"},F,{className:"".concat(n,"-close"),disabled:W}),D.closeIcon):null,X=c.createElement("div",{className:u()("".concat(n,"-content"),null==_?void 0:_.content),style:null==T?void 0:T.content},q,G,c.createElement("div",(0,o.Z)({className:u()("".concat(n,"-body"),null==_?void 0:_.body),style:(0,l.Z)((0,l.Z)({},O),null==T?void 0:T.body)},C),b),L);return c.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?d:null,"aria-modal":"true",ref:B,style:(0,l.Z)((0,l.Z)({},r),A),className:u()(n,a),onMouseDown:j,onMouseUp:Z},c.createElement("div",{ref:z,tabIndex:0,style:E},c.createElement(x,{shouldUpdate:S||P},k?k(X):X)),c.createElement("div",{tabIndex:0,ref:H,style:w}))}),C=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,s=e.className,d=e.visible,f=e.forceRender,m=e.destroyOnClose,p=e.motionName,g=e.ariaId,y=e.onVisibleChanged,h=e.mousePosition,x=(0,c.useRef)(),w=c.useState(),E=(0,a.Z)(w,2),C=E[0],k=E[1],j={};function Z(){var e,t,n,o,a,r=(n={left:(t=(e=x.current).getBoundingClientRect()).left,top:t.top},a=(o=e.ownerDocument).defaultView||o.parentWindow,n.left+=v(a),n.top+=v(a,!0),n);k(h&&(h.x||h.y)?"".concat(h.x-r.left,"px ").concat(h.y-r.top,"px"):"")}return C&&(j.transformOrigin=C),c.createElement(b.ZP,{visible:d,onVisibleChanged:y,onAppearPrepare:Z,onEnterPrepare:Z,forceRender:f,motionName:p,removeOnLeave:m,ref:x},function(a,d){var f=a.className,m=a.style;return c.createElement(O,(0,o.Z)({},e,{ref:t,title:r,ariaId:g,prefixCls:n,holderRef:d,style:(0,l.Z)((0,l.Z)((0,l.Z)({},m),i),j),className:u()(s,f)}))})});C.displayName="Content";var k=function(e){var t=e.prefixCls,n=e.style,a=e.visible,r=e.maskProps,i=e.motionName,s=e.className;return c.createElement(b.ZP,{key:"mask",visible:a,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(e,a){var i=e.className,d=e.style;return c.createElement("div",(0,o.Z)({ref:a,style:(0,l.Z)((0,l.Z)({},d),n),className:u()("".concat(t,"-mask"),i,s)},r))})};n(73216);var j=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,i=e.visible,s=void 0!==i&&i,v=e.keyboard,b=void 0===v||v,y=e.focusTriggerAfterClose,h=void 0===y||y,x=e.wrapStyle,w=e.wrapClassName,E=e.wrapProps,O=e.onClose,j=e.afterOpenChange,Z=e.afterClose,N=e.transitionName,S=e.animation,P=e.closable,M=e.mask,I=void 0===M||M,_=e.maskTransitionName,T=e.maskAnimation,R=e.maskClosable,B=e.maskStyle,z=e.maskProps,H=e.rootClassName,A=e.classNames,L=e.styles,G=(0,c.useRef)(),D=(0,c.useRef)(),F=(0,c.useRef)(),W=c.useState(s),q=(0,a.Z)(W,2),X=q[0],$=q[1],Y=(0,f.Z)();function J(e){null==O||O(e)}var U=(0,c.useRef)(!1),V=(0,c.useRef)(),K=null;(void 0===R||R)&&(K=function(e){U.current?U.current=!1:D.current===e.target&&J(e)}),(0,c.useEffect)(function(){s&&($(!0),(0,d.Z)(D.current,document.activeElement)||(G.current=document.activeElement))},[s]),(0,c.useEffect)(function(){return function(){clearTimeout(V.current)}},[]);var Q=(0,l.Z)((0,l.Z)((0,l.Z)({zIndex:r},x),null==L?void 0:L.wrapper),{},{display:X?null:"none"});return c.createElement("div",(0,o.Z)({className:u()("".concat(n,"-root"),H)},(0,p.Z)(e,{data:!0})),c.createElement(k,{prefixCls:n,visible:I&&s,motionName:g(n,_,T),style:(0,l.Z)((0,l.Z)({zIndex:r},B),null==L?void 0:L.mask),maskProps:z,className:null==A?void 0:A.mask}),c.createElement("div",(0,o.Z)({tabIndex:-1,onKeyDown:function(e){if(b&&e.keyCode===m.Z.ESC){e.stopPropagation(),J(e);return}s&&e.keyCode===m.Z.TAB&&F.current.changeActive(!e.shiftKey)},className:u()("".concat(n,"-wrap"),w,null==A?void 0:A.wrapper),ref:D,onClick:K,style:Q},E),c.createElement(C,(0,o.Z)({},e,{onMouseDown:function(){clearTimeout(V.current),U.current=!0},onMouseUp:function(){V.current=setTimeout(function(){U.current=!1})},ref:F,closable:void 0===P||P,ariaId:Y,prefixCls:n,visible:s&&X,onClose:J,onVisibleChanged:function(e){if(e)!function(){if(!(0,d.Z)(D.current,document.activeElement)){var e;null===(e=F.current)||void 0===e||e.focus()}}();else{if($(!1),I&&G.current&&h){try{G.current.focus({preventScroll:!0})}catch(e){}G.current=null}X&&(null==Z||Z())}null==j||j(e)},motionName:g(n,N,S)}))))},Z=function(e){var t=e.visible,n=e.getContainer,l=e.forceRender,s=e.destroyOnClose,u=void 0!==s&&s,d=e.afterClose,f=e.panelRef,m=c.useState(t),p=(0,a.Z)(m,2),g=p[0],v=p[1],b=c.useMemo(function(){return{panel:f}},[f]);return(c.useEffect(function(){t&&v(!0)},[t]),l||!u||g)?c.createElement(i.Provider,{value:b},c.createElement(r.Z,{open:t||l||g,autoDestroy:!1,getContainer:n,autoLock:t||g},c.createElement(j,(0,o.Z)({},e,{destroyOnClose:u,afterClose:function(){null==d||d(),v(!1)}})))):null};Z.displayName="Dialog";var N=Z},52039:function(e,t,n){n.d(t,{qX:function(){return b},JB:function(){return h},lm:function(){return Z}});var o=n(3565),a=n(96580),r=n(74294),c=n(54772),i=n(82518),l=n(80449),s=n(79353),u=n(92684),d=n(65414),f=n.n(d),m=n(76758),p=n(27053),g=n(36611),v=n(48764),b=c.forwardRef(function(e,t){var n=e.prefixCls,o=e.style,r=e.className,i=e.duration,l=void 0===i?4.5:i,d=e.showProgress,m=e.pauseOnHover,b=void 0===m||m,y=e.eventKey,h=e.content,x=e.closable,w=e.closeIcon,E=void 0===w?"x":w,O=e.props,C=e.onClick,k=e.onNoticeClose,j=e.times,Z=e.hovering,N=c.useState(!1),S=(0,a.Z)(N,2),P=S[0],M=S[1],I=c.useState(0),_=(0,a.Z)(I,2),T=_[0],R=_[1],B=c.useState(0),z=(0,a.Z)(B,2),H=z[0],A=z[1],L=Z||P,G=l>0&&d,D=function(){k(y)};c.useEffect(function(){if(!L&&l>0){var e=Date.now()-H,t=setTimeout(function(){D()},1e3*l-H);return function(){b&&clearTimeout(t),A(Date.now()-e)}}},[l,L,j]),c.useEffect(function(){if(!L&&G&&(b||0===H)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var o=Math.min((e+H-t)/(1e3*l),1);R(100*o),o<1&&n()})}(),function(){b&&cancelAnimationFrame(e)}}},[l,H,L,G,j]);var F=c.useMemo(function(){return"object"===(0,p.Z)(x)&&null!==x?x:x?{closeIcon:E}:{}},[x,E]),W=(0,v.Z)(F,!0),q=100-(!T||T<0?0:T>100?100:T),X="".concat(n,"-notice");return c.createElement("div",(0,s.Z)({},O,{ref:t,className:f()(X,r,(0,u.Z)({},"".concat(X,"-closable"),x)),style:o,onMouseEnter:function(e){var t;M(!0),null==O||null===(t=O.onMouseEnter)||void 0===t||t.call(O,e)},onMouseLeave:function(e){var t;M(!1),null==O||null===(t=O.onMouseLeave)||void 0===t||t.call(O,e)},onClick:C}),c.createElement("div",{className:"".concat(X,"-content")},h),x&&c.createElement("a",(0,s.Z)({tabIndex:0,className:"".concat(X,"-close"),onKeyDown:function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===g.Z.ENTER)&&D()},"aria-label":"Close"},W,{onClick:function(e){e.preventDefault(),e.stopPropagation(),D()}}),F.closeIcon),G&&c.createElement("progress",{className:"".concat(X,"-progress"),max:"100",value:q},q+"%"))}),y=c.createContext({}),h=function(e){var t=e.children,n=e.classNames;return c.createElement(y.Provider,{value:{classNames:n}},t)},x=function(e){var t,n,o,a={offset:8,threshold:3,gap:16};return e&&"object"===(0,p.Z)(e)&&(a.offset=null!==(t=e.offset)&&void 0!==t?t:8,a.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,a.gap=null!==(o=e.gap)&&void 0!==o?o:16),[!!e,a]},w=["className","style","classNames","styles"],E=function(e){var t=e.configList,n=e.placement,l=e.prefixCls,d=e.className,p=e.style,g=e.motion,v=e.onAllNoticeRemoved,h=e.onNoticeClose,E=e.stack,O=(0,c.useContext)(y).classNames,C=(0,c.useRef)({}),k=(0,c.useState)(null),j=(0,a.Z)(k,2),Z=j[0],N=j[1],S=(0,c.useState)([]),P=(0,a.Z)(S,2),M=P[0],I=P[1],_=t.map(function(e){return{config:e,key:String(e.key)}}),T=x(E),R=(0,a.Z)(T,2),B=R[0],z=R[1],H=z.offset,A=z.threshold,L=z.gap,G=B&&(M.length>0||_.length<=A),D="function"==typeof g?g(n):g;return(0,c.useEffect)(function(){B&&M.length>1&&I(function(e){return e.filter(function(e){return _.some(function(t){return e===t.key})})})},[M,_,B]),(0,c.useEffect)(function(){var e,t;B&&C.current[null===(e=_[_.length-1])||void 0===e?void 0:e.key]&&N(C.current[null===(t=_[_.length-1])||void 0===t?void 0:t.key])},[_,B]),c.createElement(m.V4,(0,s.Z)({key:n,className:f()(l,"".concat(l,"-").concat(n),null==O?void 0:O.list,d,(0,u.Z)((0,u.Z)({},"".concat(l,"-stack"),!!B),"".concat(l,"-stack-expanded"),G)),style:p,keys:_,motionAppear:!0},D,{onAllRemoved:function(){v(n)}}),function(e,t){var a=e.config,u=e.className,d=e.style,m=e.index,p=a.key,g=a.times,v=String(p),y=a.className,x=a.style,E=a.classNames,k=a.styles,j=(0,r.Z)(a,w),N=_.findIndex(function(e){return e.key===v}),S={};if(B){var P=_.length-1-(N>-1?N:m-1),T="top"===n||"bottom"===n?"-50%":"0";if(P>0){S.height=G?null===(R=C.current[v])||void 0===R?void 0:R.offsetHeight:null==Z?void 0:Z.offsetHeight;for(var R,z,A,D,F=0,W=0;W-1?C.current[v]=e:delete C.current[v]},prefixCls:l,classNames:E,styles:k,className:f()(y,null==O?void 0:O.notice),style:x,times:g,key:p,eventKey:p,onNoticeClose:h,hovering:B&&M.length>0})))})},O=c.forwardRef(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,s=e.container,u=e.motion,d=e.maxCount,f=e.className,m=e.style,p=e.onAllRemoved,g=e.stack,v=e.renderNotifications,b=c.useState([]),y=(0,a.Z)(b,2),h=y[0],x=y[1],w=function(e){var t,n=h.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),x(function(t){return t.filter(function(t){return t.key!==e})})};c.useImperativeHandle(t,function(){return{open:function(e){x(function(t){var n,a=(0,o.Z)(t),r=a.findIndex(function(t){return t.key===e.key}),c=(0,i.Z)({},e);return r>=0?(c.times=((null===(n=t[r])||void 0===n?void 0:n.times)||0)+1,a[r]=c):(c.times=0,a.push(c)),d>0&&a.length>d&&(a=a.slice(-d)),a})},close:function(e){w(e)},destroy:function(){x([])}}});var O=c.useState({}),C=(0,a.Z)(O,2),k=C[0],j=C[1];c.useEffect(function(){var e={};h.forEach(function(t){var n=t.placement,o=void 0===n?"topRight":n;o&&(e[o]=e[o]||[],e[o].push(t))}),Object.keys(k).forEach(function(t){e[t]=e[t]||[]}),j(e)},[h]);var Z=function(e){j(function(t){var n=(0,i.Z)({},t);return(n[e]||[]).length||delete n[e],n})},N=c.useRef(!1);if(c.useEffect(function(){Object.keys(k).length>0?N.current=!0:N.current&&(null==p||p(),N.current=!1)},[k]),!s)return null;var S=Object.keys(k);return(0,l.createPortal)(c.createElement(c.Fragment,null,S.map(function(e){var t=k[e],n=c.createElement(E,{key:e,configList:t,placement:e,prefixCls:r,className:null==f?void 0:f(e),style:null==m?void 0:m(e),motion:u,onNoticeClose:w,onAllNoticeRemoved:Z,stack:g});return v?v(n,{prefixCls:r,key:e}):n})),s)}),C=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],k=function(){return document.body},j=0;function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?k:t,i=e.motion,l=e.prefixCls,s=e.maxCount,u=e.className,d=e.style,f=e.onAllRemoved,m=e.stack,p=e.renderNotifications,g=(0,r.Z)(e,C),v=c.useState(),b=(0,a.Z)(v,2),y=b[0],h=b[1],x=c.useRef(),w=c.createElement(O,{container:y,ref:x,prefixCls:l,motion:i,maxCount:s,className:u,style:d,onAllRemoved:f,stack:m,renderNotifications:p}),E=c.useState([]),Z=(0,a.Z)(E,2),N=Z[0],S=Z[1],P=c.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=Array(t),o=0;ot.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let r=a(n(68812)),c=n(41381);t.GoogleAnalytics=e=>{var t=o(e,[]);return(0,c.formatData)(r.default,t)}},33997:function(e,t,n){var o=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let r=a(n(6795)),c=n(41381);t.GoogleMapsEmbed=e=>{var t=o(e,[]);return(0,c.formatData)(r.default,t)}},94384:function(e,t,n){var o=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let r=a(n(63667)),c=n(41381);t.YouTubeEmbed=e=>{var t=o(e,[]);return(0,c.formatData)(r.default,t)}},41381:function(e,t){function n(e,t,n=!1){return t?Object.keys(e).filter(e=>n?!t.includes(e):t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{}):{}}function o(e,t,n,o){let a=o&&Object.keys(o).length>0?new URL(Object.values(o)[0],e):new URL(e);return t&&n&&t.forEach(e=>{n[e]&&a.searchParams.set(e,n[e])}),a.toString()}function a(e,t,n,a,r){var c;if(!t)return`<${e}>`;let i=(null===(c=t.src)||void 0===c?void 0:c.url)?Object.assign(Object.assign({},t),{src:o(t.src.url,t.src.params,a,r)}):t,l=Object.keys(Object.assign(Object.assign({},i),n)).reduce((e,t)=>{let o=null==n?void 0:n[t],a=i[t],r=null!=o?o:a,c=!0===r?t:`${t}="${r}"`;return r?e+` ${c}`:e},"");return`<${e}${l}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=o,t.createHtml=a,t.formatData=function(e,t){var r,c,i,l,s;let u=n(t,null===(r=e.scripts)||void 0===r?void 0:r.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=n(t,null===(i=null===(c=e.html)||void 0===c?void 0:c.attributes.src)||void 0===i?void 0:i.params),f=n(t,[null===(s=null===(l=e.html)||void 0===l?void 0:l.attributes.src)||void 0===s?void 0:s.slugParam]),m=n(t,[...Object.keys(u),...Object.keys(d),...Object.keys(f)],!0);return Object.assign(Object.assign({},e),{html:e.html?a(e.html.element,e.html.attributes,m,d,f):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:o(e.url,e.params,u)})):null})}},68812:function(e){e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},6795:function(e){e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},63667:function(e){e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')}}]);