@nocobase/plugin-theme-editor 1.5.0-beta.1 → 1.6.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/171.index.js +10 -0
- package/dist/client/506.index.js +10 -0
- package/dist/client/916.index.js +10 -0
- package/dist/client/933.index.js +44 -0
- package/dist/client/964.index.js +10 -0
- package/dist/client/components/InitializeTheme.d.ts +2 -2
- package/dist/client/index.js +1 -86
- package/dist/externalVersion.js +4 -4
- package/package.json +2 -2
package/dist/client/index.js
CHANGED
|
@@ -7,89 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
(function(W,o){typeof exports=="object"&&typeof module!="undefined"?o(exports,require("react/jsx-runtime"),require("@nocobase/client"),require("antd"),require("lodash"),require("react"),require("@nocobase/utils/client"),require("@ant-design/icons"),require("@ant-design/cssinjs"),require("react-i18next"),require("@emotion/css")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@nocobase/client","antd","lodash","react","@nocobase/utils/client","@ant-design/icons","@ant-design/cssinjs","react-i18next","@emotion/css"],o):(W=typeof globalThis!="undefined"?globalThis:W||self,o(W["@nocobase/plugin-theme-editor"]={},W.jsxRuntime,W["@nocobase/client"],W.antd,W.lodash,W.react,W["@nocobase/utils"],W["@ant-design/icons"],W["@ant-design/cssinjs"],W["react-i18next"],W["@emotion/css"]))})(this,function(W,o,z,i,ze,h,Be,D,Le,fo,Uo){"use strict";var rm=Object.defineProperty,tm=Object.defineProperties;var nm=Object.getOwnPropertyDescriptors;var Br=Object.getOwnPropertySymbols;var cl=Object.prototype.hasOwnProperty,sl=Object.prototype.propertyIsEnumerable;var ll=(W,o,z)=>o in W?rm(W,o,{enumerable:!0,configurable:!0,writable:!0,value:z}):W[o]=z,I=(W,o)=>{for(var z in o||(o={}))cl.call(o,z)&&ll(W,z,o[z]);if(Br)for(var z of Br(o))sl.call(o,z)&&ll(W,z,o[z]);return W},_=(W,o)=>tm(W,nm(o));var Go=(W,o)=>{var z={};for(var i in W)cl.call(W,i)&&o.indexOf(i)<0&&(z[i]=W[i]);if(W!=null&&Br)for(var i of Br(W))o.indexOf(i)<0&&sl.call(W,i)&&(z[i]=W[i]);return z};var oo=(W,o,z)=>new Promise((i,ze)=>{var h=Le=>{try{D(z.next(Le))}catch(fo){ze(fo)}},Be=Le=>{try{D(z.throw(Le))}catch(fo){ze(fo)}},D=Le=>Le.done?i(Le.value):Promise.resolve(Le.value).then(h,Be);D((z=z.apply(W,o)).next())});var tl,nl,al,il;function dl(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const E=dl(h);function Dr(e){return e=ze.cloneDeep(e),e.algorithm&&(Array.isArray(e.algorithm)?e.algorithm=e.algorithm.map(r=>Rt(r)).filter(Boolean):e.algorithm=Rt(e.algorithm),ze.isEmpty(e.algorithm)&&delete e.algorithm),e}function Rt(e){if(typeof e=="string")return e;if(e.toString()===i.theme.darkAlgorithm.toString())return"darkAlgorithm";if(e.toString()===i.theme.compactAlgorithm.toString())return"compactAlgorithm"}function en(e){var r;return e=ze.cloneDeep(e),ze.isString(e.config.algorithm)&&(e.config.algorithm=i.theme[e.config.algorithm]),Array.isArray((r=e.config)==null?void 0:r.algorithm)&&(e.config.algorithm=e.config.algorithm.map(t=>ze.isString(t)?i.theme[t]:t)),e}const Hr=h.createContext(null);Hr.displayName="ThemeListContext";const jo=()=>h.useContext(Hr),on=({children:e})=>{const{data:r,error:t,run:n,refresh:a,loading:l}=z.useRequest({url:"themeConfig:list",params:{sort:"id",paginate:!1}},{manual:!0}),c=h.useMemo(()=>{var s;return(s=r==null?void 0:r.data)==null?void 0:s.map(d=>en(d))},[r]);return t&&Be.error(t),o.jsx(Hr.Provider,{value:{data:c,error:t,run:n,refresh:a,loading:l},children:e})};on.displayName="ThemeListProvider";const rn=h.createContext({}),tn=()=>h.useContext(rn),nn=({children:e})=>{var p,g,u;const r=z.useCurrentUserContext(),{setTheme:t}=z.useGlobalTheme(),{run:n,data:a,loading:l}=jo(),c=h.useMemo(()=>a==null?void 0:a.find(f=>f.default),[a]),s=h.useRef(null),d=z.useAPIClient();return h.useEffect(()=>{const f=d.auth.getOption("theme");if(f)try{t(en(JSON.parse(f)).config)}catch(C){Be.error(C)}},[]),h.useEffect(()=>{var x,y,m;if(!a)return n();const f=(m=(y=(x=r==null?void 0:r.data)==null?void 0:x.data)==null?void 0:y.systemSettings)==null?void 0:m.themeId;let C;f!=null&&(C=a.find(S=>S.id===f)),C||(C=c),C?(s.current=C.id,t(C.config),d.auth.setOption("theme",JSON.stringify(Object.assign(I({},C),{config:Dr(C.config)})))):(t(z.defaultTheme),d.auth.setOption("theme",null))},[d.auth,(u=(g=(p=r==null?void 0:r.data)==null?void 0:p.data)==null?void 0:g.systemSettings)==null?void 0:u.themeId,a,n,t,c]),l&&!a?o.jsx("div",{style:{textAlign:"center",marginTop:20},children:o.jsx(i.Spin,{})}):o.jsx(rn.Provider,{value:{currentThemeId:s.current,defaultThemeId:c==null?void 0:c.id},children:e})};nn.displayName="InitializeTheme";const an=h.createContext(null),Ar=()=>h.useContext(an),ln=({children:e,open:r,setOpen:t})=>o.jsx(an.Provider,{value:{open:r,setOpen:t},children:e});ln.displayName="ThemeEditorProvider";function Vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cn={exports:{}};/*!
|
|
11
|
-
Copyright (c) 2018 Jed Watson.
|
|
12
|
-
Licensed under the MIT License (MIT), see
|
|
13
|
-
http://jedwatson.github.io/classnames
|
|
14
|
-
*/(function(e){(function(){var r={}.hasOwnProperty;function t(){for(var l="",c=0;c<arguments.length;c++){var s=arguments[c];s&&(l=a(l,n(s)))}return l}function n(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return t.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var c="";for(var s in l)r.call(l,s)&&l[s]&&(c=a(c,s));return c}function a(l,c){return c?l?l+" "+c:l+c:l}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(cn);var pl=cn.exports;const ee=Vo(pl),{ConfigContext:gl}=i.ConfigProvider,ie=(e,r)=>()=>{const{theme:t,token:n,hashId:a}=i.theme.useToken(),{getPrefixCls:l}=h.useContext(gl),c=l();return[Le.useStyleRegister({theme:t,hashId:a,token:n,path:[e]},()=>r(_(I({},n),{rootCls:`.${c}`}))),a]},sn={Upload:{global:["fontSizeHeading3","fontHeight","lineWidth","controlHeightLG","colorTextDisabled","colorText","fontSize","lineHeight","fontFamily","colorFillAlter","colorBorder","borderRadiusLG","motionDurationSlow","padding","lineWidthFocus","colorPrimaryBorder","colorPrimaryHover","margin","colorPrimary","marginXXS","colorTextHeading","fontSizeLG","colorTextDescription","paddingXS","lineType","paddingSM","fontSizeHeading2","colorError","colorErrorBg","colorTextLightSolid","marginXS","colorBgMask","marginXL","fontHeightSM","controlItemBgHover","motionEaseInOutCirc","motionDurationMid","motionEaseInOut"],component:{actionsColor:"rgba(0, 0, 0, 0.45)"}},Typography:{global:["colorText","lineHeight","colorTextDescription","colorSuccess","colorWarning","colorError","colorErrorActive","colorErrorHover","colorTextDisabled","fontSizeHeading1","lineHeightHeading1","colorTextHeading","fontWeightStrong","fontSizeHeading2","lineHeightHeading2","fontSizeHeading3","lineHeightHeading3","fontSizeHeading4","lineHeightHeading4","fontSizeHeading5","lineHeightHeading5","fontFamilyCode","colorLink","motionDurationSlow","colorLinkHover","colorLinkActive","linkDecoration","linkHoverDecoration","marginXXS","paddingSM","marginXS","fontSize"],component:{titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}},TreeSelect:{global:["colorBgElevated","paddingXS","colorText","fontSize","lineHeight","fontFamily","borderRadius","motionDurationSlow","lineWidthFocus","colorPrimaryBorder","colorPrimary","colorTextDisabled","controlItemBgHover","colorBorder","marginXXS","motionDurationMid","lineWidthBold","controlInteractiveSize","marginXS","borderRadiusSM","colorBgContainer","lineWidth","lineType","colorWhite","motionDurationFast","motionEaseInBack","colorPrimaryHover","motionEaseOutBack","fontSizeLG","colorBgContainerDisabled"],component:{titleHeight:24,nodeHoverBg:"rgba(0, 0, 0, 0.04)",nodeSelectedBg:"#e6f4ff"}},Transfer:{global:["marginXS","marginXXS","fontSizeIcon","colorBgContainerDisabled","colorText","fontSize","lineHeight","fontFamily","colorBorder","colorSplit","lineWidth","controlItemBgActive","colorTextDisabled","paddingSM","lineType","motionDurationSlow","controlItemBgHover","borderRadiusLG","colorBgContainer","controlItemBgActiveHover","colorLinkHover","paddingXS","controlHeightLG","margin","colorError","colorWarning"],component:{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:40,itemHeight:32,itemPaddingBlock:5,transferHeaderVerticalPadding:9}},Tour:{global:["borderRadiusLG","lineHeight","padding","paddingXS","borderRadius","borderRadiusXS","colorPrimary","colorText","colorFill","boxShadowTertiary","fontSize","colorBgElevated","fontWeightStrong","marginXS","colorTextLightSolid","colorWhite","motionDurationSlow","fontFamily","colorIcon","borderRadiusSM","motionDurationMid","colorIconHover","boxShadowPopoverArrow","sizePopupArrow"],component:{zIndexPopup:1070,closeBtnSize:22,primaryPrevBtnBg:"rgba(255, 255, 255, 0.15)",closeBtnHoverBg:"transparent",primaryNextBtnHoverBg:"rgb(240, 240, 240)",arrowOffsetHorizontal:12,arrowOffsetVertical:8,arrowShadowWidth:8.970562748477143,arrowPath:"path('M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z')",arrowPolygon:"polygon(1.6568542494923806px 100%, 50% 1.6568542494923806px, 14.34314575050762px 100%, 1.6568542494923806px 100%)"}},Tooltip:{global:["borderRadius","colorTextLightSolid","colorBgSpotlight","controlHeight","boxShadowSecondary","paddingSM","paddingXS","colorText","fontSize","lineHeight","fontFamily","blue1","blue3","blue6","blue7","purple1","purple3","purple6","purple7","cyan1","cyan3","cyan6","cyan7","green1","green3","green6","green7","magenta1","magenta3","magenta6","magenta7","pink1","pink3","pink6","pink7","red1","red3","red6","red7","orange1","orange3","orange6","orange7","yellow1","yellow3","yellow6","yellow7","volcano1","volcano3","volcano6","volcano7","geekblue1","geekblue3","geekblue6","geekblue7","lime1","lime3","lime6","lime7","gold1","gold3","gold6","gold7","boxShadowPopoverArrow","sizePopupArrow","borderRadiusXS","motionDurationFast","motionEaseOutCirc","motionEaseInOutCirc"],component:{zIndexPopup:1070,arrowOffsetHorizontal:12,arrowOffsetVertical:8,arrowShadowWidth:8.970562748477143,arrowPath:"path('M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z')",arrowPolygon:"polygon(1.6568542494923806px 100%, 50% 1.6568542494923806px, 14.34314575050762px 100%, 1.6568542494923806px 100%)"}},Tree:{global:["controlInteractiveSize","colorText","fontSize","lineHeight","fontFamily","marginXS","borderRadiusSM","lineWidthFocus","colorPrimaryBorder","colorBgContainer","lineWidth","lineType","colorBorder","motionDurationSlow","lineWidthBold","colorWhite","motionDurationFast","motionEaseInBack","paddingXS","colorPrimary","colorPrimaryHover","motionDurationMid","motionEaseOutBack","fontSizeLG","colorBgContainerDisabled","colorTextDisabled","borderRadius","controlItemBgHover","marginXXS","motionEaseInOut"],component:{titleHeight:24,nodeHoverBg:"rgba(0, 0, 0, 0.04)",nodeSelectedBg:"#e6f4ff",directoryNodeSelectedColor:"#fff",directoryNodeSelectedBg:"#1677ff"}},Table:{global:["colorTextHeading","colorSplit","colorBgContainer","controlInteractiveSize","padding","fontWeightStrong","lineWidth","lineType","motionDurationMid","colorText","fontSize","lineHeight","fontFamily","margin","paddingXS","marginXXS","fontSizeIcon","motionDurationSlow","colorPrimary","paddingXXS","fontSizeSM","borderRadius","colorTextDescription","colorTextDisabled","controlItemBgHover","controlItemBgActive","boxShadowSecondary","colorLink","colorLinkHover","colorLinkActive","opacityLoading"],component:{headerBg:"#fafafa",headerColor:"rgba(0, 0, 0, 0.88)",headerSortActiveBg:"#f0f0f0",headerSortHoverBg:"#f0f0f0",bodySortBg:"#fafafa",rowHoverBg:"#fafafa",rowSelectedBg:"#e6f4ff",rowSelectedHoverBg:"#bae0ff",rowExpandedBg:"rgba(0, 0, 0, 0.02)",cellPaddingBlock:16,cellPaddingInline:16,cellPaddingBlockMD:12,cellPaddingInlineMD:8,cellPaddingBlockSM:8,cellPaddingInlineSM:8,borderColor:"#f0f0f0",headerBorderRadius:8,footerBg:"#fafafa",footerColor:"rgba(0, 0, 0, 0.88)",cellFontSize:14,cellFontSizeMD:14,cellFontSizeSM:14,headerSplitColor:"#f0f0f0",fixedHeaderSortActiveBg:"#f0f0f0",headerFilterHoverBg:"rgba(0, 0, 0, 0.06)",filterDropdownMenuBg:"#ffffff",filterDropdownBg:"#ffffff",expandIconBg:"#ffffff",selectionColumnWidth:32,stickyScrollBarBg:"rgba(0, 0, 0, 0.25)",stickyScrollBarBorderRadius:100,expandIconMarginTop:2.5,headerIconColor:"rgba(0, 0, 0, 0.29)",headerIconHoverColor:"rgba(0, 0, 0, 0.57)",expandIconHalfInner:7,expandIconSize:17,expandIconScale:.9411764705882353}},Switch:{global:["motionDurationMid","colorPrimary","opacityLoading","fontSizeIcon","colorText","fontSize","lineHeight","fontFamily","colorTextQuaternary","colorTextTertiary","lineWidthFocus","colorPrimaryBorder","colorPrimaryHover","colorTextLightSolid","fontSizeSM","marginXXS"],component:{trackHeight:22,trackHeightSM:16,trackMinWidth:44,trackMinWidthSM:28,trackPadding:2,handleBg:"#fff",handleSize:18,handleSizeSM:12,handleShadow:"0 2px 4px 0 rgba(0, 35, 11, 0.2)",innerMinMargin:9,innerMaxMargin:24,innerMinMarginSM:6,innerMaxMarginSM:18}},Steps:{global:["colorTextDisabled","controlHeightLG","colorTextLightSolid","colorText","colorPrimary","colorTextDescription","colorTextQuaternary","colorError","colorBorderSecondary","colorSplit","fontSize","lineHeight","fontFamily","motionDurationSlow","lineWidthFocus","colorPrimaryBorder","marginXS","lineWidth","lineType","paddingXXS","padding","fontSizeLG","fontWeightStrong","fontSizeSM","paddingSM","margin","controlHeight","marginXXS","paddingLG","marginSM","paddingXS","controlHeightSM","fontSizeIcon","lineWidthBold","marginLG","borderRadiusSM","motionDurationMid","controlItemBgHover","lineHeightSM","colorBorderBg"],component:{titleLineHeight:32,customIconSize:32,customIconTop:0,customIconFontSize:24,iconSize:32,iconTop:-.5,iconFontSize:14,iconSizeSM:24,dotSize:8,dotCurrentSize:10,navArrowColor:"rgba(0, 0, 0, 0.25)",navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:"rgba(0, 0, 0, 0.25)",waitIconBgColor:"#ffffff",waitIconBorderColor:"rgba(0, 0, 0, 0.25)",finishIconBgColor:"#ffffff",finishIconBorderColor:"#1677ff"}},Statistic:{global:["marginXXS","padding","colorTextDescription","colorTextHeading","fontFamily","colorText","fontSize","lineHeight"],component:{titleFontSize:14,contentFontSize:24}},Timeline:{global:["paddingXXS","colorText","fontSize","lineHeight","fontFamily","lineType","fontSizeSM","colorPrimary","colorError","colorSuccess","colorTextDisabled","lineWidth","margin","controlHeightLG","marginXXS","marginSM","marginXS"],component:{tailColor:"rgba(5, 5, 5, 0.06)",tailWidth:2,dotBorderWidth:2,dotBg:"#ffffff",itemPaddingBottom:20}},Tag:{global:["lineWidth","fontSizeIcon","fontSizeSM","lineHeightSM","colorFillTertiary","paddingXXS","colorText","fontSize","lineHeight","fontFamily","marginXS","lineType","colorBorder","borderRadiusSM","motionDurationMid","colorTextDescription","colorTextHeading","colorTextLightSolid","colorPrimary","colorFillSecondary","colorPrimaryHover","colorPrimaryActive"],component:{defaultBg:"#fafafa",defaultColor:"rgba(0, 0, 0, 0.88)"}},Spin:{global:["colorTextDescription","colorText","fontSize","lineHeight","fontFamily","colorPrimary","motionDurationSlow","motionEaseInOutCirc","colorBgMask","zIndexPopupBase","motionDurationMid","colorWhite","colorTextLightSolid","colorBgContainer","marginXXS"],component:{contentHeight:400,dotSize:20,dotSizeSM:14,dotSizeLG:32}},Skeleton:{global:["controlHeight","controlHeightLG","controlHeightSM","padding","marginSM","controlHeightXS","borderRadiusSM"],component:{color:"rgba(0, 0, 0, 0.06)",colorGradientEnd:"rgba(0, 0, 0, 0.15)",gradientFromColor:"rgba(0, 0, 0, 0.06)",gradientToColor:"rgba(0, 0, 0, 0.15)",titleHeight:16,blockRadius:4,paragraphMarginTop:28,paragraphLiHeight:16}},Slider:{global:["controlHeight","controlHeightLG","colorFillContentHover","colorText","fontSize","lineHeight","fontFamily","borderRadiusXS","motionDurationMid","colorPrimaryBorderHover","colorBgElevated","colorTextDescription","motionDurationSlow"],component:{controlSize:10,railSize:4,handleSize:10,handleSizeHover:12,dotSize:8,handleLineWidth:2,handleLineWidthHover:4,railBg:"rgba(0, 0, 0, 0.04)",railHoverBg:"rgba(0, 0, 0, 0.06)",trackBg:"#91caff",trackHoverBg:"#69b1ff",handleColor:"#91caff",handleActiveColor:"#1677ff",handleColorDisabled:"#bfbfbf",dotBorderColor:"#f0f0f0",dotActiveBorderColor:"#91caff",trackBgDisabled:"rgba(0, 0, 0, 0.04)"}},Select:{global:["paddingSM","controlHeight","colorText","fontSize","lineHeight","fontFamily","lineWidth","lineType","colorBorder","motionDurationMid","motionEaseInOut","colorTextDisabled","colorBgContainerDisabled","colorTextPlaceholder","fontSizeIcon","colorTextQuaternary","motionDurationSlow","colorTextTertiary","paddingXS","controlPaddingHorizontalSM","borderRadius","controlHeightSM","borderRadiusSM","fontSizeLG","borderRadiusLG","controlHeightXS","borderRadiusXS","controlHeightLG","controlPaddingHorizontal","colorIcon","colorIconHover","paddingXXS","colorBgElevated","boxShadowSecondary","colorTextDescription","fontSizeSM","colorPrimary","motionEaseOutQuint","motionEaseInQuint","motionEaseOutCirc","motionEaseInOutCirc","colorPrimaryHover","controlOutline","controlOutlineWidth","colorErrorHover","colorError","colorErrorOutline","colorWarningHover","colorWarning","colorWarningOutline"],component:{zIndexPopup:1050,optionSelectedColor:"rgba(0, 0, 0, 0.88)",optionSelectedFontWeight:600,optionSelectedBg:"#e6f4ff",optionActiveBg:"rgba(0, 0, 0, 0.04)",optionPadding:"5px 12px",optionFontSize:14,optionLineHeight:1.5714285714285714,optionHeight:32,selectorBg:"#ffffff",clearBg:"#ffffff",singleItemHeightLG:40,multipleItemBg:"rgba(0, 0, 0, 0.06)",multipleItemBorderColor:"transparent",multipleItemHeight:24,multipleItemHeightLG:32,multipleSelectorBgDisabled:"rgba(0, 0, 0, 0.04)",multipleItemColorDisabled:"rgba(0, 0, 0, 0.25)",multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:18}},Result:{global:["colorInfo","colorError","colorSuccess","colorWarning","lineHeightHeading3","padding","paddingXL","paddingXS","paddingLG","marginXS","lineHeight","colorTextHeading","colorTextDescription","colorFillAlter"],component:{titleFontSize:24,subtitleFontSize:14,iconFontSize:72,extraMargin:"24px 0 0 0"}},Segmented:{global:["lineWidth","lineWidthBold","colorBgLayout","controlPaddingHorizontal","controlPaddingHorizontalSM","controlHeight","controlHeightLG","controlHeightSM","colorText","fontSize","lineHeight","fontFamily","borderRadius","motionDurationMid","motionEaseInOut","borderRadiusSM","boxShadowTertiary","marginSM","paddingXXS","borderRadiusLG","fontSizeLG","borderRadiusXS","colorTextDisabled","motionDurationSlow"],component:{itemColor:"rgba(0, 0, 0, 0.65)",itemHoverColor:"rgba(0, 0, 0, 0.88)",itemHoverBg:"rgba(0, 0, 0, 0.06)",itemSelectedBg:"#ffffff",itemActiveBg:"rgba(0, 0, 0, 0.15)",itemSelectedColor:"rgba(0, 0, 0, 0.88)"}},Space:{global:["paddingXS","padding","paddingLG"],component:{}},Tabs:{global:["paddingXXS","borderRadius","marginSM","marginXS","marginXXS","margin","colorBorderSecondary","lineWidth","lineType","lineWidthBold","motionDurationSlow","controlHeight","boxShadowTabsOverflowLeft","boxShadowTabsOverflowRight","boxShadowTabsOverflowTop","boxShadowTabsOverflowBottom","colorBorder","paddingLG","colorText","fontSize","lineHeight","fontFamily","colorBgContainer","borderRadiusLG","boxShadowSecondary","paddingSM","colorTextDescription","fontSizeSM","controlItemBgHover","colorTextDisabled","motionEaseInOut","controlHeightLG","paddingXS","lineWidthFocus","colorPrimaryBorder","colorTextHeading","motionDurationMid","motionEaseOutQuint","motionEaseInQuint"],component:{zIndexPopup:1050,cardBg:"rgba(0, 0, 0, 0.02)",cardHeight:40,cardPadding:"8px 16px",cardPaddingSM:"6px 16px",cardPaddingLG:"8px 16px 6px",titleFontSize:14,titleFontSizeLG:16,titleFontSizeSM:14,inkBarColor:"#1677ff",horizontalMargin:"0 0 16px 0",horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:"12px 0",horizontalItemPaddingSM:"8px 0",horizontalItemPaddingLG:"16px 0",verticalItemPadding:"8px 24px",verticalItemMargin:"16px 0 0 0",itemColor:"rgba(0, 0, 0, 0.88)",itemSelectedColor:"#1677ff",itemHoverColor:"#4096ff",itemActiveColor:"#0958d9",cardGutter:2}},Rate:{global:["colorText","fontSize","lineHeight","fontFamily","marginXS","motionDurationMid","lineWidth"],component:{starColor:"#fadb14",starSize:20,starHoverScale:"scale(1.1)",starBg:"rgba(0, 0, 0, 0.06)"}},QRCode:{global:["lineWidth","lineType","colorSplit","colorText","fontSize","lineHeight","fontFamily","paddingSM","colorWhite","borderRadiusLG","marginXS","controlHeight"],component:{}},Radio:{global:["controlOutline","controlOutlineWidth","colorText","fontSize","lineHeight","fontFamily","colorPrimary","motionDurationSlow","motionDurationMid","motionEaseInOutCirc","colorBgContainer","colorBorder","lineWidth","colorBgContainerDisabled","colorTextDisabled","paddingXS","lineType","lineWidthFocus","colorPrimaryBorder","controlHeight","fontSizeLG","controlHeightLG","controlHeightSM","borderRadius","borderRadiusSM","borderRadiusLG","colorPrimaryHover","colorPrimaryActive"],component:{radioSize:16,dotSize:8,dotColorDisabled:"rgba(0, 0, 0, 0.25)",buttonSolidCheckedColor:"#fff",buttonSolidCheckedBg:"#1677ff",buttonSolidCheckedHoverBg:"#4096ff",buttonSolidCheckedActiveBg:"#0958d9",buttonBg:"#ffffff",buttonCheckedBg:"#ffffff",buttonColor:"rgba(0, 0, 0, 0.88)",buttonCheckedBgDisabled:"rgba(0, 0, 0, 0.15)",buttonCheckedColorDisabled:"rgba(0, 0, 0, 0.25)",buttonPaddingInline:15,wrapperMarginInlineEnd:8,radioColor:"#1677ff",radioBgColor:"#ffffff"}},Anchor:{global:["fontSize","fontSizeLG","paddingXXS","motionDurationSlow","lineWidthBold","colorPrimary","lineType","colorSplit","colorText","lineHeight","fontFamily","lineWidth"],component:{linkPaddingBlock:4,linkPaddingInlineStart:16}},Pagination:{global:["marginXXS","controlHeightLG","marginSM","paddingXXS","colorText","fontSize","lineHeight","fontFamily","marginXS","lineWidth","lineType","borderRadius","motionDurationMid","colorBgTextHover","colorBgTextActive","fontWeightStrong","colorPrimary","colorPrimaryHover","fontSizeSM","colorTextDisabled","margin","controlHeight","colorBgContainer","colorBorder","colorTextPlaceholder","colorBgContainerDisabled","motionDurationSlow","fontSizeLG","lineHeightLG","borderRadiusLG","borderRadiusSM","controlOutlineWidth","controlOutline","controlHeightSM","screenLG","screenSM","lineWidthFocus","colorPrimaryBorder"],component:{itemBg:"#ffffff",itemSize:32,itemSizeSM:24,itemActiveBg:"#ffffff",itemLinkBg:"#ffffff",itemActiveColorDisabled:"rgba(0, 0, 0, 0.25)",itemActiveBgDisabled:"rgba(0, 0, 0, 0.15)",itemInputBg:"#ffffff",miniOptionsSizeChangerTop:0,paddingBlock:4,paddingBlockSM:0,paddingBlockLG:7,paddingInline:11,paddingInlineSM:7,paddingInlineLG:11,addonBg:"rgba(0, 0, 0, 0.02)",activeBorderColor:"#1677ff",hoverBorderColor:"#4096ff",activeShadow:"0 0 0 2px rgba(5, 145, 255, 0.1)",errorActiveShadow:"0 0 0 2px rgba(255, 38, 5, 0.06)",warningActiveShadow:"0 0 0 2px rgba(255, 215, 5, 0.1)",hoverBg:"",activeBg:""}},Alert:{global:["motionDurationSlow","marginXS","marginSM","fontSize","fontSizeLG","lineHeight","borderRadiusLG","motionEaseInOutCirc","colorText","colorTextHeading","fontFamily","colorSuccess","colorSuccessBorder","colorSuccessBg","colorWarning","colorWarningBorder","colorWarningBg","colorError","colorErrorBorder","colorErrorBg","colorInfo","colorInfoBorder","colorInfoBg","lineWidth","lineType","motionDurationMid","fontSizeIcon","colorIcon","colorIconHover"],component:{withDescriptionIconSize:24,defaultPadding:"8px 12px",withDescriptionPadding:"20px 24px"}},Progress:{global:["marginXXS","colorText","fontSize","lineHeight","fontFamily","marginXS","paddingXS","motionDurationSlow","motionEaseInOutCirc","colorSuccess","colorBgContainer","motionEaseOutQuint","colorError","fontSizeSM"],component:{circleTextColor:"rgba(0, 0, 0, 0.88)",defaultColor:"#1677ff",remainingColor:"rgba(0, 0, 0, 0.06)",lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:"1.1666666666666667em"}},Modal:{global:["padding","fontSizeHeading5","lineHeightHeading5","colorSplit","lineType","lineWidth","colorIconHover","colorIcon","fontHeight","screenSMMax","marginXS","colorText","fontSize","lineHeight","fontFamily","margin","paddingLG","fontWeightStrong","borderRadiusLG","boxShadow","zIndexPopupBase","borderRadiusSM","motionDurationMid","fontSizeLG","lineWidthFocus","colorPrimaryBorder","motionDurationSlow","colorBgMask","motionEaseOutCirc","motionEaseInOutCirc"],component:{footerBg:"transparent",headerBg:"#ffffff",titleLineHeight:1.5,titleFontSize:16,contentBg:"#ffffff",titleColor:"rgba(0, 0, 0, 0.88)",closeBtnHoverBg:"transparent",closeBtnActiveBg:"transparent",contentPadding:0,headerPadding:"16px 24px",headerBorderBottom:"1px solid rgba(5, 5, 5, 0.06)",headerMarginBottom:0,bodyPadding:24,footerPadding:"8px 16px",footerBorderTop:"1px solid rgba(5, 5, 5, 0.06)",footerBorderRadius:"0 0 8px 8px",footerMarginTop:0,confirmBodyPadding:"32px 32px 24px",confirmIconMarginInlineEnd:16,confirmBtnsMarginTop:24}},Popover:{global:["colorBgElevated","colorText","fontWeightStrong","boxShadowSecondary","colorTextHeading","borderRadiusLG","fontSize","lineHeight","fontFamily","boxShadowPopoverArrow","sizePopupArrow","borderRadiusXS","blue6","purple6","cyan6","green6","magenta6","pink6","red6","orange6","yellow6","volcano6","geekblue6","lime6","gold6","motionDurationMid","motionEaseOutCirc","motionEaseInOutCirc"],component:{titleMinWidth:177,zIndexPopup:1030,arrowShadowWidth:8.970562748477143,arrowPath:"path('M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z')",arrowPolygon:"polygon(1.6568542494923806px 100%, 50% 1.6568542494923806px, 14.34314575050762px 100%, 1.6568542494923806px 100%)",arrowOffsetHorizontal:12,arrowOffsetVertical:8,innerPadding:0,titleMarginBottom:0,titlePadding:"5px 16px 4px",titleBorderBottom:"1px solid rgba(5, 5, 5, 0.06)",innerContentPadding:"12px 16px"}},Menu:{global:["colorBgElevated","colorPrimary","colorTextLightSolid","controlHeightLG","fontSize","motionDurationSlow","motionDurationMid","motionEaseInOut","paddingXS","padding","colorSplit","lineWidth","borderRadiusLG","lineType","colorText","lineHeight","fontFamily","motionEaseOut","borderRadius","margin","paddingXL","fontSizeLG","boxShadowSecondary","marginXS","lineWidthFocus","colorPrimaryBorder","motionEaseOutQuint","motionEaseInQuint","motionEaseOutCirc","motionEaseInOutCirc"],component:{dropdownWidth:160,zIndexPopup:1050,radiusItem:8,itemBorderRadius:8,radiusSubMenuItem:4,subMenuItemBorderRadius:4,colorItemText:"rgba(0, 0, 0, 0.88)",itemColor:"rgba(0, 0, 0, 0.88)",colorItemTextHover:"rgba(0, 0, 0, 0.88)",itemHoverColor:"rgba(0, 0, 0, 0.88)",colorItemTextHoverHorizontal:"#1677ff",horizontalItemHoverColor:"#1677ff",colorGroupTitle:"rgba(0, 0, 0, 0.45)",groupTitleColor:"rgba(0, 0, 0, 0.45)",colorItemTextSelected:"#1677ff",itemSelectedColor:"#1677ff",colorItemTextSelectedHorizontal:"#1677ff",horizontalItemSelectedColor:"#1677ff",colorItemBg:"#ffffff",itemBg:"#ffffff",colorItemBgHover:"rgba(0, 0, 0, 0.06)",itemHoverBg:"rgba(0, 0, 0, 0.06)",colorItemBgActive:"rgba(0, 0, 0, 0.06)",itemActiveBg:"#e6f4ff",colorSubItemBg:"rgba(0, 0, 0, 0.02)",subMenuItemBg:"rgba(0, 0, 0, 0.02)",colorItemBgSelected:"#e6f4ff",itemSelectedBg:"#e6f4ff",colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:2,activeBarHeight:2,colorActiveBarBorderSize:1,activeBarBorderWidth:1,colorItemTextDisabled:"rgba(0, 0, 0, 0.25)",itemDisabledColor:"rgba(0, 0, 0, 0.25)",colorDangerItemText:"#ff4d4f",dangerItemColor:"#ff4d4f",colorDangerItemTextHover:"#ff4d4f",dangerItemHoverColor:"#ff4d4f",colorDangerItemTextSelected:"#ff4d4f",dangerItemSelectedColor:"#ff4d4f",colorDangerItemBgActive:"#fff2f0",dangerItemActiveBg:"#fff2f0",colorDangerItemBgSelected:"#fff2f0",dangerItemSelectedBg:"#fff2f0",itemMarginInline:4,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:40,groupTitleLineHeight:1.5714285714285714,collapsedWidth:80,popupBg:"#ffffff",itemMarginBlock:4,itemPaddingInline:16,horizontalLineHeight:"46px",iconSize:14,iconMarginInlineEnd:10,collapsedIconSize:16,groupTitleFontSize:14,darkItemDisabledColor:"rgba(255, 255, 255, 0.25)",darkItemColor:"rgba(255, 255, 255, 0.65)",darkDangerItemColor:"#ff4d4f",darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:"#fff",darkItemSelectedBg:"#1677ff",darkDangerItemSelectedBg:"#ff4d4f",darkItemHoverBg:"transparent",darkGroupTitleColor:"rgba(255, 255, 255, 0.65)",darkItemHoverColor:"#fff",darkDangerItemHoverColor:"#ff7875",darkDangerItemSelectedColor:"#fff",darkDangerItemActiveBg:"#ff4d4f",itemWidth:"calc(100% - 8px)"}},Mentions:{global:["paddingXXS","colorTextDisabled","controlItemBgHover","controlPaddingHorizontal","colorText","motionDurationSlow","lineHeight","controlHeight","fontSize","colorBgElevated","borderRadius","borderRadiusLG","boxShadowSecondary","fontFamily","colorBgContainer","lineWidth","lineType","colorBorder","motionDurationMid","colorTextPlaceholder","colorBgContainerDisabled","fontSizeLG","lineHeightLG","borderRadiusSM","colorError","colorWarning","colorErrorBorderHover","colorWarningBorderHover","fontWeightStrong"],component:{paddingBlock:4,paddingBlockSM:0,paddingBlockLG:7,paddingInline:11,paddingInlineSM:7,paddingInlineLG:11,addonBg:"rgba(0, 0, 0, 0.02)",activeBorderColor:"#1677ff",hoverBorderColor:"#4096ff",activeShadow:"0 0 0 2px rgba(5, 145, 255, 0.1)",errorActiveShadow:"0 0 0 2px rgba(255, 38, 5, 0.06)",warningActiveShadow:"0 0 0 2px rgba(255, 215, 5, 0.1)",hoverBg:"",activeBg:"",dropdownHeight:250,controlItemWidth:100,zIndexPopup:1050,itemPaddingVertical:5}},Notification:{global:["paddingMD","paddingLG","colorBgElevated","fontSizeLG","lineHeightLG","controlHeightLG","margin","paddingContentHorizontalLG","marginLG","motionDurationMid","motionEaseInOut","colorText","fontSize","lineHeight","fontFamily","boxShadow","borderRadiusLG","colorSuccess","colorInfo","colorWarning","colorError","colorTextHeading","marginXS","marginSM","colorIcon","borderRadiusSM","colorIconHover","motionDurationSlow","colorBgBlur"],component:{zIndexPopup:2050,width:384,closeBtnHoverBg:"transparent"}},Popconfirm:{global:["colorText","colorWarning","marginXXS","marginXS","fontSize","fontWeightStrong","colorTextHeading"],component:{zIndexPopup:1060}},List:{global:["controlHeightLG","controlHeight","paddingSM","marginLG","padding","colorPrimary","paddingXS","margin","colorText","colorTextDescription","motionDurationSlow","lineWidth","fontSize","lineHeight","fontFamily","marginXXS","marginXXL","fontHeight","colorSplit","fontSizeSM","colorTextDisabled","fontSizeLG","lineHeightLG","lineType","paddingLG","borderRadiusLG","colorBorder","screenSM","screenMD","marginSM"],component:{contentWidth:220,itemPadding:"12px 0",itemPaddingSM:"8px 16px",itemPaddingLG:"16px 24px",headerBg:"transparent",footerBg:"transparent",emptyTextPadding:16,metaMarginBottom:16,avatarMarginRight:16,titleMarginBottom:12,descriptionFontSize:14}},Message:{global:["boxShadow","colorText","colorSuccess","colorError","colorWarning","colorInfo","fontSizeLG","motionEaseInOutCirc","motionDurationSlow","marginXS","paddingXS","borderRadiusLG","fontSize","lineHeight","fontFamily"],component:{zIndexPopup:2010,contentBg:"#ffffff",contentPadding:"9px 12px"}},Layout:{global:["colorText","motionDurationMid","motionDurationSlow","fontSize","borderRadius","fontSizeXL"],component:{colorBgHeader:"#001529",colorBgBody:"#f5f5f5",colorBgTrigger:"#002140",bodyBg:"#f5f5f5",headerBg:"#001529",headerHeight:64,headerPadding:"0 50px",headerColor:"rgba(0, 0, 0, 0.88)",footerPadding:"24px 50px",footerBg:"#f5f5f5",siderBg:"#001529",triggerHeight:48,triggerBg:"#002140",triggerColor:"#fff",zeroTriggerWidth:40,zeroTriggerHeight:40,lightSiderBg:"#ffffff",lightTriggerBg:"#ffffff",lightTriggerColor:"rgba(0, 0, 0, 0.88)"}},Image:{global:["controlHeightLG","colorBgContainerDisabled","motionDurationSlow","paddingXXS","marginXXS","colorTextLightSolid","motionEaseOut","paddingSM","marginXL","margin","paddingLG","marginSM","zIndexPopupBase","colorBgMask","motionDurationMid","motionEaseOutCirc","motionEaseInOutCirc"],component:{zIndexPopup:1080,previewOperationColor:"rgba(255, 255, 255, 0.65)",previewOperationHoverColor:"rgba(255, 255, 255, 0.85)",previewOperationColorDisabled:"rgba(255, 255, 255, 0.25)",previewOperationSize:18}},Form:{global:["colorText","fontSize","lineHeight","fontFamily","marginLG","colorTextDescription","fontSizeLG","lineWidth","lineType","colorBorder","controlOutlineWidth","controlOutline","paddingSM","controlHeightSM","controlHeightLG","colorError","colorWarning","marginXXS","controlHeight","motionDurationMid","motionEaseOut","motionEaseOutBack","colorSuccess","colorPrimary","motionDurationSlow","motionEaseInOut","margin","screenXSMax","screenSMMax","screenMDMax","screenLGMax"],component:{labelRequiredMarkColor:"#ff4d4f",labelColor:"rgba(0, 0, 0, 0.88)",labelFontSize:14,labelHeight:32,labelColonMarginInlineStart:2,labelColonMarginInlineEnd:8,itemMarginBottom:24,verticalLabelPadding:"0 0 8px",verticalLabelMargin:0}},FloatButton:{global:["colorTextLightSolid","colorBgElevated","controlHeightLG","marginXXL","marginLG","fontSize","fontSizeIcon","controlItemBgHover","paddingXXS","margin","borderRadiusLG","borderRadiusSM","colorText","lineHeight","fontFamily","lineWidth","lineType","colorSplit","boxShadowSecondary","motionDurationMid","colorFillContent","fontSizeLG","fontSizeSM","colorPrimary","colorPrimaryHover","motionDurationSlow","motionEaseInOutCirc"],component:{dotOffsetInCircle:5.857864376269049,dotOffsetInSquare:2.3431457505076194}},Flex:{global:["paddingXS","padding","paddingLG"],component:{}},Empty:{global:["controlHeightLG","margin","marginXS","marginXL","fontSize","lineHeight","opacityImage","colorText","colorTextDisabled"],component:{}},Input:{global:["paddingXXS","controlHeightSM","lineWidth","colorText","fontSize","lineHeight","fontFamily","colorBgContainer","lineType","colorBorder","borderRadius","motionDurationMid","colorTextPlaceholder","colorTextDisabled","colorBgContainerDisabled","controlHeight","motionDurationSlow","fontSizeLG","lineHeightLG","borderRadiusLG","borderRadiusSM","colorError","colorWarning","colorErrorBorderHover","colorWarningBorderHover","controlHeightLG","paddingLG","colorTextDescription","paddingXS","colorIcon","colorIconHover","colorTextQuaternary","fontSizeIcon","colorTextTertiary","colorPrimary","colorPrimaryHover","colorPrimaryActive"],component:{paddingBlock:4,paddingBlockSM:0,paddingBlockLG:7,paddingInline:11,paddingInlineSM:7,paddingInlineLG:11,addonBg:"rgba(0, 0, 0, 0.02)",activeBorderColor:"#1677ff",hoverBorderColor:"#4096ff",activeShadow:"0 0 0 2px rgba(5, 145, 255, 0.1)",errorActiveShadow:"0 0 0 2px rgba(255, 38, 5, 0.06)",warningActiveShadow:"0 0 0 2px rgba(255, 215, 5, 0.1)",hoverBg:"",activeBg:""}},InputNumber:{global:["paddingXXS","lineWidth","lineType","colorBorder","borderRadius","fontSizeLG","controlHeightLG","controlHeightSM","colorError","colorTextDescription","motionDurationMid","colorTextDisabled","borderRadiusSM","borderRadiusLG","colorText","fontSize","lineHeight","fontFamily","colorBgContainer","colorTextPlaceholder","colorBgContainerDisabled","controlHeight","motionDurationSlow","lineHeightLG","colorWarning","colorErrorBorderHover","colorWarningBorderHover","paddingXS","colorPrimary"],component:{paddingBlock:4,paddingBlockSM:0,paddingBlockLG:7,paddingInline:11,paddingInlineSM:7,paddingInlineLG:11,addonBg:"rgba(0, 0, 0, 0.02)",activeBorderColor:"#1677ff",hoverBorderColor:"#4096ff",activeShadow:"0 0 0 2px rgba(5, 145, 255, 0.1)",errorActiveShadow:"0 0 0 2px rgba(255, 38, 5, 0.06)",warningActiveShadow:"0 0 0 2px rgba(255, 215, 5, 0.1)",hoverBg:"",activeBg:"",controlWidth:90,handleWidth:22,handleFontSize:7,handleVisible:"auto",handleActiveBg:"rgba(0, 0, 0, 0.02)",handleBg:"#ffffff",handleHoverColor:"#1677ff",handleBorderColor:"#d9d9d9",handleOpacity:0}},Dropdown:{global:["marginXXS","sizePopupArrow","paddingXXS","motionDurationMid","fontSize","colorTextDisabled","fontSizeIcon","controlPaddingHorizontal","colorBgElevated","colorText","lineHeight","fontFamily","boxShadowPopoverArrow","borderRadiusXS","borderRadiusLG","boxShadowSecondary","lineWidthFocus","colorPrimaryBorder","colorTextDescription","marginXS","fontSizeSM","borderRadiusSM","controlItemBgHover","colorPrimary","controlItemBgActive","controlItemBgActiveHover","colorSplit","paddingXS","motionEaseOutQuint","motionEaseInQuint","motionEaseOutCirc","motionEaseInOutCirc","colorError","colorTextLightSolid"],component:{zIndexPopup:1050,paddingBlock:5,arrowOffsetHorizontal:12,arrowOffsetVertical:8,arrowShadowWidth:8.970562748477143,arrowPath:"path('M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z')",arrowPolygon:"polygon(1.6568542494923806px 100%, 50% 1.6568542494923806px, 14.34314575050762px 100%, 1.6568542494923806px 100%)"}},Divider:{global:["margin","marginLG","colorSplit","lineWidth","colorText","fontSize","lineHeight","fontFamily","colorTextHeading","fontSizeLG"],component:{textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:8}},DatePicker:{global:["paddingXXS","controlHeightLG","padding","controlHeight","colorBgContainer","lineWidth","lineType","colorBorder","borderRadius","motionDurationMid","colorBgContainerDisabled","colorTextDisabled","colorTextPlaceholder","fontSizeLG","controlHeightSM","paddingXS","marginXS","colorTextDescription","lineWidthBold","colorPrimary","motionDurationSlow","paddingSM","colorPrimaryBorder","sizePopupArrow","colorBgElevated","borderRadiusLG","boxShadowSecondary","borderRadiusSM","colorSplit","boxShadowPopoverArrow","colorTextQuaternary","fontHeight","fontHeightLG","lineHeightLG","colorText","fontSize","lineHeight","fontFamily","colorTextHeading","colorIcon","colorIconHover","fontWeightStrong","colorLink","colorLinkActive","colorLinkHover","colorTextLightSolid","controlItemBgActive","marginXXS","colorTextTertiary","borderRadiusXS","motionEaseOutQuint","motionEaseInQuint","motionEaseOutCirc","motionEaseInOutCirc","colorError","colorWarning","colorErrorHover","colorWarningHover"],component:{paddingBlock:4,paddingBlockSM:0,paddingBlockLG:7,paddingInline:11,paddingInlineSM:7,paddingInlineLG:11,addonBg:"rgba(0, 0, 0, 0.02)",activeBorderColor:"#1677ff",hoverBorderColor:"#4096ff",activeShadow:"0 0 0 2px rgba(5, 145, 255, 0.1)",errorActiveShadow:"0 0 0 2px rgba(255, 38, 5, 0.06)",warningActiveShadow:"0 0 0 2px rgba(255, 215, 5, 0.1)",hoverBg:"",activeBg:"",cellHoverBg:"rgba(0, 0, 0, 0.04)",cellActiveWithRangeBg:"#e6f4ff",cellHoverWithRangeBg:"#c8dfff",cellRangeBorderColor:"#7cb3ff",cellBgDisabled:"rgba(0, 0, 0, 0.04)",timeColumnWidth:56,timeColumnHeight:224,timeCellHeight:28,cellWidth:36,cellHeight:24,textHeight:40,withoutTimeCellHeight:66,arrowShadowWidth:8.970562748477143,arrowPath:"path('M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z')",arrowPolygon:"polygon(1.6568542494923806px 100%, 50% 1.6568542494923806px, 14.34314575050762px 100%, 1.6568542494923806px 100%)",presetsWidth:120,presetsMaxWidth:200,zIndexPopup:1050}},Descriptions:{global:["colorText","fontSize","lineHeight","fontFamily","lineWidth","lineType","colorSplit","padding","paddingLG","colorTextSecondary","paddingSM","paddingXS","fontWeightStrong","fontSizeLG","lineHeightLG","borderRadiusLG","colorTextTertiary"],component:{labelBg:"rgba(0, 0, 0, 0.02)",titleColor:"rgba(0, 0, 0, 0.88)",titleMarginBottom:20,itemPaddingBottom:16,colonMarginRight:8,colonMarginLeft:2,contentColor:"rgba(0, 0, 0, 0.88)",extraColor:"rgba(0, 0, 0, 0.88)"}},Drawer:{global:["colorBgMask","colorBgElevated","motionDurationSlow","motionDurationMid","padding","paddingLG","fontSizeLG","lineHeightLG","lineWidth","lineType","colorSplit","marginSM","colorIcon","colorIconHover","colorText","fontWeightStrong","boxShadowDrawerLeft","boxShadowDrawerRight","boxShadowDrawerUp","boxShadowDrawerDown"],component:{zIndexPopup:1e3,footerPaddingBlock:8,footerPaddingInline:16}},ColorPicker:{global:["colorTextQuaternary","marginSM","colorPrimary","motionDurationMid","colorBgElevated","colorTextDisabled","colorText","colorBgContainerDisabled","borderRadius","marginXS","controlHeight","controlHeightSM","colorBgTextActive","lineWidth","colorBorder","paddingXXS","fontSize","colorPrimaryHover","controlOutline","controlHeightLG","borderRadiusSM","colorFillSecondary","lineWidthBold","fontSizeSM","lineHeightSM","marginXXS","fontSizeIcon","paddingXS","colorTextPlaceholder","colorFill","colorWhite","fontHeightSM","motionEaseInBack","motionDurationFast","motionEaseOutBack","colorSplit","red6","controlOutlineWidth","colorError","colorWarning","colorErrorHover","colorWarningHover","colorErrorOutline","colorWarningOutline","controlHeightXS","borderRadiusXS","borderRadiusLG","fontSizeLG"],component:{}},Cascader:{global:["controlInteractiveSize","colorText","fontSize","lineHeight","fontFamily","marginXS","borderRadiusSM","lineWidthFocus","colorPrimaryBorder","colorBgContainer","lineWidth","lineType","colorBorder","motionDurationSlow","lineWidthBold","colorWhite","motionDurationFast","motionEaseInBack","paddingXS","colorPrimary","colorPrimaryHover","motionDurationMid","motionEaseOutBack","fontSizeLG","colorBgContainerDisabled","colorTextDisabled","colorSplit","controlItemBgHover","paddingXXS","colorTextDescription","fontSizeIcon","colorHighlight"],component:{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:"#e6f4ff",optionSelectedFontWeight:600,optionPadding:"5px 12px",menuPadding:4}},Grid:{global:[],component:{}},Collapse:{global:["paddingXS","paddingSM","padding","paddingLG","borderRadiusLG","lineWidth","lineType","colorBorder","colorText","colorTextHeading","colorTextDisabled","fontSizeLG","lineHeight","lineHeightLG","marginSM","motionDurationSlow","fontSizeIcon","fontHeight","fontHeightLG","fontSize","fontFamily","paddingXXS","motionDurationMid","motionEaseInOut"],component:{headerPadding:"12px 16px",headerBg:"rgba(0, 0, 0, 0.02)",contentPadding:"16px 16px",contentBg:"#ffffff"}},Carousel:{global:["controlHeightLG","controlHeightSM","marginXXS","colorText","fontSize","lineHeight","fontFamily","motionDurationSlow","colorBgContainer"],component:{dotWidth:16,dotHeight:3,dotWidthActive:24,dotActiveWidth:24}},Button:{global:["lineWidth","lineType","motionDurationMid","motionEaseInOut","lineHeight","colorText","marginXS","lineWidthFocus","colorPrimaryBorder","controlHeightSM","paddingXS","borderRadiusSM","opacityLoading","motionDurationSlow","controlHeight","borderRadius","controlHeightLG","borderRadiusLG","colorTextDisabled","colorBgContainerDisabled","colorPrimaryHover","colorPrimaryActive","colorBorder","colorError","colorErrorHover","colorErrorBorderHover","colorErrorActive","colorPrimary","colorTextLightSolid","colorLink","colorLinkHover","colorLinkActive","colorBgTextActive","colorErrorBg","colorBgContainer","fontSize"],component:{fontWeight:400,defaultShadow:"0 2px 0 rgba(0, 0, 0, 0.02)",primaryShadow:"0 2px 0 rgba(5, 145, 255, 0.1)",dangerShadow:"0 2px 0 rgba(255, 38, 5, 0.06)",primaryColor:"#fff",dangerColor:"#fff",borderColorDisabled:"#d9d9d9",defaultGhostColor:"#ffffff",ghostBg:"transparent",defaultGhostBorderColor:"#ffffff",paddingInline:15,paddingInlineLG:15,paddingInlineSM:7,paddingBlock:4,paddingBlockSM:0,paddingBlockLG:6.428571428571429,onlyIconSize:16,onlyIconSizeSM:14,onlyIconSizeLG:18,groupBorderColor:"#4096ff",linkHoverBg:"transparent",textHoverBg:"rgba(0, 0, 0, 0.06)",defaultColor:"rgba(0, 0, 0, 0.88)",defaultBg:"#ffffff",defaultBorderColor:"#d9d9d9",defaultBorderColorDisabled:"#d9d9d9",contentFontSize:14,contentFontSizeSM:14,contentFontSizeLG:16}},Calendar:{global:["controlHeightLG","paddingXXS","padding","controlHeightSM","fontHeightSM","marginXS","lineWidth","paddingSM","paddingXS","colorBgContainer","lineType","borderRadiusLG","colorPrimary","colorTextHeading","colorSplit","colorIcon","motionDurationMid","colorIconHover","fontWeightStrong","colorTextDisabled","colorText","fontSize","motionDurationSlow","colorLink","colorLinkActive","colorLinkHover","borderRadiusSM","colorTextLightSolid","controlItemBgActive","marginXXS","colorTextTertiary","lineHeight","fontFamily","controlItemBgHover","lineWidthBold","screenXS"],component:{fullBg:"#ffffff",fullPanelBg:"#ffffff",itemActiveBg:"#e6f4ff",yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,cellHoverBg:"rgba(0, 0, 0, 0.04)",cellActiveWithRangeBg:"#e6f4ff",cellHoverWithRangeBg:"#c8dfff",cellRangeBorderColor:"#7cb3ff",cellBgDisabled:"rgba(0, 0, 0, 0.04)",timeColumnWidth:56,timeColumnHeight:224,timeCellHeight:28,cellWidth:36,cellHeight:24,textHeight:40,withoutTimeCellHeight:66}},Card:{global:["boxShadowCard","padding","paddingLG","fontSize","colorBorderSecondary","boxShadowTertiary","colorText","lineHeight","fontFamily","colorBgContainer","borderRadiusLG","colorTextHeading","fontWeightStrong","lineWidth","lineType","motionDurationMid","colorTextDescription","colorPrimary","fontHeight","marginXXS","marginXS","fontSizeLG","colorFillAlter"],component:{headerBg:"transparent",headerFontSize:16,headerFontSizeSM:14,headerHeight:56,headerHeightSM:38,actionsBg:"#ffffff",actionsLiMargin:"12px 0",tabsMarginBottom:-17,extraColor:"rgba(0, 0, 0, 0.88)"}},Checkbox:{global:["controlInteractiveSize","colorText","fontSize","lineHeight","fontFamily","marginXS","borderRadiusSM","lineWidthFocus","colorPrimaryBorder","colorBgContainer","lineWidth","lineType","colorBorder","motionDurationSlow","lineWidthBold","colorWhite","motionDurationFast","motionEaseInBack","paddingXS","colorPrimary","colorPrimaryHover","motionDurationMid","motionEaseOutBack","fontSizeLG","colorBgContainerDisabled","colorTextDisabled"],component:{}},BackTop:{global:["fontSizeHeading3","colorTextDescription","colorTextLightSolid","colorText","controlHeightLG","fontSize","lineHeight","fontFamily","motionDurationMid","screenMD","screenXS"],component:{zIndexPopup:10}},Badge:{global:["fontHeight","lineWidth","marginXS","colorBorderBg","colorBgContainer","colorError","colorErrorHover","motionDurationSlow","blue1","blue3","blue6","blue7","purple1","purple3","purple6","purple7","cyan1","cyan3","cyan6","cyan7","green1","green3","green6","green7","magenta1","magenta3","magenta6","magenta7","pink1","pink3","pink6","pink7","red1","red3","red6","red7","orange1","orange3","orange6","orange7","yellow1","yellow3","yellow6","yellow7","volcano1","volcano3","volcano6","volcano7","geekblue1","geekblue3","geekblue6","geekblue7","lime1","lime3","lime6","lime7","gold1","gold3","gold6","gold7","colorText","fontSize","lineHeight","fontFamily","motionDurationMid","paddingXS","colorSuccess","colorPrimary","colorTextPlaceholder","colorWarning","motionEaseOutBack"],component:{indicatorZIndex:"auto",indicatorHeight:20,indicatorHeightSM:14,dotSize:6,textFontSize:12,textFontSizeSM:12,textFontWeight:"normal",statusSize:6}},Avatar:{global:["colorTextLightSolid","colorTextPlaceholder","borderRadius","borderRadiusLG","borderRadiusSM","lineWidth","lineType","colorText","fontSize","lineHeight","fontFamily"],component:{containerSize:32,containerSizeLG:40,containerSizeSM:24,textFontSize:18,textFontSizeLG:24,textFontSizeSM:14,groupSpace:4,groupOverlapping:-8,groupBorderColor:"#ffffff"}},App:{global:["colorText","fontSize","lineHeight","fontFamily"],component:{}},Affix:{global:[],component:{zIndexPopup:10}},Breadcrumb:{global:["colorText","fontSize","lineHeight","fontFamily","motionDurationMid","paddingXXS","borderRadiusSM","fontHeight","marginXXS","colorBgTextHover","lineWidthFocus","colorPrimaryBorder","fontSizeIcon"],component:{itemColor:"rgba(0, 0, 0, 0.45)",lastItemColor:"rgba(0, 0, 0, 0.88)",iconFontSize:14,linkColor:"rgba(0, 0, 0, 0.45)",linkHoverColor:"rgba(0, 0, 0, 0.88)",separatorColor:"rgba(0, 0, 0, 0.45)",separatorMargin:8}}},Mr={},ul=e=>{var r;return Mr[e]||(Mr[e]=Object.entries(sn).filter(([,t])=>t.global.includes(e)).map(([t])=>t)),(r=Mr[e])!=null?r:[]},ro=e=>{const r=Array.isArray(e)?e:[e];return Array.from(new Set(r.reduce((t,n)=>t.concat(ul(n)),[])))},hl=e=>sn[e];function fl(e){return E.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["nanqu-token-panel-icon",e.className].filter(Boolean).join(" ")}),E.createElement("g",{id:"Compact-页面-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},E.createElement("g",{id:"Compact-默认",transform:"translate(-9.000000, -82.500000)",fill:"currentColor",fillRule:"nonzero"},E.createElement("g",{id:"Compact-选项一",transform:"translate(9.268811, 79.500000)"},E.createElement("g",{id:"Compact-smaller",transform:"translate(0.000000, 3.000000)"},E.createElement("rect",{id:"Compact-矩形",opacity:0,x:0,y:0,width:16,height:16}),E.createElement("path",{d:"M10,14 L10,12 C10,10.8666667 10.8666667,10 12,10 L14,10 C14.4,10 14.6666667,10.2666667 14.6666667,10.6666667 C14.6666667,11.0666667 14.4,11.3333333 14,11.3333333 L12,11.3333333 C11.6,11.3333333 11.3333333,11.6 11.3333333,12 L11.3333333,14 C11.3333333,14.4 11.0666667,14.6666667 10.6666667,14.6666667 C10.2666667,14.6666667 10,14.4 10,14 L10,14 Z M4.66666667,14 L4.66666667,12 C4.66666667,11.6 4.4,11.3333333 4,11.3333333 L2,11.3333333 C1.6,11.3333333 1.33333333,11.0666667 1.33333333,10.6666667 C1.33333333,10.2666667 1.6,10 2,10 L4,10 C5.13333333,10 6,10.8666667 6,12 L6,14 C6,14.4 5.73333333,14.6666667 5.33333333,14.6666667 C4.93333333,14.6666667 4.66666666,14.4 4.66666667,14 L4.66666667,14 Z M12,6 C10.8666667,6 10,5.13333333 10,4 L10,2 C10,1.6 10.2666667,1.33333333 10.6666667,1.33333333 C11.0666667,1.33333333 11.3333333,1.6 11.3333333,2 L11.3333333,4 C11.3333333,4.4 11.6,4.66666667 12,4.66666667 L14,4.66666667 C14.4,4.66666667 14.6666667,4.93333334 14.6666667,5.33333333 C14.6666667,5.73333331 14.4,6 14,6 L12,6 L12,6 Z M2,6 C1.6,6 1.33333333,5.73333333 1.33333333,5.33333333 C1.33333333,4.93333333 1.6,4.66666666 2,4.66666667 L4,4.66666667 C4.4,4.66666667 4.66666667,4.4 4.66666667,4 L4.66666667,2 C4.66666667,1.6 4.93333334,1.33333333 5.33333333,1.33333333 C5.73333331,1.33333333 6,1.6 6,2 L6,4 C6,5.13333333 5.13333333,6 4,6 L2,6 Z",id:"Compact-形状"}))))))}function ml(e){return E.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["nanqu-token-panel-icon",e.className].filter(Boolean).join(" ")}),E.createElement("g",{id:"Control-页面-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},E.createElement("g",{id:"Control-主题预览器---组件预览",transform:"translate(-1372.000000, -505.000000)",fillRule:"nonzero"},E.createElement("g",{id:"Control-编组-18",transform:"translate(0.000000, 70.000000)"},E.createElement("g",{id:"Control-编组-14",transform:"translate(536.000000, 420.000000)"},E.createElement("g",{id:"Control-系统控制",transform:"translate(836.000000, 15.000000)"},E.createElement("rect",{id:"Control-矩形",fill:"#000000",opacity:0,x:0,y:0,width:16,height:16}),E.createElement("path",{d:"M6,3.5625 L13.75,3.5625 L13.75,4.1875 L6,4.1875 L6,3.5625 Z M2.1875,3.5625 L3.8125,3.5625 L3.8125,4.1875 L2.1875,4.1875 L2.1875,3.5625 Z M8.3125,11.8125 L13.75,11.8125 L13.75,12.4375 L8.3125,12.4375 L8.3125,11.8125 Z M2.1875,11.8125 L6.125,11.8125 L6.125,12.4375 L2.1875,12.4375 L2.1875,11.8125 Z M12.625,7.6875 L13.75,7.6875 L13.75,8.3125 L12.625,8.3125 L12.625,7.6875 Z M2.1875,7.6875 L10.4375,7.6875 L10.4375,8.3125 L2.1875,8.3125 L2.1875,7.6875 Z",id:"Control-形状",fill:"currentColor"}),E.createElement("path",{d:"M1.875,3.875 C1.875,4.04758898 2.01491102,4.1875 2.1875,4.1875 C2.36008898,4.1875 2.5,4.04758898 2.5,3.875 C2.5,3.70241102 2.36008898,3.5625 2.1875,3.5625 C2.01491102,3.5625 1.875,3.70241102 1.875,3.875 Z",id:"Control-路径",fill:"currentColor"}),E.createElement("path",{d:"M13.4375,3.875 C13.4375,4.04758898 13.577411,4.1875 13.75,4.1875 C13.922589,4.1875 14.0625,4.04758898 14.0625,3.875 C14.0625,3.70241102 13.922589,3.5625 13.75,3.5625 C13.577411,3.5625 13.4375,3.70241102 13.4375,3.875 Z",id:"Control-路径",fill:"currentColor"}),E.createElement("path",{d:"M13.4375,8 C13.4375,8.17258898 13.577411,8.3125 13.75,8.3125 C13.922589,8.3125 14.0625,8.17258898 14.0625,8 C14.0625,7.82741102 13.922589,7.6875 13.75,7.6875 C13.577411,7.6875 13.4375,7.82741102 13.4375,8 Z",id:"Control-路径",fill:"currentColor"}),E.createElement("path",{d:"M13.4375,12.125 C13.4375,12.297589 13.577411,12.4375 13.75,12.4375 C13.922589,12.4375 14.0625,12.297589 14.0625,12.125 C14.0625,11.952411 13.922589,11.8125 13.75,11.8125 C13.577411,11.8125 13.4375,11.952411 13.4375,12.125 L13.4375,12.125 Z",id:"Control-路径",fill:"currentColor"}),E.createElement("path",{d:"M1.875,8 C1.875,8.17258898 2.01491102,8.3125 2.1875,8.3125 C2.36008898,8.3125 2.5,8.17258898 2.5,8 C2.5,7.82741102 2.36008898,7.6875 2.1875,7.6875 C2.01491102,7.6875 1.875,7.82741102 1.875,8 Z",id:"Control-路径",fill:"currentColor"}),E.createElement("path",{d:"M1.875,12.125 C1.875,12.297589 2.01491102,12.4375 2.1875,12.4375 C2.36008898,12.4375 2.5,12.297589 2.5,12.125 C2.5,11.952411 2.36008898,11.8125 2.1875,11.8125 C2.01491102,11.8125 1.875,11.952411 1.875,12.125 L1.875,12.125 Z",id:"Control-路径",fill:"currentColor"}),E.createElement("path",{d:"M4.90625,5.25 C4.13125,5.25 3.5,4.61875 3.5,3.84375 C3.5,3.06875 4.13125,2.4375 4.90625,2.4375 C5.68125,2.4375 6.3125,3.06875 6.3125,3.84375 C6.3125,4.61875 5.68125,5.25 4.90625,5.25 Z M4.90625,3.0625 C4.475,3.0625 4.125,3.4125 4.125,3.84375 C4.125,4.275 4.475,4.625 4.90625,4.625 C5.3375,4.625 5.6875,4.275 5.6875,3.84375 C5.6875,3.4125 5.3375,3.0625 4.90625,3.0625 Z M11.53125,9.4375 C10.75625,9.4375 10.125,8.80625 10.125,8.03125 C10.125,7.25625 10.75625,6.625 11.53125,6.625 C12.30625,6.625 12.9375,7.25625 12.9375,8.03125 C12.9375,8.80625 12.30625,9.4375 11.53125,9.4375 Z M11.53125,7.25 C11.1,7.25 10.75,7.6 10.75,8.03125 C10.75,8.4625 11.1,8.8125 11.53125,8.8125 C11.9625,8.8125 12.3125,8.4625 12.3125,8.03125 C12.3125,7.6 11.9625,7.25 11.53125,7.25 Z M7.21875,13.5 C6.44375,13.5 5.8125,12.86875 5.8125,12.09375 C5.8125,11.31875 6.44375,10.6875 7.21875,10.6875 C7.99375,10.6875 8.625,11.31875 8.625,12.09375 C8.625,12.86875 7.99375,13.5 7.21875,13.5 Z M7.21875,11.3125 C6.7875,11.3125 6.4375,11.6625 6.4375,12.09375 C6.4375,12.525 6.7875,12.875 7.21875,12.875 C7.65,12.875 8,12.525 8,12.09375 C8,11.6625 7.65,11.3125 7.21875,11.3125 Z",id:"Control-形状",fill:"currentColor"})))))))}function vl(e){return E.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["nanqu-token-panel-icon",e.className].filter(Boolean).join(" ")}),E.createElement("g",{id:"Dark-页面-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},E.createElement("g",{id:"Dark-默认",transform:"translate(-9.000000, -49.500000)",fill:"currentColor",fillRule:"nonzero"},E.createElement("g",{id:"Dark-编组-17",transform:"translate(0.000000, 42.500000)"},E.createElement("g",{id:"Dark-moon",transform:"translate(9.268811, 7.500000)"},E.createElement("rect",{id:"Dark-矩形",opacity:0,x:0,y:0,width:16,height:16}),E.createElement("path",{d:"M8,1.33333333 C8.14933333,1.33333333 8.29688889,1.33844444 8.44266667,1.34866666 C8.14755556,1.98422221 8,2.64577777 8,3.33333333 C8,3.96533333 8.12333333,4.56955555 8.37,5.146 C8.61666667,5.72244445 8.94822222,6.21888889 9.36466667,6.63533333 C9.78111112,7.05177777 10.2775556,7.38333332 10.854,7.63 C11.4304444,7.87666668 12.0346667,8.00000001 12.6666667,8 C13.3542222,8 14.0157778,7.85244444 14.6513333,7.55733333 C14.6615556,7.70311111 14.6666667,7.85066667 14.6666667,8 C14.6666667,8.604 14.5868889,9.19422222 14.4273333,9.77066667 C14.2677778,10.3471111 14.0446667,10.8793333 13.758,11.3673333 C13.4713333,11.8553333 13.1233333,12.3042222 12.714,12.714 C12.3046667,13.1237778 11.8557778,13.4717778 11.3673333,13.758 C10.8788889,14.0442222 10.3466667,14.2673333 9.77066667,14.4273333 C9.19466667,14.5873333 8.60444445,14.6671111 8,14.6666685 C7.39555555,14.6662222 6.80533333,14.5864444 6.22933333,14.4273333 C5.65333333,14.2682222 5.1211111,14.0451111 4.63266666,13.758 C4.14422221,13.4708889 3.69533332,13.1228889 3.28599998,12.714 C2.87666665,12.3051111 2.52866665,11.8562222 2.24199998,11.3673333 C1.95533332,10.8784444 1.73222221,10.3462222 1.57266666,9.77066667 C1.4131111,9.19511112 1.33333333,8.6048889 1.33333333,8 C1.33333333,7.3951111 1.4131111,6.80488888 1.57266666,6.22933333 C1.73222221,5.65377778 1.95533332,5.12155555 2.24199998,4.63266666 C2.52866665,4.14377776 2.87666665,3.69488887 3.28599998,3.28599998 C3.69533332,2.8771111 4.14422221,2.5291111 4.63266666,2.24199998 C5.1211111,1.95488887 5.65333333,1.73177776 6.22933333,1.57266666 C6.80533333,1.41355555 7.39555555,1.33377778 8,1.33333333 Z M6.68733333,2.828 C6.11444444,2.97377778 5.58066667,3.20977778 5.086,3.536 C4.59133333,3.86222222 4.166,4.24933333 3.81,4.69733333 C3.454,5.14533333 3.17444444,5.65488889 2.97133333,6.226 C2.76822221,6.79711111 2.66666666,7.38822222 2.66666666,7.99933333 C2.66666666,8.72155555 2.80733332,9.41155555 3.08866666,10.0693333 C3.36999999,10.7271111 3.74933332,11.2948889 4.22666666,11.7726667 C4.70399999,12.2504444 5.27177777,12.6297778 5.92999998,12.9106667 C6.5882222,13.1915556 7.2782222,13.3322222 7.99999998,13.3326667 C8.6111111,13.3326667 9.20222221,13.2311111 9.77333331,13.028 C10.3444444,12.8248889 10.854,12.5453333 11.302,12.1893333 C11.75,11.8333333 12.1371111,11.408 12.4633333,10.9133333 C12.7895555,10.4186666 13.0255555,9.88488887 13.1713333,9.31199998 C13.022,9.32577777 12.8535555,9.33266666 12.666,9.33266666 C11.8535555,9.33266666 11.0775555,9.17377777 10.338,8.85599998 C9.59844443,8.5382222 8.96044443,8.11111109 8.42399998,7.57466666 C7.88755554,7.03822222 7.46044443,6.40022222 7.14266666,5.66066666 C6.82488889,4.92111109 6.66599999,4.14511109 6.66599998,3.33266666 C6.66599998,3.1451111 6.67288888,2.97666666 6.68666666,2.82733333 L6.68733333,2.828 Z",id:"Dark-形状"}))))))}function yl(e){return E.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["nanqu-token-panel-icon",e.className].filter(Boolean).join(" ")}),E.createElement("g",{id:"Light-页面-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},E.createElement("g",{id:"Light-主题包",transform:"translate(-2943.000000, -292.000000)",fill:"currentColor",fillRule:"nonzero"},E.createElement("g",{id:"Light-编组-12",transform:"translate(2415.000000, 222.000000)"},E.createElement("g",{id:"Light-视图切换-编辑态",transform:"translate(518.000000, 60.000000)"},E.createElement("g",{id:"Light-eye",transform:"translate(8.000000, 8.000000)"},E.createElement("g",{id:"Light-sun",transform:"translate(2.000000, 2.000000)"},E.createElement("rect",{id:"Light-矩形",opacity:0,x:0,y:0,width:13,height:13}),E.createElement("path",{d:"M6.5,9.75 C4.7051875,9.75 3.25,8.2948125 3.25,6.5 C3.25,4.7051875 4.7051875,3.25 6.5,3.25 C8.2948125,3.25 9.75,4.7051875 9.75,6.5 C9.75,8.2948125 8.2948125,9.75 6.5,9.75 Z M6.5,8.66666667 C7.69661696,8.66666667 8.66666667,7.69661696 8.66666667,6.5 C8.66666667,5.30338304 7.69661696,4.33333333 6.5,4.33333333 C5.30338305,4.33333333 4.33333336,5.30338305 4.33333336,6.5 C4.33333336,7.69661695 5.30338305,8.66666667 6.5,8.66666667 Z M5.95833333,1.08333333 C5.95833333,0.784179087 6.20084576,0.541666658 6.5,0.541666658 C6.79915424,0.541666658 7.04166667,0.784179087 7.04166667,1.08333333 L7.04166667,2.16666667 C7.04166667,2.46582091 6.79915424,2.70833334 6.5,2.70833334 C6.20084576,2.70833334 5.95833333,2.46582091 5.95833333,2.16666667 L5.95833333,1.08333333 L5.95833333,1.08333333 Z M5.95833333,10.8333333 C5.95833333,10.5341791 6.20084576,10.2916667 6.5,10.2916667 C6.79915424,10.2916667 7.04166667,10.5341791 7.04166667,10.8333333 L7.04166667,11.9166667 C7.04166667,12.2158209 6.79915424,12.4583333 6.5,12.4583333 C6.20084576,12.4583333 5.95833333,12.2158209 5.95833333,11.9166667 L5.95833333,10.8333333 L5.95833333,10.8333333 Z M1.08333333,7.04166667 C0.784179087,7.04166667 0.541666658,6.79915424 0.541666658,6.5 C0.541666658,6.20084576 0.784179087,5.95833333 1.08333333,5.95833333 L2.16666667,5.95833333 C2.46582091,5.95833333 2.70833334,6.20084576 2.70833334,6.5 C2.70833334,6.79915424 2.46582091,7.04166667 2.16666667,7.04166667 L1.08333333,7.04166667 L1.08333333,7.04166667 Z M10.8333333,7.04166667 C10.5341791,7.04166667 10.2916667,6.79915424 10.2916667,6.5 C10.2916667,6.20084576 10.5341791,5.95833333 10.8333333,5.95833333 L11.9166667,5.95833333 C12.2158209,5.95833333 12.4583333,6.20084576 12.4583333,6.5 C12.4583333,6.79915424 12.2158209,7.04166667 11.9166667,7.04166667 L10.8333333,7.04166667 L10.8333333,7.04166667 Z M2.05454167,2.82045833 C1.84926545,2.60791971 1.85220137,2.27007933 2.06114035,2.06114035 C2.27007933,1.85220137 2.60791971,1.84926545 2.82045833,2.05454167 L3.63295833,2.86704167 C3.83823455,3.07958029 3.83529863,3.41742067 3.62635965,3.62635965 C3.41742067,3.83529863 3.07958029,3.83823455 2.86704167,3.63295833 L2.05454167,2.82045833 L2.05454167,2.82045833 Z M9.36704167,10.1329583 C9.16176545,9.92041971 9.16470137,9.58257933 9.37364035,9.37364035 C9.58257933,9.16470137 9.92041971,9.16176545 10.1329583,9.36704167 L10.9454583,10.1795417 C11.1507346,10.3920803 11.1477986,10.7299207 10.9388596,10.9388596 C10.7299207,11.1477986 10.3920803,11.1507346 10.1795417,10.9454583 L9.36704167,10.1329583 L9.36704167,10.1329583 Z M2.82045833,10.9454583 C2.60791971,11.1507346 2.27007933,11.1477986 2.06114035,10.9388596 C1.85220137,10.7299207 1.84926545,10.3920803 2.05454167,10.1795417 L2.86704167,9.36704167 C3.07958029,9.16176545 3.41742067,9.16470137 3.62635965,9.37364035 C3.83529863,9.58257933 3.83823455,9.92041971 3.63295833,10.1329583 L2.82045833,10.9454583 L2.82045833,10.9454583 Z M10.1329583,3.63295833 C9.92041971,3.83823455 9.58257933,3.83529863 9.37364035,3.62635965 C9.16470137,3.41742067 9.16176545,3.07958029 9.36704167,2.86704167 L10.1795417,2.05454167 C10.3920803,1.84926545 10.7299207,1.85220137 10.9388596,2.06114035 C11.1477986,2.27007933 11.1507346,2.60791971 10.9454583,2.82045833 L10.1329583,3.63295833 L10.1329583,3.63295833 Z",id:"Light-形状"}))))))))}function bl(e){return E.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["nanqu-token-panel-icon",e.className].filter(Boolean).join(" ")}),E.createElement("g",{id:"Motion-页面-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},E.createElement("g",{id:"Motion-富文本编辑器_动效",transform:"translate(0.000000, 0.903962)",fill:"currentColor",fillRule:"nonzero"},E.createElement("rect",{id:"Motion-矩形",opacity:0,x:0,y:0,width:16,height:15.9807923}),E.createElement("path",{d:"M6.55644444,12.5262777 L7.99555556,13.9627734 C8.13290682,14.0984321 8.18701716,14.2971622 8.13737053,14.4836147 C8.0877239,14.6700672 7.94192169,14.8156943 7.75524511,14.8652814 C7.56856853,14.9148684 7.36959959,14.860823 7.23377778,14.7236366 L5.79555556,13.2862532 C5.60250935,13.0737079 5.61045949,12.7472435 5.8136232,12.5443237 C6.01678692,12.3414038 6.3436437,12.3334632 6.55644444,12.5262777 L6.55644444,12.5262777 Z M12.2435556,12.6630023 L13.3857778,13.8038533 C13.5231286,13.9395121 13.5772386,14.138242 13.527592,14.3246942 C13.4779453,14.5111464 13.3321433,14.6567734 13.145467,14.7063605 C12.9587906,14.7559476 12.7598219,14.7019025 12.624,14.5647165 L11.4817778,13.4238655 C11.3444269,13.2882067 11.2903169,13.0894768 11.3399636,12.9030246 C11.3896103,12.7165724 11.5354123,12.5709454 11.7220886,12.5213583 C11.9087649,12.4717712 12.1077337,12.5258163 12.2435556,12.6630023 L12.2435556,12.6630023 Z M7.29511111,0.990809123 C7.37066667,1.03342457 7.43377778,1.09645992 7.47644444,1.17192476 L9.23911111,4.29439403 L12.7564444,5.00376364 C12.9258902,5.03768098 13.0638332,5.16026877 13.1172645,5.32441904 C13.1706959,5.4885693 13.1313024,5.66874209 13.0142222,5.79570068 L10.5866667,8.43430705 L10.9982222,11.9953603 C11.018176,12.1667991 10.94398,12.3356549 10.8041422,12.4370491 C10.6643043,12.5384432 10.4805781,12.5566027 10.3235556,12.4845501 L7.06133333,10.9930095 L3.79733333,12.4845501 C3.64031082,12.5566027 3.45658456,12.5384432 3.3167467,12.4370491 C3.17690884,12.3356549 3.10271286,12.1667991 3.12266667,11.9953603 L3.53511111,8.43519487 L1.10577778,5.79570068 C0.988697555,5.66874209 0.949304077,5.4885693 1.00273546,5.32441904 C1.05616684,5.16026877 1.19410976,5.03768098 1.36355556,5.00376364 L4.88177778,4.29439403 L6.64266667,1.17192476 C6.70502264,1.06136833 6.80886024,0.980137913 6.93126543,0.94615878 C7.05367063,0.912179648 7.18458201,0.928244805 7.29511111,0.990809123 Z M7.05955556,2.62440123 L5.57688889,5.25235374 L2.61688889,5.84808216 L4.65955556,8.07030012 L4.31288889,11.0666987 L7.05955556,9.81131866 L9.80533333,11.0666987 L9.45866667,8.07030012 L11.5031111,5.84896999 L8.54222222,5.25235374 L7.05866667,2.62440123 L7.05955556,2.62440123 Z M13.1528889,7.76045031 L14.5911111,9.19694597 C14.7892424,9.40878705 14.7837079,9.73933037 14.5785954,9.9444359 C14.373483,10.1495414 14.0425491,10.1554552 13.8302222,9.95780926 L12.3911111,8.5213136 C12.2537603,8.38565475 12.1996502,8.18692487 12.2492969,8.00047265 C12.2989436,7.81402043 12.4447456,7.66839345 12.6314219,7.61880637 C12.8180983,7.56921929 13.017067,7.62326436 13.1528889,7.76045031 L13.1528889,7.76045031 Z",id:"Motion-形状"}))))}function Ir(e){return E.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["nanqu-token-panel-icon",e.className].filter(Boolean).join(" ")}),E.createElement("g",{id:"Pick-页面-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",fillOpacity:.65},E.createElement("g",{id:"Pick-主题编辑器---多主题",transform:"translate(-541.000000, -387.000000)",fill:"currentColor",fillRule:"nonzero"},E.createElement("g",{id:"Pick-编组-11",transform:"translate(76.000000, 340.000000)"},E.createElement("g",{id:"Pick-Map-Token-面板",transform:"translate(0.000000, 27.000000)"},E.createElement("g",{id:"Pick-token-显示",transform:"translate(-1.002041, -1.000000)"},E.createElement("g",{id:"Pick-编组-2",transform:"translate(12.024490, 20.000000)"},E.createElement("g",{id:"Pick-shangyeguanxi",transform:"translate(453.924490, 1.000000)"},E.createElement("path",{d:"M12.6274816,8.17204883 C12.6358384,8.04673242 12.6401539,7.92030859 12.6401539,7.79288672 C12.6401539,5.50309375 11.2701899,3.53286719 9.30406641,2.65472266 C9.31862927,2.54983203 9.32632854,2.44274023 9.32632854,2.33384375 C9.32632854,1.05430664 8.28750187,0.0169394531 7.00623025,0.0169394531 C5.72484902,0.0169394531 4.68607715,1.05430664 4.68607715,2.33384375 C4.68607715,2.44267188 4.69376272,2.54968164 4.70829819,2.65451758 C2.74188703,3.53256641 1.37158055,5.50290234 1.37158055,7.79288672 C1.37158055,7.92044531 1.37592338,8.04699219 1.38428025,8.17243164 C0.593775725,8.54169531 0.0460860491,9.34289453 0.0460860491,10.2719531 C0.0460860491,11.5515449 1.08474833,12.5888574 2.36612955,12.5888574 C2.80723496,12.5888574 3.21958454,12.4658926 3.57069612,12.2524336 C4.52158393,12.9838105 5.71288912,13.4188223 7.00595625,13.4188223 C8.30016046,13.4188223 9.49238354,12.9830449 10.4436412,12.2505195 C10.7943281,12.4630762 11.2059516,12.5854668 11.6462213,12.5854668 C12.9274382,12.5854668 13.9661004,11.5489746 13.9661004,10.2703672 C13.9661004,9.34171875 13.4181916,8.54095703 12.6274816,8.17204883 Z M7.00623025,1.00913477 C7.73549676,1.00913477 8.32698463,1.59684766 8.33166995,2.32357617 C8.33168365,2.32647461 8.33177955,2.32935938 8.33177955,2.33225781 C8.33177955,2.69178711 8.18805519,3.01775195 7.95488499,3.25620313 C7.71417991,3.50236523 7.37813809,3.65527148 7.00623025,3.65527148 C6.6343361,3.65527148 6.29829428,3.50236523 6.0575618,3.25620313 C5.8243779,3.01775195 5.68062614,2.69178711 5.68062614,2.33225781 C5.68062614,2.32931836 5.68072204,2.32639258 5.68073574,2.32345313 C5.68547586,1.59679297 6.27704593,1.00913477 7.00623025,1.00913477 Z M2.36612955,11.5993965 C1.63399978,11.5993965 1.04047065,11.0058047 1.04047065,10.2734297 C1.04047065,9.84645703 1.24229576,9.46667969 1.55566445,9.22416797 C1.7797654,9.05074023 2.06088482,8.94746289 2.36614325,8.94746289 C2.41639403,8.94746289 2.46597352,8.95036133 2.51477213,8.95580273 C3.17696454,9.02969922 3.69181585,9.59136719 3.69181585,10.273416 C3.69181585,10.4903613 3.6397293,10.6951113 3.5473928,10.8758809 C3.39166744,11.1807637 3.12143934,11.4173555 2.79339819,11.5289863 C2.65931847,11.574623 2.51562151,11.5993965 2.36612955,11.5993965 Z M7.00127093,12.4178633 C5.99141928,12.4178633 5.0570808,12.0957402 4.29537321,11.549084 C4.53905114,11.1824316 4.68111783,10.7425937 4.68111783,10.2695605 C4.68111783,8.99117188 3.64429132,7.95466602 2.36460887,7.95280664 C2.3626772,7.89787305 2.36134833,7.84278906 2.36134833,7.78737695 C2.36134833,5.92565039 3.46242679,4.32079102 5.05001172,3.58529883 C5.46299149,4.22481445 6.18258597,4.64830078 7.00128463,4.64830078 C7.81990109,4.64830078 8.53950926,4.22481445 8.95248903,3.58529883 C10.5400329,4.32079102 11.6411113,5.92565039 11.6411113,7.78737695 C11.6411113,7.84277539 11.6397824,7.89787305 11.6378508,7.95280664 C10.3582094,7.95465234 9.32139662,8.99040625 9.32139662,10.2679746 C9.32139662,10.7413906 9.4639017,11.1815293 9.70827832,11.5482363 C8.94635153,12.0953848 8.01158836,12.4178633 7.00127093,12.4178633 Z M11.6459473,8.94746289 C11.9510962,8.94746289 12.2321197,9.0506582 12.4561658,9.22397656 C12.7696578,9.46647461 12.9715652,9.84632031 12.9715652,10.273375 C12.9715652,11.0056953 12.3780634,11.5993418 11.6459473,11.5993418 C11.4964143,11.5993418 11.3526762,11.574541 11.2185828,11.528877 C10.8907472,11.4172324 10.6206287,11.1807227 10.464917,10.8759902 C10.3725257,10.6951797 10.320398,10.490375 10.320398,10.273375 C10.320398,9.59128516 10.8354138,9.0295625 11.4976062,8.95577539 C11.5463226,8.95034766 11.5957925,8.94746289 11.6459473,8.94746289 Z M7.00557266,6.21029883 C7.91351399,6.21029883 8.64954587,6.94483166 8.64954587,7.85092383 C8.64954587,8.757016 7.91351399,9.49154883 7.00557266,9.49154883 C6.09763132,9.49154883 5.36159944,8.757016 5.36159944,7.85092383 C5.36159944,6.94483166 6.09763132,6.21029883 7.00557266,6.21029883 Z",id:"Pick-形状"})))))))))}function Sl(e){return E.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["nanqu-token-panel-icon",e.className].filter(Boolean).join(" ")}),E.createElement("g",{id:"SearchDropdown-页面-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},E.createElement("g",{id:"SearchDropdown-主题预览器---组件预览",transform:"translate(-23.000000, -198.000000)",fillRule:"nonzero"},E.createElement("g",{id:"SearchDropdown-编组-18",transform:"translate(0.000000, 70.000000)"},E.createElement("g",{id:"SearchDropdown-编组-15",transform:"translate(16.000000, 123.000000)"},E.createElement("g",{id:"SearchDropdown-search-outlined",transform:"translate(7.000000, 5.000000)"},E.createElement("rect",{id:"SearchDropdown-矩形",fill:"#000000",opacity:0,x:0,y:0,width:18,height:18}),E.createElement("path",{d:"M15.958,14.99375 L11.41325,10.449 C12.1185,9.53725 12.5,8.4225 12.5,7.25 C12.5,5.8465 11.95225,4.5305 10.96175,3.53825 C9.97125,2.546 8.65175,2 7.25,2 C5.84825,2 4.52875,2.54775 3.53825,3.53825 C2.546,4.52875 2,5.8465 2,7.25 C2,8.65175 2.54775,9.97125 3.53825,10.96175 C4.52875,11.954 5.8465,12.5 7.25,12.5 C8.4225,12.5 9.5355,12.1185 10.44725,11.415 L14.992,15.958 C15.048,16.014 15.139,16.014 15.195,15.958 L15.958,15.19675 C16.014,15.14075 16.014,15.04975 15.958,14.99375 Z M10.022,10.022 C9.28,10.76225 8.2965,11.17 7.25,11.17 C6.2035,11.17 5.22,10.76225 4.478,10.022 C3.73775,9.28 3.33,8.2965 3.33,7.25 C3.33,6.2035 3.73775,5.21825 4.478,4.478 C5.22,3.73775 6.2035,3.33 7.25,3.33 C8.2965,3.33 9.28175,3.736 10.022,4.478 C10.76225,5.22 11.17,6.2035 11.17,7.25 C11.17,8.2965 10.76225,9.28175 10.022,10.022 Z",id:"SearchDropdown-形状",fill:"currentColor"}),E.createElement("path",{d:"M17.8616348,7.7578125 L14.0131973,7.7578125 C13.8977676,7.7578125 13.8333145,7.8796875 13.9047988,7.96289062 L15.8290176,10.1941406 C15.8840957,10.2580078 15.9901504,10.2580078 16.0458145,10.1941406 L17.9700332,7.96289062 C18.0415176,7.8796875 17.9770645,7.7578125 17.8616348,7.7578125 Z",id:"SearchDropdown-路径",fill:"currentColor"})))))))}function xl(e){return E.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["nanqu-token-panel-icon",e.className].filter(Boolean).join(" ")}),E.createElement("g",{id:"ShapeLine-页面-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},E.createElement("g",{id:"ShapeLine-shape-line",transform:"translate(0.000000, 0.923169)",fill:"currentColor",fillRule:"nonzero"},E.createElement("rect",{id:"ShapeLine-矩形",opacity:0,x:0,y:0,width:16,height:15.9807923}),E.createElement("path",{d:"M5.22,13.3173269 C4.90928357,14.1946577 4.03334945,14.7416208 3.10760502,14.6363783 C2.18186059,14.5311359 1.45139881,13.801551 1.34602985,12.8769179 C1.24066088,11.9522848 1.78828141,11.0774022 2.66666667,10.7670588 L2.66666667,5.21373349 C1.78828141,4.90339007 1.24066088,4.02850749 1.34602985,3.1038744 C1.45139881,2.1792413 2.18186059,1.44965643 3.10760502,1.34441396 C4.03334945,1.23917149 4.90928357,1.78613461 5.22,2.66346539 L10.78,2.66346539 C11.0907164,1.78613461 11.9666505,1.23917149 12.892395,1.34441396 C13.8181394,1.44965643 14.5486012,2.1792413 14.6539702,3.1038744 C14.7593391,4.02850749 14.2117186,4.90339007 13.3333333,5.21373349 L13.3333333,10.7670588 C14.2117186,11.0774022 14.7593391,11.9522848 14.6539702,12.8769179 C14.5486012,13.801551 13.8181394,14.5311359 12.892395,14.6363783 C11.9666505,14.7416208 11.0907164,14.1946577 10.78,13.3173269 L5.22,13.3173269 Z M5.22,11.9855942 L10.78,11.9855942 C10.9819939,11.4165133 11.430235,10.9688103 12,10.7670588 L12,5.21373349 C11.430235,5.01198206 10.9819939,4.56427905 10.78,3.99519808 L5.22,3.99519808 C5.01800608,4.56427905 4.56976496,5.01198206 4,5.21373349 L4,10.7670588 C4.56976496,10.9688103 5.01800608,11.4165133 5.22,11.9855942 Z M3.33333333,3.99519809 C3.5715347,3.9952345 3.79165744,3.86832906 3.91076865,3.66229434 C4.02987987,3.45625961 4.02987987,3.20240385 3.91076865,2.99636913 C3.79165744,2.79033441 3.5715347,2.66342897 3.33333333,2.66346538 C2.96518335,2.66352168 2.66676872,2.96162371 2.66676872,3.32933173 C2.66676872,3.69703976 2.96518335,3.99514178 3.33333333,3.99519809 L3.33333333,3.99519809 Z M12.6666667,3.99519809 C12.904868,3.9952345 13.1249908,3.86832906 13.244102,3.66229434 C13.3632132,3.45625961 13.3632132,3.20240385 13.244102,2.99636913 C13.1249908,2.79033441 12.904868,2.66342897 12.6666667,2.66346538 C12.2985167,2.66352168 12.0001021,2.96162371 12.0001021,3.32933173 C12.0001021,3.69703976 12.2985167,3.99514178 12.6666667,3.99519809 L12.6666667,3.99519809 Z M12.6666667,13.3173269 C12.904868,13.3173633 13.1249908,13.1904579 13.244102,12.9844232 C13.3632132,12.7783885 13.3632132,12.5245327 13.244102,12.318498 C13.1249908,12.1124633 12.904868,11.9855578 12.6666667,11.9855942 C12.2985167,11.9856505 12.0001021,12.2837526 12.0001021,12.6514606 C12.0001021,13.0191686 12.2985167,13.3172706 12.6666667,13.3173269 L12.6666667,13.3173269 Z M3.33333333,13.3173269 C3.5715347,13.3173633 3.79165744,13.1904579 3.91076865,12.9844232 C4.02987987,12.7783885 4.02987987,12.5245327 3.91076865,12.318498 C3.79165744,12.1124633 3.5715347,11.9855578 3.33333333,11.9855942 C2.96518335,11.9856505 2.66676872,12.2837526 2.66676872,12.6514606 C2.66676872,13.0191686 2.96518335,13.3172706 3.33333333,13.3173269 L3.33333333,13.3173269 Z",id:"ShapeLine-形状"}))))}const Cl=()=>o.jsxs(i.Space,{direction:"vertical",children:[o.jsx(i.Alert,{message:"Success Tips",type:"success",showIcon:!0}),o.jsx(i.Alert,{message:"Informational Notes",type:"info",showIcon:!0}),o.jsx(i.Alert,{message:"Warning",type:"warning",showIcon:!0,closable:!0}),o.jsx(i.Alert,{message:"Error",type:"error",showIcon:!0})]}),kl={demo:o.jsx(Cl,{}),tokens:["colorIconHover","colorIcon","colorText"],key:"alert"},wl=()=>o.jsxs(i.Space,{direction:"vertical",children:[o.jsx(i.Alert,{message:"Error",type:"error",showIcon:!0}),o.jsx(i.Alert,{message:"Error",description:"This is an error message about copywriting.",type:"error",showIcon:!0})]}),dn={demo:o.jsx(wl,{}),tokens:["colorErrorBg","colorErrorBorder","colorError"],key:"error"},El=()=>o.jsxs(i.Space,{direction:"vertical",children:[o.jsx(i.Alert,{message:"Informational Notes",type:"info",showIcon:!0}),o.jsx(i.Alert,{message:"Informational Notes",description:"Additional description and information about copywriting.",type:"info",showIcon:!0})]}),Tl={demo:o.jsx(El,{}),tokens:["colorInfo","colorInfoBorder","colorInfoBg"],key:"info"},Bl=()=>o.jsxs(i.Space,{direction:"vertical",children:[o.jsx(i.Alert,{message:"Success Tips",type:"success",showIcon:!0}),o.jsx(i.Alert,{message:"Success Tips",description:"Detailed description and advice about successful copywriting.",type:"success",showIcon:!0})]}),pn={demo:o.jsx(Bl,{}),tokens:["colorSuccess","colorSuccessBorder","colorSuccessBg"],key:"success"},Dl=()=>o.jsxs(i.Space,{direction:"vertical",children:[o.jsx(i.Alert,{message:"Warning",type:"warning",showIcon:!0,closable:!0}),o.jsx(i.Alert,{message:"Warning",description:"This is a warning notice about copywriting.",type:"warning",showIcon:!0,closable:!0})]}),gn={demo:o.jsx(Dl,{}),tokens:["colorWarning","colorWarningBorder","colorWarningBg"],key:"warning"},Hl=[kl,dn,Tl,pn,gn],{Link:mo}=i.Anchor,Al=()=>o.jsx("div",{style:{padding:12},children:o.jsxs(i.Anchor,{children:[o.jsx(mo,{href:"#",title:"Basic demo"}),o.jsx(mo,{href:"#components-anchor-demo-static",title:"Static demo"}),o.jsxs(mo,{href:"#API",title:"API",children:[o.jsx(mo,{href:"#Anchor-Props",title:"Anchor Props"}),o.jsx(mo,{href:"#Link-Props",title:"Link Props"})]})]})}),Ml={demo:o.jsx(Al,{}),tokens:["colorPrimary","colorSplit","colorBgContainer"],key:"anchor"},{Link:vo}=i.Anchor,Il=()=>{const{token:e}=i.theme.useToken();return o.jsx("div",{style:{background:e.colorBorderSecondary,padding:12},children:o.jsxs(i.Anchor,{children:[o.jsx(vo,{href:"#components-anchor-demo-basic",title:"Basic demo"}),o.jsx(vo,{href:"#components-anchor-demo-static",title:"Static demo"}),o.jsxs(vo,{href:"#API",title:"API",children:[o.jsx(vo,{href:"#Anchor-Props",title:"Anchor Props"}),o.jsx(vo,{href:"#Link-Props",title:"Link Props"})]})]})})},Pl=[Ml,{demo:o.jsx(Il,{}),tokens:["colorSplit"],key:"anchorInLayout"}],Pr=(e,r=1)=>({value:e.repeat(r)}),zl=()=>{const[e,r]=h.useState(""),[t,n]=h.useState([]),a=s=>{n(s?[Pr(s),Pr(s,2),Pr(s,3)]:[])},l=s=>{console.log("onSelect",s)},c=s=>{r(s)};return o.jsxs(o.Fragment,{children:[" ",o.jsx(i.AutoComplete,{options:t,style:{width:200},onSelect:l,onSearch:a,placeholder:"input here"})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx(i.AutoComplete,{value:e,options:t,style:{width:200},onSelect:l,onSearch:a,onChange:c,placeholder:"control mode"})," "]})},Ll=()=>o.jsx(zl,{}),$l=[{demo:o.jsx(Ll,{}),tokens:[],key:"autoComplete"}],Ol=()=>o.jsxs(i.Space,{direction:"vertical",children:[o.jsxs(i.Space,{children:[o.jsx(i.Avatar,{size:64,icon:o.jsx(D.UserOutlined,{})}),o.jsx(i.Avatar,{size:"large",icon:o.jsx(D.UserOutlined,{})}),o.jsx(i.Avatar,{icon:o.jsx(D.UserOutlined,{})}),o.jsx(i.Avatar,{size:"small",icon:o.jsx(D.UserOutlined,{})})]}),o.jsxs(i.Space,{children:[o.jsx(i.Avatar,{shape:"square",size:64,icon:o.jsx(D.UserOutlined,{})}),o.jsx(i.Avatar,{shape:"square",size:"large",icon:o.jsx(D.UserOutlined,{})}),o.jsx(i.Avatar,{shape:"square",icon:o.jsx(D.UserOutlined,{})}),o.jsx(i.Avatar,{shape:"square",size:"small",icon:o.jsx(D.UserOutlined,{})})]})]}),Fl=[{demo:o.jsx(Ol,{}),key:"default"}],_l=()=>{const{token:e}=i.theme.useToken();return o.jsxs(i.Space,{size:"large",children:[o.jsx(i.Badge,{count:5,children:o.jsx(i.Avatar,{shape:"square",size:"large"})}),o.jsx(i.Badge,{count:0,showZero:!0,children:o.jsx(i.Avatar,{shape:"square",size:"large"})}),o.jsx(i.Badge,{count:o.jsx(D.ClockCircleFilled,{style:{color:e.colorError}}),children:o.jsx(i.Avatar,{shape:"square",size:"large"})})]})},un={demo:o.jsx(_l,{}),tokens:["colorError","colorBorderBg","colorBgContainer"],key:"badge"},Wl=()=>o.jsxs(i.Space,{size:"small",children:[o.jsx(i.Badge,{dot:!0,status:"processing"}),"Process"]}),Xl={demo:o.jsx(Wl,{}),tokens:["colorPrimary"],key:"progress"},Nl=()=>o.jsxs(i.Space,{size:"small",children:[o.jsx(i.Badge,{dot:!0,status:"success"}),"Success"]}),Gl={demo:o.jsx(Nl,{}),tokens:["colorSuccess"],key:"success"},Ul=()=>o.jsxs(i.Space,{size:"small",children:[o.jsx(i.Badge,{dot:!0,status:"warning"}),"Warning"]}),hn={demo:o.jsx(Ul,{}),tokens:["colorWarning"],key:"warning"},jl=[un,Xl,hn,Gl],Vl=()=>o.jsxs(i.Breadcrumb,{children:[o.jsx(i.Breadcrumb.Item,{children:"Home"}),o.jsx(i.Breadcrumb.Item,{children:o.jsx("a",{href:"",children:"Application Center"})}),o.jsx(i.Breadcrumb.Item,{children:o.jsx("a",{href:"",children:"Application List"})}),o.jsx(i.Breadcrumb.Item,{children:"An Application"})]}),ql=[{demo:o.jsx(Vl,{}),tokens:["colorText","colorPrimary","colorPrimaryActive","colorPrimaryHover"],key:"breadcrumb"}],Yl=()=>o.jsxs(i.Space,{children:[o.jsx(i.Button,{type:"primary",children:"Primary Button"}),o.jsx(i.Button,{children:"Default Button"}),o.jsx(i.Button,{type:"dashed",children:"Dashed Button"})," ",o.jsx("br",{}),o.jsx(i.Button,{type:"text",children:"Text Button"}),o.jsx(i.Button,{ghost:!0,children:"Ghost Button"}),o.jsx(i.Button,{type:"link",children:"Link Button"})]}),Zl={demo:o.jsx(Yl,{}),tokens:["colorText","colorPrimary","colorPrimaryActive","colorPrimaryHover","controlOutline","controlTmpOutline"],key:"button"},Ql=()=>o.jsxs(i.Space,{children:[o.jsx(i.Button,{type:"primary",children:"Primary Button"}),o.jsx(i.Tooltip,{title:"search",children:o.jsx(i.Button,{type:"primary",shape:"circle",icon:o.jsx(D.SearchOutlined,{})})}),o.jsx(i.Button,{type:"primary",shape:"circle",children:"A"}),o.jsx(i.Button,{type:"primary",ghost:!0,icon:o.jsx(D.SearchOutlined,{}),children:"Search"})]}),fn={demo:o.jsx(Ql,{}),tokens:["colorPrimary"],key:"button-icon"},Kl=()=>o.jsxs(i.Space,{children:[o.jsx(i.Button,{type:"primary",danger:!0,children:"primary"}),o.jsx(i.Button,{type:"default",danger:!0,children:"default"}),o.jsx(i.Button,{type:"text",danger:!0,children:"text"}),o.jsx(i.Button,{type:"link",danger:!0,children:"link"})]}),mn={demo:o.jsx(Kl,{}),tokens:["colorError","colorErrorActive","colorErrorHover","colorErrorBorder","colorErrorOutline"],key:"danger"},Jl=()=>o.jsx(i.Button,{children:"default"}),Rl={demo:o.jsx(Jl,{}),tokens:["colorBgContainer"],key:"defaultButton"},ec=()=>o.jsxs(i.Space,{children:[o.jsx(i.Button,{disabled:!0,type:"primary",children:"Primary"}),o.jsx(i.Button,{disabled:!0,children:"Default"}),o.jsx(i.Button,{disabled:!0,type:"dashed",children:"Dashed"}),o.jsx("br",{}),o.jsx(i.Button,{disabled:!0,type:"text",children:"Text"}),o.jsx(i.Button,{disabled:!0,ghost:!0,children:"Ghost"}),o.jsx(i.Button,{disabled:!0,type:"link",children:"Link"})]}),oc=[Zl,fn,mn,Rl,{demo:o.jsx(ec,{}),tokens:["colorTextDisabled","colorBgContainerDisabled"],key:"disabled"}],rc=()=>o.jsx(i.Calendar,{}),tc={demo:o.jsx(rc,{}),tokens:["colorPrimary","colorPrimaryHover","colorBgContainer"],key:"default"},nc=()=>o.jsx(i.Calendar,{disabledDate:()=>!0}),ac=[tc,{demo:o.jsx(nc,{}),tokens:["colorBgContainerDisabled","colorTextDisabled"],key:"disabled"}],ic=()=>o.jsxs(i.Space,{children:[o.jsxs(i.Card,{title:"Default size card",extra:o.jsx("a",{href:"#",children:"More"}),style:{width:300},children:[o.jsx("p",{children:"Card content"})," ",o.jsx("p",{children:"Card content"})," ",o.jsx("p",{children:"Card content"})]}),o.jsxs(i.Card,{loading:!0,size:"small",title:"Small size card",extra:o.jsx("a",{href:"#",children:"More"}),style:{width:300},children:[o.jsx("p",{children:"Card content"})," ",o.jsx("p",{children:"Card content"})," ",o.jsx("p",{children:"Card content"})]})]}),lc={demo:o.jsx(ic,{}),tokens:["colorText","colorTextHeading","colorTextSecondary","colorBgContainer","colorBorderSecondary","colorPrimary","colorBgContainer"],key:"card"},Je={width:"25%",textAlign:"center"},cc=()=>o.jsxs(i.Card,{title:"Card Title",children:[o.jsx(i.Card.Grid,{style:Je,children:"Content"}),o.jsx(i.Card.Grid,{hoverable:!1,style:Je,children:"Content"}),o.jsx(i.Card.Grid,{style:Je,children:"Content"}),o.jsx(i.Card.Grid,{style:Je,children:"Content"}),o.jsx(i.Card.Grid,{style:Je,children:"Content"}),o.jsx(i.Card.Grid,{style:Je,children:"Content"}),o.jsx(i.Card.Grid,{style:Je,children:"Content"})]}),sc={demo:o.jsx(cc,{}),tokens:["colorBorderSecondary"],key:"cardGrid"},dc=()=>o.jsx(i.Space,{children:o.jsx(i.Card,{type:"inner",title:"Inner Card title",children:"Inner Card content"})}),pc=[lc,{demo:o.jsx(dc,{}),tokens:["colorFillAlter"],key:"inner"},sc],qo={height:"160px",color:"#fff",lineHeight:"160px",textAlign:"center",background:"#364d79"},gc=()=>o.jsxs(i.Carousel,{children:[o.jsx("div",{children:o.jsx("h3",{style:qo,children:"1"})}),o.jsx("div",{children:o.jsx("h3",{style:qo,children:"2"})}),o.jsx("div",{children:o.jsx("h3",{style:qo,children:"3"})}),o.jsx("div",{children:o.jsx("h3",{style:qo,children:"4"})})]}),uc=[{demo:o.jsx(gc,{}),tokens:["colorText","colorBgContainer"],key:"default"}],zr=[{value:"zhejiang",label:"Zhejiang",children:[{value:"hangzhou",label:"Hangzhou",children:[{value:"xihu",label:"West Lake"}]}]},{value:"jiangsu",label:"Jiangsu",children:[{value:"nanjing",label:"Nanjing",children:[{value:"zhonghuamen",label:"Zhong Hua Men"}]}]}],{_InternalPanelDoNotUseOrYouWillBeFired:hc}=i.Cascader,fc=e=>o.jsx(hc,_(I({options:zr},e),{open:!0,placeholder:"Please select"})),mc={demo:o.jsx(fc,{}),tokens:["colorBgContainer","colorPrimary"],key:"default"},{_InternalPanelDoNotUseOrYouWillBeFired:vc}=i.Cascader,yc=()=>o.jsx(vc,{options:zr,open:!0,disabled:!0,placeholder:"Please select"}),bc={demo:o.jsx(yc,{}),tokens:["colorBgContainerDisabled"],key:"disabled"},{_InternalPanelDoNotUseOrYouWillBeFired:Sc}=i.Cascader,xc=()=>o.jsx(Sc,{options:zr,placeholder:"Please select",searchValue:"jiang",showSearch:!0}),Cc=[mc,{demo:o.jsx(xc,{}),tokens:["colorHighlight"],key:"highlight"},bc],kc=e=>o.jsxs(i.Space,{children:[o.jsx(i.Checkbox,_(I({},e),{children:"Checkbox"})),o.jsx(i.Checkbox,_(I({},e),{checked:!0,children:"选中态"}))]}),wc={demo:o.jsx(kc,{}),tokens:["colorPrimary","colorText","colorBgContainer"],key:"default"},Ec=()=>o.jsx(i.Checkbox,{disabled:!0,children:"Checkbox"}),Tc=[wc,{demo:o.jsx(Ec,{}),tokens:["colorTextDisabled","colorBgContainerDisabled"],key:"disabled"}],{Panel:Lr}=i.Collapse,$r=" A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.",Bc=()=>o.jsxs(i.Collapse,{defaultActiveKey:["1"],children:[o.jsx(Lr,{header:"This is panel header 1",children:o.jsx("p",{children:$r})},"1"),o.jsx(Lr,{header:"This is panel header 2",children:o.jsx("p",{children:$r})},"2"),o.jsx(Lr,{header:"This is panel header 3",children:o.jsx("p",{children:$r})},"3")]}),Dc=[{demo:o.jsx(Bc,{}),tokens:["colorTextSecondary","colorText","colorFillAlter","colorBgContainer"],key:"default"}],Hc=()=>o.jsx(i.DatePicker,{status:"error"}),Ac={demo:o.jsx(Hc,{}),tokens:["colorError","colorErrorBorder","colorErrorHover","colorErrorOutline"],key:"danger"},Mc=()=>o.jsxs(i.Space,{direction:"vertical",children:[o.jsx(i.DatePicker._InternalPanelDoNotUseOrYouWillBeFired,{picker:"week"}),o.jsx(i.DatePicker._InternalPanelDoNotUseOrYouWillBeFired,{picker:"month"}),o.jsx(i.DatePicker._InternalPanelDoNotUseOrYouWillBeFired,{picker:"quarter"}),o.jsx(i.DatePicker._InternalPanelDoNotUseOrYouWillBeFired,{picker:"year"})]}),Ic={demo:o.jsx(Mc,{}),tokens:["colorPrimary","colorPrimaryBorder","colorPrimaryHover","controlOutline","colorBgElevated","colorBgContainer"],key:"default"},Pc=()=>o.jsxs(i.Space,{direction:"vertical",children:[o.jsx(i.DatePicker,{disabled:!0}),o.jsx(i.DatePicker,{disabled:!0,picker:"week"}),o.jsx(i.DatePicker,{disabled:!0,picker:"month"}),o.jsx(i.DatePicker,{disabled:!0,picker:"quarter"}),o.jsx(i.DatePicker,{disabled:!0,picker:"year"})]}),zc={demo:o.jsx(Pc,{}),tokens:["colorBgContainerDisabled","colorTextDisabled"],key:"disabled"},Lc=()=>o.jsx(i.DatePicker._InternalPanelDoNotUseOrYouWillBeFired,{}),$c={demo:o.jsx(Lc,{}),tokens:["colorIcon","colorIconHover"],key:"icon"},Oc=()=>o.jsx(i.DatePicker,{status:"warning"}),Fc=[Ic,Ac,{demo:o.jsx(Oc,{}),tokens:["colorWarning","colorWarningBorder","colorWarningHover","colorWarningOutline"],key:"warning"},$c,zc],_c=()=>o.jsxs(i.Descriptions,{title:"User Info",bordered:!0,children:[o.jsx(i.Descriptions.Item,{label:"Product",children:"Cloud Database"}),o.jsx(i.Descriptions.Item,{label:"Billing Mode",children:"Prepaid"}),o.jsx(i.Descriptions.Item,{label:"Automatic Renewal",children:"YES"}),o.jsx(i.Descriptions.Item,{label:"Order time",children:"2018-04-24 18:00:00"})]}),Wc=[{demo:o.jsx(_c,{}),tokens:["colorSplit","colorText","colorFillAlter"],key:"default"}],Xc=()=>o.jsxs(o.Fragment,{children:[o.jsx("p",{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo."}),o.jsx(i.Divider,{plain:!0,children:"Text"}),o.jsx("p",{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo."}),o.jsx(i.Divider,{orientation:"left",plain:!0,children:"Left Text"}),o.jsx("p",{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo."}),o.jsx(i.Divider,{orientation:"right",plain:!0,children:"Right Text"}),o.jsx("p",{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo."})]}),Nc=[{demo:o.jsx(Xc,{}),tokens:["colorSplit","colorText"],key:"divider"}],Gc=()=>{const[e,r]=h.useState(!1),t=()=>{r(!0)},n=()=>{r(!1)};return o.jsxs(o.Fragment,{children:[o.jsx(i.Button,{type:"primary",onClick:t,children:"Open"}),o.jsxs(i.Drawer,{title:"Basic Drawer",placement:"right",onClose:n,open:e,children:[o.jsx("p",{children:"Some contents..."}),o.jsx("p",{children:"Some contents..."}),o.jsx("p",{children:"Some contents..."})]})]})},Uc=[{demo:o.jsx(Gc,{}),tokens:["colorBgMask","colorBgElevated"],key:"default"}],jc=o.jsxs(i.Menu,{children:[o.jsx(i.Menu.Item,{children:o.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.antgroup.com",children:"1st menu item"})}),o.jsx(i.Menu.Item,{icon:o.jsx(D.DownOutlined,{}),disabled:!0,children:o.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.aliyun.com",children:"2nd menu item (disabled)"})}),o.jsx(i.Menu.Item,{disabled:!0,children:o.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.luohanacademy.com",children:"3rd menu item (disabled)"})}),o.jsx(i.Menu.Item,{danger:!0,children:"a danger item"})]}),Vc=()=>o.jsxs("div",{children:[o.jsxs("a",{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:["Hover me ",o.jsx(D.DownOutlined,{})]}),o.jsx(i.Dropdown._InternalPanelDoNotUseOrYouWillBeFired,{overlay:jc})]}),qc=[{demo:o.jsx(Vc,{}),tokens:["colorPrimary","colorError","colorErrorHover","colorBgElevated"],key:"default"}],Yc=()=>o.jsx(i.Empty,{}),Zc=[{demo:o.jsx(Yc,{}),tokens:["colorTextDisabled"],key:"default"}],Qc=()=>{const e=()=>{},r=()=>{};return o.jsxs(i.Form,{name:"basic",labelCol:{span:8},wrapperCol:{span:16},initialValues:{remember:!0},onFinish:e,onFinishFailed:r,autoComplete:"off",children:[o.jsx(i.Form.Item,{label:"Username",name:"username",rules:[{required:!0,message:"Please input your username!"}],children:o.jsx(i.Input,{})}),o.jsx(i.Form.Item,{label:"Password",name:"password",rules:[{required:!0,message:"Please input your password!"}],children:o.jsx(i.Input.Password,{})}),o.jsx(i.Form.Item,{name:"remember",valuePropName:"checked",wrapperCol:{offset:8,span:16},children:o.jsx(i.Checkbox,{children:"Remember me"})}),o.jsx(i.Form.Item,{wrapperCol:{offset:8,span:16},children:o.jsx(i.Button,{type:"primary",htmlType:"submit",children:"Submit"})})]})},Kc={demo:o.jsx(Qc,{}),tokens:["colorError","controlOutline","colorErrorBorder","colorErrorHover"],key:"default"};function Jc(){}const Rc=()=>o.jsx(i.Form,{name:"basic",labelCol:{span:4},wrapperCol:{span:20},initialValues:{remember:!0},onFinish:Jc,autoComplete:"off",children:o.jsx(i.Form.Item,{label:"Username",name:"username",status:"error",rules:[{required:!0,message:"Please input your username!"}],children:o.jsx(i.Input,{})})}),es={demo:o.jsx(Rc,{}),tokens:["colorError","colorErrorBorder","colorErrorHover"],key:"danger"};function os(){}const rs=()=>o.jsx(i.Form,{name:"basic",labelCol:{span:8},wrapperCol:{span:16},initialValues:{remember:!0},onFinish:os,autoComplete:"off",children:o.jsx(i.Form.Item,{label:"Username",name:"username",status:"warning",rules:[{required:!0,message:"Please input your username!"}],children:o.jsx(i.Input,{})})}),ts=[Kc,{demo:o.jsx(rs,{}),tokens:["colorWarning"],key:"warning"},es],ns=ie("GridDemo",e=>({".previewer-grid-demo":{[`${e.rootCls}-row`]:{marginBottom:16},[`${e.rootCls}-row > div:not(.gutter-row)`]:{padding:"16px 0",background:"#0092ff",color:"#fff",display:"inline-flex",alignItems:"center",justifyContent:"center","&:nth-child(2n + 1)":{background:"rgba(0,146,255,.75)"}}}})),as=()=>{const[,e]=ns();return o.jsxs("div",{className:ee("previewer-grid-demo",e),children:[o.jsx(i.Row,{children:o.jsx(i.Col,{span:24,children:"col"})}),o.jsxs(i.Row,{children:[o.jsx(i.Col,{span:12,children:"col-12"})," ",o.jsx(i.Col,{span:12,children:"col-12"})]}),o.jsxs(i.Row,{children:[o.jsx(i.Col,{span:8,children:"col-8"})," ",o.jsx(i.Col,{span:8,children:"col-8"}),o.jsx(i.Col,{span:8,children:"col-8"})]}),o.jsxs(i.Row,{children:[o.jsx(i.Col,{span:6,children:"col-6"})," ",o.jsx(i.Col,{span:6,children:"col-6"}),o.jsx(i.Col,{span:6,children:"col-6"}),o.jsx(i.Col,{span:6,children:"col-6"})]})]})},is=[{demo:o.jsx(as,{}),key:"default"}],ls=()=>o.jsxs(i.Space,{children:[o.jsx(D.HomeOutlined,{})," ",o.jsx(D.SettingFilled,{})," ",o.jsx(D.SmileOutlined,{})," ",o.jsx(D.SyncOutlined,{spin:!0}),o.jsx(D.SmileOutlined,{rotate:180})," ",o.jsx(D.LoadingOutlined,{})]}),cs=[{demo:o.jsx(ls,{}),key:"default"}],ss=()=>o.jsx(i.Image,{width:200,height:200,src:"error",placeholder:!0}),ds={demo:o.jsx(ss,{}),tokens:["colorBgContainerDisabled"],key:"disabled"},ps=()=>o.jsx(i.Image,{width:200,src:"https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"}),gs=[{demo:o.jsx(ps,{}),tokens:["colorBgMask"],key:"default"},ds],us=()=>o.jsx(i.Input,{placeholder:"Basic usage",value:"右侧的图标就是 colorIcon",allowClear:!0}),hs={demo:o.jsx(us,{}),tokens:["colorIcon","colorIconHover"],key:"clearIcon"};function fs(){}const ms=()=>o.jsx(i.Input,{status:"error",defaultValue:"hello",onChange:fs}),vs={demo:o.jsx(ms,{}),tokens:["colorError","colorErrorOutline","colorErrorBorder","colorErrorHover"],key:"danger"},ys=()=>o.jsx(i.Input,{placeholder:"Basic usage",disabled:!0}),bs={demo:o.jsx(ys,{}),tokens:["colorBgContainerDisabled"],key:"disabled"},Ss=()=>o.jsx(i.Input,{placeholder:"Basic usage"}),xs={demo:o.jsx(Ss,{}),tokens:["colorPrimary","colorPrimaryHover","controlOutline","colorBgContainer"],key:"default"};function Cs(){}const ks=()=>o.jsx(i.Input,{status:"warning",defaultValue:3,onChange:Cs}),vn={demo:o.jsx(ks,{}),tokens:["colorWarning","colorWarningBorder","colorWarningHover","colorWarningOutline"],key:"warning"},ws=()=>o.jsx(i.Input,{addonBefore:"http://",addonAfter:".com",defaultValue:"mysite"}),Es=[xs,hs,vs,vn,{demo:o.jsx(ws,{}),tokens:["colorFillAlter"],key:"withAddon"},bs];function Ts(){}const Bs=()=>o.jsx(i.InputNumber,{status:"error",min:1,max:10,defaultValue:3,onChange:Ts}),Ds={demo:o.jsx(Bs,{}),tokens:["colorErrorBorder","colorErrorOutline","colorErrorHover","colorError"],key:"danger"},Hs=()=>o.jsx(i.InputNumber,{min:1,max:10,defaultValue:3,disabled:!0}),As={demo:o.jsx(Hs,{}),tokens:["colorBgContainerDisabled"],key:"disabled"};function Ms(){}const Is=()=>o.jsx(i.InputNumber,{min:1,max:10,defaultValue:3,onChange:Ms}),Ps={demo:o.jsx(Is,{}),tokens:["colorPrimaryBorder","controlOutline","colorPrimaryHover","colorPrimary","colorBgContainer"],key:"default"};function zs(){}const Ls=()=>o.jsx(i.InputNumber,{status:"warning",min:1,max:10,defaultValue:3,onChange:zs}),$s=[Ps,Ds,{demo:o.jsx(Ls,{}),tokens:["colorWarning","colorWarningBorder","colorWarningOutline","colorWarningHover"],key:"warning"},As],Os=[{title:"Ant Design Title 1"},{title:"Ant Design Title 2"},{title:"Ant Design Title 3"},{title:"Ant Design Title 4"}],Fs=()=>o.jsx(i.List,{itemLayout:"horizontal",dataSource:Os,renderItem:e=>o.jsx(i.List.Item,{children:o.jsx(i.List.Item.Meta,{avatar:o.jsx(i.Avatar,{src:"https://joeschmoe.io/api/v1/random"}),title:o.jsx("a",{href:"https://ant.design",children:e.title}),description:"Ant Design, a design language for background applications, is refined by Ant UED Team"})})}),_s=[{demo:o.jsx(Fs,{}),tokens:[],key:"default"}],{Option:Or}=i.Mentions;function Ws(){}function Xs(){}const Ns=()=>o.jsxs(i.Mentions,{style:{width:"100%"},onChange:Ws,onSelect:Xs,status:"error",defaultValue:"@afc163",children:[o.jsx(Or,{value:"afc163",children:"afc163"}),o.jsx(Or,{value:"zombieJ",children:"zombieJ"}),o.jsx(Or,{value:"yesmeck",children:"yesmeck"})]}),Gs={demo:o.jsx(Ns,{}),tokens:["colorError","colorErrorOutline","colorErrorBorder","colorErrorHover"],key:"danger"},{Option:Fr}=i.Mentions,Us=()=>o.jsxs(i.Mentions,{style:{width:"100%"},status:"error",disabled:!0,defaultValue:"@afc163",children:[o.jsx(Fr,{value:"afc163",children:"afc163"}),o.jsx(Fr,{value:"zombieJ",children:"zombieJ"}),o.jsx(Fr,{value:"yesmeck",children:"yesmeck"})]}),js={demo:o.jsx(Us,{}),tokens:["colorBgContainerDisabled","colorTextDisabled"],key:"disabled"},{Option:_r}=i.Mentions;function Vs(){}function qs(){}const Ys=()=>o.jsxs(i.Mentions._InternalPanelDoNotUseOrYouWillBeFired,{style:{width:"100%"},onChange:Vs,onSelect:qs,defaultValue:"@afc163",children:[o.jsx(_r,{value:"afc163",children:"afc163"}),o.jsx(_r,{value:"zombieJ",children:"zombieJ"}),o.jsx(_r,{value:"yesmeck",children:"yesmeck"})]}),Zs={demo:o.jsx(Ys,{}),tokens:["colorBgContainer","colorBorder","colorPrimary","colorPrimaryHover","controlOutline"],key:"default"},{Option:Wr}=i.Mentions;function Qs(){}function Ks(){}const Js=()=>o.jsxs(i.Mentions,{style:{width:"100%"},onChange:Qs,onSelect:Ks,status:"warning",defaultValue:"@afc163",children:[o.jsx(Wr,{value:"afc163",children:"afc163"}),o.jsx(Wr,{value:"zombieJ",children:"zombieJ"}),o.jsx(Wr,{value:"yesmeck",children:"yesmeck"})]}),Rs=[Zs,Gs,{demo:o.jsx(Js,{}),tokens:["colorWarning","colorWarningBorder","colorWarningHover","colorWarningOutline"],key:"warning"},js],le=(e,r,t,n,a)=>({key:r,icon:t,children:n,label:e,type:a}),yn=[le("Navigation One","sub1",o.jsx(D.MailOutlined,{}),[le("Item 1","g1",null,[le("Option 1","1"),le("Option 2","2")],"group"),le("Item 2","g2",null,[le("Option 3","3"),le("Option 4","4")],"group")]),le("Navigation Two","sub2",o.jsx(D.AppstoreOutlined,{}),[le("Option 5","5"),le("Option 6","6"),le("Submenu","sub3",null,[le("Option 7","7"),le("Option 8","8")])]),le("Navigation Three","sub4",o.jsx(D.SettingOutlined,{}),[le("Option 9","9"),le("Option 10","10"),le("Option 11","11"),le("Option 12","12")])],ed=()=>{const e=r=>{console.log("click ",r)};return o.jsx("div",{children:o.jsx(i.Menu,{onClick:e,style:{width:256},defaultSelectedKeys:["1"],defaultOpenKeys:["sub1","sub2"],mode:"inline",items:yn})})},bn={demo:o.jsx(ed,{}),tokens:["colorPrimary","colorBgContainer","colorFillAlter","colorSplit","colorPrimaryHover"],key:"default"},od=[{key:"0",danger:!0,label:"危险"},{key:"1",danger:!0,label:"危险选中"},{key:"2",danger:!0,disabled:!0,label:"危险禁用"}],rd=()=>{const e=r=>{console.log("click ",r)};return o.jsx(i.Menu,{onClick:e,style:{width:256},defaultSelectedKeys:["1"],items:od})},Sn={demo:o.jsx(rd,{}),tokens:["colorError","colorErrorHover","colorErrorOutline"],key:"danger"},td=()=>{const{token:e}=i.theme.useToken();return o.jsx("div",{style:{background:e.colorBorderSecondary,padding:12},children:o.jsx(i.Menu,{style:{width:256},defaultSelectedKeys:["1"],defaultOpenKeys:["sub1"],mode:"inline",items:yn})})},nd=[bn,Sn,{demo:o.jsx(td,{}),tokens:["colorSplit"],key:"menuInLayout"}],{_InternalPanelDoNotUseOrYouWillBeFired:ad}=i.message,id=()=>o.jsx(ad,{type:"error",content:"这是一条异常消息,会主动消失"}),xn={demo:o.jsx(id,{}),tokens:["colorError"],key:"error"},{_InternalPanelDoNotUseOrYouWillBeFired:ld}=i.message,cd=()=>o.jsx(ld,{type:"info",content:"Info"}),sd={demo:o.jsx(cd,{}),tokens:["colorInfo"],key:"info"},{_InternalPanelDoNotUseOrYouWillBeFired:dd}=i.message,pd=()=>o.jsx(dd,{type:"info",content:"Hello, Ant Design!"}),gd={demo:o.jsx(pd,{}),tokens:["colorText","colorBgElevated"],key:"message"},{_InternalPanelDoNotUseOrYouWillBeFired:ud}=i.message,hd=()=>o.jsx(ud,{type:"success",content:"这是一条成功消息,会主动消失"}),Cn={demo:o.jsx(hd,{}),tokens:["colorSuccess"],key:"success"},{_InternalPanelDoNotUseOrYouWillBeFired:fd}=i.message,md=()=>o.jsx(fd,{type:"warning",content:"这是一条警告消息,会主动消失"}),kn={demo:o.jsx(md,{}),tokens:["colorWarning"],key:"warning"},vd=[gd,xn,sd,Cn,kn],{_InternalPanelDoNotUseOrYouWillBeFired:yd}=i.Modal,bd=()=>o.jsx(o.Fragment,{children:o.jsxs(yd,{title:"Basic Modal",children:[o.jsx("p",{children:"Some contents..."})," ",o.jsx("p",{children:"Some contents..."})," ",o.jsx("p",{children:"Some contents..."})]})}),Sd={demo:o.jsx(bd,{}),tokens:["colorInfo"],key:"info"},xd=()=>o.jsxs(i.Modal._InternalPanelDoNotUseOrYouWillBeFired,{title:"Basic Modal",children:[o.jsx("p",{children:"Some contents..."})," ",o.jsx("p",{children:"Some contents..."})," ",o.jsx("p",{children:"Some contents..."})]}),Cd={demo:o.jsx(xd,{}),tokens:["colorBgElevated"],key:"default"},kd=()=>{const[e,r]=h.useState(!1),t=()=>{r(!0)},n=()=>{r(!1)},a=()=>{r(!1)};return o.jsxs(o.Fragment,{children:[o.jsx(i.Button,{type:"primary",onClick:t,children:"Open Modal"}),o.jsxs(i.Modal,{title:"Basic Modal",open:e,onOk:n,onCancel:a,children:[o.jsx("p",{children:"Some contents..."})," ",o.jsx("p",{children:"Some contents..."})," ",o.jsx("p",{children:"Some contents..."})]})]})},wd={demo:o.jsx(kd,{}),tokens:["colorBgMask"],key:"modalWithButton"},Ed=()=>o.jsx(i.Modal._InternalPanelDoNotUseOrYouWillBeFired,{type:"success",children:"A good news!"}),Td={demo:o.jsx(Ed,{}),tokens:["colorSuccess"],key:"success"},Bd=()=>o.jsx(i.Modal._InternalPanelDoNotUseOrYouWillBeFired,{type:"confirm",title:"Confirm This?",children:"Some descriptions."}),wn={demo:o.jsx(Bd,{}),tokens:["colorWarning"],key:"warning"},Dd=[Cd,Sd,wd,wn,Td],{_InternalPanelDoNotUseOrYouWillBeFired:Hd}=i.notification,Ad=()=>o.jsx(Hd,{message:"Notification Title",type:"error",description:"This is the content of the notification. This is the content of the notification. This is the content of the notification."}),En={demo:o.jsx(Ad,{}),tokens:["colorError"],key:"error"},{_InternalPanelDoNotUseOrYouWillBeFired:Md}=i.notification,Id=()=>o.jsx(Md,{message:"Notification Title",type:"info",description:"This is the content of the notification. This is the content of the notification. This is the content of the notification."}),Pd={demo:o.jsx(Id,{}),tokens:["colorInfo"],key:"info"},{_InternalPanelDoNotUseOrYouWillBeFired:zd}=i.notification,Ld=()=>o.jsx(zd,{message:"Notification Title",description:"This is the content of the notification. This is the content of the notification. This is the content of the notification."}),$d={demo:o.jsx(Ld,{}),tokens:["colorIcon","colorIconHover","colorBgElevated"],key:"default"},{_InternalPanelDoNotUseOrYouWillBeFired:Od}=i.notification,Fd=()=>o.jsx(Od,{message:"Notification Title",type:"success",description:"This is the content of the notification. This is the content of the notification. This is the content of the notification."}),Tn={demo:o.jsx(Fd,{}),tokens:["colorSuccess"],key:"success"},{_InternalPanelDoNotUseOrYouWillBeFired:_d}=i.notification,Wd=()=>o.jsx(_d,{message:"Notification Title",type:"warning",description:"This is the content of the notification. This is the content of the notification. This is the content of the notification."}),Bn={demo:o.jsx(Wd,{}),tokens:["colorWarning"],key:"warning"},Xd=[$d,Pd,En,Tn,Bn],Nd=()=>o.jsx(i.Pagination,{showQuickJumper:!0,defaultCurrent:2,total:10,disabled:!0}),Gd={demo:o.jsx(Nd,{}),tokens:["controlItemBgActiveDisabled","colorBgContainerDisabled","colorFillAlter"],key:"disabled"},Ud=()=>o.jsx(i.Space,{direction:"vertical",children:o.jsx(i.Pagination,{showQuickJumper:!0,pageSize:1,defaultCurrent:2,total:10})}),Dn={demo:o.jsx(Ud,{}),tokens:["colorPrimary","controlOutline","colorPrimaryHover","colorBgContainer"],key:"outline"},jd=()=>o.jsxs(i.Space,{direction:"vertical",children:[o.jsx(i.Pagination,{showQuickJumper:!0,defaultCurrent:2,total:500}),o.jsx(i.Pagination,{simple:!0})]}),Vd=[{demo:o.jsx(jd,{}),tokens:["colorPrimary","colorPrimaryHover","colorBgContainer"],key:"default"},Gd,Dn];function qd(){i.message.success("Click on Yes")}function Yd(){i.message.error("Click on No")}const Zd=()=>o.jsx("div",{children:o.jsx(i.Popconfirm._InternalPanelDoNotUseOrYouWillBeFired,{title:"Are you sure to delete this task?",onConfirm:qd,onCancel:Yd,okText:"Yes",cancelText:"No",placement:"topLeft"})}),Xr={demo:o.jsx(Zd,{}),tokens:["colorBgElevated","colorWarning"],key:"default"},Qd=[Xr],Kd=o.jsxs("div",{children:[o.jsx("p",{children:"Content"})," ",o.jsx("p",{children:"Content"})]}),Jd=()=>o.jsxs("div",{children:[o.jsx(i.Popover._InternalPanelDoNotUseOrYouWillBeFired,{content:Kd,title:"Title"}),o.jsx(i.Button,{type:"primary",children:"Hover me"})]}),Rd=[{demo:o.jsx(Jd,{}),tokens:["colorBgElevated"],key:"default"}];var Hn={exports:{}},Q={};/** @license React v16.13.1
|
|
15
|
-
* react-is.production.min.js
|
|
16
|
-
*
|
|
17
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the MIT license found in the
|
|
20
|
-
* LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/var ce=typeof Symbol=="function"&&Symbol.for,Nr=ce?Symbol.for("react.element"):60103,Gr=ce?Symbol.for("react.portal"):60106,Yo=ce?Symbol.for("react.fragment"):60107,Zo=ce?Symbol.for("react.strict_mode"):60108,Qo=ce?Symbol.for("react.profiler"):60114,Ko=ce?Symbol.for("react.provider"):60109,Jo=ce?Symbol.for("react.context"):60110,Ur=ce?Symbol.for("react.async_mode"):60111,Ro=ce?Symbol.for("react.concurrent_mode"):60111,er=ce?Symbol.for("react.forward_ref"):60112,or=ce?Symbol.for("react.suspense"):60113,ep=ce?Symbol.for("react.suspense_list"):60120,rr=ce?Symbol.for("react.memo"):60115,tr=ce?Symbol.for("react.lazy"):60116,op=ce?Symbol.for("react.block"):60121,rp=ce?Symbol.for("react.fundamental"):60117,tp=ce?Symbol.for("react.responder"):60118,np=ce?Symbol.for("react.scope"):60119;function Ce(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case Nr:switch(e=e.type,e){case Ur:case Ro:case Yo:case Qo:case Zo:case or:return e;default:switch(e=e&&e.$$typeof,e){case Jo:case er:case tr:case rr:case Ko:return e;default:return r}}case Gr:return r}}}function An(e){return Ce(e)===Ro}Q.AsyncMode=Ur,Q.ConcurrentMode=Ro,Q.ContextConsumer=Jo,Q.ContextProvider=Ko,Q.Element=Nr,Q.ForwardRef=er,Q.Fragment=Yo,Q.Lazy=tr,Q.Memo=rr,Q.Portal=Gr,Q.Profiler=Qo,Q.StrictMode=Zo,Q.Suspense=or,Q.isAsyncMode=function(e){return An(e)||Ce(e)===Ur},Q.isConcurrentMode=An,Q.isContextConsumer=function(e){return Ce(e)===Jo},Q.isContextProvider=function(e){return Ce(e)===Ko},Q.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nr},Q.isForwardRef=function(e){return Ce(e)===er},Q.isFragment=function(e){return Ce(e)===Yo},Q.isLazy=function(e){return Ce(e)===tr},Q.isMemo=function(e){return Ce(e)===rr},Q.isPortal=function(e){return Ce(e)===Gr},Q.isProfiler=function(e){return Ce(e)===Qo},Q.isStrictMode=function(e){return Ce(e)===Zo},Q.isSuspense=function(e){return Ce(e)===or},Q.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yo||e===Ro||e===Qo||e===Zo||e===or||e===ep||typeof e=="object"&&e!==null&&(e.$$typeof===tr||e.$$typeof===rr||e.$$typeof===Ko||e.$$typeof===Jo||e.$$typeof===er||e.$$typeof===rp||e.$$typeof===tp||e.$$typeof===np||e.$$typeof===op)},Q.typeOf=Ce,Hn.exports=Q;var jr=Hn.exports;function ap(e){function r(A,B,M,O,v){for(var q=0,w=0,te=0,Y=0,R,F,ge=0,xe=0,V,me=V=R=0,Z=0,ue=0,Xo=0,he=0,Tr=M.length,No=Tr-1,Ie,$="",ae="",Kt="",Jt="",Ke;Z<Tr;){if(F=M.charCodeAt(Z),Z===No&&w+Y+te+q!==0&&(w!==0&&(F=w===47?10:47),Y=te=q=0,Tr++,No++),w+Y+te+q===0){if(Z===No&&(0<ue&&($=$.replace(f,"")),0<$.trim().length)){switch(F){case 32:case 9:case 59:case 13:case 10:break;default:$+=M.charAt(Z)}F=59}switch(F){case 123:for($=$.trim(),R=$.charCodeAt(0),V=1,he=++Z;Z<Tr;){switch(F=M.charCodeAt(Z)){case 123:V++;break;case 125:V--;break;case 47:switch(F=M.charCodeAt(Z+1)){case 42:case 47:e:{for(me=Z+1;me<No;++me)switch(M.charCodeAt(me)){case 47:if(F===42&&M.charCodeAt(me-1)===42&&Z+2!==me){Z=me+1;break e}break;case 10:if(F===47){Z=me+1;break e}}Z=me}}break;case 91:F++;case 40:F++;case 34:case 39:for(;Z++<No&&M.charCodeAt(Z)!==F;);}if(V===0)break;Z++}switch(V=M.substring(he,Z),R===0&&(R=($=$.replace(u,"").trim()).charCodeAt(0)),R){case 64:switch(0<ue&&($=$.replace(f,"")),F=$.charCodeAt(1),F){case 100:case 109:case 115:case 45:ue=B;break;default:ue=Ze}if(V=r(B,ue,V,F,v+1),he=V.length,0<ve&&(ue=t(Ze,$,Xo),Ke=s(3,V,ue,B,J,N,he,F,v,O),$=ue.join(""),Ke!==void 0&&(he=(V=Ke.trim()).length)===0&&(F=0,V="")),0<he)switch(F){case 115:$=$.replace(G,c);case 100:case 109:case 45:V=$+"{"+V+"}";break;case 107:$=$.replace(b,"$1 $2"),V=$+"{"+V+"}",V=pe===1||pe===2&&l("@"+V,3)?"@-webkit-"+V+"@"+V:"@"+V;break;default:V=$+V,O===112&&(V=(ae+=V,""))}else V="";break;default:V=r(B,t(B,$,Xo),V,O,v+1)}Kt+=V,V=Xo=ue=me=R=0,$="",F=M.charCodeAt(++Z);break;case 125:case 59:if($=(0<ue?$.replace(f,""):$).trim(),1<(he=$.length))switch(me===0&&(R=$.charCodeAt(0),R===45||96<R&&123>R)&&(he=($=$.replace(" ",":")).length),0<ve&&(Ke=s(1,$,B,A,J,N,ae.length,O,v,O))!==void 0&&(he=($=Ke.trim()).length)===0&&($="\0\0"),R=$.charCodeAt(0),F=$.charCodeAt(1),R){case 0:break;case 64:if(F===105||F===99){Jt+=$+M.charAt(Z);break}default:$.charCodeAt(he-1)!==58&&(ae+=a($,R,F,$.charCodeAt(2)))}Xo=ue=me=R=0,$="",F=M.charCodeAt(++Z)}}switch(F){case 13:case 10:w===47?w=0:1+R===0&&O!==107&&0<$.length&&(ue=1,$+="\0"),0<ve*re&&s(0,$,B,A,J,N,ae.length,O,v,O),N=1,J++;break;case 59:case 125:if(w+Y+te+q===0){N++;break}default:switch(N++,Ie=M.charAt(Z),F){case 9:case 32:if(Y+q+w===0)switch(ge){case 44:case 58:case 9:case 32:Ie="";break;default:F!==32&&(Ie=" ")}break;case 0:Ie="\\0";break;case 12:Ie="\\f";break;case 11:Ie="\\v";break;case 38:Y+w+q===0&&(ue=Xo=1,Ie="\f"+Ie);break;case 108:if(Y+w+q+fe===0&&0<me)switch(Z-me){case 2:ge===112&&M.charCodeAt(Z-3)===58&&(fe=ge);case 8:xe===111&&(fe=xe)}break;case 58:Y+w+q===0&&(me=Z);break;case 44:w+te+Y+q===0&&(ue=1,Ie+="\r");break;case 34:case 39:w===0&&(Y=Y===F?0:Y===0?F:Y);break;case 91:Y+w+te===0&&q++;break;case 93:Y+w+te===0&&q--;break;case 41:Y+w+q===0&&te--;break;case 40:if(Y+w+q===0){if(R===0)switch(2*ge+3*xe){case 533:break;default:R=1}te++}break;case 64:w+te+Y+q+me+V===0&&(V=1);break;case 42:case 47:if(!(0<Y+q+te))switch(w){case 0:switch(2*F+3*M.charCodeAt(Z+1)){case 235:w=47;break;case 220:he=Z,w=42}break;case 42:F===47&&ge===42&&he+2!==Z&&(M.charCodeAt(he+2)===33&&(ae+=M.substring(he,Z+1)),Ie="",w=0)}}w===0&&($+=Ie)}xe=ge,ge=F,Z++}if(he=ae.length,0<he){if(ue=B,0<ve&&(Ke=s(2,ae,ue,A,J,N,he,O,v,O),Ke!==void 0&&(ae=Ke).length===0))return Jt+ae+Kt;if(ae=ue.join(",")+"{"+ae+"}",pe*fe!==0){switch(pe!==2||l(ae,2)||(fe=0),fe){case 111:ae=ae.replace(k,":-moz-$1")+ae;break;case 112:ae=ae.replace(H,"::-webkit-input-$1")+ae.replace(H,"::-moz-$1")+ae.replace(H,":-ms-input-$1")+ae}fe=0}}return Jt+ae+Kt}function t(A,B,M){var O=B.trim().split(m);B=O;var v=O.length,q=A.length;switch(q){case 0:case 1:var w=0;for(A=q===0?"":A[0]+" ";w<v;++w)B[w]=n(A,B[w],M).trim();break;default:var te=w=0;for(B=[];w<v;++w)for(var Y=0;Y<q;++Y)B[te++]=n(A[Y]+" ",O[w],M).trim()}return B}function n(A,B,M){var O=B.charCodeAt(0);switch(33>O&&(O=(B=B.trim()).charCodeAt(0)),O){case 38:return B.replace(S,"$1"+A.trim());case 58:return A.trim()+B.replace(S,"$1"+A.trim());default:if(0<1*M&&0<B.indexOf("\f"))return B.replace(S,(A.charCodeAt(0)===58?"":"$1")+A.trim())}return A+B}function a(A,B,M,O){var v=A+";",q=2*B+3*M+4*O;if(q===944){A=v.indexOf(":",9)+1;var w=v.substring(A,v.length-1).trim();return w=v.substring(0,A).trim()+w+";",pe===1||pe===2&&l(w,1)?"-webkit-"+w+w:w}if(pe===0||pe===2&&!l(v,1))return v;switch(q){case 1015:return v.charCodeAt(10)===97?"-webkit-"+v+v:v;case 951:return v.charCodeAt(3)===116?"-webkit-"+v+v:v;case 963:return v.charCodeAt(5)===110?"-webkit-"+v+v:v;case 1009:if(v.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+v+v;case 978:return"-webkit-"+v+"-moz-"+v+v;case 1019:case 983:return"-webkit-"+v+"-moz-"+v+"-ms-"+v+v;case 883:if(v.charCodeAt(8)===45)return"-webkit-"+v+v;if(0<v.indexOf("image-set(",11))return v.replace(U,"$1-webkit-$2")+v;break;case 932:if(v.charCodeAt(4)===45)switch(v.charCodeAt(5)){case 103:return"-webkit-box-"+v.replace("-grow","")+"-webkit-"+v+"-ms-"+v.replace("grow","positive")+v;case 115:return"-webkit-"+v+"-ms-"+v.replace("shrink","negative")+v;case 98:return"-webkit-"+v+"-ms-"+v.replace("basis","preferred-size")+v}return"-webkit-"+v+"-ms-"+v+v;case 964:return"-webkit-"+v+"-ms-flex-"+v+v;case 1023:if(v.charCodeAt(8)!==99)break;return w=v.substring(v.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+w+"-webkit-"+v+"-ms-flex-pack"+w+v;case 1005:return x.test(v)?v.replace(C,":-webkit-")+v.replace(C,":-moz-")+v:v;case 1e3:switch(w=v.substring(13).trim(),B=w.indexOf("-")+1,w.charCodeAt(0)+w.charCodeAt(B)){case 226:w=v.replace(L,"tb");break;case 232:w=v.replace(L,"tb-rl");break;case 220:w=v.replace(L,"lr");break;default:return v}return"-webkit-"+v+"-ms-"+w+v;case 1017:if(v.indexOf("sticky",9)===-1)break;case 975:switch(B=(v=A).length-10,w=(v.charCodeAt(B)===33?v.substring(0,B):v).substring(A.indexOf(":",7)+1).trim(),q=w.charCodeAt(0)+(w.charCodeAt(7)|0)){case 203:if(111>w.charCodeAt(8))break;case 115:v=v.replace(w,"-webkit-"+w)+";"+v;break;case 207:case 102:v=v.replace(w,"-webkit-"+(102<q?"inline-":"")+"box")+";"+v.replace(w,"-webkit-"+w)+";"+v.replace(w,"-ms-"+w+"box")+";"+v}return v+";";case 938:if(v.charCodeAt(5)===45)switch(v.charCodeAt(6)){case 105:return w=v.replace("-items",""),"-webkit-"+v+"-webkit-box-"+w+"-ms-flex-"+w+v;case 115:return"-webkit-"+v+"-ms-flex-item-"+v.replace(K,"")+v;default:return"-webkit-"+v+"-ms-flex-line-pack"+v.replace("align-content","").replace(K,"")+v}break;case 973:case 989:if(v.charCodeAt(3)!==45||v.charCodeAt(4)===122)break;case 931:case 953:if(P.test(A)===!0)return(w=A.substring(A.indexOf(":")+1)).charCodeAt(0)===115?a(A.replace("stretch","fill-available"),B,M,O).replace(":fill-available",":stretch"):v.replace(w,"-webkit-"+w)+v.replace(w,"-moz-"+w.replace("fill-",""))+v;break;case 962:if(v="-webkit-"+v+(v.charCodeAt(5)===102?"-ms-"+v:"")+v,M+O===211&&v.charCodeAt(13)===105&&0<v.indexOf("transform",10))return v.substring(0,v.indexOf(";",27)+1).replace(y,"$1-webkit-$2")+v}return v}function l(A,B){var M=A.indexOf(B===1?":":"{"),O=A.substring(0,B!==3?M:10);return M=A.substring(M+1,A.length-1),Qe(B!==2?O:O.replace(X,"$1"),M,B)}function c(A,B){var M=a(B,B.charCodeAt(0),B.charCodeAt(1),B.charCodeAt(2));return M!==B+";"?M.replace(j," or ($1)").substring(4):"("+B+")"}function s(A,B,M,O,v,q,w,te,Y,R){for(var F=0,ge=B,xe;F<ve;++F)switch(xe=Se[F].call(g,A,ge,M,O,v,q,w,te,Y,R)){case void 0:case!1:case!0:case null:break;default:ge=xe}if(ge!==B)return ge}function d(A){switch(A){case void 0:case null:ve=Se.length=0;break;default:if(typeof A=="function")Se[ve++]=A;else if(typeof A=="object")for(var B=0,M=A.length;B<M;++B)d(A[B]);else re=!!A|0}return d}function p(A){return A=A.prefix,A!==void 0&&(Qe=null,A?typeof A!="function"?pe=1:(pe=2,Qe=A):pe=0),p}function g(A,B){var M=A;if(33>M.charCodeAt(0)&&(M=M.trim()),ye=M,M=[ye],0<ve){var O=s(-1,B,M,M,J,N,0,0,0,0);O!==void 0&&typeof O=="string"&&(B=O)}var v=r(Ze,M,B,0,0);return 0<ve&&(O=s(-2,v,M,M,J,N,v.length,0,0,0),O!==void 0&&(v=O)),ye="",fe=0,N=J=1,v}var u=/^\0+/g,f=/[\0\r\f]/g,C=/: */g,x=/zoo|gra/,y=/([,: ])(transform)/g,m=/,\r+?/g,S=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,H=/::(place)/g,k=/:(read-only)/g,L=/[svh]\w+-[tblr]{2}/,G=/\(\s*(.*)\s*\)/g,j=/([\s\S]*?);/g,K=/-self|flex-/g,X=/[^]*?(:[rp][el]a[\w-]+)[^]*/,P=/stretch|:\s*\w+\-(?:conte|avail)/,U=/([^-])(image-set\()/,N=1,J=1,fe=0,pe=1,Ze=[],Se=[],ve=0,Qe=null,re=0,ye="";return g.use=d,g.set=p,e!==void 0&&p(e),g}var ip={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function lp(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var cp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Mn=lp(function(e){return cp.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Vr=jr,sp={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},dp={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},pp={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},In={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qr={};qr[Vr.ForwardRef]=pp,qr[Vr.Memo]=In;function Pn(e){return Vr.isMemo(e)?In:qr[e.$$typeof]||sp}var gp=Object.defineProperty,up=Object.getOwnPropertyNames,zn=Object.getOwnPropertySymbols,hp=Object.getOwnPropertyDescriptor,fp=Object.getPrototypeOf,Ln=Object.prototype;function $n(e,r,t){if(typeof r!="string"){if(Ln){var n=fp(r);n&&n!==Ln&&$n(e,n,t)}var a=up(r);zn&&(a=a.concat(zn(r)));for(var l=Pn(e),c=Pn(r),s=0;s<a.length;++s){var d=a[s];if(!dp[d]&&!(t&&t[d])&&!(c&&c[d])&&!(l&&l[d])){var p=hp(r,d);try{gp(e,d,p)}catch(g){}}}}return e}var mp=$n;const vp=Vo(mp);function $e(){return($e=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var On=function(e,r){for(var t=[e[0]],n=0,a=r.length;n<a;n+=1)t.push(r[n],e[n+1]);return t},Yr=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!jr.typeOf(e)},nr=Object.freeze([]),Ge=Object.freeze({});function yo(e){return typeof e=="function"}function Fn(e){return e.displayName||e.name||"Component"}function Zr(e){return e&&typeof e.styledComponentId=="string"}var to=typeof process!="undefined"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Qr=typeof window!="undefined"&&"HTMLElement"in window,yp=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process!="undefined"&&process.env!==void 0&&(process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY));function bo(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(t.length>0?" Args: "+t.join(", "):""))}var bp=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var r=e.prototype;return r.indexOfGroup=function(t){for(var n=0,a=0;a<t;a++)n+=this.groupSizes[a];return n},r.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var a=this.groupSizes,l=a.length,c=l;t>=c;)(c<<=1)<0&&bo(16,""+t);this.groupSizes=new Uint32Array(c),this.groupSizes.set(a),this.length=c;for(var s=l;s<c;s++)this.groupSizes[s]=0}for(var d=this.indexOfGroup(t+1),p=0,g=n.length;p<g;p++)this.tag.insertRule(d,n[p])&&(this.groupSizes[t]++,d++)},r.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],a=this.indexOfGroup(t),l=a+n;this.groupSizes[t]=0;for(var c=a;c<l;c++)this.tag.deleteRule(a)}},r.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var a=this.groupSizes[t],l=this.indexOfGroup(t),c=l+a,s=l;s<c;s++)n+=this.tag.getRule(s)+`/*!sc*/
|
|
22
|
-
`;return n},e}(),ar=new Map,ir=new Map,So=1,lr=function(e){if(ar.has(e))return ar.get(e);for(;ir.has(So);)So++;var r=So++;return ar.set(e,r),ir.set(r,e),r},Sp=function(e){return ir.get(e)},xp=function(e,r){r>=So&&(So=r+1),ar.set(e,r),ir.set(r,e)},Cp="style["+to+'][data-styled-version="5.3.11"]',kp=new RegExp("^"+to+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),wp=function(e,r,t){for(var n,a=t.split(","),l=0,c=a.length;l<c;l++)(n=a[l])&&e.registerName(r,n)},Ep=function(e,r){for(var t=(r.textContent||"").split(`/*!sc*/
|
|
23
|
-
`),n=[],a=0,l=t.length;a<l;a++){var c=t[a].trim();if(c){var s=c.match(kp);if(s){var d=0|parseInt(s[1],10),p=s[2];d!==0&&(xp(p,d),wp(e,p,s[3]),e.getTag().insertRules(d,n)),n.length=0}else n.push(c)}}},Tp=function(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:null},_n=function(e){var r=document.head,t=e||r,n=document.createElement("style"),a=function(s){for(var d=s.childNodes,p=d.length;p>=0;p--){var g=d[p];if(g&&g.nodeType===1&&g.hasAttribute(to))return g}}(t),l=a!==void 0?a.nextSibling:null;n.setAttribute(to,"active"),n.setAttribute("data-styled-version","5.3.11");var c=Tp();return c&&n.setAttribute("nonce",c),t.insertBefore(n,l),n},Bp=function(){function e(t){var n=this.element=_n(t);n.appendChild(document.createTextNode("")),this.sheet=function(a){if(a.sheet)return a.sheet;for(var l=document.styleSheets,c=0,s=l.length;c<s;c++){var d=l[c];if(d.ownerNode===a)return d}bo(17)}(n),this.length=0}var r=e.prototype;return r.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch(a){return!1}},r.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},r.getRule=function(t){var n=this.sheet.cssRules[t];return n!==void 0&&typeof n.cssText=="string"?n.cssText:""},e}(),Dp=function(){function e(t){var n=this.element=_n(t);this.nodes=n.childNodes,this.length=0}var r=e.prototype;return r.insertRule=function(t,n){if(t<=this.length&&t>=0){var a=document.createTextNode(n),l=this.nodes[t];return this.element.insertBefore(a,l||null),this.length++,!0}return!1},r.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},r.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Hp=function(){function e(t){this.rules=[],this.length=0}var r=e.prototype;return r.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},r.deleteRule=function(t){this.rules.splice(t,1),this.length--},r.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Wn=Qr,Ap={isServer:!Qr,useCSSOMInjection:!yp},Xn=function(){function e(t,n,a){t===void 0&&(t=Ge),n===void 0&&(n={}),this.options=$e({},Ap,{},t),this.gs=n,this.names=new Map(a),this.server=!!t.isServer,!this.server&&Qr&&Wn&&(Wn=!1,function(l){for(var c=document.querySelectorAll(Cp),s=0,d=c.length;s<d;s++){var p=c[s];p&&p.getAttribute(to)!=="active"&&(Ep(l,p),p.parentNode&&p.parentNode.removeChild(p))}}(this))}e.registerId=function(t){return lr(t)};var r=e.prototype;return r.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e($e({},this.options,{},t),this.gs,n&&this.names||void 0)},r.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},r.getTag=function(){return this.tag||(this.tag=(a=(n=this.options).isServer,l=n.useCSSOMInjection,c=n.target,t=a?new Hp(c):l?new Bp(c):new Dp(c),new bp(t)));var t,n,a,l,c},r.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},r.registerName=function(t,n){if(lr(t),this.names.has(t))this.names.get(t).add(n);else{var a=new Set;a.add(n),this.names.set(t,a)}},r.insertRules=function(t,n,a){this.registerName(t,n),this.getTag().insertRules(lr(t),a)},r.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},r.clearRules=function(t){this.getTag().clearGroup(lr(t)),this.clearNames(t)},r.clearTag=function(){this.tag=void 0},r.toString=function(){return function(t){for(var n=t.getTag(),a=n.length,l="",c=0;c<a;c++){var s=Sp(c);if(s!==void 0){var d=t.names.get(s),p=n.getGroup(c);if(d&&p&&d.size){var g=to+".g"+c+'[id="'+s+'"]',u="";d!==void 0&&d.forEach(function(f){f.length>0&&(u+=f+",")}),l+=""+p+g+'{content:"'+u+`"}/*!sc*/
|
|
24
|
-
`}}}return l}(this)},e}(),Mp=/(a)(d)/gi,Nn=function(e){return String.fromCharCode(e+(e>25?39:97))};function Kr(e){var r,t="";for(r=Math.abs(e);r>52;r=r/52|0)t=Nn(r%52)+t;return(Nn(r%52)+t).replace(Mp,"$1-$2")}var no=function(e,r){for(var t=r.length;t;)e=33*e^r.charCodeAt(--t);return e},Gn=function(e){return no(5381,e)};function Ip(e){for(var r=0;r<e.length;r+=1){var t=e[r];if(yo(t)&&!Zr(t))return!1}return!0}var Pp=Gn("5.3.11"),zp=function(){function e(r,t,n){this.rules=r,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&Ip(r),this.componentId=t,this.baseHash=no(Pp,t),this.baseStyle=n,Xn.registerId(t)}return e.prototype.generateAndInjectStyles=function(r,t,n){var a=this.componentId,l=[];if(this.baseStyle&&l.push(this.baseStyle.generateAndInjectStyles(r,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(a,this.staticRulesId))l.push(this.staticRulesId);else{var c=ao(this.rules,r,t,n).join(""),s=Kr(no(this.baseHash,c)>>>0);if(!t.hasNameForId(a,s)){var d=n(c,"."+s,void 0,a);t.insertRules(a,s,d)}l.push(s),this.staticRulesId=s}else{for(var p=this.rules.length,g=no(this.baseHash,n.hash),u="",f=0;f<p;f++){var C=this.rules[f];if(typeof C=="string")u+=C;else if(C){var x=ao(C,r,t,n),y=Array.isArray(x)?x.join(""):x;g=no(g,y+f),u+=y}}if(u){var m=Kr(g>>>0);if(!t.hasNameForId(a,m)){var S=n(u,"."+m,void 0,a);t.insertRules(a,m,S)}l.push(m)}}return l.join(" ")},e}(),Lp=/^\s*\/\/.*$/gm,$p=[":","[",".","#"];function Op(e){var r,t,n,a,l=Ge,c=l.options,s=c===void 0?Ge:c,d=l.plugins,p=d===void 0?nr:d,g=new ap(s),u=[],f=function(y){function m(S){if(S)try{y(S+"}")}catch(b){}}return function(S,b,H,k,L,G,j,K,X,P){switch(S){case 1:if(X===0&&b.charCodeAt(0)===64)return y(b+";"),"";break;case 2:if(K===0)return b+"/*|*/";break;case 3:switch(K){case 102:case 112:return y(H[0]+b),"";default:return b+(P===0?"/*|*/":"")}case-2:b.split("/*|*/}").forEach(m)}}}(function(y){u.push(y)}),C=function(y,m,S){return m===0&&$p.indexOf(S[t.length])!==-1||S.match(a)?y:"."+r};function x(y,m,S,b){b===void 0&&(b="&");var H=y.replace(Lp,""),k=m&&S?S+" "+m+" { "+H+" }":H;return r=b,t=m,n=new RegExp("\\"+t+"\\b","g"),a=new RegExp("(\\"+t+"\\b){2,}"),g(S||!m?"":m,k)}return g.use([].concat(p,[function(y,m,S){y===2&&S.length&&S[0].lastIndexOf(t)>0&&(S[0]=S[0].replace(n,C))},f,function(y){if(y===-2){var m=u;return u=[],m}}])),x.hash=p.length?p.reduce(function(y,m){return m.name||bo(15),no(y,m.name)},5381).toString():"",x}var Un=h.createContext();Un.Consumer;var jn=h.createContext(),Fp=(jn.Consumer,new Xn),Jr=Op();function _p(){return h.useContext(Un)||Fp}function Wp(){return h.useContext(jn)||Jr}var Xp=function(){function e(r,t){var n=this;this.inject=function(a,l){l===void 0&&(l=Jr);var c=n.name+l.hash;a.hasNameForId(n.id,c)||a.insertRules(n.id,c,l(n.rules,c,"@keyframes"))},this.toString=function(){return bo(12,String(n.name))},this.name=r,this.id="sc-keyframes-"+r,this.rules=t}return e.prototype.getName=function(r){return r===void 0&&(r=Jr),this.name+r.hash},e}(),Np=/([A-Z])/,Gp=/([A-Z])/g,Up=/^ms-/,jp=function(e){return"-"+e.toLowerCase()};function Vn(e){return Np.test(e)?e.replace(Gp,jp).replace(Up,"-ms-"):e}var qn=function(e){return e==null||e===!1||e===""};function ao(e,r,t,n){if(Array.isArray(e)){for(var a,l=[],c=0,s=e.length;c<s;c+=1)(a=ao(e[c],r,t,n))!==""&&(Array.isArray(a)?l.push.apply(l,a):l.push(a));return l}if(qn(e))return"";if(Zr(e))return"."+e.styledComponentId;if(yo(e)){if(typeof(p=e)!="function"||p.prototype&&p.prototype.isReactComponent||!r)return e;var d=e(r);return ao(d,r,t,n)}var p;return e instanceof Xp?t?(e.inject(t,n),e.getName(n)):e:Yr(e)?function g(u,f){var C,x,y=[];for(var m in u)u.hasOwnProperty(m)&&!qn(u[m])&&(Array.isArray(u[m])&&u[m].isCss||yo(u[m])?y.push(Vn(m)+":",u[m],";"):Yr(u[m])?y.push.apply(y,g(u[m],m)):y.push(Vn(m)+": "+(C=m,(x=u[m])==null||typeof x=="boolean"||x===""?"":typeof x!="number"||x===0||C in ip||C.startsWith("--")?String(x).trim():x+"px")+";"));return f?[f+" {"].concat(y,["}"]):y}(e):e.toString()}var Yn=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Vp(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return yo(e)||Yr(e)?Yn(ao(On(nr,[e].concat(t)))):t.length===0&&e.length===1&&typeof e[0]=="string"?e:Yn(ao(On(e,t)))}var qp=function(e,r,t){return t===void 0&&(t=Ge),e.theme!==t.theme&&e.theme||r||t.theme},Yp=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Zp=/(^-|-$)/g;function Rr(e){return e.replace(Yp,"-").replace(Zp,"")}var Qp=function(e){return Kr(Gn(e)>>>0)};function cr(e){return typeof e=="string"&&!0}var et=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},Kp=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function Jp(e,r,t){var n=e[t];et(r)&&et(n)?Zn(n,r):e[t]=r}function Zn(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];for(var a=0,l=t;a<l.length;a++){var c=l[a];if(et(c))for(var s in c)Kp(s)&&Jp(e,c[s],s)}return e}var Qn=h.createContext();Qn.Consumer;var ot={};function Kn(e,r,t){var n=Zr(e),a=!cr(e),l=r.attrs,c=l===void 0?nr:l,s=r.componentId,d=s===void 0?function(b,H){var k=typeof b!="string"?"sc":Rr(b);ot[k]=(ot[k]||0)+1;var L=k+"-"+Qp("5.3.11"+k+ot[k]);return H?H+"-"+L:L}(r.displayName,r.parentComponentId):s,p=r.displayName,g=p===void 0?function(b){return cr(b)?"styled."+b:"Styled("+Fn(b)+")"}(e):p,u=r.displayName&&r.componentId?Rr(r.displayName)+"-"+r.componentId:r.componentId||d,f=n&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,C=r.shouldForwardProp;n&&e.shouldForwardProp&&(C=r.shouldForwardProp?function(b,H,k){return e.shouldForwardProp(b,H,k)&&r.shouldForwardProp(b,H,k)}:e.shouldForwardProp);var x,y=new zp(t,u,n?e.componentStyle:void 0),m=y.isStatic&&c.length===0,S=function(b,H){return function(k,L,G,j){var K=k.attrs,X=k.componentStyle,P=k.defaultProps,U=k.foldedComponentIds,N=k.shouldForwardProp,J=k.styledComponentId,fe=k.target,pe=function(O,v,q){O===void 0&&(O=Ge);var w=$e({},v,{theme:O}),te={};return q.forEach(function(Y){var R,F,ge,xe=Y;for(R in yo(xe)&&(xe=xe(w)),xe)w[R]=te[R]=R==="className"?(F=te[R],ge=xe[R],F&&ge?F+" "+ge:F||ge):xe[R]}),[w,te]}(qp(L,h.useContext(Qn),P)||Ge,L,K),Ze=pe[0],Se=pe[1],ve=function(O,v,q,w){var te=_p(),Y=Wp(),R=v?O.generateAndInjectStyles(Ge,te,Y):O.generateAndInjectStyles(q,te,Y);return R}(X,j,Ze),Qe=G,re=Se.$as||L.$as||Se.as||L.as||fe,ye=cr(re),A=Se!==L?$e({},L,{},Se):L,B={};for(var M in A)M[0]!=="$"&&M!=="as"&&(M==="forwardedAs"?B.as=A[M]:(N?N(M,Mn,re):!ye||Mn(M))&&(B[M]=A[M]));return L.style&&Se.style!==L.style&&(B.style=$e({},L.style,{},Se.style)),B.className=Array.prototype.concat(U,J,ve!==J?ve:null,L.className,Se.className).filter(Boolean).join(" "),B.ref=Qe,h.createElement(re,B)}(x,b,H,m)};return S.displayName=g,(x=h.forwardRef(S)).attrs=f,x.componentStyle=y,x.displayName=g,x.shouldForwardProp=C,x.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):nr,x.styledComponentId=u,x.target=n?e.target:e,x.withComponent=function(b){var H=r.componentId,k=function(G,j){if(G==null)return{};var K,X,P={},U=Object.keys(G);for(X=0;X<U.length;X++)K=U[X],j.indexOf(K)>=0||(P[K]=G[K]);return P}(r,["componentId"]),L=H&&H+"-"+(cr(b)?b:Rr(Fn(b)));return Kn(b,$e({},k,{attrs:f,componentId:L}),t)},Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=n?Zn({},e.defaultProps,b):b}}),Object.defineProperty(x,"toString",{value:function(){return"."+x.styledComponentId}}),a&&vp(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),x}var rt=function(e){return function r(t,n,a){if(a===void 0&&(a=Ge),!jr.isValidElementType(n))return bo(1,String(n));var l=function(){return t(n,a,Vp.apply(void 0,arguments))};return l.withConfig=function(c){return r(t,n,$e({},a,{},c))},l.attrs=function(c){return r(t,n,$e({},a,{attrs:Array.prototype.concat(a.attrs,c).filter(Boolean)}))},l}(Kn,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){rt[e]=rt(e)});var tt=function(r,t){if(t)return"row";switch(r){case"horizontal":return"row";case"horizontal-reverse":return"row-reverse";case"vertical":default:return"column";case"vertical-reverse":return"column-reverse"}},Jn=function(r,t){return tt(r,t)==="row"},Rp=function(r,t){return tt(r,t)==="column"},xo=function(r){return typeof r=="number"?"".concat(r,"px"):r},Rn;function eg(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var ne=rt.div.attrs(function(){return{className:"layoutkit-flexbox"}})(Rn||(Rn=eg([`
|
|
25
|
-
// 是否显示
|
|
26
|
-
display: `,`;
|
|
27
|
-
|
|
28
|
-
flex: `,`;
|
|
29
|
-
|
|
30
|
-
flex-direction: `,`;
|
|
31
|
-
justify-content: `,`;
|
|
32
|
-
align-items: `,`;
|
|
33
|
-
|
|
34
|
-
width: `,`;
|
|
35
|
-
height: `,`;
|
|
36
|
-
|
|
37
|
-
padding: `,`;
|
|
38
|
-
|
|
39
|
-
> *:not(:last-child) {
|
|
40
|
-
margin-right: `,`;
|
|
41
|
-
margin-bottom: `,`;
|
|
42
|
-
}
|
|
43
|
-
`])),function(e){return e.hidden?"none":"flex"},function(e){return e.flex},function(e){return tt(e.direction,e.horizontal)},function(e){return e.distribution},function(e){return e.align},function(e){return Jn(e.direction,e.horizontal)&&!e.width&&["space-between","space-around","space-evenly"].includes(e.distribution)?"100%":xo(e.width)},function(e){return xo(e.height)},function(e){return xo(e.padding)},function(e){return Jn(e.direction,e.horizontal)&&xo(e.gap)},function(e){return Rp(e.direction,e.horizontal)&&xo(e.gap)});const og=()=>o.jsxs(ne,{gap:12,children:[o.jsxs(ne,{horizontal:!0,gap:24,children:[o.jsx(i.Progress,{percent:70,status:"exception",type:"dashboard"}),o.jsx(i.Progress,{percent:80,status:"exception",type:"circle"})]}),o.jsx(i.Progress,{percent:50,status:"exception"})]}),ea={demo:o.jsx(og,{}),tokens:["colorError"],key:"danger"},rg=()=>o.jsxs(o.Fragment,{children:[o.jsx(i.Progress,{percent:30}),o.jsx(i.Progress,{percent:50,status:"active"}),o.jsx(i.Progress,{percent:70,type:"dashboard"}),o.jsx(i.Progress,{percent:80,type:"circle"}),o.jsx(i.Progress,{steps:8,percent:30})]}),tg={demo:o.jsx(rg,{}),tokens:["colorInfo"],key:"info"},ng=()=>o.jsxs(o.Fragment,{children:[o.jsx(i.Progress,{percent:30}),o.jsx(i.Progress,{percent:50,status:"active"}),o.jsx(i.Progress,{percent:70,status:"exception"}),o.jsx(i.Progress,{percent:100}),o.jsx(i.Progress,{percent:50,showInfo:!1}),o.jsx(i.Progress,{steps:8})]}),ag={demo:o.jsx(ng,{}),tokens:["colorFillSecondary","colorText","colorBgContainer"],key:"default"},ig=()=>{const{token:e}=i.theme.useToken();return o.jsxs("div",{style:{padding:24,background:e.colorBgLayout},children:[o.jsx(i.Progress,{percent:30}),o.jsx(i.Progress,{percent:50,status:"active"}),o.jsx(i.Progress,{percent:70,status:"exception"}),o.jsx(i.Progress,{percent:100}),o.jsx(i.Progress,{percent:50,showInfo:!1}),o.jsx(i.Progress,{steps:8})]})},lg={demo:o.jsx(ig,{}),tokens:["colorFillSecondary","colorText","colorBgContainer"],key:"layout"},cg=()=>o.jsxs(ne,{gap:12,children:[o.jsxs(ne,{horizontal:!0,gap:24,children:[o.jsx(i.Progress,{percent:70,status:"success",type:"dashboard"}),o.jsx(i.Progress,{percent:80,status:"success",type:"circle"})]}),o.jsx(i.Progress,{percent:50,status:"success"})]}),oa={demo:o.jsx(cg,{}),tokens:["colorSuccess"],key:"success"},sg=[ag,tg,ea,oa,lg],dg=()=>o.jsxs(i.Space,{children:[o.jsxs(i.Radio.Group,{defaultValue:"a",buttonStyle:"solid",children:[o.jsx(i.Radio.Button,{value:"a",checked:!0,children:"Hangzhou"}),o.jsx(i.Radio.Button,{value:"b",children:"Shanghai"})]}),o.jsxs("div",{children:[o.jsx(i.Radio.Button,{children:"Apple"}),o.jsx(i.Radio.Button,{checked:!0,children:"Orange"})]})]}),pg={demo:o.jsx(dg,{}),tokens:["colorPrimaryActive","colorPrimaryHover"],key:"button"},gg=()=>o.jsx(i.Radio,{disabled:!0,children:"Radio"}),ug={demo:o.jsx(gg,{}),tokens:["colorBgContainerDisabled"],key:"disabled"},hg=()=>o.jsx(i.Radio,{checked:!0,children:"Radio"}),ra={demo:o.jsx(hg,{}),tokens:["colorPrimary","controlOutline","colorBgContainer"],key:"default"},fg=[ra,pg,ug],mg=()=>o.jsx(i.Rate,{}),vg=[{demo:o.jsx(mg,{}),tokens:["colorFillContent"],key:"default"}],yg=()=>o.jsx(i.Result,{status:"error",title:"Demo示意",subTitle:"status 为 error"}),bg={demo:o.jsx(yg,{}),tokens:["colorError"],key:"danger"},Sg=()=>o.jsx(i.Result,{status:"info",title:"Demo示意",subTitle:"status 为info"}),xg={demo:o.jsx(Sg,{}),tokens:["colorInfo"],key:"info"},Cg=()=>o.jsx(i.Result,{status:"success",title:"Successfully Purchased Cloud Server ECS!",subTitle:"Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait.",extra:[o.jsx(i.Button,{type:"primary",children:"Go Console"},"console"),o.jsx(i.Button,{children:"Buy Again"},"buy")]}),kg={demo:o.jsx(Cg,{}),tokens:["colorSuccess"],key:"result"},wg=()=>o.jsx(i.Result,{title:"Demo示意",subTitle:"背景色为 colorFillAlter",children:"Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait."}),Eg={demo:o.jsx(wg,{}),tokens:["colorFillAlter"],key:"resultWithDesc"},Tg=()=>o.jsx(i.Result,{status:"warning",title:"Demo示意",subTitle:"status 为warning"}),ta={demo:o.jsx(Tg,{}),tokens:["colorWarning"],key:"warning"},Bg=[kg,xg,ta,bg,Eg],Dg=()=>o.jsx(i.Segmented,{options:["Daily","Weekly","Monthly","Quarterly","Yearly"]}),Hg=[{demo:o.jsx(Dg,{}),key:"default",tokens:[]}],Co=i.Select._InternalPanelDoNotUseOrYouWillBeFired,io=[];for(let e=10;e<36;e++)io.push({value:e.toString(36)+e,label:e.toString(36)+e});const Ag=e=>{console.log(`selected ${e}`)},Mg=()=>o.jsx(Co,{mode:"multiple",allowClear:!0,style:{width:"100%"},status:"error",options:io,placeholder:"Please select",defaultValue:["a10","c12"],onChange:Ag}),Ig={demo:o.jsx(Mg,{}),tokens:["colorError","colorErrorOutline","colorErrorBorder","colorErrorHover"],key:"danger"},Pg=()=>o.jsx(Co,{mode:"multiple",allowClear:!0,style:{width:"100%"},disabled:!0,options:io,placeholder:"Please select",defaultValue:["a10","c12"]}),zg={demo:o.jsx(Pg,{}),tokens:["colorBgContainerDisabled","colorTextDisabled"],key:"disabled"},Lg=e=>{console.log(`selected ${e}`)},$g=()=>o.jsx(Co,{allowClear:!0,style:{width:"100%"},options:io,placeholder:"Please select",value:["a10","c12"],onChange:Lg}),Og={demo:o.jsx($g,{}),tokens:["colorIcon","colorIconHover"],key:"icon"},{Option:Re,_InternalPanelDoNotUseOrYouWillBeFired:sr}=i.Select;function Fg(){}const _g=()=>o.jsxs(i.Space,{align:"start",children:[o.jsxs(sr,{defaultValue:"lucy",style:{width:120},onChange:Fg,children:[o.jsx(Re,{value:"jack",children:"Jack"})," ",o.jsx(Re,{value:"lucy",children:"Lucy"}),o.jsx(Re,{value:"disabled",disabled:!0,children:"Disabled"}),o.jsx(Re,{value:"Yiminghe",children:"yiminghe"})]}),o.jsx(sr,{defaultValue:"lucy",style:{width:120},disabled:!0,children:o.jsx(Re,{value:"lucy",children:"Lucy"})}),o.jsx(sr,{defaultValue:"lucy",style:{width:120},loading:!0,children:o.jsx(Re,{value:"lucy",children:"Lucy"})}),o.jsx(sr,{defaultValue:"lucy",style:{width:120},allowClear:!0,children:o.jsx(Re,{value:"lucy",children:"Lucy"})})]}),Wg={demo:o.jsx(_g,{}),tokens:["controlOutline","colorPrimary","colorPrimaryHover","colorText","colorBgElevated","colorBgContainer"],key:"select"},Xg=e=>{console.log(`selected ${e}`)},Ng=()=>o.jsx(Co,{mode:"multiple",allowClear:!0,style:{width:"100%"},options:io,listHeight:200,placeholder:"Please select",defaultValue:["a10","c12","e14"],onChange:Xg}),Gg={demo:o.jsx(Ng,{}),tokens:["colorPrimary","colorFillSecondary"],key:"selectTag"},Ug=e=>{console.log(`selected ${e}`)},jg=()=>o.jsx(Co,{mode:"multiple",allowClear:!0,style:{width:"100%"},status:"warning",options:io,placeholder:"Please select",defaultValue:["a10","c12"],onChange:Ug}),Vg=[Wg,Gg,Ig,{demo:o.jsx(jg,{}),tokens:["colorWarningHover","colorWarningOutline"],key:"warning"},Og,zg],qg=()=>o.jsx(i.Skeleton,{active:!0}),Yg=[{demo:o.jsx(qg,{}),tokens:["colorFillContent","colorTextPlaceholder"],key:"default"}],Zg=()=>o.jsxs(o.Fragment,{children:[o.jsx(i.Slider,{defaultValue:30}),o.jsx(i.Slider,{range:!0,defaultValue:[20,50]})]}),Qg={demo:o.jsx(Zg,{}),tokens:["colorFillSecondary","colorFillContentHover","colorBgContainer","colorPrimary","colorPrimaryHover","colorPrimaryBorderHover","colorPrimaryBorder"],key:"default"},Kg=()=>{const{token:e}=i.theme.useToken();return o.jsxs("div",{style:{padding:12,background:e.colorFillSecondary},children:[o.jsx(i.Slider,{defaultValue:30}),o.jsx(i.Slider,{range:!0,defaultValue:[20,50]})]})},Jg=[Qg,{demo:o.jsx(Kg,{}),tokens:["colorFillSecondary","colorFillContentHover","colorBgContainer","colorPrimary","colorPrimaryHover","colorPrimaryBorderHover","colorPrimaryBorder"],key:"sliderInBg"}],Rg=()=>o.jsxs(i.Space,{children:["Space",o.jsx(i.Button,{type:"primary",children:"Button"}),o.jsx(i.Upload,{children:o.jsxs(i.Button,{children:[o.jsx(D.UploadOutlined,{})," Click to Upload"]})}),o.jsx(i.Popconfirm,{title:"Are you sure delete this task?",okText:"Yes",cancelText:"No",children:o.jsx(i.Button,{children:"Confirm"})})]}),eu=[{demo:o.jsx(Rg,{}),key:"default"}],ou=()=>o.jsx(i.Spin,{}),ru=[{demo:o.jsx(ou,{}),tokens:["colorPrimary","colorBgContainer"],key:"default"}],tu=()=>o.jsxs(i.Row,{gutter:16,children:[o.jsx(i.Col,{span:12,children:o.jsx(i.Statistic,{title:"Active Users",value:112893})}),o.jsxs(i.Col,{span:12,children:[o.jsx(i.Statistic,{title:"Account Balance (CNY)",value:112893,precision:2}),o.jsx(i.Button,{style:{marginTop:16},type:"primary",children:"Recharge"})]}),o.jsx(i.Col,{span:12,children:o.jsx(i.Statistic,{title:"Active Users",value:112893,loading:!0})})]}),nu=[{demo:o.jsx(tu,{}),tokens:["colorPrimary"],key:"default"}],{Step:na}=i.Steps,au=()=>o.jsxs(i.Steps,{current:1,children:[o.jsx(na,{title:"Error",status:"error",description:"This is a description."}),o.jsx(na,{status:"error",title:"In Progress",subTitle:"Left 00:00:08",description:"This is a description."})]}),iu={demo:o.jsx(au,{}),tokens:["colorError"],key:"danger"},{Step:nt}=i.Steps,lu=()=>o.jsxs(i.Steps,{current:1,children:[o.jsx(nt,{title:"Finished",description:"This is a description."}),o.jsx(nt,{title:"In Progress",subTitle:"Left 00:00:08",description:"This is a description."}),o.jsx(nt,{title:"Waiting",description:"This is a description."})]}),aa={demo:o.jsx(lu,{}),tokens:["colorPrimary","colorBgContainer"],key:"default"},cu=[aa,iu];function su(){}const du=()=>o.jsx(i.Switch,{defaultChecked:!0,onChange:su}),pu=[{demo:o.jsx(du,{}),tokens:["colorPrimary","controlOutline","colorBgContainer"],key:"default"}],gu=[{title:"Name",dataIndex:"name",filters:[{text:"Joe",value:"Joe"},{text:"Jim",value:"Jim"},{text:"Submenu",value:"Submenu",children:[{text:"Green",value:"Green"},{text:"Black",value:"Black"}]}],onFilter:(e,r)=>r.name.indexOf(String(e))===0,sorter:(e,r)=>e.name.length-r.name.length,sortDirections:["descend"]},{title:"Age",dataIndex:"age",defaultSortOrder:"descend",sorter:(e,r)=>e.age-r.age},{title:"Address",dataIndex:"address",filters:[{text:"London",value:"London"},{text:"New York",value:"New York"}],onFilter:(e,r)=>r.address.indexOf(String(e))===0}],uu=[{key:"1",name:"John Brown",age:32,address:"New York No. 1 Lake Park"},{key:"2",name:"Jim Green",age:42,address:"London No. 1 Lake Park"},{key:"3",name:"Joe Black",age:32,address:"Sidney No. 1 Lake Park"},{key:"4",name:"Jim Red",age:32,address:"London No. 2 Lake Park"}],hu=(e,r,t,n)=>{console.log("params",e,r,t,n)},fu=()=>o.jsx(i.Table,{columns:gu,dataSource:uu,onChange:hu}),mu={demo:o.jsx(fu,{}),tokens:["colorFillSecondary","colorFillContentHover","colorFillContent","colorFillAlter"],key:"filterTable"},vu=[{title:"Name",dataIndex:"name",key:"name",render:e=>o.jsx("a",{children:e})},{title:"Age",dataIndex:"age",key:"age"},{title:"Address",dataIndex:"address",key:"address"},{title:"Tags",key:"tags",dataIndex:"tags",render:e=>o.jsx(o.Fragment,{children:e.map(r=>{let t=r.length>5?"geekblue":"green";return r==="loser"&&(t="volcano"),o.jsx(i.Tag,{color:t,children:r.toUpperCase()},r)})})},{title:"Action",key:"action",render:(e,r)=>o.jsxs(i.Space,{size:"middle",children:[o.jsxs("a",{children:["Invite ",r.name]})," ",o.jsx("a",{children:"Delete"})]})}],yu=[{key:"1",name:"John Brown",age:32,address:"New York No. 1 Lake Park",tags:["nice","developer"]},{key:"2",name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["loser"]},{key:"3",name:"Joe Black",age:32,address:"Sidney No. 1 Lake Park",tags:["cool","teacher"]}],bu=()=>o.jsx(i.Table,{columns:vu,dataSource:yu,pagination:!1}),Su=[{demo:o.jsx(bu,{}),tokens:["colorPrimaryActive","colorBgContainer"],key:"table"},mu],{TabPane:at}=i.Tabs,xu=()=>o.jsxs(i.Tabs,{type:"card",defaultActiveKey:"1",children:[o.jsx(at,{tab:"Tab 1",children:"Content of Tab Pane 1"},"1"),o.jsx(at,{tab:"Tab 2",children:"Content of Tab Pane 2"},"2"),o.jsx(at,{tab:"Tab 3",children:"Content of Tab Pane 3"},"3")]}),Cu={demo:o.jsx(xu,{}),tokens:["colorFillAlter"],key:"cardTabs"},{TabPane:it}=i.Tabs;function ku(){}const wu=()=>o.jsxs(i.Tabs,{defaultActiveKey:"1",onChange:ku,children:[o.jsx(it,{tab:"Tab 1",children:"Content of Tab Pane 1"},"1"),o.jsx(it,{tab:"Tab 2",children:"Content of Tab Pane 2"},"2"),o.jsx(it,{tab:"Tab 3",children:"Content of Tab Pane 3"},"3")]}),ia={demo:o.jsx(wu,{}),tokens:["colorPrimary","colorPrimaryHover","colorPrimaryActive","colorBgContainer"],key:"default"},Eu=[ia,Cu],Tu=()=>o.jsx(i.Tag,{closable:!0,children:"Error"}),Bu={demo:o.jsx(Tu,{}),tokens:["colorFillAlter","colorIcon","colorIconHover"],key:"closable"},Du=()=>o.jsx(i.Tag,{color:"error",children:"Error"}),la={demo:o.jsx(Du,{}),tokens:["colorError","colorErrorBg","colorErrorBorder"],key:"error"},Hu=()=>o.jsx(i.Tag,{color:"processing",children:"Info"}),Au={demo:o.jsx(Hu,{}),tokens:["colorInfo","colorInfoBg","colorInfoBorder"],key:"info"},{CheckableTag:ca}=i.Tag,Mu=()=>o.jsxs("div",{children:[o.jsx(ca,{checked:!0,children:"Error"}),o.jsx(ca,{checked:!1,children:"Error"})]}),Iu={demo:o.jsx(Mu,{}),tokens:["colorPrimary","colorPrimaryHover","colorPrimaryActive"],key:"multiTags"},Pu=()=>o.jsx(i.Tag,{color:"success",children:"Success"}),sa={demo:o.jsx(Pu,{}),tokens:["colorSuccess","colorSuccessBg","colorSuccessBorder"],key:"success"},zu=()=>{const{token:e}=i.theme.useToken();return o.jsxs(i.Space,{direction:"vertical",children:[o.jsxs("div",{style:{padding:12},children:[o.jsx(i.Tag,{color:"magenta",children:"magenta"}),o.jsx(i.Tag,{color:"red",children:"red"}),o.jsx(i.Tag,{color:"volcano",children:"volcano"}),o.jsx(i.Tag,{color:"orange",children:"orange"}),o.jsx(i.Tag,{color:"gold",children:"gold"}),o.jsx(i.Tag,{color:"lime",children:"lime"}),o.jsx(i.Tag,{color:"green",children:"green"}),o.jsx(i.Tag,{color:"cyan",children:"cyan"}),o.jsx(i.Tag,{color:"blue",children:"blue"}),o.jsx(i.Tag,{color:"geekblue",children:"geekblue"}),o.jsx(i.Tag,{color:"purple",children:"purple"})]}),o.jsx(i.Divider,{}),o.jsxs("div",{style:{background:e.colorFillSecondary,padding:12},children:[o.jsx(i.Tag,{color:"magenta",children:"magenta"}),o.jsx(i.Tag,{color:"red",children:"red"}),o.jsx(i.Tag,{color:"volcano",children:"volcano"}),o.jsx(i.Tag,{color:"orange",children:"orange"}),o.jsx(i.Tag,{color:"gold",children:"gold"}),o.jsx(i.Tag,{color:"lime",children:"lime"}),o.jsx(i.Tag,{color:"green",children:"green"}),o.jsx(i.Tag,{color:"cyan",children:"cyan"}),o.jsx(i.Tag,{color:"blue",children:"blue"}),o.jsx(i.Tag,{color:"geekblue",children:"geekblue"}),o.jsx(i.Tag,{color:"purple",children:"purple"})]})]})},Lu={demo:o.jsx(zu,{}),tokens:["blue-1","blue-3","blue-6","blue-7","cyan-1","cyan-3","cyan-6","cyan-7","geekblue-1","geekblue-3","geekblue-6","geekblue-7","gold-1","gold-3","gold-6","gold-7","green-1","green-3","green-6","green-7","lime-1","lime-3","lime-6","lime-7","magenta-1","magenta-3","magenta-6","magenta-7","orange-1","orange-3","orange-6","orange-7","pink-1","pink-3","pink-6","pink-7","purple-1","purple-3","purple-6","purple-7","volcano-1","volcano-3","volcano-6","volcano-7","yellow-1","yellow-3","yellow-6","yellow-7","red-1","red-3","red-6","red-7"],key:"default"},$u=()=>o.jsx(i.Tag,{color:"warning",children:"Warning"}),da={demo:o.jsx($u,{}),tokens:["colorWarning","colorWarningBg","colorWarningBorder"],key:"warning"},Ou=[Lu,la,Au,sa,da,Iu,Bu],Fu=()=>o.jsx(i.TimePicker._InternalPanelDoNotUseOrYouWillBeFired,{}),_u=[{demo:o.jsx(Fu,{}),tokens:["colorPrimary"],key:"default"}],Wu=()=>o.jsxs(i.Timeline,{children:[o.jsx(i.Timeline.Item,{color:"red",children:"Create a services site 2015-09-01"}),o.jsx(i.Timeline.Item,{color:"red",children:"Solve initial network problems 2015-09-01"}),o.jsx(i.Timeline.Item,{color:"red",children:"Technical testing 2015-09-01"}),o.jsx(i.Timeline.Item,{color:"red",children:"Network problems being solved 2015-09-01"})]}),pa={demo:o.jsx(Wu,{}),tokens:["colorError"],key:"danger"},Xu=()=>o.jsxs(i.Timeline,{children:[o.jsx(i.Timeline.Item,{color:"green",children:"Create a services site 2015-09-01"}),o.jsx(i.Timeline.Item,{color:"green",children:"Solve initial network problems 2015-09-01"}),o.jsx(i.Timeline.Item,{color:"green",children:"Technical testing 2015-09-01"}),o.jsx(i.Timeline.Item,{color:"green",children:"Network problems being solved 2015-09-01"})]}),ga={demo:o.jsx(Xu,{}),tokens:["colorSuccess"],key:"success"},Nu=()=>o.jsxs(i.Timeline,{children:[o.jsx(i.Timeline.Item,{children:"Create a services site 2015-09-01"}),o.jsx(i.Timeline.Item,{children:"Solve initial network problems 2015-09-01"}),o.jsx(i.Timeline.Item,{children:"Technical testing 2015-09-01"})]}),Gu=[{demo:o.jsx(Nu,{}),tokens:["colorPrimary","colorText","colorSplit","colorBgContainer"],key:"default"},pa,ga],Uu=()=>o.jsxs("div",{children:[o.jsx(i.Tooltip._InternalPanelDoNotUseOrYouWillBeFired,{title:"prompt text"}),o.jsx("span",{children:"Tooltip will show on mouse enter."})]}),ju=[{demo:o.jsx(Uu,{}),tokens:["colorBgSpotlight","colorTextLightSolid"],key:"default"}],ko=[];for(let e=0;e<20;e++)ko.push({key:e.toString(),title:`content${e+1}`,description:`description of content${e+1}`});const Vu=ko.filter(e=>+e.key>10).map(e=>e.key),qu=()=>{const[e,r]=h.useState(Vu),[t,n]=h.useState([]),a=()=>{};return o.jsx(i.Transfer,{dataSource:ko,titles:["Source","Target"],targetKeys:e,status:"error",selectedKeys:t,onChange:l=>{r(l)},onSelectChange:(l,c)=>{n([...l,...c])},onScroll:a,render:l=>l.title})},Yu={demo:o.jsx(qu,{}),tokens:["colorError"],key:"danger"},lt=[];for(let e=0;e<20;e++)lt.push({key:e.toString(),title:`content${e+1}`,description:`description of content${e+1}`});const Zu=lt.filter(e=>+e.key>10).map(e=>e.key),Qu=()=>{const[e,r]=h.useState(Zu),[t,n]=h.useState([]),a=()=>{};return o.jsx(i.Transfer,{dataSource:lt,titles:["Source","Target"],targetKeys:e,disabled:!0,selectedKeys:t,onChange:l=>{r(l)},onSelectChange:(l,c)=>{n([...l,...c])},onScroll:a,render:l=>l.title})},Ku={demo:o.jsx(Qu,{}),tokens:["colorBgContainerDisabled"],key:"disabled"},Ju=ko.filter(e=>+e.key>10).map(e=>e.key),Ru=()=>{const[e,r]=h.useState(Ju),[t,n]=h.useState(["1","2"]),a=()=>{};return o.jsx(i.Transfer,{dataSource:ko,titles:["Source","Target"],targetKeys:e,selectedKeys:t,onChange:l=>{r(l)},onSelectChange:(l,c)=>{n([...l,...c])},onScroll:a,render:l=>l.title})},eh={demo:o.jsx(Ru,{}),tokens:["controlItemBgActiveHover","controlItemBgActive","colorBgContainer"],key:"default"},ct=[];for(let e=0;e<20;e++)ct.push({key:e.toString(),title:`content${e+1}`,description:`description of content${e+1}`});const oh=ct.filter(e=>+e.key>10).map(e=>e.key),rh=()=>{const[e,r]=h.useState(oh),[t,n]=h.useState([]),a=()=>{};return o.jsx(i.Transfer,{dataSource:ct,titles:["Source","Target"],targetKeys:e,status:"warning",selectedKeys:t,onChange:l=>{r(l)},onSelectChange:(l,c)=>{n([...l,...c])},onScroll:a,render:l=>l.title})},th=[eh,{demo:o.jsx(rh,{}),tokens:["colorWarning"],key:"warning"},Yu,Ku],nh=[{title:"parent 1",key:"0-0",children:[{title:"parent 1-0",key:"0-0-0",disabled:!0,children:[{title:"leaf",key:"0-0-0-0",disableCheckbox:!0},{title:"leaf",key:"0-0-0-1"}]},{title:"parent 1-1",key:"0-0-1",children:[{title:o.jsx("span",{style:{color:"#1890ff"},children:"sss"}),key:"0-0-1-0"}]}]}],ah=()=>o.jsx(i.Tree,{disabled:!0,checkable:!0,defaultExpandedKeys:["0-0-0","0-0-1"],defaultSelectedKeys:["0-0-0","0-0-1"],defaultCheckedKeys:["0-0-0","0-0-1"],treeData:nh}),ih={demo:o.jsx(ah,{}),tokens:["colorTextDisabled","colorBgContainerDisabled"],key:"disabled"},lh=[{title:"parent 1",key:"0-0",children:[{title:"parent 1-0",key:"0-0-0",disabled:!0,children:[{title:"leaf",key:"0-0-0-0",disableCheckbox:!0},{title:"leaf",key:"0-0-0-1"}]},{title:"parent 1-1",key:"0-0-1",children:[{title:o.jsx("span",{style:{color:"#1890ff"},children:"sss"}),key:"0-0-1-0"}]}]}],ch=()=>o.jsx(i.Tree,{checkable:!0,defaultExpandedKeys:["0-0-0","0-0-1"],defaultSelectedKeys:["0-0-0","0-0-1"],defaultCheckedKeys:["0-0-0","0-0-1"],treeData:lh}),sh=[{demo:o.jsx(ch,{}),tokens:["colorPrimary","controlOutline","colorBgContainer"],key:"default"},ih],{TreeNode:lo,_InternalPanelDoNotUseOrYouWillBeFired:dh}=i.TreeSelect,ph=()=>{const[e,r]=h.useState(void 0),t=()=>{r(e)};return o.jsx(dh,{disabled:!0,showSearch:!0,style:{width:"100%"},value:e,dropdownStyle:{maxHeight:400,overflow:"auto"},placeholder:"Please select",allowClear:!0,treeDefaultExpandAll:!0,onChange:t,children:o.jsxs(lo,{value:"parent 1",title:"parent 1",children:[o.jsxs(lo,{value:"parent 1-0",title:"parent 1-0",children:[o.jsx(lo,{value:"leaf1",title:"leaf1"}),o.jsx(lo,{value:"leaf2",title:"leaf2"})]}),o.jsx(lo,{value:"parent 1-1",title:"parent 1-1",children:o.jsx(lo,{value:"leaf3",title:"leaf3"})})]})})},gh={demo:o.jsx(ph,{}),tokens:["colorTextDisabled","colorBgContainerDisabled"],key:"disabled"},{TreeNode:co,_InternalPanelDoNotUseOrYouWillBeFired:uh}=i.TreeSelect,hh=()=>{const[e,r]=h.useState(void 0),t=()=>{r(e)};return o.jsx(uh,{showSearch:!0,style:{width:"100%"},value:e,dropdownStyle:{maxHeight:400,overflow:"auto"},placeholder:"Please select",allowClear:!0,treeDefaultExpandAll:!0,onChange:t,children:o.jsxs(co,{value:"parent 1",title:"parent 1",children:[o.jsxs(co,{value:"parent 1-0",title:"parent 1-0",children:[o.jsx(co,{value:"leaf1",title:"leaf1"}),o.jsx(co,{value:"leaf2",title:"leaf2"})]}),o.jsx(co,{value:"parent 1-1",title:"parent 1-1",children:o.jsx(co,{value:"leaf3",title:"leaf3"})})]})})},fh=[{demo:o.jsx(hh,{}),tokens:["colorPrimary","colorPrimaryActive","controlOutline","colorBgElevated","colorBgContainer"],key:"default"},gh],{Title:mh}=i.Typography,vh=()=>o.jsx(mh,{level:4,children:"Heading 4"}),yh={demo:o.jsx(vh,{}),tokens:["fontSizeHeading4"],key:"heading4"},{Title:bh,Text:Sh}=i.Typography,xh=()=>o.jsxs("div",{children:[o.jsx(bh,{type:"danger",level:4,children:"Error Title"}),o.jsx(Sh,{type:"danger",children:"error Text"})]}),Ch={demo:o.jsx(xh,{}),tokens:["colorError","colorErrorHover","colorErrorActive"],key:"error"},{Title:kh,Text:wh}=i.Typography,Eh=()=>o.jsxs("div",{children:[o.jsx(kh,{type:"success",level:4,children:"Success Title"}),o.jsx(wh,{type:"success",children:"success Text"})]}),Th={demo:o.jsx(Eh,{}),tokens:["colorSuccess"],key:"success"},{Title:Bh,Paragraph:st,Text:ua,Link:dt}=i.Typography,Dh=()=>o.jsxs(i.Typography,{children:[o.jsx(Bh,{level:4,children:"《故乡》 "}),o.jsx(st,{children:"——鲁迅"}),o.jsxs(st,{children:[o.jsx(ua,{strong:!0,children:"深蓝的天空中挂着一轮金黄的圆月"}),",下面是海边的沙地,都种着一望无际的碧绿的西瓜,其间有一个十一二岁的少年,项带银圈,手捏一柄钢叉,",o.jsx(ua,{mark:!0,children:"向一匹猹尽力的刺去"}),",那猹却将身一扭,反从他的胯下逃走了。"]}),o.jsx(st,{children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx(dt,{href:"#",children:"狂人日记"})}),o.jsx("li",{children:o.jsx(dt,{href:"#",children:"呐喊"})}),o.jsx("li",{children:o.jsx(dt,{href:"#",children:"彷徨"})})]})})]}),Hh={demo:o.jsx(Dh,{}),tokens:["colorSuccess"],key:"default"},{Title:Ah,Text:Mh}=i.Typography,Ih=()=>o.jsxs("div",{children:[o.jsx(Ah,{type:"warning",level:4,children:"Error Title"}),o.jsx(Mh,{type:"warning",children:"error Text"})]}),Ph=[Hh,yh,Ch,{demo:o.jsx(Ih,{}),tokens:["colorWarning"],key:"warning"},Th],zh=()=>o.jsx("div",{children:o.jsx(i.Upload,{name:"avatar",listType:"picture-card",className:"avatar-uploader",showUploadList:!1,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",children:o.jsxs("div",{children:[o.jsx(D.PlusOutlined,{}),o.jsx("div",{style:{marginTop:8},children:"Upload"})]})})}),Lh={demo:o.jsx(zh,{}),tokens:["colorFillAlter"],key:"avatar"},$h=()=>o.jsxs("div",{children:[o.jsx(i.Upload,{defaultFileList:[{uid:"3",name:"zzz.png",status:"error",response:"Server Error 500",url:"http://www.baidu.com/zzz.png"}],children:o.jsx(i.Button,{icon:o.jsx(D.UploadOutlined,{}),children:"Upload"})}),o.jsx(i.Upload,{listType:"picture",defaultFileList:[{uid:"3",name:"zzz.png",status:"error",response:"Server Error 500"}],children:o.jsx(i.Button,{icon:o.jsx(D.UploadOutlined,{}),children:"Upload"})})]}),ha={demo:o.jsx($h,{}),tokens:["colorError","colorErrorBg"],key:"danger"},Oh={name:"file",action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",headers:{authorization:"authorization-text"},onChange(e){e.file.status==="done"?i.message.success(`${e.file.name} file uploaded successfully`):e.file.status==="error"&&i.message.error(`${e.file.name} file upload failed.`)}},Fh=()=>o.jsx(i.Upload,_(I({},Oh),{children:o.jsx(i.Button,{icon:o.jsx(D.UploadOutlined,{}),children:"Click to Upload"})})),fa={Alert:Hl,Anchor:Pl,AutoComplete:$l,Avatar:Fl,Badge:jl,Breadcrumb:ql,Button:oc,Calendar:ac,Card:pc,Carousel:uc,Cascader:Cc,Checkbox:Tc,Collapse:Dc,DatePicker:Fc,Descriptions:Wc,Dropdown:qc,Empty:Zc,Form:ts,Grid:is,Icon:cs,Image:gs,InputNumber:$s,Input:Es,List:_s,Mentions:Rs,Modal:Dd,Notification:Xd,Pagination:Vd,Popconfirm:Qd,Popover:Rd,Radio:fg,Rate:vg,Select:Vg,Skeleton:Yg,Slider:Jg,Spin:ru,Statistic:nu,Switch:pu,Table:Su,Tabs:Eu,Tag:Ou,TimePicker:_u,Timeline:Gu,Tooltip:ju,Transfer:th,TreeSelect:fh,Tree:sh,Typography:Ph,Upload:[{demo:o.jsx(Fh,{}),tokens:["colorPrimary","colorPrimaryHover","colorPrimaryActive"],key:"upload"},ha,Lh],Divider:Nc,Space:eu,Menu:nd,Steps:cu,Segmented:Hg,Drawer:Uc,Message:vd,Result:Bg,Progress:sg},pt={_lang:"zh-CN",followPrimary:"跟随主色",reset:"重置",next:"下一步",groupView:"分组显示",fill:"填充",border:"描边",background:"背景",text:"文本",overview:"概览",components:"组件",relatedTokens:"关联 Token"},ma=h.createContext(pt),Pe=()=>h.useContext(ma),_h={_lang:"en-US",followPrimary:"Follow Brand Color",reset:"Reset",next:"Next",groupView:"Group View",fill:"Fill",border:"Border",background:"Background",text:"Text",overview:"Overview",components:"Components",relatedTokens:"Related Tokens"};function Wh(e){if(Array.isArray(e))return e}function Xh(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,a,l,c,s=[],d=!0,p=!1;try{if(l=(t=t.call(e)).next,r!==0)for(;!(d=(n=l.call(t)).done)&&(s.push(n.value),s.length!==r);d=!0);}catch(g){p=!0,a=g}finally{try{if(!d&&t.return!=null&&(c=t.return(),Object(c)!==c))return}finally{if(p)throw a}}return s}}function va(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function Nh(e,r){if(e){if(typeof e=="string")return va(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?va(e,r):void 0}}function Gh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
44
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gt(e,r){return Wh(e)||Xh(e,r)||Nh(e,r)||Gh()}function ya(e){var r=E.useRef();r.current=e;var t=E.useCallback(function(){for(var n,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return(n=r.current)===null||n===void 0?void 0:n.call.apply(n,[r].concat(l))},[]);return t}function Uh(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ba=Uh()?E.useLayoutEffect:E.useEffect,jh=function(r,t){var n=E.useRef(!0);ba(function(){return r(n.current)},t),ba(function(){return n.current=!1,function(){n.current=!0}},[])},Sa=function(r,t){jh(function(n){if(!n)return r()},t)};function xa(e){var r=E.useRef(!1),t=E.useState(e),n=gt(t,2),a=n[0],l=n[1];E.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]);function c(s,d){d&&r.current||l(s)}return[a,c]}function ut(e){return e!==void 0}function ht(e,r){var t=r||{},n=t.defaultValue,a=t.value,l=t.onChange,c=t.postState,s=xa(function(){return ut(a)?a:ut(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),d=gt(s,2),p=d[0],g=d[1],u=a!==void 0?a:p,f=c?c(u):u,C=ya(l),x=xa([u]),y=gt(x,2),m=y[0],S=y[1];Sa(function(){var H=m[0];p!==H&&C(p,H)},[m]),Sa(function(){ut(a)||g(a)},[a]);var b=ya(function(H,k){g(H,k),S([u],k)});return[f,b]}const Ue=e=>e?"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACPTkDJAAAAZUlEQVRIDe2VMQoAMAgDa9/g/1/oIzrpZBCh2dLFkkoDF0Fz99OdiOjks+2/7S8fRRmMMIVoRGSoYzvvqF8ZIMKlC1GhQBc6IkPzq32QmdAzkEGihpWOSPsAss8HegYySNSw0hE9WQ4StafZFqkAAAAASUVORK5CYII=)":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAFpJREFUWAntljEKADAIA23p6v//qQ+wfUEcCu1yriEgp0FHRJSJcnehmmWm1Dv/lO4HIg1AAAKjTqm03ea88zMCCEDgO4HV5bS757f+7wRoAAIQ4B9gByAAgQ3pfiDmXmAeEwAAAABJRU5ErkJggg==)",Vh=ie("ColorPreview",()=>({".previewer-color-preview":{width:20,height:20,position:"relative",borderRadius:"50%",padding:0,display:"inline-block","&::before":{content:'""',width:"100%",height:"100%",borderRadius:"50%",top:0,insetInlineStart:0,position:"absolute",zIndex:2,backgroundColor:"var(--antd-token-previewer-color-preview)",boxShadow:"0 2px 3px -1px rgba(0,0,0,0.20), inset 0 0 0 1px rgba(0,0,0,0.09)"}}})),Ca=l=>{var c=l,{color:e,style:r,className:t,dark:n}=c,a=Go(c,["color","style","className","dark"]);const[s,d]=Vh();return s(o.jsx("div",_(I({},a),{className:ee("previewer-color-preview",t,d),style:I({"--antd-token-previewer-color-preview":e},r),children:o.jsx("div",{style:{content:'""',width:18,height:18,borderRadius:"50%",top:1,insetInlineStart:1,position:"absolute",zIndex:1,background:`${Ue(n)} 0% 0% / 20px`}})})))},ka=(e,r=0)=>{const t=h.useRef(0),n=h.useCallback((...a)=>{cancelAnimationFrame(t.current);const l=performance.now(),c=s=>{s-l<r?t.current=requestAnimationFrame(c):e(...a)};t.current=requestAnimationFrame(c)},[e,r]);return h.useEffect(()=>()=>cancelAnimationFrame(t.current),[]),n};function so(){return(so=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function ft(e,r){if(e==null)return{};var t,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r.indexOf(t=l[n])>=0||(a[t]=e[t]);return a}function mt(e){var r=h.useRef(e),t=h.useRef(function(n){r.current&&r.current(n)});return r.current=e,t.current}var po=function(e,r,t){return r===void 0&&(r=0),t===void 0&&(t=1),e>t?t:e<r?r:e},wo=function(e){return"touches"in e},vt=function(e){return e&&e.ownerDocument.defaultView||self},wa=function(e,r,t){var n=e.getBoundingClientRect(),a=wo(r)?function(l,c){for(var s=0;s<l.length;s++)if(l[s].identifier===c)return l[s];return l[0]}(r.touches,t):r;return{left:po((a.pageX-(n.left+vt(e).pageXOffset))/n.width),top:po((a.pageY-(n.top+vt(e).pageYOffset))/n.height)}},Ea=function(e){!wo(e)&&e.preventDefault()},yt=h.memo(function(e){var r=e.onMove,t=e.onKey,n=ft(e,["onMove","onKey"]),a=h.useRef(null),l=mt(r),c=mt(t),s=h.useRef(null),d=h.useRef(!1),p=h.useMemo(function(){var C=function(m){Ea(m),(wo(m)?m.touches.length>0:m.buttons>0)&&a.current?l(wa(a.current,m,s.current)):y(!1)},x=function(){return y(!1)};function y(m){var S=d.current,b=vt(a.current),H=m?b.addEventListener:b.removeEventListener;H(S?"touchmove":"mousemove",C),H(S?"touchend":"mouseup",x)}return[function(m){var S=m.nativeEvent,b=a.current;if(b&&(Ea(S),!function(k,L){return L&&!wo(k)}(S,d.current)&&b)){if(wo(S)){d.current=!0;var H=S.changedTouches||[];H.length&&(s.current=H[0].identifier)}b.focus(),l(wa(b,S,s.current)),y(!0)}},function(m){var S=m.which||m.keyCode;S<37||S>40||(m.preventDefault(),c({left:S===39?.05:S===37?-.05:0,top:S===40?.05:S===38?-.05:0}))},y]},[c,l]),g=p[0],u=p[1],f=p[2];return h.useEffect(function(){return f},[f]),h.createElement("div",so({},n,{onTouchStart:g,onMouseDown:g,className:"react-colorful__interactive",ref:a,onKeyDown:u,tabIndex:0,role:"slider"}))}),Eo=function(e){return e.filter(Boolean).join(" ")},bt=function(e){var r=e.color,t=e.left,n=e.top,a=n===void 0?.5:n,l=Eo(["react-colorful__pointer",e.className]);return h.createElement("div",{className:l,style:{top:100*a+"%",left:100*t+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:r}}))},se=function(e,r,t){return r===void 0&&(r=0),t===void 0&&(t=Math.pow(10,r)),Math.round(t*e)/t},qh=function(e){return Da(St(e))},St=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?se(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?se(parseInt(e.substring(6,8),16)/255,2):1}},Yh=function(e){return Zh(Ba(e))},Ta=function(e){var r=e.s,t=e.v,n=e.a,a=(200-r)*t/100;return{h:se(e.h),s:se(a>0&&a<200?r*t/100/(a<=100?a:200-a)*100:0),l:se(a/2),a:se(n,2)}},xt=function(e){var r=Ta(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},Ct=function(e){var r=Ta(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},Ba=function(e){var r=e.h,t=e.s,n=e.v,a=e.a;r=r/360*6,t/=100,n/=100;var l=Math.floor(r),c=n*(1-t),s=n*(1-(r-l)*t),d=n*(1-(1-r+l)*t),p=l%6;return{r:se(255*[n,s,c,c,d,n][p]),g:se(255*[d,n,n,s,c,c][p]),b:se(255*[c,c,d,n,n,s][p]),a:se(a,2)}},dr=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},Zh=function(e){var r=e.r,t=e.g,n=e.b,a=e.a,l=a<1?dr(se(255*a)):"";return"#"+dr(r)+dr(t)+dr(n)+l},Da=function(e){var r=e.r,t=e.g,n=e.b,a=e.a,l=Math.max(r,t,n),c=l-Math.min(r,t,n),s=c?l===r?(t-n)/c:l===t?2+(n-r)/c:4+(r-t)/c:0;return{h:se(60*(s<0?s+6:s)),s:se(l?c/l*100:0),v:se(l/255*100),a}},Ha=h.memo(function(e){var r=e.hue,t=e.onChange,n=Eo(["react-colorful__hue",e.className]);return h.createElement("div",{className:n},h.createElement(yt,{onMove:function(a){t({h:360*a.left})},onKey:function(a){t({h:po(r+360*a.left,0,360)})},"aria-label":"Hue","aria-valuenow":se(r),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(bt,{className:"react-colorful__hue-pointer",left:r/360,color:xt({h:r,s:100,v:100,a:1})})))}),Aa=h.memo(function(e){var r=e.hsva,t=e.onChange,n={backgroundColor:xt({h:r.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:n},h.createElement(yt,{onMove:function(a){t({s:100*a.left,v:100-100*a.top})},onKey:function(a){t({s:po(r.s+100*a.left,0,100),v:po(r.v-100*a.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+se(r.s)+"%, Brightness "+se(r.v)+"%"},h.createElement(bt,{className:"react-colorful__saturation-pointer",top:1-r.v/100,left:r.s/100,color:xt(r)})))}),kt=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},Qh=function(e,r){return e.toLowerCase()===r.toLowerCase()||kt(St(e),St(r))};function Ma(e,r,t){var n=mt(t),a=h.useState(function(){return e.toHsva(r)}),l=a[0],c=a[1],s=h.useRef({color:r,hsva:l});h.useEffect(function(){if(!e.equal(r,s.current.color)){var p=e.toHsva(r);s.current={hsva:p,color:r},c(p)}},[r,e]),h.useEffect(function(){var p;kt(l,s.current.hsva)||e.equal(p=e.fromHsva(l),s.current.color)||(s.current={hsva:l,color:p},n(p))},[l,e,n]);var d=h.useCallback(function(p){c(function(g){return Object.assign({},g,p)})},[]);return[l,d]}var Kh=typeof window!="undefined"?h.useLayoutEffect:h.useEffect,Jh=function(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:void 0},Ia=new Map,Pa=function(e){Kh(function(){var r=e.current?e.current.ownerDocument:document;if(r!==void 0&&!Ia.has(r)){var t=r.createElement("style");t.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Ia.set(r,t);var n=Jh();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}},[])},Rh=function(e){var r=e.className,t=e.colorModel,n=e.color,a=n===void 0?t.defaultColor:n,l=e.onChange,c=ft(e,["className","colorModel","color","onChange"]),s=h.useRef(null);Pa(s);var d=Ma(t,a,l),p=d[0],g=d[1],u=Eo(["react-colorful",r]);return h.createElement("div",so({},c,{ref:s,className:u}),h.createElement(Aa,{hsva:p,onChange:g}),h.createElement(Ha,{hue:p.h,onChange:g,className:"react-colorful__last-control"}))},e0={defaultColor:"000",toHsva:qh,fromHsva:function(e){return Yh({h:e.h,s:e.s,v:e.v,a:1})},equal:Qh},o0=function(e){return h.createElement(Rh,so({},e,{colorModel:e0}))},r0=function(e){var r=e.className,t=e.hsva,n=e.onChange,a={backgroundImage:"linear-gradient(90deg, "+Ct(Object.assign({},t,{a:0}))+", "+Ct(Object.assign({},t,{a:1}))+")"},l=Eo(["react-colorful__alpha",r]),c=se(100*t.a);return h.createElement("div",{className:l},h.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),h.createElement(yt,{onMove:function(s){n({a:s.left})},onKey:function(s){n({a:po(t.a+s.left)})},"aria-label":"Alpha","aria-valuetext":c+"%","aria-valuenow":c,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(bt,{className:"react-colorful__alpha-pointer",left:t.a,color:Ct(t)})))},t0=function(e){var r=e.className,t=e.colorModel,n=e.color,a=n===void 0?t.defaultColor:n,l=e.onChange,c=ft(e,["className","colorModel","color","onChange"]),s=h.useRef(null);Pa(s);var d=Ma(t,a,l),p=d[0],g=d[1],u=Eo(["react-colorful",r]);return h.createElement("div",so({},c,{ref:s,className:u}),h.createElement(Aa,{hsva:p,onChange:g}),h.createElement(Ha,{hue:p.h,onChange:g}),h.createElement(r0,{hsva:p,onChange:g,className:"react-colorful__last-control"}))},n0={defaultColor:{r:0,g:0,b:0,a:1},toHsva:Da,fromHsva:Ba,equal:kt},a0=function(e){return h.createElement(t0,so({},e,{colorModel:n0}))};function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},pr(e)}var i0=/^\s+/,l0=/\s+$/;function T(e,r){if(e=e||"",r=r||{},e instanceof T)return e;if(!(this instanceof T))return new T(e,r);var t=c0(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||t.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}T.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb(),t,n,a,l,c,s;return t=r.r/255,n=r.g/255,a=r.b/255,t<=.03928?l=t/12.92:l=Math.pow((t+.055)/1.055,2.4),n<=.03928?c=n/12.92:c=Math.pow((n+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*l+.7152*c+.0722*s},setAlpha:function(r){return this._a=_a(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=La(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=La(this._r,this._g,this._b),t=Math.round(r.h*360),n=Math.round(r.s*100),a=Math.round(r.v*100);return this._a==1?"hsv("+t+", "+n+"%, "+a+"%)":"hsva("+t+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var r=za(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=za(this._r,this._g,this._b),t=Math.round(r.h*360),n=Math.round(r.s*100),a=Math.round(r.l*100);return this._a==1?"hsl("+t+", "+n+"%, "+a+"%)":"hsla("+t+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(r){return $a(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return g0(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(oe(this._r,255)*100)+"%",g:Math.round(oe(this._g,255)*100)+"%",b:Math.round(oe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(oe(this._r,255)*100)+"%, "+Math.round(oe(this._g,255)*100)+"%, "+Math.round(oe(this._b,255)*100)+"%)":"rgba("+Math.round(oe(this._r,255)*100)+"%, "+Math.round(oe(this._g,255)*100)+"%, "+Math.round(oe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:w0[$a(this._r,this._g,this._b,!0)]||!1},toFilter:function(r){var t="#"+Oa(this._r,this._g,this._b,this._a),n=t,a=this._gradientType?"GradientType = 1, ":"";if(r){var l=T(r);n="#"+Oa(l._r,l._g,l._b,l._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+t+",endColorstr="+n+")"},toString:function(r){var t=!!r;r=r||this._format;var n=!1,a=this._a<1&&this._a>=0,l=!t&&a&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");return l?r==="name"&&this._a===0?this.toName():this.toRgbString():(r==="rgb"&&(n=this.toRgbString()),r==="prgb"&&(n=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(n=this.toHexString()),r==="hex3"&&(n=this.toHexString(!0)),r==="hex4"&&(n=this.toHex8String(!0)),r==="hex8"&&(n=this.toHex8String()),r==="name"&&(n=this.toName()),r==="hsl"&&(n=this.toHslString()),r==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return T(this.toString())},_applyModification:function(r,t){var n=r.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(m0,arguments)},brighten:function(){return this._applyModification(v0,arguments)},darken:function(){return this._applyModification(y0,arguments)},desaturate:function(){return this._applyModification(u0,arguments)},saturate:function(){return this._applyModification(h0,arguments)},greyscale:function(){return this._applyModification(f0,arguments)},spin:function(){return this._applyModification(b0,arguments)},_applyCombination:function(r,t){return r.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C0,arguments)},complement:function(){return this._applyCombination(S0,arguments)},monochromatic:function(){return this._applyCombination(k0,arguments)},splitcomplement:function(){return this._applyCombination(x0,arguments)},triad:function(){return this._applyCombination(Fa,[3])},tetrad:function(){return this._applyCombination(Fa,[4])}},T.fromRatio=function(e,r){if(pr(e)=="object"){var t={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?t[n]=e[n]:t[n]=To(e[n]));e=t}return T(e,r)};function c0(e){var r={r:0,g:0,b:0},t=1,n=null,a=null,l=null,c=!1,s=!1;return typeof e=="string"&&(e=D0(e)),pr(e)=="object"&&(Oe(e.r)&&Oe(e.g)&&Oe(e.b)?(r=s0(e.r,e.g,e.b),c=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Oe(e.h)&&Oe(e.s)&&Oe(e.v)?(n=To(e.s),a=To(e.v),r=p0(e.h,n,a),c=!0,s="hsv"):Oe(e.h)&&Oe(e.s)&&Oe(e.l)&&(n=To(e.s),l=To(e.l),r=d0(e.h,n,l),c=!0,s="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=_a(t),{ok:c,format:e.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:t}}function s0(e,r,t){return{r:oe(e,255)*255,g:oe(r,255)*255,b:oe(t,255)*255}}function za(e,r,t){e=oe(e,255),r=oe(r,255),t=oe(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),l,c,s=(n+a)/2;if(n==a)l=c=0;else{var d=n-a;switch(c=s>.5?d/(2-n-a):d/(n+a),n){case e:l=(r-t)/d+(r<t?6:0);break;case r:l=(t-e)/d+2;break;case t:l=(e-r)/d+4;break}l/=6}return{h:l,s:c,l:s}}function d0(e,r,t){var n,a,l;e=oe(e,360),r=oe(r,100),t=oe(t,100);function c(p,g,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?p+(g-p)*6*u:u<1/2?g:u<2/3?p+(g-p)*(2/3-u)*6:p}if(r===0)n=a=l=t;else{var s=t<.5?t*(1+r):t+r-t*r,d=2*t-s;n=c(d,s,e+1/3),a=c(d,s,e),l=c(d,s,e-1/3)}return{r:n*255,g:a*255,b:l*255}}function La(e,r,t){e=oe(e,255),r=oe(r,255),t=oe(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),l,c,s=n,d=n-a;if(c=n===0?0:d/n,n==a)l=0;else{switch(n){case e:l=(r-t)/d+(r<t?6:0);break;case r:l=(t-e)/d+2;break;case t:l=(e-r)/d+4;break}l/=6}return{h:l,s:c,v:s}}function p0(e,r,t){e=oe(e,360)*6,r=oe(r,100),t=oe(t,100);var n=Math.floor(e),a=e-n,l=t*(1-r),c=t*(1-a*r),s=t*(1-(1-a)*r),d=n%6,p=[t,c,l,l,s,t][d],g=[s,t,t,c,l,l][d],u=[l,l,s,t,t,c][d];return{r:p*255,g:g*255,b:u*255}}function $a(e,r,t,n){var a=[De(Math.round(e).toString(16)),De(Math.round(r).toString(16)),De(Math.round(t).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function g0(e,r,t,n,a){var l=[De(Math.round(e).toString(16)),De(Math.round(r).toString(16)),De(Math.round(t).toString(16)),De(Wa(n))];return a&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function Oa(e,r,t,n){var a=[De(Wa(n)),De(Math.round(e).toString(16)),De(Math.round(r).toString(16)),De(Math.round(t).toString(16))];return a.join("")}T.equals=function(e,r){return!e||!r?!1:T(e).toRgbString()==T(r).toRgbString()},T.random=function(){return T.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function u0(e,r){r=r===0?0:r||10;var t=T(e).toHsl();return t.s-=r/100,t.s=gr(t.s),T(t)}function h0(e,r){r=r===0?0:r||10;var t=T(e).toHsl();return t.s+=r/100,t.s=gr(t.s),T(t)}function f0(e){return T(e).desaturate(100)}function m0(e,r){r=r===0?0:r||10;var t=T(e).toHsl();return t.l+=r/100,t.l=gr(t.l),T(t)}function v0(e,r){r=r===0?0:r||10;var t=T(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(r/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(r/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(r/100)))),T(t)}function y0(e,r){r=r===0?0:r||10;var t=T(e).toHsl();return t.l-=r/100,t.l=gr(t.l),T(t)}function b0(e,r){var t=T(e).toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,T(t)}function S0(e){var r=T(e).toHsl();return r.h=(r.h+180)%360,T(r)}function Fa(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var t=T(e).toHsl(),n=[T(e)],a=360/r,l=1;l<r;l++)n.push(T({h:(t.h+l*a)%360,s:t.s,l:t.l}));return n}function x0(e){var r=T(e).toHsl(),t=r.h;return[T(e),T({h:(t+72)%360,s:r.s,l:r.l}),T({h:(t+216)%360,s:r.s,l:r.l})]}function C0(e,r,t){r=r||6,t=t||30;var n=T(e).toHsl(),a=360/t,l=[T(e)];for(n.h=(n.h-(a*r>>1)+720)%360;--r;)n.h=(n.h+a)%360,l.push(T(n));return l}function k0(e,r){r=r||6;for(var t=T(e).toHsv(),n=t.h,a=t.s,l=t.v,c=[],s=1/r;r--;)c.push(T({h:n,s:a,v:l})),l=(l+s)%1;return c}T.mix=function(e,r,t){t=t===0?0:t||50;var n=T(e).toRgb(),a=T(r).toRgb(),l=t/100,c={r:(a.r-n.r)*l+n.r,g:(a.g-n.g)*l+n.g,b:(a.b-n.b)*l+n.b,a:(a.a-n.a)*l+n.a};return T(c)},T.readability=function(e,r){var t=T(e),n=T(r);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)},T.isReadable=function(e,r,t){var n=T.readability(e,r),a,l;switch(l=!1,a=H0(t),a.level+a.size){case"AAsmall":case"AAAlarge":l=n>=4.5;break;case"AAlarge":l=n>=3;break;case"AAAsmall":l=n>=7;break}return l},T.mostReadable=function(e,r,t){var n=null,a=0,l,c,s,d;t=t||{},c=t.includeFallbackColors,s=t.level,d=t.size;for(var p=0;p<r.length;p++)l=T.readability(e,r[p]),l>a&&(a=l,n=T(r[p]));return T.isReadable(e,n,{level:s,size:d})||!c?n:(t.includeFallbackColors=!1,T.mostReadable(e,["#fff","#000"],t))};var wt=T.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},w0=T.hexNames=E0(wt);function E0(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}function _a(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function oe(e,r){T0(e)&&(e="100%");var t=B0(e);return e=Math.min(r,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function gr(e){return Math.min(1,Math.max(0,e))}function ke(e){return parseInt(e,16)}function T0(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function B0(e){return typeof e=="string"&&e.indexOf("%")!=-1}function De(e){return e.length==1?"0"+e:""+e}function To(e){return e<=1&&(e=e*100+"%"),e}function Wa(e){return Math.round(parseFloat(e)*255).toString(16)}function Xa(e){return ke(e)/255}var He=function(){var e="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",t="(?:"+r+")|(?:"+e+")",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",a="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Oe(e){return!!He.CSS_UNIT.exec(e)}function D0(e){e=e.replace(i0,"").replace(l0,"").toLowerCase();var r=!1;if(wt[e])e=wt[e],r=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=He.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=He.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=He.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=He.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=He.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=He.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=He.hex8.exec(e))?{r:ke(t[1]),g:ke(t[2]),b:ke(t[3]),a:Xa(t[4]),format:r?"name":"hex8"}:(t=He.hex6.exec(e))?{r:ke(t[1]),g:ke(t[2]),b:ke(t[3]),format:r?"name":"hex"}:(t=He.hex4.exec(e))?{r:ke(t[1]+""+t[1]),g:ke(t[2]+""+t[2]),b:ke(t[3]+""+t[3]),a:Xa(t[4]+""+t[4]),format:r?"name":"hex8"}:(t=He.hex3.exec(e))?{r:ke(t[1]+""+t[1]),g:ke(t[2]+""+t[2]),b:ke(t[3]+""+t[3]),format:r?"name":"hex"}:!1}function H0(e){var r,t;return e=e||{level:"AA",size:"small"},r=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:r,size:t}}const{useToken:A0}=i.theme,M0=ie("ColorPanel",e=>({".color-panel":{padding:12,backgroundColor:"#fff",borderRadius:12,border:"1px solid rgba(0, 0, 0, 0.06)",boxShadow:e.boxShadow,width:224,boxSizing:"border-box",".color-panel-mode":{display:"flex",alignItems:"center",marginBottom:6},".color-panel-preview":{width:24,height:24,borderRadius:4,boxShadow:"0 2px 3px -1px rgba(0,0,0,0.20), inset 0 0 0 1px rgba(0,0,0,0.09)",flex:"none",overflow:"hidden",background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAFpJREFUWAntljEKADAIA23p6v//qQ+wfUEcCu1yriEgp0FHRJSJcnehmmWm1Dv/lO4HIg1AAAKjTqm03ea88zMCCEDgO4HV5bS757f+7wRoAAIQ4B9gByAAgQ3pfiDmXmAeEwAAAABJRU5ErkJggg==) 0% 0% / 32px"},".color-panel-preset-colors":{paddingTop:12,display:"flex",flexWrap:"wrap",width:200},".color-panel-preset-color-btn":{borderRadius:4,width:20,height:20,border:"none",outline:"none",margin:4,cursor:"pointer",boxShadow:"0 2px 3px -1px rgba(0,0,0,0.20), inset 0 0 0 1px rgba(0,0,0,0.09)"},".color-panel-mode-title":{color:e.colorTextPlaceholder,marginTop:2,fontSize:12,textAlign:"center"},".color-panel-rgba-input":{display:"flex",alignItems:"center","&-part":{flex:1,width:0,display:"flex",flexDirection:"column",alignItems:"center","&-title":{color:e.colorTextPlaceholder,marginTop:2,fontSize:12},"&:not(:last-child)":{marginRight:4},[`${e.rootCls}-input-number`]:{width:"100%",input:{fontSize:12,padding:"0 4px"}}}}}})),Et=(e,r=!1)=>r?T(e).toHex8():T(e).toHex(),Na=({value:e,onChange:r,alpha:t})=>{const[n,a]=h.useState(e),l=h.useRef(!1),c=p=>{a(p.target.value),r==null||r(Et(p.target.value,t))},s=p=>{l.current=!1,a(Et(p.target.value,t))},d=()=>{l.current=!0};return h.useEffect(()=>{l.current||a(Et(e,t))},[e,t]),o.jsxs("div",{children:[o.jsx(i.Input,{prefix:"#",size:"small",value:n,onFocus:d,onChange:c,onBlur:s}),o.jsxs("div",{className:"color-panel-mode-title",children:["HEX",t?"8":""]})]})},I0=({value:e,onChange:r,alpha:t})=>{const[n,a]=ht(e!=null?e:{r:0,g:0,b:0,a:1},{value:e,onChange:r});return o.jsx("div",{className:"color-panel-rgba-input",children:o.jsxs(i.ConfigProvider,{theme:{components:{InputNumber:{handleWidth:12}}},children:[o.jsxs("div",{className:"color-panel-rgba-input-part",children:[o.jsx(i.InputNumber,{min:0,max:255,size:"small",value:n.r,onChange:l=>a(_(I({},n),{r:l!=null?l:0}))}),o.jsx("div",{className:"color-panel-mode-title",children:"R"})]}),o.jsxs("div",{className:"color-panel-rgba-input-part",children:[o.jsx(i.InputNumber,{min:0,max:255,size:"small",value:n.g,onChange:l=>a(_(I({},n),{g:l!=null?l:0}))}),o.jsx("div",{className:"color-panel-mode-title",children:"G"})]}),o.jsxs("div",{className:"color-panel-rgba-input-part",children:[o.jsx(i.InputNumber,{min:0,max:255,size:"small",value:n.b,onChange:l=>a(_(I({},n),{b:l!=null?l:0}))}),o.jsx("div",{className:"color-panel-mode-title",children:"B"})]}),t&&o.jsxs("div",{className:"color-panel-rgba-input-part",children:[o.jsx(i.InputNumber,{min:0,max:1,step:.01,size:"small",value:n.a,onChange:l=>a(_(I({},n),{a:l!=null?l:0}))}),o.jsx("div",{className:"color-panel-mode-title",children:"A"})]})]})})},P0=["HEX","HEX8","RGB","RGBA"],Tt=(e,r)=>{switch(r){case"HEX":return T(e).toHexString();case"HEX8":return T(e).toHex8String();case"RGBA":case"RGB":default:return T(e).toRgbString()}},Ga=({color:e,onChange:r,alpha:t,style:n})=>{const{token:a}=A0(),[l,c]=M0(),[s,d]=h.useState("HEX"),p=h.useMemo(()=>[a.blue,a.purple,a.cyan,a.green,a.magenta,a.pink,a.red,a.orange,a.yellow,a.volcano,a.geekblue,a.gold,a.lime,"#000"],[]),g=u=>{d(u),r(Tt(e,u))};return l(o.jsxs("div",{className:ee(c,"color-panel"),style:n,children:[(s==="HEX"||s==="RGB")&&o.jsx(o0,{style:{height:160},color:T(e).toHex(),onChange:u=>{r(Tt(u,s))}}),(s==="RGBA"||s==="HEX8")&&o.jsx(a0,{style:{height:160},color:T(e).toRgb(),onChange:u=>{r(Tt(u,s))}}),o.jsxs("div",{style:{marginTop:12},children:[o.jsxs("div",{className:"color-panel-mode",children:[o.jsx("div",{className:"color-panel-preview",children:o.jsx("div",{style:{backgroundColor:e,width:"100%",height:"100%"}})}),o.jsx(i.Select,{value:s,onChange:g,options:P0.filter(u=>t||u==="HEX"||u==="RGB").map(u=>({value:u,key:u})),size:"small",bordered:!1,dropdownMatchSelectWidth:!1})]}),s==="HEX"&&o.jsx(Na,{value:T(e).toHex(),onChange:u=>r==null?void 0:r(T(u).toHexString())}),s==="HEX8"&&o.jsx(Na,{alpha:!0,value:T(e).toHex8(),onChange:u=>r==null?void 0:r(T(u).toHex8String())}),(s==="RGBA"||s==="RGB")&&o.jsx(I0,{alpha:s==="RGBA",value:T(e).toRgb(),onChange:u=>r==null?void 0:r(T(u).toRgbString())})]}),o.jsx("div",{className:"color-panel-preset-colors",children:p.map(u=>o.jsx("button",{className:"color-panel-preset-color-btn",style:{backgroundColor:u},onClick:()=>r(u)},u))})]}))};function Ua(e){return e.startsWith("rgb")||e.startsWith("#")}const z0=ie("TokenInput",e=>({".previewer-token-input":{[`${e.rootCls}-input-group-addon, ${e.rootCls}-input-number-group-addon`]:{border:"0 !important",color:"rgba(0, 0, 0, 0.25) !important",fontSize:`${e.fontSizeSM}px !important`,padding:"0 !important",backgroundColor:"transparent !important","&:first-child":{paddingInlineStart:0},"&:last-child":{paddingInlineEnd:0}},[`${e.rootCls}-input-group-wrapper, ${e.rootCls}-input-number-group-wrapper`]:{padding:0,height:24,width:"100%",input:{fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,padding:`2px ${e.paddingXS}px`,height:24}},[`${e.rootCls}-input-group-wrapper ${e.rootCls}-input, ${e.rootCls}-input-number-group-wrapper ${e.rootCls}-input-number`]:{background:"white",borderRadius:`${e.borderRadiusLG}px !important`,whiteSpace:"nowrap",textOverflow:"ellipsis"},"&&-light":{[`${e.rootCls}-input-group-addon, ${e.rootCls}-input-number-group-addon`]:{backgroundColor:e.colorBgContainer},[`${e.rootCls}-input-group-wrapper ${e.rootCls}-input,
|
|
45
|
-
${e.rootCls}-input-number-group-wrapper ${e.rootCls}-input-number-input`]:{background:e.colorFillAlter}},"&&-readonly":{input:{cursor:"text",color:e.colorText}}}})),ja=({value:e,theme:r,onChange:t,light:n,readonly:a,onReset:l,canReset:c,hideTheme:s})=>{const d=h.useRef(e||""),[p,g]=h.useState(e||""),u=c!=null?c:d.current!==p,f=Pe(),[C,x]=z0();h.useEffect(()=>{e!==void 0&&g(e)},[e]);const y=ka(k=>{t==null||t(k)},500),m=k=>{a||(g(k),y(k))},S=()=>{l?l():m(d.current)},b=!a&&o.jsx("span",{style:{display:"flex",alignItems:"center",minWidth:s?"":80},children:u||s?o.jsx(i.Button,{style:{fontSize:12},onClick:S,type:"link",size:"small",disabled:!u,children:f.reset}):o.jsx("span",{style:{padding:"0 8px"},children:r==null?void 0:r.name})});let H;return typeof d.current=="string"&&Ua(d.current)?H=o.jsx(i.Input,{bordered:!1,addonAfter:b,value:String(p),disabled:a,addonBefore:o.jsx(i.Dropdown,{trigger:["click"],overlay:o.jsx(Ga,{alpha:!0,color:String(p),onChange:k=>{m(k)}}),children:o.jsx(Ca,{color:String(p),dark:(r==null?void 0:r.key)==="dark",style:{cursor:"pointer",marginInlineEnd:8,verticalAlign:"top"}})}),onChange:k=>{m(k.target.value)}}):typeof d.current=="number"?H=o.jsx(i.InputNumber,{addonAfter:b,bordered:!1,value:p,disabled:a,onChange:k=>{m(Number(k))}}):H=o.jsx(i.Input,{addonAfter:b,bordered:!1,value:String(p),disabled:a,onChange:k=>{m(typeof e=="number"?Number(k.target.value):k.target.value)}}),C(o.jsx("div",{className:ee("previewer-token-input",x,{"previewer-token-input-light":n,"previewer-token-input-readonly":a}),children:H}))};function je(e,r){if(e)return r.reduce((t,n)=>{if(t)return t[n]},e)}const{Panel:L0}=i.Collapse,$0=c=>{var s=c,{info:e,visible:r,tokenName:t,style:n,dark:a}=s,l=Go(s,["info","visible","tokenName","style","dark"]);return typeof e=="string"&&Ua(e)?o.jsx(Ca,{dark:a,color:String(e),style:I({display:r?"block":"none"},n)}):e.toString().length<6&&String(e)!==""?o.jsx("div",_(I({style:I({height:20,overflow:"hidden",backgroundColor:"rgba(0,0,0,0.04)",borderRadius:"8px",display:r?"block":"none",padding:"0 6px",lineHeight:"20px"},n)},l),{children:e})):null},O0=({selected:e,toggleSelected:r})=>o.jsx(Ir,{style:{color:e?"#1890ff":void 0,cursor:"pointer",fontSize:16,transition:"color 0.3s",marginInlineStart:12,verticalAlign:"middle"},onClick:()=>r(!e)}),F0=ie("TokenItem",e=>({[`${e.rootCls}-collapse.previewer-token-item-collapse`]:{[`.previewer-token-item${e.rootCls}-collapse-item`]:{transition:`background-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"4px !important"},[`&:not(${e.rootCls}-collapse-item-active):hover`]:{backgroundColor:"#f5f5f5"},[`> ${e.rootCls}-collapse-header`]:{padding:"12px 8px"},[`${e.rootCls}-collapse-header-text`]:{flex:1,width:0},[`${e.rootCls}-collapse-content-box`]:{padding:"0 4px"},[`${e.rootCls}-collapse-expand-icon`]:{paddingInlineEnd:`${e.paddingXXS}px !important`},".previewer-token-count":{height:16,fontSize:e.fontSizeSM,lineHeight:"16px",borderRadius:100,paddingInline:e.paddingXXS*1.5,color:e.colorTextSecondary,backgroundColor:e.colorFillAlter},".previewer-token-item-name":{transition:"color 0.3s"},".previewer-token-item-highlighted.previewer-token-item-name":{color:`${e.colorPrimary} !important`},"&:hover .previewer-token-preview":{"> .previewer-color-preview:not(:last-child)":{transform:"translateX(-100%)",marginInlineEnd:4}},".previewer-token-preview":{display:"flex",alignItems:"center",position:"relative","> .previewer-color-preview":{position:"absolute",insetInlineEnd:0,top:0,bottom:0,margin:"auto"},"> .previewer-color-preview:not(:last-child)":{transform:"translateX(-50%)",marginInlineEnd:0,transition:"transform 0.3s, margin-right 0.3s"},"> *:not(:last-child)":{marginInlineEnd:4}}}}})),Va=e=>`previewer-token-panel-item-${e}`,_0=({tokenName:e,active:r,onActiveChange:t,onTokenChange:n,tokenPath:a,selectedTokens:l,themes:c,onTokenSelect:s,enableTokenSelect:d,hideUsageCount:p,fallback:g})=>{const[u,f]=h.useState(!1),[C,x]=F0();h.useEffect(()=>{r&&f(!0)},[r]);const y=(S,b)=>{n==null||n(S,e,b)},m=h.useMemo(()=>ro(e).length,[e]);return C(o.jsx("div",{onMouseEnter:()=>t==null?void 0:t(!1),children:o.jsx(i.Collapse,{collapsible:"header",ghost:!0,onChange:S=>f(S.length>0),className:ee("previewer-token-item-collapse",x),expandIcon:({isActive:S})=>o.jsx(D.CaretRightOutlined,{rotate:S?90:0,style:{fontSize:12,cursor:"pointer"}}),activeKey:u?e:void 0,children:o.jsx(L0,{className:"previewer-token-item",header:o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},id:Va(e),children:[o.jsxs("span",{style:{flex:1,width:0,display:"flex",overflow:"hidden",alignItems:"center"},children:[o.jsx("span",{title:e,className:ee("previewer-token-item-name",{"previewer-token-item-highlighted":r}),style:{marginInlineEnd:"5px",overflow:"hidden",textOverflow:"ellipsis"},children:e}),!p&&o.jsx("span",{className:"previewer-token-count",children:m})]}),!u&&o.jsx("div",{className:"previewer-token-preview",style:{minWidth:c.length*20+(c.length-1)*4},children:c.map(({config:S,key:b},H)=>{var k,L;return o.jsx($0,{dark:b==="dark",tokenName:e,info:(L=(k=je(S,[...a,e]))!=null?k:g==null?void 0:g(S)[e])!=null?L:"",visible:!u,style:{zIndex:10-H}},b)})})]}),extra:d?o.jsx(O0,{selected:!!(l!=null&&l.includes(e)),toggleSelected:()=>{s==null||s(e)}}):void 0,children:o.jsx(i.Space,{direction:"vertical",style:{background:"#fafafa",borderRadius:4,padding:8,width:"100%"},children:c.map(S=>{var b;return o.jsx("div",{children:o.jsx(ja,{hideTheme:c.length===1,theme:S,onChange:H=>y(S,H),value:(b=je(S.config,[...a,e]))!=null?b:g==null?void 0:g(S.config)[e]})},S.key)})})},e)})}))},{Panel:W0}=i.Collapse,qa={seed:o.jsx(D.BulbOutlined,{}),colorText:o.jsx(D.FontColorsOutlined,{}),colorBg:o.jsx(D.BgColorsOutlined,{}),colorSplit:o.jsx(D.BorderHorizontalOutlined,{}),colorFill:o.jsx(D.HighlightOutlined,{}),colorCommon:o.jsx(D.FormatPainterOutlined,{}),space:o.jsx(xl,{}),font:o.jsx(D.FontSizeOutlined,{}),line:o.jsx(D.AlignLeftOutlined,{}),screen:o.jsx(D.TabletOutlined,{}),motion:o.jsx(bl,{}),radius:o.jsx(D.RadiusSettingOutlined,{}),control:o.jsx(D.ControlOutlined,{}),others:o.jsx(D.FileUnknownOutlined,{})},Ya={seed:"Seed Token",colorCommon:"Common Color 通用颜色",colorText:"Text Color 文本颜色",colorBg:"Background Color 背景颜色",colorFill:"Fill Color 填充颜色",colorSplit:"Split Color 分割线颜色",space:"Space 间距",font:"Font 文本",line:"Line 线",screen:"Screen 屏幕",motion:"Motion 动画",radius:"Radius 圆角",control:"Control 控件",others:"Others 未分类"},X0=ie("TokenCard",e=>({".token-card":{width:"100%",height:"auto",borderRadius:e.borderRadiusLG,border:"1px solid rgba(0,0,0,0.09)",marginBottom:e.marginSM,[`${e.rootCls}-collapse.token-card-collapse`]:{[`> ${e.rootCls}-collapse-item > ${e.rootCls}-collapse-content > ${e.rootCls}-collapse-content-box`]:{padding:{_skip_check_:!0,value:`0 ${e.paddingXS}px 12px !important`}}}},[`.token-card ${e.rootCls}-input-group >${e.rootCls}-input:not(:first-child):not(:last-child)`]:{background:"white",borderRadius:e.borderRadiusLG}})),Bt=({title:e,icon:r,tokenArr:t,keyword:n,hideUseless:a,defaultOpen:l,open:c,onOpenChange:s,activeToken:d,onActiveTokenChange:p,onTokenChange:g,tokenPath:u,selectedTokens:f,themes:C,onTokenSelect:x,enableTokenSelect:y,hideUsageCount:m,fallback:S,placeholder:b})=>{const[H,k]=X0(),[L,G]=ht(!1,{onChange:s,defaultValue:l,value:c});return H(o.jsx("div",{className:ee("token-card",k),children:o.jsx(i.Collapse,{ghost:!0,expandIcon:({isActive:j})=>o.jsx(D.CaretRightOutlined,{rotate:j?450:360,style:{fontSize:12,color:"rgba(0,0,0,0.45)"}}),expandIconPosition:"right",className:"token-card-collapse",activeKey:L?"1":void 0,onChange:j=>{G(j.length>0)},children:o.jsxs(W0,{header:o.jsxs(i.Space,{size:"small",children:[o.jsx("span",{children:e}),o.jsx("span",{children:r})]}),children:[t.filter(j=>(!n||j.toLowerCase().includes(n.toLowerCase()))&&(!a||ro(j).length>0)).map(j=>o.jsx(_0,{tokenPath:u,onActiveChange:K=>p==null?void 0:p(K?j:void 0),active:d===j,tokenName:j,onTokenChange:g,themes:C,selectedTokens:f,onTokenSelect:x,enableTokenSelect:y,hideUsageCount:m,fallback:S},j)),t.length===0&&b]},"1")})}))};function de(e,r){N0(e)&&(e="100%");var t=G0(e);return e=r===360?e:Math.min(r,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*r),10)/100),Math.abs(e-r)<1e-6?1:(r===360?e=(e<0?e%r+r:e%r)/parseFloat(String(r)):e=e%r/parseFloat(String(r)),e)}function ur(e){return Math.min(1,Math.max(0,e))}function N0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function G0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Za(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function hr(e){return e<=1?"".concat(Number(e)*100,"%"):e}function eo(e){return e.length===1?"0"+e:String(e)}function U0(e,r,t){return{r:de(e,255)*255,g:de(r,255)*255,b:de(t,255)*255}}function Qa(e,r,t){e=de(e,255),r=de(r,255),t=de(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),l=0,c=0,s=(n+a)/2;if(n===a)c=0,l=0;else{var d=n-a;switch(c=s>.5?d/(2-n-a):d/(n+a),n){case e:l=(r-t)/d+(r<t?6:0);break;case r:l=(t-e)/d+2;break;case t:l=(e-r)/d+4;break}l/=6}return{h:l,s:c,l:s}}function Dt(e,r,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(r-e)*(6*t):t<1/2?r:t<2/3?e+(r-e)*(2/3-t)*6:e}function j0(e,r,t){var n,a,l;if(e=de(e,360),r=de(r,100),t=de(t,100),r===0)a=t,l=t,n=t;else{var c=t<.5?t*(1+r):t+r-t*r,s=2*t-c;n=Dt(s,c,e+1/3),a=Dt(s,c,e),l=Dt(s,c,e-1/3)}return{r:n*255,g:a*255,b:l*255}}function Ht(e,r,t){e=de(e,255),r=de(r,255),t=de(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),l=0,c=n,s=n-a,d=n===0?0:s/n;if(n===a)l=0;else{switch(n){case e:l=(r-t)/s+(r<t?6:0);break;case r:l=(t-e)/s+2;break;case t:l=(e-r)/s+4;break}l/=6}return{h:l,s:d,v:c}}function V0(e,r,t){e=de(e,360)*6,r=de(r,100),t=de(t,100);var n=Math.floor(e),a=e-n,l=t*(1-r),c=t*(1-a*r),s=t*(1-(1-a)*r),d=n%6,p=[t,c,l,l,s,t][d],g=[s,t,t,c,l,l][d],u=[l,l,s,t,t,c][d];return{r:p*255,g:g*255,b:u*255}}function At(e,r,t,n){var a=[eo(Math.round(e).toString(16)),eo(Math.round(r).toString(16)),eo(Math.round(t).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function q0(e,r,t,n,a){var l=[eo(Math.round(e).toString(16)),eo(Math.round(r).toString(16)),eo(Math.round(t).toString(16)),eo(Y0(n))];return a&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function Y0(e){return Math.round(parseFloat(e)*255).toString(16)}function Ka(e){return we(e)/255}function we(e){return parseInt(e,16)}function Z0(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Mt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function go(e){var r={r:0,g:0,b:0},t=1,n=null,a=null,l=null,c=!1,s=!1;return typeof e=="string"&&(e=J0(e)),typeof e=="object"&&(Fe(e.r)&&Fe(e.g)&&Fe(e.b)?(r=U0(e.r,e.g,e.b),c=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fe(e.h)&&Fe(e.s)&&Fe(e.v)?(n=hr(e.s),a=hr(e.v),r=V0(e.h,n,a),c=!0,s="hsv"):Fe(e.h)&&Fe(e.s)&&Fe(e.l)&&(n=hr(e.s),l=hr(e.l),r=j0(e.h,n,l),c=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=Za(t),{ok:c,format:e.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:t}}var Q0="[-\\+]?\\d+%?",K0="[-\\+]?\\d*\\.\\d+%?",Ve="(?:".concat(K0,")|(?:").concat(Q0,")"),It="[\\s|\\(]+(".concat(Ve,")[,|\\s]+(").concat(Ve,")[,|\\s]+(").concat(Ve,")\\s*\\)?"),Pt="[\\s|\\(]+(".concat(Ve,")[,|\\s]+(").concat(Ve,")[,|\\s]+(").concat(Ve,")[,|\\s]+(").concat(Ve,")\\s*\\)?"),Ae={CSS_UNIT:new RegExp(Ve),rgb:new RegExp("rgb"+It),rgba:new RegExp("rgba"+Pt),hsl:new RegExp("hsl"+It),hsla:new RegExp("hsla"+Pt),hsv:new RegExp("hsv"+It),hsva:new RegExp("hsva"+Pt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function J0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var r=!1;if(Mt[e])e=Mt[e],r=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Ae.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=Ae.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Ae.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=Ae.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Ae.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=Ae.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Ae.hex8.exec(e),t?{r:we(t[1]),g:we(t[2]),b:we(t[3]),a:Ka(t[4]),format:r?"name":"hex8"}:(t=Ae.hex6.exec(e),t?{r:we(t[1]),g:we(t[2]),b:we(t[3]),format:r?"name":"hex"}:(t=Ae.hex4.exec(e),t?{r:we(t[1]+t[1]),g:we(t[2]+t[2]),b:we(t[3]+t[3]),a:Ka(t[4]+t[4]),format:r?"name":"hex8"}:(t=Ae.hex3.exec(e),t?{r:we(t[1]+t[1]),g:we(t[2]+t[2]),b:we(t[3]+t[3]),format:r?"name":"hex"}:!1)))))))))}function Fe(e){return!!Ae.CSS_UNIT.exec(String(e))}var Me=function(){function e(r,t){r===void 0&&(r=""),t===void 0&&(t={});var n;if(r instanceof e)return r;typeof r=="number"&&(r=Z0(r)),this.originalInput=r;var a=go(r);this.originalInput=r,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=t.format)!==null&&n!==void 0?n:a.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},e.prototype.getLuminance=function(){var r=this.toRgb(),t,n,a,l=r.r/255,c=r.g/255,s=r.b/255;return l<=.03928?t=l/12.92:t=Math.pow((l+.055)/1.055,2.4),c<=.03928?n=c/12.92:n=Math.pow((c+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*t+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(r){return this.a=Za(r),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var r=this.toHsl().s;return r===0},e.prototype.toHsv=function(){var r=Ht(this.r,this.g,this.b);return{h:r.h*360,s:r.s,v:r.v,a:this.a}},e.prototype.toHsvString=function(){var r=Ht(this.r,this.g,this.b),t=Math.round(r.h*360),n=Math.round(r.s*100),a=Math.round(r.v*100);return this.a===1?"hsv(".concat(t,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var r=Qa(this.r,this.g,this.b);return{h:r.h*360,s:r.s,l:r.l,a:this.a}},e.prototype.toHslString=function(){var r=Qa(this.r,this.g,this.b),t=Math.round(r.h*360),n=Math.round(r.s*100),a=Math.round(r.l*100);return this.a===1?"hsl(".concat(t,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(r){return r===void 0&&(r=!1),At(this.r,this.g,this.b,r)},e.prototype.toHexString=function(r){return r===void 0&&(r=!1),"#"+this.toHex(r)},e.prototype.toHex8=function(r){return r===void 0&&(r=!1),q0(this.r,this.g,this.b,this.a,r)},e.prototype.toHex8String=function(r){return r===void 0&&(r=!1),"#"+this.toHex8(r)},e.prototype.toHexShortString=function(r){return r===void 0&&(r=!1),this.a===1?this.toHexString(r):this.toHex8String(r)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var r=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(r,", ").concat(t,", ").concat(n,")"):"rgba(".concat(r,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var r=function(t){return"".concat(Math.round(de(t,255)*100),"%")};return{r:r(this.r),g:r(this.g),b:r(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var r=function(t){return Math.round(de(t,255)*100)};return this.a===1?"rgb(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%)"):"rgba(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var r="#"+At(this.r,this.g,this.b,!1),t=0,n=Object.entries(Mt);t<n.length;t++){var a=n[t],l=a[0],c=a[1];if(r===c)return l}return!1},e.prototype.toString=function(r){var t=!!r;r=r!=null?r:this.format;var n=!1,a=this.a<1&&this.a>=0,l=!t&&a&&(r.startsWith("hex")||r==="name");return l?r==="name"&&this.a===0?this.toName():this.toRgbString():(r==="rgb"&&(n=this.toRgbString()),r==="prgb"&&(n=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(n=this.toHexString()),r==="hex3"&&(n=this.toHexString(!0)),r==="hex4"&&(n=this.toHex8String(!0)),r==="hex8"&&(n=this.toHex8String()),r==="name"&&(n=this.toName()),r==="hsl"&&(n=this.toHslString()),r==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(r){r===void 0&&(r=10);var t=this.toHsl();return t.l+=r/100,t.l=ur(t.l),new e(t)},e.prototype.brighten=function(r){r===void 0&&(r=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(r/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(r/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(r/100)))),new e(t)},e.prototype.darken=function(r){r===void 0&&(r=10);var t=this.toHsl();return t.l-=r/100,t.l=ur(t.l),new e(t)},e.prototype.tint=function(r){return r===void 0&&(r=10),this.mix("white",r)},e.prototype.shade=function(r){return r===void 0&&(r=10),this.mix("black",r)},e.prototype.desaturate=function(r){r===void 0&&(r=10);var t=this.toHsl();return t.s-=r/100,t.s=ur(t.s),new e(t)},e.prototype.saturate=function(r){r===void 0&&(r=10);var t=this.toHsl();return t.s+=r/100,t.s=ur(t.s),new e(t)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(r){var t=this.toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,new e(t)},e.prototype.mix=function(r,t){t===void 0&&(t=50);var n=this.toRgb(),a=new e(r).toRgb(),l=t/100,c={r:(a.r-n.r)*l+n.r,g:(a.g-n.g)*l+n.g,b:(a.b-n.b)*l+n.b,a:(a.a-n.a)*l+n.a};return new e(c)},e.prototype.analogous=function(r,t){r===void 0&&(r=6),t===void 0&&(t=30);var n=this.toHsl(),a=360/t,l=[this];for(n.h=(n.h-(a*r>>1)+720)%360;--r;)n.h=(n.h+a)%360,l.push(new e(n));return l},e.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new e(r)},e.prototype.monochromatic=function(r){r===void 0&&(r=6);for(var t=this.toHsv(),n=t.h,a=t.s,l=t.v,c=[],s=1/r;r--;)c.push(new e({h:n,s:a,v:l})),l=(l+s)%1;return c},e.prototype.splitcomplement=function(){var r=this.toHsl(),t=r.h;return[this,new e({h:(t+72)%360,s:r.s,l:r.l}),new e({h:(t+216)%360,s:r.s,l:r.l})]},e.prototype.onBackground=function(r){var t=this.toRgb(),n=new e(r).toRgb(),a=t.a+n.a*(1-t.a);return new e({r:(t.r*t.a+n.r*n.a*(1-t.a))/a,g:(t.g*t.a+n.g*n.a*(1-t.a))/a,b:(t.b*t.a+n.b*n.a*(1-t.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(r){for(var t=this.toHsl(),n=t.h,a=[this],l=360/r,c=1;c<r;c++)a.push(new e({h:(n+c*l)%360,s:t.s,l:t.l}));return a},e.prototype.equals=function(r){return this.toRgbString()===new e(r).toRgbString()},e}(),fr=2,Ja=.16,R0=.05,ef=.05,of=.15,Ra=5,ei=4,rf=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function oi(e){var r=e.r,t=e.g,n=e.b,a=Ht(r,t,n);return{h:a.h*360,s:a.s,v:a.v}}function mr(e){var r=e.r,t=e.g,n=e.b;return"#".concat(At(r,t,n,!1))}function tf(e,r,t){var n=t/100,a={r:(r.r-e.r)*n+e.r,g:(r.g-e.g)*n+e.g,b:(r.b-e.b)*n+e.b};return a}function ri(e,r,t){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=t?Math.round(e.h)-fr*r:Math.round(e.h)+fr*r:n=t?Math.round(e.h)+fr*r:Math.round(e.h)-fr*r,n<0?n+=360:n>=360&&(n-=360),n}function ti(e,r,t){if(e.h===0&&e.s===0)return e.s;var n;return t?n=e.s-Ja*r:r===ei?n=e.s+Ja:n=e.s+R0*r,n>1&&(n=1),t&&r===Ra&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function ni(e,r,t){var n;return t?n=e.v+ef*r:n=e.v-of*r,n>1&&(n=1),Number(n.toFixed(2))}function vr(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],n=go(e),a=Ra;a>0;a-=1){var l=oi(n),c=mr(go({h:ri(l,a,!0),s:ti(l,a,!0),v:ni(l,a,!0)}));t.push(c)}t.push(mr(n));for(var s=1;s<=ei;s+=1){var d=oi(n),p=mr(go({h:ri(d,s),s:ti(d,s),v:ni(d,s)}));t.push(p)}return r.theme==="dark"?rf.map(function(g){var u=g.index,f=g.opacity,C=mr(tf(go(r.backgroundColor||"#141414"),go(t[u]),f*100));return C}):t}var zt={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Lt={},$t={};Object.keys(zt).forEach(function(e){Lt[e]=vr(zt[e]),Lt[e].primary=Lt[e][5],$t[e]=vr(zt[e],{theme:"dark",backgroundColor:"#141414"}),$t[e].primary=$t[e][5]});const nf=e=>{const{controlHeight:r}=e;return{controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}};function af(e){const{sizeUnit:r,sizeStep:t}=e;return{sizeXXL:r*(t+8),sizeXL:r*(t+4),sizeLG:r*(t+2),sizeMD:r*(t+1),sizeMS:r*t,size:r*t,sizeSM:r*(t-1),sizeXS:r*(t-2),sizeXXS:r*(t-3)}}const ai={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Bo=Object.assign(Object.assign({},ai),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
46
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
47
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function lf(e,r){let{generateColorPalettes:t,generateNeutralColorPalettes:n}=r;const{colorSuccess:a,colorWarning:l,colorError:c,colorInfo:s,colorPrimary:d,colorBgBase:p,colorTextBase:g}=e,u=t(d),f=t(a),C=t(l),x=t(c),y=t(s),m=n(p,g),S=e.colorLink||e.colorInfo,b=t(S);return Object.assign(Object.assign({},m),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:x[1],colorErrorBgHover:x[2],colorErrorBorder:x[3],colorErrorBorderHover:x[4],colorErrorHover:x[5],colorError:x[6],colorErrorActive:x[7],colorErrorTextHover:x[8],colorErrorText:x[9],colorErrorTextActive:x[10],colorWarningBg:C[1],colorWarningBgHover:C[2],colorWarningBorder:C[3],colorWarningBorderHover:C[4],colorWarningHover:C[4],colorWarning:C[6],colorWarningActive:C[7],colorWarningTextHover:C[8],colorWarningText:C[9],colorWarningTextActive:C[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Me("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const cf=e=>{let r=e,t=e,n=e,a=e;return e<6&&e>=5?r=e+1:e<16&&e>=6?r=e+2:e>=16&&(r=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:t,borderRadiusLG:r,borderRadiusOuter:a}};function sf(e){const{motionUnit:r,motionBase:t,borderRadius:n,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(t+r).toFixed(1)}s`,motionDurationMid:`${(t+r*2).toFixed(1)}s`,motionDurationSlow:`${(t+r*3).toFixed(1)}s`,lineWidthBold:a+1},cf(n))}const _e=(e,r)=>new Me(e).setAlpha(r).toRgbString(),Do=(e,r)=>new Me(e).darken(r).toHexString(),df=e=>{const r=vr(e);return{1:r[0],2:r[1],3:r[2],4:r[3],5:r[4],6:r[5],7:r[6],8:r[4],9:r[5],10:r[6]}},pf=(e,r)=>{const t=e||"#fff",n=r||"#000";return{colorBgBase:t,colorTextBase:n,colorText:_e(n,.88),colorTextSecondary:_e(n,.65),colorTextTertiary:_e(n,.45),colorTextQuaternary:_e(n,.25),colorFill:_e(n,.15),colorFillSecondary:_e(n,.06),colorFillTertiary:_e(n,.04),colorFillQuaternary:_e(n,.02),colorBgLayout:Do(t,4),colorBgContainer:Do(t,0),colorBgElevated:Do(t,0),colorBgSpotlight:_e(n,.85),colorBgBlur:"transparent",colorBorder:Do(t,15),colorBorderSecondary:Do(t,6)}};function gf(e){const r=new Array(10).fill(null).map((t,n)=>{const a=n-1,l=e*Math.pow(2.71828,a/5),c=n>1?Math.floor(l):Math.ceil(l);return Math.floor(c/2)*2});return r[1]=e,r.map(t=>{const n=t+8;return{size:t,lineHeight:n/t}})}const uf=e=>{const r=gf(e),t=r.map(g=>g.size),n=r.map(g=>g.lineHeight),a=t[1],l=t[0],c=t[2],s=n[1],d=n[0],p=n[2];return{fontSizeSM:l,fontSize:a,fontSizeLG:c,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:s,lineHeightLG:p,lineHeightSM:d,fontHeight:Math.round(s*a),fontHeightLG:Math.round(p*c),fontHeightSM:Math.round(d*l),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function ii(e){const r=Object.keys(ai).map(t=>{const n=vr(e[t]);return new Array(10).fill(1).reduce((a,l,c)=>(a[`${t}-${c+1}`]=n[c],a[`${t}${c+1}`]=n[c],a),{})}).reduce((t,n)=>(t=Object.assign(Object.assign({},t),n),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),r),lf(e,{generateColorPalettes:df,generateNeutralColorPalettes:pf})),uf(e.fontSize)),af(e)),nf(e)),sf(e))}function Ot(e){return e>=0&&e<=255}function yr(e,r){const{r:t,g:n,b:a,a:l}=new Me(e).toRgb();if(l<1)return e;const{r:c,g:s,b:d}=new Me(r).toRgb();for(let p=.01;p<=1;p+=.01){const g=Math.round((t-c*(1-p))/p),u=Math.round((n-s*(1-p))/p),f=Math.round((a-d*(1-p))/p);if(Ot(g)&&Ot(u)&&Ot(f))return new Me({r:g,g:u,b:f,a:Math.round(p*100)/100}).toRgbString()}return new Me({r:t,g:n,b:a,a:1}).toRgbString()}var hf=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t};function Ft(e){const{override:r}=e,t=hf(e,["override"]),n=Object.assign({},r);Object.keys(Bo).forEach(f=>{delete n[f]});const a=Object.assign(Object.assign({},t),n),l=480,c=576,s=768,d=992,p=1200,g=1600;if(a.motion===!1){const f="0s";a.motionDurationFast=f,a.motionDurationMid=f,a.motionDurationSlow=f}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:yr(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:yr(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:yr(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:yr(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
48
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
49
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
50
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
51
|
-
`,boxShadowSecondary:`
|
|
52
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
53
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
54
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
55
|
-
`,boxShadowTertiary:`
|
|
56
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
57
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
58
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
59
|
-
`,screenXS:l,screenXSMin:l,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
60
|
-
0 1px 2px -2px ${new Me("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
61
|
-
0 3px 6px 0 ${new Me("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
62
|
-
0 5px 12px 4px ${new Me("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
63
|
-
`,boxShadowDrawerRight:`
|
|
64
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
65
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
66
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
67
|
-
`,boxShadowDrawerLeft:`
|
|
68
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
69
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
70
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
71
|
-
`,boxShadowDrawerUp:`
|
|
72
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
73
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
74
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
75
|
-
`,boxShadowDrawerDown:`
|
|
76
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
77
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
78
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
79
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}function be(e={}){var l,c;const r=I(I({},Bo),e.token),t=(l=e.algorithm)!=null?l:ii,n=Array.isArray(t)?t.reduce((s,d)=>d(r,s),void 0):t(r),a=_(I(I({},n),e.components),{override:(c=e.token)!=null?c:{}});return Ft(a)}const{defaultAlgorithm:ff}=i.theme,mf=ie("ComponentTokenDrawer",e=>({".previewer-component-token-drawer":{[`&${e.rootCls}-drawer ${e.rootCls}-drawer-body`]:{padding:"0 !important"},".previewer-component-drawer-subtitle":{fontWeight:e.fontWeightStrong,marginBottom:e.marginSM,marginInlineStart:e.marginXS,color:e.colorText},".previewer-component-token-drawer-theme":{fontWeight:"normal",marginInlineStart:8,borderRadius:4,backgroundColor:e.colorInfoBg,color:e.colorPrimary,borderColor:e.colorInfoBg}}})),vf=ie("ComponentFullDemos",e=>({".previewer-component-full-demos":{flex:1,overflow:"auto",padding:24,backgroundColor:e.colorBgLayout,"> *:not(:last-child)":{marginBottom:12}}})),yf=({demos:e})=>{const[,r]=vf(),t=Pe();return o.jsx("div",{className:ee("previewer-component-full-demos",r),style:{},children:e==null?void 0:e.map(n=>{var a,l,c;return o.jsx(li,{title:o.jsx(i.Tooltip,{title:(a=n.tokens)==null?void 0:a.join(", "),children:o.jsxs("span",{children:[t.relatedTokens,": ",(l=n.tokens)==null?void 0:l.join(", "),(((c=n.tokens)==null?void 0:c.length)||0)>2?"...":""]})}),children:n.demo},n.key)})})},bf=({visible:e,component:r="Button",onClose:t,theme:n})=>{const[,a]=mf(),{component:l,global:c}=hl(r)||{global:[]},s=h.useMemo(()=>Object.keys(l!=null?l:{}),[l]),d=h.useMemo(()=>c.sort(),[c]),p=(g,u)=>{var f,C;(C=n.onThemeChange)==null||C.call(n,_(I({},n.config),{components:_(I({},n.config.components),{[r]:_(I({},(f=n.config.components)==null?void 0:f[r]),{[g]:u})})}),["components",r,g])};return o.jsx(i.Drawer,{open:e,title:o.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o.jsx("span",{children:`${r} 组件 Token`}),o.jsx(i.Tag,{className:"previewer-component-token-drawer-theme",children:n.name})]}),onClose:t,width:1200,className:ee("previewer-component-token-drawer",a),children:o.jsxs("div",{style:{display:"flex",height:"100%"},children:[o.jsx(i.ConfigProvider,{theme:n.config,children:o.jsx(i.ConfigProvider,{theme:n.config,children:o.jsx(yf,{demos:fa[r]})})}),o.jsxs("div",{style:{flex:"0 0 400px",overflow:"auto",padding:24},children:[o.jsx("div",{className:"previewer-component-drawer-subtitle",children:"Related Tokens / 相关 token"}),o.jsx(Bt,{icon:o.jsx(D.BuildOutlined,{}),hideUsageCount:!0,defaultOpen:!0,title:"Component Token",tokenArr:s,tokenPath:["components",r],themes:[n],fallback:()=>l,onTokenChange:(g,u,f)=>p(u,f),placeholder:o.jsx(i.Empty,{image:i.Empty.PRESENTED_IMAGE_SIMPLE,description:"暂无相关 Component Token",style:{marginBlock:0,paddingBlock:32}})}),o.jsx(Bt,{icon:o.jsx(D.CarOutlined,{}),hideUsageCount:!0,themes:[n],defaultOpen:!0,title:"Alias Token",tokenArr:d,tokenPath:["components",r],fallback:g=>be(g),onTokenChange:(g,u,f)=>p(u,f),placeholder:o.jsx(i.Empty,{image:i.Empty.PRESENTED_IMAGE_SIMPLE,description:"暂无相关 Alias Token",style:{marginBlock:0,paddingBlock:32}})})]})]})})},Sf=r=>{var e=Go(r,[]);return o.jsx(i.ConfigProvider,{theme:{algorithm:ff},children:o.jsx(bf,I({},e))})},xf=ie("ComponentCard",e=>({[`${e.rootCls}-card.component-card`]:{borderRadius:6,boxShadow:"0 1px 2px 0 rgba(25,15,15,0.07)",[`${e.rootCls}-card-head`]:{paddingInline:18,[`${e.rootCls}-card-head-title`]:{paddingBlock:e.paddingSM,fontSize:e.fontSize}},[`${e.rootCls}-card-body`]:{padding:18,overflow:"auto"},".component-token-control-icon":{color:e.colorIcon,transition:`color ${e.motionDurationMid}`,fontSize:e.fontSizeLG,cursor:"pointer","&:hover":{color:e.colorIconHover}}}})),Cf=e=>`antd-token-previewer-${e}`,li=({children:e,component:r,title:t,theme:n,drawer:a})=>{const[l,c]=xf(),[s,d]=h.useState(!1);return l(o.jsxs(o.Fragment,{children:[o.jsx(i.Card,{className:ee("component-card",c),title:t,extra:a&&n&&o.jsx(ml,{className:"component-token-control-icon",onClick:()=>d(!0)}),children:e}),a&&n&&o.jsx(Sf,{visible:s,theme:n,component:r,onClose:()=>d(!1)})]}))},kf=ie("ComponentDemoGroup",e=>({".previewer-component-demo-group":{display:"flex",width:"100%",overflow:"hidden","&:first-child":{".previewer-component-demo-group-item":{paddingTop:e.padding}},"&:last-child":{".previewer-component-demo-group-item":{paddingBottom:e.padding}}}})),wf=ie("ComponentDemoBlock",e=>({".previewer-component-demo-group-item":{flex:"1 1 50%",paddingInline:e.padding,paddingBlock:e.padding/2,width:0,backgroundColor:e.colorBgLayout,".previewer-component-demo-group-item-relative-token":{color:e.colorTextSecondary,paddingBottom:8,"&:not(:first-child)":{marginTop:12}}}})),ci=({component:e,onTokenClick:r,size:t="middle",disabled:n=!1,demos:a=[],theme:l,componentDrawer:c})=>{var p;const[,s]=wf(),d=Pe();return o.jsx("div",{className:ee("previewer-component-demo-group-item",s),children:o.jsx(li,{title:e,component:e,onTokenClick:r,drawer:c,theme:l,children:o.jsx(i.ConfigProvider,{componentSize:t,componentDisabled:n,children:a.some(g=>g.active)?a.map(g=>o.jsxs("div",{style:{display:g.active?"":"none"},children:[g.tokens&&o.jsx("div",{className:"previewer-component-demo-group-item-relative-token",children:o.jsx(i.Tooltip,{title:g.tokens.join(", "),children:o.jsxs("span",{children:[d.relatedTokens,": ",g.tokens.slice(0,2).join(", "),g.tokens.length>2?"...":""]})})}),g.demo]},g.key)):(p=a[0])==null?void 0:p.demo})})})},Ef=({themes:e,components:r,size:t,disabled:n,activeComponents:a,selectedTokens:l,onTokenClick:c,componentDrawer:s,hideTokens:d})=>{const[p,g]=kf();return p(o.jsx(o.Fragment,{children:Object.entries(r).reduce((u,[,f])=>u.concat(f),[]).map(u=>{const f=fa[u];if(!f)return null;const C=f.map((x,y)=>_(I({},x),{tokens:d?void 0:x.tokens,active:(!l||l.length===0)&&y===0||(l==null?void 0:l.some(m=>{var S;return(S=x.tokens)==null?void 0:S.includes(m)}))}));return o.jsx("div",{className:ee("previewer-component-demo-group",g),id:Cf(u),style:{display:!a||a.length===0||a.includes(u)?"":"none"},children:e.length>1?e.map(x=>o.jsx(i.ConfigProvider,{theme:x.config,children:o.jsx(ci,{component:u,onTokenClick:c,demos:C,disabled:n,size:t,theme:x,componentDrawer:s})},x.key)):o.jsx(ci,{component:u,onTokenClick:c,demos:C,disabled:n,size:t,theme:e[0],componentDrawer:s})},u)})}))},Tf={General:["Button","Icon","Typography"],Layout:["Divider","Grid","Space"],Navigation:["Breadcrumb","Dropdown","Menu","Pagination","Steps"],"Date Entry":["AutoComplete","Cascader","Checkbox","DatePicker","Form","Input","InputNumber","Mentions","Radio","Rate","Select","Slider","Switch","TimePicker","Transfer","TreeSelect","Upload"],"Data Display":["Avatar","Badge","Calendar","Card","Carousel","Collapse","Descriptions","Empty","Image","List","Popover","Segmented","Statistic","Table","Tabs","Tag","Timeline","Tooltip","Tree"],Feedback:["Alert","Drawer","Message","Modal","Notification","Popconfirm","Progress","Result","Skeleton","Spin"],Other:["Anchor"]},Bf=()=>o.jsxs("div",{children:[o.jsxs(i.Typography.Text,{type:"danger",onClick:e=>e.preventDefault(),children:["Hover me ",o.jsx(D.DownOutlined,{})]}),o.jsx(i.Dropdown._InternalPanelDoNotUseOrYouWillBeFired,{menu:{items:[{label:"item 1",key:"1"},{label:"a danger item",danger:!0,key:"3"},{label:"danger disabled item",danger:!0,disabled:!0,key:"2"}]}})]}),Df={demo:o.jsx(Bf,{}),tokens:["colorError","colorErrorHover","colorBgElevated"],key:"default"},si=()=>o.jsxs(i.Card,{size:"small",children:[o.jsxs(ne,{horizontal:!0,align:"start",gap:24,children:[o.jsxs(ne,{gap:24,children:[o.jsxs(ne,{horizontal:!0,align:"center",gap:12,style:{marginTop:8},children:[mn.demo,o.jsx("div",{children:la.demo}),un.demo]}),dn.demo]}),o.jsxs(ne,{align:"center",gap:28,children:[xn.demo,ea.demo]})]}),o.jsxs(ne,{horizontal:!0,gap:40,style:{marginTop:32},children:[o.jsx("div",{children:En.demo}),o.jsx("div",{children:pa.demo})]}),o.jsxs(ne,{horizontal:!0,gap:40,children:[Sn.demo,o.jsx("div",{style:{width:300},children:ha.demo}),Df.demo]})]}),br=({id:e})=>o.jsx(i.Card,{size:"small",bordered:!1,id:e,children:o.jsx(i.Space,{direction:"vertical",children:o.jsxs(i.Space,{align:"start",size:"large",children:[bn.demo,o.jsxs(i.Space,{direction:"vertical",size:"large",children:[o.jsx(i.Space,{size:"large",align:"start",children:o.jsxs(i.Space,{direction:"vertical",size:"large",children:[o.jsx("div",{children:fn.demo}),o.jsx("div",{children:o.jsx("span",{children:ra.demo})}),ia.demo,Xr.demo]})}),Dn.demo,o.jsx("div",{style:{padding:12},children:aa.demo}),o.jsx(i.Space,{size:"large",align:"start"})]})]})})});br.displayName="Primary";function Hf(){}const Af=()=>{const{token:e}=i.theme.useToken();return o.jsx(i.Input,{defaultValue:"I'm the content",suffix:o.jsx(D.CheckCircleFilled,{style:{color:e.colorSuccess}}),onChange:Hf})},Mf={demo:o.jsx(Af,{}),tokens:["colorSuccess"],key:"warning"},If=()=>o.jsx(i.Result,{status:"success",title:"Successfully Purchased Cloud Server ECS!",subTitle:"Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait.",style:{padding:24}}),Pf={demo:o.jsx(If,{}),tokens:["colorSuccess"],key:"result"},di=()=>o.jsxs(i.Card,{size:"small",children:[o.jsxs(ne,{horizontal:!0,align:"start",gap:24,children:[o.jsxs(ne,{gap:40,children:[o.jsxs(ne,{horizontal:!0,align:"center",gap:12,children:[o.jsx("div",{children:sa.demo}),Mf.demo]}),pn.demo]}),o.jsxs(ne,{align:"center",gap:28,children:[Cn.demo,oa.demo]})]}),o.jsxs(ne,{horizontal:!0,gap:40,style:{marginTop:32},children:[o.jsx("div",{children:Tn.demo}),o.jsx("div",{children:ga.demo})]}),Pf.demo]}),{Text:zf}=i.Typography,Lf=()=>o.jsx("div",{children:o.jsx(zf,{type:"warning",children:"Warning Title"})}),$f={demo:o.jsx(Lf,{}),tokens:["colorWarning"],key:"warning"},{Title:Of}=i.Typography,Ff=()=>o.jsx("div",{children:o.jsx(Of,{type:"warning",level:4,children:"Warning Text"})}),_f={demo:o.jsx(Ff,{}),tokens:["colorWarning"],key:"warning"},pi=()=>o.jsxs(i.Card,{size:"small",children:[o.jsxs(ne,{horizontal:!0,align:"start",gap:24,children:[o.jsxs(ne,{gap:24,children:[o.jsxs(ne,{horizontal:!0,gap:12,children:[o.jsx("div",{style:{width:200},children:_f.demo}),o.jsx("div",{style:{width:"100%"},children:vn.demo})]}),gn.demo]}),o.jsxs(ne,{align:"center",gap:28,children:[kn.demo,Xr.demo,o.jsxs(ne,{horizontal:!0,gap:16,children:[hn.demo,da.demo,$f.demo]})]})]}),o.jsxs(ne,{horizontal:!0,gap:24,style:{marginTop:32},children:[o.jsx("div",{children:Bn.demo}),o.jsx("div",{children:wn.demo})]}),ta.demo]}),Wf=({selectedTokens:e,theme:r,components:t,activeComponents:n,componentDrawer:a,showAll:l,style:c})=>{const[s,d]=h.useState("overview"),{token:{colorBgLayout:p}}=i.theme.useToken(),g=Pe(),u=h.useMemo(()=>l?o.jsxs(i.Space,{direction:"vertical",children:[o.jsx(br,{}),o.jsx(di,{}),o.jsx(si,{}),o.jsx(pi,{})]}):e!=null&&e.includes("colorError")?o.jsx(si,{}):e!=null&&e.includes("colorSuccess")?o.jsx(di,{}):e!=null&&e.includes("colorWarning")?o.jsx(pi,{}):o.jsx(br,{}),[e,l]);return o.jsx("div",{style:_(I({},c),{background:p,paddingBottom:24}),children:o.jsxs("div",{style:{margin:"auto",maxWidth:960},children:[o.jsx(i.Segmented,{options:[{value:"overview",label:g.overview},{value:"component",label:g.components}],value:s,onChange:d,style:{margin:"12px 0 0 12px"}}),o.jsx(i.ConfigProvider,{theme:{components:{Select:{zIndexPopup:10},DatePicker:{zIndexPopup:10},Dropdown:{zIndexPopup:10},Mentions:{zIndexPopup:10},Tooltip:{zIndexPopup:10},Popover:{zIndexPopup:10},Popconfirm:{zIndexPopup:10}}},children:s==="overview"?o.jsx("div",{style:{margin:12,maxWidth:"fit-content"},children:u}):o.jsx(Ef,{selectedTokens:e,themes:[r],components:t,activeComponents:n,componentDrawer:a,hideTokens:!0})})]})})},Xf=e=>o.jsx(i.ConfigProvider,{theme:e.theme.config,children:o.jsx(Wf,I({},e))}),Ho=(e,r,t)=>{var n;if(r.length===0)return e;if(r.length===1){if(t==null){const a=I({},e);return delete a[r[0]],a}return _(I({},e),{[r[0]]:t})}return _(I({},e),{[r[0]]:Ho((n=e[r[0]])!=null?n:{},r.slice(1),t)})},{darkAlgorithm:Nf,compactAlgorithm:Gf,defaultAlgorithm:Uf}=i.theme,qe={dark:Nf,compact:Gf,default:Uf},jf=({theme:e,defaultTheme:r,onChange:t})=>{var y;const[n,a]=h.useState(e!=null?e:r),[l,c]=h.useState(!1),s=h.useRef(n),[,d]=h.useState(0),p=()=>d(m=>m+1),g=(m,S)=>{const b=I({},m.config.token);return(l||S)&&(b.colorInfo=be(m.config).colorPrimary),_(I({},m),{config:_(I({},m.config),{token:b})})},u=m=>{e?t==null||t(g(m)):a(g(m))},f=m=>{var b,H,k;let S=I({},n.config);S=Ho(S,m,je((b=s.current)==null?void 0:b.config,m)),m[1]==="colorSettings"&&(S=Ho(S,["token","colorBgSettingsHover"],je((H=s.current)==null?void 0:H.config,["token","colorBgSettingsHover"])),S=Ho(S,["token","colorBorderSettingsHover"],je((k=s.current)==null?void 0:k.config,["token","colorBorderSettingsHover"]))),u(_(I({},n),{config:S}))},C=(m,S)=>b=>je(m,b)!==je(S,b);h.useEffect(()=>{e&&a(e)},[e]);const x=m=>{c(m),m&&a(g(n,!0))};return{theme:_(I({},n),{onThemeChange:(m,S)=>u(_(I({},n),{config:m})),onReset:f,getCanReset:C((y=s.current)==null?void 0:y.config,n.config)}),infoFollowPrimary:l,onInfoFollowPrimaryChange:x,updateRef:()=>{s.current=n,p()}}},Ye={colorTextHeading:1,colorTextLabel:2,colorTextDescription:3,colorTextDisabled:4,colorTextPlaceholder:5,colorIcon:10,colorIconHover:11,colorBorderBg:21,controlTmpOutline:22,colorFillAlter:41,colorFillContent:42,colorFillContentHover:43,controlItemBgActive:61,controlItemBgActiveHover:62,controlItemBgHover:63};function gi(e){return e&&e.sort((r,t)=>Ye[r]&&!Ye[t]?-1:!Ye[r]&&Ye[t]?1:Ye[r]&&Ye[t]?Ye[r]-Ye[t]:r.localeCompare(t))}const We={colorPrimary:["colorPrimaryBg","colorPrimaryBgHover","colorPrimaryBorder","colorPrimaryBorderHover","colorPrimaryHover","colorPrimary","colorPrimaryActive","colorPrimaryTextHover","colorPrimaryText","colorPrimaryTextActive"],colorError:["colorErrorBg","colorErrorBgHover","colorErrorBorder","colorErrorBorderHover","colorErrorHover","colorError","colorErrorActive","colorErrorTextHover","colorErrorText","colorErrorTextActive"],colorWarning:["colorWarningBg","colorWarningBgHover","colorWarningBorder","colorWarningBorderHover","colorWarningHover","colorWarning","colorWarningActive","colorWarningTextHover","colorWarningText","colorWarningTextActive"],colorSuccess:["colorSuccessBg","colorSuccessBgHover","colorSuccessBorder","colorSuccessBorderHover","colorSuccessHover","colorSuccess","colorSuccessActive","colorSuccessTextHover","colorSuccessText","colorSuccessTextActive"],colorInfo:["colorInfoBg","colorInfoBgHover","colorInfoBorder","colorInfoBorderHover","colorInfoHover","colorInfo","colorInfoActive","colorInfoTextHover","colorInfoText","colorInfoTextActive"],colorTextBase:["colorText","colorTextSecondary","colorTextTertiary","colorTextQuaternary"],colorBgBase:["colorBgContainer","colorBgElevated","colorBgLayout","colorBgSpotlight","colorBgMask","colorBorder","colorBorderSecondary","colorFill","colorFillSecondary","colorFillTertiary","colorFillQuaternary"]},Ao=(()=>{const e={},t=ii(I({},Bo)),n=Ft(_(I({},t),{override:{}}));return Object.keys(t).forEach(a=>{delete n[a]}),Object.keys(t).forEach(a=>{const l=Ft(_(I({},t),{[a]:"changed",override:{}}));Object.keys(n).forEach(c=>{n[c]!==l[c]&&(e[a]||(e[a]=[]),e[a].push(c))}),e[a]=gi(e[a])}),e})(),Xe=(()=>{const e={};return Object.keys(Bo).forEach(r=>{var a;const t=r,n=Ao[t]||[];(a=We[t])==null||a.forEach(l=>{var c;n.push(...(c=Ao[l])!=null?c:[])}),n.length&&(e[r]=gi(Array.from(new Set(n))))}),e})(),_t=[{name:"颜色",nameEn:"Color",desc:"",descEn:"",groups:[{key:"brandColor",type:"Color",name:"品牌色",nameEn:"Brand Color",desc:"品牌色是体现产品特性和传播理念最直观的视觉元素之一。在你完成品牌主色的选取之后,我们会自动帮你生成一套完整的色板,并赋予它们有效的设计语义。",descEn:"Brand color is one of the most direct visual elements to reflect the characteristics and communication of the product. After you have selected the brand color, we will automatically generate a complete color palette and assign it effective design semantics.",seedToken:["colorPrimary"],mapToken:We.colorPrimary,aliasToken:Xe.colorPrimary},{key:"successColor",type:"Color",name:"成功色",nameEn:"Success Color",desc:"用于表示操作成功的 Token 序列,如 Result、Progress 等组件会使用该组梯度变量。",descEn:"Used to represent the token sequence of operation success, such as Result, Progress and other components will use these map tokens.",seedToken:["colorSuccess"],mapToken:We.colorSuccess,aliasToken:Xe.colorSuccess},{key:"warningColor",type:"Color",name:"警戒色",nameEn:"Warning Color",desc:"用于表示操作警告的 Token 序列,如 Notification、 Alert等警告类组件或 Input 输入类等组件会使用该组梯度变量。",descEn:"Used to represent the warning map token, such as Notification, Alert, etc. Alert or Control component(like Input) will use these map tokens.",seedToken:["colorWarning"],mapToken:We.colorWarning,aliasToken:Xe.colorWarning},{key:"errorColor",type:"Color",name:"错误色",nameEn:"Error Color",desc:"用于表示操作失败的 Token 序列,如失败按钮、错误状态提示(Result)组件等。",descEn:"Used to represent the visual elements of the operation failure, such as the error Button, error Result component, etc.",seedToken:["colorError"],mapToken:We.colorError,aliasToken:Xe.colorError},{key:"infoColor",type:"Color",name:"信息色",nameEn:"Info Color",desc:"用于表示操作信息的 Token 序列,如 Alert 、Tag、 Progress 等组件都有用到该组梯度变量。",descEn:"Used to represent the operation information of the Token sequence, such as Alert, Tag, Progress, and other components use these map tokens.",seedToken:["colorInfo"],mapToken:We.colorInfo,aliasToken:Xe.colorInfo},{key:"neutralColor",type:"Color",name:"中性色",nameEn:"Neutral Color",desc:"中性色主要被大量的应用在界面的文字、背景、边框和填充的 4 种场景。合理地选择中性色能够令页面信息具备良好的主次关系,助力阅读体验。",descEn:"Neutral color is mainly applied to the four scenarios of text, background, border and fill in the interface. Reasonable selection of neutral colors can make the page information have a good primary and secondary relationship, and help the reading experience.",seedToken:["colorTextBase","colorBgBase"],mapToken:(nl=We.colorTextBase)==null?void 0:nl.concat((tl=We.colorBgBase)!=null?tl:[]),aliasToken:(il=Xe.colorTextBase)==null?void 0:il.concat((al=Xe.colorBgBase)!=null?al:[]),aliasTokenDescription:"你可以利用 Alias Token 来精准控制部分组件的效果。例如 Input 、InputNumber、Select 等Control 类组件都共享了相同的 controlXX token 。只需修改值,即可实现不改变 Button 的情况下,修改 Control 类组件的效果。",mapTokenGroups:["text","border","fill","background"]},{key:"headerColor",type:"Color",name:"导航色",nameEn:"Header Color",desc:"只会影响页面顶部的导航栏",descEn:"Only affects the navigation bar at the top of the page.",seedToken:["colorBgHeader","colorBgHeaderMenuHover","colorBgHeaderMenuActive","colorTextHeaderMenu","colorTextHeaderMenuHover","colorTextHeaderMenuActive"],seedTokenAlpha:!0},{key:"settingsColor",type:"Color",name:"UI 配置色",nameEn:"UI Settings Color",desc:"用于更改 UI 配置组件的颜色",descEn:"Used to change the color of the UI Settings component.",seedToken:["colorSettings"],seedTokenAlpha:!0,mapToken:["colorBgSettingsHover","colorBorderSettingsHover"]}]},{name:"尺寸",nameEn:"Size",desc:"",descEn:"",groups:[{key:"font",name:"文字",nameEn:"Font",desc:"",descEn:"",seedToken:["fontSize"],groups:[{key:"fontSize",type:"FontSize",name:"字号",nameEn:"Font Size",desc:"",descEn:"",mapToken:["fontSize","fontSizeSM","fontSizeLG","fontSizeXL","fontSizeHeading1","fontSizeHeading2","fontSizeHeading3","fontSizeHeading4","fontSizeHeading5"],aliasToken:["fontSizeIcon"]},{key:"lineHeight",type:"LineHeight",name:"行高",nameEn:"Line Height",desc:"",descEn:"",mapToken:["lineHeight","lineHeightSM","lineHeightLG","lineHeightHeading1","lineHeightHeading2","lineHeightHeading3","lineHeightHeading4","lineHeightHeading5"]}]},{key:"spacing",name:"间距",nameEn:"Spacing",desc:"",descEn:"",seedToken:["sizeStep","sizeUnit"],groups:[{key:"margin",type:"Margin",name:"外间距",nameEn:"Margin",desc:"",descEn:"",mapToken:["marginXXS","marginXS","marginSM","margin","marginMD","marginLG","marginXL","marginXXL","marginBlock"]},{key:"padding",type:"Padding",name:"内间距",nameEn:"Padding",desc:"",descEn:"",mapToken:["paddingXXS","paddingXS","paddingSM","padding","paddingMD","paddingLG","paddingXL","paddingPageHorizontal","paddingPageVertical","paddingPopupHorizontal","paddingPopupVertical"],aliasToken:["paddingContentHorizontal","paddingContentVertical","paddingContentHorizontalSM","paddingContentVerticalSM","paddingContentHorizontalLG","paddingContentVerticalLG"]}]}]},{name:"风格",nameEn:"Style",desc:"",descEn:"",groups:[{key:"borderRadius",type:"BorderRadius",name:"圆角",nameEn:"Border Radius",desc:"",descEn:"",seedToken:["borderRadius"],mapToken:["borderRadius","borderRadiusSM","borderRadiusLG","borderRadiusXS","borderRadiusBlock"]},{key:"boxShadow",type:"BoxShadow",name:"阴影",nameEn:"Shadow",desc:"",descEn:"",mapToken:["boxShadow","boxShadowSecondary"]}]},{name:"其他",nameEn:"Others",desc:"",descEn:"",groups:[{key:"other",type:"other",name:"其他",nameEn:"Others",desc:"",descEn:"",seedToken:["wireframe"]}]}],uo={boxShadow:{name:"一级阴影",nameEn:"Box shadow",desc:"控制元素阴影样式。",descEn:"Control the box shadow style of an element.",type:"string",source:"alias"},boxShadowSecondary:{name:"二级阴影",nameEn:"Secondary box shadow",desc:"控制元素二级阴影样式。",descEn:"Control the secondary box shadow style of an element.",type:"string",source:"alias"},boxShadowTertiary:{name:"三级阴影",nameEn:"Tertiary box shadow",desc:"控制元素三级盒子阴影样式。",descEn:"Control the tertiary box shadow style of an element.",type:"string",source:"alias"},colorBgContainerDisabled:{name:"容器禁用态下的背景色",nameEn:"Disabled container background color",desc:"控制容器在禁用状态下的背景色。",descEn:"Control the background color of container in disabled state.",type:"string",source:"alias"},colorBgTextActive:{name:"文本激活态背景色",nameEn:"Text active background color",desc:"控制文本在激活状态下的背景色。",descEn:"Control the background color of text in active state.",type:"string",source:"alias"},colorBgTextHover:{name:"文本悬停态背景色",nameEn:"Text hover background color",desc:"控制文本在悬停状态下的背景色。",descEn:"Control the background color of text in hover state.",type:"string",source:"alias"},colorBorderBg:{name:"背景边框颜色",nameEn:"Background border color",desc:"控制元素背景边框的颜色。",descEn:"Control the color of background border of element.",type:"string",source:"alias"},colorErrorOutline:{name:"错误状态下的 Outline 颜色",nameEn:"Error outline color",desc:"控制输入组件错误状态下的外轮廓线颜色。",descEn:"Control the outline color of input component in error state.",type:"string",source:"alias"},colorFillAlter:{name:"替代背景色",nameEn:"Alternative background color",desc:"控制元素替代背景色。",descEn:"Control the alternative background color of element.",type:"string",source:"alias"},colorFillContent:{name:"内容区域背景色",nameEn:"Background color of content area",desc:"控制内容区域的背景色。",descEn:"Control the background color of content area.",type:"string",source:"alias"},colorFillContentHover:{name:"内容区域背景色(悬停)",nameEn:"Background color of content area (hover)",desc:"控制内容区域背景色在鼠标悬停时的样式。",descEn:"Control the style of background color of content area when mouse hovers over it.",type:"string",source:"alias"},colorHighlight:{name:"高亮颜色",nameEn:"Highlight color",desc:"控制页面元素高亮时的颜色。",descEn:"Control the color of page element when highlighted.",type:"string",source:"alias"},colorIcon:{name:`弱操作图标颜色
|
|
80
|
-
*`,nameEn:`Weak action icon color
|
|
81
|
-
*`,desc:`控制弱操作图标的颜色,例如 allowClear 或 Alert 关闭按钮。
|
|
82
|
-
*`,descEn:"Weak action. Such as `allowClear` or Alert close button",type:"string",source:"alias"},colorIconHover:{name:"弱操作图标悬浮态颜色",nameEn:"Weak action icon hover color",desc:"控制弱操作图标在悬浮状态下的颜色,例如 allowClear 或 Alert 关闭按钮。",descEn:"Weak action hover color. Such as `allowClear` or Alert close button",type:"string",source:"alias"},colorLink:{name:"超链接颜色",nameEn:"Hyperlink color",desc:"控制超链接的颜色。",descEn:"Control the color of hyperlink.",type:"string",source:"alias"},colorLinkActive:{name:"超链接激活颜色",nameEn:"Hyperlink active color",desc:"控制超链接被点击时的颜色。",descEn:"Control the color of hyperlink when clicked.",type:"string",source:"alias"},colorLinkHover:{name:"超链接悬浮颜色",nameEn:"Hyperlink hover color",desc:"控制超链接悬浮时的颜色。",descEn:"Control the color of hyperlink when hovering.",type:"string",source:"alias"},colorSplit:{name:"分割线颜色",nameEn:"Separator color",desc:"用于作为分割线的颜色,此颜色和 colorBorderSecondary 的颜色一致,但是用的是透明色。",descEn:"Used as the color of separator, this color is the same as colorBorderSecondary but with transparency.",type:"string",source:"alias"},colorTextDescription:{name:"文本描述字体颜色",nameEn:"Text description font color",desc:"控制文本描述字体颜色。",descEn:"Control the font color of text description.",type:"string",source:"alias"},colorTextDisabled:{name:"禁用字体颜色",nameEn:"Disabled text color",desc:"控制禁用状态下的字体颜色。",descEn:"Control the color of text in disabled state.",type:"string",source:"alias"},colorTextHeading:{name:"标题字体颜色",nameEn:"Heading font color",desc:"控制标题字体颜色。",descEn:"Control the font color of heading.",type:"string",source:"alias"},colorTextLabel:{name:"文本标签字体颜色",nameEn:"Text label font color",desc:"控制文本标签字体颜色。",descEn:"Control the font color of text label.",type:"string",source:"alias"},colorTextLightSolid:{name:"固定文本高亮颜色",nameEn:"Fixed text highlight color",desc:"控制带背景色的文本,例如 Primary Button 组件中的文本高亮颜色。",descEn:"Control the highlight color of text with background color, such as the text in Primary Button components.",type:"string",source:"alias"},colorTextPlaceholder:{name:"占位文本颜色",nameEn:"Placeholder text color",desc:"控制占位文本的颜色。",descEn:"Control the color of placeholder text.",type:"string",source:"alias"},colorWarningOutline:{name:"警告状态下的 Outline 颜色",nameEn:"Warning outline color",desc:"控制输入组件警告状态下的外轮廓线颜色。",descEn:"Control the outline color of input component in warning state.",type:"string",source:"alias"},controlInteractiveSize:{name:"控制组件的交互大小",nameEn:"Interactive size of control component",desc:"控制组件的交互大小。",descEn:"Control the interactive size of control component.",type:"number",source:"alias"},controlItemBgActive:{name:"控制组件项在激活状态下的背景颜色",nameEn:"Background color of control component item when active",desc:"控制组件项在激活状态下的背景颜色。",descEn:"Control the background color of control component item when active.",type:"string",source:"alias"},controlItemBgActiveDisabled:{name:"控制组件项在禁用状态下的激活背景颜色",nameEn:"Background color of control component item when active and disabled",desc:"控制组件项在禁用状态下的激活背景颜色。",descEn:"Control the background color of control component item when active and disabled.",type:"string",source:"alias"},controlItemBgActiveHover:{name:"控制组件项在鼠标悬浮且激活状态下的背景颜色",nameEn:"Background color of control component item when hovering and active",desc:"控制组件项在鼠标悬浮且激活状态下的背景颜色。",descEn:"Control the background color of control component item when hovering and active.",type:"string",source:"alias"},controlItemBgHover:{name:"控制组件项在鼠标悬浮时的背景颜色",nameEn:"Background color of control component item when hovering",desc:"控制组件项在鼠标悬浮时的背景颜色。",descEn:"Control the background color of control component item when hovering.",type:"string",source:"alias"},controlOutline:{name:"输入组件的 Outline 颜色",nameEn:"Input component outline color",desc:"控制输入组件的外轮廓线颜色。",descEn:"Control the outline color of input component.",type:"string",source:"alias"},controlOutlineWidth:{name:"输入组件的外轮廓线宽度",nameEn:"Input component outline width",desc:"控制输入组件的外轮廓线宽度。",descEn:"Control the outline width of input component.",type:"number",source:"alias"},controlPaddingHorizontal:{name:"控制水平内间距",nameEn:"Control horizontal padding",desc:"控制元素水平内间距。",descEn:"Control the horizontal padding of an element.",type:"number",source:"alias"},controlPaddingHorizontalSM:{name:"控制中小尺寸水平内间距",nameEn:"Control horizontal padding with a small-medium size",desc:"控制元素中小尺寸水平内间距。",descEn:"Control the horizontal padding of an element with a small-medium size.",type:"number",source:"alias"},controlTmpOutline:{name:"",nameEn:"",desc:"默认样式的 Outline 颜色",descEn:"Default style outline color.",type:"string",source:"alias"},fontSizeIcon:{name:"选择器、级联选择器等中的操作图标字体大小",nameEn:"Operation icon font size in Select, Cascader, etc.",desc:"控制选择器、级联选择器等中的操作图标字体大小。正常情况下与 fontSizeSM 相同。",descEn:"Control the font size of operation icon in Select, Cascader, etc. Normally same as fontSizeSM.",type:"number",source:"alias"},fontWeightStrong:{name:"标题类组件(如 h1、h2、h3)或选中项的字体粗细",nameEn:"Font weight for heading components (such as h1, h2, h3) or selected item",desc:"控制标题类组件(如 h1、h2、h3)或选中项的字体粗细。",descEn:"Control the font weight of heading components (such as h1, h2, h3) or selected item.",type:"number",source:"alias"},lineWidthFocus:{name:"线条宽度(聚焦态)",nameEn:"Line width(focus state)",desc:"控制线条的宽度,当组件处于聚焦态时。",descEn:"Control the width of the line when the component is in focus state.",type:"number",source:"alias"},linkDecoration:{name:"链接文本装饰",nameEn:"Link text decoration",desc:"控制链接文本的装饰样式。",descEn:"Control the text decoration style of a link.",type:"undefined | TextDecoration<string | number>",source:"alias"},linkFocusDecoration:{name:"链接聚焦时文本装饰",nameEn:"Link text decoration on focus",desc:"控制链接聚焦时文本的装饰样式。",descEn:"Control the text decoration style of a link on focus.",type:"undefined | TextDecoration<string | number>",source:"alias"},linkHoverDecoration:{name:"链接鼠标悬浮时文本装饰",nameEn:"Link text decoration on mouse hover",desc:"控制链接鼠标悬浮时文本的装饰样式。",descEn:"Control the text decoration style of a link on mouse hover.",type:"undefined | TextDecoration<string | number>",source:"alias"},margin:{name:"外边距",nameEn:"Margin",desc:"控制元素外边距,中等尺寸。",descEn:"Control the margin of an element, with a medium size.",type:"number",source:"alias"},marginLG:{name:"外边距 LG",nameEn:"Margin LG",desc:"控制元素外边距,大尺寸。",descEn:"Control the margin of an element, with a large size.",type:"number",source:"alias"},marginMD:{name:"外边距 MD",nameEn:"Margin MD",desc:"控制元素外边距,中大尺寸。",descEn:"Control the margin of an element, with a medium-large size.",type:"number",source:"alias"},marginSM:{name:"外边距 SM",nameEn:"Margin SM",desc:"控制元素外边距,中小尺寸。",descEn:"Control the margin of an element, with a medium-small size.",type:"number",source:"alias"},marginXL:{name:"外边距 XL",nameEn:"Margin XL",desc:"控制元素外边距,超大尺寸。",descEn:"Control the margin of an element, with an extra-large size.",type:"number",source:"alias"},marginXS:{name:"外边距 XS",nameEn:"Margin XS",desc:"控制元素外边距,小尺寸。",descEn:"Control the margin of an element, with a small size.",type:"number",source:"alias"},marginXXL:{name:"外边距 XXL",nameEn:"Margin XXL",desc:"控制元素外边距,最大尺寸。",descEn:"Control the margin of an element, with the largest size.",type:"number",source:"alias"},marginXXS:{name:"外边距 XXS",nameEn:"Margin XXS",desc:"控制元素外边距,最小尺寸。",descEn:"Control the margin of an element, with the smallest size.",type:"number",source:"alias"},opacityLoading:{name:"加载状态透明度",nameEn:"Loading opacity",desc:"控制加载状态的透明度。",descEn:"Control the opacity of the loading state.",type:"number",source:"alias"},padding:{name:"内间距",nameEn:"Padding",desc:"控制元素的内间距。",descEn:"Control the padding of the element.",type:"number",source:"alias"},paddingContentHorizontal:{name:"内容水平内间距",nameEn:"Content horizontal padding",desc:"控制内容元素水平内间距。",descEn:"Control the horizontal padding of content element.",type:"number",source:"alias"},paddingContentHorizontalLG:{name:"内容水平内间距(LG)",nameEn:"Content horizontal padding (LG)",desc:"控制内容元素水平内间距,适用于大屏幕设备。",descEn:"Control the horizontal padding of content element, suitable for large screen devices.",type:"number",source:"alias"},paddingContentHorizontalSM:{name:"内容水平内间距(SM)",nameEn:"Content horizontal padding (SM)",desc:"控制内容元素水平内间距,适用于小屏幕设备。",descEn:"Control the horizontal padding of content element, suitable for small screen devices.",type:"number",source:"alias"},paddingContentVertical:{name:"内容垂直内间距",nameEn:"Content vertical padding",desc:"控制内容元素垂直内间距。",descEn:"Control the vertical padding of content element.",type:"number",source:"alias"},paddingContentVerticalLG:{name:"内容垂直内间距(LG)",nameEn:"Content vertical padding (LG)",desc:"控制内容元素垂直内间距,适用于大屏幕设备。",descEn:"Control the vertical padding of content element, suitable for large screen devices.",type:"number",source:"alias"},paddingContentVerticalSM:{name:"内容垂直内间距(SM)",nameEn:"Content vertical padding (SM)",desc:"控制内容元素垂直内间距,适用于小屏幕设备。",descEn:"Control the vertical padding of content element, suitable for small screen devices.",type:"number",source:"alias"},paddingLG:{name:"大内间距",nameEn:"Large padding",desc:"控制元素的大内间距。",descEn:"Control the large padding of the element.",type:"number",source:"alias"},paddingMD:{name:"中等内间距",nameEn:"Medium padding",desc:"控制元素的中等内间距。",descEn:"Control the medium padding of the element.",type:"number",source:"alias"},paddingSM:{name:"小内间距",nameEn:"Small padding",desc:"控制元素的小内间距。",descEn:"Control the small padding of the element.",type:"number",source:"alias"},paddingXL:{name:"特大内间距",nameEn:"Extra large padding",desc:"控制元素的特大内间距。",descEn:"Control the extra large padding of the element.",type:"number",source:"alias"},paddingXS:{name:"特小内间距",nameEn:"Extra small padding",desc:"控制元素的特小内间距。",descEn:"Control the extra small padding of the element.",type:"number",source:"alias"},paddingXXS:{name:"极小内间距",nameEn:"Extra extra small padding",desc:"控制元素的极小内间距。",descEn:"Control the extra extra small padding of the element.",type:"number",source:"alias"},screenLG:{name:"屏幕宽度(像素) - 大屏幕",nameEn:"Screen width (pixels) - Large screens",desc:"控制大屏幕的屏幕宽度。",descEn:"Control the screen width of large screens.",type:"number",source:"alias"},screenLGMax:{name:"屏幕宽度(像素) - 大屏幕最大值",nameEn:"Screen width (pixels) - Large screens maximum value",desc:"控制大屏幕的最大宽度。",descEn:"Control the maximum width of large screens.",type:"number",source:"alias"},screenLGMin:{name:"屏幕宽度(像素) - 大屏幕最小值",nameEn:"Screen width (pixels) - Large screens minimum value",desc:"控制大屏幕的最小宽度。",descEn:"Control the minimum width of large screens.",type:"number",source:"alias"},screenMD:{name:"屏幕宽度(像素) - 中等屏幕",nameEn:"Screen width (pixels) - Medium screens",desc:"控制中等屏幕的屏幕宽度。",descEn:"Control the screen width of medium screens.",type:"number",source:"alias"},screenMDMax:{name:"屏幕宽度(像素) - 中等屏幕最大值",nameEn:"Screen width (pixels) - Medium screens maximum value",desc:"控制中等屏幕的最大宽度。",descEn:"Control the maximum width of medium screens.",type:"number",source:"alias"},screenMDMin:{name:"屏幕宽度(像素) - 中等屏幕最小值",nameEn:"Screen width (pixels) - Medium screens minimum value",desc:"控制中等屏幕的最小宽度。",descEn:"Control the minimum width of medium screens.",type:"number",source:"alias"},screenSM:{name:"屏幕宽度(像素) - 小屏幕",nameEn:"Screen width (pixels) - Small screens",desc:"控制小屏幕的屏幕宽度。",descEn:"Control the screen width of small screens.",type:"number",source:"alias"},screenSMMax:{name:"屏幕宽度(像素) - 小屏幕最大值",nameEn:"Screen width (pixels) - Small screens maximum value",desc:"控制小屏幕的最大宽度。",descEn:"Control the maximum width of small screens.",type:"number",source:"alias"},screenSMMin:{name:"屏幕宽度(像素) - 小屏幕最小值",nameEn:"Screen width (pixels) - Small screens minimum value",desc:"控制小屏幕的最小宽度。",descEn:"Control the minimum width of small screens.",type:"number",source:"alias"},screenXL:{name:"屏幕宽度(像素) - 超大屏幕",nameEn:"Screen width (pixels) - Extra large screens",desc:"控制超大屏幕的屏幕宽度。",descEn:"Control the screen width of extra large screens.",type:"number",source:"alias"},screenXLMax:{name:"屏幕宽度(像素) - 超大屏幕最大值",nameEn:"Screen width (pixels) - Extra large screens maximum value",desc:"控制超大屏幕的最大宽度。",descEn:"Control the maximum width of extra large screens.",type:"number",source:"alias"},screenXLMin:{name:"屏幕宽度(像素) - 超大屏幕最小值",nameEn:"Screen width (pixels) - Extra large screens minimum value",desc:"控制超大屏幕的最小宽度。",descEn:"Control the minimum width of extra large screens.",type:"number",source:"alias"},screenXS:{name:"屏幕宽度(像素) - 超小屏幕",nameEn:"Screen width (pixels) - Extra small screens",desc:"控制超小屏幕的屏幕宽度。",descEn:"Control the screen width of extra small screens.",type:"number",source:"alias"},screenXSMax:{name:"屏幕宽度(像素) - 超小屏幕最大值",nameEn:"Screen width (pixels) - Extra small screens maximum value",desc:"控制超小屏幕的最大宽度。",descEn:"Control the maximum width of extra small screens.",type:"number",source:"alias"},screenXSMin:{name:"屏幕宽度(像素) - 超小屏幕最小值",nameEn:"Screen width (pixels) - Extra small screens minimum value",desc:"控制超小屏幕的最小宽度。",descEn:"Control the minimum width of extra small screens.",type:"number",source:"alias"},screenXXL:{name:"屏幕宽度(像素) - 超超大屏幕",nameEn:"Screen width (pixels) - Extra extra large screens",desc:"控制超超大屏幕的屏幕宽度。",descEn:"Control the screen width of extra extra large screens.",type:"number",source:"alias"},screenXXLMin:{name:"屏幕宽度(像素) - 超超大屏幕最小值",nameEn:"Screen width (pixels) - Extra extra large screens minimum value",desc:"控制超超大屏幕的最小宽度。",descEn:"Control the minimum width of extra extra large screens.",type:"number",source:"alias"},borderRadiusLG:{name:"LG号圆角",nameEn:"LG Border Radius",desc:"LG号圆角,用于组件中的一些大圆角,如 Card、Modal 等一些组件样式。",descEn:"LG size border radius, used in some large border radius components, such as Card, Modal and other components.",type:"number",source:"map"},borderRadiusOuter:{name:"外部圆角",nameEn:"Outer Border Radius",desc:"外部圆角",descEn:"Outer border radius",type:"number",source:"map"},borderRadiusSM:{name:"SM号圆角",nameEn:"SM Border Radius",desc:"SM号圆角,用于组件小尺寸下的圆角,如 Button、Input、Select 等输入类控件在 small size 下的圆角",descEn:"SM size border radius, used in small size components, such as Button, Input, Select and other input components in small size",type:"number",source:"map"},borderRadiusXS:{name:"XS号圆角",nameEn:"XS Border Radius",desc:"XS号圆角,用于组件中的一些小圆角,如 Segmented 、Arrow 等一些内部圆角的组件样式中。",descEn:"XS size border radius, used in some small border radius components, such as Segmented, Arrow and other components with small border radius.",type:"number",source:"map"},colorBgContainer:{name:"组件容器背景色",nameEn:"",desc:"组件的容器背景色,例如:默认按钮、输入框等。务必不要将其与 `colorBgElevated` 混淆。",descEn:"Container background color, e.g: default button, input box, etc. Be sure not to confuse this with `colorBgElevated`.",type:"string",source:"map"},colorBgElevated:{name:"浮层容器背景色",nameEn:"",desc:"浮层容器背景色,在暗色模式下该 token 的色值会比 `colorBgContainer` 要亮一些。例如:模态框、弹出框、菜单等。",descEn:"Container background color of the popup layer, in dark mode the color value of this token will be a little brighter than `colorBgContainer`. E.g: modal, pop-up, menu, etc.",type:"string",source:"map"},colorBgLayout:{name:"布局背景色",nameEn:"",desc:"该色用于页面整体布局的背景色,只有需要在页面中处于 B1 的视觉层级时才会使用该 token,其他用法都是错误的",descEn:"This color is used for the background color of the overall layout of the page. This token will only be used when it is necessary to be at the B1 visual level in the page. Other usages are wrong.",type:"string",source:"map"},colorBgMask:{name:"浮层的背景蒙层颜色",nameEn:"Background color of the mask",desc:"浮层的背景蒙层颜色,用于遮罩浮层下面的内容,Modal、Drawer 等组件的蒙层使用的是该 token",descEn:"The background color of the mask, used to cover the content below the mask, Modal, Drawer and other components use this token",type:"string",source:"map"},colorBgSpotlight:{name:"引起注意的背景色",nameEn:"",desc:"该色用于引起用户强烈关注注意的背景色,目前只用在 Tooltip 的背景色上。",descEn:"This color is used to draw the user's strong attention to the background color, and is currently only used in the background color of Tooltip.",type:"string",source:"map"},colorBorder:{name:"一级边框色",nameEn:"Default Border Color",desc:"默认使用的边框颜色, 用于分割不同的元素,例如:表单的分割线、卡片的分割线等。",descEn:"Default border color, used to separate different elements, such as: form separator, card separator, etc.",type:"string",source:"map"},colorBorderSecondary:{name:"二级边框色",nameEn:"Secondary Border Color",desc:"比默认使用的边框色要浅一级,此颜色和 colorSplit 的颜色一致。使用的是实色。",descEn:"Slightly lighter than the default border color, this color is the same as `colorSplit`. Solid color is used.",type:"string",source:"map"},colorErrorActive:{name:"错误色的深色激活态",nameEn:"Error active color",desc:"错误色的深色激活态",descEn:"The active state of the error color.",type:"string",source:"map"},colorErrorBg:{name:"错误色的浅色背景颜色",nameEn:"Error background color",desc:"错误色的浅色背景颜色",descEn:"The background color of the error state.",type:"string",source:"map"},colorErrorBgHover:{name:"错误色的浅色背景色悬浮态",nameEn:"Error background color hover state",desc:"错误色的浅色背景色悬浮态",descEn:"The hover state background color of the error state.",type:"string",source:"map"},colorErrorBorder:{name:"错误色的描边色",nameEn:"Error border color",desc:"错误色的描边色",descEn:"The border color of the error state.",type:"string",source:"map"},colorErrorBorderHover:{name:"错误色的描边色悬浮态",nameEn:"Error border color hover state",desc:"错误色的描边色悬浮态",descEn:"The hover state border color of the error state.",type:"string",source:"map"},colorErrorHover:{name:"错误色的深色悬浮态",nameEn:"Error hover color",desc:"错误色的深色悬浮态",descEn:"The hover state of the error color.",type:"string",source:"map"},colorErrorText:{name:"错误色的文本默认态",nameEn:"Error text default state",desc:"错误色的文本默认态",descEn:"The default state of the text in the error color.",type:"string",source:"map"},colorErrorTextActive:{name:"错误色的文本激活态",nameEn:"Error text active state",desc:"错误色的文本激活态",descEn:"The active state of the text in the error color.",type:"string",source:"map"},colorErrorTextHover:{name:"错误色的文本悬浮态",nameEn:"Error text hover state",desc:"错误色的文本悬浮态",descEn:"The hover state of the text in the error color.",type:"string",source:"map"},colorFill:{name:"一级填充色",nameEn:"",desc:"最深的填充色,用于拉开与二、三级填充色的区分度,目前只用在 Slider 的 hover 效果。",descEn:"The darkest fill color is used to distinguish between the second and third level of fill color, and is currently only used in the hover effect of Slider.",type:"string",source:"map"},colorFillQuaternary:{name:"四级填充色",nameEn:"",desc:"最弱一级的填充色,适用于不易引起注意的色块,例如斑马纹、区分边界的色块等。",descEn:"The weakest level of fill color is suitable for color blocks that are not easy to attract attention, such as zebra stripes, color blocks that distinguish boundaries, etc.",type:"string",source:"map"},colorFillSecondary:{name:"二级填充色",nameEn:"",desc:"二级填充色可以较为明显地勾勒出元素形体,如 Rate、Skeleton 等。也可以作为三级填充色的 Hover 状态,如 Table 等。",descEn:"The second level of fill color can outline the shape of the element more clearly, such as Rate, Skeleton, etc. It can also be used as the Hover state of the third level of fill color, such as Table, etc.",type:"string",source:"map"},colorFillTertiary:{name:"三级填充色",nameEn:"",desc:"三级填充色用于勾勒出元素形体的场景,如 Slider、Segmented 等。如无强调需求的情况下,建议使用三级填色作为默认填色。",descEn:"The third level of fill color is used to outline the shape of the element, such as Slider, Segmented, etc. If there is no emphasis requirement, it is recommended to use the third level of fill color as the default fill color.",type:"string",source:"map"},colorInfoActive:{name:"信息色的深色激活态",nameEn:"Active state of dark color of information color",desc:"信息色的深色激活态。",descEn:"Active state of dark color of information color.",type:"string",source:"map"},colorInfoBg:{name:"信息色的浅色背景颜色",nameEn:"Light background color of information color",desc:"信息色的浅色背景颜色。",descEn:"Light background color of information color.",type:"string",source:"map"},colorInfoBgHover:{name:"信息色的浅色背景色悬浮态",nameEn:"Hover state of light background color of information color",desc:"信息色的浅色背景色悬浮态。",descEn:"Hover state of light background color of information color.",type:"string",source:"map"},colorInfoBorder:{name:"信息色的描边色",nameEn:"Border color of information color",desc:"信息色的描边色。",descEn:"Border color of information color.",type:"string",source:"map"},colorInfoBorderHover:{name:"信息色的描边色悬浮态",nameEn:"Hover state of border color of information color",desc:"信息色的描边色悬浮态。",descEn:"Hover state of border color of information color.",type:"string",source:"map"},colorInfoHover:{name:"信息色的深色悬浮态",nameEn:"Hover state of dark color of information color",desc:"信息色的深色悬浮态。",descEn:"Hover state of dark color of information color.",type:"string",source:"map"},colorInfoText:{name:"信息色的文本默认态",nameEn:"Default state of text color of information color",desc:"信息色的文本默认态。",descEn:"Default state of text color of information color.",type:"string",source:"map"},colorInfoTextActive:{name:"信息色的文本激活态",nameEn:"Active state of text color of information color",desc:"信息色的文本激活态。",descEn:"Active state of text color of information color.",type:"string",source:"map"},colorInfoTextHover:{name:"信息色的文本悬浮态",nameEn:"Hover state of text color of information color",desc:"信息色的文本悬浮态。",descEn:"Hover state of text color of information color.",type:"string",source:"map"},colorPrimaryActive:{name:"主色激活态",nameEn:"Active state of primary color",desc:"主色梯度下的深色激活态。",descEn:"Dark active state under the main color gradient.",type:"string",source:"map"},colorPrimaryBg:{name:"主色浅色背景色",nameEn:"Light background color of primary color",desc:"主色浅色背景颜色,一般用于视觉层级较弱的选中状态。",descEn:"Light background color of primary color, usually used for weak visual level selection state.",type:"string",source:"map"},colorPrimaryBgHover:{name:"主色浅色背景悬浮态",nameEn:"Hover state of light background color of primary color",desc:"与主色浅色背景颜色相对应的悬浮态颜色。",descEn:"The hover state color corresponding to the light background color of the primary color.",type:"string",source:"map"},colorPrimaryBorder:{name:"主色描边色",nameEn:"Border color of primary color",desc:"主色梯度下的描边用色,用在 Slider 等组件的描边上。",descEn:"The stroke color under the main color gradient, used on the stroke of components such as Slider.",type:"string",source:"map"},colorPrimaryBorderHover:{name:"主色描边色悬浮态",nameEn:"Hover state of border color of primary color",desc:"主色梯度下的描边用色的悬浮态,Slider 、Button 等组件的描边 Hover 时会使用。",descEn:"The hover state of the stroke color under the main color gradient, which will be used when the stroke Hover of components such as Slider and Button.",type:"string",source:"map"},colorPrimaryHover:{name:"主色悬浮态",nameEn:"Hover state of primary color",desc:"主色梯度下的悬浮态。",descEn:"Hover state under the main color gradient.",type:"string",source:"map"},colorPrimaryText:{name:"主色文本",nameEn:"Text color of primary color",desc:"主色梯度下的文本颜色。",descEn:"Text color under the main color gradient.",type:"string",source:"map"},colorPrimaryTextActive:{name:"主色文本激活态",nameEn:"Active state of text color of primary color",desc:"主色梯度下的文本激活态。",descEn:"Active state of text color under the main color gradient.",type:"string",source:"map"},colorPrimaryTextHover:{name:"主色文本悬浮态",nameEn:"Hover state of text color of primary color",desc:"主色梯度下的文本悬浮态。",descEn:"Hover state of text color under the main color gradient.",type:"string",source:"map"},colorSuccessActive:{name:"成功色的深色激活态",nameEn:"Active State Color of Dark Success",desc:"成功色的深色激活态",descEn:"Active state color of dark success color",type:"string",source:"map"},colorSuccessBg:{name:"成功色的浅色背景颜色",nameEn:"Light Background Color of Success Color",desc:"成功色的浅色背景颜色,用于 Tag 和 Alert 的成功态背景色",descEn:"Light background color of success color, used for Tag and Alert success state background color",type:"string",source:"map"},colorSuccessBgHover:{name:"成功色的浅色背景色悬浮态",nameEn:"Hover State Color of Light Success Background",desc:"成功色浅色背景颜色,一般用于视觉层级较弱的选中状态,不过 antd 目前没有使用到该 token",descEn:"Light background color of success color, but antd does not use this token currently",type:"string",source:"map"},colorSuccessBorder:{name:"成功色的描边色",nameEn:"Border Color of Success Color",desc:"成功色的描边色,用于 Tag 和 Alert 的成功态描边色",descEn:"Border color of success color, used for Tag and Alert success state border color",type:"string",source:"map"},colorSuccessBorderHover:{name:"成功色的描边色悬浮态",nameEn:"Hover State Color of Success Border",desc:"成功色的描边色悬浮态",descEn:"Hover state color of success color border",type:"string",source:"map"},colorSuccessHover:{name:"成功色的深色悬浮态",nameEn:"Hover State Color of Dark Success",desc:"成功色的深色悬浮态",descEn:"Hover state color of dark success color",type:"string",source:"map"},colorSuccessText:{name:"成功色的文本默认态",nameEn:"Default State Color of Success Text",desc:"成功色的文本默认态",descEn:"Default state color of success color text",type:"string",source:"map"},colorSuccessTextActive:{name:"成功色的文本激活态",nameEn:"Active State Color of Success Text",desc:"成功色的文本激活态",descEn:"Active state color of success color text",type:"string",source:"map"},colorSuccessTextHover:{name:"成功色的文本悬浮态",nameEn:"Hover State Color of Success Text",desc:"成功色的文本悬浮态",descEn:"Hover state color of success color text",type:"string",source:"map"},colorText:{name:"一级文本色",nameEn:"",desc:"最深的文本色。为了符合W3C标准,默认的文本颜色使用了该色,同时这个颜色也是最深的中性色。",descEn:"Default text color which comply with W3C standards, and this color is also the darkest neutral color.",type:"string",source:"map"},colorTextQuaternary:{name:"四级文本色",nameEn:"",desc:"第四级文本色是最浅的文本色,例如表单的输入提示文本、禁用色文本等。",descEn:"The fourth level of text color is the lightest text color, such as form input prompt text, disabled color text, etc.",type:"string",source:"map"},colorTextSecondary:{name:"二级文本色",nameEn:"",desc:"作为第二梯度的文本色,一般用在不那么需要强化文本颜色的场景,例如 Label 文本、Menu 的文本选中态等场景。",descEn:"The second level of text color is generally used in scenarios where text color is not emphasized, such as label text, menu text selection state, etc.",type:"string",source:"map"},colorTextTertiary:{name:"三级文本色",nameEn:"",desc:"第三级文本色一般用于描述性文本,例如表单的中的补充说明文本、列表的描述性文本等场景。",descEn:"The third level of text color is generally used for descriptive text, such as form supplementary explanation text, list descriptive text, etc.",type:"string",source:"map"},colorWarningActive:{name:"警戒色的深色激活态",nameEn:"Warning active color",desc:"警戒色的深色激活态",descEn:"The active state of the warning color.",type:"string",source:"map"},colorWarningBg:{name:"警戒色的浅色背景颜色",nameEn:"Warning background color",desc:"警戒色的浅色背景颜色",descEn:"The background color of the warning state.",type:"string",source:"map"},colorWarningBgHover:{name:"警戒色的浅色背景色悬浮态",nameEn:"Warning background color hover state",desc:"警戒色的浅色背景色悬浮态",descEn:"The hover state background color of the warning state.",type:"string",source:"map"},colorWarningBorder:{name:"警戒色的描边色",nameEn:"Warning border color",desc:"警戒色的描边色",descEn:"The border color of the warning state.",type:"string",source:"map"},colorWarningBorderHover:{name:"警戒色的描边色悬浮态",nameEn:"Warning border color hover state",desc:"警戒色的描边色悬浮态",descEn:"The hover state border color of the warning state.",type:"string",source:"map"},colorWarningHover:{name:"警戒色的深色悬浮态",nameEn:"Warning hover color",desc:"警戒色的深色悬浮态",descEn:"The hover state of the warning color.",type:"string",source:"map"},colorWarningText:{name:"警戒色的文本默认态",nameEn:"Warning text default state",desc:"警戒色的文本默认态",descEn:"The default state of the text in the warning color.",type:"string",source:"map"},colorWarningTextActive:{name:"警戒色的文本激活态",nameEn:"Warning text active state",desc:"警戒色的文本激活态",descEn:"The active state of the text in the warning color.",type:"string",source:"map"},colorWarningTextHover:{name:"警戒色的文本悬浮态",nameEn:"Warning text hover state",desc:"警戒色的文本悬浮态",descEn:"The hover state of the text in the warning color.",type:"string",source:"map"},colorWhite:{name:"纯白色",nameEn:"",desc:"不随主题变化的纯白色",descEn:"Pure white color don't changed by theme",type:"string",source:"map"},controlHeightLG:{name:"较高的组件高度",nameEn:"LG component height",desc:"较高的组件高度",descEn:"LG component height",type:"number",source:"map"},controlHeightSM:{name:"较小的组件高度",nameEn:"SM component height",desc:"较小的组件高度",descEn:"SM component height",type:"number",source:"map"},controlHeightXS:{name:"更小的组件高度",nameEn:"XS component height",desc:"更小的组件高度",descEn:"XS component height",type:"number",source:"map"},fontSizeHeading1:{name:"一级标题字号",nameEn:"Font size of heading level 1",desc:"H1 标签所使用的字号",descEn:"Font size of h1 tag.",type:"number",source:"map"},fontSizeHeading2:{name:"二级标题字号",nameEn:"Font size of heading level 2",desc:"h2 标签所使用的字号",descEn:"Font size of h2 tag.",type:"number",source:"map"},fontSizeHeading3:{name:"三级标题字号",nameEn:"Font size of heading level 3",desc:"h3 标签使用的字号",descEn:"Font size of h3 tag.",type:"number",source:"map"},fontSizeHeading4:{name:"四级标题字号",nameEn:"Font size of heading level 4",desc:"h4 标签使用的字号",descEn:"Font size of h4 tag.",type:"number",source:"map"},fontSizeHeading5:{name:"五级标题字号",nameEn:"Font size of heading level 5",desc:"h5 标签使用的字号",descEn:"Font size of h5 tag.",type:"number",source:"map"},fontSizeLG:{name:"",nameEn:"",desc:"大号字体大小",descEn:"Large font size",type:"number",source:"map"},fontSizeSM:{name:"",nameEn:"",desc:"小号字体大小",descEn:"Small font size",type:"number",source:"map"},fontSizeXL:{name:"",nameEn:"",desc:"超大号字体大小",descEn:"Super large font size",type:"number",source:"map"},lineHeight:{name:"",nameEn:"",desc:"文本行高",descEn:"Line height of text.",type:"number",source:"map"},lineHeightHeading1:{name:"一级标题行高",nameEn:"Line height of heading level 1",desc:"H1 标签所使用的行高",descEn:"Line height of h1 tag.",type:"number",source:"map"},lineHeightHeading2:{name:"二级标题行高",nameEn:"Line height of heading level 2",desc:"h2 标签所使用的行高",descEn:"Line height of h2 tag.",type:"number",source:"map"},lineHeightHeading3:{name:"三级标题行高",nameEn:"Line height of heading level 3",desc:"h3 标签所使用的行高",descEn:"Line height of h3 tag.",type:"number",source:"map"},lineHeightHeading4:{name:"四级标题行高",nameEn:"Line height of heading level 4",desc:"h4 标签所使用的行高",descEn:"Line height of h4 tag.",type:"number",source:"map"},lineHeightHeading5:{name:"五级标题行高",nameEn:"Line height of heading level 5",desc:"h5 标签所使用的行高",descEn:"Line height of h5 tag.",type:"number",source:"map"},lineHeightLG:{name:"",nameEn:"",desc:"大型文本行高",descEn:"Line height of large text.",type:"number",source:"map"},lineHeightSM:{name:"",nameEn:"",desc:"小型文本行高",descEn:"Line height of small text.",type:"number",source:"map"},lineWidthBold:{name:"线宽",nameEn:"Line Width",desc:"描边类组件的默认线宽,如 Button、Input、Select 等输入类控件。",descEn:"The default line width of the outline class components, such as Button, Input, Select, etc.",type:"number",source:"map"},motionDurationFast:{name:"",nameEn:"",desc:"动效播放速度,快速。用于小型元素动画交互",descEn:"Motion speed, fast speed. Used for small element animation interaction.",type:"string",source:"map"},motionDurationMid:{name:"",nameEn:"",desc:"动效播放速度,中速。用于中型元素动画交互",descEn:"Motion speed, medium speed. Used for medium element animation interaction.",type:"string",source:"map"},motionDurationSlow:{name:"",nameEn:"",desc:"动效播放速度,慢速。用于大型元素如面板动画交互",descEn:"Motion speed, slow speed. Used for large element animation interaction.",type:"string",source:"map"},size:{name:"默认",nameEn:"",desc:"默认尺寸",descEn:"",type:"number",source:"map"},sizeLG:{name:"LG",nameEn:"",desc:"",descEn:"",type:"number",source:"map"},sizeMD:{name:"MD",nameEn:"",desc:"",descEn:"",type:"number",source:"map"},sizeMS:{name:"",nameEn:"",desc:"",descEn:"",type:"number",source:"map"},sizeSM:{name:"SM",nameEn:"",desc:"",descEn:"",type:"number",source:"map"},sizeXL:{name:"XL",nameEn:"",desc:"",descEn:"",type:"number",source:"map"},sizeXS:{name:"XS",nameEn:"",desc:"",descEn:"",type:"number",source:"map"},sizeXXL:{name:"XXL",nameEn:"",desc:"",descEn:"",type:"number",source:"map"},sizeXXS:{name:"XXS",nameEn:"",desc:"",descEn:"",type:"number",source:"map"},borderRadius:{name:"基础圆角",nameEn:"Base Border Radius",desc:"基础组件的圆角大小,例如按钮、输入框、卡片等",descEn:"Border radius of base components",type:"number",source:"seed"},colorBgBase:{name:"基础背景色",nameEn:"Seed Background Color",desc:"用于派生背景色梯度的基础变量,v5 中我们添加了一层背景色的派生算法可以产出梯度明确的背景色的梯度变量。但请不要在代码中直接使用该 Seed Token !",descEn:"Used to derive the base variable of the background color gradient. In v5, we added a layer of background color derivation algorithm to produce map token of background color. But PLEASE DO NOT USE this Seed Token directly in the code!",type:"string",source:"seed"},colorError:{name:"错误色",nameEn:"Error Color",desc:"用于表示操作失败的 Token 序列,如失败按钮、错误状态提示(Result)组件等。",descEn:"Used to represent the visual elements of the operation failure, such as the error Button, error Result component, etc.",type:"string",source:"seed"},colorInfo:{name:"信息色",nameEn:"Info Color",desc:"用于表示操作信息的 Token 序列,如 Alert 、Tag、 Progress 等组件都有用到该组梯度变量。",descEn:"Used to represent the operation information of the Token sequence, such as Alert, Tag, Progress, and other components use these map tokens.",type:"string",source:"seed"},colorPrimary:{name:"品牌主色",nameEn:"Brand Color",desc:"品牌色是体现产品特性和传播理念最直观的视觉元素之一。在你完成品牌主色的选取之后,我们会自动帮你生成一套完整的色板,并赋予它们有效的设计语义",descEn:"Brand color is one of the most direct visual elements to reflect the characteristics and communication of the product. After you have selected the brand color, we will automatically generate a complete color palette and assign it effective design semantics.",type:"string",source:"seed"},colorSuccess:{name:"成功色",nameEn:"Success Color",desc:"用于表示操作成功的 Token 序列,如 Result、Progress 等组件会使用该组梯度变量。",descEn:"Used to represent the token sequence of operation success, such as Result, Progress and other components will use these map tokens.",type:"string",source:"seed"},colorTextBase:{name:"基础文本色",nameEn:"Seed Text Color",desc:"用于派生文本色梯度的基础变量,v5 中我们添加了一层文本色的派生算法可以产出梯度明确的文本色的梯度变量。但请不要在代码中直接使用该 Seed Token !",descEn:"Used to derive the base variable of the text color gradient. In v5, we added a layer of text color derivation algorithm to produce gradient variables of text color gradient. But please do not use this Seed Token directly in the code!",type:"string",source:"seed"},colorWarning:{name:"警戒色",nameEn:"Warning Color",desc:"用于表示操作警告的 Token 序列,如 Notification、 Alert等警告类组件或 Input 输入类等组件会使用该组梯度变量。",descEn:"Used to represent the warning map token, such as Notification, Alert, etc. Alert or Control component(like Input) will use these map tokens.",type:"string",source:"seed"},controlHeight:{name:"基础高度",nameEn:"Base Control Height",desc:"Ant Design 中按钮和输入框等基础控件的高度",descEn:"The height of the basic controls such as buttons and input boxes in Ant Design",type:"number",source:"seed"},fontFamily:{name:"字体",nameEn:"Font family for default text",desc:"Ant Design 的字体家族中优先使用系统默认的界面字体,同时提供了一套利于屏显的备用字体库,来维护在不同平台以及浏览器的显示下,字体始终保持良好的易读性和可读性,体现了友好、稳定和专业的特性。",descEn:"The font family of Ant Design prioritizes the default interface font of the system, and provides a set of alternative font libraries that are suitable for screen display to maintain the readability and readability of the font under different platforms and browsers, reflecting the friendly, stable and professional characteristics.",type:"string",source:"seed"},fontFamilyCode:{name:"代码字体",nameEn:"Font family for code text",desc:"代码字体,用于 Typography 内的 code、pre 和 kbd 类型的元素",descEn:"Code font, used for code, pre and kbd elements in Typography",type:"string",source:"seed"},fontSize:{name:"默认字号",nameEn:"Default Font Size",desc:"设计系统中使用最广泛的字体大小,文本梯度也将基于该字号进行派生。",descEn:"The most widely used font size in the design system, from which the text gradient will be derived.",type:"number",source:"seed"},lineType:{name:"线条样式",nameEn:"Line Style",desc:"用于控制组件边框、分割线等的样式,默认是实线",descEn:"Border style of base components",type:"string",source:"seed"},lineWidth:{name:"基础线宽",nameEn:"Base Line Width",desc:"用于控制组件边框、分割线等的宽度",descEn:"Border width of base components",type:"number",source:"seed"},motion:{name:"动画风格",nameEn:"Motion Style",desc:"用于配置动画效果,为 `false` 时则关闭动画",descEn:"Used to configure the motion effect, when it is `false`, the motion is turned off",type:"boolean",source:"seed"},motionBase:{name:"动画基础时长。",nameEn:"Animation Base Duration.",desc:"",descEn:"",type:"number",source:"seed"},motionEaseInBack:{name:"",nameEn:"",desc:"预设动效曲率",descEn:"Preset motion curve.",type:"string",source:"seed"},motionEaseInOut:{name:"",nameEn:"",desc:"预设动效曲率",descEn:"Preset motion curve.",type:"string",source:"seed"},motionEaseInOutCirc:{name:"",nameEn:"",desc:"预设动效曲率",descEn:"Preset motion curve.",type:"string",source:"seed"},motionEaseInQuint:{name:"",nameEn:"",desc:"预设动效曲率",descEn:"Preset motion curve.",type:"string",source:"seed"},motionEaseOut:{name:"",nameEn:"",desc:"预设动效曲率",descEn:"Preset motion curve.",type:"string",source:"seed"},motionEaseOutBack:{name:"",nameEn:"",desc:"预设动效曲率",descEn:"Preset motion curve.",type:"string",source:"seed"},motionEaseOutCirc:{name:"",nameEn:"",desc:"预设动效曲率",descEn:"Preset motion curve.",type:"string",source:"seed"},motionEaseOutQuint:{name:"",nameEn:"",desc:"预设动效曲率",descEn:"Preset motion curve.",type:"string",source:"seed"},motionUnit:{name:"动画时长变化单位",nameEn:"Animation Duration Unit",desc:"用于控制动画时长的变化单位",descEn:"The unit of animation duration change",type:"number",source:"seed"},opacityImage:{name:"图片不透明度",nameEn:"Define default Image opacity. Useful when in dark-like theme",desc:"",descEn:"",type:"number",source:"seed"},sizePopupArrow:{name:"组件箭头尺寸",nameEn:"",desc:"组件箭头的尺寸",descEn:"The size of the component arrow",type:"number",source:"seed"},sizeStep:{name:"尺寸步长",nameEn:"Size Base Step",desc:"用于控制组件尺寸的基础步长,尺寸步长结合尺寸变化单位,就可以派生各种尺寸梯度。通过调整步长即可得到不同的布局模式,例如 V5 紧凑模式下的尺寸步长为 2",descEn:"The base step of size change, the size step combined with the size change unit, can derive various size steps. By adjusting the step, you can get different layout modes, such as the size step of the compact mode of V5 is 2",type:"number",source:"seed"},sizeUnit:{name:"尺寸变化单位",nameEn:"Size Change Unit",desc:"用于控制组件尺寸的变化单位,在 Ant Design 中我们的基础单位为 4 ,便于更加细致地控制尺寸梯度",descEn:"The unit of size change, in Ant Design, our base unit is 4, which is more fine-grained control of the size step",type:"number",source:"seed"},wireframe:{name:"线框风格",nameEn:"Wireframe Style",desc:"用于将组件的视觉效果变为线框化,如果需要使用 V4 的效果,需要开启配置项",descEn:"Used to change the visual effect of the component to wireframe, if you need to use the V4 effect, you need to enable the configuration item",type:"boolean",source:"seed"},zIndexBase:{name:"基础 zIndex",nameEn:"Base zIndex",desc:"所有组件的基础 Z 轴值,用于一些悬浮类的组件的可以基于该值 Z 轴控制层级,例如 BackTop、 Affix 等",descEn:"The base Z axis value of all components, which can be used to control the level of some floating components based on the Z axis value, such as BackTop, Affix, etc.",type:"number",source:"seed"},zIndexPopupBase:{name:"浮层基础 zIndex",nameEn:"popup base zIndex",desc:"浮层类组件的基础 Z 轴值,用于一些悬浮类的组件的可以基于该值 Z 轴控制层级,例如 FloatButton、 Affix、Modal 等",descEn:"Base zIndex of component like FloatButton, Affix which can be cover by large popup",type:"number",source:"seed"},colorPrimaryHeader:{name:"顶部导航栏的主色",nameEn:"Primary color of header",desc:"用于配置顶部导航栏的主色,会根据该色派生出背景色、文本色等变量",descEn:"Used to configure the primary color of the header, background color, text color and other variables will be derived from this color",type:"string",source:"seed"},colorBgHeader:{name:"导航栏背景色",nameEn:"Background color of header",desc:"顶部导航栏的背景色",descEn:"Configure the background color of the header",type:"string",source:"seed"},colorBgHeaderMenuHover:{name:"导航栏菜单背景悬浮态",nameEn:"Background color of header menu when hover",desc:"鼠标悬浮在导航栏菜单上时的背景色",descEn:"Background color of header menu when hover",type:"string",source:"seed"},colorBgHeaderMenuActive:{name:"导航栏菜单背景激活态",nameEn:"Background color of header menu when active",desc:"已选中的导航栏菜单的背景色",descEn:"Background color of header menu when active",type:"string",source:"seed"},colorTextHeaderMenu:{name:"导航栏菜单文本色",nameEn:"Text color of header menu",desc:"导航栏菜单文本色",descEn:"Text color of header menu",type:"string",source:"seed"},colorTextHeaderMenuHover:{name:"导航栏菜单文本色悬浮态",nameEn:"Text color of header menu when hover",desc:"导航栏菜单文本色悬浮态",descEn:"Text color of header menu when hover",type:"string",source:"seed"},colorTextHeaderMenuActive:{name:"导航栏菜单文本色激活态",nameEn:"Text color of header menu when active",desc:"导航栏菜单文本色激活态",descEn:"Text color of header menu when active",type:"string",source:"seed"},colorSettings:{name:"UI 配置色",nameEn:"Primary color of settings",desc:"用于更改 UI 配置组件的颜色",descEn:"Used to change the primary color of the UI configuration component.",type:"string",source:"seed"},colorBgSettings:{name:"UI 配置背景色",nameEn:"Background color of settings",desc:"UI 配置组件的背景色",descEn:"Background color of settings",type:"string",source:"seed"},colorBgSettingsHover:{name:"UI 配置背景色悬浮态",nameEn:"Background color of settings when hover",desc:"鼠标悬浮时显示的背景色",descEn:"Background color of settings when hover",type:"string",source:"seed"},colorBorderSettings:{name:"UI 配置边框色",nameEn:"Border color of settings",desc:"UI 配置组件的边框色",descEn:"Border color of settings",type:"string",source:"seed"},colorBorderSettingsHover:{name:"UI 配置边框色悬浮态",nameEn:"Border color of settings when hover",desc:"鼠标悬浮时显示的边框色",descEn:"Border color of settings when hover",type:"string",source:"seed"},colorTextSettings:{name:"UI 配置文本色",nameEn:"Text color of settings",desc:"UI 配置组件的文本色",descEn:"Text color of settings",type:"string",source:"seed"},paddingPageHorizontal:{name:"页面左右内边距",nameEn:"Horizontal padding of page",desc:"用于单独设置页面左右内边距",descEn:"Used to set the horizontal padding of the page separately",type:"number",source:"map"},paddingPageVertical:{name:"页面上下内边距",nameEn:"Vertical padding of page",desc:"用于单独设置页面上下内边距",descEn:"Used to set the vertical padding of the page separately",type:"number",source:"map"},paddingPopupHorizontal:{name:"弹窗左右内边距",nameEn:"Horizontal padding of popup",desc:"用于单独设置弹窗左右内边距",descEn:"Used to set the horizontal padding of the popup separately",type:"number",source:"map"},paddingPopupVertical:{name:"弹窗上下内边距",nameEn:"Vertical padding of popup",desc:"用于单独设置弹窗上下内边距",descEn:"Used to set the vertical padding of the popup separately",type:"number",source:"map"},marginBlock:{name:"区块之间的间隔",nameEn:"Spacing between blocks",desc:"用于设置区块之间的间隔",descEn:"Used to set the spacing between blocks",type:"number",source:"map"},borderRadiusBlock:{name:"区块的圆角",nameEn:"Radius of block",desc:"用于设置区块的圆角",descEn:"Used to set the radius of the block",type:"number",source:"map"}},Vf=ie("TokenDetail",e=>({".token-panel-token-detail":{".token-panel-pro-token-collapse-map-collapse-token-description":{color:e.colorTextPlaceholder,marginBottom:8,fontSize:12},".token-panel-pro-token-collapse-map-collapse-token-usage-tag-container":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",color:e.colorTextSecondary},".token-panel-pro-token-collapse-map-collapse-token-usage-tag":{display:"inline-block",marginInlineEnd:8,borderRadius:4,height:20,padding:"0 8px",fontSize:12,lineHeight:"20px",backgroundColor:"rgba(0,0,0,0.015)"},".token-panel-pro-token-collapse-map-collapse-token-inputs":{padding:"8px 10px",backgroundColor:"rgba(0,0,0,0.02)",marginTop:12,"> *:not(:last-child)":{marginBottom:8}}}})),ui=({themes:e,path:r,tokenName:t,className:n,style:a})=>{var u;const[l,c]=Vf(),s=[...r,t],d=Pe(),p=f=>C=>{var x;(x=f.onThemeChange)==null||x.call(f,Ho(f.config,[...r,t],C),[...r,t])},g=h.useMemo(()=>{var f;return ro([t,...(f=Ao[t])!=null?f:[]])},[t]);return l(o.jsxs("div",{className:ee(n,c,"token-panel-token-detail"),style:a,children:[o.jsx("div",{className:"token-panel-pro-token-collapse-map-collapse-token-description",children:(u=uo[t])==null?void 0:u[d._lang==="zh-CN"?"desc":"descEn"]}),g.length>0&&o.jsx(i.Tooltip,{title:ro(t).join(", "),placement:"topLeft",children:o.jsx("div",{className:"token-panel-pro-token-collapse-map-collapse-token-usage-tag-container",children:g.map(f=>o.jsx("span",{className:"token-panel-pro-token-collapse-map-collapse-token-usage-tag",children:f},f))})}),o.jsx("div",{className:"token-panel-pro-token-collapse-map-collapse-token-inputs",children:e.map(f=>{var C,x;return o.jsx("div",{children:o.jsx(ja,{hideTheme:e.length===1,theme:f,canReset:(C=f.getCanReset)==null?void 0:C.call(f,s),onReset:()=>{var y;return(y=f.onReset)==null?void 0:y.call(f,s)},onChange:p(f),value:(x=je(f.config,s))!=null?x:be(f.config)[t]})},f.key)})})]}))},{Panel:qf}=i.Collapse,Yf=ie("TokenPanelProAlias",e=>({".token-panel-pro-color-alias":{display:"flex",flexDirection:"column",marginTop:45,borderTop:`1px solid ${e.colorSplit}`,".token-panel-pro-color-alias-title":{display:"flex",alignItems:"center",padding:"0 16px",flex:"0 0 60px","&-text":{fontSize:e.fontSizeLG,fontWeight:e.fontWeightStrong}},".token-panel-pro-color-alias-description":{color:e.colorTextTertiary,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,padding:"0 16px 12px"},[`.token-panel-pro-alias-collapse${e.rootCls}-collapse`]:{[`> ${e.rootCls}-collapse-item > ${e.rootCls}-collapse-content > ${e.rootCls}-collapse-content-box`]:{paddingBlock:"0"},[`> ${e.rootCls}-collapse-item`]:{[`> ${e.rootCls}-collapse-header`]:{alignItems:"center",padding:"8px 16px",[`> ${e.rootCls}-collapse-header-text`]:{flex:1,".token-panel-pro-token-collapse-map-collapse-count":{color:e.colorTextSecondary,display:"inline-block",fontSize:12,lineHeight:"16px",padding:"0 6px",backgroundColor:e.colorFillAlter,borderRadius:999}},".token-panel-pro-token-picked":{color:e.colorPrimary}}}},".token-panel-pro-color-alias-expand":{height:"100%",width:20,transform:"translateX(-50%)",display:"flex",alignItems:"center",justifyContent:"center","&:hover":{".token-panel-pro-color-alias-expand-handler":{opacity:1}},".token-panel-pro-color-alias-expand-handler":{height:100,width:16,borderRadius:999,border:`1px solid ${e.colorSplit}`,backgroundColor:"#fff",margin:"auto",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,transition:"box-shadow 0.2s","&:hover":{boxShadow:e.boxShadow}}}}})),Zf=({className:e,activeSeeds:r,theme:t,style:n,selectedTokens:a,onTokenSelect:l,open:c,onOpenChange:s,description:d})=>{const[p,g]=Yf(),[u,f]=ht(c!=null?c:!0,{value:c,onChange:s}),C=h.useMemo(()=>{var x;return(x=a==null?void 0:a.map)!=null&&x.length?Array.from(new Set(a==null?void 0:a.map.reduce((y,m)=>{var S;return y.concat(...(S=Ao[m])!=null?S:[])},[]))):r==null?void 0:r.reduce((y,m)=>{var S;return y.concat((S=Xe[m])!=null?S:[])},[])},[a,r]);return p(o.jsx("div",{className:ee(e,"token-panel-pro-color-alias",g),style:n,children:u?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"token-panel-pro-color-alias-title",children:[o.jsx("span",{className:"token-panel-pro-color-alias-title-text",children:"Alias Token"}),o.jsx(i.Tooltip,{placement:"topLeft",arrowPointAtCenter:!0,title:"别名变量(Alias Token)是 Map Token 的别名。Alias Token 用于批量控制某些共性组件的样式。",children:o.jsx(D.QuestionCircleOutlined,{style:{fontSize:14,marginLeft:4}})}),o.jsx(i.Button,{type:"text",icon:o.jsx(D.ShrinkOutlined,{}),style:{marginLeft:"auto"},onClick:()=>f(!1)})]}),d&&o.jsx("div",{className:"token-panel-pro-color-alias-description",children:d}),o.jsxs("div",{style:{flex:1,overflow:"auto"},children:[o.jsx(i.Collapse,{className:"token-panel-pro-alias-collapse",ghost:!0,expandIcon:({isActive:x})=>o.jsx(D.CaretRightOutlined,{rotate:x?90:0,style:{fontSize:12}}),children:C==null?void 0:C.map(x=>{var y;return o.jsx(qf,{header:o.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o.jsx("span",{style:{marginRight:8},children:x}),o.jsx("span",{className:"token-panel-pro-token-collapse-map-collapse-count",children:ro(x).length}),o.jsx("div",{style:{padding:4,marginLeft:"auto"},onClick:m=>{m.stopPropagation(),l==null||l(x,"alias")},children:o.jsx(Ir,{className:ee("token-panel-pro-token-pick",{"token-panel-pro-token-picked":(y=a==null?void 0:a.alias)==null?void 0:y.includes(x)})})})]}),children:o.jsx(ui,{style:{paddingBottom:10},themes:[t],path:["token"],tokenName:x})},x)})}),!(C!=null&&C.length)&&o.jsx(i.Empty,{image:i.Empty.PRESENTED_IMAGE_SIMPLE,description:"暂无相关 Alias Token"})]})]}):o.jsx("div",{className:"token-panel-pro-color-alias-expand",children:o.jsx("div",{className:"token-panel-pro-color-alias-expand-handler",onClick:()=>f(!0),children:o.jsx(D.RightOutlined,{style:{fontSize:12}})})})}))},Qf=ie("IconSwitch",()=>({".theme-editor-icon-switch":{display:"inline-block",".holder":{position:"relative",display:"inline-flex",background:"#ebedf0",borderRadius:"100vw",cursor:"pointer",transition:"all 0.3s","&::before":{position:"absolute",top:0,left:"calc(100% - 32px)",width:32,height:32,background:"#314659",borderRadius:"100vw",transition:"all 0.3s",content:'""'},"&.leftChecked::before":{left:0},"&:hover":{boxShadow:"0 0 3px fade(@active-background, 40%)"}},".icon":{position:"relative",width:32,height:32,color:"#a3b1bf",lineHeight:"32px",textAlign:"center",transition:"all 0.3s",fontSize:16,".anticon":{fontSize:14},"&:first-child":{marginInlineEnd:-4},"&.active":{color:"#fff"}}}}));function hi(d){var p=d,{className:e,style:r,leftIcon:t,rightIcon:n,leftChecked:a,transparent:l,onChange:c}=p,s=Go(p,["className","style","leftIcon","rightIcon","leftChecked","transparent","onChange"]);const[g,u]=Qf();return g(o.jsx("div",_(I({className:ee("theme-editor-icon-switch",e,u),style:r},s),{children:o.jsxs("div",{className:ee("holder",a&&"leftChecked"),onClick:()=>{c==null||c(!a)},children:[o.jsx("span",{className:ee("icon",a&&"active"),children:t}),o.jsx("span",{className:ee("icon",!a&&"active"),children:n})]})})))}const Kf=({value:e,onChange:r,min:t,max:n})=>o.jsxs("div",{style:{display:"flex",width:200},children:[o.jsx(i.Slider,{style:{flex:"0 0 120px",marginRight:12},value:e,min:t,max:n,onChange:r}),o.jsx(i.InputNumber,{value:e,min:t,max:n,onChange:r,style:{flex:1}})]}),Jf=({theme:e,tokenName:r,type:t})=>{if(t==="Color")return o.jsx("div",{style:{background:`${Ue(!1)} 0% 0% / 28px`,width:"100%",height:"100%",position:"relative"},children:o.jsx("div",{style:{height:"100%",width:"100%",backgroundColor:be(e)[r],transition:"background-color 0.2s"}})});if(t==="FontSize")return o.jsx("div",{style:{width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",background:`${Ue(!1)} 0% 0% / 28px`,fontSize:be(e)[r],fontWeight:700},children:o.jsx("span",{children:"Aa"})});if(t==="LineHeight")return o.jsx("div",{style:{width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,overflow:"hidden",background:`${Ue(!1)} 0% 0% / 28px`},children:o.jsx("span",{style:{fontSize:be(e)[r.replace("lineHeight","fontSize")],lineHeight:be(e)[r],background:"#fff2f0",paddingInline:8},children:"Aa"})});if(t==="Margin"){const n=be(e)[r];return o.jsx("div",{style:{width:"100%",height:"100%",position:"relative",overflow:"hidden",background:`${Ue(!1)} 0% 0% / 28px`},children:o.jsx("div",{style:{width:"100%",height:"100%",overflow:"hidden",background:"#fff1b8",transform:"translate(10%, 10%) scale(0.8)"},children:o.jsx("div",{style:{marginLeft:n,marginTop:n,width:`calc(100% - ${n}px)`,height:`calc(100% - ${n}px)`,background:"#bae0ff"}})})})}if(t==="Padding"){const n=be(e)[r];return o.jsx("div",{style:{width:"100%",height:"100%",position:"relative",overflow:"hidden",background:`${Ue(!1)} 0% 0% / 28px`},children:o.jsx("div",{style:{width:"100%",height:"100%",overflow:"hidden",background:"#d9f7be",transform:"translate(10%, 10%) scale(0.8)",paddingLeft:n,paddingTop:n},children:o.jsx("div",{style:{width:"100%",height:"100%",background:"#bae0ff"}})})})}return t==="BorderRadius"?o.jsx("div",{style:{width:"100%",height:"100%",position:"relative",overflow:"hidden",background:`${Ue(!1)} 0% 0% / 28px`},children:o.jsx("div",{style:{width:"100%",height:"100%",overflow:"hidden",transform:"translate(30%, 30%)",border:"2px solid rgba(0,0,0,0.45)",background:"#fff",borderRadius:be(e)[r]}})}):t==="BoxShadow"?o.jsx("div",{style:{width:"100%",height:"100%",position:"relative",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",background:`${Ue(!1)} 0% 0% / 28px`},children:o.jsx("div",{style:{width:"60%",height:"50%",borderRadius:6,background:"#fff",border:"1px solid #d9d9d9",boxShadow:be(e)[r]}})}):null},Rf=(e,r)=>{if(e==="colorSettings"){const t=new Me(r);return{colorSettings:r,colorBgSettingsHover:t.setAlpha(.06).toHex8String(),colorBorderSettingsHover:t.setAlpha(.3).toHex8String()}}return{[e]:r}},{Panel:Sr}=i.Collapse,e1=ie("ColorTokenContent",e=>({".token-panel-pro-color":{height:"100%",display:"flex",".token-panel-pro-color-seeds":{height:"100%",flex:1,width:0,borderInlineEnd:`1px solid ${e.colorBorderSecondary}`,display:"flex",flexDirection:"column",boxSizing:"border-box",".token-panel-pro-color-themes":{display:"flex",alignItems:"center",padding:"0 16px",flex:"0 0 60px","> span":{fontSize:e.fontSizeLG,fontWeight:e.fontWeightStrong}}},[`.token-panel-pro-token-collapse${e.rootCls}-collapse`]:{flex:1,overflow:"auto",[`> ${e.rootCls}-collapse-item-active`]:{backgroundColor:"#fff",boxShadow:"0 6px 16px -8px rgba(0,0,0,0.08), 0 9px 28px 0 rgba(0,0,0,0.05), 0 12px 48px -8px rgba(0,0,0,0.03), inset 0 0 0 2px #1677FF",transition:"box-shadow 0.2s ease-in-out",borderRadius:8},[`> ${e.rootCls}-collapse-item > ${e.rootCls}-collapse-content > ${e.rootCls}-collapse-content-box`]:{paddingBlock:"0 12px"},".token-panel-pro-token-collapse-description":{color:e.colorTextTertiary,marginBottom:16},".token-panel-pro-token-collapse-subtitle":{color:e.colorTextSecondary,fontSize:12},".token-panel-pro-token-collapse-seed-block":{display:"flex",alignItems:"center",justifyContent:"flex-end","+ .token-panel-pro-token-collapse-seed-block":{marginTop:8},"&-name-cn":{fontWeight:e.fontWeightStrong,marginInlineEnd:4},"&-name":{color:e.colorTextTertiary},"&-sample":{flex:"none","&:not(:last-child)":{marginInlineEnd:16},"&-theme":{color:e.colorTextTertiary,marginBottom:2,fontSize:12,textAlign:"end"},"&-card":{cursor:"pointer",border:`1px solid ${e.colorBorderSecondary}`,borderRadius:4,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"4px 8px","&-value":{fontFamily:"Monaco,".concat(e.fontFamily)}}}},[`.token-panel-pro-token-collapse-map-collapse${e.rootCls}-collapse`]:{borderRadius:4,backgroundColor:"#fff",[`> ${e.rootCls}-collapse-item`]:{"&:not(:first-child)":{[`> ${e.rootCls}-collapse-header`]:{[`> ${e.rootCls}-collapse-header-text`]:{".token-panel-pro-token-collapse-map-collapse-preview":{".token-panel-pro-token-collapse-map-collapse-preview-color":{marginTop:-1}}}}},[`> ${e.rootCls}-collapse-header`]:{padding:{value:"0 12px 0 16px",_skip_check_:!0},[`> ${e.rootCls}-collapse-expand-icon`]:{alignSelf:"center"},[`> ${e.rootCls}-collapse-header-text`]:{flex:1,".token-panel-pro-token-collapse-map-collapse-token":{color:e.colorTextSecondary,marginInlineStart:4,marginInlineEnd:8},".token-panel-pro-token-collapse-map-collapse-preview":{display:"flex",flex:"none",".token-panel-pro-token-collapse-map-collapse-preview-color":{height:56,width:56,position:"relative",borderInline:"1px solid #e8e8e8"},"> *":{marginInlineEnd:8}}}},[`> ${e.rootCls}-collapse-content > ${e.rootCls}-collapse-content-box`]:{padding:"0"}}}},".token-panel-pro-token-collapse-map-collapse-count":{color:e.colorTextSecondary,fontSize:12,lineHeight:"16px",padding:"0 6px",backgroundColor:e.colorFillAlter,borderRadius:999,overflow:"hidden",textOverflow:"ellipsis"},".token-panel-pro-token-pick":{transition:"color 0.3s"},".token-panel-pro-token-picked":{color:e.colorPrimary},[`.token-panel-pro-grouped-map-collapse${e.rootCls}-collapse`]:{borderRadius:4,[`> ${e.rootCls}-collapse-item`]:{[`> ${e.rootCls}-collapse-header`]:{padding:"6px 12px",color:e.colorIcon,fontSize:12,lineHeight:e.lineHeightSM,[`${e.rootCls}-collapse-expand-icon`]:{lineHeight:"20px",height:20}},[`> ${e.rootCls}-collapse-content > ${e.rootCls}-collapse-content-box`]:{padding:0,[`.token-panel-pro-token-collapse-map-collapse${e.rootCls}-collapse`]:{border:"none",[`${e.rootCls}-collapse-item:last-child`]:{borderBottom:"none"}}}}}}})),fi=(e,r)=>{var t;return((t=e.token)==null?void 0:t[r])||Bo[r]||be(e)[r]},mi={borderRadius:{min:0,max:16},fontSize:{min:12,max:32},sizeStep:{min:0,max:16},sizeUnit:{min:0,max:16}},o1=({theme:e,tokenName:r,disabled:t,alpha:n})=>{var u;const a=["token",r],[l,c]=h.useState(fi(e.config,r)),s=Pe(),d=ka(f=>{var C;(C=e.onThemeChange)==null||C.call(e,_(I({},e.config),{token:I(I({},e.config.token),Rf(r,f))}),["token",r])},500),p=f=>{c(f),d(f)};h.useEffect(()=>{c(fi(e.config,r))},[e.config,r]);const g=(u=e.getCanReset)==null?void 0:u.call(e,a);return o.jsxs("div",{className:"token-panel-pro-token-collapse-seed-block-sample",children:[o.jsx("div",{className:"token-panel-pro-token-collapse-seed-block-sample-theme",children:o.jsx(i.Typography.Link,{style:{fontSize:12,padding:0,opacity:g?1:0,pointerEvents:g?"auto":"none"},onClick:()=>{var f;return(f=e.onReset)==null?void 0:f.call(e,a)},children:s.reset})}),r.startsWith("color")&&o.jsx(z.StablePopover,{trigger:"click",placement:"bottomRight",overlayInnerStyle:{padding:0},content:o.jsx(Ga,{color:l,onChange:p,style:{border:"none"},alpha:n}),children:o.jsxs("div",{className:"token-panel-pro-token-collapse-seed-block-sample-card",style:{pointerEvents:t?"none":"auto"},children:[o.jsx("div",{style:{backgroundColor:l,width:48,height:32,borderRadius:4,marginRight:14,boxShadow:"0 2px 3px -1px rgba(0,0,0,0.20), inset 0 0 0 1px rgba(0,0,0,0.09)"}}),o.jsx("div",{className:"token-panel-pro-token-collapse-seed-block-sample-card-value",children:l})]})}),["fontSize","sizeUnit","sizeStep","borderRadius"].includes(r)&&o.jsx(Kf,{value:l,onChange:p,min:mi[r].min,max:mi[r].max}),r==="wireframe"&&o.jsx(i.Switch,{checked:l,onChange:p})]})},Wt=({mapTokens:e,theme:r,onTokenSelect:t,selectedTokens:n,type:a})=>{const l=Pe();return o.jsx(i.Collapse,{className:"token-panel-pro-token-collapse-map-collapse",children:e==null?void 0:e.map(c=>{var s,d;return o.jsx(Sr,{header:o.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o.jsxs("div",{style:{flex:1,whiteSpace:"nowrap",width:0,overflow:"hidden",display:"flex",alignItems:"center",marginRight:8},children:[l._lang==="zh-CN"&&o.jsx("span",{style:{fontWeight:500,flex:"none"},children:(s=uo[c])==null?void 0:s.name}),o.jsx("span",{className:"token-panel-pro-token-collapse-map-collapse-token",style:{flex:"none"},children:c}),o.jsx("span",{className:"token-panel-pro-token-collapse-map-collapse-count",children:be(r.config)[c]})]}),o.jsx("div",{className:"token-panel-pro-token-collapse-map-collapse-preview",children:o.jsx("div",{className:"token-panel-pro-token-collapse-map-collapse-preview-color",children:o.jsx(Jf,{theme:r.config,tokenName:c,type:a})})}),o.jsx("div",{style:{flex:"none",margin:4},onClick:p=>{p.stopPropagation(),t==null||t(c,"map")},children:o.jsx(Ir,{className:ee("token-panel-pro-token-pick",{"token-panel-pro-token-picked":(d=n==null?void 0:n.map)==null?void 0:d.includes(c)})})})]}),children:o.jsx(ui,{style:{margin:8},themes:[r],path:["token"],tokenName:c})},c)})})},r1=({theme:e,onTokenSelect:r,selectedTokens:t,groupFn:n,group:a})=>{var s,d;const l=Pe(),c=h.useMemo(()=>{var g;const p={};return n&&((g=a.mapToken)==null||g.forEach(u=>{var C,x;const f=(C=n(u))!=null?C:"default";p[f]=[...(x=p[f])!=null?x:[],u]})),p},[a,n]);return n?o.jsx(i.Collapse,{className:"token-panel-pro-grouped-map-collapse",defaultActiveKey:Object.keys(c),expandIconPosition:"end",expandIcon:({isActive:p})=>o.jsx(D.CaretRightOutlined,{rotate:p?450:360,style:{fontSize:12}}),children:((s=a.mapTokenGroups)!=null?s:Object.keys(c)).map(p=>{var g;return o.jsx(Sr,{header:(g=l[p])!=null?g:"",children:o.jsx(Wt,{mapTokens:c[p],theme:e,selectedTokens:t,onTokenSelect:r,type:a.type})},p)})}):a.groups?o.jsx(i.Collapse,{className:"token-panel-pro-grouped-map-collapse",defaultActiveKey:a.groups.map(p=>p.key),expandIconPosition:"end",expandIcon:({isActive:p})=>o.jsx(D.CaretRightOutlined,{rotate:p?450:360,style:{fontSize:12}}),children:a.groups.map(p=>o.jsx(Sr,{header:p.name,children:o.jsx(Wt,{mapTokens:p.mapToken,theme:e,selectedTokens:t,onTokenSelect:r,type:p.type})},p.key))}):o.jsx(Wt,{mapTokens:(d=a.mapToken)!=null?d:[],theme:e,selectedTokens:t,onTokenSelect:r,type:a.type})},t1=e=>e.startsWith("colorFill")?"fill":e.startsWith("colorBorder")||e.startsWith("colorSplit")?"border":e.startsWith("colorBg")?"background":e.startsWith("colorText")?"text":"",n1=({category:e,theme:r,selectedTokens:t,onTokenSelect:n,infoFollowPrimary:a,onInfoFollowPrimaryChange:l,activeGroup:c,onActiveGroupChange:s})=>{const[d,p]=e1(),[g,u]=h.useState(!0),f=Pe(),C=y=>()=>{var S;let m=r.config.algorithm;m?Array.isArray(m)?m=m.includes(qe[y])?m.filter(b=>b!==qe[y]):[...m,qe[y]]:m=m===qe[y]?void 0:[m,qe[y]]:m=qe[y],(S=r.onThemeChange)==null||S.call(r,_(I({},r.config),{algorithm:m}),["config","algorithm"])},x=y=>r.config.algorithm?Array.isArray(r.config.algorithm)?!r.config.algorithm.includes(qe[y]):r.config.algorithm!==qe[y]:!0;return d(o.jsx("div",{className:ee(p,"token-panel-pro-color"),children:o.jsxs("div",{className:"token-panel-pro-color-seeds",children:[o.jsxs("div",{className:"token-panel-pro-color-themes",children:[o.jsx("span",{style:{marginRight:12},children:f._lang==="zh-CN"?e.name:e.nameEn}),e.nameEn==="Color"&&o.jsx(hi,{onChange:C("dark"),leftChecked:x("dark"),leftIcon:o.jsx(yl,{}),rightIcon:o.jsx(vl,{}),style:{marginLeft:"auto"}}),e.nameEn==="Size"&&o.jsx(hi,{onChange:C("compact"),leftChecked:x("compact"),leftIcon:o.jsx(D.ExpandOutlined,{}),rightIcon:o.jsx(fl,{}),style:{marginLeft:"auto"}})]}),o.jsx(i.ConfigProvider,{theme:{token:{colorBorder:"#f0f0f0"}},children:o.jsx(i.Collapse,{className:"token-panel-pro-token-collapse",expandIconPosition:"end",ghost:!0,accordion:!0,activeKey:c,expandIcon:({isActive:y})=>o.jsx(D.CaretRightOutlined,{rotate:y?450:360,style:{fontSize:12}}),onChange:y=>{s(y)},children:e.groups.map((y,m)=>{var S;return o.jsx(Sr,{header:o.jsx("span",{style:{fontWeight:500},children:f._lang==="zh-CN"?y.name:y.nameEn}),children:o.jsxs("div",{children:[o.jsx("div",{className:"token-panel-pro-token-collapse-description",children:f._lang==="zh-CN"?y.desc:y.descEn}),(S=y.seedToken)==null?void 0:S.map(b=>{var H,k,L,G;return o.jsxs("div",{className:"token-panel-pro-token-collapse-seed-block",children:[o.jsxs("div",{style:{marginRight:"auto"},children:[o.jsxs("div",{className:"token-panel-pro-token-collapse-subtitle",children:[o.jsx("span",{style:{fontSize:12},children:"Seed Token"}),o.jsx(i.Tooltip,{placement:"topLeft",arrowPointAtCenter:!0,title:f._lang==="zh-CN"?(H=uo[b])==null?void 0:H.desc:(k=uo[b])==null?void 0:k.descEn,children:o.jsx(D.QuestionCircleOutlined,{style:{fontSize:14,marginLeft:8}})})]}),o.jsxs("div",{children:[o.jsx("span",{className:"token-panel-pro-token-collapse-seed-block-name-cn",children:f._lang==="zh-CN"?(L=uo[b])==null?void 0:L.name:(G=uo[b])==null?void 0:G.nameEn}),b==="colorInfo"&&o.jsx(i.Checkbox,{style:{marginLeft:12},checked:a,onChange:j=>l==null?void 0:l(j.target.checked),children:f.followPrimary})]})]}),o.jsx(o1,{alpha:!!y.seedTokenAlpha,theme:r,tokenName:b,disabled:b==="colorInfo"&&a})]},b)}),(y.mapToken||y.groups)&&o.jsxs("div",{style:{marginTop:16,marginBottom:24},children:[o.jsxs("div",{className:"token-panel-pro-token-collapse-subtitle",style:{marginBottom:10,display:"flex",alignItems:"center"},children:[o.jsx("span",{children:"Map Token"}),o.jsx(i.Tooltip,{placement:"topLeft",arrowPointAtCenter:!0,title:"梯度变量(Map Token) 是基于 Seed 派生的梯度变量,我们精心设计的梯度变量模型具有良好的视觉设计语义,可在亮暗色模式切换时保证视觉梯度的一致性。",children:o.jsx(D.QuestionCircleOutlined,{style:{fontSize:14,marginLeft:8}})}),y.mapTokenGroups&&o.jsxs("div",{style:{marginLeft:"auto",display:"flex",alignItems:"center"},children:[o.jsx("label",{style:{marginRight:4},children:f.groupView}),o.jsx(i.Switch,{checked:g,onChange:b=>u(b),size:"small"})]})]}),o.jsx(r1,{group:y,theme:r,selectedTokens:t,onTokenSelect:n,groupFn:y.mapTokenGroups&&g?t1:void 0})]}),m<e.groups.length-1&&o.jsx(i.Button,{type:"primary",style:{borderRadius:4,marginBottom:12},onClick:()=>{var b;return s((b=e.groups[m+1])==null?void 0:b.key)},children:f.next})]})},y.key)})})})]})}))},a1=ie("TokenPanelPro",e=>({".token-panel-pro":{height:"100%",display:"flex",borderInlineEnd:`1px solid ${e.colorBorderSecondary}`,[`.token-panel-pro-tabs${e.rootCls}-tabs`]:{height:"100%",overflow:"auto",[`${e.rootCls}-tabs-content`]:{height:"100%",[`${e.rootCls}-tabs-tabpane`]:{height:"100%"}}}}})),i1=({className:e,style:r,theme:t,selectedTokens:n,onTokenSelect:a,infoFollowPrimary:l,onInfoFollowPrimaryChange:c,aliasOpen:s,onAliasOpenChange:d})=>{const[p,g]=a1(),[u,f]=h.useState("brandColor"),C=Pe(),x=h.useMemo(()=>_t.reduce((y,m)=>y!=null?y:m.groups.find(S=>S.key===u),void 0),[u]);return h.useEffect(()=>{var y;a==null||a((y=x==null?void 0:x.seedToken)!=null?y:[],"seed")},[x]),p(o.jsxs("div",{className:ee(g,e,"token-panel-pro"),style:r,children:[o.jsx(i.Tabs,{defaultActiveKey:"color",tabBarGutter:32,tabBarStyle:{padding:"0 16px",margin:0},style:{height:"100%",flex:"0 0 540px"},className:"token-panel-pro-tabs",onChange:y=>{var m,S;f((S=(m=_t.find(b=>b.nameEn===y))==null?void 0:m.groups[0].key)!=null?S:"")},items:_t.map(y=>({key:y.nameEn,label:C._lang==="zh-CN"?y.name:y.nameEn,children:o.jsx(n1,{category:y,theme:t,selectedTokens:n,onTokenSelect:a,infoFollowPrimary:l,onInfoFollowPrimaryChange:c,activeGroup:u,onActiveGroupChange:f})}))}),o.jsx(Zf,{open:s,description:x==null?void 0:x.aliasTokenDescription,onOpenChange:y=>d==null?void 0:d(y),activeSeeds:x==null?void 0:x.seedToken,theme:t,style:{flex:s?"0 0 320px":"none",width:0},selectedTokens:n,onTokenSelect:a})]}))},l1=ie("ThemeEditor",e=>({".antd-theme-editor":{backgroundColor:e.colorBgLayout,display:"flex"}})),c1={name:"默认主题",key:"default",config:{}},vi=h.forwardRef(({theme:e,onThemeChange:r,className:t,style:n,darkAlgorithm:a,locale:l=pt},c)=>{const[s,d]=l1(),[p,g]=h.useState({seed:["colorPrimary"]}),[u,f]=h.useState(!1),{theme:C,infoFollowPrimary:x,onInfoFollowPrimaryChange:y,updateRef:m}=jf({theme:e,defaultTheme:c1,onChange:r,darkAlgorithm:a});h.useImperativeHandle(c,()=>({updateRef:m}));const S=(k,L)=>{g(G=>{const j=typeof k=="string"?k?[k]:[]:k;if(L==="seed")return{seed:j};let K=I({},G);return j.forEach(X=>{var P,U,N;K=_(I({},G),{[L]:(P=G[L])!=null&&P.includes(X)?(U=G[L])==null?void 0:U.filter(J=>J!==X):[...(N=G[L])!=null?N:[],X]})}),L==="map"&&delete K.alias,K})},b=h.useMemo(()=>{var k,L,G,j,K,X,P,U;return(k=p.seed)!=null&&k.length&&!((L=p.map)!=null&&L.length)&&!((G=p.alias)!=null&&G.length)?[...p.seed,...(j=We[p.seed[0]])!=null?j:[],...(K=Xe[p.seed[0]])!=null?K:[]]:(X=p.map)!=null&&X.length&&!((P=p.alias)!=null&&P.length)?[...p.map,...p.map.reduce((N,J)=>N.concat(Ao[J]),[])]:(U=p.alias)!=null&&U.length?[...p.alias]:[]},[p]),H=h.useMemo(()=>b?ro(b):[],[b]);return s(o.jsx(ma.Provider,{value:l,children:o.jsxs("div",{className:ee(d,"antd-theme-editor",t),style:n,children:[o.jsx("div",{style:{flex:u?"0 0 860px":"0 0 540px",height:"100%",backgroundColor:"#F7F8FA",backgroundImage:"linear-gradient(180deg, #FFFFFF 0%, rgba(246,247,249,0.00) 100%)",display:"flex",transition:"all 0.3s"},children:o.jsx(i1,{aliasOpen:u,onAliasOpenChange:k=>f(k),theme:C,style:{flex:1},selectedTokens:p,onTokenSelect:S,infoFollowPrimary:x,onInfoFollowPrimaryChange:y})}),o.jsx(Xf,{theme:C,components:Tf,activeComponents:H,selectedTokens:b,style:{flex:1,overflow:"auto",height:"100%"},componentDrawer:!0})]})}))});vi.displayName="ThemeEditor";var yi={},bi={exports:{}};(function(e){function r(t){return t&&t.__esModule?t:{default:t}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(bi);var Ne=bi.exports,Si={exports:{}},xi={exports:{}};(function(e){function r(t){if(Array.isArray(t))return t}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(xi);var s1=xi.exports,Ci={exports:{}};(function(e){function r(t,n){var a=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var l,c,s,d,p=[],g=!0,u=!1;try{if(s=(a=a.call(t)).next,n===0){if(Object(a)!==a)return;g=!1}else for(;!(g=(l=s.call(a)).done)&&(p.push(l.value),p.length!==n);g=!0);}catch(f){u=!0,c=f}finally{try{if(!g&&a.return!=null&&(d=a.return(),Object(d)!==d))return}finally{if(u)throw c}}return p}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Ci);var d1=Ci.exports,ki={exports:{}},wi={exports:{}};(function(e){function r(t,n){(n==null||n>t.length)&&(n=t.length);for(var a=0,l=Array(n);a<n;a++)l[a]=t[a];return l}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(wi);var p1=wi.exports;(function(e){var r=p1;function t(n,a){if(n){if(typeof n=="string")return r(n,a);var l={}.toString.call(n).slice(8,-1);return l==="Object"&&n.constructor&&(l=n.constructor.name),l==="Map"||l==="Set"?Array.from(n):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?r(n,a):void 0}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ki);var g1=ki.exports,Ei={exports:{}};(function(e){function r(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
83
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Ei);var u1=Ei.exports;(function(e){var r=s1,t=d1,n=g1,a=u1;function l(c,s){return r(c)||t(c,s)||n(c,s)||a()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports})(Si);var Ti=Si.exports,Xt={},Bi={exports:{}},Di={exports:{}};(function(e){function r(t){"@babel/helpers - typeof";return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Di);var h1=Di.exports;(function(e){var r=h1.default;function t(a){if(typeof WeakMap!="function")return null;var l=new WeakMap,c=new WeakMap;return(t=function(d){return d?c:l})(a)}function n(a,l){if(!l&&a&&a.__esModule)return a;if(a===null||r(a)!="object"&&typeof a!="function")return{default:a};var c=t(l);if(c&&c.has(a))return c.get(a);var s={__proto__:null},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in a)if(p!=="default"&&{}.hasOwnProperty.call(a,p)){var g=d?Object.getOwnPropertyDescriptor(a,p):null;g&&(g.get||g.set)?Object.defineProperty(s,p,g):s[p]=a[p]}return s.default=a,c&&c.set(a,s),s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Bi);var Nt=Bi.exports,f1=Nt.default;Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.default=m1;var Hi=f1(h);function m1(e){var r=Hi.useRef();r.current=e;var t=Hi.useCallback(function(){for(var n,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return(n=r.current)===null||n===void 0?void 0:n.call.apply(n,[r].concat(l))},[]);return t}var ho={},Gt={};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.default=v1;function v1(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var y1=Ne.default,b1=Nt.default;Object.defineProperty(ho,"__esModule",{value:!0}),ho.useLayoutUpdateEffect=ho.default=void 0;var Ut=b1(h),S1=y1(Gt),Ai=(0,S1.default)()?Ut.useLayoutEffect:Ut.useEffect,Mi=function(r,t){var n=Ut.useRef(!0);Ai(function(){return r(n.current)},t),Ai(function(){return n.current=!1,function(){n.current=!0}},[])};ho.useLayoutUpdateEffect=function(r,t){Mi(function(n){if(!n)return r()},t)},ho.default=Mi;var jt={},x1=Nt.default,C1=Ne.default;Object.defineProperty(jt,"__esModule",{value:!0}),jt.default=w1;var k1=C1(Ti),Vt=x1(h);function w1(e){var r=Vt.useRef(!1),t=Vt.useState(e),n=(0,k1.default)(t,2),a=n[0],l=n[1];Vt.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]);function c(s,d){d&&r.current||l(s)}return[a,c]}var qt=Ne.default;Object.defineProperty(yi,"__esModule",{value:!0});var E1=yi.default=T1,Ii=qt(Ti),Pi=qt(Xt),zi=ho,Li=qt(jt);function Yt(e){return e!==void 0}function T1(e,r){var t=r||{},n=t.defaultValue,a=t.value,l=t.onChange,c=t.postState,s=(0,Li.default)(function(){return Yt(a)?a:Yt(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),d=(0,Ii.default)(s,2),p=d[0],g=d[1],u=a!==void 0?a:p,f=c?c(u):u,C=(0,Pi.default)(l),x=(0,Li.default)([u]),y=(0,Ii.default)(x,2),m=y[0],S=y[1];(0,zi.useLayoutUpdateEffect)(function(){var H=m[0];p!==H&&C(p,H)},[m]),(0,zi.useLayoutUpdateEffect)(function(){Yt(a)||g(a)},[a]);var b=(0,Pi.default)(function(H,k){g(H,k),S([u],k)});return[f,b]}function jy(e){return e}const $i=["seed","colorCommon","colorText","colorBg","colorFill","colorSplit","font","radius","space","screen","line","motion","control","others"];function Oi(e){return e.startsWith("color")?e.startsWith("colorLink")||e.startsWith("colorText")||e.startsWith("colorIcon")||e.startsWith("colorPlaceholder")||e.startsWith("colorIcon")?"colorText":e.startsWith("colorBg")||e.startsWith("colorPopupBg")?"colorBg":e.startsWith("colorBorder")||e.startsWith("colorSplit")?"colorSplit":e.startsWith("colorFill")?"colorFill":"colorCommon":e.startsWith("font")?"font":e.startsWith("screen")?"screen":e.startsWith("line")?"line":e.startsWith("motion")?"motion":e.startsWith("borderRadius")?"radius":e.startsWith("control")?"control":e.startsWith("margin")||e.startsWith("padding")?"space":"others"}const B1=e=>{const r={};return Object.keys(e||{}).sort((t,n)=>t.localeCompare(n)).forEach(t=>{const n=Oi(t);r[n]||(r[n]=[]),r[n].push(t)}),r},{useToken:D1}=i.theme,H1=ie("AliasTokenPreview",e=>({".preview-panel-wrapper":{overflow:"auto",height:"100%",".preview-panel":{height:"100%",minWidth:300,backgroundColor:"white",display:"flex",flexDirection:"column",".preview-panel-token-wrapper":{position:"relative",flex:1,overflow:"hidden","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:"opacity .3s",content:'""',pointerEvents:"none",insetInlineStart:0,insetInlineEnd:0,height:40},"&::before":{top:0,boxShadow:"inset 0 10px 8px -8px #00000014"},"&::after":{bottom:0,boxShadow:"inset 0 -10px 8px -8px #00000014"},"&.preview-panel-token-wrapper-ping-top":{"&::before":{opacity:1}}},".preview-panel-space":{marginBottom:20,paddingInlineStart:e.paddingXS,display:"flex",justifyContent:"space-between",alignItems:"center",".preview-hide-token":{color:e.colorTextSecondary,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,display:"flex",alignItems:"center",">*:first-child":{marginInlineEnd:2}}},".preview-panel-search":{backgroundColor:"rgba(0, 0, 0, 2%)",borderRadius:e.borderRadiusLG,[`${e.rootCls}-input-group-addon`]:{backgroundColor:"inherit",border:"none",padding:0,transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:"rgba(0, 0, 0, 4%)"}},input:{fontSize:e.fontSizeSM,paddingInlineStart:4},".previewer-token-type-dropdown-icon-active":{color:e.colorPrimary}}}}}));h.forwardRef((e,r)=>{const{filterTypes:t,onFilterTypesChange:n,themes:a,selectedTokens:l,onTokenSelect:c,enableTokenSelect:s}=e,[d,p]=H1(),[g,u]=h.useState(""),[f,C]=h.useState(!1),[x,y]=h.useState(!1),m=h.useRef(null),[S,b]=h.useState([]),[H,k]=h.useState(),{token:L}=D1(),[G,j]=E1(t||[]),K=h.useMemo(()=>B1(L),[L]);h.useEffect(()=>{var N;const P=()=>{var J,fe;y(((fe=(J=m.current)==null?void 0:J.scrollTop)!=null?fe:0)>0)};(N=m.current)==null||N.addEventListener("scroll",P);const U=m.current;return()=>{U==null||U.removeEventListener("scroll",P)}},[]),h.useImperativeHandle(r,()=>({scrollToToken:P=>{const U=Oi(P);S.includes(U)||b(N=>[...N,U]),k(P),setTimeout(()=>{var J;const N=(J=m.current)==null?void 0:J.querySelector(`#${Va(P)}`);N&&(N==null||N.scrollIntoView({block:"center",inline:"nearest"}))},100)}}));const X=(P,U,N)=>{var J;(J=P.onThemeChange)==null||J.call(P,_(I({},P.config),{token:_(I({},P.config.token),{[U]:N})}),["token",U])};return d(o.jsx("div",{className:ee("preview-panel-wrapper",p),children:o.jsxs("div",{className:ee("preview-panel"),children:[o.jsxs("div",{style:{padding:16},children:[o.jsxs("h3",{className:ee("preview-panel-space",p),children:[o.jsx("span",{children:"Alias Token 预览"}),o.jsxs("span",{className:"preview-hide-token",children:[o.jsx("span",{children:"显示所有"}),o.jsx(i.Switch,{checked:f,onChange:P=>C(P),size:"small"})]})]}),o.jsx(i.Input,{allowClear:!0,onChange:P=>{u(P.target.value)},bordered:!1,addonBefore:o.jsx(o.Fragment,{children:o.jsx(i.Dropdown,{overlay:o.jsx(i.Menu,{items:[{label:"筛选项",type:"group",key:"title-key",style:{fontSize:12}},...$i.map(P=>({icon:o.jsxs("span",{children:[o.jsx(D.CheckOutlined,{style:{opacity:G.includes(P)?1:0,marginInlineEnd:8,fontSize:12}}),qa[P]]}),label:Ya[P],key:P,onClick:()=>{const U=G.includes(P)?G.filter(N=>P!==N):[...G,P];j(U),n==null||n(U)}}))]}),trigger:["click"],children:o.jsx(Sl,{style:{width:32,cursor:"pointer",fontSize:18,paddingTop:2,transition:"color 0.3s"},className:ee({"previewer-token-type-dropdown-icon-active":G.length>0})})})}),className:"preview-panel-search",placeholder:"搜索 Token / 色值 / 文本 / 圆角等"})]}),o.jsx("div",{className:ee("preview-panel-token-wrapper",{"preview-panel-token-wrapper-ping-top":x}),children:o.jsx("div",{ref:m,style:{height:"100%",overflow:"auto",padding:"0 16px"},children:o.jsx("div",{children:$i.filter(P=>P!=="seed"&&(G.includes(P)||G.length===0)&&(!g||K[P].some(U=>U.toLowerCase().includes(g.toLowerCase())))).map(P=>o.jsx(Bt,{title:Ya[P],icon:qa[P],tokenPath:["token"],tokenArr:K[P],keyword:g,hideUseless:!f,open:S.includes(P),onOpenChange:U=>b(N=>U?[...N,P]:N.filter(J=>J!==P)),onTokenChange:X,activeToken:H,onActiveTokenChange:U=>k(U),themes:a,selectedTokens:l,onTokenSelect:c,enableTokenSelect:s,fallback:U=>be(U)},P))})})})]})}))});function Zt(){const e=z.useAPIClient(),r=z.useCurrentUserContext();return z.useSystemSettings(),{updateUserThemeSettings:h.useCallback(n=>oo(this,null,function*(){var a;if(n!==((a=r.data.data.systemSettings)==null?void 0:a.themeId))try{yield e.resource("users").updateProfile({values:{systemSettings:_(I({},r.data.data.systemSettings||{}),{themeId:n})}}),r.mutate({data:_(I({},r.data.data),{systemSettings:_(I({},r.data.data.systemSettings||{}),{themeId:n})})})}catch(l){Be.error(l)}}),[e,r])}}const Qt="theme-editor";function xr(){return fo.useTranslation([Qt,"client"],{nsMode:"fallback"})}const A1=({theme:e})=>{const{token:r}=z.useToken();return o.jsx(i.ConfigProvider,{theme:_(I({},e),{inherit:!1}),children:o.jsx("div",{style:{display:"flex",justifyContent:"space-between",pointerEvents:"none",width:"100%",height:129,borderRadius:r.borderRadiusLG,overflow:"hidden"},children:o.jsx(i.Space,{style:{transform:"scale(0.7) translate(0, 0)",transformOrigin:"0 0"},size:0,align:"start",children:o.jsx(br,{})})})})},Fi=e=>{var J,fe,pe,Ze,Se,ve,Qe;const{theme:r,setTheme:t,setCurrentSettingTheme:n,setCurrentEditingTheme:a,getCurrentEditingTheme:l}=z.useGlobalTheme(),{setOpen:c}=Ar(),s=z.useCurrentUserContext(),{item:d,style:p={},onChange:g}=e,u=z.useAPIClient(),{updateUserThemeSettings:f}=Zt(),{modal:C}=i.App.useApp(),[x,y]=h.useState(!1),{currentThemeId:m,defaultThemeId:S}=tn(),{t:b}=xr(),{token:H}=z.useToken(),k=d.id===S,L=h.useCallback(()=>{k||C.confirm({title:b("Delete theme"),content:b("Deletion is unrecoverable. Confirm deletion?"),onOk:()=>oo(this,null,function*(){var re,ye,A;yield u.request({url:`themeConfig:destroy/${d.id}`}),d.id===((A=(ye=(re=s==null?void 0:s.data)==null?void 0:re.data)==null?void 0:ye.systemSettings)==null?void 0:A.themeId)&&f(null),i.message.success(b("Deleted successfully")),g==null||g({type:"delete",item:d})})})},[u,(pe=(fe=(J=s==null?void 0:s.data)==null?void 0:J.data)==null?void 0:fe.systemSettings)==null?void 0:pe.themeId,k,d,C,g,b,f]),G=h.useCallback(re=>oo(this,null,function*(){var ye,A,B;y(!0);try{re?yield u.request({url:`themeConfig:update/${d.id}`,method:"post",data:{optional:re}}):yield Promise.all([u.request({url:`themeConfig:update/${d.id}`,method:"post",data:{optional:re,default:!1}}),d.id===((B=(A=(ye=s==null?void 0:s.data)==null?void 0:ye.data)==null?void 0:A.systemSettings)==null?void 0:B.themeId)&&f(null)])}catch(M){Be.error(M)}y(!1),i.message.success(b("Updated successfully")),g==null||g({type:"optional",item:d})}),[u,(ve=(Se=(Ze=s==null?void 0:s.data)==null?void 0:Ze.data)==null?void 0:Se.systemSettings)==null?void 0:ve.themeId,d,g,b,f]),j=h.useCallback(re=>oo(this,null,function*(){y(!0);try{re?yield Promise.all([u.request({url:`themeConfig:update/${d.id}`,method:"post",data:{optional:!0,default:!0}})]):yield u.request({url:`themeConfig:update/${d.id}`,method:"post",data:{default:!1}})}catch(ye){Be.error(ye)}y(!1),i.message.success(b("Updated successfully")),g==null||g({type:"optional",item:d})}),[u,d,g,b]),K=h.useCallback(()=>{n(r),a(d),t(z.compatOldTheme(d.config)),c(!0)},[d,a,n,c,t,r]),X=h.useMemo(()=>({items:[{key:"optional",label:o.jsxs(i.Space,{style:{width:"100%",justifyContent:"space-between"},align:"center",size:"middle",onClick:re=>re.stopPropagation(),children:[o.jsx("span",{children:b("User selectable")}),o.jsx(i.Switch,{disabled:k,style:{transform:"translateY(-2px)"},checked:d.optional,size:"small",loading:x,onChange:G})]})},{key:"system",label:o.jsxs(i.Space,{style:{width:"100%",justifyContent:"space-between"},align:"center",size:"middle",onClick:re=>re.stopPropagation(),children:[o.jsx("span",{children:b("Default theme")}),o.jsx(i.Switch,{disabled:k,style:{transform:"translateY(-2px)"},checked:k,size:"small",loading:x,onChange:j})]})}]}),[j,G,k,d.optional,x,b]),P=h.useMemo(()=>[o.jsx(D.EditOutlined,{onClick:K},"edit"),o.jsx(D.DeleteOutlined,{style:k?{color:H.colorTextDisabled,cursor:"not-allowed"}:null,disabled:k,onClick:L},"delete"),o.jsx(i.Dropdown,{menu:X,children:o.jsx(D.EllipsisOutlined,{})},"ellipsis")],[L,K,k,X,H.colorTextDisabled]),U=h.useMemo(()=>{if(d.id!==S&&!d.optional)return null;const re=d.id===m?b("Current"):d.id===S?b("Default"):d.optional?b("Optional"):b("Non-optional"),ye=d.id===m?"processing":d.id===S?"default":d.optional?"success":"error";return o.jsx(i.Tag,{style:{marginRight:0},color:ye,children:re})},[m,S,d.id,d.optional,b]),N=h.useMemo(()=>{var re;return((re=l())==null?void 0:re.id)===d.id?I({cursor:"default",width:240,height:240,overflow:"hidden",outline:"1px solid var(--colorSettings)"},p):I({cursor:"default",width:240,height:240,overflow:"hidden"},p)},[l,d.id,p]);return o.jsx(i.Card,{hoverable:!0,extra:U,title:b((Qe=d.config)==null?void 0:Qe.name),size:"small",style:N,headStyle:{minHeight:38},actions:P,children:o.jsx(A1,{theme:d.config})})};Fi.displayName="ThemeCard";const _i=()=>{const{theme:e,setTheme:r,setCurrentSettingTheme:t}=z.useGlobalTheme(),{token:n}=z.useToken(),{setOpen:a}=Ar(),{t:l}=xr(),{modal:c}=i.App.useApp(),s=h.useCallback(()=>{const d=c.confirm({title:l("Add new theme"),closable:!0,maskClosable:!0,width:"fit-content",footer:o.jsxs(i.Space,{style:{float:"right",marginTop:n.margin,justifyContent:"flex-end"},wrap:!0,children:[o.jsx(i.Button,{onClick:()=>{t(e),r(z.compatOldTheme(e)),a(!0),d.destroy()},children:l("Edit based on current theme")}),o.jsx(i.Button,{type:"primary",onClick:()=>{t(e),r(z.compatOldTheme(z.defaultTheme)),a(!0),d.destroy()},children:l("Create a brand new theme")})]})})},[c,t,a,r,l,e,n.margin]);return o.jsx(i.Button,{type:"dashed",style:{width:240,height:240,borderRadius:n.borderRadiusLG,borderColor:"var(--colorSettings)",color:"var(--colorSettings)"},icon:o.jsx(D.PlusOutlined,{}),onClick:s,children:l("Add new theme")})};_i.displayName="ToEditTheme";const Wi=()=>{const{run:e,error:r,refresh:t,data:n}=jo(),{token:a}=z.useToken();h.useEffect(()=>{n||e()},[]);const l=h.useCallback(()=>{t()},[t]);return r?(Be.error(r),null):o.jsxs(i.Space,{size:a.marginLG,wrap:!0,children:[n==null?void 0:n.map(c=>o.jsx(Fi,{item:c,onChange:l},c.id)),o.jsx(_i,{})]})};Wi.displayName="ThemeList";var Cr={},Mo={},Xi;function M1(){if(Xi)return Mo;Xi=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.default=void 0;var e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};return Mo.default=e,Mo}var Io={},Po={},zo={},Ni;function I1(){if(Ni)return zo;Ni=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.default=void 0;var e={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};return zo.default=e,zo}var Lo={},Gi;function Ui(){if(Gi)return Lo;Gi=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;const e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};return Lo.default=e,Lo}var ji;function Vi(){if(ji)return Po;ji=1;var e=Ne;Object.defineProperty(Po,"__esModule",{value:!0}),Po.default=void 0;var r=e(I1()),t=e(Ui());const n={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},r.default),timePickerLocale:Object.assign({},t.default)};return Po.default=n,Po}var qi;function P1(){if(qi)return Io;qi=1;var e=Ne;Object.defineProperty(Io,"__esModule",{value:!0}),Io.default=void 0;var r=e(Vi());return Io.default=r.default,Io}var kr=Ne;Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.default=void 0;var z1=kr(M1()),L1=kr(P1()),$1=kr(Vi()),O1=kr(Ui());const Ee="${label} is not a valid ${type}",F1={locale:"en",Pagination:z1.default,DatePicker:$1.default,TimePicker:O1.default,Calendar:L1.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ee,method:Ee,array:Ee,object:Ee,number:Ee,date:Ee,boolean:Ee,integer:Ee,float:Ee,regexp:Ee,email:Ee,url:Ee,hex:Ee},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};Cr.default=F1;var _1=Cr;const W1=Vo(_1);var wr={},$o={},Yi;function X1(){if(Yi)return $o;Yi=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.default=void 0;var e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};return $o.default=e,$o}var Oo={},Fo={},_o={},Zi;function N1(){if(Zi)return _o;Zi=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=void 0;var e={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};return _o.default=e,_o}var Wo={},Qi;function Ki(){if(Qi)return Wo;Qi=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return Wo.default=e,Wo}var Ji;function Ri(){if(Ji)return Fo;Ji=1;var e=Ne;Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=void 0;var r=e(N1()),t=e(Ki());const n={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},r.default),timePickerLocale:Object.assign({},t.default)};return n.lang.ok="确定",Fo.default=n,Fo}var el;function G1(){if(el)return Oo;el=1;var e=Ne;Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.default=void 0;var r=e(Ri());return Oo.default=r.default,Oo}var Er=Ne;Object.defineProperty(wr,"__esModule",{value:!0}),wr.default=void 0;var U1=Er(X1()),j1=Er(G1()),V1=Er(Ri()),q1=Er(Ki());const Te="${label}不是一个有效的${type}",Y1={locale:"zh-cn",Pagination:U1.default,DatePicker:V1.default,TimePicker:q1.default,Calendar:j1.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Te,method:Te,array:Te,object:Te,number:Te,date:Te,boolean:Te,integer:Te,float:Te,regexp:Te,email:Te,url:Te,hex:Te},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};wr.default=Y1;var Z1=wr;const Q1=Vo(Z1),K1=z.createStyles(({token:e})=>({editor:Uo.css({"& > div:nth-child(2)":{display:"none"}}),header:Uo.css({width:"100%",height:56,padding:"0 16px",borderBottom:"1px solid #F0F0F0",backgroundColor:"#fff","> .ant-space-item:first-child":{flex:1}}),errorPlaceholder:Uo.css({"&::placeholder":{color:e.colorErrorText}})})),J1=({onThemeChange:e})=>{const{styles:r}=K1(),{theme:t,setTheme:n,getCurrentSettingTheme:a,setCurrentEditingTheme:l,getCurrentEditingTheme:c}=z.useGlobalTheme(),[s,d]=h.useState(t),{setOpen:p}=Ar(),{t:g,i18n:u}=xr(),{refresh:f}=jo(),C=z.useAPIClient(),[x,y]=h.useState(t.name),[m,S]=h.useState(!1),{updateUserThemeSettings:b}=Zt(),[H,k]=h.useState();h.useEffect(()=>{d(t)},[t]);const L=u.language,G=()=>oo(this,null,function*(){if(!x){k("error");return}if(S(!0),c()){const X=c();X.config=Dr(s),X.config.name=x;try{yield C.request({url:`themeConfig:update/${X.id}`,method:"POST",data:X}),f==null||f(),i.message.success(g("Saved successfully"))}catch(P){Be.error(P)}S(!1),p(!1),l(null),d(a());return}try{const X=yield C.request({url:"themeConfig:create",method:"POST",data:{config:_(I({},Dr(s)),{name:x}),optional:!0,isBuiltIn:!1}});yield b(X.data.data.id),f==null||f(),i.message.success(g("Saved successfully"))}catch(X){Be.error(X)}S(!1),p(!1)}),j=()=>{p(!1),n(a()),l(null)},K=X=>{X.target.value?k(""):k("error"),y(X.target.value)};return o.jsx(o.Fragment,{children:o.jsxs(i.ConfigProvider,{theme:{inherit:!1},locale:L==="zh-CN"?Q1:W1,children:[o.jsxs(i.Space,{className:r.header,children:[o.jsx(i.Input,{className:Uo.cx({[r.errorPlaceholder]:H==="error"}),status:H,placeholder:g("Please set a name for this theme"),value:x,onChange:K,onPressEnter:G}),o.jsx(i.Button,{type:"default",onClick:j,children:g("Close")}),o.jsx(i.Button,{loading:m,type:"primary",onClick:G,children:g("Save")})]}),o.jsx(vi,{className:r.editor,theme:{name:"Custom Theme",key:"test",config:s},style:{height:"calc(100vh - 56px)",width:540},onThemeChange:X=>{d(X.config),e==null||e(X.config)},locale:L==="zh-CN"?pt:_h})]})})},R1=()=>h.useMemo(()=>({key:"theme",eventKey:"theme",label:o.jsx(em,{})}),[]);function em(){const{t:e}=xr();z.useCurrentUserContext(),z.useSystemSettings();const{run:r,error:t,data:n}=jo(),{updateUserThemeSettings:a}=Zt(),{currentThemeId:l}=tn(),c=h.useMemo(()=>n==null?void 0:n.filter(s=>s.optional).map(s=>({label:e(s.config.name),value:s.id})),[n,e]);return h.useEffect(()=>{n||r()},[]),t?(Be.error(t),null):o.jsx(z.SelectWithTitle,{title:e("Theme"),options:c,defaultValue:l,onChange:s=>{a(s)}})}const om=z.createStyles(({css:e,token:r})=>({editor:e`
|
|
84
|
-
overflow: hidden;
|
|
85
|
-
border-left: 1px solid ${r.colorBorderSecondary};
|
|
86
|
-
animation: 0.1s ease-out 0s 1 slideInFromRight;
|
|
87
|
-
@keyframes slideInFromRight {
|
|
88
|
-
0% {
|
|
89
|
-
transform: translateX(100%);
|
|
90
|
-
}
|
|
91
|
-
100% {
|
|
92
|
-
transform: translateX(0);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
`})),ol=h.memo(e=>{var g;const{addMenuItem:r}=z.useCurrentUserSettingsMenu(),t=R1(),[n,a]=h.useState(!1),{theme:l,setTheme:c}=z.useGlobalTheme(),{styles:s}=om();h.useEffect(()=>{r(t,{before:"divider_3"})},[r,t]);const d=h.useMemo(()=>n?{transform:"rotate(0)",flexGrow:1,width:0,height:"100%"}:{flexGrow:1,width:0,height:"100%"},[n]),p=o.jsxs("div",{style:{display:"flex",overflow:"hidden",height:"100%"},children:[o.jsx("div",{style:d,children:e.children}),n?o.jsx("div",{className:s.editor,children:o.jsx(J1,{onThemeChange:c})}):null]});return(g=l==null?void 0:l.token)!=null&&g.motionUnit||ze.set(l,"token.motionUnit",z.defaultTheme.token.motionUnit),o.jsx(i.ConfigProvider,{theme:l,children:o.jsx(on,{children:o.jsx(nn,{children:o.jsx(ln,{open:n,setOpen:a,children:p})})})})});ol.displayName="CustomThemeProvider";class rl extends z.Plugin{load(){return oo(this,null,function*(){this.app.use(ol),this.app.pluginSettingsManager.add(Qt,{title:`{{t("Theme editor", {ns:"${Qt}"})}}`,icon:"BgColorsOutlined",Component:Wi,aclSnippet:"pm.theme-editor.themes"})})}}W.PluginThemeEditorClient=rl,W.default=rl,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("@nocobase/utils/client"),require("@nocobase/client"),require("lodash"),require("antd"),require("@ant-design/icons"),require("@ant-design/cssinjs"),require("react"),require("@emotion/css")):"function"==typeof define&&define.amd?define("@nocobase/plugin-theme-editor",["react-i18next","@nocobase/utils/client","@nocobase/client","lodash","antd","@ant-design/icons","@ant-design/cssinjs","react","@emotion/css"],t):"object"==typeof exports?exports["@nocobase/plugin-theme-editor"]=t(require("react-i18next"),require("@nocobase/utils/client"),require("@nocobase/client"),require("lodash"),require("antd"),require("@ant-design/icons"),require("@ant-design/cssinjs"),require("react"),require("@emotion/css")):e["@nocobase/plugin-theme-editor"]=t(e["react-i18next"],e["@nocobase/utils/client"],e["@nocobase/client"],e.lodash,e.antd,e["@ant-design/icons"],e["@ant-design/cssinjs"],e.react,e["@emotion/css"])}(self,function(e,t,n,r,o,i,u,a,c){return function(){var l,s,f,d,p,m={7012:function(e,t,n){"use strict";n.r(t),n.d(t,{useThemeId:function(){return f}});var r=n(3772),o=n(7584),i=n(8156),u=n.n(i),a=n(8144),c=n(5725),l=n(3036),s=u().createContext({}),f=function(){return u().useContext(s)},d=function(e){var t,n,f,d=e.children,p=(0,r.useCurrentUserContext)(),m=(0,r.useGlobalTheme)().setTheme,h=(0,l.useThemeListContext)(),v=h.run,b=h.data,y=h.loading,g=(0,i.useMemo)(function(){return null==b?void 0:b.find(function(e){return e.default})},[b]),O=(0,i.useRef)(null),w=(0,r.useAPIClient)();(0,i.useEffect)(function(){var e=w.auth.getOption("theme");if(e)try{m((0,c.w)(JSON.parse(e)).config)}catch(e){(0,o.error)(e)}},[]),(0,i.useEffect)(function(){if(!b)return v();var e,t,n,o,i=null==p?void 0:null===(n=p.data)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:null===(e=t.systemSettings)||void 0===e?void 0:e.themeId;null!=i&&(o=b.find(function(e){return e.id===i})),!o&&(o=g),o?(O.current=o.id,m(o.config),w.auth.setOption("theme",JSON.stringify(Object.assign(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,o,i;r=e,o=t,i=n[t],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}({},o),{config:(0,a.i)(o.config)})))):(m(r.defaultTheme),w.auth.setOption("theme",null))},[w.auth,null==p?void 0:null===(f=p.data)||void 0===f?void 0:null===(n=f.data)||void 0===n?void 0:null===(t=n.systemSettings)||void 0===t?void 0:t.themeId,b,v,m,g]);var P=y&&!b||p.loading?{}:{currentThemeId:O.current,defaultThemeId:null==g?void 0:g.id};return u().createElement(s.Provider,{value:P},d)};d.displayName="InitializeTheme",t.default=d},3036:function(e,t,n){"use strict";n.r(t),n.d(t,{ThemeListProvider:function(){return s},useThemeListContext:function(){return l}});var r=n(3772),o=n(7584),i=n(8156),u=n.n(i),a=n(5725),c=(0,i.createContext)(null);c.displayName="ThemeListContext";var l=function(){return u().useContext(c)},s=function(e){var t=e.children,n=(0,r.useRequest)({url:"themeConfig:list",params:{sort:"id",paginate:!1}},{manual:!0}),l=n.data,s=n.error,f=n.run,d=n.refresh,p=n.loading,m=(0,i.useMemo)(function(){var e;return null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.map(function(e){return(0,a.w)(e)})},[l]);return s&&(0,o.error)(s),u().createElement(c.Provider,{value:{data:m,error:s,run:f,refresh:d,loading:p}},t)};s.displayName="ThemeListProvider"},15:function(e,t,n){"use strict";n.d(t,{Y:function(){return l}});var r=n(3772),o=n(7584),i=n(8156);function u(e,t,n,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,o,i;r=e,o=t,i=n[t],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}function c(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function l(){var e,t,n=(0,r.useAPIClient)(),l=(0,r.useCurrentUserContext)();return{updateUserThemeSettings:(0,i.useCallback)((t=(e=function(e){var t,r;return function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(i){switch(i.label){case 0:if(e===(null===(t=l.data.data.systemSettings)||void 0===t?void 0:t.themeId))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,n.resource("users").updateProfile({values:{systemSettings:c(a({},l.data.data.systemSettings||{}),{themeId:e})}})];case 2:return i.sent(),l.mutate({data:c(a({},l.data.data),{systemSettings:c(a({},l.data.data.systemSettings||{}),{themeId:e})})}),[3,4];case 3:return r=i.sent(),(0,o.error)(r),[3,4];case 4:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){u(i,r,o,a,c,"next",e)}function c(e){u(i,r,o,a,c,"throw",e)}a(void 0)})}),function(e){return t.apply(this,arguments)}),[n,l])}}},8144:function(e,t,n){"use strict";n.d(t,{i:function(){return u}});var r=n(2721),o=n(467),i=n.n(o);function u(e){return(e=i().cloneDeep(e)).algorithm?(Array.isArray(e.algorithm)?e.algorithm=e.algorithm.map(function(e){return a(e)}).filter(Boolean):e.algorithm=a(e.algorithm),i().isEmpty(e.algorithm)&&delete e.algorithm,e):e}function a(e){return"string"==typeof e?e:e.toString()===r.theme.darkAlgorithm.toString()?"darkAlgorithm":e.toString()===r.theme.compactAlgorithm.toString()?"compactAlgorithm":void 0}},5725:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var r=n(2721),o=n(467),i=n.n(o);function u(e){var t;return e=i().cloneDeep(e),i().isString(e.config.algorithm)&&(e.config.algorithm=r.theme[e.config.algorithm]),Array.isArray(null===(t=e.config)||void 0===t?void 0:t.algorithm)&&(e.config.algorithm=e.config.algorithm.map(function(e){return i().isString(e)?r.theme[e]:e})),e}},573:function(e,t,n){"use strict";n.d(t,{$:function(){return i},A:function(){return o}});var r=n(3238),o="theme-editor";function i(){return(0,r.useTranslation)([o,"client"],{nsMode:"fallback"})}},3581:function(e){e.exports=function(e,t){return"undefined"!=typeof __deoptimization_sideEffect__&&__deoptimization_sideEffect__(e,t),t}},1143:function(e){"use strict";e.exports=u},482:function(e){"use strict";e.exports=i},4964:function(e){"use strict";e.exports=c},3772:function(e){"use strict";e.exports=n},7584:function(e){"use strict";e.exports=t},2721:function(e){"use strict";e.exports=o},467:function(e){"use strict";e.exports=r},8156:function(e){"use strict";e.exports=a},3238:function(t){"use strict";t.exports=e}},h={};function v(e){var t=h[e];if(void 0!==t)return t.exports;var n=h[e]={exports:{}};return m[e](n,n.exports,v),n.exports}v.m=m,v.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return v.d(t,{a:t}),t},v.d=function(e,t){for(var n in t)v.o(t,n)&&!v.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},v.f={},v.e=function(e){return Promise.all(Object.keys(v.f).reduce(function(t,n){return v.f[n](e,t),t},[]))},v.u=function(e){return""+e+".index.js"},v.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l={},s="@nocobase/plugin-theme-editor:",v.l=function(e,t,n,r){if(l[e]){l[e].push(t);return}if(void 0!==n){for(var o,i,u=document.getElementsByTagName("script"),a=0;a<u.length;a++){var c=u[a];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==s+n){o=c;break}}}!o&&(i=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,v.nc&&o.setAttribute("nonce",v.nc),o.setAttribute("data-webpack",s+n),o.src=e),l[e]=[t];var f=function(t,n){o.onerror=o.onload=null,clearTimeout(d);var r=l[e];if(delete l[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=f.bind(null,o.onerror),o.onload=f.bind(null,o.onload),i&&document.head.appendChild(o)},v.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.nc=void 0,v.p="/static/plugins/@nocobase/plugin-theme-editor/dist/client/",f={909:0},v.f.j=function(e,t){var n=v.o(f,e)?f[e]:void 0;if(0!==n){if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=f[e]=[t,r]});t.push(n[2]=r);var o=v.p+v.u(e),i=Error();v.l(o,function(t){if(v.o(f,e)&&(0!==(n=f[e])&&(f[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}},"chunk-"+e,e)}}},d=function(e,t){var n=t[0],r=t[1],o=t[2],i,u,a=0;if(n.some(function(e){return 0!==f[e]})){for(i in r)v.o(r,i)&&(v.m[i]=r[i]);o&&o(v)}for(e&&e(t);a<n.length;a++)u=n[a],v.o(f,u)&&f[u]&&f[u][0](),f[u]=0},(p=self.webpackChunk_nocobase_plugin_theme_editor=self.webpackChunk_nocobase_plugin_theme_editor||[]).forEach(d.bind(null,0)),p.push=d.bind(null,p.push.bind(p));var b={};return!function(){"use strict";v.r(b),v.d(b,{PluginThemeEditorClient:function(){return A},default:function(){return q}});var e=v("3772"),t=v("2721"),n=v("467"),r=v.n(n),o=v("8156"),i=v.n(o),u=v("7584"),a=v("7012"),c=v("3036"),l=v("573"),s=v("15");function f(){var t=(0,l.$)().t,n=(0,c.useThemeListContext)(),r=n.run,f=n.error,d=n.data,p=(0,s.Y)().updateUserThemeSettings,m=(0,a.useThemeId)().currentThemeId,h=(0,o.useMemo)(function(){return null==d?void 0:d.filter(function(e){return e.optional}).map(function(e){return{label:t(e.config.name),value:e.id}})},[d,t]);return((0,o.useEffect)(function(){!d&&r()},[]),f)?((0,u.error)(f),null):i().createElement(e.SelectWithTitle,{title:t("Theme"),options:h,defaultValue:m,onChange:function(e){p(e)}})}var d=v(3581);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t,n,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}function h(e,t,n){return(h=P()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&O(o,n.prototype),o}).apply(null,arguments)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t="function"==typeof Map?new Map:void 0;return(w=function(e){var n;if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return h(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),O(r,e)})(e)}function P(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(P=function(){return!!e})()}function x(){var e,t,n=(e=["\n overflow: hidden;\n border-left: 1px solid ",";\n animation: 0.1s ease-out 0s 1 slideInFromRight;\n @keyframes slideInFromRight {\n 0% {\n transform: translateX(100%);\n }\n 100% {\n transform: translateX(0);\n }\n }\n "],!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return x=function(){return n},n}var S=(0,e.lazy)(function(){return d("imported_-1bkn1ue_component",Promise.resolve().then(v.bind(v,7012)))}),j=(0,e.lazy)(function(){return d("imported_-16ae68t_component",v.e("964").then(v.bind(v,4950)))},"ThemeEditorProvider").ThemeEditorProvider,T=(0,e.lazy)(function(){return d("imported_-19lv318_component",Promise.all([v.e("933"),v.e("916"),v.e("506")]).then(v.bind(v,8390)))}),_=(0,e.lazy)(function(){return d("imported_-ofsaik_component",Promise.resolve().then(v.bind(v,3036)))},"ThemeListProvider").ThemeListProvider,E=(0,e.lazy)(function(){return d("imported_-1mfft73_component",Promise.all([v.e("933"),v.e("916"),v.e("171")]).then(v.bind(v,7362)))}),k=(0,e.createStyles)(function(e){var t=e.css,n=e.token;return{editor:t(x(),n.colorBorderSecondary)}}),C=i().memo(function(n){var u,a,c,l=(0,e.useCurrentUserSettingsMenu)().addMenuItem,s=(0,o.useMemo)(function(){return{key:"theme",eventKey:"theme",label:i().createElement(f,null)}},[]);var d=(u=i().useState(!1),a=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],u=!0,a=!1;try{for(o=o.call(e);!(u=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){a=!0,r=e}finally{try{!u&&null!=o.return&&o.return()}finally{if(a)throw r}}return i}}(u,2)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}}(u,a)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=d[0],h=d[1],v=(0,e.useGlobalTheme)(),b=v.theme,y=v.setTheme,g=k().styles;(0,o.useEffect)(function(){l(s,{before:"divider_3"})},[l,s]);var O=(0,o.useMemo)(function(){return m?{transform:"rotate(0)",flexGrow:1,width:0,height:"100%"}:{flexGrow:1,width:0,height:"100%"}},[m]),w=i().createElement("div",{style:{display:"flex",overflow:"hidden",height:"100%"}},i().createElement("div",{style:O},n.children),m?i().createElement("div",{className:g.editor},i().createElement(E,{onThemeChange:y})):null);return!(null==b?void 0:null===(c=b.token)||void 0===c?void 0:c.motionUnit)&&r().set(b,"token.motionUnit",e.defaultTheme.token.motionUnit),i().createElement(t.ConfigProvider,{theme:b},i().createElement(_,null,i().createElement(S,null,i().createElement(j,{open:m,setOpen:h},w))))});C.displayName="CustomThemeProvider";var A=function(e){var t,n,r;function o(){var e,t,n;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),e=this,t=o,n=arguments,t=g(t),function(e,t){return t&&("object"===function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(t)||"function"==typeof t)?t:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,P()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(o,e),t=o,n=[{key:"load",value:function(){var e,t=this;return(e=function(){return function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(e){return t.app.use(C),t.app.pluginSettingsManager.add(l.A,{title:'{{t("Theme editor", {ns:"'.concat(l.A,'"})}}'),icon:"BgColorsOutlined",Component:T,aclSnippet:"pm.theme-editor.themes"}),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function u(e){m(i,r,o,u,a,"next",e)}function a(e){m(i,r,o,u,a,"throw",e)}u(void 0)})})()}}],y(t.prototype,n),o}(w(e.Plugin)),q=A}(),b}()});
|