ranui 0.2.1-alpha.1 → 0.2.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
- package/dist/arc-D25LhgTs.cjs +1 -0
- package/dist/arc-DRPGof21.js +82 -0
- package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
- package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
- package/dist/array-By5736M5.js +7 -0
- package/dist/array-C3cbN3GY.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
- package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
- package/dist/builder.d.ts +2 -2
- package/dist/builder.js +39 -34
- package/dist/{builtin-D9djWkCE.js → builtin-BkM0LLof.js} +83 -76
- package/dist/button-D0zcnKnG.js +117 -0
- package/dist/button.js +1 -1
- package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
- package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
- package/dist/{card-CqJa4Q_v.js → card-CygMndQS.js} +2 -2
- package/dist/card.js +1 -1
- package/dist/channel-C9WSNwcS.cjs +1 -0
- package/dist/channel-k5-UxdcV.js +5 -0
- package/dist/{checkbox-CThC9-vy.js → checkbox-D5om9aJO.js} +10 -10
- package/dist/checkbox.js +1 -1
- package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
- package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
- package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
- package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
- package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
- package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
- package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
- package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
- package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
- package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
- package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
- package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
- package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
- package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
- package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
- package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
- package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
- package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
- package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
- package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
- package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
- package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
- package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
- package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
- package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
- package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
- package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
- package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
- package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
- package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
- package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
- package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
- package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
- package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
- package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
- package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
- package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
- package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
- package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
- package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
- package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
- package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
- package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
- package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
- package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
- package/dist/{colorpicker-XNxDRcQ-.js → colorpicker-qWnaTlYX.js} +8 -8
- package/dist/colorpicker.js +1 -1
- package/dist/components/glass/index.d.ts +52 -0
- package/dist/components/icon/core-icons.d.ts +13 -0
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/mermaid/index.d.ts +52 -0
- package/dist/components/modal/index.d.ts +9 -0
- package/dist/content-Rry-U6ir.js +39 -0
- package/dist/content.js +5 -0
- package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
- package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
- package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
- package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
- package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
- package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
- package/dist/dagre-D1-W1tt6.cjs +1 -0
- package/dist/dagre-D8GLTwuf.js +1578 -0
- package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
- package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
- package/dist/defaultLocale-0M_kMcEH.js +184 -0
- package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
- package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
- package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
- package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
- package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
- package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
- package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
- package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
- package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
- package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
- package/dist/dist-C0Fwsvsq.js +70 -0
- package/dist/dist-C20XxSsP.cjs +1 -0
- package/dist/{dropdown-CCvsambb.js → dropdown-DzdAR1nI.js} +4 -4
- package/dist/dropdown.js +1 -1
- package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
- package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
- package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
- package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
- package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
- package/dist/factory-BkvRcCOx.js +482 -0
- package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
- package/dist/{form-Ceq3uJzz.js → form-CUJpeQ7Q.js} +5 -5
- package/dist/form.js +1 -1
- package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
- package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
- package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
- package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
- package/dist/glass-Bj1Zf8Hy.js +115 -0
- package/dist/glass.js +5 -0
- package/dist/graphlib-CCKThIKP.js +1104 -0
- package/dist/graphlib-Du-578Js.cjs +1 -0
- package/dist/{icon-C_ENrJ3F.js → icon-CtlZJISZ.js} +77 -25
- package/dist/icon.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +2 -2
- package/dist/iife/content.iife.js +1 -0
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -0
- package/dist/iife/icon.iife.js +1 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +14 -14
- package/dist/iife/mermaid.iife.js +3535 -0
- package/dist/iife/message.iife.js +1 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +8 -8
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +1 -1
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/{image-B7MBI5n_.js → image-ILZNlaGc.js} +4 -4
- package/dist/image.js +1 -1
- package/dist/index.cjs +38 -37
- package/dist/index.d.ts +8 -0
- package/dist/index.iife.js +3623 -88
- package/dist/index.js +88 -84
- package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
- package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
- package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
- package/dist/init-1VpIn1S3.js +16 -0
- package/dist/init-CbDwVtpO.cjs +1 -0
- package/dist/{input-RNqdEHPf.js → input-CDH6zY9I.js} +6 -6
- package/dist/input.js +1 -1
- package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
- package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
- package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
- package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
- package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
- package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
- package/dist/katex-Cq3Y8cmK.cjs +257 -0
- package/dist/katex-Pg2EqTH0.js +23485 -0
- package/dist/line-BIPmUVxO.js +33 -0
- package/dist/line-CAB5QHC6.cjs +1 -0
- package/dist/linear-B2AM4ZBe.js +259 -0
- package/dist/linear-CSAfNEpl.cjs +1 -0
- package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
- package/dist/link.js +1 -1
- package/dist/{loading-B9MFI03l.js → loading-DJWGih1g.js} +4 -4
- package/dist/loading.js +1 -1
- package/dist/map-BC2bk_rV.cjs +1 -0
- package/dist/map-DMSWkcq6.js +208 -0
- package/dist/{math-CudIwEXZ.js → math-DRmkEDSQ.js} +4 -4
- package/dist/math.js +1 -1
- package/dist/mermaid-CMhm7npE.js +261 -0
- package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
- package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
- package/dist/mermaid.core-B2d5lQW2.js +1085 -0
- package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
- package/dist/mermaid.js +5 -0
- package/dist/{message-DW7qWpEm.js → message-BpYJBvYn.js} +6 -6
- package/dist/message.js +1 -1
- package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
- package/dist/{modal-CrvGKL2B.js → modal-BeQlDYDP.js} +40 -24
- package/dist/modal.js +1 -1
- package/dist/ordinal-BMN81JG2.js +64 -0
- package/dist/ordinal-BplLHIij.cjs +1 -0
- package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
- package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
- package/dist/path-Bja5PoYn.js +82 -0
- package/dist/path-DmfWsuKi.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
- package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
- package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
- package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
- package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
- package/dist/{player-BKQaaT7o.js → player-CQ4e3Yeo.js} +196 -195
- package/dist/player.js +1 -1
- package/dist/{popover-CvYIVgUS.js → popover-eZMnL1F3.js} +22 -54
- package/dist/popover.js +1 -1
- package/dist/{progress-C6jctsFH.js → progress-DyHgW4Ep.js} +5 -5
- package/dist/progress.js +1 -1
- package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
- package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
- package/dist/{radar-BUb4EzmG.js → radar-D21Rccap.js} +5 -5
- package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
- package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
- package/dist/radar.js +1 -1
- package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
- package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
- package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
- package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
- package/dist/ranui.css +1 -1
- package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
- package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
- package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
- package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
- package/dist/rough.esm-BWe9E0Nz.js +1387 -0
- package/dist/rough.esm-BfSi6CZE.cjs +1 -0
- package/dist/{route-Djrf9UR_.js → route-pR5P4ann.js} +10 -10
- package/dist/route.js +1 -1
- package/dist/{router-BU2KhtxV.js → router-CewzSH7O.js} +5 -5
- package/dist/router.js +1 -1
- package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
- package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
- package/dist/{scratch-CO4I2dIa.js → scratch-BFVsgl-7.js} +2 -2
- package/dist/scratch.js +1 -1
- package/dist/{section-CsUkp8bv.js → section-DSPCsIxv.js} +2 -2
- package/dist/section.js +1 -1
- package/dist/{select-Dn26ajJZ.js → select-B58nMfB1.js} +13 -13
- package/dist/select.js +1 -1
- package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
- package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
- package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
- package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
- package/dist/{skeleton-BuMLhvzQ.js → skeleton-DoHYMsTn.js} +5 -5
- package/dist/skeleton.js +1 -1
- package/dist/src-C9EhKhbk.cjs +1 -0
- package/dist/src-DtRLxcYO.js +2104 -0
- package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
- package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
- package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
- package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
- package/dist/{tab-40fDkuox.js → tab-BRPdZ9Ws.js} +5 -5
- package/dist/tab.js +1 -1
- package/dist/{tabpane-F4Pd7JtC.js → tabpane-Owf72hw_.js} +5 -5
- package/dist/tabpane.js +1 -1
- package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
- package/dist/theme-switch.js +1 -1
- package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
- package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
- package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
- package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
- package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
- package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
- package/dist/utils/builder/core.d.ts +133 -3
- package/dist/utils/builder/index.d.ts +1 -1
- package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
- package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
- package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
- package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
- package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
- package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
- package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
- package/docs/BUILDER.md +155 -2
- package/package.json +7 -1
- package/dist/button-BfYw0fes.js +0 -117
- package/dist/factory-DCrO37si.js +0 -334
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var it=typeof global=="object"&&global&&global.Object===Object&&global,Ft=typeof self=="object"&&self&&self.Object===Object&&self,m=it||Ft||Function("return this")(),v=m.Symbol,at=Object.prototype,Mt=at.hasOwnProperty,Rt=at.toString,D=v?v.toStringTag:void 0;function Dt(e){var t=Mt.call(e,D),r=e[D];try{e[D]=void 0;var n=!0}catch{}var i=Rt.call(e);return n&&(t?e[D]=r:delete e[D]),i}var Gt=Object.prototype.toString;function Ut(e){return Gt.call(e)}var zt="[object Null]",Ht="[object Undefined]",Ne=v?v.toStringTag:void 0;function L(e){return e==null?e===void 0?Ht:zt:Ne&&Ne in Object(e)?Dt(e):Ut(e)}function A(e){return e!=null&&typeof e=="object"}var Bt="[object Symbol]";function te(e){return typeof e=="symbol"||A(e)&&L(e)==Bt}function ye(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var g=Array.isArray,Kt=1/0,Fe=v?v.prototype:void 0,Me=Fe?Fe.toString:void 0;function st(e){if(typeof e=="string")return e;if(g(e))return ye(e,st)+"";if(te(e))return Me?Me.call(e):"";var t=e+"";return t=="0"&&1/e==-Kt?"-0":t}function re(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function X(e){return e}var qt="[object AsyncFunction]",Yt="[object Function]",Xt="[object GeneratorFunction]",Zt="[object Proxy]";function H(e){if(!re(e))return!1;var t=L(e);return t==Yt||t==Xt||t==qt||t==Zt}var ue=m["__core-js_shared__"],Re=(function(){var e=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Wt(e){return!!Re&&Re in e}var Jt=Function.prototype.toString;function x(e){if(e!=null){try{return Jt.call(e)}catch{}try{return e+""}catch{}}return""}var Qt=/[\\^$.*+?()[\]{}|]/g,Vt=/^\[object .+?Constructor\]$/,kt=Function.prototype,er=Object.prototype,tr=kt.toString,rr=er.hasOwnProperty,nr=RegExp("^"+tr.call(rr).replace(Qt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ir(e){return!re(e)||Wt(e)?!1:(H(e)?nr:Vt).test(x(e))}function ar(e,t){return e?.[t]}function N(e,t){var r=ar(e,t);return ir(r)?r:void 0}var le=N(m,"WeakMap");function sr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function ur(){}var or=800,fr=16,cr=Date.now;function lr(e){var t=0,r=0;return function(){var n=cr(),i=fr-(n-r);if(r=n,i>0){if(++t>=or)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function F(e){return function(){return e}}var he=(function(){try{var e=N(Object,"defineProperty");return e({},"",{}),e}catch{}})(),hr=he?function(e,t){return he(e,"toString",{configurable:!0,enumerable:!1,value:F(t),writable:!0})}:X,ut=lr(hr);function ot(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function ft(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function dr(e){return e!==e}function gr(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function pr(e,t,r){return t===t?gr(e,t,r):ft(e,dr,r)}function br(e,t){return!!(e!=null&&e.length)&&pr(e,t,0)>-1}var _r=9007199254740991,yr=/^(?:0|[1-9]\d*)$/;function ve(e,t){var r=typeof e;return t=t??_r,!!t&&(r=="number"||r!="symbol"&&yr.test(e))&&e>-1&&e%1==0&&e<t}function Oe(e,t){return e===t||e!==e&&t!==t}var De=Math.max;function ct(e,t,r){return t=De(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=De(n.length-t,0),s=Array(a);++i<a;)s[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(s),sr(e,this,u)}}function lt(e,t){return ut(ct(e,t,X),e+"")}var vr=9007199254740991;function me(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vr}function Z(e){return e!=null&&me(e.length)&&!H(e)}var Or=Object.prototype;function Pe(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||Or)}function mr(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Pr="[object Arguments]";function Ge(e){return A(e)&&L(e)==Pr}var ht=Object.prototype,Tr=ht.hasOwnProperty,wr=ht.propertyIsEnumerable,W=Ge((function(){return arguments})())?Ge:function(e){return A(e)&&Tr.call(e,"callee")&&!wr.call(e,"callee")};function jr(){return!1}var dt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ue=dt&&typeof module=="object"&&module&&!module.nodeType&&module,ze=Ue&&Ue.exports===dt?m.Buffer:void 0,B=(ze?ze.isBuffer:void 0)||jr,Ar="[object Arguments]",Er="[object Array]",Sr="[object Boolean]",Cr="[object Date]",$r="[object Error]",Ir="[object Function]",Lr="[object Map]",xr="[object Number]",Nr="[object Object]",Fr="[object RegExp]",Mr="[object Set]",Rr="[object String]",Dr="[object WeakMap]",Gr="[object ArrayBuffer]",Ur="[object DataView]",zr="[object Float32Array]",Hr="[object Float64Array]",Br="[object Int8Array]",Kr="[object Int16Array]",qr="[object Int32Array]",Yr="[object Uint8Array]",Xr="[object Uint8ClampedArray]",Zr="[object Uint16Array]",Wr="[object Uint32Array]",l={};l[zr]=l[Hr]=l[Br]=l[Kr]=l[qr]=l[Yr]=l[Xr]=l[Zr]=l[Wr]=!0;l[Ar]=l[Er]=l[Gr]=l[Sr]=l[Ur]=l[Cr]=l[$r]=l[Ir]=l[Lr]=l[xr]=l[Nr]=l[Fr]=l[Mr]=l[Rr]=l[Dr]=!1;function Jr(e){return A(e)&&me(e.length)&&!!l[L(e)]}function gt(e){return function(t){return e(t)}}var pt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,z=pt&&typeof module=="object"&&module&&!module.nodeType&&module,oe=z&&z.exports===pt&&it.process,de=(function(){try{var e=z&&z.require&&z.require("util").types;return e||oe&&oe.binding&&oe.binding("util")}catch{}})(),He=de&&de.isTypedArray,ne=He?gt(He):Jr,Qr=Object.prototype.hasOwnProperty;function bt(e,t){var r=g(e),n=!r&&W(e),i=!r&&!n&&B(e),a=!r&&!n&&!i&&ne(e),s=r||n||i||a,u=s?mr(e.length,String):[],o=u.length;for(var f in e)(t||Qr.call(e,f))&&!(s&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||ve(f,o)))&&u.push(f);return u}function _t(e,t){return function(r){return e(t(r))}}var Vr=_t(Object.keys,Object),kr=Object.prototype.hasOwnProperty;function Te(e){if(!Pe(e))return Vr(e);var t=[];for(var r in Object(e))kr.call(e,r)&&r!="constructor"&&t.push(r);return t}function y(e){return Z(e)?bt(e):Te(e)}var en=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tn=/^\w*$/;function we(e,t){if(g(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||te(e)?!0:tn.test(e)||!en.test(e)||t!=null&&e in Object(t)}var K=N(Object,"create");function rn(){this.__data__=K?K(null):{},this.size=0}function nn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var an="__lodash_hash_undefined__",sn=Object.prototype.hasOwnProperty;function un(e){var t=this.__data__;if(K){var r=t[e];return r===an?void 0:r}return sn.call(t,e)?t[e]:void 0}var on=Object.prototype.hasOwnProperty;function fn(e){var t=this.__data__;return K?t[e]!==void 0:on.call(t,e)}var cn="__lodash_hash_undefined__";function ln(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=K&&t===void 0?cn:t,this}function I(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}I.prototype.clear=rn;I.prototype.delete=nn;I.prototype.get=un;I.prototype.has=fn;I.prototype.set=ln;function hn(){this.__data__=[],this.size=0}function ie(e,t){for(var r=e.length;r--;)if(Oe(e[r][0],t))return r;return-1}var dn=Array.prototype.splice;function gn(e){var t=this.__data__,r=ie(t,e);return r<0?!1:(r==t.length-1?t.pop():dn.call(t,r,1),--this.size,!0)}function pn(e){var t=this.__data__,r=ie(t,e);return r<0?void 0:t[r][1]}function bn(e){return ie(this.__data__,e)>-1}function _n(e,t){var r=this.__data__,n=ie(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function T(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}T.prototype.clear=hn;T.prototype.delete=gn;T.prototype.get=pn;T.prototype.has=bn;T.prototype.set=_n;var q=N(m,"Map");function yn(){this.size=0,this.__data__={hash:new I,map:new(q||T),string:new I}}function vn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ae(e,t){var r=e.__data__;return vn(t)?r[typeof t=="string"?"string":"hash"]:r.map}function On(e){var t=ae(this,e).delete(e);return this.size-=t?1:0,t}function mn(e){return ae(this,e).get(e)}function Pn(e){return ae(this,e).has(e)}function Tn(e,t){var r=ae(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function w(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}w.prototype.clear=yn;w.prototype.delete=On;w.prototype.get=mn;w.prototype.has=Pn;w.prototype.set=Tn;var wn="Expected a function";function je(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wn);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(je.Cache||w),r}je.Cache=w;var jn=500;function An(e){var t=je(e,function(n){return r.size===jn&&r.clear(),n}),r=t.cache;return t}var En=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sn=/\\(\\)?/g,Cn=An(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(En,function(r,n,i,a){t.push(i?a.replace(Sn,"$1"):n||r)}),t});function yt(e){return e==null?"":st(e)}function Ae(e,t){return g(e)?e:we(e,t)?[e]:Cn(yt(e))}var $n=1/0;function J(e){if(typeof e=="string"||te(e))return e;var t=e+"";return t=="0"&&1/e==-$n?"-0":t}function Ee(e,t){t=Ae(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[J(t[r++])];return r&&r==n?e:void 0}function In(e,t,r){var n=e==null?void 0:Ee(e,t);return n===void 0?r:n}function Se(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Be=v?v.isConcatSpreadable:void 0;function Ln(e){return g(e)||W(e)||!!(Be&&e&&e[Be])}function Ce(e,t,r,n,i){var a=-1,s=e.length;for(r||(r=Ln),i||(i=[]);++a<s;){var u=e[a];t>0&&r(u)?t>1?Ce(u,t-1,r,n,i):Se(i,u):n||(i[i.length]=u)}return i}function xn(e,t,r,n){var i=-1,a=e==null?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}function Nn(){this.__data__=new T,this.size=0}function Fn(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Mn(e){return this.__data__.get(e)}function Rn(e){return this.__data__.has(e)}var Dn=200;function Gn(e,t){var r=this.__data__;if(r instanceof T){var n=r.__data__;if(!q||n.length<Dn-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new w(n)}return r.set(e,t),this.size=r.size,this}function O(e){var t=this.__data__=new T(e);this.size=t.size}O.prototype.clear=Nn;O.prototype.delete=Fn;O.prototype.get=Mn;O.prototype.has=Rn;O.prototype.set=Gn;function vt(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var s=e[r];t(s,r,e)&&(a[i++]=s)}return a}function Ot(){return[]}var Un=Object.prototype.propertyIsEnumerable,Ke=Object.getOwnPropertySymbols,mt=Ke?function(e){return e==null?[]:(e=Object(e),vt(Ke(e),function(t){return Un.call(e,t)}))}:Ot;function Pt(e,t,r){var n=t(e);return g(e)?n:Se(n,r(e))}function ge(e){return Pt(e,y,mt)}var pe=N(m,"DataView"),be=N(m,"Promise"),M=N(m,"Set"),qe="[object Map]",zn="[object Object]",Ye="[object Promise]",Xe="[object Set]",Ze="[object WeakMap]",We="[object DataView]",Hn=x(pe),Bn=x(q),Kn=x(be),qn=x(M),Yn=x(le),C=L;(pe&&C(new pe(new ArrayBuffer(1)))!=We||q&&C(new q)!=qe||be&&C(be.resolve())!=Ye||M&&C(new M)!=Xe||le&&C(new le)!=Ze)&&(C=function(e){var t=L(e),r=t==zn?e.constructor:void 0,n=r?x(r):"";if(n)switch(n){case Hn:return We;case Bn:return qe;case Kn:return Ye;case qn:return Xe;case Yn:return Ze}return t});var ee=C,_e=m.Uint8Array,Xn="__lodash_hash_undefined__";function Zn(e){return this.__data__.set(e,Xn),this}function Wn(e){return this.__data__.has(e)}function Y(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new w;++t<r;)this.add(e[t])}Y.prototype.add=Y.prototype.push=Zn;Y.prototype.has=Wn;function Jn(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Tt(e,t){return e.has(t)}var Qn=1,Vn=2;function wt(e,t,r,n,i,a){var s=r&Qn,u=e.length,o=t.length;if(u!=o&&!(s&&o>u))return!1;var f=a.get(e),c=a.get(t);if(f&&c)return f==t&&c==e;var h=-1,d=!0,b=r&Vn?new Y:void 0;for(a.set(e,t),a.set(t,e);++h<u;){var p=e[h],_=t[h];if(n)var P=s?n(_,p,h,t,e,a):n(p,_,h,e,t,a);if(P!==void 0){if(P)continue;d=!1;break}if(b){if(!Jn(t,function(R,E){if(!Tt(b,E)&&(p===R||i(p,R,r,n,a)))return b.push(E)})){d=!1;break}}else if(!(p===_||i(p,_,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function kn(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function $e(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ei=1,ti=2,ri="[object Boolean]",ni="[object Date]",ii="[object Error]",ai="[object Map]",si="[object Number]",ui="[object RegExp]",oi="[object Set]",fi="[object String]",ci="[object Symbol]",li="[object ArrayBuffer]",hi="[object DataView]",Je=v?v.prototype:void 0,fe=Je?Je.valueOf:void 0;function di(e,t,r,n,i,a,s){switch(r){case hi:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case li:return!(e.byteLength!=t.byteLength||!a(new _e(e),new _e(t)));case ri:case ni:case si:return Oe(+e,+t);case ii:return e.name==t.name&&e.message==t.message;case ui:case fi:return e==t+"";case ai:var u=kn;case oi:var o=n&ei;if(u||(u=$e),e.size!=t.size&&!o)return!1;var f=s.get(e);if(f)return f==t;n|=ti,s.set(e,t);var c=wt(u(e),u(t),n,i,a,s);return s.delete(e),c;case ci:if(fe)return fe.call(e)==fe.call(t)}return!1}var gi=1,pi=Object.prototype.hasOwnProperty;function bi(e,t,r,n,i,a){var s=r&gi,u=ge(e),o=u.length;if(o!=ge(t).length&&!s)return!1;for(var f=o;f--;){var c=u[f];if(!(s?c in t:pi.call(t,c)))return!1}var h=a.get(e),d=a.get(t);if(h&&d)return h==t&&d==e;var b=!0;a.set(e,t),a.set(t,e);for(var p=s;++f<o;){c=u[f];var _=e[c],P=t[c];if(n)var R=s?n(P,_,c,t,e,a):n(_,P,c,e,t,a);if(!(R===void 0?_===P||i(_,P,r,n,a):R)){b=!1;break}p||(p=c=="constructor")}if(b&&!p){var E=e.constructor,Q=t.constructor;E!=Q&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof Q=="function"&&Q instanceof Q)&&(b=!1)}return a.delete(e),a.delete(t),b}var _i=1,Qe="[object Arguments]",Ve="[object Array]",V="[object Object]",ke=Object.prototype.hasOwnProperty;function yi(e,t,r,n,i,a){var s=g(e),u=g(t),o=s?Ve:ee(e),f=u?Ve:ee(t);o=o==Qe?V:o,f=f==Qe?V:f;var c=o==V,h=f==V,d=o==f;if(d&&B(e)){if(!B(t))return!1;s=!0,c=!1}if(d&&!c)return a||(a=new O),s||ne(e)?wt(e,t,r,n,i,a):di(e,t,o,r,n,i,a);if(!(r&_i)){var b=c&&ke.call(e,"__wrapped__"),p=h&&ke.call(t,"__wrapped__");if(b||p){var _=b?e.value():e,P=p?t.value():t;return a||(a=new O),i(_,P,r,n,a)}}return d?(a||(a=new O),bi(e,t,r,n,i,a)):!1}function Ie(e,t,r,n,i){return e===t?!0:e==null||t==null||!A(e)&&!A(t)?e!==e&&t!==t:yi(e,t,r,n,Ie,i)}var vi=1,Oi=2;function mi(e,t,r,n){var i=r.length,a=i,s=!n;if(e==null)return!a;for(e=Object(e);i--;){var u=r[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=r[i];var o=u[0],f=e[o],c=u[1];if(s&&u[2]){if(f===void 0&&!(o in e))return!1}else{var h=new O;if(n)var d=n(f,c,o,e,t,h);if(!(d===void 0?Ie(c,f,vi|Oi,n,h):d))return!1}}return!0}function jt(e){return e===e&&!re(e)}function Pi(e){for(var t=y(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,jt(i)]}return t}function At(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Ti(e){var t=Pi(e);return t.length==1&&t[0][2]?At(t[0][0],t[0][1]):function(r){return r===e||mi(r,e,t)}}function wi(e,t){return e!=null&&t in Object(e)}function Et(e,t,r){t=Ae(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var s=J(t[n]);if(!(a=e!=null&&r(e,s)))break;e=e[s]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&me(i)&&ve(s,i)&&(g(e)||W(e)))}function St(e,t){return e!=null&&Et(e,t,wi)}var ji=1,Ai=2;function Ei(e,t){return we(e)&&jt(t)?At(J(e),t):function(r){var n=In(r,e);return n===void 0&&n===t?St(r,e):Ie(t,n,ji|Ai)}}function Ct(e){return function(t){return t?.[e]}}function Si(e){return function(t){return Ee(t,e)}}function Ci(e){return we(e)?Ct(J(e)):Si(e)}function Le(e){return typeof e=="function"?e:e==null?X:typeof e=="object"?g(e)?Ei(e[0],e[1]):Ti(e):Ci(e)}function $i(e){return function(t,r,n){for(var i=-1,a=Object(t),s=n(t),u=s.length;u--;){var o=s[e?u:++i];if(r(a[o],o,a)===!1)break}return t}}var $t=$i();function It(e,t){return e&&$t(e,t,y)}function Ii(e,t){return function(r,n){if(r==null)return r;if(!Z(r))return e(r,n);for(var i=r.length,a=t?i:-1,s=Object(r);(t?a--:++a<i)&&n(s[a],a,s)!==!1;);return r}}var se=Ii(It);function Lt(e){return A(e)&&Z(e)}function Li(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function xt(e){return typeof e=="function"?e:X}function j(e,t){return(g(e)?ot:se)(e,xt(t))}function xi(e,t){var r=[];return se(e,function(n,i,a){t(n,i,a)&&r.push(n)}),r}function G(e,t){return(g(e)?vt:xi)(e,Le(t,3))}function Ni(e,t){return ye(t,function(r){return e[r]})}function k(e){return e==null?[]:Ni(e,y(e))}var Fi="[object Map]",Mi="[object Set]",Ri=Object.prototype.hasOwnProperty;function et(e){if(e==null)return!0;if(Z(e)&&(g(e)||typeof e=="string"||typeof e.splice=="function"||B(e)||ne(e)||W(e)))return!e.length;var t=ee(e);if(t==Fi||t==Mi)return!e.size;if(Pe(e))return!Te(e).length;for(var r in e)if(Ri.call(e,r))return!1;return!0}function $(e){return e===void 0}function Di(e,t,r,n,i){return i(e,function(a,s,u){r=n?(n=!1,a):t(r,a,s,u)}),r}function Nt(e,t,r){var n=g(e)?xn:Di,i=arguments.length<3;return n(e,Le(t,4),r,i,se)}var Gi=M&&1/$e(new M([,-0]))[1]==1/0?function(e){return new M(e)}:ur,Ui=200;function zi(e,t,r){var n=-1,i=br,a=e.length,s=!0,u=[],o=u;if(r)s=!1,i=Li;else if(a>=Ui){var f=t?null:Gi(e);if(f)return $e(f);s=!1,i=Tt,o=new Y}else o=t?[]:u;e:for(;++n<a;){var c=e[n],h=t?t(c):c;if(c=r||c!==0?c:0,s&&h===h){for(var d=o.length;d--;)if(o[d]===h)continue e;t&&o.push(h),u.push(c)}else i(o,h,r)||(o!==u&&o.push(h),u.push(c))}return u}var Hi=lt(function(e){return zi(Ce(e,1,Lt,!0))}),Bi="\0",S="\0",tt="",xe=class{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=F(void 0),this._defaultEdgeLabelFn=F(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[S]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return H(e)||(e=F(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return y(this._nodes)}sources(){var e=this;return G(this.nodes(),function(t){return et(e._in[t])})}sinks(){var e=this;return G(this.nodes(),function(t){return et(e._out[t])})}setNodes(e,t){var r=arguments,n=this;return j(e,function(i){r.length>1?n.setNode(i,t):n.setNode(i)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=S,this._children[e]={},this._children[S][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=r=>this.removeEdge(this._edgeObjs[r]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],j(this.children(e),r=>{this.setParent(r)}),delete this._children[e]),j(y(this._in[e]),t),delete this._in[e],delete this._preds[e],j(y(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($(t))t=S;else{t+="";for(var r=t;!$(r);r=this.parent(r))if(r===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==S)return t}}children(e){if($(e)&&(e=S),this._isCompound){var t=this._children[e];if(t)return y(t)}else{if(e===S)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return y(t)}successors(e){var t=this._sucs[e];if(t)return y(t)}neighbors(e){var t=this.predecessors(e);if(t)return Hi(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var r=this;j(this._nodes,function(a,s){e(s)&&t.setNode(s,a)}),j(this._edgeObjs,function(a){t.hasNode(a.v)&&t.hasNode(a.w)&&t.setEdge(a,r.edge(a))});var n={};function i(a){var s=r.parent(a);return s===void 0||t.hasNode(s)?(n[a]=s,s):s in n?n[s]:i(s)}return this._isCompound&&j(t.nodes(),function(a){t.setParent(a,i(a))}),t}setDefaultEdgeLabel(e){return H(e)||(e=F(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return k(this._edgeObjs)}setPath(e,t){var r=this,n=arguments;return Nt(e,function(i,a){return n.length>1?r.setEdge(i,a,t):r.setEdge(i,a),a}),this}setEdge(){var e,t,r,n,i=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(e=a.v,t=a.w,r=a.name,arguments.length===2&&(n=arguments[1],i=!0)):(e=a,t=arguments[1],r=arguments[3],arguments.length>2&&(n=arguments[2],i=!0)),e=""+e,t=""+t,$(r)||(r=""+r);var s=U(this._isDirected,e,t,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,s))return i&&(this._edgeLabels[s]=n),this;if(!$(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[s]=i?n:this._defaultEdgeLabelFn(e,t,r);var u=Ki(this._isDirected,e,t,r);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[s]=u,rt(this._preds[t],e),rt(this._sucs[e],t),this._in[t][s]=u,this._out[e][s]=u,this._edgeCount++,this}edge(e,t,r){var n=arguments.length===1?ce(this._isDirected,arguments[0]):U(this._isDirected,e,t,r);return this._edgeLabels[n]}hasEdge(e,t,r){var n=arguments.length===1?ce(this._isDirected,arguments[0]):U(this._isDirected,e,t,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(e,t,r){var n=arguments.length===1?ce(this._isDirected,arguments[0]):U(this._isDirected,e,t,r),i=this._edgeObjs[n];return i&&(e=i.v,t=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],nt(this._preds[t],e),nt(this._sucs[e],t),delete this._in[t][n],delete this._out[e][n],this._edgeCount--),this}inEdges(e,t){var r=this._in[e];if(r){var n=k(r);return t?G(n,function(i){return i.v===t}):n}}outEdges(e,t){var r=this._out[e];if(r){var n=k(r);return t?G(n,function(i){return i.w===t}):n}}nodeEdges(e,t){var r=this.inEdges(e,t);if(r)return r.concat(this.outEdges(e,t))}};xe.prototype._nodeCount=0;xe.prototype._edgeCount=0;function rt(e,t){e[t]?e[t]++:e[t]=1}function nt(e,t){--e[t]||delete e[t]}function U(e,t,r,n){var i=""+t,a=""+r;if(!e&&i>a){var s=i;i=a,a=s}return i+tt+a+tt+($(n)?Bi:n)}function Ki(e,t,r,n){var i=""+t,a=""+r;if(!e&&i>a){var s=i;i=a,a=s}var u={v:i,w:a};return n&&(u.name=n),u}function ce(e,t){return U(e,t.v,t.w,t.name)}Object.defineProperty(exports,"Graph",{enumerable:!0,get:function(){return xe}});Object.defineProperty(exports,"Stack",{enumerable:!0,get:function(){return O}});Object.defineProperty(exports,"Symbol",{enumerable:!0,get:function(){return v}});Object.defineProperty(exports,"Uint8Array",{enumerable:!0,get:function(){return _e}});Object.defineProperty(exports,"_getTag_default",{enumerable:!0,get:function(){return ee}});Object.defineProperty(exports,"arrayEach",{enumerable:!0,get:function(){return ot}});Object.defineProperty(exports,"arrayLikeKeys",{enumerable:!0,get:function(){return bt}});Object.defineProperty(exports,"arrayMap",{enumerable:!0,get:function(){return ye}});Object.defineProperty(exports,"arrayPush",{enumerable:!0,get:function(){return Se}});Object.defineProperty(exports,"baseEach",{enumerable:!0,get:function(){return se}});Object.defineProperty(exports,"baseFindIndex",{enumerable:!0,get:function(){return ft}});Object.defineProperty(exports,"baseFlatten",{enumerable:!0,get:function(){return Ce}});Object.defineProperty(exports,"baseFor",{enumerable:!0,get:function(){return $t}});Object.defineProperty(exports,"baseForOwn",{enumerable:!0,get:function(){return It}});Object.defineProperty(exports,"baseGet",{enumerable:!0,get:function(){return Ee}});Object.defineProperty(exports,"baseGetAllKeys",{enumerable:!0,get:function(){return Pt}});Object.defineProperty(exports,"baseGetTag",{enumerable:!0,get:function(){return L}});Object.defineProperty(exports,"baseIteratee",{enumerable:!0,get:function(){return Le}});Object.defineProperty(exports,"baseKeys",{enumerable:!0,get:function(){return Te}});Object.defineProperty(exports,"baseProperty",{enumerable:!0,get:function(){return Ct}});Object.defineProperty(exports,"baseRest",{enumerable:!0,get:function(){return lt}});Object.defineProperty(exports,"baseUnary",{enumerable:!0,get:function(){return gt}});Object.defineProperty(exports,"castFunction",{enumerable:!0,get:function(){return xt}});Object.defineProperty(exports,"castPath",{enumerable:!0,get:function(){return Ae}});Object.defineProperty(exports,"constant",{enumerable:!0,get:function(){return F}});Object.defineProperty(exports,"defineProperty",{enumerable:!0,get:function(){return he}});Object.defineProperty(exports,"eq",{enumerable:!0,get:function(){return Oe}});Object.defineProperty(exports,"filter",{enumerable:!0,get:function(){return G}});Object.defineProperty(exports,"forEach",{enumerable:!0,get:function(){return j}});Object.defineProperty(exports,"getAllKeys",{enumerable:!0,get:function(){return ge}});Object.defineProperty(exports,"getSymbols",{enumerable:!0,get:function(){return mt}});Object.defineProperty(exports,"hasIn",{enumerable:!0,get:function(){return St}});Object.defineProperty(exports,"hasPath",{enumerable:!0,get:function(){return Et}});Object.defineProperty(exports,"identity",{enumerable:!0,get:function(){return X}});Object.defineProperty(exports,"isArguments",{enumerable:!0,get:function(){return W}});Object.defineProperty(exports,"isArray",{enumerable:!0,get:function(){return g}});Object.defineProperty(exports,"isArrayLike",{enumerable:!0,get:function(){return Z}});Object.defineProperty(exports,"isArrayLikeObject",{enumerable:!0,get:function(){return Lt}});Object.defineProperty(exports,"isBuffer",{enumerable:!0,get:function(){return B}});Object.defineProperty(exports,"isFunction",{enumerable:!0,get:function(){return H}});Object.defineProperty(exports,"isIndex",{enumerable:!0,get:function(){return ve}});Object.defineProperty(exports,"isObject",{enumerable:!0,get:function(){return re}});Object.defineProperty(exports,"isObjectLike",{enumerable:!0,get:function(){return A}});Object.defineProperty(exports,"isPrototype",{enumerable:!0,get:function(){return Pe}});Object.defineProperty(exports,"isSymbol",{enumerable:!0,get:function(){return te}});Object.defineProperty(exports,"isTypedArray",{enumerable:!0,get:function(){return ne}});Object.defineProperty(exports,"isUndefined",{enumerable:!0,get:function(){return $}});Object.defineProperty(exports,"keys",{enumerable:!0,get:function(){return y}});Object.defineProperty(exports,"nodeUtil",{enumerable:!0,get:function(){return de}});Object.defineProperty(exports,"overArg",{enumerable:!0,get:function(){return _t}});Object.defineProperty(exports,"overRest",{enumerable:!0,get:function(){return ct}});Object.defineProperty(exports,"reduce",{enumerable:!0,get:function(){return Nt}});Object.defineProperty(exports,"root",{enumerable:!0,get:function(){return m}});Object.defineProperty(exports,"setToString",{enumerable:!0,get:function(){return ut}});Object.defineProperty(exports,"stubArray",{enumerable:!0,get:function(){return Ot}});Object.defineProperty(exports,"toKey",{enumerable:!0,get:function(){return J}});Object.defineProperty(exports,"toString",{enumerable:!0,get:function(){return yt}});Object.defineProperty(exports,"values",{enumerable:!0,get:function(){return k}});
|
|
@@ -1,8 +1,44 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { a as
|
|
5
|
-
var
|
|
1
|
+
import { a as c, n as h, o as d, r as n, t as u } from "./utils-D1iZnChu.js";
|
|
2
|
+
import { t as v } from "./events-C59wGdni.js";
|
|
3
|
+
import { _ as g, i as f } from "./factory-BkvRcCOx.js";
|
|
4
|
+
import { a as p, n as m } from "./ssr-DSGwPtEd.js";
|
|
5
|
+
var w = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{display:var(--ran-icon-host-display, inline-flex)}:host([spin]){animation-name:var(--ran-icon-host-spin-animation-name, rotate);animation-duration:var(--ran-icon-host-spin-animation-name, 1.4s);animation-timing-function:linear;animation-iteration-count:var(--ran-icon-host-spin-animation-name, infinite)}.ran-icon{display:var(--ran-icon-display, flex);align-items:var(--ran-icon-align-items, center);justify-content:var(--ran-icon-justify-content, center);color:var(--ran-icon-color, inherit);font-size:var(--ran-icon-font-size, 1em);margin:var(--ran-icon-margin, 0)}.ran-icon svg{width:var(--ran-icon-svg-width, 1em);height:var(--ran-icon-svg-height, 1em);fill:var(--ran-icon-svg-fill, currentColor);stroke:var(--ran-icon-svg-stroke, currentColor)}@keyframes rotate{to{transform:var(--ran-icon-keyframes-to-transform, rotate(360deg))}}", y = {
|
|
6
|
+
success: !0,
|
|
7
|
+
_identification: !0,
|
|
8
|
+
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></g></svg>'
|
|
9
|
+
}, _ = {
|
|
10
|
+
success: !0,
|
|
11
|
+
_identification: !0,
|
|
12
|
+
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></g></svg>'
|
|
13
|
+
}, b = {
|
|
14
|
+
success: !0,
|
|
15
|
+
_identification: !0,
|
|
16
|
+
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></g></svg>'
|
|
17
|
+
}, k = {
|
|
18
|
+
success: !0,
|
|
19
|
+
_identification: !0,
|
|
20
|
+
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3M8 21H5a2 2 0 0 1-2-2v-3m18 0v3a2 2 0 0 1-2 2h-3"/></g></svg>'
|
|
21
|
+
}, x = {
|
|
22
|
+
success: !0,
|
|
23
|
+
_identification: !0,
|
|
24
|
+
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></g></svg>'
|
|
25
|
+
}, A = {
|
|
26
|
+
success: !0,
|
|
27
|
+
_identification: !0,
|
|
28
|
+
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="8" y1="11" x2="14" y2="11"/></g></svg>'
|
|
29
|
+
}, S = {
|
|
30
|
+
success: !0,
|
|
31
|
+
_identification: !0,
|
|
32
|
+
data: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></g></svg>'
|
|
33
|
+
}, C = {
|
|
34
|
+
copy: y,
|
|
35
|
+
check: _,
|
|
36
|
+
download: b,
|
|
37
|
+
fullscreen: k,
|
|
38
|
+
"zoom-in": x,
|
|
39
|
+
"zoom-out": A,
|
|
40
|
+
refresh: S
|
|
41
|
+
}, z = !1, l = /* @__PURE__ */ new Map(), a = !1, o = (t) => /<svg[\s>]/i.test(t), E = (t) => {
|
|
6
42
|
if (typeof t == "string") return o(t) ? t : void 0;
|
|
7
43
|
if (!t || typeof t != "object") return;
|
|
8
44
|
const e = t, i = e.data;
|
|
@@ -13,26 +49,32 @@ var b = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
13
49
|
const r = s;
|
|
14
50
|
if (typeof r.data == "string" && o(r.data)) return r.data;
|
|
15
51
|
}
|
|
16
|
-
},
|
|
52
|
+
}, D = (t, e) => {
|
|
17
53
|
a = !0;
|
|
18
|
-
const i =
|
|
19
|
-
i && (
|
|
20
|
-
},
|
|
54
|
+
const i = E(e);
|
|
55
|
+
i && (l.set(`inline:${t}`, i), typeof window < "u" && window.dispatchEvent(new CustomEvent("ranui-icon-registered", { detail: { name: t } })));
|
|
56
|
+
}, j = (t) => {
|
|
21
57
|
a = !0, Object.entries(t).forEach(([e, i]) => {
|
|
22
|
-
|
|
58
|
+
D(e, i);
|
|
23
59
|
});
|
|
24
|
-
}
|
|
60
|
+
};
|
|
61
|
+
j(C);
|
|
62
|
+
var N = [
|
|
25
63
|
"add-user",
|
|
26
64
|
"arrow-down",
|
|
27
65
|
"book",
|
|
66
|
+
"check",
|
|
28
67
|
"check-circle",
|
|
29
68
|
"check-circle-fill",
|
|
30
69
|
"close",
|
|
31
70
|
"close-circle",
|
|
32
71
|
"close-circle-fill",
|
|
72
|
+
"copy",
|
|
73
|
+
"download",
|
|
33
74
|
"drop",
|
|
34
75
|
"eye",
|
|
35
76
|
"eye-close",
|
|
77
|
+
"fullscreen",
|
|
36
78
|
"github",
|
|
37
79
|
"globe",
|
|
38
80
|
"home",
|
|
@@ -48,6 +90,7 @@ var b = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
48
90
|
"plus",
|
|
49
91
|
"power-off",
|
|
50
92
|
"preview",
|
|
93
|
+
"refresh",
|
|
51
94
|
"search",
|
|
52
95
|
"setting",
|
|
53
96
|
"sort",
|
|
@@ -56,10 +99,12 @@ var b = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
56
99
|
"user",
|
|
57
100
|
"warning-circle",
|
|
58
101
|
"warning-circle-fill",
|
|
59
|
-
"without-content"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
102
|
+
"without-content",
|
|
103
|
+
"zoom-in",
|
|
104
|
+
"zoom-out"
|
|
105
|
+
], M = class extends m {
|
|
106
|
+
isDev = z;
|
|
107
|
+
_events = new v();
|
|
63
108
|
static get observedAttributes() {
|
|
64
109
|
return [
|
|
65
110
|
"name",
|
|
@@ -79,8 +124,8 @@ var b = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
79
124
|
e && e === this.name && !this._icon && this.setIcon();
|
|
80
125
|
};
|
|
81
126
|
constructor() {
|
|
82
|
-
super(), this._shadowDom =
|
|
83
|
-
const t =
|
|
127
|
+
super(), this._shadowDom = h(this, w);
|
|
128
|
+
const t = u(this._shadowDom, ".ran-icon", () => f().class("ran-icon").part("ran-icon").build());
|
|
84
129
|
this._div = t;
|
|
85
130
|
}
|
|
86
131
|
get name() {
|
|
@@ -127,7 +172,7 @@ var b = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
127
172
|
c(this, "sheet", t);
|
|
128
173
|
}
|
|
129
174
|
handlerExternalCss = () => {
|
|
130
|
-
|
|
175
|
+
d(this, this._shadowDom, "sheet", null, this.sheet);
|
|
131
176
|
};
|
|
132
177
|
syncA11y = () => {
|
|
133
178
|
if (this._icon) {
|
|
@@ -144,7 +189,7 @@ var b = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
144
189
|
const t = this.name;
|
|
145
190
|
if (t) if (t.startsWith("<svg")) this.renderSvg(t, t);
|
|
146
191
|
else try {
|
|
147
|
-
const e = `inline:${t}`, i =
|
|
192
|
+
const e = `inline:${t}`, i = l.get(e);
|
|
148
193
|
if (!i) {
|
|
149
194
|
this.isDev && a && console.warn(`[ranui-icon] icon not registered: ${t}`);
|
|
150
195
|
return;
|
|
@@ -158,7 +203,7 @@ var b = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
158
203
|
parseSvg = (t) => {
|
|
159
204
|
const e = new window.DOMParser().parseFromString(t, "image/svg+xml").documentElement;
|
|
160
205
|
if (!e || e.tagName.toLowerCase() === "parsererror" || e.tagName.toLowerCase() !== "svg") return;
|
|
161
|
-
const i = new XMLSerializer().serializeToString(e), s =
|
|
206
|
+
const i = new XMLSerializer().serializeToString(e), s = g("template").build();
|
|
162
207
|
s.innerHTML = i.trim();
|
|
163
208
|
const r = s.content.firstElementChild;
|
|
164
209
|
if (!(!r || r.tagName.toLowerCase() !== "svg"))
|
|
@@ -195,10 +240,17 @@ var b = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
195
240
|
e !== i && (t === "name" && this.setIcon(), t === "size" && this.setSize(), t === "color" && this.setColor(), t === "spin" && this.setSpin(), (t === "decorative" || t === "aria-label") && this.syncA11y(), t === "sheet" && this.handlerExternalCss());
|
|
196
241
|
}
|
|
197
242
|
};
|
|
198
|
-
|
|
243
|
+
p("r-icon", M);
|
|
199
244
|
export {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
y as
|
|
203
|
-
|
|
245
|
+
S as a,
|
|
246
|
+
k as c,
|
|
247
|
+
y as d,
|
|
248
|
+
j as i,
|
|
249
|
+
b as l,
|
|
250
|
+
N as n,
|
|
251
|
+
A as o,
|
|
252
|
+
D as r,
|
|
253
|
+
x as s,
|
|
254
|
+
M as t,
|
|
255
|
+
_ as u
|
|
204
256
|
};
|
package/dist/icon.js
CHANGED
package/dist/icons.js
CHANGED
package/dist/iife/button.iife.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var ranui_button=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=class{_events=new Map;tap=(e,t)=>{this._events.get(e)&&e!==Symbol.for(`NEW_LISTENER`)&&this.call(Symbol.for(`NEW_LISTENER`),e);let n=this._events.get(e)||new Set;return typeof t==`function`?n.add({name:e,callback:t}):n.add(t),this._events.set(e,n),this};call=(e,...t)=>((this._events.get(e)||new Set).forEach(e=>{let{callback:n}=e;n(...t)}),this);callSync=async(e,...t)=>{let n=this._events.get(e)||new Set;for(let e of n){let{callback:n}=e;await n(...t)}return this};once=(e,t)=>{let n;if(typeof t==`function`)n={name:e,callback:(...r)=>{t(...r),this.off(e,n)},initialCallback:t};else{let{callback:r}=t;n={name:e,callback:(...t)=>{r(...t),this.off(e,n)},initialCallback:r}}return this.tap(e,n),this};off=(e,t)=>{let n=[...this._events.get(e)||new Set].filter(e=>{if(typeof t==`function`)return e.callback!==t&&e.initialCallback!==t;{let{callback:n}=t;return e.callback!==n&&e.initialCallback!==n}});return this._events.set(e,new Set(n)),this}},n=(e=8)=>Math.random().toString(36).substring(2,e+2),r=e=>typeof e==`function`,i=()=>{if(typeof window<`u`){let e=navigator.userAgent.toLowerCase();return/ipad|ipod/.test(e)?`ipad`:/android/.test(e)?`android`:/iphone/.test(e)?`iphone`:`pc`}return`pc`},a=12e4,o=`__ranuts_bridge__`,s=`default`,c=new class{bridges=new Set;attachedWindow=null;handleMessage=e=>{for(let t of Array.from(this.bridges))t.receive(e)};add(e){this.bridges.add(e),typeof window<`u`&&this.attachedWindow!==window&&(window.addEventListener(`message`,this.handleMessage),this.attachedWindow=window)}remove(e){this.bridges.delete(e),this.bridges.size===0&&this.attachedWindow&&(this.attachedWindow.removeEventListener(`message`,this.handleMessage),this.attachedWindow=null)}},l=class{targetWindow;targetOrigin;messageHandlers;pendingRequests;channel;senderId;available;constructor(e,t=`*`,r=s){this.targetOrigin=t,this.channel=r,this.senderId=n(12),this.messageHandlers=new Map,this.pendingRequests=new Map,this.available=typeof window<`u`,this.available?(this.targetWindow=e??window,c.add(this)):this.targetWindow=void 0}post(e,t){let n={...t,__bridge:o,channel:this.channel,senderId:this.senderId};e.postMessage(n,this.targetOrigin)}receive=e=>{if(!this.available||this.targetOrigin!==`*`&&e.origin!==this.targetOrigin||e.source&&e.source!==this.targetWindow)return;let t=e.data;if(!t||typeof t!=`object`||t.__bridge!==`__ranuts_bridge__`||(t.channel??`default`)!==this.channel)return;let{type:n,payload:i,id:a,isResponse:o,isError:s,senderId:c}=t;if(o&&a){let e=this.pendingRequests.get(a);e&&(s?e.reject(Error(typeof i==`string`?i:`Bridge request failed`)):e.resolve(i),this.pendingRequests.delete(a));return}if(c&&c===this.senderId||typeof n!=`string`||!this.messageHandlers.has(n))return;let l=this.messageHandlers.get(n);if(r(l)){let t=e.source??this.targetWindow;Promise.resolve(l(i)).then(e=>{a&&this.post(t,{type:n,payload:e,id:a,isResponse:!0})}).catch(e=>{a&&this.post(t,{type:n,payload:e instanceof Error?e.message:String(e),id:a,isResponse:!0,isError:!0})})}};on=(e,t)=>{this.messageHandlers.set(e,t)};off=e=>{this.messageHandlers.delete(e)};send=async(e,t)=>{if(!this.available)return Promise.reject(Error(`PostMessageBridge is unavailable outside a browser environment`));let r=n(10);return new Promise((n,i)=>{let o=setTimeout(()=>{this.pendingRequests.has(r)&&(this.pendingRequests.delete(r),i(Error(`Request timeout`)))},a),s=e=>{clearTimeout(o),i(e)};this.pendingRequests.set(r,{resolve:e=>{clearTimeout(o),n(e)},reject:s});try{this.post(this.targetWindow,{type:e,payload:t,id:r})}catch(e){this.pendingRequests.delete(r),s(e instanceof Error?e:Error(`Failed to post message`))}})};broadcast=e=>{if(this.available)try{this.post(this.targetWindow,{type:e.type,payload:e.payload})}catch{}};destroy=()=>{c.remove(this),this.messageHandlers.clear(),this.pendingRequests.forEach(e=>{e.reject(Error(`Bridge destroyed`))}),this.pendingRequests.clear()}};(class e{static instance;bridges=new Map;constructor(){}static getInstance(){return e.instance||=new e,e.instance}connectClient=({id:e,targetOrigin:t,targetWindow:r,channel:i})=>{let a=new l(r,t,i);if(e||=n(10),this.bridges.has(e))throw Error(`Bridge ${e} already exists`);return this.bridges.set(e,a),{bridge:a,id:e}};getClient=e=>this.bridges.get(e);removeClient=e=>{let t=this.bridges.get(e);t&&(t.destroy(),this.bridges.delete(e))};removeAllClient=()=>{this.bridges.forEach(e=>{e.destroy()}),this.bridges.clear()};broadcast=e=>{this.bridges.forEach(t=>{t.broadcast(e)})};sendTo=(e,t,n)=>{let r=this.getClient(e);return r?r.send(t,n):Promise.reject(Error(`Bridge ${e} not found`))}}).getInstance(),new t;var u=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],d=class{highOrder;lowOrder;constructor(e,t){this.highOrder=e,this.lowOrder=t}};new d(u[0],3609767458),new d(u[1],602891725),new d(u[2],3964484399),new d(u[3],2173295548),new d(u[4],4081628472),new d(u[5],3053834265),new d(u[6],2937671579),new d(u[7],3664609560),new d(u[8],2734883394),new d(u[9],1164996542),new d(u[10],1323610764),new d(u[11],3590304994),new d(u[12],4068182383),new d(u[13],991336113),new d(u[14],633803317),new d(u[15],3479774868),new d(u[16],2666613458),new d(u[17],944711139),new d(u[18],2341262773),new d(u[19],2007800933),new d(u[20],1495990901),new d(u[21],1856431235),new d(u[22],3175218132),new d(u[23],2198950837),new d(u[24],3999719339),new d(u[25],766784016),new d(u[26],2566594879),new d(u[27],3203337956),new d(u[28],1034457026),new d(u[29],2466948901),new d(u[30],3758326383),new d(u[31],168717936),new d(u[32],1188179964),new d(u[33],1546045734),new d(u[34],1522805485),new d(u[35],2643833823),new d(u[36],2343527390),new d(u[37],1014477480),new d(u[38],1206759142),new d(u[39],344077627),new d(u[40],1290863460),new d(u[41],3158454273),new d(u[42],3505952657),new d(u[43],106217008),new d(u[44],3606008344),new d(u[45],1432725776),new d(u[46],1467031594),new d(u[47],851169720),new d(u[48],3100823752),new d(u[49],1363258195),new d(u[50],3750685593),new d(u[51],3785050280),new d(u[52],3318307427),new d(u[53],3812723403),new d(u[54],2003034995),new d(u[55],3602036899),new d(u[56],1575990012),new d(u[57],1125592928),new d(u[58],2716904306),new d(u[59],442776044),new d(u[60],593698344),new d(u[61],3733110249),new d(u[62],2999351573),new d(u[63],3815920427),new d(3391569614,3928383900),new d(3515267271,566280711),new d(3940187606,3454069534),new d(4118630271,4000239992),new d(116418474,1914138554),new d(174292421,2731055270),new d(289380356,3203993006),new d(460393269,320620315),new d(685471733,587496836),new d(852142971,1086792851),new d(1017036298,365543100),new d(1126000580,2618297676),new d(1288033470,3409855158),new d(1501505948,4234509866),new d(1607167915,987167468),new d(1816402316,1246189591),new d(0,1),new d(0,32898),new d(2147483648,32906),new d(2147483648,2147516416),new d(0,32907),new d(0,2147483649),new d(2147483648,2147516545),new d(2147483648,32777),new d(0,138),new d(0,136),new d(0,2147516425),new d(0,2147483658),new d(0,2147516555),new d(2147483648,139),new d(2147483648,32905),new d(2147483648,32771),new d(2147483648,32770),new d(2147483648,128),new d(0,32778),new d(2147483648,2147483658),new d(2147483648,2147516545),new d(2147483648,32896),new d(0,2147483649),new d(2147483648,2147516424);var f=new Map([[100,`Continue`],[101,`Switching Protocols`],[102,`Processing`],[103,`Early Hints`],[200,`OK`],[201,`Created`],[202,`Accepted`],[203,`Non-Authoritative Information`],[204,`No Content`],[205,`Reset Content`],[206,`Partial Content`],[207,`Multi-Status`],[208,`Already Reported`],[226,`IM Used`],[300,`Multiple Choices`],[301,`Moved Permanently`],[302,`Found`],[303,`See Other`],[304,`Not Modified`],[305,`Use Proxy`],[307,`Temporary Redirect`],[308,`Permanent Redirect`],[400,`Bad Request`],[401,`Unauthorized`],[402,`Payment Required`],[403,`Forbidden`],[404,`Not Found`],[405,`Method Not Allowed`],[406,`Not Acceptable`],[407,`Proxy Authentication Required`],[408,`Request Timeout`],[409,`Conflict`],[410,`Gone`],[411,`Length Required`],[412,`Precondition Failed`],[413,`Payload Too Large`],[414,`URI Too Long`],[415,`Unsupported Media Type`],[416,`Range Not Satisfiable`],[417,`Expectation Failed`],[418,`I'm a Teapot`],[421,`Misdirected Request`],[422,`Unprocessable Entity`],[423,`Locked`],[424,`Failed Dependency`],[425,`Too Early`],[426,`Upgrade Required`],[428,`Precondition Required`],[429,`Too Many Requests`],[431,`Request Header Fields Too Large`],[451,`Unavailable For Legal Reasons`],[500,`Internal Server Error`],[501,`Not Implemented`],[502,`Bad Gateway`],[503,`Service Unavailable`],[504,`Gateway Timeout`],[505,`HTTP Version Not Supported`],[506,`Variant Also Negotiates`],[507,`Insufficient Storage`],[508,`Loop Detected`],[509,`Bandwidth Limit Exceeded`],[510,`Not Extended`],[511,`Network Authentication Required`]]);(function(e){let t=new Map;for(let[n,r]of e)t.set(r.toLowerCase(),n);return t})(f),function(e){let t=[];for(let[n,r]of e)t.push(n);return t}(f);var p=`.remove-wap-active-focus,.remove-wap-active-focus:active,.remove-wap-active-focus:focus{-webkit-tap-highlight-color:transparent;outline:0}:host{box-sizing:var(--ran-btn-box-sizing,border-box);position:var(--ran-btn-position,relative);display:var(--ran-btn-display,inline-flex);background-image:var(--ran-btn-background-image,none);box-shadow:var(--ran-btn-box-shadow,var(--ran-skin-raised-shadow,0 2px #00000004));cursor:var(--ran-btn-cursor,pointer);user-select:var(--ran-btn-user-select,none);touch-action:var(--ran-btn-touch-action,manipulation);overflow:var(--ran-btn-overflow,hidden);pointer-events:var(--ran-btn-pointer-events,auto)}:host .ran-btn{box-sizing:var(--ran-btn-contain-box-sizing,border-box);position:var(--ran-btn-contain-position,relative);display:var(--ran-btn-contain-display,block);background-image:var(--ran-btn-contain-background-image,none);cursor:var(--ran-btn-contain-cursor,pointer);transition:var(--ran-btn-contain-transition,opacity var(--ran-motion-duration-base,.2s) cubic-bezier(.645, .045, .355, 1));user-select:var(--ran-btn-contain-user-select,none);touch-action:var(--ran-btn-contain-touch-action,manipulation);border-radius:var(--ran-btn-content-border-radius,var(--ran-radius-sm,6px));background:var(--ran-btn-contain-background,var(--ran-color-bg-elevated,#fff))}:host,:host(:active),:host(:focus){-webkit-tap-highlight-color:transparent;outline:0}:host .ran-btn,:host(:active) .ran-btn,:host(:focus) .ran-btn{outline:var(--ran-btn-contain-outline,0)}:host(:focus-visible){outline:var(--ran-btn-focus-outline,2px solid var(--ran-color-primary));outline-offset:var(--ran-btn-focus-outline-offset,2px)}:host([type=primary]) .ran-btn-content{background-color:var(--ran-btn-content-background-color,var(--ran-color-primary,#006bff));background-image:var(--ran-btn-content-background-image,none);border-color:var(--ran-btn-content-border-color,var(--ran-color-primary,#006bff));color:var(--ran-btn-content-color,#fff)}:host([type=primary]:not([disabled])) .ran-btn:after{background-image:var(--ran-btn-after-background-image,radial-gradient(circle, #fff 10%, transparent 10.01%))}:host([type=primary]:not([disabled]):active) .ran-btn-content{background-color:var(--ran-btn-content-active-background-color,var(--ran-color-primary-active,#005ff2));border-color:var(--ran-btn-content-active-border-color,var(--ran-color-primary-active,#005ff2))}:host([type=contrast]) .ran-btn-content{background-color:var(--ran-btn-content-background-color,var(--ran-color-contrast-bg,#171717));background-image:var(--ran-btn-content-background-image,none);border-color:var(--ran-btn-content-border-color,var(--ran-color-contrast-bg,#171717));color:var(--ran-btn-content-color,var(--ran-color-contrast-text,#fff))}:host([type=contrast]:not([disabled])) .ran-btn:after{background-image:var(--ran-btn-after-background-image,radial-gradient(circle, var(--ran-color-contrast-text,#fff) 10%, transparent 10.01%))}:host([type=contrast]:not([disabled]):active) .ran-btn-content{background-color:var(--ran-btn-content-active-background-color,var(--ran-color-contrast-bg-active,#4d4d4d));border-color:var(--ran-btn-content-active-border-color,var(--ran-color-contrast-bg-active,#4d4d4d))}@media (width>=1024px){:host(:not([disabled]):hover) .ran-btn-content{border-color:var(--ran-btn-content-hover-border-color,var(--ran-color-border-hover,#c9c9c9));color:var(--ran-btn-content-hover-color,var(--ran-color-text,#171717))}:host([type=primary]:not([disabled]):hover) .ran-btn-content{background-color:var(--ran-btn-content-hover-background-color,var(--ran-color-primary-hover,#0059ec));border-color:var(--ran-btn-content-hover-border-color,var(--ran-color-primary-hover,#0059ec));color:var(--ran-btn-content-hover-color,#fff)}:host([type=contrast]:not([disabled]):hover) .ran-btn-content{background-color:var(--ran-btn-content-hover-background-color,var(--ran-color-contrast-bg-hover,#383838));border-color:var(--ran-btn-content-hover-border-color,var(--ran-color-contrast-bg-hover,#383838));color:var(--ran-btn-content-hover-color,var(--ran-color-contrast-text,#fff))}:host([type=warning]:not([disabled]):hover) .ran-btn-content{border-color:var(--ran-btn-content-warning-border-color,var(--ran-color-danger,#ff4d4f));background-color:var(--ran-btn-content-warning-background-color,var(--ran-color-danger,#ff4d4f));color:var(--ran-btn-content-warning-color,#fff)}}:host([type=warning]) .ran-btn-content{border-color:var(--ran-btn-content-warning-border-color,var(--ran-color-danger,#ff4d4f));background-color:var(--ran-btn-content-warning-background-color,var(--ran-color-danger,#ff4d4f));background-image:var(--ran-btn-content-background-image,none);color:var(--ran-btn-content-warning-color,#fff)}:host([type=warning]:not([disabled])) .ran-btn:after{background-image:var(--ran-btn-after-background-image,radial-gradient(circle, #fff 10%, transparent 10.01%))}:host([type=text]) .ran-btn-content{border:var(--ran-btn-content-text-border,none)}:host([disabled]){cursor:var(--ran-btn-disabled-cursor,not-allowed);pointer-events:var(--ran-btn-disabled-pointer-events,all);opacity:var(--ran-btn-disabled-opacity,.6)}:host([disabled]) .ran-btn{cursor:var(--ran-btn-disabled-container-cursor,not-allowed);pointer-events:var(--ran-btn-disabled-container-pointer-events,all);opacity:var(--ran-btn-disabled-container-opacity,.6)}:host(:not([disabled]):active) .ran-btn:after{transform:var(--ran-btn-after-transform,translate(-50%, -50%) scale(0));opacity:var(--ran-btn-after-opacity,.3);transition:var(--ran-btn-after-transition,0s)}@media (width>=1024px){:host(:not([disabled],[effect])) .ran-btn:after{content:"";width:100%;height:100%;left:var(--ran-x,0);top:var(--ran-y,0);pointer-events:none;background-image:radial-gradient(circle, var(--ran-gray-alpha-400,#00000014) 10%, transparent 10.01%);opacity:0;background-position:50%;background-repeat:no-repeat;transition:transform .3s,opacity .8s;display:block;position:absolute;transform:translate(-50%,-50%)scale(10)}}:host .slot{display:var(--ran-btn-slot-display,block)}.ran-btn-content{display:var(--ran-btn-content-display,flex);justify-content:var(--ran-btn-content-display,space-between);align-items:var(--ran-btn-content-align-items,center);padding:var(--ran-btn-content-padding,4px 15px);border:var(--ran-btn-content-border,1px solid transparent);border-image-source:var(--ran-btn-content-border-image-source,none);border-image-slice:var(--ran-btn-content-border-image-slice,8);border-image-width:var(--ran-btn-content-border-image-width,4px);border-radius:var(--ran-btn-content-border-radius,var(--ran-radius-sm,6px));border-color:var(--ran-btn-content-border-color,var(--ran-color-border,#eaeaea));color:var(--ran-btn-content-color,var(--ran-color-text,#000000d9));line-height:var(--ran-btn-content-line-height,22px);font-size:var(--ran-btn-content-font-size,14px);font-weight:var(--ran-btn-content-font-weight,400);font-family:var(--ran-btn-content-font-family,var(--ran-skin-font-family,inherit));white-space:var(--ran-btn-content-white-space,nowrap);text-align:var(--ran-btn-content-text-align,center);box-sizing:var(--ran-btn-content-box-sizing,border-box);border-image-outset:0;border-image-repeat:stretch}.ran-btn-content .icon{margin-right:var(--ran-btn-icon-margin-right,2px)}`,m=typeof document>`u`,h=class{ac;constructor(){this.ac=new AbortController}get signal(){return this.ac.signal}on(e,t,n,r){return e.addEventListener(t,n,{...r,signal:this.ac.signal}),this}delegate(e,t,n,r,i){return e.addEventListener(n,n=>{let i=n.target?.closest(t);i&&e.contains(i)&&r(n,i)},{...i,signal:this.ac.signal}),this}abort(){this.ac.abort(),this.ac=new AbortController}},g=0,_=1,v=2,y=null,b=null,x=new Set;function S(e){let t=ee(e,!0);return C(t),T(t),()=>D(t)}function ee(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:v,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:b}}function C(e){b&&b.owned.push(e)}function w(e,t){if(e.disposed||e.state>=t)return;let n=e.state===g;if(e.state=t,e.isEffect)x.add(e);else if(n)for(let t of e.observers)w(t,_)}function T(e){if(e.running)throw Error(`ranui reactivity: cyclic dependency detected (a computation triggered itself).`);E(e);let t=y,n=b;y=e,b=e,e.running=!0,e.state=g;try{let t=e.fn();if(e.isEffect)typeof t==`function`&&e.cleanups.push(t);else{let n=e.value;if(e.value=t,e.observers.size>0&&!e.equals(n,t))for(let t of e.observers)w(t,v)}}finally{e.running=!1,y=t,b=n}}function E(e){for(let t of e.owned)D(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0;for(let t of e.sources)t.observers.delete(e);e.sources.clear()}function D(e){e.disposed||(e.disposed=!0,E(e),e.observers.clear())}function O(e){return typeof e==`string`?e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):String(e)}function k(e){return O(e)}var A=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,j=(e,t)=>{let n=t.trim();if(!n)return!1;if(n.startsWith(`.`))return e.classList.contains(n.slice(1));if(n.startsWith(`#`))return e.getAttribute(`id`)===n.slice(1);if(n.startsWith(`[`)&&n.endsWith(`]`)){let[t,r]=n.slice(1,-1).trim().split(`=`),i=(t||``).trim();if(!i)return!1;if(r==null)return e.hasAttribute(i);let a=r.trim().replace(/^['"]|['"]$/g,``);return e.getAttribute(i)===a}return e.tagName===n.toLowerCase()},M=(e,t,n)=>{for(let r of e)A(r)&&(j(r,t)&&n.push(r),M(r.childrenList,t,n))},N=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}serialize(){return this.childrenList.map(e=>typeof e==`string`?O(e):e.serialize()).join(``)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return M(this.childrenList,e,t),t}},P=class{tagName;attributes=new Map;inlineStyles=new Map;childrenList=[];shadowRoot=null;textContent=null;content;eventListeners=new Map;style={setProperty:(e,t)=>{let n=e.startsWith(`--`)?e:e.replace(/([A-Z])/g,`-$1`).toLowerCase();this.inlineStyles.set(n,t)},removeProperty:e=>this.inlineStyles.delete(e)};classList={add:(...e)=>{let t=this.attributes.get(`class`)||``,n=new Set([...t.split(` `).filter(Boolean),...e]);this.attributes.set(`class`,Array.from(n).join(` `))},remove:(...e)=>{let t=(this.attributes.get(`class`)||``).split(` `).filter(t=>!e.includes(t));this.attributes.set(`class`,t.join(` `))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get(`class`)||``).split(` `).includes(e)};_innerHTML=``;get innerHTML(){return this._innerHTML}set innerHTML(e){this._innerHTML=e,this.tagName===`template`&&this.content&&(this.content.childrenList=[e])}constructor(e=`div`){this.tagName=e.toLowerCase(),this.tagName===`template`&&(this.content=new N)}get hidden(){return this.hasAttribute(`hidden`)}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}attachShadow(e){return this.shadowRoot=new F(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return M(this.childrenList,e,t),t}addEventListener(e,t){let n=this.eventListeners.get(e)||new Set;n.add(t),this.eventListeners.set(e,n)}removeEventListener(e,t){let n=this.eventListeners.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners.delete(e))}dispatchEvent(e){let t=this.eventListeners.get(e.type);if(!t||t.size===0)return!0;for(let n of t)typeof n==`function`?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize==`function`&&this._preSerialize();let t=e||this._ssrTag||this.tagName,n=Array.from(this.attributes.entries()).map(([e,t])=>` ${e}="${k(t)}"`).join(``),r=Array.from(this.inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`),i=r?` style="${k(r)}"`:``,a=``;return this.shadowRoot&&(a+=this.shadowRoot.serialize()),this.textContent===null?this._innerHTML?a+=this._innerHTML:a+=this.childrenList.map(e=>typeof e==`string`?O(e):(e instanceof N,e.serialize())).join(``):a+=O(this.textContent),[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`].includes(t)&&!a?`<${t}${n}${i} />`:`<${t}${n}${i}>${a}</${t}>`}},F=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}appendChild(e){return this.childrenList.push(e),e}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return M(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?` shadowrootdelegatesfocus`:``}>${this.adoptedStyleSheets.map(e=>`<style>${O(e)}</style>`).join(``)}${this.childrenList.map(e=>typeof e==`string`?O(e):(e instanceof N,e.serialize())).join(``)}</template>`}},I=class e{el;constructor(e){this.el=m?new P(e):document.createElement(e)}id(e){return this.el.setAttribute(`id`,e),this}bind(e,t){typeof e==`function`?S(()=>t(e())):t(e)}class(e){return this.bind(e,e=>{m?this.el.attributes.set(`class`,e):this.el.className=e}),this}addClass(...e){return e.forEach(e=>this.el.classList.add(e)),this}removeClass(...e){return e.forEach(e=>this.el.classList.remove(e)),this}attr(e,t){return this.bind(t,t=>this.el.setAttribute(e,t)),this}attrs(e){return Object.entries(e).forEach(([e,t])=>{t!=null&&this.el.setAttribute(e,String(t))}),this}boolAttr(e,t,n=``){return this.bind(t,t=>{t?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr(`part`,e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e==`string`?this.bind(t??``,t=>this.el.style.setProperty(e,t)):Object.entries(e).forEach(([e,t])=>this.el.style.setProperty(e,t)),this}cssVar(e,t){let n=e.startsWith(`--`)?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr(`role`,e)}tabIndex(e){return this.attr(`tabindex`,String(e))}label(e){return this.aria(`label`,e)}labelledBy(e){return this.aria(`labelledby`,e)}describedBy(e){return this.aria(`describedby`,e)}ariaHidden(e=!0){return this.aria(`hidden`,String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...t){let n=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(n(t)):e.concat(t),[]);return n(t).forEach(t=>{t!=null&&(t instanceof e?this.el.appendChild(t.build()):typeof t==`string`?m?this.el.appendChild(t):this.el.appendChild(document.createTextNode(t)):this.el.appendChild(t))}),this}replaceChildren(...e){if(m){let e=this.el;e.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,e=>{this.el.textContent=e}),this}ref(e){return e.current=this.el,this}shadow(e={mode:`closed`}){let t=this.el.attachShadow(e);return new L(this.el,t,e)}build(){return this.el}serialize(){if(m)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},L=class{root;hostEl;options;constructor(e,t,n){this.hostEl=e,this.root=t,this.options=n}children(...e){let t=e=>e.reduce((e,n)=>Array.isArray(n)?e.concat(t(n)):e.concat(n),[]);return t(e).forEach(e=>{e!=null&&(e instanceof I?this.root.appendChild(e.build()):typeof e==`string`?m?this.root.appendChild(e):this.root.appendChild(document.createTextNode(e)):this.root.appendChild(e))}),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(m)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<`u`)try{let t=new CSSStyleSheet;return t.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,t],this}catch{}let t=document.createElement(`style`);return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return m?this.root.serialize():this.root.innerHTML}},R=e=>new I(e),z=()=>R(`div`),B=()=>R(`slot`),V=[!1,`false`,null,void 0],H=e=>{let t=e.hasAttribute(`disabled`),n=e.getAttribute(`disabled`);return!!(t&&!V.includes(n))},U=new Map;function W(e,t){m?(U.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}var G=typeof document<`u`?HTMLElement:P,K=new Map,q=new Map,J=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!K.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),K.set(t,e)}let n=K.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!e.querySelector(`style[data-ranui]`)){let n=document.createElement(`style`);n.setAttribute(`data-ranui`,``),n.textContent=t,e.appendChild(n)}}},Y=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!q.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),q.set(t,e)}let n=q.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!Array.from(e.querySelectorAll(`style[data-ranui-sheet]`)).some(e=>e.textContent===t)){let n=document.createElement(`style`);n.setAttribute(`data-ranui-sheet`,``),n.textContent=t,e.appendChild(n)}}},X=new WeakMap,Z=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,Q=(e,t=``,n={mode:`closed`})=>{let r=e.shadowRoot||X.get(e)||e.attachShadow(n);return X.set(e,r),J(r,t?`${t}\n${Z}`:Z),r},te=(e,t,n)=>{let r=e.querySelector(t);if(r)return r;let i=n();return e.appendChild(i),i},ne=(e,t,n,r,i)=>{if(n!==`sheet`||r===i)return;let a=e.getAttribute(`sheet`)||``;a&&Y(t,a)},$=class extends G{_btn;_btnContent;_iconElement;_slot;_shadowDom;_events=new h;debounceTimeId;static get observedAttributes(){return[`disabled`,`icon`,`effect`,`iconSize`,`type`,`sheet`]}constructor(){super(),this._shadowDom=Q(this,p);let e=te(this._shadowDom,`.ran-btn`,()=>z().class(`ran-btn`).attr(`part`,`button`).role(`button`).tabIndex(0).children(z().class(`ran-btn-content`).attr(`part`,`content`).children(B().class(`slot`))).build());this._btn=e,this._btnContent=e.querySelector(`.ran-btn-content`),this._slot=e.querySelector(`slot`)}get sheet(){return this.getAttribute(`sheet`)||``}set sheet(e){this.setAttribute(`sheet`,e||``),this.handlerExternalCss()}get disabled(){return H(this)}set disabled(e){!e||e===`false`?(this.removeAttribute(`disabled`),this.removeAttribute(`aria-disabled`)):(this.setAttribute(`disabled`,``),this.setAttribute(`aria-disabled`,`true`))}get iconSize(){return this.getAttribute(`iconSize`)||``}set iconSize(e){!e||e===`false`?this.removeAttribute(`iconSize`):(this.setAttribute(`iconSize`,e),this.setIcon())}get icon(){return this.getAttribute(`icon`)||``}set icon(e){!e||e===`false`?this.removeAttribute(`icon`):(this.setAttribute(`icon`,e),this.setIcon())}get effect(){return this.getAttribute(`effect`)||``}set effect(e){V.includes(e)||!e?this.removeAttribute(`effect`):this.setAttribute(`effect`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){e?this.setAttribute(`type`,e):this.removeAttribute(`type`)}setIcon=()=>{if(typeof document>`u`||!this._slot)return;let e=this.icon;if(!e){this._iconElement&&=(this._iconElement.remove(),void 0);return}if(this._iconElement)this._iconElement.setAttribute(`name`,e);else{let t=this._shadowDom.querySelector(`r-icon`);t||(t=R(`r-icon`).attr(`color`,`currentColor`).class(`icon`).build(),this._slot.insertAdjacentElement(`beforebegin`,t)),this._iconElement=t,this._iconElement.setAttribute(`name`,e)}let{width:t,height:n}=this._slot.getBoundingClientRect(),r=Math.min(t,n)||16,i=this.iconSize||`${r>5?r-5:r}`;this._iconElement.setAttribute(`size`,String(i))};mousedown=e=>{if(i()===`pc`&&!this.disabled){this.debounceMouseEvent();let{left:t,top:n}=this.getBoundingClientRect();this._btn.style.setProperty(`--ran-x`,`${e.clientX-t}px`),this._btn.style.setProperty(`--ran-y`,`${e.clientY-n}px`)}};mouseup=()=>{i()===`pc`&&(this.debounceTimeId||=setTimeout(()=>{this._btn.style.removeProperty(`--ran-x`),this._btn.style.removeProperty(`--ran-y`),this.debounceMouseEvent()},600))};keydown=e=>{H(this)||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),this.click())};debounceMouseEvent=()=>{this.debounceTimeId&&=(clearTimeout(this.debounceTimeId),void 0)};handlerExternalCss=()=>{ne(this,this._shadowDom,`sheet`,null,this.sheet)};syncA11yState=()=>{let e=H(this);this._btn.setAttribute(`aria-disabled`,e?`true`:`false`),this._btn.tabIndex=e?-1:0,e?(this.setAttribute(`aria-disabled`,`true`),this._btnContent.setAttribute(`disabled`,`true`)):(this.removeAttribute(`aria-disabled`),this._btnContent.removeAttribute(`disabled`))};connectedCallback(){this.handlerExternalCss(),this.setIcon(),this.syncA11yState(),this._events.on(this._btn,`mousedown`,this.mousedown).on(this._btn,`mouseup`,this.mouseup).on(this._btn,`keydown`,this.keydown)}disconnectedCallback(){this.debounceMouseEvent(),this._events.abort()}attributeChangedCallback(e,t,n){t!==n&&(e===`disabled`&&this._btnContent&&this.syncA11yState(),(e===`icon`||e===`iconSize`)&&this.setIcon(),e===`sheet`&&this.handlerExternalCss())}};return W(`r-button`,$),e.Button=$,e.default=$,e})({});
|
|
1
|
+
var ranui_button=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=class{_events=new Map;tap=(e,t)=>{this._events.get(e)&&e!==Symbol.for(`NEW_LISTENER`)&&this.call(Symbol.for(`NEW_LISTENER`),e);let n=this._events.get(e)||new Set;return typeof t==`function`?n.add({name:e,callback:t}):n.add(t),this._events.set(e,n),this};call=(e,...t)=>((this._events.get(e)||new Set).forEach(e=>{let{callback:n}=e;n(...t)}),this);callSync=async(e,...t)=>{let n=this._events.get(e)||new Set;for(let e of n){let{callback:n}=e;await n(...t)}return this};once=(e,t)=>{let n;if(typeof t==`function`)n={name:e,callback:(...r)=>{t(...r),this.off(e,n)},initialCallback:t};else{let{callback:r}=t;n={name:e,callback:(...t)=>{r(...t),this.off(e,n)},initialCallback:r}}return this.tap(e,n),this};off=(e,t)=>{let n=[...this._events.get(e)||new Set].filter(e=>{if(typeof t==`function`)return e.callback!==t&&e.initialCallback!==t;{let{callback:n}=t;return e.callback!==n&&e.initialCallback!==n}});return this._events.set(e,new Set(n)),this}},n=(e=8)=>Math.random().toString(36).substring(2,e+2),r=e=>typeof e==`function`,i=()=>{if(typeof window<`u`){let e=navigator.userAgent.toLowerCase();return/ipad|ipod/.test(e)?`ipad`:/android/.test(e)?`android`:/iphone/.test(e)?`iphone`:`pc`}return`pc`},a=12e4,o=`__ranuts_bridge__`,s=`default`,c=new class{bridges=new Set;attachedWindow=null;handleMessage=e=>{for(let t of Array.from(this.bridges))t.receive(e)};add(e){this.bridges.add(e),typeof window<`u`&&this.attachedWindow!==window&&(window.addEventListener(`message`,this.handleMessage),this.attachedWindow=window)}remove(e){this.bridges.delete(e),this.bridges.size===0&&this.attachedWindow&&(this.attachedWindow.removeEventListener(`message`,this.handleMessage),this.attachedWindow=null)}},l=class{targetWindow;targetOrigin;messageHandlers;pendingRequests;channel;senderId;available;constructor(e,t=`*`,r=s){this.targetOrigin=t,this.channel=r,this.senderId=n(12),this.messageHandlers=new Map,this.pendingRequests=new Map,this.available=typeof window<`u`,this.available?(this.targetWindow=e??window,c.add(this)):this.targetWindow=void 0}post(e,t){let n={...t,__bridge:o,channel:this.channel,senderId:this.senderId};e.postMessage(n,this.targetOrigin)}receive=e=>{if(!this.available||this.targetOrigin!==`*`&&e.origin!==this.targetOrigin||e.source&&e.source!==this.targetWindow)return;let t=e.data;if(!t||typeof t!=`object`||t.__bridge!==`__ranuts_bridge__`||(t.channel??`default`)!==this.channel)return;let{type:n,payload:i,id:a,isResponse:o,isError:s,senderId:c}=t;if(o&&a){let e=this.pendingRequests.get(a);e&&(s?e.reject(Error(typeof i==`string`?i:`Bridge request failed`)):e.resolve(i),this.pendingRequests.delete(a));return}if(c&&c===this.senderId||typeof n!=`string`||!this.messageHandlers.has(n))return;let l=this.messageHandlers.get(n);if(r(l)){let t=e.source??this.targetWindow;Promise.resolve(l(i)).then(e=>{a&&this.post(t,{type:n,payload:e,id:a,isResponse:!0})}).catch(e=>{a&&this.post(t,{type:n,payload:e instanceof Error?e.message:String(e),id:a,isResponse:!0,isError:!0})})}};on=(e,t)=>{this.messageHandlers.set(e,t)};off=e=>{this.messageHandlers.delete(e)};send=async(e,t)=>{if(!this.available)return Promise.reject(Error(`PostMessageBridge is unavailable outside a browser environment`));let r=n(10);return new Promise((n,i)=>{let o=setTimeout(()=>{this.pendingRequests.has(r)&&(this.pendingRequests.delete(r),i(Error(`Request timeout`)))},a),s=e=>{clearTimeout(o),i(e)};this.pendingRequests.set(r,{resolve:e=>{clearTimeout(o),n(e)},reject:s});try{this.post(this.targetWindow,{type:e,payload:t,id:r})}catch(e){this.pendingRequests.delete(r),s(e instanceof Error?e:Error(`Failed to post message`))}})};broadcast=e=>{if(this.available)try{this.post(this.targetWindow,{type:e.type,payload:e.payload})}catch{}};destroy=()=>{c.remove(this),this.messageHandlers.clear(),this.pendingRequests.forEach(e=>{e.reject(Error(`Bridge destroyed`))}),this.pendingRequests.clear()}};(class e{static instance;bridges=new Map;constructor(){}static getInstance(){return e.instance||=new e,e.instance}connectClient=({id:e,targetOrigin:t,targetWindow:r,channel:i})=>{let a=new l(r,t,i);if(e||=n(10),this.bridges.has(e))throw Error(`Bridge ${e} already exists`);return this.bridges.set(e,a),{bridge:a,id:e}};getClient=e=>this.bridges.get(e);removeClient=e=>{let t=this.bridges.get(e);t&&(t.destroy(),this.bridges.delete(e))};removeAllClient=()=>{this.bridges.forEach(e=>{e.destroy()}),this.bridges.clear()};broadcast=e=>{this.bridges.forEach(t=>{t.broadcast(e)})};sendTo=(e,t,n)=>{let r=this.getClient(e);return r?r.send(t,n):Promise.reject(Error(`Bridge ${e} not found`))}}).getInstance(),new t;var u=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],d=class{highOrder;lowOrder;constructor(e,t){this.highOrder=e,this.lowOrder=t}};new d(u[0],3609767458),new d(u[1],602891725),new d(u[2],3964484399),new d(u[3],2173295548),new d(u[4],4081628472),new d(u[5],3053834265),new d(u[6],2937671579),new d(u[7],3664609560),new d(u[8],2734883394),new d(u[9],1164996542),new d(u[10],1323610764),new d(u[11],3590304994),new d(u[12],4068182383),new d(u[13],991336113),new d(u[14],633803317),new d(u[15],3479774868),new d(u[16],2666613458),new d(u[17],944711139),new d(u[18],2341262773),new d(u[19],2007800933),new d(u[20],1495990901),new d(u[21],1856431235),new d(u[22],3175218132),new d(u[23],2198950837),new d(u[24],3999719339),new d(u[25],766784016),new d(u[26],2566594879),new d(u[27],3203337956),new d(u[28],1034457026),new d(u[29],2466948901),new d(u[30],3758326383),new d(u[31],168717936),new d(u[32],1188179964),new d(u[33],1546045734),new d(u[34],1522805485),new d(u[35],2643833823),new d(u[36],2343527390),new d(u[37],1014477480),new d(u[38],1206759142),new d(u[39],344077627),new d(u[40],1290863460),new d(u[41],3158454273),new d(u[42],3505952657),new d(u[43],106217008),new d(u[44],3606008344),new d(u[45],1432725776),new d(u[46],1467031594),new d(u[47],851169720),new d(u[48],3100823752),new d(u[49],1363258195),new d(u[50],3750685593),new d(u[51],3785050280),new d(u[52],3318307427),new d(u[53],3812723403),new d(u[54],2003034995),new d(u[55],3602036899),new d(u[56],1575990012),new d(u[57],1125592928),new d(u[58],2716904306),new d(u[59],442776044),new d(u[60],593698344),new d(u[61],3733110249),new d(u[62],2999351573),new d(u[63],3815920427),new d(3391569614,3928383900),new d(3515267271,566280711),new d(3940187606,3454069534),new d(4118630271,4000239992),new d(116418474,1914138554),new d(174292421,2731055270),new d(289380356,3203993006),new d(460393269,320620315),new d(685471733,587496836),new d(852142971,1086792851),new d(1017036298,365543100),new d(1126000580,2618297676),new d(1288033470,3409855158),new d(1501505948,4234509866),new d(1607167915,987167468),new d(1816402316,1246189591),new d(0,1),new d(0,32898),new d(2147483648,32906),new d(2147483648,2147516416),new d(0,32907),new d(0,2147483649),new d(2147483648,2147516545),new d(2147483648,32777),new d(0,138),new d(0,136),new d(0,2147516425),new d(0,2147483658),new d(0,2147516555),new d(2147483648,139),new d(2147483648,32905),new d(2147483648,32771),new d(2147483648,32770),new d(2147483648,128),new d(0,32778),new d(2147483648,2147483658),new d(2147483648,2147516545),new d(2147483648,32896),new d(0,2147483649),new d(2147483648,2147516424);var f=new Map([[100,`Continue`],[101,`Switching Protocols`],[102,`Processing`],[103,`Early Hints`],[200,`OK`],[201,`Created`],[202,`Accepted`],[203,`Non-Authoritative Information`],[204,`No Content`],[205,`Reset Content`],[206,`Partial Content`],[207,`Multi-Status`],[208,`Already Reported`],[226,`IM Used`],[300,`Multiple Choices`],[301,`Moved Permanently`],[302,`Found`],[303,`See Other`],[304,`Not Modified`],[305,`Use Proxy`],[307,`Temporary Redirect`],[308,`Permanent Redirect`],[400,`Bad Request`],[401,`Unauthorized`],[402,`Payment Required`],[403,`Forbidden`],[404,`Not Found`],[405,`Method Not Allowed`],[406,`Not Acceptable`],[407,`Proxy Authentication Required`],[408,`Request Timeout`],[409,`Conflict`],[410,`Gone`],[411,`Length Required`],[412,`Precondition Failed`],[413,`Payload Too Large`],[414,`URI Too Long`],[415,`Unsupported Media Type`],[416,`Range Not Satisfiable`],[417,`Expectation Failed`],[418,`I'm a Teapot`],[421,`Misdirected Request`],[422,`Unprocessable Entity`],[423,`Locked`],[424,`Failed Dependency`],[425,`Too Early`],[426,`Upgrade Required`],[428,`Precondition Required`],[429,`Too Many Requests`],[431,`Request Header Fields Too Large`],[451,`Unavailable For Legal Reasons`],[500,`Internal Server Error`],[501,`Not Implemented`],[502,`Bad Gateway`],[503,`Service Unavailable`],[504,`Gateway Timeout`],[505,`HTTP Version Not Supported`],[506,`Variant Also Negotiates`],[507,`Insufficient Storage`],[508,`Loop Detected`],[509,`Bandwidth Limit Exceeded`],[510,`Not Extended`],[511,`Network Authentication Required`]]);(function(e){let t=new Map;for(let[n,r]of e)t.set(r.toLowerCase(),n);return t})(f),function(e){let t=[];for(let[n,r]of e)t.push(n);return t}(f);var ee=`.remove-wap-active-focus,.remove-wap-active-focus:active,.remove-wap-active-focus:focus{-webkit-tap-highlight-color:transparent;outline:0}:host{box-sizing:var(--ran-btn-box-sizing,border-box);position:var(--ran-btn-position,relative);display:var(--ran-btn-display,inline-flex);background-image:var(--ran-btn-background-image,none);box-shadow:var(--ran-btn-box-shadow,var(--ran-skin-raised-shadow,0 2px #00000004));cursor:var(--ran-btn-cursor,pointer);user-select:var(--ran-btn-user-select,none);touch-action:var(--ran-btn-touch-action,manipulation);overflow:var(--ran-btn-overflow,hidden);pointer-events:var(--ran-btn-pointer-events,auto)}:host .ran-btn{box-sizing:var(--ran-btn-contain-box-sizing,border-box);position:var(--ran-btn-contain-position,relative);display:var(--ran-btn-contain-display,block);background-image:var(--ran-btn-contain-background-image,none);cursor:var(--ran-btn-contain-cursor,pointer);transition:var(--ran-btn-contain-transition,opacity var(--ran-motion-duration-base,.2s) var(--ran-motion-ease-standard,cubic-bezier(.645, .045, .355, 1)));user-select:var(--ran-btn-contain-user-select,none);touch-action:var(--ran-btn-contain-touch-action,manipulation);border-radius:var(--ran-btn-content-border-radius,var(--ran-radius-sm,6px));background:var(--ran-btn-contain-background,var(--ran-color-bg-elevated,#fff))}:host,:host(:active),:host(:focus){-webkit-tap-highlight-color:transparent;outline:0}:host .ran-btn,:host(:active) .ran-btn,:host(:focus) .ran-btn{outline:var(--ran-btn-contain-outline,0)}:host(:focus-visible){outline:var(--ran-btn-focus-outline,2px solid var(--ran-color-primary));outline-offset:var(--ran-btn-focus-outline-offset,2px)}:host([type=primary]) .ran-btn-content{background-color:var(--ran-btn-content-background-color,var(--ran-color-primary,#006bff));background-image:var(--ran-btn-content-background-image,none);border-color:var(--ran-btn-content-border-color,var(--ran-color-primary,#006bff));color:var(--ran-btn-content-color,#fff)}:host([type=primary]:not([disabled])) .ran-btn:after{background-image:var(--ran-btn-after-background-image,radial-gradient(circle, #fff 10%, transparent 10.01%))}:host([type=primary]:not([disabled]):active) .ran-btn-content{background-color:var(--ran-btn-content-active-background-color,var(--ran-color-primary-active,#005ff2));border-color:var(--ran-btn-content-active-border-color,var(--ran-color-primary-active,#005ff2))}:host([type=contrast]) .ran-btn-content{background-color:var(--ran-btn-content-background-color,var(--ran-color-contrast-bg,#171717));background-image:var(--ran-btn-content-background-image,none);border-color:var(--ran-btn-content-border-color,var(--ran-color-contrast-bg,#171717));color:var(--ran-btn-content-color,var(--ran-color-contrast-text,#fff))}:host([type=contrast]:not([disabled])) .ran-btn:after{background-image:var(--ran-btn-after-background-image,radial-gradient(circle, var(--ran-color-contrast-text,#fff) 10%, transparent 10.01%))}:host([type=contrast]:not([disabled]):active) .ran-btn-content{background-color:var(--ran-btn-content-active-background-color,var(--ran-color-contrast-bg-active,#4d4d4d));border-color:var(--ran-btn-content-active-border-color,var(--ran-color-contrast-bg-active,#4d4d4d))}@media (width>=1024px){:host(:not([disabled]):hover) .ran-btn-content{border-color:var(--ran-btn-content-hover-border-color,var(--ran-color-border-hover,#c9c9c9));color:var(--ran-btn-content-hover-color,var(--ran-color-text,#171717))}:host([type=primary]:not([disabled]):hover) .ran-btn-content{background-color:var(--ran-btn-content-hover-background-color,var(--ran-color-primary-hover,#0059ec));border-color:var(--ran-btn-content-hover-border-color,var(--ran-color-primary-hover,#0059ec));color:var(--ran-btn-content-hover-color,#fff)}:host([type=contrast]:not([disabled]):hover) .ran-btn-content{background-color:var(--ran-btn-content-hover-background-color,var(--ran-color-contrast-bg-hover,#383838));border-color:var(--ran-btn-content-hover-border-color,var(--ran-color-contrast-bg-hover,#383838));color:var(--ran-btn-content-hover-color,var(--ran-color-contrast-text,#fff))}:host([type=warning]:not([disabled]):hover) .ran-btn-content{border-color:var(--ran-btn-content-warning-border-color,var(--ran-color-danger,#ff4d4f));background-color:var(--ran-btn-content-warning-background-color,var(--ran-color-danger,#ff4d4f));color:var(--ran-btn-content-warning-color,#fff)}}:host([type=warning]) .ran-btn-content{border-color:var(--ran-btn-content-warning-border-color,var(--ran-color-danger,#ff4d4f));background-color:var(--ran-btn-content-warning-background-color,var(--ran-color-danger,#ff4d4f));background-image:var(--ran-btn-content-background-image,none);color:var(--ran-btn-content-warning-color,#fff)}:host([type=warning]:not([disabled])) .ran-btn:after{background-image:var(--ran-btn-after-background-image,radial-gradient(circle, #fff 10%, transparent 10.01%))}:host([type=text]) .ran-btn-content{border:var(--ran-btn-content-text-border,none)}:host([disabled]){cursor:var(--ran-btn-disabled-cursor,not-allowed);pointer-events:var(--ran-btn-disabled-pointer-events,all);opacity:var(--ran-btn-disabled-opacity,.6)}:host([disabled]) .ran-btn{cursor:var(--ran-btn-disabled-container-cursor,not-allowed);pointer-events:var(--ran-btn-disabled-container-pointer-events,all);opacity:var(--ran-btn-disabled-container-opacity,.6)}:host(:not([disabled]):active) .ran-btn:after{transform:var(--ran-btn-after-transform,translate(-50%, -50%) scale(0));opacity:var(--ran-btn-after-opacity,.3);transition:var(--ran-btn-after-transition,0s)}:host(:not([disabled]):active) .ran-btn-content{transform:var(--ran-btn-content-active-transform,scale(.96))}@media (width>=1024px){:host(:not([disabled],[effect])) .ran-btn:after{content:"";width:100%;height:100%;left:var(--ran-x,0);top:var(--ran-y,0);pointer-events:none;background-image:radial-gradient(circle, var(--ran-gray-alpha-400,#00000014) 10%, transparent 10.01%);opacity:0;background-position:50%;background-repeat:no-repeat;transition:transform .3s,opacity .8s;display:block;position:absolute;transform:translate(-50%,-50%)scale(10)}}:host .slot{display:var(--ran-btn-slot-display,block)}.ran-btn-content{display:var(--ran-btn-content-display,flex);justify-content:var(--ran-btn-content-display,space-between);align-items:var(--ran-btn-content-align-items,center);padding:var(--ran-btn-content-padding,4px 15px);border:var(--ran-btn-content-border,1px solid transparent);border-image-source:var(--ran-btn-content-border-image-source,none);border-image-slice:var(--ran-btn-content-border-image-slice,8);border-image-width:var(--ran-btn-content-border-image-width,4px);border-radius:var(--ran-btn-content-border-radius,var(--ran-radius-sm,6px));border-color:var(--ran-btn-content-border-color,var(--ran-color-border,#eaeaea));color:var(--ran-btn-content-color,var(--ran-color-text,#000000d9));line-height:var(--ran-btn-content-line-height,22px);font-size:var(--ran-btn-content-font-size,14px);font-weight:var(--ran-btn-content-font-weight,400);font-family:var(--ran-btn-content-font-family,var(--ran-skin-font-family,inherit));white-space:var(--ran-btn-content-white-space,nowrap);text-align:var(--ran-btn-content-text-align,center);box-sizing:var(--ran-btn-content-box-sizing,border-box);transition:var(--ran-btn-content-transition,transform var(--ran-motion-duration-base,.2s) var(--ran-motion-ease-spring,cubic-bezier(.34, 1.26, .5, 1)));border-image-outset:0;border-image-repeat:stretch}.ran-btn-content .icon{margin-right:var(--ran-btn-icon-margin-right,2px)}@media (prefers-reduced-motion:reduce){.ran-btn-content{transition:none}}`,p=typeof document>`u`,te=class{ac;constructor(){this.ac=new AbortController}get signal(){return this.ac.signal}on(e,t,n,r){return e.addEventListener(t,n,{...r,signal:this.ac.signal}),this}delegate(e,t,n,r,i){return e.addEventListener(n,n=>{let i=n.target?.closest(t);i&&e.contains(i)&&r(n,i)},{...i,signal:this.ac.signal}),this}abort(){this.ac.abort(),this.ac=new AbortController}},m=0,h=1,g=2,_=null,v=null,y=0,b=new Set,x=!1;function S(e,t){let n=t?.equals??Object.is,r={value:e,observers:new Set};return[()=>(ie(r),r.value),e=>{let t=typeof e==`function`?e(r.value):e;if(!n(r.value,t)){r.value=t;for(let e of r.observers)E(e,g);y===0&&D()}}]}function C(e){let t=ne(e,!0);return re(t),k(t),()=>j(t)}function w(e){let t={owned:[],cleanups:[],owner:v},n=v,r=_;v=t,_=null;try{return e(()=>ae(t))}finally{v=n,_=r}}function T(e){v&&v.cleanups.push(e)}function ne(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:g,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:v}}function re(e){v&&v.owned.push(e)}function ie(e){_&&(_.sources.add(e),e.observers.add(_))}function E(e,t){if(e.disposed||e.state>=t)return;let n=e.state===m;if(e.state=t,e.isEffect)b.add(e);else if(n)for(let t of e.observers)E(t,h)}function D(){if(!(y>0||x)){x=!0;try{for(;b.size>0;){let e=[...b];b.clear();for(let t of e)t.disposed||O(t)}}finally{x=!1}}}function O(e){if(!(e.disposed||e.state===m)){if(e.state===h)for(let t of e.sources)`fn`in t&&O(t);e.state===g&&k(e),e.state=m}}function k(e){if(e.running)throw Error(`ranui reactivity: cyclic dependency detected (a computation triggered itself).`);A(e);let t=_,n=v;_=e,v=e,e.running=!0,e.state=m;try{let t=e.fn();if(e.isEffect)typeof t==`function`&&e.cleanups.push(t);else{let n=e.value;if(e.value=t,e.observers.size>0&&!e.equals(n,t))for(let t of e.observers)E(t,g)}}finally{e.running=!1,_=t,v=n}}function A(e){for(let t of e.owned)j(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0;for(let t of e.sources)t.observers.delete(e);e.sources.clear()}function j(e){e.disposed||(e.disposed=!0,A(e),e.observers.clear())}function ae(e){for(let t of e.owned)j(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0}function M(e){return typeof e==`string`?e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):String(e)}function N(e){return M(e)}var oe=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,se=(e,t)=>{let n=t.trim();if(!n)return!1;if(n.startsWith(`.`))return e.classList.contains(n.slice(1));if(n.startsWith(`#`))return e.getAttribute(`id`)===n.slice(1);if(n.startsWith(`[`)&&n.endsWith(`]`)){let[t,r]=n.slice(1,-1).trim().split(`=`),i=(t||``).trim();if(!i)return!1;if(r==null)return e.hasAttribute(i);let a=r.trim().replace(/^['"]|['"]$/g,``);return e.getAttribute(i)===a}return e.tagName===n.toLowerCase()},P=(e,t,n)=>{for(let r of e)oe(r)&&(se(r,t)&&n.push(r),P(r.childrenList,t,n))},F=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}serialize(){return this.childrenList.map(e=>typeof e==`string`?M(e):e.serialize()).join(``)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return P(this.childrenList,e,t),t}},I=class{tagName;attributes=new Map;inlineStyles=new Map;childrenList=[];shadowRoot=null;textContent=null;content;eventListeners=new Map;style={setProperty:(e,t)=>{let n=e.startsWith(`--`)?e:e.replace(/([A-Z])/g,`-$1`).toLowerCase();this.inlineStyles.set(n,t)},removeProperty:e=>this.inlineStyles.delete(e)};classList={add:(...e)=>{let t=this.attributes.get(`class`)||``,n=new Set([...t.split(` `).filter(Boolean),...e]);this.attributes.set(`class`,Array.from(n).join(` `))},remove:(...e)=>{let t=(this.attributes.get(`class`)||``).split(` `).filter(t=>!e.includes(t));this.attributes.set(`class`,t.join(` `))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get(`class`)||``).split(` `).includes(e)};_innerHTML=``;get innerHTML(){return this._innerHTML}set innerHTML(e){this._innerHTML=e,this.tagName===`template`&&this.content&&(this.content.childrenList=[e])}constructor(e=`div`){this.tagName=e.toLowerCase(),this.tagName===`template`&&(this.content=new F)}get hidden(){return this.hasAttribute(`hidden`)}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}attachShadow(e){return this.shadowRoot=new ce(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return P(this.childrenList,e,t),t}addEventListener(e,t){let n=this.eventListeners.get(e)||new Set;n.add(t),this.eventListeners.set(e,n)}removeEventListener(e,t){let n=this.eventListeners.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners.delete(e))}dispatchEvent(e){let t=this.eventListeners.get(e.type);if(!t||t.size===0)return!0;for(let n of t)typeof n==`function`?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize==`function`&&this._preSerialize();let t=e||this._ssrTag||this.tagName,n=Array.from(this.attributes.entries()).map(([e,t])=>` ${e}="${N(t)}"`).join(``),r=Array.from(this.inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`),i=r?` style="${N(r)}"`:``,a=``;return this.shadowRoot&&(a+=this.shadowRoot.serialize()),this.textContent===null?this._innerHTML?a+=this._innerHTML:a+=this.childrenList.map(e=>typeof e==`string`?M(e):(e instanceof F,e.serialize())).join(``):a+=M(this.textContent),[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`].includes(t)&&!a?`<${t}${n}${i} />`:`<${t}${n}${i}>${a}</${t}>`}},ce=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}appendChild(e){return this.childrenList.push(e),e}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return P(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?` shadowrootdelegatesfocus`:``}>${this.adoptedStyleSheets.map(e=>`<style>${M(e)}</style>`).join(``)}${this.childrenList.map(e=>typeof e==`string`?M(e):(e instanceof F,e.serialize())).join(``)}</template>`}},L=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(L(t)):e.concat(t),[]),R=e=>e==null?null:e instanceof U?e.build():typeof e==`string`?p?e:document.createTextNode(e):e,le=(e,t)=>{if(p){L([t()]).forEach(t=>{let n=R(t);n!=null&&e.appendChild(n)});return}let n=document.createComment(``);e.appendChild(n);let r=[];C(()=>{let e=L([t()]);for(let e of r)e.parentNode?.removeChild(e);let i=[],a=n;for(let t of e){let e=R(t);e!=null&&(a.after(e),a=e,i.push(e))}r=i})},ue=`__ranFor`,de=e=>typeof e==`object`&&!!e&&e[ue]===!0,z=(e,t,n)=>{let[r,i]=S(t),a=null,o=w(t=>{let i=R(n(e,r));return a=typeof i==`string`?document.createTextNode(i):i,t});return{node:a,index:i,dispose:o}},B=(e,t)=>{let n=e.parentNode;if(!n)return;let r=e;for(let e of t)r.nextSibling!==e&&n.insertBefore(e,r.nextSibling),r=e},V=(e,t)=>{if(p){(t.each()??[]).forEach((n,r)=>{let i=R(t.render(n,()=>r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=new Map;T(()=>{for(let e of r.values())e.dispose();r.clear()}),C(()=>{let e=t.each()??[],i=new Map,a=[];e.forEach((e,n)=>{let o=t.key(e,n);if(i.has(o))return;let s=r.get(o);s?(r.delete(o),s.index(n)):s=z(e,n,t.render),i.set(o,s),s.node&&a.push(s.node)});for(let e of r.values())e.node?.parentNode?.removeChild(e.node),e.dispose();B(n,a),r=i})},fe=`__ranIndex`,pe=e=>typeof e==`object`&&!!e&&e[fe]===!0,me=(e,t,n)=>{let[r,i]=S(e),a=null,o=w(e=>{let i=R(n(r,t));return a=typeof i==`string`?document.createTextNode(i):i,e});return{node:a,setItem:i,dispose:o}},he=(e,t)=>{if(p){(t.each()??[]).forEach((n,r)=>{let i=R(t.render(()=>n,r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=[];T(()=>{for(let e of r)e.dispose();r=[]}),C(()=>{let e=t.each()??[];for(let n=0;n<e.length;n++)n<r.length?r[n].setItem(e[n]):r.push(me(e[n],n,t.render));for(let t=r.length-1;t>=e.length;t--){let{node:e}=r[t];e?.parentNode?.removeChild(e),r[t].dispose(),r.pop()}B(n,r.map(e=>e.node).filter(e=>e!=null))})},H=(e,t)=>{L(t).forEach(t=>{if(de(t)){V(e,t);return}if(pe(t)){he(e,t);return}if(typeof t==`function`){le(e,t);return}let n=R(t);n!=null&&e.appendChild(n)})},U=class{el;constructor(e){this.el=p?new I(e):document.createElement(e)}id(e){return this.el.setAttribute(`id`,e),this}bind(e,t){typeof e==`function`?C(()=>t(e())):t(e)}class(e){return this.bind(e,e=>{p?this.el.attributes.set(`class`,e):this.el.className=e}),this}addClass(...e){return e.forEach(e=>this.el.classList.add(e)),this}removeClass(...e){return e.forEach(e=>this.el.classList.remove(e)),this}attr(e,t){return this.bind(t,t=>this.el.setAttribute(e,t)),this}attrs(e){return Object.entries(e).forEach(([e,t])=>{t!=null&&this.el.setAttribute(e,String(t))}),this}boolAttr(e,t,n=``){return this.bind(t,t=>{t?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr(`part`,e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e==`string`?this.bind(t??``,t=>this.el.style.setProperty(e,t)):Object.entries(e).forEach(([e,t])=>this.el.style.setProperty(e,t)),this}cssVar(e,t){let n=e.startsWith(`--`)?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr(`role`,e)}tabIndex(e){return this.attr(`tabindex`,String(e))}label(e){return this.aria(`label`,e)}labelledBy(e){return this.aria(`labelledby`,e)}describedBy(e){return this.aria(`describedby`,e)}ariaHidden(e=!0){return this.aria(`hidden`,String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...e){return H(this.el,e),this}replaceChildren(...e){if(p){let e=this.el;e.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,e=>{this.el.textContent=e}),this}ref(e){return e.current=this.el,this}shadow(e={mode:`closed`}){let t=this.el.attachShadow(e);return new ge(this.el,t,e)}build(){return this.el}serialize(){if(p)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},ge=class{root;hostEl;options;constructor(e,t,n){this.hostEl=e,this.root=t,this.options=n}children(...e){return H(this.root,e),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(p)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<`u`)try{let t=new CSSStyleSheet;return t.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,t],this}catch{}let t=document.createElement(`style`);return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return p?this.root.serialize():this.root.innerHTML}},W=e=>new U(e),G=()=>W(`div`),_e=()=>W(`slot`),K=[!1,`false`,null,void 0],q=e=>{let t=e.hasAttribute(`disabled`),n=e.getAttribute(`disabled`);return!!(t&&!K.includes(n))},ve=new Map;function ye(e,t){p?(ve.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}var be=typeof document<`u`?HTMLElement:I,J=new Map,Y=new Map,xe=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!J.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),J.set(t,e)}let n=J.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!e.querySelector(`style[data-ranui]`)){let n=document.createElement(`style`);n.setAttribute(`data-ranui`,``),n.textContent=t,e.appendChild(n)}}},X=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!Y.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),Y.set(t,e)}let n=Y.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!Array.from(e.querySelectorAll(`style[data-ranui-sheet]`)).some(e=>e.textContent===t)){let n=document.createElement(`style`);n.setAttribute(`data-ranui-sheet`,``),n.textContent=t,e.appendChild(n)}}},Z=new WeakMap,Q=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,Se=(e,t=``,n={mode:`closed`})=>{let r=e.shadowRoot||Z.get(e)||e.attachShadow(n);return Z.set(e,r),xe(r,t?`${t}\n${Q}`:Q),r},Ce=(e,t,n)=>{let r=e.querySelector(t);if(r)return r;let i=n();return e.appendChild(i),i},we=(e,t,n,r,i)=>{if(n!==`sheet`||r===i)return;let a=e.getAttribute(`sheet`)||``;a&&X(t,a)},$=class extends be{_btn;_btnContent;_iconElement;_slot;_shadowDom;_events=new te;debounceTimeId;static get observedAttributes(){return[`disabled`,`icon`,`effect`,`iconSize`,`type`,`sheet`]}constructor(){super(),this._shadowDom=Se(this,ee);let e=Ce(this._shadowDom,`.ran-btn`,()=>G().class(`ran-btn`).attr(`part`,`button`).role(`button`).tabIndex(0).children(G().class(`ran-btn-content`).attr(`part`,`content`).children(_e().class(`slot`))).build());this._btn=e,this._btnContent=e.querySelector(`.ran-btn-content`),this._slot=e.querySelector(`slot`)}get sheet(){return this.getAttribute(`sheet`)||``}set sheet(e){this.setAttribute(`sheet`,e||``),this.handlerExternalCss()}get disabled(){return q(this)}set disabled(e){!e||e===`false`?(this.removeAttribute(`disabled`),this.removeAttribute(`aria-disabled`)):(this.setAttribute(`disabled`,``),this.setAttribute(`aria-disabled`,`true`))}get iconSize(){return this.getAttribute(`iconSize`)||``}set iconSize(e){!e||e===`false`?this.removeAttribute(`iconSize`):(this.setAttribute(`iconSize`,e),this.setIcon())}get icon(){return this.getAttribute(`icon`)||``}set icon(e){!e||e===`false`?this.removeAttribute(`icon`):(this.setAttribute(`icon`,e),this.setIcon())}get effect(){return this.getAttribute(`effect`)||``}set effect(e){K.includes(e)||!e?this.removeAttribute(`effect`):this.setAttribute(`effect`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){e?this.setAttribute(`type`,e):this.removeAttribute(`type`)}setIcon=()=>{if(typeof document>`u`||!this._slot)return;let e=this.icon;if(!e){this._iconElement&&=(this._iconElement.remove(),void 0);return}if(this._iconElement)this._iconElement.setAttribute(`name`,e);else{let t=this._shadowDom.querySelector(`r-icon`);t||(t=W(`r-icon`).attr(`color`,`currentColor`).class(`icon`).build(),this._slot.insertAdjacentElement(`beforebegin`,t)),this._iconElement=t,this._iconElement.setAttribute(`name`,e)}let{width:t,height:n}=this._slot.getBoundingClientRect(),r=Math.min(t,n)||16,i=this.iconSize||`${r>5?r-5:r}`;this._iconElement.setAttribute(`size`,String(i))};mousedown=e=>{if(i()===`pc`&&!this.disabled){this.debounceMouseEvent();let{left:t,top:n}=this.getBoundingClientRect();this._btn.style.setProperty(`--ran-x`,`${e.clientX-t}px`),this._btn.style.setProperty(`--ran-y`,`${e.clientY-n}px`)}};mouseup=()=>{i()===`pc`&&(this.debounceTimeId||=setTimeout(()=>{this._btn.style.removeProperty(`--ran-x`),this._btn.style.removeProperty(`--ran-y`),this.debounceMouseEvent()},600))};keydown=e=>{q(this)||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),this.click())};debounceMouseEvent=()=>{this.debounceTimeId&&=(clearTimeout(this.debounceTimeId),void 0)};handlerExternalCss=()=>{we(this,this._shadowDom,`sheet`,null,this.sheet)};syncA11yState=()=>{let e=q(this);this._btn.setAttribute(`aria-disabled`,e?`true`:`false`),this._btn.tabIndex=e?-1:0,e?(this.setAttribute(`aria-disabled`,`true`),this._btnContent.setAttribute(`disabled`,`true`)):(this.removeAttribute(`aria-disabled`),this._btnContent.removeAttribute(`disabled`))};connectedCallback(){this.handlerExternalCss(),this.setIcon(),this.syncA11yState(),this._events.on(this._btn,`mousedown`,this.mousedown).on(this._btn,`mouseup`,this.mouseup).on(this._btn,`keydown`,this.keydown)}disconnectedCallback(){this.debounceMouseEvent(),this._events.abort()}attributeChangedCallback(e,t,n){t!==n&&(e===`disabled`&&this._btnContent&&this.syncA11yState(),(e===`icon`||e===`iconSize`)&&this.setIcon(),e===`sheet`&&this.handlerExternalCss())}};return ye(`r-button`,$),e.Button=$,e.default=$,e})({});
|
package/dist/iife/card.iife.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var ranui_card=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=`.remove-wap-active-focus,.remove-wap-active-focus:active,.remove-wap-active-focus:focus{-webkit-tap-highlight-color:transparent;outline:0}:host{display:var(--ran-card-display,block);box-sizing:border-box;min-height:var(--ran-card-min-height,0)}:host([hoverable]:hover) .ran-card{border-color:var(--ran-card-hover-border-color,var(--ran-color-border-hover,#c9c9c9));box-shadow:var(--ran-card-hover-shadow,var(--ran-shadow-elevated,0 1px 2px #0000000a))}.ran-card{align-content:start;gap:var(--ran-card-gap,14px);min-width:0;height:100%;padding:var(--ran-card-padding,16px);border-width:var(--ran-skin-border-width,1px);border-style:var(--ran-skin-border-style,solid);border-color:var(--ran-card-border-color,var(--ran-color-border,#eaeaea));border-radius:var(--ran-card-radius,var(--ran-radius-md));background:var(--ran-card-background,var(--ran-color-bg));box-shadow:var(--ran-card-shadow,none);box-sizing:border-box;display:grid}.ran-card-header{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.ran-card-title-area{flex:1;min-width:0}.ran-card-title{color:var(--ran-card-title-color,var(--ran-color-text));font-size:var(--ran-card-title-font-size,16px);font-weight:var(--ran-card-title-font-weight,600);margin:0;line-height:1.3}.ran-card-title:empty{display:none}.ran-card-description{color:var(--ran-card-description-color,var(--ran-color-text-secondary));font-size:var(--ran-card-description-font-size,14px);margin:4px 0 0;line-height:1.5}.ran-card-description:empty{display:none}.ran-card-body,.ran-card-footer{min-width:0}:host(:not([title]):not([description])) .ran-card-header{display:none}`,n=typeof document>`u`,r=0,i=1,a=2,o=null,s=null,c=new Set;function l(e){let t=u(e,!0);return ee(t),f(t),()=>m(t)}function u(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:a,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:s}}function ee(e){s&&s.owned.push(e)}function d(e,t){if(e.disposed||e.state>=t)return;let n=e.state===r;if(e.state=t,e.isEffect)c.add(e);else if(n)for(let t of e.observers)d(t,i)}function f(e){if(e.running)throw Error(`ranui reactivity: cyclic dependency detected (a computation triggered itself).`);p(e);let t=o,n=s;o=e,s=e,e.running=!0,e.state=r;try{let t=e.fn();if(e.isEffect)typeof t==`function`&&e.cleanups.push(t);else{let n=e.value;if(e.value=t,e.observers.size>0&&!e.equals(n,t))for(let t of e.observers)d(t,a)}}finally{e.running=!1,o=t,s=n}}function p(e){for(let t of e.owned)m(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0;for(let t of e.sources)t.observers.delete(e);e.sources.clear()}function m(e){e.disposed||(e.disposed=!0,p(e),e.observers.clear())}function h(e){return typeof e==`string`?e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):String(e)}function g(e){return h(e)}var _=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,v=(e,t)=>{let n=t.trim();if(!n)return!1;if(n.startsWith(`.`))return e.classList.contains(n.slice(1));if(n.startsWith(`#`))return e.getAttribute(`id`)===n.slice(1);if(n.startsWith(`[`)&&n.endsWith(`]`)){let[t,r]=n.slice(1,-1).trim().split(`=`),i=(t||``).trim();if(!i)return!1;if(r==null)return e.hasAttribute(i);let a=r.trim().replace(/^['"]|['"]$/g,``);return e.getAttribute(i)===a}return e.tagName===n.toLowerCase()},y=(e,t,n)=>{for(let r of e)_(r)&&(v(r,t)&&n.push(r),y(r.childrenList,t,n))},b=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}serialize(){return this.childrenList.map(e=>typeof e==`string`?h(e):e.serialize()).join(``)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return y(this.childrenList,e,t),t}},x=class{tagName;attributes=new Map;inlineStyles=new Map;childrenList=[];shadowRoot=null;textContent=null;content;eventListeners=new Map;style={setProperty:(e,t)=>{let n=e.startsWith(`--`)?e:e.replace(/([A-Z])/g,`-$1`).toLowerCase();this.inlineStyles.set(n,t)},removeProperty:e=>this.inlineStyles.delete(e)};classList={add:(...e)=>{let t=this.attributes.get(`class`)||``,n=new Set([...t.split(` `).filter(Boolean),...e]);this.attributes.set(`class`,Array.from(n).join(` `))},remove:(...e)=>{let t=(this.attributes.get(`class`)||``).split(` `).filter(t=>!e.includes(t));this.attributes.set(`class`,t.join(` `))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get(`class`)||``).split(` `).includes(e)};_innerHTML=``;get innerHTML(){return this._innerHTML}set innerHTML(e){this._innerHTML=e,this.tagName===`template`&&this.content&&(this.content.childrenList=[e])}constructor(e=`div`){this.tagName=e.toLowerCase(),this.tagName===`template`&&(this.content=new b)}get hidden(){return this.hasAttribute(`hidden`)}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}attachShadow(e){return this.shadowRoot=new S(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return y(this.childrenList,e,t),t}addEventListener(e,t){let n=this.eventListeners.get(e)||new Set;n.add(t),this.eventListeners.set(e,n)}removeEventListener(e,t){let n=this.eventListeners.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners.delete(e))}dispatchEvent(e){let t=this.eventListeners.get(e.type);if(!t||t.size===0)return!0;for(let n of t)typeof n==`function`?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize==`function`&&this._preSerialize();let t=e||this._ssrTag||this.tagName,n=Array.from(this.attributes.entries()).map(([e,t])=>` ${e}="${g(t)}"`).join(``),r=Array.from(this.inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`),i=r?` style="${g(r)}"`:``,a=``;return this.shadowRoot&&(a+=this.shadowRoot.serialize()),this.textContent===null?this._innerHTML?a+=this._innerHTML:a+=this.childrenList.map(e=>typeof e==`string`?h(e):(e instanceof b,e.serialize())).join(``):a+=h(this.textContent),[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`].includes(t)&&!a?`<${t}${n}${i} />`:`<${t}${n}${i}>${a}</${t}>`}},S=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}appendChild(e){return this.childrenList.push(e),e}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return y(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?` shadowrootdelegatesfocus`:``}>${this.adoptedStyleSheets.map(e=>`<style>${h(e)}</style>`).join(``)}${this.childrenList.map(e=>typeof e==`string`?h(e):(e instanceof b,e.serialize())).join(``)}</template>`}},C=class e{el;constructor(e){this.el=n?new x(e):document.createElement(e)}id(e){return this.el.setAttribute(`id`,e),this}bind(e,t){typeof e==`function`?l(()=>t(e())):t(e)}class(e){return this.bind(e,e=>{n?this.el.attributes.set(`class`,e):this.el.className=e}),this}addClass(...e){return e.forEach(e=>this.el.classList.add(e)),this}removeClass(...e){return e.forEach(e=>this.el.classList.remove(e)),this}attr(e,t){return this.bind(t,t=>this.el.setAttribute(e,t)),this}attrs(e){return Object.entries(e).forEach(([e,t])=>{t!=null&&this.el.setAttribute(e,String(t))}),this}boolAttr(e,t,n=``){return this.bind(t,t=>{t?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr(`part`,e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e==`string`?this.bind(t??``,t=>this.el.style.setProperty(e,t)):Object.entries(e).forEach(([e,t])=>this.el.style.setProperty(e,t)),this}cssVar(e,t){let n=e.startsWith(`--`)?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr(`role`,e)}tabIndex(e){return this.attr(`tabindex`,String(e))}label(e){return this.aria(`label`,e)}labelledBy(e){return this.aria(`labelledby`,e)}describedBy(e){return this.aria(`describedby`,e)}ariaHidden(e=!0){return this.aria(`hidden`,String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...t){let r=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(r(t)):e.concat(t),[]);return r(t).forEach(t=>{t!=null&&(t instanceof e?this.el.appendChild(t.build()):typeof t==`string`?n?this.el.appendChild(t):this.el.appendChild(document.createTextNode(t)):this.el.appendChild(t))}),this}replaceChildren(...e){if(n){let e=this.el;e.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,e=>{this.el.textContent=e}),this}ref(e){return e.current=this.el,this}shadow(e={mode:`closed`}){let t=this.el.attachShadow(e);return new w(this.el,t,e)}build(){return this.el}serialize(){if(n)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},w=class{root;hostEl;options;constructor(e,t,n){this.hostEl=e,this.root=t,this.options=n}children(...e){let t=e=>e.reduce((e,n)=>Array.isArray(n)?e.concat(t(n)):e.concat(n),[]);return t(e).forEach(e=>{e!=null&&(e instanceof C?this.root.appendChild(e.build()):typeof e==`string`?n?this.root.appendChild(e):this.root.appendChild(document.createTextNode(e)):this.root.appendChild(e))}),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(n)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<`u`)try{let t=new CSSStyleSheet;return t.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,t],this}catch{}let t=document.createElement(`style`);return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return n?this.root.serialize():this.root.innerHTML}},T=e=>new C(e),E=()=>T(`div`),D=()=>T(`slot`),O=class{_events=new Map;tap=(e,t)=>{this._events.get(e)&&e!==Symbol.for(`NEW_LISTENER`)&&this.call(Symbol.for(`NEW_LISTENER`),e);let n=this._events.get(e)||new Set;return typeof t==`function`?n.add({name:e,callback:t}):n.add(t),this._events.set(e,n),this};call=(e,...t)=>((this._events.get(e)||new Set).forEach(e=>{let{callback:n}=e;n(...t)}),this);callSync=async(e,...t)=>{let n=this._events.get(e)||new Set;for(let e of n){let{callback:n}=e;await n(...t)}return this};once=(e,t)=>{let n;if(typeof t==`function`)n={name:e,callback:(...r)=>{t(...r),this.off(e,n)},initialCallback:t};else{let{callback:r}=t;n={name:e,callback:(...t)=>{r(...t),this.off(e,n)},initialCallback:r}}return this.tap(e,n),this};off=(e,t)=>{let n=[...this._events.get(e)||new Set].filter(e=>{if(typeof t==`function`)return e.callback!==t&&e.initialCallback!==t;{let{callback:n}=t;return e.callback!==n&&e.initialCallback!==n}});return this._events.set(e,new Set(n)),this}},k=(e=8)=>Math.random().toString(36).substring(2,e+2),A=e=>typeof e==`function`,j=12e4,M=`__ranuts_bridge__`,N=`default`,P=new class{bridges=new Set;attachedWindow=null;handleMessage=e=>{for(let t of Array.from(this.bridges))t.receive(e)};add(e){this.bridges.add(e),typeof window<`u`&&this.attachedWindow!==window&&(window.addEventListener(`message`,this.handleMessage),this.attachedWindow=window)}remove(e){this.bridges.delete(e),this.bridges.size===0&&this.attachedWindow&&(this.attachedWindow.removeEventListener(`message`,this.handleMessage),this.attachedWindow=null)}},F=class{targetWindow;targetOrigin;messageHandlers;pendingRequests;channel;senderId;available;constructor(e,t=`*`,n=N){this.targetOrigin=t,this.channel=n,this.senderId=k(12),this.messageHandlers=new Map,this.pendingRequests=new Map,this.available=typeof window<`u`,this.available?(this.targetWindow=e??window,P.add(this)):this.targetWindow=void 0}post(e,t){let n={...t,__bridge:M,channel:this.channel,senderId:this.senderId};e.postMessage(n,this.targetOrigin)}receive=e=>{if(!this.available||this.targetOrigin!==`*`&&e.origin!==this.targetOrigin||e.source&&e.source!==this.targetWindow)return;let t=e.data;if(!t||typeof t!=`object`||t.__bridge!==`__ranuts_bridge__`||(t.channel??`default`)!==this.channel)return;let{type:n,payload:r,id:i,isResponse:a,isError:o,senderId:s}=t;if(a&&i){let e=this.pendingRequests.get(i);e&&(o?e.reject(Error(typeof r==`string`?r:`Bridge request failed`)):e.resolve(r),this.pendingRequests.delete(i));return}if(s&&s===this.senderId||typeof n!=`string`||!this.messageHandlers.has(n))return;let c=this.messageHandlers.get(n);if(A(c)){let t=e.source??this.targetWindow;Promise.resolve(c(r)).then(e=>{i&&this.post(t,{type:n,payload:e,id:i,isResponse:!0})}).catch(e=>{i&&this.post(t,{type:n,payload:e instanceof Error?e.message:String(e),id:i,isResponse:!0,isError:!0})})}};on=(e,t)=>{this.messageHandlers.set(e,t)};off=e=>{this.messageHandlers.delete(e)};send=async(e,t)=>{if(!this.available)return Promise.reject(Error(`PostMessageBridge is unavailable outside a browser environment`));let n=k(10);return new Promise((r,i)=>{let a=setTimeout(()=>{this.pendingRequests.has(n)&&(this.pendingRequests.delete(n),i(Error(`Request timeout`)))},j),o=e=>{clearTimeout(a),i(e)};this.pendingRequests.set(n,{resolve:e=>{clearTimeout(a),r(e)},reject:o});try{this.post(this.targetWindow,{type:e,payload:t,id:n})}catch(e){this.pendingRequests.delete(n),o(e instanceof Error?e:Error(`Failed to post message`))}})};broadcast=e=>{if(this.available)try{this.post(this.targetWindow,{type:e.type,payload:e.payload})}catch{}};destroy=()=>{P.remove(this),this.messageHandlers.clear(),this.pendingRequests.forEach(e=>{e.reject(Error(`Bridge destroyed`))}),this.pendingRequests.clear()}};(class e{static instance;bridges=new Map;constructor(){}static getInstance(){return e.instance||=new e,e.instance}connectClient=({id:e,targetOrigin:t,targetWindow:n,channel:r})=>{let i=new F(n,t,r);if(e||=k(10),this.bridges.has(e))throw Error(`Bridge ${e} already exists`);return this.bridges.set(e,i),{bridge:i,id:e}};getClient=e=>this.bridges.get(e);removeClient=e=>{let t=this.bridges.get(e);t&&(t.destroy(),this.bridges.delete(e))};removeAllClient=()=>{this.bridges.forEach(e=>{e.destroy()}),this.bridges.clear()};broadcast=e=>{this.bridges.forEach(t=>{t.broadcast(e)})};sendTo=(e,t,n)=>{let r=this.getClient(e);return r?r.send(t,n):Promise.reject(Error(`Bridge ${e} not found`))}}).getInstance(),new O;var I=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],L=class{highOrder;lowOrder;constructor(e,t){this.highOrder=e,this.lowOrder=t}};new L(I[0],3609767458),new L(I[1],602891725),new L(I[2],3964484399),new L(I[3],2173295548),new L(I[4],4081628472),new L(I[5],3053834265),new L(I[6],2937671579),new L(I[7],3664609560),new L(I[8],2734883394),new L(I[9],1164996542),new L(I[10],1323610764),new L(I[11],3590304994),new L(I[12],4068182383),new L(I[13],991336113),new L(I[14],633803317),new L(I[15],3479774868),new L(I[16],2666613458),new L(I[17],944711139),new L(I[18],2341262773),new L(I[19],2007800933),new L(I[20],1495990901),new L(I[21],1856431235),new L(I[22],3175218132),new L(I[23],2198950837),new L(I[24],3999719339),new L(I[25],766784016),new L(I[26],2566594879),new L(I[27],3203337956),new L(I[28],1034457026),new L(I[29],2466948901),new L(I[30],3758326383),new L(I[31],168717936),new L(I[32],1188179964),new L(I[33],1546045734),new L(I[34],1522805485),new L(I[35],2643833823),new L(I[36],2343527390),new L(I[37],1014477480),new L(I[38],1206759142),new L(I[39],344077627),new L(I[40],1290863460),new L(I[41],3158454273),new L(I[42],3505952657),new L(I[43],106217008),new L(I[44],3606008344),new L(I[45],1432725776),new L(I[46],1467031594),new L(I[47],851169720),new L(I[48],3100823752),new L(I[49],1363258195),new L(I[50],3750685593),new L(I[51],3785050280),new L(I[52],3318307427),new L(I[53],3812723403),new L(I[54],2003034995),new L(I[55],3602036899),new L(I[56],1575990012),new L(I[57],1125592928),new L(I[58],2716904306),new L(I[59],442776044),new L(I[60],593698344),new L(I[61],3733110249),new L(I[62],2999351573),new L(I[63],3815920427),new L(3391569614,3928383900),new L(3515267271,566280711),new L(3940187606,3454069534),new L(4118630271,4000239992),new L(116418474,1914138554),new L(174292421,2731055270),new L(289380356,3203993006),new L(460393269,320620315),new L(685471733,587496836),new L(852142971,1086792851),new L(1017036298,365543100),new L(1126000580,2618297676),new L(1288033470,3409855158),new L(1501505948,4234509866),new L(1607167915,987167468),new L(1816402316,1246189591),new L(0,1),new L(0,32898),new L(2147483648,32906),new L(2147483648,2147516416),new L(0,32907),new L(0,2147483649),new L(2147483648,2147516545),new L(2147483648,32777),new L(0,138),new L(0,136),new L(0,2147516425),new L(0,2147483658),new L(0,2147516555),new L(2147483648,139),new L(2147483648,32905),new L(2147483648,32771),new L(2147483648,32770),new L(2147483648,128),new L(0,32778),new L(2147483648,2147483658),new L(2147483648,2147516545),new L(2147483648,32896),new L(0,2147483649),new L(2147483648,2147516424);var R=new Map([[100,`Continue`],[101,`Switching Protocols`],[102,`Processing`],[103,`Early Hints`],[200,`OK`],[201,`Created`],[202,`Accepted`],[203,`Non-Authoritative Information`],[204,`No Content`],[205,`Reset Content`],[206,`Partial Content`],[207,`Multi-Status`],[208,`Already Reported`],[226,`IM Used`],[300,`Multiple Choices`],[301,`Moved Permanently`],[302,`Found`],[303,`See Other`],[304,`Not Modified`],[305,`Use Proxy`],[307,`Temporary Redirect`],[308,`Permanent Redirect`],[400,`Bad Request`],[401,`Unauthorized`],[402,`Payment Required`],[403,`Forbidden`],[404,`Not Found`],[405,`Method Not Allowed`],[406,`Not Acceptable`],[407,`Proxy Authentication Required`],[408,`Request Timeout`],[409,`Conflict`],[410,`Gone`],[411,`Length Required`],[412,`Precondition Failed`],[413,`Payload Too Large`],[414,`URI Too Long`],[415,`Unsupported Media Type`],[416,`Range Not Satisfiable`],[417,`Expectation Failed`],[418,`I'm a Teapot`],[421,`Misdirected Request`],[422,`Unprocessable Entity`],[423,`Locked`],[424,`Failed Dependency`],[425,`Too Early`],[426,`Upgrade Required`],[428,`Precondition Required`],[429,`Too Many Requests`],[431,`Request Header Fields Too Large`],[451,`Unavailable For Legal Reasons`],[500,`Internal Server Error`],[501,`Not Implemented`],[502,`Bad Gateway`],[503,`Service Unavailable`],[504,`Gateway Timeout`],[505,`HTTP Version Not Supported`],[506,`Variant Also Negotiates`],[507,`Insufficient Storage`],[508,`Loop Detected`],[509,`Bandwidth Limit Exceeded`],[510,`Not Extended`],[511,`Network Authentication Required`]]);(function(e){let t=new Map;for(let[n,r]of e)t.set(r.toLowerCase(),n);return t})(R),function(e){let t=[];for(let[n,r]of e)t.push(n);return t}(R);var z=new Map;function B(e,t){n?(z.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}var V=typeof document<`u`?HTMLElement:x,H=new Map,U=new Map,W=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!H.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),H.set(t,e)}let n=H.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!e.querySelector(`style[data-ranui]`)){let n=document.createElement(`style`);n.setAttribute(`data-ranui`,``),n.textContent=t,e.appendChild(n)}}},G=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!U.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),U.set(t,e)}let n=U.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!Array.from(e.querySelectorAll(`style[data-ranui-sheet]`)).some(e=>e.textContent===t)){let n=document.createElement(`style`);n.setAttribute(`data-ranui-sheet`,``),n.textContent=t,e.appendChild(n)}}},K=new WeakMap,q=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,J=(e,t=``,n={mode:`closed`})=>{let r=e.shadowRoot||K.get(e)||e.attachShadow(n);return K.set(e,r),W(r,t?`${t}\n${q}`:q),r},Y=(e,t,n)=>{let r=e.querySelector(t);if(r)return r;let i=n();return e.appendChild(i),i},X=(e,t,n=``)=>e.getAttribute(t)??n,Z=(e,t,n,r={})=>{if(r.removeEmpty&&!n){e.removeAttribute(t);return}e.setAttribute(t,n??``)},Q=(e,t,n,r,i)=>{if(n!==`sheet`||r===i)return;let a=e.getAttribute(`sheet`)||``;a&&G(t,a)},$=class extends V{_shadowDom;_titleEl;_descriptionEl;_headerEl;_footerEl;static get observedAttributes(){return[`title`,`description`,`sheet`,`hoverable`]}constructor(){super(),this._shadowDom=J(this,t);let e=Y(this._shadowDom,`.ran-card`,()=>E().class(`ran-card`).attr(`part`,`card`).children(E().class(`ran-card-header`).attr(`part`,`header`).children(E().class(`ran-card-title-area`).children(E().class(`ran-card-title`).attr(`part`,`title`),E().class(`ran-card-description`).attr(`part`,`description`)),D().attr(`name`,`extra`).attr(`part`,`extra`)),E().class(`ran-card-body`).attr(`part`,`body`).children(D()),E().class(`ran-card-footer`).attr(`part`,`footer`).children(D().attr(`name`,`footer`))).build());this._headerEl=e.querySelector(`.ran-card-header`),this._titleEl=e.querySelector(`.ran-card-title`),this._descriptionEl=e.querySelector(`.ran-card-description`),this._footerEl=e.querySelector(`.ran-card-footer`),this._footerEl.style.display=`none`;let n=this._footerEl.querySelector(`slot[name="footer"]`);n.addEventListener(`slotchange`,()=>{this._footerEl.style.display=n.assignedElements().length>0?``:`none`})}get title(){return X(this,`title`)}set title(e){Z(this,`title`,e)}get description(){return X(this,`description`)}set description(e){Z(this,`description`,e)}get sheet(){return X(this,`sheet`)}set sheet(e){Z(this,`sheet`,e)}get hoverable(){return this.hasAttribute(`hoverable`)}set hoverable(e){e?this.setAttribute(`hoverable`,``):this.removeAttribute(`hoverable`)}_syncTitle(){this._titleEl.textContent=this.getAttribute(`title`)??``}_syncDescription(){this._descriptionEl.textContent=this.getAttribute(`description`)??``}connectedCallback(){this._syncTitle(),this._syncDescription(),Q(this,this._shadowDom,`sheet`,null,this.sheet)}attributeChangedCallback(e,t,n){t!==n&&(e===`title`&&this._syncTitle(),e===`description`&&this._syncDescription(),e===`sheet`&&Q(this,this._shadowDom,e,t,n))}};return B(`r-card`,$),e.Card=$,e.default=$,e})({});
|
|
1
|
+
var ranui_card=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=`.remove-wap-active-focus,.remove-wap-active-focus:active,.remove-wap-active-focus:focus{-webkit-tap-highlight-color:transparent;outline:0}:host{display:var(--ran-card-display,block);box-sizing:border-box;min-height:var(--ran-card-min-height,0)}:host([hoverable]:hover) .ran-card{border-color:var(--ran-card-hover-border-color,var(--ran-color-border-hover,#c9c9c9));box-shadow:var(--ran-card-hover-shadow,var(--ran-shadow-elevated,0 1px 2px #0000000a))}.ran-card{align-content:start;gap:var(--ran-card-gap,14px);min-width:0;height:100%;padding:var(--ran-card-padding,16px);border-width:var(--ran-skin-border-width,1px);border-style:var(--ran-skin-border-style,solid);border-color:var(--ran-card-border-color,var(--ran-color-border,#eaeaea));border-radius:var(--ran-card-radius,var(--ran-radius-md));background:var(--ran-card-background,var(--ran-color-bg));box-shadow:var(--ran-card-shadow,none);box-sizing:border-box;display:grid}.ran-card-header{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.ran-card-title-area{flex:1;min-width:0}.ran-card-title{color:var(--ran-card-title-color,var(--ran-color-text));font-size:var(--ran-card-title-font-size,16px);font-weight:var(--ran-card-title-font-weight,600);margin:0;line-height:1.3}.ran-card-title:empty{display:none}.ran-card-description{color:var(--ran-card-description-color,var(--ran-color-text-secondary));font-size:var(--ran-card-description-font-size,14px);margin:4px 0 0;line-height:1.5}.ran-card-description:empty{display:none}.ran-card-body,.ran-card-footer{min-width:0}:host(:not([title]):not([description])) .ran-card-header{display:none}`,n=typeof document>`u`,r=0,i=1,a=2,o=null,s=null,c=0,l=new Set,u=!1;function d(e,t){let n=t?.equals??Object.is,r={value:e,observers:new Set};return[()=>(te(r),r.value),e=>{let t=typeof e==`function`?e(r.value):e;if(!n(r.value,t)){r.value=t;for(let e of r.observers)g(e,a);c===0&&_()}}]}function f(e){let t=ee(e,!0);return h(t),y(t),()=>x(t)}function p(e){let t={owned:[],cleanups:[],owner:s},n=s,r=o;s=t,o=null;try{return e(()=>S(t))}finally{s=n,o=r}}function m(e){s&&s.cleanups.push(e)}function ee(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:a,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:s}}function h(e){s&&s.owned.push(e)}function te(e){o&&(o.sources.add(e),e.observers.add(o))}function g(e,t){if(e.disposed||e.state>=t)return;let n=e.state===r;if(e.state=t,e.isEffect)l.add(e);else if(n)for(let t of e.observers)g(t,i)}function _(){if(!(c>0||u)){u=!0;try{for(;l.size>0;){let e=[...l];l.clear();for(let t of e)t.disposed||v(t)}}finally{u=!1}}}function v(e){if(!(e.disposed||e.state===r)){if(e.state===i)for(let t of e.sources)`fn`in t&&v(t);e.state===a&&y(e),e.state=r}}function y(e){if(e.running)throw Error(`ranui reactivity: cyclic dependency detected (a computation triggered itself).`);b(e);let t=o,n=s;o=e,s=e,e.running=!0,e.state=r;try{let t=e.fn();if(e.isEffect)typeof t==`function`&&e.cleanups.push(t);else{let n=e.value;if(e.value=t,e.observers.size>0&&!e.equals(n,t))for(let t of e.observers)g(t,a)}}finally{e.running=!1,o=t,s=n}}function b(e){for(let t of e.owned)x(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0;for(let t of e.sources)t.observers.delete(e);e.sources.clear()}function x(e){e.disposed||(e.disposed=!0,b(e),e.observers.clear())}function S(e){for(let t of e.owned)x(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0}function C(e){return typeof e==`string`?e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):String(e)}function w(e){return C(e)}var ne=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,re=(e,t)=>{let n=t.trim();if(!n)return!1;if(n.startsWith(`.`))return e.classList.contains(n.slice(1));if(n.startsWith(`#`))return e.getAttribute(`id`)===n.slice(1);if(n.startsWith(`[`)&&n.endsWith(`]`)){let[t,r]=n.slice(1,-1).trim().split(`=`),i=(t||``).trim();if(!i)return!1;if(r==null)return e.hasAttribute(i);let a=r.trim().replace(/^['"]|['"]$/g,``);return e.getAttribute(i)===a}return e.tagName===n.toLowerCase()},T=(e,t,n)=>{for(let r of e)ne(r)&&(re(r,t)&&n.push(r),T(r.childrenList,t,n))},E=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}serialize(){return this.childrenList.map(e=>typeof e==`string`?C(e):e.serialize()).join(``)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return T(this.childrenList,e,t),t}},D=class{tagName;attributes=new Map;inlineStyles=new Map;childrenList=[];shadowRoot=null;textContent=null;content;eventListeners=new Map;style={setProperty:(e,t)=>{let n=e.startsWith(`--`)?e:e.replace(/([A-Z])/g,`-$1`).toLowerCase();this.inlineStyles.set(n,t)},removeProperty:e=>this.inlineStyles.delete(e)};classList={add:(...e)=>{let t=this.attributes.get(`class`)||``,n=new Set([...t.split(` `).filter(Boolean),...e]);this.attributes.set(`class`,Array.from(n).join(` `))},remove:(...e)=>{let t=(this.attributes.get(`class`)||``).split(` `).filter(t=>!e.includes(t));this.attributes.set(`class`,t.join(` `))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get(`class`)||``).split(` `).includes(e)};_innerHTML=``;get innerHTML(){return this._innerHTML}set innerHTML(e){this._innerHTML=e,this.tagName===`template`&&this.content&&(this.content.childrenList=[e])}constructor(e=`div`){this.tagName=e.toLowerCase(),this.tagName===`template`&&(this.content=new E)}get hidden(){return this.hasAttribute(`hidden`)}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}attachShadow(e){return this.shadowRoot=new O(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return T(this.childrenList,e,t),t}addEventListener(e,t){let n=this.eventListeners.get(e)||new Set;n.add(t),this.eventListeners.set(e,n)}removeEventListener(e,t){let n=this.eventListeners.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners.delete(e))}dispatchEvent(e){let t=this.eventListeners.get(e.type);if(!t||t.size===0)return!0;for(let n of t)typeof n==`function`?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize==`function`&&this._preSerialize();let t=e||this._ssrTag||this.tagName,n=Array.from(this.attributes.entries()).map(([e,t])=>` ${e}="${w(t)}"`).join(``),r=Array.from(this.inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`),i=r?` style="${w(r)}"`:``,a=``;return this.shadowRoot&&(a+=this.shadowRoot.serialize()),this.textContent===null?this._innerHTML?a+=this._innerHTML:a+=this.childrenList.map(e=>typeof e==`string`?C(e):(e instanceof E,e.serialize())).join(``):a+=C(this.textContent),[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`].includes(t)&&!a?`<${t}${n}${i} />`:`<${t}${n}${i}>${a}</${t}>`}},O=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}appendChild(e){return this.childrenList.push(e),e}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return T(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?` shadowrootdelegatesfocus`:``}>${this.adoptedStyleSheets.map(e=>`<style>${C(e)}</style>`).join(``)}${this.childrenList.map(e=>typeof e==`string`?C(e):(e instanceof E,e.serialize())).join(``)}</template>`}},k=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(k(t)):e.concat(t),[]),A=e=>e==null?null:e instanceof N?e.build():typeof e==`string`?n?e:document.createTextNode(e):e,ie=(e,t)=>{if(n){k([t()]).forEach(t=>{let n=A(t);n!=null&&e.appendChild(n)});return}let r=document.createComment(``);e.appendChild(r);let i=[];f(()=>{let e=k([t()]);for(let e of i)e.parentNode?.removeChild(e);let n=[],a=r;for(let t of e){let e=A(t);e!=null&&(a.after(e),a=e,n.push(e))}i=n})},ae=`__ranFor`,oe=e=>typeof e==`object`&&!!e&&e[ae]===!0,se=(e,t,n)=>{let[r,i]=d(t),a=null,o=p(t=>{let i=A(n(e,r));return a=typeof i==`string`?document.createTextNode(i):i,t});return{node:a,index:i,dispose:o}},j=(e,t)=>{let n=e.parentNode;if(!n)return;let r=e;for(let e of t)r.nextSibling!==e&&n.insertBefore(e,r.nextSibling),r=e},ce=(e,t)=>{if(n){(t.each()??[]).forEach((n,r)=>{let i=A(t.render(n,()=>r));i!=null&&e.appendChild(i)});return}let r=document.createComment(``);e.appendChild(r);let i=new Map;m(()=>{for(let e of i.values())e.dispose();i.clear()}),f(()=>{let e=t.each()??[],n=new Map,a=[];e.forEach((e,r)=>{let o=t.key(e,r);if(n.has(o))return;let s=i.get(o);s?(i.delete(o),s.index(r)):s=se(e,r,t.render),n.set(o,s),s.node&&a.push(s.node)});for(let e of i.values())e.node?.parentNode?.removeChild(e.node),e.dispose();j(r,a),i=n})},le=`__ranIndex`,ue=e=>typeof e==`object`&&!!e&&e[le]===!0,de=(e,t,n)=>{let[r,i]=d(e),a=null,o=p(e=>{let i=A(n(r,t));return a=typeof i==`string`?document.createTextNode(i):i,e});return{node:a,setItem:i,dispose:o}},fe=(e,t)=>{if(n){(t.each()??[]).forEach((n,r)=>{let i=A(t.render(()=>n,r));i!=null&&e.appendChild(i)});return}let r=document.createComment(``);e.appendChild(r);let i=[];m(()=>{for(let e of i)e.dispose();i=[]}),f(()=>{let e=t.each()??[];for(let n=0;n<e.length;n++)n<i.length?i[n].setItem(e[n]):i.push(de(e[n],n,t.render));for(let t=i.length-1;t>=e.length;t--){let{node:e}=i[t];e?.parentNode?.removeChild(e),i[t].dispose(),i.pop()}j(r,i.map(e=>e.node).filter(e=>e!=null))})},M=(e,t)=>{k(t).forEach(t=>{if(oe(t)){ce(e,t);return}if(ue(t)){fe(e,t);return}if(typeof t==`function`){ie(e,t);return}let n=A(t);n!=null&&e.appendChild(n)})},N=class{el;constructor(e){this.el=n?new D(e):document.createElement(e)}id(e){return this.el.setAttribute(`id`,e),this}bind(e,t){typeof e==`function`?f(()=>t(e())):t(e)}class(e){return this.bind(e,e=>{n?this.el.attributes.set(`class`,e):this.el.className=e}),this}addClass(...e){return e.forEach(e=>this.el.classList.add(e)),this}removeClass(...e){return e.forEach(e=>this.el.classList.remove(e)),this}attr(e,t){return this.bind(t,t=>this.el.setAttribute(e,t)),this}attrs(e){return Object.entries(e).forEach(([e,t])=>{t!=null&&this.el.setAttribute(e,String(t))}),this}boolAttr(e,t,n=``){return this.bind(t,t=>{t?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr(`part`,e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e==`string`?this.bind(t??``,t=>this.el.style.setProperty(e,t)):Object.entries(e).forEach(([e,t])=>this.el.style.setProperty(e,t)),this}cssVar(e,t){let n=e.startsWith(`--`)?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr(`role`,e)}tabIndex(e){return this.attr(`tabindex`,String(e))}label(e){return this.aria(`label`,e)}labelledBy(e){return this.aria(`labelledby`,e)}describedBy(e){return this.aria(`describedby`,e)}ariaHidden(e=!0){return this.aria(`hidden`,String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...e){return M(this.el,e),this}replaceChildren(...e){if(n){let e=this.el;e.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,e=>{this.el.textContent=e}),this}ref(e){return e.current=this.el,this}shadow(e={mode:`closed`}){let t=this.el.attachShadow(e);return new P(this.el,t,e)}build(){return this.el}serialize(){if(n)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},P=class{root;hostEl;options;constructor(e,t,n){this.hostEl=e,this.root=t,this.options=n}children(...e){return M(this.root,e),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(n)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<`u`)try{let t=new CSSStyleSheet;return t.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,t],this}catch{}let t=document.createElement(`style`);return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return n?this.root.serialize():this.root.innerHTML}},F=e=>new N(e),I=()=>F(`div`),L=()=>F(`slot`),R=class{_events=new Map;tap=(e,t)=>{this._events.get(e)&&e!==Symbol.for(`NEW_LISTENER`)&&this.call(Symbol.for(`NEW_LISTENER`),e);let n=this._events.get(e)||new Set;return typeof t==`function`?n.add({name:e,callback:t}):n.add(t),this._events.set(e,n),this};call=(e,...t)=>((this._events.get(e)||new Set).forEach(e=>{let{callback:n}=e;n(...t)}),this);callSync=async(e,...t)=>{let n=this._events.get(e)||new Set;for(let e of n){let{callback:n}=e;await n(...t)}return this};once=(e,t)=>{let n;if(typeof t==`function`)n={name:e,callback:(...r)=>{t(...r),this.off(e,n)},initialCallback:t};else{let{callback:r}=t;n={name:e,callback:(...t)=>{r(...t),this.off(e,n)},initialCallback:r}}return this.tap(e,n),this};off=(e,t)=>{let n=[...this._events.get(e)||new Set].filter(e=>{if(typeof t==`function`)return e.callback!==t&&e.initialCallback!==t;{let{callback:n}=t;return e.callback!==n&&e.initialCallback!==n}});return this._events.set(e,new Set(n)),this}},z=(e=8)=>Math.random().toString(36).substring(2,e+2),B=e=>typeof e==`function`,pe=12e4,me=`__ranuts_bridge__`,he=`default`,V=new class{bridges=new Set;attachedWindow=null;handleMessage=e=>{for(let t of Array.from(this.bridges))t.receive(e)};add(e){this.bridges.add(e),typeof window<`u`&&this.attachedWindow!==window&&(window.addEventListener(`message`,this.handleMessage),this.attachedWindow=window)}remove(e){this.bridges.delete(e),this.bridges.size===0&&this.attachedWindow&&(this.attachedWindow.removeEventListener(`message`,this.handleMessage),this.attachedWindow=null)}},ge=class{targetWindow;targetOrigin;messageHandlers;pendingRequests;channel;senderId;available;constructor(e,t=`*`,n=he){this.targetOrigin=t,this.channel=n,this.senderId=z(12),this.messageHandlers=new Map,this.pendingRequests=new Map,this.available=typeof window<`u`,this.available?(this.targetWindow=e??window,V.add(this)):this.targetWindow=void 0}post(e,t){let n={...t,__bridge:me,channel:this.channel,senderId:this.senderId};e.postMessage(n,this.targetOrigin)}receive=e=>{if(!this.available||this.targetOrigin!==`*`&&e.origin!==this.targetOrigin||e.source&&e.source!==this.targetWindow)return;let t=e.data;if(!t||typeof t!=`object`||t.__bridge!==`__ranuts_bridge__`||(t.channel??`default`)!==this.channel)return;let{type:n,payload:r,id:i,isResponse:a,isError:o,senderId:s}=t;if(a&&i){let e=this.pendingRequests.get(i);e&&(o?e.reject(Error(typeof r==`string`?r:`Bridge request failed`)):e.resolve(r),this.pendingRequests.delete(i));return}if(s&&s===this.senderId||typeof n!=`string`||!this.messageHandlers.has(n))return;let c=this.messageHandlers.get(n);if(B(c)){let t=e.source??this.targetWindow;Promise.resolve(c(r)).then(e=>{i&&this.post(t,{type:n,payload:e,id:i,isResponse:!0})}).catch(e=>{i&&this.post(t,{type:n,payload:e instanceof Error?e.message:String(e),id:i,isResponse:!0,isError:!0})})}};on=(e,t)=>{this.messageHandlers.set(e,t)};off=e=>{this.messageHandlers.delete(e)};send=async(e,t)=>{if(!this.available)return Promise.reject(Error(`PostMessageBridge is unavailable outside a browser environment`));let n=z(10);return new Promise((r,i)=>{let a=setTimeout(()=>{this.pendingRequests.has(n)&&(this.pendingRequests.delete(n),i(Error(`Request timeout`)))},pe),o=e=>{clearTimeout(a),i(e)};this.pendingRequests.set(n,{resolve:e=>{clearTimeout(a),r(e)},reject:o});try{this.post(this.targetWindow,{type:e,payload:t,id:n})}catch(e){this.pendingRequests.delete(n),o(e instanceof Error?e:Error(`Failed to post message`))}})};broadcast=e=>{if(this.available)try{this.post(this.targetWindow,{type:e.type,payload:e.payload})}catch{}};destroy=()=>{V.remove(this),this.messageHandlers.clear(),this.pendingRequests.forEach(e=>{e.reject(Error(`Bridge destroyed`))}),this.pendingRequests.clear()}};(class e{static instance;bridges=new Map;constructor(){}static getInstance(){return e.instance||=new e,e.instance}connectClient=({id:e,targetOrigin:t,targetWindow:n,channel:r})=>{let i=new ge(n,t,r);if(e||=z(10),this.bridges.has(e))throw Error(`Bridge ${e} already exists`);return this.bridges.set(e,i),{bridge:i,id:e}};getClient=e=>this.bridges.get(e);removeClient=e=>{let t=this.bridges.get(e);t&&(t.destroy(),this.bridges.delete(e))};removeAllClient=()=>{this.bridges.forEach(e=>{e.destroy()}),this.bridges.clear()};broadcast=e=>{this.bridges.forEach(t=>{t.broadcast(e)})};sendTo=(e,t,n)=>{let r=this.getClient(e);return r?r.send(t,n):Promise.reject(Error(`Bridge ${e} not found`))}}).getInstance(),new R;var H=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],U=class{highOrder;lowOrder;constructor(e,t){this.highOrder=e,this.lowOrder=t}};new U(H[0],3609767458),new U(H[1],602891725),new U(H[2],3964484399),new U(H[3],2173295548),new U(H[4],4081628472),new U(H[5],3053834265),new U(H[6],2937671579),new U(H[7],3664609560),new U(H[8],2734883394),new U(H[9],1164996542),new U(H[10],1323610764),new U(H[11],3590304994),new U(H[12],4068182383),new U(H[13],991336113),new U(H[14],633803317),new U(H[15],3479774868),new U(H[16],2666613458),new U(H[17],944711139),new U(H[18],2341262773),new U(H[19],2007800933),new U(H[20],1495990901),new U(H[21],1856431235),new U(H[22],3175218132),new U(H[23],2198950837),new U(H[24],3999719339),new U(H[25],766784016),new U(H[26],2566594879),new U(H[27],3203337956),new U(H[28],1034457026),new U(H[29],2466948901),new U(H[30],3758326383),new U(H[31],168717936),new U(H[32],1188179964),new U(H[33],1546045734),new U(H[34],1522805485),new U(H[35],2643833823),new U(H[36],2343527390),new U(H[37],1014477480),new U(H[38],1206759142),new U(H[39],344077627),new U(H[40],1290863460),new U(H[41],3158454273),new U(H[42],3505952657),new U(H[43],106217008),new U(H[44],3606008344),new U(H[45],1432725776),new U(H[46],1467031594),new U(H[47],851169720),new U(H[48],3100823752),new U(H[49],1363258195),new U(H[50],3750685593),new U(H[51],3785050280),new U(H[52],3318307427),new U(H[53],3812723403),new U(H[54],2003034995),new U(H[55],3602036899),new U(H[56],1575990012),new U(H[57],1125592928),new U(H[58],2716904306),new U(H[59],442776044),new U(H[60],593698344),new U(H[61],3733110249),new U(H[62],2999351573),new U(H[63],3815920427),new U(3391569614,3928383900),new U(3515267271,566280711),new U(3940187606,3454069534),new U(4118630271,4000239992),new U(116418474,1914138554),new U(174292421,2731055270),new U(289380356,3203993006),new U(460393269,320620315),new U(685471733,587496836),new U(852142971,1086792851),new U(1017036298,365543100),new U(1126000580,2618297676),new U(1288033470,3409855158),new U(1501505948,4234509866),new U(1607167915,987167468),new U(1816402316,1246189591),new U(0,1),new U(0,32898),new U(2147483648,32906),new U(2147483648,2147516416),new U(0,32907),new U(0,2147483649),new U(2147483648,2147516545),new U(2147483648,32777),new U(0,138),new U(0,136),new U(0,2147516425),new U(0,2147483658),new U(0,2147516555),new U(2147483648,139),new U(2147483648,32905),new U(2147483648,32771),new U(2147483648,32770),new U(2147483648,128),new U(0,32778),new U(2147483648,2147483658),new U(2147483648,2147516545),new U(2147483648,32896),new U(0,2147483649),new U(2147483648,2147516424);var W=new Map([[100,`Continue`],[101,`Switching Protocols`],[102,`Processing`],[103,`Early Hints`],[200,`OK`],[201,`Created`],[202,`Accepted`],[203,`Non-Authoritative Information`],[204,`No Content`],[205,`Reset Content`],[206,`Partial Content`],[207,`Multi-Status`],[208,`Already Reported`],[226,`IM Used`],[300,`Multiple Choices`],[301,`Moved Permanently`],[302,`Found`],[303,`See Other`],[304,`Not Modified`],[305,`Use Proxy`],[307,`Temporary Redirect`],[308,`Permanent Redirect`],[400,`Bad Request`],[401,`Unauthorized`],[402,`Payment Required`],[403,`Forbidden`],[404,`Not Found`],[405,`Method Not Allowed`],[406,`Not Acceptable`],[407,`Proxy Authentication Required`],[408,`Request Timeout`],[409,`Conflict`],[410,`Gone`],[411,`Length Required`],[412,`Precondition Failed`],[413,`Payload Too Large`],[414,`URI Too Long`],[415,`Unsupported Media Type`],[416,`Range Not Satisfiable`],[417,`Expectation Failed`],[418,`I'm a Teapot`],[421,`Misdirected Request`],[422,`Unprocessable Entity`],[423,`Locked`],[424,`Failed Dependency`],[425,`Too Early`],[426,`Upgrade Required`],[428,`Precondition Required`],[429,`Too Many Requests`],[431,`Request Header Fields Too Large`],[451,`Unavailable For Legal Reasons`],[500,`Internal Server Error`],[501,`Not Implemented`],[502,`Bad Gateway`],[503,`Service Unavailable`],[504,`Gateway Timeout`],[505,`HTTP Version Not Supported`],[506,`Variant Also Negotiates`],[507,`Insufficient Storage`],[508,`Loop Detected`],[509,`Bandwidth Limit Exceeded`],[510,`Not Extended`],[511,`Network Authentication Required`]]);(function(e){let t=new Map;for(let[n,r]of e)t.set(r.toLowerCase(),n);return t})(W),function(e){let t=[];for(let[n,r]of e)t.push(n);return t}(W);var _e=new Map;function ve(e,t){n?(_e.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}var ye=typeof document<`u`?HTMLElement:D,G=new Map,K=new Map,q=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!G.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),G.set(t,e)}let n=G.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!e.querySelector(`style[data-ranui]`)){let n=document.createElement(`style`);n.setAttribute(`data-ranui`,``),n.textContent=t,e.appendChild(n)}}},be=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!K.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),K.set(t,e)}let n=K.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!Array.from(e.querySelectorAll(`style[data-ranui-sheet]`)).some(e=>e.textContent===t)){let n=document.createElement(`style`);n.setAttribute(`data-ranui-sheet`,``),n.textContent=t,e.appendChild(n)}}},J=new WeakMap,Y=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,xe=(e,t=``,n={mode:`closed`})=>{let r=e.shadowRoot||J.get(e)||e.attachShadow(n);return J.set(e,r),q(r,t?`${t}\n${Y}`:Y),r},Se=(e,t,n)=>{let r=e.querySelector(t);if(r)return r;let i=n();return e.appendChild(i),i},X=(e,t,n=``)=>e.getAttribute(t)??n,Z=(e,t,n,r={})=>{if(r.removeEmpty&&!n){e.removeAttribute(t);return}e.setAttribute(t,n??``)},Q=(e,t,n,r,i)=>{if(n!==`sheet`||r===i)return;let a=e.getAttribute(`sheet`)||``;a&&be(t,a)},$=class extends ye{_shadowDom;_titleEl;_descriptionEl;_headerEl;_footerEl;static get observedAttributes(){return[`title`,`description`,`sheet`,`hoverable`]}constructor(){super(),this._shadowDom=xe(this,t);let e=Se(this._shadowDom,`.ran-card`,()=>I().class(`ran-card`).attr(`part`,`card`).children(I().class(`ran-card-header`).attr(`part`,`header`).children(I().class(`ran-card-title-area`).children(I().class(`ran-card-title`).attr(`part`,`title`),I().class(`ran-card-description`).attr(`part`,`description`)),L().attr(`name`,`extra`).attr(`part`,`extra`)),I().class(`ran-card-body`).attr(`part`,`body`).children(L()),I().class(`ran-card-footer`).attr(`part`,`footer`).children(L().attr(`name`,`footer`))).build());this._headerEl=e.querySelector(`.ran-card-header`),this._titleEl=e.querySelector(`.ran-card-title`),this._descriptionEl=e.querySelector(`.ran-card-description`),this._footerEl=e.querySelector(`.ran-card-footer`),this._footerEl.style.display=`none`;let n=this._footerEl.querySelector(`slot[name="footer"]`);n.addEventListener(`slotchange`,()=>{this._footerEl.style.display=n.assignedElements().length>0?``:`none`})}get title(){return X(this,`title`)}set title(e){Z(this,`title`,e)}get description(){return X(this,`description`)}set description(e){Z(this,`description`,e)}get sheet(){return X(this,`sheet`)}set sheet(e){Z(this,`sheet`,e)}get hoverable(){return this.hasAttribute(`hoverable`)}set hoverable(e){e?this.setAttribute(`hoverable`,``):this.removeAttribute(`hoverable`)}_syncTitle(){this._titleEl.textContent=this.getAttribute(`title`)??``}_syncDescription(){this._descriptionEl.textContent=this.getAttribute(`description`)??``}connectedCallback(){this._syncTitle(),this._syncDescription(),Q(this,this._shadowDom,`sheet`,null,this.sheet)}attributeChangedCallback(e,t,n){t!==n&&(e===`title`&&this._syncTitle(),e===`description`&&this._syncDescription(),e===`sheet`&&Q(this,this._shadowDom,e,t,n))}};return ve(`r-card`,$),e.Card=$,e.default=$,e})({});
|