1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2200],{36011:function(t,e,n){n.d(e,{Z:function(){return z}});var o=n(75271),i=n(82187),a=n.n(i),r=n(79482),l=n(76314),c=n(60323),s=n(58673),d=n(13800),u=n(74468),m=n(31998),b=n(30454),f=n(47486),h=n(78878),g=n(50979),v=function(t,e){if(!t)return null;var n={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return e?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},p=function(t){return void 0!==t?"".concat(t,"px"):void 0};function S(t){var e=t.prefixCls,n=t.containerRef,i=t.value,r=t.getValueIndex,c=t.motionName,s=t.onMotionStart,u=t.onMotionEnd,m=t.direction,b=t.vertical,S=void 0!==b&&b,w=o.useRef(null),C=o.useState(i),O=(0,l.Z)(C,2),E=O[0],k=O[1],x=function(t){var o,i=r(t),a=null===(o=n.current)||void 0===o?void 0:o.querySelectorAll(".".concat(e,"-item"))[i];return(null==a?void 0:a.offsetParent)&&a},Z=o.useState(null),j=(0,l.Z)(Z,2),y=j[0],H=j[1],N=o.useState(null),R=(0,l.Z)(N,2),M=R[0],I=R[1];(0,g.Z)(function(){if(E!==i){var t=x(E),e=x(i),n=v(t,S),o=v(e,S);k(i),H(n),I(o),t&&e?s():u()}},[i]);var P=o.useMemo(function(){if(S){var t;return p(null!==(t=null==y?void 0:y.top)&&void 0!==t?t:0)}return"rtl"===m?p(-(null==y?void 0:y.right)):p(null==y?void 0:y.left)},[S,m,y]),z=o.useMemo(function(){if(S){var t;return p(null!==(t=null==M?void 0:M.top)&&void 0!==t?t:0)}return"rtl"===m?p(-(null==M?void 0:M.right)):p(null==M?void 0:M.left)},[S,m,M]);return y&&M?o.createElement(h.ZP,{visible:!0,motionName:c,motionAppear:!0,onAppearStart:function(){return S?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return S?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){H(null),I(null),u()}},function(t,n){var i=t.className,r=t.style,l=(0,d.Z)((0,d.Z)({},r),{},{"--thumb-start-left":P,"--thumb-start-width":p(null==y?void 0:y.width),"--thumb-active-left":z,"--thumb-active-width":p(null==M?void 0:M.width),"--thumb-start-top":P,"--thumb-start-height":p(null==y?void 0:y.height),"--thumb-active-top":z,"--thumb-active-height":p(null==M?void 0:M.height)}),c={ref:(0,f.sQ)(w,n),style:l,className:a()("".concat(e,"-thumb"),i)};return o.createElement("div",c)}):null}var w=["prefixCls","direction","vertical","options","disabled","defaultValue","value","onChange","className","motionName"],C=function(t){var e=t.prefixCls,n=t.className,i=t.disabled,r=t.checked,l=t.label,c=t.title,d=t.value,u=t.onChange;return o.createElement("label",{className:a()(n,(0,s.Z)({},"".concat(e,"-item-disabled"),i))},o.createElement("input",{className:"".concat(e,"-item-input"),type:"radio",disabled:i,checked:r,onChange:function(t){i||u(t,d)}}),o.createElement("div",{className:"".concat(e,"-item-label"),title:c,role:"option","aria-selected":r},l))},O=o.forwardRef(function(t,e){var n,i,h=t.prefixCls,g=void 0===h?"rc-segmented":h,v=t.direction,p=t.vertical,O=t.options,E=void 0===O?[]:O,k=t.disabled,x=t.defaultValue,Z=t.value,j=t.onChange,y=t.className,H=t.motionName,N=(0,c.Z)(t,w),R=o.useRef(null),M=o.useMemo(function(){return(0,f.sQ)(R,e)},[R,e]),I=o.useMemo(function(){return E.map(function(t){if("object"===(0,u.Z)(t)&&null!==t){var e=function(t){if(void 0!==t.title)return t.title;if("object"!==(0,u.Z)(t.label)){var e;return null===(e=t.label)||void 0===e?void 0:e.toString()}}(t);return(0,d.Z)((0,d.Z)({},t),{},{title:e})}return{label:null==t?void 0:t.toString(),title:null==t?void 0:t.toString(),value:t}})},[E]),P=(0,m.Z)(null===(n=I[0])||void 0===n?void 0:n.value,{value:Z,defaultValue:x}),z=(0,l.Z)(P,2),B=z[0],D=z[1],A=o.useState(!1),X=(0,l.Z)(A,2),q=X[0],V=X[1],L=function(t,e){k||(D(e),null==j||j(e))},W=(0,b.Z)(N,["children"]);return o.createElement("div",(0,r.Z)({role:"listbox","aria-label":"segmented control"},W,{className:a()(g,(i={},(0,s.Z)(i,"".concat(g,"-rtl"),"rtl"===v),(0,s.Z)(i,"".concat(g,"-disabled"),k),(0,s.Z)(i,"".concat(g,"-vertical"),p),i),void 0===y?""
1:y),ref:M}),o.createElement("div",{className:"".concat(g,"-group")},o.createElement(S,{vertical:p,prefixCls:g,value:B,containerRef:R,motionName:"".concat(g,"-").concat(void 0===H?"thumb-motion":H),direction:v,getValueIndex:function(t){return I.findIndex(function(e){return e.value===t})},onMotionStart:function(){V(!0)},onMotionEnd:function(){V(!1)}}),I.map(function(t){return o.createElement(C,(0,r.Z)({},t,{key:t.value,prefixCls:g,className:a()(t.className,"".concat(g,"-item"),(0,s.Z)({},"".concat(g,"-item-selected"),t.value===B&&!q)),checked:t.value===B,onChange:L,disabled:!!k||!!t.disabled}))})))}),E=n(49637),k=n(33490),x=n(98020),Z=n(93038),j=n(94372),y=n(56977);function H(t,e){return{["".concat(t,", ").concat(t,":hover, ").concat(t,":focus")]:{color:e.colorTextDisabled,cursor:"not-allowed"}}}function N(t){return{backgroundColor:t.itemSelectedBg,boxShadow:t.boxShadowTertiary}}let R=Object.assign({overflow:"hidden"},Z.vS),M=t=>{let{componentCls:e}=t,n=t.calc(t.controlHeight).sub(t.calc(t.trackPadding).mul(2)).equal(),o=t.calc(t.controlHeightLG).sub(t.calc(t.trackPadding).mul(2)).equal(),i=t.calc(t.controlHeightSM).sub(t.calc(t.trackPadding).mul(2)).equal();return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Z.Wf)(t)),{display:"inline-block",padding:t.trackPadding,color:t.itemColor,background:t.trackBg,borderRadius:t.borderRadius,transition:"all ".concat(t.motionDurationMid," ").concat(t.motionEaseInOut),["".concat(e,"-group")]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},["&".concat(e,"-rtl")]:{direction:"rtl"},["&".concat(e,"-vertical")]:{["".concat(e,"-group")]:{flexDirection:"column"},["".concat(e,"-thumb")]:{width:"100%",height:0,padding:"0 ".concat((0,x.bf)(t.paddingXXS))}},["&".concat(e,"-block")]:{display:"flex"},["&".concat(e,"-block ").concat(e,"-item")]:{flex:1,minWidth:0},["".concat(e,"-item")]:{position:"relative",textAlign:"center",cursor:"pointer",transition:"color ".concat(t.motionDurationMid," ").concat(t.motionEaseInOut),borderRadius:t.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},N(t)),{color:t.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:"background-color ".concat(t.motionDurationMid),pointerEvents:"none"},["&:hover:not(".concat(e,"-item-selected):not(").concat(e,"-item-disabled)")]:{color:t.itemHoverColor,"&::after":{backgroundColor:t.itemHoverBg}},["&:active:not(".concat(e,"-item-selected):not(").concat(e,"-item-disabled)")]:{color:t.itemHoverColor,"&::after":{backgroundColor:t.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:(0,x.bf)(n),padding:"0 ".concat((0,x.bf)(t.segmentedPaddingHorizontal))},R),"&-icon + *":{marginInlineStart:t.calc(t.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},["".concat(e,"-thumb")]:Object.assign(Object.assign({},N(t)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:"".concat((0,x.bf)(t.paddingXXS)," 0"),borderRadius:t.borderRadiusSM,transition:"transform ".concat(t.motionDurationSlow," ").concat(t.motionEaseInOut,", height ").concat(t.motionDurationSlow," ").concat(t.motionEaseInOut),["& ~ ".concat(e,"-item:not(").concat(e,"-item-selected):not(").concat(e,"-item-disabled)::after")]:{backgroundColor:"transparent"}}),["&".concat(e,"-lg")]:{borderRadius:t.borderRadiusLG,["".concat(e,"-item-label")]:{minHeight:o,lineHeight:(0,x.bf)(o),padding:"0 ".concat((0,x.bf)(t.segmentedPaddingHorizontal)),fontSize:t.fontSizeLG},["".concat(e,"-item, ").concat(e,"-thumb")]:{borderRadius:t.borderRadius}},["&".concat(e,"-sm")]:{borderRadius:t.borderRadiusSM,["".concat(e,"-item-label")]:{minHeight:i,lineHeight:(0,x.bf)(i),padding:"0 ".concat((0,x.bf)(t.segmentedPaddingHorizontalSM))},["".concat(e,"-item, ").concat(e,"-thumb")]:{borderRadius:t.borderRadiusXS}}}),H("&-disabled ".concat(e,"-item"),t)),H("".concat(e,"-item-disabled"),t)),{["".concat(e,"-thumb-motion-appear-active")]:{transition:"transform ".concat(t.motionDurationSlow," ").concat(t.motionEaseInOut,", width ").concat(t.motionDurationSlow," ").concat(t.motionEaseInOut),willChange:"transform, width"}})}};var I=(0,j.I$)("Segmented",t=>{let{lineWidth:e,calc:n}=t;return[M((0,y.IX)(t,{segmentedPaddingHorizontal:n(t.controlPaddingHorizontal).sub(e).equal(),segmentedPaddingHorizontalSM:n(t.controlPaddingHorizontalSM).sub(e).equal()}))]},t=>{let{colorTextLabel:e,colorText:n,colorFillSecondary:o,colorBgElevated:i,colorFill:a,lineWidthBold:r,colorBgLayout:l}=t;return{trackPadding:r,trackBg:l,itemColor:e,itemHoverColor:n,itemHoverBg:o,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}}),P=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>
1e.indexOf(o)&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)0>e.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n},z=o.forwardRef((t,e)=>{let{prefixCls:n,className:i,rootClassName:r,block:l,options:c=[],size:s="middle",style:d,vertical:u}=t,m=P(t,["prefixCls","className","rootClassName","block","options","size","style","vertical"]),{getPrefixCls:b,direction:f,segmented:h}=o.useContext(E.E_),g=b("segmented",n),[v,p,S]=I(g),w=(0,k.Z)(s),C=o.useMemo(()=>c.map(t=>{if("object"==typeof t&&(null==t?void 0:t.icon)){let{icon:e,label:n}=t;return Object.assign(Object.assign({},P(t,["icon","label"])),{label:o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(g,"-item-icon")},e),n&&o.createElement("span",null,n))})}return t}),[c,g]),x=a()(i,r,null==h?void 0:h.className,{["".concat(g,"-block")]:l,["".concat(g,"-sm")]:"small"===w,["".concat(g,"-lg")]:"large"===w,["".concat(g,"-vertical")]:u},p,S),Z=Object.assign(Object.assign({},null==h?void 0:h.style),d);return v(o.createElement(O,Object.assign({},m,{className:x,style:Z,options:C,ref:e,prefixCls:g,direction:f,vertical:u})))})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.