PageSourceSearch

https://xpeak.ai/_next/static/chunks/2224-a1d4dac0d0801076.js

js xpeak.ai collected 2026-10-05 13:22:13 UTC 12,996 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2224],{2490:(e,t,n)=>{function o(e,t){return{motionName:null!=t?t:"".concat(e,"-move-up")}}function a(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),o=()=>{null==t||t()};return o.then=(e,t)=>n.then(e,t),o.promise=n,o}n.d(t,{E:()=>a,V:()=>o})},45131:(e,t,n)=>{n.d(t,{$T:()=>u,ph:()=>p,hN:()=>E});var o=n(77066),a=n(54391),l=n(87028),r=n(2592),s=n(52293),c=n(33924);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let u=o.forwardRef((e,t)=>{let{prefixCls:n,style:a,className:r,duration:u=4.5,showProgress:m,pauseOnHover:p=!0,eventKey:f,content:d,closable:y,props:g,onClick:v,onNoticeClose:h,times:E,hovering:N}=e,[k,b]=o.useState(!1),[x,C]=o.useState(0),[A,$]=o.useState(0),w=N||k,M="number"==typeof u?u:0,S=M>0&&m,O=()=>{h(f)};o.useEffect(()=>{if(!w&&M>0){let e=Date.now()-A,t=setTimeout(()=>{O()},1e3*M-A);return()=>{p&&clearTimeout(t),$(Date.now()-e)}}},[M,w,E]),o.useEffect(()=>{if(!w&&S&&(p||0===A)){let e,t=performance.now(),n=()=>{cancelAnimationFrame(e),e=requestAnimationFrame(e=>{let o=Math.min((e+A-t)/(1e3*M),1);C(100*o),o<1&&n()})};return n(),()=>{p&&cancelAnimationFrame(e)}}},[M,A,w,S,E]);let j=o.useMemo(()=>"object"==typeof y&&null!==y?y:{},[y]),P=(0,c.A)(j,!0),R=100-(!x||x<0?0:x>100?100:x),I=`${n}-notice`;return o.createElement("div",i({},g,{ref:t,className:(0,l.$)(I,r,{[`${I}-closable`]:y}),style:a,onMouseEnter:e=>{b(!0),g?.onMouseEnter?.(e)},onMouseLeave:e=>{b(!1),g?.onMouseLeave?.(e)},onClick:v}),o.createElement("div",{className:`${I}-content`},d),y&&o.createElement("button",i({className:`${I}-close`,onKeyDown:e=>{("Enter"===e.key||"Enter"===e.code||e.keyCode===s.A.ENTER)&&O()},"aria-label":"Close"},P,{onClick:e=>{e.preventDefault(),e.stopPropagation(),O()}}),j.closeIcon??"x"),S&&o.createElement("progress",{className:`${I}-progress`,max:"100",value:R},R+"%"))}),m=o.createContext({}),p=({children:e,classNames:t})=>o.createElement(m.Provider,{value:{classNames:t}},e);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let d=e=>{let{configList:t,placement:n,prefixCls:a,className:s,style:c,motion:i,onAllNoticeRemoved:p,onNoticeClose:d,stack:y}=e,{classNames:g}=(0,o.useContext)(m),v=(0,o.useRef)({}),[h,E]=(0,o.useState)(null),[N,k]=(0,o.useState)([]),b=t.map(e=>({config:e,key:String(e.key)})),[x,{offset:C,threshold:A,gap:$}]=(e=>{let t={offset:8,threshold:3,gap:16};return e&&"object"==typeof e&&(t.offset=e.offset??8,t.threshold=e.threshold??3,t.gap=e.gap??16),[!!e,t]})(y),w=x&&(N.length>0||b.length<=A),M="function"==typeof i?i(n):i;return(0,o.useEffect)(()=>{x&&N.length>1&&k(e=>e.filter(e=>b.some(({key:t})=>e===t)))},[N,b,x]),(0,o.useEffect)(()=>{x&&v.current[b[b.length-1]?.key]&&E(v.current[b[b.length-1]?.key])},[b,x]),o.createElement(r.aF,f({key:n,className:(0,l.$)(a,`${a}-${n}`,g?.list,s,{[`${a}-stack`]:!!x,[`${a}-stack-expanded`]:w}),style:c,keys:b,motionAppear:!0},M,{onAllRemoved:()=>{p(n)}}),({config:e,className:t,style:r,index:s},c)=>{let{key:i,times:m}=e,p=String(i),{className:y,style:E,classNames:A,styles:M,...S}=e,O=b.findIndex(e=>e.key===p),j={};if(x){let e=b.length-1-(O>-1?O:s-1),t="top"===n||"bottom"===n?"-50%":"0";if(e>0){j.height=w?v.current[p]?.offsetHeight:h?.offsetHeight;let o=0;for(let t=0;t<e;t++)o+=v.current[b[b.length-1-t].key]?.offsetHeight+$;let a=(w?o:e*C)*(n.startsWith("top")?1:-1),l=!w&&h?.offsetWidth&&v.current[p]?.offsetWidth?(h?.offsetWidth-2*C*(e<3?e:3))/v.current[p]?.offsetWidth:1;j.transform=`translate3d(${t}, ${a}px, 0) scaleX(${l})`}else j.transform=`translate3d(${t}, 0, 0)`}return o.createElement("div",{ref:c,className:(0,l.$)(`${a}-notice-wrapper`,t,A?.wrapper),style:{...r,...j,...M?.wrapper},onMouseEnter:()=>k(e=>e.includes(p)?e:[...e,p]),onMouseLeave:()=>k(e=>e.filter(e=>e!==p))},o.createElement(u,f({},S,{ref:e=>{O>-1?v.current[p]=e:delete v.current[p]},prefixCls:a,classNames:A,styles:M,className:(0,l.$)(y,g?.notice),style:E,times:m,key:i,eventKey:i,onNoticeClose:d,hovering:x&&N.length>0})))})},y=o.forwardRef((e,t)=>
1{let{prefixCls:n="rc-notification",container:l,motion:r,maxCount:s,className:c,style:i,onAllRemoved:u,stack:m,renderNotifications:p}=e,[f,y]=o.useState([]),g=e=>{let t=f.find(t=>t.key===e),n=t?.closable,{onClose:o}=n&&"object"==typeof n?n:{};o?.(),t?.onClose?.(),y(t=>t.filter(t=>t.key!==e))};o.useImperativeHandle(t,()=>({open:e=>{y(t=>{let n=[...t],o=n.findIndex(t=>t.key===e.key),a={...e};return o>=0?(a.times=(t[o]?.times||0)+1,n[o]=a):(a.times=0,n.push(a)),s>0&&n.length>s&&(n=n.slice(-s)),n})},close:e=>{g(e)},destroy:()=>{y([])}}));let[v,h]=o.useState({});o.useEffect(()=>{let e={};f.forEach(t=>{let{placement:n="topRight"}=t;n&&(e[n]=e[n]||[],e[n].push(t))}),Object.keys(v).forEach(t=>{e[t]=e[t]||[]}),h(e)},[f]);let E=e=>{h(t=>{let n={...t};return(n[e]||[]).length||delete n[e],n})},N=o.useRef(!1);if(o.useEffect(()=>{Object.keys(v).length>0?N.current=!0:N.current&&(u?.(),N.current=!1)},[v]),!l)return null;let k=Object.keys(v);return(0,a.createPortal)(o.createElement(o.Fragment,null,k.map(e=>{let t=v[e],a=o.createElement(d,{key:e,configList:t,placement:e,prefixCls:n,className:c?.(e),style:i?.(e),motion:r,onNoticeClose:g,onAllNoticeRemoved:E,stack:m});return p?p(a,{prefixCls:n,key:e}):a})),l)});var g=n(72191);let v=()=>document.body,h=0;function E(e={}){let{getContainer:t=v,motion:n,prefixCls:a,maxCount:l,className:r,style:s,onAllRemoved:c,stack:i,renderNotifications:u,...m}=e,[p,f]=o.useState(),d=o.useRef(),N=o.createElement(y,{container:p,ref:d,prefixCls:a,motion:n,maxCount:l,className:r,style:s,onAllRemoved:c,stack:i,renderNotifications:u}),[k,b]=o.useState([]),x=(0,g._q)(e=>{let t=function(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{let o=e[n];void 0!==o&&(t[n]=o)})}),t}(m,e);(null===t.key||void 0===t.key)&&(t.key=`rc-notification-${h}`,h+=1),b(e=>[...e,{type:"open",config:t}])}),C=o.useMemo(()=>({open:x,close:e=>{b(t=>[...t,{type:"close",key:e}])},destroy:()=>{b(e=>[...e,{type:"destroy"}])}}),[]);return o.useEffect(()=>{f(t())}),o.useEffect(()=>{if(d.current&&k.length){let e,t;k.forEach(e=>{switch(e.type){case"open":d.current.open(e.config);break;case"close":d.current.close(e.key);break;case"destroy":d.current.destroy()}}),b(n=>(e===n&&t||(e=n,t=n.filter(e=>!k.includes(e))),t))}},[k]),[C,N]}},55356:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(85283),a=n(81510),l=n(49476),r=n(39875),s=n(7503);let c=(0,r.OF)("Message",e=>(e=>{let{componentCls:t,iconCls:n,boxShadow:a,colorText:r,colorSuccess:s,colorError:c,colorWarning:i,colorInfo:u,fontSizeLG:m,motionEaseInOutCirc:p,motionDurationSlow:f,marginXS:d,paddingXS:y,borderRadiusLG:g,zIndexPopup:v,contentPadding:h,contentBg:E}=e,N="".concat(t,"-notice"),k=new o.Mo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),b=new o.Mo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:y,textAlign:"center",["".concat(t,"-custom-content")]:{display:"flex",alignItems:"center"},["".concat(t,"-custom-content > ").concat(n)]:{marginInlineEnd:d,fontSize:m},["".concat(N,"-content")]:{display:"inline-block",padding:h,background:E,borderRadius:g,boxShadow:a,pointerEvents:"all"},["".concat(t,"-success > ").concat(n)]:{color:s},["".concat(t,"-error > ").concat(n)]:{color:c},["".concat(t,"-warning > ").concat(n)]:{color:i},["".concat(t,"-info > ").concat(n,",\n      ").concat(t,"-loading > ").concat(n)]:{color:u}};return[{[t]:{...(0,l.dF)(e),color:r,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:v,["".concat(t,"-move-up")]:{animationFillMode:"forwards"},["\n        ".concat(t,"-move-up-appear,\n        ").concat(t,"-move-up-enter\n      ")]:{animationName:k,animationDuration:f,animationPlayState:"paused",animationTimingFunction:p},["\n        ".concat(t,"-move-up-appear").concat(t,"-move-up-appear-active,\n        ").concat(t,"-move-up-enter").concat(t,"-move-up-enter-active\n      ")]:{animationPlayState:"running"},["".concat(t,"-move-up-leave")]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:p},["".concat(t,"-move-up-leave").concat(t,"-move-up-leave-active")]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{["".concat(N,"-wrapper")]:{...x}}},{["".concat(t,"-notice-pure-panel")]:{...x,padding:0,textAlign:"start"}}]})((0,s.oX)(e,{height:150})),e=>({zIndexPopup:e.zIndexPopupBase+a.jH+10,contentBg:e.colorBgElevated,contentPadding:"".concat((e.controlHeightLG-e.fontSize*e.lineHeight)/2,"px ").concat(e.paddingSM,"px")}))},63469:(e,t,n)=>{n.d(t,{A:()=>l,B:()=>a});var o=n(77066);let a=o.createContext({}),l=o.createContext({message:{},notification:{},modal:{}})},79730:(e,t,n)=>{n.d(t,{Ay:()=>h,Mb:()=>v});var o=n(77066),a=n(10702),l=n(65075),r=n(83753),s=n(71918),c=n(499
100),i=n(45131),u=n(87028),m=n(25e3),p=n(22719),f=n(9514),d=n(13371),y=n(55356);let g={info:o.createElement(s.A,null),success:o.createElement(a.A,null),error:o.createElement(l.A,null),warning:o.createElement(r.A,null),loading:o.createElement(c.A,null)},v=e=>{let{prefixCls:t,type:n,icon:a,children:l,classNames:r,styles:s}=e,c=a||n&&g[n],i=(0,p.Ob)(c,e=>{let t={...null==e?void 0:e.style,...null==s?void 0:s.icon};return{className:(0,u.$)(e.className,null==r?void 0:r.icon),style:t}});return o.createElement("div",{className:(0,u.$)("".concat(t,"-custom-content"),"".concat(t,"-").concat(n))},i,o.createElement("span",{className:null==r?void 0:r.content,style:null==s?void 0:s.content},l))},h=e=>{let{prefixCls:t,className:n,style:a,type:l,icon:r,content:s,classNames:c,styles:p,...g}=e,{getPrefixCls:h,className:E,style:N,classNames:k,styles:b}=(0,f.TP)("message"),x=t||h("message"),C=(0,d.A)(x),[A,$]=(0,y.A)(x,C),[w,M]=(0,m.AV)([k,c],[b,p],{props:e});return o.createElement(i.$T,{...g,prefixCls:x,className:(0,u.$)(E,w.root,n,A,"".concat(x,"-notice-pure-panel"),$,C),style:{...M.root,...N,...a},eventKey:"pure",duration:null,content:o.createElement(v,{prefixCls:x,type:l,icon:r,classNames:w,styles:M},s)})}},86596:(e,t,n)=>{n.d(t,{A:()=>E,y:()=>h});var o=n(77066),a=n(45131),l=n(87028),r=n(25e3),s=n(62062),c=n(65328),i=n(9514),u=n(13371),m=n(79730),p=n(55356),f=n(2490);let d=e=>{let{children:t,prefixCls:n}=e,r=(0,u.A)(n),[s,c]=(0,p.A)(n,r);return o.createElement(a.ph,{classNames:{list:(0,l.$)(s,c,r)}},t)},y=(e,t)=>{let{prefixCls:n,key:a}=t;return o.createElement(d,{prefixCls:n,key:a},e)},g=o.forwardRef((e,t)=>{let{top:n,prefixCls:s,getContainer:c,maxCount:u,duration:m=3,rtl:p,transitionName:d,onAllRemoved:g,pauseOnHover:v=!0}=e,{getPrefixCls:h,direction:E,getPopupContainer:N}=(0,i.TP)("message"),{message:k}=o.useContext(i.QO),b=s||h("message"),[x,C]=(0,r.AV)([null==e?void 0:e.classNames,null==k?void 0:k.classNames],[null==e?void 0:e.styles,null==k?void 0:k.styles],{props:e}),[A,$]=(0,a.hN)({prefixCls:b,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>(0,l.$)({["".concat(b,"-rtl")]:null!=p?p:"rtl"===E}),motion:()=>(0,f.V)(b,d),closable:!1,duration:m,getContainer:()=>(null==c?void 0:c())||(null==N?void 0:N())||document.body,maxCount:u,onAllRemoved:g,renderNotifications:y,pauseOnHover:v});return o.useImperativeHandle(t,()=>({...A,prefixCls:b,message:k,classNames:x,styles:C})),$}),v=0;function h(e){let t=o.useRef(null);return(0,c.rJ)("Message"),[o.useMemo(()=>{let n=e=>{var n;null==(n=t.current)||n.close(e)},a=a=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:c,prefixCls:i,message:u,classNames:p,styles:d}=t.current,y=(null==u?void 0:u.className)||{},g=(null==u?void 0:u.style)||{},h=(null==u?void 0:u.classNames)||{},E=(null==u?void 0:u.styles)||{},N="".concat(i,"-notice"),{content:k,icon:b,type:x,key:C,className:A,style:$,onClose:w,classNames:M={},styles:S={},...O}=a,j=C;(0,s.A)(j)||(v+=1,j="antd-message-".concat(v));let P={...e,...a},R=(0,r.Jb)(h,{props:P}),I=(0,r.Jb)(M,{props:P}),F=(0,r.Jb)(E,{props:P}),H=(0,r.Jb)(S,{props:P}),T=(0,r.VN)(void 0,R,I,p),D=(0,r.Zq)(F,H,d);return(0,f.E)(e=>(c({...O,key:j,content:o.createElement(m.Mb,{prefixCls:i,type:x,icon:b,classNames:T,styles:D},k),placement:"top",className:(0,l.$)({["".concat(N,"-").concat(x)]:x},A,y,T.root),style:{...D.root,...g,...$},onClose:()=>{null==w||w(),e()}}),()=>{n(j)}))},c={open:a,destroy:e=>{if(void 0!==e)n(e);else{var o;null==(o=t.current)||o.destroy()}}};return["info","success","warning","error","loading"].forEach(e=>{c[e]=(t,n,o)=>{let l,r,s;return l=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?s=n:(r=n,s=o),a({onClose:s,duration:r,...l,type:e})}}),c},[]),o.createElement(g,{key:"message-holder",...e,ref:t})]}function E(e){return h(e)}}}]);

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.