chainlesschain 0.162.37 → 0.162.38
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/package.json +3 -2
- package/src/assets/web-panel/assets/{AIOps-_oxz4VHy.js → AIOps-DV0Q9zKL.js} +1 -1
- package/src/assets/web-panel/assets/{ActionButton-uaeqFuDj.js → ActionButton-C6vH8rhL.js} +1 -1
- package/src/assets/web-panel/assets/{Analytics-BPVV0OUf.js → Analytics-BvPDc2ui.js} +3 -3
- package/src/assets/web-panel/assets/{AppLayout-ppCYKm3I.js → AppLayout-CWnyqTqY.js} +5 -5
- package/src/assets/web-panel/assets/{Audit-DFAY6umk.js → Audit-BzenidV4.js} +1 -1
- package/src/assets/web-panel/assets/{Backup-pAPBFDyP.js → Backup-CSl7bNwK.js} +1 -1
- package/src/assets/web-panel/assets/{BaseInput-BbBl0uT2.js → BaseInput-DAY3iHIq.js} +1 -1
- package/src/assets/web-panel/assets/{Chat-Ct22JUnT.js → Chat-Jyhm9fgk.js} +6 -6
- package/src/assets/web-panel/assets/{ChatBubbleRenderer-DPlsLl22.js → ChatBubbleRenderer-CwlAnVjy.js} +1 -1
- package/src/assets/web-panel/assets/{Checkbox-DEkCollc.js → Checkbox-D4rwURAi.js} +1 -1
- package/src/assets/web-panel/assets/{Codegen-Tor-de39.js → Codegen-DYdjTEfC.js} +1 -1
- package/src/assets/web-panel/assets/{Col-ojNrLQU7.js → Col-DsVyZ_fS.js} +1 -1
- package/src/assets/web-panel/assets/{Community-CLOGhqMF.js → Community-CjCpl27Q.js} +1 -1
- package/src/assets/web-panel/assets/{Compact-CYKNlSZ4.js → Compact-kt18dsjm.js} +1 -1
- package/src/assets/web-panel/assets/{Compliance-C5E6ABuA.js → Compliance-BV5urquU.js} +1 -1
- package/src/assets/web-panel/assets/{Cowork-CHeEsZ3W.js → Cowork-C4SovPWC.js} +2 -2
- package/src/assets/web-panel/assets/{Cron-B4e1n2e7.js → Cron-uuNs_xzA.js} +2 -2
- package/src/assets/web-panel/assets/{Crosschain-DbNV8P9R.js → Crosschain-DR5a65tR.js} +1 -1
- package/src/assets/web-panel/assets/{DID-C5_Tk3nC.js → DID-B1KTf2-5.js} +2 -2
- package/src/assets/web-panel/assets/{Dashboard-BhdV_c4N.js → Dashboard-Dkj7XgED.js} +2 -2
- package/src/assets/web-panel/assets/{Dropdown-CEi5AMtM.js → Dropdown-BhXCuJ19.js} +1 -1
- package/src/assets/web-panel/assets/{EmailListRenderer-DOhPiYng.js → EmailListRenderer-DG8365Iv.js} +1 -1
- package/src/assets/web-panel/assets/{FamilyGuardDashboard-fu4NRP3X.js → FamilyGuardDashboard-BdHGPu39.js} +1 -1
- package/src/assets/web-panel/assets/{Federation-B7BtIWKL.js → Federation-Dwvxl0zR.js} +1 -1
- package/src/assets/web-panel/assets/{FormItemContext-BmPWZVLP.js → FormItemContext-BVmhCVWU.js} +1 -1
- package/src/assets/web-panel/assets/{GenericCardRenderer-hsOPNJq8.js → GenericCardRenderer-DDPjvF2s.js} +1 -1
- package/src/assets/web-panel/assets/{Git-Bi_EFBUH.js → Git-foK6WTSr.js} +2 -2
- package/src/assets/web-panel/assets/{Governance-emf2ubDK.js → Governance-CfqMdu6Y.js} +1 -1
- package/src/assets/web-panel/assets/{Inference-B7KjKzkI.js → Inference-BKrLO4GO.js} +1 -1
- package/src/assets/web-panel/assets/{KnowledgeGraph-uAaBK0F3.js → KnowledgeGraph-6o6Q-mmF.js} +1 -1
- package/src/assets/web-panel/assets/{Logs-utK7hNpj.js → Logs-L5ZIW0Dz.js} +2 -2
- package/src/assets/web-panel/assets/{Marketplace-CzQe6n3z.js → Marketplace-BWkfEocP.js} +1 -1
- package/src/assets/web-panel/assets/{McpTools-CuAaJr51.js → McpTools-BPebQbWU.js} +5 -5
- package/src/assets/web-panel/assets/{Memory-CRuZZJ75.js → Memory-C0Dq-X3C.js} +2 -2
- package/src/assets/web-panel/assets/{MobileBridge-Cp06wunh.js → MobileBridge-DRBoutTY.js} +2 -2
- package/src/assets/web-panel/assets/{MobileProjects-DJEdUwhr.js → MobileProjects-BMP6eLp1.js} +1 -1
- package/src/assets/web-panel/assets/{Mtc-8YY4dR7g.js → Mtc-Cj3QPM9p.js} +2 -2
- package/src/assets/web-panel/assets/{MtcAudit-BmPJYHar.js → MtcAudit-rBQYbfQR.js} +2 -2
- package/src/assets/web-panel/assets/{Multisig-d-ydyVdq.js → Multisig-Dbuy4OY4.js} +3 -3
- package/src/assets/web-panel/assets/{NLProgramming-DA_ikw_n.js → NLProgramming-CMnt1se-.js} +1 -1
- package/src/assets/web-panel/assets/{Notes-DIyF-fRe.js → Notes-BX9tSCiF.js} +4 -4
- package/src/assets/web-panel/assets/{NotificationSettings-CzPZXEtK.js → NotificationSettings-BFeirVRq.js} +1 -1
- package/src/assets/web-panel/assets/OrderTableRenderer-ybiMlKQW.js +1 -0
- package/src/assets/web-panel/assets/{Organization-DdDZ_Ap6.js → Organization-kTfRxKqk.js} +4 -4
- package/src/assets/web-panel/assets/{Overflow-BnMBkttv.js → Overflow-CtuCAzwV.js} +1 -1
- package/src/assets/web-panel/assets/{P2P-Es1050f-.js → P2P-KfbciaP3.js} +2 -2
- package/src/assets/web-panel/assets/{PdhVaultBrowser-CKkRmyn9.js → PdhVaultBrowser-bqEUFhgC.js} +5 -5
- package/src/assets/web-panel/assets/{Permissions-zU9n9cAD.js → Permissions-BgMypz-z.js} +4 -4
- package/src/assets/web-panel/assets/{PersonalDataHub-BZi5Xwas.js → PersonalDataHub-C3zUE-1z.js} +2 -2
- package/src/assets/web-panel/assets/{Pipeline-CRfeGiFc.js → Pipeline-iX-pYHpC.js} +1 -1
- package/src/assets/web-panel/assets/{Privacy-CQA_IgLA.js → Privacy-B01uzeFM.js} +1 -1
- package/src/assets/web-panel/assets/{ProjectInit-C9hmEvoT.js → ProjectInit-TsfbzJp7.js} +2 -2
- package/src/assets/web-panel/assets/{ProjectSettings-yXA72ws4.js → ProjectSettings-iGvMp8sM.js} +2 -2
- package/src/assets/web-panel/assets/{Projects-BpWS-qam.js → Projects-Be9k29iQ.js} +1 -1
- package/src/assets/web-panel/assets/{Providers-Cxe55dRD.js → Providers-C9Pc8dqo.js} +1 -1
- package/src/assets/web-panel/assets/{QuickAsk-Do0aUTQr.js → QuickAsk-DN_yFiVO.js} +1 -1
- package/src/assets/web-panel/assets/{Recommend--ysZHjyA.js → Recommend-CvSNgl7H.js} +1 -1
- package/src/assets/web-panel/assets/{Reputation-BOBU8JrH.js → Reputation-S6BCz8xH.js} +1 -1
- package/src/assets/web-panel/assets/{Row-C6X7bRKE.js → Row-CTRYCaqP.js} +1 -1
- package/src/assets/web-panel/assets/{RssFeed-D8AwqlkQ.js → RssFeed-Cu8_P5ll.js} +3 -3
- package/src/assets/web-panel/assets/{Search-Bi3rCZD4.js → Search-rZ1Xza_U.js} +1 -1
- package/src/assets/web-panel/assets/{Security-DxUDVrtY.js → Security-CF43IJHX.js} +4 -4
- package/src/assets/web-panel/assets/{Services-BXXN7yC1.js → Services-BobNHzne.js} +2 -2
- package/src/assets/web-panel/assets/{Skeleton-B3BR34tZ.js → Skeleton-DWJ2kfuI.js} +1 -1
- package/src/assets/web-panel/assets/{Skills-BjYu8OQ1.js → Skills-AmEZgHYr.js} +1 -1
- package/src/assets/web-panel/assets/{Sla-DDkCtD8w.js → Sla-DTS-fBiY.js} +1 -1
- package/src/assets/web-panel/assets/{SpeechSettings-CGhYzP7V.js → SpeechSettings-DEr6MHRU.js} +1 -1
- package/src/assets/web-panel/assets/{SyncSettings-CYNKVAHA.js → SyncSettings-CVs9alv_.js} +2 -2
- package/src/assets/web-panel/assets/{Tasks-DavmlJpd.js → Tasks-BcVDAxdi.js} +1 -1
- package/src/assets/web-panel/assets/{Templates-CQuYFf2C.js → Templates-CTNjZRKA.js} +1 -1
- package/src/assets/web-panel/assets/{Tenant-DdzZh8vE.js → Tenant-DPbXg0Pg.js} +1 -1
- package/src/assets/web-panel/assets/Terminal-DhKXcPw2.js +3 -0
- package/src/assets/web-panel/assets/{TimelineRenderer-DKOARnc_.js → TimelineRenderer-B0DMZOpk.js} +1 -1
- package/src/assets/web-panel/assets/{Tokens-D7QRNG8y.js → Tokens-RvWuBXgg.js} +1 -1
- package/src/assets/web-panel/assets/{Trigger-BCsqLZl4.js → Trigger-2O-BaTQG.js} +1 -1
- package/src/assets/web-panel/assets/{Trust-BarGUa6p.js → Trust-6qY35L-C.js} +1 -1
- package/src/assets/web-panel/assets/{UkeySign-pHrg5a8E.js → UkeySign-DhV1wYtQ.js} +1 -1
- package/src/assets/web-panel/assets/{VideoEditing-Dug3m1py.js → VideoEditing-DgqA5UZm.js} +1 -1
- package/src/assets/web-panel/assets/{Wallet-BfK3Z_Ez.js → Wallet-DJRYdUAK.js} +4 -4
- package/src/assets/web-panel/assets/{WebAuthn-CYRdl9td.js → WebAuthn-C2W-x0cg.js} +5 -5
- package/src/assets/web-panel/assets/{WorkflowEditor-DTW5AcqM.js → WorkflowEditor-BP2tkDHe.js} +1 -1
- package/src/assets/web-panel/assets/{chat-CCXz4j38.js → chat-CGVfeoTn.js} +1 -1
- package/src/assets/web-panel/assets/{colors-BJBOhAqa.js → colors-BmjRolM1.js} +1 -1
- package/src/assets/web-panel/assets/{compact-item-E9M6BQcM.js → compact-item-BvJJkjZE.js} +1 -1
- package/src/assets/web-panel/assets/{createContext-Cg9CAws4.js → createContext-DyhlvRYs.js} +1 -1
- package/src/assets/web-panel/assets/devWarning-CetO0WH0.js +1 -0
- package/src/assets/web-panel/assets/{hasIn-DhVtqv5L.js → hasIn-BoBMR89s.js} +1 -1
- package/src/assets/web-panel/assets/{index--7o5YdL6.js → index-39VDXdn6.js} +1 -1
- package/src/assets/web-panel/assets/{index-CSiyjCYi.js → index-81tWFqfN.js} +1 -1
- package/src/assets/web-panel/assets/{index-CJ8nNT8h.js → index-BT1SQ9nj.js} +1 -1
- package/src/assets/web-panel/assets/index-BZVz-WfV.js +1 -0
- package/src/assets/web-panel/assets/{index-ComyTKz-.js → index-Beh7jDbS.js} +1 -1
- package/src/assets/web-panel/assets/{index-Dwvewrul.js → index-Bm_MmdwP.js} +1 -1
- package/src/assets/web-panel/assets/{index-D5yC2Ps8.js → index-BqGNmoKy.js} +1 -1
- package/src/assets/web-panel/assets/{index-_PNqQ5mE.js → index-BuQrONgf.js} +1 -1
- package/src/assets/web-panel/assets/{index-B8bjEHrQ.js → index-BvvNnWXe.js} +1 -1
- package/src/assets/web-panel/assets/{index-CVR_s-pT.js → index-ByWpNjTj.js} +1 -1
- package/src/assets/web-panel/assets/{index-CFp-wdrQ.js → index-BycpeGfj.js} +1 -1
- package/src/assets/web-panel/assets/{index-wkt-o5q5.js → index-C0xn6hOr.js} +1 -1
- package/src/assets/web-panel/assets/{index-B111fZ21.js → index-C1t-r7yV.js} +1 -1
- package/src/assets/web-panel/assets/{index-B_SMPD4L.js → index-CDPMHKQi.js} +1 -1
- package/src/assets/web-panel/assets/{index-BAB0nGP7.js → index-CIaGw7vl.js} +1 -1
- package/src/assets/web-panel/assets/{index-CFarAlXj.js → index-CQJVedQ3.js} +1 -1
- package/src/assets/web-panel/assets/{index-DSQazU6J.js → index-CSgbOGaP.js} +1 -1
- package/src/assets/web-panel/assets/{index-MdXEhfdJ.js → index-Cbh-lCxq.js} +1 -1
- package/src/assets/web-panel/assets/{index-DaFe1aqY.js → index-CzDVBBcg.js} +1 -1
- package/src/assets/web-panel/assets/{index-ByazO4Q9.js → index-Czsbrn75.js} +1 -1
- package/src/assets/web-panel/assets/{index-Cm1m7BJh.js → index-D-93XwJd.js} +1 -1
- package/src/assets/web-panel/assets/index-D0-bvFy3.js +1 -0
- package/src/assets/web-panel/assets/{index-BxSzyly9.js → index-D0YToIi_.js} +1 -1
- package/src/assets/web-panel/assets/{index-CeRlLp3F.js → index-DIPZ6hbJ.js} +1 -1
- package/src/assets/web-panel/assets/{index-CkTeBHI9.js → index-DeeLHcMY.js} +1 -1
- package/src/assets/web-panel/assets/{index-kz1oXl1a.js → index-DgbWSwr5.js} +1 -1
- package/src/assets/web-panel/assets/{index-Ca8BYV1g.js → index-DtKdCXHW.js} +1 -1
- package/src/assets/web-panel/assets/{index-ChsSljaN.js → index-DwTgvhOL.js} +1 -1
- package/src/assets/web-panel/assets/{index-DdhnGez0.js → index-DyS4I4L-.js} +1 -1
- package/src/assets/web-panel/assets/{index-CUp_c8Le.js → index-FKFT-QTk.js} +1 -1
- package/src/assets/web-panel/assets/{index-C-2dUIli.js → index-Te0ruvY_.js} +1 -1
- package/src/assets/web-panel/assets/{index-DDcJO27F.js → index-VXVukhBA.js} +1 -1
- package/src/assets/web-panel/assets/{index-CznfPnOx.js → index-Y1b8i0NV.js} +3 -3
- package/src/assets/web-panel/assets/{index-BFZPRd0T.js → index-ZNIms1nA.js} +1 -1
- package/src/assets/web-panel/assets/{index-B4NBF4Sa.js → index-n-N19np-.js} +1 -1
- package/src/assets/web-panel/assets/{index-4N5lNXGP.js → index-vF1pR00A.js} +1 -1
- package/src/assets/web-panel/assets/{index-6-04M2Nx.js → index-wLAjVpmJ.js} +1 -1
- package/src/assets/web-panel/assets/{index-D7DXdf7x.js → index-xPSzUoWT.js} +1 -1
- package/src/assets/web-panel/assets/{index-Di5LBXcE.js → index-xZdOioVg.js} +1 -1
- package/src/assets/web-panel/assets/{initDefaultProps-iyBaePF-.js → initDefaultProps-BLKSE8he.js} +1 -1
- package/src/assets/web-panel/assets/{motion-RWtj4rgu.js → motion-Bb59qqLK.js} +1 -1
- package/src/assets/web-panel/assets/{move-CqPRVzpH.js → move-CB3pYCk6.js} +1 -1
- package/src/assets/web-panel/assets/{omit-DsvJze25.js → omit-iImQWuU7.js} +1 -1
- package/src/assets/web-panel/assets/{pickAttrs-B4tfZBhc.js → pickAttrs-DRP2Chqo.js} +1 -1
- package/src/assets/web-panel/assets/{placementArrow-KvHUwXMA.js → placementArrow-BrlfD4tF.js} +1 -1
- package/src/assets/web-panel/assets/{responsiveObserve-DGdJ-b7W.js → responsiveObserve-Cqxkuh5H.js} +1 -1
- package/src/assets/web-panel/assets/{slide-Cd6ebRmw.js → slide-nxKEuLMj.js} +1 -1
- package/src/assets/web-panel/assets/{statusUtils-Bg9GcIAn.js → statusUtils-30E47KSk.js} +1 -1
- package/src/assets/web-panel/assets/{styleChecker-MQjKsG84.js → styleChecker-Dn2_-5bn.js} +1 -1
- package/src/assets/web-panel/assets/{useFlexGapSupport-C241WujP.js → useFlexGapSupport-DkZ00X6F.js} +1 -1
- package/src/assets/web-panel/assets/{useFs-CMpy7RS4.js → useFs-ByrwSCOr.js} +1 -1
- package/src/assets/web-panel/assets/{usePersonalDataHub-BLHtapKb.js → usePersonalDataHub-BDY6jtUD.js} +1 -1
- package/src/assets/web-panel/assets/{vnode-DmcTV67c.js → vnode-BL2q5BLv.js} +1 -1
- package/src/assets/web-panel/assets/{zoom-DHL8_0Y8.js → zoom-BSkPKE42.js} +1 -1
- package/src/assets/web-panel/index.html +1 -1
- package/src/commands/agent.js +31 -0
- package/src/commands/mcp.js +236 -6
- package/src/harness/mcp-client.js +70 -1
- package/src/lib/settings-hooks.cjs +1 -0
- package/src/repl/agent-repl.js +52 -20
- package/src/repl/mcp-prompt.js +122 -0
- package/src/runtime/agent-core.js +123 -17
- package/src/runtime/headless-runner.js +34 -9
- package/src/runtime/mcp-config.js +118 -9
- package/src/assets/web-panel/assets/OrderTableRenderer-BiLtg-LY.js +0 -1
- package/src/assets/web-panel/assets/Terminal-D75WeG9d.js +0 -3
- package/src/assets/web-panel/assets/devWarning-BrsbTJUv.js +0 -1
- package/src/assets/web-panel/assets/index-DSTQDO-Y.js +0 -1
- package/src/assets/web-panel/assets/index-c2U6LV3Q.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{I as c,J as y,U as _,R as d,c as t,K as n,o as le,b as ae,r as u,P as f,Q as v,V as x,S as
|
|
2
|
-
`);for(const h of r){const
|
|
3
|
-
`);for(const h of r){const
|
|
4
|
-
`)}else q.value=a;
|
|
5
|
-
`).map(h=>h.trim()).filter(h=>h&&/^[A-Za-z0-9-]{6,}$/.test(h));A.value=r.length>0?r:[a.trim()||o("webauthn.messages.codesUnable")]}A.value.length>0&&A.value[0]!==o("webauthn.messages.codesUnable")&&b.success(o("webauthn.messages.codesOk"))}catch(a){b.error(o("webauthn.messages.codesFailed",{err:a.message}))}finally{ee.value=!1}}le(()=>{S()});const ne={t:o,ws:e,activeTab:j,refreshing:V,refreshCurrentTab:C,onTabChange:J,tryParseJSON:k,truncateId:I,credentialLoading:F,registering:B,credentialList:R,showRegisterModal:z,newCredentialName:O,credentialColumns:Z,loadCredentials:S,parseCredentialText:P,registerCredential:G,deleteCredential:N,ssoLoading:W,ssoLoaded:D,ssoSaving:U,showSsoModal:Q,ssoConfig:g,ssoForm:w,ssoStats:X,loadSsoStatus:M,saveSsoConfig:$,tfaLoading:s,tfaLoaded:m,tfaEnabled:L,tfaToggling:E,totpResult:q,generatingCodes:ee,recoveryCodes:A,loadTfaStatus:te,enableTOTP:de,disableTOTP:ce,generateRecoveryCodes:ue,ref:u,computed:ae,onMounted:le,get useI18n(){return se},get KeyOutlined(){return pe},get SafetyOutlined(){return ye},get LockOutlined(){return me},get PlusOutlined(){return ge},get DeleteOutlined(){return ve},get ReloadOutlined(){return be},get message(){return b},get useWsStore(){return re}};return Object.defineProperty(ne,"__isScriptSetup",{enumerable:!1,value:!0}),ne}},_e={style:{display:"flex","align-items":"center","justify-content":"space-between","margin-bottom":"24px"}},we={class:"page-title"},xe={class:"page-sub"},ke={key:0,style:{"text-align":"center",padding:"60px"}},Ce=["title"],Oe={key:1,style:{color:"var(--text-primary)"}},Se={key:3,style:{color:"var(--text-secondary)","font-size":"12px"}},Ue={key:4,style:{color:"var(--text-secondary)","font-size":"12px"}},Te={key:0,style:{"text-align":"center",padding:"60px"}},Le={style:{color:"#e0e0e0","font-family":"monospace","font-size":"12px"}},Ae={style:{color:"var(--text-secondary)","font-size":"12px"}},Ie={style:{"margin-top":"16px"}},Fe={key:0,style:{"text-align":"center",padding:"60px"}},Re={style:{display:"flex","align-items":"center",gap:"16px","margin-bottom":"16px"}},ze={style:{color:"var(--text-primary)","font-size":"14px"}},Pe={key:0,style:{"margin-top":"16px"}},Ne={style:{"white-space":"pre-wrap","word-break":"break-all",color:"#52c41a","font-size":"11px",background:"var(--bg-base)",padding:"12px","border-radius":"6px",border:"1px solid var(--border-color)"}},De={style:{color:"var(--text-secondary)","margin-bottom":"12px"}},Me={key:0,style:{"margin-top":"16px"}},Ke={style:{background:"var(--bg-base)",padding:"16px","border-radius":"6px",border:"1px solid var(--border-color)"}};function je(ie,i,o,e,j,V){const C=c("a-button"),J=c("a-space"),k=c("a-spin"),I=c("a-tag"),F=c("a-popconfirm"),B=c("a-empty"),R=c("a-table"),z=c("a-input"),O=c("a-form-item"),Z=c("a-form"),S=c("a-modal"),P=c("a-tab-pane"),G=c("a-statistic"),N=c("a-card"),W=c("a-col"),D=c("a-row"),U=c("a-descriptions-item"),Q=c("a-descriptions"),g=c("a-select-option"),w=c("a-select"),X=c("a-input-password"),M=c("a-alert"),$=c("a-tabs");return f(),y("div",null,[_("div",_e,[_("div",null,[_("h2",we,d(e.t("webauthn.title")),1),_("p",xe,d(e.t("webauthn.subtitle")),1)]),t(C,{type:"primary",ghost:"",loading:e.refreshing,onClick:e.refreshCurrentTab},{icon:n(()=>[t(e.ReloadOutlined)]),default:n(()=>[v(" "+d(e.t("webauthn.refresh")),1)]),_:1},8,["loading"])]),t($,{activeKey:e.activeTab,"onUpdate:activeKey":i[9]||(i[9]=s=>e.activeTab=s),type:"card",onChange:e.onTabChange},{default:n(()=>[x(" Tab 1: WebAuthn "),t(P,{key:"webauthn"},{tab:n(()=>[t(e.KeyOutlined),v(" "+d(e.t("webauthn.tabs.webauthn")),1)]),default:n(()=>[t(J,{style:{"margin-bottom":"16px"}},{default:n(()=>[t(C,{type:"primary",onClick:i[0]||(i[0]=s=>e.showRegisterModal=!0)},{icon:n(()=>[t(e.PlusOutlined)]),default:n(()=>[v(" "+d(e.t("webauthn.credentials.registerButton")),1)]),_:1})]),_:1}),e.credentialLoading?(f(),y("div",ke,[t(k,{size:"large"})])):(f(),K(R,{key:1,columns:e.credentialColumns,"data-source":e.credentialList,pagination:{pageSize:20,showTotal:s=>e.t("webauthn.totals.rows",{count:s})},size:"small",style:{background:"var(--bg-card)"},"row-class-name":()=>"auth-row"},{bodyCell:n(({column:s,record:m})=>[s.key==="id"?(f(),y("span",{key:0,style:{color:"#e0e0e0","font-family":"monospace","font-size":"12px"},title:m.id},d(e.truncateId(m.id)),9,Ce)):x("v-if",!0),s.key==="name"?(f(),y("span",Oe,d(m.name),1)):x("v-if",!0),s.key==="type"?(f(),K(I,{key:2,color:"blue"},{default:n(()=>[v(d(m.type||"public-key"),1)]),_:2},1024)):x("v-if",!0),s.key==="createdAt"?(f(),y("span",Se,d(m.createdAt||"-"),1)):x("v-if",!0),s.key==="lastUsed"?(f(),y("span",Ue,d(m.lastUsed||"-"),1)):x("v-if",!0),s.key==="actions"?(f(),K(F,{key:5,title:e.t("webauthn.credentials.deleteConfirm"),"ok-text":e.t("webauthn.credentials.deleteOk"),"cancel-text":e.t("common.cancel"),onConfirm:L=>e.deleteCredential(m)},{default:n(()=>[t(C,{type:"link",danger:"",size:"small"},{icon:n(()=>[t(e.DeleteOutlined)]),default:n(()=>[v(" "+d(e.t("webauthn.credentials.delete")),1)]),_:1})]),_:1},8,["title","ok-text","cancel-text","onConfirm"])):x("v-if",!0)]),emptyText:n(()=>[t(B,{description:e.t("webauthn.credentials.emptyText")},null,8,["description"])]),_:1},8,["columns","data-source","pagination"])),t(S,{open:e.showRegisterModal,"onUpdate:open":i[2]||(i[2]=s=>e.showRegisterModal=s),title:e.t("webauthn.credentials.registerTitle"),"confirm-loading":e.registering,onOk:e.registerCredential,"ok-text":e.t("webauthn.credentials.registerOk"),"cancel-text":e.t("common.cancel")},{default:n(()=>[t(Z,{"label-col":{span:6},"wrapper-col":{span:18},style:{"margin-top":"16px"}},{default:n(()=>[t(O,{label:e.t("webauthn.credentials.nameLabel"),required:""},{default:n(()=>[t(z,{value:e.newCredentialName,"onUpdate:value":i[1]||(i[1]=s=>e.newCredentialName=s),placeholder:e.t("webauthn.credentials.namePlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["open","title","confirm-loading","ok-text","cancel-text"])]),_:1}),x(" Tab 2: SSO Config "),t(P,{key:"sso"},{tab:n(()=>[t(e.SafetyOutlined),v(" "+d(e.t("webauthn.tabs.sso")),1)]),default:n(()=>[e.ssoLoading?(f(),y("div",Te,[t(k,{size:"large"})])):(f(),y(Y,{key:1},[t(D,{gutter:[16,16],style:{"margin-bottom":"20px"}},{default:n(()=>[(f(!0),y(Y,null,oe(e.ssoStats,s=>(f(),K(W,{xs:12,sm:6,key:s.key},{default:n(()=>[t(N,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"},size:"small"},{default:n(()=>[t(G,{title:s.label,value:s.value,"value-style":{color:s.color,fontSize:"20px"}},null,8,["title","value","value-style"])]),_:2},1024)]),_:2},1024))),128))]),_:1}),t(N,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"},title:e.t("webauthn.sso.currentTitle")},{default:n(()=>[t(Q,{column:{xs:1,sm:2},bordered:"",size:"small",style:{background:"var(--bg-card)"}},{default:n(()=>[t(U,{label:e.t("webauthn.sso.providerLabel")},{default:n(()=>[t(I,{color:e.ssoConfig.provider?"blue":"default"},{default:n(()=>[v(d(e.ssoConfig.provider||e.t("webauthn.sso.notConfigured")),1)]),_:1},8,["color"])]),_:1},8,["label"]),t(U,{label:e.t("webauthn.sso.clientIdLabel")},{default:n(()=>[_("span",Le,d(e.ssoConfig.clientId||"-"),1)]),_:1},8,["label"]),t(U,{label:e.t("webauthn.sso.redirectUrlLabel")},{default:n(()=>[_("span",Ae,d(e.ssoConfig.redirectUrl||"-"),1)]),_:1},8,["label"]),t(U,{label:e.t("webauthn.sso.statusLabel")},{default:n(()=>[t(I,{color:e.ssoConfig.enabled?"green":"default"},{default:n(()=>[v(d(e.ssoConfig.enabled?e.t("webauthn.sso.enabled"):e.t("webauthn.sso.disabled")),1)]),_:1},8,["color"])]),_:1},8,["label"])]),_:1}),_("div",Ie,[t(C,{type:"primary",onClick:i[3]||(i[3]=s=>e.showSsoModal=!0)},{icon:n(()=>[t(e.KeyOutlined)]),default:n(()=>[v(" "+d(e.t("webauthn.sso.configureButton")),1)]),_:1})])]),_:1},8,["title"])],64)),t(S,{open:e.showSsoModal,"onUpdate:open":i[8]||(i[8]=s=>e.showSsoModal=s),title:e.t("webauthn.sso.modalTitle"),"confirm-loading":e.ssoSaving,onOk:e.saveSsoConfig,"ok-text":e.t("webauthn.sso.modalOk"),"cancel-text":e.t("common.cancel"),width:"520px"},{default:n(()=>[t(Z,{"label-col":{span:6},"wrapper-col":{span:18},style:{"margin-top":"16px"}},{default:n(()=>[t(O,{label:e.t("webauthn.sso.providerLabel"),required:""},{default:n(()=>[t(w,{value:e.ssoForm.provider,"onUpdate:value":i[4]||(i[4]=s=>e.ssoForm.provider=s),placeholder:e.t("webauthn.sso.providerPlaceholder")},{default:n(()=>[t(g,{value:"OIDC"},{default:n(()=>[...i[10]||(i[10]=[v("OIDC",-1)])]),_:1}),t(g,{value:"SAML"},{default:n(()=>[...i[11]||(i[11]=[v("SAML",-1)])]),_:1}),t(g,{value:"LDAP"},{default:n(()=>[...i[12]||(i[12]=[v("LDAP",-1)])]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label"]),t(O,{label:e.t("webauthn.sso.clientIdLabel"),required:""},{default:n(()=>[t(z,{value:e.ssoForm.clientId,"onUpdate:value":i[5]||(i[5]=s=>e.ssoForm.clientId=s),placeholder:e.t("webauthn.sso.clientIdPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"]),t(O,{label:e.t("webauthn.sso.clientSecretLabel")},{default:n(()=>[t(X,{value:e.ssoForm.clientSecret,"onUpdate:value":i[6]||(i[6]=s=>e.ssoForm.clientSecret=s),placeholder:e.t("webauthn.sso.clientSecretPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"]),t(O,{label:e.t("webauthn.sso.issuerLabel")},{default:n(()=>[t(z,{value:e.ssoForm.issuerUrl,"onUpdate:value":i[7]||(i[7]=s=>e.ssoForm.issuerUrl=s),placeholder:e.t("webauthn.sso.issuerPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["open","title","confirm-loading","ok-text","cancel-text"])]),_:1}),x(" Tab 3: 2FA "),t(P,{key:"2fa"},{tab:n(()=>[t(e.LockOutlined),v(" "+d(e.t("webauthn.tabs.tfa")),1)]),default:n(()=>[e.tfaLoading?(f(),y("div",Fe,[t(k,{size:"large"})])):(f(),y(Y,{key:1},[t(N,{style:{background:"var(--bg-card)","border-color":"var(--border-color)","margin-bottom":"20px"},title:e.t("webauthn.tfa.totpCardTitle")},{default:n(()=>[_("div",Re,[_("span",ze,d(e.t("webauthn.tfa.statusPrefix")),1),t(I,{color:e.tfaEnabled?"green":"default",style:{"font-size":"13px"}},{default:n(()=>[v(d(e.tfaEnabled?e.t("webauthn.tfa.enabled"):e.t("webauthn.tfa.disabled")),1)]),_:1},8,["color"])]),t(J,null,{default:n(()=>[e.tfaEnabled?(f(),K(F,{key:1,title:e.t("webauthn.tfa.disableConfirm"),"ok-text":e.t("webauthn.tfa.disableOk"),"cancel-text":e.t("common.cancel"),onConfirm:e.disableTOTP},{default:n(()=>[t(C,{danger:"",loading:e.tfaToggling},{default:n(()=>[v(d(e.t("webauthn.tfa.disableButton")),1)]),_:1},8,["loading"])]),_:1},8,["title","ok-text","cancel-text"])):(f(),K(C,{key:0,type:"primary",loading:e.tfaToggling,onClick:e.enableTOTP},{icon:n(()=>[t(e.LockOutlined)]),default:n(()=>[v(" "+d(e.t("webauthn.tfa.enableButton")),1)]),_:1},8,["loading"]))]),_:1}),e.totpResult?(f(),y("div",Pe,[_("pre",Ne,d(e.totpResult),1)])):x("v-if",!0)]),_:1},8,["title"]),t(N,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"},title:e.t("webauthn.tfa.recoveryCardTitle")},{default:n(()=>[_("p",De,d(e.t("webauthn.tfa.recoveryHint")),1),t(C,{loading:e.generatingCodes,onClick:e.generateRecoveryCodes},{icon:n(()=>[t(e.ReloadOutlined)]),default:n(()=>[v(" "+d(e.t("webauthn.tfa.generateButton")),1)]),_:1},8,["loading"]),e.recoveryCodes.length>0?(f(),y("div",Me,[t(M,{type:"warning","show-icon":"",style:{"margin-bottom":"12px"},message:e.t("webauthn.tfa.saveAlert")},null,8,["message"]),_("div",Ke,[(f(!0),y(Y,null,oe(e.recoveryCodes,(s,m)=>(f(),y("div",{key:m,style:{"font-family":"monospace","font-size":"14px",color:"#e0e0e0",padding:"4px 0","letter-spacing":"2px"}},d(m+1)+". "+d(s),1))),128))])])):x("v-if",!0)]),_:1},8,["title"])],64))]),_:1})]),_:1},8,["activeKey"])])}const qe=fe(he,[["render",je],["__scopeId","data-v-8b8080ec"],["__file","/tmp/cc-web-panel-JZFoWK/repo/packages/web-panel/src/views/WebAuthn.vue"]]);export{qe as default};
|
|
1
|
+
import{I as c,J as y,U as _,R as d,c as t,K as n,o as le,b as ae,r as u,P as f,Q as v,V as x,S as j,F as Y,Z as oe}from"./vendor-BvqAck49.js";import{_ as fe,b as se,u as re,d as b}from"./index-Y1b8i0NV.js";import{R as be,aQ as ve,as as ge,Y as me,r as ye,K as pe}from"./icons-DP3uiYxy.js";const he={__name:"WebAuthn",setup(ie,{expose:i}){i();const{t:o}=se(),e=re(),B=u("webauthn"),V=u(!1);async function C(){V.value=!0;try{B.value==="webauthn"?await S():B.value==="sso"?await M():B.value==="2fa"&&await te()}finally{V.value=!1}}function J(a){a==="sso"&&!D.value&&M(),a==="2fa"&&!m.value&&te()}function k(a){try{return JSON.parse(a)}catch{return null}}function I(a){return a?a.length<=16?a:a.slice(0,8)+"..."+a.slice(-8):"-"}const F=u(!1),K=u(!1),P=u([]),R=u(!1),O=u(""),Q=ae(()=>[{title:o("webauthn.credentialColumns.id"),key:"id",dataIndex:"id",width:"180px"},{title:o("webauthn.credentialColumns.name"),key:"name",dataIndex:"name",width:"160px"},{title:o("webauthn.credentialColumns.type"),key:"type",dataIndex:"type",width:"120px"},{title:o("webauthn.credentialColumns.createdAt"),key:"createdAt",dataIndex:"createdAt",width:"180px"},{title:o("webauthn.credentialColumns.lastUsed"),key:"lastUsed",dataIndex:"lastUsed",width:"180px"},{title:o("webauthn.credentialColumns.actions"),key:"actions",width:"100px",fixed:"right"}]);async function S(){F.value=!0;try{const{output:a}=await e.execute("webauthn list --json",15e3),l=k(a);l&&Array.isArray(l)?P.value=l.map((r,h)=>({key:r.id||h,id:r.id||"-",name:r.name||r.displayName||"-",type:r.type||"public-key",createdAt:r.createdAt||r.created||"-",lastUsed:r.lastUsed||r.lastAuthentication||"-"})):l&&l.credentials?P.value=l.credentials.map((r,h)=>({key:r.id||h,id:r.id||"-",name:r.name||r.displayName||"-",type:r.type||"public-key",createdAt:r.createdAt||r.created||"-",lastUsed:r.lastUsed||r.lastAuthentication||"-"})):P.value=z(a)}catch(a){b.error(o("webauthn.messages.loadFailed",{err:a.message}))}finally{F.value=!1}}function z(a){const l=[],r=a.split(`
|
|
2
|
+
`);for(const h of r){const L=h.trim();if(!L||L.startsWith("─")||L.startsWith("No "))continue;const p=L.split(/\s*[|│]\s*/);p.length>=2&&l.push({key:l.length,id:p[0]||"-",name:p[1]||"-",type:p[2]||"public-key",createdAt:p[3]||"-",lastUsed:p[4]||"-"})}return l}async function G(){const a=O.value.trim();if(!a){b.warning(o("webauthn.messages.credNameRequired"));return}K.value=!0;try{const l=a.replace(/"/g,'\\"'),{output:r}=await e.execute(`webauthn register --name "${l}" --json`,3e4);r.includes("error")||r.includes("失败")?b.error(o("webauthn.messages.registerFailed",{err:r.slice(0,120)})):(b.success(o("webauthn.messages.registerOk")),R.value=!1,O.value="",await S())}catch(l){b.error(o("webauthn.messages.registerFailed",{err:l.message}))}finally{K.value=!1}}async function N(a){try{const{output:l}=await e.execute(`webauthn delete "${a.id}"`,15e3);l.includes("error")||l.includes("失败")?b.error(o("webauthn.messages.deleteFailed",{err:l.slice(0,120)})):(b.success(o("webauthn.messages.deleteOk")),await S())}catch(l){b.error(o("webauthn.messages.deleteFailed",{err:l.message}))}}const E=u(!1),D=u(!1),U=u(!1),Z=u(!1),g=u({provider:"",clientId:"",redirectUrl:"",enabled:!1}),w=u({provider:void 0,clientId:"",clientSecret:"",issuerUrl:""}),X=ae(()=>[{key:"provider",label:o("webauthn.sso.providerLabel"),value:g.value.provider||o("webauthn.sso.notConfigured"),color:g.value.provider?"#1677ff":"#999"},{key:"status",label:o("webauthn.sso.statusLabel"),value:g.value.enabled?o("webauthn.sso.enabled"):o("webauthn.sso.disabled"),color:g.value.enabled?"#52c41a":"#faad14"}]);async function M(){E.value=!0;try{const{output:a}=await e.execute("sso status --json",15e3),l=k(a);if(l)g.value={provider:l.provider||"",clientId:l.clientId||l.client_id||"",redirectUrl:l.redirectUrl||l.redirect_url||l.callbackUrl||"",enabled:l.enabled||l.active||!1};else{const r=a.split(`
|
|
3
|
+
`);for(const h of r){const L=h.trim().match(/^(.+?)\s*[:=:]\s*(.+)$/);if(L){const p=L[1].toLowerCase(),H=L[2].trim();p.includes("provider")?g.value.provider=H:p.includes("client")&&p.includes("id")?g.value.clientId=H:p.includes("redirect")||p.includes("callback")?g.value.redirectUrl=H:(p.includes("status")||p.includes("enabled"))&&(g.value.enabled=/true|enabled|active|已启用/i.test(H))}}}D.value=!0}catch{g.value={provider:"",clientId:"",redirectUrl:"",enabled:!1},D.value=!0}finally{E.value=!1}}async function $(){if(!w.value.provider){b.warning(o("webauthn.messages.providerRequired"));return}if(!w.value.clientId.trim()){b.warning(o("webauthn.messages.clientIdRequired"));return}U.value=!0;try{const a=[`config set sso.provider ${w.value.provider}`,`config set sso.clientId ${w.value.clientId.trim()}`];w.value.clientSecret.trim()&&a.push(`config set sso.clientSecret ${w.value.clientSecret.trim()}`),w.value.issuerUrl.trim()&&a.push(`config set sso.issuerUrl ${w.value.issuerUrl.trim()}`);for(const l of a)await e.execute(l,1e4);b.success(o("webauthn.messages.ssoSaveOk")),Z.value=!1,await M()}catch(a){b.error(o("webauthn.messages.ssoSaveFailed",{err:a.message}))}finally{U.value=!1}}const s=u(!1),m=u(!1),T=u(!1),W=u(!1),q=u(""),ee=u(!1),A=u([]);async function te(){s.value=!0;try{const{output:a}=await e.execute("auth 2fa status --json",15e3),l=k(a);l?T.value=l.enabled||l.active||!1:T.value=/enabled|已启用|active/i.test(a),m.value=!0}catch{T.value=!1,m.value=!0}finally{s.value=!1}}async function de(){W.value=!0,q.value="";try{const{output:a}=await e.execute("auth 2fa enable --type totp --json",2e4);if(a.includes("error")||a.includes("失败"))b.error(o("webauthn.messages.totpEnableFailed",{err:a.slice(0,120)}));else{const l=k(a);if(l&&l.secret){const r=[o("webauthn.tfa.totpResultPrefix",{secret:l.secret}),o("webauthn.tfa.totpResultUrl",{url:l.otpAuthUrl||l.uri||""})];q.value=r.join(`
|
|
4
|
+
`)}else q.value=a;T.value=!0,b.success(o("webauthn.messages.totpEnableOk"))}}catch(a){b.error(o("webauthn.messages.totpEnableFailed",{err:a.message}))}finally{W.value=!1}}async function ce(){W.value=!0,q.value="";try{const{output:a}=await e.execute("auth 2fa disable",15e3);a.includes("error")||a.includes("失败")?b.error(o("webauthn.messages.totpDisableFailed",{err:a.slice(0,120)})):(T.value=!1,b.success(o("webauthn.messages.totpDisableOk")))}catch(a){b.error(o("webauthn.messages.totpDisableFailed",{err:a.message}))}finally{W.value=!1}}async function ue(){ee.value=!0,A.value=[];try{const{output:a}=await e.execute("auth 2fa recovery-codes --json",15e3),l=k(a);if(l&&Array.isArray(l.codes))A.value=l.codes;else if(l&&Array.isArray(l))A.value=l;else{const r=a.split(`
|
|
5
|
+
`).map(h=>h.trim()).filter(h=>h&&/^[A-Za-z0-9-]{6,}$/.test(h));A.value=r.length>0?r:[a.trim()||o("webauthn.messages.codesUnable")]}A.value.length>0&&A.value[0]!==o("webauthn.messages.codesUnable")&&b.success(o("webauthn.messages.codesOk"))}catch(a){b.error(o("webauthn.messages.codesFailed",{err:a.message}))}finally{ee.value=!1}}le(()=>{S()});const ne={t:o,ws:e,activeTab:B,refreshing:V,refreshCurrentTab:C,onTabChange:J,tryParseJSON:k,truncateId:I,credentialLoading:F,registering:K,credentialList:P,showRegisterModal:R,newCredentialName:O,credentialColumns:Q,loadCredentials:S,parseCredentialText:z,registerCredential:G,deleteCredential:N,ssoLoading:E,ssoLoaded:D,ssoSaving:U,showSsoModal:Z,ssoConfig:g,ssoForm:w,ssoStats:X,loadSsoStatus:M,saveSsoConfig:$,tfaLoading:s,tfaLoaded:m,tfaEnabled:T,tfaToggling:W,totpResult:q,generatingCodes:ee,recoveryCodes:A,loadTfaStatus:te,enableTOTP:de,disableTOTP:ce,generateRecoveryCodes:ue,ref:u,computed:ae,onMounted:le,get useI18n(){return se},get KeyOutlined(){return pe},get SafetyOutlined(){return ye},get LockOutlined(){return me},get PlusOutlined(){return ge},get DeleteOutlined(){return ve},get ReloadOutlined(){return be},get message(){return b},get useWsStore(){return re}};return Object.defineProperty(ne,"__isScriptSetup",{enumerable:!1,value:!0}),ne}},_e={style:{display:"flex","align-items":"center","justify-content":"space-between","margin-bottom":"24px"}},we={class:"page-title"},xe={class:"page-sub"},ke={key:0,style:{"text-align":"center",padding:"60px"}},Ce=["title"],Oe={key:1,style:{color:"var(--text-primary)"}},Se={key:3,style:{color:"var(--text-secondary)","font-size":"12px"}},Ue={key:4,style:{color:"var(--text-secondary)","font-size":"12px"}},Le={key:0,style:{"text-align":"center",padding:"60px"}},Te={style:{color:"#e0e0e0","font-family":"monospace","font-size":"12px"}},Ae={style:{color:"var(--text-secondary)","font-size":"12px"}},Ie={style:{"margin-top":"16px"}},Fe={key:0,style:{"text-align":"center",padding:"60px"}},Pe={style:{display:"flex","align-items":"center",gap:"16px","margin-bottom":"16px"}},Re={style:{color:"var(--text-primary)","font-size":"14px"}},ze={key:0,style:{"margin-top":"16px"}},Ne={style:{"white-space":"pre-wrap","word-break":"break-all",color:"#52c41a","font-size":"11px",background:"var(--bg-base)",padding:"12px","border-radius":"6px",border:"1px solid var(--border-color)"}},De={style:{color:"var(--text-secondary)","margin-bottom":"12px"}},Me={key:0,style:{"margin-top":"16px"}},je={style:{background:"var(--bg-base)",padding:"16px","border-radius":"6px",border:"1px solid var(--border-color)"}};function Be(ie,i,o,e,B,V){const C=c("a-button"),J=c("a-space"),k=c("a-spin"),I=c("a-tag"),F=c("a-popconfirm"),K=c("a-empty"),P=c("a-table"),R=c("a-input"),O=c("a-form-item"),Q=c("a-form"),S=c("a-modal"),z=c("a-tab-pane"),G=c("a-statistic"),N=c("a-card"),E=c("a-col"),D=c("a-row"),U=c("a-descriptions-item"),Z=c("a-descriptions"),g=c("a-select-option"),w=c("a-select"),X=c("a-input-password"),M=c("a-alert"),$=c("a-tabs");return f(),y("div",null,[_("div",_e,[_("div",null,[_("h2",we,d(e.t("webauthn.title")),1),_("p",xe,d(e.t("webauthn.subtitle")),1)]),t(C,{type:"primary",ghost:"",loading:e.refreshing,onClick:e.refreshCurrentTab},{icon:n(()=>[t(e.ReloadOutlined)]),default:n(()=>[v(" "+d(e.t("webauthn.refresh")),1)]),_:1},8,["loading"])]),t($,{activeKey:e.activeTab,"onUpdate:activeKey":i[9]||(i[9]=s=>e.activeTab=s),type:"card",onChange:e.onTabChange},{default:n(()=>[x(" Tab 1: WebAuthn "),t(z,{key:"webauthn"},{tab:n(()=>[t(e.KeyOutlined),v(" "+d(e.t("webauthn.tabs.webauthn")),1)]),default:n(()=>[t(J,{style:{"margin-bottom":"16px"}},{default:n(()=>[t(C,{type:"primary",onClick:i[0]||(i[0]=s=>e.showRegisterModal=!0)},{icon:n(()=>[t(e.PlusOutlined)]),default:n(()=>[v(" "+d(e.t("webauthn.credentials.registerButton")),1)]),_:1})]),_:1}),e.credentialLoading?(f(),y("div",ke,[t(k,{size:"large"})])):(f(),j(P,{key:1,columns:e.credentialColumns,"data-source":e.credentialList,pagination:{pageSize:20,showTotal:s=>e.t("webauthn.totals.rows",{count:s})},size:"small",style:{background:"var(--bg-card)"},"row-class-name":()=>"auth-row"},{bodyCell:n(({column:s,record:m})=>[s.key==="id"?(f(),y("span",{key:0,style:{color:"#e0e0e0","font-family":"monospace","font-size":"12px"},title:m.id},d(e.truncateId(m.id)),9,Ce)):x("v-if",!0),s.key==="name"?(f(),y("span",Oe,d(m.name),1)):x("v-if",!0),s.key==="type"?(f(),j(I,{key:2,color:"blue"},{default:n(()=>[v(d(m.type||"public-key"),1)]),_:2},1024)):x("v-if",!0),s.key==="createdAt"?(f(),y("span",Se,d(m.createdAt||"-"),1)):x("v-if",!0),s.key==="lastUsed"?(f(),y("span",Ue,d(m.lastUsed||"-"),1)):x("v-if",!0),s.key==="actions"?(f(),j(F,{key:5,title:e.t("webauthn.credentials.deleteConfirm"),"ok-text":e.t("webauthn.credentials.deleteOk"),"cancel-text":e.t("common.cancel"),onConfirm:T=>e.deleteCredential(m)},{default:n(()=>[t(C,{type:"link",danger:"",size:"small"},{icon:n(()=>[t(e.DeleteOutlined)]),default:n(()=>[v(" "+d(e.t("webauthn.credentials.delete")),1)]),_:1})]),_:1},8,["title","ok-text","cancel-text","onConfirm"])):x("v-if",!0)]),emptyText:n(()=>[t(K,{description:e.t("webauthn.credentials.emptyText")},null,8,["description"])]),_:1},8,["columns","data-source","pagination"])),t(S,{open:e.showRegisterModal,"onUpdate:open":i[2]||(i[2]=s=>e.showRegisterModal=s),title:e.t("webauthn.credentials.registerTitle"),"confirm-loading":e.registering,onOk:e.registerCredential,"ok-text":e.t("webauthn.credentials.registerOk"),"cancel-text":e.t("common.cancel")},{default:n(()=>[t(Q,{"label-col":{span:6},"wrapper-col":{span:18},style:{"margin-top":"16px"}},{default:n(()=>[t(O,{label:e.t("webauthn.credentials.nameLabel"),required:""},{default:n(()=>[t(R,{value:e.newCredentialName,"onUpdate:value":i[1]||(i[1]=s=>e.newCredentialName=s),placeholder:e.t("webauthn.credentials.namePlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["open","title","confirm-loading","ok-text","cancel-text"])]),_:1}),x(" Tab 2: SSO Config "),t(z,{key:"sso"},{tab:n(()=>[t(e.SafetyOutlined),v(" "+d(e.t("webauthn.tabs.sso")),1)]),default:n(()=>[e.ssoLoading?(f(),y("div",Le,[t(k,{size:"large"})])):(f(),y(Y,{key:1},[t(D,{gutter:[16,16],style:{"margin-bottom":"20px"}},{default:n(()=>[(f(!0),y(Y,null,oe(e.ssoStats,s=>(f(),j(E,{xs:12,sm:6,key:s.key},{default:n(()=>[t(N,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"},size:"small"},{default:n(()=>[t(G,{title:s.label,value:s.value,"value-style":{color:s.color,fontSize:"20px"}},null,8,["title","value","value-style"])]),_:2},1024)]),_:2},1024))),128))]),_:1}),t(N,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"},title:e.t("webauthn.sso.currentTitle")},{default:n(()=>[t(Z,{column:{xs:1,sm:2},bordered:"",size:"small",style:{background:"var(--bg-card)"}},{default:n(()=>[t(U,{label:e.t("webauthn.sso.providerLabel")},{default:n(()=>[t(I,{color:e.ssoConfig.provider?"blue":"default"},{default:n(()=>[v(d(e.ssoConfig.provider||e.t("webauthn.sso.notConfigured")),1)]),_:1},8,["color"])]),_:1},8,["label"]),t(U,{label:e.t("webauthn.sso.clientIdLabel")},{default:n(()=>[_("span",Te,d(e.ssoConfig.clientId||"-"),1)]),_:1},8,["label"]),t(U,{label:e.t("webauthn.sso.redirectUrlLabel")},{default:n(()=>[_("span",Ae,d(e.ssoConfig.redirectUrl||"-"),1)]),_:1},8,["label"]),t(U,{label:e.t("webauthn.sso.statusLabel")},{default:n(()=>[t(I,{color:e.ssoConfig.enabled?"green":"default"},{default:n(()=>[v(d(e.ssoConfig.enabled?e.t("webauthn.sso.enabled"):e.t("webauthn.sso.disabled")),1)]),_:1},8,["color"])]),_:1},8,["label"])]),_:1}),_("div",Ie,[t(C,{type:"primary",onClick:i[3]||(i[3]=s=>e.showSsoModal=!0)},{icon:n(()=>[t(e.KeyOutlined)]),default:n(()=>[v(" "+d(e.t("webauthn.sso.configureButton")),1)]),_:1})])]),_:1},8,["title"])],64)),t(S,{open:e.showSsoModal,"onUpdate:open":i[8]||(i[8]=s=>e.showSsoModal=s),title:e.t("webauthn.sso.modalTitle"),"confirm-loading":e.ssoSaving,onOk:e.saveSsoConfig,"ok-text":e.t("webauthn.sso.modalOk"),"cancel-text":e.t("common.cancel"),width:"520px"},{default:n(()=>[t(Q,{"label-col":{span:6},"wrapper-col":{span:18},style:{"margin-top":"16px"}},{default:n(()=>[t(O,{label:e.t("webauthn.sso.providerLabel"),required:""},{default:n(()=>[t(w,{value:e.ssoForm.provider,"onUpdate:value":i[4]||(i[4]=s=>e.ssoForm.provider=s),placeholder:e.t("webauthn.sso.providerPlaceholder")},{default:n(()=>[t(g,{value:"OIDC"},{default:n(()=>[...i[10]||(i[10]=[v("OIDC",-1)])]),_:1}),t(g,{value:"SAML"},{default:n(()=>[...i[11]||(i[11]=[v("SAML",-1)])]),_:1}),t(g,{value:"LDAP"},{default:n(()=>[...i[12]||(i[12]=[v("LDAP",-1)])]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label"]),t(O,{label:e.t("webauthn.sso.clientIdLabel"),required:""},{default:n(()=>[t(R,{value:e.ssoForm.clientId,"onUpdate:value":i[5]||(i[5]=s=>e.ssoForm.clientId=s),placeholder:e.t("webauthn.sso.clientIdPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"]),t(O,{label:e.t("webauthn.sso.clientSecretLabel")},{default:n(()=>[t(X,{value:e.ssoForm.clientSecret,"onUpdate:value":i[6]||(i[6]=s=>e.ssoForm.clientSecret=s),placeholder:e.t("webauthn.sso.clientSecretPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"]),t(O,{label:e.t("webauthn.sso.issuerLabel")},{default:n(()=>[t(R,{value:e.ssoForm.issuerUrl,"onUpdate:value":i[7]||(i[7]=s=>e.ssoForm.issuerUrl=s),placeholder:e.t("webauthn.sso.issuerPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["open","title","confirm-loading","ok-text","cancel-text"])]),_:1}),x(" Tab 3: 2FA "),t(z,{key:"2fa"},{tab:n(()=>[t(e.LockOutlined),v(" "+d(e.t("webauthn.tabs.tfa")),1)]),default:n(()=>[e.tfaLoading?(f(),y("div",Fe,[t(k,{size:"large"})])):(f(),y(Y,{key:1},[t(N,{style:{background:"var(--bg-card)","border-color":"var(--border-color)","margin-bottom":"20px"},title:e.t("webauthn.tfa.totpCardTitle")},{default:n(()=>[_("div",Pe,[_("span",Re,d(e.t("webauthn.tfa.statusPrefix")),1),t(I,{color:e.tfaEnabled?"green":"default",style:{"font-size":"13px"}},{default:n(()=>[v(d(e.tfaEnabled?e.t("webauthn.tfa.enabled"):e.t("webauthn.tfa.disabled")),1)]),_:1},8,["color"])]),t(J,null,{default:n(()=>[e.tfaEnabled?(f(),j(F,{key:1,title:e.t("webauthn.tfa.disableConfirm"),"ok-text":e.t("webauthn.tfa.disableOk"),"cancel-text":e.t("common.cancel"),onConfirm:e.disableTOTP},{default:n(()=>[t(C,{danger:"",loading:e.tfaToggling},{default:n(()=>[v(d(e.t("webauthn.tfa.disableButton")),1)]),_:1},8,["loading"])]),_:1},8,["title","ok-text","cancel-text"])):(f(),j(C,{key:0,type:"primary",loading:e.tfaToggling,onClick:e.enableTOTP},{icon:n(()=>[t(e.LockOutlined)]),default:n(()=>[v(" "+d(e.t("webauthn.tfa.enableButton")),1)]),_:1},8,["loading"]))]),_:1}),e.totpResult?(f(),y("div",ze,[_("pre",Ne,d(e.totpResult),1)])):x("v-if",!0)]),_:1},8,["title"]),t(N,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"},title:e.t("webauthn.tfa.recoveryCardTitle")},{default:n(()=>[_("p",De,d(e.t("webauthn.tfa.recoveryHint")),1),t(C,{loading:e.generatingCodes,onClick:e.generateRecoveryCodes},{icon:n(()=>[t(e.ReloadOutlined)]),default:n(()=>[v(" "+d(e.t("webauthn.tfa.generateButton")),1)]),_:1},8,["loading"]),e.recoveryCodes.length>0?(f(),y("div",Me,[t(M,{type:"warning","show-icon":"",style:{"margin-bottom":"12px"},message:e.t("webauthn.tfa.saveAlert")},null,8,["message"]),_("div",je,[(f(!0),y(Y,null,oe(e.recoveryCodes,(s,m)=>(f(),y("div",{key:m,style:{"font-family":"monospace","font-size":"14px",color:"#e0e0e0",padding:"4px 0","letter-spacing":"2px"}},d(m+1)+". "+d(s),1))),128))])])):x("v-if",!0)]),_:1},8,["title"])],64))]),_:1})]),_:1},8,["activeKey"])])}const qe=fe(he,[["render",Be],["__scopeId","data-v-8b8080ec"],["__file","/tmp/cc-web-panel-aLcItP/repo/packages/web-panel/src/views/WebAuthn.vue"]]);export{qe as default};
|
package/src/assets/web-panel/assets/{WorkflowEditor-DTW5AcqM.js → WorkflowEditor-BP2tkDHe.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as K,r as S,I as v,J as k,U as C,R as u,c as r,K as n,o as B,b as M,P as f,Q as g,S as I,_ as H,a2 as T,F as $,Z as A,V as L}from"./vendor-BvqAck49.js";import{u as Z,_ as x,b as V,d as y}from"./index-CznfPnOx.js";import{u as q}from"./useFs-CMpy7RS4.js";import{R as G,as as Q}from"./icons-DP3uiYxy.js";import"./useShellMode-CgR0wCYM.js";const D=K("workflow",()=>{const t=Z(),c=S([]),p=S(null),e=S([]),i=S("idle"),O=S(!1),w=S(null);async function z(){O.value=!0,w.value=null;try{await t.waitConnected();const l=await t.sendRaw({type:"workflow-list"});return c.value=Array.isArray(l.workflows)?l.workflows:[],c.value}catch(l){throw w.value=l.message,l}finally{O.value=!1}}async function W(l){await t.waitConnected();const d=await t.sendRaw({type:"workflow-get",id:l});return p.value=d.workflow||null,p.value}async function U(l){await t.waitConnected();const d=await t.sendRaw({type:"workflow-save",workflow:l});if(d.saved){const m=c.value.findIndex(o=>o.id===l.id);m>=0?c.value.splice(m,1,l):c.value.push(l)}return d}async function R(l){await t.waitConnected();const d=await t.sendRaw({type:"workflow-remove",id:l});return d.removed&&(c.value=c.value.filter(m=>m.id!==l)),d}async function P(l,{onEvent:d}={}){await t.waitConnected(),e.value=[],i.value="running";const m=t.onMessage(o=>{!o||typeof o.type!="string"||o.type.startsWith("workflow:")&&(e.value.push(o),d&&d(o),o.type==="workflow:done"&&(i.value=o.status||"completed"))});try{return await t.sendRaw({type:"workflow-run",id:l},12e4)}catch(o){throw i.value="failed",w.value=o.message,o}finally{m()}}function J(l){const d=[];if(!l||typeof l!="object")return{valid:!1,errors:["workflow must be an object"]};if(l.id||d.push("id required"),l.name||d.push("name required"),!Array.isArray(l.steps)||l.steps.length===0)d.push("steps required");else{let h=function(s){a.set(s,E);for(const F of o.get(s)||[]){if(!o.has(F)){d.push(`unknown dependency: ${F}`);continue}const j=a.get(F);if(j===E){d.push(`cycle via ${s} -> ${F}`);return}j===_&&h(F)}a.set(s,N)};const m=new Set;for(const s of l.steps)s.id||d.push("step.id required"),m.has(s.id)&&d.push(`duplicate step id: ${s.id}`),m.add(s.id);const o=new Map;for(const s of l.steps)o.set(s.id,s.dependsOn||[]);const _=0,E=1,N=2,a=new Map([...o.keys()].map(s=>[s,_]));for(const s of o.keys())a.get(s)===_&&h(s)}return{valid:d.length===0,errors:d}}function b(l){return JSON.stringify(l,null,2)}return{workflows:c,current:p,runEvents:e,runStatus:i,loading:O,error:w,list:z,get:W,save:U,remove:R,run:P,validateLocal:J,exportJson:b}}),Y={__name:"WorkflowEditor",setup(t,{expose:c}){c();const{t:p}=V(),e=D(),i=S(null),O=S(!1),w=M(()=>i.value?e.validateLocal(i.value):null);B(()=>e.list().catch(()=>{}));function z(){i.value={id:"",name:"",description:"",steps:[{id:"step1",message:"",dependsOn:[]}]}}async function W(o){try{const _=await e.get(o);_&&(i.value=JSON.parse(JSON.stringify(_)),i.value.steps||(i.value.steps=[]))}catch(_){y.error(p("workflow.msg.loadFailed",{err:_.message}))}}function U(){i.value.steps||(i.value.steps=[]),i.value.steps.push({id:`step${i.value.steps.length+1}`,message:"",dependsOn:[]})}function R(o){i.value.steps.splice(o,1)}async function P(){const o=e.validateLocal(i.value);if(!o.valid){y.error(o.errors[0]);return}try{await e.save(i.value),y.success(p("workflow.msg.saveSuccess"))}catch(_){y.error(p("workflow.msg.saveFailed",{err:_.message}))}}async function J(o){try{await e.remove(o),i.value?.id===o&&(i.value=null),y.success(p("workflow.msg.deleteSuccess"))}catch(_){y.error(p("workflow.msg.deleteFailed",{err:_.message}))}}async function b(){O.value=!0;try{await e.run(i.value.id),y.success(p("workflow.msg.runSuccess",{status:e.runStatus}))}catch(o){y.error(p("workflow.msg.runFailed",{err:o.message}))}finally{O.value=!1}}const l=q();async function d(){try{const o=await l.saveJson(JSON.parse(e.exportJson(i.value)),{defaultPath:`${i.value.id||"workflow"}.json`});if(o.canceled)return;o.path&&y.success(p("workflow.msg.exportSuccess",{path:o.path}))}catch(o){y.error(p("workflow.msg.exportFailed",{err:o.message}))}}const m={t:p,store:e,current:i,running:O,validation:w,newWorkflow:z,selectWorkflow:W,addStep:U,removeStep:R,saveCurrent:P,removeOne:J,runCurrent:b,fs:l,exportJson:d,ref:S,computed:M,onMounted:B,get useWorkflowStore(){return D},get useFs(){return q},get PlusOutlined(){return Q},get ReloadOutlined(){return G},get message(){return y},get useI18n(){return V}};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}},X={style:{display:"flex","align-items":"center","justify-content":"space-between","margin-bottom":"24px"}},ee={class:"page-title"},te={class:"page-sub"},oe={style:{flex:"1"}},ae={style:{"font-weight":"500"}},le={style:{color:"#888","font-size":"12px"}},re={style:{color:"#888","font-size":"12px"}},ne={key:0,style:{"margin-top":"12px",color:"#d32f2f"}},se={style:{color:"#1976d2"}},ie={key:0},de={key:1},ue={key:2,style:{color:"#555"}};function ce(t,c,p,e,i,O){const w=v("a-button"),z=v("a-space"),W=v("a-empty"),U=v("a-list-item"),R=v("a-list"),P=v("a-card"),J=v("a-col"),b=v("a-input"),l=v("a-form-item"),d=v("a-divider"),m=v("a-select"),o=v("a-input-group"),_=v("a-textarea"),E=v("a-form"),N=v("a-row");return f(),k("div",null,[C("div",X,[C("div",null,[C("h2",ee,u(t.$t("workflow.title")),1),C("p",te,u(t.$t("workflow.subtitle")),1)]),r(z,null,{default:n(()=>[r(w,{onClick:e.newWorkflow,type:"primary"},{icon:n(()=>[r(e.PlusOutlined)]),default:n(()=>[g(" "+u(t.$t("workflow.new")),1)]),_:1}),r(w,{ghost:"",loading:e.store.loading,onClick:c[0]||(c[0]=a=>e.store.list())},{icon:n(()=>[r(e.ReloadOutlined)]),default:n(()=>[g(" "+u(t.$t("workflow.refresh")),1)]),_:1},8,["loading"])]),_:1})]),r(N,{gutter:16},{default:n(()=>[r(J,{span:8},{default:n(()=>[r(P,{title:t.$t("workflow.list.title"),size:"small"},{default:n(()=>[e.store.workflows.length?(f(),I(R,{key:1,"data-source":e.store.workflows,size:"small"},{renderItem:n(({item:a})=>[r(U,{class:H({active:e.current?.id===a.id}),style:{cursor:"pointer"},onClick:h=>e.selectWorkflow(a.id)},{default:n(()=>[C("div",oe,[C("div",ae,u(a.name||a.id),1),C("div",le,u(t.$t("workflow.list.stepCount",{n:(a.steps||[]).length})),1)]),r(w,{size:"small",danger:"",type:"text",onClick:T(h=>e.removeOne(a.id),["stop"])},{default:n(()=>[g(u(t.$t("workflow.list.delete")),1)]),_:1},8,["onClick"])]),_:2},1032,["class","onClick"])]),_:1},8,["data-source"])):(f(),I(W,{key:0,description:t.$t("workflow.list.empty")},null,8,["description"]))]),_:1},8,["title"])]),_:1}),r(J,{span:16},{default:n(()=>[e.current?(f(),I(P,{key:0,size:"small"},{title:n(()=>[g(u(t.$t("workflow.editor.headerPrefix"))+" "+u(e.current.name||e.current.id),1)]),extra:n(()=>[r(z,null,{default:n(()=>[r(w,{size:"small",onClick:e.exportJson},{default:n(()=>[g(u(t.$t("workflow.editor.exportJson")),1)]),_:1}),r(w,{size:"small",loading:e.running,onClick:e.runCurrent,disabled:!e.current.id},{default:n(()=>[g(u(t.$t("workflow.editor.run")),1)]),_:1},8,["loading","disabled"]),r(w,{size:"small",type:"primary",onClick:e.saveCurrent},{default:n(()=>[g(u(t.$t("workflow.editor.save")),1)]),_:1})]),_:1})]),default:n(()=>[r(E,{layout:"vertical",model:e.current},{default:n(()=>[r(l,{label:t.$t("workflow.editor.idLabel")},{default:n(()=>[r(b,{value:e.current.id,"onUpdate:value":c[1]||(c[1]=a=>e.current.id=a),placeholder:t.$t("workflow.editor.idPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"]),r(l,{label:t.$t("workflow.editor.nameLabel")},{default:n(()=>[r(b,{value:e.current.name,"onUpdate:value":c[2]||(c[2]=a=>e.current.name=a),placeholder:t.$t("workflow.editor.namePlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"]),r(l,{label:t.$t("workflow.editor.descLabel")},{default:n(()=>[r(b,{value:e.current.description,"onUpdate:value":c[3]||(c[3]=a=>e.current.description=a),placeholder:t.$t("workflow.editor.descPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"]),r(d,null,{default:n(()=>[g(u(t.$t("workflow.editor.stepsDivider")),1)]),_:1}),(f(!0),k($,null,A(e.current.steps,(a,h)=>(f(),k("div",{key:h,class:"step-card"},[r(z,{style:{width:"100%","margin-bottom":"8px"},direction:"vertical"},{default:n(()=>[r(o,{compact:""},{default:n(()=>[r(b,{value:a.id,"onUpdate:value":s=>a.id=s,placeholder:t.$t("workflow.editor.stepIdPlaceholder"),style:{width:"30%"}},null,8,["value","onUpdate:value","placeholder"]),r(m,{value:a.dependsOn,"onUpdate:value":s=>a.dependsOn=s,mode:"tags",placeholder:t.$t("workflow.editor.dependsOnPlaceholder"),style:{width:"70%"}},null,8,["value","onUpdate:value","placeholder"])]),_:2},1024),r(_,{value:a.message,"onUpdate:value":s=>a.message=s,rows:2,placeholder:t.$t("workflow.editor.messagePlaceholder")},null,8,["value","onUpdate:value","placeholder"]),r(b,{value:a.when,"onUpdate:value":s=>a.when=s,placeholder:t.$t("workflow.editor.whenPlaceholder")},null,8,["value","onUpdate:value","placeholder"]),r(z,null,{default:n(()=>[r(w,{size:"small",danger:"",onClick:s=>e.removeStep(h)},{default:n(()=>[g(u(t.$t("workflow.editor.stepDelete")),1)]),_:1},8,["onClick"]),C("span",re,u(t.$t("workflow.editor.stepCounter",{idx:h+1,total:e.current.steps.length})),1)]),_:2},1024)]),_:2},1024)]))),128)),r(w,{block:"",onClick:e.addStep},{default:n(()=>[g(u(t.$t("workflow.editor.addStep")),1)]),_:1})]),_:1},8,["model"]),e.validation&&!e.validation.valid?(f(),k("div",ne,[(f(!0),k($,null,A(e.validation.errors,a=>(f(),k("div",{key:a},"• "+u(a),1))),128))])):L("v-if",!0)]),_:1})):(f(),I(P,{key:1,size:"small"},{default:n(()=>[r(W,{description:t.$t("workflow.editor.emptyHint")},null,8,["description"])]),_:1})),e.store.runEvents.length?(f(),I(P,{key:2,size:"small",title:t.$t("workflow.runLog.title"),style:{"margin-top":"12px"}},{default:n(()=>[(f(!0),k($,null,A(e.store.runEvents,(a,h)=>(f(),k("div",{key:h,style:{"font-family":"monospace","font-size":"12px","margin-bottom":"4px"}},[C("span",se,u(a.type),1),a.stepId?(f(),k("span",ie," ["+u(a.stepId)+"]",1)):L("v-if",!0),a.status?(f(),k("span",de," → "+u(a.status),1)):L("v-if",!0),a.summary?(f(),k("span",ue," — "+u(a.summary),1)):L("v-if",!0)]))),128))]),_:1},8,["title"])):L("v-if",!0)]),_:1})]),_:1})])}const _e=x(Y,[["render",ce],["__scopeId","data-v-93cd2fd3"],["__file","/tmp/cc-web-panel-JZFoWK/repo/packages/web-panel/src/views/WorkflowEditor.vue"]]);export{_e as default};
|
|
1
|
+
import{E as H,r as S,I as v,J as k,U as C,R as u,c as r,K as n,o as B,b as M,P as f,Q as g,S as L,_ as K,a2 as T,F as $,Z as A,V as F}from"./vendor-BvqAck49.js";import{u as x,_ as G,b as V,d as y}from"./index-Y1b8i0NV.js";import{u as q}from"./useFs-ByrwSCOr.js";import{R as Q,as as Y}from"./icons-DP3uiYxy.js";import"./useShellMode-CgR0wCYM.js";const D=H("workflow",()=>{const t=x(),c=S([]),p=S(null),e=S([]),i=S("idle"),O=S(!1),w=S(null);async function P(){O.value=!0,w.value=null;try{await t.waitConnected();const l=await t.sendRaw({type:"workflow-list"});return c.value=Array.isArray(l.workflows)?l.workflows:[],c.value}catch(l){throw w.value=l.message,l}finally{O.value=!1}}async function U(l){await t.waitConnected();const d=await t.sendRaw({type:"workflow-get",id:l});return p.value=d.workflow||null,p.value}async function I(l){await t.waitConnected();const d=await t.sendRaw({type:"workflow-save",workflow:l});if(d.saved){const m=c.value.findIndex(o=>o.id===l.id);m>=0?c.value.splice(m,1,l):c.value.push(l)}return d}async function J(l){await t.waitConnected();const d=await t.sendRaw({type:"workflow-remove",id:l});return d.removed&&(c.value=c.value.filter(m=>m.id!==l)),d}async function z(l,{onEvent:d}={}){await t.waitConnected(),e.value=[],i.value="running";const m=t.onMessage(o=>{!o||typeof o.type!="string"||o.type.startsWith("workflow:")&&(e.value.push(o),d&&d(o),o.type==="workflow:done"&&(i.value=o.status||"completed"))});try{return await t.sendRaw({type:"workflow-run",id:l},12e4)}catch(o){throw i.value="failed",w.value=o.message,o}finally{m()}}function W(l){const d=[];if(!l||typeof l!="object")return{valid:!1,errors:["workflow must be an object"]};if(l.id||d.push("id required"),l.name||d.push("name required"),!Array.isArray(l.steps)||l.steps.length===0)d.push("steps required");else{let h=function(s){a.set(s,E);for(const R of o.get(s)||[]){if(!o.has(R)){d.push(`unknown dependency: ${R}`);continue}const j=a.get(R);if(j===E){d.push(`cycle via ${s} -> ${R}`);return}j===_&&h(R)}a.set(s,N)};const m=new Set;for(const s of l.steps)s.id||d.push("step.id required"),m.has(s.id)&&d.push(`duplicate step id: ${s.id}`),m.add(s.id);const o=new Map;for(const s of l.steps)o.set(s.id,s.dependsOn||[]);const _=0,E=1,N=2,a=new Map([...o.keys()].map(s=>[s,_]));for(const s of o.keys())a.get(s)===_&&h(s)}return{valid:d.length===0,errors:d}}function b(l){return JSON.stringify(l,null,2)}return{workflows:c,current:p,runEvents:e,runStatus:i,loading:O,error:w,list:P,get:U,save:I,remove:J,run:z,validateLocal:W,exportJson:b}}),Z={__name:"WorkflowEditor",setup(t,{expose:c}){c();const{t:p}=V(),e=D(),i=S(null),O=S(!1),w=M(()=>i.value?e.validateLocal(i.value):null);B(()=>e.list().catch(()=>{}));function P(){i.value={id:"",name:"",description:"",steps:[{id:"step1",message:"",dependsOn:[]}]}}async function U(o){try{const _=await e.get(o);_&&(i.value=JSON.parse(JSON.stringify(_)),i.value.steps||(i.value.steps=[]))}catch(_){y.error(p("workflow.msg.loadFailed",{err:_.message}))}}function I(){i.value.steps||(i.value.steps=[]),i.value.steps.push({id:`step${i.value.steps.length+1}`,message:"",dependsOn:[]})}function J(o){i.value.steps.splice(o,1)}async function z(){const o=e.validateLocal(i.value);if(!o.valid){y.error(o.errors[0]);return}try{await e.save(i.value),y.success(p("workflow.msg.saveSuccess"))}catch(_){y.error(p("workflow.msg.saveFailed",{err:_.message}))}}async function W(o){try{await e.remove(o),i.value?.id===o&&(i.value=null),y.success(p("workflow.msg.deleteSuccess"))}catch(_){y.error(p("workflow.msg.deleteFailed",{err:_.message}))}}async function b(){O.value=!0;try{await e.run(i.value.id),y.success(p("workflow.msg.runSuccess",{status:e.runStatus}))}catch(o){y.error(p("workflow.msg.runFailed",{err:o.message}))}finally{O.value=!1}}const l=q();async function d(){try{const o=await l.saveJson(JSON.parse(e.exportJson(i.value)),{defaultPath:`${i.value.id||"workflow"}.json`});if(o.canceled)return;o.path&&y.success(p("workflow.msg.exportSuccess",{path:o.path}))}catch(o){y.error(p("workflow.msg.exportFailed",{err:o.message}))}}const m={t:p,store:e,current:i,running:O,validation:w,newWorkflow:P,selectWorkflow:U,addStep:I,removeStep:J,saveCurrent:z,removeOne:W,runCurrent:b,fs:l,exportJson:d,ref:S,computed:M,onMounted:B,get useWorkflowStore(){return D},get useFs(){return q},get PlusOutlined(){return Y},get ReloadOutlined(){return Q},get message(){return y},get useI18n(){return V}};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}},X={style:{display:"flex","align-items":"center","justify-content":"space-between","margin-bottom":"24px"}},ee={class:"page-title"},te={class:"page-sub"},oe={style:{flex:"1"}},ae={style:{"font-weight":"500"}},le={style:{color:"#888","font-size":"12px"}},re={style:{color:"#888","font-size":"12px"}},ne={key:0,style:{"margin-top":"12px",color:"#d32f2f"}},se={style:{color:"#1976d2"}},ie={key:0},de={key:1},ue={key:2,style:{color:"#555"}};function ce(t,c,p,e,i,O){const w=v("a-button"),P=v("a-space"),U=v("a-empty"),I=v("a-list-item"),J=v("a-list"),z=v("a-card"),W=v("a-col"),b=v("a-input"),l=v("a-form-item"),d=v("a-divider"),m=v("a-select"),o=v("a-input-group"),_=v("a-textarea"),E=v("a-form"),N=v("a-row");return f(),k("div",null,[C("div",X,[C("div",null,[C("h2",ee,u(t.$t("workflow.title")),1),C("p",te,u(t.$t("workflow.subtitle")),1)]),r(P,null,{default:n(()=>[r(w,{onClick:e.newWorkflow,type:"primary"},{icon:n(()=>[r(e.PlusOutlined)]),default:n(()=>[g(" "+u(t.$t("workflow.new")),1)]),_:1}),r(w,{ghost:"",loading:e.store.loading,onClick:c[0]||(c[0]=a=>e.store.list())},{icon:n(()=>[r(e.ReloadOutlined)]),default:n(()=>[g(" "+u(t.$t("workflow.refresh")),1)]),_:1},8,["loading"])]),_:1})]),r(N,{gutter:16},{default:n(()=>[r(W,{span:8},{default:n(()=>[r(z,{title:t.$t("workflow.list.title"),size:"small"},{default:n(()=>[e.store.workflows.length?(f(),L(J,{key:1,"data-source":e.store.workflows,size:"small"},{renderItem:n(({item:a})=>[r(I,{class:K({active:e.current?.id===a.id}),style:{cursor:"pointer"},onClick:h=>e.selectWorkflow(a.id)},{default:n(()=>[C("div",oe,[C("div",ae,u(a.name||a.id),1),C("div",le,u(t.$t("workflow.list.stepCount",{n:(a.steps||[]).length})),1)]),r(w,{size:"small",danger:"",type:"text",onClick:T(h=>e.removeOne(a.id),["stop"])},{default:n(()=>[g(u(t.$t("workflow.list.delete")),1)]),_:1},8,["onClick"])]),_:2},1032,["class","onClick"])]),_:1},8,["data-source"])):(f(),L(U,{key:0,description:t.$t("workflow.list.empty")},null,8,["description"]))]),_:1},8,["title"])]),_:1}),r(W,{span:16},{default:n(()=>[e.current?(f(),L(z,{key:0,size:"small"},{title:n(()=>[g(u(t.$t("workflow.editor.headerPrefix"))+" "+u(e.current.name||e.current.id),1)]),extra:n(()=>[r(P,null,{default:n(()=>[r(w,{size:"small",onClick:e.exportJson},{default:n(()=>[g(u(t.$t("workflow.editor.exportJson")),1)]),_:1}),r(w,{size:"small",loading:e.running,onClick:e.runCurrent,disabled:!e.current.id},{default:n(()=>[g(u(t.$t("workflow.editor.run")),1)]),_:1},8,["loading","disabled"]),r(w,{size:"small",type:"primary",onClick:e.saveCurrent},{default:n(()=>[g(u(t.$t("workflow.editor.save")),1)]),_:1})]),_:1})]),default:n(()=>[r(E,{layout:"vertical",model:e.current},{default:n(()=>[r(l,{label:t.$t("workflow.editor.idLabel")},{default:n(()=>[r(b,{value:e.current.id,"onUpdate:value":c[1]||(c[1]=a=>e.current.id=a),placeholder:t.$t("workflow.editor.idPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"]),r(l,{label:t.$t("workflow.editor.nameLabel")},{default:n(()=>[r(b,{value:e.current.name,"onUpdate:value":c[2]||(c[2]=a=>e.current.name=a),placeholder:t.$t("workflow.editor.namePlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"]),r(l,{label:t.$t("workflow.editor.descLabel")},{default:n(()=>[r(b,{value:e.current.description,"onUpdate:value":c[3]||(c[3]=a=>e.current.description=a),placeholder:t.$t("workflow.editor.descPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"]),r(d,null,{default:n(()=>[g(u(t.$t("workflow.editor.stepsDivider")),1)]),_:1}),(f(!0),k($,null,A(e.current.steps,(a,h)=>(f(),k("div",{key:h,class:"step-card"},[r(P,{style:{width:"100%","margin-bottom":"8px"},direction:"vertical"},{default:n(()=>[r(o,{compact:""},{default:n(()=>[r(b,{value:a.id,"onUpdate:value":s=>a.id=s,placeholder:t.$t("workflow.editor.stepIdPlaceholder"),style:{width:"30%"}},null,8,["value","onUpdate:value","placeholder"]),r(m,{value:a.dependsOn,"onUpdate:value":s=>a.dependsOn=s,mode:"tags",placeholder:t.$t("workflow.editor.dependsOnPlaceholder"),style:{width:"70%"}},null,8,["value","onUpdate:value","placeholder"])]),_:2},1024),r(_,{value:a.message,"onUpdate:value":s=>a.message=s,rows:2,placeholder:t.$t("workflow.editor.messagePlaceholder")},null,8,["value","onUpdate:value","placeholder"]),r(b,{value:a.when,"onUpdate:value":s=>a.when=s,placeholder:t.$t("workflow.editor.whenPlaceholder")},null,8,["value","onUpdate:value","placeholder"]),r(P,null,{default:n(()=>[r(w,{size:"small",danger:"",onClick:s=>e.removeStep(h)},{default:n(()=>[g(u(t.$t("workflow.editor.stepDelete")),1)]),_:1},8,["onClick"]),C("span",re,u(t.$t("workflow.editor.stepCounter",{idx:h+1,total:e.current.steps.length})),1)]),_:2},1024)]),_:2},1024)]))),128)),r(w,{block:"",onClick:e.addStep},{default:n(()=>[g(u(t.$t("workflow.editor.addStep")),1)]),_:1})]),_:1},8,["model"]),e.validation&&!e.validation.valid?(f(),k("div",ne,[(f(!0),k($,null,A(e.validation.errors,a=>(f(),k("div",{key:a},"• "+u(a),1))),128))])):F("v-if",!0)]),_:1})):(f(),L(z,{key:1,size:"small"},{default:n(()=>[r(U,{description:t.$t("workflow.editor.emptyHint")},null,8,["description"])]),_:1})),e.store.runEvents.length?(f(),L(z,{key:2,size:"small",title:t.$t("workflow.runLog.title"),style:{"margin-top":"12px"}},{default:n(()=>[(f(!0),k($,null,A(e.store.runEvents,(a,h)=>(f(),k("div",{key:h,style:{"font-family":"monospace","font-size":"12px","margin-bottom":"4px"}},[C("span",se,u(a.type),1),a.stepId?(f(),k("span",ie," ["+u(a.stepId)+"]",1)):F("v-if",!0),a.status?(f(),k("span",de," → "+u(a.status),1)):F("v-if",!0),a.summary?(f(),k("span",ue," — "+u(a.summary),1)):F("v-if",!0)]))),128))]),_:1},8,["title"])):F("v-if",!0)]),_:1})]),_:1})])}const _e=G(Z,[["render",ce],["__scopeId","data-v-93cd2fd3"],["__file","/tmp/cc-web-panel-aLcItP/repo/packages/web-panel/src/views/WorkflowEditor.vue"]]);export{_e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as St,r as h,b as yt,a as v}from"./vendor-BvqAck49.js";import{u as S}from"./index-
|
|
1
|
+
import{E as St,r as h,b as yt,a as v}from"./vendor-BvqAck49.js";import{u as S}from"./index-Y1b8i0NV.js";let $=0;function K(a){return $+=1,`msg_${Date.now()}_${$}_${a}`}const C=Object.freeze({USER:"user",ASSISTANT:"assistant",SYSTEM:"system",INTENT_RECOGNITION:"intent-recognition",INTENT_CONFIRMATION:"intent-confirmation",TASK_ANALYSIS:"task-analysis",INTERVIEW:"interview",TASK_PLAN:"task-plan",PROGRESS:"progress",ERROR:"error"}),B=Object.freeze({USER:"user",ASSISTANT:"assistant",SYSTEM:"system"});function Tt(a,s){return{id:K("intent_confirmation"),role:B.ASSISTANT,type:C.INTENT_CONFIRMATION,content:"我理解您的需求如下,请确认:",timestamp:Date.now(),metadata:{originalInput:a,understanding:s||{},status:"pending",correction:null}}}function ht(a,s,f={}){const{reason:c,extractedInfo:m}=f,g={CONTINUE_EXECUTION:"✅ 收到,继续执行任务...",MODIFY_REQUIREMENT:`⚠️ 检测到需求变更:${m||s}`,CLARIFICATION:`📝 已记录补充信息:${m||s}`,CANCEL_TASK:"❌ 任务已取消"};return{id:K("intent_system"),role:B.SYSTEM,type:C.SYSTEM,content:g[a]||"⚠️ 未识别意图",timestamp:Date.now(),metadata:{intent:a,reason:c,userInput:s,extractedInfo:m}}}const k="新对话",P="新 Agent",G="cc.web-panel.chat.contextMode",J=["project","file","global"],X="cc.web-panel.chat.intentDecisions",F=200,z="cc.web-panel.chat.intentEnabled";function Et(){try{const a=typeof localStorage<"u"?localStorage.getItem(G):null;return J.includes(a)?a:null}catch{return null}}function wt(){try{return typeof localStorage>"u"?!1:localStorage.getItem(z)==="true"}catch{return!1}}function V(){try{if(typeof localStorage>"u")return{};const a=localStorage.getItem(X);if(!a)return{};const s=JSON.parse(a);return s&&typeof s=="object"?s:{}}catch{return{}}}function _t(a){try{if(typeof localStorage>"u")return;const s=Object.entries(a);if(s.length>F){s.sort((c,m)=>(c[1]?.ts||0)-(m[1]?.ts||0));const f=s.slice(-F);a=Object.fromEntries(f)}localStorage.setItem(X,JSON.stringify(a))}catch{}}function Q(a,s,f){if(!a||!s)return;const c=V();c[`${a}::${s}`]={...f,ts:Date.now()},_t(c)}function Nt(a,s){return!a||!s?null:V()[`${a}::${s}`]||null}const At={"assistant.delta":"response-token","assistant.final":"response-complete","assistant.message":"response-complete","tool.call.started":"tool-executing","tool.call.completed":"tool-result","tool.call.failed":"tool-result","slot.filling":"question","approval.requested":"question",error:"error"},Dt=St("chat",()=>{const a=h([]),s=h(null),f=v({}),c=v({}),m=v({}),g=v({}),j=(typeof window<"u"&&window.__CC_CONFIG__||{}).mode==="project",W=j?"project":"global",O=Et(),M=h(O==="file"||O==="project"&&!j?"global":O||W);function H(t){if(J.includes(t)){M.value=t;try{typeof localStorage<"u"&&localStorage.setItem(G,t)}catch{}}}const w=h(wt());function Z(t){w.value=!!t;try{typeof localStorage<"u"&&localStorage.setItem(z,w.value?"true":"false")}catch{}}const _="cc.web-panel.chat.customQuickPrompts";function tt(){try{if(typeof localStorage>"u")return null;const t=localStorage.getItem(_);if(!t)return null;const e=JSON.parse(t);if(!Array.isArray(e))return null;const n=e.map(o=>typeof o=="string"?o.trim():"").filter(o=>o.length>0&&o.length<=120).slice(0,12);return n.length>0?n:null}catch{return null}}const I=h(tt());function et(t){if(t==null){I.value=null;try{typeof localStorage<"u"&&localStorage.removeItem(_)}catch{}return}if(!Array.isArray(t))return;const e=t.map(n=>typeof n=="string"?n.trim():"").filter(n=>n.length>0&&n.length<=120).slice(0,12);I.value=e.length>0?e:null;try{typeof localStorage<"u"&&(e.length>0?localStorage.setItem(_,JSON.stringify(e)):localStorage.removeItem(_))}catch{}}const D=h(null);let L=0;function nt({prompt:t,autoSend:e=!0,session:n=null}={}){!t||!String(t).trim()||(L+=1,D.value={prompt:String(t),autoSend:e!==!1,session:n||null,token:`staged::${L}::${Date.now()}`})}function ot(){D.value=null}let U=null;const q=new Set;function y(t){return f[t]||(f[t]=[]),f[t]}function x(t){return!!(t&&g[t])}function T(t,e){t&&(g[t]=!!e)}function b(t){if(!t?.id)return;const e=a.value.find(n=>n.id===t.id);if(e){Object.assign(e,t);return}a.value.unshift(t)}function R(t,e=S()){f[t]||(f[t]=[]),c[t]||(c[t]={content:"",active:!1}),g[t]==null&&(g[t]=!1),!q.has(t)&&(q.add(t),e.onSession(t,n=>st(t,n)))}function N(t=S()){U||(U=t.onRuntimeEvent(e=>{const n=e.payload||{},o=n.record||{};if(e.type==="session:start"){const r=n.sessionType||o.type||"chat";T(n.sessionId,!1),b({id:n.sessionId,type:r,provider:o.provider||null,model:o.model||null,projectRoot:o.projectRoot||null,status:o.status||"created",title:r==="chat"?k:P,createdAt:Date.now(),messageCount:o.messageCount??0})}else if(e.type==="session:resume"){const r=n.sessionId;if(!r)return;Array.isArray(n.history)&&(f[r]=n.history.map(l=>({role:l.role,content:l.content,timestamp:l.timestamp||Date.now()}))),c[r]||(c[r]={content:"",active:!1}),g[r]==null&&(g[r]=!1),b({id:r,type:o.type||null,provider:o.provider||null,model:o.model||null,projectRoot:o.projectRoot||null,status:o.status||"resumed",messageCount:o.messageCount??(Array.isArray(n.history)?n.history.length:0)})}else if(e.type==="session:end"){const r=n.sessionId;a.value=a.value.filter(l=>l.id!==r),delete g[r],s.value===r&&(s.value=a.value[0]?.id||null)}}))}async function rt(){const t=S();N(t),a.value=await t.listSessions(),a.value.forEach(e=>{R(e.id,t)})}async function at(t="chat",e={}){const n=S();N(n);const o=await n.createSession(t,null,e);return b({id:o,type:t,title:t==="chat"?k:P,createdAt:Date.now(),messageCount:0}),T(o,!1),R(o,n),s.value=o,o}function st(t,e){const n=y(t),o=At[e.type]||e.type,r=e.payload||{};if(o==="response-token"){c[t]||(c[t]={content:"",active:!0});const l=e.token||r.token||r.delta||r.content||"";c[t].content+=l,c[t].active=!0,T(t,!0)}else if(o==="response-complete"){const l=e.content||r.content||c[t]?.content||"";n.push({role:"assistant",content:l,timestamp:Date.now()}),c[t]&&(c[t].content="",c[t].active=!1);const u=a.value.find(i=>i.id===t);if(u&&(u.title===k||u.title===P)){const i=n.find(p=>p.role==="user");i&&(u.title=i.content.slice(0,30))}u&&(u.messageCount=n.filter(i=>i.role!=="tool").length),T(t,!1)}else if(o==="tool-executing")n.push({role:"tool",tool:e.tool||r.tool||r.toolName||"unknown",input:e.input||r.input||r.args||null,status:"running",timestamp:Date.now()}),T(t,!0);else if(o==="tool-result"){const l=e.tool||r.tool||r.toolName||"unknown",u=[...n].reverse().find(i=>i.role==="tool"&&i.tool===l);u&&(u.result=e.result||r.result||r.output||null,u.status="done")}else if(o==="question")m[t]={requestId:e.requestId||r.requestId||e.id,question:e.question||r.question||r.message||"",choices:e.choices||r.choices||r.options||[]},T(t,!1);else if(o==="error"){const l=e.message||r.message||"Unknown error";n.push({role:"assistant",content:`Error: ${l}`,timestamp:Date.now()}),T(t,!1),c[t]&&(c[t].active=!1)}}async function E(t,e){const n=S();N(n),y(t).push({role:"user",content:e,timestamp:Date.now()}),c[t]||(c[t]={content:"",active:!1}),c[t].active=!0,T(t,!0),n.sendSessionMessage(t,e)}async function ct(t,e){if(!t||!e?.trim())return;const n=M.value;if(n==="global"||!w.value){await E(t,e);return}const o=S(),r=y(t).filter(d=>d.role==="user"||d.role==="assistant").slice(-5).map(d=>({role:d.role,content:String(d.content||"").slice(0,500)})),l=Tt(e,{});l.metadata.streaming=!0,l.metadata.streamingTokens=0,l.content="理解中…";const u=y(t);u.push(l);const i=u[u.length-1];let p=null;const Y=new AbortController,gt=setTimeout(()=>Y.abort(new Error("Intent understand wall-clock timeout")),9e4);try{const d=await o.sendStream({type:"chat.intent.understand-stream",sessionId:t,userInput:e,contextMode:n,history:r},{onChunk:()=>{i.metadata.streamingTokens=(i.metadata.streamingTokens||0)+1},idleMs:6e4,signal:Y.signal});d?.success&&(p=d)}catch{}finally{clearTimeout(gt)}if(!(p&&(p.correctedInput&&p.correctedInput!==e||Array.isArray(p.keyPoints)&&p.keyPoints.length>0))){const d=u.indexOf(i);d>=0&&u.splice(d,1),await E(t,e);return}i.content="我理解您的需求如下,请确认:",i.metadata.streaming=!1,i.metadata.understanding={correctedInput:p.correctedInput,intent:p.intent,keyPoints:p.keyPoints};const A=Nt(t,i.id);A?.status&&(i.metadata.status=A.status,A.correction&&(i.metadata.correction=A.correction))}async function lt(t,e){const o=y(t).find(l=>l.id===e);if(!o||o.type!==C.INTENT_CONFIRMATION)return;o.metadata&&(o.metadata.status="confirmed"),Q(t,e,{status:"confirmed",correction:null});const r=o.metadata?.originalInput||"";r.trim()&&await E(t,r)}async function it(t,e,n){const r=y(t).find(u=>u.id===e);if(!r||r.type!==C.INTENT_CONFIRMATION)return;r.metadata&&(r.metadata.status="corrected",r.metadata.correction=n),Q(t,e,{status:"corrected",correction:n});const l=(n||"").trim();l&&await E(t,l)}async function ut(t,e,n={}){const o=S();try{return await o.sendRaw({type:"chat.intent.classify-followup",sessionId:t,input:e,context:n},2e4)}catch{return null}}function ft(t,e,n,o={}){y(t).push(ht(e,n,o))}function dt(t,e){const n=S(),o=m[t];o&&(n.answerQuestion(t,o.requestId,e),delete m[t])}async function pt(t){const e=S();if(N(e),s.value=t,R(t,e),!f[t]||f[t].length===0)try{await e.resumeSession(t)}catch{}}const mt=yt(()=>x(s.value));return{sessions:a,currentSessionId:s,messages:f,streaming:c,pendingQuestion:m,loadingBySession:g,isLoading:mt,contextMode:M,setContextMode:H,intentEnabled:w,setIntentEnabled:Z,customQuickPrompts:I,setCustomQuickPrompts:et,pendingAutoSend:D,scheduleAutoSend:nt,clearAutoSend:ot,getIsLoading:x,loadSessions:rt,createSession:at,sendMessage:E,submitUserInput:ct,confirmIntent:lt,correctIntent:it,classifyFollowupIntent:ut,pushFollowupIntentBanner:ft,answerQuestion:dt,switchSession:pt,getMessages:y}});export{C as M,Dt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./index-
|
|
1
|
+
import{h as t}from"./index-Y1b8i0NV.js";const n=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function C(e,s){return n.reduce((o,r)=>{const u=e[`${r}-1`],l=e[`${r}-3`],i=e[`${r}-6`],a=e[`${r}-7`];return t(t({},o),s(r,{lightColor:u,lightBorderColor:l,darkColor:i,textColor:a}))},{})}const c=n.map(e=>`${e}-inverse`),g=["success","processing","error","default","warning"];function m(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...c,...n].includes(e):n.includes(e)}function p(e){return g.includes(e)}export{n as P,p as a,C as g,m as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as r}from"./index-
|
|
1
|
+
import{h as r}from"./index-Y1b8i0NV.js";function a(o,t,i){const{focusElCls:e,focus:n,borderElCls:s}=i,m=s?"> *":"",d=["hover",n?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${m}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-o.lineWidth},"&-item":r(r({[d]:{zIndex:2}},e?{[`&${e}`]:{zIndex:2}}:{}),{[`&[disabled] ${m}`]:{zIndex:0}})}}function $(o,t,i){const{borderElCls:e}=i,n=e?`> ${e}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${n}, &${o}-sm ${n}, &${o}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${n}, &${o}-sm ${n}, &${o}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function l(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:i}=o,e=`${i}-compact`;return{[e]:r(r({},a(o,e,t)),$(i,e,t))}}export{l as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s}from"./index-
|
|
1
|
+
import{h as s}from"./index-Y1b8i0NV.js";import{i as c,p as a,e as i,a as u}from"./vendor-BvqAck49.js";function x(o){const t=Symbol("contextKey");return{useProvide:(r,n)=>{const e=u({});return a(t,e),i(()=>{s(e,r,n||{})}),e},useInject:()=>c(t,o)||{}}}export{x as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{O as r}from"./index-Y1b8i0NV.js";const o=((n,a,e)=>{r(n,`[ant-design-vue: ${a}] ${e}`)});export{o as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as O,M as y,b as v,j as T}from"./Trigger-
|
|
1
|
+
import{l as O,M as y,b as v,j as T}from"./Trigger-2O-BaTQG.js";import{a as s,S as f,m as x,d as w,p as C}from"./_getTag-DnrRH4E6.js";import{i as c}from"./isSymbol-S5WZT7lS.js";function _(n,r){for(var e=-1,i=n==null?0:n.length,t=Array(i);++e<i;)t[e]=r(n[e],e,n);return t}var p=f?f.prototype:void 0,d=p?p.toString:void 0;function S(n){if(typeof n=="string")return n;if(s(n))return _(n,S)+"";if(c(n))return d?d.call(n):"";var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function I(n){return n}function E(n,r,e){switch(e.length){case 0:return n.call(r);case 1:return n.call(r,e[0]);case 2:return n.call(r,e[0],e[1]);case 3:return n.call(r,e[0],e[1],e[2])}return n.apply(r,e)}var M=800,A=16,N=Date.now;function R(n){var r=0,e=0;return function(){var i=N(),t=A-(i-e);if(e=i,t>0){if(++r>=M)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}function z(n){return function(){return n}}var l=(function(){try{var n=x(Object,"defineProperty");return n({},"",{}),n}catch{}})(),$=l?function(n,r){return l(n,"toString",{configurable:!0,enumerable:!1,value:z(r),writable:!0})}:I,F=R($);function H(n,r,e){r=="__proto__"&&l?l(n,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[r]=e}var V=Object.prototype,D=V.hasOwnProperty;function un(n,r,e){var i=n[r];(!(D.call(n,r)&&O(i,e))||e===void 0&&!(r in n))&&H(n,r,e)}var g=Math.max;function K(n,r,e){return r=g(r===void 0?n.length-1:r,0),function(){for(var i=arguments,t=-1,a=g(i.length-r,0),u=Array(a);++t<a;)u[t]=i[r+t];t=-1;for(var o=Array(r+1);++t<r;)o[t]=i[t];return o[r]=e(u),E(n,this,o)}}var U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/;function Z(n,r){if(s(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||c(n)?!0:X.test(n)||!U.test(n)||r!=null&&n in Object(r)}var q="Expected a function";function h(n,r){if(typeof n!="function"||r!=null&&typeof r!="function")throw new TypeError(q);var e=function(){var i=arguments,t=r?r.apply(this,i):i[0],a=e.cache;if(a.has(t))return a.get(t);var u=n.apply(this,i);return e.cache=a.set(t,u)||a,u};return e.cache=new(h.Cache||y),e}h.Cache=y;var G=500;function L(n){var r=h(n,function(i){return e.size===G&&e.clear(),i}),e=r.cache;return r}var B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J=/\\(\\)?/g,Q=L(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(B,function(e,i,t,a){r.push(t?a.replace(J,"$1"):i||e)}),r});function W(n){return n==null?"":S(n)}function P(n,r){return s(n)?n:Z(n,r)?[n]:Q(W(n))}function b(n){if(typeof n=="string"||c(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function on(n,r){r=P(r,n);for(var e=0,i=r.length;n!=null&&e<i;)n=n[b(r[e++])];return e&&e==i?n:void 0}var m=f?f.isConcatSpreadable:void 0;function Y(n){return s(n)||w(n)||!!(m&&n&&n[m])}function k(n,r,e,i,t){var a=-1,u=n.length;for(e||(e=Y),t||(t=[]);++a<u;){var o=n[a];e(o)?v(t,o):t[t.length]=o}return t}function j(n){var r=n==null?0:n.length;return r?k(n):[]}function sn(n){return F(K(n,void 0,j),n+"")}function nn(n,r){return n!=null&&r in Object(n)}function rn(n,r,e){r=P(r,n);for(var i=-1,t=r.length,a=!1;++i<t;){var u=b(r[i]);if(!(a=n!=null&&e(n,u)))break;n=n[u]}return a||++i!=t?a:(t=n==null?0:n.length,!!t&&C(t)&&T(u,t)&&(s(n)||w(n)))}function fn(n,r){return n!=null&&rn(n,r,nn)}export{un as a,H as b,on as c,Z as d,_ as e,P as f,sn as g,fn as h,I as i,K as o,F as s,b as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as j,m as z,P as p,q as $,i as S,f as w}from"./index-CznfPnOx.js";import{c as l,d as I,b as x}from"./vendor-BvqAck49.js";import{bg as H,E as b,C as _,a as T}from"./icons-DP3uiYxy.js";const y=()=>l("svg",{width:"252",height:"294"},[l("defs",null,[l("path",{d:"M0 .387h251.772v251.772H0z"},null)]),l("g",{fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(0 .012)"},[l("mask",{fill:"#fff"},null),l("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),l("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),l("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),l("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),l("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),l("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),l("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),l("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),l("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),l("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),l("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),l("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),l("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),l("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),l("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),l("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),l("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),l("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),l("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),l("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),l("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),l("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),l("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),l("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),l("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),l("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),l("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),l("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),l("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),l("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),l("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),l("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),l("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),l("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),l("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),l("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),l("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),l("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),l("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),l("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),V=()=>l("svg",{width:"254",height:"294"},[l("defs",null,[l("path",{d:"M0 .335h253.49v253.49H0z"},null),l("path",{d:"M0 293.665h253.49V.401H0z"},null)]),l("g",{fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(0 .067)"},[l("mask",{fill:"#fff"},null),l("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),l("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),l("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),l("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),l("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),l("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),l("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),l("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),l("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),l("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),l("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),l("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),l("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),l("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),l("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),l("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),l("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),l("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),l("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),l("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),l("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),l("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),l("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),l("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),l("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),l("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),l("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),l("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),l("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),l("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),l("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),l("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),l("mask",{fill:"#fff"},null),l("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),l("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),l("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),l("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),l("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),l("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),l("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),l("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),N=()=>l("svg",{width:"251",height:"294"},[l("g",{fill:"none","fill-rule":"evenodd"},[l("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),l("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),l("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),l("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),l("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),l("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),l("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),l("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),l("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),l("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),l("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),l("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),l("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),l("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),l("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),l("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),l("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),l("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),l("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),l("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),l("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),l("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),l("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),l("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),l("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),l("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),l("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),l("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),l("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),l("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),l("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),l("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),l("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),l("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),l("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),l("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),l("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),R=t=>{const{componentCls:n,lineHeightHeading3:s,iconCls:e,padding:o,paddingXL:r,paddingXS:i,paddingLG:a,marginXS:u,lineHeight:d}=t;return{[n]:{padding:`${a*2}px ${r}px`,"&-rtl":{direction:"rtl"}},[`${n} ${n}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${n} ${n}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${e}`]:{fontSize:t.resultIconFontSize}},[`${n} ${n}-title`]:{color:t.colorTextHeading,fontSize:t.resultTitleFontSize,lineHeight:s,marginBlock:u,textAlign:"center"},[`${n} ${n}-subtitle`]:{color:t.colorTextDescription,fontSize:t.resultSubtitleFontSize,lineHeight:d,textAlign:"center"},[`${n} ${n}-content`]:{marginTop:a,padding:`${a}px ${o*2.5}px`,backgroundColor:t.colorFillAlter},[`${n} ${n}-extra`]:{margin:t.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},G=t=>{const{componentCls:n,iconCls:s}=t;return{[`${n}-success ${n}-icon > ${s}`]:{color:t.resultSuccessIconColor},[`${n}-error ${n}-icon > ${s}`]:{color:t.resultErrorIconColor},[`${n}-info ${n}-icon > ${s}`]:{color:t.resultInfoIconColor},[`${n}-warning ${n}-icon > ${s}`]:{color:t.resultWarningIconColor}}},L=t=>[R(t),G(t)],P=t=>L(t),W=j("Result",t=>{const{paddingLG:n,fontSizeHeading3:s}=t,e=t.fontSize,o=`${n}px 0 0 0`,r=t.colorInfo,i=t.colorError,a=t.colorSuccess,u=t.colorWarning,d=z(t,{resultTitleFontSize:s,resultSubtitleFontSize:e,resultIconFontSize:s*3,resultExtraMargin:o,resultInfoIconColor:r,resultErrorIconColor:i,resultSuccessIconColor:a,resultWarningIconColor:u});return[P(d)]},{imageWidth:250,imageHeight:295}),O={success:T,error:_,info:b,warning:H},M={404:y,500:V,403:N},X=Object.keys(M),q=()=>({prefixCls:String,icon:p.any,status:{type:[Number,String],default:"info"},title:p.any,subTitle:p.any,extra:p.any}),U=(t,n)=>{let{status:s,icon:e}=n;if(X.includes(`${s}`)){const i=M[s];return l("div",{class:`${t}-icon ${t}-image`},[l(i,null,null)])}const o=O[s],r=e||l(o,null,null);return l("div",{class:`${t}-icon`},[r])},J=(t,n)=>n&&l("div",{class:`${t}-extra`},[n]),c=I({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:q(),slots:Object,setup(t,n){let{slots:s,attrs:e}=n;const{prefixCls:o,direction:r}=$("result",t),[i,a]=W(o),u=x(()=>S(o.value,a.value,`${o.value}-${t.status}`,{[`${o.value}-rtl`]:r.value==="rtl"}));return()=>{var d,k,F,f,B,v,E,C;const g=(d=t.title)!==null&&d!==void 0?d:(k=s.title)===null||k===void 0?void 0:k.call(s),D=(F=t.subTitle)!==null&&F!==void 0?F:(f=s.subTitle)===null||f===void 0?void 0:f.call(s),A=(B=t.icon)!==null&&B!==void 0?B:(v=s.icon)===null||v===void 0?void 0:v.call(s),m=(E=t.extra)!==null&&E!==void 0?E:(C=s.extra)===null||C===void 0?void 0:C.call(s),h=o.value;return i(l("div",w(w({},e),{},{class:[u.value,e.class]}),[U(h,{status:t.status,icon:A}),l("div",{class:`${h}-title`},[g]),D&&l("div",{class:`${h}-subtitle`},[D]),J(h,m),s.default&&l("div",{class:`${h}-content`},[s.default()])]))}}});c.PRESENTED_IMAGE_403=M[403];c.PRESENTED_IMAGE_404=M[404];c.PRESENTED_IMAGE_500=M[500];c.install=function(t){return t.component(c.name,c),t};export{M as ExceptionMap,O as IconMap,c as default,q as resultProps};
|
|
1
|
+
import{l as j,m as z,P as p,q as $,i as S,f as w}from"./index-Y1b8i0NV.js";import{c as l,d as I,b as x}from"./vendor-BvqAck49.js";import{bg as H,E as b,C as _,a as T}from"./icons-DP3uiYxy.js";const y=()=>l("svg",{width:"252",height:"294"},[l("defs",null,[l("path",{d:"M0 .387h251.772v251.772H0z"},null)]),l("g",{fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(0 .012)"},[l("mask",{fill:"#fff"},null),l("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),l("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),l("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),l("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),l("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),l("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),l("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),l("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),l("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),l("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),l("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),l("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),l("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),l("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),l("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),l("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),l("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),l("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),l("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),l("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),l("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),l("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),l("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),l("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),l("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),l("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),l("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),l("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),l("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),l("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),l("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),l("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),l("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),l("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),l("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),l("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),l("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),l("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),l("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),l("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),V=()=>l("svg",{width:"254",height:"294"},[l("defs",null,[l("path",{d:"M0 .335h253.49v253.49H0z"},null),l("path",{d:"M0 293.665h253.49V.401H0z"},null)]),l("g",{fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(0 .067)"},[l("mask",{fill:"#fff"},null),l("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),l("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),l("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),l("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),l("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),l("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),l("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),l("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),l("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),l("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),l("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),l("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),l("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),l("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),l("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),l("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),l("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),l("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),l("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),l("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),l("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),l("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),l("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),l("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),l("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),l("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),l("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),l("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),l("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),l("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),l("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),l("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),l("mask",{fill:"#fff"},null),l("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),l("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),l("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),l("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),l("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),l("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),l("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),l("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),l("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),N=()=>l("svg",{width:"251",height:"294"},[l("g",{fill:"none","fill-rule":"evenodd"},[l("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),l("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),l("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),l("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),l("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),l("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),l("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),l("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),l("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),l("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),l("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),l("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),l("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),l("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),l("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),l("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),l("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),l("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),l("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),l("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),l("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),l("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),l("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),l("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),l("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),l("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),l("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),l("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),l("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),l("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),l("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),l("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),l("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),l("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),l("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),l("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),l("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),l("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),l("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),R=t=>{const{componentCls:n,lineHeightHeading3:s,iconCls:e,padding:o,paddingXL:r,paddingXS:i,paddingLG:a,marginXS:u,lineHeight:d}=t;return{[n]:{padding:`${a*2}px ${r}px`,"&-rtl":{direction:"rtl"}},[`${n} ${n}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${n} ${n}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${e}`]:{fontSize:t.resultIconFontSize}},[`${n} ${n}-title`]:{color:t.colorTextHeading,fontSize:t.resultTitleFontSize,lineHeight:s,marginBlock:u,textAlign:"center"},[`${n} ${n}-subtitle`]:{color:t.colorTextDescription,fontSize:t.resultSubtitleFontSize,lineHeight:d,textAlign:"center"},[`${n} ${n}-content`]:{marginTop:a,padding:`${a}px ${o*2.5}px`,backgroundColor:t.colorFillAlter},[`${n} ${n}-extra`]:{margin:t.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},G=t=>{const{componentCls:n,iconCls:s}=t;return{[`${n}-success ${n}-icon > ${s}`]:{color:t.resultSuccessIconColor},[`${n}-error ${n}-icon > ${s}`]:{color:t.resultErrorIconColor},[`${n}-info ${n}-icon > ${s}`]:{color:t.resultInfoIconColor},[`${n}-warning ${n}-icon > ${s}`]:{color:t.resultWarningIconColor}}},L=t=>[R(t),G(t)],P=t=>L(t),W=j("Result",t=>{const{paddingLG:n,fontSizeHeading3:s}=t,e=t.fontSize,o=`${n}px 0 0 0`,r=t.colorInfo,i=t.colorError,a=t.colorSuccess,u=t.colorWarning,d=z(t,{resultTitleFontSize:s,resultSubtitleFontSize:e,resultIconFontSize:s*3,resultExtraMargin:o,resultInfoIconColor:r,resultErrorIconColor:i,resultSuccessIconColor:a,resultWarningIconColor:u});return[P(d)]},{imageWidth:250,imageHeight:295}),O={success:T,error:_,info:b,warning:H},M={404:y,500:V,403:N},X=Object.keys(M),q=()=>({prefixCls:String,icon:p.any,status:{type:[Number,String],default:"info"},title:p.any,subTitle:p.any,extra:p.any}),U=(t,n)=>{let{status:s,icon:e}=n;if(X.includes(`${s}`)){const i=M[s];return l("div",{class:`${t}-icon ${t}-image`},[l(i,null,null)])}const o=O[s],r=e||l(o,null,null);return l("div",{class:`${t}-icon`},[r])},J=(t,n)=>n&&l("div",{class:`${t}-extra`},[n]),c=I({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:q(),slots:Object,setup(t,n){let{slots:s,attrs:e}=n;const{prefixCls:o,direction:r}=$("result",t),[i,a]=W(o),u=x(()=>S(o.value,a.value,`${o.value}-${t.status}`,{[`${o.value}-rtl`]:r.value==="rtl"}));return()=>{var d,k,F,f,B,v,E,C;const g=(d=t.title)!==null&&d!==void 0?d:(k=s.title)===null||k===void 0?void 0:k.call(s),D=(F=t.subTitle)!==null&&F!==void 0?F:(f=s.subTitle)===null||f===void 0?void 0:f.call(s),A=(B=t.icon)!==null&&B!==void 0?B:(v=s.icon)===null||v===void 0?void 0:v.call(s),m=(E=t.extra)!==null&&E!==void 0?E:(C=s.extra)===null||C===void 0?void 0:C.call(s),h=o.value;return i(l("div",w(w({},e),{},{class:[u.value,e.class]}),[U(h,{status:t.status,icon:A}),l("div",{class:`${h}-title`},[g]),D&&l("div",{class:`${h}-subtitle`},[D]),J(h,m),s.default&&l("div",{class:`${h}-content`},[s.default()])]))}}});c.PRESENTED_IMAGE_403=M[403];c.PRESENTED_IMAGE_404=M[404];c.PRESENTED_IMAGE_500=M[500];c.install=function(t){return t.component(c.name,c),t};export{M as ExceptionMap,O as IconMap,c as default,q as resultProps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as K,a2 as Q,a3 as Y,h as d,l as Z,m as k,r as ee,a4 as te,q as ne,f as F,P as B,J as le,w as oe}from"./index-
|
|
1
|
+
import{a1 as K,a2 as Q,a3 as Y,h as d,l as Z,m as k,r as ee,a4 as te,q as ne,f as F,P as B,J as le,w as oe}from"./index-Y1b8i0NV.js";import{c as i,i as ie,F as se,r as O,d as q,m as re,f as ae,p as ce,b as de,a8 as G}from"./vendor-BvqAck49.js";import{u as pe,r as X}from"./responsiveObserve-Cqxkuh5H.js";import{c as ue}from"./vnode-BL2q5BLv.js";import"./icons-DP3uiYxy.js";function I(e){return e!=null}const E=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:l,contentStyle:s,bordered:c,label:a,content:r,colon:u}=e,p=n;return c?i(p,{class:[{[`${t}-item-label`]:I(a),[`${t}-item-content`]:I(r)}],colSpan:o},{default:()=>[I(a)&&i("span",{style:l},[a]),I(r)&&i("span",{style:s},[r])]}):i(p,{class:[`${t}-item`],colSpan:o},{default:()=>[i("div",{class:`${t}-item-container`},[(a||a===0)&&i("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:l},[a]),(r||r===0)&&i("span",{class:`${t}-item-content`,style:s},[r])])]})},me=e=>{const t=(u,p,P)=>{let{colon:m,prefixCls:x,bordered:b}=p,{component:y,type:w,showLabel:L,showContent:M,labelStyle:g,contentStyle:S}=P;return u.map((f,h)=>{var $,v;const D=f.props||{},{prefixCls:z=x,span:R=1,labelStyle:A=D["label-style"],contentStyle:H=D["content-style"],label:N=(v=($=f.children)===null||$===void 0?void 0:$.label)===null||v===void 0?void 0:v.call($)}=D,W=K(f),T=Q(f),_=Y(f),{key:j}=f;return typeof y=="string"?i(E,{key:`${w}-${String(j)||h}`,class:T,style:_,labelStyle:d(d({},g),A),contentStyle:d(d({},S),H),span:R,colon:m,component:y,itemPrefixCls:z,bordered:b,label:L?N:null,content:M?W:null},null):[i(E,{key:`label-${String(j)||h}`,class:T,style:d(d(d({},g),_),A),span:1,colon:m,component:y[0],itemPrefixCls:z,bordered:b,label:N},null),i(E,{key:`content-${String(j)||h}`,class:T,style:d(d(d({},S),_),H),span:R*2-1,component:y[1],itemPrefixCls:z,bordered:b,content:W},null)]})},{prefixCls:n,vertical:o,row:l,index:s,bordered:c}=e,{labelStyle:a,contentStyle:r}=ie(V,{labelStyle:O({}),contentStyle:O({})});return o?i(se,null,[i("tr",{key:`label-${s}`,class:`${n}-row`},[t(l,e,{component:"th",type:"label",showLabel:!0,labelStyle:a.value,contentStyle:r.value})]),i("tr",{key:`content-${s}`,class:`${n}-row`},[t(l,e,{component:"td",type:"content",showContent:!0,labelStyle:a.value,contentStyle:r.value})])]):i("tr",{key:s,class:`${n}-row`},[t(l,e,{component:c?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:a.value,contentStyle:r.value})])},fe=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:l,descriptionsBg:s}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:s,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:l}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},be=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:l,descriptionsItemLabelColonMarginLeft:s,descriptionsTitleMarginBottom:c}=e;return{[t]:d(d(d({},ee(e)),fe(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:c},[`${t}-title`]:d(d({},te),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${s}px ${l}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},ye=Z("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,l=`${e.paddingXS}px ${e.padding}px`,s=`${e.padding}px ${e.paddingLG}px`,c=`${e.paddingSM}px ${e.paddingLG}px`,a=e.padding,r=e.marginXS,u=e.marginXXS/2,p=k(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:a,descriptionsSmallPadding:l,descriptionsDefaultPadding:s,descriptionsMiddlePadding:c,descriptionsItemLabelColonMarginRight:r,descriptionsItemLabelColonMarginLeft:u});return[be(p)]}),Pe={prefixCls:String,label:B.any,span:Number},ge=()=>({prefixCls:String,label:B.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),Se=q({compatConfig:{MODE:3},name:"ADescriptionsItem",props:ge(),setup(e,t){let{slots:n}=t;return()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),J={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function $e(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;n<X.length;n++){const o=X[n];if(t[o]&&e[o]!==void 0)return e[o]||J[o]}return 3}function U(e,t,n){let o=e;return(n===void 0||n>t)&&(o=ue(e,{span:t}),oe(n===void 0,"Descriptions","Sum of column `span` in a line not match `column` of Descriptions.")),o}function ve(e,t){const n=le(e),o=[];let l=[],s=t;return n.forEach((c,a)=>{var r;const u=(r=c.props)===null||r===void 0?void 0:r.span,p=u||1;if(a===n.length-1){l.push(U(c,s,u)),o.push(l);return}p<s?(s-=p,l.push(c)):(l.push(U(c,s,p)),o.push(l),s=t,l=[])}),o}const xe=()=>({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:B.any,extra:B.any,column:{type:[Number,Object],default:()=>J},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),V=Symbol("descriptionsContext"),C=q({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:xe(),slots:Object,Item:Se,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:l,direction:s}=ne("descriptions",e);let c;const a=O({}),[r,u]=ye(l),p=pe();re(()=>{c=p.value.subscribe(m=>{typeof e.column=="object"&&(a.value=m)})}),ae(()=>{p.value.unsubscribe(c)}),ce(V,{labelStyle:G(e,"labelStyle"),contentStyle:G(e,"contentStyle")});const P=de(()=>$e(e.column,a.value));return()=>{var m,x,b;const{size:y,bordered:w=!1,layout:L="horizontal",colon:M=!0,title:g=(m=n.title)===null||m===void 0?void 0:m.call(n),extra:S=(x=n.extra)===null||x===void 0?void 0:x.call(n)}=e,f=(b=n.default)===null||b===void 0?void 0:b.call(n),h=ve(f,P.value);return r(i("div",F(F({},o),{},{class:[l.value,{[`${l.value}-${y}`]:y!=="default",[`${l.value}-bordered`]:!!w,[`${l.value}-rtl`]:s.value==="rtl"},o.class,u.value]}),[(g||S)&&i("div",{class:`${l.value}-header`},[g&&i("div",{class:`${l.value}-title`},[g]),S&&i("div",{class:`${l.value}-extra`},[S])]),i("div",{class:`${l.value}-view`},[i("table",null,[i("tbody",null,[h.map(($,v)=>i(me,{key:v,index:v,colon:M,prefixCls:l.value,vertical:L==="vertical",bordered:w,row:$},null))])])])]))}}});C.install=function(e){return e.component(C.name,C),e.component(C.Item.name,C.Item),e};export{Se as DescriptionsItem,Pe as DescriptionsItemProps,C as default,V as descriptionsContext,xe as descriptionsProps};
|