@hina114514/chaite 1.9.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/README.md +143 -0
- package/dist/__dirname-xAmdQ8wE.mjs +13 -0
- package/dist/__dirname.d.ts +4 -0
- package/dist/__dirname.mjs +4 -0
- package/dist/adapters-BeZFg37c.mjs +30 -0
- package/dist/chunks/@anthropic-ai/sdk/index.mjs-BBdoshoG.mjs +44887 -0
- package/dist/chunks/@google/genai/index.mjs-CJMm4uh0.mjs +25136 -0
- package/dist/chunks/@karinjs/node-schedule/index.mjs-UoPXNUgp.mjs +8403 -0
- package/dist/chunks/@xmldom/xmldom/index.mjs-BARr5-gb.mjs +4280 -0
- package/dist/chunks/accepts/index.mjs-BpfWQu4-.mjs +8009 -0
- package/dist/chunks/agent-base/index.mjs-BZ87hIEB.mjs +199 -0
- package/dist/chunks/array-flatten/index.mjs-CFicqOhD.mjs +54 -0
- package/dist/chunks/bluebird/index.mjs-D4zFjek8.mjs +4094 -0
- package/dist/chunks/body-parser/index.mjs-BrUY71SQ.mjs +13756 -0
- package/dist/chunks/chokidar/index.mjs-BvSuth5p.mjs +1537 -0
- package/dist/chunks/content-disposition/index.mjs-DqMQ6Fbz.mjs +307 -0
- package/dist/chunks/cookie/index.mjs-CTmQWCqd.mjs +243 -0
- package/dist/chunks/cookie-signature/index.mjs-CIA1F6JJ.mjs +46 -0
- package/dist/chunks/core-util-is/index.mjs-C0h_2dGX.mjs +69 -0
- package/dist/chunks/cors/index.mjs-DGt6p49t.mjs +311 -0
- package/dist/chunks/data-uri-to-buffer/index.mjs-CLj4bast.mjs +44 -0
- package/dist/chunks/debug/index.mjs-BgKBSuIO.mjs +703 -0
- package/dist/chunks/dingbat-to-unicode/index.mjs-DjR5pQCM.mjs +7481 -0
- package/dist/chunks/encodeurl/index.mjs-CvPRUh2S.mjs +105 -0
- package/dist/chunks/escape-html/index.mjs-CeA_Z7EO.mjs +65 -0
- package/dist/chunks/etag/index.mjs-D58ziXwz.mjs +80 -0
- package/dist/chunks/express/index.mjs-CHnhA_pr.mjs +6787 -0
- package/dist/chunks/fetch-blob/index.mjs-Pm1zUh3g.mjs +3803 -0
- package/dist/chunks/formdata-node/index.mjs-B2Ji6hC0.mjs +92 -0
- package/dist/chunks/formdata-polyfill/index.mjs-BTkafjCT.mjs +87 -0
- package/dist/chunks/https-proxy-agent/index.mjs-DTZuZn-J.mjs +239 -0
- package/dist/chunks/immediate/index.mjs-CkWjI_b-.mjs +59 -0
- package/dist/chunks/isarray/index.mjs-DaT02uUW.mjs +12 -0
- package/dist/chunks/jszip/index.mjs-CvfsTniy.mjs +8599 -0
- package/dist/chunks/lop/index.mjs-BWbOMJZv.mjs +3540 -0
- package/dist/chunks/mammoth/index.mjs-C9xwBIgf.mjs +5081 -0
- package/dist/chunks/node-fetch/index.mjs-Cdihbb0Q.mjs +1446 -0
- package/dist/chunks/openai/index.mjs-M-HPLtaS.mjs +6691 -0
- package/dist/dist-C0tgywA-.mjs +8 -0
- package/dist/fileFromPath-CJ_N7wA9.mjs +6 -0
- package/dist/index.d.ts +1579 -0
- package/dist/index.mjs +30 -0
- package/dist/multipart-parser-CCl_4A7w.mjs +6 -0
- package/dist/rolldown-runtime-DVriDoez.mjs +43 -0
- package/dist/src-BjDIhdKO.mjs +5179 -0
- package/dist/src-DmcKtGy2.mjs +7 -0
- package/dist/types-6jzst6Q4.mjs +30 -0
- package/frontend/build/assets/ChannelFormModal-1GO2eD4m.css +1 -0
- package/frontend/build/assets/ChannelFormModal-B6e7ZIO6.js +5 -0
- package/frontend/build/assets/ChannelFormModal-CV7fs6-7.js +5 -0
- package/frontend/build/assets/ChannelFormModal-DBZyhZDI.css +1 -0
- package/frontend/build/assets/ChannelFormModal-DL0qkZX-.js +5 -0
- package/frontend/build/assets/ChannelFormModal-DuAAlw-8.js +5 -0
- package/frontend/build/assets/ChannelFormModal-Hp6Y4QBc.js +5 -0
- package/frontend/build/assets/ChannelFormModal-xPhm1bZd.js +5 -0
- package/frontend/build/assets/Checkbox-BvK-NJJX.js +105 -0
- package/frontend/build/assets/Checkbox-CNMr2-eQ.js +105 -0
- package/frontend/build/assets/Checkbox-DOJuZG8N.js +105 -0
- package/frontend/build/assets/Checkbox-DWREbqxa.js +105 -0
- package/frontend/build/assets/Checkbox-HPhUtTKu.js +105 -0
- package/frontend/build/assets/Checkbox-gNUlkipW.js +105 -0
- package/frontend/build/assets/CollapseItem-7YFuTj31.js +41 -0
- package/frontend/build/assets/CollapseItem-BVnC3pah.js +41 -0
- package/frontend/build/assets/CollapseItem-Bk7f5wCb.js +41 -0
- package/frontend/build/assets/CollapseItem-Calq76Jj.js +41 -0
- package/frontend/build/assets/CollapseItem-DOnuDO5j.js +41 -0
- package/frontend/build/assets/CollapseItem-fWJBGjAw.js +41 -0
- package/frontend/build/assets/ConversationDetailDrawer-BYG2DS4S.js +1 -0
- package/frontend/build/assets/ConversationDetailDrawer-BYZeaeoF.js +1 -0
- package/frontend/build/assets/ConversationDetailDrawer-gVn82fSx.js +1 -0
- package/frontend/build/assets/ConversationDetailDrawer-jtT8U08c.js +1 -0
- package/frontend/build/assets/ConversationDetailDrawer-m-rNIWZj.js +1 -0
- package/frontend/build/assets/ConversationDetailDrawer-xbhamnIs.js +1 -0
- package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-BRZBnJxg.js +97 -0
- package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-BnR3ffRY.js +97 -0
- package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-C0KA87GQ.js +97 -0
- package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-CnLM8_TJ.js +97 -0
- package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-CzZvhLM_.js +97 -0
- package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-U0BsqrL8.js +97 -0
- package/frontend/build/assets/DataTable-4ViTZyB6.js +457 -0
- package/frontend/build/assets/DataTable-B8zZmlji.js +457 -0
- package/frontend/build/assets/DataTable-BNjopWG3.js +457 -0
- package/frontend/build/assets/DataTable-CZyItGh5.js +457 -0
- package/frontend/build/assets/DataTable-DJj26Pzn.js +454 -0
- package/frontend/build/assets/DataTable-DoEbD9LL.js +457 -0
- package/frontend/build/assets/DynamicTags-BccLo-fc.js +1 -0
- package/frontend/build/assets/DynamicTags-Bmg43ONH.js +1 -0
- package/frontend/build/assets/DynamicTags-CyLbZ9I2.js +1 -0
- package/frontend/build/assets/DynamicTags-DNTdDdGA.js +1 -0
- package/frontend/build/assets/DynamicTags-VCyQf17w.js +1 -0
- package/frontend/build/assets/DynamicTags-rIgGdrL5.js +1 -0
- package/frontend/build/assets/Ellipsis-BST77ylS.js +187 -0
- package/frontend/build/assets/Ellipsis-BTz09kpN.js +187 -0
- package/frontend/build/assets/Ellipsis-BbsLqJtK.js +187 -0
- package/frontend/build/assets/Ellipsis-BdMplm4D.js +187 -0
- package/frontend/build/assets/Ellipsis-C3lHtvjF.js +187 -0
- package/frontend/build/assets/Ellipsis-CEbBdn2n.js +187 -0
- package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-B5o0iz7y.js +1 -0
- package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-BTf_XpHq.js +1 -0
- package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-DFWrNfDB.js +1 -0
- package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-DTFtcs8p.js +1 -0
- package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-QKywH0iL.js +1 -0
- package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-q7wMY1La.js +1 -0
- package/frontend/build/assets/FormItem-BFYeYoTE.js +110 -0
- package/frontend/build/assets/FormItem-B_V_gknG.js +110 -0
- package/frontend/build/assets/FormItem-C2ziP3u7.js +110 -0
- package/frontend/build/assets/FormItem-CDsgx_ab.js +110 -0
- package/frontend/build/assets/FormItem-D5nKwNGe.js +110 -0
- package/frontend/build/assets/FormItem-DcKuwtDH.js +110 -0
- package/frontend/build/assets/FormItemGridItem-BiRqZE_B.js +1 -0
- package/frontend/build/assets/FormItemGridItem-CEbJWTJd.js +1 -0
- package/frontend/build/assets/FormItemGridItem-DaKl8_2L.js +1 -0
- package/frontend/build/assets/FormItemGridItem-DkQ8mrOt.js +1 -0
- package/frontend/build/assets/FormItemGridItem-YEC3z4HO.js +1 -0
- package/frontend/build/assets/FormItemGridItem-cjYQS3d8.js +1 -0
- package/frontend/build/assets/Grid-0zzIexHr.js +1 -0
- package/frontend/build/assets/Grid-BNlPkf-g.js +1 -0
- package/frontend/build/assets/Grid-CmLEm3vL.js +1 -0
- package/frontend/build/assets/Grid-CqcXqV8U.js +1 -0
- package/frontend/build/assets/Grid-DmeNHOJx.js +1 -0
- package/frontend/build/assets/Grid-WK2vuhLP.js +1 -0
- package/frontend/build/assets/Image-CMvlvuJp.js +132 -0
- package/frontend/build/assets/Image-CbdTV78X.js +132 -0
- package/frontend/build/assets/Image-Cf2fbKtf.js +132 -0
- package/frontend/build/assets/Image-Crg2QYhk.js +132 -0
- package/frontend/build/assets/Image-D53Xywez.js +132 -0
- package/frontend/build/assets/Image-tNy1v7mL.js +132 -0
- package/frontend/build/assets/InputNumber-BjfLyebn.js +13 -0
- package/frontend/build/assets/InputNumber-BtSrvYnH.js +13 -0
- package/frontend/build/assets/InputNumber-BxeR-3jl.js +13 -0
- package/frontend/build/assets/InputNumber-C7hKPk7P.js +13 -0
- package/frontend/build/assets/InputNumber-CbRGvPDs.js +13 -0
- package/frontend/build/assets/InputNumber-qiteD5Uu.js +13 -0
- package/frontend/build/assets/MessageContentCard-333YPcPx.js +1 -0
- package/frontend/build/assets/MessageContentCard-B0-LvWuB.js +1 -0
- package/frontend/build/assets/MessageContentCard-C2uRLdgO.js +1 -0
- package/frontend/build/assets/MessageContentCard-CjL6sc3W.js +1 -0
- package/frontend/build/assets/MessageContentCard-D3wLdleV.css +1 -0
- package/frontend/build/assets/MessageContentCard-DQ6w5avD.css +1 -0
- package/frontend/build/assets/MessageContentCard-DRoS4fsn.js +1 -0
- package/frontend/build/assets/MessageContentCard-DRsw0lK-.js +1 -0
- package/frontend/build/assets/Popconfirm-DsC1UchR.js +16 -0
- package/frontend/build/assets/Popconfirm-wmBfNL4Y.js +16 -0
- package/frontend/build/assets/PresetFormModal-B87TaT8J.js +1 -0
- package/frontend/build/assets/PresetFormModal-BpleAL8Z.js +1 -0
- package/frontend/build/assets/PresetFormModal-BrNCyqXq.css +1 -0
- package/frontend/build/assets/PresetFormModal-D6bXLlH2.css +1 -0
- package/frontend/build/assets/PresetFormModal-D8RNddGW.css +1 -0
- package/frontend/build/assets/PresetFormModal-DZlJ1Vcp.css +1 -0
- package/frontend/build/assets/PresetFormModal-Dah-5WHj.js +1 -0
- package/frontend/build/assets/PresetFormModal-DepNynU1.js +1 -0
- package/frontend/build/assets/PresetFormModal-Diebn4cS.js +1 -0
- package/frontend/build/assets/PresetFormModal-Dol9eToM.js +1 -0
- package/frontend/build/assets/PresetFormModal-ah6zWfbB.css +1 -0
- package/frontend/build/assets/ProcessorFormModal-BLiL3tFS.js +1 -0
- package/frontend/build/assets/ProcessorFormModal-C4rqrypu.js +1 -0
- package/frontend/build/assets/ProcessorFormModal-D9X5zzKG.js +1 -0
- package/frontend/build/assets/ProcessorFormModal-Ik7zSGUU.js +1 -0
- package/frontend/build/assets/ProcessorFormModal-Q5ARXwwU.js +1 -0
- package/frontend/build/assets/ProcessorFormModal-vpoqf_VP.js +1 -0
- package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-BK03vxpt.js +42 -0
- package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-D8NYnQ0b.js +42 -0
- package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-DKnpVb21.js +42 -0
- package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-DQayqXcu.js +42 -0
- package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-EUAgxSFF.js +42 -0
- package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-HZQFntw0.js +42 -0
- package/frontend/build/assets/Spin-BP0yPWNS.js +43 -0
- package/frontend/build/assets/Spin-C2G3wcnB.js +43 -0
- package/frontend/build/assets/Spin-C7sqRNqw.js +43 -0
- package/frontend/build/assets/Spin-Cy3cVx8W.js +43 -0
- package/frontend/build/assets/Spin-UrFjnOlY.js +43 -0
- package/frontend/build/assets/Spin-yYcNW-yl.js +43 -0
- package/frontend/build/assets/ToolFormModal-CVZFxPxz.js +1 -0
- package/frontend/build/assets/ToolFormModal-CgHH9Bbh.js +1 -0
- package/frontend/build/assets/ToolFormModal-D7NFHjzM.js +1 -0
- package/frontend/build/assets/ToolFormModal-DpVk5ooz.js +1 -0
- package/frontend/build/assets/ToolFormModal-DsS34Jdc.js +1 -0
- package/frontend/build/assets/ToolFormModal-hx-a_w1d.js +1 -0
- package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-Biq3KQMr.js +51 -0
- package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-DAbXNKv-.js +51 -0
- package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-DGdJ6txC.js +51 -0
- package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-QIhGuSJV.js +51 -0
- package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-sVSPLzuy.js +51 -0
- package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-yH3HeP81.js +51 -0
- package/frontend/build/assets/ToolGroupFormModal-2uJQDkUz.js +1 -0
- package/frontend/build/assets/ToolGroupFormModal-B-OxsC_e.js +1 -0
- package/frontend/build/assets/ToolGroupFormModal-CXbSBPSI.js +1 -0
- package/frontend/build/assets/ToolGroupFormModal-CeF3hW-I.js +1 -0
- package/frontend/build/assets/ToolGroupFormModal-DfEZcYi7.js +1 -0
- package/frontend/build/assets/ToolGroupFormModal-DvGS2rQd.js +1 -0
- package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-AsEJ8jCe.js +146 -0
- package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-B5V2XNND.js +146 -0
- package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-BYmI5807.js +146 -0
- package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-C32gc6LQ.js +146 -0
- package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-CRwhppLH.js +146 -0
- package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-Cz49lSiC.js +146 -0
- package/frontend/build/assets/TriggerFormModal-B9hL6DT2.js +1 -0
- package/frontend/build/assets/TriggerFormModal-D6tlqZPa.js +1 -0
- package/frontend/build/assets/TriggerFormModal-DngyRFuZ.js +1 -0
- package/frontend/build/assets/TriggerFormModal-jUjJ3cpY.js +1 -0
- package/frontend/build/assets/TriggerFormModal-zyHfq9gk.js +1 -0
- package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-65eiY_Fl.js +15 -0
- package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-BDVxuECo.js +15 -0
- package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-BGdRzXOm.js +15 -0
- package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-Bq6N6Y6d.js +15 -0
- package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-DPcB1irn.js +15 -0
- package/frontend/build/assets/add-one-BaGYp8TD.js +1 -0
- package/frontend/build/assets/add-one-CTqCiftQ.js +1 -0
- package/frontend/build/assets/add-one-DBohvXa7.js +1 -0
- package/frontend/build/assets/add-one-DQqaMb3g.js +1 -0
- package/frontend/build/assets/add-one-DT3qGnwW.js +1 -0
- package/frontend/build/assets/add-one-DenQ1X6U.js +1 -0
- package/frontend/build/assets/channels-5BB_92I-.js +1 -0
- package/frontend/build/assets/channels-C2i9C4LP.js +1 -0
- package/frontend/build/assets/channels-C53UiHV8.js +1 -0
- package/frontend/build/assets/channels-Cm8UM1Z7.js +1 -0
- package/frontend/build/assets/channels-DdlEEU3s.js +1 -0
- package/frontend/build/assets/channels-DzKbsjiA.js +1 -0
- package/frontend/build/assets/cloudy-BnletBC6.js +1 -0
- package/frontend/build/assets/cloudy-C02z4bvP.js +1 -0
- package/frontend/build/assets/cloudy-DCLcLr7j.js +1 -0
- package/frontend/build/assets/cloudy-DEHW5vHA.js +1 -0
- package/frontend/build/assets/cloudy-MrNAszHw.js +1 -0
- package/frontend/build/assets/cloudy-zp1Y9L1v.js +1 -0
- package/frontend/build/assets/default-resource.png +0 -0
- package/frontend/build/assets/download-C2161hUv.js +1 -0
- package/frontend/build/assets/error-403-VPEqmg7m.svg +1 -0
- package/frontend/build/assets/error-404-DLMSXL2R.svg +1 -0
- package/frontend/build/assets/error-500-C1R4JvdT.svg +1 -0
- package/frontend/build/assets/gemini-full-DjWArg1A.png +0 -0
- package/frontend/build/assets/headers-CYAAtr6C.js +16 -0
- package/frontend/build/assets/headers-CiEBSHa2.js +16 -0
- package/frontend/build/assets/headers-D9Kcnpmr.js +16 -0
- package/frontend/build/assets/headers-PaTXxtPR.js +16 -0
- package/frontend/build/assets/headers-UoeXy2eZ.js +16 -0
- package/frontend/build/assets/headers-VVIzblQ_.js +16 -0
- package/frontend/build/assets/index--eQYnbum.js +1 -0
- package/frontend/build/assets/index-03UGSOxl.js +3022 -0
- package/frontend/build/assets/index-2VSakRqN.js +1 -0
- package/frontend/build/assets/index-2WhMzyiQ.js +1 -0
- package/frontend/build/assets/index-2_Tj01eS.js +1 -0
- package/frontend/build/assets/index-2ds3nwBz.js +1 -0
- package/frontend/build/assets/index-5HLgPZyA.js +1 -0
- package/frontend/build/assets/index-A-Nxva_P.js +1 -0
- package/frontend/build/assets/index-AOaD5c69.css +1 -0
- package/frontend/build/assets/index-AxmlVWLb.js +88 -0
- package/frontend/build/assets/index-B1vc1sYC.js +88 -0
- package/frontend/build/assets/index-B2xcn1Zp.js +88 -0
- package/frontend/build/assets/index-B3vwplQQ.js +1 -0
- package/frontend/build/assets/index-B3xgRJTP.js +1 -0
- package/frontend/build/assets/index-B5DOGUIX.js +1 -0
- package/frontend/build/assets/index-B6OH0R7T.js +1 -0
- package/frontend/build/assets/index-B84-YkMr.js +1 -0
- package/frontend/build/assets/index-BEeRPoRP.css +1 -0
- package/frontend/build/assets/index-BG6BPhzo.js +1 -0
- package/frontend/build/assets/index-BITQakTn.js +1 -0
- package/frontend/build/assets/index-BMLd3diZ.js +1 -0
- package/frontend/build/assets/index-BVn0o2ft.js +1 -0
- package/frontend/build/assets/index-BWa7FUv_.css +1 -0
- package/frontend/build/assets/index-BX8jlXqW.js +1 -0
- package/frontend/build/assets/index-BfkNMt-Z.js +4 -0
- package/frontend/build/assets/index-BiTjEGM3.js +1 -0
- package/frontend/build/assets/index-BjIbFF1J.css +1 -0
- package/frontend/build/assets/index-BjlhqqjK.js +1 -0
- package/frontend/build/assets/index-BnFsJO-x.css +1 -0
- package/frontend/build/assets/index-BnLYNBvb.js +34 -0
- package/frontend/build/assets/index-BpyNu5uz.css +1 -0
- package/frontend/build/assets/index-Bq8g4Sjx.js +34 -0
- package/frontend/build/assets/index-BqnNVMWz.js +1 -0
- package/frontend/build/assets/index-BqvhG25P.js +1 -0
- package/frontend/build/assets/index-BxVOuJCR.js +88 -0
- package/frontend/build/assets/index-C0cu-RWI.js +1 -0
- package/frontend/build/assets/index-C3PU0-pz.js +1 -0
- package/frontend/build/assets/index-C6PGuM0W.js +1 -0
- package/frontend/build/assets/index-C8kC4vgj.js +73 -0
- package/frontend/build/assets/index-C929_ci3.js +1 -0
- package/frontend/build/assets/index-CAvXXNvC.js +4 -0
- package/frontend/build/assets/index-CH4h1wcf.js +1 -0
- package/frontend/build/assets/index-CIJ6rjR4.js +1 -0
- package/frontend/build/assets/index-CIr65QIJ.js +88 -0
- package/frontend/build/assets/index-CJIWqxBN.js +3022 -0
- package/frontend/build/assets/index-CK1nPYvM.js +1 -0
- package/frontend/build/assets/index-CKrf6ZAU.js +1 -0
- package/frontend/build/assets/index-CLfO7Gf6.js +1 -0
- package/frontend/build/assets/index-C_X4kJPv.js +1 -0
- package/frontend/build/assets/index-C_Y4E6cV.js +1 -0
- package/frontend/build/assets/index-Cb7i0EbW.js +1 -0
- package/frontend/build/assets/index-CbWw_OnJ.js +1 -0
- package/frontend/build/assets/index-CbeMIVMe.js +1 -0
- package/frontend/build/assets/index-CdNjPHZ4.css +1 -0
- package/frontend/build/assets/index-CeFBXiHy.js +34 -0
- package/frontend/build/assets/index-CfqNGf3J.js +1 -0
- package/frontend/build/assets/index-Cgw3BtX5.js +1 -0
- package/frontend/build/assets/index-Ci64noNy.js +4 -0
- package/frontend/build/assets/index-CpE2LZf6.js +88 -0
- package/frontend/build/assets/index-CqKFcCqq.js +1 -0
- package/frontend/build/assets/index-CrbhbDn6.js +1 -0
- package/frontend/build/assets/index-Csi2jHp6.js +1 -0
- package/frontend/build/assets/index-CuRn3Zj6.js +1 -0
- package/frontend/build/assets/index-Cvb6isPu.js +34 -0
- package/frontend/build/assets/index-D1keqYcn.js +1 -0
- package/frontend/build/assets/index-D4yD21Ii.js +1 -0
- package/frontend/build/assets/index-D60uSbJs.css +1 -0
- package/frontend/build/assets/index-D6ESmTyE.js +51 -0
- package/frontend/build/assets/index-D81JopND.js +1 -0
- package/frontend/build/assets/index-D8Ea2ZYj.js +1 -0
- package/frontend/build/assets/index-D8GATqgc.js +88 -0
- package/frontend/build/assets/index-DAP5yTaX.js +1 -0
- package/frontend/build/assets/index-DBBLpo8h.js +73 -0
- package/frontend/build/assets/index-DBaGV7UL.js +1 -0
- package/frontend/build/assets/index-DEVf6CSD.css +1 -0
- package/frontend/build/assets/index-DG-8CbiW.css +1 -0
- package/frontend/build/assets/index-DGBf1FIP.js +1 -0
- package/frontend/build/assets/index-DGJCAKZq.js +1 -0
- package/frontend/build/assets/index-DGyDjezP.js +1 -0
- package/frontend/build/assets/index-DJdQ0nV5.js +3022 -0
- package/frontend/build/assets/index-DK0t9ttf.js +51 -0
- package/frontend/build/assets/index-DNH9PMk-.js +1 -0
- package/frontend/build/assets/index-DOSf5RcO.css +1 -0
- package/frontend/build/assets/index-DOpBnx1_.js +3 -0
- package/frontend/build/assets/index-DOpZxAwZ.js +1 -0
- package/frontend/build/assets/index-DPHVwNRA.js +1 -0
- package/frontend/build/assets/index-DSzihJo9.js +1 -0
- package/frontend/build/assets/index-DVJZAGXg.js +1 -0
- package/frontend/build/assets/index-DXr1ddHm.js +3 -0
- package/frontend/build/assets/index-DamztouA.js +1 -0
- package/frontend/build/assets/index-Dd2IZqLs.js +1 -0
- package/frontend/build/assets/index-DfOc9UlB.js +1 -0
- package/frontend/build/assets/index-DgVSxPXN.css +1 -0
- package/frontend/build/assets/index-Dhp8dh5v.js +1 -0
- package/frontend/build/assets/index-DlqpxOQl.css +1 -0
- package/frontend/build/assets/index-DlvxwSxx.js +1 -0
- package/frontend/build/assets/index-Dn5ZzrRm.css +1 -0
- package/frontend/build/assets/index-Dp1faHeH.js +3020 -0
- package/frontend/build/assets/index-DsLf2ZDE.js +1 -0
- package/frontend/build/assets/index-DsUl8Ptm.js +1 -0
- package/frontend/build/assets/index-Dw0tLRur.js +1 -0
- package/frontend/build/assets/index-DwXVBZsv.js +1 -0
- package/frontend/build/assets/index-DyaHYcgL.js +1 -0
- package/frontend/build/assets/index-DzBQLoNi.js +3022 -0
- package/frontend/build/assets/index-GrVsVGKe.js +1 -0
- package/frontend/build/assets/index-IzGzRXKT.js +1 -0
- package/frontend/build/assets/index-MHTC5Jaf.js +1 -0
- package/frontend/build/assets/index-PDPwUSMg.js +34 -0
- package/frontend/build/assets/index-QYahACFP.css +1 -0
- package/frontend/build/assets/index-QkZPwKD6.js +88 -0
- package/frontend/build/assets/index-Tg84pa9I.js +88 -0
- package/frontend/build/assets/index-UL4MAKLb.js +88 -0
- package/frontend/build/assets/index-aa34KBYr.js +34 -0
- package/frontend/build/assets/index-ajvK6t0Y.js +1 -0
- package/frontend/build/assets/index-b5SryupN.js +1 -0
- package/frontend/build/assets/index-d3LI8LJL.js +4 -0
- package/frontend/build/assets/index-e1kUgjjO.js +1 -0
- package/frontend/build/assets/index-jTalI0G5.js +1 -0
- package/frontend/build/assets/index-jZroxcSG.js +1 -0
- package/frontend/build/assets/index-kLEe-31q.js +3022 -0
- package/frontend/build/assets/index-nxD1J_1U.js +1 -0
- package/frontend/build/assets/index-qD9Q6D9I.js +1 -0
- package/frontend/build/assets/index-uBZFl8l2.js +1 -0
- package/frontend/build/assets/index-wr8bxnDK.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-B4NwmABd.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-B4oNPU3q.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-BBmwAav-.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-BOOc15c_.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-BY9Af5Nc.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-Bej651CN.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-C2vb4Dqf.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CL2618tE.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CLxSBkmO.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-C_JTuf1y.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CcJN846R.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CijuxZr1.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CmP-e403.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-Cs16N-Xd.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-D06MdY7a.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-DdgjuITP.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-DuLmC4Hy.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-i_-VJTVk.js +1 -0
- package/frontend/build/assets/logo-B8LLnbYy.jpg +0 -0
- package/frontend/build/assets/memory-C4zB60HJ.js +1 -0
- package/frontend/build/assets/memory-DHzPXs82.js +1 -0
- package/frontend/build/assets/presets-8ZEu20ZL.js +1 -0
- package/frontend/build/assets/presets-Bbyt0PjB.js +1 -0
- package/frontend/build/assets/presets-DGMnsFyv.js +1 -0
- package/frontend/build/assets/presets-DqF27psW.js +1 -0
- package/frontend/build/assets/presets-N8YNqfPr.js +1 -0
- package/frontend/build/assets/presets-cCI64Dxi.js +1 -0
- package/frontend/build/assets/preview-close-one-BtVZjDje.js +1 -0
- package/frontend/build/assets/preview-close-one-CduaZ9go.js +1 -0
- package/frontend/build/assets/preview-close-one-DQdsMFNB.js +1 -0
- package/frontend/build/assets/preview-close-one-DZiBTyj3.js +1 -0
- package/frontend/build/assets/preview-close-one-ZEGMXVTp.js +1 -0
- package/frontend/build/assets/preview-close-one-vOfiPsm0.js +1 -0
- package/frontend/build/assets/preview-open--FMuWVpI.js +1 -0
- package/frontend/build/assets/preview-open-5axv2eoi.js +1 -0
- package/frontend/build/assets/preview-open-BwhyOZZZ.js +1 -0
- package/frontend/build/assets/preview-open-CEgCXCaz.js +1 -0
- package/frontend/build/assets/preview-open-CIsmwiay.js +1 -0
- package/frontend/build/assets/preview-open-DqXcn0Io.js +1 -0
- package/frontend/build/assets/processors-0_RUgaZm.js +1 -0
- package/frontend/build/assets/processors-BGAbvhSk.js +1 -0
- package/frontend/build/assets/processors-CJsyXjR7.js +1 -0
- package/frontend/build/assets/processors-CmJ007yb.js +1 -0
- package/frontend/build/assets/processors-CsDJer4R.js +1 -0
- package/frontend/build/assets/processors-on-PUe_q.js +1 -0
- package/frontend/build/assets/prop-BjyUHhTu.js +1 -0
- package/frontend/build/assets/text-BU3n8x_S.js +21 -0
- package/frontend/build/assets/text-BdCfEojD.js +21 -0
- package/frontend/build/assets/text-BfkuQm58.js +21 -0
- package/frontend/build/assets/text-BhKp8kwX.js +21 -0
- package/frontend/build/assets/text-C8WlRvWq.js +21 -0
- package/frontend/build/assets/text-Dm8ZXeiW.js +21 -0
- package/frontend/build/assets/toolGroup-BpThfFxc.js +1 -0
- package/frontend/build/assets/toolGroup-C7yi3DD-.js +1 -0
- package/frontend/build/assets/toolGroup-Cl_28ogB.js +1 -0
- package/frontend/build/assets/toolGroup-CvTMJceG.js +1 -0
- package/frontend/build/assets/toolGroup-DIZrVG-u.js +1 -0
- package/frontend/build/assets/toolGroup-YtViuyrx.js +1 -0
- package/frontend/build/assets/tools-BWpxaWcy.js +1 -0
- package/frontend/build/assets/tools-CivF5Y63.js +1 -0
- package/frontend/build/assets/tools-ClM2lWje.js +1 -0
- package/frontend/build/assets/tools-DlNqOoYG.js +1 -0
- package/frontend/build/assets/tools-DrffVcid.js +1 -0
- package/frontend/build/assets/tools-VKwjF6eb.js +1 -0
- package/frontend/build/favicon.jpg +0 -0
- package/frontend/build/index.html +537 -0
- package/package.json +71 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import{p as S,a7 as Le,ak as St,d as U,a8 as ps,aa as hs,ad as Dn,al as fs,s as ot,am as Ke,ag as ds,an as gs,ao as ms,ap as ks,aq as ws,U as xs,c as C,o as y,a as c,X as Nn,l as _s,ar as bs,r as ne,v as Ts,as as ys,t as z,g as fe,n as K,F as Qe,A as Je,e as P,u as v,a0 as oe,b as _e,w as X,N as At,at as Et,B as et,I as _n,y as Rt,au as vs,k as Ss}from"./index-03UGSOxl.js";import{N as As}from"./Spin-yYcNW-yl.js";function Es(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},S("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),S("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"}))}function Rs(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},S("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),S("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),S("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),S("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),S("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),S("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"}))}function Cs(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},S("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),S("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),S("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),S("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),S("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),S("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"}))}function Ls(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},S("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),S("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),S("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"}))}const Is=Le("result",`
|
|
2
|
+
color: var(--n-text-color);
|
|
3
|
+
line-height: var(--n-line-height);
|
|
4
|
+
font-size: var(--n-font-size);
|
|
5
|
+
transition:
|
|
6
|
+
color .3s var(--n-bezier);
|
|
7
|
+
`,[Le("result-icon",`
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
transition: color .3s var(--n-bezier);
|
|
11
|
+
`,[St("status-image",`
|
|
12
|
+
font-size: var(--n-icon-size);
|
|
13
|
+
width: 1em;
|
|
14
|
+
height: 1em;
|
|
15
|
+
`),Le("base-icon",`
|
|
16
|
+
color: var(--n-icon-color);
|
|
17
|
+
font-size: var(--n-icon-size);
|
|
18
|
+
`)]),Le("result-content",{marginTop:"24px"}),Le("result-footer",`
|
|
19
|
+
margin-top: 24px;
|
|
20
|
+
text-align: center;
|
|
21
|
+
`),Le("result-header",[St("title",`
|
|
22
|
+
margin-top: 16px;
|
|
23
|
+
font-weight: var(--n-title-font-weight);
|
|
24
|
+
transition: color .3s var(--n-bezier);
|
|
25
|
+
text-align: center;
|
|
26
|
+
color: var(--n-title-text-color);
|
|
27
|
+
font-size: var(--n-title-font-size);
|
|
28
|
+
`),St("description",`
|
|
29
|
+
margin-top: 4px;
|
|
30
|
+
text-align: center;
|
|
31
|
+
font-size: var(--n-font-size);
|
|
32
|
+
`)])]),zs={403:Es,404:Rs,418:Cs,500:Ls,info:()=>S(ws,null),success:()=>S(ks,null),warning:()=>S(ms,null),error:()=>S(gs,null)},Os=Object.assign(Object.assign({},Dn.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),Ms=U({name:"Result",props:Os,slots:Object,setup(l){const{mergedClsPrefixRef:e,inlineThemeDisabled:t}=hs(l),n=Dn("Result","-result",Is,fs,l,e),s=ot(()=>{const{size:r,status:a}=l,{common:{cubicBezierEaseInOut:p},self:{textColor:h,lineHeight:f,titleTextColor:k,titleFontWeight:w,[Ke("iconColor",a)]:b,[Ke("fontSize",r)]:L,[Ke("titleFontSize",r)]:A,[Ke("iconSize",r)]:O}}=n.value;return{"--n-bezier":p,"--n-font-size":L,"--n-icon-size":O,"--n-line-height":f,"--n-text-color":h,"--n-title-font-size":A,"--n-title-font-weight":w,"--n-title-text-color":k,"--n-icon-color":b||""}}),i=t?ds("result",ot(()=>{const{size:r,status:a}=l;let p="";return r&&(p+=r[0]),a&&(p+=a[0]),p}),s,l):void 0;return{mergedClsPrefix:e,cssVars:t?void 0:s,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var l;const{status:e,$slots:t,mergedClsPrefix:n,onRender:s}=this;return s?.(),S("div",{class:[`${n}-result`,this.themeClass],style:this.cssVars},S("div",{class:`${n}-result-icon`},((l=t.icon)===null||l===void 0?void 0:l.call(t))||S(ps,{clsPrefix:n},{default:()=>zs[e]()})),S("div",{class:`${n}-result-header`},this.title?S("div",{class:`${n}-result-header__title`},this.title):null,this.description?S("div",{class:`${n}-result-header__description`},this.description):null),t.default&&S("div",{class:`${n}-result-content`},t),t.footer&&S("div",{class:`${n}-result-footer`},t.footer()))}});function Ds(){return xs.Get("/api/system/info")}const Ns={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},$s=U({name:"BrushOutline",render:function(e,t){return y(),C("svg",Ns,t[0]||(t[0]=[c("path",{d:"M452.37 59.63h0a40.49 40.49 0 0 0-57.26 0L184 294.74c23.08 4.7 46.12 27.29 49.26 49.26l219.11-227.11a40.49 40.49 0 0 0 0-57.26z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("path",{d:"M138 336c-29.88 0-54 24.5-54 54.86c0 23.95-20.88 36.57-36 36.57C64.56 449.74 92.82 464 120 464c39.78 0 72-32.73 72-73.14c0-30.36-24.12-54.86-54-54.86z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ps={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Bs=U({name:"ChatbubblesOutline",render:function(e,t){return y(),C("svg",Ps,t[0]||(t[0]=[c("path",{d:"M431 320.6c-1-3.6 1.2-8.6 3.3-12.2a33.68 33.68 0 0 1 2.1-3.1A162 162 0 0 0 464 215c.3-92.2-77.5-167-173.7-167c-83.9 0-153.9 57.1-170.3 132.9a160.7 160.7 0 0 0-3.7 34.2c0 92.3 74.8 169.1 171 169.1c15.3 0 35.9-4.6 47.2-7.7s22.5-7.2 25.4-8.3a26.44 26.44 0 0 1 9.3-1.7a26 26 0 0 1 10.1 2l56.7 20.1a13.52 13.52 0 0 0 3.9 1a8 8 0 0 0 8-8a12.85 12.85 0 0 0-.5-2.7z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{d:"M66.46 232a146.23 146.23 0 0 0 6.39 152.67c2.31 3.49 3.61 6.19 3.21 8s-11.93 61.87-11.93 61.87a8 8 0 0 0 2.71 7.68A8.17 8.17 0 0 0 72 464a7.26 7.26 0 0 0 2.91-.6l56.21-22a15.7 15.7 0 0 1 12 .2c18.94 7.38 39.88 12 60.83 12A159.21 159.21 0 0 0 284 432.11",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Fs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Us=U({name:"CodeSlashOutline",render:function(e,t){return y(),C("svg",Fs,t[0]||(t[0]=[c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M160 368L32 256l128-112"},null,-1),c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M352 368l128-112l-128-112"},null,-1),c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M304 96l-96 320"},null,-1)]))}}),Hs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Gs=U({name:"EyeOutline",render:function(e,t){return y(),C("svg",Hs,t[0]||(t[0]=[c("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),js={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ws=U({name:"FlaskOutline",render:function(e,t){return y(),C("svg",js,t[0]||(t[0]=[c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M176 48h160"},null,-1),c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M118 304h276"},null,-1),c("path",{d:"M208 48v93.48a64.09 64.09 0 0 1-9.88 34.18L73.21 373.49C48.4 412.78 76.63 464 123.08 464h265.84c46.45 0 74.68-51.22 49.87-90.51L313.87 175.66a64.09 64.09 0 0 1-9.87-34.18V48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),qs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Vs=U({name:"GitBranchOutline",render:function(e,t){return y(),C("svg",qs,t[0]||(t[0]=[Nn('<circle cx="160" cy="96" r="48" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></circle><circle cx="160" cy="416" r="48" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></circle><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M160 368V144"></path><circle cx="352" cy="160" r="48" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></circle><path d="M352 208c0 128-192 48-192 160" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path>',5)]))}}),Zs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ys=U({name:"LogoGithub",render:function(e,t){return y(),C("svg",Zs,t[0]||(t[0]=[c("path",{d:"M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9a17.56 17.56 0 0 0 3.8.4c8.3 0 11.5-6.1 11.5-11.4c0-5.5-.2-19.9-.3-39.1a102.4 102.4 0 0 1-22.6 2.7c-43.1 0-52.9-33.5-52.9-33.5c-10.2-26.5-24.9-33.6-24.9-33.6c-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8c11.2 19.6 26.2 25.1 39.6 25.1a63 63 0 0 0 25.6-6c2-14.8 7.8-24.9 14.2-30.7c-49.7-5.8-102-25.5-102-113.5c0-25.1 8.7-45.6 23-61.6c-2.3-5.8-10-29.2 2.2-60.8a18.64 18.64 0 0 1 5-.5c8.1 0 26.4 3.1 56.6 24.1a208.21 208.21 0 0 1 112.2 0c30.2-21 48.5-24.1 56.6-24.1a18.64 18.64 0 0 1 5 .5c12.2 31.6 4.5 55 2.2 60.8c14.3 16.1 23 36.6 23 61.6c0 88.2-52.4 107.6-102.3 113.3c8 7.1 15.2 21.1 15.2 42.5c0 30.7-.3 55.5-.3 63c0 5.4 3.1 11.5 11.4 11.5a19.35 19.35 0 0 0 4-.4C415.9 449.2 480 363.1 480 261.7C480 134.9 379.7 32 256 32z",fill:"currentColor"},null,-1)]))}}),Xs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ks=U({name:"PeopleOutline",render:function(e,t){return y(),C("svg",Xs,t[0]||(t[0]=[c("path",{d:"M402 168c-2.93 40.67-33.1 72-66 72s-63.12-31.32-66-72c-3-42.31 26.37-72 66-72s69 30.46 66 72z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("path",{d:"M336 304c-65.17 0-127.84 32.37-143.54 95.41c-2.08 8.34 3.15 16.59 11.72 16.59h263.65c8.57 0 13.77-8.25 11.72-16.59C463.85 335.36 401.18 304 336 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{d:"M200 185.94c-2.34 32.48-26.72 58.06-53 58.06s-50.7-25.57-53-58.06C91.61 152.15 115.34 128 147 128s55.39 24.77 53 57.94z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("path",{d:"M206 306c-18.05-8.27-37.93-11.45-59-11.45c-52 0-102.1 25.85-114.65 76.2c-1.65 6.66 2.53 13.25 9.37 13.25H154",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Qs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Js=U({name:"PricetagOutline",render:function(e,t){return y(),C("svg",Qs,t[0]||(t[0]=[c("path",{d:"M435.25 48h-122.9a14.46 14.46 0 0 0-10.2 4.2L56.45 297.9a28.85 28.85 0 0 0 0 40.7l117 117a28.85 28.85 0 0 0 40.7 0L459.75 210a14.46 14.46 0 0 0 4.2-10.2v-123a28.66 28.66 0 0 0-28.7-28.8z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("path",{d:"M384 160a32 32 0 1 1 32-32a32 32 0 0 1-32 32z",fill:"currentColor"},null,-1)]))}}),er={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},tr=U({name:"RefreshOutline",render:function(e,t){return y(),C("svg",er,t[0]||(t[0]=[c("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}}),nr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},sr=U({name:"ServerOutline",render:function(e,t){return y(),C("svg",nr,t[0]||(t[0]=[c("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),rr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ir=U({name:"SettingsOutline",render:function(e,t){return y(),C("svg",rr,t[0]||(t[0]=[c("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),or={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},lr=U({name:"StarOutline",render:function(e,t){return y(),C("svg",or,t[0]||(t[0]=[c("path",{d:"M480 208H308L256 48l-52 160H32l140 96l-54 160l138-100l138 100l-54-160z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),ar={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},cr=U({name:"StatsChartOutline",render:function(e,t){return y(),C("svg",ar,t[0]||(t[0]=[c("rect",{x:"64",y:"320",width:"48",height:"160",rx:"8",ry:"8",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("rect",{x:"288",y:"224",width:"48",height:"256",rx:"8",ry:"8",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("rect",{x:"400",y:"112",width:"48",height:"368",rx:"8",ry:"8",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("rect",{x:"176",y:"32",width:"48",height:"448",rx:"8",ry:"8",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),ur={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},pr=U({name:"TimeOutline",render:function(e,t){return y(),C("svg",ur,t[0]||(t[0]=[c("path",{d:"M256 64C150 64 64 150 64 256s86 192 192 192s192-86 192-192S362 64 256 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 128v144h96"},null,-1)]))}});function $t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let ye=$t();function $n(l){ye=l}const He={exec:()=>null};function E(l,e=""){let t=typeof l=="string"?l:l.source;const n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(W.caret,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}const W={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:l=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}#`),htmlBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}<(?:[a-z].*>|!--)`,"i")},hr=/^(?:[ \t]*(?:\n|$))+/,fr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,dr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ge=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,gr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Pt=/(?:[*+-]|\d{1,9}[.)])/,Pn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Bn=E(Pn).replace(/bull/g,Pt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),mr=E(Pn).replace(/bull/g,Pt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Bt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,kr=/^[^\n]+/,Ft=/(?!\s*\])(?:\\.|[^\[\]\\])+/,wr=E(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ft).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xr=E(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Pt).getRegex(),ut="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ut=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_r=E("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ut).replace("tag",ut).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Fn=E(Bt).replace("hr",Ge).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ut).getRegex(),br=E(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Fn).getRegex(),Ht={blockquote:br,code:fr,def:wr,fences:dr,heading:gr,hr:Ge,html:_r,lheading:Bn,list:xr,newline:hr,paragraph:Fn,table:He,text:kr},bn=E("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ge).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ut).getRegex(),Tr={...Ht,lheading:mr,table:bn,paragraph:E(Bt).replace("hr",Ge).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",bn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ut).getRegex()},yr={...Ht,html:E(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ut).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:He,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:E(Bt).replace("hr",Ge).replace("heading",` *#{1,6} *[^
|
|
33
|
+
]`).replace("lheading",Bn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},vr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Sr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Un=/^( {2,}|\\)\n(?!\s*$)/,Ar=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,pt=/[\p{P}\p{S}]/u,Gt=/[\s\p{P}\p{S}]/u,Hn=/[^\s\p{P}\p{S}]/u,Er=E(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Gt).getRegex(),Gn=/(?!~)[\p{P}\p{S}]/u,Rr=/(?!~)[\s\p{P}\p{S}]/u,Cr=/(?:[^\s\p{P}\p{S}]|~)/u,Lr=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,jn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ir=E(jn,"u").replace(/punct/g,pt).getRegex(),zr=E(jn,"u").replace(/punct/g,Gn).getRegex(),Wn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Or=E(Wn,"gu").replace(/notPunctSpace/g,Hn).replace(/punctSpace/g,Gt).replace(/punct/g,pt).getRegex(),Mr=E(Wn,"gu").replace(/notPunctSpace/g,Cr).replace(/punctSpace/g,Rr).replace(/punct/g,Gn).getRegex(),Dr=E("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Hn).replace(/punctSpace/g,Gt).replace(/punct/g,pt).getRegex(),Nr=E(/\\(punct)/,"gu").replace(/punct/g,pt).getRegex(),$r=E(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Pr=E(Ut).replace("(?:-->|$)","-->").getRegex(),Br=E("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Pr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),lt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Fr=E(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",lt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qn=E(/^!?\[(label)\]\[(ref)\]/).replace("label",lt).replace("ref",Ft).getRegex(),Vn=E(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ft).getRegex(),Ur=E("reflink|nolink(?!\\()","g").replace("reflink",qn).replace("nolink",Vn).getRegex(),jt={_backpedal:He,anyPunctuation:Nr,autolink:$r,blockSkip:Lr,br:Un,code:Sr,del:He,emStrongLDelim:Ir,emStrongRDelimAst:Or,emStrongRDelimUnd:Dr,escape:vr,link:Fr,nolink:Vn,punctuation:Er,reflink:qn,reflinkSearch:Ur,tag:Br,text:Ar,url:He},Hr={...jt,link:E(/^!?\[(label)\]\((.*?)\)/).replace("label",lt).getRegex(),reflink:E(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",lt).getRegex()},Mt={...jt,emStrongRDelimAst:Mr,emStrongLDelim:zr,url:E(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Gr={...Mt,br:E(Un).replace("{2,}","*").getRegex(),text:E(Mt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},tt={normal:Ht,gfm:Tr,pedantic:yr},De={normal:jt,gfm:Mt,breaks:Gr,pedantic:Hr},jr={"&":"&","<":"<",">":">",'"':""","'":"'"},Tn=l=>jr[l];function le(l,e){if(e){if(W.escapeTest.test(l))return l.replace(W.escapeReplace,Tn)}else if(W.escapeTestNoEncode.test(l))return l.replace(W.escapeReplaceNoEncode,Tn);return l}function yn(l){try{l=encodeURI(l).replace(W.percentDecode,"%")}catch{return null}return l}function vn(l,e){const t=l.replace(W.findPipe,(i,r,a)=>{let p=!1,h=r;for(;--h>=0&&a[h]==="\\";)p=!p;return p?"|":" |"}),n=t.split(W.splitPipe);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(W.slashPipe,"|");return n}function Ne(l,e,t){const n=l.length;if(n===0)return"";let s=0;for(;s<n&&l.charAt(n-s-1)===e;)s++;return l.slice(0,n-s)}function Wr(l,e){if(l.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<l.length;n++)if(l[n]==="\\")n++;else if(l[n]===e[0])t++;else if(l[n]===e[1]&&(t--,t<0))return n;return-1}function Sn(l,e,t,n,s){const i=e.href,r=e.title||null,a=l[1].replace(s.other.outputLinkReplace,"$1");if(l[0].charAt(0)!=="!"){n.state.inLink=!0;const p={type:"link",raw:t,href:i,title:r,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,p}return{type:"image",raw:t,href:i,title:r,text:a}}function qr(l,e,t){const n=l.match(t.other.indentCodeCompensation);if(n===null)return e;const s=n[1];return e.split(`
|
|
34
|
+
`).map(i=>{const r=i.match(t.other.beginningSpace);if(r===null)return i;const[a]=r;return a.length>=s.length?i.slice(s.length):i}).join(`
|
|
35
|
+
`)}class at{options;rules;lexer;constructor(e){this.options=e||ye}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Ne(n,`
|
|
36
|
+
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],s=qr(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){const s=Ne(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ne(t[0],`
|
|
37
|
+
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=Ne(t[0],`
|
|
38
|
+
`).split(`
|
|
39
|
+
`),s="",i="";const r=[];for(;n.length>0;){let a=!1;const p=[];let h;for(h=0;h<n.length;h++)if(this.rules.other.blockquoteStart.test(n[h]))p.push(n[h]),a=!0;else if(!a)p.push(n[h]);else break;n=n.slice(h);const f=p.join(`
|
|
40
|
+
`),k=f.replace(this.rules.other.blockquoteSetextReplace,`
|
|
41
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
42
|
+
${f}`:f,i=i?`${i}
|
|
43
|
+
${k}`:k;const w=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(k,r,!0),this.lexer.state.top=w,n.length===0)break;const b=r.at(-1);if(b?.type==="code")break;if(b?.type==="blockquote"){const L=b,A=L.raw+`
|
|
44
|
+
`+n.join(`
|
|
45
|
+
`),O=this.blockquote(A);r[r.length-1]=O,s=s.substring(0,s.length-L.raw.length)+O.raw,i=i.substring(0,i.length-L.text.length)+O.text;break}else if(b?.type==="list"){const L=b,A=L.raw+`
|
|
46
|
+
`+n.join(`
|
|
47
|
+
`),O=this.list(A);r[r.length-1]=O,s=s.substring(0,s.length-b.raw.length)+O.raw,i=i.substring(0,i.length-L.raw.length)+O.raw,n=A.substring(r.at(-1).raw.length).split(`
|
|
48
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:r,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const s=n.length>1,i={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");const r=this.rules.other.listItemRegex(n);let a=!1;for(;e;){let h=!1,f="",k="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;f=t[0],e=e.substring(f.length);let w=t[2].split(`
|
|
49
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,de=>" ".repeat(3*de.length)),b=e.split(`
|
|
50
|
+
`,1)[0],L=!w.trim(),A=0;if(this.options.pedantic?(A=2,k=w.trimStart()):L?A=t[1].length+1:(A=t[2].search(this.rules.other.nonSpaceChar),A=A>4?1:A,k=w.slice(A),A+=t[1].length),L&&this.rules.other.blankLine.test(b)&&(f+=b+`
|
|
51
|
+
`,e=e.substring(b.length+1),h=!0),!h){const de=this.rules.other.nextBulletRegex(A),ae=this.rules.other.hrRegex(A),D=this.rules.other.fencesBeginRegex(A),te=this.rules.other.headingBeginRegex(A),ke=this.rules.other.htmlBeginRegex(A);for(;e;){const ge=e.split(`
|
|
52
|
+
`,1)[0];let ce;if(b=ge,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),ce=b):ce=b.replace(this.rules.other.tabCharGlobal," "),D.test(b)||te.test(b)||ke.test(b)||de.test(b)||ae.test(b))break;if(ce.search(this.rules.other.nonSpaceChar)>=A||!b.trim())k+=`
|
|
53
|
+
`+ce.slice(A);else{if(L||w.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||D.test(w)||te.test(w)||ae.test(w))break;k+=`
|
|
54
|
+
`+b}!L&&!b.trim()&&(L=!0),f+=ge+`
|
|
55
|
+
`,e=e.substring(ge.length+1),w=ce.slice(A)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(a=!0));let O=null,me;this.options.gfm&&(O=this.rules.other.listIsTask.exec(k),O&&(me=O[0]!=="[ ] ",k=k.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:f,task:!!O,checked:me,loose:!1,text:k,tokens:[]}),i.raw+=f}const p=i.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let h=0;h<i.items.length;h++)if(this.lexer.state.top=!1,i.items[h].tokens=this.lexer.blockTokens(i.items[h].text,[]),!i.loose){const f=i.items[h].tokens.filter(w=>w.type==="space"),k=f.length>0&&f.some(w=>this.rules.other.anyLine.test(w.raw));i.loose=k}if(i.loose)for(let h=0;h<i.items.length;h++)i.items[h].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:s,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const n=vn(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
56
|
+
`):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===s.length){for(const a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<n.length;a++)r.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:!0,align:r.align[a]});for(const a of i)r.rows.push(vn(a,r.header.length).map((p,h)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:r.align[h]})));return r}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
|
|
57
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const r=Ne(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{const r=Wr(t[2],"()");if(r>-1){const p=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,p).trim(),t[3]=""}}let s=t[2],i="";if(this.options.pedantic){const r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],i=r[3])}else i=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),Sn(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[s.toLowerCase()];if(!i){const r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return Sn(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s||s[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const r=[...s[0]].length-1;let a,p,h=r,f=0;const k=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(k.lastIndex=0,t=t.slice(-1*e.length+r);(s=k.exec(t))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(p=[...a].length,s[3]||s[4]){h+=p;continue}else if((s[5]||s[6])&&r%3&&!((r+p)%3)){f+=p;continue}if(h-=p,h>0)continue;p=Math.min(p,p+h+f);const w=[...s[0]][0].length,b=e.slice(0,r+s.index+w+p);if(Math.min(r,p)%2){const A=b.slice(1,-1);return{type:"em",raw:b,text:A,tokens:this.lexer.inlineTokens(A)}}const L=b.slice(2,-2);return{type:"strong",raw:b,text:L,tokens:this.lexer.inlineTokens(L)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," ");const s=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,s;return t[2]==="@"?(n=t[1],s="mailto:"+n):(n=t[1],s=n),{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,s;if(t[2]==="@")n=t[0],s="mailto:"+n;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);n=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}}class Q{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ye,this.options.tokenizer=this.options.tokenizer||new at,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:W,block:tt.normal,inline:De.normal};this.options.pedantic?(t.block=tt.pedantic,t.inline=De.pedantic):this.options.gfm&&(t.block=tt.gfm,this.options.breaks?t.inline=De.breaks:t.inline=De.gfm),this.tokenizer.rules=t}static get rules(){return{block:tt,inline:De}}static lex(e,t){return new Q(t).lex(e)}static lexInline(e,t){return new Q(t).inlineTokens(e)}lex(e){e=e.replace(W.carriageReturn,`
|
|
58
|
+
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(W.tabCharGlobal," ").replace(W.spaceLine,""));e;){let s;if(this.options.extensions?.block?.some(r=>(s=r.call({lexer:this},e,t))?(e=e.substring(s.raw.length),t.push(s),!0):!1))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);const r=t.at(-1);s.raw.length===1&&r!==void 0?r.raw+=`
|
|
59
|
+
`:t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);const r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=`
|
|
60
|
+
`+s.raw,r.text+=`
|
|
61
|
+
`+s.text,this.inlineQueue.at(-1).src=r.text):t.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);const r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=`
|
|
62
|
+
`+s.raw,r.text+=`
|
|
63
|
+
`+s.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),t.push(s);continue}let i=e;if(this.options.extensions?.startBlock){let r=1/0;const a=e.slice(1);let p;this.options.extensions.startBlock.forEach(h=>{p=h.call({lexer:this},a),typeof p=="number"&&p>=0&&(r=Math.min(r,p))}),r<1/0&&r>=0&&(i=e.substring(0,r+1))}if(this.state.top&&(s=this.tokenizer.paragraph(i))){const r=t.at(-1);n&&r?.type==="paragraph"?(r.raw+=`
|
|
64
|
+
`+s.raw,r.text+=`
|
|
65
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(s),n=i.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);const r=t.at(-1);r?.type==="text"?(r.raw+=`
|
|
66
|
+
`+s.raw,r.text+=`
|
|
67
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(s);continue}if(e){const r="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(r);break}else throw new Error(r)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,s=null;if(this.tokens.links){const a=Object.keys(this.tokens.links);if(a.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)a.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,s.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i=!1,r="";for(;e;){i||(r=""),i=!1;let a;if(this.options.extensions?.inline?.some(h=>(a=h.call({lexer:this},e,t))?(e=e.substring(a.raw.length),t.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);const h=t.at(-1);a.type==="text"&&h?.type==="text"?(h.raw+=a.raw,h.text+=a.text):t.push(a);continue}if(a=this.tokenizer.emStrong(e,n,r)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),t.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),t.push(a);continue}let p=e;if(this.options.extensions?.startInline){let h=1/0;const f=e.slice(1);let k;this.options.extensions.startInline.forEach(w=>{k=w.call({lexer:this},f),typeof k=="number"&&k>=0&&(h=Math.min(h,k))}),h<1/0&&h>=0&&(p=e.substring(0,h+1))}if(a=this.tokenizer.inlineText(p)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(r=a.raw.slice(-1)),i=!0;const h=t.at(-1);h?.type==="text"?(h.raw+=a.raw,h.text+=a.text):t.push(a);continue}if(e){const h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return t}}class ct{options;parser;constructor(e){this.options=e||ye}space(e){return""}code({text:e,lang:t,escaped:n}){const s=(t||"").match(W.notSpaceStart)?.[0],i=e.replace(W.endingNewline,"")+`
|
|
68
|
+
`;return s?'<pre><code class="language-'+le(s)+'">'+(n?i:le(i,!0))+`</code></pre>
|
|
69
|
+
`:"<pre><code>"+(n?i:le(i,!0))+`</code></pre>
|
|
70
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
71
|
+
${this.parser.parse(e)}</blockquote>
|
|
72
|
+
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
73
|
+
`}hr(e){return`<hr>
|
|
74
|
+
`}list(e){const t=e.ordered,n=e.start;let s="";for(let a=0;a<e.items.length;a++){const p=e.items[a];s+=this.listitem(p)}const i=t?"ol":"ul",r=t&&n!==1?' start="'+n+'"':"";return"<"+i+r+`>
|
|
75
|
+
`+s+"</"+i+`>
|
|
76
|
+
`}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+le(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
77
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
78
|
+
`}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let s="";for(let i=0;i<e.rows.length;i++){const r=e.rows[i];n="";for(let a=0;a<r.length;a++)n+=this.tablecell(r[a]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
79
|
+
<thead>
|
|
80
|
+
`+t+`</thead>
|
|
81
|
+
`+s+`</table>
|
|
82
|
+
`}tablerow({text:e}){return`<tr>
|
|
83
|
+
${e}</tr>
|
|
84
|
+
`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
85
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${le(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const s=this.parser.parseInline(n),i=yn(e);if(i===null)return s;e=i;let r='<a href="'+e+'"';return t&&(r+=' title="'+le(t)+'"'),r+=">"+s+"</a>",r}image({href:e,title:t,text:n}){const s=yn(e);if(s===null)return le(n);e=s;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${le(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:le(e.text)}}class Wt{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class J{options;renderer;textRenderer;constructor(e){this.options=e||ye,this.options.renderer=this.options.renderer||new ct,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Wt}static parse(e,t){return new J(t).parse(e)}static parseInline(e,t){return new J(t).parseInline(e)}parse(e,t=!0){let n="";for(let s=0;s<e.length;s++){const i=e[s];if(this.options.extensions?.renderers?.[i.type]){const a=i,p=this.options.extensions.renderers[a.type].call({parser:this},a);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){n+=p||"";continue}}const r=i;switch(r.type){case"space":{n+=this.renderer.space(r);continue}case"hr":{n+=this.renderer.hr(r);continue}case"heading":{n+=this.renderer.heading(r);continue}case"code":{n+=this.renderer.code(r);continue}case"table":{n+=this.renderer.table(r);continue}case"blockquote":{n+=this.renderer.blockquote(r);continue}case"list":{n+=this.renderer.list(r);continue}case"html":{n+=this.renderer.html(r);continue}case"paragraph":{n+=this.renderer.paragraph(r);continue}case"text":{let a=r,p=this.renderer.text(a);for(;s+1<e.length&&e[s+1].type==="text";)a=e[++s],p+=`
|
|
86
|
+
`+this.renderer.text(a);t?n+=this.renderer.paragraph({type:"paragraph",raw:p,text:p,tokens:[{type:"text",raw:p,text:p,escaped:!0}]}):n+=p;continue}default:{const a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(e,t=this.renderer){let n="";for(let s=0;s<e.length;s++){const i=e[s];if(this.options.extensions?.renderers?.[i.type]){const a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=a||"";continue}}const r=i;switch(r.type){case"escape":{n+=t.text(r);break}case"html":{n+=t.html(r);break}case"link":{n+=t.link(r);break}case"image":{n+=t.image(r);break}case"strong":{n+=t.strong(r);break}case"em":{n+=t.em(r);break}case"codespan":{n+=t.codespan(r);break}case"br":{n+=t.br(r);break}case"del":{n+=t.del(r);break}case"text":{n+=t.text(r);break}default:{const a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}}class rt{options;block;constructor(e){this.options=e||ye}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Q.lex:Q.lexInline}provideParser(){return this.block?J.parse:J.parseInline}}class Vr{defaults=$t();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=J;Renderer=ct;TextRenderer=Wt;Lexer=Q;Tokenizer=at;Hooks=rt;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{const i=s;for(const r of i.header)n=n.concat(this.walkTokens(r.tokens,t));for(const r of i.rows)for(const a of r)n=n.concat(this.walkTokens(a.tokens,t));break}case"list":{const i=s;n=n.concat(this.walkTokens(i.items,t));break}default:{const i=s;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(r=>{const a=i[r].flat(1/0);n=n.concat(this.walkTokens(a,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const r=t.renderers[i.name];r?t.renderers[i.name]=function(...a){let p=i.renderer.apply(this,a);return p===!1&&(p=r.apply(this,a)),p}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const r=t[i.level];r?r.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),s.extensions=t),n.renderer){const i=this.defaults.renderer||new ct(this.defaults);for(const r in n.renderer){if(!(r in i))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;const a=r,p=n.renderer[a],h=i[a];i[a]=(...f)=>{let k=p.apply(i,f);return k===!1&&(k=h.apply(i,f)),k||""}}s.renderer=i}if(n.tokenizer){const i=this.defaults.tokenizer||new at(this.defaults);for(const r in n.tokenizer){if(!(r in i))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;const a=r,p=n.tokenizer[a],h=i[a];i[a]=(...f)=>{let k=p.apply(i,f);return k===!1&&(k=h.apply(i,f)),k}}s.tokenizer=i}if(n.hooks){const i=this.defaults.hooks||new rt;for(const r in n.hooks){if(!(r in i))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;const a=r,p=n.hooks[a],h=i[a];rt.passThroughHooks.has(r)?i[a]=f=>{if(this.defaults.async)return Promise.resolve(p.call(i,f)).then(w=>h.call(i,w));const k=p.call(i,f);return h.call(i,k)}:i[a]=(...f)=>{let k=p.apply(i,f);return k===!1&&(k=h.apply(i,f)),k}}s.hooks=i}if(n.walkTokens){const i=this.defaults.walkTokens,r=n.walkTokens;s.walkTokens=function(a){let p=[];return p.push(r.call(this,a)),i&&(p=p.concat(i.call(this,a))),p}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Q.lex(e,t??this.defaults)}parser(e,t){return J.parse(e,t??this.defaults)}parseMarkdown(e){return(n,s)=>{const i={...s},r={...this.defaults,...i},a=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&i.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=e);const p=r.hooks?r.hooks.provideLexer():e?Q.lex:Q.lexInline,h=r.hooks?r.hooks.provideParser():e?J.parse:J.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(f=>p(f,r)).then(f=>r.hooks?r.hooks.processAllTokens(f):f).then(f=>r.walkTokens?Promise.all(this.walkTokens(f,r.walkTokens)).then(()=>f):f).then(f=>h(f,r)).then(f=>r.hooks?r.hooks.postprocess(f):f).catch(a);try{r.hooks&&(n=r.hooks.preprocess(n));let f=p(n,r);r.hooks&&(f=r.hooks.processAllTokens(f)),r.walkTokens&&this.walkTokens(f,r.walkTokens);let k=h(f,r);return r.hooks&&(k=r.hooks.postprocess(k)),k}catch(f){return a(f)}}}onError(e,t){return n=>{if(n.message+=`
|
|
87
|
+
Please report this to https://github.com/markedjs/marked.`,e){const s="<p>An error occurred:</p><pre>"+le(n.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(n);throw n}}}const Te=new Vr;function R(l,e){return Te.parse(l,e)}R.options=R.setOptions=function(l){return Te.setOptions(l),R.defaults=Te.defaults,$n(R.defaults),R};R.getDefaults=$t;R.defaults=ye;R.use=function(...l){return Te.use(...l),R.defaults=Te.defaults,$n(R.defaults),R};R.walkTokens=function(l,e){return Te.walkTokens(l,e)};R.parseInline=Te.parseInline;R.Parser=J;R.parser=J.parse;R.Renderer=ct;R.TextRenderer=Wt;R.Lexer=Q;R.lexer=Q.lex;R.Tokenizer=at;R.Hooks=rt;R.parse=R;R.options;R.setOptions;R.use;R.walkTokens;R.parseInline;J.parse;Q.lex;const Zr=60*60*1e3,ht="github_data_";function qt(l,e){const t={data:e,timestamp:Date.now()};localStorage.setItem(l,JSON.stringify(t))}function Vt(l){const e=localStorage.getItem(l);if(!e)return null;try{const{data:t,timestamp:n}=JSON.parse(e);return Date.now()-n>Zr?null:t}catch{return null}}function Yr(l){const e=localStorage.getItem(l);if(!e)return"实时数据";try{const{timestamp:t}=JSON.parse(e),n=Date.now()-t,s=Math.floor(n/6e4);return s<1?"刚刚更新":s<60?`${s} 分钟前更新`:`${Math.floor(s/60)} 小时前更新`}catch{return"实时数据"}}async function Xr(l,e=!1){const t=`${ht}repo_${l.owner}_${l.name}`;if(!e){const i=Vt(t);if(i)return i}const n=await fetch(`https://api.github.com/repos/${l.owner}/${l.name}`);if(!n.ok)throw new Error(`Failed to fetch ${l.name} repository data`);const s=await n.json();return qt(t,s),s}async function Zn(l,e=!1){const t=`${ht}commits_${l.owner}_${l.name}_${l.branch}`;if(!e){const r=Vt(t);if(r)return r}let n=`https://api.github.com/repos/${l.owner}/${l.name}/commits?per_page=5`;l.branch&&(n+=`&sha=${l.branch}`);const s=await fetch(n);if(!s.ok)throw new Error(`Failed to fetch ${l.name} commits`);const i=await s.json();return qt(t,i),i}async function Kr(l,e=!1){const t=`${ht}releases_${l.owner}_${l.name}`;if(!e){const i=Vt(t);if(i)return i}const n=await fetch(`https://api.github.com/repos/${l.owner}/${l.name}/releases?per_page=3`);if(!n.ok)throw new Error(`Failed to fetch ${l.name} releases`);const s=await n.json();return qt(t,s),s}function Qr(l){const e=`${ht}repo_${l.owner}_${l.name}`;return Yr(e)}async function Jr(l,e=!1){try{const[t,n,s]=await Promise.all([Xr(l,e),Zn(l,e),Kr(l,e)]);return{repository:t,commits:n,releases:s}}catch(t){throw console.error(`Error fetching data for ${l.name}:`,t),t}}/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:Yn,setPrototypeOf:An,isFrozen:ei,getPrototypeOf:ti,getOwnPropertyDescriptor:ni}=Object;let{freeze:q,seal:ee,create:Xn}=Object,{apply:Dt,construct:Nt}=typeof Reflect<"u"&&Reflect;q||(q=function(e){return e});ee||(ee=function(e){return e});Dt||(Dt=function(e,t,n){return e.apply(t,n)});Nt||(Nt=function(e,t){return new e(...t)});const nt=V(Array.prototype.forEach),si=V(Array.prototype.lastIndexOf),En=V(Array.prototype.pop),$e=V(Array.prototype.push),ri=V(Array.prototype.splice),it=V(String.prototype.toLowerCase),Ct=V(String.prototype.toString),Rn=V(String.prototype.match),Pe=V(String.prototype.replace),ii=V(String.prototype.indexOf),oi=V(String.prototype.trim),se=V(Object.prototype.hasOwnProperty),j=V(RegExp.prototype.test),Be=li(TypeError);function V(l){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return Dt(l,e,n)}}function li(l){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Nt(l,t)}}function T(l,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:it;An&&An(l,null);let n=e.length;for(;n--;){let s=e[n];if(typeof s=="string"){const i=t(s);i!==s&&(ei(e)||(e[n]=i),s=i)}l[s]=!0}return l}function ai(l){for(let e=0;e<l.length;e++)se(l,e)||(l[e]=null);return l}function be(l){const e=Xn(null);for(const[t,n]of Yn(l))se(l,t)&&(Array.isArray(n)?e[t]=ai(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=be(n):e[t]=n);return e}function Fe(l,e){for(;l!==null;){const n=ni(l,e);if(n){if(n.get)return V(n.get);if(typeof n.value=="function")return V(n.value)}l=ti(l)}function t(){return null}return t}const Cn=q(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Lt=q(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),It=q(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ci=q(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),zt=q(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ui=q(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ln=q(["#text"]),In=q(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ot=q(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),zn=q(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),st=q(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pi=ee(/\{\{[\w\W]*|[\w\W]*\}\}/gm),hi=ee(/<%[\w\W]*|[\w\W]*%>/gm),fi=ee(/\$\{[\w\W]*/gm),di=ee(/^data-[\-\w.\u00B7-\uFFFF]+$/),gi=ee(/^aria-[\-\w]+$/),Kn=ee(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mi=ee(/^(?:\w+script|data):/i),ki=ee(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qn=ee(/^html$/i),wi=ee(/^[a-z][.\w]*(-[.\w]+)+$/i);var On=Object.freeze({__proto__:null,ARIA_ATTR:gi,ATTR_WHITESPACE:ki,CUSTOM_ELEMENT:wi,DATA_ATTR:di,DOCTYPE_NAME:Qn,ERB_EXPR:hi,IS_ALLOWED_URI:Kn,IS_SCRIPT_OR_DATA:mi,MUSTACHE_EXPR:pi,TMPLIT_EXPR:fi});const Ue={element:1,text:3,progressingInstruction:7,comment:8,document:9},xi=function(){return typeof window>"u"?null:window},_i=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(n=t.getAttribute(s));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(r){return r},createScriptURL(r){return r}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Mn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Jn(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xi();const e=m=>Jn(m);if(e.version="3.2.4",e.removed=[],!l||!l.document||l.document.nodeType!==Ue.document||!l.Element)return e.isSupported=!1,e;let{document:t}=l;const n=t,s=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:r,Node:a,Element:p,NodeFilter:h,NamedNodeMap:f=l.NamedNodeMap||l.MozNamedAttrMap,HTMLFormElement:k,DOMParser:w,trustedTypes:b}=l,L=p.prototype,A=Fe(L,"cloneNode"),O=Fe(L,"remove"),me=Fe(L,"nextSibling"),de=Fe(L,"childNodes"),ae=Fe(L,"parentNode");if(typeof r=="function"){const m=t.createElement("template");m.content&&m.content.ownerDocument&&(t=m.content.ownerDocument)}let D,te="";const{implementation:ke,createNodeIterator:ge,createDocumentFragment:ce,getElementsByTagName:we}=t,{importNode:ft}=n;let x=Mn();e.isSupported=typeof Yn=="function"&&typeof ae=="function"&&ke&&ke.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:d,ERB_EXPR:_,TMPLIT_EXPR:Z,DATA_ATTR:ue,ARIA_ATTR:es,IS_SCRIPT_OR_DATA:ts,ATTR_WHITESPACE:Zt,CUSTOM_ELEMENT:ns}=On;let{IS_ALLOWED_URI:Yt}=On,N=null;const Xt=T({},[...Cn,...Lt,...It,...zt,...Ln]);let B=null;const Kt=T({},[...In,...Ot,...zn,...st]);let M=Object.seal(Xn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ie=null,dt=null,Qt=!0,gt=!0,Jt=!1,en=!0,ve=!1,mt=!0,xe=!1,kt=!1,wt=!1,Se=!1,je=!1,We=!1,tn=!0,nn=!1;const ss="user-content-";let xt=!0,ze=!1,Ae={},Ee=null;const sn=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let rn=null;const on=T({},["audio","video","img","source","image","track"]);let _t=null;const ln=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",Ve="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml";let Re=pe,bt=!1,Tt=null;const rs=T({},[qe,Ve,pe],Ct);let Ze=T({},["mi","mo","mn","ms","mtext"]),Ye=T({},["annotation-xml"]);const is=T({},["title","style","font","a","script"]);let Oe=null;const os=["application/xhtml+xml","text/html"],ls="text/html";let $=null,Ce=null;const as=t.createElement("form"),an=function(o){return o instanceof RegExp||o instanceof Function},yt=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ce&&Ce===o)){if((!o||typeof o!="object")&&(o={}),o=be(o),Oe=os.indexOf(o.PARSER_MEDIA_TYPE)===-1?ls:o.PARSER_MEDIA_TYPE,$=Oe==="application/xhtml+xml"?Ct:it,N=se(o,"ALLOWED_TAGS")?T({},o.ALLOWED_TAGS,$):Xt,B=se(o,"ALLOWED_ATTR")?T({},o.ALLOWED_ATTR,$):Kt,Tt=se(o,"ALLOWED_NAMESPACES")?T({},o.ALLOWED_NAMESPACES,Ct):rs,_t=se(o,"ADD_URI_SAFE_ATTR")?T(be(ln),o.ADD_URI_SAFE_ATTR,$):ln,rn=se(o,"ADD_DATA_URI_TAGS")?T(be(on),o.ADD_DATA_URI_TAGS,$):on,Ee=se(o,"FORBID_CONTENTS")?T({},o.FORBID_CONTENTS,$):sn,Ie=se(o,"FORBID_TAGS")?T({},o.FORBID_TAGS,$):{},dt=se(o,"FORBID_ATTR")?T({},o.FORBID_ATTR,$):{},Ae=se(o,"USE_PROFILES")?o.USE_PROFILES:!1,Qt=o.ALLOW_ARIA_ATTR!==!1,gt=o.ALLOW_DATA_ATTR!==!1,Jt=o.ALLOW_UNKNOWN_PROTOCOLS||!1,en=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ve=o.SAFE_FOR_TEMPLATES||!1,mt=o.SAFE_FOR_XML!==!1,xe=o.WHOLE_DOCUMENT||!1,Se=o.RETURN_DOM||!1,je=o.RETURN_DOM_FRAGMENT||!1,We=o.RETURN_TRUSTED_TYPE||!1,wt=o.FORCE_BODY||!1,tn=o.SANITIZE_DOM!==!1,nn=o.SANITIZE_NAMED_PROPS||!1,xt=o.KEEP_CONTENT!==!1,ze=o.IN_PLACE||!1,Yt=o.ALLOWED_URI_REGEXP||Kn,Re=o.NAMESPACE||pe,Ze=o.MATHML_TEXT_INTEGRATION_POINTS||Ze,Ye=o.HTML_INTEGRATION_POINTS||Ye,M=o.CUSTOM_ELEMENT_HANDLING||{},o.CUSTOM_ELEMENT_HANDLING&&an(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(M.tagNameCheck=o.CUSTOM_ELEMENT_HANDLING.tagNameCheck),o.CUSTOM_ELEMENT_HANDLING&&an(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(M.attributeNameCheck=o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),o.CUSTOM_ELEMENT_HANDLING&&typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(M.allowCustomizedBuiltInElements=o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve&&(gt=!1),je&&(Se=!0),Ae&&(N=T({},Ln),B=[],Ae.html===!0&&(T(N,Cn),T(B,In)),Ae.svg===!0&&(T(N,Lt),T(B,Ot),T(B,st)),Ae.svgFilters===!0&&(T(N,It),T(B,Ot),T(B,st)),Ae.mathMl===!0&&(T(N,zt),T(B,zn),T(B,st))),o.ADD_TAGS&&(N===Xt&&(N=be(N)),T(N,o.ADD_TAGS,$)),o.ADD_ATTR&&(B===Kt&&(B=be(B)),T(B,o.ADD_ATTR,$)),o.ADD_URI_SAFE_ATTR&&T(_t,o.ADD_URI_SAFE_ATTR,$),o.FORBID_CONTENTS&&(Ee===sn&&(Ee=be(Ee)),T(Ee,o.FORBID_CONTENTS,$)),xt&&(N["#text"]=!0),xe&&T(N,["html","head","body"]),N.table&&(T(N,["tbody"]),delete Ie.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw Be('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Be('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=o.TRUSTED_TYPES_POLICY,te=D.createHTML("")}else D===void 0&&(D=_i(b,s)),D!==null&&typeof te=="string"&&(te=D.createHTML(""));q&&q(o),Ce=o}},cn=T({},[...Lt,...It,...ci]),un=T({},[...zt,...ui]),cs=function(o){let u=ae(o);(!u||!u.tagName)&&(u={namespaceURI:Re,tagName:"template"});const g=it(o.tagName),I=it(u.tagName);return Tt[o.namespaceURI]?o.namespaceURI===Ve?u.namespaceURI===pe?g==="svg":u.namespaceURI===qe?g==="svg"&&(I==="annotation-xml"||Ze[I]):!!cn[g]:o.namespaceURI===qe?u.namespaceURI===pe?g==="math":u.namespaceURI===Ve?g==="math"&&Ye[I]:!!un[g]:o.namespaceURI===pe?u.namespaceURI===Ve&&!Ye[I]||u.namespaceURI===qe&&!Ze[I]?!1:!un[g]&&(is[g]||!cn[g]):!!(Oe==="application/xhtml+xml"&&Tt[o.namespaceURI]):!1},re=function(o){$e(e.removed,{element:o});try{ae(o).removeChild(o)}catch{O(o)}},Xe=function(o,u){try{$e(e.removed,{attribute:u.getAttributeNode(o),from:u})}catch{$e(e.removed,{attribute:null,from:u})}if(u.removeAttribute(o),o==="is")if(Se||je)try{re(u)}catch{}else try{u.setAttribute(o,"")}catch{}},pn=function(o){let u=null,g=null;if(wt)o="<remove></remove>"+o;else{const F=Rn(o,/^[\r\n\t ]+/);g=F&&F[0]}Oe==="application/xhtml+xml"&&Re===pe&&(o='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+o+"</body></html>");const I=D?D.createHTML(o):o;if(Re===pe)try{u=new w().parseFromString(I,Oe)}catch{}if(!u||!u.documentElement){u=ke.createDocument(Re,"template",null);try{u.documentElement.innerHTML=bt?te:I}catch{}}const H=u.body||u.documentElement;return o&&g&&H.insertBefore(t.createTextNode(g),H.childNodes[0]||null),Re===pe?we.call(u,xe?"html":"body")[0]:xe?u.documentElement:H},hn=function(o){return ge.call(o.ownerDocument||o,o,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},vt=function(o){return o instanceof k&&(typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||!(o.attributes instanceof f)||typeof o.removeAttribute!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function")},fn=function(o){return typeof a=="function"&&o instanceof a};function he(m,o,u){nt(m,g=>{g.call(e,o,u,Ce)})}const dn=function(o){let u=null;if(he(x.beforeSanitizeElements,o,null),vt(o))return re(o),!0;const g=$(o.nodeName);if(he(x.uponSanitizeElement,o,{tagName:g,allowedTags:N}),o.hasChildNodes()&&!fn(o.firstElementChild)&&j(/<[/\w]/g,o.innerHTML)&&j(/<[/\w]/g,o.textContent)||o.nodeType===Ue.progressingInstruction||mt&&o.nodeType===Ue.comment&&j(/<[/\w]/g,o.data))return re(o),!0;if(!N[g]||Ie[g]){if(!Ie[g]&&mn(g)&&(M.tagNameCheck instanceof RegExp&&j(M.tagNameCheck,g)||M.tagNameCheck instanceof Function&&M.tagNameCheck(g)))return!1;if(xt&&!Ee[g]){const I=ae(o)||o.parentNode,H=de(o)||o.childNodes;if(H&&I){const F=H.length;for(let Y=F-1;Y>=0;--Y){const ie=A(H[Y],!0);ie.__removalCount=(o.__removalCount||0)+1,I.insertBefore(ie,me(o))}}}return re(o),!0}return o instanceof p&&!cs(o)||(g==="noscript"||g==="noembed"||g==="noframes")&&j(/<\/no(script|embed|frames)/i,o.innerHTML)?(re(o),!0):(ve&&o.nodeType===Ue.text&&(u=o.textContent,nt([d,_,Z],I=>{u=Pe(u,I," ")}),o.textContent!==u&&($e(e.removed,{element:o.cloneNode()}),o.textContent=u)),he(x.afterSanitizeElements,o,null),!1)},gn=function(o,u,g){if(tn&&(u==="id"||u==="name")&&(g in t||g in as))return!1;if(!(gt&&!dt[u]&&j(ue,u))){if(!(Qt&&j(es,u))){if(!B[u]||dt[u]){if(!(mn(o)&&(M.tagNameCheck instanceof RegExp&&j(M.tagNameCheck,o)||M.tagNameCheck instanceof Function&&M.tagNameCheck(o))&&(M.attributeNameCheck instanceof RegExp&&j(M.attributeNameCheck,u)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(u))||u==="is"&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&j(M.tagNameCheck,g)||M.tagNameCheck instanceof Function&&M.tagNameCheck(g))))return!1}else if(!_t[u]){if(!j(Yt,Pe(g,Zt,""))){if(!((u==="src"||u==="xlink:href"||u==="href")&&o!=="script"&&ii(g,"data:")===0&&rn[o])){if(!(Jt&&!j(ts,Pe(g,Zt,"")))){if(g)return!1}}}}}}return!0},mn=function(o){return o!=="annotation-xml"&&Rn(o,ns)},kn=function(o){he(x.beforeSanitizeAttributes,o,null);const{attributes:u}=o;if(!u||vt(o))return;const g={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let I=u.length;for(;I--;){const H=u[I],{name:F,namespaceURI:Y,value:ie}=H,Me=$(F);let G=F==="value"?ie:oi(ie);if(g.attrName=Me,g.attrValue=G,g.keepAttr=!0,g.forceKeepAttr=void 0,he(x.uponSanitizeAttribute,o,g),G=g.attrValue,nn&&(Me==="id"||Me==="name")&&(Xe(F,o),G=ss+G),mt&&j(/((--!?|])>)|<\/(style|title)/i,G)){Xe(F,o);continue}if(g.forceKeepAttr||(Xe(F,o),!g.keepAttr))continue;if(!en&&j(/\/>/i,G)){Xe(F,o);continue}ve&&nt([d,_,Z],xn=>{G=Pe(G,xn," ")});const wn=$(o.nodeName);if(gn(wn,Me,G)){if(D&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!Y)switch(b.getAttributeType(wn,Me)){case"TrustedHTML":{G=D.createHTML(G);break}case"TrustedScriptURL":{G=D.createScriptURL(G);break}}try{Y?o.setAttributeNS(Y,F,G):o.setAttribute(F,G),vt(o)?re(o):En(e.removed)}catch{}}}he(x.afterSanitizeAttributes,o,null)},us=function m(o){let u=null;const g=hn(o);for(he(x.beforeSanitizeShadowDOM,o,null);u=g.nextNode();)he(x.uponSanitizeShadowNode,u,null),dn(u),kn(u),u.content instanceof i&&m(u.content);he(x.afterSanitizeShadowDOM,o,null)};return e.sanitize=function(m){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=null,g=null,I=null,H=null;if(bt=!m,bt&&(m="<!-->"),typeof m!="string"&&!fn(m))if(typeof m.toString=="function"){if(m=m.toString(),typeof m!="string")throw Be("dirty is not a string, aborting")}else throw Be("toString is not a function");if(!e.isSupported)return m;if(kt||yt(o),e.removed=[],typeof m=="string"&&(ze=!1),ze){if(m.nodeName){const ie=$(m.nodeName);if(!N[ie]||Ie[ie])throw Be("root node is forbidden and cannot be sanitized in-place")}}else if(m instanceof a)u=pn("<!---->"),g=u.ownerDocument.importNode(m,!0),g.nodeType===Ue.element&&g.nodeName==="BODY"||g.nodeName==="HTML"?u=g:u.appendChild(g);else{if(!Se&&!ve&&!xe&&m.indexOf("<")===-1)return D&&We?D.createHTML(m):m;if(u=pn(m),!u)return Se?null:We?te:""}u&&wt&&re(u.firstChild);const F=hn(ze?m:u);for(;I=F.nextNode();)dn(I),kn(I),I.content instanceof i&&us(I.content);if(ze)return m;if(Se){if(je)for(H=ce.call(u.ownerDocument);u.firstChild;)H.appendChild(u.firstChild);else H=u;return(B.shadowroot||B.shadowrootmode)&&(H=ft.call(n,H,!0)),H}let Y=xe?u.outerHTML:u.innerHTML;return xe&&N["!doctype"]&&u.ownerDocument&&u.ownerDocument.doctype&&u.ownerDocument.doctype.name&&j(Qn,u.ownerDocument.doctype.name)&&(Y="<!DOCTYPE "+u.ownerDocument.doctype.name+`>
|
|
88
|
+
`+Y),ve&&nt([d,_,Z],ie=>{Y=Pe(Y,ie," ")}),D&&We?D.createHTML(Y):Y},e.setConfig=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yt(m),kt=!0},e.clearConfig=function(){Ce=null,kt=!1},e.isValidAttribute=function(m,o,u){Ce||yt({});const g=$(m),I=$(o);return gn(g,I,u)},e.addHook=function(m,o){typeof o=="function"&&$e(x[m],o)},e.removeHook=function(m,o){if(o!==void 0){const u=si(x[m],o);return u===-1?void 0:ri(x[m],u,1)[0]}return En(x[m])},e.removeHooks=function(m){x[m]=[]},e.removeAllHooks=function(){x=Mn()},e}var bi=Jn();const Ti={class:"dashboard-container"},yi={class:"welcome-header"},vi={class:"time-container"},Si={class:"time"},Ai={class:"date"},Ei={class:"greeting-container"},Ri={class:"greeting"},Ci={class:"welcome-message"},Li={key:0,class:"version-badge"},Ii={class:"content-container"},zi={class:"nav-panel"},Oi={class:"nav-grid"},Mi={class:"nav-icon"},Di={class:"nav-title"},Ni={class:"nav-description"},$i={class:"status-section"},Pi={class:"status-card online"},Bi={class:"status-icon"},Fi={class:"status-card version"},Ui={class:"status-icon"},Hi={class:"status-text"},Gi={class:"content-panel"},ji={class:"repo-tabs"},Wi=["onClick"],qi={key:1,class:"repo-container"},Vi={class:"repo-header"},Zi=["href"],Yi={class:"cache-indicator"},Xi={class:"repo-stats"},Ki={class:"repo-stat"},Qi={class:"repo-stat"},Ji={class:"repo-stat"},eo={class:"repo-description"},to={class:"commit-section"},no={class:"section-header"},so={class:"commit-header"},ro={class:"commit-author"},io={class:"author-name"},oo={class:"commit-date"},lo={class:"commit-message"},ao=["href"],co={class:"commit-stats"},uo={key:0,class:"stats-item"},po={class:"stats-value addition"},ho={key:1,class:"stats-item"},fo={class:"stats-value deletion"},go={key:0,class:"empty-state"},mo={class:"release-section"},ko={class:"release-name"},wo=["href"],xo={class:"release-date"},_o=["innerHTML"],bo={key:0,class:"empty-state"},To={key:2,class:"error-message"},yo=U({__name:"index",setup(l){const e=_s(),t=bs(),n=ot(()=>t.userInfo?.userName||"管理员"),s=[{owner:"ikechan8370",name:"chatgpt-plugin",displayName:"ChatGPT Plugin",branch:"v3"},{owner:"ikechan8370",name:"node-chaite",displayName:"Chaite",branch:"main"}],i=ne(!1),r=ne(""),a=ne(0),p=ne({}),h=ne({}),f=ne(!1),k=ne({}),w=ot(()=>{const x=s[a.value];return x?k.value[x.name]:null});function b(x){if(!x)return"";const d=R.parse(x);return bi.sanitize(d)}const L=ne(""),A=ne(""),O=ne("");let me;function de(){const x=new Date,d=x.getHours();L.value=x.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}),L.value=x.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}),A.value=x.toLocaleDateString("zh-CN",{year:"numeric",month:"long",day:"numeric",weekday:"long"}),d<12?O.value="早上好":d<18?O.value="下午好":O.value="晚上好"}const ae=[{title:"系统配置",description:"配置系统参数和行为",route:"/config",icon:ir,primary:!0},{title:"渠道管理",description:"查看和管理模型渠道",route:"/channels",icon:Bs},{title:"工具管理",description:"管理工具Agent",route:"/tools",icon:Ks},{title:"预设管理",description:"创建和编辑对话预设",route:"/chat-preset",icon:$s},{title:"处理器管理",description:"配置和管理前后处理器",route:"/processors",icon:Ws},{title:"适配器管理",description:"配置和管理适配器",route:"/adapters",icon:cr}];function D(x){e.push(x)}function te(x){const d=new Date(x),Z=new Date().getTime()-d.getTime(),ue=24*60*60*1e3;return Z<ue?`今天 ${d.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})}`:Z<2*ue?`昨天 ${d.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})}`:Z<7*ue?`${Math.floor(Z/ue)}天前`:d.toLocaleDateString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit"})}async function ke(){if(f.value)return;f.value=!0;const x=s[a.value];try{const d=await Zn(x,!0);p.value[x.name]=d}catch(d){console.error("Failed to refresh commits:",d)}finally{f.value=!1}}async function ge(x=!1){i.value=!0,r.value="";try{for(const d of s){const{repository:_,commits:Z,releases:ue}=await Jr(d,x);k.value[d.name]=_,p.value[d.name]=Z,h.value[d.name]=ue}}catch(d){r.value=d instanceof Error?d.message:"Unknown error occurred"}finally{i.value=!1}}function ce(){const x=s[a.value];return x?Qr(x):""}const we=ne();async function ft(){const x=await Ds();x.isSuccess&&(we.value=x.data)}return Ts(()=>{de(),ft(),me=window.setInterval(de,1e3),ge()}),ys(()=>{clearInterval(me)}),(x,d)=>(y(),C("div",Ti,[c("div",yi,[c("div",vi,[c("div",Si,z(L.value),1),c("div",Ai,z(A.value),1)]),c("div",Ei,[c("h1",Ri,z(O.value)+", "+z(we.value?.user?.username||n.value),1),c("p",Ci,[d[1]||(d[1]=fe(" 欢迎回到 ChatGPT 管理系统 ")),we.value?.version?(y(),C("span",Li,"v"+z(we.value.version),1)):K("",!0)])])]),c("div",Ii,[c("div",zi,[d[3]||(d[3]=c("h2",{class:"panel-title"}," 快捷导航 ",-1)),c("div",Oi,[(y(),C(Qe,null,Je(ae,_=>P(v(Rt),{key:_.title,class:Et(["nav-card",{primary:_.primary}]),hoverable:"",onClick:Z=>D(_.route)},{default:X(()=>[c("div",Mi,[P(v(oe),{component:_.icon,size:"28"},null,8,["component"])]),c("div",Di,z(_.title),1),c("div",Ni,z(_.description),1)]),_:2},1032,["class","onClick"])),64))]),c("div",$i,[c("div",Pi,[c("div",Bi,[P(v(oe),{component:v(sr),size:"20"},null,8,["component"])]),d[2]||(d[2]=c("div",{class:"status-text"}," 系统状态: 在线 ",-1))]),c("div",Fi,[c("div",Ui,[P(v(oe),{component:v(Us),size:"20"},null,8,["component"])]),c("div",Hi," 当前版本: "+z(we.value?.version||"3.0.0"),1)])])]),c("div",Gi,[d[15]||(d[15]=c("h2",{class:"panel-title"}," GitHub 项目动态 ",-1)),c("div",ji,[(y(),C(Qe,null,Je(s,(_,Z)=>c("div",{key:_.name,class:Et(["repo-tab",{active:a.value===Z}]),onClick:ue=>a.value=Z},z(_.displayName),11,Wi)),64))]),i.value?(y(),_e(v(As),{key:0,show:i.value,class:"repo-spinner"},{description:X(()=>d[4]||(d[4]=[fe(" 加载中... ")])),_:1},8,["show"])):K("",!0),!i.value&&w.value?(y(),C("div",qi,[c("div",Vi,[P(v(oe),{component:v(Ys),size:"24",class:"repo-icon"},null,8,["component"]),c("a",{href:w.value.html_url,target:"_blank",class:"repo-title"},z(w.value.full_name),9,Zi),P(v(At),{type:w.value.private?"warning":"success",size:"small",class:"repo-tag"},{default:X(()=>[fe(z(w.value.private?"私有":"公开"),1)]),_:1},8,["type"]),c("div",Yi,[P(v(oe),{component:v(pr),size:"14",class:"cache-icon"},null,8,["component"]),c("span",null,z(ce()),1)]),c("div",Xi,[c("div",Ki,[P(v(oe),{component:v(lr),size:"16"},null,8,["component"]),c("span",null,z(w.value.stargazers_count),1)]),c("div",Qi,[P(v(oe),{component:v(Vs),size:"16"},null,8,["component"]),c("span",null,z(w.value.forks_count),1)]),c("div",Ji,[P(v(oe),{component:v(Gs),size:"16"},null,8,["component"]),c("span",null,z(w.value.watchers_count),1)])])]),c("p",eo,z(w.value.description||"暂无描述"),1),c("div",to,[c("div",no,[d[6]||(d[6]=c("h3",null,"最新提交",-1)),P(v(et),{text:"",size:"small",disabled:f.value,onClick:ke},{icon:X(()=>[P(v(oe),{component:v(tr),class:Et({"icon-spin":f.value})},null,8,["component","class"])]),default:X(()=>[d[5]||(d[5]=fe(" 刷新 "))]),_:1},8,["disabled"])]),(y(!0),C(Qe,null,Je(p.value[w.value.name]||[],_=>(y(),_e(v(Rt),{key:_.sha,class:"commit-card"},{default:X(()=>[c("div",so,[P(v(vs),{round:"",size:"small",src:_.author?.avatar_url,"fallback-src":"https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"},null,8,["src"]),c("div",ro,[c("div",io,z(_.author?.login||_.commit.author.name),1),c("div",oo,z(te(_.commit.author.date)),1)])]),c("div",lo,[c("a",{href:_.html_url,target:"_blank"},z(_.commit.message),9,ao)]),c("div",co,[_.stats?(y(),C("div",uo,[d[7]||(d[7]=c("div",{class:"stats-label"}," 新增 ",-1)),c("div",po," +"+z(_.stats.additions),1)])):K("",!0),_.stats?(y(),C("div",ho,[d[8]||(d[8]=c("div",{class:"stats-label"}," 删除 ",-1)),c("div",fo," -"+z(_.stats.deletions),1)])):K("",!0)])]),_:2},1024))),128)),(p.value[w.value.name]||[]).length===0?(y(),C("div",go,[P(v(_n),{description:"暂无提交记录"})])):K("",!0),(p.value[w.value.name]||[]).length>0?(y(),_e(v(et),{key:1,class:"view-more-btn",text:"",type:"primary",block:"",tag:"a",href:`${w.value.html_url}/commits`,target:"_blank"},{default:X(()=>d[9]||(d[9]=[fe(" 查看更多提交记录 ")])),_:1},8,["href"])):K("",!0)]),c("div",mo,[d[13]||(d[13]=c("div",{class:"section-header"},[c("h3",null,"最新发布")],-1)),(y(!0),C(Qe,null,Je(h.value[w.value.name]?.slice(0,2)||[],_=>(y(),_e(v(Rt),{key:_.id,class:"release-card"},{default:X(()=>[c("div",ko,[P(v(oe),{component:v(Js),size:"16"},null,8,["component"]),c("a",{href:_.html_url,target:"_blank"},z(_.name||_.tag_name),9,wo),_.prerelease?(y(),_e(v(At),{key:0,size:"small",type:"warning"},{default:X(()=>d[10]||(d[10]=[fe(" 预发布 ")])),_:1})):_.draft?(y(),_e(v(At),{key:1,size:"small",type:"info"},{default:X(()=>d[11]||(d[11]=[fe(" 草稿 ")])),_:1})):K("",!0)]),c("div",xo," 发布于 "+z(te(_.published_at)),1),_.body?(y(),C("div",{key:0,class:"release-body",innerHTML:b(_.body)},null,8,_o)):K("",!0)]),_:2},1024))),128)),(h.value[w.value.name]||[]).length===0?(y(),C("div",bo,[P(v(_n),{description:"暂无发布记录"})])):K("",!0),(h.value[w.value.name]||[]).length>0?(y(),_e(v(et),{key:1,class:"view-more-btn",text:"",type:"primary",block:"",tag:"a",href:`${w.value.html_url}/releases`,target:"_blank"},{default:X(()=>d[12]||(d[12]=[fe(" 查看更多发布 ")])),_:1},8,["href"])):K("",!0)])])):K("",!0),!i.value&&r.value?(y(),C("div",To,[P(v(Ms),{status:"error",title:"获取数据失败",description:r.value},{footer:X(()=>[P(v(et),{onClick:d[0]||(d[0]=_=>ge(!0))},{default:X(()=>d[14]||(d[14]=[fe(" 重试 ")])),_:1})]),_:1},8,["description"])])):K("",!0)])]),d[16]||(d[16]=Nn('<div class="decorative-circle circle-1" data-v-95a1c391></div><div class="decorative-circle circle-2" data-v-95a1c391></div><div class="decorative-dots" data-v-95a1c391></div><div class="floating-shape shape-1" data-v-95a1c391></div><div class="floating-shape shape-2" data-v-95a1c391></div>',5))]))}}),Ao=Ss(yo,[["__scopeId","data-v-95a1c391"]]);export{Ao as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as D}from"./add-one-DQqaMb3g.js";import{d as Q,L as j,M as y,r as i,v as q,c as H,o as K,e as o,w as a,y as W,u as l,E as X,O,B as f,g as h,P as Y,Q as Z,z as M,a as ee,p as _,R as te,k as oe}from"./index-03UGSOxl.js";import{I as ae}from"./cloudy-C02z4bvP.js";import{f as ne,c as se,a as re}from"./presets-cCI64Dxi.js";import le from"./PresetFormModal-Diebn4cS.js";import{f as ie}from"./processors-BGAbvhSk.js";import{f as ue}from"./toolGroup-BpThfFxc.js";import{_ as pe}from"./FormItem-DcKuwtDH.js";import{N as ce,_ as de}from"./Grid-WK2vuhLP.js";import{_ as me}from"./FormItemGridItem-cjYQS3d8.js";import{N as fe}from"./DataTable-BNjopWG3.js";import"./InputNumber-BtSrvYnH.js";import"./CollapseItem-fWJBGjAw.js";import"./Checkbox-DOJuZG8N.js";import"./Ellipsis-BTz09kpN.js";import"./prop-BjyUHhTu.js";import"./download-C2161hUv.js";const _e={class:"flex gap-4"},ve=Q({__name:"index",setup(ge){function S({edit:t,remove:e}){return[{title:"ID",key:"id"},{title:"名称",key:"name",render(s){const m=[s.name];return s.uploader&&m.push(_(te,{trigger:"hover"},{trigger:()=>_(ae,{style:{color:"green"}}),default:()=>"云端预设"})),_(O,{align:"center"},{default:()=>m})}},{title:"前缀",key:"prefix"},{title:"温度",key:"sendMessageOption.temperature"},{title:"上传者",key:"uploader"},{title:"更新日期",key:"updatedAt"},{title:"创建日期",key:"createdAt"},{title:"操作",key:"actions",render(s){return[_(f,{type:"info",strong:!0,tertiary:!0,size:"small",onClick:()=>t(s)},{default:()=>"修改"}),_(f,{type:"error",strong:!0,tertiary:!0,size:"small",onClick:()=>e(s)},{default:()=>"删除"})]}}]}const u=j(),k=y({value:[]}),I=y({value:{}}),r=i(!1),c=i(!1),v=i(!1),P={modelType:"settings",name:"",embedded:!1,description:"",sendMessageOption:{systemOverride:"",temperature:.6,model:""},prefix:"",channelId:"",local:!0},g=i(JSON.parse(JSON.stringify(P))),N=i([]),x=i([]),b=i([]),n=y({name:void 0,prompt:""});function d(t){r.value=!0,ne(t).then(e=>{k.value=e.data,r.value=!1}).catch(e=>{console.error(e),r.value=!1})}function w(){n.name=void 0,n.prompt="",d(n)}function T(){v.value=!1,g.value=JSON.parse(JSON.stringify(P)),c.value=!0}function z(t){v.value=!0,console.error(t),g.value={...t},c.value=!0}function B(t){window.$dialog.warning({title:"确认删除",content:`确定要删除预设 "${t.name}" 吗?此操作不可恢复。`,positiveText:"确认删除",negativeText:"取消",onPositiveClick:()=>{r.value=!0,re(t.id).then(e=>{e.code===0?(u.success("删除成功"),d(n)):u.error(e.message||"删除失败")}).catch(e=>{u.error(e.message||"删除操作发生错误")}).finally(()=>{r.value=!1})}})}function G(t){r.value=!0,se(t).then(e=>{e.code===0?(u.success(v.value?"更新成功":"创建成功"),d(n)):u.error(e.message),r.value=!1,c.value=!1}).catch(e=>{u.error(e.message),r.value=!1})}const L=S({edit(t){z(t)},remove(t){B(t)}});async function J(){try{const t=await ie({});N.value=t.data.filter(e=>e.type==="pre").map(e=>({label:e.name,value:e.id})),x.value=t.data.filter(e=>e.type==="post").map(e=>({label:e.name,value:e.id}))}catch(t){console.error(t)}}function R(t){ue(t).then(e=>{b.value=e.data.map(s=>({label:s.name,value:s.id}))})}return q(()=>{d(I.value),J(),R()}),(t,e)=>{const s=X,m=me,A=Y,E=Z,F=de,U=pe,C=W,V=D,$=fe;return K(),H("div",null,[o(l(M),{vertical:"",size:"large"},{default:a(()=>[o(C,null,{default:a(()=>[o(U,{ref:"formRef",model:n,"label-placement":"left",inline:"","show-feedback":!1},{default:a(()=>[o(l(ce),{cols:"1 s:2 m:3 l:4","x-gap":12,"y-gap":16,responsive:"screen","item-responsive":""},{default:a(()=>[o(m,{span:"1",label:"名称",path:"name"},{default:a(()=>[o(s,{value:n.name,"onUpdate:value":e[0]||(e[0]=p=>n.name=p),placeholder:"请输入要搜索的名称关键词"},null,8,["value"])]),_:1}),o(m,{span:"1",label:"模型",path:"model"},{default:a(()=>[o(s,{value:n.prompt,"onUpdate:value":e[1]||(e[1]=p=>n.prompt=p),placeholder:"请输入要搜索的设定内容"},null,8,["value"])]),_:1}),o(F,{span:"1"},{default:a(()=>[o(l(O),{class:"ml-auto"},{default:a(()=>[o(l(f),{type:"primary",onClick:e[2]||(e[2]=p=>d(n))},{icon:a(()=>[o(A)]),default:a(()=>[e[4]||(e[4]=h(" 搜索 "))]),_:1}),o(l(f),{strong:"",secondary:"",onClick:w},{icon:a(()=>[o(E)]),default:a(()=>[e[5]||(e[5]=h(" 重置 "))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),o(C,null,{default:a(()=>[o(l(M),{vertical:"",size:"large"},{default:a(()=>[ee("div",_e,[o(l(f),{type:"primary",onClick:T},{icon:a(()=>[o(V)]),default:a(()=>[e[6]||(e[6]=h(" 新建预设 "))]),_:1})]),o($,{columns:l(L),data:k.value,loading:r.value},null,8,["columns","data","loading"])]),_:1})]),_:1})]),_:1}),o(le,{show:c.value,"onUpdate:show":e[3]||(e[3]=p=>c.value=p),"edit-mode":v.value,"initial-data":g.value,"pre-processor-options":N.value,"post-processor-options":x.value,"tools-options":b.value,onSubmit:G},null,8,["show","edit-mode","initial-data","pre-processor-options","post-processor-options","tools-options"])])}}}),Le=oe(ve,[["__scopeId","data-v-6ab303e4"]]);export{Le as default};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import{a4 as $,a0 as m,bn as T,bo as q,a2 as k,a1 as f,d as V,p as n,ae as F,ag as G,af as U,bp as K,b0 as A,ay as X,s as J,aj as Q,aV as W,aX as Y,bq as Z,U as M,m as E,c as w,o as p,a as h,L as ee,r as v,v as re,e as a,w as d,u as l,B as z,g as j,y as oe,br as te,b as S,I as se,F as ne,A as le,O as ie,t as ae,ap as P,bs as de,k as ce}from"./index-kLEe-31q.js";import{I as ue}from"./preview-open-DqXcn0Io.js";import{_ as ve}from"./ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-U0BsqrL8.js";import{N as me}from"./Spin-C7sqRNqw.js";import{N as fe}from"./DataTable-4ViTZyB6.js";import{N as pe}from"./text-BfkuQm58.js";import{N as he}from"./Popconfirm-wmBfNL4Y.js";import"./MessageContentCard-C2uRLdgO.js";import"./CollapseItem-7YFuTj31.js";import"./Image-CbdTV78X.js";import"./download-C2161hUv.js";import"./Checkbox-HPhUtTKu.js";import"./Ellipsis-CEbBdn2n.js";import"./prop-BjyUHhTu.js";const be=$([m("list",`
|
|
2
|
+
--n-merged-border-color: var(--n-border-color);
|
|
3
|
+
--n-merged-color: var(--n-color);
|
|
4
|
+
--n-merged-color-hover: var(--n-color-hover);
|
|
5
|
+
margin: 0;
|
|
6
|
+
font-size: var(--n-font-size);
|
|
7
|
+
transition:
|
|
8
|
+
background-color .3s var(--n-bezier),
|
|
9
|
+
color .3s var(--n-bezier),
|
|
10
|
+
border-color .3s var(--n-bezier);
|
|
11
|
+
padding: 0;
|
|
12
|
+
list-style-type: none;
|
|
13
|
+
color: var(--n-text-color);
|
|
14
|
+
background-color: var(--n-merged-color);
|
|
15
|
+
`,[k("show-divider",[m("list-item",[$("&:not(:last-child)",[f("divider",`
|
|
16
|
+
background-color: var(--n-merged-border-color);
|
|
17
|
+
`)])])]),k("clickable",[m("list-item",`
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
`)]),k("bordered",`
|
|
20
|
+
border: 1px solid var(--n-merged-border-color);
|
|
21
|
+
border-radius: var(--n-border-radius);
|
|
22
|
+
`),k("hoverable",[m("list-item",`
|
|
23
|
+
border-radius: var(--n-border-radius);
|
|
24
|
+
`,[$("&:hover",`
|
|
25
|
+
background-color: var(--n-merged-color-hover);
|
|
26
|
+
`,[f("divider",`
|
|
27
|
+
background-color: transparent;
|
|
28
|
+
`)])])]),k("bordered, hoverable",[m("list-item",`
|
|
29
|
+
padding: 12px 20px;
|
|
30
|
+
`),f("header, footer",`
|
|
31
|
+
padding: 12px 20px;
|
|
32
|
+
`)]),f("header, footer",`
|
|
33
|
+
padding: 12px 0;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
transition: border-color .3s var(--n-bezier);
|
|
36
|
+
`,[$("&:not(:last-child)",`
|
|
37
|
+
border-bottom: 1px solid var(--n-merged-border-color);
|
|
38
|
+
`)]),m("list-item",`
|
|
39
|
+
position: relative;
|
|
40
|
+
padding: 12px 0;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-wrap: nowrap;
|
|
44
|
+
align-items: center;
|
|
45
|
+
transition:
|
|
46
|
+
background-color .3s var(--n-bezier),
|
|
47
|
+
border-color .3s var(--n-bezier);
|
|
48
|
+
`,[f("prefix",`
|
|
49
|
+
margin-right: 20px;
|
|
50
|
+
flex: 0;
|
|
51
|
+
`),f("suffix",`
|
|
52
|
+
margin-left: 20px;
|
|
53
|
+
flex: 0;
|
|
54
|
+
`),f("main",`
|
|
55
|
+
flex: 1;
|
|
56
|
+
`),f("divider",`
|
|
57
|
+
height: 1px;
|
|
58
|
+
position: absolute;
|
|
59
|
+
bottom: 0;
|
|
60
|
+
left: 0;
|
|
61
|
+
right: 0;
|
|
62
|
+
background-color: transparent;
|
|
63
|
+
transition: background-color .3s var(--n-bezier);
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
`)])]),T(m("list",`
|
|
66
|
+
--n-merged-color-hover: var(--n-color-hover-modal);
|
|
67
|
+
--n-merged-color: var(--n-color-modal);
|
|
68
|
+
--n-merged-border-color: var(--n-border-color-modal);
|
|
69
|
+
`)),q(m("list",`
|
|
70
|
+
--n-merged-color-hover: var(--n-color-hover-popover);
|
|
71
|
+
--n-merged-color: var(--n-color-popover);
|
|
72
|
+
--n-merged-border-color: var(--n-border-color-popover);
|
|
73
|
+
`))]),ge=Object.assign(Object.assign({},U.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),H=W("n-list"),xe=V({name:"List",props:ge,slots:Object,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:s,mergedRtlRef:u}=F(t),g=G("List",u,e),I=U("List","-list",be,K,t,e);A(H,{showDividerRef:X(t,"showDivider"),mergedClsPrefixRef:e});const b=J(()=>{const{common:{cubicBezierEaseInOut:_},self:{fontSize:C,textColor:x,color:y,colorModal:N,colorPopover:D,borderColor:R,borderColorModal:B,borderColorPopover:r,borderRadius:o,colorHover:i,colorHoverModal:L,colorHoverPopover:O}}=I.value;return{"--n-font-size":C,"--n-bezier":_,"--n-text-color":x,"--n-color":y,"--n-border-radius":o,"--n-border-color":R,"--n-border-color-modal":B,"--n-border-color-popover":r,"--n-color-modal":N,"--n-color-popover":D,"--n-color-hover":i,"--n-color-hover-modal":L,"--n-color-hover-popover":O}}),c=s?Q("list",void 0,b,t):void 0;return{mergedClsPrefix:e,rtlEnabled:g,cssVars:s?void 0:b,themeClass:c?.themeClass,onRender:c?.onRender}},render(){var t;const{$slots:e,mergedClsPrefix:s,onRender:u}=this;return u?.(),n("ul",{class:[`${s}-list`,this.rtlEnabled&&`${s}-list--rtl`,this.bordered&&`${s}-list--bordered`,this.showDivider&&`${s}-list--show-divider`,this.hoverable&&`${s}-list--hoverable`,this.clickable&&`${s}-list--clickable`,this.themeClass],style:this.cssVars},e.header?n("div",{class:`${s}-list__header`},e.header()):null,(t=e.default)===null||t===void 0?void 0:t.call(e),e.footer?n("div",{class:`${s}-list__footer`},e.footer()):null)}}),ye=V({name:"ListItem",slots:Object,setup(){const t=Y(H,null);return t||Z("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:t.showDividerRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){const{$slots:t,mergedClsPrefix:e}=this;return n("li",{class:`${e}-list-item`},t.prefix?n("div",{class:`${e}-list-item__prefix`},t.prefix()):null,t.default?n("div",{class:`${e}-list-item__main`},t):null,t.suffix?n("div",{class:`${e}-list-item__suffix`},t.suffix()):null,this.showDivider&&n("div",{class:`${e}-list-item__divider`}))}});function ke(){return M.Get("/api/state/list")}function we(t){return M.Delete(`/api/state/${t}`)}function _e(t,e){return M.Get(`/api/state/history/${e}`,{params:{messageId:t}})}const Ce={style:{display:"inline-block"},viewBox:"0 0 48 48",width:"1.2em",height:"1.2em"};function $e(t,e){return p(),w("svg",Ce,e[0]||(e[0]=[h("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[h("path",{d:"M9 10v34h30V10z"}),h("path",{"stroke-linecap":"round",d:"M20 20v13m8-13v13M4 10h40"}),h("path",{d:"m16 10l3.289-6h9.488L32 10z"})],-1)]))}const ze=E({name:"icon-park-outline-delete",render:$e}),Ie={style:{display:"inline-block"},viewBox:"0 0 48 48",width:"1.2em",height:"1.2em"};function Ne(t,e){return p(),w("svg",Ie,e[0]||(e[0]=[h("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M44 24c0 11.046-8.954 20-20 20H4V24C4 12.954 12.954 4 24 4s20 8.954 20 20m-30-6h18m-18 8h18m-18 8h10"},null,-1)]))}const De=E({name:"icon-park-outline-message",render:Ne}),Re={key:0,class:"flex justify-center items-center py-8"},Be=V({__name:"index",setup(t){const e=ee(),s=v([]),u=v(!1),g=v(!1),I=v(""),b=v([]),c=v(!1),_=v(null),C=v([]),x=v(!1);async function y(){u.value=!0;try{const r=await ke();r.code===0?s.value=r.data:e.error(r.message||"加载用户状态失败")}catch(r){e.error(r.message||"获取用户状态时发生错误")}finally{u.value=!1}}function N(r){I.value=r;const o=s.value.find(i=>i.userId===r);o&&(b.value=o.conversations,g.value=!0)}async function D(r){try{const o=await we(r);o.code===0?(e.success("删除用户状态成功"),await y()):e.error(o.message||"删除用户状态失败")}catch(o){e.error(o.message||"删除用户状态时发生错误")}}async function R(r){_.value=r,c.value=!0,x.value=!0;try{const o=await _e(r.lastMessageId,r.id);o.code===0?C.value=o.data:e.error(o.message||"获取对话历史失败")}catch(o){e.error(o.message||"获取对话历史时发生错误")}finally{x.value=!1}}const B=[{title:"用户ID",key:"userId"},{title:"昵称",key:"nickname",render:r=>r.nickname||"未设置"},{title:"对话数量",key:"conversationCount",render:r=>r.conversations?.length||0},{title:"当前对话",key:"currentConversation",render:r=>{const o=r.conversations?.find(i=>i.id===r.current.conversationId);return o?o.name:"无"}},{title:"预设",key:"settings.preset",render:r=>r.settings?.preset||"默认"},{title:"模型",key:"settings.model",render:r=>r.settings?.model||"未设置"},{title:"操作",key:"actions",render:r=>[n(z,{quaternary:!0,size:"small",onClick:()=>N(r.userId)},{default:()=>"查看对话",icon:()=>n(P,null,{default:()=>n(De)})}),n(he,{onPositiveClick:()=>D(r.userId.toString())},{trigger:()=>n(z,{quaternary:!0,size:"small",type:"error"},{default:()=>"删除",icon:()=>n(P,null,{default:()=>n(ze)})}),default:()=>"确定要删除此用户状态吗?此操作不可撤销。"})]}];return re(()=>{y()}),(r,o)=>(p(),w("div",null,[a(l(oe),{title:"用户状态管理"},{"header-extra":d(()=>[a(l(z),{type:"primary",onClick:y},{default:d(()=>o[2]||(o[2]=[j(" 刷新 ")])),_:1})]),default:d(()=>[a(l(me),{show:u.value},{default:d(()=>[a(l(fe),{columns:B,data:s.value,bordered:!1,striped:""},null,8,["data"])]),_:1},8,["show"])]),_:1}),a(l(de),{show:g.value,"onUpdate:show":o[0]||(o[0]=i=>g.value=i),width:500},{default:d(()=>[a(l(te),{title:"用户对话列表",closable:""},{default:d(()=>[b.value.length===0?(p(),w("div",Re,[a(l(se),{description:"该用户没有对话记录"})])):(p(),S(l(xe),{key:1},{default:d(()=>[(p(!0),w(ne,null,le(b.value,i=>(p(),S(l(ye),{key:i.id},{default:d(()=>[a(l(ie),{justify:"space-between",align:"center"},{default:d(()=>[h("div",null,[a(l(pe),null,{default:d(()=>[j(ae(i.name),1)]),_:2},1024)]),h("div",null,[a(l(z),{text:"",type:"primary",onClick:L=>R(i)},{icon:d(()=>[a(l(P),null,{default:d(()=>[a(l(ue))]),_:1})]),default:d(()=>[o[3]||(o[3]=j(" 查看详情 "))]),_:2},1032,["onClick"])])]),_:2},1024)]),_:2},1024))),128))]),_:1}))]),_:1})]),_:1},8,["show"]),a(ve,{show:c.value,"onUpdate:show":o[1]||(o[1]=i=>c.value=i),conversation:_.value,history:C.value,loading:x.value},null,8,["show","conversation","history","loading"])]))}}),Ke=ce(Be,[["__scopeId","data-v-f34e438e"]]);export{Ke as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-B4NwmABd.js";import"./preview-open-CEgCXCaz.js";import"./index-DzBQLoNi.js";import"./preview-close-one-vOfiPsm0.js";import"./headers-CYAAtr6C.js";import"./FormItem-B_V_gknG.js";import"./Checkbox-CNMr2-eQ.js";import"./text-C8WlRvWq.js";export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ml-auto[data-v-f5bcd20c]{margin-left:auto}.flex[data-v-f5bcd20c]{display:flex}.gap-4[data-v-f5bcd20c]{gap:1rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.dashboard-container[data-v-a2caf83f]{position:relative;min-height:100%;padding:24px;overflow:hidden;background:linear-gradient(135deg,#f5f7fa,#eef2f7)}.welcome-header[data-v-a2caf83f]{display:flex;align-items:center;margin-bottom:32px;position:relative;z-index:10}.time-container[data-v-a2caf83f]{padding:16px 24px;background:#ffffffe6;border-radius:16px;box-shadow:0 8px 16px #0000000f;backdrop-filter:blur(10px);margin-right:24px;min-width:180px;border-left:4px solid #18a058}.time[data-v-a2caf83f]{font-size:32px;font-weight:700;color:#333;letter-spacing:-.5px}.date[data-v-a2caf83f]{font-size:14px;color:#666;margin-top:4px}.greeting-container[data-v-a2caf83f]{flex:1}.greeting[data-v-a2caf83f]{font-size:28px;font-weight:600;margin:0;background:linear-gradient(90deg,#18a058,#36ad6a);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.welcome-message[data-v-a2caf83f]{font-size:16px;color:#666;margin:4px 0 0}.content-container[data-v-a2caf83f]{display:grid;grid-template-columns:minmax(300px,2fr) 3fr;gap:24px;position:relative;z-index:10}.nav-panel[data-v-a2caf83f],.content-panel[data-v-a2caf83f]{background:#fffc;border-radius:16px;box-shadow:0 8px 32px #0000000d;backdrop-filter:blur(10px);padding:24px;overflow:hidden}.panel-title[data-v-a2caf83f]{font-size:18px;font-weight:600;margin:0 0 20px;color:#333;display:flex;align-items:center}.panel-title[data-v-a2caf83f]:after{content:"";display:block;height:2px;margin-left:12px;background:linear-gradient(90deg,#18a058,transparent);flex:1}.nav-grid[data-v-a2caf83f]{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;margin-bottom:20px}.nav-card[data-v-a2caf83f]{padding:10px;cursor:pointer;transition:all .3s ease;border-radius:12px;background:#ffffffe6}.nav-card[data-v-a2caf83f]:hover{transform:translateY(-3px);box-shadow:0 8px 16px #0000001a}.nav-card.primary[data-v-a2caf83f]{background:linear-gradient(135deg,#18a0581a,#36ad6a1a);border-left:3px solid #18a058}.nav-icon[data-v-a2caf83f]{display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:12px;background:#18a0581a;margin-bottom:12px;color:#18a058}.nav-title[data-v-a2caf83f]{font-weight:600;font-size:16px;margin-bottom:4px;color:#333}.nav-description[data-v-a2caf83f]{font-size:12px;color:#666}.status-section[data-v-a2caf83f]{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.status-card[data-v-a2caf83f]{display:flex;align-items:center;padding:10px 16px;border-radius:8px;min-width:140px}.status-card.online[data-v-a2caf83f]{background:#18a0581a;color:#18a058}.status-card.version[data-v-a2caf83f]{background:#409eff1a;color:#409eff}.status-icon[data-v-a2caf83f]{margin-right:8px}.iframe-container[data-v-a2caf83f]{position:relative;height:500px;border-radius:12px;overflow:hidden;box-shadow:0 4px 12px #00000014}.iframe-container iframe[data-v-a2caf83f]{width:100%;height:100%;border:none;transition:opacity .3s}.iframe-spinner[data-v-a2caf83f]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.decorative-circle[data-v-a2caf83f]{position:absolute;border-radius:50%;z-index:1;opacity:.5}.circle-1[data-v-a2caf83f]{top:-100px;right:-100px;width:300px;height:300px;background:radial-gradient(circle,rgba(24,160,88,.1),transparent 70%)}.circle-2[data-v-a2caf83f]{bottom:-50px;left:-50px;width:200px;height:200px;background:radial-gradient(circle,rgba(64,158,255,.1),transparent 70%)}.decorative-dots[data-v-a2caf83f]{position:absolute;inset:0;background-image:radial-gradient(#ddd 1px,transparent 1px);background-size:20px 20px;opacity:.3;z-index:1;pointer-events:none}@media (max-width: 1024px){.content-container[data-v-a2caf83f]{grid-template-columns:1fr}.welcome-header[data-v-a2caf83f]{flex-direction:column;align-items:flex-start}.time-container[data-v-a2caf83f]{margin-right:0;margin-bottom:16px}}.repo-tabs[data-v-a2caf83f]{display:flex;gap:8px;margin-bottom:16px;border-bottom:1px solid #eaeaea;padding-bottom:8px}.repo-tab[data-v-a2caf83f]{padding:8px 16px;border-radius:8px 8px 0 0;cursor:pointer;font-weight:500;transition:all .2s ease;position:relative}.repo-tab[data-v-a2caf83f]:hover{background:#18a0580d;color:#18a058}.repo-tab.active[data-v-a2caf83f]{color:#18a058}.repo-tab.active[data-v-a2caf83f]:after{content:"";position:absolute;bottom:-9px;left:0;width:100%;height:2px;background:#18a058}.repo-spinner[data-v-a2caf83f]{height:300px;display:flex;align-items:center;justify-content:center}.repo-container[data-v-a2caf83f]{padding:8px 0}.repo-header[data-v-a2caf83f]{display:flex;align-items:center;margin-bottom:12px}.repo-icon[data-v-a2caf83f]{margin-right:10px;color:#333}.repo-title[data-v-a2caf83f]{font-size:18px;font-weight:600;color:#18a058;text-decoration:none;margin-right:10px}.repo-title[data-v-a2caf83f]:hover{text-decoration:underline}.repo-tag[data-v-a2caf83f]{margin-right:12px}.repo-stats[data-v-a2caf83f]{display:flex;gap:16px;margin-left:auto}.repo-stat[data-v-a2caf83f]{display:flex;align-items:center;gap:4px;color:#666}.repo-description[data-v-a2caf83f]{color:#555;margin-bottom:24px;line-height:1.6}.commit-section[data-v-a2caf83f],.release-section[data-v-a2caf83f]{margin-bottom:24px;position:relative}.section-header[data-v-a2caf83f]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-header h3[data-v-a2caf83f]{margin:0;font-size:16px;font-weight:600;color:#333}.commit-card[data-v-a2caf83f]{margin-bottom:12px}.commit-header[data-v-a2caf83f]{display:flex;align-items:center;margin-bottom:8px}.commit-author[data-v-a2caf83f]{margin-left:10px}.author-name[data-v-a2caf83f]{font-size:14px;font-weight:500}.commit-date[data-v-a2caf83f]{font-size:12px;color:#666}.commit-message[data-v-a2caf83f]{font-size:14px;line-height:1.5;margin-bottom:8px;word-break:break-word}.commit-message a[data-v-a2caf83f]{color:#333;text-decoration:none}.commit-message a[data-v-a2caf83f]:hover{color:#18a058;text-decoration:underline}.commit-stats[data-v-a2caf83f]{display:flex;gap:12px}.stats-item[data-v-a2caf83f]{display:flex;align-items:center;gap:4px;font-size:12px}.stats-label[data-v-a2caf83f]{color:#666}.stats-value.addition[data-v-a2caf83f]{color:#28a745}.stats-value.deletion[data-v-a2caf83f]{color:#d73a49}.release-card[data-v-a2caf83f]{margin-bottom:12px}.release-name[data-v-a2caf83f]{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;margin-bottom:4px}.release-name a[data-v-a2caf83f]{color:#18a058;text-decoration:none}.release-name a[data-v-a2caf83f]:hover{text-decoration:underline}.release-date[data-v-a2caf83f]{font-size:12px;color:#666;margin-bottom:8px}.release-body[data-v-a2caf83f] p{margin-bottom:12px}.release-body[data-v-a2caf83f] a{color:#18a058;text-decoration:none}.release-body[data-v-a2caf83f] a:hover{text-decoration:underline}.release-body[data-v-a2caf83f] ul,.release-body[data-v-a2caf83f] ol{padding-left:20px;margin-bottom:12px}.release-body[data-v-a2caf83f] li{margin-bottom:4px}.release-body[data-v-a2caf83f] pre,.release-body[data-v-a2caf83f] code{background-color:#f6f8fa;border-radius:4px;font-family:monospace;padding:2px 4px;font-size:13px}.release-body[data-v-a2caf83f] pre{padding:10px;overflow-x:auto;margin-bottom:12px}.release-body[data-v-a2caf83f] blockquote{border-left:4px solid #dfe2e5;padding-left:16px;color:#6a737d;margin:0 0 12px}.release-body[data-v-a2caf83f] h1,.release-body[data-v-a2caf83f] h2,.release-body[data-v-a2caf83f] h3,.release-body[data-v-a2caf83f] h4{margin-bottom:12px;margin-top:20px;font-weight:600}.empty-state[data-v-a2caf83f]{padding:24px}.view-more-btn[data-v-a2caf83f]{margin-top:12px}.error-message[data-v-a2caf83f]{padding:24px 0}.icon-spin[data-v-a2caf83f]{animation:spin-a2caf83f 1.5s linear infinite}@keyframes spin-a2caf83f{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.floating-shape[data-v-a2caf83f]{position:absolute;z-index:1;opacity:.4;border-radius:30% 70% 70% 30%/30% 30% 70% 70%;filter:blur(30px);pointer-events:none}.shape-1[data-v-a2caf83f]{top:30%;right:10%;width:300px;height:300px;background:radial-gradient(circle,rgba(24,160,88,.15),transparent 70%);animation:float-a2caf83f 20s ease-in-out infinite}.shape-2[data-v-a2caf83f]{bottom:10%;left:5%;width:200px;height:200px;background:radial-gradient(circle,rgba(64,158,255,.15),transparent 70%);animation:float-a2caf83f 15s ease-in-out infinite reverse}@keyframes float-a2caf83f{0%{transform:translate(0) rotate(0)}25%{transform:translate(10px,-10px) rotate(3deg)}50%{transform:translateY(15px) rotate(0)}75%{transform:translate(-10px,-5px) rotate(-3deg)}to{transform:translate(0) rotate(0)}}.cache-indicator[data-v-a2caf83f]{display:inline-flex;align-items:center;margin-left:8px;font-size:12px;color:#666;background-color:#00000008;padding:2px 8px;border-radius:12px}.cache-icon[data-v-a2caf83f]{margin-right:4px}.system-info-card[data-v-a2caf83f]{margin-top:20px}.card-header[data-v-a2caf83f]{margin-bottom:16px}.version-badge[data-v-a2caf83f]{display:inline-block;background-color:#18a0581a;color:#18a058;font-size:12px;padding:2px 8px;border-radius:12px;margin-left:8px;font-weight:500}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as B,c as b,o as M,a as d,d as e2,L as t2,M as w,r as f,v as l2,s as z,e as t,w as l,y as n2,u as r,E as a2,C as o2,O as H,B as p,g as h,P as s2,Q as r2,z as S,p as s,R as O,N as x,S as i2,k as c2}from"./index-CJIWqxBN.js";import{_ as u2}from"./add-one-DBohvXa7.js";import{I as p2}from"./cloudy-BnletBC6.js";import{f as d2,c as m2,a as v2}from"./channels-DzKbsjiA.js";import f2 from"./ChannelFormModal-Hp6Y4QBc.js";import{N as _2}from"./DataTable-CZyItGh5.js";import{_ as g2}from"./FormItem-CDsgx_ab.js";import{N as h2,_ as C2}from"./Grid-DmeNHOJx.js";import{_ as y2}from"./FormItemGridItem-CEbJWTJd.js";import"./DynamicTags-rIgGdrL5.js";import"./prop-BjyUHhTu.js";import"./CollapseItem-Calq76Jj.js";import"./InputNumber-C7hKPk7P.js";import"./Checkbox-gNUlkipW.js";import"./Ellipsis-BbsLqJtK.js";import"./download-C2161hUv.js";const k2={style:{display:"inline-block"},viewBox:"0 0 48 48",width:"1.2em",height:"1.2em"};function w2(L,m){return M(),b("svg",k2,m[0]||(m[0]=[d("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[d("path",{"stroke-linecap":"round",d:"M8 11h32M18 5h12"}),d("path",{d:"M12 17h24v23a3 3 0 0 1-3 3H15a3 3 0 0 1-3-3z"}),d("path",{"stroke-linecap":"round",d:"m20 25l8 8m0-8l-8 8"})],-1)]))}const x2=B({name:"icon-park-outline-delete-five",render:w2}),b2={style:{display:"inline-block"},viewBox:"0 0 48 48",width:"1.2em",height:"1.2em"};function M2(L,m){return M(),b("svg",b2,m[0]||(m[0]=[d("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4"},[d("path",{d:"M9.455 30.994A13.95 13.95 0 0 1 4 19.885C4 12.217 10.105 6 17.636 6c6.297 0 11.598 4.346 13.166 10.253a8.9 8.9 0 0 1 4.107-.996c5.02 0 9.091 4.144 9.091 9.257c0 3.795-2.244 7.058-5.455 8.486M17.414 22.586l-2.828 2.828"}),d("path",{d:"m27 24l-8 8.001h10.004l-8.004 8m12.414-1.415l-2.828 2.828"})],-1)]))}const L2=B({name:"icon-park-outline-thunderstorm",render:M2}),V2={class:"flex gap-4"},N2=e2({__name:"index",setup(L){function m({play:a,edit:e,remove:y}){return[{title:"ID",key:"id"},{title:"名称",key:"name",render(n){const i=[n.name];return n.uploader&&i.push(s(O,{trigger:"hover"},{trigger:()=>s(p2,{style:{color:"green"}}),default:()=>"云端预设"})),s(H,{align:"center"},{default:()=>i})}},{title:"状态",key:"status",render(n){return n.status==="enabled"?s(x,{type:"success"},{default:()=>"启用"}):s(O,{trigger:"hover"},{trigger:s(x,{type:"error"},{default:()=>"禁用"}),default:()=>n.disabledReason})}},{title:"类型",key:"adapterType",render(n){const i={openai:s("div",{style:{display:"flex",alignItems:"center",userSelect:"none"}},[s("img",{src:new URL("data:image/svg+xml,%3csvg%20version='1.1'%20id='Layer_1'%20xmlns:x='ns_extend;'%20xmlns:i='ns_ai;'%20xmlns:graph='ns_graphs;'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2079.9%2081'%20style='enable-background:new%200%200%2079.9%2081;'%20xml:space='preserve'%3e%3cmetadata%3e%3csfw%20xmlns='ns_sfw;'%3e%3cslices%3e%3c/slices%3e%3csliceSourceBounds%20bottomLeftOrigin='true'%20height='81'%20width='79.9'%20x='35.4'%20y='-240.7'%3e%3c/sliceSourceBounds%3e%3c/sfw%3e%3c/metadata%3e%3cg%3e%3cpath%20d='M74.6,33.1c1.8-5.5,1.2-11.6-1.7-16.6c-4.4-7.7-13.3-11.6-22-9.8C47.1,2.4,41.5,0,35.7,0C26.8,0,19,5.7,16.2,14.1%20c-5.7,1.2-10.6,4.7-13.5,9.8c-4.4,7.7-3.4,17.3,2.5,23.9C3.4,53.4,4.1,59.4,7,64.4c4.4,7.7,13.3,11.7,22,9.8%20c3.9,4.3,9.4,6.8,15.2,6.8c8.9,0,16.7-5.7,19.5-14.1c5.7-1.2,10.6-4.7,13.5-9.8C81.6,49.4,80.6,39.7,74.6,33.1z%20M44.2,75.7%20c-3.6,0-7-1.2-9.7-3.5c0.1-0.1,0.4-0.2,0.5-0.3l16.1-9.3c0.8-0.5,1.3-1.3,1.3-2.3V37.6l6.8,3.9c0.1,0,0.1,0.1,0.1,0.2v18.8%20C59.4,68.9,52.6,75.7,44.2,75.7z%20M11.6,61.8c-1.8-3.1-2.4-6.7-1.8-10.2c0.1,0.1,0.3,0.2,0.5,0.3l16.1,9.3c0.8,0.5,1.8,0.5,2.6,0%20l19.7-11.4v7.9c0,0.1,0,0.2-0.1,0.2l-16.3,9.4C25.1,71.5,15.8,69,11.6,61.8L11.6,61.8z%20M7.4,26.6c1.8-3.1,4.6-5.4,7.9-6.7v19.2%20c0,0.9,0.5,1.8,1.3,2.3l19.7,11.4l-6.8,3.9c-0.1,0-0.2,0.1-0.2,0l-16.3-9.4C5.6,43.1,3.2,33.8,7.4,26.6L7.4,26.6z%20M63.4,39.6%20L43.7,28.2l6.8-3.9c0.1,0,0.2-0.1,0.2,0L67,33.7c7.3,4.2,9.7,13.5,5.5,20.7c-1.8,3.1-4.6,5.4-7.9,6.6V41.9%20C64.7,41,64.2,40.1,63.4,39.6L63.4,39.6z%20M70.1,29.4c-0.1-0.1-0.3-0.2-0.5-0.3l-16.1-9.3c-0.8-0.5-1.8-0.5-2.6,0L31.2,31.2v-7.9%20c0-0.1,0-0.2,0.1-0.2l16.3-9.4c7.3-4.2,16.5-1.7,20.7,5.6C70.1,22.3,70.7,25.9,70.1,29.4L70.1,29.4z%20M27.5,43.4l-6.8-3.9%20c-0.1,0-0.1-0.1-0.1-0.2V20.5c0-8.4,6.8-15.2,15.2-15.2c3.6,0,7,1.2,9.7,3.5c-0.1,0.1-0.3,0.2-0.5,0.3l-16.1,9.3%20c-0.8,0.5-1.3,1.3-1.3,2.3V43.4z%20M31.2,35.4l8.8-5.1l8.8,5.1v10.1l-8.8,5.1l-8.8-5.1L31.2,35.4z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",import.meta.url).href,alt:"OpenAI",style:"width: 13px; -webkit-user-drag: none"}),s("img",{src:new URL("data:image/svg+xml,%3csvg%20class='w-[4.9375rem]%20will-change-transform%20md:w-[5.625rem]'%20width='90'%20viewBox='0%200%20288%2078'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M30.6%200.398438C13.77%200.398438%200%2014.1684%200%2030.9984C0%2047.8284%2013.77%2061.5984%2030.6%2061.5984C47.43%2061.5984%2061.2%2047.9134%2061.2%2030.9984C61.2%2014.0834%2047.515%200.398438%2030.6%200.398438ZM30.6%2050.6334C20.145%2050.6334%2011.73%2042.0484%2011.73%2030.9984C11.73%2019.9484%2020.145%2011.3634%2030.6%2011.3634C41.055%2011.3634%2049.47%2019.9484%2049.47%2030.9984C49.47%2042.0484%2041.055%2050.6334%2030.6%2050.6334Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M92.1393%2017.3984C86.6143%2017.3984%2081.2593%2019.6084%2078.4543%2023.3484V18.2484H67.4043V77.7484H78.4543V56.2434C81.2593%2059.7284%2086.4443%2061.5984%2092.1393%2061.5984C104.039%2061.5984%20113.389%2052.2484%20113.389%2039.4984C113.389%2026.7484%20104.039%2017.3984%2092.1393%2017.3984ZM90.2693%2051.9934C83.9793%2051.9934%2078.3693%2047.0634%2078.3693%2039.4984C78.3693%2031.9334%2083.9793%2027.0034%2090.2693%2027.0034C96.5593%2027.0034%20102.169%2031.9334%20102.169%2039.4984C102.169%2047.0634%2096.5593%2051.9934%2090.2693%2051.9934Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M139.401%2017.3984C127.331%2017.3984%20117.811%2026.8334%20117.811%2039.4984C117.811%2052.1634%20126.141%2061.5984%20139.741%2061.5984C150.876%2061.5984%20158.016%2054.8834%20160.226%2047.3184H149.431C148.071%2050.4634%20144.246%2052.6734%20139.656%2052.6734C133.961%2052.6734%20129.626%2048.6784%20128.606%2042.9834H160.736V38.6484C160.736%2027.0884%20152.661%2017.3984%20139.401%2017.3984ZM128.691%2035.1634C129.881%2029.8084%20134.301%2026.3234%20139.656%2026.3234C145.351%2026.3234%20149.686%2030.0634%20150.196%2035.1634H128.691Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M190.145%2017.3984C185.215%2017.3984%20180.03%2019.6084%20177.65%2023.2634V18.2484H166.6V60.7484H177.65V37.8834C177.65%2031.2534%20181.22%2026.9184%20187%2026.9184C192.355%2026.9184%20195.245%2030.9984%20195.245%2036.6934V60.7484H206.295V34.9084C206.295%2024.3684%20199.835%2017.3984%20190.145%2017.3984Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M234.596%201.25L210.541%2060.75H222.356L227.456%2047.745H254.826L259.926%2060.75H271.911L248.026%201.25H234.596ZM231.281%2037.885L241.141%2012.98L250.916%2037.885H231.281Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M287.636%201.25H276.416V60.75H287.636V1.25Z'%20fill='black'%3e%3c/path%3e%3c/svg%3e",import.meta.url).href,alt:"OpenAI",style:"width: 50px; margin-left: 5px; margin-top: 2px; -webkit-user-drag: none"})]),gemini:s("img",{src:new URL("/assets/gemini-full-DjWArg1A.png",import.meta.url).href,alt:"Gemini",style:"width: 69px; -webkit-user-drag: none"}),claude:s("img",{src:new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20184%2040'%20class='text-text-000%20h-6%20sm:h-7'%20fill='currentColor'%3e%3cpath%20shape-rendering='optimizeQuality'%20fill='%23D97757'%20d='m7.75%2026.27%207.77-4.36.13-.38-.13-.21h-.38l-1.3-.08-4.44-.12-3.85-.16-3.73-.2-.94-.2L0%2019.4l.09-.58.79-.53%201.13.1%202.5.17%203.75.26%202.72.16%204.03.42h.64l.09-.26-.22-.16-.17-.16-3.88-2.63-4.2-2.78-2.2-1.6L3.88%2011l-.6-.76-.26-1.66L4.1%207.39l1.45.1.37.1%201.47%201.13%203.14%202.43%204.1%203.02.6.5.24-.17.03-.12-.27-.45L13%209.9l-2.38-4.1-1.06-1.7-.28-1.02c-.1-.42-.17-.77-.17-1.2L10.34.21l.68-.22%201.64.22.69.6%201.02%202.33%201.65%203.67%202.56%204.99.75%201.48.4%201.37.15.42h.26v-.24l.21-2.81.39-3.45.38-4.44.13-1.25.62-1.5L23.1.57l.96.46.79%201.13-.11.73-.47%203.05-.92%204.78-.6%203.2h.35l.4-.4%201.62-2.15%202.72-3.4%201.2-1.35%201.4-1.49.9-.71h1.7l1.25%201.86-.56%201.92-1.75%202.22-1.45%201.88-2.08%202.8-1.3%202.24.12.18.31-.03%204.7-1%202.54-.46%203.03-.52%201.37.64.15.65-.54%201.33-3.24.8-3.8.76-5.66%201.34-.07.05.08.1%202.55.24%201.09.06h2.67l4.97.37%201.3.86.78%201.05-.13.8-2%201.02-2.7-.64-6.3-1.5-2.16-.54h-.3v.18l1.8%201.76%203.3%202.98%204.13%203.84.21.95-.53.75-.56-.08-3.63-2.73-1.4-1.23-3.17-2.67h-.21v.28l.73%201.07%203.86%205.8.2%201.78-.28.58-1%20.35-1.1-.2L26%2033.14l-2.33-3.57-1.88-3.2-.23.13-1.11%2011.95-.52.61-1.2.46-1-.76-.53-1.23.53-2.43.64-3.17.52-2.52.47-3.13.28-1.04-.02-.07-.23.03-2.36%203.24-3.59%204.85-2.84%203.04-.68.27-1.18-.61.11-1.09.66-.97%203.93-5%202.37-3.1%201.53-1.79-.01-.26h-.09L6.8%2030.56l-1.86.24-.8-.75.1-1.23.38-.4%203.14-2.16Z'/%3e%3cpath%20shape-rendering='optimizeQuality'%20d='M64.48%2033.54c-5.02%200-8.45-2.8-10.07-7.11a19.19%2019.19%200%200%201-1.23-7.03c0-7.23%203.24-12.25%2010.4-12.25%204.81%200%207.78%202.1%209.47%207.11h2.06l-.28-6.91c-2.88-1.86-6.48-2.8-10.86-2.8-6.17%200-11.42%202.76-14.34%207.74a16.77%2016.77%200%200%200-2.22%208.65c0%205.53%202.61%2010.43%207.51%2013.15a17.51%2017.51%200%200%200%208.73%202.06c4.78%200%208.57-.91%2011.93-2.5l.87-7.62h-2.1c-1.26%203.48-2.76%205.57-5.25%206.68-1.22.55-2.76.83-4.62.83ZM86.13%207.15l.2-3.4h-1.42l-6.32%201.9v1.03l2.8%201.3v23.78c0%201.62-.83%201.98-3%202.25v1.74h10.75v-1.74c-2.18-.27-3-.63-3-2.25V7.16Zm42.75%2029h.83l7.27-1.38v-1.78l-1.02-.08c-1.7-.16-2.14-.51-2.14-1.9V18.33l.2-4.07h-1.15l-6.87.99v1.74l.67.12c1.86.27%202.41.79%202.41%202.09v11.3c-1.78%201.38-3.48%202.25-5.5%202.25-2.24%200-3.63-1.14-3.63-3.8V18.34l.2-4.07h-1.18l-6.88.99v1.74l.71.12c1.86.27%202.41.79%202.41%202.09v10.43c0%204.42%202.5%206.52%206.48%206.52%203.04%200%205.53-1.62%207.4-3.87l-.2%203.87ZM108.9%2022.08c0-5.65-3-7.82-8.42-7.82-4.78%200-8.25%201.98-8.25%205.26%200%20.98.35%201.73%201.06%202.25l3.64-.48c-.16-1.1-.24-1.77-.24-2.05%200-1.86.99-2.8%203-2.8%202.97%200%204.47%202.09%204.47%205.45v1.1l-7.5%202.25c-2.5.68-3.92%201.27-4.87%202.65a5%205%200%200%200-.7%202.8c0%203.2%202.2%205.46%205.96%205.46%202.72%200%205.13-1.23%207.23-3.56.75%202.33%201.9%203.56%203.95%203.56%201.66%200%203.16-.67%204.5-1.98l-.4-1.38c-.58.16-1.14.24-1.73.24-1.15%200-1.7-.91-1.7-2.69v-8.26Zm-9.6%2010.87c-2.05%200-3.32-1.19-3.32-3.28%200-1.42.67-2.25%202.1-2.73l6.08-1.93v5.84c-1.94%201.47-3.08%202.1-4.86%202.1Zm63.3%201.82v-1.78l-1.03-.08c-1.7-.16-2.13-.51-2.13-1.9V7.15l.2-3.4h-1.43l-6.32%201.9v1.03l2.8%201.3v7.82a8.83%208.83%200%200%200-5.37-1.54c-6.28%200-11.18%204.78-11.18%2011.93%200%205.89%203.52%209.96%209.32%209.96%203%200%205.61-1.46%207.23-3.72l-.2%203.72h.84l7.27-1.38Zm-13.16-18.14c3%200%205.25%201.74%205.25%204.94v9a7.2%207.2%200%200%201-5.21%202.1c-4.3%200-6.48-3.4-6.48-7.94%200-5.1%202.49-8.1%206.44-8.1Zm28.53%204.5c-.56-2.64-2.18-4.14-4.43-4.14-3.36%200-5.69%202.53-5.69%206.16%200%205.37%202.84%208.85%207.43%208.85a8.6%208.6%200%200%200%207.39-4.35l1.34.36c-.6%204.66-4.82%208.14-10%208.14-6.08%200-10.27-4.5-10.27-10.9%200-6.45%204.55-10.99%2010.63-10.99%204.54%200%207.74%202.73%208.77%207.47l-15.84%204.86v-2.14l10.67-3.31Z'/%3e%3c/svg%3e",import.meta.url).href,alt:"Claude",style:"width: 69px; -webkit-user-drag: none"})};return s("div",{},{default:()=>[i[n.adapterType]||""]})}},{title:"优先级",key:"priority"},{title:"权重",key:"weight"},{title:"上传者",key:"uploader",render(n){return n.uploader?s(x,{type:"info"},{default:()=>n.uploader?.username}):""}},{title:"更新日期",key:"updatedAt"},{title:"创建日期",key:"createdAt"},{title:"操作",key:"actions",render(n){return[s(i2,{trigger:"hover",options:n.models.map(i=>({label:i,key:i})),onSelect:()=>a(n)},{default:()=>s(p,{type:"primary",strong:!0,tertiary:!0,size:"small",onClick:()=>a(n)},{default:()=>"测试"})}),s(p,{type:"info",strong:!0,tertiary:!0,size:"small",onClick:()=>e(n)},{default:()=>"修改"}),s(p,{type:"error",strong:!0,tertiary:!0,size:"small",onClick:()=>y(n)},{default:()=>"删除"})]}}]}const v=t2(),V=w({value:[]}),I=w({value:{}}),u=f(!1),_=f(!1),C=f(!1),N={modelType:"settings",name:"",embedded:!1,description:"",options:{baseUrl:"",apiKey:[]},adapterType:"openai",models:[],weight:1,priority:0,status:"enabled"},k=f(JSON.parse(JSON.stringify(N))),A=f([]),R=f([]),o=w({name:void 0,type:void 0,status:void 0,model:void 0});function g(a){u.value=!0,d2(a).then(e=>{V.value=e.data,u.value=!1}).catch(e=>{console.error(e),u.value=!1})}function U(){o.name=void 0,o.type=void 0,o.model=void 0,o.status=void 0,g(o)}function T(){C.value=!1,k.value=JSON.parse(JSON.stringify(N)),_.value=!0}function $(a){C.value=!0,console.error(a),k.value={...a},_.value=!0}function D(a){window.$dialog.warning({title:"确认删除",content:`确定要删除渠道 "${a.name}" 吗?此操作不可恢复。`,positiveText:"确认删除",negativeText:"取消",onPositiveClick:()=>{u.value=!0,v2(a.id).then(e=>{e.code===0?(v.success("删除成功"),g(o)):v.error(e.message||"删除失败")}).catch(e=>{v.error(e.message||"删除操作发生错误")}).finally(()=>{u.value=!1})}})}function G(a){u.value=!0,m2(a).then(e=>{e.code===0?(v.success(C.value?"更新成功":"创建成功"),g(o)):v.error(e.message),u.value=!1,_.value=!1}).catch(e=>{v.error(e.message),u.value=!1})}const P=m({play(a){v.warning(`测试渠道: ${a.name},暂未实现`)},edit(a){$(a)},remove(a){D(a)}});l2(()=>{g(I.value)});const J=z(()=>[{label:"全部",value:void 0},{label:"OpenAI",value:"openai"},{label:"Gemini",value:"gemini"},{label:"Claude",value:"claude"}]),j=z(()=>[{label:"全部",value:void 0},{label:"正常",value:"enabled"},{label:"禁用",value:"disabled"}]);return(a,e)=>{const y=a2,n=y2,i=o2,E=s2,F=r2,Q=C2,K=g2,Z=n2,W=u2,q=L2,X=x2,Y=_2;return M(),b("div",null,[t(r(S),{vertical:"",size:"large"},{default:l(()=>[t(Z,null,{default:l(()=>[t(K,{ref:"formRef",model:o,"label-placement":"left",inline:"","show-feedback":!1},{default:l(()=>[t(r(h2),{cols:"1 s:2 m:3 l:6","x-gap":12,"y-gap":16,responsive:"screen","item-responsive":""},{default:l(()=>[t(n,{span:"1",label:"名称",path:"name"},{default:l(()=>[t(y,{value:o.name,"onUpdate:value":e[0]||(e[0]=c=>o.name=c),placeholder:"请输入要搜索的名称关键词"},null,8,["value"])]),_:1}),t(n,{span:"1",label:"适配器",path:"type"},{default:l(()=>[t(i,{value:o.type,"onUpdate:value":e[1]||(e[1]=c=>o.type=c),options:r(J)},null,8,["value","options"])]),_:1}),t(n,{span:"1",label:"状态",path:"status"},{default:l(()=>[t(i,{value:o.status,"onUpdate:value":e[2]||(e[2]=c=>o.status=c),options:r(j)},null,8,["value","options"])]),_:1}),t(n,{span:"1",label:"模型",path:"model"},{default:l(()=>[t(y,{value:o.model,"onUpdate:value":e[3]||(e[3]=c=>o.model=c),placeholder:"请输入要搜索的模型"},null,8,["value"])]),_:1}),t(Q,{span:"1"},{default:l(()=>[t(r(H),{class:"ml-auto"},{default:l(()=>[t(r(p),{type:"primary",onClick:e[4]||(e[4]=c=>g(o))},{icon:l(()=>[t(E)]),default:l(()=>[e[6]||(e[6]=h(" 搜索 "))]),_:1}),t(r(p),{strong:"",secondary:"",onClick:U},{icon:l(()=>[t(F)]),default:l(()=>[e[7]||(e[7]=h(" 重置 "))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(Z,null,{default:l(()=>[t(r(S),{vertical:"",size:"large"},{default:l(()=>[d("div",V2,[t(r(p),{type:"primary",onClick:T},{icon:l(()=>[t(W)]),default:l(()=>[e[8]||(e[8]=h(" 新建渠道 "))]),_:1}),t(r(p),{strong:"",secondary:"",type:"info"},{icon:l(()=>[t(q)]),default:l(()=>[e[9]||(e[9]=h(" 测试全部渠道 "))]),_:1}),t(r(p),{strong:"",secondary:"",type:"error"},{icon:l(()=>[t(X)]),default:l(()=>[e[10]||(e[10]=h(" 删除禁用渠道 "))]),_:1})]),t(Y,{columns:r(P),data:V.value,loading:u.value},null,8,["columns","data","loading"])]),_:1})]),_:1})]),_:1}),t(f2,{show:_.value,"onUpdate:show":e[5]||(e[5]=c=>_.value=c),"edit-mode":C.value,"initial-data":k.value,"pre-processor-options":A.value,"post-processor-options":R.value,onSubmit:G},null,8,["show","edit-mode","initial-data","pre-processor-options","post-processor-options"])])}}}),j2=c2(N2,[["__scopeId","data-v-a1805c63"]]);export{j2 as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as r}from"./ErrorTip.vue_vue_type_script_setup_true_lang-QKywH0iL.js";import{k as c,b as e,o as n}from"./index-kLEe-31q.js";const t={};function _(s,a){const o=r;return n(),e(o,{type:"403"})}const i=c(t,[["render",_]]);export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-DdgjuITP.js";import"./index-kLEe-31q.js";import"./headers-PaTXxtPR.js";import"./FormItem-C2ziP3u7.js";import"./text-BfkuQm58.js";export{o as default};
|