@kb-labs/workflow-entry 2.105.0 → 2.106.0
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/widgets/117.js +1 -2
- package/dist/widgets/165.js +1 -2
- package/dist/widgets/326.js +1 -2
- package/dist/widgets/370.js +1 -2
- package/dist/widgets/405.js +1 -2
- package/dist/widgets/46.js +1 -2
- package/dist/widgets/50.js +1 -2
- package/dist/widgets/546.js +1 -2
- package/dist/widgets/62.js +1 -2
- package/dist/widgets/648.js +1 -2
- package/dist/widgets/669.js +1 -2
- package/dist/widgets/707.js +1 -2
- package/dist/widgets/716.js +1 -2
- package/dist/widgets/733.js +1 -2
- package/dist/widgets/775.js +1 -2
- package/dist/widgets/78.js +1 -2
- package/dist/widgets/945.js +1 -2
- package/dist/widgets/968.js +1 -2
- package/dist/widgets/__federation_expose_Crons.js +1 -2
- package/dist/widgets/__federation_expose_Dashboard.js +1 -2
- package/dist/widgets/__federation_expose_DefinitionDetail.js +1 -2
- package/dist/widgets/__federation_expose_Definitions.js +1 -2
- package/dist/widgets/__federation_expose_Jobs.js +1 -2
- package/dist/widgets/__federation_expose_RunDetail.js +2 -3
- package/dist/widgets/__federation_expose_Runs.js +1 -2
- package/dist/widgets/mf-manifest.json +5 -5
- package/dist/widgets/mf-stats.json +10 -9
- package/dist/widgets/remoteEntry.js +2 -3
- package/package.json +5 -5
- package/dist/widgets/117.js.map +0 -1
- package/dist/widgets/165.js.map +0 -1
- package/dist/widgets/326.js.map +0 -1
- package/dist/widgets/370.js.map +0 -1
- package/dist/widgets/405.js.map +0 -1
- package/dist/widgets/46.js.map +0 -1
- package/dist/widgets/50.js.map +0 -1
- package/dist/widgets/546.js.map +0 -1
- package/dist/widgets/62.js.map +0 -1
- package/dist/widgets/648.js.map +0 -1
- package/dist/widgets/669.js.map +0 -1
- package/dist/widgets/707.js.map +0 -1
- package/dist/widgets/716.js.map +0 -1
- package/dist/widgets/733.js.map +0 -1
- package/dist/widgets/775.js.map +0 -1
- package/dist/widgets/78.js.map +0 -1
- package/dist/widgets/945.js.map +0 -1
- package/dist/widgets/968.js.map +0 -1
- package/dist/widgets/__federation_expose_Crons.js.map +0 -1
- package/dist/widgets/__federation_expose_Dashboard.js.map +0 -1
- package/dist/widgets/__federation_expose_DefinitionDetail.js.map +0 -1
- package/dist/widgets/__federation_expose_Definitions.js.map +0 -1
- package/dist/widgets/__federation_expose_Jobs.js.map +0 -1
- package/dist/widgets/__federation_expose_RunDetail.js.map +0 -1
- package/dist/widgets/__federation_expose_Runs.js.map +0 -1
- package/dist/widgets/remoteEntry.js.map +0 -1
package/dist/widgets/117.js
CHANGED
|
@@ -21,5 +21,4 @@
|
|
|
21
21
|
.kb-md th { background:${n.colorFillTertiary}; font-weight:600; }
|
|
22
22
|
.kb-md tr:nth-child(even) td { background:${n.colorFillQuaternary}; }
|
|
23
23
|
.kb-md img { max-width:100%; border-radius:${n.borderRadius}px; }
|
|
24
|
-
`;return(0,i.jsxs)(h,{className:r,style:{padding:n.padding,...o},children:[(0,i.jsx)("style",{children:t}),(0,i.jsx)("div",{className:"kb-md",dangerouslySetInnerHTML:{__html:(0,m.xI)(e)}})]})}var{useToken:rB}=n.theme;function rM({data:e,collapsed:r=!1,indent:o=2,showLineNumbers:n=!1,className:t,style:a}){let{token:s}=rB(),c=l.useMemo(()=>{try{return JSON.stringify(e,null,o)}catch(e){return`Error: ${e instanceof Error?e.message:"Invalid JSON"}`}},[e,o]),d=c.split("\n"),u={backgroundColor:s.colorBgContainer,borderRadius:s.borderRadius,border:`1px solid ${s.colorBorder}`,overflow:"auto",maxHeight:"600px",...a},g={display:"block",fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:"13px",lineHeight:"1.6",padding:s.padding,margin:0,whiteSpace:"pre",color:s.colorText},f={display:"inline-block",width:"40px",color:s.colorTextSecondary,userSelect:"none",textAlign:"right",marginRight:s.marginSM},m=r$(c,s);return(0,i.jsx)(h,{className:t,style:u,children:(0,i.jsx)("pre",{style:g,children:n?d.map((e,r)=>(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{style:f,children:r+1}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:r$(e,s)}})]},r)):(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:m}})})})}function r$(e,r){return(e=(e=(e=(e=e.replace(/"([^"]+)":/g,`<span style="color: ${r.colorPrimary}">"$1"</span>:`)).replace(/: "([^"]*)"/g,`: <span style="color: ${r.colorSuccess}">"$1"</span>`)).replace(/: (\d+)/g,`: <span style="color: ${r.colorWarning}">$1</span>`)).replace(/: (true|false)/g,`: <span style="color: ${r.colorInfo}">$1</span>`)).replace(/: (null)/g,`: <span style="color: ${r.colorTextSecondary}">$1</span>`)}var rz={add:{bg:"rgba(22, 163, 74, 0.12)",border:"var(--success, #16a34a)",color:"var(--success, #16a34a)"},remove:{bg:"rgba(220, 38, 38, 0.12)",border:"var(--error, #dc2626)",color:"var(--error, #dc2626)"},header:{bg:"var(--bg-tertiary, rgba(0,0,0,0.04))",border:"transparent",color:"var(--text-secondary, #6b7280)"},context:{bg:"transparent",border:"transparent",color:"inherit"}};function rE({diff:e,showLineNumbers:r=!0,maxHeight:o=500,className:n,style:t}){if(!e||""===e.trim())return(0,i.jsx)("div",{style:{padding:16,textAlign:"center"},children:(0,i.jsx)(b,{type:"secondary",children:"No changes to display"})});let l=e.split("\n");return(0,i.jsx)("div",{className:n,style:{background:"var(--bg-tertiary, rgba(0,0,0,0.02))",border:"1px solid var(--border-primary, rgba(0,0,0,0.1))",borderRadius:"var(--radius-md, 6px)",fontFamily:'Monaco, Menlo, "Courier New", monospace',fontSize:13,lineHeight:1.5,maxHeight:o,overflow:"auto",...t},children:l.map((e,o)=>{let n=e.startsWith("@@")?"header":e.startsWith("+")?"add":e.startsWith("-")?"remove":"context",t=rz[n],l="add"===n||"remove"===n;return(0,i.jsxs)("div",{style:{display:"flex",background:t.bg,borderLeft:l?`3px solid ${t.border}`:"none",paddingLeft:l?8:11},children:[r&&(0,i.jsx)("span",{style:{minWidth:44,textAlign:"right",paddingRight:12,userSelect:"none",color:"var(--text-secondary, #6c757d)",fontSize:12},children:o+1}),(0,i.jsx)("pre",{style:{margin:0,padding:0,color:t.color,whiteSpace:"pre",flex:1},children:e})]},o)})})}o.d(r,{UIAccordion:()=>eJ,UIAlert:()=>e9,UIAreaChart:()=>ea,UIAvatar:()=>O,UIAvatarGroup:()=>X,UIBadge:()=>B,UIBarChart:()=>eu,UIBox:()=>h,UIBreadcrumb:()=>eK,UIButton:()=>$,UICard:()=>F,UICheckbox:()=>eP,UICheckboxGroup:()=>eA,UICol:()=>T,UIColumnChart:()=>ei,UICopyButton:()=>J,UIDatePicker:()=>eD,UIDescriptions:()=>ex,UIDescriptionsItem:()=>eh,UIDiffViewer:()=>rE,UIDivider:()=>w,UIDrawer:()=>rv,UIDropdown:()=>eQ,UIDropdownButton:()=>eq,UIEmptyState:()=>rr,UIErrorState:()=>rn,UIFlex:()=>y,UIForm:()=>e$,UIFormItem:()=>ez,UIFormList:()=>eF,UIHeader:()=>e4,UIIcon:()=>H,UIIconButton:()=>G,UIInput:()=>eT,UIInputNumber:()=>eN,UIInputPassword:()=>ew,UIInputSearch:()=>eB,UIInputTextArea:()=>eC,UIJsonViewer:()=>rM,UILineChart:()=>en,UIList:()=>ek,UIListItem:()=>ev,UIListItemMeta:()=>eU,UIMarkdownViewer:()=>rC,UIMenu:()=>e1,UIMessage:()=>rf,UIMetricCard:()=>q,UIModal:()=>rh,UIModalConfirm:()=>ry,UIModalError:()=>rI,UIModalInfo:()=>rb,UIModalSuccess:()=>rj,UIModalWarning:()=>rS,UINotification:()=>rp,UIPage:()=>e5,UIPageHeader:()=>e7,UIPageSection:()=>e8,UIPieChart:()=>ec,UIPopconfirm:()=>rU,UIPopover:()=>rT,UIProgress:()=>ep,UIRadio:()=>e_,UIRadioGroup:()=>eH,UIRangePicker:()=>eW,UIResult:()=>rg,UIRow:()=>U,UISegmented:()=>eZ,UISelect:()=>eM,UIShimmerText:()=>Y,UISkeleton:()=>ri,UISkeletonButton:()=>rl,UISkeletonImage:()=>rs,UISkeletonInput:()=>ra,UISkeletonNode:()=>rc,UISkeletonText:()=>rd,UISlider:()=>eX,UISpace:()=>k,UISpaceCompact:()=>v,UISpin:()=>ru,UIStack:()=>S,UIStatistic:()=>ef,UIStatisticCountdown:()=>em,UIStatisticsChart:()=>eg,UISteps:()=>e0,UISwitch:()=>eR,UITable:()=>Z,UITabs:()=>eY,UITag:()=>A,UIText:()=>x,UITimePicker:()=>eL,UITimeline:()=>ey,UITimelineItem:()=>eb,UITitle:()=>L,UITooltip:()=>rk,UITree:()=>ej,UITreeDirectoryTree:()=>eI,UITreeNode:()=>eS,UITypographyLink:()=>I,UITypographyParagraph:()=>j,UITypographyText:()=>b,UIUpload:()=>eG,UIUploadDragger:()=>eO,createFillFunction:()=>er,registerIconRenderer:()=>_,useChartColors:()=>ee,useUIForm:()=>eE,useUIMessage:()=>rm,useUINotification:()=>rx,useUITheme:()=>K})}}]);
|
|
25
|
-
//# sourceMappingURL=117.js.map
|
|
24
|
+
`;return(0,i.jsxs)(h,{className:r,style:{padding:n.padding,...o},children:[(0,i.jsx)("style",{children:t}),(0,i.jsx)("div",{className:"kb-md",dangerouslySetInnerHTML:{__html:(0,m.xI)(e)}})]})}var{useToken:rB}=n.theme;function rM({data:e,collapsed:r=!1,indent:o=2,showLineNumbers:n=!1,className:t,style:a}){let{token:s}=rB(),c=l.useMemo(()=>{try{return JSON.stringify(e,null,o)}catch(e){return`Error: ${e instanceof Error?e.message:"Invalid JSON"}`}},[e,o]),d=c.split("\n"),u={backgroundColor:s.colorBgContainer,borderRadius:s.borderRadius,border:`1px solid ${s.colorBorder}`,overflow:"auto",maxHeight:"600px",...a},g={display:"block",fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:"13px",lineHeight:"1.6",padding:s.padding,margin:0,whiteSpace:"pre",color:s.colorText},f={display:"inline-block",width:"40px",color:s.colorTextSecondary,userSelect:"none",textAlign:"right",marginRight:s.marginSM},m=r$(c,s);return(0,i.jsx)(h,{className:t,style:u,children:(0,i.jsx)("pre",{style:g,children:n?d.map((e,r)=>(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{style:f,children:r+1}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:r$(e,s)}})]},r)):(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:m}})})})}function r$(e,r){return(e=(e=(e=(e=e.replace(/"([^"]+)":/g,`<span style="color: ${r.colorPrimary}">"$1"</span>:`)).replace(/: "([^"]*)"/g,`: <span style="color: ${r.colorSuccess}">"$1"</span>`)).replace(/: (\d+)/g,`: <span style="color: ${r.colorWarning}">$1</span>`)).replace(/: (true|false)/g,`: <span style="color: ${r.colorInfo}">$1</span>`)).replace(/: (null)/g,`: <span style="color: ${r.colorTextSecondary}">$1</span>`)}var rz={add:{bg:"rgba(22, 163, 74, 0.12)",border:"var(--success, #16a34a)",color:"var(--success, #16a34a)"},remove:{bg:"rgba(220, 38, 38, 0.12)",border:"var(--error, #dc2626)",color:"var(--error, #dc2626)"},header:{bg:"var(--bg-tertiary, rgba(0,0,0,0.04))",border:"transparent",color:"var(--text-secondary, #6b7280)"},context:{bg:"transparent",border:"transparent",color:"inherit"}};function rE({diff:e,showLineNumbers:r=!0,maxHeight:o=500,className:n,style:t}){if(!e||""===e.trim())return(0,i.jsx)("div",{style:{padding:16,textAlign:"center"},children:(0,i.jsx)(b,{type:"secondary",children:"No changes to display"})});let l=e.split("\n");return(0,i.jsx)("div",{className:n,style:{background:"var(--bg-tertiary, rgba(0,0,0,0.02))",border:"1px solid var(--border-primary, rgba(0,0,0,0.1))",borderRadius:"var(--radius-md, 6px)",fontFamily:'Monaco, Menlo, "Courier New", monospace',fontSize:13,lineHeight:1.5,maxHeight:o,overflow:"auto",...t},children:l.map((e,o)=>{let n=e.startsWith("@@")?"header":e.startsWith("+")?"add":e.startsWith("-")?"remove":"context",t=rz[n],l="add"===n||"remove"===n;return(0,i.jsxs)("div",{style:{display:"flex",background:t.bg,borderLeft:l?`3px solid ${t.border}`:"none",paddingLeft:l?8:11},children:[r&&(0,i.jsx)("span",{style:{minWidth:44,textAlign:"right",paddingRight:12,userSelect:"none",color:"var(--text-secondary, #6c757d)",fontSize:12},children:o+1}),(0,i.jsx)("pre",{style:{margin:0,padding:0,color:t.color,whiteSpace:"pre",flex:1},children:e})]},o)})})}o.d(r,{UIAccordion:()=>eJ,UIAlert:()=>e9,UIAreaChart:()=>ea,UIAvatar:()=>O,UIAvatarGroup:()=>X,UIBadge:()=>B,UIBarChart:()=>eu,UIBox:()=>h,UIBreadcrumb:()=>eK,UIButton:()=>$,UICard:()=>F,UICheckbox:()=>eP,UICheckboxGroup:()=>eA,UICol:()=>T,UIColumnChart:()=>ei,UICopyButton:()=>J,UIDatePicker:()=>eD,UIDescriptions:()=>ex,UIDescriptionsItem:()=>eh,UIDiffViewer:()=>rE,UIDivider:()=>w,UIDrawer:()=>rv,UIDropdown:()=>eQ,UIDropdownButton:()=>eq,UIEmptyState:()=>rr,UIErrorState:()=>rn,UIFlex:()=>y,UIForm:()=>e$,UIFormItem:()=>ez,UIFormList:()=>eF,UIHeader:()=>e4,UIIcon:()=>H,UIIconButton:()=>G,UIInput:()=>eT,UIInputNumber:()=>eN,UIInputPassword:()=>ew,UIInputSearch:()=>eB,UIInputTextArea:()=>eC,UIJsonViewer:()=>rM,UILineChart:()=>en,UIList:()=>ek,UIListItem:()=>ev,UIListItemMeta:()=>eU,UIMarkdownViewer:()=>rC,UIMenu:()=>e1,UIMessage:()=>rf,UIMetricCard:()=>q,UIModal:()=>rh,UIModalConfirm:()=>ry,UIModalError:()=>rI,UIModalInfo:()=>rb,UIModalSuccess:()=>rj,UIModalWarning:()=>rS,UINotification:()=>rp,UIPage:()=>e5,UIPageHeader:()=>e7,UIPageSection:()=>e8,UIPieChart:()=>ec,UIPopconfirm:()=>rU,UIPopover:()=>rT,UIProgress:()=>ep,UIRadio:()=>e_,UIRadioGroup:()=>eH,UIRangePicker:()=>eW,UIResult:()=>rg,UIRow:()=>U,UISegmented:()=>eZ,UISelect:()=>eM,UIShimmerText:()=>Y,UISkeleton:()=>ri,UISkeletonButton:()=>rl,UISkeletonImage:()=>rs,UISkeletonInput:()=>ra,UISkeletonNode:()=>rc,UISkeletonText:()=>rd,UISlider:()=>eX,UISpace:()=>k,UISpaceCompact:()=>v,UISpin:()=>ru,UIStack:()=>S,UIStatistic:()=>ef,UIStatisticCountdown:()=>em,UIStatisticsChart:()=>eg,UISteps:()=>e0,UISwitch:()=>eR,UITable:()=>Z,UITabs:()=>eY,UITag:()=>A,UIText:()=>x,UITimePicker:()=>eL,UITimeline:()=>ey,UITimelineItem:()=>eb,UITitle:()=>L,UITooltip:()=>rk,UITree:()=>ej,UITreeDirectoryTree:()=>eI,UITreeNode:()=>eS,UITypographyLink:()=>I,UITypographyParagraph:()=>j,UITypographyText:()=>b,UIUpload:()=>eG,UIUploadDragger:()=>eO,createFillFunction:()=>er,registerIconRenderer:()=>_,useChartColors:()=>ee,useUIForm:()=>eE,useUIMessage:()=>rm,useUINotification:()=>rx,useUITheme:()=>K})}}]);
|
package/dist/widgets/165.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[165],{3978(e,t,r){var i=r(92);function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal"),c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:f,key:null==i?null:""+i,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.flushSync=function(e){var t=c.T,r=s.p;try{if(c.T=null,s.p=2,e)return e()}finally{c.T=t,s.p=r,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin),n="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:n,fetchPriority:o}):"script"===r&&s.d.X(e,{crossOrigin:i,integrity:n,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=y(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin);s.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=y(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,r){return c.H.useFormState(e,t,r)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version="19.2.5"},1297(e,t,r){!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(3978)}}]);
|
|
2
|
-
//# sourceMappingURL=165.js.map
|
|
1
|
+
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[165],{3978(e,t,r){var i=r(92);function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal"),c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:f,key:null==i?null:""+i,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.flushSync=function(e){var t=c.T,r=s.p;try{if(c.T=null,s.p=2,e)return e()}finally{c.T=t,s.p=r,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin),n="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:n,fetchPriority:o}):"script"===r&&s.d.X(e,{crossOrigin:i,integrity:n,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=y(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin);s.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=y(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,r){return c.H.useFormState(e,t,r)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version="19.2.5"},1297(e,t,r){!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(3978)}}]);
|
package/dist/widgets/326.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[326],{6026(e,r){var o=Symbol.for("react.transitional.element");function n(e,r,n){var s=null;if(void 0!==n&&(s=""+n),void 0!==r.key&&(s=""+r.key),"key"in r)for(var t in n={},r)"key"!==t&&(n[t]=r[t]);else n=r;return{$$typeof:o,type:e,key:s,ref:void 0!==(r=n.ref)?r:null,props:n}}r.Fragment=Symbol.for("react.fragment"),r.jsx=n,r.jsxs=n},4552(e,r,o){e.exports=o(6026)}}]);
|
|
2
|
-
//# sourceMappingURL=326.js.map
|
|
1
|
+
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[326],{6026(e,r){var o=Symbol.for("react.transitional.element");function n(e,r,n){var s=null;if(void 0!==n&&(s=""+n),void 0!==r.key&&(s=""+r.key),"key"in r)for(var t in n={},r)"key"!==t&&(n[t]=r[t]);else n=r;return{$$typeof:o,type:e,key:s,ref:void 0!==(r=n.ref)?r:null,props:n}}r.Fragment=Symbol.for("react.fragment"),r.jsx=n,r.jsxs=n},4552(e,r,o){e.exports=o(6026)}}]);
|
package/dist/widgets/370.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[370],{3481(r,e,o){o.r(e);var t=o(92),a=o(4552),n=o(5699),c=o(9312),i=o(7493),l=o(9497),v=o(7899),s=(0,t.createContext)(null);function d({children:r,value:e}){return(0,a.jsx)(s.Provider,{value:e,children:r})}function g(){let r=(0,t.useContext)(s);if(!r)throw Error("usePage() must be used inside a PageContextProvider (are you inside a Studio page?)");return r}function u(){return g()}function y(){let r=(0,n.useEventBusContext)(),{pluginId:e,pageId:o}=g(),a=(0,t.useRef)([]);return(0,t.useEffect)(()=>()=>{for(let r of a.current)r();a.current=[]},[]),{publish:(0,t.useCallback)((t,a)=>{r.publish(t,a,e,o)},[r,e,o]),subscribe:(0,t.useCallback)((t,n)=>{let c=r.subscribe(t,n,e,o);return a.current.push(c),c},[r,e,o])}}function b(r,e){let o=function(r,e){if(!e||0===Object.keys(e).length)return r;let o=new URLSearchParams;for(let[r,t]of Object.entries(e))null!=t&&o.set(r,String(t));let t=r.includes("?")?"&":"?";return`${r}${t}${o.toString()}`}(r,e?.params),t=(0,c.useQuery)({queryKey:["studio-data",o],queryFn:()=>p(o),enabled:e?.enabled,staleTime:e?.staleTime,refetchInterval:e?.pollingMs||void 0,select:e?.select});return{data:t.data,isLoading:t.isLoading,isError:t.isError,error:t.error,refetch:t.refetch,isFetching:t.isFetching}}function m(r,e="POST"){let o="string"==typeof e?{method:e}:e,t=o.method??"POST",a=o.mapBody,n=(0,c.useMutation)({mutationFn:async e=>{let o="function"==typeof r?r(e):r,n=a?a(e):e,c=null!=n,i=await fetch(`${x()}/api${o}`,{method:t,headers:c?{"Content-Type":"application/json"}:{},body:c?JSON.stringify(n):void 0});if(!i.ok)throw Error(`${t} ${o} failed: ${i.status} ${i.statusText}`);let l=await i.json();return l&&"object"==typeof l&&"ok"in l&&"data"in l?l.data:l}});return{mutate:n.mutate,mutateAsync:n.mutateAsync,isLoading:n.isPending,isError:n.isError,error:n.error,data:n.data}}function x(){if("u">typeof window){let r=window.__KB_STUDIO_CONFIG__,e=r?.KB_API_BASE_URL;if(e)try{return new URL(e).origin}catch{}}return""}async function p(r){let e=await fetch(`${x()}/api${r}`);if(!e.ok)throw Error(`GET ${r} failed: ${e.status} ${e.statusText}`);let o=await e.json();return o&&"object"==typeof o&&"ok"in o&&"data"in o?o.data:o}function B(r,e={}){let{events:o="message",doneEvent:a,terminalEvents:n,enabled:c=!0,reconnect:i=!1,maxReconnects:l=5,reconnectIntervalMs:v=2e3,maxEvents:s=0,parse:d=f,params:g,onEvent:u,onOpen:y,onError:b,onDone:m}=e,[x,p]=(0,t.useState)([]),[S,h]=(0,t.useState)(void 0),[k,C]=(0,t.useState)(null),[T,F]=(0,t.useState)(!1),[E,H]=(0,t.useState)("closed"),[w,A]=(0,t.useState)(!1),[P,I]=(0,t.useState)(0),D=(0,t.useRef)(null),L=(0,t.useRef)(null),R=(0,t.useRef)(!1),W=(0,t.useRef)(!1),$=(0,t.useRef)(u),M=(0,t.useRef)(y),O=(0,t.useRef)(b),_=(0,t.useRef)(m),N=(0,t.useRef)(d);$.current=u,M.current=y,O.current=b,_.current=m,N.current=d;let z=JSON.stringify(o),j=JSON.stringify(g),G=JSON.stringify(n),X=(0,t.useCallback)(()=>{R.current=!0,L.current&&(clearTimeout(L.current),L.current=null),D.current&&(D.current.close(),D.current=null),F(!1),H("closed"),A(!0)},[]),U=(0,t.useCallback)(()=>{p([]),h(void 0)},[]);return(0,t.useEffect)(()=>{if(!r||!c){D.current&&(D.current.close(),D.current=null),F(!1);return}R.current=!1,W.current=!1,p([]),h(void 0),C(null),A(!1),I(0),H("connecting");let e=0;return!function t(){let c=new EventSource(function(r,e){let o=r.startsWith("http")?r:`/api${r}`;if(!e||0===Object.keys(e).length)return o;let t=new URLSearchParams;for(let[r,o]of Object.entries(e))null!=o&&t.set(r,String(o));let a=o.includes("?")?"&":"?";return`${o}${a}${t.toString()}`}(r,g));D.current=c;let d=Array.isArray(o)?o:[o],u=r=>{try{let e=N.current(r.data);h(e),p(r=>{let o=[...r,e];return s>0&&o.length>s?o.slice(-s):o}),$.current?.(e)}catch(e){let r=e instanceof Error?e:Error("Failed to parse SSE event data");C(r),O.current?.(r)}};for(let r of d)c.addEventListener(r,u);for(let r of[...n??[],...a?[a]:[]])c.addEventListener(r,()=>{W.current=!0,c.close(),D.current=null,F(!1),H("closed"),A(!0),_.current?.()});c.onopen=()=>{e=0,I(0),F(!0),H("live"),C(null),M.current?.()},c.onerror=()=>{if(c.close(),D.current=null,F(!1),R.current||W.current)return void H("closed");let r=Error("SSE connection lost");C(r),O.current?.(r),i&&e<l?(I(++e),H("reconnecting"),L.current=setTimeout(t,v*Math.pow(2,e-1))):H("closed")}}(),()=>{R.current=!0,L.current&&(clearTimeout(L.current),L.current=null),D.current&&(D.current.close(),D.current=null)}},[r,c,a,i,l,v,s,z,j,G]),{events:x,latest:S,isConnected:T,connectionStatus:E,closedClean:w,error:k,close:X,clear:U,reconnectCount:P}}function f(r){return JSON.parse(r)}function S(r){let[e,o]=(0,t.useState)(()=>r?h(r):null);return(0,t.useEffect)(()=>{if(!r)return void o(null);o(h(r));let e=setInterval(()=>{o(h(r))},1e3);return()=>clearInterval(e)},[r]),e}function h(r){let e=Math.max(0,Math.floor((Date.now()-new Date(r).getTime())/1e3));if(e<60)return`${e}s`;let o=Math.floor(e/60);if(o<60)return`${o}m ${(e%60).toString().padStart(2,"0")}s`;let t=Math.floor(o/60);return`${t}h ${(o%60).toString().padStart(2,"0")}m`}function k(r,e){let{getNextCursor:o,params:t,enabled:a,staleTime:n,cursorParam:i="cursor",initialCursor:l}=e,v=(0,c.useInfiniteQuery)({queryKey:["studio-infinite",r,t],queryFn:async({pageParam:e})=>C(function(r,e,o,t){let a=new URLSearchParams;if(e)for(let[r,o]of Object.entries(e))null!=o&&a.set(r,String(o));null!=t&&a.set(o,String(t));let n=a.toString(),c=r.startsWith("http")?r:`/api${r}`;return n?`${c}?${n}`:c}(r,t,i,e)),initialPageParam:l,getNextPageParam:o,enabled:a,staleTime:n}),s=v.data?.pages??[],d=s.flatMap(r=>Array.isArray(r)?r:[r]);return{pages:s,data:d,isLoading:v.isLoading,isFetching:v.isFetching,isFetchingNextPage:v.isFetchingNextPage,hasNextPage:v.hasNextPage,fetchNextPage:v.fetchNextPage,error:v.error,isError:v.isError,refetch:v.refetch}}async function C(r){let e=await fetch(r);if(!e.ok)throw Error(`GET ${r} failed: ${e.status} ${e.statusText}`);let o=await e.json();return o&&"object"==typeof o&&"ok"in o&&"data"in o?o.data:o}function T(r,e={}){let{enabled:o=!0,reconnect:a=!1,maxReconnects:n=5,reconnectIntervalMs:c=2e3,protocols:i,parse:l=F,serialize:v=E,maxMessages:s=100,onMessage:d,onOpen:g,onClose:u,onError:y}=e,[b,m]=(0,t.useState)([]),[x,p]=(0,t.useState)(void 0),[B,f]=(0,t.useState)("disconnected"),[S,h]=(0,t.useState)(null),[k,C]=(0,t.useState)(0),H=(0,t.useRef)(null),w=(0,t.useRef)(null),A=(0,t.useRef)(!1),P=(0,t.useRef)(d),I=(0,t.useRef)(g),D=(0,t.useRef)(u),L=(0,t.useRef)(y),R=(0,t.useRef)(l),W=(0,t.useRef)(v);P.current=d,I.current=g,D.current=u,L.current=y,R.current=l,W.current=v;let $=(0,t.useCallback)(()=>{w.current&&(clearTimeout(w.current),w.current=null),H.current&&(H.current.close(),H.current=null)},[]),M=(0,t.useCallback)(()=>{if(!r)return;$(),A.current=!1,f("connecting"),h(null);let e=0;!function o(){let t=function(r){if(r.startsWith("ws://")||r.startsWith("wss://"))return r;let e=r.startsWith("/")?r:`/${r}`;if("u">typeof window){let r=window.__KB_STUDIO_CONFIG__,o=r?.KB_API_BASE_URL;if(o)try{let r=new URL(o).origin,t=r.startsWith("https")?"wss:":"ws:";return`${t}//${new URL(r).host}${e}`}catch{}}let o="https:"===window.location.protocol?"wss:":"ws:";return`${o}//${window.location.host}${e}`}(r),l=i?new WebSocket(t,i):new WebSocket(t);H.current=l,l.onopen=r=>{e=0,C(0),f("connected"),h(null),I.current?.(r)},l.onmessage=r=>{try{let e=R.current(r.data);p(e),m(r=>{let o=[...r,e];return s>0&&o.length>s?o.slice(-s):o}),P.current?.(e)}catch{}},l.onclose=r=>{H.current=null,f("disconnected"),D.current?.(r),!A.current&&a&&e<n&&1e3!==r.code&&(C(++e),w.current=setTimeout(o,c*Math.pow(2,e-1)))},l.onerror=r=>{f("error"),h(r),L.current?.(r)}}()},[r,i,a,n,c,s,$]),O=(0,t.useCallback)((r,e)=>{A.current=!0,w.current&&(clearTimeout(w.current),w.current=null),H.current&&(H.current.close(r,e),H.current=null),f("disconnected")},[]),_=(0,t.useCallback)(r=>{H.current?.readyState===WebSocket.OPEN&&H.current.send(W.current(r))},[]),N=(0,t.useCallback)(r=>{H.current?.readyState===WebSocket.OPEN&&H.current.send(r)},[]),z=(0,t.useCallback)(()=>{m([]),p(void 0)},[]);return(0,t.useEffect)(()=>{if(!r||!o){$(),f("disconnected");return}return m([]),p(void 0),M(),()=>{A.current=!0,$()}},[r,o]),{send:_,sendRaw:N,messages:b,latest:x,status:B,isConnected:"connected"===B,error:S,connect:M,disconnect:O,clear:z,reconnectCount:k}}function F(r){return JSON.parse(r)}function E(r){return JSON.stringify(r)}function H(){let{permissions:r}=g();return{hasPermission:(0,t.useCallback)(e=>r.includes(e),[r]),permissions:r}}function w(){let r=(0,i.useNavigate)(),e=(0,i.useLocation)(),o=(0,t.useCallback)(e=>r(e),[r]),a=(0,t.useCallback)(()=>r(-1),[r]),n=(0,t.useCallback)(r=>window.open(r,"_blank","noopener"),[]);return{navigate:o,currentPath:e.pathname,goBack:a,openExternal:n}}function A(){let r=(0,t.useCallback)(r=>{l.notification[r.type]({message:r.message,description:r.description,duration:r.duration??4.5})},[]),e=(0,t.useCallback)((e,o)=>r({type:"success",message:e,description:o}),[r]),o=(0,t.useCallback)((e,o)=>r({type:"error",message:e,description:o}),[r]),a=(0,t.useCallback)((e,o)=>r({type:"warning",message:e,description:o}),[r]),n=(0,t.useCallback)((e,o)=>r({type:"info",message:e,description:o}),[r]);return{notify:r,success:e,error:o,warning:a,info:n}}var P={bgPrimary:v.lightSemanticColors["bg-primary"],bgSecondary:v.lightSemanticColors["bg-secondary"],bgTertiary:v.lightSemanticColors["bg-tertiary"],textPrimary:v.lightSemanticColors["text-primary"],textSecondary:v.lightSemanticColors["text-secondary"],textTertiary:v.lightSemanticColors["text-tertiary"],textInverse:v.lightSemanticColors["text-inverse"],borderPrimary:v.lightSemanticColors["border-primary"],borderSecondary:v.lightSemanticColors["border-secondary"],link:v.lightSemanticColors.link,linkHover:v.lightSemanticColors["link-hover"],accentSubtle:v.lightSemanticColors["accent-subtle"],success:v.lightSemanticColors.success,warning:v.lightSemanticColors.warning,error:v.lightSemanticColors.error,info:v.lightSemanticColors.info,disabled:v.lightSemanticColors.disabled,shadow:v.lightSemanticColors.shadow},I={bgPrimary:v.darkSemanticColors["bg-primary"],bgSecondary:v.darkSemanticColors["bg-secondary"],bgTertiary:v.darkSemanticColors["bg-tertiary"],textPrimary:v.darkSemanticColors["text-primary"],textSecondary:v.darkSemanticColors["text-secondary"],textTertiary:v.darkSemanticColors["text-tertiary"],textInverse:v.darkSemanticColors["text-inverse"],borderPrimary:v.darkSemanticColors["border-primary"],borderSecondary:v.darkSemanticColors["border-secondary"],link:v.darkSemanticColors.link,linkHover:v.darkSemanticColors["link-hover"],accentSubtle:v.darkSemanticColors["accent-subtle"],success:v.darkSemanticColors.success,warning:v.darkSemanticColors.warning,error:v.darkSemanticColors.error,info:v.darkSemanticColors.info,disabled:v.darkSemanticColors.disabled,shadow:v.darkSemanticColors.shadow};function D(){return"u"<typeof document?"light":document.documentElement.classList.contains("dark")?"dark":"light"}function L(){let{token:r}=l.theme.useToken(),[e,o]=t.useState(D);return t.useEffect(()=>{let r=new MutationObserver(()=>{o(D())});return r.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[]),{mode:e,antdToken:r,semantic:"dark"===e?I:P,tokens:{colors:v.colors,spacing:v.spacing,typography:v.typography,radius:v.radius,shadows:v.shadows}}}function R(){return{colorPrimary:"var(--link, #0c66ff)",colorPrimaryHover:"var(--link-hover, #0050cc)",colorPrimaryActive:"var(--link-hover, #0050cc)",colorPrimaryBg:"var(--accent-subtle, #dbeafe)",colorPrimaryBgHover:"var(--accent-subtle, #dbeafe)",colorPrimaryBorder:"var(--link, #0c66ff)",colorPrimaryBorderHover:"var(--link-hover, #0050cc)",colorPrimaryText:"var(--link, #0c66ff)",colorPrimaryTextHover:"var(--link-hover, #0050cc)",colorPrimaryTextActive:"var(--link-hover, #0050cc)",colorSuccess:"var(--success, #16A34A)",colorSuccessHover:"var(--success, #16A34A)",colorSuccessActive:"var(--success, #16A34A)",colorSuccessBg:"var(--bg-tertiary, #F3F4F6)",colorSuccessBgHover:"var(--bg-tertiary, #F3F4F6)",colorSuccessBorder:"var(--success, #16A34A)",colorSuccessBorderHover:"var(--success, #16A34A)",colorSuccessText:"var(--success, #16A34A)",colorSuccessTextHover:"var(--success, #16A34A)",colorSuccessTextActive:"var(--success, #16A34A)",colorWarning:"var(--warning, #F59E0B)",colorWarningHover:"var(--warning, #F59E0B)",colorWarningActive:"var(--warning, #F59E0B)",colorWarningBg:"var(--bg-tertiary, #F3F4F6)",colorWarningBgHover:"var(--bg-tertiary, #F3F4F6)",colorWarningBorder:"var(--warning, #F59E0B)",colorWarningBorderHover:"var(--warning, #F59E0B)",colorWarningText:"var(--warning, #F59E0B)",colorWarningTextHover:"var(--warning, #F59E0B)",colorWarningTextActive:"var(--warning, #F59E0B)",colorWarningOutline:"rgba(245, 158, 11, 0.2)",colorError:"var(--error, #DC2626)",colorErrorHover:"var(--error, #DC2626)",colorErrorActive:"var(--error, #DC2626)",colorErrorBg:"var(--bg-tertiary, #F3F4F6)",colorErrorBgHover:"var(--bg-tertiary, #F3F4F6)",colorErrorBorder:"var(--error, #DC2626)",colorErrorBorderHover:"var(--error, #DC2626)",colorErrorText:"var(--error, #DC2626)",colorErrorTextHover:"var(--error, #DC2626)",colorErrorTextActive:"var(--error, #DC2626)",colorErrorOutline:"rgba(220, 38, 38, 0.2)",colorInfo:"var(--info, #0EA5E9)",colorInfoHover:"var(--info, #0EA5E9)",colorInfoActive:"var(--info, #0EA5E9)",colorInfoBg:"var(--bg-tertiary, #F3F4F6)",colorInfoBgHover:"var(--bg-tertiary, #F3F4F6)",colorInfoBorder:"var(--info, #0EA5E9)",colorInfoBorderHover:"var(--info, #0EA5E9)",colorInfoText:"var(--info, #0EA5E9)",colorInfoTextHover:"var(--info, #0EA5E9)",colorInfoTextActive:"var(--info, #0EA5E9)",colorBgContainer:"var(--bg-secondary, #FFFFFF)",colorBgBase:"var(--bg-primary, #F9FAFB)",colorBgElevated:"var(--bg-secondary, #FFFFFF)",colorBgLayout:"var(--bg-primary, #F9FAFB)",colorBgSpotlight:"var(--bg-tertiary, #F3F4F6)",colorBgMask:"rgba(0, 0, 0, 0.45)",colorBgTextHover:"var(--bg-hover, #F3F4F6)",colorBgTextActive:"var(--bg-hover, #F3F4F6)",colorBgContainerDisabled:"var(--bg-tertiary, #F3F4F6)",colorText:"var(--text-primary, #111827)",colorTextBase:"var(--text-primary, #111827)",colorTextSecondary:"var(--text-secondary, #6B7280)",colorTextTertiary:"var(--text-tertiary, #6B7280)",colorTextQuaternary:"var(--text-tertiary, #6B7280)",colorTextDisabled:"var(--disabled, #9CA3AF)",colorTextHeading:"var(--text-primary, #111827)",colorTextLabel:"var(--text-secondary, #6B7280)",colorTextDescription:"var(--text-secondary, #6B7280)",colorTextPlaceholder:"var(--text-tertiary, #6B7280)",colorTextLightSolid:"var(--text-inverse, #FFFFFF)",colorBorder:"var(--border-primary, #E5E7EB)",colorBorderSecondary:"var(--border-secondary, #D4D4D4)",colorBorderBg:"var(--bg-secondary, #FFFFFF)",colorSplit:"var(--border-primary, #E5E7EB)",colorFill:"var(--bg-tertiary, #F3F4F6)",colorFillSecondary:"var(--bg-tertiary, #F3F4F6)",colorFillTertiary:"var(--bg-primary, #F9FAFB)",colorFillQuaternary:"var(--bg-primary, #F9FAFB)",colorFillContent:"var(--bg-hover, #F3F4F6)",colorFillContentHover:"var(--bg-hover, #F3F4F6)",colorFillAlter:"var(--bg-tertiary, #F3F4F6)",colorWhite:"#FFFFFF",boxShadow:"0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04)",boxShadowSecondary:"0 4px 12px rgba(0,0,0,0.08)",boxShadowTertiary:"0 8px 24px rgba(0,0,0,0.08)",borderRadius:8,borderRadiusLG:12,borderRadiusSM:6,borderRadiusXS:4,borderRadiusOuter:6,controlHeight:36,controlHeightLG:40,controlHeightSM:28,controlHeightXS:22,fontFamily:"var(--font-body, 'Inter', 'Segoe UI', sans-serif)",fontSize:14,fontSizeLG:16,fontSizeSM:12,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,fontWeightStrong:600,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,padding:16,paddingLG:24,paddingSM:12,paddingXS:8,paddingXXS:4,margin:16,marginLG:24,marginSM:12,marginXS:8,marginXXS:4,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",colorLink:"var(--link, #0c66ff)",colorLinkHover:"var(--link-hover, #0050cc)",colorLinkActive:"var(--link-hover, #0050cc)",colorIcon:"var(--text-secondary, #6B7280)",colorIconHover:"var(--text-primary, #111827)",colorHighlight:"var(--link, #0c66ff)",controlOutline:"rgba(12, 102, 255, 0.15)",controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"var(--bg-hover, #F3F4F6)",controlItemBgActive:"var(--accent-subtle, #dbeafe)",controlItemBgActiveHover:"var(--accent-subtle, #dbeafe)",controlItemBgActiveDisabled:"var(--bg-tertiary, #F3F4F6)",controlTmpOutline:"rgba(12, 102, 255, 0.08)",screenXS:480,screenSM:576,screenMD:768,screenLG:992,screenXL:1200,screenXXL:1600}}function W(){return{Table:{headerBg:"var(--bg-tertiary)",headerColor:"var(--text-primary)",borderColor:"var(--border-primary)",colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",rowHoverBg:"var(--bg-hover)",rowSelectedBg:"var(--accent-subtle)",rowSelectedHoverBg:"var(--accent-subtle)",rowExpandedBg:"var(--bg-secondary)",bodySortBg:"var(--bg-tertiary)",headerSortActiveBg:"var(--bg-tertiary)",headerSortHoverBg:"var(--bg-tertiary)",headerFilterHoverBg:"var(--bg-tertiary)",fixedHeaderSortActiveBg:"var(--bg-tertiary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",expandIconBg:"var(--bg-secondary)",footerBg:"var(--bg-tertiary)",footerColor:"var(--text-primary)",selectionColumnWidth:60,stickyScrollBarBg:"var(--bg-tertiary)",stickyScrollBarBorderRadius:4},Tag:{defaultBg:"var(--bg-tertiary)",defaultColor:"var(--text-primary)",colorBorder:"var(--border-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"},Badge:{colorError:"var(--error)",colorSuccess:"var(--success)",colorWarning:"var(--warning)",colorInfo:"var(--info)",colorText:"var(--text-primary)"},Alert:{colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)",colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",colorSuccessBg:"var(--bg-tertiary)",colorErrorBg:"var(--bg-tertiary)",colorWarningBg:"var(--bg-tertiary)",colorInfoBg:"var(--bg-tertiary)",colorSuccessBorder:"var(--success)",colorErrorBorder:"var(--error)",colorWarningBorder:"var(--warning)",colorInfoBorder:"var(--info)"},Card:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBorderSecondary:"var(--border-primary)",headerBg:"var(--bg-secondary)",actionsBg:"var(--bg-tertiary)",extraColor:"var(--text-secondary)"},Descriptions:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorBorder:"var(--border-primary)"},Button:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",colorPrimaryActive:"var(--link-hover)",primaryColor:"var(--text-inverse)",primaryShadow:"0 2px 0 rgba(12, 102, 255, 0.15)",defaultBg:"var(--bg-secondary)",defaultColor:"var(--text-primary)",defaultBorderColor:"var(--border-primary)",defaultShadow:"0 2px 0 rgba(0, 0, 0, 0.015)",defaultHoverBg:"var(--bg-hover)",defaultHoverColor:"var(--text-primary)",defaultHoverBorderColor:"var(--border-secondary)",defaultActiveBg:"var(--bg-hover)",defaultActiveColor:"var(--text-primary)",defaultActiveBorderColor:"var(--border-secondary)",ghostBg:"transparent",defaultGhostColor:"var(--text-primary)",defaultGhostBorderColor:"var(--border-primary)",borderColorDisabled:"var(--border-primary)",colorBgContainerDisabled:"var(--bg-tertiary)",textTextColor:"var(--text-secondary)",textTextHoverColor:"var(--text-primary)",textTextActiveColor:"var(--text-primary)",textHoverBg:"var(--accent-subtle)",linkHoverBg:"transparent",colorLink:"var(--link)",colorLinkHover:"var(--link-hover)",colorLinkActive:"var(--link-hover)",solidTextColor:"var(--text-primary)",dangerColor:"var(--error)",dangerShadow:"0 2px 0 rgba(220, 38, 38, 0.1)",colorErrorBg:"transparent",colorErrorBgHover:"var(--bg-hover)",colorErrorBorder:"var(--error)",colorErrorBorderHover:"var(--error)",colorErrorHover:"var(--error)",colorErrorActive:"var(--error)"},Input:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorTextPlaceholder:"var(--text-tertiary)",hoverBorderColor:"var(--border-secondary)",activeBorderColor:"var(--link)",activeShadow:"0 0 0 3px rgba(12, 102, 255, 0.12)",errorActiveShadow:"0 0 0 2px rgba(220, 38, 38, 0.1)",warningActiveShadow:"0 0 0 2px rgba(245, 158, 11, 0.1)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Select:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",colorTextPlaceholder:"var(--text-tertiary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",optionSelectedBg:"var(--accent-subtle)",optionSelectedColor:"var(--link)",optionActiveBg:"var(--bg-hover)",optionSelectedFontWeight:600,multipleItemBg:"var(--bg-tertiary)",multipleItemBorderColor:"var(--border-primary)",multipleItemColorDisabled:"var(--disabled)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",selectorBg:"var(--bg-secondary)"},Dropdown:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorTextDisabled:"var(--disabled)",controlItemBgHover:"var(--bg-hover)",controlItemBgActive:"var(--accent-subtle)",controlItemBgActiveHover:"var(--accent-subtle)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",colorBgContainer:"var(--bg-secondary)",colorSplit:"var(--border-primary)",paddingBlock:8,controlPaddingHorizontal:12},Menu:{colorText:"var(--text-primary)",colorTextSecondary:"var(--text-secondary)",colorBgContainer:"var(--bg-sidebar)",colorBorder:"var(--border-primary)",colorSplit:"var(--border-primary)",itemColor:"var(--text-primary)",itemBg:"var(--bg-secondary)",itemHoverBg:"var(--bg-hover)",itemHoverColor:"var(--link)",itemSelectedBg:"var(--accent-subtle)",itemSelectedColor:"var(--link)",itemActiveBg:"var(--accent-subtle)",colorActiveBarBorderSize:0,darkItemBg:"var(--bg-secondary)",darkItemColor:"var(--text-primary)",darkItemHoverBg:"var(--bg-hover)",darkItemSelectedBg:"var(--accent-subtle)",darkItemSelectedColor:"var(--link)",darkSubMenuItemBg:"var(--bg-secondary)",subMenuItemBg:"var(--bg-secondary)",popupBg:"var(--bg-secondary)",colorPrimary:"var(--link)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",groupTitleColor:"var(--text-tertiary)",groupTitleFontSize:11,itemBorderRadius:8,subMenuItemBorderRadius:6,itemPaddingInline:12},Tabs:{colorText:"var(--text-secondary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorBorderSecondary:"var(--border-primary)",colorPrimary:"var(--link)",itemHoverColor:"var(--link)",itemSelectedColor:"var(--link)",itemActiveColor:"var(--link)",inkBarColor:"var(--link)"},Modal:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",headerBg:"var(--bg-secondary)",footerBg:"var(--bg-tertiary)",contentBg:"var(--bg-secondary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Drawer:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Popover:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)"},Tooltip:{colorText:"var(--text-primary)",colorBgSpotlight:"var(--bg-secondary)",colorTextLightSolid:"var(--text-primary)"},List:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorSplit:"var(--border-primary)",metaMarginBottom:8,avatarMarginRight:16},Switch:{colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)"},Radio:{colorPrimary:"var(--link)",colorText:"var(--text-primary)",buttonCheckedBg:"var(--link)",buttonCheckedBgDisabled:"var(--disabled)",buttonColor:"var(--text-primary)",buttonSolidCheckedColor:"var(--text-inverse)",buttonSolidCheckedBg:"var(--link)",buttonSolidCheckedHoverBg:"var(--link-hover)",buttonSolidCheckedActiveBg:"var(--link-hover)"},Checkbox:{colorPrimary:"var(--link)",colorText:"var(--text-primary)"},DatePicker:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",colorTextPlaceholder:"var(--text-tertiary)",colorTextDisabled:"var(--disabled)",colorLink:"var(--link)",colorLinkHover:"var(--link-hover)",cellHoverBg:"var(--bg-hover)",cellActiveWithRangeBg:"var(--accent-subtle)",cellBgDisabled:"var(--bg-tertiary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Form:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorError:"var(--error)",colorWarning:"var(--warning)"},Pagination:{colorText:"var(--text-primary)",colorTextDisabled:"var(--disabled)",colorBgContainer:"var(--bg-secondary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",itemBg:"var(--bg-secondary)",itemActiveBg:"var(--link)",itemActiveBgDisabled:"var(--bg-tertiary)",itemInputBg:"var(--bg-secondary)",itemLinkBg:"var(--bg-secondary)",colorBgTextHover:"var(--bg-hover)"},Steps:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",colorPrimary:"var(--link)",colorBorder:"var(--border-primary)"},Breadcrumb:{colorText:"var(--text-secondary)",colorTextDescription:"var(--text-tertiary)",linkColor:"var(--link)",linkHoverColor:"var(--link-hover)",separatorColor:"var(--text-tertiary)"},Progress:{colorText:"var(--text-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",remainingColor:"var(--bg-tertiary)"},Skeleton:{colorFill:"var(--bg-tertiary)",colorFillContent:"var(--bg-hover)"},Spin:{colorPrimary:"var(--link)",colorBgContainer:"var(--bg-secondary)"},Divider:{colorSplit:"var(--border-primary)",colorText:"var(--text-secondary)"},Layout:{headerBg:"var(--bg-secondary)",bodyBg:"var(--bg-primary)",triggerBg:"var(--bg-tertiary)",colorText:"var(--text-primary)"},Collapse:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorBgContainer:"var(--bg-secondary)",headerBg:"var(--bg-tertiary)"},Carousel:{colorBgContainer:"var(--bg-secondary)",dotActiveWidth:24},Anchor:{colorPrimary:"var(--link)",colorText:"var(--text-secondary)",linkPaddingBlock:4},Timeline:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",tailColor:"var(--border-primary)",dotBg:"var(--bg-secondary)"},Transfer:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",controlItemBgActive:"var(--bg-hover)"},Tree:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorPrimary:"var(--link)",nodeHoverBg:"var(--bg-hover)",nodeSelectedBg:"var(--accent-subtle)"},TreeSelect:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",nodeHoverBg:"var(--bg-hover)",nodeSelectedBg:"var(--accent-subtle)"},Cascader:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",optionSelectedBg:"var(--bg-hover)"},Segmented:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorBgLayout:"var(--bg-tertiary)",itemSelectedBg:"var(--bg-secondary)",itemSelectedColor:"var(--link)",itemHoverBg:"var(--bg-hover)"},Rate:{colorText:"var(--warning)"},Slider:{colorPrimary:"var(--link)",colorPrimaryBorder:"var(--link)",trackBg:"var(--bg-tertiary)",trackHoverBg:"var(--bg-hover)"},Upload:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",colorBorder:"var(--border-primary)",colorFillAlter:"var(--bg-tertiary)",colorPrimary:"var(--link)"},Calendar:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",itemActiveBg:"var(--accent-subtle)"},Image:{colorTextLightSolid:"var(--text-primary)",colorBgMask:"rgba(0, 0, 0, 0.45)"},Statistic:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)"},Result:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorTextDescription:"var(--text-secondary)"},Empty:{colorText:"var(--text-secondary)",colorTextDescription:"var(--text-tertiary)"},Message:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",contentBg:"var(--bg-secondary)",contentPadding:"10px 16px",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"},Notification:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"}}}o.d(e,{PageContextProvider:()=>d,getAntDesignComponents:()=>W,getAntDesignTokens:()=>R,useData:()=>b,useElapsedTimer:()=>S,useEventBus:()=>y,useInfiniteData:()=>k,useMutateData:()=>m,useNavigation:()=>w,useNotification:()=>A,usePage:()=>u,usePageContext:()=>g,usePermissions:()=>H,useSSE:()=>B,useTheme:()=>L,useWebSocket:()=>T})}}]);
|
|
2
|
-
//# sourceMappingURL=370.js.map
|
|
1
|
+
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[370],{3481(r,e,o){o.r(e);var t=o(92),a=o(4552),n=o(5699),c=o(9312),i=o(7493),l=o(9497),v=o(7899),s=(0,t.createContext)(null);function d({children:r,value:e}){return(0,a.jsx)(s.Provider,{value:e,children:r})}function g(){let r=(0,t.useContext)(s);if(!r)throw Error("usePage() must be used inside a PageContextProvider (are you inside a Studio page?)");return r}function u(){return g()}function y(){let r=(0,n.useEventBusContext)(),{pluginId:e,pageId:o}=g(),a=(0,t.useRef)([]);return(0,t.useEffect)(()=>()=>{for(let r of a.current)r();a.current=[]},[]),{publish:(0,t.useCallback)((t,a)=>{r.publish(t,a,e,o)},[r,e,o]),subscribe:(0,t.useCallback)((t,n)=>{let c=r.subscribe(t,n,e,o);return a.current.push(c),c},[r,e,o])}}function b(r,e){let o=function(r,e){if(!e||0===Object.keys(e).length)return r;let o=new URLSearchParams;for(let[r,t]of Object.entries(e))null!=t&&o.set(r,String(t));let t=r.includes("?")?"&":"?";return`${r}${t}${o.toString()}`}(r,e?.params),t=(0,c.useQuery)({queryKey:["studio-data",o],queryFn:()=>p(o),enabled:e?.enabled,staleTime:e?.staleTime,refetchInterval:e?.pollingMs||void 0,select:e?.select});return{data:t.data,isLoading:t.isLoading,isError:t.isError,error:t.error,refetch:t.refetch,isFetching:t.isFetching}}function m(r,e="POST"){let o="string"==typeof e?{method:e}:e,t=o.method??"POST",a=o.mapBody,n=(0,c.useMutation)({mutationFn:async e=>{let o="function"==typeof r?r(e):r,n=a?a(e):e,c=null!=n,i=await fetch(`${x()}/api${o}`,{method:t,headers:c?{"Content-Type":"application/json"}:{},body:c?JSON.stringify(n):void 0});if(!i.ok)throw Error(`${t} ${o} failed: ${i.status} ${i.statusText}`);let l=await i.json();return l&&"object"==typeof l&&"ok"in l&&"data"in l?l.data:l}});return{mutate:n.mutate,mutateAsync:n.mutateAsync,isLoading:n.isPending,isError:n.isError,error:n.error,data:n.data}}function x(){if("u">typeof window){let r=window.__KB_STUDIO_CONFIG__,e=r?.KB_API_BASE_URL;if(e)try{return new URL(e).origin}catch{}}return""}async function p(r){let e=await fetch(`${x()}/api${r}`);if(!e.ok)throw Error(`GET ${r} failed: ${e.status} ${e.statusText}`);let o=await e.json();return o&&"object"==typeof o&&"ok"in o&&"data"in o?o.data:o}function B(r,e={}){let{events:o="message",doneEvent:a,terminalEvents:n,enabled:c=!0,reconnect:i=!1,maxReconnects:l=5,reconnectIntervalMs:v=2e3,maxEvents:s=0,parse:d=f,params:g,onEvent:u,onOpen:y,onError:b,onDone:m}=e,[x,p]=(0,t.useState)([]),[S,h]=(0,t.useState)(void 0),[k,C]=(0,t.useState)(null),[T,F]=(0,t.useState)(!1),[E,H]=(0,t.useState)("closed"),[w,A]=(0,t.useState)(!1),[P,I]=(0,t.useState)(0),D=(0,t.useRef)(null),L=(0,t.useRef)(null),R=(0,t.useRef)(!1),W=(0,t.useRef)(!1),$=(0,t.useRef)(u),M=(0,t.useRef)(y),O=(0,t.useRef)(b),_=(0,t.useRef)(m),N=(0,t.useRef)(d);$.current=u,M.current=y,O.current=b,_.current=m,N.current=d;let z=JSON.stringify(o),j=JSON.stringify(g),G=JSON.stringify(n),X=(0,t.useCallback)(()=>{R.current=!0,L.current&&(clearTimeout(L.current),L.current=null),D.current&&(D.current.close(),D.current=null),F(!1),H("closed"),A(!0)},[]),U=(0,t.useCallback)(()=>{p([]),h(void 0)},[]);return(0,t.useEffect)(()=>{if(!r||!c){D.current&&(D.current.close(),D.current=null),F(!1);return}R.current=!1,W.current=!1,p([]),h(void 0),C(null),A(!1),I(0),H("connecting");let e=0;return!function t(){let c=new EventSource(function(r,e){let o=r.startsWith("http")?r:`/api${r}`;if(!e||0===Object.keys(e).length)return o;let t=new URLSearchParams;for(let[r,o]of Object.entries(e))null!=o&&t.set(r,String(o));let a=o.includes("?")?"&":"?";return`${o}${a}${t.toString()}`}(r,g));D.current=c;let d=Array.isArray(o)?o:[o],u=r=>{try{let e=N.current(r.data);h(e),p(r=>{let o=[...r,e];return s>0&&o.length>s?o.slice(-s):o}),$.current?.(e)}catch(e){let r=e instanceof Error?e:Error("Failed to parse SSE event data");C(r),O.current?.(r)}};for(let r of d)c.addEventListener(r,u);for(let r of[...n??[],...a?[a]:[]])c.addEventListener(r,()=>{W.current=!0,c.close(),D.current=null,F(!1),H("closed"),A(!0),_.current?.()});c.onopen=()=>{e=0,I(0),F(!0),H("live"),C(null),M.current?.()},c.onerror=()=>{if(c.close(),D.current=null,F(!1),R.current||W.current)return void H("closed");let r=Error("SSE connection lost");C(r),O.current?.(r),i&&e<l?(I(++e),H("reconnecting"),L.current=setTimeout(t,v*Math.pow(2,e-1))):H("closed")}}(),()=>{R.current=!0,L.current&&(clearTimeout(L.current),L.current=null),D.current&&(D.current.close(),D.current=null)}},[r,c,a,i,l,v,s,z,j,G]),{events:x,latest:S,isConnected:T,connectionStatus:E,closedClean:w,error:k,close:X,clear:U,reconnectCount:P}}function f(r){return JSON.parse(r)}function S(r){let[e,o]=(0,t.useState)(()=>r?h(r):null);return(0,t.useEffect)(()=>{if(!r)return void o(null);o(h(r));let e=setInterval(()=>{o(h(r))},1e3);return()=>clearInterval(e)},[r]),e}function h(r){let e=Math.max(0,Math.floor((Date.now()-new Date(r).getTime())/1e3));if(e<60)return`${e}s`;let o=Math.floor(e/60);if(o<60)return`${o}m ${(e%60).toString().padStart(2,"0")}s`;let t=Math.floor(o/60);return`${t}h ${(o%60).toString().padStart(2,"0")}m`}function k(r,e){let{getNextCursor:o,params:t,enabled:a,staleTime:n,cursorParam:i="cursor",initialCursor:l}=e,v=(0,c.useInfiniteQuery)({queryKey:["studio-infinite",r,t],queryFn:async({pageParam:e})=>C(function(r,e,o,t){let a=new URLSearchParams;if(e)for(let[r,o]of Object.entries(e))null!=o&&a.set(r,String(o));null!=t&&a.set(o,String(t));let n=a.toString(),c=r.startsWith("http")?r:`/api${r}`;return n?`${c}?${n}`:c}(r,t,i,e)),initialPageParam:l,getNextPageParam:o,enabled:a,staleTime:n}),s=v.data?.pages??[],d=s.flatMap(r=>Array.isArray(r)?r:[r]);return{pages:s,data:d,isLoading:v.isLoading,isFetching:v.isFetching,isFetchingNextPage:v.isFetchingNextPage,hasNextPage:v.hasNextPage,fetchNextPage:v.fetchNextPage,error:v.error,isError:v.isError,refetch:v.refetch}}async function C(r){let e=await fetch(r);if(!e.ok)throw Error(`GET ${r} failed: ${e.status} ${e.statusText}`);let o=await e.json();return o&&"object"==typeof o&&"ok"in o&&"data"in o?o.data:o}function T(r,e={}){let{enabled:o=!0,reconnect:a=!1,maxReconnects:n=5,reconnectIntervalMs:c=2e3,protocols:i,parse:l=F,serialize:v=E,maxMessages:s=100,onMessage:d,onOpen:g,onClose:u,onError:y}=e,[b,m]=(0,t.useState)([]),[x,p]=(0,t.useState)(void 0),[B,f]=(0,t.useState)("disconnected"),[S,h]=(0,t.useState)(null),[k,C]=(0,t.useState)(0),H=(0,t.useRef)(null),w=(0,t.useRef)(null),A=(0,t.useRef)(!1),P=(0,t.useRef)(d),I=(0,t.useRef)(g),D=(0,t.useRef)(u),L=(0,t.useRef)(y),R=(0,t.useRef)(l),W=(0,t.useRef)(v);P.current=d,I.current=g,D.current=u,L.current=y,R.current=l,W.current=v;let $=(0,t.useCallback)(()=>{w.current&&(clearTimeout(w.current),w.current=null),H.current&&(H.current.close(),H.current=null)},[]),M=(0,t.useCallback)(()=>{if(!r)return;$(),A.current=!1,f("connecting"),h(null);let e=0;!function o(){let t=function(r){if(r.startsWith("ws://")||r.startsWith("wss://"))return r;let e=r.startsWith("/")?r:`/${r}`;if("u">typeof window){let r=window.__KB_STUDIO_CONFIG__,o=r?.KB_API_BASE_URL;if(o)try{let r=new URL(o).origin,t=r.startsWith("https")?"wss:":"ws:";return`${t}//${new URL(r).host}${e}`}catch{}}let o="https:"===window.location.protocol?"wss:":"ws:";return`${o}//${window.location.host}${e}`}(r),l=i?new WebSocket(t,i):new WebSocket(t);H.current=l,l.onopen=r=>{e=0,C(0),f("connected"),h(null),I.current?.(r)},l.onmessage=r=>{try{let e=R.current(r.data);p(e),m(r=>{let o=[...r,e];return s>0&&o.length>s?o.slice(-s):o}),P.current?.(e)}catch{}},l.onclose=r=>{H.current=null,f("disconnected"),D.current?.(r),!A.current&&a&&e<n&&1e3!==r.code&&(C(++e),w.current=setTimeout(o,c*Math.pow(2,e-1)))},l.onerror=r=>{f("error"),h(r),L.current?.(r)}}()},[r,i,a,n,c,s,$]),O=(0,t.useCallback)((r,e)=>{A.current=!0,w.current&&(clearTimeout(w.current),w.current=null),H.current&&(H.current.close(r,e),H.current=null),f("disconnected")},[]),_=(0,t.useCallback)(r=>{H.current?.readyState===WebSocket.OPEN&&H.current.send(W.current(r))},[]),N=(0,t.useCallback)(r=>{H.current?.readyState===WebSocket.OPEN&&H.current.send(r)},[]),z=(0,t.useCallback)(()=>{m([]),p(void 0)},[]);return(0,t.useEffect)(()=>{if(!r||!o){$(),f("disconnected");return}return m([]),p(void 0),M(),()=>{A.current=!0,$()}},[r,o]),{send:_,sendRaw:N,messages:b,latest:x,status:B,isConnected:"connected"===B,error:S,connect:M,disconnect:O,clear:z,reconnectCount:k}}function F(r){return JSON.parse(r)}function E(r){return JSON.stringify(r)}function H(){let{permissions:r}=g();return{hasPermission:(0,t.useCallback)(e=>r.includes(e),[r]),permissions:r}}function w(){let r=(0,i.useNavigate)(),e=(0,i.useLocation)(),o=(0,t.useCallback)(e=>r(e),[r]),a=(0,t.useCallback)(()=>r(-1),[r]),n=(0,t.useCallback)(r=>window.open(r,"_blank","noopener"),[]);return{navigate:o,currentPath:e.pathname,goBack:a,openExternal:n}}function A(){let r=(0,t.useCallback)(r=>{l.notification[r.type]({message:r.message,description:r.description,duration:r.duration??4.5})},[]),e=(0,t.useCallback)((e,o)=>r({type:"success",message:e,description:o}),[r]),o=(0,t.useCallback)((e,o)=>r({type:"error",message:e,description:o}),[r]),a=(0,t.useCallback)((e,o)=>r({type:"warning",message:e,description:o}),[r]),n=(0,t.useCallback)((e,o)=>r({type:"info",message:e,description:o}),[r]);return{notify:r,success:e,error:o,warning:a,info:n}}var P={bgPrimary:v.lightSemanticColors["bg-primary"],bgSecondary:v.lightSemanticColors["bg-secondary"],bgTertiary:v.lightSemanticColors["bg-tertiary"],textPrimary:v.lightSemanticColors["text-primary"],textSecondary:v.lightSemanticColors["text-secondary"],textTertiary:v.lightSemanticColors["text-tertiary"],textInverse:v.lightSemanticColors["text-inverse"],borderPrimary:v.lightSemanticColors["border-primary"],borderSecondary:v.lightSemanticColors["border-secondary"],link:v.lightSemanticColors.link,linkHover:v.lightSemanticColors["link-hover"],accentSubtle:v.lightSemanticColors["accent-subtle"],success:v.lightSemanticColors.success,warning:v.lightSemanticColors.warning,error:v.lightSemanticColors.error,info:v.lightSemanticColors.info,disabled:v.lightSemanticColors.disabled,shadow:v.lightSemanticColors.shadow},I={bgPrimary:v.darkSemanticColors["bg-primary"],bgSecondary:v.darkSemanticColors["bg-secondary"],bgTertiary:v.darkSemanticColors["bg-tertiary"],textPrimary:v.darkSemanticColors["text-primary"],textSecondary:v.darkSemanticColors["text-secondary"],textTertiary:v.darkSemanticColors["text-tertiary"],textInverse:v.darkSemanticColors["text-inverse"],borderPrimary:v.darkSemanticColors["border-primary"],borderSecondary:v.darkSemanticColors["border-secondary"],link:v.darkSemanticColors.link,linkHover:v.darkSemanticColors["link-hover"],accentSubtle:v.darkSemanticColors["accent-subtle"],success:v.darkSemanticColors.success,warning:v.darkSemanticColors.warning,error:v.darkSemanticColors.error,info:v.darkSemanticColors.info,disabled:v.darkSemanticColors.disabled,shadow:v.darkSemanticColors.shadow};function D(){return"u"<typeof document?"light":document.documentElement.classList.contains("dark")?"dark":"light"}function L(){let{token:r}=l.theme.useToken(),[e,o]=t.useState(D);return t.useEffect(()=>{let r=new MutationObserver(()=>{o(D())});return r.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[]),{mode:e,antdToken:r,semantic:"dark"===e?I:P,tokens:{colors:v.colors,spacing:v.spacing,typography:v.typography,radius:v.radius,shadows:v.shadows}}}function R(){return{colorPrimary:"var(--link, #0c66ff)",colorPrimaryHover:"var(--link-hover, #0050cc)",colorPrimaryActive:"var(--link-hover, #0050cc)",colorPrimaryBg:"var(--accent-subtle, #dbeafe)",colorPrimaryBgHover:"var(--accent-subtle, #dbeafe)",colorPrimaryBorder:"var(--link, #0c66ff)",colorPrimaryBorderHover:"var(--link-hover, #0050cc)",colorPrimaryText:"var(--link, #0c66ff)",colorPrimaryTextHover:"var(--link-hover, #0050cc)",colorPrimaryTextActive:"var(--link-hover, #0050cc)",colorSuccess:"var(--success, #16A34A)",colorSuccessHover:"var(--success, #16A34A)",colorSuccessActive:"var(--success, #16A34A)",colorSuccessBg:"var(--bg-tertiary, #F3F4F6)",colorSuccessBgHover:"var(--bg-tertiary, #F3F4F6)",colorSuccessBorder:"var(--success, #16A34A)",colorSuccessBorderHover:"var(--success, #16A34A)",colorSuccessText:"var(--success, #16A34A)",colorSuccessTextHover:"var(--success, #16A34A)",colorSuccessTextActive:"var(--success, #16A34A)",colorWarning:"var(--warning, #F59E0B)",colorWarningHover:"var(--warning, #F59E0B)",colorWarningActive:"var(--warning, #F59E0B)",colorWarningBg:"var(--bg-tertiary, #F3F4F6)",colorWarningBgHover:"var(--bg-tertiary, #F3F4F6)",colorWarningBorder:"var(--warning, #F59E0B)",colorWarningBorderHover:"var(--warning, #F59E0B)",colorWarningText:"var(--warning, #F59E0B)",colorWarningTextHover:"var(--warning, #F59E0B)",colorWarningTextActive:"var(--warning, #F59E0B)",colorWarningOutline:"rgba(245, 158, 11, 0.2)",colorError:"var(--error, #DC2626)",colorErrorHover:"var(--error, #DC2626)",colorErrorActive:"var(--error, #DC2626)",colorErrorBg:"var(--bg-tertiary, #F3F4F6)",colorErrorBgHover:"var(--bg-tertiary, #F3F4F6)",colorErrorBorder:"var(--error, #DC2626)",colorErrorBorderHover:"var(--error, #DC2626)",colorErrorText:"var(--error, #DC2626)",colorErrorTextHover:"var(--error, #DC2626)",colorErrorTextActive:"var(--error, #DC2626)",colorErrorOutline:"rgba(220, 38, 38, 0.2)",colorInfo:"var(--info, #0EA5E9)",colorInfoHover:"var(--info, #0EA5E9)",colorInfoActive:"var(--info, #0EA5E9)",colorInfoBg:"var(--bg-tertiary, #F3F4F6)",colorInfoBgHover:"var(--bg-tertiary, #F3F4F6)",colorInfoBorder:"var(--info, #0EA5E9)",colorInfoBorderHover:"var(--info, #0EA5E9)",colorInfoText:"var(--info, #0EA5E9)",colorInfoTextHover:"var(--info, #0EA5E9)",colorInfoTextActive:"var(--info, #0EA5E9)",colorBgContainer:"var(--bg-secondary, #FFFFFF)",colorBgBase:"var(--bg-primary, #F9FAFB)",colorBgElevated:"var(--bg-secondary, #FFFFFF)",colorBgLayout:"var(--bg-primary, #F9FAFB)",colorBgSpotlight:"var(--bg-tertiary, #F3F4F6)",colorBgMask:"rgba(0, 0, 0, 0.45)",colorBgTextHover:"var(--bg-hover, #F3F4F6)",colorBgTextActive:"var(--bg-hover, #F3F4F6)",colorBgContainerDisabled:"var(--bg-tertiary, #F3F4F6)",colorText:"var(--text-primary, #111827)",colorTextBase:"var(--text-primary, #111827)",colorTextSecondary:"var(--text-secondary, #6B7280)",colorTextTertiary:"var(--text-tertiary, #6B7280)",colorTextQuaternary:"var(--text-tertiary, #6B7280)",colorTextDisabled:"var(--disabled, #9CA3AF)",colorTextHeading:"var(--text-primary, #111827)",colorTextLabel:"var(--text-secondary, #6B7280)",colorTextDescription:"var(--text-secondary, #6B7280)",colorTextPlaceholder:"var(--text-tertiary, #6B7280)",colorTextLightSolid:"var(--text-inverse, #FFFFFF)",colorBorder:"var(--border-primary, #E5E7EB)",colorBorderSecondary:"var(--border-secondary, #D4D4D4)",colorBorderBg:"var(--bg-secondary, #FFFFFF)",colorSplit:"var(--border-primary, #E5E7EB)",colorFill:"var(--bg-tertiary, #F3F4F6)",colorFillSecondary:"var(--bg-tertiary, #F3F4F6)",colorFillTertiary:"var(--bg-primary, #F9FAFB)",colorFillQuaternary:"var(--bg-primary, #F9FAFB)",colorFillContent:"var(--bg-hover, #F3F4F6)",colorFillContentHover:"var(--bg-hover, #F3F4F6)",colorFillAlter:"var(--bg-tertiary, #F3F4F6)",colorWhite:"#FFFFFF",boxShadow:"0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04)",boxShadowSecondary:"0 4px 12px rgba(0,0,0,0.08)",boxShadowTertiary:"0 8px 24px rgba(0,0,0,0.08)",borderRadius:8,borderRadiusLG:12,borderRadiusSM:6,borderRadiusXS:4,borderRadiusOuter:6,controlHeight:36,controlHeightLG:40,controlHeightSM:28,controlHeightXS:22,fontFamily:"var(--font-body, 'Inter', 'Segoe UI', sans-serif)",fontSize:14,fontSizeLG:16,fontSizeSM:12,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,fontWeightStrong:600,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,padding:16,paddingLG:24,paddingSM:12,paddingXS:8,paddingXXS:4,margin:16,marginLG:24,marginSM:12,marginXS:8,marginXXS:4,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",colorLink:"var(--link, #0c66ff)",colorLinkHover:"var(--link-hover, #0050cc)",colorLinkActive:"var(--link-hover, #0050cc)",colorIcon:"var(--text-secondary, #6B7280)",colorIconHover:"var(--text-primary, #111827)",colorHighlight:"var(--link, #0c66ff)",controlOutline:"rgba(12, 102, 255, 0.15)",controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"var(--bg-hover, #F3F4F6)",controlItemBgActive:"var(--accent-subtle, #dbeafe)",controlItemBgActiveHover:"var(--accent-subtle, #dbeafe)",controlItemBgActiveDisabled:"var(--bg-tertiary, #F3F4F6)",controlTmpOutline:"rgba(12, 102, 255, 0.08)",screenXS:480,screenSM:576,screenMD:768,screenLG:992,screenXL:1200,screenXXL:1600}}function W(){return{Table:{headerBg:"var(--bg-tertiary)",headerColor:"var(--text-primary)",borderColor:"var(--border-primary)",colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",rowHoverBg:"var(--bg-hover)",rowSelectedBg:"var(--accent-subtle)",rowSelectedHoverBg:"var(--accent-subtle)",rowExpandedBg:"var(--bg-secondary)",bodySortBg:"var(--bg-tertiary)",headerSortActiveBg:"var(--bg-tertiary)",headerSortHoverBg:"var(--bg-tertiary)",headerFilterHoverBg:"var(--bg-tertiary)",fixedHeaderSortActiveBg:"var(--bg-tertiary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",expandIconBg:"var(--bg-secondary)",footerBg:"var(--bg-tertiary)",footerColor:"var(--text-primary)",selectionColumnWidth:60,stickyScrollBarBg:"var(--bg-tertiary)",stickyScrollBarBorderRadius:4},Tag:{defaultBg:"var(--bg-tertiary)",defaultColor:"var(--text-primary)",colorBorder:"var(--border-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"},Badge:{colorError:"var(--error)",colorSuccess:"var(--success)",colorWarning:"var(--warning)",colorInfo:"var(--info)",colorText:"var(--text-primary)"},Alert:{colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)",colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",colorSuccessBg:"var(--bg-tertiary)",colorErrorBg:"var(--bg-tertiary)",colorWarningBg:"var(--bg-tertiary)",colorInfoBg:"var(--bg-tertiary)",colorSuccessBorder:"var(--success)",colorErrorBorder:"var(--error)",colorWarningBorder:"var(--warning)",colorInfoBorder:"var(--info)"},Card:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBorderSecondary:"var(--border-primary)",headerBg:"var(--bg-secondary)",actionsBg:"var(--bg-tertiary)",extraColor:"var(--text-secondary)"},Descriptions:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorBorder:"var(--border-primary)"},Button:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",colorPrimaryActive:"var(--link-hover)",primaryColor:"var(--text-inverse)",primaryShadow:"0 2px 0 rgba(12, 102, 255, 0.15)",defaultBg:"var(--bg-secondary)",defaultColor:"var(--text-primary)",defaultBorderColor:"var(--border-primary)",defaultShadow:"0 2px 0 rgba(0, 0, 0, 0.015)",defaultHoverBg:"var(--bg-hover)",defaultHoverColor:"var(--text-primary)",defaultHoverBorderColor:"var(--border-secondary)",defaultActiveBg:"var(--bg-hover)",defaultActiveColor:"var(--text-primary)",defaultActiveBorderColor:"var(--border-secondary)",ghostBg:"transparent",defaultGhostColor:"var(--text-primary)",defaultGhostBorderColor:"var(--border-primary)",borderColorDisabled:"var(--border-primary)",colorBgContainerDisabled:"var(--bg-tertiary)",textTextColor:"var(--text-secondary)",textTextHoverColor:"var(--text-primary)",textTextActiveColor:"var(--text-primary)",textHoverBg:"var(--accent-subtle)",linkHoverBg:"transparent",colorLink:"var(--link)",colorLinkHover:"var(--link-hover)",colorLinkActive:"var(--link-hover)",solidTextColor:"var(--text-primary)",dangerColor:"var(--error)",dangerShadow:"0 2px 0 rgba(220, 38, 38, 0.1)",colorErrorBg:"transparent",colorErrorBgHover:"var(--bg-hover)",colorErrorBorder:"var(--error)",colorErrorBorderHover:"var(--error)",colorErrorHover:"var(--error)",colorErrorActive:"var(--error)"},Input:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorTextPlaceholder:"var(--text-tertiary)",hoverBorderColor:"var(--border-secondary)",activeBorderColor:"var(--link)",activeShadow:"0 0 0 3px rgba(12, 102, 255, 0.12)",errorActiveShadow:"0 0 0 2px rgba(220, 38, 38, 0.1)",warningActiveShadow:"0 0 0 2px rgba(245, 158, 11, 0.1)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Select:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",colorTextPlaceholder:"var(--text-tertiary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",optionSelectedBg:"var(--accent-subtle)",optionSelectedColor:"var(--link)",optionActiveBg:"var(--bg-hover)",optionSelectedFontWeight:600,multipleItemBg:"var(--bg-tertiary)",multipleItemBorderColor:"var(--border-primary)",multipleItemColorDisabled:"var(--disabled)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",selectorBg:"var(--bg-secondary)"},Dropdown:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorTextDisabled:"var(--disabled)",controlItemBgHover:"var(--bg-hover)",controlItemBgActive:"var(--accent-subtle)",controlItemBgActiveHover:"var(--accent-subtle)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",colorBgContainer:"var(--bg-secondary)",colorSplit:"var(--border-primary)",paddingBlock:8,controlPaddingHorizontal:12},Menu:{colorText:"var(--text-primary)",colorTextSecondary:"var(--text-secondary)",colorBgContainer:"var(--bg-sidebar)",colorBorder:"var(--border-primary)",colorSplit:"var(--border-primary)",itemColor:"var(--text-primary)",itemBg:"var(--bg-secondary)",itemHoverBg:"var(--bg-hover)",itemHoverColor:"var(--link)",itemSelectedBg:"var(--accent-subtle)",itemSelectedColor:"var(--link)",itemActiveBg:"var(--accent-subtle)",colorActiveBarBorderSize:0,darkItemBg:"var(--bg-secondary)",darkItemColor:"var(--text-primary)",darkItemHoverBg:"var(--bg-hover)",darkItemSelectedBg:"var(--accent-subtle)",darkItemSelectedColor:"var(--link)",darkSubMenuItemBg:"var(--bg-secondary)",subMenuItemBg:"var(--bg-secondary)",popupBg:"var(--bg-secondary)",colorPrimary:"var(--link)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",groupTitleColor:"var(--text-tertiary)",groupTitleFontSize:11,itemBorderRadius:8,subMenuItemBorderRadius:6,itemPaddingInline:12},Tabs:{colorText:"var(--text-secondary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorBorderSecondary:"var(--border-primary)",colorPrimary:"var(--link)",itemHoverColor:"var(--link)",itemSelectedColor:"var(--link)",itemActiveColor:"var(--link)",inkBarColor:"var(--link)"},Modal:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",headerBg:"var(--bg-secondary)",footerBg:"var(--bg-tertiary)",contentBg:"var(--bg-secondary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Drawer:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Popover:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)"},Tooltip:{colorText:"var(--text-primary)",colorBgSpotlight:"var(--bg-secondary)",colorTextLightSolid:"var(--text-primary)"},List:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorSplit:"var(--border-primary)",metaMarginBottom:8,avatarMarginRight:16},Switch:{colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)"},Radio:{colorPrimary:"var(--link)",colorText:"var(--text-primary)",buttonCheckedBg:"var(--link)",buttonCheckedBgDisabled:"var(--disabled)",buttonColor:"var(--text-primary)",buttonSolidCheckedColor:"var(--text-inverse)",buttonSolidCheckedBg:"var(--link)",buttonSolidCheckedHoverBg:"var(--link-hover)",buttonSolidCheckedActiveBg:"var(--link-hover)"},Checkbox:{colorPrimary:"var(--link)",colorText:"var(--text-primary)"},DatePicker:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",colorTextPlaceholder:"var(--text-tertiary)",colorTextDisabled:"var(--disabled)",colorLink:"var(--link)",colorLinkHover:"var(--link-hover)",cellHoverBg:"var(--bg-hover)",cellActiveWithRangeBg:"var(--accent-subtle)",cellBgDisabled:"var(--bg-tertiary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Form:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorError:"var(--error)",colorWarning:"var(--warning)"},Pagination:{colorText:"var(--text-primary)",colorTextDisabled:"var(--disabled)",colorBgContainer:"var(--bg-secondary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",itemBg:"var(--bg-secondary)",itemActiveBg:"var(--link)",itemActiveBgDisabled:"var(--bg-tertiary)",itemInputBg:"var(--bg-secondary)",itemLinkBg:"var(--bg-secondary)",colorBgTextHover:"var(--bg-hover)"},Steps:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",colorPrimary:"var(--link)",colorBorder:"var(--border-primary)"},Breadcrumb:{colorText:"var(--text-secondary)",colorTextDescription:"var(--text-tertiary)",linkColor:"var(--link)",linkHoverColor:"var(--link-hover)",separatorColor:"var(--text-tertiary)"},Progress:{colorText:"var(--text-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",remainingColor:"var(--bg-tertiary)"},Skeleton:{colorFill:"var(--bg-tertiary)",colorFillContent:"var(--bg-hover)"},Spin:{colorPrimary:"var(--link)",colorBgContainer:"var(--bg-secondary)"},Divider:{colorSplit:"var(--border-primary)",colorText:"var(--text-secondary)"},Layout:{headerBg:"var(--bg-secondary)",bodyBg:"var(--bg-primary)",triggerBg:"var(--bg-tertiary)",colorText:"var(--text-primary)"},Collapse:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorBgContainer:"var(--bg-secondary)",headerBg:"var(--bg-tertiary)"},Carousel:{colorBgContainer:"var(--bg-secondary)",dotActiveWidth:24},Anchor:{colorPrimary:"var(--link)",colorText:"var(--text-secondary)",linkPaddingBlock:4},Timeline:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",tailColor:"var(--border-primary)",dotBg:"var(--bg-secondary)"},Transfer:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",controlItemBgActive:"var(--bg-hover)"},Tree:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorPrimary:"var(--link)",nodeHoverBg:"var(--bg-hover)",nodeSelectedBg:"var(--accent-subtle)"},TreeSelect:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",nodeHoverBg:"var(--bg-hover)",nodeSelectedBg:"var(--accent-subtle)"},Cascader:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",optionSelectedBg:"var(--bg-hover)"},Segmented:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorBgLayout:"var(--bg-tertiary)",itemSelectedBg:"var(--bg-secondary)",itemSelectedColor:"var(--link)",itemHoverBg:"var(--bg-hover)"},Rate:{colorText:"var(--warning)"},Slider:{colorPrimary:"var(--link)",colorPrimaryBorder:"var(--link)",trackBg:"var(--bg-tertiary)",trackHoverBg:"var(--bg-hover)"},Upload:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",colorBorder:"var(--border-primary)",colorFillAlter:"var(--bg-tertiary)",colorPrimary:"var(--link)"},Calendar:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",itemActiveBg:"var(--accent-subtle)"},Image:{colorTextLightSolid:"var(--text-primary)",colorBgMask:"rgba(0, 0, 0, 0.45)"},Statistic:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)"},Result:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorTextDescription:"var(--text-secondary)"},Empty:{colorText:"var(--text-secondary)",colorTextDescription:"var(--text-tertiary)"},Message:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",contentBg:"var(--bg-secondary)",contentPadding:"10px 16px",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"},Notification:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"}}}o.d(e,{PageContextProvider:()=>d,getAntDesignComponents:()=>W,getAntDesignTokens:()=>R,useData:()=>b,useElapsedTimer:()=>S,useEventBus:()=>y,useInfiniteData:()=>k,useMutateData:()=>m,useNavigation:()=>w,useNotification:()=>A,usePage:()=>u,usePageContext:()=>g,usePermissions:()=>H,useSSE:()=>B,useTheme:()=>L,useWebSocket:()=>T})}}]);
|
package/dist/widgets/405.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[405],{101(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),d=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,b={};function m(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}function v(){}function S(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var E=S.prototype=new v;E.constructor=S,_(E,m.prototype),E.isPureReactComponent=!0;var w=Array.isArray;function k(){}var g={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function j(e,t,r){var o=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==o?o:null,props:r}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var R=/\/+/g;function $(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function T(e,t,o){if(null==e)return e;var u=[],s=0;return!function e(t,o,u,s,c){var i,a,f,l=typeof t;("undefined"===l||"boolean"===l)&&(t=null);var y=!1;if(null===t)y=!0;else switch(l){case"bigint":case"string":case"number":y=!0;break;case"object":switch(t.$$typeof){case n:case r:y=!0;break;case p:return e((y=t._init)(t._payload),o,u,s,c)}}if(y)return c=c(t),y=""===s?"."+$(t,0):s,w(c)?(u="",null!=y&&(u=y.replace(R,"$&/")+"/"),e(c,o,u,"",function(e){return e})):null!=c&&(C(c)&&(i=c,a=u+(null==c.key||t&&t.key===c.key?"":(""+c.key).replace(R,"$&/")+"/")+y,c=j(i.type,a,i.props)),o.push(c)),1;y=0;var h=""===s?".":s+":";if(w(t))for(var _=0;_<t.length;_++)l=h+$(s=t[_],_),y+=e(s,o,u,l,c);else if("function"==typeof(_=null===(f=t)||"object"!=typeof f?null:"function"==typeof(f=d&&f[d]||f["@@iterator"])?f:null))for(t=_.call(t),_=0;!(s=t.next()).done;)l=h+$(s=s.value,_++),y+=e(s,o,u,l,c);else if("object"===l){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),o,u,s,c);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return y}(e,u,"","",function(e){return t.call(o,e,s++)}),u}function x(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};t.Activity=y,t.Children={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=s,t.PureComponent=S,t.StrictMode=u,t.Suspense=f,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=g,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return g.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=_({},e.props),o=e.key;if(null!=t)for(u in void 0!==t.key&&(o=""+t.key),t)H.call(t,u)&&"key"!==u&&"__self"!==u&&"__source"!==u&&("ref"!==u||void 0!==t.ref)&&(r[u]=t[u]);var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return j(e.type,o,r)},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:c,_context:e},e},t.createElement=function(e,t,n){var r,o={},u=null;if(null!=t)for(r in void 0!==t.key&&(u=""+t.key),t)H.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return j(e,u,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:a,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=g.T,n={};g.T=n;try{var r=e(),o=g.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,A)}catch(e){A(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),g.T=t}},t.unstable_useCacheRefresh=function(){return g.H.useCacheRefresh()},t.use=function(e){return g.H.use(e)},t.useActionState=function(e,t,n){return g.H.useActionState(e,t,n)},t.useCallback=function(e,t){return g.H.useCallback(e,t)},t.useContext=function(e){return g.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return g.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return g.H.useEffect(e,t)},t.useEffectEvent=function(e){return g.H.useEffectEvent(e)},t.useId=function(){return g.H.useId()},t.useImperativeHandle=function(e,t,n){return g.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return g.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return g.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return g.H.useMemo(e,t)},t.useOptimistic=function(e,t){return g.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return g.H.useReducer(e,t,n)},t.useRef=function(e){return g.H.useRef(e)},t.useState=function(e){return g.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return g.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return g.H.useTransition()},t.version="19.2.5"},6740(e,t,n){e.exports=n(101)}}]);
|
|
2
|
-
//# sourceMappingURL=405.js.map
|
|
1
|
+
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[405],{101(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),d=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,b={};function m(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}function v(){}function S(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var E=S.prototype=new v;E.constructor=S,_(E,m.prototype),E.isPureReactComponent=!0;var w=Array.isArray;function k(){}var g={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function j(e,t,r){var o=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==o?o:null,props:r}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var R=/\/+/g;function $(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function T(e,t,o){if(null==e)return e;var u=[],s=0;return!function e(t,o,u,s,c){var i,a,f,l=typeof t;("undefined"===l||"boolean"===l)&&(t=null);var y=!1;if(null===t)y=!0;else switch(l){case"bigint":case"string":case"number":y=!0;break;case"object":switch(t.$$typeof){case n:case r:y=!0;break;case p:return e((y=t._init)(t._payload),o,u,s,c)}}if(y)return c=c(t),y=""===s?"."+$(t,0):s,w(c)?(u="",null!=y&&(u=y.replace(R,"$&/")+"/"),e(c,o,u,"",function(e){return e})):null!=c&&(C(c)&&(i=c,a=u+(null==c.key||t&&t.key===c.key?"":(""+c.key).replace(R,"$&/")+"/")+y,c=j(i.type,a,i.props)),o.push(c)),1;y=0;var h=""===s?".":s+":";if(w(t))for(var _=0;_<t.length;_++)l=h+$(s=t[_],_),y+=e(s,o,u,l,c);else if("function"==typeof(_=null===(f=t)||"object"!=typeof f?null:"function"==typeof(f=d&&f[d]||f["@@iterator"])?f:null))for(t=_.call(t),_=0;!(s=t.next()).done;)l=h+$(s=s.value,_++),y+=e(s,o,u,l,c);else if("object"===l){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),o,u,s,c);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return y}(e,u,"","",function(e){return t.call(o,e,s++)}),u}function x(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};t.Activity=y,t.Children={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=s,t.PureComponent=S,t.StrictMode=u,t.Suspense=f,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=g,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return g.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=_({},e.props),o=e.key;if(null!=t)for(u in void 0!==t.key&&(o=""+t.key),t)H.call(t,u)&&"key"!==u&&"__self"!==u&&"__source"!==u&&("ref"!==u||void 0!==t.ref)&&(r[u]=t[u]);var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return j(e.type,o,r)},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:c,_context:e},e},t.createElement=function(e,t,n){var r,o={},u=null;if(null!=t)for(r in void 0!==t.key&&(u=""+t.key),t)H.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return j(e,u,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:a,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=g.T,n={};g.T=n;try{var r=e(),o=g.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,A)}catch(e){A(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),g.T=t}},t.unstable_useCacheRefresh=function(){return g.H.useCacheRefresh()},t.use=function(e){return g.H.use(e)},t.useActionState=function(e,t,n){return g.H.useActionState(e,t,n)},t.useCallback=function(e,t){return g.H.useCallback(e,t)},t.useContext=function(e){return g.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return g.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return g.H.useEffect(e,t)},t.useEffectEvent=function(e){return g.H.useEffectEvent(e)},t.useId=function(){return g.H.useId()},t.useImperativeHandle=function(e,t,n){return g.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return g.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return g.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return g.H.useMemo(e,t)},t.useOptimistic=function(e,t){return g.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return g.H.useReducer(e,t,n)},t.useRef=function(e){return g.H.useRef(e)},t.useState=function(e){return g.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return g.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return g.H.useTransition()},t.version="19.2.5"},6740(e,t,n){e.exports=n(101)}}]);
|
package/dist/widgets/46.js
CHANGED
|
@@ -442,5 +442,4 @@
|
|
|
442
442
|
`]:{zIndex:10,width:r,margin:`0 ${tm(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${tm(a(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${tm(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}})(i),(e=>{let{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:a}=e,i=`${t}-list-item`,l=`${i}-actions`,c=`${i}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},nW()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:Object.assign(Object.assign({},nH),{padding:`0 ${tm(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[c]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
|
443
443
|
${c}:focus-visible,
|
|
444
444
|
&.picture ${c}
|
|
445
|
-
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${c}`]:{opacity:1},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}})(i),(e=>{let{componentCls:t}=e,n=new no("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new no("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:ub(e)},n,r]})(i),(e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}})(i),lq(i)]},e=>({actionsColor:e.colorIcon,pictureCardSize:2.55*e.controlHeightLG})),P0={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var P1=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:P0}))});let P2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var P4=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:P2}))});let P3={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var P6=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:P3}))});function P5(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function P8(e,t){let n=(0,eM.A)(t),r=n.findIndex(({uid:t})=>t===e.uid);return -1===r?n.push(e):n[r]=e,n}function P7(e,t){let n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}let P9=e=>0===e.indexOf("image/"),Te=e=>{if(e.type&&!e.thumbUrl)return P9(e.type);let t=e.thumbUrl||e.url||"",n=((e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]})(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n};function Tt(e){return new Promise(t=>{if(!e.type||!P9(e.type))return void t("");let n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);let r=n.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:e,height:a}=o,i=200,l=200,c=0,s=0;e>a?s=-((l=200/e*a)-i)/2:c=-((i=200/a*e)-l)/2,r.drawImage(o,c,s,i,l);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}let Tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var Tr=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:Tn}))});let To=x.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:o,file:a,items:i,progress:l,iconRender:c,actionIconRender:s,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,previewIcon:g,removeIcon:h,downloadIcon:v,extra:b,onPreview:y,onDownload:$,onClose:w},C)=>{var S,k;let{status:O}=a,[A,I]=x.useState(O);x.useEffect(()=>{"removed"!==O&&I(O)},[O]);let[N,j]=x.useState(!1);x.useEffect(()=>{let e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);let M=c(a),R=x.createElement("div",{className:`${e}-icon`},M);if("picture"===o||"picture-card"===o||"picture-circle"===o)if("uploading"!==A&&(a.thumbUrl||a.url)){let t=(null==d?void 0:d(a))?x.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${e}-list-item-image`,crossOrigin:a.crossOrigin}):M,n=E()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(a)});R=x.createElement("a",{className:n,onClick:e=>y(a,e),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},t)}else{let t=E()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:"uploading"!==A});R=x.createElement("div",{className:t},M)}let P=E()(`${e}-list-item`,`${e}-list-item-${A}`),T="string"==typeof a.linkProps?JSON.parse(a.linkProps):a.linkProps,z=("function"==typeof p?p(a):p)?s(("function"==typeof h?h(a):h)||x.createElement(RP,null),()=>w(a),e,r.removeFile,!0):null,B=("function"==typeof m?m(a):m)&&"done"===A?s(("function"==typeof v?v(a):v)||x.createElement(Tr,null),()=>$(a),e,r.downloadFile):null,D="picture-card"!==o&&"picture-circle"!==o&&x.createElement("span",{key:"download-delete",className:E()(`${e}-list-item-actions`,{picture:"picture"===o})},B,z),H="function"==typeof b?b(a):b,L=H&&x.createElement("span",{className:`${e}-list-item-extra`},H),F=E()(`${e}-list-item-name`),W=a.url?x.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:F,title:a.name},T,{href:a.url,onClick:e=>y(a,e)}),a.name,L):x.createElement("span",{key:"view",className:F,onClick:e=>y(a,e),title:a.name},a.name,L),_=("function"==typeof f?f(a):f)&&(a.url||a.thumbUrl)?x.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>y(a,e),title:r.previewFile},"function"==typeof g?g(a):g||x.createElement(SJ,null)):null,V=("picture-card"===o||"picture-circle"===o)&&"uploading"!==A&&x.createElement("span",{className:`${e}-list-item-actions`},_,"done"===A&&B,z),{getPrefixCls:q}=x.useContext(eF),K=q(),X=x.createElement("div",{className:P},R,W,D,V,N&&x.createElement(oX,{motionName:`${K}-fade`,visible:"uploading"===A,motionDeadline:2e3},({className:t})=>{let n="percent"in a?x.createElement(Aq,Object.assign({type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"]},l)):null;return x.createElement("div",{className:E()(`${e}-list-item-progress`,t)},n)})),G=a.response&&"string"==typeof a.response?a.response:(null==(S=a.error)?void 0:S.statusText)||(null==(k=a.error)?void 0:k.message)||r.uploadError,Y="error"===A?x.createElement(ms,{title:G,getPopupContainer:e=>e.parentNode},X):X;return x.createElement("div",{className:E()(`${e}-list-item-container`,t),style:n,ref:C},u?u(Y,a,i,{download:$.bind(null,a),preview:y.bind(null,a),remove:w.bind(null,a)}):Y)}),Ta=x.forwardRef((e,t)=>{let{listType:n="text",previewFile:r=Tt,onPreview:o,onDownload:a,onRemove:i,locale:l,iconRender:c,isImageUrl:s=Te,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:h,downloadIcon:v,extra:b,progress:y={size:[-1,2],showInfo:!1},appendAction:$,appendActionVisible:w=!0,itemRender:C,disabled:S}=e,[,k]=pW(),[O,A]=x.useState(!1),I=["picture-card","picture-circle"].includes(n);x.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==r||r(e.originFileObj).then(t=>{e.thumbUrl=t||"",k()}))})},[n,d,r]),x.useEffect(()=>{A(!0)},[]);let N=(e,t)=>{if(o)return null==t||t.preventDefault(),o(e)},j=e=>{"function"==typeof a?a(e):e.url&&window.open(e.url)},M=e=>{null==i||i(e)},R=e=>{if(c)return c(e,n);let t="uploading"===e.status;if(n.startsWith("picture")){let r="picture"===n?x.createElement(aV,null):l.uploading,o=(null==s?void 0:s(e))?x.createElement(P6,null):x.createElement(P1,null);return t?r:o}return t?x.createElement(aV,null):x.createElement(P4,null)},P=(e,t,n,r,o)=>{let a={type:"text",size:"small",title:r,onClick:n=>{var r,o;t(),x.isValidElement(e)&&(null==(o=(r=e.props).onClick)||o.call(r,n))},className:`${n}-list-item-action`,disabled:!!o&&S};return x.isValidElement(e)?x.createElement(cu,Object.assign({},a,{icon:o7(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):x.createElement(cu,Object.assign({},a),x.createElement("span",null,e))};x.useImperativeHandle(t,()=>({handlePreview:N,handleDownload:j}));let{getPrefixCls:T}=x.useContext(eF),z=T("upload",u),B=T(),D=E()(`${z}-list`,`${z}-list-${n}`),H=x.useMemo(()=>iX(iq(B),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[B]),L=Object.assign(Object.assign({},I?{}:H),{motionDeadline:2e3,motionName:`${z}-${I?"animate-inline":"animate"}`,keys:(0,eM.A)(d.map(e=>({key:e.uid,file:e}))),motionAppear:O});return x.createElement("div",{className:D},x.createElement(o2,Object.assign({},L,{component:!1}),({key:e,file:t,className:r,style:o})=>x.createElement(To,{key:e,locale:l,prefixCls:z,className:r,style:o,file:t,items:d,progress:y,listType:n,isImgUrl:s,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:g,previewIcon:h,downloadIcon:v,extra:b,iconRender:R,actionIconRender:P,itemRender:C,onPreview:N,onDownload:j,onClose:M})),$&&x.createElement(oX,Object.assign({},L,{visible:w,forceRender:!0}),({className:e,style:t})=>o7($,n=>({className:E()(n.className,e),style:Object.assign(Object.assign(Object.assign({},t),{pointerEvents:e?"none":void 0}),n.style)}))))}),Ti=`__LIST_IGNORE_${Date.now()}__`,Tl=x.forwardRef((e,t)=>{let n=eV("upload"),{fileList:r,defaultFileList:o,onRemove:a,showUploadList:i=!0,listType:l="text",onPreview:c,onDownload:s,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:g,isImageUrl:h,progress:v,prefixCls:b,className:y,type:$="select",children:w,style:C,itemRender:S,maxCount:k,data:O={},multiple:A=!1,hasControlInside:I=!0,action:N="",accept:j="",supportServerRender:M=!0,rootClassName:R}=e,P=x.useContext(iu),T=null!=p?p:P,z=e.customRequest||n.customRequest,[B,D]=nb(o||[],{value:r,postState:e=>null!=e?e:[]}),[L,F]=x.useState("drop"),W=x.useRef(null),_=x.useRef(null);x.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let V=(e,t,n)=>{let r=(0,eM.A)(t),o=!1;1===k?r=r.slice(-1):k&&(o=r.length>k,r=r.slice(0,k)),(0,H.flushSync)(()=>{D(r)});let a={file:e,fileList:r};n&&(a.event=n),(!o||"removed"===e.status||r.some(t=>t.uid===e.uid))&&(0,H.flushSync)(()=>{null==u||u(a)})},q=e=>{let t=e.filter(e=>!e.file[Ti]);if(!t.length)return;let n=t.map(e=>P5(e.file)),r=(0,eM.A)(B);n.forEach(e=>{r=P8(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{let t,{originFileObj:n}=e;try{t=new File([n],n.name,{type:n.type})}catch(e){(t=new Blob([n],{type:n.type})).name=n.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,o=t}V(o,r)})},K=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!P7(t,B))return;let r=P5(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;let o=P8(r,B);V(r,o)},X=(e,t)=>{if(!P7(t,B))return;let n=P5(t);n.status="uploading",n.percent=e.percent;let r=P8(n,B);V(n,r,e)},G=(e,t,n)=>{if(!P7(n,B))return;let r=P5(n);r.error=e,r.response=t,r.status="error";let o=P8(r,B);V(r,o)},Y=e=>{let t;Promise.resolve("function"==typeof a?a(e):a).then(n=>{var r;let o,a;if(!1===n)return;let i=(o=void 0!==e.uid?"uid":"name",(a=B.filter(t=>t[o]!==e[o])).length===B.length?null:a);i&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==B||B.forEach(e=>{let n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null==(r=W.current)||r.abort(t),V(t,i))})},U=e=>{F(e.type),"drop"===e.type&&(null==d||d(e))};x.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:K,onProgress:X,onError:G,fileList:B,upload:W.current,nativeElement:_.current}));let{getPrefixCls:Q,direction:Z,upload:J}=x.useContext(eF),ee=Q("upload",b),et=Object.assign(Object.assign({onBatchStart:q,onError:G,onProgress:X,onSuccess:K},e),{customRequest:z,data:O,multiple:A,action:N,accept:j,supportServerRender:M,prefixCls:ee,disabled:T,beforeUpload:(t,n)=>{var r,o,a,i;return r=void 0,o=void 0,a=void 0,i=function*(){let{beforeUpload:r,transformFile:o}=e,a=t;if(r){let e=yield r(t,n);if(!1===e)return!1;if(delete t[Ti],e===Ti)return Object.defineProperty(t,Ti,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return o&&(a=yield o(a)),a},new(a||(a=Promise))(function(e,t){function n(e){try{c(i.next(e))}catch(e){t(e)}}function l(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,l)}c((i=i.apply(r,o||[])).next())})},onChange:void 0,hasControlInside:I});delete et.className,delete et.style,(!w||T)&&delete et.id;let en=`${ee}-wrapper`,[er,eo,ea]=PJ(ee,en),[ei]=iK("Upload",ir.Upload),{showRemoveIcon:el,showPreviewIcon:ec,showDownloadIcon:es,removeIcon:eu,previewIcon:ed,downloadIcon:ef,extra:ep}="boolean"==typeof i?{}:i,em=void 0===el?!T:el,eg=(e,t)=>i?x.createElement(Ta,{prefixCls:ee,listType:l,items:B,previewFile:f,onPreview:c,onDownload:s,onRemove:Y,showRemoveIcon:em,showPreviewIcon:ec,showDownloadIcon:es,removeIcon:eu,previewIcon:ed,downloadIcon:ef,iconRender:g,extra:ep,locale:Object.assign(Object.assign({},ei),m),isImageUrl:h,progress:v,appendAction:e,appendActionVisible:t,itemRender:S,disabled:T}):e,eh=E()(en,y,R,eo,ea,null==J?void 0:J.className,{[`${ee}-rtl`]:"rtl"===Z,[`${ee}-picture-card-wrapper`]:"picture-card"===l,[`${ee}-picture-circle-wrapper`]:"picture-circle"===l}),ev=Object.assign(Object.assign({},null==J?void 0:J.style),C);if("drag"===$){let e=E()(eo,ee,`${ee}-drag`,{[`${ee}-drag-uploading`]:B.some(e=>"uploading"===e.status),[`${ee}-drag-hover`]:"dragover"===L,[`${ee}-disabled`]:T,[`${ee}-rtl`]:"rtl"===Z});return er(x.createElement("span",{className:eh,ref:_},x.createElement("div",{className:e,style:ev,onDrop:U,onDragOver:U,onDragLeave:U},x.createElement(PZ,Object.assign({},et,{ref:W,className:`${ee}-btn`}),x.createElement("div",{className:`${ee}-drag-container`},w))),eg()))}let eb=E()(ee,`${ee}-select`,{[`${ee}-disabled`]:T,[`${ee}-hidden`]:!w}),ey=x.createElement("div",{className:eb,style:ev},x.createElement(PZ,Object.assign({},et,{ref:W})));return er("picture-card"===l||"picture-circle"===l?x.createElement("span",{className:eh,ref:_},eg(ey,!!w)):x.createElement("span",{className:eh,ref:_},ey,eg()))});var Tc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Ts=x.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:o=!1,children:a}=e,i=Tc(e,["style","height","hasControlInside","children"]),l=Object.assign(Object.assign({},n),{height:r});return x.createElement(Tl,Object.assign({ref:t,hasControlInside:o},i,{style:l,type:"drag"}),a)});Tl.Dragger=Ts,Tl.LIST_IGNORE=Ti;let Tu=Tl;w().Component;var Td={subtree:!0,childList:!0,attributeFilter:["style","class"]};let Tf=(e,t,n=1)=>{let r=document.createElement("canvas"),o=r.getContext("2d"),a=e*n,i=t*n;return r.setAttribute("width",`${a}px`),r.setAttribute("height",`${i}px`),o.save(),[o,r,a,i]},Tp={visibility:"visible !important"};function Tm(e,t){return e.size===t.size?e:t}let Tg={position:"relative",overflow:"hidden"},Th=e=>{var t,n,r;let o,a,i,l,c,{zIndex:s=9,rotate:u=-22,width:d,height:f,image:p,content:m,font:g={},style:h,className:v,rootClassName:b,gap:y=[100,100],offset:$,children:C,inherit:S=!0}=e,k=Object.assign(Object.assign({},Tg),h),[,O]=rV(),{color:A=O.colorFill,fontSize:I=O.fontSizeLG,fontWeight:N="normal",fontStyle:j="normal",fontFamily:M="sans-serif",textAlign:R="center"}=g,[P=100,T=100]=y,z=P/2,B=T/2,D=null!=(t=null==$?void 0:$[0])?t:z,H=null!=(n=null==$?void 0:$[1])?n:B,L=w().useMemo(()=>{let e={zIndex:s,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"},t=D-z,n=H-B;return t>0&&(e.left=`${t}px`,e.width=`calc(100% - ${t}px)`,t=0),n>0&&(e.top=`${n}px`,e.height=`calc(100% - ${n}px)`,n=0),e.backgroundPosition=`${t}px ${n}px`,e},[s,D,z,H,B]),[F,W]=w().useState(),[_,V]=w().useState(()=>new Set),q=w().useMemo(()=>[].concat(F?[F]:[],(0,eM.A)(Array.from(_))),[F,_]),K=w().useCallback((e,t,n,r,o,a,i,l)=>{let[c,s,u,d]=Tf(r,o,n);if(e instanceof HTMLImageElement)c.drawImage(e,0,0,u,d);else{let{color:t,fontSize:r,fontStyle:i,fontWeight:l,fontFamily:s,textAlign:d}=a,f=Number(r)*n;c.font=`${i} normal ${l} ${f}px/${o}px ${s}`,c.fillStyle=t,c.textAlign=d,c.textBaseline="top";let p=OX(e);null==p||p.forEach((e,t)=>{c.fillText(null!=e?e:"",u/2,t*(f+3*n))})}let f=Math.PI/180*Number(t),p=Math.max(r,o),[m,g,h]=Tf(p,p,n);m.translate(h/2,h/2),m.rotate(f),u>0&&d>0&&m.drawImage(s,-u/2,-d/2);let v=0,b=0,y=0,$=0,x=u/2,w=d/2;[[0-x,0-w],[0+x,0-w],[0+x,0+w],[0-x,0+w]].forEach(([e,t])=>{let[n,r]=[e*Math.cos(f)-t*Math.sin(f),e*Math.sin(f)+t*Math.cos(f)];v=Math.min(v,n),b=Math.max(b,n),y=Math.min(y,r),$=Math.max($,r)});let C=v+h/2,E=y+h/2,S=b-v,k=$-y,O=i*n,A=l*n,I=(S+O)*2,N=k+A,[j,M]=Tf(I,N),R=(e=0,t=0)=>{j.drawImage(g,C,E,S,k,e,t,S,k)};return R(),R(S+O,-k/2-A/2),R(S+O,k/2+A/2),[M.toDataURL(),I/n,N/n]},[]),X=(o=x.useRef([null,null]),(e,t)=>{let n=e.map(e=>e instanceof HTMLElement||Number.isNaN(e)?"":e);return e5(o.current[0],n)||(o.current=[n,t()]),o.current[1]}),[G,Y]=w().useState(null),U=(r=()=>{let e=document.createElement("canvas").getContext("2d");if(e){let t=window.devicePixelRatio||1,[n,r]=(e=>{let t=120,n=64;if(!p&&e.measureText){e.font=`${Number(I)}px ${M}`;let r=OX(m),o=r.map(t=>{let n=e.measureText(t);return[n.width,n.fontBoundingBoxAscent+n.fontBoundingBoxDescent]});t=Math.ceil(Math.max.apply(Math,(0,eM.A)(o.map(e=>e[0])))),n=Math.ceil(Math.max.apply(Math,(0,eM.A)(o.map(e=>e[1]))))*r.length+(r.length-1)*3}return[null!=d?d:t,null!=f?f:n]})(e),o=e=>{let o=[e||"",u,t,n,r,{color:A,fontSize:I,fontStyle:j,fontWeight:N,fontFamily:M,textAlign:R},P,T],[a,i]=X(o,()=>K.apply(void 0,o));Y([a,i])};if(p){let e=new Image;e.onload=()=>{o(e)},e.onerror=()=>{o(m)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=p}else o(m)}},a=w().useRef(!1),i=w().useRef(null),l=ng(r),()=>{a.current||(a.current=!0,l(),i.current=eB(()=>{a.current=!1}))}),[Q,Z,J]=(c=x.useRef(new Map),[(e,t,n)=>{if(n){var r;if(!c.current.get(n)){let e=document.createElement("div");c.current.set(n,e)}let o=c.current.get(n);o.setAttribute("style",Object.keys(r=Object.assign(Object.assign(Object.assign({},L),{backgroundImage:`url('${e}')`,backgroundSize:`${Math.floor(t)}px`}),Tp)).map(e=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${r[e]};`).join(" ")),o.removeAttribute("class"),o.removeAttribute("hidden"),o.parentElement!==n&&n.append(o)}return c.current.get(n)},e=>{let t=c.current.get(e);t&&e&&e.removeChild(t),c.current.delete(e)},e=>Array.from(c.current.values()).includes(e)]);(0,x.useEffect)(()=>{G&&q.forEach(e=>{Q(G[0],G[1],e)})},[G,q]),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Td;x.useEffect(function(){if(eG()&&e){var r,o=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(r=new MutationObserver(t),o.forEach(function(e){r.observe(e,n)})),function(){var e,t;null==(e=r)||e.takeRecords(),null==(t=r)||t.disconnect()}}},[n,e])}(q,ng(e=>{e.forEach(e=>{let t;if(t=!1,e.removedNodes.length&&(t=Array.from(e.removedNodes).some(e=>J(e))),"attributes"===e.type&&J(e.target)&&(t=!0),t)U();else if(e.target===F&&"style"===e.attributeName){let e=Object.keys(Tg);for(let t=0;t<e.length;t+=1){let n=e[t],r=k[n],o=F.style[n];r&&r!==o&&(F.style[n]=r)}}})})),(0,x.useEffect)(U,[u,s,d,f,p,m,A,I,N,j,M,R,P,T,D,H]);let ee=w().useMemo(()=>({add:e=>{V(t=>{let n=new Set(t);return n.add(e),Tm(t,n)})},remove:e=>{Z(e),V(t=>{let n=new Set(t);return n.delete(e),Tm(t,n)})}}),[]),et=S?w().createElement(ua.Provider,{value:ee},C):C;return w().createElement("div",{ref:W,className:E()(v,b),style:k},et)}},796(e,t,n){"use strict";var r=n(3498),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,l,c,s,u,d,f=!1;t||(t={}),i=t.debug||!1;try{if(c=r(),s=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),s.selectNodeContents(d),u.addRange(s),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(r){i&&console.error("unable to copy using execCommand: ",r),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(r){i&&console.error("unable to copy using clipboardData: ",r),i&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=n.replace(/#{\s*key\s*}/g,a),window.prompt(l,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}},6769(e){e.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(a)}}},8251(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,i={},l=function(e){return(e*=1)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[r,c("day")],Do:[a,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,c("week")],ww:[r,c("week")],M:[o,c("month")],MM:[r,c("month")],MMM:[a,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};return function(n,r,o){o.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(l=n.parseTwoDigitYear);var a=r.prototype,c=a.parse;a.parse=function(n){var r=n.date,a=n.utc,l=n.args;this.$u=a;var s=l[1];if("string"==typeof s){var u=!0===l[2],d=!0===l[3],p=l[2];d&&(p=l[2]),i=this.$locale(),!u&&p&&(i=o.Ls[p]),this.$d=function(n,r,o,a){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var l=(function(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=a.length,c=0;c<l;c+=1){var s=a[c],u=f[s],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,s=e.slice(r),u=i.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}})(r)(n),c=l.year,s=l.month,u=l.day,d=l.hours,p=l.minutes,m=l.seconds,g=l.milliseconds,h=l.zone,v=l.week,b=new Date,y=u||(c||s?1:b.getDate()),$=c||b.getFullYear(),x=0;c&&!s||(x=s>0?s-1:b.getMonth());var w,C=d||0,E=p||0,S=m||0,k=g||0;return h?new Date(Date.UTC($,x,y,C,E,S,k+60*h.offset*1e3)):o?new Date(Date.UTC($,x,y,C,E,S,k)):(w=new Date($,x,y,C,E,S,k),v&&(w=a(w).week(v).toDate()),w)}catch(e){return new Date("")}}(r,s,a,o),this.init(),p&&!0!==p&&(this.$L=this.locale(p).$L),(u||d)&&r!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var m=s.length,g=1;g<=m;g+=1){l[1]=s[g-1];var h=o.apply(this,l);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}g===m&&(this.$d=new Date(""))}else c.call(this,n)}}}()},5530(e){e.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var i=e.name?e:e.$locale(),l=o(i[t]),c=o(i[n]),s=l||c.map(function(e){return e.slice(0,r)});if(!a)return s;var u=i.weekStart;return s.map(function(e,t){return s[(t+(u||0))%7]})},i=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):a(e,"months")},monthsShort:function(t){return t?t.format("MMM"):a(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):a(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):a(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):a(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=i();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(i(),"months")},n.monthsShort=function(){return a(i(),"monthsShort","months",3)},n.weekdays=function(e){return a(i(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return a(i(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return a(i(),"weekdaysMin","weekdays",2,e)}}},4020(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var a=r.prototype;a.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=o(this).startOf(t).add(1,t).date(r),i=o(this).endOf(e);if(a.isBefore(i))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},7749(e){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}},8176(e){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}},5401(e,t,n){var r=n(6532),o=function(e){var t="",n=Object.keys(e);return n.forEach(function(o,a){var i,l=e[o];i=o=r(o),/[height|width]$/.test(i)&&"number"==typeof l&&(l+="px"),!0===l?t+=o:!1===l?t+="not "+o:t+="("+o+": "+l+")",a<n.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=o(n),r<e.length-1&&(t+=", ")}),t):o(e)}},4726(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case u:case m:case p:case l:return e;default:return t}}case r:return t}}}(e)===p}},3930(e,t,n){"use strict";e.exports=n(4726)},6532(e){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},3498(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},9400(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(e=r(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var a in e)t.call(e,a)&&e[a]&&(o=r(o,a));return o}(a)))}return e}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()}}]);
|
|
446
|
-
//# sourceMappingURL=46.js.map
|
|
445
|
+
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${c}`]:{opacity:1},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}})(i),(e=>{let{componentCls:t}=e,n=new no("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new no("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:ub(e)},n,r]})(i),(e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}})(i),lq(i)]},e=>({actionsColor:e.colorIcon,pictureCardSize:2.55*e.controlHeightLG})),P0={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var P1=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:P0}))});let P2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var P4=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:P2}))});let P3={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var P6=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:P3}))});function P5(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function P8(e,t){let n=(0,eM.A)(t),r=n.findIndex(({uid:t})=>t===e.uid);return -1===r?n.push(e):n[r]=e,n}function P7(e,t){let n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}let P9=e=>0===e.indexOf("image/"),Te=e=>{if(e.type&&!e.thumbUrl)return P9(e.type);let t=e.thumbUrl||e.url||"",n=((e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]})(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n};function Tt(e){return new Promise(t=>{if(!e.type||!P9(e.type))return void t("");let n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);let r=n.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:e,height:a}=o,i=200,l=200,c=0,s=0;e>a?s=-((l=200/e*a)-i)/2:c=-((i=200/a*e)-l)/2,r.drawImage(o,c,s,i,l);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}let Tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var Tr=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:Tn}))});let To=x.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:o,file:a,items:i,progress:l,iconRender:c,actionIconRender:s,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,previewIcon:g,removeIcon:h,downloadIcon:v,extra:b,onPreview:y,onDownload:$,onClose:w},C)=>{var S,k;let{status:O}=a,[A,I]=x.useState(O);x.useEffect(()=>{"removed"!==O&&I(O)},[O]);let[N,j]=x.useState(!1);x.useEffect(()=>{let e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);let M=c(a),R=x.createElement("div",{className:`${e}-icon`},M);if("picture"===o||"picture-card"===o||"picture-circle"===o)if("uploading"!==A&&(a.thumbUrl||a.url)){let t=(null==d?void 0:d(a))?x.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${e}-list-item-image`,crossOrigin:a.crossOrigin}):M,n=E()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(a)});R=x.createElement("a",{className:n,onClick:e=>y(a,e),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},t)}else{let t=E()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:"uploading"!==A});R=x.createElement("div",{className:t},M)}let P=E()(`${e}-list-item`,`${e}-list-item-${A}`),T="string"==typeof a.linkProps?JSON.parse(a.linkProps):a.linkProps,z=("function"==typeof p?p(a):p)?s(("function"==typeof h?h(a):h)||x.createElement(RP,null),()=>w(a),e,r.removeFile,!0):null,B=("function"==typeof m?m(a):m)&&"done"===A?s(("function"==typeof v?v(a):v)||x.createElement(Tr,null),()=>$(a),e,r.downloadFile):null,D="picture-card"!==o&&"picture-circle"!==o&&x.createElement("span",{key:"download-delete",className:E()(`${e}-list-item-actions`,{picture:"picture"===o})},B,z),H="function"==typeof b?b(a):b,L=H&&x.createElement("span",{className:`${e}-list-item-extra`},H),F=E()(`${e}-list-item-name`),W=a.url?x.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:F,title:a.name},T,{href:a.url,onClick:e=>y(a,e)}),a.name,L):x.createElement("span",{key:"view",className:F,onClick:e=>y(a,e),title:a.name},a.name,L),_=("function"==typeof f?f(a):f)&&(a.url||a.thumbUrl)?x.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>y(a,e),title:r.previewFile},"function"==typeof g?g(a):g||x.createElement(SJ,null)):null,V=("picture-card"===o||"picture-circle"===o)&&"uploading"!==A&&x.createElement("span",{className:`${e}-list-item-actions`},_,"done"===A&&B,z),{getPrefixCls:q}=x.useContext(eF),K=q(),X=x.createElement("div",{className:P},R,W,D,V,N&&x.createElement(oX,{motionName:`${K}-fade`,visible:"uploading"===A,motionDeadline:2e3},({className:t})=>{let n="percent"in a?x.createElement(Aq,Object.assign({type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"]},l)):null;return x.createElement("div",{className:E()(`${e}-list-item-progress`,t)},n)})),G=a.response&&"string"==typeof a.response?a.response:(null==(S=a.error)?void 0:S.statusText)||(null==(k=a.error)?void 0:k.message)||r.uploadError,Y="error"===A?x.createElement(ms,{title:G,getPopupContainer:e=>e.parentNode},X):X;return x.createElement("div",{className:E()(`${e}-list-item-container`,t),style:n,ref:C},u?u(Y,a,i,{download:$.bind(null,a),preview:y.bind(null,a),remove:w.bind(null,a)}):Y)}),Ta=x.forwardRef((e,t)=>{let{listType:n="text",previewFile:r=Tt,onPreview:o,onDownload:a,onRemove:i,locale:l,iconRender:c,isImageUrl:s=Te,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:h,downloadIcon:v,extra:b,progress:y={size:[-1,2],showInfo:!1},appendAction:$,appendActionVisible:w=!0,itemRender:C,disabled:S}=e,[,k]=pW(),[O,A]=x.useState(!1),I=["picture-card","picture-circle"].includes(n);x.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==r||r(e.originFileObj).then(t=>{e.thumbUrl=t||"",k()}))})},[n,d,r]),x.useEffect(()=>{A(!0)},[]);let N=(e,t)=>{if(o)return null==t||t.preventDefault(),o(e)},j=e=>{"function"==typeof a?a(e):e.url&&window.open(e.url)},M=e=>{null==i||i(e)},R=e=>{if(c)return c(e,n);let t="uploading"===e.status;if(n.startsWith("picture")){let r="picture"===n?x.createElement(aV,null):l.uploading,o=(null==s?void 0:s(e))?x.createElement(P6,null):x.createElement(P1,null);return t?r:o}return t?x.createElement(aV,null):x.createElement(P4,null)},P=(e,t,n,r,o)=>{let a={type:"text",size:"small",title:r,onClick:n=>{var r,o;t(),x.isValidElement(e)&&(null==(o=(r=e.props).onClick)||o.call(r,n))},className:`${n}-list-item-action`,disabled:!!o&&S};return x.isValidElement(e)?x.createElement(cu,Object.assign({},a,{icon:o7(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):x.createElement(cu,Object.assign({},a),x.createElement("span",null,e))};x.useImperativeHandle(t,()=>({handlePreview:N,handleDownload:j}));let{getPrefixCls:T}=x.useContext(eF),z=T("upload",u),B=T(),D=E()(`${z}-list`,`${z}-list-${n}`),H=x.useMemo(()=>iX(iq(B),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[B]),L=Object.assign(Object.assign({},I?{}:H),{motionDeadline:2e3,motionName:`${z}-${I?"animate-inline":"animate"}`,keys:(0,eM.A)(d.map(e=>({key:e.uid,file:e}))),motionAppear:O});return x.createElement("div",{className:D},x.createElement(o2,Object.assign({},L,{component:!1}),({key:e,file:t,className:r,style:o})=>x.createElement(To,{key:e,locale:l,prefixCls:z,className:r,style:o,file:t,items:d,progress:y,listType:n,isImgUrl:s,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:g,previewIcon:h,downloadIcon:v,extra:b,iconRender:R,actionIconRender:P,itemRender:C,onPreview:N,onDownload:j,onClose:M})),$&&x.createElement(oX,Object.assign({},L,{visible:w,forceRender:!0}),({className:e,style:t})=>o7($,n=>({className:E()(n.className,e),style:Object.assign(Object.assign(Object.assign({},t),{pointerEvents:e?"none":void 0}),n.style)}))))}),Ti=`__LIST_IGNORE_${Date.now()}__`,Tl=x.forwardRef((e,t)=>{let n=eV("upload"),{fileList:r,defaultFileList:o,onRemove:a,showUploadList:i=!0,listType:l="text",onPreview:c,onDownload:s,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:g,isImageUrl:h,progress:v,prefixCls:b,className:y,type:$="select",children:w,style:C,itemRender:S,maxCount:k,data:O={},multiple:A=!1,hasControlInside:I=!0,action:N="",accept:j="",supportServerRender:M=!0,rootClassName:R}=e,P=x.useContext(iu),T=null!=p?p:P,z=e.customRequest||n.customRequest,[B,D]=nb(o||[],{value:r,postState:e=>null!=e?e:[]}),[L,F]=x.useState("drop"),W=x.useRef(null),_=x.useRef(null);x.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let V=(e,t,n)=>{let r=(0,eM.A)(t),o=!1;1===k?r=r.slice(-1):k&&(o=r.length>k,r=r.slice(0,k)),(0,H.flushSync)(()=>{D(r)});let a={file:e,fileList:r};n&&(a.event=n),(!o||"removed"===e.status||r.some(t=>t.uid===e.uid))&&(0,H.flushSync)(()=>{null==u||u(a)})},q=e=>{let t=e.filter(e=>!e.file[Ti]);if(!t.length)return;let n=t.map(e=>P5(e.file)),r=(0,eM.A)(B);n.forEach(e=>{r=P8(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{let t,{originFileObj:n}=e;try{t=new File([n],n.name,{type:n.type})}catch(e){(t=new Blob([n],{type:n.type})).name=n.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,o=t}V(o,r)})},K=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!P7(t,B))return;let r=P5(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;let o=P8(r,B);V(r,o)},X=(e,t)=>{if(!P7(t,B))return;let n=P5(t);n.status="uploading",n.percent=e.percent;let r=P8(n,B);V(n,r,e)},G=(e,t,n)=>{if(!P7(n,B))return;let r=P5(n);r.error=e,r.response=t,r.status="error";let o=P8(r,B);V(r,o)},Y=e=>{let t;Promise.resolve("function"==typeof a?a(e):a).then(n=>{var r;let o,a;if(!1===n)return;let i=(o=void 0!==e.uid?"uid":"name",(a=B.filter(t=>t[o]!==e[o])).length===B.length?null:a);i&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==B||B.forEach(e=>{let n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null==(r=W.current)||r.abort(t),V(t,i))})},U=e=>{F(e.type),"drop"===e.type&&(null==d||d(e))};x.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:K,onProgress:X,onError:G,fileList:B,upload:W.current,nativeElement:_.current}));let{getPrefixCls:Q,direction:Z,upload:J}=x.useContext(eF),ee=Q("upload",b),et=Object.assign(Object.assign({onBatchStart:q,onError:G,onProgress:X,onSuccess:K},e),{customRequest:z,data:O,multiple:A,action:N,accept:j,supportServerRender:M,prefixCls:ee,disabled:T,beforeUpload:(t,n)=>{var r,o,a,i;return r=void 0,o=void 0,a=void 0,i=function*(){let{beforeUpload:r,transformFile:o}=e,a=t;if(r){let e=yield r(t,n);if(!1===e)return!1;if(delete t[Ti],e===Ti)return Object.defineProperty(t,Ti,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return o&&(a=yield o(a)),a},new(a||(a=Promise))(function(e,t){function n(e){try{c(i.next(e))}catch(e){t(e)}}function l(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,l)}c((i=i.apply(r,o||[])).next())})},onChange:void 0,hasControlInside:I});delete et.className,delete et.style,(!w||T)&&delete et.id;let en=`${ee}-wrapper`,[er,eo,ea]=PJ(ee,en),[ei]=iK("Upload",ir.Upload),{showRemoveIcon:el,showPreviewIcon:ec,showDownloadIcon:es,removeIcon:eu,previewIcon:ed,downloadIcon:ef,extra:ep}="boolean"==typeof i?{}:i,em=void 0===el?!T:el,eg=(e,t)=>i?x.createElement(Ta,{prefixCls:ee,listType:l,items:B,previewFile:f,onPreview:c,onDownload:s,onRemove:Y,showRemoveIcon:em,showPreviewIcon:ec,showDownloadIcon:es,removeIcon:eu,previewIcon:ed,downloadIcon:ef,iconRender:g,extra:ep,locale:Object.assign(Object.assign({},ei),m),isImageUrl:h,progress:v,appendAction:e,appendActionVisible:t,itemRender:S,disabled:T}):e,eh=E()(en,y,R,eo,ea,null==J?void 0:J.className,{[`${ee}-rtl`]:"rtl"===Z,[`${ee}-picture-card-wrapper`]:"picture-card"===l,[`${ee}-picture-circle-wrapper`]:"picture-circle"===l}),ev=Object.assign(Object.assign({},null==J?void 0:J.style),C);if("drag"===$){let e=E()(eo,ee,`${ee}-drag`,{[`${ee}-drag-uploading`]:B.some(e=>"uploading"===e.status),[`${ee}-drag-hover`]:"dragover"===L,[`${ee}-disabled`]:T,[`${ee}-rtl`]:"rtl"===Z});return er(x.createElement("span",{className:eh,ref:_},x.createElement("div",{className:e,style:ev,onDrop:U,onDragOver:U,onDragLeave:U},x.createElement(PZ,Object.assign({},et,{ref:W,className:`${ee}-btn`}),x.createElement("div",{className:`${ee}-drag-container`},w))),eg()))}let eb=E()(ee,`${ee}-select`,{[`${ee}-disabled`]:T,[`${ee}-hidden`]:!w}),ey=x.createElement("div",{className:eb,style:ev},x.createElement(PZ,Object.assign({},et,{ref:W})));return er("picture-card"===l||"picture-circle"===l?x.createElement("span",{className:eh,ref:_},eg(ey,!!w)):x.createElement("span",{className:eh,ref:_},ey,eg()))});var Tc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Ts=x.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:o=!1,children:a}=e,i=Tc(e,["style","height","hasControlInside","children"]),l=Object.assign(Object.assign({},n),{height:r});return x.createElement(Tl,Object.assign({ref:t,hasControlInside:o},i,{style:l,type:"drag"}),a)});Tl.Dragger=Ts,Tl.LIST_IGNORE=Ti;let Tu=Tl;w().Component;var Td={subtree:!0,childList:!0,attributeFilter:["style","class"]};let Tf=(e,t,n=1)=>{let r=document.createElement("canvas"),o=r.getContext("2d"),a=e*n,i=t*n;return r.setAttribute("width",`${a}px`),r.setAttribute("height",`${i}px`),o.save(),[o,r,a,i]},Tp={visibility:"visible !important"};function Tm(e,t){return e.size===t.size?e:t}let Tg={position:"relative",overflow:"hidden"},Th=e=>{var t,n,r;let o,a,i,l,c,{zIndex:s=9,rotate:u=-22,width:d,height:f,image:p,content:m,font:g={},style:h,className:v,rootClassName:b,gap:y=[100,100],offset:$,children:C,inherit:S=!0}=e,k=Object.assign(Object.assign({},Tg),h),[,O]=rV(),{color:A=O.colorFill,fontSize:I=O.fontSizeLG,fontWeight:N="normal",fontStyle:j="normal",fontFamily:M="sans-serif",textAlign:R="center"}=g,[P=100,T=100]=y,z=P/2,B=T/2,D=null!=(t=null==$?void 0:$[0])?t:z,H=null!=(n=null==$?void 0:$[1])?n:B,L=w().useMemo(()=>{let e={zIndex:s,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"},t=D-z,n=H-B;return t>0&&(e.left=`${t}px`,e.width=`calc(100% - ${t}px)`,t=0),n>0&&(e.top=`${n}px`,e.height=`calc(100% - ${n}px)`,n=0),e.backgroundPosition=`${t}px ${n}px`,e},[s,D,z,H,B]),[F,W]=w().useState(),[_,V]=w().useState(()=>new Set),q=w().useMemo(()=>[].concat(F?[F]:[],(0,eM.A)(Array.from(_))),[F,_]),K=w().useCallback((e,t,n,r,o,a,i,l)=>{let[c,s,u,d]=Tf(r,o,n);if(e instanceof HTMLImageElement)c.drawImage(e,0,0,u,d);else{let{color:t,fontSize:r,fontStyle:i,fontWeight:l,fontFamily:s,textAlign:d}=a,f=Number(r)*n;c.font=`${i} normal ${l} ${f}px/${o}px ${s}`,c.fillStyle=t,c.textAlign=d,c.textBaseline="top";let p=OX(e);null==p||p.forEach((e,t)=>{c.fillText(null!=e?e:"",u/2,t*(f+3*n))})}let f=Math.PI/180*Number(t),p=Math.max(r,o),[m,g,h]=Tf(p,p,n);m.translate(h/2,h/2),m.rotate(f),u>0&&d>0&&m.drawImage(s,-u/2,-d/2);let v=0,b=0,y=0,$=0,x=u/2,w=d/2;[[0-x,0-w],[0+x,0-w],[0+x,0+w],[0-x,0+w]].forEach(([e,t])=>{let[n,r]=[e*Math.cos(f)-t*Math.sin(f),e*Math.sin(f)+t*Math.cos(f)];v=Math.min(v,n),b=Math.max(b,n),y=Math.min(y,r),$=Math.max($,r)});let C=v+h/2,E=y+h/2,S=b-v,k=$-y,O=i*n,A=l*n,I=(S+O)*2,N=k+A,[j,M]=Tf(I,N),R=(e=0,t=0)=>{j.drawImage(g,C,E,S,k,e,t,S,k)};return R(),R(S+O,-k/2-A/2),R(S+O,k/2+A/2),[M.toDataURL(),I/n,N/n]},[]),X=(o=x.useRef([null,null]),(e,t)=>{let n=e.map(e=>e instanceof HTMLElement||Number.isNaN(e)?"":e);return e5(o.current[0],n)||(o.current=[n,t()]),o.current[1]}),[G,Y]=w().useState(null),U=(r=()=>{let e=document.createElement("canvas").getContext("2d");if(e){let t=window.devicePixelRatio||1,[n,r]=(e=>{let t=120,n=64;if(!p&&e.measureText){e.font=`${Number(I)}px ${M}`;let r=OX(m),o=r.map(t=>{let n=e.measureText(t);return[n.width,n.fontBoundingBoxAscent+n.fontBoundingBoxDescent]});t=Math.ceil(Math.max.apply(Math,(0,eM.A)(o.map(e=>e[0])))),n=Math.ceil(Math.max.apply(Math,(0,eM.A)(o.map(e=>e[1]))))*r.length+(r.length-1)*3}return[null!=d?d:t,null!=f?f:n]})(e),o=e=>{let o=[e||"",u,t,n,r,{color:A,fontSize:I,fontStyle:j,fontWeight:N,fontFamily:M,textAlign:R},P,T],[a,i]=X(o,()=>K.apply(void 0,o));Y([a,i])};if(p){let e=new Image;e.onload=()=>{o(e)},e.onerror=()=>{o(m)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=p}else o(m)}},a=w().useRef(!1),i=w().useRef(null),l=ng(r),()=>{a.current||(a.current=!0,l(),i.current=eB(()=>{a.current=!1}))}),[Q,Z,J]=(c=x.useRef(new Map),[(e,t,n)=>{if(n){var r;if(!c.current.get(n)){let e=document.createElement("div");c.current.set(n,e)}let o=c.current.get(n);o.setAttribute("style",Object.keys(r=Object.assign(Object.assign(Object.assign({},L),{backgroundImage:`url('${e}')`,backgroundSize:`${Math.floor(t)}px`}),Tp)).map(e=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${r[e]};`).join(" ")),o.removeAttribute("class"),o.removeAttribute("hidden"),o.parentElement!==n&&n.append(o)}return c.current.get(n)},e=>{let t=c.current.get(e);t&&e&&e.removeChild(t),c.current.delete(e)},e=>Array.from(c.current.values()).includes(e)]);(0,x.useEffect)(()=>{G&&q.forEach(e=>{Q(G[0],G[1],e)})},[G,q]),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Td;x.useEffect(function(){if(eG()&&e){var r,o=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(r=new MutationObserver(t),o.forEach(function(e){r.observe(e,n)})),function(){var e,t;null==(e=r)||e.takeRecords(),null==(t=r)||t.disconnect()}}},[n,e])}(q,ng(e=>{e.forEach(e=>{let t;if(t=!1,e.removedNodes.length&&(t=Array.from(e.removedNodes).some(e=>J(e))),"attributes"===e.type&&J(e.target)&&(t=!0),t)U();else if(e.target===F&&"style"===e.attributeName){let e=Object.keys(Tg);for(let t=0;t<e.length;t+=1){let n=e[t],r=k[n],o=F.style[n];r&&r!==o&&(F.style[n]=r)}}})})),(0,x.useEffect)(U,[u,s,d,f,p,m,A,I,N,j,M,R,P,T,D,H]);let ee=w().useMemo(()=>({add:e=>{V(t=>{let n=new Set(t);return n.add(e),Tm(t,n)})},remove:e=>{Z(e),V(t=>{let n=new Set(t);return n.delete(e),Tm(t,n)})}}),[]),et=S?w().createElement(ua.Provider,{value:ee},C):C;return w().createElement("div",{ref:W,className:E()(v,b),style:k},et)}},796(e,t,n){"use strict";var r=n(3498),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,l,c,s,u,d,f=!1;t||(t={}),i=t.debug||!1;try{if(c=r(),s=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),s.selectNodeContents(d),u.addRange(s),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(r){i&&console.error("unable to copy using execCommand: ",r),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(r){i&&console.error("unable to copy using clipboardData: ",r),i&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=n.replace(/#{\s*key\s*}/g,a),window.prompt(l,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}},6769(e){e.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(a)}}},8251(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,i={},l=function(e){return(e*=1)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[r,c("day")],Do:[a,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,c("week")],ww:[r,c("week")],M:[o,c("month")],MM:[r,c("month")],MMM:[a,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};return function(n,r,o){o.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(l=n.parseTwoDigitYear);var a=r.prototype,c=a.parse;a.parse=function(n){var r=n.date,a=n.utc,l=n.args;this.$u=a;var s=l[1];if("string"==typeof s){var u=!0===l[2],d=!0===l[3],p=l[2];d&&(p=l[2]),i=this.$locale(),!u&&p&&(i=o.Ls[p]),this.$d=function(n,r,o,a){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var l=(function(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=a.length,c=0;c<l;c+=1){var s=a[c],u=f[s],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,s=e.slice(r),u=i.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}})(r)(n),c=l.year,s=l.month,u=l.day,d=l.hours,p=l.minutes,m=l.seconds,g=l.milliseconds,h=l.zone,v=l.week,b=new Date,y=u||(c||s?1:b.getDate()),$=c||b.getFullYear(),x=0;c&&!s||(x=s>0?s-1:b.getMonth());var w,C=d||0,E=p||0,S=m||0,k=g||0;return h?new Date(Date.UTC($,x,y,C,E,S,k+60*h.offset*1e3)):o?new Date(Date.UTC($,x,y,C,E,S,k)):(w=new Date($,x,y,C,E,S,k),v&&(w=a(w).week(v).toDate()),w)}catch(e){return new Date("")}}(r,s,a,o),this.init(),p&&!0!==p&&(this.$L=this.locale(p).$L),(u||d)&&r!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var m=s.length,g=1;g<=m;g+=1){l[1]=s[g-1];var h=o.apply(this,l);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}g===m&&(this.$d=new Date(""))}else c.call(this,n)}}}()},5530(e){e.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var i=e.name?e:e.$locale(),l=o(i[t]),c=o(i[n]),s=l||c.map(function(e){return e.slice(0,r)});if(!a)return s;var u=i.weekStart;return s.map(function(e,t){return s[(t+(u||0))%7]})},i=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):a(e,"months")},monthsShort:function(t){return t?t.format("MMM"):a(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):a(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):a(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):a(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=i();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(i(),"months")},n.monthsShort=function(){return a(i(),"monthsShort","months",3)},n.weekdays=function(e){return a(i(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return a(i(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return a(i(),"weekdaysMin","weekdays",2,e)}}},4020(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var a=r.prototype;a.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=o(this).startOf(t).add(1,t).date(r),i=o(this).endOf(e);if(a.isBefore(i))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},7749(e){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}},8176(e){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}},5401(e,t,n){var r=n(6532),o=function(e){var t="",n=Object.keys(e);return n.forEach(function(o,a){var i,l=e[o];i=o=r(o),/[height|width]$/.test(i)&&"number"==typeof l&&(l+="px"),!0===l?t+=o:!1===l?t+="not "+o:t+="("+o+": "+l+")",a<n.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=o(n),r<e.length-1&&(t+=", ")}),t):o(e)}},4726(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case u:case m:case p:case l:return e;default:return t}}case r:return t}}}(e)===p}},3930(e,t,n){"use strict";e.exports=n(4726)},6532(e){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},3498(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},9400(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(e=r(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var a in e)t.call(e,a)&&e[a]&&(o=r(o,a));return o}(a)))}return e}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()}}]);
|
package/dist/widgets/50.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[50],{6026(e,s){var t=Symbol.for("react.transitional.element");function r(e,s,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==s.key&&(o=""+s.key),"key"in s)for(var i in r={},s)"key"!==i&&(r[i]=s[i]);else r=s;return{$$typeof:t,type:e,key:o,ref:void 0!==(s=r.ref)?s:null,props:r}}s.Fragment=Symbol.for("react.fragment"),s.jsx=r,s.jsxs=r},4552(e,s,t){e.exports=t(6026)},4332(e,s,t){t.r(s);var r=t(92),o=t(4552),i=class{subscriptions=new Map;history=[];devToolsObserver;subscribe(e,s,t,r){let o={event:e,handler:s,pluginId:t,pageId:r};return this.subscriptions.has(e)||this.subscriptions.set(e,new Set),this.subscriptions.get(e).add(o),()=>{this.subscriptions.get(e)?.delete(o)}}publish(e,s,t,r){let o={sourcePluginId:t,sourcePageId:r,timestamp:Date.now()},i={event:e,payload:s,meta:o};this.history.push(i),this.history.length>100&&this.history.shift(),this.devToolsObserver?.(i);let n=this.subscriptions.get(e);if(n)for(let t of n)try{t.handler(s,o)}catch(s){console.error(`[StudioEventBus] Handler error for "${e}" in ${t.pluginId}:${t.pageId}:`,s)}}unsubscribeAll(e,s){for(let[,t]of this.subscriptions)for(let r of t)r.pluginId===e&&r.pageId===s&&t.delete(r)}getHistory(){return this.history}setDevToolsObserver(e){this.devToolsObserver=e}clearDevToolsObserver(){this.devToolsObserver=void 0}reset(){this.subscriptions.clear(),this.history=[]}},n=new i,l=(0,r.createContext)(n);function u({children:e,bus:s}){return(0,o.jsx)(l.Provider,{value:s??n,children:e})}function h(){return(0,r.useContext)(l)}t.d(s,{EventBusProvider:()=>u,StudioEventBus:()=>i,eventBus:()=>n,useEventBusContext:()=>h})}}]);
|
|
2
|
-
//# sourceMappingURL=50.js.map
|
|
1
|
+
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[50],{6026(e,s){var t=Symbol.for("react.transitional.element");function r(e,s,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==s.key&&(o=""+s.key),"key"in s)for(var i in r={},s)"key"!==i&&(r[i]=s[i]);else r=s;return{$$typeof:t,type:e,key:o,ref:void 0!==(s=r.ref)?s:null,props:r}}s.Fragment=Symbol.for("react.fragment"),s.jsx=r,s.jsxs=r},4552(e,s,t){e.exports=t(6026)},4332(e,s,t){t.r(s);var r=t(92),o=t(4552),i=class{subscriptions=new Map;history=[];devToolsObserver;subscribe(e,s,t,r){let o={event:e,handler:s,pluginId:t,pageId:r};return this.subscriptions.has(e)||this.subscriptions.set(e,new Set),this.subscriptions.get(e).add(o),()=>{this.subscriptions.get(e)?.delete(o)}}publish(e,s,t,r){let o={sourcePluginId:t,sourcePageId:r,timestamp:Date.now()},i={event:e,payload:s,meta:o};this.history.push(i),this.history.length>100&&this.history.shift(),this.devToolsObserver?.(i);let n=this.subscriptions.get(e);if(n)for(let t of n)try{t.handler(s,o)}catch(s){console.error(`[StudioEventBus] Handler error for "${e}" in ${t.pluginId}:${t.pageId}:`,s)}}unsubscribeAll(e,s){for(let[,t]of this.subscriptions)for(let r of t)r.pluginId===e&&r.pageId===s&&t.delete(r)}getHistory(){return this.history}setDevToolsObserver(e){this.devToolsObserver=e}clearDevToolsObserver(){this.devToolsObserver=void 0}reset(){this.subscriptions.clear(),this.history=[]}},n=new i,l=(0,r.createContext)(n);function u({children:e,bus:s}){return(0,o.jsx)(l.Provider,{value:s??n,children:e})}function h(){return(0,r.useContext)(l)}t.d(s,{EventBusProvider:()=>u,StudioEventBus:()=>i,eventBus:()=>n,useEventBusContext:()=>h})}}]);
|
package/dist/widgets/546.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[546],{3978(e,t,r){var i=r(92);function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal"),c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:f,key:null==i?null:""+i,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.flushSync=function(e){var t=c.T,r=s.p;try{if(c.T=null,s.p=2,e)return e()}finally{c.T=t,s.p=r,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin),n="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:n,fetchPriority:o}):"script"===r&&s.d.X(e,{crossOrigin:i,integrity:n,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=y(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin);s.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=y(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,r){return c.H.useFormState(e,t,r)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version="19.2.5"},1297(e,t,r){!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(3978)}}]);
|
|
2
|
-
//# sourceMappingURL=546.js.map
|
|
1
|
+
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[546],{3978(e,t,r){var i=r(92);function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal"),c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:f,key:null==i?null:""+i,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.flushSync=function(e){var t=c.T,r=s.p;try{if(c.T=null,s.p=2,e)return e()}finally{c.T=t,s.p=r,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin),n="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:n,fetchPriority:o}):"script"===r&&s.d.X(e,{crossOrigin:i,integrity:n,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=y(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin);s.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=y(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,r){return c.H.useFormState(e,t,r)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version="19.2.5"},1297(e,t,r){!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(3978)}}]);
|
package/dist/widgets/62.js
CHANGED
|
@@ -93,5 +93,4 @@ ${this.parser.parse(t)}</blockquote>
|
|
|
93
93
|
${t}</tr>
|
|
94
94
|
`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
|
|
95
95
|
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ta(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),i=to(t);if(null===i)return r;let A='<a href="'+(t=i)+'"';return e&&(A+=' title="'+ta(e)+'"'),A+=">"+r+"</a>"}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=to(t);if(null===i)return ta(n);t=i;let A=`<img src="${t}" alt="${ta(n)}"`;return e&&(A+=` title="${ta(e)}"`),A+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ta(t.text)}},td=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},tp=class t{options;renderer;textRenderer;constructor(t){this.options=t||i,this.options.renderer=this.options.renderer||new th,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new td}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(t){this.renderer.parser=this;let e="";for(let n=0;n<t.length;n++){let r=t[n];if(this.options.extensions?.renderers?.[r.type]){let t=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(r.type)){e+=t||"";continue}}switch(r.type){case"space":e+=this.renderer.space(r);break;case"hr":e+=this.renderer.hr(r);break;case"heading":e+=this.renderer.heading(r);break;case"code":e+=this.renderer.code(r);break;case"table":e+=this.renderer.table(r);break;case"blockquote":e+=this.renderer.blockquote(r);break;case"list":e+=this.renderer.list(r);break;case"checkbox":e+=this.renderer.checkbox(r);break;case"html":e+=this.renderer.html(r);break;case"def":e+=this.renderer.def(r);break;case"paragraph":e+=this.renderer.paragraph(r);break;case"text":e+=this.renderer.text(r);break;default:{let t='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return e}parseInline(t,e=this.renderer){this.renderer.parser=this;let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let t=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=t||"";continue}}switch(i.type){case"escape":case"text":n+=e.text(i);break;case"html":n+=e.html(i);break;case"link":n+=e.link(i);break;case"image":n+=e.image(i);break;case"checkbox":n+=e.checkbox(i);break;case"strong":n+=e.strong(i);break;case"em":n+=e.em(i);break;case"codespan":n+=e.codespan(i);break;case"br":n+=e.br(i);break;case"del":n+=e.del(i);break;default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return n}},tg=class{options;block;constructor(t){this.options=t||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?tf.lex:tf.lexInline}provideParser(t=this.block){return t?tp.parse:tp.parseInline}},ty=new class{defaults=r();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tp;Renderer=th;TextRenderer=td;Lexer=tf;Tokenizer=tc;Hooks=tg;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":for(let t of r.header)n=n.concat(this.walkTokens(t.tokens,e));for(let t of r.rows)for(let r of t)n=n.concat(this.walkTokens(r.tokens,e));break;case"list":n=n.concat(this.walkTokens(r.items,e));break;default:{let t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(r=>{let i=t[r].flat(1/0);n=n.concat(this.walkTokens(i,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let n=e.renderers[t.name];n?e.renderers[t.name]=function(...e){let r=t.renderer.apply(this,e);return!1===r&&(r=n.apply(this,e)),r}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),n.extensions=e),t.renderer){let e=this.defaults.renderer||new th(this.defaults);for(let n in t.renderer){if(!(n in e))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=t.renderer[n],i=e[n];e[n]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=i.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new tc(this.defaults);for(let n in t.tokenizer){if(!(n in e))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=t.tokenizer[n],i=e[n];e[n]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=i.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new tg;for(let n in t.hooks){if(!(n in e))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=t.hooks[n],i=e[n];tg.passThroughHooks.has(n)?e[n]=t=>{if(this.defaults.async&&tg.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(e,t);return i.call(e,n)})();let A=r.call(e,t);return i.call(e,A)}:e[n]=(...t)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(e,t);return!1===n&&(n=await i.apply(e,t)),n})();let n=r.apply(e,t);return!1===n&&(n=i.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return tf.lex(t,e??this.defaults)}parser(t,e){return tp.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},i={...this.defaults,...r},A=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return A(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return A(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return A(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(e):e,r=await (i.hooks?await i.hooks.provideLexer(t):t?tf.lex:tf.lexInline)(n,i),A=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(A,i.walkTokens));let a=await (i.hooks?await i.hooks.provideParser(t):t?tp.parse:tp.parseInline)(A,i);return i.hooks?await i.hooks.postprocess(a):a})().catch(A);try{i.hooks&&(e=i.hooks.preprocess(e));let n=(i.hooks?i.hooks.provideLexer(t):t?tf.lex:tf.lexInline)(e,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(t):t?tp.parse:tp.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(t){return A(t)}}}onError(t,e){return n=>{if(n.message+=`
|
|
96
|
-
Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+ta(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}};function tv(t,e){return ty.parse(t,e)}tv.options=tv.setOptions=function(t){return ty.setOptions(t),tv.defaults=ty.defaults,i=tv.defaults,tv},tv.getDefaults=r,tv.defaults=i,tv.use=function(...t){return ty.use(...t),tv.defaults=ty.defaults,i=tv.defaults,tv},tv.walkTokens=function(t,e){return ty.walkTokens(t,e)},tv.parseInline=ty.parseInline,tv.Parser=tp,tv.parser=tp.parse,tv.Renderer=th,tv.TextRenderer=td,tv.Lexer=tf,tv.lexer=tf.lex,tv.Tokenizer=tc,tv.Hooks=tg,tv.parse=tv,tv.options,tv.setOptions,tv.use,tv.walkTokens,tv.parseInline,tp.parse,tf.lex,n.d(e,{xI:()=>tv})}}]);
|
|
97
|
-
//# sourceMappingURL=62.js.map
|
|
96
|
+
Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+ta(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}};function tv(t,e){return ty.parse(t,e)}tv.options=tv.setOptions=function(t){return ty.setOptions(t),tv.defaults=ty.defaults,i=tv.defaults,tv},tv.getDefaults=r,tv.defaults=i,tv.use=function(...t){return ty.use(...t),tv.defaults=ty.defaults,i=tv.defaults,tv},tv.walkTokens=function(t,e){return ty.walkTokens(t,e)},tv.parseInline=ty.parseInline,tv.Parser=tp,tv.parser=tp.parse,tv.Renderer=th,tv.TextRenderer=td,tv.Lexer=tf,tv.lexer=tf.lex,tv.Tokenizer=tc,tv.Hooks=tg,tv.parse=tv,tv.options,tv.setOptions,tv.use,tv.walkTokens,tv.parseInline,tp.parse,tf.lex,n.d(e,{xI:()=>tv})}}]);
|