chainlesschain 0.166.90 → 0.166.91

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.
Files changed (172) hide show
  1. package/README.md +9 -7
  2. package/package.json +3 -3
  3. package/src/assets/linux-subreaper/linux-arm64/manifest.json +1 -1
  4. package/src/assets/linux-subreaper/linux-x64/manifest.json +1 -1
  5. package/src/assets/web-panel/assets/{AIOps-CZzXRe1-.js → AIOps-DgV7xb8F.js} +1 -1
  6. package/src/assets/web-panel/assets/{ActionButton-_AZfbW1Q.js → ActionButton-CgANpkKu.js} +1 -1
  7. package/src/assets/web-panel/assets/{Analytics-CzaUx_wv.js → Analytics-DnvpX7RB.js} +3 -3
  8. package/src/assets/web-panel/assets/{AppLayout-xHEeeD-m.js → AppLayout-C2bHccBM.js} +4 -4
  9. package/src/assets/web-panel/assets/{Artifacts-DmTbtudE.js → Artifacts-BIhijC9g.js} +1 -1
  10. package/src/assets/web-panel/assets/{Audit-Cn4ng4fo.js → Audit-CKRjWGdp.js} +1 -1
  11. package/src/assets/web-panel/assets/{BackgroundAgents-DLUY1VD2.js → BackgroundAgents-CblYtgBE.js} +1 -1
  12. package/src/assets/web-panel/assets/{Backup-B2v--wB6.js → Backup-Cq35b78a.js} +1 -1
  13. package/src/assets/web-panel/assets/{BaseInput-Bgih7yAv.js → BaseInput-DcB7NoRz.js} +1 -1
  14. package/src/assets/web-panel/assets/{Chat-1MiiA3yA.js → Chat-tc3b-s7i.js} +5 -5
  15. package/src/assets/web-panel/assets/{ChatBubbleRenderer-CPLynmbb.js → ChatBubbleRenderer-fcc_Tvqu.js} +1 -1
  16. package/src/assets/web-panel/assets/{Checkbox-DsyBa_NO.js → Checkbox-BLD5bH5u.js} +1 -1
  17. package/src/assets/web-panel/assets/{Codegen-B7WCFx9H.js → Codegen-BLOsoazN.js} +1 -1
  18. package/src/assets/web-panel/assets/{Col-D2x4GBGm.js → Col-Bdr7JwIx.js} +1 -1
  19. package/src/assets/web-panel/assets/{Community-Rnwg9nea.js → Community-C84BsWE0.js} +1 -1
  20. package/src/assets/web-panel/assets/{Compact-BPczlrRh.js → Compact-Dzdwd04z.js} +1 -1
  21. package/src/assets/web-panel/assets/{Compliance-Br1L_wGU.js → Compliance-CCG-R0EV.js} +1 -1
  22. package/src/assets/web-panel/assets/{Cowork-DlsWB_oS.js → Cowork-BYj72SK0.js} +3 -3
  23. package/src/assets/web-panel/assets/{Cron-BWo_KGpG.js → Cron-B6iKAwOf.js} +2 -2
  24. package/src/assets/web-panel/assets/{Crosschain-Cug7N8ge.js → Crosschain-BJ-oDC6u.js} +1 -1
  25. package/src/assets/web-panel/assets/{DID-CMbyOZJN.js → DID-BnMckGLr.js} +2 -2
  26. package/src/assets/web-panel/assets/{Dashboard-C4dl_UaE.js → Dashboard-Cyje-gCO.js} +2 -2
  27. package/src/assets/web-panel/assets/{Dropdown-CBrC7M-9.js → Dropdown-BpNlenjK.js} +1 -1
  28. package/src/assets/web-panel/assets/{EmailListRenderer-DTq7tU4b.js → EmailListRenderer-BhonO7Nv.js} +1 -1
  29. package/src/assets/web-panel/assets/{EvolutionSettings-DWP3csxS.js → EvolutionSettings-DVoNU-Id.js} +1 -1
  30. package/src/assets/web-panel/assets/{FamilyGuardDashboard-DZl7zuv_.js → FamilyGuardDashboard-tdn-KC67.js} +1 -1
  31. package/src/assets/web-panel/assets/{Federation-W-GSlVK5.js → Federation--EEVrHhz.js} +1 -1
  32. package/src/assets/web-panel/assets/{FormItemContext-DMB7xYFV.js → FormItemContext-Cy8zr0-4.js} +1 -1
  33. package/src/assets/web-panel/assets/{GenericCardRenderer-DNv8GEoq.js → GenericCardRenderer-BuUhpgFi.js} +1 -1
  34. package/src/assets/web-panel/assets/{Git-BZ0Bbzw6.js → Git-Ctd3E5Pe.js} +2 -2
  35. package/src/assets/web-panel/assets/{Governance-BNEdcOM5.js → Governance-Ce7dV6aU.js} +1 -1
  36. package/src/assets/web-panel/assets/{Inference-C8249gIz.js → Inference-CD1vExIH.js} +1 -1
  37. package/src/assets/web-panel/assets/{KnowledgeGraph-ngzebU3e.js → KnowledgeGraph-Dn64OdQ7.js} +1 -1
  38. package/src/assets/web-panel/assets/{Logs-CP15th-f.js → Logs-PmElVRrT.js} +2 -2
  39. package/src/assets/web-panel/assets/{MarkdownRenderer-CW3B3JDq.js → MarkdownRenderer-BFiVKf5t.js} +1 -1
  40. package/src/assets/web-panel/assets/{Marketplace-CaH59OsY.js → Marketplace-OW4jTXwx.js} +1 -1
  41. package/src/assets/web-panel/assets/{McpTools-C07vnJev.js → McpTools-BEq2Ib4x.js} +3 -3
  42. package/src/assets/web-panel/assets/{Memory-CqAOkVAS.js → Memory-Can_P2oK.js} +2 -2
  43. package/src/assets/web-panel/assets/{MobileBridge-qp7mZimq.js → MobileBridge-DJ8R-dn3.js} +1 -1
  44. package/src/assets/web-panel/assets/{MobileProjects-DKhbqvTw.js → MobileProjects-B7kV9GOt.js} +1 -1
  45. package/src/assets/web-panel/assets/{Mtc-CRYCnWXv.js → Mtc-BfxamolS.js} +4 -4
  46. package/src/assets/web-panel/assets/{MtcAudit-Z08IrKws.js → MtcAudit-DHtuv7av.js} +4 -4
  47. package/src/assets/web-panel/assets/{Multisig-BWdatUnH.js → Multisig-DLkLpvxc.js} +3 -3
  48. package/src/assets/web-panel/assets/{NLProgramming-BKWiCZ_m.js → NLProgramming-u4XtJTIt.js} +1 -1
  49. package/src/assets/web-panel/assets/{Notes-Bgpzk3sm.js → Notes-BwuuPJLS.js} +3 -3
  50. package/src/assets/web-panel/assets/{NotificationSettings-DvtZEktR.js → NotificationSettings-HEeu-E9v.js} +1 -1
  51. package/src/assets/web-panel/assets/{OrderTableRenderer-CBcy0szc.js → OrderTableRenderer-BtvN-Qwh.js} +1 -1
  52. package/src/assets/web-panel/assets/{Organization-DRRL6vW1.js → Organization-Yh-czs3b.js} +4 -4
  53. package/src/assets/web-panel/assets/{Overflow-COmfB8Ns.js → Overflow-DmE8mYVM.js} +1 -1
  54. package/src/assets/web-panel/assets/{P2P-BqMq_DSa.js → P2P-CWVck8WN.js} +2 -2
  55. package/src/assets/web-panel/assets/PdhVaultBrowser-DgFqekod.js +7 -0
  56. package/src/assets/web-panel/assets/{Permissions-DzYkjmV_.js → Permissions-BtJBVOHV.js} +4 -4
  57. package/src/assets/web-panel/assets/{PersonalDataHub-BBTcxBbN.js → PersonalDataHub-6VBObXzd.js} +4 -4
  58. package/src/assets/web-panel/assets/{Pipeline-eRkYFSbO.js → Pipeline-D222FmqY.js} +1 -1
  59. package/src/assets/web-panel/assets/{Privacy-Ch7IFKBh.js → Privacy-Bi9FMikp.js} +1 -1
  60. package/src/assets/web-panel/assets/{ProjectInit-Ci8EcBYg.js → ProjectInit-Bo52H47H.js} +2 -2
  61. package/src/assets/web-panel/assets/{ProjectSettings-B4lYHFbI.js → ProjectSettings-BPkesfOc.js} +2 -2
  62. package/src/assets/web-panel/assets/{Projects-zkE5cCo_.js → Projects-GynohSFX.js} +1 -1
  63. package/src/assets/web-panel/assets/{Providers-BKDVD3_e.js → Providers-DVdMg04n.js} +1 -1
  64. package/src/assets/web-panel/assets/{QrScannerModal-BromrHlf.js → QrScannerModal-DqJCb595.js} +1 -1
  65. package/src/assets/web-panel/assets/{QuickAsk-CCgoY1gR.js → QuickAsk-J7loQbXi.js} +1 -1
  66. package/src/assets/web-panel/assets/{Recommend-DCPZvpq7.js → Recommend-BI5aURVc.js} +1 -1
  67. package/src/assets/web-panel/assets/{RemoteSession-DPnFP8HU.js → RemoteSession-BN2sqGvz.js} +3 -3
  68. package/src/assets/web-panel/assets/{Reputation-l6r8ytAs.js → Reputation-BGOND-Fi.js} +1 -1
  69. package/src/assets/web-panel/assets/{Row-ke9Mk1cx.js → Row-77dfwaUk.js} +1 -1
  70. package/src/assets/web-panel/assets/{RssFeed-DQOEzUEn.js → RssFeed-FtBAxS3g.js} +2 -2
  71. package/src/assets/web-panel/assets/{Search-BqgA0aUz.js → Search-BaYVLFb7.js} +1 -1
  72. package/src/assets/web-panel/assets/{Security-FeGD_jqV.js → Security-LE3Vv6ab.js} +3 -3
  73. package/src/assets/web-panel/assets/{Services-4kiYYAjZ.js → Services-C5pP-Whz.js} +2 -2
  74. package/src/assets/web-panel/assets/{Skeleton-BbU8Xegs.js → Skeleton-CLqKUVsF.js} +1 -1
  75. package/src/assets/web-panel/assets/{Skills-Dl2bUMUL.js → Skills-BPjN0SX5.js} +1 -1
  76. package/src/assets/web-panel/assets/{Sla-xRGALeaZ.js → Sla-14jD70kg.js} +1 -1
  77. package/src/assets/web-panel/assets/{SpeechSettings-DZfd4RDm.js → SpeechSettings-Dr9ij42W.js} +1 -1
  78. package/src/assets/web-panel/assets/{SyncSettings-BRtCV9Ga.js → SyncSettings-BzLHP7B8.js} +2 -2
  79. package/src/assets/web-panel/assets/{Tasks-DVRQklfG.js → Tasks-YqV9b0rV.js} +1 -1
  80. package/src/assets/web-panel/assets/{Templates-BbhE5jt5.js → Templates-CxxAE4PK.js} +1 -1
  81. package/src/assets/web-panel/assets/{Tenant-qXPDNKbK.js → Tenant-CRb3PcKJ.js} +1 -1
  82. package/src/assets/web-panel/assets/{Terminal-CV48Ks7E.js → Terminal-CTzPpBaP.js} +2 -2
  83. package/src/assets/web-panel/assets/{TimelineRenderer-BLGfJIDr.js → TimelineRenderer-DjFUj_hy.js} +1 -1
  84. package/src/assets/web-panel/assets/{Tokens-7G9H6Hrt.js → Tokens-Bbb8tPvx.js} +1 -1
  85. package/src/assets/web-panel/assets/{Trigger--F64N11F.js → Trigger-CSeWGM0W.js} +1 -1
  86. package/src/assets/web-panel/assets/{Trust-Cq1r-D_y.js → Trust-JgESMBo3.js} +1 -1
  87. package/src/assets/web-panel/assets/{UkeySign-Dqyu4RVh.js → UkeySign-CiObLk0T.js} +1 -1
  88. package/src/assets/web-panel/assets/{VideoEditing-DuFmWH_B.js → VideoEditing-CFEZaQ2x.js} +1 -1
  89. package/src/assets/web-panel/assets/{Wallet-C3mg7EWP.js → Wallet-DR8ZGDNn.js} +4 -4
  90. package/src/assets/web-panel/assets/{WebAuthn-CDK-Aj_X.js → WebAuthn-DxZukvu7.js} +5 -5
  91. package/src/assets/web-panel/assets/{WorkflowEditor--K7K-T1F.js → WorkflowEditor-CKgSZQwn.js} +1 -1
  92. package/src/assets/web-panel/assets/{chat-BQDcS6VP.js → chat-CTxEQE66.js} +1 -1
  93. package/src/assets/web-panel/assets/{colors-BKxJL2-T.js → colors-CAjKMUu3.js} +1 -1
  94. package/src/assets/web-panel/assets/{compact-item-CFjQAMbY.js → compact-item-BXuz49at.js} +1 -1
  95. package/src/assets/web-panel/assets/{createContext-DbgCsdQd.js → createContext-CFN_Hwr9.js} +1 -1
  96. package/src/assets/web-panel/assets/devWarning-CfB8DxT2.js +1 -0
  97. package/src/assets/web-panel/assets/{hasIn-BhkaOBNv.js → hasIn-BwoSBSfP.js} +1 -1
  98. package/src/assets/web-panel/assets/{index-D-Yh3-1z.js → index-B0QbLlWn.js} +1 -1
  99. package/src/assets/web-panel/assets/{index-BfGGsAU7.js → index-B2o_BBjg.js} +1 -1
  100. package/src/assets/web-panel/assets/{index-CoOu7sdP.js → index-B2tEnBPx.js} +1 -1
  101. package/src/assets/web-panel/assets/{index-BRqlCTrz.js → index-B7kp-zRE.js} +1 -1
  102. package/src/assets/web-panel/assets/{index-CB4oHynY.js → index-B9yR7zqr.js} +1 -1
  103. package/src/assets/web-panel/assets/{index-DEwHywz9.js → index-BK4ftQ4d.js} +1 -1
  104. package/src/assets/web-panel/assets/{index-Du_SxxBY.js → index-Bj4hIiLW.js} +1 -1
  105. package/src/assets/web-panel/assets/{index-DFt48Z-x.js → index-BmQITjMU.js} +1 -1
  106. package/src/assets/web-panel/assets/{index-DdcrixaQ.js → index-BmXpdcHI.js} +1 -1
  107. package/src/assets/web-panel/assets/{index-BuWPqSGT.js → index-Bqv_Cray.js} +1 -1
  108. package/src/assets/web-panel/assets/{index-DmYK9Tqt.js → index-Bu2P6u8m.js} +1 -1
  109. package/src/assets/web-panel/assets/{index-T9ka3Xj3.js → index-Bw9s2d3c.js} +1 -1
  110. package/src/assets/web-panel/assets/{index-COGy6wXn.js → index-C8er4W9u.js} +1 -1
  111. package/src/assets/web-panel/assets/{index-sKfUUldY.js → index-CB3kVd9c.js} +1 -1
  112. package/src/assets/web-panel/assets/index-CCsRfd0k.js +1 -0
  113. package/src/assets/web-panel/assets/{index-Dhfa_BIl.js → index-CF9lWi1o.js} +1 -1
  114. package/src/assets/web-panel/assets/{index-CRtUDiXx.js → index-CN53dE_u.js} +1 -1
  115. package/src/assets/web-panel/assets/{index-D2Zb-Kd1.js → index-CSmFby3Q.js} +1 -1
  116. package/src/assets/web-panel/assets/{index-DP1NrM9J.js → index-CehdwJ_Q.js} +1 -1
  117. package/src/assets/web-panel/assets/{index-aPdVzagA.js → index-Cgk0YEiq.js} +1 -1
  118. package/src/assets/web-panel/assets/{index-3YutaXnp.js → index-Cp5y7lX_.js} +1 -1
  119. package/src/assets/web-panel/assets/index-CsmiZIQ4.js +1 -0
  120. package/src/assets/web-panel/assets/{index-C0DzhUOX.js → index-DTX9CJPx.js} +1 -1
  121. package/src/assets/web-panel/assets/{index-bMX8BBLE.js → index-DViK2bkv.js} +1 -1
  122. package/src/assets/web-panel/assets/{index-Dn2QSsuI.js → index-DY-gBSm8.js} +1 -1
  123. package/src/assets/web-panel/assets/{index-BNjYPJNU.js → index-DjF5BOZx.js} +1 -1
  124. package/src/assets/web-panel/assets/{index-CE506mgj.js → index-DmkbAADP.js} +1 -1
  125. package/src/assets/web-panel/assets/{index-De7daEnc.js → index-DpdDnZX_.js} +1 -1
  126. package/src/assets/web-panel/assets/{index-3uR0ThJO.js → index-Dv7V2kg6.js} +1 -1
  127. package/src/assets/web-panel/assets/{index-CUs7XpUO.js → index-DxunxaTw.js} +1 -1
  128. package/src/assets/web-panel/assets/{index-3djsY75k.js → index-F2E5RCwz.js} +1 -1
  129. package/src/assets/web-panel/assets/{index-D9sVcw6v.js → index-IY9bd5az.js} +1 -1
  130. package/src/assets/web-panel/assets/{index-DJ2OiRvh.js → index-IahILygB.js} +3 -3
  131. package/src/assets/web-panel/assets/{index-DjmVlpap.js → index-T3MTE6jB.js} +1 -1
  132. package/src/assets/web-panel/assets/{index-CSUDlsIr.js → index-Tz5dheZa.js} +1 -1
  133. package/src/assets/web-panel/assets/{index-B4LlAJqc.js → index-_ZtCyUdz.js} +1 -1
  134. package/src/assets/web-panel/assets/{index-CJoXgJ2N.js → index-o9DpkZKf.js} +1 -1
  135. package/src/assets/web-panel/assets/{index-7BY44UEv.js → index-t2Ch_JKn.js} +1 -1
  136. package/src/assets/web-panel/assets/{index-DvWWFJHJ.js → index-u9_DM3ZC.js} +1 -1
  137. package/src/assets/web-panel/assets/{initDefaultProps-wrqabmui.js → initDefaultProps-BoiGJDoO.js} +1 -1
  138. package/src/assets/web-panel/assets/{motion-BoyB3ilP.js → motion-5eL4E0pA.js} +1 -1
  139. package/src/assets/web-panel/assets/{move-Cq31cSFE.js → move-DjggDi_1.js} +1 -1
  140. package/src/assets/web-panel/assets/{mtc-parser-BkxNt-8H.js → mtc-parser-Ce8Vo2T3.js} +1 -1
  141. package/src/assets/web-panel/assets/{omit-DofGni53.js → omit-D1yOBaO2.js} +1 -1
  142. package/src/assets/web-panel/assets/{pickAttrs-BnluLL16.js → pickAttrs-8NLceQe8.js} +1 -1
  143. package/src/assets/web-panel/assets/{placementArrow-C-yegJSP.js → placementArrow-CsIdBRmQ.js} +1 -1
  144. package/src/assets/web-panel/assets/{responsiveObserve-CD3ziNhu.js → responsiveObserve-GM5NE8En.js} +1 -1
  145. package/src/assets/web-panel/assets/{slide-ToZO4gQ1.js → slide-44yj3u49.js} +1 -1
  146. package/src/assets/web-panel/assets/{statusUtils-DFVmDmVl.js → statusUtils-B8tqtWcX.js} +1 -1
  147. package/src/assets/web-panel/assets/{styleChecker-De0Y8g1O.js → styleChecker-NhDPBbyB.js} +1 -1
  148. package/src/assets/web-panel/assets/{useFlexGapSupport-wBKIYFKX.js → useFlexGapSupport-C8Qz1GtN.js} +1 -1
  149. package/src/assets/web-panel/assets/{useFs-CP9nmUMJ.js → useFs-ClUv4kih.js} +1 -1
  150. package/src/assets/web-panel/assets/{usePersonalDataHub-vFGrVDyp.js → usePersonalDataHub-BwkOVEh6.js} +1 -1
  151. package/src/assets/web-panel/assets/{vnode-BcBIjvjH.js → vnode--gMF33R0.js} +1 -1
  152. package/src/assets/web-panel/assets/{zoom-DnXDAQxA.js → zoom-DXg3TqOP.js} +1 -1
  153. package/src/assets/web-panel/index.html +1 -1
  154. package/src/command-help-index.json +1 -1
  155. package/src/commands/agent-process-ownership.js +121 -0
  156. package/src/commands/agent.js +2 -0
  157. package/src/commands/hub.js +86 -9
  158. package/src/data/changelog.json +15 -2
  159. package/src/lib/audit-logger.js +46 -20
  160. package/src/lib/checkpoint-restore-saga.js +11 -1
  161. package/src/lib/eval/verify01-host-evidence.js +36 -3
  162. package/src/lib/process-execution-broker/index.js +91 -1
  163. package/src/lib/process-execution-broker/platform-sandbox.js +42 -0
  164. package/src/lib/process-execution-broker/windows-native-evaluator-capabilities.js +757 -0
  165. package/src/lib/process-execution-broker/windows-native-evaluator.js +316 -0
  166. package/src/lib/process-execution-broker/windows-sandbox-helper.dll +0 -0
  167. package/src/lib/process-execution-broker/windows-sandbox-helper.exe +0 -0
  168. package/src/lib/process-execution-broker/windows-sandbox.cs +383 -11
  169. package/src/assets/web-panel/assets/PdhVaultBrowser-BX7iNvle.js +0 -7
  170. package/src/assets/web-panel/assets/devWarning-DlIv9Mbc.js +0 -1
  171. package/src/assets/web-panel/assets/index-BC972Grv.js +0 -1
  172. package/src/assets/web-panel/assets/index-CVifyQqL.js +0 -1
