You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
47 KiB
1 line
47 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[34251,877],{80205:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(5891),o=n(59301),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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},i=n(88853),l=function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var s=o.forwardRef(l)},77578:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,n){"use strict";var r=n(26390),o=n(23073);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,r.Z)(n))},a=function(){if(null==t){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];t=(0,o.Z)(n(r))}};return a.cancel=()=>{o.Z.cancel(t),t=null},a}},88522:function(e,t,n){"use strict";var r=n(92310),o=n.n(r),a=n(38298),i=n(64002),l=n(59301),s=n(53487),c=n(92343),u=n(36355),d=n(57809);const{Option:h}=d.default;function f(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const p=(e,t)=>{const{prefixCls:n,className:r,popupClassName:s,dropdownClassName:p,children:m,dataSource:g}=e,v=(0,a.Z)(m);let C;1===v.length&&(0,c.l$)(v[0])&&!f(v[0])&&([C]=v);const b=C?()=>C:void 0;let x;x=v.length&&f(v[0])?m:g?g.map((e=>{if((0,c.l$)(e))return e;switch(typeof e){case"string":return l.createElement(h,{key:e,value:e},e);case"object":{const{value:t}=e;return l.createElement(h,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:y}=l.useContext(u.E_),E=y("select",n);return l.createElement(d.default,Object.assign({ref:t,suffixIcon:null},(0,i.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:E,popupClassName:s||p,className:o()(`${E}-auto-complete`,r),mode:d.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:b}),x)},m=l.forwardRef(p),g=(0,s.Z)(m);m.Option=h,m._InternalPanelDoNotUseOrYouWillBeFired=g,t.Z=m},77808:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(5891),o=n(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},i=n(88853),l=function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))};var s=o.forwardRef(l),c=n(92310),u=n.n(c),d=n(43469),h=n(64002),f=n(13845),p=n(92343),m=n(68031),g=n(27666),v=n(36355),C=n(83116),b=n(37613),x=n(17313);const y=e=>{const{componentCls:t,backTopFontSize:n,backTopSize:r,zIndexPopup:o}=e;return{[t]:Object.assign(Object.assign({},(0,x.Wf)(e)),{position:"fixed",insetInlineEnd:e.backTopInlineEnd,insetBlockEnd:e.backTopBlockEnd,zIndex:o,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${t}-content`]:{width:r,height:r,overflow:"hidden",color:e.backTopColor,textAlign:"center",backgroundColor:e.backTopBackground,borderRadius:r,transition:`all ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.backTopHoverBackground,transition:`all ${e.motionDurationMid}`}},[`${t}-icon`]:{fontSize:n,lineHeight:`${r}px`}})}},E=e=>{const{componentCls:t}=e;return{[`@media (max-width: ${e.screenMD}px)`]:{[t]:{insetInlineEnd:e.backTopInlineEndMD}},[`@media (max-width: ${e.screenXS}px)`]:{[t]:{insetInlineEnd:e.backTopInlineEndXS}}}};var w=(0,C.Z)("BackTop",(e=>{const{fontSizeHeading3:t,colorTextDescription:n,colorTextLightSolid:r,colorText:o,controlHeightLG:a}=e,i=(0,b.TS)(e,{backTopBackground:n,backTopColor:r,backTopHoverBackground:o,backTopFontSize:t,backTopSize:a,backTopBlockEnd:1.25*a,backTopInlineEnd:2.5*a,backTopInlineEndMD:1.5*a,backTopInlineEndXS:.5*a});return[y(i),E(i)]}),(e=>({zIndexPopup:e.zIndexBase+10})));var S=e=>{const{prefixCls:t,className:n,rootClassName:r,visibilityHeight:a=400,target:i,onClick:l,duration:c=450}=e,[C,b]=o.useState(0===a),x=o.useRef(null),y=()=>x.current&&x.current.ownerDocument?x.current.ownerDocument:window,E=(0,g.Z)((e=>{const t=(0,f.Z)(e.target,!0);b(t>=a)}));o.useEffect((()=>{const e=(i||y)();return E({target:e}),null==e||e.addEventListener("scroll",E),()=>{E.cancel(),null==e||e.removeEventListener("scroll",E)}}),[i]);const{getPrefixCls:S,direction:M}=o.useContext(v.E_),$=S("back-top",t),k=S(),[N,O]=w($),R=u()(O,$,{[`${$}-rtl`]:"rtl"===M},n,r),I=(0,h.Z)(e,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),A=o.createElement("div",{className:`${$}-content`},o.createElement("div",{className:`${$}-icon`},o.createElement(s,null)));return N(o.createElement("div",Object.assign({},I,{className:R,onClick:e=>{(0,m.Z)(0,{getContainer:i||y,duration:c}),null==l||l(e)},ref:x}),o.createElement(d.default,{visible:C,motionName:`${k}-fade`},(t=>{let{className:n}=t;return(0,p.Tm)(e.children||A,(e=>{let{className:t}=e;return{className:u()(n,t)}}))}))))}},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(92310),o=n.n(r),a=n(59301),i=n(36355),l=n(17313),s=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*i+"%"},"&::after":{width:100-100*i+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*i+"%"},"&::after":{width:100*i+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var f=e=>{const{getPrefixCls:t,direction:n,divider:r}=a.useContext(i.E_),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:u,className:f,rootClassName:p,children:m,dashed:g,plain:v,style:C}=e,b=h(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",l),[y,E]=d(x),w=c.length>0?`-${c}`:c,S=!!m,M="left"===c&&null!=u,$="right"===c&&null!=u,k=o()(x,null==r?void 0:r.className,E,`${x}-${s}`,{[`${x}-with-text`]:S,[`${x}-with-text${w}`]:S,[`${x}-dashed`]:!!g,[`${x}-plain`]:!!v,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:M,[`${x}-no-default-orientation-margin-right`]:$},f,p),N=a.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),O=Object.assign(Object.assign({},M&&{marginLeft:N}),$&&{marginRight:N});return y(a.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==r?void 0:r.style),C)},b,{role:"separator"}),m&&"vertical"!==s&&a.createElement("span",{className:`${x}-inner-text`,style:O},m)))}},43428:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r=n(92310),o=n.n(r),a=n(57259),i=n(29043),l=n(43403),s=n(28800),c=n(59301),u=c.createContext(null),d=c.createContext({}),h=u,f=n(80962),p=n(5891),m=n(43469),g=n(85108),v=n(36994),C=n(80764);var b=function(e){var t=e.prefixCls,n=e.className,r=e.style,i=e.children,l=e.containerRef,s=e.id,u={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp},h=c.useContext(d).panel,f=(0,C.useComposeRef)(h,l);return c.createElement(c.Fragment,null,c.createElement("div",(0,p.Z)({id:s,className:o()("".concat(t,"-content"),n),style:(0,a.Z)({},r),"aria-modal":"true",role:"dialog",ref:f},u),i))},x=n(51395);function y(e){return"string"==typeof e&&String(Number(e))===e?((0,x.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var E={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function w(e,t){var n,r,l,s,u=e.prefixCls,d=e.open,C=e.placement,x=e.inline,w=e.push,S=e.forceRender,M=e.autoFocus,$=e.keyboard,k=e.rootClassName,N=e.rootStyle,O=e.zIndex,R=e.className,I=e.id,A=e.style,P=e.motion,z=e.width,B=e.height,D=e.children,T=e.contentWrapperStyle,Z=e.mask,_=e.maskClosable,F=e.maskMotion,L=e.maskClassName,H=e.maskStyle,j=e.afterOpenChange,U=e.onClose,W=e.onMouseEnter,Y=e.onMouseOver,X=e.onMouseLeave,Q=e.onClick,G=e.onKeyDown,K=e.onKeyUp,V=c.useRef(),J=c.useRef(),q=c.useRef();c.useImperativeHandle(t,(function(){return V.current}));c.useEffect((function(){var e;d&&M&&(null===(e=V.current)||void 0===e||e.focus({preventScroll:!0}))}),[d]);var ee=c.useState(!1),te=(0,i.Z)(ee,2),ne=te[0],re=te[1],oe=c.useContext(h),ae=null!==(n=null!==(r=null===(l=!1===w?{distance:0}:!0===w?{}:w||{})||void 0===l?void 0:l.distance)&&void 0!==r?r:null==oe?void 0:oe.pushDistance)&&void 0!==n?n:180,ie=c.useMemo((function(){return{pushDistance:ae,push:function(){re(!0)},pull:function(){re(!1)}}}),[ae]);c.useEffect((function(){var e,t;d?null==oe||null===(e=oe.push)||void 0===e||e.call(oe):null==oe||null===(t=oe.pull)||void 0===t||t.call(oe)}),[d]),c.useEffect((function(){return function(){var e;null==oe||null===(e=oe.pull)||void 0===e||e.call(oe)}}),[]);var le=Z&&c.createElement(m.default,(0,p.Z)({key:"mask"},F,{visible:d}),(function(e,t){var n=e.className,r=e.style;return c.createElement("div",{className:o()("".concat(u,"-mask"),n,L),style:(0,a.Z)((0,a.Z)({},r),H),onClick:_&&d?U:void 0,ref:t})})),se="function"==typeof P?P(C):P,ce={};if(ne&&ae)switch(C){case"top":ce.transform="translateY(".concat(ae,"px)");break;case"bottom":ce.transform="translateY(".concat(-ae,"px)");break;case"left":ce.transform="translateX(".concat(ae,"px)");break;default:ce.transform="translateX(".concat(-ae,"px)")}"left"===C||"right"===C?ce.width=y(z):ce.height=y(B);var ue={onMouseEnter:W,onMouseOver:Y,onMouseLeave:X,onClick:Q,onKeyDown:G,onKeyUp:K},de=c.createElement(m.default,(0,p.Z)({key:"panel"},se,{visible:d,forceRender:S,onVisibleChanged:function(e){null==j||j(e)},removeOnLeave:!1,leavedClassName:"".concat(u,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,i=t.style;return c.createElement("div",(0,p.Z)({className:o()("".concat(u,"-content-wrapper"),r),style:(0,a.Z)((0,a.Z)((0,a.Z)({},ce),i),T)},(0,v.Z)(e,{data:!0})),c.createElement(b,(0,p.Z)({id:I,containerRef:n,prefixCls:u,className:R,style:A},ue),D))})),he=(0,a.Z)({},N);return O&&(he.zIndex=O),c.createElement(h.Provider,{value:ie},c.createElement("div",{className:o()(u,"".concat(u,"-").concat(C),k,(s={},(0,f.Z)(s,"".concat(u,"-open"),d),(0,f.Z)(s,"".concat(u,"-inline"),x),s)),style:he,tabIndex:-1,ref:V,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case g.Z.TAB:var r;if(t===g.Z.TAB)if(n||document.activeElement!==q.current){if(n&&document.activeElement===J.current){var o;null===(o=q.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(r=J.current)||void 0===r||r.focus({preventScroll:!0});break;case g.Z.ESC:U&&$&&(e.stopPropagation(),U(e))}}},le,c.createElement("div",{tabIndex:0,ref:J,style:E,"aria-hidden":"true","data-sentinel":"start"}),de,c.createElement("div",{tabIndex:0,ref:q,style:E,"aria-hidden":"true","data-sentinel":"end"})))}var S=c.forwardRef(w);var M=function(e){var t=e.open,n=void 0!==t&&t,r=e.prefixCls,o=void 0===r?"rc-drawer":r,u=e.placement,h=void 0===u?"right":u,f=e.autoFocus,p=void 0===f||f,m=e.keyboard,g=void 0===m||m,v=e.width,C=void 0===v?378:v,b=e.mask,x=void 0===b||b,y=e.maskClosable,E=void 0===y||y,w=e.getContainer,M=e.forceRender,$=e.afterOpenChange,k=e.destroyOnClose,N=e.onMouseEnter,O=e.onMouseOver,R=e.onMouseLeave,I=e.onClick,A=e.onKeyDown,P=e.onKeyUp,z=e.panelRef,B=c.useState(!1),D=(0,i.Z)(B,2),T=D[0],Z=D[1];var _=c.useState(!1),F=(0,i.Z)(_,2),L=F[0],H=F[1];(0,s.Z)((function(){H(!0)}),[]);var j=!!L&&n,U=c.useRef(),W=c.useRef();(0,s.Z)((function(){j&&(W.current=document.activeElement)}),[j]);var Y=c.useMemo((function(){return{panel:z}}),[z]);if(!M&&!T&&!j&&k)return null;var X={onMouseEnter:N,onMouseOver:O,onMouseLeave:R,onClick:I,onKeyDown:A,onKeyUp:P},Q=(0,a.Z)((0,a.Z)({},e),{},{open:j,prefixCls:o,placement:h,autoFocus:p,keyboard:g,width:C,mask:x,maskClosable:E,inline:!1===w,afterOpenChange:function(e){var t,n;(Z(e),null==$||$(e),e||!W.current||null!==(t=U.current)&&void 0!==t&&t.contains(W.current))||(null===(n=W.current)||void 0===n||n.focus({preventScroll:!0}))},ref:U},X);return c.createElement(d.Provider,{value:Y},c.createElement(l.Z,{open:j||M||T,autoDestroy:!1,getContainer:w,autoLock:x&&(j||T)},c.createElement(S,Q)))},$=n(62892),k=n(36355),N=n(32441),O=n(47729);var R=e=>{const{prefixCls:t,title:n,footer:r,extra:a,closeIcon:i,closable:l,onClose:s,headerStyle:u,drawerStyle:d,bodyStyle:h,footerStyle:f,children:p}=e,m=c.useCallback((e=>c.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${t}-close`},e)),[s]),[g,v]=(0,O.Z)(l,i,m,void 0,!0),C=c.useMemo((()=>n||g?c.createElement("div",{style:u,className:o()(`${t}-header`,{[`${t}-header-close-only`]:g&&!n&&!a})},c.createElement("div",{className:`${t}-header-title`},v,n&&c.createElement("div",{className:`${t}-title`},n)),a&&c.createElement("div",{className:`${t}-extra`},a)):null),[g,v,a,u,t,n]),b=c.useMemo((()=>{if(!r)return null;const e=`${t}-footer`;return c.createElement("div",{className:e,style:f},r)}),[r,f,t]);return c.createElement("div",{className:`${t}-wrapper-body`,style:d},C,c.createElement("div",{className:`${t}-body`,style:h},p),b)},I=n(33234),A=n(83116),P=n(37613);var z=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const B=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:i,padding:l,paddingLG:s,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:h,colorSplit:f,marginSM:p,colorIcon:m,colorIconHover:g,colorText:v,fontWeightStrong:C,footerPaddingBlock:b,footerPaddingInline:x}=e,y=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[y]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${y}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${y}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${y}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${y}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${l}px ${s}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${h} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:p,color:m,fontWeight:C,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:g,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:v,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${b}px ${x}px`,borderTop:`${d}px ${h} ${f}`},"&-rtl":{direction:"rtl"}}}};var D=(0,A.Z)("Drawer",(e=>{const t=(0,P.TS)(e,{});return[B(t),z(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}))),T=n(11575),Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _={distance:180},F=e=>{const{rootClassName:t,width:n,height:r,size:a="default",mask:i=!0,push:l=_,open:s,afterOpenChange:u,onClose:d,prefixCls:h,getContainer:f,style:p,className:m,visible:g,afterVisibleChange:v}=e,C=Z(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:b,getPrefixCls:x,direction:y,drawer:E}=c.useContext(k.E_),w=x("drawer",h),[S,O]=D(w),A=void 0===f&&b?()=>b(document.body):f,P=o()({"no-mask":!i,[`${w}-rtl`]:"rtl"===y},t,O);const z=c.useMemo((()=>null!=n?n:"large"===a?736:378),[n,a]),B=c.useMemo((()=>null!=r?r:"large"===a?736:378),[r,a]),F={motionName:(0,$.m)(w,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},L=(0,T.H)();return S(c.createElement(I.BR,null,c.createElement(N.Ux,{status:!0,override:!0},c.createElement(M,Object.assign({prefixCls:w,onClose:d,maskMotion:F,motion:e=>({motionName:(0,$.m)(w,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},C,{open:null!=s?s:g,mask:i,push:l,width:z,height:B,style:Object.assign(Object.assign({},null==E?void 0:E.style),p),className:o()(null==E?void 0:E.className,m),rootClassName:P,getContainer:A,afterOpenChange:null!=u?u:v,panelRef:L}),c.createElement(R,Object.assign({prefixCls:w},C,{onClose:d}))))))};F._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,i=Z(e,["prefixCls","style","className","placement"]),{getPrefixCls:l}=c.useContext(k.E_),s=l("drawer",t),[u,d]=D(s),h=o()(s,`${s}-pure`,`${s}-${a}`,d,r);return u(c.createElement("div",{className:h,style:n},c.createElement(R,Object.assign({prefixCls:s},i))))};var L=F},44e3:function(e,t,n){"use strict";var r=n(84966),o=n(99580);const a=r.ZP;a.Header=r.h4,a.Footer=r.$_,a.Content=r.VY,a.Sider=o.Z,t.Z=a},39722:function(e,t,n){"use strict";n.d(t,{t5:function(){return d}});var r=n(92310),o=n.n(r),a=n(55477),i=n(59301),l=n(36355),s=n(77578),c=n(17356),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const d=e=>{const{hashId:t,prefixCls:n,className:r,style:l,placement:c="top",title:u,content:d,children:h}=e;return i.createElement("div",{className:o()(t,n,`${n}-pure`,`${n}-placement-${c}`,r),style:l},i.createElement("div",{className:`${n}-arrow`}),i.createElement(a.G,Object.assign({},e,{className:t,prefixCls:n}),h||((e,t,n)=>{if(t||n)return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${e}-title`},(0,s.Z)(t)),i.createElement("div",{className:`${e}-inner-content`},(0,s.Z)(n)))})(n,u,d)))};t.ZP=e=>{const{prefixCls:t}=e,n=u(e,["prefixCls"]),{getPrefixCls:r}=i.useContext(l.E_),o=r("popover",t),[a,s]=(0,c.Z)(o);return a(i.createElement(d,Object.assign({},n,{prefixCls:o,hashId:s})))}},60324:function(e,t,n){"use strict";var r=n(92310),o=n.n(r),a=n(59301),i=n(77578),l=n(62892),s=n(36355),c=n(6848),u=n(39722),d=n(17356),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const f=e=>{let{title:t,content:n,prefixCls:r}=e;return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${r}-title`},(0,i.Z)(t)),a.createElement("div",{className:`${r}-inner-content`},(0,i.Z)(n)))},p=a.forwardRef(((e,t)=>{const{prefixCls:n,title:r,content:i,overlayClassName:u,placement:p="top",trigger:m="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,overlayStyle:C={}}=e,b=h(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:x}=a.useContext(s.E_),y=x("popover",n),[E,w]=(0,d.Z)(y),S=x(),M=o()(u,w);return E(a.createElement(c.Z,Object.assign({placement:p,trigger:m,mouseEnterDelay:g,mouseLeaveDelay:v,overlayStyle:C},b,{prefixCls:y,overlayClassName:M,ref:t,overlay:r||i?a.createElement(f,{prefixCls:y,title:r,content:i}):null,transitionName:(0,l.m)(S,"zoom-big",b.transitionName),"data-popover-inject":!0})))}));p._InternalPanelDoNotUseOrYouWillBeFired=u.ZP,t.Z=p},17356:function(e,t,n){"use strict";var r=n(17313),o=n(29878),a=n(19447),i=n(33166),l=n(83116),s=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:o,fontWeightStrong:i,popoverPadding:l,boxShadowSecondary:s,colorTextHeading:c,borderRadiusLG:u,zIndexPopup:d,marginXS:h,colorBgElevated:f,popoverBg:p}=e;return[{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:u,boxShadow:s,padding:l},[`${t}-title`]:{minWidth:o,marginBottom:h,color:c,fontWeight:i},[`${t}-inner-content`]:{color:n}})},(0,a.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},u=e=>{const{componentCls:t}=e;return{[t]:i.i.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},d=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:i,fontSize:l,lineHeight:s,padding:c}=e,u=i-Math.round(l*s);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${c}px ${u/2-n}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${c}px`}}}};t.Z=(0,l.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,a=(0,s.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(a),u(a),r&&d(a),(0,o._y)(a,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},12780:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r=n(59301),o=n(5891),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},i=n(88853),l=function(e,t){return r.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))};var s,c=r.forwardRef(l),u=n(92310),d=n.n(u),h=Object.defineProperty,f=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))p.call(t,n)&&g(e,n,t[n]);if(f)for(var n of f(t))m.call(t,n)&&g(e,n,t[n]);return e},C=(e,t)=>{var n={};for(var r in e)p.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&f)for(var r of f(e))t.indexOf(r)<0&&m.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const l=this.addEccAndInterleave(r);if(this.drawCodewords(l),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,c=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let u,d;for(u=o;;u++){const r=8*t.getNumDataCodewords(u,n),o=l.getTotalBits(e,u);if(o<=r){d=o;break}if(u>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&d<=8*t.getNumDataCodewords(u,e)&&(n=e);let h=[];for(const t of e){r(t.mode.modeBits,4,h),r(t.numChars,t.mode.numCharCountBits(u),h);for(const e of t.getData())h.push(e)}a(h.length==d);const f=8*t.getNumDataCodewords(u,n);a(h.length<=f),r(0,Math.min(4,f-h.length),h),r(0,(8-h.length%8)%8,h),a(h.length%8==0);for(let e=236;h.length<f;e^=253)r(e,8,h);let p=[];for(;8*p.length<h.length;)p.push(0);return h.forEach(((e,t)=>p[t>>>3]|=e<<7-(7&t))),new t(u,n,p,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],l=Math.floor(t.getNumRawDataModules(n)/8),s=o-l%o,c=Math.floor(l/o);let u=[];const d=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+c-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,d);n<s&&o.push(0),u.push(o.concat(a))}let h=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,n)=>{(e!=c-i||n>=s)&&h.push(t[e])}));return a(h.length==l),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,l=0==(t+1&2)?this.size-1-r:r;!this.isFunction[l][i]&&n<8*e.length&&(this.modules[l][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let l=i;l.NUMERIC_REGEX=/^[0-9]*$/,l.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,l.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=l})(s||(s={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(s||(s={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(s||(s={}));var b=s,x={L:b.QrCode.Ecc.LOW,M:b.QrCode.Ecc.MEDIUM,Q:b.QrCode.Ecc.QUARTILE,H:b.QrCode.Ecc.HIGH},y=128,E="L",w="#FFFFFF",S="#000000",M=!1;function $(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(a,i){if(!a&&null!==o)return n.push(`M${o+t} ${r+t}h${i-o}v1H${o+t}z`),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?n.push(`M${i+t},${r+t} h1v1H${i+t}z`):n.push(`M${o+t},${r+t} h${i+1-o}v1H${o+t}z`)}}))})),n.join("")}function k(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function N(e,t,n,r){if(null==r)return null;const o=n?4:0,a=e.length+2*o,i=Math.floor(.1*t),l=a/t,s=(r.width||i)*l,c=(r.height||i)*l,u=null==r.x?e.length/2-s/2:r.x*l,d=null==r.y?e.length/2-c/2:r.y*l;let h=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(d);h={x:e,y:t,w:Math.ceil(s+u-e),h:Math.ceil(c+d-t)}}return{x:u,y:d,h:c,w:s,excavation:h}}var O=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function R(e){const t=e,{value:n,size:o=y,level:a=E,bgColor:i=w,fgColor:l=S,includeMargin:s=M,style:c,imageSettings:u}=t,d=C(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),h=null==u?void 0:u.src,f=r.useRef(null),p=r.useRef(null),[m,g]=r.useState(!1);r.useEffect((()=>{if(null!=f.current){const e=f.current,t=e.getContext("2d");if(!t)return;let r=b.QrCode.encodeText(n,x[a]).getModules();const c=s?4:0,d=r.length+2*c,h=N(r,o,s,u),m=p.current,g=null!=h&&null!==m&&m.complete&&0!==m.naturalHeight&&0!==m.naturalWidth;g&&null!=h.excavation&&(r=k(r,h.excavation));const v=window.devicePixelRatio||1;e.height=e.width=o*v;const C=o/d*v;t.scale(C,C),t.fillStyle=i,t.fillRect(0,0,d,d),t.fillStyle=l,O?t.fill(new Path2D($(r,c))):r.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+c,n+c,1,1)}))})),g&&t.drawImage(m,h.x+c,h.y+c,h.w,h.h)}})),r.useEffect((()=>{g(!1)}),[h]);const R=v({height:o,width:o},c);let I=null;return null!=h&&(I=r.createElement("img",{src:h,key:h,style:{display:"none"},onLoad:()=>{g(!0)},ref:p})),r.createElement(r.Fragment,null,r.createElement("canvas",v({style:R,height:o,width:o,ref:f},d)),I)}function I(e){const t=e,{value:n,size:o=y,level:a=E,bgColor:i=w,fgColor:l=S,includeMargin:s=M,imageSettings:c}=t,u=C(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let d=b.QrCode.encodeText(n,x[a]).getModules();const h=s?4:0,f=d.length+2*h,p=N(d,o,s,c);let m=null;null!=c&&null!=p&&(null!=p.excavation&&(d=k(d,p.excavation)),m=r.createElement("image",{xlinkHref:c.src,height:p.h,width:p.w,x:p.x+h,y:p.y+h,preserveAspectRatio:"none"}));const g=$(d,h);return r.createElement("svg",v({height:o,width:o,viewBox:`0 0 ${f} ${f}`},u),r.createElement("path",{fill:i,d:`M0,0 h${f}v${f}H0z`,shapeRendering:"crispEdges"}),r.createElement("path",{fill:l,d:g,shapeRendering:"crispEdges"}),m)}var A=n(3113),P=n(36355),z=n(9763),B=n(71418),D=n(88088),T=n(17313),Z=n(83116),_=n(37613);var F=(0,Z.Z)("QRCode",(e=>(e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign({},(0,T.Wf)(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired`]:{color:e.QRCodeExpiredTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}})((0,_.TS)(e,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"}))));var L=e=>{const[,t]=(0,D.Z)(),{value:n,type:o="canvas",icon:a="",size:i=160,iconSize:l=40,color:s=t.colorText,errorLevel:u="M",status:h="active",bordered:f=!0,onRefresh:p,style:m,className:g,rootClassName:v,prefixCls:C,bgColor:b="transparent"}=e,{getPrefixCls:x}=(0,r.useContext)(P.E_),y=x("qrcode",C),[E,w]=F(y),S={src:a,x:void 0,y:void 0,height:l,width:l,excavate:!0},M={value:n,size:i-2*(t.paddingSM+t.lineWidth),level:u,bgColor:b,fgColor:s,imageSettings:a?S:void 0},[$]=(0,z.Z)("QRCode");if(!n)return null;const k=d()(y,g,v,w,{[`${y}-borderless`]:!f});return E(r.createElement("div",{style:Object.assign(Object.assign({},m),{width:i,height:i,backgroundColor:b}),className:k},"active"!==h&&r.createElement("div",{className:`${y}-mask`},"loading"===h&&r.createElement(B.Z,null),"expired"===h&&r.createElement(r.Fragment,null,r.createElement("p",{className:`${y}-expired`},null==$?void 0:$.expired),p&&r.createElement(A.ZP,{type:"link",icon:r.createElement(c,null),onClick:p},null==$?void 0:$.refresh))),"canvas"===o?r.createElement(R,Object.assign({},M)):r.createElement(I,Object.assign({},M))))}},24334:function(e,t,n){var r,o;o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:this,e.exports=function(n){"use strict";var o,a=(n=n||{}).Base64,i="2.6.4",l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(l),c=String.fromCharCode,u=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?c(192|t>>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,h=function(e){return e.replace(d,u)},f=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[l.charAt(n>>>18),l.charAt(n>>>12&63),t>=2?"=":l.charAt(n>>>6&63),t>=1?"=":l.charAt(63&n)].join("")},p=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,f)},m=function(e){return p(h(String(e)))},g=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},v=function(e,t){return t?g(m(e)):m(e)},C=function(e){return v(e,!0)};n.Uint8Array&&(o=function(e,t){for(var n="",r=0,o=e.length;r<o;r+=3){var a=e[r],i=e[r+1],s=e[r+2],c=a<<16|i<<8|s;n+=l.charAt(c>>>18)+l.charAt(c>>>12&63)+(void 0!==i?l.charAt(c>>>6&63):"=")+(void 0!==s?l.charAt(63&c):"=")}return t?g(n):n});var b,x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,y=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c(55296+(t>>>10))+c(56320+(1023&t));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},E=function(e){return e.replace(x,y)},w=function(e){var t=e.length,n=t%4,r=(t>0?s[e.charAt(0)]<<18:0)|(t>1?s[e.charAt(1)]<<12:0)|(t>2?s[e.charAt(2)]<<6:0)|(t>3?s[e.charAt(3)]:0),o=[c(r>>>16),c(r>>>8&255),c(255&r)];return o.length-=[0,0,2,1][n],o.join("")},S=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,w)},M=function(e){return S(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},$=function(e){return E(S(e))},k=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},N=function(e){return $(k(e))};n.Uint8Array&&(b=function(e){return Uint8Array.from(M(k(e)),(function(e){return e.charCodeAt(0)}))});var O=function(){var e=n.Base64;return n.Base64=a,e};if(n.Base64={VERSION:i,atob:M,btoa:p,fromBase64:N,toBase64:v,utob:h,encode:v,encodeURI:C,btou:E,decode:N,noConflict:O,fromUint8Array:o,toUint8Array:b},"function"==typeof Object.defineProperty){var R=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",R((function(){return N(this)}))),Object.defineProperty(String.prototype,"toBase64",R((function(e){return v(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",R((function(){return v(this,!0)})))}}return n.Meteor&&(Base64=n.Base64),e.exports?e.exports.Base64=n.Base64:void 0===(r=function(){return n.Base64}.apply(t,[]))||(e.exports=r),{Base64:n.Base64}}(o)}}]); |