@@ -1,4 +1,4 @@
1
- import{h as p,L as lt,f as B,ae as it,P as ye,v as Ae,i as he,g as ht,az as Ne,a1 as at,at as It,ab as St,l as Ct,m as je,o as Ve,r as xt,ai as Mt,q as wt}from"./index-DJ2OiRvh.js";import{z as We,p as ge,i as de,d as J,a9 as Ge,b as m,f as Ie,w as X,c as f,g as rt,s as z,r as F,a6 as Kt,a3 as Ot,a4 as Tt,F as Ee,o as kt,e as Te,u as be,v as Pt}from"./vendor-Bn1JzzAn.js";import{d as Se}from"./devWarning-DlIv9Mbc.js";import{m as st,f as Bt,h as Et,T as Dt}from"./Trigger--F64N11F.js";import{a as At}from"./_arrayIncludes-B8uzE354.js";import{q as ke}from"./_getTag-DnrRH4E6.js";import{S as _t}from"./injectionKey-BXVc-oGP.js";import{O as fe}from"./Overflow-COmfB8Ns.js";import{c as _e}from"./vnode-BcBIjvjH.js";import{T as Rt}from"./index-DmYK9Tqt.js";import{K as zt}from"./KeyCode-D63Tfrq7.js";import{w as Pe}from"./raf-Deuc0E8-.js";import{T as Xe,bb as Ht}from"./icons-DG5UD-6K.js";import{g as Ft,c as Lt}from"./collapseMotion-CqM1QOwM.js";import{i as Ye}from"./slide-ToZO4gQ1.js";import{i as Nt}from"./zoom-DnXDAQxA.js";import{a as jt}from"./OverrideContext-C0w0P4A3.js";import"./motion-BoyB3ilP.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./index-3YutaXnp.js";import"./placementArrow-C-yegJSP.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-BKxJL2-T.js";import"./initDefaultProps-wrqabmui.js";function Vt(){}var Wt=1/0,Gt=ke&&1/st(new ke([,-0]))[1]==Wt?function(t){return new ke(t)}:Vt,Xt=200;function Yt(t,n,e){var o=-1,l=At,u=t.length,c=!0,i=[],s=i;if(u>=Xt){var v=Gt(t);if(v)return st(v);c=!1,l=Et,s=new Bt}else s=i;e:for(;++o<u;){var d=t[o],a=d;if(d=d!==0?d:0,c&&a===a){for(var $=s.length;$--;)if(s[$]===a)continue e;i.push(d)}else l(s,a,e)||(s!==i&&s.push(a),i.push(d))}return i}function Be(t){return t&&t.length?Yt(t):[]}function qt(t,n,e,o){let l;if(l!==void 0)return!!l;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;const u=Object.keys(t),c=Object.keys(n);if(u.length!==c.length)return!1;const i=Object.prototype.hasOwnProperty.bind(n);for(let s=0;s<u.length;s++){const v=u[s];if(!i(v))return!1;const d=t[v],a=n[v];if(l=void 0,l===!1||l===void 0&&d!==a)return!1}return!0}function ve(t,n){return qt(We(t),We(n))}const ut=Symbol("menuContextKey"),ct=t=>{ge(ut,t)},Q=()=>de(ut),dt=Symbol("ForceRenderKey"),Ut=t=>{ge(dt,t)},mt=()=>de(dt,!1),vt=Symbol("menuFirstLevelContextKey"),ft=t=>{ge(vt,t)},Zt=()=>de(vt,!0),Ce=J({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(t,n){let{slots:e}=n;const o=Q(),l=p({},o);return t.mode!==void 0&&(l.mode=Ge(t,"mode")),t.overflowDisabled!==void 0&&(l.overflowDisabled=Ge(t,"overflowDisabled")),ct(l),()=>{var u;return(u=e.default)===null||u===void 0?void 0:u.call(e)}}}),$e="$$__vc-menu-more__key",pt=Symbol("KeyPathContext"),Re=()=>de(pt,{parentEventKeys:m(()=>[]),parentKeys:m(()=>[]),parentInfo:{}}),Jt=(t,n,e)=>{const{parentEventKeys:o,parentKeys:l}=Re(),u=m(()=>[...o.value,t]),c=m(()=>[...l.value,n]);return ge(pt,{parentEventKeys:u,parentKeys:c,parentInfo:e}),c},gt=Symbol("measure"),qe=J({compatConfig:{MODE:3},setup(t,n){let{slots:e}=n;return ge(gt,!0),()=>{var o;return(o=e.default)===null||o===void 0?void 0:o.call(e)}}}),ze=()=>de(gt,!1);function bt(t){const{mode:n,rtl:e,inlineIndent:o}=Q();return m(()=>n.value!=="inline"?null:e.value?{paddingRight:`${t.value*o.value}px`}:{paddingLeft:`${t.value*o.value}px`})}let Qt=0;const en=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:ye.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:Ae()}),pe=J({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:en(),slots:Object,setup(t,n){let{slots:e,emit:o,attrs:l}=n;const u=rt(),c=ze(),i=typeof u.vnode.key=="symbol"?String(u.vnode.key):u.vnode.key;Se(typeof u.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(i)}"\` not support Symbol type`);const s=`menu_item_${++Qt}_$$_${i}`,{parentEventKeys:v,parentKeys:d}=Re(),{prefixCls:a,activeKeys:$,disabled:y,changeActiveKeys:g,rtl:C,inlineCollapsed:x,siderCollapsed:k,onItemClick:K,selectedKeys:L,registerMenuInfo:U,unRegisterMenuInfo:I}=Q(),O=Zt(),R=z(!1),_=m(()=>[...d.value,i]);U(s,{eventKey:s,key:i,parentEventKeys:v,parentKeys:d,isLeaf:!0}),Ie(()=>{I(s)}),X($,()=>{R.value=!!$.value.find(h=>h===i)},{immediate:!0});const T=m(()=>y.value||t.disabled),V=m(()=>L.value.includes(i)),W=m(()=>{const h=`${a.value}-item`;return{[`${h}`]:!0,[`${h}-danger`]:t.danger,[`${h}-active`]:R.value,[`${h}-selected`]:V.value,[`${h}-disabled`]:T.value}}),Y=h=>({key:i,eventKey:s,keyPath:_.value,eventKeyPath:[...v.value,s],domEvent:h,item:p(p({},t),l)}),ae=h=>{if(T.value)return;const E=Y(h);o("click",h),K(E)},re=h=>{T.value||(g(_.value),o("mouseenter",h))},ee=h=>{T.value||(g([]),o("mouseleave",h))},te=h=>{if(o("keydown",h),h.which===zt.ENTER){const E=Y(h);o("click",h),K(E)}},se=h=>{g(_.value),o("focus",h)},N=(h,E)=>{const H=f("span",{class:`${a.value}-title-content`},[E]);return(!h||it(E)&&E.type==="span")&&E&&x.value&&O&&typeof E=="string"?f("div",{class:`${a.value}-inline-collapsed-noicon`},[E.charAt(0)]):H},me=bt(m(()=>_.value.length));return()=>{var h,E,H,Z,ne;if(c)return null;const q=(h=t.title)!==null&&h!==void 0?h:(E=e.title)===null||E===void 0?void 0:E.call(e),r=lt((H=e.default)===null||H===void 0?void 0:H.call(e)),b=r.length;let M=q;typeof q>"u"?M=O&&b?r:"":q===!1&&(M="");const P={title:M};!k.value&&!x.value&&(P.title=null,P.open=!1);const D={};t.role==="option"&&(D["aria-selected"]=V.value);const w=(Z=t.icon)!==null&&Z!==void 0?Z:(ne=e.icon)===null||ne===void 0?void 0:ne.call(e,t);return f(Rt,B(B({},P),{},{placement:C.value?"left":"right",overlayClassName:`${a.value}-inline-collapsed-tooltip`}),{default:()=>[f(fe.Item,B(B(B({component:"li"},l),{},{id:t.id,style:p(p({},l.style||{}),me.value),class:[W.value,{[`${l.class}`]:!!l.class,[`${a.value}-item-only-child`]:(w?b+1:b)===1}],role:t.role||"menuitem",tabindex:t.disabled?null:-1,"data-menu-id":i,"aria-disabled":t.disabled},D),{},{onMouseenter:re,onMouseleave:ee,onClick:ae,onKeydown:te,onFocus:se,title:typeof q=="string"?q:void 0}),{default:()=>[_e(typeof w=="function"?w(t.originItemValue):w,{class:`${a.value}-item-icon`},!1),N(w,r)]})]})}}}),le={adjustX:1,adjustY:1},tn={topLeft:{points:["bl","tl"],overflow:le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:le,offset:[4,0]}},nn={topLeft:{points:["bl","tl"],overflow:le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:le,offset:[4,0]}},on={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ue=J({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(t,n){let{slots:e,emit:o}=n;const l=z(!1),{getPopupContainer:u,rtl:c,subMenuOpenDelay:i,subMenuCloseDelay:s,builtinPlacements:v,triggerSubMenuAction:d,forceSubMenuRender:a,motion:$,defaultMotions:y,rootClassName:g}=Q(),C=mt(),x=m(()=>c.value?p(p({},nn),v.value):p(p({},tn),v.value)),k=m(()=>on[t.mode]),K=z();X(()=>t.visible,I=>{Pe.cancel(K.value),K.value=Pe(()=>{l.value=I})},{immediate:!0}),Ie(()=>{Pe.cancel(K.value)});const L=I=>{o("visibleChange",I)},U=m(()=>{var I,O;const R=$.value||((I=y.value)===null||I===void 0?void 0:I[t.mode])||((O=y.value)===null||O===void 0?void 0:O.other),_=typeof R=="function"?R():R;return _?ht(_.name,{css:!0}):void 0});return()=>{const{prefixCls:I,popupClassName:O,mode:R,popupOffset:_,disabled:j}=t;return f(Dt,{prefixCls:I,popupClassName:he(`${I}-popup`,{[`${I}-rtl`]:c.value},O,g.value),stretch:R==="horizontal"?"minWidth":null,getPopupContainer:u.value,builtinPlacements:x.value,popupPlacement:k.value,popupVisible:l.value,popupAlign:_&&{offset:_},action:j?[]:[d.value],mouseEnterDelay:i.value,mouseLeaveDelay:s.value,onPopupVisibleChange:L,forceRender:C||a.value,popupAnimation:U.value},{popup:e.popup,default:e.default})}}}),He=(t,n)=>{let{slots:e,attrs:o}=n;var l;const{prefixCls:u,mode:c}=Q();return f("ul",B(B({},o),{},{class:he(u.value,`${u.value}-sub`,`${u.value}-${c.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(l=e.default)===null||l===void 0?void 0:l.call(e)])};He.displayName="SubMenuList";const ln=J({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(t,n){let{slots:e}=n;const o=m(()=>"inline"),{motion:l,mode:u,defaultMotions:c}=Q(),i=m(()=>u.value===o.value),s=F(!i.value),v=m(()=>i.value?t.open:!1);X(u,()=>{i.value&&(s.value=!1)},{flush:"post"});const d=m(()=>{var a,$;const y=l.value||((a=c.value)===null||a===void 0?void 0:a[o.value])||(($=c.value)===null||$===void 0?void 0:$.other),g=typeof y=="function"?y():y;return p(p({},g),{appear:t.keyPath.length<=1})});return()=>{var a;return s.value?null:f(Ce,{mode:o.value},{default:()=>[f(Kt,d.value,{default:()=>[Ot(f(He,{id:t.id},{default:()=>[(a=e.default)===null||a===void 0?void 0:a.call(e)]}),[[Tt,v.value]])]})]})}}});let Ze=0;const an=()=>({icon:ye.any,title:ye.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:Ae()}),ce=J({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:an(),slots:Object,setup(t,n){let{slots:e,attrs:o,emit:l}=n;var u,c;ft(!1);const i=ze(),s=rt(),v=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;Se(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(v)}"\` not support Symbol type`);const d=Ne(v)?v:`sub_menu_${++Ze}_$$_not_set_key`,a=(u=t.eventKey)!==null&&u!==void 0?u:Ne(v)?`sub_menu_${++Ze}_$$_${v}`:d,{parentEventKeys:$,parentInfo:y,parentKeys:g}=Re(),C=m(()=>[...g.value,d]),x=z([]),k={eventKey:a,key:d,parentEventKeys:$,childrenEventKeys:x,parentKeys:g};(c=y.childrenEventKeys)===null||c===void 0||c.value.push(a),Ie(()=>{var S;y.childrenEventKeys&&(y.childrenEventKeys.value=(S=y.childrenEventKeys)===null||S===void 0?void 0:S.value.filter(A=>A!=a))}),Jt(a,d,k);const{prefixCls:K,activeKeys:L,disabled:U,changeActiveKeys:I,mode:O,inlineCollapsed:R,openKeys:_,overflowDisabled:j,onOpenChange:T,registerMenuInfo:V,unRegisterMenuInfo:W,selectedSubMenuKeys:Y,expandIcon:ae,theme:re}=Q(),ee=v!=null,te=!i&&(mt()||!ee);Ut(te),(i&&ee||!i&&!ee||te)&&(V(a,k),Ie(()=>{W(a)}));const se=m(()=>`${K.value}-submenu`),N=m(()=>U.value||t.disabled),me=z(),h=z(),E=m(()=>_.value.includes(d)),H=m(()=>!j.value&&E.value),Z=m(()=>Y.value.includes(d)),ne=z(!1);X(L,()=>{ne.value=!!L.value.find(S=>S===d)},{immediate:!0});const q=S=>{N.value||(l("titleClick",S,d),O.value==="inline"&&T(d,!E.value))},r=S=>{N.value||(I(C.value),l("mouseenter",S))},b=S=>{N.value||(I([]),l("mouseleave",S))},M=bt(m(()=>C.value.length)),P=S=>{O.value!=="inline"&&T(d,S)},D=()=>{I(C.value)},w=a&&`${a}-popup`,G=m(()=>he(K.value,`${K.value}-${t.theme||re.value}`,t.popupClassName)),ue=(S,A)=>{if(!A)return R.value&&!g.value.length&&S&&typeof S=="string"?f("div",{class:`${K.value}-inline-collapsed-noicon`},[S.charAt(0)]):f("span",{class:`${K.value}-title-content`},[S]);const oe=it(S)&&S.type==="span";return f(Ee,null,[_e(typeof A=="function"?A(t.originItemValue):A,{class:`${K.value}-item-icon`},!1),oe?S:f("span",{class:`${K.value}-title-content`},[S])])},we=m(()=>O.value!=="inline"&&C.value.length>1?"vertical":O.value),$t=m(()=>O.value==="horizontal"?"vertical":O.value),yt=m(()=>we.value==="horizontal"?"vertical":we.value),Fe=()=>{var S,A;const oe=se.value,Ke=(S=t.icon)!==null&&S!==void 0?S:(A=e.icon)===null||A===void 0?void 0:A.call(e,t),Le=t.expandIcon||e.expandIcon||ae.value,Oe=ue(at(e,t,"title"),Ke);return f("div",{style:M.value,class:`${oe}-title`,tabindex:N.value?null:-1,ref:me,title:typeof Oe=="string"?Oe:null,"data-menu-id":d,"aria-expanded":H.value,"aria-haspopup":!0,"aria-controls":w,"aria-disabled":N.value,onClick:q,onFocus:D},[Oe,O.value!=="horizontal"&&Le?Le(p(p({},t),{isOpen:H.value})):f("i",{class:`${oe}-arrow`},null)])};return()=>{var S;if(i)return ee?(S=e.default)===null||S===void 0?void 0:S.call(e):null;const A=se.value;let oe=()=>null;if(!j.value&&O.value!=="inline"){const Ke=O.value==="horizontal"?[0,8]:[10,0];oe=()=>f(Ue,{mode:we.value,prefixCls:A,visible:!t.internalPopupClose&&H.value,popupClassName:G.value,popupOffset:t.popupOffset||Ke,disabled:N.value,onVisibleChange:P},{default:()=>[Fe()],popup:()=>f(Ce,{mode:yt.value},{default:()=>[f(He,{id:w,ref:h},{default:e.default})]})})}else oe=()=>f(Ue,null,{default:Fe});return f(Ce,{mode:$t.value},{default:()=>[f(fe.Item,B(B({component:"li"},o),{},{role:"none",class:he(A,`${A}-${O.value}`,o.class,{[`${A}-open`]:H.value,[`${A}-active`]:ne.value,[`${A}-selected`]:Z.value,[`${A}-disabled`]:N.value}),onMouseenter:r,onMouseleave:b,"data-submenu-id":d}),{default:()=>f(Ee,null,[oe(),!j.value&&f(ln,{id:w,open:H.value,keyPath:C.value},{default:e.default})])})]})}}}),rn=()=>({title:ye.any,originItemValue:Ae()}),xe=J({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:rn(),slots:Object,setup(t,n){let{slots:e,attrs:o}=n;const{prefixCls:l}=Q(),u=m(()=>`${l.value}-item-group`),c=ze();return()=>{var i,s;return c?(i=e.default)===null||i===void 0?void 0:i.call(e):f("li",B(B({},o),{},{onClick:v=>v.stopPropagation(),class:u.value}),[f("div",{title:typeof t.title=="string"?t.title:void 0,class:`${u.value}-title`},[at(e,t,"title")]),f("ul",{class:`${u.value}-list`},[(s=e.default)===null||s===void 0?void 0:s.call(e)])])}}}),sn=()=>({prefixCls:String,dashed:Boolean}),Me=J({compatConfig:{MODE:3},name:"AMenuDivider",props:sn(),setup(t){const{prefixCls:n}=Q(),e=m(()=>({[`${n.value}-item-divider`]:!0,[`${n.value}-item-divider-dashed`]:!!t.dashed}));return()=>f("li",{class:e.value},null)}});var un=function(t,n){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&n.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(t,o[l])&&(e[o[l]]=t[o[l]]);return e};function De(t,n,e){return(t||[]).map((o,l)=>{if(o&&typeof o=="object"){const u=o,{label:c,children:i,key:s,type:v}=u,d=un(u,["label","children","key","type"]),a=s??`tmp-${l}`,$=e?e.parentKeys.slice():[],y=[],g={eventKey:a,key:a,parentEventKeys:F($),parentKeys:F($),childrenEventKeys:F(y),isLeaf:!1};if(i||v==="group"){if(v==="group"){const x=De(i,n,e);return f(xe,B(B({key:a},d),{},{title:c,originItemValue:o}),{default:()=>[x]})}n.set(a,g),e&&e.childrenEventKeys.push(a);const C=De(i,n,{childrenEventKeys:y,parentKeys:[].concat($,a)});return f(ce,B(B({key:a},d),{},{title:c,originItemValue:o}),{default:()=>[C]})}return v==="divider"?f(Me,B({key:a},d),null):(g.isLeaf=!0,n.set(a,g),f(pe,B(B({key:a},d),{},{originItemValue:o}),{default:()=>[c]}))}return null}).filter(o=>o)}function cn(t){const n=z([]),e=z(!1),o=z(new Map);return X(()=>t.items,()=>{const l=new Map;e.value=!1,t.items?(e.value=!0,n.value=De(t.items,l)):n.value=void 0,o.value=l},{immediate:!0,deep:!0}),{itemsNodes:n,store:o,hasItmes:e}}const dn=t=>{const{componentCls:n,motionDurationSlow:e,menuHorizontalHeight:o,colorSplit:l,lineWidth:u,lineType:c,menuItemPaddingInline:i}=t;return{[`${n}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${u}px ${c} ${l}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:i},[`> ${n}-item:hover,
1
+ import{h as p,L as lt,f as B,ae as it,P as ye,v as Ae,i as he,g as ht,az as Ne,a1 as at,at as It,ab as St,l as Ct,m as je,o as Ve,r as xt,ai as Mt,q as wt}from"./index-IahILygB.js";import{z as We,p as ge,i as de,d as J,a9 as Ge,b as m,f as Ie,w as X,c as f,g as rt,s as z,r as F,a6 as Kt,a3 as Ot,a4 as Tt,F as Ee,o as kt,e as Te,u as be,v as Pt}from"./vendor-Bn1JzzAn.js";import{d as Se}from"./devWarning-CfB8DxT2.js";import{m as st,f as Bt,h as Et,T as Dt}from"./Trigger-CSeWGM0W.js";import{a as At}from"./_arrayIncludes-B8uzE354.js";import{q as ke}from"./_getTag-DnrRH4E6.js";import{S as _t}from"./injectionKey-BXVc-oGP.js";import{O as fe}from"./Overflow-DmE8mYVM.js";import{c as _e}from"./vnode--gMF33R0.js";import{T as Rt}from"./index-Bu2P6u8m.js";import{K as zt}from"./KeyCode-D63Tfrq7.js";import{w as Pe}from"./raf-Deuc0E8-.js";import{T as Xe,bb as Ht}from"./icons-DG5UD-6K.js";import{g as Ft,c as Lt}from"./collapseMotion-CqM1QOwM.js";import{i as Ye}from"./slide-44yj3u49.js";import{i as Nt}from"./zoom-DXg3TqOP.js";import{a as jt}from"./OverrideContext-C0w0P4A3.js";import"./motion-5eL4E0pA.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./index-Cp5y7lX_.js";import"./placementArrow-CsIdBRmQ.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-CAjKMUu3.js";import"./initDefaultProps-BoiGJDoO.js";function Vt(){}var Wt=1/0,Gt=ke&&1/st(new ke([,-0]))[1]==Wt?function(t){return new ke(t)}:Vt,Xt=200;function Yt(t,n,e){var o=-1,l=At,u=t.length,c=!0,i=[],s=i;if(u>=Xt){var v=Gt(t);if(v)return st(v);c=!1,l=Et,s=new Bt}else s=i;e:for(;++o<u;){var d=t[o],a=d;if(d=d!==0?d:0,c&&a===a){for(var $=s.length;$--;)if(s[$]===a)continue e;i.push(d)}else l(s,a,e)||(s!==i&&s.push(a),i.push(d))}return i}function Be(t){return t&&t.length?Yt(t):[]}function qt(t,n,e,o){let l;if(l!==void 0)return!!l;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;const u=Object.keys(t),c=Object.keys(n);if(u.length!==c.length)return!1;const i=Object.prototype.hasOwnProperty.bind(n);for(let s=0;s<u.length;s++){const v=u[s];if(!i(v))return!1;const d=t[v],a=n[v];if(l=void 0,l===!1||l===void 0&&d!==a)return!1}return!0}function ve(t,n){return qt(We(t),We(n))}const ut=Symbol("menuContextKey"),ct=t=>{ge(ut,t)},Q=()=>de(ut),dt=Symbol("ForceRenderKey"),Ut=t=>{ge(dt,t)},mt=()=>de(dt,!1),vt=Symbol("menuFirstLevelContextKey"),ft=t=>{ge(vt,t)},Zt=()=>de(vt,!0),Ce=J({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(t,n){let{slots:e}=n;const o=Q(),l=p({},o);return t.mode!==void 0&&(l.mode=Ge(t,"mode")),t.overflowDisabled!==void 0&&(l.overflowDisabled=Ge(t,"overflowDisabled")),ct(l),()=>{var u;return(u=e.default)===null||u===void 0?void 0:u.call(e)}}}),$e="$$__vc-menu-more__key",pt=Symbol("KeyPathContext"),Re=()=>de(pt,{parentEventKeys:m(()=>[]),parentKeys:m(()=>[]),parentInfo:{}}),Jt=(t,n,e)=>{const{parentEventKeys:o,parentKeys:l}=Re(),u=m(()=>[...o.value,t]),c=m(()=>[...l.value,n]);return ge(pt,{parentEventKeys:u,parentKeys:c,parentInfo:e}),c},gt=Symbol("measure"),qe=J({compatConfig:{MODE:3},setup(t,n){let{slots:e}=n;return ge(gt,!0),()=>{var o;return(o=e.default)===null||o===void 0?void 0:o.call(e)}}}),ze=()=>de(gt,!1);function bt(t){const{mode:n,rtl:e,inlineIndent:o}=Q();return m(()=>n.value!=="inline"?null:e.value?{paddingRight:`${t.value*o.value}px`}:{paddingLeft:`${t.value*o.value}px`})}let Qt=0;const en=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:ye.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:Ae()}),pe=J({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:en(),slots:Object,setup(t,n){let{slots:e,emit:o,attrs:l}=n;const u=rt(),c=ze(),i=typeof u.vnode.key=="symbol"?String(u.vnode.key):u.vnode.key;Se(typeof u.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(i)}"\` not support Symbol type`);const s=`menu_item_${++Qt}_$$_${i}`,{parentEventKeys:v,parentKeys:d}=Re(),{prefixCls:a,activeKeys:$,disabled:y,changeActiveKeys:g,rtl:C,inlineCollapsed:x,siderCollapsed:k,onItemClick:K,selectedKeys:L,registerMenuInfo:U,unRegisterMenuInfo:I}=Q(),O=Zt(),R=z(!1),_=m(()=>[...d.value,i]);U(s,{eventKey:s,key:i,parentEventKeys:v,parentKeys:d,isLeaf:!0}),Ie(()=>{I(s)}),X($,()=>{R.value=!!$.value.find(h=>h===i)},{immediate:!0});const T=m(()=>y.value||t.disabled),V=m(()=>L.value.includes(i)),W=m(()=>{const h=`${a.value}-item`;return{[`${h}`]:!0,[`${h}-danger`]:t.danger,[`${h}-active`]:R.value,[`${h}-selected`]:V.value,[`${h}-disabled`]:T.value}}),Y=h=>({key:i,eventKey:s,keyPath:_.value,eventKeyPath:[...v.value,s],domEvent:h,item:p(p({},t),l)}),ae=h=>{if(T.value)return;const E=Y(h);o("click",h),K(E)},re=h=>{T.value||(g(_.value),o("mouseenter",h))},ee=h=>{T.value||(g([]),o("mouseleave",h))},te=h=>{if(o("keydown",h),h.which===zt.ENTER){const E=Y(h);o("click",h),K(E)}},se=h=>{g(_.value),o("focus",h)},N=(h,E)=>{const H=f("span",{class:`${a.value}-title-content`},[E]);return(!h||it(E)&&E.type==="span")&&E&&x.value&&O&&typeof E=="string"?f("div",{class:`${a.value}-inline-collapsed-noicon`},[E.charAt(0)]):H},me=bt(m(()=>_.value.length));return()=>{var h,E,H,Z,ne;if(c)return null;const q=(h=t.title)!==null&&h!==void 0?h:(E=e.title)===null||E===void 0?void 0:E.call(e),r=lt((H=e.default)===null||H===void 0?void 0:H.call(e)),b=r.length;let M=q;typeof q>"u"?M=O&&b?r:"":q===!1&&(M="");const P={title:M};!k.value&&!x.value&&(P.title=null,P.open=!1);const D={};t.role==="option"&&(D["aria-selected"]=V.value);const w=(Z=t.icon)!==null&&Z!==void 0?Z:(ne=e.icon)===null||ne===void 0?void 0:ne.call(e,t);return f(Rt,B(B({},P),{},{placement:C.value?"left":"right",overlayClassName:`${a.value}-inline-collapsed-tooltip`}),{default:()=>[f(fe.Item,B(B(B({component:"li"},l),{},{id:t.id,style:p(p({},l.style||{}),me.value),class:[W.value,{[`${l.class}`]:!!l.class,[`${a.value}-item-only-child`]:(w?b+1:b)===1}],role:t.role||"menuitem",tabindex:t.disabled?null:-1,"data-menu-id":i,"aria-disabled":t.disabled},D),{},{onMouseenter:re,onMouseleave:ee,onClick:ae,onKeydown:te,onFocus:se,title:typeof q=="string"?q:void 0}),{default:()=>[_e(typeof w=="function"?w(t.originItemValue):w,{class:`${a.value}-item-icon`},!1),N(w,r)]})]})}}}),le={adjustX:1,adjustY:1},tn={topLeft:{points:["bl","tl"],overflow:le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:le,offset:[4,0]}},nn={topLeft:{points:["bl","tl"],overflow:le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:le,offset:[4,0]}},on={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ue=J({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(t,n){let{slots:e,emit:o}=n;const l=z(!1),{getPopupContainer:u,rtl:c,subMenuOpenDelay:i,subMenuCloseDelay:s,builtinPlacements:v,triggerSubMenuAction:d,forceSubMenuRender:a,motion:$,defaultMotions:y,rootClassName:g}=Q(),C=mt(),x=m(()=>c.value?p(p({},nn),v.value):p(p({},tn),v.value)),k=m(()=>on[t.mode]),K=z();X(()=>t.visible,I=>{Pe.cancel(K.value),K.value=Pe(()=>{l.value=I})},{immediate:!0}),Ie(()=>{Pe.cancel(K.value)});const L=I=>{o("visibleChange",I)},U=m(()=>{var I,O;const R=$.value||((I=y.value)===null||I===void 0?void 0:I[t.mode])||((O=y.value)===null||O===void 0?void 0:O.other),_=typeof R=="function"?R():R;return _?ht(_.name,{css:!0}):void 0});return()=>{const{prefixCls:I,popupClassName:O,mode:R,popupOffset:_,disabled:j}=t;return f(Dt,{prefixCls:I,popupClassName:he(`${I}-popup`,{[`${I}-rtl`]:c.value},O,g.value),stretch:R==="horizontal"?"minWidth":null,getPopupContainer:u.value,builtinPlacements:x.value,popupPlacement:k.value,popupVisible:l.value,popupAlign:_&&{offset:_},action:j?[]:[d.value],mouseEnterDelay:i.value,mouseLeaveDelay:s.value,onPopupVisibleChange:L,forceRender:C||a.value,popupAnimation:U.value},{popup:e.popup,default:e.default})}}}),He=(t,n)=>{let{slots:e,attrs:o}=n;var l;const{prefixCls:u,mode:c}=Q();return f("ul",B(B({},o),{},{class:he(u.value,`${u.value}-sub`,`${u.value}-${c.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(l=e.default)===null||l===void 0?void 0:l.call(e)])};He.displayName="SubMenuList";const ln=J({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(t,n){let{slots:e}=n;const o=m(()=>"inline"),{motion:l,mode:u,defaultMotions:c}=Q(),i=m(()=>u.value===o.value),s=F(!i.value),v=m(()=>i.value?t.open:!1);X(u,()=>{i.value&&(s.value=!1)},{flush:"post"});const d=m(()=>{var a,$;const y=l.value||((a=c.value)===null||a===void 0?void 0:a[o.value])||(($=c.value)===null||$===void 0?void 0:$.other),g=typeof y=="function"?y():y;return p(p({},g),{appear:t.keyPath.length<=1})});return()=>{var a;return s.value?null:f(Ce,{mode:o.value},{default:()=>[f(Kt,d.value,{default:()=>[Ot(f(He,{id:t.id},{default:()=>[(a=e.default)===null||a===void 0?void 0:a.call(e)]}),[[Tt,v.value]])]})]})}}});let Ze=0;const an=()=>({icon:ye.any,title:ye.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:Ae()}),ce=J({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:an(),slots:Object,setup(t,n){let{slots:e,attrs:o,emit:l}=n;var u,c;ft(!1);const i=ze(),s=rt(),v=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;Se(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(v)}"\` not support Symbol type`);const d=Ne(v)?v:`sub_menu_${++Ze}_$$_not_set_key`,a=(u=t.eventKey)!==null&&u!==void 0?u:Ne(v)?`sub_menu_${++Ze}_$$_${v}`:d,{parentEventKeys:$,parentInfo:y,parentKeys:g}=Re(),C=m(()=>[...g.value,d]),x=z([]),k={eventKey:a,key:d,parentEventKeys:$,childrenEventKeys:x,parentKeys:g};(c=y.childrenEventKeys)===null||c===void 0||c.value.push(a),Ie(()=>{var S;y.childrenEventKeys&&(y.childrenEventKeys.value=(S=y.childrenEventKeys)===null||S===void 0?void 0:S.value.filter(A=>A!=a))}),Jt(a,d,k);const{prefixCls:K,activeKeys:L,disabled:U,changeActiveKeys:I,mode:O,inlineCollapsed:R,openKeys:_,overflowDisabled:j,onOpenChange:T,registerMenuInfo:V,unRegisterMenuInfo:W,selectedSubMenuKeys:Y,expandIcon:ae,theme:re}=Q(),ee=v!=null,te=!i&&(mt()||!ee);Ut(te),(i&&ee||!i&&!ee||te)&&(V(a,k),Ie(()=>{W(a)}));const se=m(()=>`${K.value}-submenu`),N=m(()=>U.value||t.disabled),me=z(),h=z(),E=m(()=>_.value.includes(d)),H=m(()=>!j.value&&E.value),Z=m(()=>Y.value.includes(d)),ne=z(!1);X(L,()=>{ne.value=!!L.value.find(S=>S===d)},{immediate:!0});const q=S=>{N.value||(l("titleClick",S,d),O.value==="inline"&&T(d,!E.value))},r=S=>{N.value||(I(C.value),l("mouseenter",S))},b=S=>{N.value||(I([]),l("mouseleave",S))},M=bt(m(()=>C.value.length)),P=S=>{O.value!=="inline"&&T(d,S)},D=()=>{I(C.value)},w=a&&`${a}-popup`,G=m(()=>he(K.value,`${K.value}-${t.theme||re.value}`,t.popupClassName)),ue=(S,A)=>{if(!A)return R.value&&!g.value.length&&S&&typeof S=="string"?f("div",{class:`${K.value}-inline-collapsed-noicon`},[S.charAt(0)]):f("span",{class:`${K.value}-title-content`},[S]);const oe=it(S)&&S.type==="span";return f(Ee,null,[_e(typeof A=="function"?A(t.originItemValue):A,{class:`${K.value}-item-icon`},!1),oe?S:f("span",{class:`${K.value}-title-content`},[S])])},we=m(()=>O.value!=="inline"&&C.value.length>1?"vertical":O.value),$t=m(()=>O.value==="horizontal"?"vertical":O.value),yt=m(()=>we.value==="horizontal"?"vertical":we.value),Fe=()=>{var S,A;const oe=se.value,Ke=(S=t.icon)!==null&&S!==void 0?S:(A=e.icon)===null||A===void 0?void 0:A.call(e,t),Le=t.expandIcon||e.expandIcon||ae.value,Oe=ue(at(e,t,"title"),Ke);return f("div",{style:M.value,class:`${oe}-title`,tabindex:N.value?null:-1,ref:me,title:typeof Oe=="string"?Oe:null,"data-menu-id":d,"aria-expanded":H.value,"aria-haspopup":!0,"aria-controls":w,"aria-disabled":N.value,onClick:q,onFocus:D},[Oe,O.value!=="horizontal"&&Le?Le(p(p({},t),{isOpen:H.value})):f("i",{class:`${oe}-arrow`},null)])};return()=>{var S;if(i)return ee?(S=e.default)===null||S===void 0?void 0:S.call(e):null;const A=se.value;let oe=()=>null;if(!j.value&&O.value!=="inline"){const Ke=O.value==="horizontal"?[0,8]:[10,0];oe=()=>f(Ue,{mode:we.value,prefixCls:A,visible:!t.internalPopupClose&&H.value,popupClassName:G.value,popupOffset:t.popupOffset||Ke,disabled:N.value,onVisibleChange:P},{default:()=>[Fe()],popup:()=>f(Ce,{mode:yt.value},{default:()=>[f(He,{id:w,ref:h},{default:e.default})]})})}else oe=()=>f(Ue,null,{default:Fe});return f(Ce,{mode:$t.value},{default:()=>[f(fe.Item,B(B({component:"li"},o),{},{role:"none",class:he(A,`${A}-${O.value}`,o.class,{[`${A}-open`]:H.value,[`${A}-active`]:ne.value,[`${A}-selected`]:Z.value,[`${A}-disabled`]:N.value}),onMouseenter:r,onMouseleave:b,"data-submenu-id":d}),{default:()=>f(Ee,null,[oe(),!j.value&&f(ln,{id:w,open:H.value,keyPath:C.value},{default:e.default})])})]})}}}),rn=()=>({title:ye.any,originItemValue:Ae()}),xe=J({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:rn(),slots:Object,setup(t,n){let{slots:e,attrs:o}=n;const{prefixCls:l}=Q(),u=m(()=>`${l.value}-item-group`),c=ze();return()=>{var i,s;return c?(i=e.default)===null||i===void 0?void 0:i.call(e):f("li",B(B({},o),{},{onClick:v=>v.stopPropagation(),class:u.value}),[f("div",{title:typeof t.title=="string"?t.title:void 0,class:`${u.value}-title`},[at(e,t,"title")]),f("ul",{class:`${u.value}-list`},[(s=e.default)===null||s===void 0?void 0:s.call(e)])])}}}),sn=()=>({prefixCls:String,dashed:Boolean}),Me=J({compatConfig:{MODE:3},name:"AMenuDivider",props:sn(),setup(t){const{prefixCls:n}=Q(),e=m(()=>({[`${n.value}-item-divider`]:!0,[`${n.value}-item-divider-dashed`]:!!t.dashed}));return()=>f("li",{class:e.value},null)}});var un=function(t,n){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&n.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(t,o[l])&&(e[o[l]]=t[o[l]]);return e};function De(t,n,e){return(t||[]).map((o,l)=>{if(o&&typeof o=="object"){const u=o,{label:c,children:i,key:s,type:v}=u,d=un(u,["label","children","key","type"]),a=s??`tmp-${l}`,$=e?e.parentKeys.slice():[],y=[],g={eventKey:a,key:a,parentEventKeys:F($),parentKeys:F($),childrenEventKeys:F(y),isLeaf:!1};if(i||v==="group"){if(v==="group"){const x=De(i,n,e);return f(xe,B(B({key:a},d),{},{title:c,originItemValue:o}),{default:()=>[x]})}n.set(a,g),e&&e.childrenEventKeys.push(a);const C=De(i,n,{childrenEventKeys:y,parentKeys:[].concat($,a)});return f(ce,B(B({key:a},d),{},{title:c,originItemValue:o}),{default:()=>[C]})}return v==="divider"?f(Me,B({key:a},d),null):(g.isLeaf=!0,n.set(a,g),f(pe,B(B({key:a},d),{},{originItemValue:o}),{default:()=>[c]}))}return null}).filter(o=>o)}function cn(t){const n=z([]),e=z(!1),o=z(new Map);return X(()=>t.items,()=>{const l=new Map;e.value=!1,t.items?(e.value=!0,n.value=De(t.items,l)):n.value=void 0,o.value=l},{immediate:!0,deep:!0}),{itemsNodes:n,store:o,hasItmes:e}}const dn=t=>{const{componentCls:n,motionDurationSlow:e,menuHorizontalHeight:o,colorSplit:l,lineWidth:u,lineType:c,menuItemPaddingInline:i}=t;return{[`${n}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${u}px ${c} ${l}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:i},[`> ${n}-item:hover,
2
2
  > ${n}-item-active,
3
3
  > ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${e}`,`background ${e}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},mn=t=>{let{componentCls:n,menuArrowOffset:e}=t;return{[`${n}-rtl`]:{direction:"rtl"},[`${n}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${n}-rtl${n}-vertical,
4
4
  ${n}-submenu-rtl ${n}-vertical`]:{[`${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${e})`},"&::after":{transform:`rotate(45deg) translateY(${e})`}}}}},Je=t=>p({},It(t)),Qe=(t,n)=>{const{componentCls:e,colorItemText:o,colorItemTextSelected:l,colorGroupTitle:u,colorItemBg:c,colorSubItemBg:i,colorItemBgSelected:s,colorActiveBarHeight:v,colorActiveBarWidth:d,colorActiveBarBorderSize:a,motionDurationSlow:$,motionEaseInOut:y,motionEaseOut:g,menuItemPaddingInline:C,motionDurationMid:x,colorItemTextHover:k,lineType:K,colorSplit:L,colorItemTextDisabled:U,colorDangerItemText:I,colorDangerItemTextHover:O,colorDangerItemTextSelected:R,colorDangerItemBgActive:_,colorDangerItemBgSelected:j,colorItemBgHover:T,menuSubMenuBg:V,colorItemTextSelectedHorizontal:W,colorItemBgSelectedHorizontal:Y}=t;return{[`${e}-${n}`]:{color:o,background:c,[`&${e}-root:focus-visible`]:p({},Je(t)),[`${e}-item-group-title`]:{color:u},[`${e}-submenu-selected`]:{[`> ${e}-submenu-title`]:{color:l}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{color:`${U} !important`},[`${e}-item:hover, ${e}-submenu-title:hover`]:{[`&:not(${e}-item-selected):not(${e}-submenu-selected)`]:{color:k}},[`&:not(${e}-horizontal)`]:{[`${e}-item:not(${e}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:s}},[`${e}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:s}}},[`${e}-item-danger`]:{color:I,[`&${e}-item:hover`]:{[`&:not(${e}-item-selected):not(${e}-submenu-selected)`]:{color:O}},[`&${e}-item:active`]:{background:_}},[`${e}-item a`]:{"&, &:hover":{color:"inherit"}},[`${e}-item-selected`]:{color:l,[`&${e}-item-danger`]:{color:R},"a, a:hover":{color:"inherit"}},[`& ${e}-item-selected`]:{backgroundColor:s,[`&${e}-item-danger`]:{backgroundColor:j}},[`${e}-item, ${e}-submenu-title`]:{[`&:not(${e}-item-disabled):focus-visible`]:p({},Je(t))},[`&${e}-submenu > ${e}`]:{backgroundColor:V},[`&${e}-popup > ${e}`]:{backgroundColor:c},[`&${e}-horizontal`]:p(p({},n==="dark"?{borderBottom:0}:{}),{[`> ${e}-item, > ${e}-submenu`]:{top:a,marginTop:-a,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${v}px solid transparent`,transition:`border-color ${$} ${y}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:v,borderBottomColor:W}},"&-selected":{color:W,backgroundColor:Y,"&::after":{borderBottomWidth:v,borderBottomColor:W}}}}),[`&${e}-root`]:{[`&${e}-inline, &${e}-vertical`]:{borderInlineEnd:`${a}px ${K} ${L}`}},[`&${e}-inline`]:{[`${e}-sub${e}-inline`]:{background:i},[`${e}-item, ${e}-submenu-title`]:a&&d?{width:`calc(100% + ${a}px)`}:{},[`${e}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${l}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${x} ${g}`,`opacity ${x} ${g}`].join(","),content:'""'},[`&${e}-item-danger`]:{"&::after":{borderInlineEndColor:R}}},[`${e}-selected, ${e}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${x} ${y}`,`opacity ${x} ${y}`].join(",")}}}}}},et=t=>{const{componentCls:n,menuItemHeight:e,itemMarginInline:o,padding:l,menuArrowSize:u,marginXS:c,marginXXS:i}=t,s=l+u+c;return{[`${n}-item`]:{position:"relative"},[`${n}-item, ${n}-submenu-title`]:{height:e,lineHeight:`${e}px`,paddingInline:l,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:i,width:`calc(100% - ${o*2}px)`},[`${n}-submenu`]:{paddingBottom:.02},[`> ${n}-item,
@@ -1 +1 @@
1
- import{h as i,i as F,P as T,q as L,N as lt,l as it,m as st,r as Y,K as O,f as z,a1 as ut,L as ct,g as dt}from"./index-DJ2OiRvh.js";import{d as W,b as f,a as mt,w as J,x as gt,c as v,r as R,a6 as bt,a3 as ft,a4 as vt}from"./vendor-Bn1JzzAn.js";import{c as Q}from"./vnode-BcBIjvjH.js";import{g as q,i as k}from"./colors-BKxJL2-T.js";import{i as pt}from"./isNumeric-DjvBa-1E.js";import"./icons-DG5UD-6K.js";function G(t){let{prefixCls:o,value:a,current:e,offset:n=0}=t,c;return n&&(c={position:"absolute",top:`${n}00%`,left:0}),v("p",{style:c,class:F(`${o}-only-unit`,{current:e})},[a])}function ht(t,o,a){let e=t,n=0;for(;(e+10)%10!==o;)e+=a,n+=a;return n}const $t=W({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(t){const o=f(()=>Number(t.value)),a=f(()=>Math.abs(t.count)),e=mt({prevValue:o.value,prevCount:a.value}),n=()=>{e.prevValue=o.value,e.prevCount=a.value},c=R();return J(o,()=>{clearTimeout(c.value),c.value=setTimeout(()=>{n()},1e3)},{flush:"post"}),gt(()=>{clearTimeout(c.value)}),()=>{let d,p={};const s=o.value;if(e.prevValue===s||Number.isNaN(s)||Number.isNaN(e.prevValue))d=[G(i(i({},t),{current:!0}))],p={transition:"none"};else{d=[];const h=s+10,m=[];for(let r=s;r<=h;r+=1)m.push(r);const l=m.findIndex(r=>r%10===e.prevValue);d=m.map((r,y)=>{const $=r%10;return G(i(i({},t),{value:$,offset:y-l,current:y===l}))});const u=e.prevCount<a.value?1:-1;p={transform:`translateY(${-ht(e.prevValue,s,u)}00%)`}}return v("span",{class:`${t.prefixCls}-only`,style:p,onTransitionend:()=>n()},[d])}}});var St=function(t,o){var a={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(a[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(t);n<e.length;n++)o.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(t,e[n])&&(a[e[n]]=t[e[n]]);return a};const yt={prefixCls:String,count:T.any,component:String,title:T.any,show:Boolean},Ct=W({compatConfig:{MODE:3},name:"ScrollNumber",inheritAttrs:!1,props:yt,setup(t,o){let{attrs:a,slots:e}=o;const{prefixCls:n}=L("scroll-number",t);return()=>{var c;const d=i(i({},t),a),{prefixCls:p,count:s,title:h,show:m,component:l="sup",class:u,style:r}=d,y=St(d,["prefixCls","count","title","show","component","class","style"]),$=i(i({},y),{style:r,"data-show":t.show,class:F(n.value,u),title:h});let g=s;if(s&&Number(s)%1===0){const b=String(s).split("");g=b.map((P,B)=>v($t,{prefixCls:n.value,count:Number(s),value:P,key:b.length-B},null))}r&&r.borderColor&&($.style=i(i({},r),{boxShadow:`0 0 0 1px ${r.borderColor} inset`}));const S=lt((c=e.default)===null||c===void 0?void 0:c.call(e));return S&&S.length?Q(S,{class:F(`${n.value}-custom-component`)},!1):v(l,$,{default:()=>[g]})}}}),xt=new O("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),wt=new O("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Nt=new O("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Ot=new O("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Pt=new O("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Bt=new O("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),It=t=>{const{componentCls:o,iconCls:a,antCls:e,badgeFontHeight:n,badgeShadowSize:c,badgeHeightSm:d,motionDurationSlow:p,badgeStatusSize:s,marginXS:h,badgeRibbonOffset:m}=t,l=`${e}-scroll-number`,u=`${e}-ribbon`,r=`${e}-ribbon-wrapper`,y=q(t,(g,S)=>{let{darkColor:b}=S;return{[`&${o} ${o}-color-${g}`]:{background:b,[`&:not(${o}-count)`]:{color:b}}}}),$=q(t,(g,S)=>{let{darkColor:b}=S;return{[`&${u}-color-${g}`]:{background:b,color:b}}});return{[o]:i(i(i(i({},Y(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${o}-count`]:{zIndex:t.badgeZIndex,minWidth:t.badgeHeight,height:t.badgeHeight,color:t.badgeTextColor,fontWeight:t.badgeFontWeight,fontSize:t.badgeFontSize,lineHeight:`${t.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:t.badgeHeight/2,boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${o}-count-sm`]:{minWidth:d,height:d,fontSize:t.badgeFontSizeSm,lineHeight:`${d}px`,borderRadius:d/2},[`${o}-multiple-words`]:{padding:`0 ${t.paddingXS}px`},[`${o}-dot`]:{zIndex:t.badgeZIndex,width:t.badgeDotSize,minWidth:t.badgeDotSize,height:t.badgeDotSize,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`},[`${o}-dot${l}`]:{transition:`background ${p}`},[`${o}-count, ${o}-dot, ${l}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${a}-spin`]:{animationName:Bt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${o}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${o}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${o}-status-success`]:{backgroundColor:t.colorSuccess},[`${o}-status-processing`]:{overflow:"visible",color:t.colorPrimary,backgroundColor:t.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:c,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:xt,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${o}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${o}-status-error`]:{backgroundColor:t.colorError},[`${o}-status-warning`]:{backgroundColor:t.colorWarning},[`${o}-status-text`]:{marginInlineStart:h,color:t.colorText,fontSize:t.fontSize}}}),y),{[`${o}-zoom-appear, ${o}-zoom-enter`]:{animationName:wt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${o}-zoom-leave`]:{animationName:Nt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${o}-not-a-wrapper`]:{[`${o}-zoom-appear, ${o}-zoom-enter`]:{animationName:Ot,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${o}-zoom-leave`]:{animationName:Pt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${o}-status)`]:{verticalAlign:"middle"},[`${l}-custom-component, ${o}-count`]:{transform:"none"},[`${l}-custom-component, ${l}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${l}`]:{overflow:"hidden",[`${l}-only`]:{position:"relative",display:"inline-block",height:t.badgeHeight,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${l}-only-unit`]:{height:t.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${l}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${o}-count, ${o}-dot, ${l}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${r}`]:{position:"relative"},[`${u}`]:i(i(i(i({},Y(t)),{position:"absolute",top:h,padding:`0 ${t.paddingXS}px`,color:t.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${u}-text`]:{color:t.colorTextLightSolid},[`${u}-corner`]:{position:"absolute",top:"100%",width:m,height:m,color:"currentcolor",border:`${m/2}px solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),$),{[`&${u}-placement-end`]:{insetInlineEnd:-m,borderEndEndRadius:0,[`${u}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${u}-placement-start`]:{insetInlineStart:-m,borderEndStartRadius:0,[`${u}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},tt=it("Badge",t=>{const{fontSize:o,lineHeight:a,fontSizeSM:e,lineWidth:n,marginXS:c,colorBorderBg:d}=t,p=Math.round(o*a),s=n,h="auto",m=p-2*s,l=t.colorBgContainer,u="normal",r=e,y=t.colorError,$=t.colorErrorHover,g=o,S=e/2,b=e,P=e/2,B=st(t,{badgeFontHeight:p,badgeShadowSize:s,badgeZIndex:h,badgeHeight:m,badgeTextColor:l,badgeFontWeight:u,badgeFontSize:r,badgeColor:y,badgeColorHover:$,badgeShadowColor:d,badgeHeightSm:g,badgeDotSize:S,badgeFontSizeSm:b,badgeStatusSize:P,badgeProcessingDuration:"1.2s",badgeRibbonOffset:c,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[It(B)]});var zt=function(t,o){var a={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(a[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(t);n<e.length;n++)o.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(t,e[n])&&(a[e[n]]=t[e[n]]);return a};const Tt=()=>({prefix:String,color:{type:String},text:T.any,placement:{type:String,default:"end"}}),V=W({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:Tt(),slots:Object,setup(t,o){let{attrs:a,slots:e}=o;const{prefixCls:n,direction:c}=L("ribbon",t),[d,p]=tt(n),s=f(()=>k(t.color,!1)),h=f(()=>[n.value,`${n.value}-placement-${t.placement}`,{[`${n.value}-rtl`]:c.value==="rtl",[`${n.value}-color-${t.color}`]:s.value}]);return()=>{var m,l;const{class:u,style:r}=a,y=zt(a,["class","style"]),$={},g={};return t.color&&!s.value&&($.background=t.color,g.color=t.color),d(v("div",z({class:`${n.value}-wrapper ${p.value}`},y),[(m=e.default)===null||m===void 0?void 0:m.call(e),v("div",{class:[h.value,u,p.value],style:i(i({},$),r)},[v("span",{class:`${n.value}-text`},[t.text||((l=e.text)===null||l===void 0?void 0:l.call(e))]),v("div",{class:`${n.value}-corner`,style:g},null)])]))}}}),Et=()=>({count:T.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:T.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),M=W({compatConfig:{MODE:3},name:"ABadge",Ribbon:V,inheritAttrs:!1,props:Et(),slots:Object,setup(t,o){let{slots:a,attrs:e}=o;const{prefixCls:n,direction:c}=L("badge",t),[d,p]=tt(n),s=f(()=>t.count>t.overflowCount?`${t.overflowCount}+`:t.count),h=f(()=>s.value==="0"||s.value===0),m=f(()=>t.count===null||h.value&&!t.showZero),l=f(()=>(t.status!==null&&t.status!==void 0||t.color!==null&&t.color!==void 0)&&m.value),u=f(()=>t.dot&&!h.value),r=f(()=>u.value?"":s.value),y=f(()=>(r.value===null||r.value===void 0||r.value===""||h.value&&!t.showZero)&&!u.value),$=R(t.count),g=R(r.value),S=R(u.value);J([()=>t.count,r,u],()=>{y.value||($.value=t.count,g.value=r.value,S.value=u.value)},{immediate:!0});const b=f(()=>k(t.color,!1)),P=f(()=>({[`${n.value}-status-dot`]:l.value,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:b.value})),B=f(()=>t.color&&!b.value?{background:t.color,color:t.color}:{}),et=f(()=>({[`${n.value}-dot`]:S.value,[`${n.value}-count`]:!S.value,[`${n.value}-count-sm`]:t.size==="small",[`${n.value}-multiple-words`]:!S.value&&g.value&&g.value.toString().length>1,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:b.value}));return()=>{var E,_;const{offset:N,title:Z,color:X}=t,U=e.style,j=ut(a,t,"text"),x=n.value,C=$.value;let w=ct((E=a.default)===null||E===void 0?void 0:E.call(a));w=w.length?w:null;const A=!!(!y.value||a.count),D=(()=>{if(!N)return i({},U);const I={marginTop:pt(N[1])?`${N[1]}px`:N[1]};return c.value==="rtl"?I.left=`${parseInt(N[0],10)}px`:I.right=`${-parseInt(N[0],10)}px`,i(i({},I),U)})(),ot=Z??(typeof C=="string"||typeof C=="number"?C:void 0),nt=A||!j?null:v("span",{class:`${x}-status-text`},[j]),at=typeof C=="object"||C===void 0&&a.count?Q(C??((_=a.count)===null||_===void 0?void 0:_.call(a)),{style:D},!1):null,K=F(x,{[`${x}-status`]:l.value,[`${x}-not-a-wrapper`]:!w,[`${x}-rtl`]:c.value==="rtl"},e.class,p.value);if(!w&&l.value){const I=D.color;return d(v("span",z(z({},e),{},{class:K,style:D}),[v("span",{class:P.value,style:B.value},null),v("span",{style:{color:I},class:`${x}-status-text`},[j])]))}const rt=dt(w?`${x}-zoom`:"",{appear:!1});let H=i(i({},D),t.numberStyle);return X&&!b.value&&(H=H||{},H.background=X),d(v("span",z(z({},e),{},{class:K}),[w,v(bt,rt,{default:()=>[ft(v(Ct,{prefixCls:t.scrollNumberPrefixCls,show:A,class:et.value,count:g.value,title:ot,style:H,key:"scrollNumber"},{default:()=>[at]}),[[vt,A]])]}),nt]))}}});M.install=function(t){return t.component(M.name,M),t.component(V.name,V),t};export{V as BadgeRibbon,M as default};
1
+ import{h as i,i as F,P as T,q as L,N as lt,l as it,m as st,r as Y,K as O,f as z,a1 as ut,L as ct,g as dt}from"./index-IahILygB.js";import{d as W,b as f,a as mt,w as J,x as gt,c as v,r as R,a6 as bt,a3 as ft,a4 as vt}from"./vendor-Bn1JzzAn.js";import{c as Q}from"./vnode--gMF33R0.js";import{g as q,i as k}from"./colors-CAjKMUu3.js";import{i as pt}from"./isNumeric-DjvBa-1E.js";import"./icons-DG5UD-6K.js";function G(t){let{prefixCls:o,value:a,current:e,offset:n=0}=t,c;return n&&(c={position:"absolute",top:`${n}00%`,left:0}),v("p",{style:c,class:F(`${o}-only-unit`,{current:e})},[a])}function ht(t,o,a){let e=t,n=0;for(;(e+10)%10!==o;)e+=a,n+=a;return n}const $t=W({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(t){const o=f(()=>Number(t.value)),a=f(()=>Math.abs(t.count)),e=mt({prevValue:o.value,prevCount:a.value}),n=()=>{e.prevValue=o.value,e.prevCount=a.value},c=R();return J(o,()=>{clearTimeout(c.value),c.value=setTimeout(()=>{n()},1e3)},{flush:"post"}),gt(()=>{clearTimeout(c.value)}),()=>{let d,p={};const s=o.value;if(e.prevValue===s||Number.isNaN(s)||Number.isNaN(e.prevValue))d=[G(i(i({},t),{current:!0}))],p={transition:"none"};else{d=[];const h=s+10,m=[];for(let r=s;r<=h;r+=1)m.push(r);const l=m.findIndex(r=>r%10===e.prevValue);d=m.map((r,y)=>{const $=r%10;return G(i(i({},t),{value:$,offset:y-l,current:y===l}))});const u=e.prevCount<a.value?1:-1;p={transform:`translateY(${-ht(e.prevValue,s,u)}00%)`}}return v("span",{class:`${t.prefixCls}-only`,style:p,onTransitionend:()=>n()},[d])}}});var St=function(t,o){var a={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(a[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(t);n<e.length;n++)o.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(t,e[n])&&(a[e[n]]=t[e[n]]);return a};const yt={prefixCls:String,count:T.any,component:String,title:T.any,show:Boolean},Ct=W({compatConfig:{MODE:3},name:"ScrollNumber",inheritAttrs:!1,props:yt,setup(t,o){let{attrs:a,slots:e}=o;const{prefixCls:n}=L("scroll-number",t);return()=>{var c;const d=i(i({},t),a),{prefixCls:p,count:s,title:h,show:m,component:l="sup",class:u,style:r}=d,y=St(d,["prefixCls","count","title","show","component","class","style"]),$=i(i({},y),{style:r,"data-show":t.show,class:F(n.value,u),title:h});let g=s;if(s&&Number(s)%1===0){const b=String(s).split("");g=b.map((P,B)=>v($t,{prefixCls:n.value,count:Number(s),value:P,key:b.length-B},null))}r&&r.borderColor&&($.style=i(i({},r),{boxShadow:`0 0 0 1px ${r.borderColor} inset`}));const S=lt((c=e.default)===null||c===void 0?void 0:c.call(e));return S&&S.length?Q(S,{class:F(`${n.value}-custom-component`)},!1):v(l,$,{default:()=>[g]})}}}),xt=new O("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),wt=new O("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Nt=new O("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Ot=new O("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Pt=new O("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Bt=new O("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),It=t=>{const{componentCls:o,iconCls:a,antCls:e,badgeFontHeight:n,badgeShadowSize:c,badgeHeightSm:d,motionDurationSlow:p,badgeStatusSize:s,marginXS:h,badgeRibbonOffset:m}=t,l=`${e}-scroll-number`,u=`${e}-ribbon`,r=`${e}-ribbon-wrapper`,y=q(t,(g,S)=>{let{darkColor:b}=S;return{[`&${o} ${o}-color-${g}`]:{background:b,[`&:not(${o}-count)`]:{color:b}}}}),$=q(t,(g,S)=>{let{darkColor:b}=S;return{[`&${u}-color-${g}`]:{background:b,color:b}}});return{[o]:i(i(i(i({},Y(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${o}-count`]:{zIndex:t.badgeZIndex,minWidth:t.badgeHeight,height:t.badgeHeight,color:t.badgeTextColor,fontWeight:t.badgeFontWeight,fontSize:t.badgeFontSize,lineHeight:`${t.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:t.badgeHeight/2,boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${o}-count-sm`]:{minWidth:d,height:d,fontSize:t.badgeFontSizeSm,lineHeight:`${d}px`,borderRadius:d/2},[`${o}-multiple-words`]:{padding:`0 ${t.paddingXS}px`},[`${o}-dot`]:{zIndex:t.badgeZIndex,width:t.badgeDotSize,minWidth:t.badgeDotSize,height:t.badgeDotSize,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`},[`${o}-dot${l}`]:{transition:`background ${p}`},[`${o}-count, ${o}-dot, ${l}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${a}-spin`]:{animationName:Bt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${o}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${o}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${o}-status-success`]:{backgroundColor:t.colorSuccess},[`${o}-status-processing`]:{overflow:"visible",color:t.colorPrimary,backgroundColor:t.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:c,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:xt,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${o}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${o}-status-error`]:{backgroundColor:t.colorError},[`${o}-status-warning`]:{backgroundColor:t.colorWarning},[`${o}-status-text`]:{marginInlineStart:h,color:t.colorText,fontSize:t.fontSize}}}),y),{[`${o}-zoom-appear, ${o}-zoom-enter`]:{animationName:wt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${o}-zoom-leave`]:{animationName:Nt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${o}-not-a-wrapper`]:{[`${o}-zoom-appear, ${o}-zoom-enter`]:{animationName:Ot,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${o}-zoom-leave`]:{animationName:Pt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${o}-status)`]:{verticalAlign:"middle"},[`${l}-custom-component, ${o}-count`]:{transform:"none"},[`${l}-custom-component, ${l}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${l}`]:{overflow:"hidden",[`${l}-only`]:{position:"relative",display:"inline-block",height:t.badgeHeight,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${l}-only-unit`]:{height:t.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${l}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${o}-count, ${o}-dot, ${l}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${r}`]:{position:"relative"},[`${u}`]:i(i(i(i({},Y(t)),{position:"absolute",top:h,padding:`0 ${t.paddingXS}px`,color:t.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${u}-text`]:{color:t.colorTextLightSolid},[`${u}-corner`]:{position:"absolute",top:"100%",width:m,height:m,color:"currentcolor",border:`${m/2}px solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),$),{[`&${u}-placement-end`]:{insetInlineEnd:-m,borderEndEndRadius:0,[`${u}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${u}-placement-start`]:{insetInlineStart:-m,borderEndStartRadius:0,[`${u}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},tt=it("Badge",t=>{const{fontSize:o,lineHeight:a,fontSizeSM:e,lineWidth:n,marginXS:c,colorBorderBg:d}=t,p=Math.round(o*a),s=n,h="auto",m=p-2*s,l=t.colorBgContainer,u="normal",r=e,y=t.colorError,$=t.colorErrorHover,g=o,S=e/2,b=e,P=e/2,B=st(t,{badgeFontHeight:p,badgeShadowSize:s,badgeZIndex:h,badgeHeight:m,badgeTextColor:l,badgeFontWeight:u,badgeFontSize:r,badgeColor:y,badgeColorHover:$,badgeShadowColor:d,badgeHeightSm:g,badgeDotSize:S,badgeFontSizeSm:b,badgeStatusSize:P,badgeProcessingDuration:"1.2s",badgeRibbonOffset:c,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[It(B)]});var zt=function(t,o){var a={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(a[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(t);n<e.length;n++)o.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(t,e[n])&&(a[e[n]]=t[e[n]]);return a};const Tt=()=>({prefix:String,color:{type:String},text:T.any,placement:{type:String,default:"end"}}),V=W({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:Tt(),slots:Object,setup(t,o){let{attrs:a,slots:e}=o;const{prefixCls:n,direction:c}=L("ribbon",t),[d,p]=tt(n),s=f(()=>k(t.color,!1)),h=f(()=>[n.value,`${n.value}-placement-${t.placement}`,{[`${n.value}-rtl`]:c.value==="rtl",[`${n.value}-color-${t.color}`]:s.value}]);return()=>{var m,l;const{class:u,style:r}=a,y=zt(a,["class","style"]),$={},g={};return t.color&&!s.value&&($.background=t.color,g.color=t.color),d(v("div",z({class:`${n.value}-wrapper ${p.value}`},y),[(m=e.default)===null||m===void 0?void 0:m.call(e),v("div",{class:[h.value,u,p.value],style:i(i({},$),r)},[v("span",{class:`${n.value}-text`},[t.text||((l=e.text)===null||l===void 0?void 0:l.call(e))]),v("div",{class:`${n.value}-corner`,style:g},null)])]))}}}),Et=()=>({count:T.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:T.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),M=W({compatConfig:{MODE:3},name:"ABadge",Ribbon:V,inheritAttrs:!1,props:Et(),slots:Object,setup(t,o){let{slots:a,attrs:e}=o;const{prefixCls:n,direction:c}=L("badge",t),[d,p]=tt(n),s=f(()=>t.count>t.overflowCount?`${t.overflowCount}+`:t.count),h=f(()=>s.value==="0"||s.value===0),m=f(()=>t.count===null||h.value&&!t.showZero),l=f(()=>(t.status!==null&&t.status!==void 0||t.color!==null&&t.color!==void 0)&&m.value),u=f(()=>t.dot&&!h.value),r=f(()=>u.value?"":s.value),y=f(()=>(r.value===null||r.value===void 0||r.value===""||h.value&&!t.showZero)&&!u.value),$=R(t.count),g=R(r.value),S=R(u.value);J([()=>t.count,r,u],()=>{y.value||($.value=t.count,g.value=r.value,S.value=u.value)},{immediate:!0});const b=f(()=>k(t.color,!1)),P=f(()=>({[`${n.value}-status-dot`]:l.value,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:b.value})),B=f(()=>t.color&&!b.value?{background:t.color,color:t.color}:{}),et=f(()=>({[`${n.value}-dot`]:S.value,[`${n.value}-count`]:!S.value,[`${n.value}-count-sm`]:t.size==="small",[`${n.value}-multiple-words`]:!S.value&&g.value&&g.value.toString().length>1,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:b.value}));return()=>{var E,_;const{offset:N,title:Z,color:X}=t,U=e.style,j=ut(a,t,"text"),x=n.value,C=$.value;let w=ct((E=a.default)===null||E===void 0?void 0:E.call(a));w=w.length?w:null;const A=!!(!y.value||a.count),D=(()=>{if(!N)return i({},U);const I={marginTop:pt(N[1])?`${N[1]}px`:N[1]};return c.value==="rtl"?I.left=`${parseInt(N[0],10)}px`:I.right=`${-parseInt(N[0],10)}px`,i(i({},I),U)})(),ot=Z??(typeof C=="string"||typeof C=="number"?C:void 0),nt=A||!j?null:v("span",{class:`${x}-status-text`},[j]),at=typeof C=="object"||C===void 0&&a.count?Q(C??((_=a.count)===null||_===void 0?void 0:_.call(a)),{style:D},!1):null,K=F(x,{[`${x}-status`]:l.value,[`${x}-not-a-wrapper`]:!w,[`${x}-rtl`]:c.value==="rtl"},e.class,p.value);if(!w&&l.value){const I=D.color;return d(v("span",z(z({},e),{},{class:K,style:D}),[v("span",{class:P.value,style:B.value},null),v("span",{style:{color:I},class:`${x}-status-text`},[j])]))}const rt=dt(w?`${x}-zoom`:"",{appear:!1});let H=i(i({},D),t.numberStyle);return X&&!b.value&&(H=H||{},H.background=X),d(v("span",z(z({},e),{},{class:K}),[w,v(bt,rt,{default:()=>[ft(v(Ct,{prefixCls:t.scrollNumberPrefixCls,show:A,class:et.value,count:g.value,title:ot,style:H,key:"scrollNumber"},{default:()=>[at]}),[[vt,A]])]}),nt]))}}});M.install=function(t){return t.component(M.name,M),t.component(V.name,V),t};export{V as BadgeRibbon,M as default};
@@ -1,4 +1,4 @@
1
- import{h as S,ah as gn,P as V,f as k,i as ue,ae as Pe,L as Rt,B as bn,Q as ve,aB as St,r as Je,ab as Qe,m as Se,ai as Dt,l as Sn,q as yn,M as wn,aC as In,a5 as Cn,af as Me,H as xn,a6 as yt,s as $n,aD as On}from"./index-DJ2OiRvh.js";import{d as fe,b as H,c as M,r as me,k as Tn,a7 as Vt,i as Be,e as Ie,o as ye,w as ne,Q as qe,F as Fe,s as X,f as De,p as ke,j as Mn,a as $e,t as En,x as Pn,z as et,n as Ee,q as Fn,a9 as ge}from"./vendor-Bn1JzzAn.js";import{T as Rn}from"./Trigger--F64N11F.js";import{K as _}from"./KeyCode-D63Tfrq7.js";import{c as Ht}from"./vnode-BcBIjvjH.js";import{B as Dn}from"./BaseInput-Bgih7yAv.js";import{p as tt}from"./pickAttrs-BnluLL16.js";import{O as Vn}from"./Overflow-COmfB8Ns.js";import{i as Hn}from"./isMobile--2fOlCHx.js";import{i as nt}from"./initDefaultProps-wrqabmui.js";import{R as Nn}from"./index-3YutaXnp.js";import{w as he}from"./raf-Deuc0E8-.js";import{s as be}from"./motion-BoyB3ilP.js";import{o as _e}from"./omit-DofGni53.js";import{u as wt}from"./useMergedState-DXbJa_zE.js";import{u as It}from"./useState-CnxtbLoC.js";import{C as Ln,L as Bn,ak as _n,b as An,k as zn,ai as Wn}from"./icons-DG5UD-6K.js";import{u as Kn,F as jn}from"./FormItemContext-DMB7xYFV.js";import{a as Un,g as Gn}from"./statusUtils-DFVmDmVl.js";import{u as Yn}from"./Compact-BPczlrRh.js";import{i as Ct}from"./move-Cq31cSFE.js";import{s as Xn,a as Qn,b as qn,c as Zn,i as xt}from"./slide-ToZO4gQ1.js";import{g as Jn}from"./compact-item-CFjQAMbY.js";import{d as kn}from"./devWarning-DlIv9Mbc.js";function $t(e,t){const{key:o}=e;let n;return"value"in e&&({value:n}=e),o??(n!==void 0?n:`rc-index-key-${t}`)}function Nt(e,t){const{label:o,value:n,options:l}=e||{};return{label:o||(t?"children":"label"),value:n||"value",options:l||"options"}}function eo(e){let{fieldNames:t,childrenAsData:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=[],{label:l,value:i,options:c}=Nt(t,!1);function a(f,s){f.forEach(r=>{const m=r[l];if(s||!(c in r)){const b=r[i];n.push({key:$t(r,n.length),groupOption:s,data:r,label:m,value:b})}else{let b=m;b===void 0&&o&&(b=r.label),n.push({key:$t(r,n.length),group:!0,data:r,label:b}),a(r[c],!0)}})}return a(e,!1),n}function Ze(e){const t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return gn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function to(e,t){if(!t||!t.length)return null;let o=!1;function n(i,c){let[a,...f]=c;if(!a)return[i];const s=i.split(a);return o=o||s.length>1,s.reduce((r,m)=>[...r,...n(m,f)],[]).filter(r=>r)}const l=n(e,t);return o?l:null}var no=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const oo=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},lo=fe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:V.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:V.oneOfType([Number,Boolean]).def(!0),popupElement:V.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:o,attrs:n,expose:l}=t;const i=H(()=>{const{dropdownMatchSelectWidth:a}=e;return oo(a)}),c=me();return l({getPopupElement:()=>c.value}),()=>{const a=S(S({},e),n),{empty:f=!1}=a,s=no(a,["empty"]),{visible:r,dropdownAlign:m,prefixCls:b,popupElement:C,dropdownClassName:g,dropdownStyle:y,direction:w="ltr",placement:x,dropdownMatchSelectWidth:D,containerWidth:E,dropdownRender:I,animation:v,transitionName:P,getPopupContainer:O,getTriggerDOMNode:R,onPopupVisibleChange:N,onPopupMouseEnter:A,onPopupFocusin:B,onPopupFocusout:U}=s,Y=`${b}-dropdown`;let W=C;I&&(W=I({menuNode:C,props:e}));const G=v?`${Y}-${v}`:P,z=S({minWidth:`${E}px`},y);return typeof D=="number"?z.width=`${D}px`:D&&(z.width=`${E}px`),M(Rn,k(k({},e),{},{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:x||(w==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:Y,popupTransitionName:G,popupAlign:m,popupVisible:r,getPopupContainer:O,popupClassName:ue(g,{[`${Y}-empty`]:f}),popupStyle:z,getTriggerDOMNode:R,onPopupVisibleChange:N}),{default:o.default,popup:()=>M("div",{ref:c,onMouseenter:A,onFocusin:B,onFocusout:U},[W])})}}}),Ce=(e,t)=>{let{slots:o}=t;var n;const{class:l,customizeIcon:i,customizeIconProps:c,onMousedown:a,onClick:f}=e;let s;return typeof i=="function"?s=i(c):s=Tn(i)?Vt(i):i,M("span",{class:l,onMousedown:r=>{r.preventDefault(),a&&a(r)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:f,"aria-hidden":!0},[s!==void 0?s:M("span",{class:l.split(/\s+/).map(r=>`${r}-icon`)},[(n=o.default)===null||n===void 0?void 0:n.call(o)])])};Ce.inheritAttrs=!1;Ce.displayName="TransBtn";Ce.props={class:String,customizeIcon:V.any,customizeIconProps:V.any,onMousedown:Function,onClick:Function};const io={inputRef:V.any,prefixCls:String,id:String,inputElement:V.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),attrs:V.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Lt=fe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:io,setup(e){let t=null;const o=Be("VCSelectContainerEvent");return()=>{var n;const{prefixCls:l,id:i,inputElement:c,disabled:a,tabindex:f,autofocus:s,autocomplete:r,editable:m,activeDescendantId:b,value:C,onKeydown:g,onMousedown:y,onChange:w,onPaste:x,onCompositionstart:D,onCompositionend:E,onFocus:I,onBlur:v,open:P,inputRef:O,attrs:R}=e;let N=c||M(Dn,null,null);const A=N.props||{},{onKeydown:B,onInput:U,onFocus:Y,onBlur:W,onMousedown:G,onCompositionstart:z,onCompositionend:oe,style:ie}=A;return N=Ht(N,S(S(S(S(S({type:"search"},A),{id:i,ref:O,disabled:a,tabindex:f,lazy:!1,autocomplete:r||"off",autofocus:s,class:ue(`${l}-selection-search-input`,(n=N?.props)===null||n===void 0?void 0:n.class),role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":b}),R),{value:m?C:"",readonly:!m,unselectable:m?null:"on",style:S(S({},ie),{opacity:m?null:0}),onKeydown:p=>{g(p),B&&B(p)},onMousedown:p=>{y(p),G&&G(p)},onInput:p=>{w(p),U&&U(p)},onCompositionstart(p){D(p),z&&z(p)},onCompositionend(p){E(p),oe&&oe(p)},onPaste:x,onFocus:function(){clearTimeout(t),Y&&Y(arguments.length<=0?void 0:arguments[0]),I&&I(arguments.length<=0?void 0:arguments[0]),o?.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var p=arguments.length,L=new Array(p),T=0;T<p;T++)L[T]=arguments[T];t=setTimeout(()=>{W&&W(L[0]),v&&v(L[0]),o?.blur(L[0])},100)}}),N.type==="textarea"?{}:{type:"search"}),!0,!0),N}}}),ao=Symbol("TreeSelectLegacyContextPropsKey");function ot(){return Be(ao,{})}const ro={id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),compositionStatus:Boolean,removeIcon:V.any,choiceTransitionName:String,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Ot=e=>{e.preventDefault(),e.stopPropagation()},so=fe({name:"MultipleSelectSelector",inheritAttrs:!1,props:ro,setup(e){const t=X(),o=X(0),n=X(!1),l=ot(),i=H(()=>`${e.prefixCls}-selection`),c=H(()=>e.open||e.mode==="tags"?e.searchValue:""),a=H(()=>e.mode==="tags"||e.showSearch&&(e.open||n.value)),f=me("");Ie(()=>{f.value=c.value}),ye(()=>{ne(f,()=>{o.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function s(g,y,w,x,D){return M("span",{class:ue(`${i.value}-item`,{[`${i.value}-item-disabled`]:w}),title:typeof g=="string"||typeof g=="number"?g.toString():void 0},[M("span",{class:`${i.value}-item-content`},[y]),x&&M(Ce,{class:`${i.value}-item-remove`,onMousedown:Ot,onClick:D,customizeIcon:e.removeIcon},{default:()=>[qe("×")]})])}function r(g,y,w,x,D,E){var I;const v=O=>{Ot(O),e.onToggleOpen(!open)};let P=E;return l.keyEntities&&(P=((I=l.keyEntities[g])===null||I===void 0?void 0:I.node)||{}),M("span",{key:g,onMousedown:v},[e.tagRender({label:y,value:g,disabled:w,closable:x,onClose:D,option:P})])}function m(g){const{disabled:y,label:w,value:x,option:D}=g,E=!e.disabled&&!y;let I=w;if(typeof e.maxTagTextLength=="number"&&(typeof w=="string"||typeof w=="number")){const P=String(I);P.length>e.maxTagTextLength&&(I=`${P.slice(0,e.maxTagTextLength)}...`)}const v=P=>{var O;P&&P.stopPropagation(),(O=e.onRemove)===null||O===void 0||O.call(e,g)};return typeof e.tagRender=="function"?r(x,I,y,E,v,D):s(w,I,y,E,v)}function b(g){const{maxTagPlaceholder:y=x=>`+ ${x.length} ...`}=e,w=typeof y=="function"?y(g):y;return s(w,w,!1)}const C=g=>{const y=g.target.composing;f.value=g.target.value,y||e.onInputChange(g)};return()=>{const{id:g,prefixCls:y,values:w,open:x,inputRef:D,placeholder:E,disabled:I,autofocus:v,autocomplete:P,activeDescendantId:O,tabindex:R,compositionStatus:N,onInputPaste:A,onInputKeyDown:B,onInputMouseDown:U,onInputCompositionStart:Y,onInputCompositionEnd:W}=e,G=M("div",{class:`${i.value}-search`,style:{width:o.value+"px"},key:"input"},[M(Lt,{inputRef:D,open:x,prefixCls:y,id:g,inputElement:null,disabled:I,autofocus:v,autocomplete:P,editable:a.value,activeDescendantId:O,value:f.value,onKeydown:B,onMousedown:U,onChange:C,onPaste:A,onCompositionstart:Y,onCompositionend:W,tabindex:R,attrs:tt(e,!0),onFocus:()=>n.value=!0,onBlur:()=>n.value=!1},null),M("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[f.value,qe(" ")])]),z=M(Vn,{prefixCls:`${i.value}-overflow`,data:w,renderItem:m,renderRest:b,suffix:G,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return M(Fe,null,[z,!w.length&&!c.value&&!N&&M("span",{class:`${i.value}-placeholder`},[E])])}}}),uo={inputElement:V.any,id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},lt=fe({name:"SingleSelector",setup(e){const t=X(!1),o=H(()=>e.mode==="combobox"),n=H(()=>o.value||e.showSearch),l=H(()=>{let r=e.searchValue||"";return o.value&&e.activeValue&&!t.value&&(r=e.activeValue),r}),i=ot();ne([o,()=>e.activeValue],()=>{o.value&&(t.value=!1)},{immediate:!0});const c=H(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!l.value||e.compositionStatus),a=H(()=>{const r=e.values[0];return r&&(typeof r.label=="string"||typeof r.label=="number")?r.label.toString():void 0}),f=()=>{if(e.values[0])return null;const r=c.value?{visibility:"hidden"}:void 0;return M("span",{class:`${e.prefixCls}-selection-placeholder`,style:r},[e.placeholder])},s=r=>{r.target.composing||(t.value=!0,e.onInputChange(r))};return()=>{var r,m,b,C;const{inputElement:g,prefixCls:y,id:w,values:x,inputRef:D,disabled:E,autofocus:I,autocomplete:v,activeDescendantId:P,open:O,tabindex:R,optionLabelRender:N,onInputKeyDown:A,onInputMouseDown:B,onInputPaste:U,onInputCompositionStart:Y,onInputCompositionEnd:W}=e,G=x[0];let z=null;if(G&&i.customSlots){const oe=(r=G.key)!==null&&r!==void 0?r:G.value,ie=((m=i.keyEntities[oe])===null||m===void 0?void 0:m.node)||{};z=i.customSlots[(b=ie.slots)===null||b===void 0?void 0:b.title]||i.customSlots.title||G.label,typeof z=="function"&&(z=z(ie))}else z=N&&G?N(G.option):G?.label;return M(Fe,null,[M("span",{class:`${y}-selection-search`},[M(Lt,{inputRef:D,prefixCls:y,id:w,open:O,inputElement:g,disabled:E,autofocus:I,autocomplete:v,editable:n.value,activeDescendantId:P,value:l.value,onKeydown:A,onMousedown:B,onChange:s,onPaste:U,onCompositionstart:Y,onCompositionend:W,tabindex:R,attrs:tt(e,!0)},null)]),!o.value&&G&&!c.value&&M("span",{class:`${y}-selection-item`,title:a.value},[M(Fe,{key:(C=G.key)!==null&&C!==void 0?C:G.value},[z])]),f()])}}});lt.props=uo;lt.inheritAttrs=!1;function co(e){return![_.ESC,_.SHIFT,_.BACKSPACE,_.TAB,_.WIN_KEY,_.ALT,_.META,_.WIN_KEY_RIGHT,_.CTRL,_.SEMICOLON,_.EQUALS,_.CAPS_LOCK,_.CONTEXT_MENU,_.F1,_.F2,_.F3,_.F4,_.F5,_.F6,_.F7,_.F8,_.F9,_.F10,_.F11,_.F12].includes(e)}function Bt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,o;De(()=>{clearTimeout(o)});function n(l){(l||t===null)&&(t=l),clearTimeout(o),o=setTimeout(()=>{t=null},e)}return[()=>t,n]}function Re(){const e=t=>{e.current=t};return e}const fo=fe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:V.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:V.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),disabled:{type:Boolean,default:void 0},placeholder:V.any,removeIcon:V.any,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:o}=t;const n=Re(),l=me(!1),[i,c]=Bt(0),a=x=>{const{which:D}=x;(D===_.UP||D===_.DOWN)&&x.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(x),D===_.ENTER&&e.mode==="tags"&&!l.value&&!e.open&&e.onSearchSubmit(x.target.value),co(D)&&e.onToggleOpen(!0)},f=()=>{c(!0)};let s=null;const r=x=>{e.onSearch(x,!0,l.value)!==!1&&e.onToggleOpen(!0)},m=()=>{l.value=!0},b=x=>{l.value=!1,e.mode!=="combobox"&&r(x.target.value)},C=x=>{let{target:{value:D}}=x;if(e.tokenWithEnter&&s&&/[\r\n]/.test(s)){const E=s.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(E,s)}s=null,r(D)},g=x=>{const{clipboardData:D}=x;s=D.getData("text")},y=x=>{let{target:D}=x;D!==n.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{n.current.focus()}):n.current.focus())},w=x=>{const D=i();x.target!==n.current&&!D&&x.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!D)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return o({focus:()=>{n.current.focus()},blur:()=>{n.current.blur()}}),()=>{const{prefixCls:x,domRef:D,mode:E}=e,I={inputRef:n,onInputKeyDown:a,onInputMouseDown:f,onInputChange:C,onInputPaste:g,compositionStatus:l.value,onInputCompositionStart:m,onInputCompositionEnd:b},v=E==="multiple"||E==="tags"?M(so,k(k({},e),I),null):M(lt,k(k({},e),I),null);return M("div",{ref:D,class:`${x}-selector`,onClick:y,onMousedown:w},[v])}}});function po(e,t,o){function n(l){var i,c,a;let f=l.target;f.shadowRoot&&l.composed&&(f=l.composedPath()[0]||f);const s=[(i=e[0])===null||i===void 0?void 0:i.value,(a=(c=e[1])===null||c===void 0?void 0:c.value)===null||a===void 0?void 0:a.getPopupElement()];t.value&&s.every(r=>r&&!r.contains(f)&&r!==f)&&o(!1)}ye(()=>{window.addEventListener("mousedown",n)}),De(()=>{window.removeEventListener("mousedown",n)})}function mo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=X(!1);let o;const n=()=>{clearTimeout(o)};return ye(()=>{n()}),[t,(i,c)=>{n(),o=setTimeout(()=>{t.value=i,c&&c()},e)},n]}const _t=Symbol("BaseSelectContextKey");function vo(e){return ke(_t,e)}function ho(){return Be(_t,{})}function At(e){if(!Mn(e))return $e(e);const t=new Proxy({},{get(o,n,l){return Reflect.get(e.value,n,l)},set(o,n,l){return e.value[n]=l,!0},deleteProperty(o,n){return Reflect.deleteProperty(e.value,n)},has(o,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return $e(t)}var go=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const bo=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],So=()=>({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:V.any,emptyOptions:Boolean}),zt=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:V.any,placeholder:V.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:V.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:V.any,clearIcon:V.any,removeIcon:V.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),yo=()=>S(S({},So()),zt());function it(e){return e==="tags"||e==="multiple"}const wo=fe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:nt(yo(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:o,expose:n,slots:l}=t;const i=H(()=>it(e.mode)),c=H(()=>e.showSearch!==void 0?e.showSearch:i.value||e.mode==="combobox"),a=X(!1);ye(()=>{a.value=Hn()});const f=ot(),s=X(null),r=Re(),m=X(null),b=X(null),C=X(null),g=me(!1),[y,w,x]=mo();n({focus:()=>{var u;(u=b.value)===null||u===void 0||u.focus()},blur:()=>{var u;(u=b.value)===null||u===void 0||u.blur()},scrollTo:u=>{var d;return(d=C.value)===null||d===void 0?void 0:d.scrollTo(u)}});const I=H(()=>{var u;if(e.mode!=="combobox")return e.searchValue;const d=(u=e.displayValues[0])===null||u===void 0?void 0:u.value;return typeof d=="string"||typeof d=="number"?String(d):""}),v=e.open!==void 0?e.open:e.defaultOpen,P=X(v),O=X(v),R=u=>{P.value=e.open!==void 0?e.open:u,O.value=P.value};ne(()=>e.open,()=>{R(e.open)});const N=H(()=>!e.notFoundContent&&e.emptyOptions);Ie(()=>{O.value=P.value,(e.disabled||N.value&&O.value&&e.mode==="combobox")&&(O.value=!1)});const A=H(()=>N.value?!1:O.value),B=u=>{const d=u!==void 0?u:!O.value;O.value!==d&&!e.disabled&&(R(d),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(d),!d&&K.value&&(K.value=!1,w(!1,()=>{L.value=!1,g.value=!1})))},U=H(()=>(e.tokenSeparators||[]).some(u=>[`
1
+ import{h as S,ah as gn,P as V,f as k,i as ue,ae as Pe,L as Rt,B as bn,Q as ve,aB as St,r as Je,ab as Qe,m as Se,ai as Dt,l as Sn,q as yn,M as wn,aC as In,a5 as Cn,af as Me,H as xn,a6 as yt,s as $n,aD as On}from"./index-IahILygB.js";import{d as fe,b as H,c as M,r as me,k as Tn,a7 as Vt,i as Be,e as Ie,o as ye,w as ne,Q as qe,F as Fe,s as X,f as De,p as ke,j as Mn,a as $e,t as En,x as Pn,z as et,n as Ee,q as Fn,a9 as ge}from"./vendor-Bn1JzzAn.js";import{T as Rn}from"./Trigger-CSeWGM0W.js";import{K as _}from"./KeyCode-D63Tfrq7.js";import{c as Ht}from"./vnode--gMF33R0.js";import{B as Dn}from"./BaseInput-DcB7NoRz.js";import{p as tt}from"./pickAttrs-8NLceQe8.js";import{O as Vn}from"./Overflow-DmE8mYVM.js";import{i as Hn}from"./isMobile--2fOlCHx.js";import{i as nt}from"./initDefaultProps-BoiGJDoO.js";import{R as Nn}from"./index-Cp5y7lX_.js";import{w as he}from"./raf-Deuc0E8-.js";import{s as be}from"./motion-5eL4E0pA.js";import{o as _e}from"./omit-D1yOBaO2.js";import{u as wt}from"./useMergedState-DXbJa_zE.js";import{u as It}from"./useState-CnxtbLoC.js";import{C as Ln,L as Bn,ak as _n,b as An,k as zn,ai as Wn}from"./icons-DG5UD-6K.js";import{u as Kn,F as jn}from"./FormItemContext-Cy8zr0-4.js";import{a as Un,g as Gn}from"./statusUtils-B8tqtWcX.js";import{u as Yn}from"./Compact-Dzdwd04z.js";import{i as Ct}from"./move-DjggDi_1.js";import{s as Xn,a as Qn,b as qn,c as Zn,i as xt}from"./slide-44yj3u49.js";import{g as Jn}from"./compact-item-BXuz49at.js";import{d as kn}from"./devWarning-CfB8DxT2.js";function $t(e,t){const{key:o}=e;let n;return"value"in e&&({value:n}=e),o??(n!==void 0?n:`rc-index-key-${t}`)}function Nt(e,t){const{label:o,value:n,options:l}=e||{};return{label:o||(t?"children":"label"),value:n||"value",options:l||"options"}}function eo(e){let{fieldNames:t,childrenAsData:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=[],{label:l,value:i,options:c}=Nt(t,!1);function a(f,s){f.forEach(r=>{const m=r[l];if(s||!(c in r)){const b=r[i];n.push({key:$t(r,n.length),groupOption:s,data:r,label:m,value:b})}else{let b=m;b===void 0&&o&&(b=r.label),n.push({key:$t(r,n.length),group:!0,data:r,label:b}),a(r[c],!0)}})}return a(e,!1),n}function Ze(e){const t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return gn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function to(e,t){if(!t||!t.length)return null;let o=!1;function n(i,c){let[a,...f]=c;if(!a)return[i];const s=i.split(a);return o=o||s.length>1,s.reduce((r,m)=>[...r,...n(m,f)],[]).filter(r=>r)}const l=n(e,t);return o?l:null}var no=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const oo=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},lo=fe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:V.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:V.oneOfType([Number,Boolean]).def(!0),popupElement:V.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:o,attrs:n,expose:l}=t;const i=H(()=>{const{dropdownMatchSelectWidth:a}=e;return oo(a)}),c=me();return l({getPopupElement:()=>c.value}),()=>{const a=S(S({},e),n),{empty:f=!1}=a,s=no(a,["empty"]),{visible:r,dropdownAlign:m,prefixCls:b,popupElement:C,dropdownClassName:g,dropdownStyle:y,direction:w="ltr",placement:x,dropdownMatchSelectWidth:D,containerWidth:E,dropdownRender:I,animation:v,transitionName:P,getPopupContainer:O,getTriggerDOMNode:R,onPopupVisibleChange:N,onPopupMouseEnter:A,onPopupFocusin:B,onPopupFocusout:U}=s,Y=`${b}-dropdown`;let W=C;I&&(W=I({menuNode:C,props:e}));const G=v?`${Y}-${v}`:P,z=S({minWidth:`${E}px`},y);return typeof D=="number"?z.width=`${D}px`:D&&(z.width=`${E}px`),M(Rn,k(k({},e),{},{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:x||(w==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:Y,popupTransitionName:G,popupAlign:m,popupVisible:r,getPopupContainer:O,popupClassName:ue(g,{[`${Y}-empty`]:f}),popupStyle:z,getTriggerDOMNode:R,onPopupVisibleChange:N}),{default:o.default,popup:()=>M("div",{ref:c,onMouseenter:A,onFocusin:B,onFocusout:U},[W])})}}}),Ce=(e,t)=>{let{slots:o}=t;var n;const{class:l,customizeIcon:i,customizeIconProps:c,onMousedown:a,onClick:f}=e;let s;return typeof i=="function"?s=i(c):s=Tn(i)?Vt(i):i,M("span",{class:l,onMousedown:r=>{r.preventDefault(),a&&a(r)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:f,"aria-hidden":!0},[s!==void 0?s:M("span",{class:l.split(/\s+/).map(r=>`${r}-icon`)},[(n=o.default)===null||n===void 0?void 0:n.call(o)])])};Ce.inheritAttrs=!1;Ce.displayName="TransBtn";Ce.props={class:String,customizeIcon:V.any,customizeIconProps:V.any,onMousedown:Function,onClick:Function};const io={inputRef:V.any,prefixCls:String,id:String,inputElement:V.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),attrs:V.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Lt=fe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:io,setup(e){let t=null;const o=Be("VCSelectContainerEvent");return()=>{var n;const{prefixCls:l,id:i,inputElement:c,disabled:a,tabindex:f,autofocus:s,autocomplete:r,editable:m,activeDescendantId:b,value:C,onKeydown:g,onMousedown:y,onChange:w,onPaste:x,onCompositionstart:D,onCompositionend:E,onFocus:I,onBlur:v,open:P,inputRef:O,attrs:R}=e;let N=c||M(Dn,null,null);const A=N.props||{},{onKeydown:B,onInput:U,onFocus:Y,onBlur:W,onMousedown:G,onCompositionstart:z,onCompositionend:oe,style:ie}=A;return N=Ht(N,S(S(S(S(S({type:"search"},A),{id:i,ref:O,disabled:a,tabindex:f,lazy:!1,autocomplete:r||"off",autofocus:s,class:ue(`${l}-selection-search-input`,(n=N?.props)===null||n===void 0?void 0:n.class),role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":b}),R),{value:m?C:"",readonly:!m,unselectable:m?null:"on",style:S(S({},ie),{opacity:m?null:0}),onKeydown:p=>{g(p),B&&B(p)},onMousedown:p=>{y(p),G&&G(p)},onInput:p=>{w(p),U&&U(p)},onCompositionstart(p){D(p),z&&z(p)},onCompositionend(p){E(p),oe&&oe(p)},onPaste:x,onFocus:function(){clearTimeout(t),Y&&Y(arguments.length<=0?void 0:arguments[0]),I&&I(arguments.length<=0?void 0:arguments[0]),o?.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var p=arguments.length,L=new Array(p),T=0;T<p;T++)L[T]=arguments[T];t=setTimeout(()=>{W&&W(L[0]),v&&v(L[0]),o?.blur(L[0])},100)}}),N.type==="textarea"?{}:{type:"search"}),!0,!0),N}}}),ao=Symbol("TreeSelectLegacyContextPropsKey");function ot(){return Be(ao,{})}const ro={id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),compositionStatus:Boolean,removeIcon:V.any,choiceTransitionName:String,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Ot=e=>{e.preventDefault(),e.stopPropagation()},so=fe({name:"MultipleSelectSelector",inheritAttrs:!1,props:ro,setup(e){const t=X(),o=X(0),n=X(!1),l=ot(),i=H(()=>`${e.prefixCls}-selection`),c=H(()=>e.open||e.mode==="tags"?e.searchValue:""),a=H(()=>e.mode==="tags"||e.showSearch&&(e.open||n.value)),f=me("");Ie(()=>{f.value=c.value}),ye(()=>{ne(f,()=>{o.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function s(g,y,w,x,D){return M("span",{class:ue(`${i.value}-item`,{[`${i.value}-item-disabled`]:w}),title:typeof g=="string"||typeof g=="number"?g.toString():void 0},[M("span",{class:`${i.value}-item-content`},[y]),x&&M(Ce,{class:`${i.value}-item-remove`,onMousedown:Ot,onClick:D,customizeIcon:e.removeIcon},{default:()=>[qe("×")]})])}function r(g,y,w,x,D,E){var I;const v=O=>{Ot(O),e.onToggleOpen(!open)};let P=E;return l.keyEntities&&(P=((I=l.keyEntities[g])===null||I===void 0?void 0:I.node)||{}),M("span",{key:g,onMousedown:v},[e.tagRender({label:y,value:g,disabled:w,closable:x,onClose:D,option:P})])}function m(g){const{disabled:y,label:w,value:x,option:D}=g,E=!e.disabled&&!y;let I=w;if(typeof e.maxTagTextLength=="number"&&(typeof w=="string"||typeof w=="number")){const P=String(I);P.length>e.maxTagTextLength&&(I=`${P.slice(0,e.maxTagTextLength)}...`)}const v=P=>{var O;P&&P.stopPropagation(),(O=e.onRemove)===null||O===void 0||O.call(e,g)};return typeof e.tagRender=="function"?r(x,I,y,E,v,D):s(w,I,y,E,v)}function b(g){const{maxTagPlaceholder:y=x=>`+ ${x.length} ...`}=e,w=typeof y=="function"?y(g):y;return s(w,w,!1)}const C=g=>{const y=g.target.composing;f.value=g.target.value,y||e.onInputChange(g)};return()=>{const{id:g,prefixCls:y,values:w,open:x,inputRef:D,placeholder:E,disabled:I,autofocus:v,autocomplete:P,activeDescendantId:O,tabindex:R,compositionStatus:N,onInputPaste:A,onInputKeyDown:B,onInputMouseDown:U,onInputCompositionStart:Y,onInputCompositionEnd:W}=e,G=M("div",{class:`${i.value}-search`,style:{width:o.value+"px"},key:"input"},[M(Lt,{inputRef:D,open:x,prefixCls:y,id:g,inputElement:null,disabled:I,autofocus:v,autocomplete:P,editable:a.value,activeDescendantId:O,value:f.value,onKeydown:B,onMousedown:U,onChange:C,onPaste:A,onCompositionstart:Y,onCompositionend:W,tabindex:R,attrs:tt(e,!0),onFocus:()=>n.value=!0,onBlur:()=>n.value=!1},null),M("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[f.value,qe(" ")])]),z=M(Vn,{prefixCls:`${i.value}-overflow`,data:w,renderItem:m,renderRest:b,suffix:G,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return M(Fe,null,[z,!w.length&&!c.value&&!N&&M("span",{class:`${i.value}-placeholder`},[E])])}}}),uo={inputElement:V.any,id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},lt=fe({name:"SingleSelector",setup(e){const t=X(!1),o=H(()=>e.mode==="combobox"),n=H(()=>o.value||e.showSearch),l=H(()=>{let r=e.searchValue||"";return o.value&&e.activeValue&&!t.value&&(r=e.activeValue),r}),i=ot();ne([o,()=>e.activeValue],()=>{o.value&&(t.value=!1)},{immediate:!0});const c=H(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!l.value||e.compositionStatus),a=H(()=>{const r=e.values[0];return r&&(typeof r.label=="string"||typeof r.label=="number")?r.label.toString():void 0}),f=()=>{if(e.values[0])return null;const r=c.value?{visibility:"hidden"}:void 0;return M("span",{class:`${e.prefixCls}-selection-placeholder`,style:r},[e.placeholder])},s=r=>{r.target.composing||(t.value=!0,e.onInputChange(r))};return()=>{var r,m,b,C;const{inputElement:g,prefixCls:y,id:w,values:x,inputRef:D,disabled:E,autofocus:I,autocomplete:v,activeDescendantId:P,open:O,tabindex:R,optionLabelRender:N,onInputKeyDown:A,onInputMouseDown:B,onInputPaste:U,onInputCompositionStart:Y,onInputCompositionEnd:W}=e,G=x[0];let z=null;if(G&&i.customSlots){const oe=(r=G.key)!==null&&r!==void 0?r:G.value,ie=((m=i.keyEntities[oe])===null||m===void 0?void 0:m.node)||{};z=i.customSlots[(b=ie.slots)===null||b===void 0?void 0:b.title]||i.customSlots.title||G.label,typeof z=="function"&&(z=z(ie))}else z=N&&G?N(G.option):G?.label;return M(Fe,null,[M("span",{class:`${y}-selection-search`},[M(Lt,{inputRef:D,prefixCls:y,id:w,open:O,inputElement:g,disabled:E,autofocus:I,autocomplete:v,editable:n.value,activeDescendantId:P,value:l.value,onKeydown:A,onMousedown:B,onChange:s,onPaste:U,onCompositionstart:Y,onCompositionend:W,tabindex:R,attrs:tt(e,!0)},null)]),!o.value&&G&&!c.value&&M("span",{class:`${y}-selection-item`,title:a.value},[M(Fe,{key:(C=G.key)!==null&&C!==void 0?C:G.value},[z])]),f()])}}});lt.props=uo;lt.inheritAttrs=!1;function co(e){return![_.ESC,_.SHIFT,_.BACKSPACE,_.TAB,_.WIN_KEY,_.ALT,_.META,_.WIN_KEY_RIGHT,_.CTRL,_.SEMICOLON,_.EQUALS,_.CAPS_LOCK,_.CONTEXT_MENU,_.F1,_.F2,_.F3,_.F4,_.F5,_.F6,_.F7,_.F8,_.F9,_.F10,_.F11,_.F12].includes(e)}function Bt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,o;De(()=>{clearTimeout(o)});function n(l){(l||t===null)&&(t=l),clearTimeout(o),o=setTimeout(()=>{t=null},e)}return[()=>t,n]}function Re(){const e=t=>{e.current=t};return e}const fo=fe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:V.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:V.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),disabled:{type:Boolean,default:void 0},placeholder:V.any,removeIcon:V.any,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:o}=t;const n=Re(),l=me(!1),[i,c]=Bt(0),a=x=>{const{which:D}=x;(D===_.UP||D===_.DOWN)&&x.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(x),D===_.ENTER&&e.mode==="tags"&&!l.value&&!e.open&&e.onSearchSubmit(x.target.value),co(D)&&e.onToggleOpen(!0)},f=()=>{c(!0)};let s=null;const r=x=>{e.onSearch(x,!0,l.value)!==!1&&e.onToggleOpen(!0)},m=()=>{l.value=!0},b=x=>{l.value=!1,e.mode!=="combobox"&&r(x.target.value)},C=x=>{let{target:{value:D}}=x;if(e.tokenWithEnter&&s&&/[\r\n]/.test(s)){const E=s.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(E,s)}s=null,r(D)},g=x=>{const{clipboardData:D}=x;s=D.getData("text")},y=x=>{let{target:D}=x;D!==n.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{n.current.focus()}):n.current.focus())},w=x=>{const D=i();x.target!==n.current&&!D&&x.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!D)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return o({focus:()=>{n.current.focus()},blur:()=>{n.current.blur()}}),()=>{const{prefixCls:x,domRef:D,mode:E}=e,I={inputRef:n,onInputKeyDown:a,onInputMouseDown:f,onInputChange:C,onInputPaste:g,compositionStatus:l.value,onInputCompositionStart:m,onInputCompositionEnd:b},v=E==="multiple"||E==="tags"?M(so,k(k({},e),I),null):M(lt,k(k({},e),I),null);return M("div",{ref:D,class:`${x}-selector`,onClick:y,onMousedown:w},[v])}}});function po(e,t,o){function n(l){var i,c,a;let f=l.target;f.shadowRoot&&l.composed&&(f=l.composedPath()[0]||f);const s=[(i=e[0])===null||i===void 0?void 0:i.value,(a=(c=e[1])===null||c===void 0?void 0:c.value)===null||a===void 0?void 0:a.getPopupElement()];t.value&&s.every(r=>r&&!r.contains(f)&&r!==f)&&o(!1)}ye(()=>{window.addEventListener("mousedown",n)}),De(()=>{window.removeEventListener("mousedown",n)})}function mo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=X(!1);let o;const n=()=>{clearTimeout(o)};return ye(()=>{n()}),[t,(i,c)=>{n(),o=setTimeout(()=>{t.value=i,c&&c()},e)},n]}const _t=Symbol("BaseSelectContextKey");function vo(e){return ke(_t,e)}function ho(){return Be(_t,{})}function At(e){if(!Mn(e))return $e(e);const t=new Proxy({},{get(o,n,l){return Reflect.get(e.value,n,l)},set(o,n,l){return e.value[n]=l,!0},deleteProperty(o,n){return Reflect.deleteProperty(e.value,n)},has(o,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return $e(t)}var go=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const bo=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],So=()=>({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:V.any,emptyOptions:Boolean}),zt=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:V.any,placeholder:V.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:V.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:V.any,clearIcon:V.any,removeIcon:V.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),yo=()=>S(S({},So()),zt());function it(e){return e==="tags"||e==="multiple"}const wo=fe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:nt(yo(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:o,expose:n,slots:l}=t;const i=H(()=>it(e.mode)),c=H(()=>e.showSearch!==void 0?e.showSearch:i.value||e.mode==="combobox"),a=X(!1);ye(()=>{a.value=Hn()});const f=ot(),s=X(null),r=Re(),m=X(null),b=X(null),C=X(null),g=me(!1),[y,w,x]=mo();n({focus:()=>{var u;(u=b.value)===null||u===void 0||u.focus()},blur:()=>{var u;(u=b.value)===null||u===void 0||u.blur()},scrollTo:u=>{var d;return(d=C.value)===null||d===void 0?void 0:d.scrollTo(u)}});const I=H(()=>{var u;if(e.mode!=="combobox")return e.searchValue;const d=(u=e.displayValues[0])===null||u===void 0?void 0:u.value;return typeof d=="string"||typeof d=="number"?String(d):""}),v=e.open!==void 0?e.open:e.defaultOpen,P=X(v),O=X(v),R=u=>{P.value=e.open!==void 0?e.open:u,O.value=P.value};ne(()=>e.open,()=>{R(e.open)});const N=H(()=>!e.notFoundContent&&e.emptyOptions);Ie(()=>{O.value=P.value,(e.disabled||N.value&&O.value&&e.mode==="combobox")&&(O.value=!1)});const A=H(()=>N.value?!1:O.value),B=u=>{const d=u!==void 0?u:!O.value;O.value!==d&&!e.disabled&&(R(d),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(d),!d&&K.value&&(K.value=!1,w(!1,()=>{L.value=!1,g.value=!1})))},U=H(()=>(e.tokenSeparators||[]).some(u=>[`
2
2
  `,`\r
3
3
  `].includes(u))),Y=(u,d,F)=>{var $,j;let q=!0,Z=u;($=e.onActiveValueChange)===null||$===void 0||$.call(e,null);const J=F?null:to(u,e.tokenSeparators);return e.mode!=="combobox"&&J&&(Z="",(j=e.onSearchSplit)===null||j===void 0||j.call(e,J),B(!1),q=!1),e.onSearch&&I.value!==Z&&e.onSearch(Z,{source:d?"typing":"effect"}),q},W=u=>{var d;!u||!u.trim()||(d=e.onSearch)===null||d===void 0||d.call(e,u,{source:"submit"})};ne(O,()=>{!O.value&&!i.value&&e.mode!=="combobox"&&Y("",!1,!1)},{immediate:!0,flush:"post"}),ne(()=>e.disabled,()=>{P.value&&e.disabled&&R(!1),e.disabled&&!g.value&&w(!1)},{immediate:!0});const[G,z]=Bt(),oe=function(u){var d;const F=G(),{which:$}=u;if($===_.ENTER&&(e.mode!=="combobox"&&u.preventDefault(),O.value||B(!0)),z(!!I.value),$===_.BACKSPACE&&!F&&i.value&&!I.value&&e.displayValues.length){const J=[...e.displayValues];let Q=null;for(let le=J.length-1;le>=0;le-=1){const ae=J[le];if(!ae.disabled){J.splice(le,1),Q=ae;break}}Q&&e.onDisplayValuesChange(J,{type:"remove",values:[Q]})}for(var j=arguments.length,q=new Array(j>1?j-1:0),Z=1;Z<j;Z++)q[Z-1]=arguments[Z];O.value&&C.value&&C.value.onKeydown(u,...q),(d=e.onKeydown)===null||d===void 0||d.call(e,u,...q)},ie=function(u){for(var d=arguments.length,F=new Array(d>1?d-1:0),$=1;$<d;$++)F[$-1]=arguments[$];O.value&&C.value&&C.value.onKeyup(u,...F),e.onKeyup&&e.onKeyup(u,...F)},p=u=>{const d=e.displayValues.filter(F=>F!==u);e.onDisplayValuesChange(d,{type:"remove",values:[u]})},L=X(!1),T=function(){w(!0),e.disabled||(e.onFocus&&!L.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&B(!0)),L.value=!0},K=me(!1),te=function(){if(K.value||(g.value=!0,w(!1,()=>{L.value=!1,g.value=!1,B(!1)}),e.disabled))return;const u=I.value;u&&(e.mode==="tags"?e.onSearch(u,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},re=()=>{K.value=!0},se=()=>{K.value=!1};ke("VCSelectContainerEvent",{focus:T,blur:te});const ee=[];ye(()=>{ee.forEach(u=>clearTimeout(u)),ee.splice(0,ee.length)}),De(()=>{ee.forEach(u=>clearTimeout(u)),ee.splice(0,ee.length)});const ce=function(u){var d,F;const{target:$}=u,j=(d=m.value)===null||d===void 0?void 0:d.getPopupElement();if(j&&j.contains($)){const Q=setTimeout(()=>{var le;const ae=ee.indexOf(Q);ae!==-1&&ee.splice(ae,1),x(),!a.value&&!j.contains(document.activeElement)&&((le=b.value)===null||le===void 0||le.focus())});ee.push(Q)}for(var q=arguments.length,Z=new Array(q>1?q-1:0),J=1;J<q;J++)Z[J-1]=arguments[J];(F=e.onMousedown)===null||F===void 0||F.call(e,u,...Z)},de=X(null),h=()=>{};return ye(()=>{ne(A,()=>{var u;if(A.value){const d=Math.ceil((u=s.value)===null||u===void 0?void 0:u.offsetWidth);de.value!==d&&!Number.isNaN(d)&&(de.value=d)}},{immediate:!0,flush:"post"})}),po([s,m],A,B),vo(At(S(S({},En(e)),{open:O,triggerOpen:A,showSearch:c,multiple:i,toggleOpen:B}))),()=>{const u=S(S({},e),o),{prefixCls:d,id:F,open:$,defaultOpen:j,mode:q,showSearch:Z,searchValue:J,onSearch:Q,allowClear:le,clearIcon:ae,showArrow:Ve,inputIcon:He,disabled:Oe,loading:Ne,getInputElement:ct,getPopupContainer:Xt,placement:Qt,animation:qt,transitionName:Zt,dropdownStyle:Jt,dropdownClassName:kt,dropdownMatchSelectWidth:en,dropdownRender:tn,dropdownAlign:nn,showAction:cl,direction:on,tokenSeparators:dl,tagRender:ln,optionLabelRender:an,onPopupScroll:fl,onDropdownVisibleChange:pl,onFocus:ml,onBlur:vl,onKeyup:hl,onKeydown:gl,onMousedown:bl,onClear:ze,omitDomProps:We,getRawInputElement:dt,displayValues:Le,onDisplayValuesChange:rn,emptyOptions:sn,activeDescendantId:un,activeValue:cn,OptionList:dn}=u,fn=go(u,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),ft=q==="combobox"&&ct&&ct()||null,Te=typeof dt=="function"&&dt(),Ke=S({},fn);let pt;Te&&(pt=we=>{B(we)}),bo.forEach(we=>{delete Ke[we]}),We?.forEach(we=>{delete Ke[we]});const mt=Ve!==void 0?Ve:Ne||!i.value&&q!=="combobox";let vt;mt&&(vt=M(Ce,{class:ue(`${d}-arrow`,{[`${d}-arrow-loading`]:Ne}),customizeIcon:He,customizeIconProps:{loading:Ne,searchValue:I.value,open:O.value,focused:y.value,showSearch:c.value}},null));let ht;const pn=()=>{ze?.(),rn([],{type:"clear",values:Le}),Y("",!1,!1)};!Oe&&le&&(Le.length||I.value)&&(ht=M(Ce,{class:`${d}-clear`,onMousedown:pn,customizeIcon:ae},{default:()=>[qe("×")]}));const mn=M(dn,{ref:C},S(S({},f.customSlots),{option:l.option})),vn=ue(d,o.class,{[`${d}-focused`]:y.value,[`${d}-multiple`]:i.value,[`${d}-single`]:!i.value,[`${d}-allow-clear`]:le,[`${d}-show-arrow`]:mt,[`${d}-disabled`]:Oe,[`${d}-loading`]:Ne,[`${d}-open`]:O.value,[`${d}-customize-input`]:ft,[`${d}-show-search`]:c.value}),gt=M(lo,{ref:m,disabled:Oe,prefixCls:d,visible:A.value,popupElement:mn,containerWidth:de.value,animation:qt,transitionName:Zt,dropdownStyle:Jt,dropdownClassName:kt,direction:on,dropdownMatchSelectWidth:en,dropdownRender:tn,dropdownAlign:nn,placement:Qt,getPopupContainer:Xt,empty:sn,getTriggerDOMNode:()=>r.current,onPopupVisibleChange:pt,onPopupMouseEnter:h,onPopupFocusin:re,onPopupFocusout:se},{default:()=>Te?Pe(Te)&&Ht(Te,{ref:r},!1,!0):M(fo,k(k({},e),{},{domRef:r,prefixCls:d,inputElement:ft,ref:b,id:F,showSearch:c.value,mode:q,activeDescendantId:un,tagRender:ln,optionLabelRender:an,values:Le,open:O.value,onToggleOpen:B,activeValue:cn,searchValue:I.value,onSearch:Y,onSearchSubmit:W,onRemove:p,tokenWithEnter:U.value}),null)});let je;return Te?je=gt:je=M("div",k(k({},Ke),{},{class:vn,ref:s,onMousedown:ce,onKeydown:oe,onKeyup:ie}),[y.value&&!O.value&&M("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${Le.map(we=>{let{label:bt,value:hn}=we;return["number","string"].includes(typeof bt)?bt:hn}).join(", ")}`]),gt,vt,ht]),je}}}),Ae=(e,t)=>{let{height:o,offset:n,prefixCls:l,onInnerResize:i}=e,{slots:c}=t;var a;let f={},s={display:"flex",flexDirection:"column"};return n!==void 0&&(f={height:`${o}px`,position:"relative",overflow:"hidden"},s=S(S({},s),{transform:`translateY(${n}px)`,position:"absolute",left:0,right:0,top:0})),M("div",{style:f},[M(Nn,{onResize:r=>{let{offsetHeight:m}=r;m&&i&&i()}},{default:()=>[M("div",{style:s,class:ue({[`${l}-holder-inner`]:l})},[(a=c.default)===null||a===void 0?void 0:a.call(c)])]})])};Ae.displayName="Filter";Ae.inheritAttrs=!1;Ae.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Wt=(e,t)=>{let{setRef:o}=e,{slots:n}=t;var l;const i=Rt((l=n.default)===null||l===void 0?void 0:l.call(n));return i&&i.length?Vt(i[0],{ref:o}):i};Wt.props={setRef:{type:Function,default:()=>{}}};const Io=20;function Tt(e){return"touches"in e?e.touches[0].pageY:e.pageY}const Co=fe({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:Re(),thumbRef:Re(),visibleTimeout:null,state:$e({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,be?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,be?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,be?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,be?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,be?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,be?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),he.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;S(this.state,{dragging:!0,pageY:Tt(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:o,startTop:n}=this.state,{onScroll:l}=this.$props;if(he.cancel(this.moveRaf),t){const i=Tt(e)-o,c=n+i,a=this.getEnableScrollRange(),f=this.getEnableHeightRange(),s=f?c/f:0,r=Math.ceil(s*a);this.moveRaf=he(()=>{l(r)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let o=e/t*100;return o=Math.max(o,Io),o=Math.min(o,e/2),Math.floor(o)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),o=this.getEnableHeightRange();return e===0||t===0?0:e/t*o},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:o}=this.$props,n=this.getSpinHeight()+"px",l=this.getTop()+"px",i=this.showScroll(),c=i&&t;return M("div",{ref:this.scrollbarRef,class:ue(`${o}-scrollbar`,{[`${o}-scrollbar-show`]:i}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:c?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[M("div",{ref:this.thumbRef,class:ue(`${o}-scrollbar-thumb`,{[`${o}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:n,top:l,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function xo(e,t,o,n){const l=new Map,i=new Map,c=me(Symbol("update"));ne(e,()=>{c.value=Symbol("update")});let a;function f(){he.cancel(a)}function s(){f(),a=he(()=>{l.forEach((m,b)=>{if(m&&m.offsetParent){const{offsetHeight:C}=m;i.get(b)!==C&&(c.value=Symbol("update"),i.set(b,m.offsetHeight))}})})}function r(m,b){const C=t(m);l.get(C),b?(l.set(C,b.$el||b),s()):l.delete(C)}return Pn(()=>{f()}),[r,s,i,c]}function $o(e,t,o,n,l,i,c,a){let f;return s=>{if(s==null){a();return}he.cancel(f);const r=t.value,m=n.itemHeight;if(typeof s=="number")c(s);else if(s&&typeof s=="object"){let b;const{align:C}=s;"index"in s?{index:b}=s:b=r.findIndex(w=>l(w)===s.key);const{offset:g=0}=s,y=(w,x)=>{if(w<0||!e.value)return;const D=e.value.clientHeight;let E=!1,I=x;if(D){const v=x||C;let P=0,O=0,R=0;const N=Math.min(r.length,b);for(let U=0;U<=N;U+=1){const Y=l(r[U]);O=P;const W=o.get(Y);R=O+(W===void 0?m:W),P=R,U===b&&W===void 0&&(E=!0)}const A=e.value.scrollTop;let B=null;switch(v){case"top":B=O-g;break;case"bottom":B=R-D+g;break;default:{const U=A+D;O<A?I="top":R>U&&(I="bottom")}}B!==null&&B!==A&&c(B)}f=he(()=>{E&&i(),y(w-1,I)},2)};y(5)}}}const Oo=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),Kt=((e,t)=>{let o=!1,n=null;function l(){clearTimeout(n),o=!0,n=setTimeout(()=>{o=!1},50)}return function(i){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=i<0&&e.value||i>0&&t.value;return c&&a?(clearTimeout(n),o=!1):(!a||o)&&l(),!o&&a}});function To(e,t,o,n){let l=0,i=null,c=null,a=!1;const f=Kt(t,o);function s(m){if(!e.value)return;he.cancel(i);const{deltaY:b}=m;l+=b,c=b,!f(b)&&(Oo||m.preventDefault(),i=he(()=>{n(l*(a?10:1)),l=0}))}function r(m){e.value&&(a=m.detail===c)}return[s,r]}const Mo=14/15;function Eo(e,t,o){let n=!1,l=0,i=null,c=null;const a=()=>{i&&(i.removeEventListener("touchmove",f),i.removeEventListener("touchend",s))},f=b=>{if(n){const C=Math.ceil(b.touches[0].pageY);let g=l-C;l=C,o(g)&&b.preventDefault(),clearInterval(c),c=setInterval(()=>{g*=Mo,(!o(g,!0)||Math.abs(g)<=.1)&&clearInterval(c)},16)}},s=()=>{n=!1,a()},r=b=>{a(),b.touches.length===1&&!n&&(n=!0,l=Math.ceil(b.touches[0].pageY),i=b.target,i.addEventListener("touchmove",f,{passive:!1}),i.addEventListener("touchend",s))},m=()=>{};ye(()=>{document.addEventListener("touchmove",m,{passive:!1}),ne(e,b=>{t.value.removeEventListener("touchstart",r),a(),clearInterval(c),b&&t.value.addEventListener("touchstart",r,{passive:!1})},{immediate:!0})}),De(()=>{document.removeEventListener("touchmove",m)})}var Po=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const Fo=[],Ro={overflowY:"auto",overflowAnchor:"none"};function Do(e,t,o,n,l,i){let{getKey:c}=i;return e.slice(t,o+1).map((a,f)=>{const s=t+f,r=l(a,s,{}),m=c(a);return M(Wt,{key:m,setRef:b=>n(a,b)},{default:()=>[r]})})}const Vo=fe({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:V.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:o}=t;const n=H(()=>{const{height:p,itemHeight:L,virtual:T}=e;return!!(T!==!1&&p&&L)}),l=H(()=>{const{height:p,itemHeight:L,data:T}=e;return n.value&&T&&L*T.length>p}),i=$e({scrollTop:0,scrollMoving:!1}),c=H(()=>e.data||Fo),a=X([]);ne(c,()=>{a.value=et(c.value).slice()},{immediate:!0});const f=X(p=>{});ne(()=>e.itemKey,p=>{typeof p=="function"?f.value=p:f.value=L=>L?.[p]},{immediate:!0});const s=X(),r=X(),m=X(),b=p=>f.value(p),C={getKey:b};function g(p){let L;typeof p=="function"?L=p(i.scrollTop):L=p;const T=P(L);s.value&&(s.value.scrollTop=T),i.scrollTop=T}const[y,w,x,D]=xo(a,b),E=$e({scrollHeight:void 0,start:0,end:0,offset:void 0}),I=X(0);ye(()=>{Ee(()=>{var p;I.value=((p=r.value)===null||p===void 0?void 0:p.offsetHeight)||0})}),Fn(()=>{Ee(()=>{var p;I.value=((p=r.value)===null||p===void 0?void 0:p.offsetHeight)||0})}),ne([n,a],()=>{n.value||S(E,{scrollHeight:void 0,start:0,end:a.value.length-1,offset:void 0})},{immediate:!0}),ne([n,a,I,l],()=>{n.value&&!l.value&&S(E,{scrollHeight:I.value,start:0,end:a.value.length-1,offset:void 0}),s.value&&(i.scrollTop=s.value.scrollTop)},{immediate:!0}),ne([l,n,()=>i.scrollTop,a,D,()=>e.height,I],()=>{if(!n.value||!l.value)return;let p=0,L,T,K;const te=a.value.length,re=a.value,se=i.scrollTop,{itemHeight:ee,height:ce}=e,de=se+ce;for(let h=0;h<te;h+=1){const u=re[h],d=b(u);let F=x.get(d);F===void 0&&(F=ee);const $=p+F;L===void 0&&$>=se&&(L=h,T=p),K===void 0&&$>de&&(K=h),p=$}L===void 0&&(L=0,T=0,K=Math.ceil(ce/ee)),K===void 0&&(K=te-1),K=Math.min(K+1,te),S(E,{scrollHeight:p,start:L,end:K,offset:T})},{immediate:!0});const v=H(()=>E.scrollHeight-e.height);function P(p){let L=p;return Number.isNaN(v.value)||(L=Math.min(L,v.value)),L=Math.max(L,0),L}const O=H(()=>i.scrollTop<=0),R=H(()=>i.scrollTop>=v.value),N=Kt(O,R);function A(p){g(p)}function B(p){var L;const{scrollTop:T}=p.currentTarget;T!==i.scrollTop&&g(T),(L=e.onScroll)===null||L===void 0||L.call(e,p)}const[U,Y]=To(n,O,R,p=>{g(L=>L+p)});Eo(n,s,(p,L)=>N(p,L)?!1:(U({preventDefault(){},deltaY:p}),!0));function W(p){n.value&&p.preventDefault()}const G=()=>{s.value&&(s.value.removeEventListener("wheel",U,be?{passive:!1}:!1),s.value.removeEventListener("DOMMouseScroll",Y),s.value.removeEventListener("MozMousePixelScroll",W))};Ie(()=>{Ee(()=>{s.value&&(G(),s.value.addEventListener("wheel",U,be?{passive:!1}:!1),s.value.addEventListener("DOMMouseScroll",Y),s.value.addEventListener("MozMousePixelScroll",W))})}),De(()=>{G()});const z=$o(s,a,x,e,b,w,g,()=>{var p;(p=m.value)===null||p===void 0||p.delayHidden()});o({scrollTo:z});const oe=H(()=>{let p=null;return e.height&&(p=S({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},Ro),n.value&&(p.overflowY="hidden",i.scrollMoving&&(p.pointerEvents="none"))),p});return ne([()=>E.start,()=>E.end,a],()=>{if(e.onVisibleChange){const p=a.value.slice(E.start,E.end+1);e.onVisibleChange(p,a.value)}},{flush:"post"}),{state:i,mergedData:a,componentStyle:oe,onFallbackScroll:B,onScrollBar:A,componentRef:s,useVirtual:n,calRes:E,collectHeight:w,setInstance:y,sharedConfig:C,scrollBarRef:m,fillerInnerRef:r,delayHideScrollBar:()=>{var p;(p=m.value)===null||p===void 0||p.delayHidden()}}},render(){const e=S(S({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:o,itemHeight:n,fullHeight:l,data:i,itemKey:c,virtual:a,component:f="div",onScroll:s,children:r=this.$slots.default,style:m,class:b}=e,C=Po(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),g=ue(t,b),{scrollTop:y}=this.state,{scrollHeight:w,offset:x,start:D,end:E}=this.calRes,{componentStyle:I,onFallbackScroll:v,onScrollBar:P,useVirtual:O,collectHeight:R,sharedConfig:N,setInstance:A,mergedData:B,delayHideScrollBar:U}=this;return M("div",k({style:S(S({},m),{position:"relative"}),class:g},C),[M(f,{class:`${t}-holder`,style:I,ref:"componentRef",onScroll:v,onMouseenter:U},{default:()=>[M(Ae,{prefixCls:t,height:w,offset:x,onInnerResize:R,ref:"fillerInnerRef"},{default:()=>Do(B,D,E,A,r,N)})]}),O&&M(Co,{ref:"scrollBarRef",prefixCls:t,scrollTop:y,height:o,scrollHeight:w,count:B.length,onScroll:P,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function Ho(e,t,o){const n=me(e());return ne(t,(l,i)=>{o?o(l,i)&&(n.value=e()):n.value=e()}),n}function No(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const jt=Symbol("SelectContextKey");function Lo(e){return ke(jt,e)}function Bo(){return Be(jt,{})}var _o=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};function Mt(e){return typeof e=="string"||typeof e=="number"}const Ao=fe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{expose:o,slots:n}=t;const l=ho(),i=Bo(),c=H(()=>`${l.prefixCls}-item`),a=Ho(()=>i.flattenOptions,[()=>l.open,()=>i.flattenOptions],v=>v[0]),f=Re(),s=v=>{v.preventDefault()},r=v=>{f.current&&f.current.scrollTo(typeof v=="number"?{index:v}:v)},m=function(v){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const O=a.value.length;for(let R=0;R<O;R+=1){const N=(v+R*P+O)%O,{group:A,data:B}=a.value[N];if(!A&&!B.disabled)return N}return-1},b=$e({activeIndex:m(0)}),C=function(v){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;b.activeIndex=v;const O={source:P?"keyboard":"mouse"},R=a.value[v];if(!R){i.onActiveValue(null,-1,O);return}i.onActiveValue(R.value,v,O)};ne([()=>a.value.length,()=>l.searchValue],()=>{C(i.defaultActiveFirstOption!==!1?m(0):-1)},{immediate:!0});const g=v=>i.rawValues.has(v)&&l.mode!=="combobox";ne([()=>l.open,()=>l.searchValue],()=>{if(!l.multiple&&l.open&&i.rawValues.size===1){const v=Array.from(i.rawValues)[0],P=et(a.value).findIndex(O=>{let{data:R}=O;return R[i.fieldNames.value]===v});P!==-1&&(C(P),Ee(()=>{r(P)}))}l.open&&Ee(()=>{var v;(v=f.current)===null||v===void 0||v.scrollTo(void 0)})},{immediate:!0,flush:"post"});const y=v=>{v!==void 0&&i.onSelect(v,{selected:!i.rawValues.has(v)}),l.multiple||l.toggleOpen(!1)},w=v=>typeof v.label=="function"?v.label():v.label;function x(v){const P=a.value[v];if(!P)return null;const O=P.data||{},{value:R}=O,{group:N}=P,A=tt(O,!0),B=w(P);return P?M("div",k(k({"aria-label":typeof B=="string"&&!N?B:null},A),{},{key:v,role:N?"presentation":"option",id:`${l.id}_list_${v}`,"aria-selected":g(R)}),[R]):null}return o({onKeydown:v=>{const{which:P,ctrlKey:O}=v;switch(P){case _.N:case _.P:case _.UP:case _.DOWN:{let R=0;if(P===_.UP?R=-1:P===_.DOWN?R=1:No()&&O&&(P===_.N?R=1:P===_.P&&(R=-1)),R!==0){const N=m(b.activeIndex+R,R);r(N),C(N,!0)}break}case _.ENTER:{const R=a.value[b.activeIndex];R&&!R.data.disabled?y(R.value):y(void 0),l.open&&v.preventDefault();break}case _.ESC:l.toggleOpen(!1),l.open&&v.stopPropagation()}},onKeyup:()=>{},scrollTo:v=>{r(v)}}),()=>{const{id:v,notFoundContent:P,onPopupScroll:O}=l,{menuItemSelectedIcon:R,fieldNames:N,virtual:A,listHeight:B,listItemHeight:U}=i,Y=n.option,{activeIndex:W}=b,G=Object.keys(N).map(z=>N[z]);return a.value.length===0?M("div",{role:"listbox",id:`${v}_list`,class:`${c.value}-empty`,onMousedown:s},[P]):M(Fe,null,[M("div",{role:"listbox",id:`${v}_list`,style:{height:0,width:0,overflow:"hidden"}},[x(W-1),x(W),x(W+1)]),M(Vo,{itemKey:"key",ref:f,data:a.value,height:B,itemHeight:U,fullHeight:!1,onMousedown:s,onScroll:O,virtual:A},{default:(z,oe)=>{var ie;const{group:p,groupOption:L,data:T,value:K}=z,{key:te}=T,re=typeof z.label=="function"?z.label():z.label;if(p){const ae=(ie=T.title)!==null&&ie!==void 0?ie:Mt(re)&&re;return M("div",{class:ue(c.value,`${c.value}-group`),title:ae},[Y?Y(T):re!==void 0?re:te])}const{disabled:se,title:ee,children:ce,style:de,class:h,className:u}=T,d=_o(T,["disabled","title","children","style","class","className"]),F=_e(d,G),$=g(K),j=`${c.value}-option`,q=ue(c.value,j,h,u,{[`${j}-grouped`]:L,[`${j}-active`]:W===oe&&!se,[`${j}-disabled`]:se,[`${j}-selected`]:$}),Z=w(z),J=!R||typeof R=="function"||$,Q=typeof Z=="number"?Z:Z||K;let le=Mt(Q)?Q.toString():void 0;return ee!==void 0&&(le=ee),M("div",k(k({},F),{},{"aria-selected":$,class:q,title:le,onMousemove:ae=>{d.onMousemove&&d.onMousemove(ae),!(W===oe||se)&&C(oe)},onClick:ae=>{se||y(K),d.onClick&&d.onClick(ae)},style:de}),[M("div",{class:`${j}-content`},[Y?Y(T):Q]),Pe(R)||$,J&&M(Ce,{class:`${c.value}-option-state`,customizeIcon:R,customizeIconProps:{isSelected:$}},{default:()=>[$?"✓":null]})])}})])}}});var zo=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};function Wo(e){const t=e,{key:o,children:n}=t,l=t.props,{value:i,disabled:c}=l,a=zo(l,["value","disabled"]),f=n?.default;return S({key:o,value:i!==void 0?i:o,children:f,disabled:c||c===""},a)}function at(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Rt(e).map((n,l)=>{var i;if(!Pe(n)||!n.type)return null;const{type:{isSelectOptGroup:c},key:a,children:f,props:s}=n;if(t||!c)return Wo(n);const r=f&&f.default?f.default():void 0,m=s?.label||((i=f.label)===null||i===void 0?void 0:i.call(f))||a;return S(S({key:`__RC_SELECT_GRP__${a===null?l:String(a)}__`},s),{label:m,options:at(r||[])})}).filter(n=>n)}function Ko(e,t,o){const n=X(),l=X(),i=X(),c=X([]);return ne([e,t],()=>{e.value?c.value=et(e.value).slice():c.value=at(t.value)},{immediate:!0,deep:!0}),Ie(()=>{const a=c.value,f=new Map,s=new Map,r=o.value;function m(b){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let g=0;g<b.length;g+=1){const y=b[g];!y[r.options]||C?(f.set(y[r.value],y),s.set(y[r.label],y)):m(y[r.options],!0)}}m(a),n.value=a,l.value=f,i.value=s}),{options:n,valueOptions:l,labelOptions:i}}let Et=0;const jo=bn();function Uo(){let e;return jo?(e=Et,Et+=1):e="TEST_OR_SSR",e}function Go(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me("");const t=`rc_select_${Uo()}`;return e.value||t}function rt(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Yo(e){const{mode:t,options:o,children:n,backfill:l,allowClear:i,placeholder:c,getInputElement:a,showSearch:f,onSearch:s,defaultOpen:r,autofocus:m,labelInValue:b,value:C,inputValue:g,optionLabelProp:y}=e,w=it(t),x=f!==void 0?f:w||t==="combobox",D=o||at(n);if(ve(t!=="tags"||D.every(E=>!E.disabled),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ve(t!=="combobox"||!y,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),ve(t==="combobox"||!l,"`backfill` only works with `combobox` mode."),ve(t==="combobox"||!a,"`getInputElement` only work with `combobox` mode."),St(t!=="combobox"||!a||!i||!c,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),s&&!x&&t!=="combobox"&&t!=="tags"&&ve(!1,"`onSearch` should work with `showSearch` instead of use alone."),St(!r||m,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autofocus` if needed."),C!=null){const E=rt(C);ve(!b||E.every(I=>typeof I=="object"&&("key"in I||"value"in I)),"`value` should in shape of `{ value: string | number, label?: any }` when you set `labelInValue` to `true`"),ve(!w||Array.isArray(C),"`value` should be array when `mode` is `multiple` or `tags`")}if(n){let E=null;n.some(I=>{var v;if(!Pe(I)||!I.type)return!1;const{type:P}=I;return P.isSelectOption?!1:P.isSelectOptGroup?!(((v=I.children)===null||v===void 0?void 0:v.default())||[]).every(N=>!Pe(N)||!I.type||N.type.isSelectOption?!0:(E=N.type,!1)):(E=P,!0)}),E&&ve(!1,`\`children\` should be \`Select.Option\` or \`Select.OptGroup\` instead of \`${E.displayName||E.name||E}\`.`),ve(g===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ue(e,t){return rt(e).join("").toUpperCase().includes(t)}const Xo=((e,t,o,n,l)=>H(()=>{const i=o.value,c=l?.value,a=n?.value;if(!i||a===!1)return e.value;const{options:f,label:s,value:r}=t.value,m=[],b=typeof a=="function",C=i.toUpperCase(),g=b?a:(w,x)=>c?Ue(x[c],C):x[f]?Ue(x[s!=="children"?s:"label"],C):Ue(x[r],C),y=b?w=>Ze(w):w=>w;return e.value.forEach(w=>{if(w[f]){if(g(i,y(w)))m.push(w);else{const D=w[f].filter(E=>g(i,y(E)));D.length&&m.push(S(S({},w),{[f]:D}))}return}g(i,y(w))&&m.push(w)}),m})),Qo=((e,t)=>{const o=X({values:new Map,options:new Map});return[H(()=>{const{values:i,options:c}=o.value,a=e.value.map(r=>{var m;return r.label===void 0?S(S({},r),{label:(m=i.get(r.value))===null||m===void 0?void 0:m.label}):r}),f=new Map,s=new Map;return a.forEach(r=>{f.set(r.value,r),s.set(r.value,t.value.get(r.value)||c.get(r.value))}),o.value.values=f,o.value.options=s,a}),i=>t.value.get(i)||o.value.options.get(i)]}),qo=["inputValue"];function Ut(){return S(S({},zt()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:V.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:V.any,defaultValue:V.any,onChange:Function,children:Array})}function Zo(e){return!e||typeof e!="object"}const Jo=fe({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:nt(Ut(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:o,attrs:n,slots:l}=t;const i=Go(ge(e,"id")),c=H(()=>it(e.mode)),a=H(()=>!!(!e.options&&e.children)),f=H(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),s=H(()=>Nt(e.fieldNames,a.value)),[r,m]=wt("",{value:H(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:h=>h||""}),b=Ko(ge(e,"options"),ge(e,"children"),s),{valueOptions:C,labelOptions:g,options:y}=b,w=h=>rt(h).map(d=>{var F,$;let j,q,Z,J;Zo(d)?j=d:(Z=d.key,q=d.label,j=(F=d.value)!==null&&F!==void 0?F:Z);const Q=C.value.get(j);return Q&&(q===void 0&&(q=Q?.[e.optionLabelProp||s.value.label]),Z===void 0&&(Z=($=Q?.key)!==null&&$!==void 0?$:j),J=Q?.disabled),{label:q,value:j,key:Z,disabled:J,option:Q}}),[x,D]=wt(e.defaultValue,{value:ge(e,"value")}),E=H(()=>{var h;const u=w(x.value);return e.mode==="combobox"&&!(!((h=u[0])===null||h===void 0)&&h.value)?[]:u}),[I,v]=Qo(E,C),P=H(()=>{if(!e.mode&&I.value.length===1){const h=I.value[0];if(h.value===null&&(h.label===null||h.label===void 0))return[]}return I.value.map(h=>{var u;return S(S({},h),{label:(u=typeof h.label=="function"?h.label():h.label)!==null&&u!==void 0?u:h.value})})}),O=H(()=>new Set(I.value.map(h=>h.value)));Ie(()=>{var h;if(e.mode==="combobox"){const u=(h=I.value[0])===null||h===void 0?void 0:h.value;u!=null&&m(String(u))}},{flush:"post"});const R=(h,u)=>{const d=u??h;return{[s.value.value]:h,[s.value.label]:d}},N=X();Ie(()=>{if(e.mode!=="tags"){N.value=y.value;return}const h=y.value.slice(),u=d=>C.value.has(d);[...I.value].sort((d,F)=>d.value<F.value?-1:1).forEach(d=>{const F=d.value;u(F)||h.push(R(F,d.label))}),N.value=h});const A=Xo(N,s,r,f,ge(e,"optionFilterProp")),B=H(()=>e.mode!=="tags"||!r.value||A.value.some(h=>h[e.optionFilterProp||"value"]===r.value)?A.value:[R(r.value),...A.value]),U=H(()=>e.filterSort?[...B.value].sort((h,u)=>e.filterSort(h,u)):B.value),Y=H(()=>eo(U.value,{fieldNames:s.value,childrenAsData:a.value})),W=h=>{const u=w(h);if(D(u),e.onChange&&(u.length!==I.value.length||u.some((d,F)=>{var $;return(($=I.value[F])===null||$===void 0?void 0:$.value)!==d?.value}))){const d=e.labelInValue?u.map($=>S(S({},$),{originLabel:$.label,label:typeof $.label=="function"?$.label():$.label})):u.map($=>$.value),F=u.map($=>Ze(v($.value)));e.onChange(c.value?d:d[0],c.value?F:F[0])}},[G,z]=It(null),[oe,ie]=It(0),p=H(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),L=function(h,u){let{source:d="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ie(u),e.backfill&&e.mode==="combobox"&&h!==null&&d==="keyboard"&&z(String(h))},T=(h,u)=>{const d=()=>{var F;const $=v(h),j=$?.[s.value.label];return[e.labelInValue?{label:typeof j=="function"?j():j,originLabel:j,value:h,key:(F=$?.key)!==null&&F!==void 0?F:h}:h,Ze($)]};if(u&&e.onSelect){const[F,$]=d();e.onSelect(F,$)}else if(!u&&e.onDeselect){const[F,$]=d();e.onDeselect(F,$)}},K=(h,u)=>{let d;const F=c.value?u.selected:!0;F?d=c.value?[...I.value,h]:[h]:d=I.value.filter($=>$.value!==h),W(d),T(h,F),e.mode==="combobox"?z(""):(!c.value||e.autoClearSearchValue)&&(m(""),z(""))},te=(h,u)=>{W(h),(u.type==="remove"||u.type==="clear")&&u.values.forEach(d=>{T(d.value,!1)})},re=(h,u)=>{var d;if(m(h),z(null),u.source==="submit"){const F=(h||"").trim();if(F){const $=Array.from(new Set([...O.value,F]));W($),T(F,!0),m("")}return}u.source!=="blur"&&(e.mode==="combobox"&&W(h),(d=e.onSearch)===null||d===void 0||d.call(e,h))},se=h=>{let u=h;e.mode!=="tags"&&(u=h.map(F=>{const $=g.value.get(F);return $?.value}).filter(F=>F!==void 0));const d=Array.from(new Set([...O.value,...u]));W(d),d.forEach(F=>{T(F,!0)})},ee=H(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);Lo(At(S(S({},b),{flattenOptions:Y,onActiveValue:L,defaultActiveFirstOption:p,onSelect:K,menuItemSelectedIcon:ge(e,"menuItemSelectedIcon"),rawValues:O,fieldNames:s,virtual:ee,listHeight:ge(e,"listHeight"),listItemHeight:ge(e,"listItemHeight"),childrenAsData:a}))),Ie(()=>{Yo(e)},{flush:"post"});const ce=me();o({focus(){var h;(h=ce.value)===null||h===void 0||h.focus()},blur(){var h;(h=ce.value)===null||h===void 0||h.blur()},scrollTo(h){var u;(u=ce.value)===null||u===void 0||u.scrollTo(h)}});const de=H(()=>_e(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>M(wo,k(k(k({},de.value),n),{},{id:i,prefixCls:e.prefixCls,ref:ce,omitDomProps:qo,mode:e.mode,displayValues:P.value,onDisplayValuesChange:te,searchValue:r.value,onSearch:re,onSearchSplit:se,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:Ao,emptyOptions:!Y.value.length,activeValue:G.value,activeDescendantId:`${i}_list_${oe.value}`}),l)}}),st=()=>null;st.isSelectOption=!0;st.displayName="ASelectOption";const ut=()=>null;ut.isSelectOptGroup=!0;ut.displayName="ASelectOptGroup";function ko(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{loading:o,multiple:n,prefixCls:l,hasFeedback:i,feedbackIcon:c,showArrow:a}=e,f=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),s=e.clearIcon||t.clearIcon&&t.clearIcon(),r=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),m=e.removeIcon||t.removeIcon&&t.removeIcon(),b=s??M(Ln,null,null),C=x=>M(Fe,null,[a!==!1&&x,i&&c]);let g=null;if(f!==void 0)g=C(f);else if(o)g=C(M(Bn,{spin:!0},null));else{const x=`${l}-suffix`;g=D=>{let{open:E,showSearch:I}=D;return C(E&&I?M(zn,{class:x},null):M(Wn,{class:x},null))}}let y=null;r!==void 0?y=r:n?y=M(_n,null,null):y=null;let w=null;return m!==void 0?w=m:w=M(An,null,null),{clearIcon:b,suffixIcon:g,itemIcon:y,removeIcon:w}}const Pt=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},el=e=>{const{antCls:t,componentCls:o}=e,n=`${o}-item`;return[{[`${o}-dropdown`]:S(S({},Je(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
4
4
  &${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-bottomLeft,
@@ -1,2 +1,2 @@
1
- import{l as oo,m as eo,h as I,r as H,K as to,at as K,M as _,q as M,i as V,f as D,P as L,a5 as E,H as z,af as j,a7 as ro}from"./index-DJ2OiRvh.js";import{p as U,i as N,d as W,b as O,c as T,r as F,w as no,n as ao}from"./vendor-Bn1JzzAn.js";import{V as io}from"./Checkbox-DsyBa_NO.js";import{u as X,F as lo}from"./FormItemContext-DMB7xYFV.js";import{o as so}from"./omit-DofGni53.js";import"./icons-DG5UD-6K.js";import"./initDefaultProps-wrqabmui.js";import"./devWarning-DlIv9Mbc.js";import"./createContext-DbgCsdQd.js";const q=Symbol("radioGroupContextKey"),co=o=>{U(q,o)},uo=()=>N(q,void 0),J=Symbol("radioOptionTypeContextKey"),po=o=>{U(J,o)},bo=()=>N(J,void 0),go=new to("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),ho=o=>{const{componentCls:r,antCls:n}=o,t=`${r}-group`;return{[t]:I(I({},H(o)),{display:"inline-block",fontSize:0,[`&${t}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},fo=o=>{const{componentCls:r,radioWrapperMarginRight:n,radioCheckedColor:t,radioSize:e,motionDurationSlow:d,motionDurationMid:s,motionEaseInOut:w,motionEaseInOutCirc:f,radioButtonBg:b,colorBorder:B,lineWidth:g,radioDotSize:C,colorBgContainerDisabled:x,colorTextDisabled:c,paddingXS:h,radioDotDisabledColor:a,lineType:m,radioDotDisabledSize:u,wireframe:p,colorWhite:y}=o,i=`${r}-inner`;return{[`${r}-wrapper`]:I(I({},H(o)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${r}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:o.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${r}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${g}px ${m} ${t}`,borderRadius:"50%",visibility:"hidden",animationName:go,animationDuration:d,animationTimingFunction:w,animationFillMode:"both",content:'""'},[r]:I(I({},H(o)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${r}-wrapper:hover &,
1
+ import{l as oo,m as eo,h as I,r as H,K as to,at as K,M as _,q as M,i as V,f as D,P as L,a5 as E,H as z,af as j,a7 as ro}from"./index-IahILygB.js";import{p as U,i as N,d as W,b as O,c as T,r as F,w as no,n as ao}from"./vendor-Bn1JzzAn.js";import{V as io}from"./Checkbox-BLD5bH5u.js";import{u as X,F as lo}from"./FormItemContext-Cy8zr0-4.js";import{o as so}from"./omit-D1yOBaO2.js";import"./icons-DG5UD-6K.js";import"./initDefaultProps-BoiGJDoO.js";import"./devWarning-CfB8DxT2.js";import"./createContext-CFN_Hwr9.js";const q=Symbol("radioGroupContextKey"),co=o=>{U(q,o)},uo=()=>N(q,void 0),J=Symbol("radioOptionTypeContextKey"),po=o=>{U(J,o)},bo=()=>N(J,void 0),go=new to("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),ho=o=>{const{componentCls:r,antCls:n}=o,t=`${r}-group`;return{[t]:I(I({},H(o)),{display:"inline-block",fontSize:0,[`&${t}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},fo=o=>{const{componentCls:r,radioWrapperMarginRight:n,radioCheckedColor:t,radioSize:e,motionDurationSlow:d,motionDurationMid:s,motionEaseInOut:w,motionEaseInOutCirc:f,radioButtonBg:b,colorBorder:B,lineWidth:g,radioDotSize:C,colorBgContainerDisabled:x,colorTextDisabled:c,paddingXS:h,radioDotDisabledColor:a,lineType:m,radioDotDisabledSize:u,wireframe:p,colorWhite:y}=o,i=`${r}-inner`;return{[`${r}-wrapper`]:I(I({},H(o)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${r}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:o.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${r}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${g}px ${m} ${t}`,borderRadius:"50%",visibility:"hidden",animationName:go,animationDuration:d,animationTimingFunction:w,animationFillMode:"both",content:'""'},[r]:I(I({},H(o)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${r}-wrapper:hover &,
2
2
  &:hover ${i}`]:{borderColor:t},[`${r}-input:focus-visible + ${i}`]:I({},K(o)),[`${r}:hover::after, ${r}-wrapper:hover &::after`]:{visibility:"visible"},[`${r}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:e,height:e,marginBlockStart:e/-2,marginInlineStart:e/-2,backgroundColor:p?t:y,borderBlockStart:0,borderInlineStart:0,borderRadius:e,transform:"scale(0)",opacity:0,transition:`all ${d} ${f}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:e,height:e,backgroundColor:b,borderColor:B,borderStyle:"solid",borderWidth:g,borderRadius:"50%",transition:`all ${s}`},[`${r}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${r}-checked`]:{[i]:{borderColor:t,backgroundColor:p?b:t,"&::after":{transform:`scale(${C/e})`,opacity:1,transition:`all ${d} ${f}`}}},[`${r}-disabled`]:{cursor:"not-allowed",[i]:{backgroundColor:x,borderColor:B,cursor:"not-allowed","&::after":{backgroundColor:a}},[`${r}-input`]:{cursor:"not-allowed"},[`${r}-disabled + span`]:{color:c,cursor:"not-allowed"},[`&${r}-checked`]:{[i]:{"&::after":{transform:`scale(${u/e})`}}}},[`span${r} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},Co=o=>{const{radioButtonColor:r,controlHeight:n,componentCls:t,lineWidth:e,lineType:d,colorBorder:s,motionDurationSlow:w,motionDurationMid:f,radioButtonPaddingHorizontal:b,fontSize:B,radioButtonBg:g,fontSizeLG:C,controlHeightLG:x,controlHeightSM:c,paddingXS:h,borderRadius:a,borderRadiusSM:m,borderRadiusLG:u,radioCheckedColor:p,radioButtonCheckedBg:y,radioButtonHoverColor:i,radioButtonActiveColor:v,radioSolidCheckedColor:R,colorTextDisabled:l,colorBgContainerDisabled:S,radioDisabledButtonCheckedColor:P,radioDisabledButtonCheckedBg:G}=o;return{[`${t}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:b,paddingBlock:0,color:r,fontSize:B,lineHeight:`${n-e*2}px`,background:g,border:`${e}px ${d} ${s}`,borderBlockStartWidth:e+.02,borderInlineStartWidth:0,borderInlineEndWidth:e,cursor:"pointer",transition:[`color ${f}`,`background ${f}`,`border-color ${f}`,`box-shadow ${f}`].join(","),a:{color:r},[`> ${t}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-e,insetInlineStart:-e,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:e,paddingInline:0,backgroundColor:s,transition:`background-color ${w}`,content:'""'}},"&:first-child":{borderInlineStart:`${e}px ${d} ${s}`,borderStartStartRadius:a,borderEndStartRadius:a},"&:last-child":{borderStartEndRadius:a,borderEndEndRadius:a},"&:first-child:last-child":{borderRadius:a},[`${t}-group-large &`]:{height:x,fontSize:C,lineHeight:`${x-e*2}px`,"&:first-child":{borderStartStartRadius:u,borderEndStartRadius:u},"&:last-child":{borderStartEndRadius:u,borderEndEndRadius:u}},[`${t}-group-small &`]:{height:c,paddingInline:h-e,paddingBlock:0,lineHeight:`${c-e*2}px`,"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:p},"&:has(:focus-visible)":I({},K(o)),[`${t}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${t}-button-wrapper-disabled)`]:{zIndex:1,color:p,background:y,borderColor:p,"&::before":{backgroundColor:p},"&:first-child":{borderColor:p},"&:hover":{color:i,borderColor:i,"&::before":{backgroundColor:i}},"&:active":{color:v,borderColor:v,"&::before":{backgroundColor:v}}},[`${t}-group-solid &-checked:not(${t}-button-wrapper-disabled)`]:{color:R,background:p,borderColor:p,"&:hover":{color:R,background:i,borderColor:i},"&:active":{color:R,background:v,borderColor:v}},"&-disabled":{color:l,backgroundColor:S,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:l,backgroundColor:S,borderColor:s}},[`&-disabled${t}-button-wrapper-checked`]:{color:P,backgroundColor:G,borderColor:s,boxShadow:"none"}}}},Q=oo("Radio",o=>{const{padding:r,lineWidth:n,controlItemBgActiveDisabled:t,colorTextDisabled:e,colorBgContainer:d,fontSizeLG:s,controlOutline:w,colorPrimaryHover:f,colorPrimaryActive:b,colorText:B,colorPrimary:g,marginXS:C,controlOutlineWidth:x,colorTextLightSolid:c,wireframe:h}=o,a=`0 0 0 ${x}px ${w}`,m=a,u=s,p=4,y=u-p*2,i=h?y:u-(p+n)*2,v=g,R=B,l=f,S=b,P=r-n,$=eo(o,{radioFocusShadow:a,radioButtonFocusShadow:m,radioSize:u,radioDotSize:i,radioDotDisabledSize:y,radioCheckedColor:v,radioDotDisabledColor:e,radioSolidCheckedColor:c,radioButtonBg:d,radioButtonCheckedBg:d,radioButtonColor:R,radioButtonHoverColor:l,radioButtonActiveColor:S,radioButtonPaddingHorizontal:P,radioDisabledButtonCheckedBg:t,radioDisabledButtonCheckedColor:e,radioWrapperMarginRight:C});return[ho($),fo($),Co($)]});var vo=function(o,r){var n={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&r.indexOf(t)<0&&(n[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,t=Object.getOwnPropertySymbols(o);e<t.length;e++)r.indexOf(t[e])<0&&Object.prototype.propertyIsEnumerable.call(o,t[e])&&(n[t[e]]=o[t[e]]);return n};const Y=()=>({prefixCls:String,checked:z(),disabled:z(),isGroup:z(),value:L.any,name:String,id:String,autofocus:z(),onChange:E(),onFocus:E(),onBlur:E(),onClick:E(),"onUpdate:checked":E(),"onUpdate:value":E()}),k=W({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:Y(),setup(o,r){let{emit:n,expose:t,slots:e,attrs:d}=r;const s=X(),w=lo.useInject(),f=bo(),b=uo(),B=_(),g=O(()=>{var l;return(l=h.value)!==null&&l!==void 0?l:B.value}),C=F(),{prefixCls:x,direction:c,disabled:h}=M("radio",o),a=O(()=>b?.optionType.value==="button"||f==="button"?`${x.value}-button`:x.value),m=_(),[u,p]=Q(x);t({focus:()=>{C.value.focus()},blur:()=>{C.value.blur()}});const v=l=>{const S=l.target.checked;n("update:checked",S),n("update:value",S),n("change",l),s.onFieldChange()},R=l=>{n("change",l),b&&b.onChange&&b.onChange(l)};return()=>{var l;const S=b,{prefixCls:P,id:G=s.id.value}=o,A=vo(o,["prefixCls","id"]),$=I(I({prefixCls:a.value,id:G},so(A,["onUpdate:checked","onUpdate:value"])),{disabled:(l=h.value)!==null&&l!==void 0?l:m.value});S?($.name=S.name.value,$.onChange=R,$.checked=o.value===S.value.value,$.disabled=g.value||S.disabled.value):$.onChange=v;const Z=V({[`${a.value}-wrapper`]:!0,[`${a.value}-wrapper-checked`]:$.checked,[`${a.value}-wrapper-disabled`]:$.disabled,[`${a.value}-wrapper-rtl`]:c.value==="rtl",[`${a.value}-wrapper-in-form-item`]:w.isFormItemInput},d.class,p.value);return u(T("label",D(D({},d),{},{class:Z}),[T(io,D(D({},$),{},{type:"radio",ref:C}),null),e.default&&T("span",null,[e.default()])]))}}}),mo=()=>({prefixCls:String,value:L.any,size:j(),options:ro(),disabled:z(),name:String,buttonStyle:j("outline"),id:String,optionType:j("default"),onChange:E(),"onUpdate:value":E()}),So=W({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:mo(),setup(o,r){let{slots:n,emit:t,attrs:e}=r;const d=X(),{prefixCls:s,direction:w,size:f}=M("radio",o),[b,B]=Q(s),g=F(o.value),C=F(!1);return no(()=>o.value,c=>{g.value=c,C.value=!1}),co({onChange:c=>{const h=g.value,{value:a}=c.target;"value"in o||(g.value=a),!C.value&&a!==h&&(C.value=!0,t("update:value",a),t("change",c),d.onFieldChange()),ao(()=>{C.value=!1})},value:g,disabled:O(()=>o.disabled),name:O(()=>o.name),optionType:O(()=>o.optionType)}),()=>{var c;const{options:h,buttonStyle:a,id:m=d.id.value}=o,u=`${s.value}-group`,p=V(u,`${u}-${a}`,{[`${u}-${f.value}`]:f.value,[`${u}-rtl`]:w.value==="rtl"},e.class,B.value);let y=null;return h&&h.length>0?y=h.map(i=>{if(typeof i=="string"||typeof i=="number")return T(k,{key:i,prefixCls:s.value,disabled:o.disabled,value:i,checked:g.value===i},{default:()=>[i]});const{value:v,disabled:R,label:l}=i;return T(k,{key:`radio-group-value-options-${v}`,prefixCls:s.value,disabled:R||o.disabled,value:v,checked:g.value===v},{default:()=>[l]})}):y=(c=n.default)===null||c===void 0?void 0:c.call(n),b(T("div",D(D({},e),{},{class:p,id:m}),[y]))}}}),$o=W({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:Y(),setup(o,r){let{slots:n,attrs:t}=r;const{prefixCls:e}=M("radio",o);return po("button"),()=>{var d;return T(k,D(D(D({},t),o),{},{prefixCls:e.value}),{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]})}}});k.Group=So;k.Button=$o;k.install=function(o){return o.component(k.name,k),o.component(k.Group.name,k.Group),o.component(k.Button.name,k.Button),o};export{$o as Button,So as Group,$o as RadioButton,So as RadioGroup,k as default};
@@ -1 +1 @@
1
- import{l as re,m as ne,h as v,q as I,i as D,f as M,P as p,R as F}from"./index-DJ2OiRvh.js";import{d as L,c as g,p as Z,b as ae,r as ie,i as le,s as R,w as j,o as se,f as de}from"./vendor-Bn1JzzAn.js";import{a as G,S as ce}from"./injectionKey-BXVc-oGP.js";import{i as ue}from"./initDefaultProps-wrqabmui.js";import{i as ge}from"./isNumeric-DjvBa-1E.js";import{bf as fe,bc as _,ah as X}from"./icons-DG5UD-6K.js";const pe=e=>{const{componentCls:n,colorBgContainer:o,colorBgBody:s,colorText:a}=e;return{[`${n}-sider-light`]:{background:o,[`${n}-sider-trigger`]:{color:a,background:o},[`${n}-sider-zero-width-trigger`]:{color:a,background:o,border:`1px solid ${s}`,borderInlineStart:0}}}},me=e=>{const{antCls:n,componentCls:o,colorText:s,colorTextLightSolid:a,colorBgHeader:f,colorBgBody:d,colorBgTrigger:i,layoutHeaderHeight:c,layoutHeaderPaddingInline:h,layoutHeaderColor:x,layoutFooterPadding:t,layoutTriggerHeight:l,layoutZeroTriggerSize:y,motionDurationMid:S,motionDurationSlow:r,fontSize:m,borderRadius:u}=e;return{[o]:v(v({display:"flex",flex:"auto",flexDirection:"column",color:s,minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},[`${o}-header`]:{height:c,paddingInline:h,color:x,lineHeight:`${c}px`,background:f,[`${n}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:t,color:s,fontSize:m,background:d},[`${o}-content`]:{flex:"auto",minHeight:0},[`${o}-sider`]:{position:"relative",minWidth:0,background:f,transition:`all ${S}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${n}-menu${n}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:l},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:l,color:a,lineHeight:`${l}px`,textAlign:"center",background:i,cursor:"pointer",transition:`all ${S}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:-y,zIndex:1,width:y,height:y,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:f,borderStartStartRadius:0,borderStartEndRadius:u,borderEndEndRadius:u,borderEndStartRadius:0,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-y,borderStartStartRadius:u,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:u}}}}},pe(e)),{"&-rtl":{direction:"rtl"}})}},he=re("Layout",e=>{const{colorText:n,controlHeightSM:o,controlHeight:s,controlHeightLG:a,marginXXS:f}=e,d=a*1.25,i=ne(e,{layoutHeaderHeight:s*2,layoutHeaderPaddingInline:d,layoutHeaderColor:n,layoutFooterPadding:`${o}px ${d}px`,layoutTriggerHeight:a+f*2,layoutZeroTriggerSize:a});return[me(i)]},e=>{const{colorBgLayout:n}=e;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140"}}),O=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function B(e){let{suffixCls:n,tagName:o,name:s}=e;return a=>L({compatConfig:{MODE:3},name:s,props:O(),setup(d,i){let{slots:c}=i;const{prefixCls:h}=I(n,d);return()=>{const x=v(v({},d),{prefixCls:h.value,tagName:o});return g(a,x,c)}}})}const P=L({compatConfig:{MODE:3},props:O(),setup(e,n){let{slots:o}=n;return()=>g(e.tagName,{class:e.prefixCls},o)}}),xe=L({compatConfig:{MODE:3},inheritAttrs:!1,props:O(),setup(e,n){let{slots:o,attrs:s}=n;const{prefixCls:a,direction:f}=I("",e),[d,i]=he(a),c=ie([]);Z(G,{addSider:t=>{c.value=[...c.value,t]},removeSider:t=>{c.value=c.value.filter(l=>l!==t)}});const x=ae(()=>{const{prefixCls:t,hasSider:l}=e;return{[i.value]:!0,[`${t}`]:!0,[`${t}-has-sider`]:typeof l=="boolean"?l:c.value.length>0,[`${t}-rtl`]:f.value==="rtl"}});return()=>{const{tagName:t}=e;return d(g(t,v(v({},s),{class:[x.value,s.class]}),o))}}}),A=B({suffixCls:"layout",tagName:"section",name:"ALayout"})(xe),C=B({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(P),w=B({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(P),H=B({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(P),K={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1999.98px"},ye=()=>({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:p.any,width:p.oneOfType([p.number,p.string]),collapsedWidth:p.oneOfType([p.number,p.string]),breakpoint:p.oneOf(F("xs","sm","md","lg","xl","xxl","xxxl")),theme:p.oneOf(F("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),ve=(()=>{let e=0;return function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${n}${e}`}})(),k=L({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:ue(ye(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,n){let{emit:o,attrs:s,slots:a}=n;const{prefixCls:f}=I("layout-sider",e),d=le(G,void 0),i=R(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),c=R(!1);j(()=>e.collapsed,()=>{i.value=!!e.collapsed}),Z(ce,i);const h=(r,m)=>{e.collapsed===void 0&&(i.value=r),o("update:collapsed",r),o("collapse",r,m)},x=R(r=>{c.value=r.matches,o("breakpoint",r.matches),i.value!==r.matches&&h(r.matches,"responsive")});let t;function l(r){return x.value(r)}const y=ve("ant-sider-");d&&d.addSider(y),se(()=>{j(()=>e.breakpoint,()=>{try{t?.removeEventListener("change",l)}catch{t?.removeListener(l)}if(typeof window<"u"){const{matchMedia:r}=window;if(r&&e.breakpoint&&e.breakpoint in K){t=r(`(max-width: ${K[e.breakpoint]})`);try{t.addEventListener("change",l)}catch{t.addListener(l)}l(t)}}},{immediate:!0})}),de(()=>{try{t?.removeEventListener("change",l)}catch{t?.removeListener(l)}d&&d.removeSider(y)});const S=()=>{h(!i.value,"clickTrigger")};return()=>{var r,m;const u=f.value,{collapsedWidth:N,width:U,reverseArrow:T,zeroWidthTriggerStyle:V,trigger:$=(r=a.trigger)===null||r===void 0?void 0:r.call(a),collapsible:W,theme:q}=e,z=i.value?N:U,b=ge(z)?`${z}px`:String(z),E=parseFloat(String(N||0))===0?g("span",{onClick:S,class:D(`${u}-zero-width-trigger`,`${u}-zero-width-trigger-${T?"right":"left"}`),style:V},[$||g(fe,null,null)]):null,J={expanded:T?g(X,null,null):g(_,null,null),collapsed:T?g(_,null,null):g(X,null,null)},Q=i.value?"collapsed":"expanded",Y=J[Q],ee=$!==null?E||g("div",{class:`${u}-trigger`,onClick:S,style:{width:b}},[$||Y]):null,te=[s.style,{flex:`0 0 ${b}`,maxWidth:b,minWidth:b,width:b}],oe=D(u,`${u}-${q}`,{[`${u}-collapsed`]:!!i.value,[`${u}-has-trigger`]:W&&$!==null&&!E,[`${u}-below`]:!!c.value,[`${u}-zero-width`]:parseFloat(b)===0},s.class);return g("aside",M(M({},s),{},{class:oe,style:te}),[g("div",{class:`${u}-children`},[(m=a.default)===null||m===void 0?void 0:m.call(a)]),W||c.value&&E?ee:null])}}}),ke=C,Le=w,Be=k,Te=H,ze=v(A,{Header:C,Footer:w,Content:H,Sider:k,install:e=>(e.component(A.name,A),e.component(C.name,C),e.component(w.name,w),e.component(k.name,k),e.component(H.name,H),e)});export{Te as LayoutContent,Le as LayoutFooter,ke as LayoutHeader,Be as LayoutSider,ze as default};
1
+ import{l as re,m as ne,h as v,q as I,i as D,f as M,P as p,R as F}from"./index-IahILygB.js";import{d as L,c as g,p as Z,b as ae,r as ie,i as le,s as R,w as j,o as se,f as de}from"./vendor-Bn1JzzAn.js";import{a as G,S as ce}from"./injectionKey-BXVc-oGP.js";import{i as ue}from"./initDefaultProps-BoiGJDoO.js";import{i as ge}from"./isNumeric-DjvBa-1E.js";import{bf as fe,bc as _,ah as X}from"./icons-DG5UD-6K.js";const pe=e=>{const{componentCls:n,colorBgContainer:o,colorBgBody:s,colorText:a}=e;return{[`${n}-sider-light`]:{background:o,[`${n}-sider-trigger`]:{color:a,background:o},[`${n}-sider-zero-width-trigger`]:{color:a,background:o,border:`1px solid ${s}`,borderInlineStart:0}}}},me=e=>{const{antCls:n,componentCls:o,colorText:s,colorTextLightSolid:a,colorBgHeader:f,colorBgBody:d,colorBgTrigger:i,layoutHeaderHeight:c,layoutHeaderPaddingInline:h,layoutHeaderColor:x,layoutFooterPadding:t,layoutTriggerHeight:l,layoutZeroTriggerSize:y,motionDurationMid:S,motionDurationSlow:r,fontSize:m,borderRadius:u}=e;return{[o]:v(v({display:"flex",flex:"auto",flexDirection:"column",color:s,minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},[`${o}-header`]:{height:c,paddingInline:h,color:x,lineHeight:`${c}px`,background:f,[`${n}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:t,color:s,fontSize:m,background:d},[`${o}-content`]:{flex:"auto",minHeight:0},[`${o}-sider`]:{position:"relative",minWidth:0,background:f,transition:`all ${S}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${n}-menu${n}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:l},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:l,color:a,lineHeight:`${l}px`,textAlign:"center",background:i,cursor:"pointer",transition:`all ${S}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:-y,zIndex:1,width:y,height:y,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:f,borderStartStartRadius:0,borderStartEndRadius:u,borderEndEndRadius:u,borderEndStartRadius:0,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-y,borderStartStartRadius:u,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:u}}}}},pe(e)),{"&-rtl":{direction:"rtl"}})}},he=re("Layout",e=>{const{colorText:n,controlHeightSM:o,controlHeight:s,controlHeightLG:a,marginXXS:f}=e,d=a*1.25,i=ne(e,{layoutHeaderHeight:s*2,layoutHeaderPaddingInline:d,layoutHeaderColor:n,layoutFooterPadding:`${o}px ${d}px`,layoutTriggerHeight:a+f*2,layoutZeroTriggerSize:a});return[me(i)]},e=>{const{colorBgLayout:n}=e;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140"}}),O=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function B(e){let{suffixCls:n,tagName:o,name:s}=e;return a=>L({compatConfig:{MODE:3},name:s,props:O(),setup(d,i){let{slots:c}=i;const{prefixCls:h}=I(n,d);return()=>{const x=v(v({},d),{prefixCls:h.value,tagName:o});return g(a,x,c)}}})}const P=L({compatConfig:{MODE:3},props:O(),setup(e,n){let{slots:o}=n;return()=>g(e.tagName,{class:e.prefixCls},o)}}),xe=L({compatConfig:{MODE:3},inheritAttrs:!1,props:O(),setup(e,n){let{slots:o,attrs:s}=n;const{prefixCls:a,direction:f}=I("",e),[d,i]=he(a),c=ie([]);Z(G,{addSider:t=>{c.value=[...c.value,t]},removeSider:t=>{c.value=c.value.filter(l=>l!==t)}});const x=ae(()=>{const{prefixCls:t,hasSider:l}=e;return{[i.value]:!0,[`${t}`]:!0,[`${t}-has-sider`]:typeof l=="boolean"?l:c.value.length>0,[`${t}-rtl`]:f.value==="rtl"}});return()=>{const{tagName:t}=e;return d(g(t,v(v({},s),{class:[x.value,s.class]}),o))}}}),A=B({suffixCls:"layout",tagName:"section",name:"ALayout"})(xe),C=B({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(P),w=B({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(P),H=B({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(P),K={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1999.98px"},ye=()=>({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:p.any,width:p.oneOfType([p.number,p.string]),collapsedWidth:p.oneOfType([p.number,p.string]),breakpoint:p.oneOf(F("xs","sm","md","lg","xl","xxl","xxxl")),theme:p.oneOf(F("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),ve=(()=>{let e=0;return function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${n}${e}`}})(),k=L({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:ue(ye(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,n){let{emit:o,attrs:s,slots:a}=n;const{prefixCls:f}=I("layout-sider",e),d=le(G,void 0),i=R(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),c=R(!1);j(()=>e.collapsed,()=>{i.value=!!e.collapsed}),Z(ce,i);const h=(r,m)=>{e.collapsed===void 0&&(i.value=r),o("update:collapsed",r),o("collapse",r,m)},x=R(r=>{c.value=r.matches,o("breakpoint",r.matches),i.value!==r.matches&&h(r.matches,"responsive")});let t;function l(r){return x.value(r)}const y=ve("ant-sider-");d&&d.addSider(y),se(()=>{j(()=>e.breakpoint,()=>{try{t?.removeEventListener("change",l)}catch{t?.removeListener(l)}if(typeof window<"u"){const{matchMedia:r}=window;if(r&&e.breakpoint&&e.breakpoint in K){t=r(`(max-width: ${K[e.breakpoint]})`);try{t.addEventListener("change",l)}catch{t.addListener(l)}l(t)}}},{immediate:!0})}),de(()=>{try{t?.removeEventListener("change",l)}catch{t?.removeListener(l)}d&&d.removeSider(y)});const S=()=>{h(!i.value,"clickTrigger")};return()=>{var r,m;const u=f.value,{collapsedWidth:N,width:U,reverseArrow:T,zeroWidthTriggerStyle:V,trigger:$=(r=a.trigger)===null||r===void 0?void 0:r.call(a),collapsible:W,theme:q}=e,z=i.value?N:U,b=ge(z)?`${z}px`:String(z),E=parseFloat(String(N||0))===0?g("span",{onClick:S,class:D(`${u}-zero-width-trigger`,`${u}-zero-width-trigger-${T?"right":"left"}`),style:V},[$||g(fe,null,null)]):null,J={expanded:T?g(X,null,null):g(_,null,null),collapsed:T?g(_,null,null):g(X,null,null)},Q=i.value?"collapsed":"expanded",Y=J[Q],ee=$!==null?E||g("div",{class:`${u}-trigger`,onClick:S,style:{width:b}},[$||Y]):null,te=[s.style,{flex:`0 0 ${b}`,maxWidth:b,minWidth:b,width:b}],oe=D(u,`${u}-${q}`,{[`${u}-collapsed`]:!!i.value,[`${u}-has-trigger`]:W&&$!==null&&!E,[`${u}-below`]:!!c.value,[`${u}-zero-width`]:parseFloat(b)===0},s.class);return g("aside",M(M({},s),{},{class:oe,style:te}),[g("div",{class:`${u}-children`},[(m=a.default)===null||m===void 0?void 0:m.call(a)]),W||c.value&&E?ee:null])}}}),ke=C,Le=w,Be=k,Te=H,ze=v(A,{Header:C,Footer:w,Content:H,Sider:k,install:e=>(e.component(A.name,A),e.component(C.name,C),e.component(w.name,w),e.component(k.name,k),e.component(H.name,H),e)});export{Te as LayoutContent,Le as LayoutFooter,ke as LayoutHeader,Be as LayoutSider,ze as default};
@@ -1,4 +1,4 @@
1
- import{K as ye,P as h,f as $,g as be,h as i,i as U,j as Le,k as Re,l as Ee,m as De,r as We,n as je,o as Ve,p as le,q as _e,w as xe,s as Y,v as K,x as Ge,C as Ke,y as Xe,z as Ue,A as Qe}from"./index-DJ2OiRvh.js";import{d as A,b as q,c as a,a6 as $e,a3 as Se,r as X,n as ke,a4 as he,s as T,w as Z,f as Ye,e as qe,F as Ze,A as se,u as Je,j as eo}from"./vendor-Bn1JzzAn.js";import{K as ce}from"./KeyCode-D63Tfrq7.js";import{o as we}from"./omit-DofGni53.js";import{p as oo}from"./pickAttrs-BnluLL16.js";import{i as J}from"./initDefaultProps-wrqabmui.js";import{i as no,P as to,a as lo}from"./motion-BoyB3ilP.js";import{b as ao,E as io,C as ro,a as so,I as co}from"./icons-DG5UD-6K.js";import{B as de,c as uo}from"./index-BuWPqSGT.js";import{c as fo}from"./styleChecker-De0Y8g1O.js";import{i as mo}from"./zoom-DnXDAQxA.js";import{A as ue}from"./ActionButton-_AZfbW1Q.js";import{t as po}from"./vnode-BcBIjvjH.js";import"./raf-Deuc0E8-.js";import"./index-DFt48Z-x.js";import"./isVisible-C7tPsqfj.js";import"./useState-CnxtbLoC.js";import"./devWarning-DlIv9Mbc.js";import"./compact-item-CFjQAMbY.js";import"./createContext-DbgCsdQd.js";import"./Compact-BPczlrRh.js";import"./_getTag-DnrRH4E6.js";const go=new ye("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),vo=new ye("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Co=function(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,t=`${n}-fade`,l=o?"&":"";return[no(t,go,vo,e.motionDurationMid,o),{[`
1
+ import{K as ye,P as h,f as $,g as be,h as i,i as U,j as Le,k as Re,l as Ee,m as De,r as We,n as je,o as Ve,p as le,q as _e,w as xe,s as Y,v as K,x as Ge,C as Ke,y as Xe,z as Ue,A as Qe}from"./index-IahILygB.js";import{d as A,b as q,c as a,a6 as $e,a3 as Se,r as X,n as ke,a4 as he,s as T,w as Z,f as Ye,e as qe,F as Ze,A as se,u as Je,j as eo}from"./vendor-Bn1JzzAn.js";import{K as ce}from"./KeyCode-D63Tfrq7.js";import{o as we}from"./omit-D1yOBaO2.js";import{p as oo}from"./pickAttrs-8NLceQe8.js";import{i as J}from"./initDefaultProps-BoiGJDoO.js";import{i as no,P as to,a as lo}from"./motion-5eL4E0pA.js";import{b as ao,E as io,C as ro,a as so,I as co}from"./icons-DG5UD-6K.js";import{B as de,c as uo}from"./index-Bqv_Cray.js";import{c as fo}from"./styleChecker-NhDPBbyB.js";import{i as mo}from"./zoom-DXg3TqOP.js";import{A as ue}from"./ActionButton-CgANpkKu.js";import{t as po}from"./vnode--gMF33R0.js";import"./raf-Deuc0E8-.js";import"./index-BmQITjMU.js";import"./isVisible-C7tPsqfj.js";import"./useState-CnxtbLoC.js";import"./devWarning-CfB8DxT2.js";import"./compact-item-BXuz49at.js";import"./createContext-CFN_Hwr9.js";import"./Compact-Dzdwd04z.js";import"./_getTag-DnrRH4E6.js";const go=new ye("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),vo=new ye("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Co=function(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,t=`${n}-fade`,l=o?"&":"";return[no(t,go,vo,e.motionDurationMid,o),{[`
2
2
  ${l}${t}-enter,
3
3
  ${l}${t}-appear
4
4
  `]:{opacity:0,animationTimingFunction:"linear"},[`${l}${t}-leave`]:{animationTimingFunction:"linear"}}]};function ae(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:h.shape({x:Number,y:Number}).loose,title:h.any,footer:h.any,transitionName:String,maskTransitionName:String,animation:h.any,maskAnimation:h.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:h.any,maskProps:h.any,wrapProps:h.any,getContainer:h.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:h.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function fe(e,o,n){let t=o;return!t&&n&&(t=`${e}-${n}`),t}let me=-1;function yo(){return me+=1,me}function pe(e,o){let n=e[`page${o?"Y":"X"}Offset`];const t=`scroll${o?"Top":"Left"}`;if(typeof n!="number"){const l=e.document;n=l.documentElement[t],typeof n!="number"&&(n=l.body[t])}return n}function bo(e){const o=e.getBoundingClientRect(),n={left:o.left,top:o.top},t=e.ownerDocument,l=t.defaultView||t.parentWindow;return n.left+=pe(l),n.top+=pe(l,!0),n}const xo={width:0,height:0,overflow:"hidden",outline:"none"},$o={outline:"none"},So=A({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:i(i({},ae()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,o){let{expose:n,slots:t,attrs:l}=o;const s=X(),p=X(),g=X();n({focus:()=>{var c;(c=s.value)===null||c===void 0||c.focus({preventScroll:!0})},changeActive:c=>{const{activeElement:r}=document;c&&r===p.value?s.value.focus({preventScroll:!0}):!c&&r===s.value&&p.value.focus({preventScroll:!0})}});const S=X(),m=q(()=>{const{width:c,height:r}=e,C={};return c!==void 0&&(C.width=typeof c=="number"?`${c}px`:c),r!==void 0&&(C.height=typeof r=="number"?`${r}px`:r),S.value&&(C.transformOrigin=S.value),C}),u=()=>{ke(()=>{if(g.value){const c=bo(g.value);S.value=e.mousePosition?`${e.mousePosition.x-c.left}px ${e.mousePosition.y-c.top}px`:""}})},d=c=>{e.onVisibleChanged(c)};return()=>{var c,r,C,y;const{prefixCls:x,footer:f=(c=t.footer)===null||c===void 0?void 0:c.call(t),title:b=(r=t.title)===null||r===void 0?void 0:r.call(t),ariaId:v,closable:w,closeIcon:B=(C=t.closeIcon)===null||C===void 0?void 0:C.call(t),onClose:F,bodyStyle:I,bodyProps:M,onMousedown:H,onMouseup:O,visible:E,modalRender:D=t.modalRender,destroyOnClose:_,motionName:N}=e;let W;f&&(W=a("div",{class:`${x}-footer`},[f]));let j;b&&(j=a("div",{class:`${x}-header`},[a("div",{class:`${x}-title`,id:v},[b])]));let L;w&&(L=a("button",{type:"button",onClick:F,"aria-label":"Close",class:`${x}-close`},[B||a("span",{class:`${x}-close-x`},null)]));const z=a("div",{class:`${x}-content`},[L,j,a("div",$({class:`${x}-body`,style:I},M),[(y=t.default)===null||y===void 0?void 0:y.call(t)]),W]),ee=be(N);return a($e,$($({},ee),{},{onBeforeEnter:u,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[E||!_?Se(a("div",$($({},l),{},{ref:g,key:"dialog-element",role:"document",style:[m.value,l.style],class:[x,l.class],onMousedown:H,onMouseup:O}),[a("div",{tabindex:0,ref:s,style:$o},[D?D({originVNode:z}):z]),a("div",{tabindex:0,ref:p,style:xo},null)]),[[he,E]]):null]})}}}),ho=A({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,o){return()=>{const{prefixCls:n,visible:t,maskProps:l,motionName:s}=e,p=be(s);return a($e,p,{default:()=>[Se(a("div",$({class:`${n}-mask`},l),null),[[he,t]])]})}}}),ge=A({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:J(i(i({},ae()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,o){let{attrs:n,slots:t}=o;const l=T(),s=T(),p=T(),g=T(e.visible),S=T(`vcDialogTitle${yo()}`),m=f=>{var b,v;if(f)Le(s.value,document.activeElement)||(l.value=document.activeElement,(b=p.value)===null||b===void 0||b.focus());else{const w=g.value;if(g.value=!1,e.mask&&l.value&&e.focusTriggerAfterClose){try{l.value.focus({preventScroll:!0})}catch{}l.value=null}w&&((v=e.afterClose)===null||v===void 0||v.call(e))}},u=f=>{var b;(b=e.onClose)===null||b===void 0||b.call(e,f)},d=T(!1),c=T(),r=()=>{clearTimeout(c.value),d.value=!0},C=()=>{c.value=setTimeout(()=>{d.value=!1})},y=f=>{if(!e.maskClosable)return null;d.value?d.value=!1:s.value===f.target&&u(f)},x=f=>{if(e.keyboard&&f.keyCode===ce.ESC){f.stopPropagation(),u(f);return}e.visible&&f.keyCode===ce.TAB&&p.value.changeActive(!f.shiftKey)};return Z(()=>e.visible,()=>{e.visible&&(g.value=!0)},{flush:"post"}),Ye(()=>{var f;clearTimeout(c.value),(f=e.scrollLocker)===null||f===void 0||f.unLock()}),qe(()=>{var f,b;(f=e.scrollLocker)===null||f===void 0||f.unLock(),g.value&&((b=e.scrollLocker)===null||b===void 0||b.lock())}),()=>{const{prefixCls:f,mask:b,visible:v,maskTransitionName:w,maskAnimation:B,zIndex:F,wrapClassName:I,rootClassName:M,wrapStyle:H,closable:O,maskProps:E,maskStyle:D,transitionName:_,animation:N,wrapProps:W,title:j=t.title}=e,{style:L,class:z}=n;return a("div",$({class:[`${f}-root`,M]},oo(e,{data:!0})),[a(ho,{prefixCls:f,visible:b&&v,motionName:fe(f,w,B),style:i({zIndex:F},D),maskProps:E},null),a("div",$({tabIndex:-1,onKeydown:x,class:U(`${f}-wrap`,I),ref:s,onClick:y,role:"dialog","aria-labelledby":j?S.value:null,style:i(i({zIndex:F},H),{display:g.value?null:"none"})},W),[a(So,$($({},we(e,["scrollLocker"])),{},{style:L,class:z,onMousedown:r,onMouseup:C,ref:p,closable:O,ariaId:S.value,prefixCls:f,visible:v,onClose:u,onVisibleChanged:m,motionName:fe(f,_,N)}),t)])])}}}),wo=ae(),To=A({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:J(wo,{visible:!1}),setup(e,o){let{attrs:n,slots:t}=o;const l=X(e.visible);return Re({},{inTriggerContext:!1}),Z(()=>e.visible,()=>{e.visible&&(l.value=!0)},{flush:"post"}),()=>{const{visible:s,getContainer:p,forceRender:g,destroyOnClose:S=!1,afterClose:m}=e;let u=i(i(i({},e),n),{ref:"_component",key:"dialog"});return p===!1?a(ge,$($({},u),{},{getOpenCount:()=>2}),t):!g&&S&&!l.value?null:a(to,{autoLock:!0,visible:s,forceRender:g,getContainer:p},{default:d=>(u=i(i(i({},u),d),{afterClose:()=>{m?.(),l.value=!1}}),a(ge,u,t))})}}});function ve(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const Bo=e=>{const{componentCls:o}=e;return[{[`${o}-root`]:{[`${o}${e.antCls}-zoom-enter, ${o}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${o}${e.antCls}-zoom-leave ${o}-content`]:{pointerEvents:"none"},[`${o}-mask`]:i(i({},ve("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${o}-hidden`]:{display:"none"}}),[`${o}-wrap`]:i(i({},ve("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${o}-root`]:Co(e)}]},Po=e=>{const{componentCls:o}=e;return[{[`${o}-root`]:{[`${o}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${o}-wrap-rtl`]:{direction:"rtl"},[`${o}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[o]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[o]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${o}-centered`]:{[o]:{flex:1}}}}},{[o]:i(i({},We(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${o}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${o}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${o}-close`]:i({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},je(e)),[`${o}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${o}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${o}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${o}-open`]:{overflow:"hidden"}})},{[`${o}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${o}-content,
@@ -1,4 +1,4 @@
1
- import{o as be,x as Ce,s as pe,e as $e,d as R,c as a,b as Q,r as ve,Q as de,a9 as Se}from"./vendor-Bn1JzzAn.js";import{h as l,P as s,i as v,ap as xe,f as N,ae as ne,aq as K,ar as ye,as as Ie,l as Pe,m as Oe,r as Te,n as ze,at as re,q as Be,p as we,a5 as M,H as F,af as Ne,a6 as Me,a7 as Ee,au as je,a0 as De}from"./index-DJ2OiRvh.js";import{ah as ae,bc as oe,bd as le,be as se}from"./icons-DG5UD-6K.js";import{S as G,s as ge}from"./index-BNjYPJNU.js";import{u as Re}from"./responsiveObserve-CD3ziNhu.js";import{i as Ae,g as _e,h as He}from"./index-3djsY75k.js";import{B as Ke}from"./Trigger--F64N11F.js";import{B as me}from"./BaseInput-Bgih7yAv.js";import{c as ue}from"./vnode-BcBIjvjH.js";import{f as ce}from"./firstNotUndefined-CLFzEa0p.js";function Fe(){const e=pe({});let t=null;const i=Re();return be(()=>{t=i.value.subscribe(n=>{e.value=n})}),Ce(()=>{i.value.unsubscribe(t)}),e}function ft(e){const t=pe();return $e(()=>{t.value=e()},{flush:"sync"}),t}const Ve=R({name:"MiniSelect",compatConfig:{MODE:3},inheritAttrs:!1,props:ge(),Option:G.Option,setup(e,t){let{attrs:i,slots:n}=t;return()=>{const r=l(l(l({},e),{size:"small"}),i);return a(G,r,n)}}}),We=R({name:"MiddleSelect",inheritAttrs:!1,props:ge(),Option:G.Option,setup(e,t){let{attrs:i,slots:n}=t;return()=>{const r=l(l(l({},e),{size:"middle"}),i);return a(G,r,n)}}}),E=R({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:s.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:i,attrs:n}=t;const r=()=>{i("click",e.page)},O=g=>{i("keypress",g,r,e.page)};return()=>{const{showTitle:g,page:p,itemRender:c}=e,{class:h,style:u}=n,b=`${e.rootPrefixCls}-item`,$=v(b,`${b}-${e.page}`,{[`${b}-active`]:e.active,[`${b}-disabled`]:!e.page},h);return a("li",{onClick:r,onKeypress:O,title:g?String(p):null,tabindex:"0",class:$,style:u},[c({page:p,type:"page",originalElement:a("a",{rel:"nofollow"},[p])})])}}}),j={ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Je=R({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:s.any,current:Number,pageSizeOptions:s.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:s.object,rootPrefixCls:String,selectPrefixCls:String,goButton:s.any},setup(e){const t=ve(""),i=Q(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),n=c=>`${c.value} ${e.locale.items_per_page}`,r=c=>{const{value:h}=c.target;t.value!==h&&(t.value=h)},O=c=>{const{goButton:h,quickGo:u,rootPrefixCls:b}=e;if(!(h||t.value===""))if(c.relatedTarget&&(c.relatedTarget.className.indexOf(`${b}-item-link`)>=0||c.relatedTarget.className.indexOf(`${b}-item`)>=0)){t.value="";return}else u(i.value),t.value=""},g=c=>{t.value!==""&&(c.keyCode===j.ENTER||c.type==="click")&&(e.quickGo(i.value),t.value="")},p=Q(()=>{const{pageSize:c,pageSizeOptions:h}=e;return h.some(u=>u.toString()===c.toString())?h:h.concat([c.toString()]).sort((u,b)=>{const $=isNaN(Number(u))?0:Number(u),S=isNaN(Number(b))?0:Number(b);return $-S})});return()=>{const{rootPrefixCls:c,locale:h,changeSize:u,quickGo:b,goButton:$,selectComponentClass:S,selectPrefixCls:m,pageSize:T,disabled:x}=e,o=`${c}-options`;let C=null,y=null,z=null;if(!u&&!b)return null;if(u&&S){const D=e.buildOptionText||n,d=p.value.map((f,V)=>a(S.Option,{key:V,value:f},{default:()=>[D({value:f})]}));C=a(S,{disabled:x,prefixCls:m,showSearch:!1,class:`${o}-size-changer`,optionLabelProp:"children",value:(T||p.value[0]).toString(),onChange:f=>u(Number(f)),getPopupContainer:f=>f.parentNode},{default:()=>[d]})}return b&&($&&(z=typeof $=="boolean"?a("button",{type:"button",onClick:g,onKeyup:g,disabled:x,class:`${o}-quick-jumper-button`},[h.jump_to_confirm]):a("span",{onClick:g,onKeyup:g},[$])),y=a("div",{class:`${o}-quick-jumper`},[h.jump_to,a(me,{disabled:x,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:g,onBlur:O},null),h.page,z])),a("li",{class:`${o}`},[C,y])}}});var Le=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};function Xe(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function Ge(e){let{originalElement:t}=e;return t}function P(e,t,i){const n=typeof e>"u"?t.statePageSize:e;return Math.floor((i.total-1)/n)+1}const qe=R({compatConfig:{MODE:3},name:"Pagination",mixins:[Ke],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:s.string.def("rc-pagination"),selectPrefixCls:s.string.def("rc-select"),current:Number,defaultCurrent:s.number.def(1),total:s.number.def(0),pageSize:Number,defaultPageSize:s.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:s.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:s.oneOfType([s.looseBool,s.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:s.arrayOf(s.oneOfType([s.number,s.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:s.object.def(Ie),itemRender:s.func.def(Ge),prevIcon:s.any,nextIcon:s.any,jumpPrevIcon:s.any,jumpNextIcon:s.any,totalBoundaryShowSizeChanger:s.number.def(50)},data(){const e=this.$props;let t=ce([this.current,this.defaultCurrent]);const i=ce([this.pageSize,this.defaultPageSize]);return t=Math.min(t,P(i,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:i}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let i=this.stateCurrent;const n=P(e,this.$data,this.$props);i=i>n?n:i,K(this,"current")||(t.stateCurrent=i,t.stateCurrentInputValue=i),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const i=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);i&&document.activeElement===i&&i.blur()}})},total(){const e={},t=P(this.pageSize,this.$data,this.$props);if(K(this,"current")){const i=Math.min(this.current,t);e.stateCurrent=i,e.stateCurrentInputValue=i}else{let i=this.stateCurrent;i===0&&t>0?i=1:i=Math.min(this.stateCurrent,t),e.stateCurrent=i}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(P(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:i}=this.$props;return ye(this,e,this.$props)||a("button",{type:"button","aria-label":t,class:`${i}-item-link`},null)},getValidValue(e){const t=e.target.value,i=P(void 0,this.$data,this.$props),{stateCurrentInputValue:n}=this.$data;let r;return t===""?r=t:isNaN(Number(t))?r=n:t>=i?r=i:r=Number(t),r},isValid(e){return Xe(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:i}=this.$props;return i<=t?!1:e},handleKeyDown(e){(e.keyCode===j.ARROW_UP||e.keyCode===j.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),i=this.stateCurrentInputValue;t!==i&&this.setState({stateCurrentInputValue:t}),e.keyCode===j.ENTER?this.handleChange(t):e.keyCode===j.ARROW_UP?this.handleChange(t-1):e.keyCode===j.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const i=t,n=P(e,this.$data,this.$props);t=t>n?n:t,n===0&&(t=this.stateCurrent),typeof e=="number"&&(K(this,"pageSize")||this.setState({statePageSize:e}),K(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==i&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let i=e;if(this.isValid(i)&&!t){const n=P(void 0,this.$data,this.$props);return i>n?i=n:i<1&&(i=1),K(this,"current")||this.setState({stateCurrent:i,stateCurrentInputValue:i}),this.__emit("update:current",i),this.__emit("change",i,this.statePageSize),i}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrent<P(void 0,this.$data,this.$props)},getShowSizeChanger(){const{showSizeChanger:e,total:t,totalBoundaryShowSizeChanger:i}=this.$props;return typeof e<"u"?e:t>i},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){e.preventDefault();for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];t(...n)}},runIfEnterPrev(e){this.runIfEnter(e,this.prev)},runIfEnterNext(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext(e){this.runIfEnter(e,this.jumpNext)},handleGoTO(e){(e.keyCode===j.ENTER||e.type==="click")&&this.handleChange(this.stateCurrentInputValue)},renderPrev(e){const{itemRender:t}=this.$props,i=t({page:e,type:"prev",originalElement:this.getItemIcon("prevIcon","prev page")}),n=!this.hasPrev();return ne(i)?ue(i,n?{disabled:n}:{}):i},renderNext(e){const{itemRender:t}=this.$props,i=t({page:e,type:"next",originalElement:this.getItemIcon("nextIcon","next page")}),n=!this.hasNext();return ne(i)?ue(i,n?{disabled:n}:{}):i}},render(){const{prefixCls:e,disabled:t,hideOnSinglePage:i,total:n,locale:r,showQuickJumper:O,showLessItems:g,showTitle:p,showTotal:c,simple:h,itemRender:u,showPrevNextJumpers:b,jumpPrevIcon:$,jumpNextIcon:S,selectComponentClass:m,selectPrefixCls:T,pageSizeOptions:x}=this.$props,{stateCurrent:o,statePageSize:C}=this,y=xe(this.$attrs).extraAttrs,{class:z}=y,D=Le(y,["class"]);if(i===!0&&this.total<=C)return null;const d=P(void 0,this.$data,this.$props),f=[];let V=null,Y=null,Z=null,k=null,A=null;const W=O&&O.goButton,I=g?1:2,ee=o-1>0?o-1:0,te=o+1<d?o+1:d,J=this.hasPrev(),L=this.hasNext();if(h)return W&&(typeof W=="boolean"?A=a("button",{type:"button",onClick:this.handleGoTO,onKeyup:this.handleGoTO},[r.jump_to_confirm]):A=a("span",{onClick:this.handleGoTO,onKeyup:this.handleGoTO},[W]),A=a("li",{title:p?`${r.jump_to}${o}/${d}`:null,class:`${e}-simple-pager`},[A])),a("ul",N({class:v(`${e} ${e}-simple`,{[`${e}-disabled`]:t},z)},D),[a("li",{title:p?r.prev_page:null,onClick:this.prev,tabindex:J?0:null,onKeypress:this.runIfEnterPrev,class:v(`${e}-prev`,{[`${e}-disabled`]:!J}),"aria-disabled":!J},[this.renderPrev(ee)]),a("li",{title:p?`${o}/${d}`:null,class:`${e}-simple-pager`},[a(me,{type:"text",value:this.stateCurrentInputValue,disabled:t,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onInput:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"},null),a("span",{class:`${e}-slash`},[de("/")]),d]),a("li",{title:p?r.next_page:null,onClick:this.next,tabindex:L?0:null,onKeypress:this.runIfEnterNext,class:v(`${e}-next`,{[`${e}-disabled`]:!L}),"aria-disabled":!L},[this.renderNext(te)]),A]);if(d<=3+I*2){const X={locale:r,rootPrefixCls:e,showTitle:p,itemRender:u,onClick:this.handleChange,onKeypress:this.runIfEnter};d||f.push(a(E,N(N({},X),{},{key:"noPager",page:1,class:`${e}-item-disabled`}),null));for(let B=1;B<=d;B+=1){const w=o===B;f.push(a(E,N(N({},X),{},{key:B,page:B,active:w}),null))}}else{const X=g?r.prev_3:r.prev_5,B=g?r.next_3:r.next_5;b&&(V=a("li",{title:this.showTitle?X:null,key:"prev",onClick:this.jumpPrev,tabindex:"0",onKeypress:this.runIfEnterJumpPrev,class:v(`${e}-jump-prev`,{[`${e}-jump-prev-custom-icon`]:!!$})},[u({page:this.getJumpPrevPage(),type:"jump-prev",originalElement:this.getItemIcon("jumpPrevIcon","prev page")})]),Y=a("li",{title:this.showTitle?B:null,key:"next",tabindex:"0",onClick:this.jumpNext,onKeypress:this.runIfEnterJumpNext,class:v(`${e}-jump-next`,{[`${e}-jump-next-custom-icon`]:!!S})},[u({page:this.getJumpNextPage(),type:"jump-next",originalElement:this.getItemIcon("jumpNextIcon","next page")})])),k=a(E,{locale:r,last:!0,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:d,page:d,active:!1,showTitle:p,itemRender:u},null),Z=a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:1,page:1,active:!1,showTitle:p,itemRender:u},null);let w=Math.max(1,o-I),_=Math.min(o+I,d);o-1<=I&&(_=1+I*2),d-o<=I&&(w=d-I*2);for(let H=w;H<=_;H+=1){const fe=o===H;f.push(a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:H,page:H,active:fe,showTitle:p,itemRender:u},null))}o-1>=I*2&&o!==3&&(f[0]=a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:w,page:w,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:u},null),f.unshift(V)),d-o>=I*2&&o!==d-2&&(f[f.length-1]=a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:_,page:_,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:u},null),f.push(Y)),w!==1&&f.unshift(Z),_!==d&&f.push(k)}let ie=null;c&&(ie=a("li",{class:`${e}-total-text`},[c(n,[n===0?0:(o-1)*C+1,o*C>n?n:o*C])]));const q=!J||!d,U=!L||!d,he=this.buildOptionText||this.$slots.buildOptionText;return a("ul",N(N({unselectable:"on",ref:"paginationNode"},D),{},{class:v({[`${e}`]:!0,[`${e}-disabled`]:t},z)}),[ie,a("li",{title:p?r.prev_page:null,onClick:this.prev,tabindex:q?null:0,onKeypress:this.runIfEnterPrev,class:v(`${e}-prev`,{[`${e}-disabled`]:q}),"aria-disabled":q},[this.renderPrev(ee)]),f,a("li",{title:p?r.next_page:null,onClick:this.next,tabindex:U?null:0,onKeypress:this.runIfEnterNext,class:v(`${e}-next`,{[`${e}-disabled`]:U}),"aria-disabled":U},[this.renderNext(te)]),a(Je,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:m,selectPrefixCls:T,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:o,pageSize:C,pageSizeOptions:x,buildOptionText:he||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:W},null)])}}),Ue=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[`
1
+ import{o as be,x as Ce,s as pe,e as $e,d as R,c as a,b as Q,r as ve,Q as de,a9 as Se}from"./vendor-Bn1JzzAn.js";import{h as l,P as s,i as v,ap as xe,f as N,ae as ne,aq as K,ar as ye,as as Ie,l as Pe,m as Oe,r as Te,n as ze,at as re,q as Be,p as we,a5 as M,H as F,af as Ne,a6 as Me,a7 as Ee,au as je,a0 as De}from"./index-IahILygB.js";import{ah as ae,bc as oe,bd as le,be as se}from"./icons-DG5UD-6K.js";import{S as G,s as ge}from"./index-DjF5BOZx.js";import{u as Re}from"./responsiveObserve-GM5NE8En.js";import{i as Ae,g as _e,h as He}from"./index-F2E5RCwz.js";import{B as Ke}from"./Trigger-CSeWGM0W.js";import{B as me}from"./BaseInput-DcB7NoRz.js";import{c as ue}from"./vnode--gMF33R0.js";import{f as ce}from"./firstNotUndefined-CLFzEa0p.js";function Fe(){const e=pe({});let t=null;const i=Re();return be(()=>{t=i.value.subscribe(n=>{e.value=n})}),Ce(()=>{i.value.unsubscribe(t)}),e}function ft(e){const t=pe();return $e(()=>{t.value=e()},{flush:"sync"}),t}const Ve=R({name:"MiniSelect",compatConfig:{MODE:3},inheritAttrs:!1,props:ge(),Option:G.Option,setup(e,t){let{attrs:i,slots:n}=t;return()=>{const r=l(l(l({},e),{size:"small"}),i);return a(G,r,n)}}}),We=R({name:"MiddleSelect",inheritAttrs:!1,props:ge(),Option:G.Option,setup(e,t){let{attrs:i,slots:n}=t;return()=>{const r=l(l(l({},e),{size:"middle"}),i);return a(G,r,n)}}}),E=R({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:s.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:i,attrs:n}=t;const r=()=>{i("click",e.page)},O=g=>{i("keypress",g,r,e.page)};return()=>{const{showTitle:g,page:p,itemRender:c}=e,{class:h,style:u}=n,b=`${e.rootPrefixCls}-item`,$=v(b,`${b}-${e.page}`,{[`${b}-active`]:e.active,[`${b}-disabled`]:!e.page},h);return a("li",{onClick:r,onKeypress:O,title:g?String(p):null,tabindex:"0",class:$,style:u},[c({page:p,type:"page",originalElement:a("a",{rel:"nofollow"},[p])})])}}}),j={ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Je=R({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:s.any,current:Number,pageSizeOptions:s.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:s.object,rootPrefixCls:String,selectPrefixCls:String,goButton:s.any},setup(e){const t=ve(""),i=Q(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),n=c=>`${c.value} ${e.locale.items_per_page}`,r=c=>{const{value:h}=c.target;t.value!==h&&(t.value=h)},O=c=>{const{goButton:h,quickGo:u,rootPrefixCls:b}=e;if(!(h||t.value===""))if(c.relatedTarget&&(c.relatedTarget.className.indexOf(`${b}-item-link`)>=0||c.relatedTarget.className.indexOf(`${b}-item`)>=0)){t.value="";return}else u(i.value),t.value=""},g=c=>{t.value!==""&&(c.keyCode===j.ENTER||c.type==="click")&&(e.quickGo(i.value),t.value="")},p=Q(()=>{const{pageSize:c,pageSizeOptions:h}=e;return h.some(u=>u.toString()===c.toString())?h:h.concat([c.toString()]).sort((u,b)=>{const $=isNaN(Number(u))?0:Number(u),S=isNaN(Number(b))?0:Number(b);return $-S})});return()=>{const{rootPrefixCls:c,locale:h,changeSize:u,quickGo:b,goButton:$,selectComponentClass:S,selectPrefixCls:m,pageSize:T,disabled:x}=e,o=`${c}-options`;let C=null,y=null,z=null;if(!u&&!b)return null;if(u&&S){const D=e.buildOptionText||n,d=p.value.map((f,V)=>a(S.Option,{key:V,value:f},{default:()=>[D({value:f})]}));C=a(S,{disabled:x,prefixCls:m,showSearch:!1,class:`${o}-size-changer`,optionLabelProp:"children",value:(T||p.value[0]).toString(),onChange:f=>u(Number(f)),getPopupContainer:f=>f.parentNode},{default:()=>[d]})}return b&&($&&(z=typeof $=="boolean"?a("button",{type:"button",onClick:g,onKeyup:g,disabled:x,class:`${o}-quick-jumper-button`},[h.jump_to_confirm]):a("span",{onClick:g,onKeyup:g},[$])),y=a("div",{class:`${o}-quick-jumper`},[h.jump_to,a(me,{disabled:x,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:g,onBlur:O},null),h.page,z])),a("li",{class:`${o}`},[C,y])}}});var Le=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};function Xe(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function Ge(e){let{originalElement:t}=e;return t}function P(e,t,i){const n=typeof e>"u"?t.statePageSize:e;return Math.floor((i.total-1)/n)+1}const qe=R({compatConfig:{MODE:3},name:"Pagination",mixins:[Ke],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:s.string.def("rc-pagination"),selectPrefixCls:s.string.def("rc-select"),current:Number,defaultCurrent:s.number.def(1),total:s.number.def(0),pageSize:Number,defaultPageSize:s.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:s.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:s.oneOfType([s.looseBool,s.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:s.arrayOf(s.oneOfType([s.number,s.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:s.object.def(Ie),itemRender:s.func.def(Ge),prevIcon:s.any,nextIcon:s.any,jumpPrevIcon:s.any,jumpNextIcon:s.any,totalBoundaryShowSizeChanger:s.number.def(50)},data(){const e=this.$props;let t=ce([this.current,this.defaultCurrent]);const i=ce([this.pageSize,this.defaultPageSize]);return t=Math.min(t,P(i,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:i}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let i=this.stateCurrent;const n=P(e,this.$data,this.$props);i=i>n?n:i,K(this,"current")||(t.stateCurrent=i,t.stateCurrentInputValue=i),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const i=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);i&&document.activeElement===i&&i.blur()}})},total(){const e={},t=P(this.pageSize,this.$data,this.$props);if(K(this,"current")){const i=Math.min(this.current,t);e.stateCurrent=i,e.stateCurrentInputValue=i}else{let i=this.stateCurrent;i===0&&t>0?i=1:i=Math.min(this.stateCurrent,t),e.stateCurrent=i}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(P(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:i}=this.$props;return ye(this,e,this.$props)||a("button",{type:"button","aria-label":t,class:`${i}-item-link`},null)},getValidValue(e){const t=e.target.value,i=P(void 0,this.$data,this.$props),{stateCurrentInputValue:n}=this.$data;let r;return t===""?r=t:isNaN(Number(t))?r=n:t>=i?r=i:r=Number(t),r},isValid(e){return Xe(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:i}=this.$props;return i<=t?!1:e},handleKeyDown(e){(e.keyCode===j.ARROW_UP||e.keyCode===j.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),i=this.stateCurrentInputValue;t!==i&&this.setState({stateCurrentInputValue:t}),e.keyCode===j.ENTER?this.handleChange(t):e.keyCode===j.ARROW_UP?this.handleChange(t-1):e.keyCode===j.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const i=t,n=P(e,this.$data,this.$props);t=t>n?n:t,n===0&&(t=this.stateCurrent),typeof e=="number"&&(K(this,"pageSize")||this.setState({statePageSize:e}),K(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==i&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let i=e;if(this.isValid(i)&&!t){const n=P(void 0,this.$data,this.$props);return i>n?i=n:i<1&&(i=1),K(this,"current")||this.setState({stateCurrent:i,stateCurrentInputValue:i}),this.__emit("update:current",i),this.__emit("change",i,this.statePageSize),i}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrent<P(void 0,this.$data,this.$props)},getShowSizeChanger(){const{showSizeChanger:e,total:t,totalBoundaryShowSizeChanger:i}=this.$props;return typeof e<"u"?e:t>i},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){e.preventDefault();for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];t(...n)}},runIfEnterPrev(e){this.runIfEnter(e,this.prev)},runIfEnterNext(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext(e){this.runIfEnter(e,this.jumpNext)},handleGoTO(e){(e.keyCode===j.ENTER||e.type==="click")&&this.handleChange(this.stateCurrentInputValue)},renderPrev(e){const{itemRender:t}=this.$props,i=t({page:e,type:"prev",originalElement:this.getItemIcon("prevIcon","prev page")}),n=!this.hasPrev();return ne(i)?ue(i,n?{disabled:n}:{}):i},renderNext(e){const{itemRender:t}=this.$props,i=t({page:e,type:"next",originalElement:this.getItemIcon("nextIcon","next page")}),n=!this.hasNext();return ne(i)?ue(i,n?{disabled:n}:{}):i}},render(){const{prefixCls:e,disabled:t,hideOnSinglePage:i,total:n,locale:r,showQuickJumper:O,showLessItems:g,showTitle:p,showTotal:c,simple:h,itemRender:u,showPrevNextJumpers:b,jumpPrevIcon:$,jumpNextIcon:S,selectComponentClass:m,selectPrefixCls:T,pageSizeOptions:x}=this.$props,{stateCurrent:o,statePageSize:C}=this,y=xe(this.$attrs).extraAttrs,{class:z}=y,D=Le(y,["class"]);if(i===!0&&this.total<=C)return null;const d=P(void 0,this.$data,this.$props),f=[];let V=null,Y=null,Z=null,k=null,A=null;const W=O&&O.goButton,I=g?1:2,ee=o-1>0?o-1:0,te=o+1<d?o+1:d,J=this.hasPrev(),L=this.hasNext();if(h)return W&&(typeof W=="boolean"?A=a("button",{type:"button",onClick:this.handleGoTO,onKeyup:this.handleGoTO},[r.jump_to_confirm]):A=a("span",{onClick:this.handleGoTO,onKeyup:this.handleGoTO},[W]),A=a("li",{title:p?`${r.jump_to}${o}/${d}`:null,class:`${e}-simple-pager`},[A])),a("ul",N({class:v(`${e} ${e}-simple`,{[`${e}-disabled`]:t},z)},D),[a("li",{title:p?r.prev_page:null,onClick:this.prev,tabindex:J?0:null,onKeypress:this.runIfEnterPrev,class:v(`${e}-prev`,{[`${e}-disabled`]:!J}),"aria-disabled":!J},[this.renderPrev(ee)]),a("li",{title:p?`${o}/${d}`:null,class:`${e}-simple-pager`},[a(me,{type:"text",value:this.stateCurrentInputValue,disabled:t,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onInput:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"},null),a("span",{class:`${e}-slash`},[de("/")]),d]),a("li",{title:p?r.next_page:null,onClick:this.next,tabindex:L?0:null,onKeypress:this.runIfEnterNext,class:v(`${e}-next`,{[`${e}-disabled`]:!L}),"aria-disabled":!L},[this.renderNext(te)]),A]);if(d<=3+I*2){const X={locale:r,rootPrefixCls:e,showTitle:p,itemRender:u,onClick:this.handleChange,onKeypress:this.runIfEnter};d||f.push(a(E,N(N({},X),{},{key:"noPager",page:1,class:`${e}-item-disabled`}),null));for(let B=1;B<=d;B+=1){const w=o===B;f.push(a(E,N(N({},X),{},{key:B,page:B,active:w}),null))}}else{const X=g?r.prev_3:r.prev_5,B=g?r.next_3:r.next_5;b&&(V=a("li",{title:this.showTitle?X:null,key:"prev",onClick:this.jumpPrev,tabindex:"0",onKeypress:this.runIfEnterJumpPrev,class:v(`${e}-jump-prev`,{[`${e}-jump-prev-custom-icon`]:!!$})},[u({page:this.getJumpPrevPage(),type:"jump-prev",originalElement:this.getItemIcon("jumpPrevIcon","prev page")})]),Y=a("li",{title:this.showTitle?B:null,key:"next",tabindex:"0",onClick:this.jumpNext,onKeypress:this.runIfEnterJumpNext,class:v(`${e}-jump-next`,{[`${e}-jump-next-custom-icon`]:!!S})},[u({page:this.getJumpNextPage(),type:"jump-next",originalElement:this.getItemIcon("jumpNextIcon","next page")})])),k=a(E,{locale:r,last:!0,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:d,page:d,active:!1,showTitle:p,itemRender:u},null),Z=a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:1,page:1,active:!1,showTitle:p,itemRender:u},null);let w=Math.max(1,o-I),_=Math.min(o+I,d);o-1<=I&&(_=1+I*2),d-o<=I&&(w=d-I*2);for(let H=w;H<=_;H+=1){const fe=o===H;f.push(a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:H,page:H,active:fe,showTitle:p,itemRender:u},null))}o-1>=I*2&&o!==3&&(f[0]=a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:w,page:w,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:u},null),f.unshift(V)),d-o>=I*2&&o!==d-2&&(f[f.length-1]=a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:_,page:_,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:u},null),f.push(Y)),w!==1&&f.unshift(Z),_!==d&&f.push(k)}let ie=null;c&&(ie=a("li",{class:`${e}-total-text`},[c(n,[n===0?0:(o-1)*C+1,o*C>n?n:o*C])]));const q=!J||!d,U=!L||!d,he=this.buildOptionText||this.$slots.buildOptionText;return a("ul",N(N({unselectable:"on",ref:"paginationNode"},D),{},{class:v({[`${e}`]:!0,[`${e}-disabled`]:t},z)}),[ie,a("li",{title:p?r.prev_page:null,onClick:this.prev,tabindex:q?null:0,onKeypress:this.runIfEnterPrev,class:v(`${e}-prev`,{[`${e}-disabled`]:q}),"aria-disabled":q},[this.renderPrev(ee)]),f,a("li",{title:p?r.next_page:null,onClick:this.next,tabindex:U?null:0,onKeypress:this.runIfEnterNext,class:v(`${e}-next`,{[`${e}-disabled`]:U}),"aria-disabled":U},[this.renderNext(te)]),a(Je,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:m,selectPrefixCls:T,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:o,pageSize:C,pageSizeOptions:x,buildOptionText:he||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:W},null)])}}),Ue=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[`
2
2
  &:hover ${t}-item:not(${t}-item-active),
3
3
  &:active ${t}-item:not(${t}-item-active),
4
4
  &:hover ${t}-item-link,